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