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