revert:
[binutils-gdb.git] / gdb / ChangeLog
1 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2
3 revert:
4 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6 Call target_stop in the INF_QUIT_REQ case.
7 * Makefile.in (inf-loop.o): Update.
8
9 2008-03-14 Pedro Alves <pedro@codesourcery.com>
10
11 * inf-loop.c (inferior_event_handler): Don't include remote.h.
12 Call target_stop in the INF_QUIT_REQ case.
13 * Makefile.in (inf-loop.o): Update.
14
15 2008-03-14 Pedro Alves <pedro@codesourcery.com>
16
17 * top.c (execute_command): Enable break, info and interrupt
18 commands in async mode.
19
20 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
21 Daniel Jacobowitz <dan@codesourcery.com>
22
23 * breakpoint.h (breakpoint_restore_shadows): New
24 declaration.
25 * breakpoint.c (breakpoint_restore_shadows): New.
26 (read_memory_nobpt): Delete.
27 * gdbcore.h (read_memory_nobpt): Delete declaration.
28 * target.c (memory_xfer_partial): Call
29 breakpoint_restore_shadows.
30 (restore_show_memory_breakpoints)
31 (make_show_memory_beakpoints_cleanup): New.
32 (show_memory_breakpoints): New.
33 * target.h (make_show_memory_beakpoints_cleanup): Declare.
34 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
35 Make sure we see memory breakpoints when checking if
36 breakpoint is still there.
37 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
38 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
39 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
40 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
41
42 2008-03-12 Pedro Alves <pedro@codesourcery.com>
43
44 * thread.c (add_thread): Use printf_unfiltered to print.
45
46 2008-03-12 Joel Brobecker <brobecker@gnat.com>
47
48 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
49 that is true only on x86-solaris and x86_64-solaris.
50 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
51 with proc_get_LDT_entry.
52
53 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
54
55 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
56 * config.in, configure: Regenerate.
57 * fork-child.c (fork_inferior): Call create_tty_session.
58 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
59 (create_tty_session): New function.
60 * terminal.h: Declare create_tty_session.
61
62 2008-03-12 Alan Modra <amodra@bigpond.net.au>
63
64 PR 5900
65 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
66 * mipsread.c: Include elf/internal.h.
67 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
68 to internal range.
69
70 2008-03-11 Markus Deuling <deuling@de.ibm.com>
71
72 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
73 to get at the current architecture and at the target specific vector.
74 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
75 remove define of I387_ST0_REGNUM.
76
77 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
78
79 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
80 get at the current architecture
81 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
82 parameter.
83
84 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
85 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
86
87 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
88 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
89 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
90
91 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
92 at the target specific vector.
93
94 (i386_get_longjmp_target): Use get_frame_arch to get at the current
95 architecture. Use gdbarch_tdep to get at the target specific vector.
96
97 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
98 update caller. Use gdbarch_tdep to get at the target specific vector.
99
100 (i386_register_to_value: Use get_frame_arch to get at the current
101 architecture.
102
103 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
104 parameter.
105
106 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
107 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
108 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
109 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
110
111 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
112 undef's.
113
114 (i387_convert_register_p, i387_register_to_value,
115 i387_value_to_register): Update call for i386_fp_regnum_p.
116
117 * i387-tdep.h: Remove comment.
118 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
119 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
120 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
121 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
122 I387_MXCSR_REGNUM): Add target specific vector as parameter.
123
124 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
125
126 * Makefile.in (fork-child.o): Update.
127 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
128 argument. Gather all gdbserver features together.
129 * fork-child.c (exec_wrapper): New variable.
130 (fork_inferior): Use it.
131 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
132 (unset_exec_wrapper_command, _initialize_fork_child): New.
133
134 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
135
136 * source.c (directory_command): Modify the determination of
137 condition of terminal "from_tty".
138
139 2008-03-10 Matt Rice <ratmice@gmail.com>
140
141 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
142
143 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
144
145 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
146 of the data passing to strtoulst function.
147 (info_spu_signal_command): Likewise.
148
149 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
150
151 * mi/mi-interp.c (mi_command_loop): Remove
152 commented-out code.
153
154 2008-03-07 Joel Brobecker <brobecker@adacore.com>
155
156 * remote.c (extended_remote_attach_1): Make local variable pid an int
157 instead of a pid_t.
158
159 2008-03-07 Joel Brobecker <brobecker@adacore.com>
160
161 * solib-svr4.c (svr4_same_1): New function, originally extracted
162 from svr4_same and expanded to handle the sparc64 case.
163 (svr4_same): Move up and reimplement using svr4_same_1.
164 (enable_break): Use svr4_same_1 to do shared library name comparisons.
165
166 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
167
168 * MAINTAINERS: Move self to Paper trail.
169
170 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
171
172 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
173 * event-loop.c (call_async_signal_handler): New.
174 * event-loop.h (call_async_signal_handler)
175 (gdb_call_async_signal_handler): Declare.
176 (mark_async_signal_handler): Add comments.
177 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
178 * mingw-hdep.c (sigint_event, sigint_handler): New.
179 (gdb_select): Use them. Wait for the readline signal handler
180 to finish.
181 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
182 * posix-hdep.c (gdb_call_async_signal_handler): New function.
183 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
184 New.
185 (remote_fileio_ctrl_c_signal_handler): Use
186 gdb_call_async_signal_handler.
187 (initialize_remote_fileio): Initialize sigint_fileio_token.
188 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
189 not initialize tokens here.
190 (handle_remote_sigint_twice): Likewise. Reinstall
191 handle_remote_sigint.
192 (async_remote_interrupt_twice): Just call interrupt_query.
193 (cleanup_sigint_signal_handler): Do not delete tokens.
194 (remote_interrupt, remote_interrupt_twice): Use
195 gdb_call_async_signal_handler.
196 (interrupt_query): Reinstall the default signal handler.
197 (_initialize_remote): Initialize tokens here.
198
199 2008-03-04 Joel Brobecker <brobecker@adacore.com>
200
201 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
202 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
203 Change the type of the lr register to code_ptr.
204 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
205 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
206 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
207 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
208 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
209 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
210 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
211
212 2008-03-03 James E. Wilson <wilson@tuliptree.org>
213
214 * MAINTAINERS: Update my email address.
215
216 2008-03-03 Keith Seitz <keiths@redhat.com>
217
218 From Dave Murphy <davem@devkitpro.org>:
219 * configure.ac: Set tcl configdir to win under mingw.
220 * configure: Regenerate.
221
222 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
223
224 * breakpoint.c (fetch_watchpoint_value): New function.
225 (update_watchpoint): Set and clear val_valid. Use
226 fetch_watchpoint_value. Handle unreadable values on the
227 value chain. Correct check for user-requested array watchpoints.
228 (breakpoint_init_inferior): Clear val_valid.
229 (watchpoint_value_print): New function.
230 (print_it_typical): Use it. Do not free or clear old_val. Print
231 watchpoints even if old_val == NULL.
232 (watchpoint_check): Use fetch_watchpoint_value. Check for values
233 becoming readable or unreadable.
234 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
235 (do_enable_watchpoint): Likewise.
236 * breakpoint.h (struct breakpoint): Update comment for val. Add
237 val_valid.
238 * NEWS: Mention watchpoints on inaccessible memory.
239
240 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
241
242 * Makefile.in (i386-nat.o): Update.
243 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
244 i386_use_watchpoints.
245 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
246 i386_use_watchpoints.
247 * i386-nat.c (i386_stopped_data_address): Take two arguments.
248 (i386_stopped_by_watchpoint): Update call.
249 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
250 * config/i386/nm-i386.h: Conditionalize definitions on
251 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
252 (i386_use_watchpoints): Declare.
253 (i386_stopped_data_address): Update.
254 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
255 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
256
257 2008-02-29 Joel Brobecker <brobecker@adacore.com>
258
259 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
260 * version.in: Bump version to 6.8.50.20080229-cvs.
261
262 2008-02-28 Markus Deuling <deuling@de.ibm.com>
263
264 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
265 properly.
266
267 2008-02-28 Tom Tromey <tromey@redhat.com>
268
269 * infcmd.c (notice_args_read): Print result of get_inferior_args.
270
271 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
272
273 * infcmd.c (kill_if_already_running): Make static. Use
274 target_require_runnable.
275 * target.c (target_require_runnable): New.
276 * target.h (target_require_runnable): Declare.
277
278 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
279
280 * frame.c (reinit_frame_cache): Only annotate if frames were
281 previously valid.
282
283 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
284
285 * regformats/reg-ppc.dat: Rename "ps" to "msr".
286 * regformats/reg-ppc64.dat: Likewise.
287
288 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
289
290 * features/Makefile (%.dat): Emit xmltarget statement.
291
292 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
293 Generate code to set gdbserver_xmltarget in init_registers_${name}.
294
295 * regformats/arm-with-iwmmxt.dat: Regenerate.
296 * regformats/mips64-linux.dat: Regenerate.
297 * regformats/mips-linux.dat: Regenerate.
298 * regformats/rs6000/powerpc-32.dat: Regenerate.
299 * regformats/rs6000/powerpc-64.dat: Regenerate.
300 * regformats/rs6000/powerpc-e500.dat: Regenerate.
301
302 * regformats/reg-arm.dat: Add xmlarch statement.
303 * regformats/reg-i386.dat: Likewise.
304 * regformats/reg-i386-linux.dat: Likewise.
305 * regformats/reg-x86-64-linux.dat: Likewise.
306 * regformats/reg-spu.dat: Likewise.
307
308 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
309
310 * remote.c (remote_wait, remote_async_wait): Stop if we receive
311 an error.
312
313 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
314
315 * utils.c (debug_timestamp): New.
316 (vfprintf_unfiltered): Print timestamps if requested.
317 (show_debug_timestamp): New.
318 (initialize_utils): Register "set debug timestamp".
319 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
320
321 2008-02-27 Joel Brobecker <brobecker@adacore.com>
322
323 * breakpoint.c (skip_prologue_sal): New function.
324 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
325 computed from a line number.
326
327 2008-02-27 Joel Brobecker <brobecker@adacore.com>
328
329 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
330 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
331 Set PC register type to "code_ptr".
332 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
333 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
334 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
335 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
336 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
337 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
338 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
339 Regenerate.
340
341 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
342
343 * regformats/regdat.sh: Rename init_registers function in
344 generated file to init_registers_${name}.
345
346 * regformats/reg-crisv32.dat: Set "name" to crisv32.
347 * regformats/reg-ppc64.dat: Set "name" to ppc64.
348 * regformats/reg-s390x.dat: Set "name" to s390x.
349
350 2008-02-26 Greg Law <glaw@undo-software.com>
351
352 * regcache.c (registers_changed): Call reinit_frame_cache.
353
354 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
355
356 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
357 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
358 and svr4_fetch_objfile_link_map.
359 * Makefile.in (sh-linux-tdep.o): Update.
360
361 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
362
363 * amd64-tdep.c (amd64_classify): Add support for decimal float
364 types.
365 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
366 use the struct return convention.
367
368 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
369
370 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
371 to old format. Discard breakpoint address if shared library is
372 unloaded.
373 (breakpoint_1): Adjust formatting of table header accordingly.
374
375 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
376
377 * remote.c (remote_get_threadlist): If the response
378 is empty, don't try to parse it.
379
380 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
381
382 Unbreak 'target async'.
383 * serial.c (serial_async): Set the
384 handler function before enabling async
385 mode.
386
387 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
388
389 * solib-svr4.c (enable_break): Convert r_brk to a code address.
390
391 2008-02-21 Pedro Alves <pedro@codesourcery.com>
392
393 * remote.c (extended_remote_attach_1): Set attach_flag.
394 (extended_remote_create_inferior_1): Clear attach_flag.
395
396 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
397
398 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
399 r_brk_offset.
400 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
401 * solib-svr4.c (solib_svr4_r_brk): New.
402 (open_symbol_file_object, svr4_current_sos): Always check the
403 debug base.
404 (svr4_fetch_objfile_link_map): Do not set debug_base.
405 (enable_break): Use r_brk if it is set.
406 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
407 (svr4_lp64_fetch_link_map_offsets): Likewise.
408 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
409
410 2008-02-20 Markus Deuling <deuling@de.ibm.com>
411 Mark Kettenis <kettenis@gnu.org>
412
413 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
414 trad_frame_saved_reg.
415 (trad-frame.h): New include.
416
417 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
418 instead of frame_obstack_zalloc.
419 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
420
421 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
422
423 2008-02-20 Markus Deuling <deuling@de.ibm.com>
424
425 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
426 from disassemble_info instead of gdbarch_byte_order.
427
428 * mips-tdep.c (gdb_print_insn_mips): Likewise.
429 * arm-tdep.c (gdb_print_insn_arm): Likewise.
430
431 2008-02-20 Markus Deuling <deuling@de.ibm.com>
432
433 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
434 gdbarch as parameter.
435
436 * gdbarch.{c,h}: Regenerate.
437
438 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
439 parameter.
440 * mem-break.c (default_memory_insert_breakpoint)
441 (default_memory_remove_breakpoint): Likewise.
442 * target.h (default_memory_remove_breakpoint)
443 (default_memory_insert_breakpoint): Likewise.
444
445 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
446 parameter. Replace current_gdbarch by gdbarch.
447 * m32r-tdep.c (m32r_memory_insert_breakpoint)
448 (m32r_memory_remove_breakpoint): Likewise.
449
450 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
451
452 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
453
454 2008-02-19 Joel Brobecker <brobecker@adacore.com>
455
456 * NEWS: Add entry describing Add support improvements.
457
458 2008-02-18 Markus Deuling <deuling@de.ibm.com>
459
460 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
461 M68K_FP0_REGNUM.
462
463 2008-02-18 Markus Deuling <deuling@de.ibm.com>
464
465 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
466 register_offset_hack anymore.
467
468 * regcache.{c,h} (register_offset_hack): Remove.
469
470 2008-02-18 Markus Deuling <deuling@de.ibm.com>
471
472 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
473
474 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
475 current_gdbarch by gdbarch.
476 (hppa64_hpux_find_global_pointer): Likewise.
477 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
478 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
479 find_global_pointer.
480
481 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
482 parameter.
483 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
484
485 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
486 of gdbarch_num_regs.
487
488 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
489 replace current_gdbarch by gdbarch.
490 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
491
492 2008-02-18 Markus Deuling <deuling@de.ibm.com>
493
494 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
495 and replace current_gdbarch by gdbarch.
496
497 (store_register): Update call for exec_one_dummy_insn.
498 (fetch_register, store_register): Update call of regmap.
499
500 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
501 parameter and replace current_gdbarch by gdbarch.
502
503 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
504 the current architecture. Update call for getregs_supplies and
505 getfpregs_supplies.
506 (ppcnbsd_fetch_inferior_registers): Likewise.
507
508 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
509 replace current_gdbarch by gdbarch.
510 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
511 get_regcache_arch to get at the current architecture. Update call for
512 getfpregs_supplies.
513
514 2008-02-18 Markus Deuling <deuling@de.ibm.com>
515
516 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
517 variables.
518
519 2008-02-15 Markus Deuling <deuling@de.ibm.com>
520
521 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
522
523 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
524
525 * NEWS: Mention pending breakpints in MI.
526
527 2008-02-14 Markus Deuling <deuling@de.ibm.com>
528
529 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
530
531 2008-02-13 Markus Deuling <deuling@de.ibm.com>
532
533 Add script to build and test GDB using enable-targets=all.
534
535 * gdb_buildall.sh: New file.
536
537 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
538
539 * NEWS (New native configurations): Xtensa GNU/Linux.
540 (New targets): Xtensa GNU/Linux.
541 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
542 xtensa-linux-tdep.o
543 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
544 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
545 * configure.tgt (xtensa*-*-linux*): New entry.
546 * xtensa-config.c (xtensa_tdep): New variable.
547 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
548 (rmap): Change format based on new macro XTREG.
549 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
550 * xtensa-linux-nat.c: New.
551 * xtensa-linux-tdep.c: New.
552 * xtensa-xtregs.c: New.
553 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
554 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
555 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
556 (xtensa_register_t): New field coprocessor.
557 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
558 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
559 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
560 Update to handle privileged registers.
561 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
562 (xtensa_push_dummy_call): Set windowstart register correctly.
563 (call0_analyze_prologue): Initialize xtensa_default_isa.
564 (xtensa_derive_tdep): New.
565 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
566 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
567 Call xtensa_derive_tdep().
568 * config/xtensa/linux.mh: New.
569 * regformats/reg-xtensa.dat: New.
570
571 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
572
573 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
574 (filenames.h): New include.
575 * Makefile.in (corelow.o): Add dependency for filenames.h.
576
577 2008-02-08 Doug Evans <dje@google.com>
578
579 * source.c (find_and_open_source): Always rewrite absolute filenames.
580
581 2008-02-07 Doug Evans <dje@google.com>
582
583 * breakpoint.c: #include "hashtab.h".
584 (ambiguous_names_p): New fn.
585 (update_breakpoint_locations): When restoring bp enable status, don't
586 compare function names if any functions have same name.
587 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
588
589 2008-02-07 Joel Brobecker <brobecker@adacore.com>
590
591 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
592 instead of just a VEC*. Update use of SV.
593 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
594
595 2007-02-07 Joel Brobecker <brobecker@adacore.com>
596
597 * NEWS: Put all new commands since gdb-6.7 together.
598
599 2007-02-07 Joel Brobecker <brobecker@adacore.com>
600
601 * ada-lang.c: #include "vec.h".
602 (struct string_vector, new_string_vector, string_vector_append):
603 Delete.
604 (char_ptr): New typedef.
605 (DEF_VEC_P (char_ptr)): New VEC type.
606 (symbol_completion_add): Update profile to take the new VEC type
607 instead of the old string_vector structure. Update code accordingly.
608 (ada_make_symbol_completion_list): Use the new VEC type instead of
609 the old string_vector structure, and update the code accordingly.
610 * Makefile.in (ada-lang.o): Add dependency on vec.h.
611
612 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
613
614 * p-exp.y: Set current_type in missing places.
615 (leftdiv_is_integer): New static variable.
616 Typecast right operand of BINOP_DIV to long_double if both operands
617 are integers.
618
619 2008-02-06 Maciej W. Rozycki <macro@mips.com>
620
621 * remote-mips.c (set_breakpoint): Rename to...
622 (mips_set_breakpoint): ... this.
623 (clear_breakpoint): Rename to...
624 (mips_clear_breakpoint): ... this.
625 (common_breakpoint): Rename to...
626 (mips_common_breakpoint): ... this.
627 (check_lsi_error): Rename to...
628 (mips_check_lsi_error): ... this.
629
630 2007-02-05 Joel Brobecker <brobecker@adacore.com>
631
632 * language.h (struct language_defn): Add new field
633 la_make_symbol_completion_list.
634 * symtab.c (default_make_symbol_completion_list): Renames
635 make_symbol_completion_list.
636 (make_symbol_completion_list): New function.
637 * symtab.h (default_make_symbol_completion_list): Add declaration.
638 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
639 (auto_language, local_language): Likewise.
640 * objc-lang.c (objc_language_defn): Likewise.
641 * scm-lang.c (scm_language_defn): Likewise.
642 * m2-lang.c (m2_language_defn): Likewise.
643 * f-lang.c (f_language_defn): Likewise.
644 * jv-lang.c (java_language_defn): Likewise.
645 * p-lang.c (pascal_language_defn): Likewise.
646 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
647 (minimal_language_defn): Likewise.
648 * ada-lang.c (struct string_vector): New structure.
649 (new_string_vector, string_vector_append, ada_unqualified_name)
650 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
651 (ada_make_symbol_completion_list): New functions.
652 (ada_language_defn): Set la_make_symbol_completion_list.
653 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
654 this function is static.
655
656 2008-02-05 Kevin Buettner <kevinb@redhat.com>
657
658 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
659 to account for call site optimizations.
660
661 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
662
663 * tracepoint.c (read_actions): Handle end-of-text indicator
664 in action list properly. (Committed by Jim Blandy)
665
666 2008-02-05 Jim Blandy <jimb@red-bean.com>
667
668 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
669 pseudoregister, not an internal error.
670 Reported by: Andrzej Zaborowski
671
672 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
673
674 * varobj.c (c_value_of_variable): Use xstrdup.
675
676 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
677
678 Update stored rendition of varobj value when format changes.
679 * varobj.c (varobj_set_display_format): Recomputed
680 print_value.
681 (c_value_of_variable): Return print_value.
682
683 2008-02-03 Doug Evans <dje@google.com>
684
685 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
686 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
687 * valops.c (value_one): New function.
688 * value.h (value_one): Declare.
689
690 Fix argument promotion for binary arithmetic ops for C.
691 * valarith.c (unop_result_type): New fn.
692 (binop_result_type): New fn.
693 (value_binop): Move result type computation to binop_result_type.
694 (value_pos, value_neg, value_complement): Move result type
695 computation to unop_result_type.
696
697 PR 2384
698 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
699 Return basetype, fieldno if found. All callers updated.
700 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
701 objfile.
702 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
703 * symfile.h (fill_in_vptr_fieldno): Delete.
704
705 2008-02-02 Doug Evans <dje@google.com>
706
707 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
708
709 * typeprint.c (*): Whitespace cleanup.
710
711 2008-02-02 Mark Kettenis <kettenis@gnu.org>
712 Luis Machado <luisgpm@br.ibm.com>
713 Thiago Jung Bauermann <bauerman@br.ibm.com>
714
715 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
716 don't fit into registerson the stack the way GCC does.
717
718 2008-02-01 Joel Brobecker <brobecker@adacore.com>
719
720 * symtab.c (symbol_set_names): Do not add an entry in the demangling
721 hash table for Ada symbols. Just store the linkage name as is,
722 and leave the demangled_name as NULL.
723
724 2007-02-01 Joel Brobecker <brobecker@adacore.com>
725
726 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
727 in the global scope.
728 (new_symbol): Likewise.
729
730 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
731
732 * breakpoint.c (break_command_1): Return void.
733 (break_command_really): Return void. Rethrow
734 exceptions instead of returning.
735 (gdb_breakpoint): Remove the error_message parameter.
736 Return void. Rename to set_breakpoint.
737 * gdb.h (gdb_breakpoint): Rename and move to...
738 * breakpoint.h (set_breakpoint): ...here.
739 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
740 event hooks even if exception is thrown. Adjust to
741 gdb_breakpoint interface changes.
742
743
744 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
745
746 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
747 float in both first and second word in the doubleword, to support
748 old and new ABIs.
749
750 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
751
752 Properly rethrow exception. This fixes errors
753 about non-existent functions for -break-insert.
754 * breakpoint.c (break_command_really): Use throw_exception
755 for rethrowing. If rethrowing, don't print the exception.
756
757 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
758
759 * NEWS: Mention Decimal Floating Point support.
760
761 2008-01-31 Joel Brobecker <brobecker@adacore.com>
762
763 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
764 value type to builtin_type_void_func_ptr.
765
766 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
767
768 * s390-tdep.c (is_float_singleton, is_float_like,
769 alignment_of, s390_return_value): Make checks for
770 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
771
772 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
773 Thiago Jung Bauermann <bauerman@br.ibm.com>
774
775 * infcmd.c (default_print_registers_info): Also print hex
776 raw contents for TYPE_CODE_DECFLOAT registers.
777 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
778 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
779 (rs6000_register_name): Add support for DFP pseudo-registers.
780 (rs6000_pseudo_register_type): Likewise.
781 rs6000_pseudo_register_reggroup_p): Likewise.
782 (ppc_pseudo_register_read): New function.
783 (ppc_pseudo_register_write): Likewise.
784 (rs6000_pseudo_register_read): Likewise.
785 (rs6000_pseudo_register_write): Likewise.
786 (e500_pseudo_register_read): Move checks to
787 rs6000_pseudo_register_read.
788 (e500_pseudo_register_write): Move checks to
789 rs6000_pseudo_register_write.
790 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
791 rs6000_pseudo_register_read and rs6000_pseudo_register_write
792 in gdbarch if SPE or DFP is available. Adjust gdbarch's
793 num_pseudo_regs to account for DFP pseudo regs.
794
795 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
796
797 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
798 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
799 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
800 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
801 e500_pseudo_register_read, e500_pseudo_register_write): Use
802 IS_SPE_PSEUDOREG macro.
803 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
804 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
805 Remove initialization of tdep->ppc_ev31_regnum.
806
807 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
808
809 * printcmd.c (print_formatted): Handle references as for unformatted
810 prints.
811
812 2008-01-30 Joel Brobecker <brobecker@adacore.com>
813
814 * eval.c (evaluate_subexp_standard): Add handling of user
815 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
816
817 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
818
819 * eval.c (evaluate_subexp_standard): Support
820 BINOP_INTDIV opcode.
821
822 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
823
824 * valarith.c (value_binop): Add floating-point BINOP_MIN and
825 BINOP_MAX cases.
826 For BINOP_EXP, use length and signedness of left operand only for
827 result, as for shifts.
828 For integral operands to BINOP_EXP, use new integer_pow and
829 uinteger_pow functions so as to get full range of results.
830 (integer_pow): New function.
831 (uinteger_pow): New function.
832
833 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
834
835 Use vector for varobj_list_children interface.
836 * gdb/varobj.c (varobj_list_children): Return vector
837 of varobjs.
838 * gdb/varobj.h (varobj_list_children): Adjust
839 prototype.
840 (varobj_p): Declare. Declare vector thereof.
841 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
842 for varobj_list_children change.
843 * Makefile.in (varobj_h): Update dependencies.
844
845 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
846
847 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
848 TYPE_CODE_DECFLOAT arguments.
849 (ppc64_sysv_abi_push_dummy_call) Likewise.
850 (get_decimal_float_return_value): New function.
851 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
852 values by calling get_decimal_float_return_value.
853 (ppc64_sysv_abi_return_value): Likewise.
854
855 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
856
857 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
858 for preprocessor macro information. Formatting changes.
859
860 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
861
862 * remote.c (struct remote_state): Add cached_wait_status.
863 (remote_exec_file): New variable.
864 (PACKET_vAttach, PACKET_vRun): New constants.
865 (extended_remote_restart): Do not query for status.
866 (struct start_remote_args): New.
867 (remote_start_remote): Take it as a second argument. Check
868 whether the target is running. Issue an error for non-running
869 non-extended targets. Cache the wait status. Set inferior_ptid
870 here.
871 (remote_open_1): Prompt to disconnect non-running targets. Make
872 sure the target is marked running. Do not set inferior_ptid here.
873 Update call to remote_start_remote. Do not call remote_check_symbols
874 if the target is not running.
875 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
876 argument. Handle a non-running target.
877 (remote_detach): Use it.
878 (extended_remote_detach): New.
879 (remote_disconnect): Fix typo. Use remoute_mourn_1.
880 (extended_remote_attach_1, extended_remote_attach)
881 (extended_async_remote_attach): New.
882 (remote_vcont_resume): Remove unused variable.
883 (remote_wait, remote_async_wait): Use any cached wait status.
884 (putpkt_binary, getpkt): Clear any cached wait status.
885 (extended_remoute_mourn_1): New.
886 (extended_remote_mourn): Use it.
887 (extended_async_remote_mourn, extended_remote_run): New.
888 (extended_remote_create_inferior_1): New.
889 (extended_remote_create_inferior): Use it.
890 (extended_remote_async_create_inferior): Likewise.
891 (remote_xfer_partial): Skip for non-executing targets.
892 (init_extended_remote_ops): Set to_detach and to_attach.
893 (init_extended_async_remote_ops): Likewise. Use
894 extended_async_remote_mourn.
895 (_initialize_remote): Register vAttach, vRun, and
896 set remote exec-file.
897 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
898
899 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
900
901 * Makefile.in (symfile.o): Update.
902 * NEWS: Mention exec tracing support.
903 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
904 exec events.
905 * infcmd.c (kill_if_already_running, detach_command)
906 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
907 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
908 (follow_exec): Do not check may_follow_exec. Do not mourn and push
909 targets. Apply the sysroot path to the loaded executable. Use
910 no_shared_libraries.
911 * linux-nat.c (linux_child_follow_fork): Print fork following
912 messages if verbose.
913 (kill_wait_callback): Kill again before waiting a second time.
914 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
915 no_shared_libraries.
916
917 2008-01-29 Joel Brobecker <brobecker@adacore.com>
918
919 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
920
921 2008-01-29 Joel Brobecker <brobecker@adacore.com>
922
923 * nto-tdep.h: Remove #include "defs.h".
924 * nto-tdep.c: Add #include "defs.h".
925 * Makefile.in (nto_tdep_h): Update dependencies.
926 (nto-tdep.o): Likewise.
927
928 2008-01-29 Joel Brobecker <brobecker@adacore.com>
929
930 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
931 and use it.
932 (proceed, start_remote): Update call to wait_for_inferior.
933 * inferior.h (wait_for_inferior): Update declaration.
934 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
935 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
936 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
937 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
938
939 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
940
941 * varobj (adjust_value_for_child_access): Added checking for
942 returned value from gdb_value_ind.
943 (c_describe_child): Likewise.
944 (cplus_describe_child): Fixed a typo.
945
946 2008-01-29 Jim Blandy <jimb@red-bean.com>
947
948 * MAINTAINERS: Update my info.
949
950 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
951
952 Use multiple locations for hardware watchpoints.
953 This eliminates the need to traverse value chain, doing
954 various checks, in three different places.
955
956 * breakpoint.h (struct bp_location): New fields
957 lengths and watchpoint_type.
958 (struct breakpoint): Remove the val_chain field.
959 * breakpoint.c (is_hardware_watchpoint): New.
960 (free_valchain): Remove.
961 (update_watchpoint): New.
962 (insert_bp_location): For hardware watchpoint, just
963 directly insert it.
964 (insert_breakpoints): Call update_watchpoint_locations
965 on all watchpoints. If we have failed to insert
966 any location of a hardware watchpoint, remove all inserted
967 locations.
968 (remove_breakpoint): For hardware watchpoints, directly
969 remove location.
970 (watchpoints_triggered): Iterate over locations.
971 (bpstat_stop_status): Use only first location of
972 a resource watchpoint.
973 (delete_breakpoint): Don't call free_valchain.
974 (print_one_breakpoint): Don't print all
975 locations for watchpoints.
976 (breakpoint_re_set_one): Use update_watchpoint for
977 watchpoints.
978
979 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
980
981 Don't reset watchpoint block on solib load.
982
983 * breakpoint.c (insert_bp_location): For watchpoints,
984 recompute condition.
985 (breakpoint_re_set_one): Instead of recomputing value
986 and condition for watchpoints, just reset value and
987 let insert_breakpoints/insert_bp_location recompute it.
988 Don't do anything about disabled watchpoint.
989
990 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
991
992 * valarith.c (value_binop): Handle unsigned integer
993 division by zero.
994
995 2008-01-28 Kevin Buettner <kevinb@redhat.com>
996
997 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
998 instruction pattern that appears frequently in position
999 independent code. Fix bug in code which looks for "fmov" and
1000 backtracks if no "fmov" is found.
1001
1002 2008-01-28 Doug Evans <dje@google.com>
1003
1004 * dbxread.c (read_dbx_symtab): Fix indentation.
1005 Reformat comments to 80 columns.
1006 Move local var def closer to only use.
1007
1008 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1009
1010 * fork-child.c (SHELL_FILE): Remove #ifndef.
1011 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1012
1013 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1014
1015 * i386-tdep.c (i386_skip_noop): New function.
1016 (i386_analyze_prologue): Call i386_skip_noop function.
1017
1018 2008-01-24 Michael Snyder <msnyder@specifix.com>
1019
1020 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1021 * win32-nat.c (win32_xfer_partial): Ditto.
1022 * target.c (default_xfer_partial): Minor whitespace adjustment.
1023
1024 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1025
1026 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1027 strip bit 1 even if pc doesn't point to thumb code.
1028
1029 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1030
1031 * remote.c (remote_wait): Handle SIGINT between packets.
1032 (remote_async_wait): Likewise.
1033
1034 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1035 Chris Demetriou <cgd@google.com>
1036
1037 * thread.c (add_thread_silent): Renamed
1038 from add_thread.
1039 (print_thread_events): New variable definition.
1040 (show_print_thread_events): New function.
1041 (_initialize_thread): Add "set print thread-events" and
1042 "show print thread-events" commands.
1043 (add_thread): Announce new thread.
1044 * gdbthread.h (add_thread_silent): Declare.
1045 (print_thread_events): New variable declaration.
1046 * inf-ttrace.c (inf_ttrace_wait): Don't
1047 inform about new thread, as add_thread is always
1048 called too, and will take care of that.
1049 * infrun.c (handle_inferior_event): Likewise.
1050 * procfs.c (procfs_wait): Likewise.
1051 * remote.c (remote_currthread): Likewise.
1052 * sol-thread.c (sol_thread_wait): Likewise.
1053 * win32-nat.c (get_win32_debug_event): Likewise.
1054 * linux-thread-db.c (attach_thread): Likewise.
1055 Remove the verbose parameter.
1056 (check_event): Make detach_thread be verbose
1057 only if print_thread_events is set.
1058 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1059 about new thread. This is called only from
1060 linux-thread-db.c:attach_thread, which will take care.
1061 Remove the verbose parameter.
1062 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1063
1064 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1065
1066 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1067
1068 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1069
1070 * breakpoint.c (break_command_really): New parameter
1071 ignore_count.
1072 (break_command_1): Pass 0 as
1073 ignore_count to break_command_really.
1074 (gdb_breakpoint): Pass ignore_count to
1075 break_command_really.
1076
1077 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1078
1079 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1080 sigcontext struct via pointer.
1081 (struct sigframe comment): Update to show new field `psc'.
1082
1083 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1084
1085 * infrun.c (handle_inferior_event): If
1086 we failed to remove breakpoints, error,
1087 don't try to increment PC by hand.
1088
1089 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1090
1091 Add NetBSD/hppa target and host support.
1092
1093 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1094 (hppabsd_gregset): Move to ...
1095 (hppabsd_regset_from_core_section): Rename
1096 hppaobsd_regset_from_core_section and move to ...
1097 (hppabsd_find_global_pointer): Update comment.
1098 (hppabsd_init_abi): Make global. Do not register
1099 hppabsd_regset_from_core_section.
1100 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1101 move to ...
1102 (_initialize_hppabsd_tdep): Move to ...
1103 * hppaobsd-tdep.c: ... here. New file.
1104 * hppnbsd-tdep.c: New file.
1105 * hppnbsd-nat.c: New file.
1106 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1107 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1108 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1109 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1110 * configure.host (hppa*-*-netbsd*): New entry.
1111 * configure.tgt (hppa*-*-netbsd*): New entry.
1112 (hppa*-*-openbsd*): Update.
1113 * NEWS (New native configuration): Mention NetBSD/hppa.
1114 (New targets): Mention NetBSD/hppa.
1115
1116 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1117
1118 * gdbarch.sh (function_list): Add new property bits_big_endian to
1119 gdbarch structure.
1120 * gdbarch.{c,h}: Regenerate.
1121
1122 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1123 gdbarch_bits_big_endian (comment).
1124 (unpack_field_as_long, modify_field): Likewise.
1125 * value.h: Likewise (comment).
1126 * valops.c (value_slice): Likewise.
1127 * valarith.c (value_subscript, value_bit_index): Likewise.
1128 * gdbtypes.h (field): Likewise (comment).
1129 * eval.c (evaluate_subexp_standard): Likewise.
1130 * dwarf2read.c (dwarf2_add_field): Likewise.
1131 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1132 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1133
1134 * defs.h (BITS_BIG_ENDIAN): Remove.
1135
1136 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1137
1138 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1139 function calls.
1140 * m2-exp.y (yylex): Likewise.
1141 * objc-exp.y (yylex): Likewise.
1142
1143 * defs.h (DEPRECATED_STREQN): Remove.
1144
1145 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1146
1147 * MAINTAINERS: Update my email address.
1148
1149 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1150
1151 * README: Mention gdbserver/README.
1152
1153 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1154
1155 * valarith.c (value_binop): Handle BINOP_INTDIV
1156 for unsigned and signed integers.
1157
1158 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1159
1160 * s390-tdep.c (s390_gdbarch_init): Set default long double
1161 type to 128-bit IEEE quad.
1162
1163 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1164
1165 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1166
1167 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1168
1169 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1170
1171 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1172 * value.c: All callers changed.
1173
1174 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1175
1176 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1177 DEPRECATED_STREQ by its expression.
1178 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1179 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1180 (scan_xcoff_symtab): Likewise.
1181 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1182 * f-lang.c (find_common_for_function): Likewise.
1183 * objc-exp.y (parse_number): Likewise.
1184
1185 * defs.h (DEPRECATED_STREQ): Remove.
1186
1187 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1188
1189 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1190 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1191 get_frame_arch to get at the current_architecture. Update AM33_MODE
1192 call.
1193 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1194 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1195 architecture.
1196 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1197
1198 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1199
1200 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1201 parameter.
1202 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1203
1204 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1205 current_gdbarch by gdbarch. Update caller.
1206
1207 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1208 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1209 the current architecture. Update calls of
1210 amd64_native_gregset_supplies_p.
1211 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1212 (amd64bsd_store_inferior_registers): Likewise.
1213
1214 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1215
1216 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1217 Replace current_gdbarch by gdbarch. Update caller.
1218
1219 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1220
1221 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1222 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1223 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1224 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1225 (stabsect_build_psymtabs): Fix indentation.
1226
1227 2008-01-15 Michael Snyder <msnyder@specifix.com>
1228
1229 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1230
1231 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1232
1233 * win32-nat.c (win32_create_inferior): Restore code calling
1234 CloseHandle on ProcessInformation structure.
1235
1236 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1237
1238 * configure.ac: Check for void * as 3 argument of ptrace.
1239 * configure: regenerate.
1240
1241 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1242
1243 * alpha-tdep.c (alpha_heuristic_proc_start)
1244 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1245 current_gdbarch by gdbarch.
1246
1247 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1248 current architecture by frame_info. Update alpha_heuristic_proc_start
1249 call.
1250
1251 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1252 get_frame_arch to get at the current architecture by frame_info. Update
1253 alpha_sigtramp_register_address call.
1254
1255 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1256 current_gdbarch by gdbarch. Update caller.
1257 (convert_to_extended, convert_from_extended): Add endianess parameter
1258 for comparison. Update caller.
1259 (arm_extract_return_value, arm_store_return_value): Use
1260 get_regcache_arch to get at the current architecture.
1261
1262 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1263 current_gdbarch by gdbarch. Update caller.
1264 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1265 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1266
1267 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1268 gdbarch as parameter. Update caller.
1269 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1270 current_gdbarch by gdbarch. Update caller.
1271
1272 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1273 update caller. Replace current_gdbarch by gdbarch.
1274
1275 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1276 the current architecture. Replace current_gdbarch by gdbarch.
1277 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1278 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1279 expression. Add gdbarch as parameter and replace current_gdbarch with
1280 it. Update caller.
1281 (M6811_TDEP): Remove.
1282 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1283 architecture.
1284 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1285 current_gdbarch by gdbarch. Update caller.
1286
1287 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1288 update caller.
1289 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1290 by gdbarch.
1291
1292 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1293 caller. Relace current_gdbarch by gdbarch.
1294 (altivec_register_p, spe_register_p): Likewise.
1295 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1296 parameter.
1297 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1298 altivec_register_p and spe_register_p.
1299
1300 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1301 caller. Replace current_gdbarch by gdbarch.
1302 (score_analyze_prologue): use get_frame_arch to get at the current
1303 architecture.
1304
1305 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1306 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1307 current_gdbarch by gdbarch. Update caller.
1308 (sparc_frame_cache): Use get_frame_arch to get at the current
1309 architecture.
1310 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1311 sparc_analyze_prologue.
1312
1313 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1314 parameter.
1315
1316 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1317
1318 * exec.c: #include "arch-utils.h"
1319 (print_section_info): Use gdbarch_from_bfd to get at the
1320 current architecture. Replace current_gdbarch. Fix indention. Replace
1321 deprecated_print_address_numeric by paddress.
1322 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1323
1324 * valprint.c (val_print_string): Replace
1325 deprecated_print_address_numeric.
1326 * tracepoint.c (trace_mention, scope_info): Likewise.
1327 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1328 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1329 (maintenance_check_symtabs): Likewise.
1330 * symfile.c (list_overlays_command): Likewise.
1331 * stack.c (frame_info, print_block_frame_labels): Likewise.
1332 * printcmd.c (print_address, print_address_demangle)
1333 (address_info): Likewise.
1334 * corefile.c (memory_error): Likewise.
1335 * infcmd.c (jump_command): Likewise.
1336 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1337 (mention, delete_breakpoint): Likewise.
1338 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1339 * dwarf2read.c (dump_die): Likewise.
1340 * ada-valprint.c (ada_val_print_1): Likewise.
1341 * f-valprint.c (f_val_print): Likewise.
1342 * linux-fork.c (info_forks_command): Likewise.
1343 * m32r-com.c (m32r_load_section, m32r_load)
1344 (m32r_upload_command): Likewise.
1345
1346 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1347
1348 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1349
1350 * gdbarch.sh (skip_prologue): Add gdbarch
1351 as parameter.
1352 * gdbarch.{c,h}: Regenerate.
1353
1354 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1355 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1356 * avr-tdep.c (avr_skip_prologue): Likewise.
1357 * cris-tdep.c (cris_skip_prologue): Likewise.
1358 * frv-tdep.c (frv_skip_prologue): Likewise.
1359 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1360 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1361 * i386-tdep.c (i386_skip_prologue): Likewise.
1362 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1363 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1364 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1365 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1366 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1367 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1368 * mep-tdep.c (mep_skip_prologue): Likewise.
1369 * mips-tdep.c (mips_skip_prologue): Likewise.
1370 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1371 * mt-tdep.c (mt_skip_prologue): Likewise.
1372 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1373 * score-tdep.c (score_skip_prologue): Likewise.
1374 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1375 * sh-tdep.c (sh_skip_prologue): Likewise.
1376 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1377 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1378 * spu-tdep.c (spu_skip_prologue): Likewise.
1379 * v850-tdep.c (v850_skip_prologue): Likewise.
1380 * vax-tdep.c (vax_skip_prologue): Likewise.
1381 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1382 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1383
1384 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1385 current_gdbarch by gdbarch.
1386 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1387 * s390-tdep.c (s390_skip_prologue): Likewise.
1388
1389 2008-01-10 Doug Evans <dje@google.com>
1390
1391 * defs.h (struct continuation_arg): Fix typo in comment.
1392 * target.c (target_translate_tls_address): Fix comment spelling error.
1393
1394 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1395
1396 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1397 (DOUBLEST_SCAN_FORMAT): Likewise.
1398 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1399 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1400 * c-exp.y (parse_number): Likewise.
1401 * jv-exp.y (parse_number): Likewise.
1402 * objc-exp.y (parse_number): Likewise.
1403 * p-exp.y (parse_number): Likewise.
1404
1405 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1406
1407 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1408 (check_typedef): Likewise.
1409
1410 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1411
1412 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1413 seen_double_big_d, treat the new H, D, and DD modifiers as length
1414 modifiers.
1415
1416 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1417
1418 * dwarf2read.c (read_enumeration_type): Add comment.
1419
1420 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1421
1422 * config.in: Regenerate.
1423
1424 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1425
1426 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1427 Make non-static.
1428 (ada_convert_actuals): Delete.
1429 * ada-lang.h (ada_convert_actual): Add declaration.
1430 (ada_convert_actuals): Remove declaration.
1431 * infcall.c: #include "ada-lang.h".
1432 (value_arg_coerce): Add new parameter sp. Update function
1433 documetnation. Add handling of Ada function call parameters.
1434 * Makefile.in (infcall.o): Update dependencies.
1435
1436 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1437
1438 * ada-lang.c (ensure_lval): Fix value lval kind.
1439 (convert_actual): Add handling for arguments passed by reference.
1440
1441 2008-01-08 Doug Evans <dje@google.com>
1442
1443 * dbxread.c (read_dbx_symtab): Fix indentation.
1444
1445 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1446
1447 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1448 (valarith.o): Depend on dfp.h.
1449 (valops.o): Likewise.
1450 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1451 (set_decnumber_context): New function.
1452 (decimal_check_errors): Likewise.
1453 (decimal_from_number): Likewise.
1454 (decimal_to_number): Likewise.
1455 (decimal_from_string): Use set_decnumber_context and
1456 decimal_check_errors.
1457 (decimal_from_integral): New function.
1458 (decimal_from_floating): Likewise.
1459 (decimal_to_double): Likewise.
1460 (promote_decimal): Likewise.
1461 (decimal_binop): Likewise.
1462 (decimal_is_zero): Likewise.
1463 (decimal_compare): Likewise.
1464 (decimal_convert): Likewise.
1465 * dfp.h (decimal_from_integral): New prototype.
1466 (decimal_from_floating): Likewise.
1467 (decimal_to_double): Likewise.
1468 (decimal_binop): Likewise.
1469 (decimal_is_zero): Likewise.
1470 (decimal_compare): Likewise.
1471 (decimal_convert): Likewise.
1472 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1473 call to value_from_decfloat.
1474 * valarith.c: Include dfp.h.
1475 (value_args_as_decimal): New function.
1476 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1477 (value_logical_not): Likewise.
1478 (value_equal): Likewise.
1479 (value_less): Likewise.
1480 (value_pos): Likewise.
1481 (value_neg): Formatting fix.
1482 * valops.c: Include dfp.h.
1483 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1484 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1485 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1486 (value_from_decfloat): Remove expect_type argument.
1487 * value.h (value_from_decfloat): Update prototype.
1488
1489 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1490
1491 Ignore change in name of dynamic linker during
1492 execution on Solaris. This also unbreaks pending breakpoints.
1493
1494 * solist.h (struct target_so_ops): New field same.
1495 * solib-svr4.c (svr4_same): New.
1496 (_initialize_svr4_solib): Register svr4_same.
1497 * solib.c (update_solib_list): Use ops->same, if available.
1498
1499 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1500
1501 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1502 when using MS-DOS paths.
1503
1504 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1505
1506 * NEWS: Mention --pid and --core command line behaviour changes.
1507
1508 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1509
1510 * main.c (captured_main): Remove 'count' varible and the
1511 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1512 --pid options were issued simultaneously. If an explicit pid
1513 option was passed, don't fallback to core file. Detect extra
1514 arguments better in the presence of explicit pid or core
1515 arguments.
1516
1517 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1518
1519 * ada-lang.c (ada_which_variant_applies): Correctly compute
1520 the value of the discriminant when the variant record is packed.
1521
1522 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1523
1524 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1525 that are used to differentiate homonyms.
1526
1527 2008-01-04 Jerome Guitton <guitton@adacore.com>
1528
1529 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1530 when the type is an anonymous pointer type.
1531 (ada_check_typedef): Avoid a seg fault when the type is null.
1532 * ada-typeprint.c (print_array_type): Add support for pointer
1533 to packed arrays.
1534
1535 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1536
1537 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1538
1539 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1540
1541 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1542 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1543
1544 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1545
1546 * ada-exp.y (chop_separator): New function.
1547 (write_selectors): Rewrite to re-use chop_separator.
1548 (ada_nget_field_index, get_symbol_field_type): New functions.
1549 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1550 expressions.
1551
1552 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1553
1554 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1555 of SYMBOL_VALUE when working with function symbols.
1556
1557 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1558
1559 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1560 expressions. These expressions do not need to be rewriten.
1561
1562 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1563
1564 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1565 the given die is a declaration.
1566
1567 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1568
1569 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1570 Handle properly the case when the index type is an enumerated type.
1571 Do not return the subtype of the bounds type, just return the
1572 bounds type directly - this is not needed and is more consistent
1573 with what we do for arrays when no XA parallel type exists.
1574
1575 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1576
1577 * ada-lang.c (static_unwrap_type): Add forward declaration.
1578 (template_to_static_fixed_type): Fields of dynamic types sometimes
1579 also need to be unwrapped. Take this into account.
1580 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1581 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1582 * ada-typeprint.c (ada_print_type): Get the typename from
1583 the original type, not the base type.
1584
1585 2008-01-03 Jerome Guitton <guitton@adacore.com>
1586
1587 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1588 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1589 Update calls to ada_to_fixed_type.
1590 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1591 for the tag.
1592 (ada_to_fixed_type): Add check_tag parameter; do not look for
1593 tag if null. When looking for a tag, use a fixed record type.
1594 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1595 * ada-valprint.c (printable_val_type, ada_value_print): Update
1596 calls to ada_to_fixed_type.
1597
1598 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1599
1600 * doublest.c (convert_floatformat_to_doublest): Call
1601 floatformat_to_doublest instead of floatformat_to_double and use
1602 DOUBLEST variables.
1603 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1604 instead of floatformat_from_double and use DOUBLEST variables.
1605
1606 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1607
1608 * MAINTAINERS (Write After Approval): Add self.
1609
1610 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1611
1612 * symfile.c (set_initial_language): Make non-static.
1613 * symfile.h (set_initial_language): Add declaration.
1614 * language.c: #include "symfile.h".
1615 (set_language): Call set_initial_language if the frame language
1616 could not be determined.
1617
1618 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1619
1620 * eval.c (evaluate_subexp_for_address): Provide frame address to
1621 locate_var_value only if it will be needed.
1622
1623 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1624
1625 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1626
1627 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1628
1629 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1630 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1631 This is needed to make sure that any other treatment applied
1632 to the resulting value does not fail for spurious reason,
1633 such as trying to take the address of this value.
1634
1635 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1636
1637 * ada-lang.c (ada_value_equal): Dereference reference types when
1638 comparing arrays.
1639
1640 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1641
1642 Updated copyright notices for most files.
1643
1644 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1645
1646 * win32-nat.c (psapi_module_handle): Remove static.
1647 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1648 return first module found if base_address is zero. Don't initialize
1649 psapi function pointers here. Convert to cygwin paths when
1650 appropriate.
1651 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1652 executable name. Use get_module_name when that fails or when
1653 !__CYGWIN__.
1654 (_initialize_psapi): New function. Initialize psapi stuff before it is
1655 needed or issue a warning if it is not found. Move psapi_module_handle
1656 here.
1657
1658 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1659
1660 * ada-lang.c (ada_remove_trailing_digits): New function.
1661 (ada_remove_po_subprogram_suffix): New function.
1662 (ada_decode): Improve. Move the description of the algorithm
1663 directly inside the code, instead of in the function global
1664 description.
1665
1666 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1667
1668 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1669 and always print the dereferenced value.
1670
1671 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1672
1673 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1674 of the case where the first argument is a reference.
1675 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1676
1677 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1678
1679 Implement support for Ada interface types.
1680
1681 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1682 (ada_is_ignored_field): Ignore fields that are a dispatch table
1683 of a tagged type.
1684
1685 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1686
1687 * top.c (print_gdb_version): Update copyright year.
1688
1689 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1690
1691 * ChangeLog-2007: New ChangeLog rotation.
1692 * ChangeLog: Reset for 2008.
1693 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1694 ChangeLog-2007.
1695
1696 For older changes see ChangeLog-2007.
1697 \f
1698 Local Variables:
1699 mode: change-log
1700 left-margin: 8
1701 fill-column: 74
1702 version-control: never
1703 coding: utf-8
1704 End: