1 2008-03-10 Matt Rice <ratmice@gmail.com>
3 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8 of the data passing to strtoulst function.
9 (info_spu_signal_command): Likewise.
11 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
13 * mi/mi-interp.c (mi_command_loop): Remove
16 2008-03-07 Joel Brobecker <brobecker@adacore.com>
18 * remote.c (extended_remote_attach_1): Make local variable pid an int
21 2008-03-07 Joel Brobecker <brobecker@adacore.com>
23 * solib-svr4.c (svr4_same_1): New function, originally extracted
24 from svr4_same and expanded to handle the sparc64 case.
25 (svr4_same): Move up and reimplement using svr4_same_1.
26 (enable_break): Use svr4_same_1 to do shared library name comparisons.
28 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
30 * MAINTAINERS: Move self to Paper trail.
32 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
34 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
35 * event-loop.c (call_async_signal_handler): New.
36 * event-loop.h (call_async_signal_handler)
37 (gdb_call_async_signal_handler): Declare.
38 (mark_async_signal_handler): Add comments.
39 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
40 * mingw-hdep.c (sigint_event, sigint_handler): New.
41 (gdb_select): Use them. Wait for the readline signal handler
43 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
44 * posix-hdep.c (gdb_call_async_signal_handler): New function.
45 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
47 (remote_fileio_ctrl_c_signal_handler): Use
48 gdb_call_async_signal_handler.
49 (initialize_remote_fileio): Initialize sigint_fileio_token.
50 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
51 not initialize tokens here.
52 (handle_remote_sigint_twice): Likewise. Reinstall
54 (async_remote_interrupt_twice): Just call interrupt_query.
55 (cleanup_sigint_signal_handler): Do not delete tokens.
56 (remote_interrupt, remote_interrupt_twice): Use
57 gdb_call_async_signal_handler.
58 (interrupt_query): Reinstall the default signal handler.
59 (_initialize_remote): Initialize tokens here.
61 2008-03-04 Joel Brobecker <brobecker@adacore.com>
63 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
64 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
65 Change the type of the lr register to code_ptr.
66 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
67 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
68 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
69 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
70 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
71 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
72 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
74 2008-03-03 James E. Wilson <wilson@tuliptree.org>
76 * MAINTAINERS: Update my email address.
78 2008-03-03 Keith Seitz <keiths@redhat.com>
80 From Dave Murphy <davem@devkitpro.org>:
81 * configure.ac: Set tcl configdir to win under mingw.
82 * configure: Regenerate.
84 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
86 * breakpoint.c (fetch_watchpoint_value): New function.
87 (update_watchpoint): Set and clear val_valid. Use
88 fetch_watchpoint_value. Handle unreadable values on the
89 value chain. Correct check for user-requested array watchpoints.
90 (breakpoint_init_inferior): Clear val_valid.
91 (watchpoint_value_print): New function.
92 (print_it_typical): Use it. Do not free or clear old_val. Print
93 watchpoints even if old_val == NULL.
94 (watchpoint_check): Use fetch_watchpoint_value. Check for values
95 becoming readable or unreadable.
96 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
97 (do_enable_watchpoint): Likewise.
98 * breakpoint.h (struct breakpoint): Update comment for val. Add
100 * NEWS: Mention watchpoints on inaccessible memory.
102 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
104 * Makefile.in (i386-nat.o): Update.
105 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
106 i386_use_watchpoints.
107 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
108 i386_use_watchpoints.
109 * i386-nat.c (i386_stopped_data_address): Take two arguments.
110 (i386_stopped_by_watchpoint): Update call.
111 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
112 * config/i386/nm-i386.h: Conditionalize definitions on
113 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
114 (i386_use_watchpoints): Declare.
115 (i386_stopped_data_address): Update.
116 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
117 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
119 2008-02-29 Joel Brobecker <brobecker@adacore.com>
121 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
122 * version.in: Bump version to 6.8.50.20080229-cvs.
124 2008-02-28 Markus Deuling <deuling@de.ibm.com>
126 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
129 2008-02-28 Tom Tromey <tromey@redhat.com>
131 * infcmd.c (notice_args_read): Print result of get_inferior_args.
133 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
135 * infcmd.c (kill_if_already_running): Make static. Use
136 target_require_runnable.
137 * target.c (target_require_runnable): New.
138 * target.h (target_require_runnable): Declare.
140 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
142 * frame.c (reinit_frame_cache): Only annotate if frames were
145 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
147 * regformats/reg-ppc.dat: Rename "ps" to "msr".
148 * regformats/reg-ppc64.dat: Likewise.
150 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
152 * features/Makefile (%.dat): Emit xmltarget statement.
154 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
155 Generate code to set gdbserver_xmltarget in init_registers_${name}.
157 * regformats/arm-with-iwmmxt.dat: Regenerate.
158 * regformats/mips64-linux.dat: Regenerate.
159 * regformats/mips-linux.dat: Regenerate.
160 * regformats/rs6000/powerpc-32.dat: Regenerate.
161 * regformats/rs6000/powerpc-64.dat: Regenerate.
162 * regformats/rs6000/powerpc-e500.dat: Regenerate.
164 * regformats/reg-arm.dat: Add xmlarch statement.
165 * regformats/reg-i386.dat: Likewise.
166 * regformats/reg-i386-linux.dat: Likewise.
167 * regformats/reg-x86-64-linux.dat: Likewise.
168 * regformats/reg-spu.dat: Likewise.
170 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
172 * remote.c (remote_wait, remote_async_wait): Stop if we receive
175 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
177 * utils.c (debug_timestamp): New.
178 (vfprintf_unfiltered): Print timestamps if requested.
179 (show_debug_timestamp): New.
180 (initialize_utils): Register "set debug timestamp".
181 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
183 2008-02-27 Joel Brobecker <brobecker@adacore.com>
185 * breakpoint.c (skip_prologue_sal): New function.
186 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
187 computed from a line number.
189 2008-02-27 Joel Brobecker <brobecker@adacore.com>
191 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
192 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
193 Set PC register type to "code_ptr".
194 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
195 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
196 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
197 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
198 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
199 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
200 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
203 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
205 * regformats/regdat.sh: Rename init_registers function in
206 generated file to init_registers_${name}.
208 * regformats/reg-crisv32.dat: Set "name" to crisv32.
209 * regformats/reg-ppc64.dat: Set "name" to ppc64.
210 * regformats/reg-s390x.dat: Set "name" to s390x.
212 2008-02-26 Greg Law <glaw@undo-software.com>
214 * regcache.c (registers_changed): Call reinit_frame_cache.
216 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
218 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
219 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
220 and svr4_fetch_objfile_link_map.
221 * Makefile.in (sh-linux-tdep.o): Update.
223 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
225 * amd64-tdep.c (amd64_classify): Add support for decimal float
227 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
228 use the struct return convention.
230 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
232 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
233 to old format. Discard breakpoint address if shared library is
235 (breakpoint_1): Adjust formatting of table header accordingly.
237 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
239 * remote.c (remote_get_threadlist): If the response
240 is empty, don't try to parse it.
242 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
244 Unbreak 'target async'.
245 * serial.c (serial_async): Set the
246 handler function before enabling async
249 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
251 * solib-svr4.c (enable_break): Convert r_brk to a code address.
253 2008-02-21 Pedro Alves <pedro@codesourcery.com>
255 * remote.c (extended_remote_attach_1): Set attach_flag.
256 (extended_remote_create_inferior_1): Clear attach_flag.
258 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
260 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
262 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
263 * solib-svr4.c (solib_svr4_r_brk): New.
264 (open_symbol_file_object, svr4_current_sos): Always check the
266 (svr4_fetch_objfile_link_map): Do not set debug_base.
267 (enable_break): Use r_brk if it is set.
268 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
269 (svr4_lp64_fetch_link_map_offsets): Likewise.
270 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
272 2008-02-20 Markus Deuling <deuling@de.ibm.com>
273 Mark Kettenis <kettenis@gnu.org>
275 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
276 trad_frame_saved_reg.
277 (trad-frame.h): New include.
279 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
280 instead of frame_obstack_zalloc.
281 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
283 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
285 2008-02-20 Markus Deuling <deuling@de.ibm.com>
287 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
288 from disassemble_info instead of gdbarch_byte_order.
290 * mips-tdep.c (gdb_print_insn_mips): Likewise.
291 * arm-tdep.c (gdb_print_insn_arm): Likewise.
293 2008-02-20 Markus Deuling <deuling@de.ibm.com>
295 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
296 gdbarch as parameter.
298 * gdbarch.{c,h}: Regenerate.
300 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
302 * mem-break.c (default_memory_insert_breakpoint)
303 (default_memory_remove_breakpoint): Likewise.
304 * target.h (default_memory_remove_breakpoint)
305 (default_memory_insert_breakpoint): Likewise.
307 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
308 parameter. Replace current_gdbarch by gdbarch.
309 * m32r-tdep.c (m32r_memory_insert_breakpoint)
310 (m32r_memory_remove_breakpoint): Likewise.
312 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
314 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
316 2008-02-19 Joel Brobecker <brobecker@adacore.com>
318 * NEWS: Add entry describing Add support improvements.
320 2008-02-18 Markus Deuling <deuling@de.ibm.com>
322 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
325 2008-02-18 Markus Deuling <deuling@de.ibm.com>
327 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
328 register_offset_hack anymore.
330 * regcache.{c,h} (register_offset_hack): Remove.
332 2008-02-18 Markus Deuling <deuling@de.ibm.com>
334 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
336 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
337 current_gdbarch by gdbarch.
338 (hppa64_hpux_find_global_pointer): Likewise.
339 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
340 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
343 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
345 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
347 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
350 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
351 replace current_gdbarch by gdbarch.
352 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
354 2008-02-18 Markus Deuling <deuling@de.ibm.com>
356 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
357 and replace current_gdbarch by gdbarch.
359 (store_register): Update call for exec_one_dummy_insn.
360 (fetch_register, store_register): Update call of regmap.
362 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
363 parameter and replace current_gdbarch by gdbarch.
365 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
366 the current architecture. Update call for getregs_supplies and
368 (ppcnbsd_fetch_inferior_registers): Likewise.
370 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
371 replace current_gdbarch by gdbarch.
372 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
373 get_regcache_arch to get at the current architecture. Update call for
376 2008-02-18 Markus Deuling <deuling@de.ibm.com>
378 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
381 2008-02-15 Markus Deuling <deuling@de.ibm.com>
383 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
385 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
387 * NEWS: Mention pending breakpints in MI.
389 2008-02-14 Markus Deuling <deuling@de.ibm.com>
391 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
393 2008-02-13 Markus Deuling <deuling@de.ibm.com>
395 Add script to build and test GDB using enable-targets=all.
397 * gdb_buildall.sh: New file.
399 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
401 * NEWS (New native configurations): Xtensa GNU/Linux.
402 (New targets): Xtensa GNU/Linux.
403 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
405 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
406 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
407 * configure.tgt (xtensa*-*-linux*): New entry.
408 * xtensa-config.c (xtensa_tdep): New variable.
409 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
410 (rmap): Change format based on new macro XTREG.
411 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
412 * xtensa-linux-nat.c: New.
413 * xtensa-linux-tdep.c: New.
414 * xtensa-xtregs.c: New.
415 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
416 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
417 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
418 (xtensa_register_t): New field coprocessor.
419 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
420 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
421 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
422 Update to handle privileged registers.
423 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
424 (xtensa_push_dummy_call): Set windowstart register correctly.
425 (call0_analyze_prologue): Initialize xtensa_default_isa.
426 (xtensa_derive_tdep): New.
427 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
428 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
429 Call xtensa_derive_tdep().
430 * config/xtensa/linux.mh: New.
431 * regformats/reg-xtensa.dat: New.
433 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
435 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
436 (filenames.h): New include.
437 * Makefile.in (corelow.o): Add dependency for filenames.h.
439 2008-02-08 Doug Evans <dje@google.com>
441 * source.c (find_and_open_source): Always rewrite absolute filenames.
443 2008-02-07 Doug Evans <dje@google.com>
445 * breakpoint.c: #include "hashtab.h".
446 (ambiguous_names_p): New fn.
447 (update_breakpoint_locations): When restoring bp enable status, don't
448 compare function names if any functions have same name.
449 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
451 2008-02-07 Joel Brobecker <brobecker@adacore.com>
453 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
454 instead of just a VEC*. Update use of SV.
455 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
457 2007-02-07 Joel Brobecker <brobecker@adacore.com>
459 * NEWS: Put all new commands since gdb-6.7 together.
461 2007-02-07 Joel Brobecker <brobecker@adacore.com>
463 * ada-lang.c: #include "vec.h".
464 (struct string_vector, new_string_vector, string_vector_append):
466 (char_ptr): New typedef.
467 (DEF_VEC_P (char_ptr)): New VEC type.
468 (symbol_completion_add): Update profile to take the new VEC type
469 instead of the old string_vector structure. Update code accordingly.
470 (ada_make_symbol_completion_list): Use the new VEC type instead of
471 the old string_vector structure, and update the code accordingly.
472 * Makefile.in (ada-lang.o): Add dependency on vec.h.
474 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
476 * p-exp.y: Set current_type in missing places.
477 (leftdiv_is_integer): New static variable.
478 Typecast right operand of BINOP_DIV to long_double if both operands
481 2008-02-06 Maciej W. Rozycki <macro@mips.com>
483 * remote-mips.c (set_breakpoint): Rename to...
484 (mips_set_breakpoint): ... this.
485 (clear_breakpoint): Rename to...
486 (mips_clear_breakpoint): ... this.
487 (common_breakpoint): Rename to...
488 (mips_common_breakpoint): ... this.
489 (check_lsi_error): Rename to...
490 (mips_check_lsi_error): ... this.
492 2007-02-05 Joel Brobecker <brobecker@adacore.com>
494 * language.h (struct language_defn): Add new field
495 la_make_symbol_completion_list.
496 * symtab.c (default_make_symbol_completion_list): Renames
497 make_symbol_completion_list.
498 (make_symbol_completion_list): New function.
499 * symtab.h (default_make_symbol_completion_list): Add declaration.
500 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
501 (auto_language, local_language): Likewise.
502 * objc-lang.c (objc_language_defn): Likewise.
503 * scm-lang.c (scm_language_defn): Likewise.
504 * m2-lang.c (m2_language_defn): Likewise.
505 * f-lang.c (f_language_defn): Likewise.
506 * jv-lang.c (java_language_defn): Likewise.
507 * p-lang.c (pascal_language_defn): Likewise.
508 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
509 (minimal_language_defn): Likewise.
510 * ada-lang.c (struct string_vector): New structure.
511 (new_string_vector, string_vector_append, ada_unqualified_name)
512 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
513 (ada_make_symbol_completion_list): New functions.
514 (ada_language_defn): Set la_make_symbol_completion_list.
515 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
516 this function is static.
518 2008-02-05 Kevin Buettner <kevinb@redhat.com>
520 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
521 to account for call site optimizations.
523 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
525 * tracepoint.c (read_actions): Handle end-of-text indicator
526 in action list properly. (Committed by Jim Blandy)
528 2008-02-05 Jim Blandy <jimb@red-bean.com>
530 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
531 pseudoregister, not an internal error.
532 Reported by: Andrzej Zaborowski
534 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
536 * varobj.c (c_value_of_variable): Use xstrdup.
538 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
540 Update stored rendition of varobj value when format changes.
541 * varobj.c (varobj_set_display_format): Recomputed
543 (c_value_of_variable): Return print_value.
545 2008-02-03 Doug Evans <dje@google.com>
547 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
548 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
549 * valops.c (value_one): New function.
550 * value.h (value_one): Declare.
552 Fix argument promotion for binary arithmetic ops for C.
553 * valarith.c (unop_result_type): New fn.
554 (binop_result_type): New fn.
555 (value_binop): Move result type computation to binop_result_type.
556 (value_pos, value_neg, value_complement): Move result type
557 computation to unop_result_type.
560 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
561 Return basetype, fieldno if found. All callers updated.
562 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
564 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
565 * symfile.h (fill_in_vptr_fieldno): Delete.
567 2008-02-02 Doug Evans <dje@google.com>
569 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
571 * typeprint.c (*): Whitespace cleanup.
573 2008-02-02 Mark Kettenis <kettenis@gnu.org>
574 Luis Machado <luisgpm@br.ibm.com>
575 Thiago Jung Bauermann <bauerman@br.ibm.com>
577 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
578 don't fit into registerson the stack the way GCC does.
580 2008-02-01 Joel Brobecker <brobecker@adacore.com>
582 * symtab.c (symbol_set_names): Do not add an entry in the demangling
583 hash table for Ada symbols. Just store the linkage name as is,
584 and leave the demangled_name as NULL.
586 2007-02-01 Joel Brobecker <brobecker@adacore.com>
588 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
590 (new_symbol): Likewise.
592 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
594 * breakpoint.c (break_command_1): Return void.
595 (break_command_really): Return void. Rethrow
596 exceptions instead of returning.
597 (gdb_breakpoint): Remove the error_message parameter.
598 Return void. Rename to set_breakpoint.
599 * gdb.h (gdb_breakpoint): Rename and move to...
600 * breakpoint.h (set_breakpoint): ...here.
601 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
602 event hooks even if exception is thrown. Adjust to
603 gdb_breakpoint interface changes.
606 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
608 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
609 float in both first and second word in the doubleword, to support
612 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
614 Properly rethrow exception. This fixes errors
615 about non-existent functions for -break-insert.
616 * breakpoint.c (break_command_really): Use throw_exception
617 for rethrowing. If rethrowing, don't print the exception.
619 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
621 * NEWS: Mention Decimal Floating Point support.
623 2008-01-31 Joel Brobecker <brobecker@adacore.com>
625 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
626 value type to builtin_type_void_func_ptr.
628 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
630 * s390-tdep.c (is_float_singleton, is_float_like,
631 alignment_of, s390_return_value): Make checks for
632 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
634 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
635 Thiago Jung Bauermann <bauerman@br.ibm.com>
637 * infcmd.c (default_print_registers_info): Also print hex
638 raw contents for TYPE_CODE_DECFLOAT registers.
639 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
640 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
641 (rs6000_register_name): Add support for DFP pseudo-registers.
642 (rs6000_pseudo_register_type): Likewise.
643 rs6000_pseudo_register_reggroup_p): Likewise.
644 (ppc_pseudo_register_read): New function.
645 (ppc_pseudo_register_write): Likewise.
646 (rs6000_pseudo_register_read): Likewise.
647 (rs6000_pseudo_register_write): Likewise.
648 (e500_pseudo_register_read): Move checks to
649 rs6000_pseudo_register_read.
650 (e500_pseudo_register_write): Move checks to
651 rs6000_pseudo_register_write.
652 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
653 rs6000_pseudo_register_read and rs6000_pseudo_register_write
654 in gdbarch if SPE or DFP is available. Adjust gdbarch's
655 num_pseudo_regs to account for DFP pseudo regs.
657 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
659 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
660 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
661 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
662 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
663 e500_pseudo_register_read, e500_pseudo_register_write): Use
664 IS_SPE_PSEUDOREG macro.
665 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
666 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
667 Remove initialization of tdep->ppc_ev31_regnum.
669 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
671 * printcmd.c (print_formatted): Handle references as for unformatted
674 2008-01-30 Joel Brobecker <brobecker@adacore.com>
676 * eval.c (evaluate_subexp_standard): Add handling of user
677 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
679 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
681 * eval.c (evaluate_subexp_standard): Support
684 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
686 * valarith.c (value_binop): Add floating-point BINOP_MIN and
688 For BINOP_EXP, use length and signedness of left operand only for
689 result, as for shifts.
690 For integral operands to BINOP_EXP, use new integer_pow and
691 uinteger_pow functions so as to get full range of results.
692 (integer_pow): New function.
693 (uinteger_pow): New function.
695 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
697 Use vector for varobj_list_children interface.
698 * gdb/varobj.c (varobj_list_children): Return vector
700 * gdb/varobj.h (varobj_list_children): Adjust
702 (varobj_p): Declare. Declare vector thereof.
703 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
704 for varobj_list_children change.
705 * Makefile.in (varobj_h): Update dependencies.
707 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
709 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
710 TYPE_CODE_DECFLOAT arguments.
711 (ppc64_sysv_abi_push_dummy_call) Likewise.
712 (get_decimal_float_return_value): New function.
713 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
714 values by calling get_decimal_float_return_value.
715 (ppc64_sysv_abi_return_value): Likewise.
717 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
720 for preprocessor macro information. Formatting changes.
722 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
724 * remote.c (struct remote_state): Add cached_wait_status.
725 (remote_exec_file): New variable.
726 (PACKET_vAttach, PACKET_vRun): New constants.
727 (extended_remote_restart): Do not query for status.
728 (struct start_remote_args): New.
729 (remote_start_remote): Take it as a second argument. Check
730 whether the target is running. Issue an error for non-running
731 non-extended targets. Cache the wait status. Set inferior_ptid
733 (remote_open_1): Prompt to disconnect non-running targets. Make
734 sure the target is marked running. Do not set inferior_ptid here.
735 Update call to remote_start_remote. Do not call remote_check_symbols
736 if the target is not running.
737 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
738 argument. Handle a non-running target.
739 (remote_detach): Use it.
740 (extended_remote_detach): New.
741 (remote_disconnect): Fix typo. Use remoute_mourn_1.
742 (extended_remote_attach_1, extended_remote_attach)
743 (extended_async_remote_attach): New.
744 (remote_vcont_resume): Remove unused variable.
745 (remote_wait, remote_async_wait): Use any cached wait status.
746 (putpkt_binary, getpkt): Clear any cached wait status.
747 (extended_remoute_mourn_1): New.
748 (extended_remote_mourn): Use it.
749 (extended_async_remote_mourn, extended_remote_run): New.
750 (extended_remote_create_inferior_1): New.
751 (extended_remote_create_inferior): Use it.
752 (extended_remote_async_create_inferior): Likewise.
753 (remote_xfer_partial): Skip for non-executing targets.
754 (init_extended_remote_ops): Set to_detach and to_attach.
755 (init_extended_async_remote_ops): Likewise. Use
756 extended_async_remote_mourn.
757 (_initialize_remote): Register vAttach, vRun, and
758 set remote exec-file.
759 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
761 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
763 * Makefile.in (symfile.o): Update.
764 * NEWS: Mention exec tracing support.
765 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
767 * infcmd.c (kill_if_already_running, detach_command)
768 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
769 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
770 (follow_exec): Do not check may_follow_exec. Do not mourn and push
771 targets. Apply the sysroot path to the loaded executable. Use
773 * linux-nat.c (linux_child_follow_fork): Print fork following
775 (kill_wait_callback): Kill again before waiting a second time.
776 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
779 2008-01-29 Joel Brobecker <brobecker@adacore.com>
781 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
783 2008-01-29 Joel Brobecker <brobecker@adacore.com>
785 * nto-tdep.h: Remove #include "defs.h".
786 * nto-tdep.c: Add #include "defs.h".
787 * Makefile.in (nto_tdep_h): Update dependencies.
788 (nto-tdep.o): Likewise.
790 2008-01-29 Joel Brobecker <brobecker@adacore.com>
792 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
794 (proceed, start_remote): Update call to wait_for_inferior.
795 * inferior.h (wait_for_inferior): Update declaration.
796 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
797 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
798 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
799 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
801 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
803 * varobj (adjust_value_for_child_access): Added checking for
804 returned value from gdb_value_ind.
805 (c_describe_child): Likewise.
806 (cplus_describe_child): Fixed a typo.
808 2008-01-29 Jim Blandy <jimb@red-bean.com>
810 * MAINTAINERS: Update my info.
812 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
814 Use multiple locations for hardware watchpoints.
815 This eliminates the need to traverse value chain, doing
816 various checks, in three different places.
818 * breakpoint.h (struct bp_location): New fields
819 lengths and watchpoint_type.
820 (struct breakpoint): Remove the val_chain field.
821 * breakpoint.c (is_hardware_watchpoint): New.
822 (free_valchain): Remove.
823 (update_watchpoint): New.
824 (insert_bp_location): For hardware watchpoint, just
826 (insert_breakpoints): Call update_watchpoint_locations
827 on all watchpoints. If we have failed to insert
828 any location of a hardware watchpoint, remove all inserted
830 (remove_breakpoint): For hardware watchpoints, directly
832 (watchpoints_triggered): Iterate over locations.
833 (bpstat_stop_status): Use only first location of
834 a resource watchpoint.
835 (delete_breakpoint): Don't call free_valchain.
836 (print_one_breakpoint): Don't print all
837 locations for watchpoints.
838 (breakpoint_re_set_one): Use update_watchpoint for
841 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
843 Don't reset watchpoint block on solib load.
845 * breakpoint.c (insert_bp_location): For watchpoints,
847 (breakpoint_re_set_one): Instead of recomputing value
848 and condition for watchpoints, just reset value and
849 let insert_breakpoints/insert_bp_location recompute it.
850 Don't do anything about disabled watchpoint.
852 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
854 * valarith.c (value_binop): Handle unsigned integer
857 2008-01-28 Kevin Buettner <kevinb@redhat.com>
859 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
860 instruction pattern that appears frequently in position
861 independent code. Fix bug in code which looks for "fmov" and
862 backtracks if no "fmov" is found.
864 2008-01-28 Doug Evans <dje@google.com>
866 * dbxread.c (read_dbx_symtab): Fix indentation.
867 Reformat comments to 80 columns.
868 Move local var def closer to only use.
870 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
872 * fork-child.c (SHELL_FILE): Remove #ifndef.
873 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
875 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
877 * i386-tdep.c (i386_skip_noop): New function.
878 (i386_analyze_prologue): Call i386_skip_noop function.
880 2008-01-24 Michael Snyder <msnyder@specifix.com>
882 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
883 * win32-nat.c (win32_xfer_partial): Ditto.
884 * target.c (default_xfer_partial): Minor whitespace adjustment.
886 2008-01-24 Pedro Alves <pedro@codesourcery.com>
888 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
889 strip bit 1 even if pc doesn't point to thumb code.
891 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
893 * remote.c (remote_wait): Handle SIGINT between packets.
894 (remote_async_wait): Likewise.
896 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
897 Chris Demetriou <cgd@google.com>
899 * thread.c (add_thread_silent): Renamed
901 (print_thread_events): New variable definition.
902 (show_print_thread_events): New function.
903 (_initialize_thread): Add "set print thread-events" and
904 "show print thread-events" commands.
905 (add_thread): Announce new thread.
906 * gdbthread.h (add_thread_silent): Declare.
907 (print_thread_events): New variable declaration.
908 * inf-ttrace.c (inf_ttrace_wait): Don't
909 inform about new thread, as add_thread is always
910 called too, and will take care of that.
911 * infrun.c (handle_inferior_event): Likewise.
912 * procfs.c (procfs_wait): Likewise.
913 * remote.c (remote_currthread): Likewise.
914 * sol-thread.c (sol_thread_wait): Likewise.
915 * win32-nat.c (get_win32_debug_event): Likewise.
916 * linux-thread-db.c (attach_thread): Likewise.
917 Remove the verbose parameter.
918 (check_event): Make detach_thread be verbose
919 only if print_thread_events is set.
920 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
921 about new thread. This is called only from
922 linux-thread-db.c:attach_thread, which will take care.
923 Remove the verbose parameter.
924 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
926 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
928 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
930 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
932 * breakpoint.c (break_command_really): New parameter
934 (break_command_1): Pass 0 as
935 ignore_count to break_command_really.
936 (gdb_breakpoint): Pass ignore_count to
937 break_command_really.
939 2008-01-21 Kevin Buettner <kevinb@redhat.com>
941 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
942 sigcontext struct via pointer.
943 (struct sigframe comment): Update to show new field `psc'.
945 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
947 * infrun.c (handle_inferior_event): If
948 we failed to remove breakpoints, error,
949 don't try to increment PC by hand.
951 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
953 Add NetBSD/hppa target and host support.
955 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
956 (hppabsd_gregset): Move to ...
957 (hppabsd_regset_from_core_section): Rename
958 hppaobsd_regset_from_core_section and move to ...
959 (hppabsd_find_global_pointer): Update comment.
960 (hppabsd_init_abi): Make global. Do not register
961 hppabsd_regset_from_core_section.
962 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
964 (_initialize_hppabsd_tdep): Move to ...
965 * hppaobsd-tdep.c: ... here. New file.
966 * hppnbsd-tdep.c: New file.
967 * hppnbsd-nat.c: New file.
968 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
969 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
970 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
971 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
972 * configure.host (hppa*-*-netbsd*): New entry.
973 * configure.tgt (hppa*-*-netbsd*): New entry.
974 (hppa*-*-openbsd*): Update.
975 * NEWS (New native configuration): Mention NetBSD/hppa.
976 (New targets): Mention NetBSD/hppa.
978 2008-01-18 Markus Deuling <deuling@de.ibm.com>
980 * gdbarch.sh (function_list): Add new property bits_big_endian to
982 * gdbarch.{c,h}: Regenerate.
984 * value.c (struct value): Replace BITS_BIG_ENDIAN by
985 gdbarch_bits_big_endian (comment).
986 (unpack_field_as_long, modify_field): Likewise.
987 * value.h: Likewise (comment).
988 * valops.c (value_slice): Likewise.
989 * valarith.c (value_subscript, value_bit_index): Likewise.
990 * gdbtypes.h (field): Likewise (comment).
991 * eval.c (evaluate_subexp_standard): Likewise.
992 * dwarf2read.c (dwarf2_add_field): Likewise.
993 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
994 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
996 * defs.h (BITS_BIG_ENDIAN): Remove.
998 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1000 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1002 * m2-exp.y (yylex): Likewise.
1003 * objc-exp.y (yylex): Likewise.
1005 * defs.h (DEPRECATED_STREQN): Remove.
1007 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1009 * MAINTAINERS: Update my email address.
1011 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1013 * README: Mention gdbserver/README.
1015 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1017 * valarith.c (value_binop): Handle BINOP_INTDIV
1018 for unsigned and signed integers.
1020 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1022 * s390-tdep.c (s390_gdbarch_init): Set default long double
1023 type to 128-bit IEEE quad.
1025 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1027 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1029 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1031 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1033 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1034 * value.c: All callers changed.
1036 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1038 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1039 DEPRECATED_STREQ by its expression.
1040 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1041 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1042 (scan_xcoff_symtab): Likewise.
1043 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1044 * f-lang.c (find_common_for_function): Likewise.
1045 * objc-exp.y (parse_number): Likewise.
1047 * defs.h (DEPRECATED_STREQ): Remove.
1049 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1051 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1052 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1053 get_frame_arch to get at the current_architecture. Update AM33_MODE
1055 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1056 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1058 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1060 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1062 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1064 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1066 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1067 current_gdbarch by gdbarch. Update caller.
1069 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1070 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1071 the current architecture. Update calls of
1072 amd64_native_gregset_supplies_p.
1073 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1074 (amd64bsd_store_inferior_registers): Likewise.
1076 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1078 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1079 Replace current_gdbarch by gdbarch. Update caller.
1081 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1083 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1084 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1085 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1086 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1087 (stabsect_build_psymtabs): Fix indentation.
1089 2008-01-15 Michael Snyder <msnyder@specifix.com>
1091 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1093 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1095 * win32-nat.c (win32_create_inferior): Restore code calling
1096 CloseHandle on ProcessInformation structure.
1098 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1100 * configure.ac: Check for void * as 3 argument of ptrace.
1101 * configure: regenerate.
1103 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1105 * alpha-tdep.c (alpha_heuristic_proc_start)
1106 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1107 current_gdbarch by gdbarch.
1109 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1110 current architecture by frame_info. Update alpha_heuristic_proc_start
1113 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1114 get_frame_arch to get at the current architecture by frame_info. Update
1115 alpha_sigtramp_register_address call.
1117 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1118 current_gdbarch by gdbarch. Update caller.
1119 (convert_to_extended, convert_from_extended): Add endianess parameter
1120 for comparison. Update caller.
1121 (arm_extract_return_value, arm_store_return_value): Use
1122 get_regcache_arch to get at the current architecture.
1124 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1125 current_gdbarch by gdbarch. Update caller.
1126 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1127 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1129 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1130 gdbarch as parameter. Update caller.
1131 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1132 current_gdbarch by gdbarch. Update caller.
1134 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1135 update caller. Replace current_gdbarch by gdbarch.
1137 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1138 the current architecture. Replace current_gdbarch by gdbarch.
1139 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1140 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1141 expression. Add gdbarch as parameter and replace current_gdbarch with
1143 (M6811_TDEP): Remove.
1144 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1146 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1147 current_gdbarch by gdbarch. Update caller.
1149 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1151 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1154 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1155 caller. Relace current_gdbarch by gdbarch.
1156 (altivec_register_p, spe_register_p): Likewise.
1157 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1159 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1160 altivec_register_p and spe_register_p.
1162 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1163 caller. Replace current_gdbarch by gdbarch.
1164 (score_analyze_prologue): use get_frame_arch to get at the current
1167 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1168 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1169 current_gdbarch by gdbarch. Update caller.
1170 (sparc_frame_cache): Use get_frame_arch to get at the current
1172 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1173 sparc_analyze_prologue.
1175 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1178 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1180 * exec.c: #include "arch-utils.h"
1181 (print_section_info): Use gdbarch_from_bfd to get at the
1182 current architecture. Replace current_gdbarch. Fix indention. Replace
1183 deprecated_print_address_numeric by paddress.
1184 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1186 * valprint.c (val_print_string): Replace
1187 deprecated_print_address_numeric.
1188 * tracepoint.c (trace_mention, scope_info): Likewise.
1189 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1190 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1191 (maintenance_check_symtabs): Likewise.
1192 * symfile.c (list_overlays_command): Likewise.
1193 * stack.c (frame_info, print_block_frame_labels): Likewise.
1194 * printcmd.c (print_address, print_address_demangle)
1195 (address_info): Likewise.
1196 * corefile.c (memory_error): Likewise.
1197 * infcmd.c (jump_command): Likewise.
1198 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1199 (mention, delete_breakpoint): Likewise.
1200 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1201 * dwarf2read.c (dump_die): Likewise.
1202 * ada-valprint.c (ada_val_print_1): Likewise.
1203 * f-valprint.c (f_val_print): Likewise.
1204 * linux-fork.c (info_forks_command): Likewise.
1205 * m32r-com.c (m32r_load_section, m32r_load)
1206 (m32r_upload_command): Likewise.
1208 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1210 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1212 * gdbarch.sh (skip_prologue): Add gdbarch
1214 * gdbarch.{c,h}: Regenerate.
1216 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1217 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1218 * avr-tdep.c (avr_skip_prologue): Likewise.
1219 * cris-tdep.c (cris_skip_prologue): Likewise.
1220 * frv-tdep.c (frv_skip_prologue): Likewise.
1221 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1222 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1223 * i386-tdep.c (i386_skip_prologue): Likewise.
1224 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1225 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1226 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1227 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1228 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1229 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1230 * mep-tdep.c (mep_skip_prologue): Likewise.
1231 * mips-tdep.c (mips_skip_prologue): Likewise.
1232 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1233 * mt-tdep.c (mt_skip_prologue): Likewise.
1234 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1235 * score-tdep.c (score_skip_prologue): Likewise.
1236 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1237 * sh-tdep.c (sh_skip_prologue): Likewise.
1238 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1239 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1240 * spu-tdep.c (spu_skip_prologue): Likewise.
1241 * v850-tdep.c (v850_skip_prologue): Likewise.
1242 * vax-tdep.c (vax_skip_prologue): Likewise.
1243 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1244 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1246 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1247 current_gdbarch by gdbarch.
1248 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1249 * s390-tdep.c (s390_skip_prologue): Likewise.
1251 2008-01-10 Doug Evans <dje@google.com>
1253 * defs.h (struct continuation_arg): Fix typo in comment.
1254 * target.c (target_translate_tls_address): Fix comment spelling error.
1256 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1258 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1259 (DOUBLEST_SCAN_FORMAT): Likewise.
1260 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1261 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1262 * c-exp.y (parse_number): Likewise.
1263 * jv-exp.y (parse_number): Likewise.
1264 * objc-exp.y (parse_number): Likewise.
1265 * p-exp.y (parse_number): Likewise.
1267 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1269 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1270 (check_typedef): Likewise.
1272 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1274 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1275 seen_double_big_d, treat the new H, D, and DD modifiers as length
1278 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1280 * dwarf2read.c (read_enumeration_type): Add comment.
1282 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1284 * config.in: Regenerate.
1286 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1288 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1290 (ada_convert_actuals): Delete.
1291 * ada-lang.h (ada_convert_actual): Add declaration.
1292 (ada_convert_actuals): Remove declaration.
1293 * infcall.c: #include "ada-lang.h".
1294 (value_arg_coerce): Add new parameter sp. Update function
1295 documetnation. Add handling of Ada function call parameters.
1296 * Makefile.in (infcall.o): Update dependencies.
1298 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1300 * ada-lang.c (ensure_lval): Fix value lval kind.
1301 (convert_actual): Add handling for arguments passed by reference.
1303 2008-01-08 Doug Evans <dje@google.com>
1305 * dbxread.c (read_dbx_symtab): Fix indentation.
1307 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1309 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1310 (valarith.o): Depend on dfp.h.
1311 (valops.o): Likewise.
1312 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1313 (set_decnumber_context): New function.
1314 (decimal_check_errors): Likewise.
1315 (decimal_from_number): Likewise.
1316 (decimal_to_number): Likewise.
1317 (decimal_from_string): Use set_decnumber_context and
1318 decimal_check_errors.
1319 (decimal_from_integral): New function.
1320 (decimal_from_floating): Likewise.
1321 (decimal_to_double): Likewise.
1322 (promote_decimal): Likewise.
1323 (decimal_binop): Likewise.
1324 (decimal_is_zero): Likewise.
1325 (decimal_compare): Likewise.
1326 (decimal_convert): Likewise.
1327 * dfp.h (decimal_from_integral): New prototype.
1328 (decimal_from_floating): Likewise.
1329 (decimal_to_double): Likewise.
1330 (decimal_binop): Likewise.
1331 (decimal_is_zero): Likewise.
1332 (decimal_compare): Likewise.
1333 (decimal_convert): Likewise.
1334 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1335 call to value_from_decfloat.
1336 * valarith.c: Include dfp.h.
1337 (value_args_as_decimal): New function.
1338 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1339 (value_logical_not): Likewise.
1340 (value_equal): Likewise.
1341 (value_less): Likewise.
1342 (value_pos): Likewise.
1343 (value_neg): Formatting fix.
1344 * valops.c: Include dfp.h.
1345 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1346 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1347 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1348 (value_from_decfloat): Remove expect_type argument.
1349 * value.h (value_from_decfloat): Update prototype.
1351 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1353 Ignore change in name of dynamic linker during
1354 execution on Solaris. This also unbreaks pending breakpoints.
1356 * solist.h (struct target_so_ops): New field same.
1357 * solib-svr4.c (svr4_same): New.
1358 (_initialize_svr4_solib): Register svr4_same.
1359 * solib.c (update_solib_list): Use ops->same, if available.
1361 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1363 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1364 when using MS-DOS paths.
1366 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1368 * NEWS: Mention --pid and --core command line behaviour changes.
1370 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1372 * main.c (captured_main): Remove 'count' varible and the
1373 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1374 --pid options were issued simultaneously. If an explicit pid
1375 option was passed, don't fallback to core file. Detect extra
1376 arguments better in the presence of explicit pid or core
1379 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1381 * ada-lang.c (ada_which_variant_applies): Correctly compute
1382 the value of the discriminant when the variant record is packed.
1384 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1386 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1387 that are used to differentiate homonyms.
1389 2008-01-04 Jerome Guitton <guitton@adacore.com>
1391 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1392 when the type is an anonymous pointer type.
1393 (ada_check_typedef): Avoid a seg fault when the type is null.
1394 * ada-typeprint.c (print_array_type): Add support for pointer
1397 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1399 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1401 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1403 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1404 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1406 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1408 * ada-exp.y (chop_separator): New function.
1409 (write_selectors): Rewrite to re-use chop_separator.
1410 (ada_nget_field_index, get_symbol_field_type): New functions.
1411 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1414 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1416 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1417 of SYMBOL_VALUE when working with function symbols.
1419 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1421 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1422 expressions. These expressions do not need to be rewriten.
1424 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1426 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1427 the given die is a declaration.
1429 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1431 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1432 Handle properly the case when the index type is an enumerated type.
1433 Do not return the subtype of the bounds type, just return the
1434 bounds type directly - this is not needed and is more consistent
1435 with what we do for arrays when no XA parallel type exists.
1437 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1439 * ada-lang.c (static_unwrap_type): Add forward declaration.
1440 (template_to_static_fixed_type): Fields of dynamic types sometimes
1441 also need to be unwrapped. Take this into account.
1442 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1443 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1444 * ada-typeprint.c (ada_print_type): Get the typename from
1445 the original type, not the base type.
1447 2008-01-03 Jerome Guitton <guitton@adacore.com>
1449 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1450 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1451 Update calls to ada_to_fixed_type.
1452 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1454 (ada_to_fixed_type): Add check_tag parameter; do not look for
1455 tag if null. When looking for a tag, use a fixed record type.
1456 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1457 * ada-valprint.c (printable_val_type, ada_value_print): Update
1458 calls to ada_to_fixed_type.
1460 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1462 * doublest.c (convert_floatformat_to_doublest): Call
1463 floatformat_to_doublest instead of floatformat_to_double and use
1465 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1466 instead of floatformat_from_double and use DOUBLEST variables.
1468 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1470 * MAINTAINERS (Write After Approval): Add self.
1472 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1474 * symfile.c (set_initial_language): Make non-static.
1475 * symfile.h (set_initial_language): Add declaration.
1476 * language.c: #include "symfile.h".
1477 (set_language): Call set_initial_language if the frame language
1478 could not be determined.
1480 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1482 * eval.c (evaluate_subexp_for_address): Provide frame address to
1483 locate_var_value only if it will be needed.
1485 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1489 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1491 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1492 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1493 This is needed to make sure that any other treatment applied
1494 to the resulting value does not fail for spurious reason,
1495 such as trying to take the address of this value.
1497 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1499 * ada-lang.c (ada_value_equal): Dereference reference types when
1502 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1504 Updated copyright notices for most files.
1506 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1508 * win32-nat.c (psapi_module_handle): Remove static.
1509 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1510 return first module found if base_address is zero. Don't initialize
1511 psapi function pointers here. Convert to cygwin paths when
1513 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1514 executable name. Use get_module_name when that fails or when
1516 (_initialize_psapi): New function. Initialize psapi stuff before it is
1517 needed or issue a warning if it is not found. Move psapi_module_handle
1520 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1522 * ada-lang.c (ada_remove_trailing_digits): New function.
1523 (ada_remove_po_subprogram_suffix): New function.
1524 (ada_decode): Improve. Move the description of the algorithm
1525 directly inside the code, instead of in the function global
1528 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1530 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1531 and always print the dereferenced value.
1533 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1535 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1536 of the case where the first argument is a reference.
1537 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1539 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1541 Implement support for Ada interface types.
1543 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1544 (ada_is_ignored_field): Ignore fields that are a dispatch table
1547 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1549 * top.c (print_gdb_version): Update copyright year.
1551 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1553 * ChangeLog-2007: New ChangeLog rotation.
1554 * ChangeLog: Reset for 2008.
1555 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1558 For older changes see ChangeLog-2007.
1564 version-control: never