1 2008-03-07 Joel Brobecker <brobecker@adacore.com>
3 * solib-svr4.c (svr4_same_1): New function, originally extracted
4 from svr4_same and expanded to handle the sparc64 case.
5 (svr4_same): Move up and reimplement using svr4_same_1.
6 (enable_break): Use svr4_same_1 to do shared library name comparisons.
8 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
10 * MAINTAINERS: Move self to Paper trail.
12 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
14 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
15 * event-loop.c (call_async_signal_handler): New.
16 * event-loop.h (call_async_signal_handler)
17 (gdb_call_async_signal_handler): Declare.
18 (mark_async_signal_handler): Add comments.
19 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
20 * mingw-hdep.c (sigint_event, sigint_handler): New.
21 (gdb_select): Use them. Wait for the readline signal handler
23 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
24 * posix-hdep.c (gdb_call_async_signal_handler): New function.
25 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
27 (remote_fileio_ctrl_c_signal_handler): Use
28 gdb_call_async_signal_handler.
29 (initialize_remote_fileio): Initialize sigint_fileio_token.
30 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
31 not initialize tokens here.
32 (handle_remote_sigint_twice): Likewise. Reinstall
34 (async_remote_interrupt_twice): Just call interrupt_query.
35 (cleanup_sigint_signal_handler): Do not delete tokens.
36 (remote_interrupt, remote_interrupt_twice): Use
37 gdb_call_async_signal_handler.
38 (interrupt_query): Reinstall the default signal handler.
39 (_initialize_remote): Initialize tokens here.
41 2008-03-04 Joel Brobecker <brobecker@adacore.com>
43 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
44 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
45 Change the type of the lr register to code_ptr.
46 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
47 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
48 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
49 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
50 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
51 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
52 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
54 2008-03-03 James E. Wilson <wilson@tuliptree.org>
56 * MAINTAINERS: Update my email address.
58 2008-03-03 Keith Seitz <keiths@redhat.com>
60 From Dave Murphy <davem@devkitpro.org>:
61 * configure.ac: Set tcl configdir to win under mingw.
62 * configure: Regenerate.
64 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
66 * breakpoint.c (fetch_watchpoint_value): New function.
67 (update_watchpoint): Set and clear val_valid. Use
68 fetch_watchpoint_value. Handle unreadable values on the
69 value chain. Correct check for user-requested array watchpoints.
70 (breakpoint_init_inferior): Clear val_valid.
71 (watchpoint_value_print): New function.
72 (print_it_typical): Use it. Do not free or clear old_val. Print
73 watchpoints even if old_val == NULL.
74 (watchpoint_check): Use fetch_watchpoint_value. Check for values
75 becoming readable or unreadable.
76 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
77 (do_enable_watchpoint): Likewise.
78 * breakpoint.h (struct breakpoint): Update comment for val. Add
80 * NEWS: Mention watchpoints on inaccessible memory.
82 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
84 * Makefile.in (i386-nat.o): Update.
85 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
87 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
89 * i386-nat.c (i386_stopped_data_address): Take two arguments.
90 (i386_stopped_by_watchpoint): Update call.
91 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
92 * config/i386/nm-i386.h: Conditionalize definitions on
93 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
94 (i386_use_watchpoints): Declare.
95 (i386_stopped_data_address): Update.
96 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
97 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
99 2008-02-29 Joel Brobecker <brobecker@adacore.com>
101 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
102 * version.in: Bump version to 6.8.50.20080229-cvs.
104 2008-02-28 Markus Deuling <deuling@de.ibm.com>
106 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
109 2008-02-28 Tom Tromey <tromey@redhat.com>
111 * infcmd.c (notice_args_read): Print result of get_inferior_args.
113 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
115 * infcmd.c (kill_if_already_running): Make static. Use
116 target_require_runnable.
117 * target.c (target_require_runnable): New.
118 * target.h (target_require_runnable): Declare.
120 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
122 * frame.c (reinit_frame_cache): Only annotate if frames were
125 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
127 * regformats/reg-ppc.dat: Rename "ps" to "msr".
128 * regformats/reg-ppc64.dat: Likewise.
130 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
132 * features/Makefile (%.dat): Emit xmltarget statement.
134 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
135 Generate code to set gdbserver_xmltarget in init_registers_${name}.
137 * regformats/arm-with-iwmmxt.dat: Regenerate.
138 * regformats/mips64-linux.dat: Regenerate.
139 * regformats/mips-linux.dat: Regenerate.
140 * regformats/rs6000/powerpc-32.dat: Regenerate.
141 * regformats/rs6000/powerpc-64.dat: Regenerate.
142 * regformats/rs6000/powerpc-e500.dat: Regenerate.
144 * regformats/reg-arm.dat: Add xmlarch statement.
145 * regformats/reg-i386.dat: Likewise.
146 * regformats/reg-i386-linux.dat: Likewise.
147 * regformats/reg-x86-64-linux.dat: Likewise.
148 * regformats/reg-spu.dat: Likewise.
150 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
152 * remote.c (remote_wait, remote_async_wait): Stop if we receive
155 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
157 * utils.c (debug_timestamp): New.
158 (vfprintf_unfiltered): Print timestamps if requested.
159 (show_debug_timestamp): New.
160 (initialize_utils): Register "set debug timestamp".
161 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
163 2008-02-27 Joel Brobecker <brobecker@adacore.com>
165 * breakpoint.c (skip_prologue_sal): New function.
166 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
167 computed from a line number.
169 2008-02-27 Joel Brobecker <brobecker@adacore.com>
171 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
172 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
173 Set PC register type to "code_ptr".
174 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
175 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
176 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
177 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
178 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
179 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
180 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
183 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
185 * regformats/regdat.sh: Rename init_registers function in
186 generated file to init_registers_${name}.
188 * regformats/reg-crisv32.dat: Set "name" to crisv32.
189 * regformats/reg-ppc64.dat: Set "name" to ppc64.
190 * regformats/reg-s390x.dat: Set "name" to s390x.
192 2008-02-26 Greg Law <glaw@undo-software.com>
194 * regcache.c (registers_changed): Call reinit_frame_cache.
196 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
198 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
199 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
200 and svr4_fetch_objfile_link_map.
201 * Makefile.in (sh-linux-tdep.o): Update.
203 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
205 * amd64-tdep.c (amd64_classify): Add support for decimal float
207 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
208 use the struct return convention.
210 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
212 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
213 to old format. Discard breakpoint address if shared library is
215 (breakpoint_1): Adjust formatting of table header accordingly.
217 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
219 * remote.c (remote_get_threadlist): If the response
220 is empty, don't try to parse it.
222 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
224 Unbreak 'target async'.
225 * serial.c (serial_async): Set the
226 handler function before enabling async
229 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
231 * solib-svr4.c (enable_break): Convert r_brk to a code address.
233 2008-02-21 Pedro Alves <pedro@codesourcery.com>
235 * remote.c (extended_remote_attach_1): Set attach_flag.
236 (extended_remote_create_inferior_1): Clear attach_flag.
238 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
240 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
242 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
243 * solib-svr4.c (solib_svr4_r_brk): New.
244 (open_symbol_file_object, svr4_current_sos): Always check the
246 (svr4_fetch_objfile_link_map): Do not set debug_base.
247 (enable_break): Use r_brk if it is set.
248 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
249 (svr4_lp64_fetch_link_map_offsets): Likewise.
250 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
252 2008-02-20 Markus Deuling <deuling@de.ibm.com>
253 Mark Kettenis <kettenis@gnu.org>
255 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
256 trad_frame_saved_reg.
257 (trad-frame.h): New include.
259 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
260 instead of frame_obstack_zalloc.
261 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
263 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
265 2008-02-20 Markus Deuling <deuling@de.ibm.com>
267 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
268 from disassemble_info instead of gdbarch_byte_order.
270 * mips-tdep.c (gdb_print_insn_mips): Likewise.
271 * arm-tdep.c (gdb_print_insn_arm): Likewise.
273 2008-02-20 Markus Deuling <deuling@de.ibm.com>
275 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
276 gdbarch as parameter.
278 * gdbarch.{c,h}: Regenerate.
280 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
282 * mem-break.c (default_memory_insert_breakpoint)
283 (default_memory_remove_breakpoint): Likewise.
284 * target.h (default_memory_remove_breakpoint)
285 (default_memory_insert_breakpoint): Likewise.
287 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
288 parameter. Replace current_gdbarch by gdbarch.
289 * m32r-tdep.c (m32r_memory_insert_breakpoint)
290 (m32r_memory_remove_breakpoint): Likewise.
292 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
294 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
296 2008-02-19 Joel Brobecker <brobecker@adacore.com>
298 * NEWS: Add entry describing Add support improvements.
300 2008-02-18 Markus Deuling <deuling@de.ibm.com>
302 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
305 2008-02-18 Markus Deuling <deuling@de.ibm.com>
307 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
308 register_offset_hack anymore.
310 * regcache.{c,h} (register_offset_hack): Remove.
312 2008-02-18 Markus Deuling <deuling@de.ibm.com>
314 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
316 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
317 current_gdbarch by gdbarch.
318 (hppa64_hpux_find_global_pointer): Likewise.
319 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
320 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
323 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
325 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
327 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
330 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
331 replace current_gdbarch by gdbarch.
332 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
334 2008-02-18 Markus Deuling <deuling@de.ibm.com>
336 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
337 and replace current_gdbarch by gdbarch.
339 (store_register): Update call for exec_one_dummy_insn.
340 (fetch_register, store_register): Update call of regmap.
342 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
343 parameter and replace current_gdbarch by gdbarch.
345 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
346 the current architecture. Update call for getregs_supplies and
348 (ppcnbsd_fetch_inferior_registers): Likewise.
350 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
351 replace current_gdbarch by gdbarch.
352 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
353 get_regcache_arch to get at the current architecture. Update call for
356 2008-02-18 Markus Deuling <deuling@de.ibm.com>
358 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
361 2008-02-15 Markus Deuling <deuling@de.ibm.com>
363 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
365 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
367 * NEWS: Mention pending breakpints in MI.
369 2008-02-14 Markus Deuling <deuling@de.ibm.com>
371 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
373 2008-02-13 Markus Deuling <deuling@de.ibm.com>
375 Add script to build and test GDB using enable-targets=all.
377 * gdb_buildall.sh: New file.
379 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
381 * NEWS (New native configurations): Xtensa GNU/Linux.
382 (New targets): Xtensa GNU/Linux.
383 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
385 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
386 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
387 * configure.tgt (xtensa*-*-linux*): New entry.
388 * xtensa-config.c (xtensa_tdep): New variable.
389 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
390 (rmap): Change format based on new macro XTREG.
391 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
392 * xtensa-linux-nat.c: New.
393 * xtensa-linux-tdep.c: New.
394 * xtensa-xtregs.c: New.
395 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
396 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
397 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
398 (xtensa_register_t): New field coprocessor.
399 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
400 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
401 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
402 Update to handle privileged registers.
403 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
404 (xtensa_push_dummy_call): Set windowstart register correctly.
405 (call0_analyze_prologue): Initialize xtensa_default_isa.
406 (xtensa_derive_tdep): New.
407 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
408 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
409 Call xtensa_derive_tdep().
410 * config/xtensa/linux.mh: New.
411 * regformats/reg-xtensa.dat: New.
413 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
415 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
416 (filenames.h): New include.
417 * Makefile.in (corelow.o): Add dependency for filenames.h.
419 2008-02-08 Doug Evans <dje@google.com>
421 * source.c (find_and_open_source): Always rewrite absolute filenames.
423 2008-02-07 Doug Evans <dje@google.com>
425 * breakpoint.c: #include "hashtab.h".
426 (ambiguous_names_p): New fn.
427 (update_breakpoint_locations): When restoring bp enable status, don't
428 compare function names if any functions have same name.
429 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
431 2008-02-07 Joel Brobecker <brobecker@adacore.com>
433 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
434 instead of just a VEC*. Update use of SV.
435 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
437 2007-02-07 Joel Brobecker <brobecker@adacore.com>
439 * NEWS: Put all new commands since gdb-6.7 together.
441 2007-02-07 Joel Brobecker <brobecker@adacore.com>
443 * ada-lang.c: #include "vec.h".
444 (struct string_vector, new_string_vector, string_vector_append):
446 (char_ptr): New typedef.
447 (DEF_VEC_P (char_ptr)): New VEC type.
448 (symbol_completion_add): Update profile to take the new VEC type
449 instead of the old string_vector structure. Update code accordingly.
450 (ada_make_symbol_completion_list): Use the new VEC type instead of
451 the old string_vector structure, and update the code accordingly.
452 * Makefile.in (ada-lang.o): Add dependency on vec.h.
454 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
456 * p-exp.y: Set current_type in missing places.
457 (leftdiv_is_integer): New static variable.
458 Typecast right operand of BINOP_DIV to long_double if both operands
461 2008-02-06 Maciej W. Rozycki <macro@mips.com>
463 * remote-mips.c (set_breakpoint): Rename to...
464 (mips_set_breakpoint): ... this.
465 (clear_breakpoint): Rename to...
466 (mips_clear_breakpoint): ... this.
467 (common_breakpoint): Rename to...
468 (mips_common_breakpoint): ... this.
469 (check_lsi_error): Rename to...
470 (mips_check_lsi_error): ... this.
472 2007-02-05 Joel Brobecker <brobecker@adacore.com>
474 * language.h (struct language_defn): Add new field
475 la_make_symbol_completion_list.
476 * symtab.c (default_make_symbol_completion_list): Renames
477 make_symbol_completion_list.
478 (make_symbol_completion_list): New function.
479 * symtab.h (default_make_symbol_completion_list): Add declaration.
480 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
481 (auto_language, local_language): Likewise.
482 * objc-lang.c (objc_language_defn): Likewise.
483 * scm-lang.c (scm_language_defn): Likewise.
484 * m2-lang.c (m2_language_defn): Likewise.
485 * f-lang.c (f_language_defn): Likewise.
486 * jv-lang.c (java_language_defn): Likewise.
487 * p-lang.c (pascal_language_defn): Likewise.
488 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
489 (minimal_language_defn): Likewise.
490 * ada-lang.c (struct string_vector): New structure.
491 (new_string_vector, string_vector_append, ada_unqualified_name)
492 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
493 (ada_make_symbol_completion_list): New functions.
494 (ada_language_defn): Set la_make_symbol_completion_list.
495 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
496 this function is static.
498 2008-02-05 Kevin Buettner <kevinb@redhat.com>
500 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
501 to account for call site optimizations.
503 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
505 * tracepoint.c (read_actions): Handle end-of-text indicator
506 in action list properly. (Committed by Jim Blandy)
508 2008-02-05 Jim Blandy <jimb@red-bean.com>
510 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
511 pseudoregister, not an internal error.
512 Reported by: Andrzej Zaborowski
514 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
516 * varobj.c (c_value_of_variable): Use xstrdup.
518 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
520 Update stored rendition of varobj value when format changes.
521 * varobj.c (varobj_set_display_format): Recomputed
523 (c_value_of_variable): Return print_value.
525 2008-02-03 Doug Evans <dje@google.com>
527 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
528 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
529 * valops.c (value_one): New function.
530 * value.h (value_one): Declare.
532 Fix argument promotion for binary arithmetic ops for C.
533 * valarith.c (unop_result_type): New fn.
534 (binop_result_type): New fn.
535 (value_binop): Move result type computation to binop_result_type.
536 (value_pos, value_neg, value_complement): Move result type
537 computation to unop_result_type.
540 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
541 Return basetype, fieldno if found. All callers updated.
542 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
544 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
545 * symfile.h (fill_in_vptr_fieldno): Delete.
547 2008-02-02 Doug Evans <dje@google.com>
549 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
551 * typeprint.c (*): Whitespace cleanup.
553 2008-02-02 Mark Kettenis <kettenis@gnu.org>
554 Luis Machado <luisgpm@br.ibm.com>
555 Thiago Jung Bauermann <bauerman@br.ibm.com>
557 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
558 don't fit into registerson the stack the way GCC does.
560 2008-02-01 Joel Brobecker <brobecker@adacore.com>
562 * symtab.c (symbol_set_names): Do not add an entry in the demangling
563 hash table for Ada symbols. Just store the linkage name as is,
564 and leave the demangled_name as NULL.
566 2007-02-01 Joel Brobecker <brobecker@adacore.com>
568 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
570 (new_symbol): Likewise.
572 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
574 * breakpoint.c (break_command_1): Return void.
575 (break_command_really): Return void. Rethrow
576 exceptions instead of returning.
577 (gdb_breakpoint): Remove the error_message parameter.
578 Return void. Rename to set_breakpoint.
579 * gdb.h (gdb_breakpoint): Rename and move to...
580 * breakpoint.h (set_breakpoint): ...here.
581 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
582 event hooks even if exception is thrown. Adjust to
583 gdb_breakpoint interface changes.
586 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
588 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
589 float in both first and second word in the doubleword, to support
592 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
594 Properly rethrow exception. This fixes errors
595 about non-existent functions for -break-insert.
596 * breakpoint.c (break_command_really): Use throw_exception
597 for rethrowing. If rethrowing, don't print the exception.
599 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
601 * NEWS: Mention Decimal Floating Point support.
603 2008-01-31 Joel Brobecker <brobecker@adacore.com>
605 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
606 value type to builtin_type_void_func_ptr.
608 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
610 * s390-tdep.c (is_float_singleton, is_float_like,
611 alignment_of, s390_return_value): Make checks for
612 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
614 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
615 Thiago Jung Bauermann <bauerman@br.ibm.com>
617 * infcmd.c (default_print_registers_info): Also print hex
618 raw contents for TYPE_CODE_DECFLOAT registers.
619 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
620 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
621 (rs6000_register_name): Add support for DFP pseudo-registers.
622 (rs6000_pseudo_register_type): Likewise.
623 rs6000_pseudo_register_reggroup_p): Likewise.
624 (ppc_pseudo_register_read): New function.
625 (ppc_pseudo_register_write): Likewise.
626 (rs6000_pseudo_register_read): Likewise.
627 (rs6000_pseudo_register_write): Likewise.
628 (e500_pseudo_register_read): Move checks to
629 rs6000_pseudo_register_read.
630 (e500_pseudo_register_write): Move checks to
631 rs6000_pseudo_register_write.
632 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
633 rs6000_pseudo_register_read and rs6000_pseudo_register_write
634 in gdbarch if SPE or DFP is available. Adjust gdbarch's
635 num_pseudo_regs to account for DFP pseudo regs.
637 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
639 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
640 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
641 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
642 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
643 e500_pseudo_register_read, e500_pseudo_register_write): Use
644 IS_SPE_PSEUDOREG macro.
645 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
646 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
647 Remove initialization of tdep->ppc_ev31_regnum.
649 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
651 * printcmd.c (print_formatted): Handle references as for unformatted
654 2008-01-30 Joel Brobecker <brobecker@adacore.com>
656 * eval.c (evaluate_subexp_standard): Add handling of user
657 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
659 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
661 * eval.c (evaluate_subexp_standard): Support
664 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
666 * valarith.c (value_binop): Add floating-point BINOP_MIN and
668 For BINOP_EXP, use length and signedness of left operand only for
669 result, as for shifts.
670 For integral operands to BINOP_EXP, use new integer_pow and
671 uinteger_pow functions so as to get full range of results.
672 (integer_pow): New function.
673 (uinteger_pow): New function.
675 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
677 Use vector for varobj_list_children interface.
678 * gdb/varobj.c (varobj_list_children): Return vector
680 * gdb/varobj.h (varobj_list_children): Adjust
682 (varobj_p): Declare. Declare vector thereof.
683 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
684 for varobj_list_children change.
685 * Makefile.in (varobj_h): Update dependencies.
687 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
689 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
690 TYPE_CODE_DECFLOAT arguments.
691 (ppc64_sysv_abi_push_dummy_call) Likewise.
692 (get_decimal_float_return_value): New function.
693 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
694 values by calling get_decimal_float_return_value.
695 (ppc64_sysv_abi_return_value): Likewise.
697 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
700 for preprocessor macro information. Formatting changes.
702 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
704 * remote.c (struct remote_state): Add cached_wait_status.
705 (remote_exec_file): New variable.
706 (PACKET_vAttach, PACKET_vRun): New constants.
707 (extended_remote_restart): Do not query for status.
708 (struct start_remote_args): New.
709 (remote_start_remote): Take it as a second argument. Check
710 whether the target is running. Issue an error for non-running
711 non-extended targets. Cache the wait status. Set inferior_ptid
713 (remote_open_1): Prompt to disconnect non-running targets. Make
714 sure the target is marked running. Do not set inferior_ptid here.
715 Update call to remote_start_remote. Do not call remote_check_symbols
716 if the target is not running.
717 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
718 argument. Handle a non-running target.
719 (remote_detach): Use it.
720 (extended_remote_detach): New.
721 (remote_disconnect): Fix typo. Use remoute_mourn_1.
722 (extended_remote_attach_1, extended_remote_attach)
723 (extended_async_remote_attach): New.
724 (remote_vcont_resume): Remove unused variable.
725 (remote_wait, remote_async_wait): Use any cached wait status.
726 (putpkt_binary, getpkt): Clear any cached wait status.
727 (extended_remoute_mourn_1): New.
728 (extended_remote_mourn): Use it.
729 (extended_async_remote_mourn, extended_remote_run): New.
730 (extended_remote_create_inferior_1): New.
731 (extended_remote_create_inferior): Use it.
732 (extended_remote_async_create_inferior): Likewise.
733 (remote_xfer_partial): Skip for non-executing targets.
734 (init_extended_remote_ops): Set to_detach and to_attach.
735 (init_extended_async_remote_ops): Likewise. Use
736 extended_async_remote_mourn.
737 (_initialize_remote): Register vAttach, vRun, and
738 set remote exec-file.
739 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
741 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
743 * Makefile.in (symfile.o): Update.
744 * NEWS: Mention exec tracing support.
745 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
747 * infcmd.c (kill_if_already_running, detach_command)
748 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
749 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
750 (follow_exec): Do not check may_follow_exec. Do not mourn and push
751 targets. Apply the sysroot path to the loaded executable. Use
753 * linux-nat.c (linux_child_follow_fork): Print fork following
755 (kill_wait_callback): Kill again before waiting a second time.
756 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
759 2008-01-29 Joel Brobecker <brobecker@adacore.com>
761 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
763 2008-01-29 Joel Brobecker <brobecker@adacore.com>
765 * nto-tdep.h: Remove #include "defs.h".
766 * nto-tdep.c: Add #include "defs.h".
767 * Makefile.in (nto_tdep_h): Update dependencies.
768 (nto-tdep.o): Likewise.
770 2008-01-29 Joel Brobecker <brobecker@adacore.com>
772 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
774 (proceed, start_remote): Update call to wait_for_inferior.
775 * inferior.h (wait_for_inferior): Update declaration.
776 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
777 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
778 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
779 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
781 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
783 * varobj (adjust_value_for_child_access): Added checking for
784 returned value from gdb_value_ind.
785 (c_describe_child): Likewise.
786 (cplus_describe_child): Fixed a typo.
788 2008-01-29 Jim Blandy <jimb@red-bean.com>
790 * MAINTAINERS: Update my info.
792 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
794 Use multiple locations for hardware watchpoints.
795 This eliminates the need to traverse value chain, doing
796 various checks, in three different places.
798 * breakpoint.h (struct bp_location): New fields
799 lengths and watchpoint_type.
800 (struct breakpoint): Remove the val_chain field.
801 * breakpoint.c (is_hardware_watchpoint): New.
802 (free_valchain): Remove.
803 (update_watchpoint): New.
804 (insert_bp_location): For hardware watchpoint, just
806 (insert_breakpoints): Call update_watchpoint_locations
807 on all watchpoints. If we have failed to insert
808 any location of a hardware watchpoint, remove all inserted
810 (remove_breakpoint): For hardware watchpoints, directly
812 (watchpoints_triggered): Iterate over locations.
813 (bpstat_stop_status): Use only first location of
814 a resource watchpoint.
815 (delete_breakpoint): Don't call free_valchain.
816 (print_one_breakpoint): Don't print all
817 locations for watchpoints.
818 (breakpoint_re_set_one): Use update_watchpoint for
821 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
823 Don't reset watchpoint block on solib load.
825 * breakpoint.c (insert_bp_location): For watchpoints,
827 (breakpoint_re_set_one): Instead of recomputing value
828 and condition for watchpoints, just reset value and
829 let insert_breakpoints/insert_bp_location recompute it.
830 Don't do anything about disabled watchpoint.
832 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
834 * valarith.c (value_binop): Handle unsigned integer
837 2008-01-28 Kevin Buettner <kevinb@redhat.com>
839 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
840 instruction pattern that appears frequently in position
841 independent code. Fix bug in code which looks for "fmov" and
842 backtracks if no "fmov" is found.
844 2008-01-28 Doug Evans <dje@google.com>
846 * dbxread.c (read_dbx_symtab): Fix indentation.
847 Reformat comments to 80 columns.
848 Move local var def closer to only use.
850 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
852 * fork-child.c (SHELL_FILE): Remove #ifndef.
853 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
855 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
857 * i386-tdep.c (i386_skip_noop): New function.
858 (i386_analyze_prologue): Call i386_skip_noop function.
860 2008-01-24 Michael Snyder <msnyder@specifix.com>
862 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
863 * win32-nat.c (win32_xfer_partial): Ditto.
864 * target.c (default_xfer_partial): Minor whitespace adjustment.
866 2008-01-24 Pedro Alves <pedro@codesourcery.com>
868 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
869 strip bit 1 even if pc doesn't point to thumb code.
871 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
873 * remote.c (remote_wait): Handle SIGINT between packets.
874 (remote_async_wait): Likewise.
876 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
877 Chris Demetriou <cgd@google.com>
879 * thread.c (add_thread_silent): Renamed
881 (print_thread_events): New variable definition.
882 (show_print_thread_events): New function.
883 (_initialize_thread): Add "set print thread-events" and
884 "show print thread-events" commands.
885 (add_thread): Announce new thread.
886 * gdbthread.h (add_thread_silent): Declare.
887 (print_thread_events): New variable declaration.
888 * inf-ttrace.c (inf_ttrace_wait): Don't
889 inform about new thread, as add_thread is always
890 called too, and will take care of that.
891 * infrun.c (handle_inferior_event): Likewise.
892 * procfs.c (procfs_wait): Likewise.
893 * remote.c (remote_currthread): Likewise.
894 * sol-thread.c (sol_thread_wait): Likewise.
895 * win32-nat.c (get_win32_debug_event): Likewise.
896 * linux-thread-db.c (attach_thread): Likewise.
897 Remove the verbose parameter.
898 (check_event): Make detach_thread be verbose
899 only if print_thread_events is set.
900 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
901 about new thread. This is called only from
902 linux-thread-db.c:attach_thread, which will take care.
903 Remove the verbose parameter.
904 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
906 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
908 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
910 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
912 * breakpoint.c (break_command_really): New parameter
914 (break_command_1): Pass 0 as
915 ignore_count to break_command_really.
916 (gdb_breakpoint): Pass ignore_count to
917 break_command_really.
919 2008-01-21 Kevin Buettner <kevinb@redhat.com>
921 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
922 sigcontext struct via pointer.
923 (struct sigframe comment): Update to show new field `psc'.
925 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
927 * infrun.c (handle_inferior_event): If
928 we failed to remove breakpoints, error,
929 don't try to increment PC by hand.
931 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
933 Add NetBSD/hppa target and host support.
935 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
936 (hppabsd_gregset): Move to ...
937 (hppabsd_regset_from_core_section): Rename
938 hppaobsd_regset_from_core_section and move to ...
939 (hppabsd_find_global_pointer): Update comment.
940 (hppabsd_init_abi): Make global. Do not register
941 hppabsd_regset_from_core_section.
942 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
944 (_initialize_hppabsd_tdep): Move to ...
945 * hppaobsd-tdep.c: ... here. New file.
946 * hppnbsd-tdep.c: New file.
947 * hppnbsd-nat.c: New file.
948 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
949 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
950 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
951 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
952 * configure.host (hppa*-*-netbsd*): New entry.
953 * configure.tgt (hppa*-*-netbsd*): New entry.
954 (hppa*-*-openbsd*): Update.
955 * NEWS (New native configuration): Mention NetBSD/hppa.
956 (New targets): Mention NetBSD/hppa.
958 2008-01-18 Markus Deuling <deuling@de.ibm.com>
960 * gdbarch.sh (function_list): Add new property bits_big_endian to
962 * gdbarch.{c,h}: Regenerate.
964 * value.c (struct value): Replace BITS_BIG_ENDIAN by
965 gdbarch_bits_big_endian (comment).
966 (unpack_field_as_long, modify_field): Likewise.
967 * value.h: Likewise (comment).
968 * valops.c (value_slice): Likewise.
969 * valarith.c (value_subscript, value_bit_index): Likewise.
970 * gdbtypes.h (field): Likewise (comment).
971 * eval.c (evaluate_subexp_standard): Likewise.
972 * dwarf2read.c (dwarf2_add_field): Likewise.
973 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
974 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
976 * defs.h (BITS_BIG_ENDIAN): Remove.
978 2008-01-18 Markus Deuling <deuling@de.ibm.com>
980 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
982 * m2-exp.y (yylex): Likewise.
983 * objc-exp.y (yylex): Likewise.
985 * defs.h (DEPRECATED_STREQN): Remove.
987 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
989 * MAINTAINERS: Update my email address.
991 2008-01-17 Jim Blandy <jimb@codesourcery.com>
993 * README: Mention gdbserver/README.
995 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
997 * valarith.c (value_binop): Handle BINOP_INTDIV
998 for unsigned and signed integers.
1000 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1002 * s390-tdep.c (s390_gdbarch_init): Set default long double
1003 type to 128-bit IEEE quad.
1005 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1007 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1009 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1011 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1013 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1014 * value.c: All callers changed.
1016 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1018 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1019 DEPRECATED_STREQ by its expression.
1020 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1021 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1022 (scan_xcoff_symtab): Likewise.
1023 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1024 * f-lang.c (find_common_for_function): Likewise.
1025 * objc-exp.y (parse_number): Likewise.
1027 * defs.h (DEPRECATED_STREQ): Remove.
1029 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1031 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1032 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1033 get_frame_arch to get at the current_architecture. Update AM33_MODE
1035 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1036 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1038 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1040 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1042 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1044 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1046 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1047 current_gdbarch by gdbarch. Update caller.
1049 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1050 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1051 the current architecture. Update calls of
1052 amd64_native_gregset_supplies_p.
1053 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1054 (amd64bsd_store_inferior_registers): Likewise.
1056 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1058 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1059 Replace current_gdbarch by gdbarch. Update caller.
1061 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1063 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1064 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1065 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1066 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1067 (stabsect_build_psymtabs): Fix indentation.
1069 2008-01-15 Michael Snyder <msnyder@specifix.com>
1071 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1073 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1075 * win32-nat.c (win32_create_inferior): Restore code calling
1076 CloseHandle on ProcessInformation structure.
1078 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1080 * configure.ac: Check for void * as 3 argument of ptrace.
1081 * configure: regenerate.
1083 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1085 * alpha-tdep.c (alpha_heuristic_proc_start)
1086 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1087 current_gdbarch by gdbarch.
1089 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1090 current architecture by frame_info. Update alpha_heuristic_proc_start
1093 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1094 get_frame_arch to get at the current architecture by frame_info. Update
1095 alpha_sigtramp_register_address call.
1097 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1098 current_gdbarch by gdbarch. Update caller.
1099 (convert_to_extended, convert_from_extended): Add endianess parameter
1100 for comparison. Update caller.
1101 (arm_extract_return_value, arm_store_return_value): Use
1102 get_regcache_arch to get at the current architecture.
1104 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1105 current_gdbarch by gdbarch. Update caller.
1106 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1107 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1109 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1110 gdbarch as parameter. Update caller.
1111 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1112 current_gdbarch by gdbarch. Update caller.
1114 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1115 update caller. Replace current_gdbarch by gdbarch.
1117 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1118 the current architecture. Replace current_gdbarch by gdbarch.
1119 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1120 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1121 expression. Add gdbarch as parameter and replace current_gdbarch with
1123 (M6811_TDEP): Remove.
1124 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1126 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1127 current_gdbarch by gdbarch. Update caller.
1129 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1131 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1134 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1135 caller. Relace current_gdbarch by gdbarch.
1136 (altivec_register_p, spe_register_p): Likewise.
1137 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1139 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1140 altivec_register_p and spe_register_p.
1142 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1143 caller. Replace current_gdbarch by gdbarch.
1144 (score_analyze_prologue): use get_frame_arch to get at the current
1147 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1148 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1149 current_gdbarch by gdbarch. Update caller.
1150 (sparc_frame_cache): Use get_frame_arch to get at the current
1152 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1153 sparc_analyze_prologue.
1155 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1158 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1160 * exec.c: #include "arch-utils.h"
1161 (print_section_info): Use gdbarch_from_bfd to get at the
1162 current architecture. Replace current_gdbarch. Fix indention. Replace
1163 deprecated_print_address_numeric by paddress.
1164 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1166 * valprint.c (val_print_string): Replace
1167 deprecated_print_address_numeric.
1168 * tracepoint.c (trace_mention, scope_info): Likewise.
1169 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1170 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1171 (maintenance_check_symtabs): Likewise.
1172 * symfile.c (list_overlays_command): Likewise.
1173 * stack.c (frame_info, print_block_frame_labels): Likewise.
1174 * printcmd.c (print_address, print_address_demangle)
1175 (address_info): Likewise.
1176 * corefile.c (memory_error): Likewise.
1177 * infcmd.c (jump_command): Likewise.
1178 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1179 (mention, delete_breakpoint): Likewise.
1180 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1181 * dwarf2read.c (dump_die): Likewise.
1182 * ada-valprint.c (ada_val_print_1): Likewise.
1183 * f-valprint.c (f_val_print): Likewise.
1184 * linux-fork.c (info_forks_command): Likewise.
1185 * m32r-com.c (m32r_load_section, m32r_load)
1186 (m32r_upload_command): Likewise.
1188 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1190 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1192 * gdbarch.sh (skip_prologue): Add gdbarch
1194 * gdbarch.{c,h}: Regenerate.
1196 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1197 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1198 * avr-tdep.c (avr_skip_prologue): Likewise.
1199 * cris-tdep.c (cris_skip_prologue): Likewise.
1200 * frv-tdep.c (frv_skip_prologue): Likewise.
1201 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1202 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1203 * i386-tdep.c (i386_skip_prologue): Likewise.
1204 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1205 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1206 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1207 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1208 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1209 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1210 * mep-tdep.c (mep_skip_prologue): Likewise.
1211 * mips-tdep.c (mips_skip_prologue): Likewise.
1212 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1213 * mt-tdep.c (mt_skip_prologue): Likewise.
1214 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1215 * score-tdep.c (score_skip_prologue): Likewise.
1216 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1217 * sh-tdep.c (sh_skip_prologue): Likewise.
1218 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1219 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1220 * spu-tdep.c (spu_skip_prologue): Likewise.
1221 * v850-tdep.c (v850_skip_prologue): Likewise.
1222 * vax-tdep.c (vax_skip_prologue): Likewise.
1223 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1224 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1226 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1227 current_gdbarch by gdbarch.
1228 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1229 * s390-tdep.c (s390_skip_prologue): Likewise.
1231 2008-01-10 Doug Evans <dje@google.com>
1233 * defs.h (struct continuation_arg): Fix typo in comment.
1234 * target.c (target_translate_tls_address): Fix comment spelling error.
1236 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1238 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1239 (DOUBLEST_SCAN_FORMAT): Likewise.
1240 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1241 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1242 * c-exp.y (parse_number): Likewise.
1243 * jv-exp.y (parse_number): Likewise.
1244 * objc-exp.y (parse_number): Likewise.
1245 * p-exp.y (parse_number): Likewise.
1247 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1249 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1250 (check_typedef): Likewise.
1252 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1254 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1255 seen_double_big_d, treat the new H, D, and DD modifiers as length
1258 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1260 * dwarf2read.c (read_enumeration_type): Add comment.
1262 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1264 * config.in: Regenerate.
1266 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1268 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1270 (ada_convert_actuals): Delete.
1271 * ada-lang.h (ada_convert_actual): Add declaration.
1272 (ada_convert_actuals): Remove declaration.
1273 * infcall.c: #include "ada-lang.h".
1274 (value_arg_coerce): Add new parameter sp. Update function
1275 documetnation. Add handling of Ada function call parameters.
1276 * Makefile.in (infcall.o): Update dependencies.
1278 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1280 * ada-lang.c (ensure_lval): Fix value lval kind.
1281 (convert_actual): Add handling for arguments passed by reference.
1283 2008-01-08 Doug Evans <dje@google.com>
1285 * dbxread.c (read_dbx_symtab): Fix indentation.
1287 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1289 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1290 (valarith.o): Depend on dfp.h.
1291 (valops.o): Likewise.
1292 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1293 (set_decnumber_context): New function.
1294 (decimal_check_errors): Likewise.
1295 (decimal_from_number): Likewise.
1296 (decimal_to_number): Likewise.
1297 (decimal_from_string): Use set_decnumber_context and
1298 decimal_check_errors.
1299 (decimal_from_integral): New function.
1300 (decimal_from_floating): Likewise.
1301 (decimal_to_double): Likewise.
1302 (promote_decimal): Likewise.
1303 (decimal_binop): Likewise.
1304 (decimal_is_zero): Likewise.
1305 (decimal_compare): Likewise.
1306 (decimal_convert): Likewise.
1307 * dfp.h (decimal_from_integral): New prototype.
1308 (decimal_from_floating): Likewise.
1309 (decimal_to_double): Likewise.
1310 (decimal_binop): Likewise.
1311 (decimal_is_zero): Likewise.
1312 (decimal_compare): Likewise.
1313 (decimal_convert): Likewise.
1314 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1315 call to value_from_decfloat.
1316 * valarith.c: Include dfp.h.
1317 (value_args_as_decimal): New function.
1318 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1319 (value_logical_not): Likewise.
1320 (value_equal): Likewise.
1321 (value_less): Likewise.
1322 (value_pos): Likewise.
1323 (value_neg): Formatting fix.
1324 * valops.c: Include dfp.h.
1325 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1326 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1327 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1328 (value_from_decfloat): Remove expect_type argument.
1329 * value.h (value_from_decfloat): Update prototype.
1331 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1333 Ignore change in name of dynamic linker during
1334 execution on Solaris. This also unbreaks pending breakpoints.
1336 * solist.h (struct target_so_ops): New field same.
1337 * solib-svr4.c (svr4_same): New.
1338 (_initialize_svr4_solib): Register svr4_same.
1339 * solib.c (update_solib_list): Use ops->same, if available.
1341 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1343 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1344 when using MS-DOS paths.
1346 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1348 * NEWS: Mention --pid and --core command line behaviour changes.
1350 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1352 * main.c (captured_main): Remove 'count' varible and the
1353 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1354 --pid options were issued simultaneously. If an explicit pid
1355 option was passed, don't fallback to core file. Detect extra
1356 arguments better in the presence of explicit pid or core
1359 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1361 * ada-lang.c (ada_which_variant_applies): Correctly compute
1362 the value of the discriminant when the variant record is packed.
1364 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1366 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1367 that are used to differentiate homonyms.
1369 2008-01-04 Jerome Guitton <guitton@adacore.com>
1371 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1372 when the type is an anonymous pointer type.
1373 (ada_check_typedef): Avoid a seg fault when the type is null.
1374 * ada-typeprint.c (print_array_type): Add support for pointer
1377 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1379 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1381 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1383 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1384 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1386 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1388 * ada-exp.y (chop_separator): New function.
1389 (write_selectors): Rewrite to re-use chop_separator.
1390 (ada_nget_field_index, get_symbol_field_type): New functions.
1391 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1394 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1396 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1397 of SYMBOL_VALUE when working with function symbols.
1399 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1401 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1402 expressions. These expressions do not need to be rewriten.
1404 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1406 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1407 the given die is a declaration.
1409 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1411 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1412 Handle properly the case when the index type is an enumerated type.
1413 Do not return the subtype of the bounds type, just return the
1414 bounds type directly - this is not needed and is more consistent
1415 with what we do for arrays when no XA parallel type exists.
1417 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1419 * ada-lang.c (static_unwrap_type): Add forward declaration.
1420 (template_to_static_fixed_type): Fields of dynamic types sometimes
1421 also need to be unwrapped. Take this into account.
1422 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1423 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1424 * ada-typeprint.c (ada_print_type): Get the typename from
1425 the original type, not the base type.
1427 2008-01-03 Jerome Guitton <guitton@adacore.com>
1429 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1430 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1431 Update calls to ada_to_fixed_type.
1432 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1434 (ada_to_fixed_type): Add check_tag parameter; do not look for
1435 tag if null. When looking for a tag, use a fixed record type.
1436 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1437 * ada-valprint.c (printable_val_type, ada_value_print): Update
1438 calls to ada_to_fixed_type.
1440 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1442 * doublest.c (convert_floatformat_to_doublest): Call
1443 floatformat_to_doublest instead of floatformat_to_double and use
1445 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1446 instead of floatformat_from_double and use DOUBLEST variables.
1448 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1450 * MAINTAINERS (Write After Approval): Add self.
1452 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1454 * symfile.c (set_initial_language): Make non-static.
1455 * symfile.h (set_initial_language): Add declaration.
1456 * language.c: #include "symfile.h".
1457 (set_language): Call set_initial_language if the frame language
1458 could not be determined.
1460 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1462 * eval.c (evaluate_subexp_for_address): Provide frame address to
1463 locate_var_value only if it will be needed.
1465 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1467 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1469 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1471 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1472 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1473 This is needed to make sure that any other treatment applied
1474 to the resulting value does not fail for spurious reason,
1475 such as trying to take the address of this value.
1477 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1479 * ada-lang.c (ada_value_equal): Dereference reference types when
1482 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1484 Updated copyright notices for most files.
1486 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1488 * win32-nat.c (psapi_module_handle): Remove static.
1489 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1490 return first module found if base_address is zero. Don't initialize
1491 psapi function pointers here. Convert to cygwin paths when
1493 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1494 executable name. Use get_module_name when that fails or when
1496 (_initialize_psapi): New function. Initialize psapi stuff before it is
1497 needed or issue a warning if it is not found. Move psapi_module_handle
1500 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1502 * ada-lang.c (ada_remove_trailing_digits): New function.
1503 (ada_remove_po_subprogram_suffix): New function.
1504 (ada_decode): Improve. Move the description of the algorithm
1505 directly inside the code, instead of in the function global
1508 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1510 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1511 and always print the dereferenced value.
1513 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1515 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1516 of the case where the first argument is a reference.
1517 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1519 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1521 Implement support for Ada interface types.
1523 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1524 (ada_is_ignored_field): Ignore fields that are a dispatch table
1527 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1529 * top.c (print_gdb_version): Update copyright year.
1531 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1533 * ChangeLog-2007: New ChangeLog rotation.
1534 * ChangeLog: Reset for 2008.
1535 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1538 For older changes see ChangeLog-2007.
1544 version-control: never