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