1 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
3 * MAINTAINERS (Write After Approval): Add self.
5 2008-08-11 Stan Shebs <stan@codesourcery.com>
8 * disasm.c (gdb_disassemble_info): Set endian_code.
9 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
10 * gdbarch.h, gdbarch.c: Regenerate.
11 * arch-utils.c (initialize_current_architecture): Set the
12 default byte_order_for_code.
13 (gdbarch_info_init): Ditto.
14 (gdbarch_info_fill): Ditto.
15 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
16 (thumb_analyze_prologue): Swap halfword if code endianness is
17 different from general endianness.
18 (arm_skip_prologue): Similarly.
19 (arm_scan_prologue): Ditto.
20 (thumb_get_next_pc): Ditto.
21 (arm_get_next_pc): Ditto.
22 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
23 choose correct endianness for breakpoints.
25 2008-08-10 Pedro Alves <pedro@codesourcery.com>
27 * bsd-kvm.c: Include "gdbthread.h".
29 (bsd_kvm_open): Add a main thread.
30 (bsd_kvm_close): Delete it.
31 (bsd_kvm_thread_alive): New.
32 (bsd_kvm_pid_to_str): New.
33 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
35 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
37 2008-08-09 Pedro Alves <pedro@codesourcery.com>
39 * buildsym.c (start_subfile): Properly cast sentinel in concat
41 * cp-name-parser.y: Include "config.h".
42 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
44 * gdb_select.h: Include sys/time.h if sys/select.h is not
47 2008-08-09 Pedro Alves <pedro@codesourcery.com>
49 * go32-nat.c: Include "gdbthread.h".
50 (go32_stop, go32_kill_inferior): Delete the main thread.
51 (go32_create_inferior): Add it.
52 (go32_thread_alive, go32_pid_to_str): New.
53 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
55 2008-08-09 Pedro Alves <pedro@codesourcery.com>
57 * go32-nat.c (fetch_register, store_register): Pass the regcache
58 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
59 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
60 (struct seg_descr, struct seg_descr): pack the whole struct
61 instead of each member individually.
63 2008-08-09 Andreas Schwab <schwab@suse.de>
65 * python/python.c (_initialize_python): Use unabbreviated commands
68 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
70 * Makefile.in (stamp-h): Also create .deps.
72 2008-08-09 Tom Tromey <tromey@redhat.com>
74 * Makefile.in (generated_files): Add GNULIB_H.
76 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
78 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
79 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
81 (pa64_current_sos): Remove map private warning warning.
82 * solib-som.c: Include string.h and sys/utsname.h.
83 (get_hpux_major_release): New function.
84 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
85 about shared library private mapping on HP-UX 11 and later. Only force
86 private mapping of shared libraries on HP-UX 10 and earlier.
87 (link_map_start): Delete warning.
89 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
90 H.J. Lu <hongjiu.lu@intel.com>
91 Mark Kettenis <kettenis@gnu.org>
93 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
94 (amd64_init_frame_cache): Initialize saved_sp_reg.
95 (amd64_analyze_stack_align): New.
96 (amd64_analyze_prologue): Call it.
97 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
98 %rip to 8 when halfway aligning the stack.
100 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
103 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
105 (i386_alloc_frame_cache): Remove stack_align. Initialize
107 (i386_analyze_stack_align): Rewrite.
108 (i386_frame_cache): Use saved_sp_reg if it is valid.
110 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
112 * target.c: Include "solib.h".
113 (target_pre_inferior): Call no_shared_libraries.
114 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
116 (attach_command): Do not call clear_solib.
118 2008-08-09 Mark Kettenis <kettenis@gnu.org>
120 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
123 2008-08-08 Tom Tromey <tromey@redhat.com>
125 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
127 (python-utils.o): Likewise.
129 2008-08-08 Andreas Schwab <schwab@suse.de>
131 * corefile.c (_initialize_core): Remove spurious paren from set
132 gnutarget doc string.
134 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
136 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
137 Define PPC_FEATURE_BOOKE.
138 (ppc_linux_get_hwcap): New function.
139 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
140 4-bytes alignment restrictions.
141 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
142 positioning of the read/write flags.
143 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
146 2008-08-08 Pedro Alves <pedro@codesourcery.com>
148 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
150 * win32-nat.c (win32_add_thread): Change thread argument type to
152 (win32_add_thread): Adjust.
153 (win32_delete_thread): Change thread argument type to ptid_t.
155 (win32_fetch_inferior_registers, win32_store_inferior_registers)
156 (win32_resume, get_win32_debug_event, get_win32_debug_event)
157 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
158 (init_win32_ops): Put to_magic last.
159 (win32_win32_thread_alive): Adjust.
161 2008-08-08 Pedro Alves <pedro@codesourcery.com>
163 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
164 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
166 2008-08-08 Pedro Alves <pedro@codesourcery.com>
168 * remote-m32r-sdi.c: Include "gdbthread.h".
169 (remote_m32r_ptid): New.
170 (m32r_close): Delete the main thread.
171 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
173 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
174 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
176 2008-08-07 Tom Tromey <tromey@redhat.com>
177 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
179 * aclocal.m4, configure: Rebuild.
180 * configure.in: Call ZW_CREATE_DEPDIR,
181 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
182 (MAKE, GMAKE): New substs.
183 * acinclude.m4: Include depstand.m4.
184 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
185 COMPILE, POSTCOMPILE, depcomp): New variables.
186 Remove all _h variables.
187 Remove many .o targets.
188 ($(srcdir)/copying.c): avoid backslash-newline after comment
189 sign (@maintainer_mode_true@).
190 (HFILES_NO_SRCDIR): Regenerate.
191 (generated_files): New variable.
192 (all_gdbtk_cflags): Likewise.
194 (init.o, version.o, copying.o): Remove.
195 (distclean): Remove DEPDIR.
196 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
197 printcmd.o, procfs.o, v850ice.o): Rewrite.
198 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
199 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
200 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
201 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
202 gdbtk-wrapper.o): Likewise.
203 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
204 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
205 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
206 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
207 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
208 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
209 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
210 tui-wingeneral.o, tui-winsource.o): Likewise.
211 (all_object_files): New variable.
212 ($(all_object_files)): New target.
213 Include dependency files, when using GNU Make.
215 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
217 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
218 the valid bit set. Ensure display order respects partial
219 order defined by dependency bits.
221 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
223 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
226 2008-08-06 Mark Kettenis <kettenis@gnu.org>
228 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
231 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
232 Tom Tromey <tromey@redhat.com>
233 Thiago Jung Bauermann <bauerman@br.ibm.com>
234 Doug Evans <dje@google.com>
236 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
237 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
239 (python_h, python_internal_h): New.
240 (cli-script.o): Depend on python.h
241 (python.o, python-utils.o): New.
242 * cli/cli-script.c (print_command_lines): Handle python_control.
243 (execute_control_command): Handle python_control.
244 (execute_control_command_untraced): New function.
245 (while_command): Call execute_control_command_untraced.
246 (if_command): Likewise.
247 (get_command_line): Remove static attribute.
248 (read_next_line): Handle "python".
249 (recurse_read_control_structure): Handle python_control.
250 (read_command_lines): Handle python_control.
252 * cli/cli-script.h (get_command_line): Add prototype.
253 (execute_control_command_untraced): Likewise.
254 * configure.ac: Add --with-python.
255 * defs.h (enum command_control_type) <python_control>: New
257 * python/python-internal.h: New file.
258 * python/python.c: New file.
259 * python/python.h: New file.
260 * python/python-utils.c: New file.
261 * NEWS: Mention Python scripting support and its new commands.
263 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
265 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
267 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
269 * MAINTAINERS (Write After Approval): Add self.
271 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
273 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
274 (insert_breakpoint_locations): Likewise.
276 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
278 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
280 (set_longjmp_breakpoint): Likewise.
282 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
285 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
288 2008-08-05 Tom Tromey <tromey@redhat.com>
290 * bcache.c (deprecated_bcache_added): Initialize obstack.
291 (bcache_xmalloc): Don't initialize obstack.
292 (bcache_xfree): Conditionally free obstack.
293 (bcache_memory_used): Update.
295 2008-08-05 Tom Tromey <tromey@redhat.com>
297 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
299 (append_psymbol_to_list): Accept a const pointer.
300 (add_psymbol_to_list): Fix const correctness.
301 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
302 (bcache_full): Declare.
303 * bcache.c (bcache_data, deprecated_bcache): Remove.
304 (bcache): Use bcache_full.
305 (bcache_full): Rename from deprecated_bcache_added. Change return
308 2008-08-04 Stan Shebs <stan@codesourcery.com>
310 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
311 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
312 (enable_break): Remove test of BKPT_AT_SYMBOL.
314 2008-08-02 Keith Seitz <keiths@redhat.com>
316 * acinclude.m4: Include ../config/tcl.m4 to pick up
317 standard Tcl configury bits.
318 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
319 * configure.ac: Don't check if ../itcl exists when building
320 gdbtk. It could be installed.
321 Rewrite gdbtk configury to allow for using system-supplied
322 Tcl and Tk. Gdbtk no longer requires build-time access to
324 * Makefile.in: Remove everything related to itcl and itk.
325 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
327 Remove v850ice.o build rule.
328 (ALL_TCL_CFLAGS): New convenience defintion. Change all
329 gdbtk sources to use it.
330 * configure: Regenerate.
332 2008-07-31 Stan Shebs <stan@codesourcery.com>
334 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
336 2008-07-30 Stan Shebs <stan@codesourcery.com>
338 * objfiles.c (TARGET_KEEP_SECTION): Remove.
339 (add_to_objfile_sections): Remove use.
341 2008-07-29 Tom Tromey <tromey@redhat.com>
343 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
344 (lookup_cmd_composition): Likewise.
346 2008-07-29 Tom Tromey <tromey@redhat.com>
348 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
349 dead code. Fix indentation.
351 2008-07-29 Stan Shebs <stan@codesourcery.com>
353 * main.c (captured_main): Remove long-unused #if 0 blocks.
355 2008-07-28 Tom Tromey <tromey@redhat.com>
357 * annotate.h (deprecated_annotate_starting_hook): Remove.
358 (deprecated_annotate_stopped_hook): Remove.
359 (deprecated_annotate_exited_hook): Remove.
360 * Makefile.in (annotate.o): Depend on observer_h.
361 * top.c (deprecated_delete_breakpoint_hook): Remove.
362 (deprecated_create_breakpoint_hook): Likewise.
363 (deprecated_modify_breakpoint_hook): Likewise.
364 * interps.c (clear_interpreter_hooks): Update for removed hooks.
365 * breakpoint.c (mention): Don't call removed hook.
366 (delete_breakpoint): Likewise.
367 (disable_breakpoint): Likewise.
368 (do_enable_breakpoint): Likewise.
369 * annotate.c: Include observer.h.
370 (breakpoint_changed): Change type of argument.
371 (_initialize_annotate): Register observers.
372 (deprecated_annotate_starting_hook): Remove.
373 (deprecated_annotate_stopped_hook): Remove.
374 (deprecated_annotate_exited_hook): Remove.
375 (annotate_starting): Update for hook removal.
376 (annotate_stopped): Likewise.
377 (annotate_exited): Likewise.
378 * defs.h (deprecated_delete_breakpoint_hook): Remove.
379 (deprecated_create_breakpoint_hook): Likewise.
380 (deprecated_modify_breakpoint_hook): Likewise.
382 2008-07-28 Tom Tromey <tromey@redhat.com>
384 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
386 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
388 * configure.ac: Check for the GNU/Linux ptrace signature.
389 * configure: Regenerated.
391 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
393 * linux-nat.c (resume_callback): Add more debugging output.
394 (linux_nat_has_pending_sigint): New function, based on
395 linux_nat_has_pending.
396 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
397 (stop_wait_callback): Remove flush_mask handling. Honor
398 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
400 (linux_nat_has_pending, flush_callback): Remove.
401 (linux_nat_filter_event): Check for ignore_sigint.
402 (linux_nat_wait): Remove flush_mask support and call to
403 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
404 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
406 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
408 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
409 report events from resumed threads.
411 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
413 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
414 (mips_linux_init_abi): Set tdep->syscall_next_pc.
415 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
417 (mips32_next_pc): Handle the syscall instruction.
418 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
419 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
421 2008-07-26 Tom Tromey <tromey@redhat.com>
424 * valops.c (value_struct_elt): Treat function-valued field as a
427 2008-07-26 Tom Tromey <tromey@redhat.com>
430 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
433 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
436 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
437 (get_cmd_async_ok): Remove.
438 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
439 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
440 * infcmd.c (_initialize_infcmd): Likewise.
441 * thread.c (_initialize_thread): Likewise.
443 2008-07-25 Joseph Myers <joseph@codesourcery.com>
445 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
446 128-bit long doubles in even-odd pairs of FPRs. Do not
447 right-align float arguments for big-endian.
448 (mips_n32n64_return_value): Apply return value convention for
449 structs containing one or two floating-point values to soft-float
450 as well as hard-float. Handle 128-bit long doubles in such
452 (mips_o32_push_dummy_call): Only skip one integer register for a
453 float argument passed in an FPR.
455 2008-07-25 Tom Tromey <tromey@redhat.com>
457 * tui/tui-hooks.c: Include observer.h.
458 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
460 (tui_bp_created_observer, tui_bp_deleted_observer,
461 tui_bp_modified_observer): New globals.
462 (tui_install_hooks): Use observers, not events.
463 (tui_remove_hooks): Likewise.
464 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
465 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
467 (breakpoint_notify): Check mi_can_breakpoint_notify.
468 (breakpoint_hooks): Remove.
469 (mi_cmd_break_insert): Attach observers. Don't use events.
470 * tracepoint.c: Include observer.h, not gdb-events.h.
471 (tracepoint_operation, trace_pass_command): Notify observer.
472 * interps.c: Don't include gdb-events.h.
473 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
474 * gdbarch.c: Rebuild.
475 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
476 (deprecated_current_gdbarch_select_hack): Notify observer.
477 * breakpoint.h: Don't include gdb-events.h.
478 * breakpoint.c: Don't include gdb-events.h.
479 (condition_command): Notify observer.
480 (commands_command): Likewise.
481 (commands_from_control_command): Likewise.
482 (mention, delete_breakpoint, set_ignore_count): Likewise.
483 (disable_breakpoint, do_enable_breakpoint): Likewise.
484 * Makefile.in (gdb_events_h): Remove.
485 (breakpoint_h): Update.
486 (COMMON_OBS): Remove gdb-events.o.
487 (gdb-events.o): Remove.
488 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
489 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
490 * gdb-events.c: Remove.
491 * gdb-events.h: Remove.
492 * gdb-events.sh: Remove.
494 2008-07-24 Pedro Alves <pedro@codesourcery.com>
496 * remote.c (remote_threads_extra_info): Don't query the remote
497 server about info on the internally added main thread.
499 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
501 * nto-procfs.c (procfs_attach): Populate initial thread list.
502 (procfs_wait): Return new pid, built from the inferior status.
504 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
506 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
507 * configure: Regenerate.
509 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
511 * nto-procfs.c (procfs_xfer_memory): Changed signature.
512 (procfs_resume): Workaround for dereferencing type-punned pointer
514 * nto-tdep.c (nto_parse_redirection): Change signature to be const
516 * nto-tdep.h (nto_parse_redirection): Likewise.
518 2008-07-21 Stan Shebs <stan@codesourcery.com>
520 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
521 * gdbarch.sh: Adjust comment to refer to
522 in_solib_dynsym_resolve_code().
523 * gdbarch.h, gdbarch.c: Update.
524 * solib-osf.c: Ditto.
526 (handle_inferior_event): Use in_solib_dynsym_resolve_code
528 * config/mips/nm-irix5.h: Remove undef of
529 IN_SOLIB_DYNSYM_RESOLVE_CODE.
531 2008-07-21 Tom Tromey <tromey@redhat.com>
533 * symfile.c (reread_symbols): Don't pass argument to observer.
534 * exec.c (exec_file_attach): Don't pass argument to observer.
535 * ada-lang.c (ada_executable_changed_observer): Remove argument.
536 * symtab.c (symtab_observer_executable_changed): Remove argument.
537 * observer.sh: Handle functions with no arguments.
539 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
540 Chris Demetriou <cgd@google.com>
542 * elfread.c (elf_symfile_segments): Fix the check that each loadable
543 section fits within an ELF segment to handle ELF segments that hit
544 the end of the address space.
546 2008-07-20 Chris Demetriou <cgd@google.com>
548 * MAINTAINERS (Write After Approval): Add self.
550 2008-07-18 Tom Tromey <tromey@redhat.com>
553 * NEWS: Add entry for macro commands.
554 * Makefile.in (macrocmd.o): Add gdb_string.h.
555 * macroscope.h (user_macro_scope): Declare.
556 (default_macro_scope): Update documentation.
557 (macro_user_macros): Declare.
558 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
559 Use user_macro_scope.
560 (null_macro_lookup): Remove.
561 * macrotab.h (macro_callback_fn): Declare.
562 (macro_for_each): Likewise.
563 (macro_allow_redefinitions): Likewise.
564 * macrotab.c (foreach_macro): New function
565 (macro_for_each): Likewise.
566 (struct macro_table) <redef_ok>: New field.
567 (macro_allow_redefinitions): New function.
568 (new_macro_table): Update.
569 (macro_define_function): Likewise.
570 (macro_define_object): Likewise.
571 * macroscope.c (user_macro_scope): New function.
572 (default_macro_scope): Use it.
573 (macro_user_macros): New global.
574 (standard_macro_lookup): Look in macro_user_macros.
575 (_initialize_macroscope): New function.
576 * macroexp.h (macro_is_whitespace, macro_is_digit,
577 macro_is_identifier_nondigit): Declare.
578 * macroexp.c (macro_is_whitespace): Rename. No longer static.
579 (macro_is_digit): Likewise.
580 (macro_is_identifier_nondigit): Likewise.
581 (get_identifier): Update.
582 (get_pp_number): Likewise.
583 (get_token): Likewise.
584 * macrocmd.c (skip_ws): New function.
585 (extract_identifier): Likewise.
586 (free_macro_definition_ptr): Likewise.
587 (user_macros): Remove.
588 (macro_define_command): Implement.
589 (_initialize_macrocmd): Update.
590 (macro_undef_command): Implement.
591 (print_one_macro): New function.
592 (macro_list_command): Implement.
594 2008-07-18 Joseph Myers <joseph@codesourcery.com>
596 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
598 * configure: Regenerate.
600 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
602 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
604 2008-07-15 Andreas Schwab <schwab@suse.de>
606 * valops.c (value_cast_pointers): Follow typedefs when checking
609 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
611 * block.c (block_function): Renamed to ...
612 (block_linkage_function): ... this. All callers changed.
613 * block.h (block_function): Renamed to ...
614 (block_linkage_function): ... this.
616 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
618 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
620 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
622 * frame.c (frame_sp_unwind): Delete.
623 (get_frame_sp): Do not use it.
624 * frame.h (frame_sp_unwind): Delete prototype.
626 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
628 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
630 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
632 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
633 * frame.c (frame_unwind_address_in_block): Delete.
634 (get_frame_address_in_block): Do not use it. Check the type
635 of the next frame first.
636 (frame_cleanup_after_sniffer): Update comment.
637 * frame.h (frame_unwind_address_in_block): Delete prototype.
638 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
640 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
642 * frame.c (frame_func_unwind): Delete.
643 (get_frame_func): Do not use it.
644 * frame.h (frame_func_unwind): Delete prototype.
645 * hppa-tdep.c (hppa_frame_cache): Update comment.
646 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
648 2008-07-14 Stan Shebs <stan@codesourcery.com>
650 * remote-sim.c (init_gdbsim_ops): Remove
651 TARGET_REDEFINE_DEFAULT_OPS.
653 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
655 * findvar.c (read_var_value): Remove unused variable.
657 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
659 * infrun.c (handle_inferior_event): Tag threads as stopped
660 before inserting breakpoints.
662 2008-07-15 Hui Zhu <teawater@gmail.com>
664 * MAINTAINERS: Added myself to section Write After Approval.
666 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
669 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
671 2008-07-14 Pedro Alves <pedro@codesourcery.com>
673 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
674 (i386_dicos_push_dummy_code): New.
675 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
676 Register i386_dicos_push_dummy_code.
678 2008-07-14 Markus Deuling <deuling@de.ibm.com>
680 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
681 (mips_n32n64_push_dummy_call, mips_o64_return_value)
682 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
684 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
685 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
686 (mips_n32n64_fp_arg_chunk_p): Update caller.
688 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
689 (mips_n32n64_push_dummy_call): Update caller.
691 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
693 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
694 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
697 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
699 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
700 (mips_o64_push_dummy_call): Update caller.
702 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
703 (fp_register_arg_p, mips_dump_tdep): Update caller.
705 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
706 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
708 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
710 (mips32_scan_prologue): Update caller.
712 (heuristic_proc_start): Add gdbarch as parameter. Replace
714 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
716 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
717 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
718 the current architecture. Update call to getregs_supplies.
719 (getregs_supplies): Add gdbarch as parameter and replace
722 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
723 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
724 NBSD_MIPS_JB_ELEMENT_SIZE.
725 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
726 replace current_gdbarch.
728 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
730 (mips_fetch_registers, mips_store_registers): Update call
732 (mips_load): Use get_regcache_arch to get at the current_architecture
733 and replace current_gdbarch.
735 2008-07-13 Pedro Alves <pedro@codesourcery.com>
737 * thread.c (restore_selected_frame): On fail to restore, select
738 the innermost frame, and don't crash when warning the user.
740 2008-07-13 Hui Zhu <teawater@gmail.com>
742 * symtab.c (expand_line_sal): Fix a memory leak.
744 2008-07-13 Pedro Alves <pedro@codesourcery.com>
746 * utils.c (struct continuation): Define as inheriting struct
748 (add_continuation, do_all_continuations)
749 (discard_all_continuations, add_intermediate_continuation)
750 (do_all_intermediate_continuations)
751 (discard_all_intermediate_continuations): Adjust.
753 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
755 Skip varobj in running threads.
756 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
757 thread is not stopped, skip the varobj.
758 * Makefile.in: Update dependencies.
760 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
762 Enable all commands while inferiour is running
763 * mi/mi-main.c (mi_cmd_execute): Don't check if
764 inferiour is executing.
766 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
768 Allow all CLI command even if target is executing.
769 * gdb/top.c (execute_command_1): Don't check if the inferiour
772 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
774 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
775 Fix printing of frame, when frame is wrong.
777 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
779 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
780 backchain is unreadable.
782 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
784 * spu-linux-nat.c: Include "gdbthread.h".
785 (spu_child_post_startup_inferior): Register main thread.
786 (spu_child_post_attach): Likewise.
787 * Makefile.in (spu-linux-nat.o): Update dependencies.
789 2008-07-12 Pedro Alves <pedro@codesourcery.com>
791 Rewrite continuations internals on top of cleanups and plug
792 continuation arguments leaks.
794 * defs.h (struct continuation): Make it opaque.
795 (add_continuation, add_intermediate_continuation): Drop the int
796 argument of the continuation hook argument. Add
797 continuation_free_args argument.
798 (do_all_continuations, do_all_intermediate_continuations): Drop
799 the error_p argument.
801 * utils.c (add_continuation): Drop the int argument of the
802 continuation hook argument. Add continuation_free_args argument.
803 Reimplement on top of cleanups.
804 (do_all_continuations): Drop error argument. Reimplement on top
806 (discard_all_continuations): Reimplement on top of cleanups.
807 (add_intermediate_continuation): Drop the int argument of the
808 continuation hook argument. Add continuation_free_args argument.
809 Reimplement on top of cleanups.
810 (do_all_intermediate_continuations): Drop error argument.
811 Reimplement on top of cleanups.
812 (discard_all_intermediate_continuations): Reimplement on top of
815 * breakpoint.c (until_break_command_continuation): Drop error
816 argument. Add xfree as continuation argument deleter.
818 * inf-loop.c (inferior_event_handler): On error, discard all
819 continuations. Adjust to new do_all_intermediate_continuations
820 and do_all_continuations interfaces.
822 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
823 Pass xfree as continuation argument deleter.
824 (finish_command_continuation): Drop error_p argument. Adjust.
825 (finish_command_continuation_free_arg): New.
826 (finish_command): Pass finish_command_continuation_free_arg as
827 continuation argument deleter. Adjust to new do_all_continuations
829 (attach_command_continuation): Drop error_p argument.
830 (attach_command_continuation_free_args): New.
831 (attach_command): Pass attach_command_continuation_free_args as
832 continuation argument deleter.
834 * interps.c (interp_set): Adjust to new do_all_continuations
837 * event-top.c (stdin_event_handler): In error, also discard the
838 intermediate continuations.
840 2008-07-12 Pedro Alves <pedro@codesourcery.com>
842 Replace struct continuation_args by void* and per command structs.
844 * top.c (execute_command): Remove unused arg1 and arg2 locals.
846 * breakpoint.c (struct until_break_command_continuation_args):
848 (until_break_command_continuation): Take a void* instead of a
849 continuations_arg. Adjust.
850 (until_break_command): Adjust to use struct
851 until_break_command_continuation_args instead of struct
854 * infcmd.c (struct step_1_continuation_args): New.
855 (step_1_continuation): Take a void* instead of a
856 continuations_arg. Adjust to use struct step_1_continuation_args.
857 (step_once): Adjust to use struct step_1_continuation_args.
859 (struct finish_command_continuation_args): New.
860 (finish_command_continuation): Take a void* instead of a
861 continuations_arg. Adjust to use struct
862 finish_command_continuation_args.
863 (finish_command): Adjust to use struct
864 finish_command_continuation_args.
865 (struct attach_command_continuation_args): New.
866 (attach_command_continuation): Take a void* instead of a
867 continuations_arg. Adjust to use struct
868 attach_command_continuation_args.
869 (attach_command): Adjust to use struct
870 attach_command_continuation_args.
872 * defs.h (struct continuation_arg): Delete.
873 (struct continuation): Replace the struct continuation_arg*
874 parameter of continuation_hook by a void*. Replace "arg_list"
875 member by a new "args" member with void* type.
876 (add_continuation, add_intermediate_continuation): Replace struct
877 continuation_arg type usages by void* usages.
879 * utils.c (add_continuation, do_all_continuations)
880 (add_intermediate_continuation)
881 (do_all_intermediate_continuations): Replace struct
882 continuation_arg type usages by void* usages. Pass "args" instead
885 2008-07-12 Pedro Alves <pedro@codesourcery.com>
887 * infrun.c (struct thread_stepping_state): Delete sal member.
888 (init_thread_stepping_state): Add local sal. Use it instead of
890 (handle_inferior_event): New local stop_pc_sal. Use it instead of
892 (step_into_function): Add local stop_func_sal. Use it instead of
895 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
897 Implement -exec-continue/-exec-interrupt --all.
898 * infcmd.c (continue_1): New, extracted from
899 (continue_command): ...here.
900 (interrupt_target_1): New, extracted from
901 (interrupt_target_command): ...here.
902 * inferior.h (continue_1, interrupt_target_1): New.
903 * mi/mi-main.c (mi_cmd_exec_continue)
904 (mi_cmd_exec_interrupt): Handle --all.
906 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
908 Implement --thread and --frame.
909 * gdbthread.h (find_thread_id): Declare.
910 * thread.c (find_thread_id): Make non-static.
911 * mi/mi-main.c (mi_cmd_execute): Switch to the right
912 thread and frame, if necessary.
913 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
914 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
916 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
918 * infrun.c (resume): Discard cleanups on early exit path.
920 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
922 * infrun.c (normal_stop): For MI, report which threads
925 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
927 Report thread state in -thread-info output.
928 * thread.c (print_thread_info): Add new field "state".
930 2008-07-11 Pedro Alves <pedro@codesourcery.com>
932 * infrun.c (handle_inferior_event): Also ignore a
933 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
935 2008-07-11 Tom Tromey <tromey@redhat.com>
937 * completer.c (complete_line_internal): New function, from
938 complete_line. Add 'for_help' parameter.
939 (complete_line): Use it.
940 (command_completer): Move later. Rewrite.
942 2008-07-11 Pedro Alves <pedro@codesourcery.com>
944 * thread.c (thread_apply_command): Move making the cleanup out of
947 2008-07-11 Pedro Alves <pedro@codesourcery.com>
951 * thread.c (enum thread_state): New.
952 (thread_state main_thread_running): Delete, in favor of...
953 (thread_state main_thread_state): ... this. Update throughout.
954 (clear_thread_inferior_resources): New, split from free_thread.
955 (free_thread): Call clear_thread_inferior_resources.
956 (init_thread_list): Set main thread to stopped state.
957 (add_thread_silent): Take care of PTID reuses.
958 (delete_thread): If deleting inferior_ptid or a thread with
959 refcount > 0, mark it as exited, but still keep it in the list.
960 Only notify of thread exits, if we haven't done so yet.
961 (iterate_over_threads): Make it safe to delete threads while
963 (do_captured_list_thread_ids): Don't account for exited threads.
964 (thread_alive): Check for the THREAD_EXITED state, and don't set
965 ptid to -1 on exited threads.
966 (set_running): Update to account for extra possible states.
967 (is_thread_state): New.
968 (is_stopped, is_exited): New.
969 (is_running): Implement in terms of is_thread_state.
970 (any_running): Update.
971 (print_thread_info): Update. Account for exited threads. Don't
972 warn about missed frame restoring here, its done in the cleanup.
973 (switch_to_thread): Don't read from a thread that has gone.
974 (restore_current_thread): In non-stop mode, do a full context
976 (restore_selected_frame): Add a frame_level argument. Rewrite.
977 (struct current_thread_cleanup): Add selected_frame_level and
979 (do_restore_current_thread_cleanup): Check if thread was stopped
980 and still is, and if the target has registers, stack and memory
981 before restoring the selected frame. Don't delete the cleanup
983 (restore_current_thread_cleanup_dtor): New.
984 (make_cleanup_restore_current_thread): Remove all arguments.
986 (thread_apply_all_command): Update. Prune threads.
987 (thread_apply_command): Update.
988 (thread_command): Account for currently selected exited thread.
989 (do_captured_thread_select): Check for a running thread. Prune
991 (_initialize_thread): Make "info threads", "thread", "thread
992 apply", and "thread apply all" appliable without a selected thread.
993 * gdbthread.h (struct thread_info): Replace running_ by state_.
995 (is_exited, is_stopped): Declare.
996 (make_cleanup_restore_current_thread): Remove all arguments.
997 * infrun.c: Include "event-top.h".
998 (fetch_inferior_event): In non-stop mode, restore selected thread
999 and frame after handling the event and running breakpoint
1000 commands. Display GDB prompt if needed.
1001 (normal_stop): In non-stop mode, don't print thread switching
1003 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1004 (get_cmd_no_selected_thread_ok): New.
1005 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1006 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1008 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1009 no-selected-thread ok.
1010 * top.c (execute_command): Check for non no-selected-thread-ok
1012 * linux-nat.c (struct saved_ptids, threads_to_delete)
1013 (record_dead_thread, prune_lwps): Delete.
1014 (exit_lwp): Unconditionally delete thread.
1015 (linux_nat_resume): Remove prune_lwps call.
1016 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1017 of is_running. Adjust to make_cleanup_restore_current_thread
1019 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1020 selected thread has exited.
1021 * inf-loop.c (inferior_event_handler): Don't display the prompt
1023 * varobj.c (c_value_of_root): Update.
1024 * defs.h (make_cleanup_dtor): Declare.
1025 * utils.c (make_cleanup_dtor): New.
1027 * Makefile.in (infrun.o): Depend on $(event_top_h).
1029 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1031 Add "continue -a" and "interrupt -a" options for non-stop mode.
1033 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1034 (continue_command): Add "-a" option.
1035 (interrupt_target_command): Add "-a" option.
1036 (_initialize_infcmd): Add extend help of continue and interrupt
1037 command to mention the new "-a" option. Mark "continue" async ok.
1039 2008-07-10 Doug Evans <dje@google.com>
1041 Add "set print symbol-loading on|off".
1042 * NEWS: Document new option.
1043 * symfile.h (print_symbol_loading): Declare.
1044 * symfile.c (print_symbol_loading): New global.
1045 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1046 from ..." if print_symbol_loading.
1047 (_initialize_symfile): Add set/show print symbol-loading.
1048 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1049 if print_symbol_loading.
1051 2008-07-10 Pedro Alves <pedro@codesourcery.com>
1053 Non-stop linux native.
1055 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1057 (get_pending_status): Implement non-stop mode.
1058 (linux_nat_detach): Stop threads before detaching.
1059 (linux_nat_resume): In non-stop mode, always resume only a single
1061 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1062 add new lwp to GDB's thread table, and mark as running, executing
1063 and stopped appropriately.
1064 (linux_nat_filter_event): Don't assume there are other running
1065 threads when a thread exits.
1066 (linux_nat_wait): Mark the main thread as running and executing.
1067 In non-stop mode, don't stop all lwps.
1068 (linux_nat_kill): Stop lwps before killing them.
1069 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1071 (send_sigint_callback): New.
1072 (linux_nat_stop): New.
1073 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1075 * linux-nat.h (thread_db_attach_lwp): Declare.
1077 * linux-thread-db.c (thread_get_info_callback): Check for new
1078 threads if we have none.
1079 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1080 stopped lwp. Check for new threads if we have none.
1081 (thread_db_attach_lwp): New.
1082 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1083 (check_event): Set proc_handle.pid to the stopped lwp.
1084 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1085 lwp available, bail out if there is none.
1087 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1090 2008-07-10 Kevin Buettner <kevinb@redhat.com>
1092 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1093 `current_pc' from CORE_ADDR to ULONGEST.
1095 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1098 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 * NEWS (New commands): Mention "set disable-randomization".
1101 * configure.ac: Add check for HAVE_PERSONALITY and
1102 HAVE_DECL_ADDR_NO_RANDOMIZE.
1103 * configure, config.in: Regenerate.
1104 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1105 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1107 (disable_randomization, show_disable_randomization)
1108 (set_disable_randomization): New.
1109 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1110 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1111 variable DISABLE_RANDOMIZATION.
1112 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1113 DISABLE_RANDOMIZATION.
1115 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1117 Adjust all targets to new target_stop interface.
1119 * gnu-nat.c (gnu_stop): Add ptid argument.
1120 * go32-nat.c (go32_stop): Add ptid argument.
1121 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1122 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1123 * monitor.c (monitor_stop): Add ptid argument.
1124 (monitor_open): Pass inferior_ptid to monitor_stop.
1125 (monitor_interrupt): Pass inferior_ptid to target_stop.
1126 (monitor_stop): Add ptid argument.
1127 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1128 (procfs_create_inferior): Add ptid argument.
1129 * procfs.c (procfs_stop): Add ptid argument.
1130 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1131 * remote-sim.c (gdbsim_stop): Add ptid argument.
1132 * sol-thread.c (sol_thread_stop): Add ptid argument.
1133 * win32-nat.c (win32_stop): Add ptid argument.
1135 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1137 Non-stop inferior control.
1139 * infrun.c (resume): In non-stop mode, always resume just one
1141 (proceed): Don't call prepare_to_proceed in non-stop mode.
1142 (fetch_inferior_event): In non-stop mode, switch context before
1144 (error_is_running, ensure_not_running): New.
1145 (handle_inferior_event): In non-stop mode: Mark only the event
1146 thread as stopped. Require that the target module manages adding
1147 threads to the thread list. Assert that there isn't a
1148 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1149 (normal_stop): Only mark not-running if inferior hasn't exited.
1150 In non-stop mode, only mark the event thread.
1152 * thread.c:Include "cli/cli-decode.h".
1153 (print_thread_info): Don't read from a running thread.
1154 Output "(running)" if thread is running.
1155 (switch_to_thread): Don't read stop_pc if thread is executing.
1156 (do_restore_current_thread_cleanup): Don't write to a running
1158 (thread_apply_all_command): Don't read from a running thread. In
1159 non-stop mode, do a full context-switch instead of just switching
1161 (thread_apply_command): In non-stop mode, do a full context-switch
1162 instead of just switching threads.
1163 (do_captured_thread_select): Likewise. Inform user if selected
1165 (_initialize_thread): Mark "info threads" and "thread" and
1168 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1169 unregister the target from the event loop.
1171 * infcmd.c (continue_command, step_1, jump_command)
1172 (signal_command): Ensure the selected thread isn't running.
1173 (interrupt_target_command): In non-stop mode, interrupt only the
1176 * inferior.h (error_is_running, ensure_not_running): Declare.
1178 * target.h (struct target_ops): Add ptid argument to the to_stop
1180 (target_stop): Add ptid_t argument.
1182 * target.c (update_current_target): Add ptid argument to to_stop's
1184 (debug_to_stop): Add ptid_t argument.
1185 (debug_to_rcmd): Set to_stop_ptid.
1187 * remote.c (remote_stop): Add ptid_t argument.
1188 (async_remote_interrupt): Add inferior_ptid to target_stop.
1189 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1191 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1193 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1195 Don't rely on ecs->wait_for_more.
1197 * infrun.c (proceed): Clear the stepping state, set
1198 previous_inferior_ptid and clear infwait state.
1199 (wait_for_inferior): Don't clear the stepping state, set
1200 previous_inferior_ptid, or clear the infwait state here.
1201 (fetch_inferior_event): Don't clear the stepping state, set
1202 previous_inferior_ptid, or clear the infwait state here. Don't
1203 condition on wait_for_more.
1205 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1207 Refactor infrun a bit.
1209 * infrun.c (currently_stepping): Take a struct
1210 thread_stepping_state instead of an execution_control_state.
1211 (struct thread_stepping_state): New, split from
1212 execution_control_state.
1213 (gtss, tss): New globals.
1214 (proceed): Clear the stepping state, set previous_inferior_ptid
1215 and clear infwait state.
1216 (init_wait_for_inferior): Clear the stepping state,
1217 previous_inferior_ptid and infwait state.
1218 (waiton_ptid, infwait_state): New, split from
1219 execution_control_state.
1220 (struct execution_control_state): Members that persist through
1221 events moved out to either struct thred_stepping_state or made
1222 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1223 (wait_for_inferior, fetch_inferior_event): Use local
1224 execution_control_state. Update to execution_control_state split.
1225 (init_execution_control_state): Adjust.
1226 (init_thread_stepping_state): New, extracted from
1227 init_execution_control_state.
1228 (context_switch): Take a ptid instead of an
1229 execution_control_state.
1230 (context_switch_to): Adjust.
1231 (adjust_pc_after_break): Adjust.
1232 (init_infwait_state): New.
1233 (handle_inferior_event): Adjust.
1235 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1236 Vladimir Prus <vladimir@codesourcery.com>
1238 Per-thread commands.
1240 * gdbthread.h: Remove unneeded forward declarations.
1241 Include "inferior.h".
1242 (struct thread_info): Add continuations,
1243 intermediate_continuations, proceed_to_finish, step_over_calls,
1244 stop_step, step_multi and stop_signal members.
1245 (save_infrun_state): Add continuations,
1246 intermediate_continuations, proceed_to_finish, step_over_calls,
1247 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1248 (load_infrun_state): Add continuations,
1249 intermediate_continuations, proceed_to_finish, step_over_calls,
1250 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1252 * thread.c (load_infrun_state): In non-stop mode, load
1253 continuations, intermediate_continuations, proceed_to_finish,
1254 step_over_calls, stop_step, step_multi and stop_signal.
1255 (save_infrun_state): Store continuations,
1256 intermediate_continuations, proceed_to_finish, step_over_calls,
1257 stop_step, step_multi, stop_signal and stop_bpstat.
1258 (save_infrun_state): Store continuations,
1259 intermediate_continuations, proceed_to_finish, step_over_calls,
1260 stop_step, step_multi, stop_signal and stop_bpstat.
1261 (free_thread): Clear The thread's stop_bpstat.
1263 * inferior.h (context_switch_to): Declare.
1265 * infrun.c (ecss): New global.
1266 (context_switch): Context switch continuations,
1267 intermediate_continuations, proceed_to_finish, step_over_calls,
1268 stop_step, step_multi, stop_signal and stop_bpstat.
1269 (wait_for_inferior): Use global ecss.
1270 (async_ecss, async_ecs): Delete.
1271 (fetch_inferior_event): Use global ecss.
1272 (context_switch_to): New.
1274 * top.c (execute_command): In non-stop, only check if the current
1275 thread is running, in all-stop, check if there's any thread
1278 * breakpoint.c (bpstat_remove_breakpoint): New.
1279 (bpstat_remove_breakpoint_callback): New.
1280 (delete_breakpoint): Clear the stop_bpstats of all threads.
1282 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1283 current thread is running, in all-stop, check if there's any
1286 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1288 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1290 Add non_stop global.
1292 * inferior.h (non_stop): Declare.
1293 * infrun.c (non_stop, non_stop_1): New.
1294 (set_non_stop, show_non_stop): New.
1295 (_initialize_infrun): Add "set/show non-stop" command.
1297 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1299 Adjust fork/vfork/exec to pass ptids around.
1301 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1302 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1304 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1306 * breakpoint.c (print_it_typical, bpstat_check_location)
1307 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1308 (create_fork_vfork_event_catchpoint): Adjust.
1309 * infrun.c (fork_event): Change parent_pid and child_pid types to
1311 (follow_exec, inferior_has_forked, inferior_has_vforked)
1312 (inferior_has_execd): Take a ptid_t and don't trim it.
1313 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1314 * linux-nat.c (linux_child_follow_fork): Adjust.
1315 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1316 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1317 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1319 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1321 Add "executing" property to threads.
1323 * inferior.h (target_executing): Delete.
1324 * gdbthread.h (struct thread_info): Add executing_ field.
1325 (set_executing, is_executing): New.
1326 * thread.c (main_thread_executing): New.
1327 (init_thread_list): Clear it and also main_thread_running.
1328 (is_running): Return false if target has no execution.
1329 (any_running, is_executing, set_executing): New.
1331 * top.c: Include "gdbthread.h".
1332 (target_executing): Delete.
1333 (execute_command): Replace target_executing check by any_running.
1334 * event-top.c: Include "gdbthread.h".
1335 (display_gdb_prompt, command_handler): Replace target_executing by
1337 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1338 here. Replace target_executing by is_running.
1339 * infrun.c (handle_inferior_event): Mark all threads as
1341 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1343 * stack.c (get_selected_block): Return null if inferior is
1345 * target.c (target_resume): Mark resumed ptid as executing.
1346 * breakpoint.c (until_break_command): Replace target_executing
1347 check by is_executing.
1348 * remote.c (remote_async_resume): Don't mark inferior as executing
1350 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1353 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1354 (mi_execute_async_cli_command): Replace target_executing by
1357 * frame.c (get_current_frame): Error out if the current thread is
1359 (has_stack_frames): New.
1360 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1363 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1366 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1368 * symfile.c (load_command): Reopen the exec file and reread
1369 symbols before anything else.
1371 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1373 * remote-sim.c: Include gdbthread.h.
1374 (remote_sim_ptid): New global.
1375 (gdbsim_create_inferior): Silently add the main task to GDB's
1377 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1378 task from GDB's thread list.
1379 (gdbsim_resume): Adjust to use remote_sim_ptid.
1380 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1381 (init_gdbsim_ops): Register gdbsim_thread_alive and
1383 (_initialize_remote_sim): Initialize remote_sim_ptid.
1384 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1386 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1388 * monitor (monitor_ptid): New global.
1389 (monitor_open): Silently add the main task to GDB's thread list.
1390 (monitor_close, monitor_mourn_inferior): Silently delete the main
1391 task from GDB's thread list.
1392 (monitor_thread_alive, monitor_pid_to_str): New.
1393 (init_base_monitor_ops): Register monitor_thread_alive and
1395 (_initialize_remote_monitors): Initialize monitor_ptid.
1397 * gdbthread.h (delete_thread_silent): Declare.
1398 * thread.c (delete_thread): Rename to ...
1399 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1400 don't do exit notifications.
1401 (delete_thread, delete_thread_silent): New, as wrappers to
1404 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1406 * breakpoint.c (update_global_location_list): Add boolean
1407 "should_insert" argument. Only insert locations if caller told it
1409 (update_global_location_list_nothrow): Add boolean "should_insert"
1410 argument. Pass it to update_global_location_list.
1411 (insert_breakpoints, create_longjmp_breakpoint)
1412 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1413 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1414 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1415 (enable_watchpoints_after_interactive_call_stop)
1416 (set_momentary_breakpoint, create_breakpoints)
1417 (break_command_really, watch_command_1)
1418 (create_ada_exception_breakpoint, update_breakpoint_locations)
1419 (do_enable_breakpoint, enable_command): Pass true to
1420 update_global_location_list.
1421 (bpstat_stop_status, disable_overlay_breakpoints)
1422 (disable_watchpoints_before_interactive_call_start)
1423 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1424 false to update_global_location_list.
1425 (update_breakpoints_after_exec): Don't temporarily disable
1426 always-inserted mode.
1428 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1430 * breakpoint.c (mark_breakpoints_out): Make public.
1431 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1432 here. Update comment.
1433 * breakpoint.h (mark_breakpoints_out): Declare.
1435 * linux-nat.c (linux_handle_extended_wait): On
1436 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1437 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1439 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1441 * infrun.c (follow_exec): Reset shared libraries before adding the
1444 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1448 2008-07-07 Pedro Alves <pedro@codesourcery.com>
1450 * i386-dicos-tdep.c: Include "inferior.h".
1451 (i386_dicos_frame_align): New.
1452 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1453 dummy location ON_STACK.
1454 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1456 2008-07-07 Joel Brobecker <brobecker@adacore.com>
1458 * gstdint.h: New file.
1460 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1462 * mi/mi-interp.c (mi_on_resume): Don't try to report
1463 resumed thread it the thread list is empty.
1465 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1467 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1468 completer for set to filename_completer.
1472 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1474 Implement -target-attach.
1475 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
1477 2008-06-21 Hui Zhu <teawater@gmail.com>
1479 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1481 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1483 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1484 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1486 * target.h (struct target_ops): Add to_attach_no_wait member.
1487 (target_attach_no_wait): New.
1488 * target.c (update_current_target): Inherit to_attach_no_wait.
1490 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1491 target_attach_no_wait runtime check.
1493 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1494 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1497 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1499 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1500 on debug_displaced being set.
1502 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1504 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1505 directly instead of get_frame_id.
1507 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1509 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1510 (deal_with_atomic_sequence): Update BC masks.
1511 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1512 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1514 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1516 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1517 register, not the previous frame's.
1519 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1521 * source.c (select_source_symtab): Make sure we skip namespace
1522 symtabs when showing cpp source code.
1524 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
1526 * MAINTAINERS (Authorized committers): Fix my email address.
1528 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1530 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1531 -target-download and -target-select via CLI, so that
1532 the quoting rules are the same as they were (unfortunately)
1533 in all prior gdb releases.
1534 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1535 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1536 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1537 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1538 (mi_cmd_execute): Set current_token even for commands
1541 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1543 * alphafbsd-tdep.c: Update for unwinder changes.
1544 * alpha-linux-tdep.c: Likewise.
1545 * alphanbsd-tdep.c: Likewise.
1546 * alphaobsd-tdep.c: Likewise.
1547 * avr-tdep.c: Likewise.
1548 * cris-tdep.c: Likewise.
1549 * frv-linux-tdep.c: Likewise.
1550 * frv-tdep.c: Likewise.
1551 * h8300-tdep.c: Likewise.
1552 * hppa-linux-tdep.c: Likewise.
1553 * iq2000-tdep.c: Likewise.
1554 * m32c-tdep.c: Likewise.
1555 * m32r-linux-tdep.c: Likewise.
1556 * m32r-tdep.c: Likewise.
1557 * m68hc11-tdep.c: Likewise.
1558 * mep-tdep.c: Likewise.
1559 * mn10300-tdep.c: Likewise.
1560 * mt-tdep.c: Likewise.
1561 * score-tdep.c: Likewise.
1562 * sh64-tdep.c: Likewise.
1563 * sh-tdep.c: Likewise.
1564 * sparc64fbsd-tdep.c: Likewise.
1565 * sparc64nbsd-tdep.c: Likewise.
1566 * sparc64obsd-tdep.c: Likewise.
1567 * v850-tdep.c: Likewise.
1568 * vaxobsd-tdep.c: Likewise.
1569 * vax-tdep.c: Likewise.
1570 * xstormy16-tdep.c: Likewise.
1572 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1574 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1575 (captured_mi_execute_command_args): Remove.
1576 (captured_mi_execute_command): Cast the closure to mi_parse
1577 pointer, not to captured_mi_execute_command_args, and don't
1578 set the action field thereof.
1579 (mi_execute_command): Pass struct mi_parse, not
1580 captured_mi_execute_command_args to captured_mi_execute_command.
1581 (mi_execute_command): Remove (dead) code for suppressing
1584 2008-06-28 Pedro Alves <pedro@codesourcery.com>
1586 * linux-nat.c (enum sigchld_state): New.
1587 (linux_nat_async_events_state): Renamed from
1588 linux_nat_async_events_enabled.
1589 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1590 (sigchld_default_action): New.
1591 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1593 (linux_nat_create_inferior): Set events state to sigchld_default
1595 (linux_nat_resume): Adjust.
1596 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1597 (sigchld_handler): Adjust.
1598 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1599 (get_pending_events): Adjust.
1600 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1601 instead of a boolean.
1602 (linux_nat_async): Adjust.
1603 (_initialize_linux_nat): Capture default SIGCHLD action into
1604 sigchld_default_action.
1606 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1608 * breakpoint.c (moribund_locations): New.
1609 (bpstat_stop_status): Process moribund locations.
1610 (update_global_location_list): Add removed
1611 locations to moribund_locations.
1612 (breakpoint_retire_moribund): New.
1613 * breakpoint.h (struct bp_location): New field
1614 events_till_retirement.
1615 (breakpoint_retire_moribund): Declare.
1616 * thread.c (thread_count): New.
1617 * infrun.c (handle_inferior_event): Call
1618 breakpoint_retire_moribund.
1619 * gdbthread.h (thread_count): Declare.
1621 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1623 * dfp.c (decimal_convert): Call match_endianness before and after
1626 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1628 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1629 unsupported and we fall back to memory_insert_breakpoint, we
1630 use the unmodified requested address.
1632 2008-06-27 Joel Brobecker <brobecker@adacore.com>
1634 * dwarf2read.c (read_attribute_value): Issue a complaint when
1635 adjusting size attribute values of 0xffffffff as zero.
1637 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1639 * i386-tdep.c (i386_16_byte_align_p): New.
1640 (i386_push_dummy_call): Determine stack space required for
1641 arguments going forwards allowing for 16-byte alignment, then push
1642 arguments going forwards.
1644 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1646 * infrun.c (start_remote): Don't clear thread list here.
1647 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1649 * remote.c (record_currthread): Upgrade the main thread and its
1650 entry in the thread list if this is the first time we hear about
1652 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1653 a tid member always alive.
1654 (remote_find_new_threads): Don't update the main thread here.
1655 (remote_start_remote): Clear thread list here. Always add the
1657 (extended_remote_attach_1): Add the main thread here.
1658 (extended_remote_mourn_1): Re-add the main thread here.
1659 (extended_remote_create_inferior_1): Add a main thread.
1661 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1663 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1665 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1667 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1669 (general_thread, continue_thread): Change type to ptid_t.
1670 (record_currthread): Take a ptid_t parameter instead of an
1672 (MAGIC_NULL_PID): Delete.
1673 (set_thread): Take a ptid_t parameter and adjust.
1674 (set_general_thread, set_continue_thread): New.
1675 (remote_thread_alive, remote_newthread_step)
1676 (remote_current_thread, remote_find_new_threads)
1677 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1678 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1679 (threadalive_test, remote_pid_to_str)
1680 (remote_get_thread_local_address): Adjust.
1681 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1682 and any_thread_ptid.
1684 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1687 * configure: Regenerated.
1689 2008-06-26 Joel Brobecker <brobecker@adacore.com>
1691 * dwarf2read.c (read_attribute_value): Treat size attribute
1692 values of 0xffffffff as if the attribute value was zero.
1694 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1696 * linux-nat.c: Add description of overall logic.
1698 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1700 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1701 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1702 all dependencies on $(gdb_stdint_h).
1703 (distclean): Do not delete gdb_stdint.h.
1704 * acinclude.m4: Do not use stdint.m4.
1705 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1706 uintptr_t, and gdb_stdint.h.
1707 * defs.h: Include <stdint.h>.
1708 * gdb_thread_db.h: Assume stdint.h is already included.
1709 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1710 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1711 include gdb_stdint.h.
1712 * configure, config.in: Regenerate.
1714 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1716 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1717 decimal floating-point values in GPRs for soft-float.
1718 (do_ppc_sysv_return_value): Handle returning decimal
1719 floating-point values in GPRs for soft-float.
1721 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1723 * target.c (target_read_until_error): New.
1724 * target.h (target_read_until_error): Declare.
1725 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1726 target_read_until_error.
1728 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1730 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1731 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1732 after the DECFLOAT detection to fix a memory leak. Remove the
1733 redundant NUM initialization. Protect the DECFLOAT detection memory
1734 access before the P block. Restore the P memory content for the
1737 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1739 Kill the return value for all MI command functions.
1740 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1741 (mi_cmd_argv_ftype): Change return type to void.
1743 * mi/mi-main.c: Adjust all function that implement
1744 MI commands to return nothing.
1745 (struct captured_mi_execute_command_actions):
1746 Remove the rc field.
1747 (mi_cmd_execute): Return nothing.
1748 (mi_execute_async_cli_command): Return nothing.
1749 (mi_cmd_exec_interrupt): Don't print ^done here.
1750 (mi_cmd_target_select): Don't print ^connected here.
1751 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1752 Special-case -target-select and output ^connected, not ^done.
1754 * mi/mi-cmd-break.c: Adjust.
1755 * mi/mi-cmd-disas.c: Adjust.
1756 * mi/mi-cmd-env.c: Adjust.
1757 * mi/mi-cmd-file.c: Adjust.
1758 * mi/mi-cmd-stack.c: Adjust.
1759 * mi/mi-cmd-target.c: Adjust.
1760 * mi/mi-cmd-var.c: Adjust.
1761 * mi/mi-interp.c: Adjust.
1762 * mi/mi-symbol-cmds.c: Adjust.
1764 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1766 Emit ^running via observer.
1767 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
1769 (mi_on_resume): Print ^running if not previously output.
1770 * mi/mi-main.c (running_result_record_printed): New.
1771 (captured_mi_execute_command): Reset
1772 running_result_record_printed. Use running_result_record_printed
1773 to decide if we should skip ^done.
1774 (mi_execute_async_cli_command): Don't print ^running here.
1775 * mi/mi-main.h (current_token, running_result_record_printed):
1778 2008-06-24 Michael Snyder <msnyder@specifix.com>
1780 * infrun.c (_initialize_infrun): White space and typo fix.
1782 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1784 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1785 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1786 when first loading DLL with "dll" command.
1788 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1790 * gnu-nat.c (proc_string): Use capital T for "Thread".
1792 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1794 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
1796 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1798 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1799 the target cannot run.
1801 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1803 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1804 we're attaching to a running process.
1806 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
1808 * win32-nat.c (handle_load_dll): Give dll name and load address
1809 if debug_events is on.
1810 (handle_unload_dll): Likewise.
1812 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1814 Don't suppress *running when doing finish.
1815 * infcall.c (call_function_by_hand): Set both
1816 suppress_resume_observer and suppress_stop_observer.
1817 * infcmd.c (suppress_run_stop_observers): Split into...
1818 (suppress_resume_observer, suppress_stop_observer): ...those.
1819 (finish_command_continuation): Clear suppress_stop_observer.
1820 (finish_command): Set suppress_stop_observer.
1821 * inferior.h (suppress_run_stop_observers): Split into...
1822 (suppress_resume_observer, suppress_stop_observer): ...those.
1823 * infrun.c (normal_stop): Check for suppress_stop_observer.
1824 * thread.c (set_running): Check for suppress_resume_observer.
1826 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1827 Pierre Muller <muller@ics.u-strasbg.fr>
1829 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1830 * gdbarch.h, gdbarch.c: Regenerate.
1831 * i386-tdep.h (i386_skip_main_prologue): Declare.
1832 * i386-tdep.c (i386_skip_main_prologue): New.
1833 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
1834 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
1835 * symtab.c (find_function_start_sal): When pc points at the "main"
1836 function, call gdbarch_skip_main_prologue.
1838 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
1840 * value.c (value_primitive_field): Fetch lazy register values.
1842 2008-06-11 Pedro Alves <pedro@codesourcery.com>
1844 * NEWS: Mention support removal of undocumented S AA p PID stop
1847 * remote.c (remote_wait): Remove undocumented S AA p PID support.
1849 2008-06-10 Stan Shebs <stan@codesourcery.com>
1851 * MAINTAINERS: Update my affiliation and address.
1853 2008-06-10 Andreas Schwab <schwab@suse.de>
1855 * top.c (print_gdb_version): Don't print final newline.
1857 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1860 * Makefile.in: Update dependencies.
1861 * gdbthread.h (struct thread_info): New field
1863 (set_running, is_running): New.
1864 * thread.c (set_running, is_running): New.
1865 * inferior.h (suppress_normal_stop_observer): Rename to...
1866 (suppress_run_stop_observers): ..this.
1867 * infcmd.c (suppress_normal_stop_observer): Rename to...
1868 (suppress_run_stop_observers): ..this.
1869 (finish_command_continuation, finish_command): Adjust.
1870 * infcall.c (call_function_by_hand): Adjust.
1871 * infrun.c (normal_stop): Call set_running.
1872 * target.c (target_resume): New. Call set_running.
1873 * target.h (target_resume): Convert from macro to
1876 * mi/mi-interp.c (mi_on_resume): New.
1877 (mi_interpreter_init): Register mi_on_resume.
1879 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1881 Use observers to report stop events in MI.
1882 * mi/mi-interp.c (mi_on_normal_stop): New.
1883 (mi_interpreter_init): Register mi_on_normal_stop.
1884 (mi_interpreter_exec_continuation): Remove.
1885 (mi_cmd_interpreter_exec): Don't register the above.
1886 * mi/mi-main.c (captured_mi_execute_command): Don't care
1887 about sync_execution.
1888 (mi_execute_async_cli_command): Don't install continuation. Don't
1890 (mi_exec_async_cli_cmd_continuation): Remove.
1892 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1894 Suppress normal stop observer when it's problematic.
1895 * inferior.h (suppress_normal_stop_observer): New.
1896 * infcall.c (call_function_by_hand): Disable stop events when
1897 doing function calls.
1898 * infmcd.c (suppress_normal_stop_observer): New.
1899 (finish_command_continuation): Call normal_stop observer
1901 (finish_command): Disable stop events inside proceed.
1902 * infrun.c (normal_stop): Don't call normal stop observer if
1903 suppressed of if multi-step is in progress.
1905 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1908 * infrun.c (finish_command): Don't pass cleanup
1910 (finish_command_continuation): Don't grab cleanup from
1911 the passed data, as we don't use, and cannot, use it anyway.
1913 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1915 Introduce common cleanup for restoring integers.
1916 * defs.h (make_cleanup_restore_integer): New declaration.
1917 (struct cleanup): New field free_arg.
1918 (make_my_cleanup_2): New.
1919 * utils.c (restore_integer_closure, restore_integer)
1920 (make_cleanup_restore_integer): New.
1921 (make_my_cleanup): Initialize the free_arg field and
1922 renamed to make_my_cleanup_2.
1923 (do_my_cleanups): Call free_arg.
1924 (discard_cleanups): Call free_arg.
1925 * breakpoint.c (restore_always_inserted_mode): Remove.
1926 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
1928 2008-06-09 Doug Evans <dje@google.com>
1930 * remote.c (remote_wait): Include beginning of malformed packet
1933 2008-06-09 Tom Tromey <tromey@redhat.com>
1935 * completer.c (complete_line): Don't special-case
1936 expression_completer.
1937 (expression_completer): Only pass last word to
1939 * c-exp.y (yylex): Check 'token', not 'operator'.
1941 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1943 * configure.ac (build_warnings): Add -Wno-format for mingw.
1944 * configure: Regenerated.
1946 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1948 * NEWS: Make indentation consistent. Move exec tracing entry out
1949 of remote packet list.
1951 2008-06-06 Tom Tromey <tromey@redhat.com>
1953 * value.h (evaluate_subexpression_type, extract_field_op):
1955 * printcmd.c (_initialize_printcmd): Use expression_completer for
1956 'p', 'inspect', 'call'.
1957 * parser-defs.h (parse_field_expression): Declare.
1958 * parse.c: Include exceptions.h.
1959 (in_parse_field, expout_last_struct): New globals.
1960 (mark_struct_expression): New function.
1961 (prefixify_expression): Return int.
1962 (prefixify_subexp): Return int. Use expout_last_struct.
1963 (parse_exp_1): Update.
1964 (parse_exp_in_context): Add 'out_subexp' argument. Handle
1966 (parse_field_expression): New function.
1967 * expression.h (parse_field_expression): Declare.
1968 (in_parse_field): Likewise.
1969 * eval.c (evaluate_subexpression_type): New function.
1970 (extract_field_op): Likewise.
1971 * completer.h (expression_completer): Declare.
1972 * completer.c (expression_completer): New function.
1973 (count_struct_fields, add_struct_fields): New functions.
1974 * c-exp.y (yyparse): Redefine.
1975 (COMPLETE): New token.
1976 (exp): New productions.
1977 (saw_name_at_eof, last_was_structop): New globals.
1978 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
1979 (c_parse): New function.
1980 * breakpoint.c (_initialize_breakpoint): Use expression_completer
1981 for watch, awatch, and rwatch.
1982 * Makefile.in (parse.o): Depend on exceptions_h.
1984 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1987 * gdb/valopts.c (find_overload_match): Handle references
1990 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
1992 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
1993 account the bitsize of the 'from' operand.
1995 2008-06-06 Pedro Alves <pedro@codesourcery.com>
1997 * annotate.h (annotate_thread_changed): Declare.
1999 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
2001 * annotate.c (annotate_thread_changed): New function.
2002 * thread.c (thread_command) : Use it.
2003 * infrun.c (normal_stop): Use it.
2005 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
2006 Nathan Sidwell <nathan@codesourcery.com>
2007 Joseph Myers <joseph@codesourcery.com>
2009 * acinclude.m4: Include ../config/acx.m4.
2010 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2011 * configure, config.in: Regenerate.
2012 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2014 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2016 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2018 Replace 'target async' by 'maintenance set remote-async' and
2019 'target remote' combination.
2021 * remote.c (remote_async_wait): Merge into remote_wait, and
2023 (remote_async_permitted, remote_async_permitted_set): New
2025 (set_maintenance_remote_async_permitted)
2026 (show_maintenance_remote_async_permitted): New functions.
2027 (remote_async_ops, extended_async_remote_ops): Delete.
2028 (remote_async_open, extended_remote_async_open): Delete.
2029 (remote_open_1): Drop async_p parameter. Update callers. Replace
2030 async_p with remote_async_permitted checks.
2031 (extended_async_remote_attach): Delete.
2032 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2033 (remote_async_terminal_inferior): Rename to...
2034 (remote_terminal_inferior): ... this, and add
2035 remote_async_termitted check.
2036 (remote_async_terminal_ours): Rename to...
2037 (remote_terminal_ours): ... this, and add remote_async_termitted
2039 (remote_wait, remote_async_wait): Merge and leave remote_wait
2041 (remote_kill, remote_async_kill): Merge and leave remote_kill
2043 (remote_async_mourn, extended_async_remote_mourn): Delete.
2044 (extended_remote_create_inferior_1): Drop async_p parameter.
2045 Update callers. Always use extended_remote_ops.
2046 (extended_remote_async_create_inferior): Delete.
2047 (remote_return_zero): Delete.
2048 (init_remote_ops): Register remote_can_async_p, remote_async,
2049 remote_async_mask, remote_terminal_inferior and
2050 remote_terminal_ours.
2051 (remote_can_async_p, remote_is_async_p): Check for
2052 remote_async_permitted.
2053 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2054 (set_remote_cmd): Don't add async and extended-async targets.
2055 (_initialize_remote): Add set/show remote-async maintenance
2058 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2060 * remote.c (kill_kludge): Delete.
2061 (remote_wait, remote_async_wait): Don't set it.
2062 (remote_kill, remote_async_kill): Don't do anything with it.
2064 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2066 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2068 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2070 * bcache.c (bcache_data): Call deprecated_bcache_added function.
2071 (deprecated_bcache_added): New function name. Body of function
2072 bcache_data is used here with the addition of 'added' argument.
2073 * bcache.h (deprecated_bcache_added): New function.
2074 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2075 work from add_psymbol_to_list - initialises partial symbol and stashes
2076 it in objfile's cache.
2077 (append_psymbol_to_list): New helper function, takes other part of
2078 work from add_psymbol_to_list - adds partial symbol to the given list.
2079 (add_psymbol_to_list): Call helper functions instead of doing work
2080 here. If adding to global list, do not duplicate partial symbols in the
2083 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2085 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2086 'exception caught|thrown' message.
2088 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * Makefile.in: Update dependencies.
2091 * dwarf2expr.c: New include "gdb_assert.h".
2092 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2093 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2094 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2095 Increase/decrease RECURSION_DEPTH around the function.
2097 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2099 * remote.c (get_offsets): Handle a single segment.
2100 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2103 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2105 * solib-svr4.c (struct lm_info): Add lm_addr.
2106 (main_lm_addr): New.
2107 (svr4_default_sos): Set lm_addr.
2108 (svr4_current_sos): Set lm_addr and main_lm_addr.
2109 (svr4_fetch_objfile_link_map): Rewrite.
2110 (svr4_clear_solib): Clear main_lm_addr.
2112 2008-06-03 Michael Snyder <msnyder@redhat.com>
2113 Joseph Myers <joseph@codesourcery.com>
2115 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2116 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2118 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2120 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2122 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2124 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2126 2008-06-01 Joel Brobecker <brobecker@adacore.com>
2128 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2129 treat pointers in data space as function descriptors if the
2130 target address is also in the data space.
2132 2008-05-30 Joel Brobecker <brobecker@adacore.com>
2134 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2135 the trad-frame register value for the SP register.
2137 2008-05-29 Mark Kettenis <kettenis@gnu.org>
2139 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2141 2008-05-28 Joel Brobecker <brobecker@adacore.com>
2143 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2144 that identifies function descriptors outside of the .opd section.
2146 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2148 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
2149 temporary catchpoints. In MI add missing fields 'reason', 'disp',
2151 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2153 (handle_gnu_v3_exceptions): Use tempflag.
2155 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2157 Refactor varobj_update interface.
2158 * varobj.c (varobj_update): Report changes as vector. Also
2159 return not just a list of varobj, but a list of special structures
2160 that tell what exactly has changed.
2161 * varobj.h (enum varobj_update_error): Rename to
2162 varobj_scope_status.
2163 (struct varobj_update_result_t): New.
2164 (varobj_update): Adjust prototype.
2165 * mi/mi-cmd-var.c: Adjust for changes.
2167 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2169 * varobj.c (varobj_update): Fix comment typo.
2172 2008-05-26 Joel Brobecker <brobecker@adacore.com>
2174 Set the symtab field of symbols read from ECOFF debugging entries.
2175 * mdebugread.c (add_symbol): Add new parameter symtab.
2176 (parse_symbol): Update calls to add_symbol throughout.
2178 2008-05-27 Andreas Schwab <schwab@suse.de>
2180 * symtab.h (enum address_class): Remove LOC_REGPARM and
2182 (struct symbol): Add is_argument.
2183 (SYMBOL_IS_ARGUMENT): Define.
2185 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2186 * buildsym.c (finish_block): Likewise.
2187 * stack.c (print_frame_args, print_block_frame_locals)
2188 (print_frame_arg_vars): Likewise.
2189 * symtab.c (lookup_block_symbol): Likewise.
2190 * tracepoint.c (add_local_symbols): Likewise.
2191 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2193 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2194 * dwarf2read.c (new_symbol): Likewise.
2195 * mdebugread.c (parse_symbol): Likewise.
2196 * stabsread.c (define_symbol): Likewise.
2198 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2199 and LOC_COMPUTED_ARG.
2200 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2201 * ax-gdb.c (gen_var_ref): Likewise.
2202 * eval.c (evaluate_subexp_for_address): Likewise.
2203 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2204 * m2-exp.y (yylex): Likewise.
2205 * printcmd.c (address_info): Likewise.
2206 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2207 * tracepoint.c (collect_symbol, scope_info): Likewise.
2209 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2211 * gdbarch.sh: Added new gdbarch struct
2212 core_regset_sections.
2213 * gdbarch.c: Refreshed.
2214 * gdbarch.h: Refreshed.
2215 * regset.h (core_regset_section): Declared.
2216 * linux-nat.c (linux_nat_do_thread_registers): Added
2217 support for the new gdbarch struct core_regset_sections.
2218 * utils.c (host_address_to_string): New function.
2219 * defs.h (host_address_to_string): New prototype.
2220 * i386-linux-tdep.c (i386_regset_rections): New register
2221 sections list for i386.
2222 (i386_linux_init_abi): Initialized new gdbarch struct
2223 core_regset_sections.
2224 * Makefile.in: Updated to reflect dependency changes.
2225 * ppc-linux-tdep.c (ppc_regset_sections): Register
2226 sections list for ppc.
2227 (ppc_linux_init_abi): Initialized new gdbarch struct
2228 core_regset_sections
2230 2008-05-24 Andreas Schwab <schwab@suse.de>
2232 * linespec.c (decode_objc): Save current language around call to
2235 2008-05-23 Joel Brobecker <brobecker@adacore.com>
2237 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2238 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2239 Return the proper bound value if the array index type is an
2240 enumerated type. Compute the high bound if requested.
2241 (val_print_array_elements): Handle the case when the array
2242 element has a null size.
2243 * ada-valprint.c (print_optional_low_bound): Add handling
2244 for empty arrays or arrays of zero-size elements.
2245 (ada_val_print_array): New function, extracted out from
2246 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2247 handle empty arrays and arrays of zero-size elements.
2248 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2249 code by call to ada_val_print_array.
2250 (ada_value_print): Remove handling of null array. The handling
2251 was incomplete and is now better handled by ada_val_print_array.
2253 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2255 * annotate.c (annotate_source, annotate_frame_begin): Replace
2256 deprecated_print_address_numeric with paddress.
2257 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2258 * tui/tui-stack.c (tui_make_status_line): Likewise.
2260 * defs.h (deprecated_print_address_numeric): Remove.
2261 * printcmd.c (deprecated_print_address_numeric): Remove.
2262 * maint.c (maint_print_section_info): Fix comment.
2264 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2266 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2267 print_binary_chars, print_char_chars): Add byte_order parameter and
2268 replace gdbarch_byte_order.
2269 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2270 expressions and remove them. Remove unused TWO_TO_FOURTH.
2271 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2272 endianness. Update call to print_hex_chars.
2273 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2274 print_binary_chars, print_char_chars): Add byte_order parameter.
2275 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2276 get at the endianness. Update print_*_char calls to use byte_order.
2278 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2280 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2282 (SYMBOL_LOCATION_BATON): Update.
2284 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2286 * symtab.h (enum address_class): Remove LOC_BASEREG and
2288 (struct symbol): Remove "basereg" member of "aux_value" union.
2289 (SYMBOL_BASEREG): Remove.
2291 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2293 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2294 (ada_add_block_symbols): Likewise.
2295 * ax-gdb.c (gen_var_ref): Likewise.
2296 * buildsym.c (finish_block): Likewise.
2297 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2298 * m2-exp.y (yylex): Likewise.
2299 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2300 * printcmd.c (address_info): Likewise.
2301 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2302 (print_frame_arg_vars): Likewise.
2303 * symmisc.c (print_symbol): Likewise.
2304 * symtab.c (lookup_block_symbol): Likewise.
2305 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2306 (scope_info): Likewise.
2308 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2310 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2312 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2313 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2314 (ada_add_block_symbols): Likewise.
2315 * ax-gdb.c (gen_var_ref): Likewise.
2316 * buildsyms.c (finish_block): Likewise.
2317 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2318 * m2-exp.y (yylex): Likewise.
2319 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2320 * printcmd.c (address_info): Likewise.
2321 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2322 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2323 * symtab.c (lookup_block_symbol): Likewise.
2324 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2325 (scope_info): Likewise.
2327 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2329 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2330 LOC_HP_THREAD_LOCAL_STATIC.
2332 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2333 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2334 (read_var_value): Likewise.
2335 * buildsym.c (finish_block): Likewise.
2336 * objfiles.c (objfile_relocate): Likewise.
2337 * printcmd.c (address_info): Likewise.
2338 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2339 * tracepoint.c (scope_info): Likewise.
2341 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2342 Maxim Grigoriev <maxim2405@gmail.com>
2344 * xtensa-tdep.c (xtensa_read_register): Remove.
2345 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2346 argument litbase to call0_frame_cache().
2347 (call0_track_op, call0_analyze_prologue)
2348 (call0_frame_cache): Use extra argument litbase.
2350 2008-05-21 Joel Brobecker <brobecker@adacore.com>
2352 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2354 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2356 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2358 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2360 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2361 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2362 struct trad_frame_saved_reg *.
2363 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2364 trad_frame_alloc_saved_regs. Update accesses. Record previous
2365 value of SP as being vfp.
2366 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2367 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2369 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2371 * score-tdep.c (score_print_insn): Get the current endianess from
2372 disassemble_info instead of gdbarch_byte_order.
2374 2008-05-21 Pedro Alves <pedro@codesourcery.com>
2376 * frame.c (get_prev_frame_1): Build frame id before setting
2377 this_frame->prev_p, not after.
2379 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
2381 * annotate.c (annotate_new_thread): New function for new-thread
2383 * annotate.h: (annotate_new_thread): New extern.
2384 * thread.c (add_thread_with_info): Use it.
2385 * Makefile.in (thread.o): Add dependency on annotate.h.
2387 2008-05-20 Joel Brobecker <brobecker@adacore.com>
2389 * win32-nat.c (win32_wait): Block the control-c event while
2390 waiting for a debug event.
2392 2008-05-19 Pedro Alves <pedro@codesourcery.com>
2394 * symtab.h (lookup_symbol_in_language): Update comment.
2395 * symtab.c (lookup_symbol_aux_block): Update comment.
2396 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2398 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2400 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2401 (lookup_symbol): Likewise.
2402 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2403 (lookup_symbol): Likewise.
2404 (search_symbols): Update.
2406 * linespec.c (find_methods, collect_methods): Update.
2407 (add_matching_methods, add_constructors): Update.
2408 (decode_compound, decode_dollar, decode_variable): Update.
2409 (lookup_prefix_sym): Update.
2411 (symbol_found): Remove SYM_SYMTAB parameter.
2412 Use SYMBOL_SYMTAB (sym) instead.
2414 * gdbtypes.c (lookup_typename): Update.
2415 (lookup_struct, lookup_union, lookup_enum): Update.
2416 (lookup_template_type): Update.
2417 (check_typedef): Update.
2418 * language.c (lang_bool_type): Update.
2419 * mdebugread.c (parse_procedure): Update.
2420 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2421 * parse.c (write_dollar_variable): Update.
2422 * printcmd.c (address_info): Update.
2423 * source.c (select_source_symtab): Update.
2424 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2425 * valops.c (find_function_in_inferior): Update.
2426 (value_struct_elt_for_reference): Update.
2427 * value.c (value_static_field, value_fn_field): Update.
2429 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2430 * arm-tdep.c (arm_skip_prologue): Update.
2431 * mt-tdep.c (mt_skip_prologue): Update.
2432 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2434 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2435 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2436 (add_defn_to_vec): Likewise.
2437 (ada_add_block_symbols): Likewise.
2438 (lookup_cached_symbol, cache_symbol): Likewise.
2439 (standard_lookup): Update.
2440 (ada_lookup_symbol_list): Update.
2442 * c-valprint.c (c_val_print): Update.
2443 * cp-support.c (cp_lookup_rtti_type): Update.
2444 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2445 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2446 * p-valprint.c (pascal_val_print): Update.
2447 * scm-lang.c (scm_lookup_name): Update.
2453 * objc-exp.y: Update.
2456 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2458 * language.h (struct language_defn): Remove SYMTAB parameter from
2459 la_lookup_symbol_nonlocal callback function pointer.
2461 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2462 (ada_lookup_encoded_symbol): Likewise.
2463 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2464 Always call fixup_symbol_section.
2465 (ada_lookup_symbol): Remove SYMTAB parameter.
2466 (ada_lookup_symbol_nonlocal): Likewise.
2467 * ada-exp.y (write_object_renaming): Update.
2468 (find_primitive_type): Likewise.
2470 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2471 (cp_lookup_symbol_namespace): Likewise.
2472 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2473 (lookup_symbol_file): Likewise.
2474 (lookup_possible_namespace_symbol): Likewise.
2475 (cp_lookup_symbol_nonlocal): Likewise.
2476 (cp_lookup_symbol_namespace): Likewise.
2477 (cp_lookup_nested_type): Update.
2479 * scm-valprint.c (scm_inferior_print): Update.
2480 * valops.c (value_maybe_namespace_elt): Update.
2482 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2483 lookup_lib_global_symbol callback function pointer.
2484 (solib_global_lookup): Remove SYMTAB parameter.
2485 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2486 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2488 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2489 (lookup_symbol_static): Likewise.
2490 (lookup_symbol_global): Likewise.
2491 (lookup_symbol_aux_block): Likewise.
2492 (lookup_global_symbol_from_objfile): Likewise.
2493 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2494 (lookup_symbol_aux_local): Likewise.
2495 (lookup_symbol_aux_block): Likewise.
2496 (lookup_symbol_aux_symtabs): Likewise.
2497 (lookup_symbol_aux_psymtabs): Likewise.
2498 (lookup_global_symbol_from_objfile): Likewise.
2499 (basic_lookup_symbol_nonlocal): Likewise.
2500 (lookup_symbol_static): Likewise.
2501 (lookup_symbol_global): Likewise.
2503 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2505 2008-05-17 Pedro Alves <pedro@codesourcery.com>
2507 * remote.c (init_extended_remote_ops): Fix typo.
2509 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2511 * NEWS: Mention new DICOS x86 target configuration.
2513 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2514 Ulrich Weigand <uweigand@de.ibm.com>
2516 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2517 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2519 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2520 use it instead of ginfo->value.address. Look up minimal symbol by
2521 address and name. Assume OBJFILE is non-NULL.
2522 (fixup_symbol_section): Ensure we always have an objfile to look
2523 into. Extract and pass to fixup_section the symbol's address that
2524 will match the minimal symbol's address.
2525 (fixup_psymbol_section): Likewise.
2527 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2528 overlays and the addrmap returned the wrong section.
2530 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2531 calling fixup_symbol_section.
2533 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2535 * minsyms.c: Include "target.h".
2536 (find_solib_trampoline_target): Handle minimal symbols pointing
2537 to function descriptors as well.
2538 * Makefile.in (minsyms.o): Update dependencies.
2540 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2541 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2542 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2543 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2544 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2545 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2546 (ppc64_standard_linkage_target): Rename to ...
2547 (ppc64_standard_linkage1_target): ... this.
2548 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2549 (ppc64_skip_trampoline_code): Support three variants of standard
2550 linkage stubs. Call find_solib_trampoline_target to handle
2553 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2555 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2556 ppc64_sysv_abi_adjust_breakpoint_address.
2557 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2558 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2560 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2562 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2563 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2564 of ppc_linux_skip_trampoline_code.
2566 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2568 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2569 * gdbarch.c, gdbarch.h: Regenerated.
2570 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2571 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2572 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2574 2008-05-15 Pedro Alves <pedro@codesourcery.com>
2576 * linux-nat.c (trap_ptid): Delete.
2577 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2579 * linux-thread-db.c (thread_db_wait): Adjust.
2581 2008-05-15 Joel Brobecker <brobecker@adacore.com>
2583 * linespec.c (decode_line_1): Fix a couple of comments.
2585 2008-05-15 Alan Modra <amodra@bigpond.net.au>
2587 * dbxread.c: Formatting.
2588 (INTERNALIZE_SYMBOL): Init n_other.
2589 (set_namestring): Take pointer to nlist arg rather than struct
2590 copy. Update all callers.
2592 2008-05-15 Andreas Schwab <schwab@suse.de>
2594 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2595 (dwarf2read.o): Add $(addrmap_h).
2597 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2599 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2600 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2601 to handle ppc32 PLT entries.
2602 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2605 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2607 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2608 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2609 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2610 (lookup_minimal_symbol_by_pc_section): Use
2611 lookup_minimal_symbol_by_pc_section_1.
2612 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2614 2008-05-13 Joel Brobecker <brobecker@adacore.com>
2616 * findcmd.c: Add #include "gdb_stdint.h".
2617 * Makefile.in (findcmd.o): Update dependencies.
2619 2008-05-11 David S. Miller <davem@davemloft.net>
2621 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2622 long double size override, Linux does use 128-bit now.
2624 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2625 (sparc_linux_write_pc): New function.
2626 (sparc32_linux_init_abi): Register it.
2627 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2628 (sparc64_linux_write_pc): New function.
2629 (sparc64_linux_init_abi): Register it.
2631 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2632 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2634 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2636 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2637 and info.tdep_info before calling gdbarch_init_osabi.
2639 2008-05-09 Joel Brobecker <brobecker@adacore.com>
2641 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2642 the type of the right hand side of the assignment to the type
2643 of the left hand side if the left hand side is a convenience
2646 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2648 * NEWS: Mention gdbserver bi-arch capability.
2650 2008-05-09 Doug Evans <dje@google.com>
2653 * NEWS: Document find command and qSearch:memory packet.
2654 * Makefile.in (SFILES): Add findcmd.c.
2655 (COMMON_OBJS): Add findcmd.o.
2656 (findcmd.o): New rule.
2657 * findcmd.c: New file.
2658 * target.h (target_ops): New member to_search_memory.
2659 (simple_search_memory): Declare.
2660 (target_search_memory): Declare.
2661 * target.c (simple_search_memory): New fn.
2662 (target_search_memory): New fn.
2663 * remote.c (PACKET_qSearch_memory): New packet kind.
2664 (remote_search_memory): New fn.
2665 (init_remote_ops): Init to_search_memory.
2666 (init_extended_remote_ops): Ditto.
2667 (_initialize_remote): Add qSearch:memory packet config command.
2669 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2671 * thread.c (_initialize_thread): Don't use commas and periods in
2672 first line of doc string of "set/show print thread-events".
2674 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2676 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2677 Update for unwinder changes.
2679 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2681 * frame.c (get_frame_base_address, get_frame_locals_address)
2682 (get_frame_args_address): Pass the correct frame when calling
2683 frame_base_find_by_frame.
2685 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2687 * remote.c (extended_remote_attach_1): Call target_find_description.
2689 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2691 * remote.c (extended_remote_create_inferior_1): Clean up
2692 before marking the target running.
2694 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2696 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2699 2008-05-07 Joel Brobecker <brobecker@adacore.com>
2701 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2702 sparc64-sol2-tdep.c: Update for unwinder changes.
2704 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2706 * cp-support.c (mangled_name_to_comp): Initialize storage.
2707 (unqualified_name_from_comp): Likewise.
2709 2008-05-07 Jie Zhang <jie.zhang@analog.com>
2711 * remote.c (remote_insert_breakpoint): Call get_remote_state
2712 after gdbarch_breakpoint_from_pc is called.
2713 (remote_insert_hw_breakpoint): Likewise.
2715 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2717 * valprint.c (val_print): Add new language parameter and use it
2718 instead of using the current_language. Update calls to val_print
2720 (common_val_print): Add new langauge parameter and pass it to
2722 * value.h (struct language_defn): Add opaque declaration.
2723 (val_print, common_val_print): Update declarations.
2724 * stack.c (print_frame_args): Update call to common_val_print
2725 using the appropriate language.
2726 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2727 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2728 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2729 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2730 #include "language.h" if necessary.
2731 Update calls to val_print and common_val_print.
2732 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2733 Update dependencies.
2735 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2737 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2738 pointing inside a non-executable section as function descriptors.
2740 2008-05-06 Pedro Alves <pedro@codesourcery.com>
2742 * inf-loop.c (inferior_event_handler): Run all continuations and
2743 print any language change before running the breakpoint commands.
2745 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2747 * frame-unwind.c (frame_unwind_got_bytes): New function.
2748 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2749 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2750 for unwinder changes.
2752 2008-05-05 Doug Evans <dje@google.com>
2754 * NEWS: Mention new /m modifier for disassemble command.
2755 * cli/cli-cmds.c (print_disassembly): New function.
2756 (disassemble_current_function): New function
2757 (disassemble_command): Recognize /m modifier, print mixed
2759 (init_cli_cmds): Update disassemble help text.
2761 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2763 * xtensa-tdep.c: Update for unwinder changes.
2765 2008-05-05 Andreas Schwab <schwab@suse.de>
2767 Update m68k port for unwinder changes.
2768 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2769 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2770 (m68k_frame_unwind): Use default_frame_sniffer.
2771 (m68k_frame_sniffer): Remove.
2772 (m68k_frame_base_address): Expect this_frame.
2773 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2775 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2776 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2777 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2778 parameter instead of pc value.
2779 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2781 (m68k_linux_sigtramp_frame_this_id)
2782 (m68k_linux_sigtramp_frame_prev_register)
2783 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2784 (m68k_linux_sigtramp_frame_unwind): Use
2785 m68k_linux_sigtramp_frame_sniffer.
2786 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2788 * m68klinux-nat.c (store_register): Fix typo.
2790 2008-05-05 Pedro Alves <pedro@codesourcery.com>
2792 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2795 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
2797 * symfile.c (reread_symbols): Update objfile's entry point.
2799 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2800 Joel Brobecker <brobecker@adacore.com>
2802 * ada-lang.c: Update throughout to use symbol_matches_domain
2803 instead of matching the symbol domain explictly.
2804 * dwarf2read.c (add_partial_symbol): Do not add new psym for
2805 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
2806 class as typedefs. See lookup_partial_symbol function.
2807 (new_symbol): Similar to add_partial_symbol, do not create
2808 symbol for the typedef. See lookup_block_symbol.
2809 * symtab.c (symbol_matches_domain): New function, takes care
2810 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2811 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2812 found psym domain matches the given domain.
2813 (lookup_block_symbol): Likewise.
2815 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2817 * top.c (command_line_handler_continuation): Remove.
2818 (execute_command): Do not install the above.
2820 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2822 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2823 and catch all exceptions from it.
2824 * top.c (command_line_handler_continuation): Don't
2825 call bpstat_do_action here.
2827 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2829 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2830 (struct die_info): Remove type.
2831 (read_type_die, read_typedef, read_base_type, read_subrange_type)
2832 (read_structure_type, read_enumeration_type, read_array_type)
2833 (read_tag_pointer_type, read_tag_ptr_to_member_type)
2834 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
2835 (read_tag_string_type, read_subroutine_type, read_set_type)
2836 (read_unspecified_type): Delete prototypes. Remove check for
2837 already-loaded type. Return the new type.
2838 (set_die_type): Return the new type.
2839 (reset_die_and_siblings_types): Delete.
2840 (load_comp_unit, load_full_comp_unit): Set type_hash.
2841 (process_queue): Remove call to reset_die_and_siblings_types.
2842 (process_die): Do not read most types here. Use read_type_die
2844 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
2845 (quirk_gcc_member_function_pointer): Return the new type.
2846 (process_structure_scope, process_enumeration_scope): Use
2847 get_die_type and read the DIE's type.
2848 (read_full_die): Do not initialize die->type.
2849 (tag_type_to_type): Use read_type_die.
2850 (read_type_die): Check for already defined types. Return the
2852 (determine_prefix): Use get_die_type.
2853 (set_die_type): Return the type.
2854 (get_die_type): Take a CU argument. Check for no type_hash.
2856 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2858 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
2861 2008-05-04 Pedro Alves <pedro@codesourcery.com>
2863 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
2864 and bp_longjmp_resume breakpoints.
2865 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
2867 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
2868 breakpoints. Create bp_longjmp breakpoints as momentary
2870 (enable_longjmp_breakpoint): Delete.
2871 (set_longjmp_breakpoint): New.
2872 (disable_longjmp_breakpoint): Delete.
2873 (delete_longjmp_breakpoint): New.
2874 (set_longjmp_resume_breakpoint): Delete.
2875 (set_momentary_breakpoint_at_pc): New.
2876 (breakpoint_re_set_one): Don't delete bp_longjmp and
2877 bp_longjmp_resume breakpoints.
2878 (breakpoint_re_set): Don't create longjmp and longjmp-resume
2881 * infrun.c (step_resume_breakpoint): Add comment.
2882 (struct execution_control_state): Delete handling_longjmp member.
2883 (init_execution_control_state). Don't clear handling_longjmp.
2884 (context_switch): Don't context switch handling_longjmp.
2885 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2886 create a bp_longjmp_resume breakpoint, and set it as current
2887 step_resume_breakpoint, then step over the longjmp breakpoint. If
2888 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2889 breakpoint, delete the longjmp-resume breakpoint, and stop
2891 (currently_stepping): Remove handling_longjmp from expression.
2892 (insert_step_resume_breakpoint_at_sal): Update comment.
2893 (insert_longjmp_resume_breakpoint): New.
2895 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2896 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2898 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2899 (set_longjmp_resume_breakpoint): Delete declaration.
2901 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2903 (load_infrun_state): Delete *handling_longjmp parameter.
2904 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2906 (load_infrun_state): Delete *handling_longjmp parameter. Update
2909 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2910 (delete_longjmp_breakpoint_cleanup): New.
2911 (step_1): Call set_longjmp_breakpoint instead of
2912 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2913 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2914 (step_1_continuation): Pass thread id in the continuation args to
2916 (step_once): Add thread parameter. Pass thread id the the
2919 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2921 Set CU BASE_ADDRESS already from partial DIEs.
2922 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2923 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
2924 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
2925 from these variables if it was still unset.
2927 * Makefile.in: Update dependencies.
2928 * dwarf2read.c: Include "addrmap.h"
2929 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
2930 (dwarf2_ranges_read): New prototype.
2931 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
2932 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
2933 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
2934 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
2935 comment for it. Add the found ranges to RANGES_PST. New variable
2936 BASEADDR, initialize it the common way.
2937 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
2938 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
2939 HAS_RANGES_OFFSET for the later processing.
2940 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
2941 * symtab.c: Include "addrmap.h"
2942 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
2943 Move the psymtab locator into ...
2944 (find_pc_sect_psymtab_closer): ... a new function.
2946 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2948 * arch-utils.c (gdbarch_update_p): Use default values for
2949 info.abfd and info.target_desc if they are NULL.
2950 (gdbarch_from_bfd): Remove assertion.
2951 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
2952 using the current target description.
2953 (gdbarch_info_fill): Do not use default values for info->abfd
2954 and info->target_desc.
2956 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2960 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2962 * inferior.h (read_pc_pid, write_pc_pid): Remove.
2963 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
2965 * regcache.c (read_pc_pid): Remove, replace by ...
2966 (regcache_read_pc): ... this function.
2967 (write_pc_pid): Remove, replace by ...
2968 (regcache_write_pc): ... this function.
2969 (read_pc, write_pc): Update.
2971 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
2972 write_pc_pid by regcache_read_pc and regcache_write_pc.
2973 (displaced_step_fixup): Likewise.
2974 (resume): Likewise. Use regcache arch instead of current_gdbarch.
2975 (prepare_to_proceed): Likewise.
2976 (proceed): Likewise.
2977 (adjust_pc_after_break): Likewise.
2978 (handle_inferior_event): Likewise.
2980 * linux-nat.c (cancel_breakpoint): Likewise.
2981 * linux-thread-db.c (check_event): Likewise.
2982 * aix-thread.c (aix_thread_wait): Likewise.
2983 * tracepoint.c (trace_dump_command): Likewise.
2985 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
2988 SYMBOL_LOCATION_BATON.
2990 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
2992 * target.h (struct target_ops): New field to_auxv_parse.
2993 * auxv.c (default_auxv_parse): New, renamed from previous
2995 (target_auxv_parse): Try to call target method. Fallback to
2996 default_auxv_parse if not found.
2997 * procfs.c (procfs_auxv_parse): New.
2998 (init_procfs_ops): On Solaris, in 64-bit mode, install
3001 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3003 * symfile.c (add_symbol_file_command): Use paddress rather than
3004 hex_string to print the address.
3006 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3008 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3009 return the null frame ID to terminate the backtrace.
3011 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3013 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3014 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3015 (SIG_FRAME_PC_OFFSET): Likewise.
3016 (SIG_FRAME_LR_OFFSET): Likewise.
3017 (SIG_FRAME_FP_OFFSET): Likewise.
3018 (rs6000_push_dummy_call): Likewise.
3019 (rs6000_return_value): Likewise.
3020 (rs6000_convert_from_func_ptr_addr): Likewise.
3021 (branch_dest, rs6000_software_single_step): Likewise.
3022 (deal_with_atomic_sequence): Rename to ...
3023 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3024 Do not call branch_dest; inline required parts of that function.
3025 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3026 with SYMBOL_LINKAGE_NAME.
3027 (struct reg, regsize): Delete.
3028 (read_memory_addr): Delete; inline into callers.
3029 (rs6000_skip_prologue): Move after skip_prologue.
3030 (skip_prologue): Remove prototype.
3031 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3032 initialization as if this variable were true. Do not install
3033 ppc64_sysv_abi_adjust_breakpoint_address.
3035 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3036 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3038 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3039 (SIG_FRAME_PC_OFFSET): Likewise.
3040 (SIG_FRAME_LR_OFFSET): Likewise.
3041 (SIG_FRAME_FP_OFFSET): Likewise.
3042 (rs6000_push_dummy_call): Likewise.
3043 (rs6000_return_value): Likewise.
3044 (rs6000_convert_from_func_ptr_addr): Likewise.
3045 (branch_dest, rs6000_software_single_step): Likewise. Replace
3046 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3047 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3048 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3049 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3050 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3052 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3053 (AIX_TEXT_SEGMENT_BASE): New macro.
3054 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3055 by AIX_TEXT_SEGMENT_BASE.
3057 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3058 (struct gdbarch_tdep): Remove text_segment_base member.
3059 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3060 ppc64_sysv_abi_adjust_breakpoint_address.
3062 * Makefile.in (rs6000-tdep.o): Update dependencies.
3063 (rs6000-aix-tdep.o): Likewise.
3065 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
3066 Thiago Jung Bauermann <bauerman@br.ibm.com>
3068 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3069 * doublest.c (convert_typed_floating): Fix typo in comment.
3070 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3071 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3072 * frame.c (frame_unwind_address_in_block): Likewise.
3073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3074 * symtab.h (struct symbol): Likewise.
3075 * tramp-frame.h (struct trad_frame_cache): Likewise.
3076 * value.c (allocate_repeat_value): Likewise.
3078 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3080 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3081 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3083 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3085 * parse.c (parse_exp_in_context): Don't override
3086 expression_context_pc if get_selected_block returned a valid
3089 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3091 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3092 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3093 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3095 * c-typeprint.c (c_type_print_base): Delete handling of template
3097 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3098 (METHOD_PTR_TO_VOFFSET): Delete.
3099 * defs.h (QUIT_FIXME): Delete.
3100 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3101 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3102 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3103 ninstantiations, and instantiations.
3104 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3105 (TYPE_FN_FIELD_INLINED): Delete.
3106 * srec.h (SREC_BINARY): Delete.
3107 * symtab.c (symbol_init_demangled_name): Delete.
3108 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3109 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3110 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3111 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3112 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3113 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3114 * target.h (enum thread_control_capabilities): Delete tc_switch.
3115 (target_can_switch_threads): Delete.
3117 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3119 * Makefile.in (objfiles.o): Update.
3120 * exec.c (exec_set_section_address): Support p->addr != 0.
3121 * objfiles.c (objfile_relocate): Update exec_ops section
3123 * symfile.c (place_section): Move exec_set_section_address call...
3124 (default_symfile_offsets): ...to here.
3126 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3128 * Makefile.in (ppc_linux_tdep_h): New macro.
3129 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3130 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3131 (powerpc_e500l_c): Likewise.
3132 (ppc-linux-nat.o): Update dependencies.
3133 (ppc-linux-tdep.o): Update dependencies.
3134 (rs6000-tdep.o): Update dependencies.
3136 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3137 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3138 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3139 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3140 (tdesc_powerpc_e500): Remove.
3142 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3143 and "features/rs6000/powerpc-altivec64.c".
3144 (ppc_supply_reg, ppc_collect_reg): Make global.
3145 (variants): Use tdesc_powerpc_32 for "powerpc" and
3146 tdesc_powerpc_altivec64 for "powerpc64".
3147 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3149 * ppc-linux-tdep.h: New file.
3151 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3152 Include "features/rs6000/powerpc-32l.c".
3153 Include "features/rs6000/powerpc-altivec32l.c".
3154 Include "features/rs6000/powerpc-64l.c".
3155 Include "features/rs6000/powerpc-altivec64l.c".
3156 Include "features/rs6000/powerpc-e500l.c".
3157 (ppc_linux_supply_gregset): New function.
3158 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3159 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3160 (ppc64_linux_gregset): Likewise.
3161 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3162 (ppc_linux_trap_reg_p): New function.
3163 (ppc_linux_write_pc): New function.
3164 (ppc_linux_core_read_description): New function.
3165 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3166 ppc_linux_core_read_description. Install orig_r3 and trap
3167 registers if present in the target description.
3168 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3170 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3171 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3172 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3173 (fetch_ppc_registers): Likewise.
3174 (store_ppc_registers): Likewise.
3175 (store_register): Likewise.
3176 (ppc_linux_read_description): Check whether AltiVec is supported.
3177 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3178 Linux target description.
3180 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3181 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3182 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3183 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3184 rs6000/powerpc-e500. Update -expedite variables accordingly.
3186 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3187 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3188 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3189 * features/rs6000/powerpc-e500.c: Regenerate.
3190 * features/rs6000/powerpc-32.c: Regenerate.
3191 * features/rs6000/powerpc-64.c: Regenerate.
3193 * features/rs6000/power-linux.xml: New file.
3194 * features/rs6000/power64-linux.xml: New file.
3195 * features/rs6000/powerpc-32l.xml: New file.
3196 * features/rs6000/powerpc-altivec32l.xml: New file.
3197 * features/rs6000/powerpc-64l.xml: New file.
3198 * features/rs6000/powerpc-altivec64l.xml: New file.
3199 * features/rs6000/powerpc-e500l.xml: New file.
3200 * features/rs6000/powerpc-32l.c: New (generated) file.
3201 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3202 * features/rs6000/powerpc-64l.c: New (generated) file.
3203 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3204 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3206 * regformats/reg-ppc.dat: Remove.
3207 * regformats/reg-ppc64.dat: Remove.
3208 * regformats/rs6000/powerpc-32.dat: Remove.
3209 * regformats/rs6000/powerpc-64.dat: Remove.
3210 * regformats/rs6000/powerpc-e500.dat: Remove.
3211 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3212 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3213 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3214 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3215 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3217 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3219 * thread.c (delete_thread): Call observer_notify_thread_exit.
3220 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3221 thread_exit observer.
3222 (mi_thread_exit): New.
3224 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3226 * breakpoint.c (create_exception_catchpoint): Remove prototype
3227 for already deleted function.
3228 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3229 * frame.h (show_stack_frame): Remove prototype.
3230 * stack.c (show_stack_frame): Remove empty, unused function.
3231 * source.c (symtab_to_fullname, print_source_lines): Small fix
3233 * value.c (show_values): Update comments to mention "show values"
3234 command instead of "info history".
3236 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3238 * linespec.c: Include "target.h".
3239 (minsym_found): Handle minimal symbols pointing to function
3240 descriptors. Use find_function_start_pc.
3241 * minsyms.c (msymbol_objfile): New function.
3242 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3243 to function descriptors.
3244 * symtab.c (fixup_section): Only use minimal symbol at the same
3245 address to determine section of a symbol.
3246 (find_function_start_pc): New function.
3247 (find_function_start_sal): Use it.
3248 * symtab.h (msymbol_objfile): Add prototype.
3249 (find_function_start_pc): Likewise.
3250 * value.c: Include "objfiles.h".
3251 (value_fn_field): Handle minimal symbols pointing to function
3253 * Makefile.in (linespec.o): Update dependencies.
3254 (value.o): Likewise.
3256 2008-05-02 Joel Brobecker <brobecker@adacore.com>
3258 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3259 inside a PAD type is a bitfield.
3261 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3263 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3264 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3265 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3266 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3267 Allow typedefs when checking for function pointer arguments.
3268 Right-align small structs passed on the stack.
3269 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3270 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3271 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3273 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3275 * Makefile.in (arm-tdep.o): Update.
3276 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3277 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3278 (arm_pc_is_thumb): Use mapping symbols.
3279 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3280 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3281 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3282 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3283 * gdbarch.sh: Add record_special_symbol.
3284 * gdbarch.c, gdbarch.h: Regenerated.
3285 * objfiles.c (struct objfile_data): Add cleanup member.
3286 (register_objfile_data_with_cleanup): New function, from
3287 register_objfile_data.
3288 (register_objfile_data): Use it.
3289 (objfile_free_data): Call clear_objfile_data.
3290 (clear_objfile_data): Call cleanup functions.
3291 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3293 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3295 * objfiles.c (init_entry_point_info): Handle shared libraries.
3297 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3299 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3302 2008-05-02 Jim Blandy <jimb@codesourcery.com>
3303 Pedro Alves <pedro@codesourcery.com>
3305 Implement displaced stepping.
3307 * gdbarch.sh (max_insn_length): New 'variable'.
3308 (displaced_step_copy, displaced_step_fixup)
3309 (displaced_step_free_closure, displaced_step_location): New
3311 (struct displaced_step_closure): Add forward declaration.
3312 * gdbarch.c, gdbarch.h: Regenerated.
3314 * arch-utils.c: #include "objfiles.h".
3315 (simple_displaced_step_copy_insn)
3316 (simple_displaced_step_free_closure)
3317 (displaced_step_at_entry_point): New functions.
3318 * arch-utils.h (simple_displaced_step_copy_insn)
3319 (simple_displaced_step_free_closure)
3320 (displaced_step_at_entry_point): New prototypes.
3322 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3323 (I386_MAX_MATCHED_INSN_LEN): ... this.
3324 (i386_absolute_jmp_p, i386_absolute_call_p)
3325 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3326 (i386_displaced_step_fixup): New functions.
3327 (struct i386_insn, i386_match_insn): Update.
3328 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3329 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3330 (i386_displaced_step_fixup): New prototype.
3331 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3332 Register gdbarch_displaced_step_copy,
3333 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3334 and gdbarch_displaced_step_location functions.
3336 * infrun.c (debug_displaced): New variable.
3337 (show_debug_displaced): New function.
3338 (struct displaced_step_request): New struct.
3339 (displaced_step_request_queue, displaced_step_ptid)
3340 (displaced_step_gdbarch, displaced_step_closure)
3341 (displaced_step_original, displaced_step_copy)
3342 (displaced_step_saved_copy, can_use_displaced_stepping): New
3344 (show_can_use_displaced_stepping, use_displaced_stepping)
3345 (displaced_step_clear, cleanup_displaced_step_closure)
3346 (displaced_step_dump_bytes, displaced_step_prepare)
3347 (displaced_step_clear_cleanup, write_memory_ptid)
3348 (displaced_step_fixup): New functions.
3349 (resume): Call displaced_step_prepare.
3350 (proceed): Call read_pc once, and remember the value. If using
3351 displaced stepping, don't remove breakpoints.
3352 (handle_inferior_event): Call displaced_step_fixup. Add some
3353 debugging output. When we try to step over a breakpoint, but get
3354 a signal to deliver to the thread instead, ensure the step-resume
3355 breakpoint is actually inserted. If a thread hop is needed, and
3356 displaced stepping is enabled, don't remove breakpoints.
3357 (init_wait_for_inferior): Call displaced_step_clear.
3358 (_initialize_infrun): Add "set debug displaced" command. Add
3359 "maint set can-use-displaced-stepping" command. Clear
3360 displaced_step_ptid.
3361 * inferior.h (debug_displaced): Declare variable.
3362 (displaced_step_dump_bytes): Declare function.
3364 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3367 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3369 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3370 (arm_force_mode_string, arm_show_fallback_mode)
3371 (arm_show_force_mode): New.
3372 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3374 (_initialize_arm_tdep): Add "set arm fallback-mode"
3375 and "set arm force-mode".
3376 * NEWS: Document new commands.
3378 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3380 * main.h (batch_silent): Declare.
3381 * event-top.c: Include main.h.
3382 (gdb_setup_readline): Remove extern batch_silent declaration.
3383 * infrun.c (normal_stop): Don't print source location when running in
3384 --batch-silent mode.
3385 * Makefile.in (event-top.o): Add main.h dependency.
3387 2008-05-02 Andreas Schwab <schwab@suse.de>
3389 * target.h (struct target_ops): Add
3390 to_watchpoint_addr_within_range.
3391 (target_watchpoint_addr_within_range): New function.
3392 * target.c (update_current_target): Inherit
3393 to_watchpoint_addr_within_range, defaulting to
3394 default_watchpoint_addr_within_range.
3395 (default_watchpoint_addr_within_range): New function.
3396 (debug_to_watchpoint_addr_within_range): New function.
3397 (setup_target_debug): Set to_watchpoint_addr_within_range.
3398 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3400 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3401 * breakpoint.c (watchpoints_triggered): Use
3402 target_watchpoint_addr_within_range.
3404 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3406 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3407 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3408 Set gdb_osabi to GDB_OSABI_DICOS.
3410 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3411 * osabi.c (gdb_osabi_name): Add "DICOS".
3413 * i386-dicos-tdep.c: New file.
3415 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3416 (ALLDEPFILES): Add i386-dicos-tdep.c.
3417 (i386-dicos-tdep.o): New rule.
3419 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3421 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3422 and register the fork's PTID as a thread.
3424 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3427 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3428 assign its value to the breakpoint created.
3429 (create_breakpoints): Add breakpoint_ops argument and pass it
3430 to create_breakpoint call.
3431 (break_command_really): Add breakpoint_ops argument and pass/assign
3433 (break_command_1): Pass NULL as ops argument.
3434 (set_breakpoint): Pass NULL as ops argument.
3435 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3436 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3437 catch and throw catchpoints.
3439 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3442 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3443 translate signal numeric value from the target to GDB's enum
3445 * gdbarch.c, gdbarch.h: Regenerated.
3446 * gdbarch.sh: Added two new functions target_signal_from_host and
3447 target_signal_to_host.
3448 * target.h (default_target_signal_from_host,
3449 default_target_signal_to_host): New functions - declarations.
3450 * signals/signals.c (struct gdbarch): New declaration.
3451 (default_target_signal_to_host, default_target_signal_from_host): New
3454 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3455 Pedro Alves <pedro@codesourcery.com>
3457 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3458 Johnston <jjohnstn@redhat.com>.
3460 * NEWS: Mention attach to stopped process fix.
3461 * infcmd.c (detach_command, disconnect_command): Discard the thread
3463 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3464 attaching. Use signal_stop_state.
3465 (signal_stop_state): Check stop_soon.
3466 * linux-nat.c (kill_lwp): Declare earlier.
3467 (pid_is_stopped, linux_nat_post_attach_wait): New.
3468 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3470 (linux_nat_attach): Use linux_nat_post_attach_wait.
3471 (detach_callback, linux_nat_detach): Improve handling for signalled
3473 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3474 from the process ID.
3475 * Makefile.in (infcmd.o): Update.
3477 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3479 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3480 * arm-tdep.c (arm_frame_is_thumb): New.
3481 (arm_pc_is_thumb): Clarify comment.
3482 (thumb_analyze_prologue): Remove PC special case.
3483 (thumb_scan_prologue): Take a block_addr argument. Use it for
3484 find_pc_partial_function. Remove unused variables.
3485 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3486 for find_pc_partial_function. Remove PC special case.
3487 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3488 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3489 (arm_get_next_pc): Use arm_frame_is_thumb.
3490 (arm_write_pc): Use CPSR_T instead of 0x20.
3491 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3492 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3494 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3495 DWARF2_FRAME_REG_FN.
3496 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3497 DWARF2_FRAME_REG_FN.
3498 (struct dwarf2_frame_state_reg): Add FN to loc union.
3500 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
3502 * exec.c (print_section_info): Add missing '\n'.
3504 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3506 * thread.c (add_thread): Move observer call to ...
3507 (add_thread_silent): ... here.
3509 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3511 * rs6000-tdep.c: Update for unwinder changes.
3512 * ppcobsd-tdep.c: Likewise.
3514 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3516 * s390-tdep.c: Update for unwinder changes.
3518 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3520 * spu-tdep.c: Update for unwinder changes.
3522 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3524 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3525 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3526 sparc64-linux-tdep.c: Update for unwinder changes.
3528 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3530 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3531 for unwinder changes.
3532 * mips-tdep.c: Likewise.
3533 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3536 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3538 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3541 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3543 Update i386 and amd64 ports for unwinder changes.
3545 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3546 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3547 (amd64_frame_unwind): Use default_frame_sniffer.
3548 (amd64_frame_sniffer): Delete.
3549 (amd64_sigtramp_frame_cache): Expect this_frame.
3550 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3551 (amd64_sigtramp_frame_sniffer): Update signature.
3552 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3553 (amd64_frame_base_address): Expect this_frame.
3554 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3556 (amd64_init_abi): Use set_gdbarch_dummy_id and
3557 frame_unwind_append_unwinder.
3558 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3559 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3560 (i386_frame_unwind): Use default_frame_sniffer.
3561 (i386_frame_sniffer): Delete.
3562 (i386_sigtramp_frame_cache): Expect this_frame.
3563 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3564 (i386_sigtramp_frame_sniffer): Update signature.
3565 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3566 (i386_frame_base_address): Update signature.
3567 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3568 (i386_push_dummy_call): Update comment.
3569 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3571 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3572 and frame_unwind_append_unwinder.
3573 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3574 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3575 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3576 i386nbsd-tdep.c: Update for unwinder changes.
3578 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3580 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3581 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3583 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3584 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3585 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3587 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3589 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3591 * tramp-frame.h (struct tramp_frame): Update signature of init.
3592 * Makefile.in (trad-frame.o): Update.
3594 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3596 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3597 (execute_stack_op): Put this_frame in the baton.
3598 (execute_cfa_program): Take this_frame.
3599 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3600 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3601 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3602 (dwarf2_frame_this_id): Adjust to work on this_frame.
3603 (dwarf2_signal_frame_this_id): Delete.
3604 (dwarf2_frame_prev_register): Update signature. Use new frame
3606 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3607 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3608 dwarf2_frame_sniffer.
3609 (dwarf2_append_unwinders): New.
3610 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3612 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3613 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3614 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3615 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3616 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3617 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3618 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3619 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3620 (dwarf2_append_unwinders): Declare.
3621 (dwarf2_frame_base_sniffer): Update declaration.
3622 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3625 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3627 Convert frame unwinders to use the current frame and
3630 * frame.c (frame_debug): Make global.
3631 (get_frame_id): Pass this frame to unwinder routines.
3632 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3633 (do_frame_register_read): Do not discard the return value of
3634 frame_register_read.
3635 (frame_register_unwind): Remove debug messages. Use
3636 frame_unwind_register_value.
3637 (frame_unwind_register_value, get_frame_register_value): New
3639 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3640 (get_frame_args_address, get_frame_type): Pass this frame to
3642 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3644 * frame.h: Update comments.
3645 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3646 (frame_prepare_for_sniffer): Declare.
3647 * frame-unwind.h: Update comments and parameter names.
3648 (default_frame_sniffer): Declare.
3649 (frame_prev_register_ftype): Return a struct value *.
3650 (struct frame_unwind): Remove prev_pc member.
3651 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3652 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3653 (frame_unwind_got_register, frame_unwind_got_memory)
3654 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3655 * frame-base.h: Update comments and parameter names.
3656 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3657 if necessary. Add debugging output.
3658 * sentinel-frame.c (sentinel_frame_prev_register)
3659 (sentinel_frame_this_id): Update for new signature.
3660 (sentinel_frame_prev_pc): Delete.
3661 (sentinel_frame_unwinder): Remove prev_pc.
3662 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3664 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3665 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3666 (frame_unwind_append_sniffer): Delete.
3667 (frame_unwind_append_unwinder): New function.
3668 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3669 from unwinders. Use frame_prepare_for_sniffer.
3670 (default_frame_sniffer, frame_unwind_got_optimized)
3671 (frame_unwind_got_register, frame_unwind_got_memory)
3672 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3673 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3674 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3676 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3677 * gdbarch.c, gdbarch.c: Regenerated.
3678 * frame-base.c (default_frame_base_address)
3679 (default_frame_locals_address, default_frame_args_address): Update
3681 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3682 * infcall.c (call_function_by_hand): Update comments.
3683 * Makefile.in (frame-unwind.o): Update dependencies.
3685 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3687 * ada-lang.c (ada_value_primitive_packed_val): Only check
3688 value_lazy for memory lvals.
3689 * findvar.c (value_of_register_lazy): New function.
3690 (locate_var_value): Only check value_lazy for memory lvals.
3691 * valarith.c (value_subscripted_rvalue): Likewise.
3692 * valops.c (value_fetch_lazy): Handle both memory and register
3694 (search_struct_field, value_slice): Only check value_lazy for memory
3696 * value.c (struct value): Update comment for lazy.
3697 (value_primitive_field): Only check value_lazy for memory lvals.
3698 * value.h (value_lazy): Update comment.
3699 (value_of_register_lazy): Declare.
3701 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3703 * corefile.c (reopen_exec_file): Close any open files.
3705 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3707 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3708 show_memory_breakpoints to 1 while reading the instruction bundle.
3710 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3712 * gdbarch.sh: Document the return_value method. Explain that
3713 the FUNCTYPE parameter might be NULL.
3714 * gdbarch.h: Regenerated.
3715 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3716 type when calling using_struct_return, as this is unnecessary
3719 2008-04-28 Joel Brobecker <brobecker@adacore.com>
3721 * terminal.h (create_tty_session): Fix return type.
3723 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3725 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3727 2008-04-26 Joel Brobecker <brobecker@adacore.com>
3729 * breakpoint.c (condition_command, commands_from_control_command)
3730 (break_command_really): Minor reformatting.
3732 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3734 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3736 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3738 * amd64-tdep.c (amd64_get_longjmp_target): New.
3739 (amd64_init_abi): Register amd64_get_longjmp_target as
3740 gdbarch_get_longjmp_target callback.
3741 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3743 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3745 * breakpoint.h (enum bpstat_what_main_action): Delete
3746 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3748 * breakpoint.c (clrs): Delete.
3749 (bpstat_what): Update table.
3751 * infrun.c (handle_inferior_event): Remove
3752 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3754 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3756 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3757 Adjust all prototypes using mi_cmd_args_ftype to use
3759 (struct mi_cmd): Remove the args_func field.
3760 * mi/mi-cmds.c: Don't provide value for the args_func field.
3761 * mi/mi-main.c (mi_execute_async_cli_command)
3762 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3763 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3764 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3765 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3766 (mi_cmd_target_download): Adjust.
3767 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3768 (mi_cmd_execute): Do not check for args_func.
3769 (mi_execute_async_cli_command): Adjust.
3770 * mi/mi-parse.c: Don't check for args_func.
3772 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3774 * breakpoint.c (bpstat_check_location)
3775 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3776 New, extracted from bpstat_stop_status.
3777 (bpstat_stop_status): Use the above.
3779 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3781 * mi/mi-main.c (last_async_command): Rename to current_token.
3782 (previous_async_command): Remove.
3783 (mi_cmd_gdb_exit): Adjust.
3784 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3785 (mi_cmd_target_select): Adjust.
3786 (mi_cmd_execute): Don't set previous_async_command. Free token
3787 here even in async mode.
3788 (mi_execute_async_cli_command): Adjust.
3789 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3791 (mi_load_progress): Adjust.
3793 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3795 * infcmd.c (step_1_continuation): Always disable longjmp
3796 breakpoint if we're not going to do another step.
3798 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3800 exec_cleanup murder.
3801 * breakpoint.c (until_break_command_continuation): Add
3802 the 'error' parameter. Directly delete the breakoint as
3803 opposed to running cleanups.
3804 (until_break_command): Install continuation only
3805 after starting the target. Don't use exec cleanups,
3806 use ordinary cleanups. Discard cleanups is successfully
3807 started the target in async mode.
3808 (make_cleanup_delete_breakpoint): Remove.
3809 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3811 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3813 (struct continations): Add the 'error' parameter to the
3814 continuation_hook field.
3815 (add_continuation, do_all_continuations)
3816 (add_intermediate_continuation)
3817 (do_all_intermediate_continuations): Add the 'error' parameter.
3818 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3819 * inf-loop.c (inferior_event_handler): Instead of calling
3820 discard_all_continuations, use do_all_continuations with 1 as
3821 'error' parameter. Pass 0 as 'error' parameter in existing uses
3822 of discard_all_continuations.
3823 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3825 (step_once): Install continuation only after resuming the target.
3826 (step_1_continuation): Disable longjmp breakpoint on error.
3827 (finish_command_continuation): Add the error parameter. Delete
3828 the finish breakpoint directly, do not use cleanups.
3829 (finish_command): Do not use exec_cleanups. Always setup
3830 continuation. For sync case, immediately run them.
3831 (attach_command_continuation): Add the error parameter.
3832 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
3833 remove step_resume_breakpoint -- adjust delete it directly.
3834 * interps.c (interp_set): Adjust call to do_all_continations.
3835 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
3837 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
3839 (mi_cmd_execute): Do not use exec_cleanup.
3840 (mi_execute_async_cli_command): Simplify the string concatenation
3841 logic. Do no use exec cleanup.
3842 (mi_exec_async_cli_cmd_continuation): New parameter error.
3843 Free last_async_command.
3844 * top.c (command_line_handler_continuation): New parameter error.
3845 * utils.c (exec_cleanup_chain, make_exec_cleanup)
3846 (do_exec_cleanups): Remove.
3847 (add_continuation, do_all_continations)
3848 (add_intermediate_continuation)
3849 (do_all_intermediate_continuations): New parameter error.
3851 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3853 * breakpoint.h (bp_location_p): New typedef.
3854 Register a vector of bp_location_p.
3855 * breakpoint.c (always_inserted_mode)
3856 (show_always_inserted_mode): New.
3857 (unlink_locations_from_global_list): Remove.
3858 (update_global_location_list)
3859 (update_global_location_list_nothrow): New.
3860 (update_watchpoint): Don't free locations.
3861 (should_insert_location): New.
3862 (insert_bp_location): Use should_insert_location.
3863 (insert_breakpoint_locations): Copied from
3865 (insert_breakpoint): Use insert_breakpoint_locations.
3866 (bpstat_stop_status): Call update_global_location_list
3867 when disabling breakpoint.
3868 (allocate_bp_location): Don't add to bp_location_chain.
3869 (set_raw_breakpoint)
3870 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
3871 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
3872 (enable_overlay_breakpoints, disable_overlay_breakpoints)
3873 (set_longjmp_resume_breakpoint)
3874 (enable_watchpoints_after_interactive_call_stop)
3875 (disable_watchpoints_before_interactive_call_start)
3876 (create_internal_breakpoint)
3877 (create_fork_vfork_event_catchpoint)
3878 (create_exec_event_catchpoint, set_momentary_breakpoint)
3879 (create_breakpoints, break_command_1, watch_command_1)
3880 (create_exception_catchpoint)
3881 (handle_gnu_v3_exceptions)
3882 (disable_breakpoint, breakpoint_re_set_one)
3883 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3884 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3885 Call update_global_location_list.
3886 (delete_breakpoint): Don't remove locations and don't
3887 try to reinsert them. Call update_global_location_list.
3888 (update_breakpoint_locations): Likewise.
3889 (restore_always_inserted_mode): New.
3890 (update_breakpoints_after_exec): Temporary disable
3891 always inserted mode.
3892 * Makefile.in: Update dependencies.
3894 * infrun.c (proceed): Remove breakpoints while stepping
3896 (handle_inferior_event): Don't remove or insert
3898 * linux-fork.c (checkpoint_command): Remove breakpoints
3899 before fork and insert after.
3900 (linux_fork_context): Remove breakpoints before switch
3902 * target.c (target_disconnect, target_detach): Remove
3903 breakpoints from target.
3906 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3908 * breakpoint.c (print_one_breakpoint_location): In MI
3909 mode, report the location string the breakpoint was
3910 originally created with.
3912 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3914 * Makefile.in (xtensa-tdep.o): Update dependencies.
3915 * configure.tgt (xtensa*): Update dependencies.
3916 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3917 Local variable areg renamed to arreg.
3918 (areg_number): New function.
3919 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3920 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3921 replaced by arreg_number.
3922 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3923 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
3924 (xtensa_scan_prologue): New function.
3925 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
3926 when ENTRY instraction hasn't been executed yet. Get the frame pointer
3927 value based on prologue analysis. Fix the bugs preventing WS and
3928 AR4-AR7/A11 registers from getting right values for intermediate frames,
3929 whose registers have been already spilled.
3930 (xtensa_frame_prev_register): Fix WS register value. Use are_number
3931 and arreg_number appropriately.
3932 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3933 svr4_ilp32_fetch_link_map_offsets.
3935 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
3937 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
3938 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
3940 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3942 * acinclude.m4: Add override.m4.
3943 * configure: Regenerate.
3945 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3947 * ada-lang.c (get_selections): Variable PROMPT made non-const and
3948 initialized with a trailing space now. Use PROMPT_ARG of
3949 COMMAND_LINE_INPUT instead of printing it ourselves.
3951 2008-04-22 Joel Brobecker <brobecker@adacore.com>
3953 * NEWS: Document support for 64-bit core file.
3955 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
3957 * NEWS: Add information on calling convention and new SH CLI options.
3959 * sh-tdep.c (sh_cc_gcc): New static string.
3960 (sh_cc_renesas): Ditto.
3961 (sh_cc_enum): New static string array.
3962 (sh_active_calling_convention): New static string pointer denoting
3963 active user chosen ABI.
3964 (sh_is_renesas_calling_convention): New function to return function
3965 specific ABI, or user choice if necessary.
3966 (sh_use_struct_convention): Rename first argument and turn around its
3967 meaning. Check for renesas ABI and return accordingly.
3968 (sh_use_struct_convention_nofpu): New function.
3969 (sh_next_flt_argreg): Get function type as third parameter. Check
3970 for renesas ABI and choose floating registers accordingly.
3971 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
3972 struct return slot accordingly.
3973 (sh_push_dummy_call_nofpu): Ditto.
3974 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
3975 Evaluate ABI and give to sh_use_struct_convention_nofpu.
3976 (sh_return_value_fpu): Evaluate ABI and give to
3977 sh_use_struct_convention.
3978 (show_sh_command): New function.
3979 (set_sh_command): Ditto.
3980 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
3983 * gdbarch.sh (return_value): Add func_type argument.
3984 * gdbarch.c: Regenerate.
3986 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
3987 val_type so as not to collide with value_type function. Call
3988 using_struct_return with additional function type argument.
3989 * infcall.c (call_function_by_hand): Call using_struct_return and
3990 gdbarch_return_value with additional function type argument.
3991 * infcmd.c (print_return_value): Take addition func_type argument.
3992 Call gdbarch_return_value with additional function type argument.
3993 (finish_command_continuation): Call print_return_value with additional
3994 function type argument.
3995 (finish_command): Ditto.
3996 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
3997 additional function type argument.
3998 * stack.c (return_command): Call using_struct_return and
3999 gdbarch_return_value with additional function type argument.
4000 * value.c (using_struct_return): Take additional function type argument.
4001 * value.h (using_struct_return): Accommodate declaration.
4002 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4003 * amd64-tdep.c (amd64_return_value): Ditto.
4004 * arm-tdep.c (arm_return_value): Ditto.
4005 * avr-tdep.c (avr_return_value): Ditto.
4006 * cris-tdep.c (cris_return_value): Ditto.
4007 * frv-tdep.c (frv_return_value): Ditto.
4008 * h8300-tdep.c (h8300_return_value): Ditto.
4009 (h8300h_return_value): Ditto.
4010 * hppa-tdep.c (hppa32_return_value): Ditto.
4011 (hppa64_return_value): Ditto.
4012 * i386-tdep.c (i386_return_value): Ditto.
4013 * ia64-tdep.c (ia64_return_value): Ditto.
4014 * iq2000-tdep.c (iq2000_return_value): Ditto.
4015 * m32c-tdep.c (m32c_return_value): Ditto.
4016 * m32r-tdep.c (m32r_return_value): Ditto.
4017 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4018 * m68k-tdep.c (m68k_return_value): Ditto.
4019 (m68k_svr4_return_value): Ditto.
4020 * m88k-tdep.c (m88k_return_value): Ditto.
4021 * mep-tdep.c (mep_return_value): Ditto.
4022 * mips-tdep.c (mips_eabi_return_value): Ditto.
4023 (mips_n32n64_return_value): Ditto.
4024 (mips_o32_return_value): Ditto.
4025 (mips_o64_return_value): Ditto.
4026 * mn10300-tdep.c (mn10300_return_value): Ditto.
4027 * mt-tdep.c (mt_return_value): Ditto.
4028 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4029 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4030 (ppc_sysv_abi_broken_return_value): Ditto.
4031 (ppc64_sysv_abi_return_value): Ditto.
4032 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4033 (ppc_sysv_abi_broken_return_value): Ditto.
4034 (ppc64_sysv_abi_return_value): Ditto.
4035 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4036 * rs6000-tdep.c (rs6000_return_value): Ditto.
4037 * s390-tdep.c (s390_return_value): Ditto.
4038 * score-tdep.c (score_return_value): Ditto.
4039 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4040 (sh_return_value_fpu): Ditto.
4041 * sh64-tdep.c (sh64_return_value): Ditto.
4042 * sparc-tdep.c (sparc32_return_value): Ditto.
4043 * sparc64-tdep.c (sparc64_return_value): Ditto.
4044 * spu-tdep.c (spu_return_value): Ditto.
4045 * v850-tdep.c (v850_return_value): Ditto.
4046 * vax-tdep.c (vax_return_value): Ditto.
4047 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4048 * xtensa-tdep.c (xtensa_return_value): Ditto.
4050 * gdbtypes.h (struct type): Add calling_convention member.
4051 * dwarf2read.c (read_subroutine_type): Add calling convention read
4052 from DW_AT_calling_convention attribute to function type.
4054 2008-04-22 Markus Deuling <deuling@de.ibm.com>
4056 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4057 multi_f77_subscript to support values from registers.
4058 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4059 * value.h (value_subscripted_rvalue): Add prototype.
4061 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4063 * f-valprint.c (f_val_print): Likewise.
4065 2008-04-21 Craig Silverstein <csilvers@google.com>
4067 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4070 2008-04-21 Pedro Alves <pedro@codesourcery.com>
4072 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4073 section is not a code section.
4075 2008-04-19 Craig Silverstein <csilvers@google.com>
4077 * NEWS: Add information on compressed debug sections.
4079 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4081 * mi/mi-cmd-var.c (varobj_update_one): Print new
4082 value for variable objects that changed type.
4084 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4086 * varobj.c (varobj_invalidate): Don't touch floating
4089 2008-04-19 Mark Kettenis <kettenis@gnu.org>
4091 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4092 (multiple_symbols_cancel): Remove extra const.
4093 * symtab.h: Likewise.
4095 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
4097 * interps.c (top_level_interpreter): Rename static variable...
4098 (top_level_interpreter_ptr): ...to this.
4099 (top_level_interpreter): New function.
4101 * interps.h: New extern for top_level_interpreter.
4103 * linespec.c: Include interps.h and mi/mi-cmds.h.
4104 (decode_line_2): When using MI, always set all breakpoints in menu.
4106 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4108 2008-04-18 Craig Silverstein <csilvers@google.com>
4110 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4111 * config.in, configure: Regenerate.
4112 * dwarf2read.c: Include zlib.h if present.
4113 Modified *_SECTION macros.
4114 (section_is_p): New.
4115 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4116 (dwarf2_resize_section): New.
4117 to determine whether a given section has a given name.
4118 (zlib_decompress_section): New.
4119 (dwarf2_read_section): Read the compressed section if present
4121 * MAINTAINERS: Added myself to section Write After Approval.
4123 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4125 * defs.h (exec_set_section_offsets): Remove prototype.
4126 * exec.c (exec_set_section_offsets): Remove function.
4128 2008-04-18 Joel Brobecker <brobecker@adacore.com>
4130 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4131 in the search for the matching symbol.
4133 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4135 * breakpoint.c (update_watchpoint): Always reparse
4138 2008-04-17 Joel Brobecker <brobecker@adacore.com>
4140 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4141 the breakpoint address only once.
4143 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4145 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4146 rather than a hard-coded architecture, for xcoff executables.
4148 2008-04-17 Doug Evans <dje@google.com>
4150 * buildsym.c (watch_main_source_file_lossage): New fn.
4151 (end_symtab): Call it.
4153 * source.c (find_and_open_source): Add some comments clarifying
4154 handling of FULLNAME argument. Make static. Remove pointless
4157 2008-04-17 Pedro Alves <pedro@codesourcery.com>
4159 * inf-loop.c (inferior_event_handler): Also run the intermediate
4160 continuations in the INF_EXEC_COMPLETE case.
4162 2008-04-16 Tom Tromey <tromey@redhat.com>
4164 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4165 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4166 * cli/cli-decode.c (set_cmd_async_ok): New function.
4167 (get_cmd_async_ok): New function.
4168 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4170 * top.c (execute_command): Use get_cmd_async_ok.
4171 * infcmd.c: Include cli/cli-decode.h.
4172 (_initialize_infcmd): Mark "interrupt" as async-ok.
4173 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4175 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4178 * exec.c: Correct "arch-utils.h" include.
4180 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
4183 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4184 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4185 * breakpoint.c (bpdisp_texst): New function. The function takes over
4186 the role of bpstats static array in print_one_breakpoint_location.
4187 (print_it_typical): Print "Temporary breakpoint" instead
4188 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4189 protocols, print disp field.
4190 (print_one_breakpoint_location): Removed bpdisps static definition.
4191 Call new bpstat_text function to get value for 'disp' field.
4192 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4194 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4196 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4197 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4198 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4199 * gnulib/Makefile.in: Regenerate.
4201 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4203 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4204 (defs_h): Use $(GNULIB_H).
4205 (all-lib): Depend on gnulib/Makefile.
4206 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4207 * config.in, gnulib/Makefile.in: Regenerated.
4209 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4211 * Makefile.in (LIBGNU, INCGNU): Define.
4212 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4213 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4215 ($(LIBGNU), all-lib): New rules.
4216 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4217 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4218 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4219 * gnulib: New directory, from gnulib-tool.
4220 * configure, aclocal.m4: Regenerated.
4222 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4224 * linux-thread-db.c (have_threads_callback): Check thread->private.
4226 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
4227 Vladimir Prus <vladimir@codesourcery.com>
4230 * varobj.c (value_of_root): Update the expression for
4232 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4235 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4237 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4238 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4239 (mi_cmd_var_set_format): Use new mi_parse_format.
4240 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4242 * Makefile.in (mi-cmd-var.o): Update dependencies.
4244 * varobj.h (varobj_get_formatted_value): Declare.
4245 * varobj.c (my_value_of_variable): Added format parameter.
4246 (cplus_value_of_variable): Likewise.
4247 (java_value_of_variable): Likewise.
4248 (c_value_of_variable): Likewise. Evaluate expression based
4249 on format parameter.
4250 (struct language_specific): Add format parameter to function member
4252 (varobj_get_formatted_value): New.
4253 (varobj_get_value): Added format parameter to method call.
4255 2008-04-08 Joel Brobecker <brobecker@adacore.com>
4257 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4258 instance flags of the undefined type before calling replace_type.
4260 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4262 * target.h (enum strata): Remove the download_stratum.
4264 2008-04-07 Doug Evans <dje@google.com>
4266 * buildsym.h (last_source_file): Add dwarf info to comment.
4267 (last_source_start_addr): Ditto.
4269 2008-04-07 Pedro Alves <pedro@codesourcery.com>
4271 * alphanbsd-tdep.c: Include "target.h".
4272 * mn10300-tdep.c: Include "target.h".
4273 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4275 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4277 Fix breakpoint condition that use member variables.
4278 * valops.c (check_field): Remove.
4279 (check_field_in): Rename to check_field.
4280 (value_of_this): Use la_name_of_this.
4281 * value.h (check_field): Adjust prototype.
4283 * language.h (la_value_of_this): Rename to la_name_of_this.
4284 * language.c (unknown_language_defn): Specify "this" for
4286 (auto_language_defn): Likewise.
4287 (local_language_defn): Likewise.
4288 * ada-lang.c (ada_language_defn): Adjust comment.
4289 * c-lang.c (c_language_defn): Adjust comment.
4290 (cplus_language_defn): Specify "this" for name_of_this.
4291 (asm_language_defn): Adjust comment.
4292 (minimal_language_defn): Adjust comment.
4293 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4294 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4295 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4296 * objc-lang.c (objc_language_defn): Specify "self" for
4298 * p-lang.c (pascal_language_defn): Specify "this" for
4300 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4302 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4303 proper scope, and check for field in type of "this", without
4304 trying to create a value.
4306 2008-04-04 Pedro Alves <pedro@codesourcery.com>
4308 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4309 (mi_error_message): Delete declaration.
4310 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4311 returning MI_CMD_ERROR.
4312 * mi/mi-main.c (mi_error_message): Delete.
4313 (mi_cmd_exec_interrupt):
4314 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4315 (mi_cmd_thread_info): Call error instead of returning
4317 (mi_cmd_data_list_register_values): Call error instead of
4318 returning MI_CMD_ERROR. Adapt to new get_register interface.
4319 (get_register): Change return typo to void. Call error instead of
4320 returning MI_CMD_ERROR.
4321 (mi_cmd_data_write_register_values): Call error instead of
4322 returning MI_CMD_ERROR.
4323 (mi_cmd_list_features): Return MI_CMD_DONE.
4324 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4325 (mi_execute_command): Always print exceptions with -error.
4327 2008-04-04 Joel Brobecker <brobecker@adacore.com>
4329 * NEWS: Mention new commands set/show multiple-symbols.
4331 2008-04-03 Joel Brobecker <brobecker@adacore.com>
4333 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4334 (multiple_symbols_cancel): New constants.
4335 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4336 (multiple_symbols_select_mode): New function.
4337 (_initialize_symtab): Add new set/show multiple-symbols commands.
4338 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4339 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4340 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4342 * linespec.c (decode_line_2): Likewise.
4344 2008-04-03 Doug Evans <dje@sebabeach.org>
4346 * symtab.h (enum free_code): Delete free_contents, unused.
4347 * symmisc.c (free_symtab_block): Delete.
4348 (free_symtab, case free_code): Delete.
4350 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4352 * valops.c (value_cast_structs): New function. Cast related
4353 STRUCT types up/down and return cast value. The body of this
4354 function comes mostly from value_cast_pointers.
4355 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4356 to value_cast_structs. Now value_cast_pointers needs only create
4357 appropriate reference after using value_cast_structs for actual
4359 (value_cast): Handle references.
4361 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4363 * MAINTAINERS: Added myself to section Write After Approval.
4365 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4367 * ia64-tdep.c (examine_prologue): Correct array access.
4369 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4371 * cp-support.c (first_component_command): Return if no arguments.
4373 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4375 * ser-mingw.c (ser_windows_open): Open requested name.
4377 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4379 * MAINTAINERS: Added myself.
4381 2008-03-28 Pedro Alves <pedro@codesourcery.com>
4383 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4384 parameter. If it is NULL, don't call error.
4385 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4386 `do_mesg' parameter to find_default_run_target. If no target was
4389 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4391 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4392 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4393 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4395 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4397 2008-03-27 Joel Brobecker <brobecker@adacore.com>
4401 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4403 * features/Makefile (%.dat): Set xmltarget to the base filename
4404 of the XML source, without subdirectory.
4405 * regformats/rs6000/powerpc-32.dat: Regenerate.
4406 * regformats/rs6000/powerpc-64.dat: Regenerate.
4407 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4409 2008-03-27 Markus Deuling <deuling@de.ibm.com>
4411 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4414 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
4416 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4417 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4419 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4421 * objfiles.h (struct objfile): New GDBARCH member.
4422 (get_objfile_arch): Add prototype.
4423 * objfiles.c: Include "arch-utils.h".
4424 (allocate_objfile): Look up gdbarch associated with bfd.
4425 (get_objfile_arch): New function.
4426 * Makefile (objfiles.o): Update dependencies.
4428 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4430 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4432 (locexpr_describe_location): Replace current_gdbarch by
4434 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4435 (dwarf2_add_field): Likewise.
4436 (read_tag_pointer_type): Likewise.
4437 (read_base_type): Likewise.
4438 (new_symbol): Likewise.
4440 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4441 (decode_base_type, decode_function_type): Likewise.
4442 (coff_read_struct_type, coff_read_enum_type): Likewise.
4443 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4444 (decode_base_type): Likewise.
4445 (coff_read_enum_type): Likewise.
4446 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4447 (coff_read_enum_type): Likewise.
4449 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4450 (end_psymtab): Likewise.
4451 (process_one_symbol): Likewise.
4453 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4454 (parse_procedure): Likewise.
4455 (parse_partial_symbols): Likewise.
4457 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4459 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4460 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4462 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4463 static range_index_type by built-in type.
4464 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4465 (read_enum_type): Likewise.
4467 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4470 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4472 * varobj.h (varobj_floating_p): Declare.
4473 * varobj.c (varobj_floating_p): New.
4474 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4475 '@' as the name, update all floating varobjs.
4477 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4479 * varobj.c (struct varobj_root): Rename use_selected_frame to
4480 floating, and clarify the meaning.
4481 (varobj_create, varobj_update, new_root_variable): Adjust.
4482 (value_of_root): Don't use type_changed as in variable,
4484 (c_value_of_root): Adjust.
4486 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4488 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4490 (linux_nat_wait): Add main lwp to gdb's thread list.
4491 * linux-thread-db.c (find_new_threads_callback): Also attach to
4492 already listed threads which thread_db didn't know about yet.
4494 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4496 * linux-nat.c (drain_queued_events): Fix comment typo.
4497 (linux_nat_attach): In async mode, don't rely on storing a pending
4498 status. Instead place the wait status on the pipe.
4499 (linux_nat_resume): Remove unreacheable shortcut code in async
4501 (stop_wait_callback): In async mode, don't store pending status.
4502 Instead, cancel breakpoints or resend the signal appropriatelly.
4503 (cancel_breakpoint): New, refactored from
4504 cancel_breakpoints_callback.
4505 (cancel_breakpoints_callback): Call cancel_breakpoint.
4506 (pipe_to_local_event_queue): Remove special token processing.
4507 (linux_nat_wait): Issue an internal error if a pending status is
4508 found in async mode.
4510 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4512 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4514 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
4515 Vladimir Prus <vladimir@codesourcery.com>
4517 * varobj.c (struct varobj_root): New component thread_id.
4518 (varobj_get_thread_id, check_scope): New functions.
4519 (c_value_of_root): Use check_scope. Switch to the
4520 proper thread if necessary.
4522 * varobj.h (varobj_get_thread_id): New extern.
4524 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
4526 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4529 * top.c: Revert 2008-03-21 changes.
4531 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4533 * thread.c (make_cleanup_restore_current_thread): Make it
4535 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4536 * varobj.c (varobj_update): Don't save/restore frame.
4537 (c_value_of_root): Save/restore thread and frame here,
4538 using make_cleanup_restore_current_thread.
4539 * Makefile.in: Update dependecies.
4541 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4543 * varobj.c (struct varobj_root): Clarify
4544 comment on the frame field.
4545 (varobj_create): Don't set frame if we have no
4548 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4551 Suggested by Jan Kratochvil:
4552 * top.c (gdb_rl_operate_and_get_next_completion): Call
4553 rl_redisplay_function.
4554 (gdb_rl_redisplay): New.
4555 (init_main): Set rl_redisplay_function.
4557 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4559 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4560 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4561 (store_regs_kernel_thread): Likewise.
4563 2008-03-21 Pedro Alves <pedro@codesourcery.com>
4565 Linux native async support.
4567 * target.h (struct target_ops): Delete to_async_mask_value and add
4569 (target_is_async_p, target_async): Formatting.
4570 (target_async_mask_value): Delete.
4571 (target_async_mask): Delete function declaration, and add new
4572 target macro with the same name.
4574 * target.c (update_current_target): Replace to_async_mask_value by
4575 to_async_mask. Default to_async_mask to return_one.
4576 (target_async_mask): Delete.
4577 (find_default_can_async_p, find_default_is_async_p): New.
4578 (init_dummy_target): register find_default_can_async_p and
4579 find_default_is_async_p on the dummy target.
4581 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4582 (debug_linux_nat_async): New global.
4583 (show_debug_linux_nat_async): New function.
4584 (linux_nat_async_enabled, linux_nat_async_mask_value)
4585 (linux_nat_event_pipe, linux_nat_num_queued_events)
4586 (linux_nat_async_events_enabled): New globals.
4587 (struct waitpid_result): New struct.
4588 (waitpid_queue): New global.
4589 (queued_waitpid, push_waitpid, drain_queued_events): New.
4590 (my_waitpid): Call queued_waitpid.
4591 (linux_child_follow_fork): Disable async events during the call.
4592 (blocked_mask): Delete.
4593 (sync_sigchld_action, async_sigchld_action): New globals.
4594 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4595 async mode, block events during the call.
4596 (linux_nat_create_inferior): New.
4597 (linux_nat_attach): In sync mode, restore the mask states. In
4598 async mode, wake the event loop immediatelly.
4599 (detach_callback): Drain all queued events of the lwp we're
4601 (linux_nat_detach): Block async mode, and drain events of the main
4603 (linux_nat_resume): If in async mode, mask async events during the
4604 call. If short circuiting, force event loop to wake up. If
4605 resuming, set target_executing, and register target events in the
4607 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4608 (linux_nat_wait): In async mode, block events during the call.
4609 Only enable/disable passing SIGINT to the inferior in sync mode.
4610 Get events from local waitpid queue. If no interesting events was
4611 found, return to events loop. Reregister target events in the
4612 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4613 (linux_nat_kill): Disable events on entry.
4614 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4615 here. Detach async mode from the event loop if there are no more
4616 forks available, otherwise leave it on.
4617 (sigchld_handler): Assure this is called only in sync mode.
4618 (linux_async_permitted, linux_async_permitted_1): New globals.
4619 (set_maintenance_linux_async_permitted)
4620 (show_maintenance_linux_async_permitted): New functions.
4621 (linux_nat_is_async_p, linux_nat_can_async_p)
4622 (linux_nat_async_mask): New.
4623 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4624 (get_pending_events, async_sigchld_handler): New.
4625 (linux_nat_async_events): New.
4626 (async_terminal_is_ours): New global.
4627 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4628 (async_client_callback, async_client_context): New.
4629 (linux_nat_async_file_handler, linux_nat_async)
4630 (linux_nat_disable_async, linux_nat_enable_async): New.
4631 (linux_nat_add_target): Register linux_nat_create_inferior,
4632 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4633 linux_nat_async_mask, linux_nat_terminal_inferior and
4634 linux_nat_terminal_ours.
4635 (_initialize_linux_nat): Remove local action variable, and update
4636 code that used it to use sync_sigchld_action. Add new
4637 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4638 set/show command in the maintenance class. Add new "linux-async"
4639 maintenance set/show command. Block SIGCHLD by default. Setup
4640 async_sichld_action, and sync_sigchld_action. Install the default
4642 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4645 * linux-thread-db.c (re_check_for_thread_db): New.
4646 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4647 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4648 (thread_db_async_mask): New.
4649 (init_thread_db_ops): Register thread_db_can_async_p,
4650 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4652 * remote.c (remote_async_mask_value): New.
4653 (remote_return_zero): New.
4654 (init_remote_ops): Register remote_return_zero as callbacks of
4655 to_can_async_p and to_is_async_p.
4656 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4657 use remote_async_mask_value.
4658 (remote_async_mask): New.
4659 (init_remote_async_ops): Remove to_async_mask_value setting and
4660 register remote_async_mask as to_async_mask callback in
4663 * Makefile.in (linux-nat.o): Update.
4665 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4667 * gdbthread.h (add_thread_with_info): New.
4668 * linux-thread-db.c: Add some documentation.
4669 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4670 (struct private_thread_info): Remove th_valid and ti_valid.
4671 Replace ti with tid.
4672 (thread_get_info_callback): Do not add TID to the new ptid. Do
4674 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4675 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4677 (attach_thread): Handle an already-existing thread. Use
4678 add_thread_with_info. Cache the th and tid.
4679 (detach_thread): Verify that private was set. Remove verbose
4680 argument and printing. Update caller.
4681 (thread_db_detach): Do not adjust inferior_ptid.
4682 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4683 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4684 (thread_db_wait): Do not use lwp_from_thread.
4685 (thread_db_pid_to_str): Use the cached TID.
4686 (thread_db_extra_thread_info): Check that private is set.
4687 (same_ptid_callback): Delete.
4688 (thread_db_get_thread_local_address): Do not use it or check
4689 is_thread. Check that private is set. Assume that the thread
4690 handle is already cached.
4691 (init_thread_db_ops): Remove to_resume and to_kill.
4692 * thread.c (add_thread_with_info): New.
4693 (add_thread): Use it.
4694 * linux-nat.c (find_thread_from_lwp): Delete.
4695 (exit_lwp): Do not use it. Check print_thread_events. Print before
4696 deleting the thread.
4697 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4698 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4699 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4700 printf_unfiltered for thread exits.
4701 * procfs.c (procfs_wait): Likewise.
4703 2008-03-21 Chris Demetriou <cgd@google.com>
4705 * symtab.c (rbreak_command): Quote symbol name before passing
4706 it to break_command.
4708 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4710 * eval.c (evaluate_subexp_for_address): Clarify error message.
4711 Use value_must_coerce_to_target.
4712 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4713 * valops.c (value_assign): Call value_coerce_to_target when
4714 assigning to anything but internalvars. Leave GDB-side arrays
4715 as arrays when assigning to internalvars.
4716 (value_must_coerce_to_target, value_coerce_to_target): New.
4717 (value_coerce_array, value_addr): Call value_coerce_to_target.
4718 (value_array): Create the array in GDB's memory instead of
4720 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4723 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4725 * top.c (quit_confirm): Warn that we will kill the program.
4727 2008-03-19 Pedro Alves <pedro@codesourcery.com>
4729 * inflow.c (terminal_ours_1): Guard access to
4730 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4732 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4733 Jim Blandy <jimb@codesourcery.com>
4734 Daniel Jacobowitz <drow@false.org>
4736 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4737 (dwarf2_read_address): Update prototype.
4739 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4740 (signed_address_type): Likewise.
4741 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4742 (execute_stack_op): Update calls to unsigned_address_type,
4743 signed_address_type and dwarf2_read_address. Fix implementation
4744 of DW_OP_deref_size.
4746 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4747 (dwarf2_per_cu_addr_size): Likewise.
4748 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4749 (struct dwarf2_loclist_baton): Likewise.
4751 * dwarf2loc.c (find_location_expression): Update calls to
4752 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4753 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4754 (locexpr_describe_location): Likewise.
4755 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4756 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4757 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4758 to dwarf2_per_cu_addr_size (per_cu).
4759 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4760 (loclist_read_variable): Likewise.
4761 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4763 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4764 instead of baton->objfile.
4765 (dwarf2_per_cu_obfile): New function.
4766 (dwarf2_per_cu_addr_size): Likewise.
4768 * dwarf2-frame.c (struct comp_unit): Move higher.
4769 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4770 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4771 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4772 parameter by using fde->eh_frame_p. Use read_encoded_value
4773 to implement DW_CFA_set_loc.
4774 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4775 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4776 execute_stack_op and execute_cfa_program.
4777 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4778 (size_of_encoded_value): Remove.
4779 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4780 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4781 (add_cie): Set cie->unit backlink.
4782 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4784 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4786 2008-03-17 Markus Deuling <deuling@de.ibm.com>
4788 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4789 gdbarch_bfd_arch_info.
4791 2008-03-17 Joel Brobecker <brobecker@adacore.com>
4793 * aix-thread.c (pdc_read_regs): Minor reformatting.
4795 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4797 * thread.c (print_thread_info): Don't insist
4798 on having current thread if there are no
4801 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4803 * infcmd.c (attach_command_post_wait)
4804 (attach_command_continuation): New.
4805 (attach_command): Support background async execution, and async
4806 execution in synchronous mode.
4808 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4810 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4811 * symmisc.c (dump_symtab_1): Likewise.
4812 * wrapper.c (gdb_value_struct_elt): Likewise.
4814 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4816 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4818 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4820 * linux-nat.c (linux_nat_filter_event): New, refactored from
4822 (linux_nat_wait): Call linux_nat_filter_event.
4824 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4826 * top.c (execute_command): Fix uninitialized variable error.
4828 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4830 * Makefile.in (amd64nbsd-nat.o): New dependency.
4831 * amd64nbsd-nat.c: Include "nbsd-nat.h".
4832 (_initialize_amd64nbsd_nat): Update target vector to use
4833 nbsd_pid_to_exec_file.
4834 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
4836 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4838 Remove ignoring leading exec events code.
4839 * fork-child.c (startup_inferior): Do not set
4840 inferior_ignoring_leading_exec_events.
4841 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
4842 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
4843 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
4844 (handle_inferior_event): Remove code for ignoring leading exec
4846 * target.c (update_current_target): Do not inherit, or default,
4847 to_reported_exec_events_per_exec_call.
4848 (debug_to_reported_exec_events_per_exec_call): Remove.
4849 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
4850 * target.h (target_reported_exec_events_per_exec_call): Remove.
4851 (struct target): Remove the to_reported_exec_events_per_exec_call
4854 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4856 Implement -thread-info.
4857 * gdbthread.h (print_thread_info): Declare.
4859 * thread.c (print_thread_info): New, extracted
4860 from info_threads_command and adjusted to
4861 work for CLI and MI.
4862 (info_threads_command): Use print_thread_info.
4863 * Makefile.in: Update dependencies.
4865 * mi/mi-cmds.c (mi_cmds): Specify a handler
4867 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
4868 * mi/mi-main.c (mi_cmd_thread_info): New.
4869 (mi_cmd_list_features): Include 'thread-info'.
4871 2008-03-14 Kevin Buettner <kevinb@redhat.com>
4873 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4874 to decide whether to match instruction patterns using "sw" and "sd".
4876 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4878 * infcmd.c (jump_command): Postpone disabling stdin until after
4881 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4883 * inflow.c (gdb_getpgrp): New.
4884 (gdb_has_a_terminal): Use get_getpgrp.
4885 (terminal_ours_1): If attach_flag is set, don't refetch
4886 inferior_process_group.
4888 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4890 * features/library-list.dtd: Allow "section" elements as children
4891 of "library". Add "section" element and describe its attributes.
4893 * solib-target.c (struct lm_info): Add section_bases member.
4894 (library_list_start_segment): Error out if seen a section element.
4895 (library_list_start_section): New.
4896 (library_list_end_library): New.
4897 (solib_target_free_library_list): Free section_bases.
4898 (section_attributes): New.
4899 (library_children): Make "segment" optional. Add "section" child.
4900 (library_list_children): Register library_list_end_library.
4901 (solib_target_relocate_section_addresses): Handle section bases.
4903 * NEWS: Mention new qXfer:libraries:read section offsets support.
4905 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4907 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4908 (make_exec_error_cleanup): Remove declarations.
4909 * utils.c (exec_error_cleanup_chain): Remove.
4910 (do_exec_error_cleanups, discard_exec_error_cleanups)
4911 (make_exec_error_cleanup): Remove.
4912 * event-loop.c (start_event_loop): Adjust call to
4914 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4915 (async_disable_stdin): Don't register async_enable_stdin via
4917 * inf-loop.c (inferior_event_handler): Don't
4918 call do_exec_error_cleanups. Call async_enable_stdin instead.
4919 * event-loop.c (start_event_loop): Adjust call to
4921 * tui/tui-interp.c (tui_command_loop): Adjust call to
4924 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4927 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
4928 * breakpoint.c (bpstat_do_actions): In async mode,
4929 don't jump to top expecting stop_bpstat to be already
4931 * event-loop.c (start_event_loop): Call async_enable_stdin
4933 * event-top.c (async_enable_stdin): Do nothing if sync_execution
4935 (command_handler): Do not setup continuation here.
4936 (command_line_handler_continuation): Move to...
4937 * top.c (command_line_handler_continuation): ... here.
4938 (execute_command): In async mode, register continuation.
4939 Don't check frame's language in running in async mode.
4940 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
4941 * inf-loop.c (complete_execution): Inline into...
4942 (inferior_event_handler): ... here. Clear target_executing before
4943 doing any cleanups. Don't try to show prompt if the target was
4945 * infcmd.c (signal_command): Add support for async mode.
4946 (finish_command): Only add continuation if the target was
4947 successfully resumed.
4948 * remote.c (init_async_opts): Register to_get_thread_local_address
4950 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
4951 with sync_execution.
4952 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
4955 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4957 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
4958 * exec.c (exec_bfd_mtime): Define.
4959 (exec_close): Clear it.
4960 (exec_file_attach): Set it.
4961 * gdbcore.h (exec_bfd_mtime): Declare.
4962 * source.c (find_source_lines): Do not use bfd_get_mtime.
4964 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4966 * top.c (simplified_command_loop): Remove.
4968 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4970 Remove unused remote.c hooks.
4971 * remote.c (deprecated_target_resume_hook)
4972 (deprecated_target_wait_loop_hook): Remove.
4973 (remote_resume): Do not call deprecated_target_resume_hook.
4974 (remote_wait): Do not call deprecated_target_wait_loop_hook.
4975 (remote_async_wait): Likewise.
4977 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4979 Implement MI notification for new threads.
4980 * doc/observer.texi (new_thread): Document.
4981 * observer.sh: Forward declare struct thread_info.
4982 * thread.c (add_thread): Notify observer.
4984 * interps.h (interp_init_ftype): New parameter
4986 (interp_set): Likewise.
4987 (top_level_interpreter_data): Declare.
4988 * interps.c (interp_set): New parameter top_level.
4989 Pass it to interpreter's init function. Remember
4990 top level interpreter.
4991 (interpreter_exec_cmd): Adjust.
4992 (top_level_interpreter_data): New.
4993 * main.c (captured_main): Pass 1 for top_level
4994 parameter of interp_set.
4995 * cli/cli-interp.c (cli_interpreter_init): New
4996 parameter top_level.
4997 * tui/tui-interp.c (tui_init): New parameter top_level.
4999 * mi/mi-interp.c (mi_new_thread): New.
5000 (mi_interpreter_init): If top level, register
5001 observer for new threads.
5003 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5005 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5007 * top.c (execute_command): Disable break and stop
5008 commands in async mode.
5010 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5013 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5014 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5015 Call target_stop in the INF_QUIT_REQ case.
5016 * Makefile.in (inf-loop.o): Update.
5018 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5020 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5021 Call target_stop in the INF_QUIT_REQ case.
5022 * Makefile.in (inf-loop.o): Update.
5024 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5026 * top.c (execute_command): Enable break, info and interrupt
5027 commands in async mode.
5029 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5030 Daniel Jacobowitz <dan@codesourcery.com>
5032 * breakpoint.h (breakpoint_restore_shadows): New
5034 * breakpoint.c (breakpoint_restore_shadows): New.
5035 (read_memory_nobpt): Delete.
5036 * gdbcore.h (read_memory_nobpt): Delete declaration.
5037 * target.c (memory_xfer_partial): Call
5038 breakpoint_restore_shadows.
5039 (restore_show_memory_breakpoints)
5040 (make_show_memory_beakpoints_cleanup): New.
5041 (show_memory_breakpoints): New.
5042 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5043 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5044 Make sure we see memory breakpoints when checking if
5045 breakpoint is still there.
5046 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5047 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5048 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5049 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5051 2008-03-12 Pedro Alves <pedro@codesourcery.com>
5053 * thread.c (add_thread): Use printf_unfiltered to print.
5055 2008-03-12 Joel Brobecker <brobecker@gnat.com>
5057 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5058 that is true only on x86-solaris and x86_64-solaris.
5059 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5060 with proc_get_LDT_entry.
5062 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5064 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5065 * config.in, configure: Regenerate.
5066 * fork-child.c (fork_inferior): Call create_tty_session.
5067 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5068 (create_tty_session): New function.
5069 * terminal.h: Declare create_tty_session.
5071 2008-03-12 Alan Modra <amodra@bigpond.net.au>
5074 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5075 * mipsread.c: Include elf/internal.h.
5076 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5079 2008-03-11 Markus Deuling <deuling@de.ibm.com>
5081 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5082 to get at the current architecture and at the target specific vector.
5083 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5084 remove define of I387_ST0_REGNUM.
5086 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5088 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5089 get at the current architecture
5090 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5093 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5094 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5096 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5097 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5098 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5100 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5101 at the target specific vector.
5103 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5104 architecture. Use gdbarch_tdep to get at the target specific vector.
5106 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5107 update caller. Use gdbarch_tdep to get at the target specific vector.
5109 (i386_register_to_value: Use get_frame_arch to get at the current
5112 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5115 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5116 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5117 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5118 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5120 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5123 (i387_convert_register_p, i387_register_to_value,
5124 i387_value_to_register): Update call for i386_fp_regnum_p.
5126 * i387-tdep.h: Remove comment.
5127 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5128 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5129 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5130 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5131 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5133 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5135 * Makefile.in (fork-child.o): Update.
5136 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5137 argument. Gather all gdbserver features together.
5138 * fork-child.c (exec_wrapper): New variable.
5139 (fork_inferior): Use it.
5140 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5141 (unset_exec_wrapper_command, _initialize_fork_child): New.
5143 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5145 * source.c (directory_command): Modify the determination of
5146 condition of terminal "from_tty".
5148 2008-03-10 Matt Rice <ratmice@gmail.com>
5150 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5152 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5154 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5155 of the data passing to strtoulst function.
5156 (info_spu_signal_command): Likewise.
5158 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5160 * mi/mi-interp.c (mi_command_loop): Remove
5163 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5165 * remote.c (extended_remote_attach_1): Make local variable pid an int
5168 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5170 * solib-svr4.c (svr4_same_1): New function, originally extracted
5171 from svr4_same and expanded to handle the sparc64 case.
5172 (svr4_same): Move up and reimplement using svr4_same_1.
5173 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5175 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5177 * MAINTAINERS: Move self to Paper trail.
5179 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5181 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5182 * event-loop.c (call_async_signal_handler): New.
5183 * event-loop.h (call_async_signal_handler)
5184 (gdb_call_async_signal_handler): Declare.
5185 (mark_async_signal_handler): Add comments.
5186 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5187 * mingw-hdep.c (sigint_event, sigint_handler): New.
5188 (gdb_select): Use them. Wait for the readline signal handler
5190 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5191 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5192 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5194 (remote_fileio_ctrl_c_signal_handler): Use
5195 gdb_call_async_signal_handler.
5196 (initialize_remote_fileio): Initialize sigint_fileio_token.
5197 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5198 not initialize tokens here.
5199 (handle_remote_sigint_twice): Likewise. Reinstall
5200 handle_remote_sigint.
5201 (async_remote_interrupt_twice): Just call interrupt_query.
5202 (cleanup_sigint_signal_handler): Do not delete tokens.
5203 (remote_interrupt, remote_interrupt_twice): Use
5204 gdb_call_async_signal_handler.
5205 (interrupt_query): Reinstall the default signal handler.
5206 (_initialize_remote): Initialize tokens here.
5208 2008-03-04 Joel Brobecker <brobecker@adacore.com>
5210 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5211 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5212 Change the type of the lr register to code_ptr.
5213 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5214 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5215 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5216 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5217 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5218 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5219 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5221 2008-03-03 James E. Wilson <wilson@tuliptree.org>
5223 * MAINTAINERS: Update my email address.
5225 2008-03-03 Keith Seitz <keiths@redhat.com>
5227 From Dave Murphy <davem@devkitpro.org>:
5228 * configure.ac: Set tcl configdir to win under mingw.
5229 * configure: Regenerate.
5231 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5233 * breakpoint.c (fetch_watchpoint_value): New function.
5234 (update_watchpoint): Set and clear val_valid. Use
5235 fetch_watchpoint_value. Handle unreadable values on the
5236 value chain. Correct check for user-requested array watchpoints.
5237 (breakpoint_init_inferior): Clear val_valid.
5238 (watchpoint_value_print): New function.
5239 (print_it_typical): Use it. Do not free or clear old_val. Print
5240 watchpoints even if old_val == NULL.
5241 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5242 becoming readable or unreadable.
5243 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5244 (do_enable_watchpoint): Likewise.
5245 * breakpoint.h (struct breakpoint): Update comment for val. Add
5247 * NEWS: Mention watchpoints on inaccessible memory.
5249 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5251 * Makefile.in (i386-nat.o): Update.
5252 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5253 i386_use_watchpoints.
5254 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5255 i386_use_watchpoints.
5256 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5257 (i386_stopped_by_watchpoint): Update call.
5258 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5259 * config/i386/nm-i386.h: Conditionalize definitions on
5260 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5261 (i386_use_watchpoints): Declare.
5262 (i386_stopped_data_address): Update.
5263 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5264 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5266 2008-02-29 Joel Brobecker <brobecker@adacore.com>
5268 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5269 * version.in: Bump version to 6.8.50.20080229-cvs.
5271 2008-02-28 Markus Deuling <deuling@de.ibm.com>
5273 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5276 2008-02-28 Tom Tromey <tromey@redhat.com>
5278 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5280 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5282 * infcmd.c (kill_if_already_running): Make static. Use
5283 target_require_runnable.
5284 * target.c (target_require_runnable): New.
5285 * target.h (target_require_runnable): Declare.
5287 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5289 * frame.c (reinit_frame_cache): Only annotate if frames were
5292 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5294 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5295 * regformats/reg-ppc64.dat: Likewise.
5297 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5299 * features/Makefile (%.dat): Emit xmltarget statement.
5301 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5302 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5304 * regformats/arm-with-iwmmxt.dat: Regenerate.
5305 * regformats/mips64-linux.dat: Regenerate.
5306 * regformats/mips-linux.dat: Regenerate.
5307 * regformats/rs6000/powerpc-32.dat: Regenerate.
5308 * regformats/rs6000/powerpc-64.dat: Regenerate.
5309 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5311 * regformats/reg-arm.dat: Add xmlarch statement.
5312 * regformats/reg-i386.dat: Likewise.
5313 * regformats/reg-i386-linux.dat: Likewise.
5314 * regformats/reg-x86-64-linux.dat: Likewise.
5315 * regformats/reg-spu.dat: Likewise.
5317 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5319 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5322 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5324 * utils.c (debug_timestamp): New.
5325 (vfprintf_unfiltered): Print timestamps if requested.
5326 (show_debug_timestamp): New.
5327 (initialize_utils): Register "set debug timestamp".
5328 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5330 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5332 * breakpoint.c (skip_prologue_sal): New function.
5333 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5334 computed from a line number.
5336 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5338 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5339 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5340 Set PC register type to "code_ptr".
5341 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5342 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5343 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5344 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5345 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5346 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5347 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5350 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5352 * regformats/regdat.sh: Rename init_registers function in
5353 generated file to init_registers_${name}.
5355 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5356 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5357 * regformats/reg-s390x.dat: Set "name" to s390x.
5359 2008-02-26 Greg Law <glaw@undo-software.com>
5361 * regcache.c (registers_changed): Call reinit_frame_cache.
5363 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5365 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5366 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5367 and svr4_fetch_objfile_link_map.
5368 * Makefile.in (sh-linux-tdep.o): Update.
5370 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5372 * amd64-tdep.c (amd64_classify): Add support for decimal float
5374 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5375 use the struct return convention.
5377 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
5379 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5380 to old format. Discard breakpoint address if shared library is
5382 (breakpoint_1): Adjust formatting of table header accordingly.
5384 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5386 * remote.c (remote_get_threadlist): If the response
5387 is empty, don't try to parse it.
5389 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5391 Unbreak 'target async'.
5392 * serial.c (serial_async): Set the
5393 handler function before enabling async
5396 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5398 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5400 2008-02-21 Pedro Alves <pedro@codesourcery.com>
5402 * remote.c (extended_remote_attach_1): Set attach_flag.
5403 (extended_remote_create_inferior_1): Clear attach_flag.
5405 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5407 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5409 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5410 * solib-svr4.c (solib_svr4_r_brk): New.
5411 (open_symbol_file_object, svr4_current_sos): Always check the
5413 (svr4_fetch_objfile_link_map): Do not set debug_base.
5414 (enable_break): Use r_brk if it is set.
5415 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5416 (svr4_lp64_fetch_link_map_offsets): Likewise.
5417 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5419 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5420 Mark Kettenis <kettenis@gnu.org>
5422 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5423 trad_frame_saved_reg.
5424 (trad-frame.h): New include.
5426 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
5427 instead of frame_obstack_zalloc.
5428 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5430 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
5432 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5434 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5435 from disassemble_info instead of gdbarch_byte_order.
5437 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5438 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5440 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5442 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5443 gdbarch as parameter.
5445 * gdbarch.{c,h}: Regenerate.
5447 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5449 * mem-break.c (default_memory_insert_breakpoint)
5450 (default_memory_remove_breakpoint): Likewise.
5451 * target.h (default_memory_remove_breakpoint)
5452 (default_memory_insert_breakpoint): Likewise.
5454 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5455 parameter. Replace current_gdbarch by gdbarch.
5456 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5457 (m32r_memory_remove_breakpoint): Likewise.
5459 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5461 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5463 2008-02-19 Joel Brobecker <brobecker@adacore.com>
5465 * NEWS: Add entry describing Add support improvements.
5467 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5469 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5472 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5474 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5475 register_offset_hack anymore.
5477 * regcache.{c,h} (register_offset_hack): Remove.
5479 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5481 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5483 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5484 current_gdbarch by gdbarch.
5485 (hppa64_hpux_find_global_pointer): Likewise.
5486 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5487 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5488 find_global_pointer.
5490 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5492 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5494 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5495 of gdbarch_num_regs.
5497 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
5498 replace current_gdbarch by gdbarch.
5499 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5501 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5503 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5504 and replace current_gdbarch by gdbarch.
5506 (store_register): Update call for exec_one_dummy_insn.
5507 (fetch_register, store_register): Update call of regmap.
5509 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5510 parameter and replace current_gdbarch by gdbarch.
5512 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5513 the current architecture. Update call for getregs_supplies and
5515 (ppcnbsd_fetch_inferior_registers): Likewise.
5517 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
5518 replace current_gdbarch by gdbarch.
5519 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5520 get_regcache_arch to get at the current architecture. Update call for
5523 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5525 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
5528 2008-02-15 Markus Deuling <deuling@de.ibm.com>
5530 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5532 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5534 * NEWS: Mention pending breakpints in MI.
5536 2008-02-14 Markus Deuling <deuling@de.ibm.com>
5538 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5540 2008-02-13 Markus Deuling <deuling@de.ibm.com>
5542 Add script to build and test GDB using enable-targets=all.
5544 * gdb_buildall.sh: New file.
5546 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5548 * NEWS (New native configurations): Xtensa GNU/Linux.
5549 (New targets): Xtensa GNU/Linux.
5550 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5552 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5553 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5554 * configure.tgt (xtensa*-*-linux*): New entry.
5555 * xtensa-config.c (xtensa_tdep): New variable.
5556 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5557 (rmap): Change format based on new macro XTREG.
5558 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5559 * xtensa-linux-nat.c: New.
5560 * xtensa-linux-tdep.c: New.
5561 * xtensa-xtregs.c: New.
5562 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5563 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5564 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5565 (xtensa_register_t): New field coprocessor.
5566 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5567 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5568 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5569 Update to handle privileged registers.
5570 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5571 (xtensa_push_dummy_call): Set windowstart register correctly.
5572 (call0_analyze_prologue): Initialize xtensa_default_isa.
5573 (xtensa_derive_tdep): New.
5574 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5575 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5576 Call xtensa_derive_tdep().
5577 * config/xtensa/linux.mh: New.
5578 * regformats/reg-xtensa.dat: New.
5580 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
5582 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5583 (filenames.h): New include.
5584 * Makefile.in (corelow.o): Add dependency for filenames.h.
5586 2008-02-08 Doug Evans <dje@google.com>
5588 * source.c (find_and_open_source): Always rewrite absolute filenames.
5590 2008-02-07 Doug Evans <dje@google.com>
5592 * breakpoint.c: #include "hashtab.h".
5593 (ambiguous_names_p): New fn.
5594 (update_breakpoint_locations): When restoring bp enable status, don't
5595 compare function names if any functions have same name.
5596 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5598 2008-02-07 Joel Brobecker <brobecker@adacore.com>
5600 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5601 instead of just a VEC*. Update use of SV.
5602 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5604 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5606 * NEWS: Put all new commands since gdb-6.7 together.
5608 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5610 * ada-lang.c: #include "vec.h".
5611 (struct string_vector, new_string_vector, string_vector_append):
5613 (char_ptr): New typedef.
5614 (DEF_VEC_P (char_ptr)): New VEC type.
5615 (symbol_completion_add): Update profile to take the new VEC type
5616 instead of the old string_vector structure. Update code accordingly.
5617 (ada_make_symbol_completion_list): Use the new VEC type instead of
5618 the old string_vector structure, and update the code accordingly.
5619 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5621 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5623 * p-exp.y: Set current_type in missing places.
5624 (leftdiv_is_integer): New static variable.
5625 Typecast right operand of BINOP_DIV to long_double if both operands
5628 2008-02-06 Maciej W. Rozycki <macro@mips.com>
5630 * remote-mips.c (set_breakpoint): Rename to...
5631 (mips_set_breakpoint): ... this.
5632 (clear_breakpoint): Rename to...
5633 (mips_clear_breakpoint): ... this.
5634 (common_breakpoint): Rename to...
5635 (mips_common_breakpoint): ... this.
5636 (check_lsi_error): Rename to...
5637 (mips_check_lsi_error): ... this.
5639 2007-02-05 Joel Brobecker <brobecker@adacore.com>
5641 * language.h (struct language_defn): Add new field
5642 la_make_symbol_completion_list.
5643 * symtab.c (default_make_symbol_completion_list): Renames
5644 make_symbol_completion_list.
5645 (make_symbol_completion_list): New function.
5646 * symtab.h (default_make_symbol_completion_list): Add declaration.
5647 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5648 (auto_language, local_language): Likewise.
5649 * objc-lang.c (objc_language_defn): Likewise.
5650 * scm-lang.c (scm_language_defn): Likewise.
5651 * m2-lang.c (m2_language_defn): Likewise.
5652 * f-lang.c (f_language_defn): Likewise.
5653 * jv-lang.c (java_language_defn): Likewise.
5654 * p-lang.c (pascal_language_defn): Likewise.
5655 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5656 (minimal_language_defn): Likewise.
5657 * ada-lang.c (struct string_vector): New structure.
5658 (new_string_vector, string_vector_append, ada_unqualified_name)
5659 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5660 (ada_make_symbol_completion_list): New functions.
5661 (ada_language_defn): Set la_make_symbol_completion_list.
5662 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5663 this function is static.
5665 2008-02-05 Kevin Buettner <kevinb@redhat.com>
5667 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5668 to account for call site optimizations.
5670 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5672 * tracepoint.c (read_actions): Handle end-of-text indicator
5673 in action list properly. (Committed by Jim Blandy)
5675 2008-02-05 Jim Blandy <jimb@red-bean.com>
5677 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5678 pseudoregister, not an internal error.
5679 Reported by: Andrzej Zaborowski
5681 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5683 * varobj.c (c_value_of_variable): Use xstrdup.
5685 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5687 Update stored rendition of varobj value when format changes.
5688 * varobj.c (varobj_set_display_format): Recomputed
5690 (c_value_of_variable): Return print_value.
5692 2008-02-03 Doug Evans <dje@google.com>
5694 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5695 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5696 * valops.c (value_one): New function.
5697 * value.h (value_one): Declare.
5699 Fix argument promotion for binary arithmetic ops for C.
5700 * valarith.c (unop_result_type): New fn.
5701 (binop_result_type): New fn.
5702 (value_binop): Move result type computation to binop_result_type.
5703 (value_pos, value_neg, value_complement): Move result type
5704 computation to unop_result_type.
5707 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5708 Return basetype, fieldno if found. All callers updated.
5709 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5711 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5712 * symfile.h (fill_in_vptr_fieldno): Delete.
5714 2008-02-02 Doug Evans <dje@google.com>
5716 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5718 * typeprint.c (*): Whitespace cleanup.
5720 2008-02-02 Mark Kettenis <kettenis@gnu.org>
5721 Luis Machado <luisgpm@br.ibm.com>
5722 Thiago Jung Bauermann <bauerman@br.ibm.com>
5724 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5725 don't fit into registerson the stack the way GCC does.
5727 2008-02-01 Joel Brobecker <brobecker@adacore.com>
5729 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5730 hash table for Ada symbols. Just store the linkage name as is,
5731 and leave the demangled_name as NULL.
5733 2007-02-01 Joel Brobecker <brobecker@adacore.com>
5735 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5736 in the global scope.
5737 (new_symbol): Likewise.
5739 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5741 * breakpoint.c (break_command_1): Return void.
5742 (break_command_really): Return void. Rethrow
5743 exceptions instead of returning.
5744 (gdb_breakpoint): Remove the error_message parameter.
5745 Return void. Rename to set_breakpoint.
5746 * gdb.h (gdb_breakpoint): Rename and move to...
5747 * breakpoint.h (set_breakpoint): ...here.
5748 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5749 event hooks even if exception is thrown. Adjust to
5750 gdb_breakpoint interface changes.
5753 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5755 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5756 float in both first and second word in the doubleword, to support
5759 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5761 Properly rethrow exception. This fixes errors
5762 about non-existent functions for -break-insert.
5763 * breakpoint.c (break_command_really): Use throw_exception
5764 for rethrowing. If rethrowing, don't print the exception.
5766 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5768 * NEWS: Mention Decimal Floating Point support.
5770 2008-01-31 Joel Brobecker <brobecker@adacore.com>
5772 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5773 value type to builtin_type_void_func_ptr.
5775 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5777 * s390-tdep.c (is_float_singleton, is_float_like,
5778 alignment_of, s390_return_value): Make checks for
5779 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5781 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
5782 Thiago Jung Bauermann <bauerman@br.ibm.com>
5784 * infcmd.c (default_print_registers_info): Also print hex
5785 raw contents for TYPE_CODE_DECFLOAT registers.
5786 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5787 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5788 (rs6000_register_name): Add support for DFP pseudo-registers.
5789 (rs6000_pseudo_register_type): Likewise.
5790 rs6000_pseudo_register_reggroup_p): Likewise.
5791 (ppc_pseudo_register_read): New function.
5792 (ppc_pseudo_register_write): Likewise.
5793 (rs6000_pseudo_register_read): Likewise.
5794 (rs6000_pseudo_register_write): Likewise.
5795 (e500_pseudo_register_read): Move checks to
5796 rs6000_pseudo_register_read.
5797 (e500_pseudo_register_write): Move checks to
5798 rs6000_pseudo_register_write.
5799 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5800 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5801 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5802 num_pseudo_regs to account for DFP pseudo regs.
5804 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5806 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5807 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5808 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5809 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5810 e500_pseudo_register_read, e500_pseudo_register_write): Use
5811 IS_SPE_PSEUDOREG macro.
5812 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5813 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5814 Remove initialization of tdep->ppc_ev31_regnum.
5816 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5818 * printcmd.c (print_formatted): Handle references as for unformatted
5821 2008-01-30 Joel Brobecker <brobecker@adacore.com>
5823 * eval.c (evaluate_subexp_standard): Add handling of user
5824 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5826 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5828 * eval.c (evaluate_subexp_standard): Support
5829 BINOP_INTDIV opcode.
5831 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
5833 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5835 For BINOP_EXP, use length and signedness of left operand only for
5836 result, as for shifts.
5837 For integral operands to BINOP_EXP, use new integer_pow and
5838 uinteger_pow functions so as to get full range of results.
5839 (integer_pow): New function.
5840 (uinteger_pow): New function.
5842 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
5844 Use vector for varobj_list_children interface.
5845 * gdb/varobj.c (varobj_list_children): Return vector
5847 * gdb/varobj.h (varobj_list_children): Adjust
5849 (varobj_p): Declare. Declare vector thereof.
5850 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
5851 for varobj_list_children change.
5852 * Makefile.in (varobj_h): Update dependencies.
5854 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5856 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
5857 TYPE_CODE_DECFLOAT arguments.
5858 (ppc64_sysv_abi_push_dummy_call) Likewise.
5859 (get_decimal_float_return_value): New function.
5860 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
5861 values by calling get_decimal_float_return_value.
5862 (ppc64_sysv_abi_return_value): Likewise.
5864 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
5866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
5867 for preprocessor macro information. Formatting changes.
5869 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5871 * remote.c (struct remote_state): Add cached_wait_status.
5872 (remote_exec_file): New variable.
5873 (PACKET_vAttach, PACKET_vRun): New constants.
5874 (extended_remote_restart): Do not query for status.
5875 (struct start_remote_args): New.
5876 (remote_start_remote): Take it as a second argument. Check
5877 whether the target is running. Issue an error for non-running
5878 non-extended targets. Cache the wait status. Set inferior_ptid
5880 (remote_open_1): Prompt to disconnect non-running targets. Make
5881 sure the target is marked running. Do not set inferior_ptid here.
5882 Update call to remote_start_remote. Do not call remote_check_symbols
5883 if the target is not running.
5884 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5885 argument. Handle a non-running target.
5886 (remote_detach): Use it.
5887 (extended_remote_detach): New.
5888 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5889 (extended_remote_attach_1, extended_remote_attach)
5890 (extended_async_remote_attach): New.
5891 (remote_vcont_resume): Remove unused variable.
5892 (remote_wait, remote_async_wait): Use any cached wait status.
5893 (putpkt_binary, getpkt): Clear any cached wait status.
5894 (extended_remoute_mourn_1): New.
5895 (extended_remote_mourn): Use it.
5896 (extended_async_remote_mourn, extended_remote_run): New.
5897 (extended_remote_create_inferior_1): New.
5898 (extended_remote_create_inferior): Use it.
5899 (extended_remote_async_create_inferior): Likewise.
5900 (remote_xfer_partial): Skip for non-executing targets.
5901 (init_extended_remote_ops): Set to_detach and to_attach.
5902 (init_extended_async_remote_ops): Likewise. Use
5903 extended_async_remote_mourn.
5904 (_initialize_remote): Register vAttach, vRun, and
5905 set remote exec-file.
5906 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5908 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5910 * Makefile.in (symfile.o): Update.
5911 * NEWS: Mention exec tracing support.
5912 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5914 * infcmd.c (kill_if_already_running, detach_command)
5915 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5916 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5917 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5918 targets. Apply the sysroot path to the loaded executable. Use
5919 no_shared_libraries.
5920 * linux-nat.c (linux_child_follow_fork): Print fork following
5921 messages if verbose.
5922 (kill_wait_callback): Kill again before waiting a second time.
5923 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
5924 no_shared_libraries.
5926 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5928 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
5930 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5932 * nto-tdep.h: Remove #include "defs.h".
5933 * nto-tdep.c: Add #include "defs.h".
5934 * Makefile.in (nto_tdep_h): Update dependencies.
5935 (nto-tdep.o): Likewise.
5937 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5939 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
5941 (proceed, start_remote): Update call to wait_for_inferior.
5942 * inferior.h (wait_for_inferior): Update declaration.
5943 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
5944 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
5945 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
5946 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
5948 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
5950 * varobj (adjust_value_for_child_access): Added checking for
5951 returned value from gdb_value_ind.
5952 (c_describe_child): Likewise.
5953 (cplus_describe_child): Fixed a typo.
5955 2008-01-29 Jim Blandy <jimb@red-bean.com>
5957 * MAINTAINERS: Update my info.
5959 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5961 Use multiple locations for hardware watchpoints.
5962 This eliminates the need to traverse value chain, doing
5963 various checks, in three different places.
5965 * breakpoint.h (struct bp_location): New fields
5966 lengths and watchpoint_type.
5967 (struct breakpoint): Remove the val_chain field.
5968 * breakpoint.c (is_hardware_watchpoint): New.
5969 (free_valchain): Remove.
5970 (update_watchpoint): New.
5971 (insert_bp_location): For hardware watchpoint, just
5973 (insert_breakpoints): Call update_watchpoint_locations
5974 on all watchpoints. If we have failed to insert
5975 any location of a hardware watchpoint, remove all inserted
5977 (remove_breakpoint): For hardware watchpoints, directly
5979 (watchpoints_triggered): Iterate over locations.
5980 (bpstat_stop_status): Use only first location of
5981 a resource watchpoint.
5982 (delete_breakpoint): Don't call free_valchain.
5983 (print_one_breakpoint): Don't print all
5984 locations for watchpoints.
5985 (breakpoint_re_set_one): Use update_watchpoint for
5988 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5990 Don't reset watchpoint block on solib load.
5992 * breakpoint.c (insert_bp_location): For watchpoints,
5993 recompute condition.
5994 (breakpoint_re_set_one): Instead of recomputing value
5995 and condition for watchpoints, just reset value and
5996 let insert_breakpoints/insert_bp_location recompute it.
5997 Don't do anything about disabled watchpoint.
5999 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6001 * valarith.c (value_binop): Handle unsigned integer
6004 2008-01-28 Kevin Buettner <kevinb@redhat.com>
6006 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6007 instruction pattern that appears frequently in position
6008 independent code. Fix bug in code which looks for "fmov" and
6009 backtracks if no "fmov" is found.
6011 2008-01-28 Doug Evans <dje@google.com>
6013 * dbxread.c (read_dbx_symtab): Fix indentation.
6014 Reformat comments to 80 columns.
6015 Move local var def closer to only use.
6017 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6019 * fork-child.c (SHELL_FILE): Remove #ifndef.
6020 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6022 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6024 * i386-tdep.c (i386_skip_noop): New function.
6025 (i386_analyze_prologue): Call i386_skip_noop function.
6027 2008-01-24 Michael Snyder <msnyder@specifix.com>
6029 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6030 * win32-nat.c (win32_xfer_partial): Ditto.
6031 * target.c (default_xfer_partial): Minor whitespace adjustment.
6033 2008-01-24 Pedro Alves <pedro@codesourcery.com>
6035 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6036 strip bit 1 even if pc doesn't point to thumb code.
6038 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6040 * remote.c (remote_wait): Handle SIGINT between packets.
6041 (remote_async_wait): Likewise.
6043 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6044 Chris Demetriou <cgd@google.com>
6046 * thread.c (add_thread_silent): Renamed
6048 (print_thread_events): New variable definition.
6049 (show_print_thread_events): New function.
6050 (_initialize_thread): Add "set print thread-events" and
6051 "show print thread-events" commands.
6052 (add_thread): Announce new thread.
6053 * gdbthread.h (add_thread_silent): Declare.
6054 (print_thread_events): New variable declaration.
6055 * inf-ttrace.c (inf_ttrace_wait): Don't
6056 inform about new thread, as add_thread is always
6057 called too, and will take care of that.
6058 * infrun.c (handle_inferior_event): Likewise.
6059 * procfs.c (procfs_wait): Likewise.
6060 * remote.c (remote_currthread): Likewise.
6061 * sol-thread.c (sol_thread_wait): Likewise.
6062 * win32-nat.c (get_win32_debug_event): Likewise.
6063 * linux-thread-db.c (attach_thread): Likewise.
6064 Remove the verbose parameter.
6065 (check_event): Make detach_thread be verbose
6066 only if print_thread_events is set.
6067 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6068 about new thread. This is called only from
6069 linux-thread-db.c:attach_thread, which will take care.
6070 Remove the verbose parameter.
6071 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
6073 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
6075 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6077 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6079 * breakpoint.c (break_command_really): New parameter
6081 (break_command_1): Pass 0 as
6082 ignore_count to break_command_really.
6083 (gdb_breakpoint): Pass ignore_count to
6084 break_command_really.
6086 2008-01-21 Kevin Buettner <kevinb@redhat.com>
6088 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6089 sigcontext struct via pointer.
6090 (struct sigframe comment): Update to show new field `psc'.
6092 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6094 * infrun.c (handle_inferior_event): If
6095 we failed to remove breakpoints, error,
6096 don't try to increment PC by hand.
6098 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6100 Add NetBSD/hppa target and host support.
6102 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6103 (hppabsd_gregset): Move to ...
6104 (hppabsd_regset_from_core_section): Rename
6105 hppaobsd_regset_from_core_section and move to ...
6106 (hppabsd_find_global_pointer): Update comment.
6107 (hppabsd_init_abi): Make global. Do not register
6108 hppabsd_regset_from_core_section.
6109 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6111 (_initialize_hppabsd_tdep): Move to ...
6112 * hppaobsd-tdep.c: ... here. New file.
6113 * hppnbsd-tdep.c: New file.
6114 * hppnbsd-nat.c: New file.
6115 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
6116 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6117 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6118 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
6119 * configure.host (hppa*-*-netbsd*): New entry.
6120 * configure.tgt (hppa*-*-netbsd*): New entry.
6121 (hppa*-*-openbsd*): Update.
6122 * NEWS (New native configuration): Mention NetBSD/hppa.
6123 (New targets): Mention NetBSD/hppa.
6125 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6127 * gdbarch.sh (function_list): Add new property bits_big_endian to
6129 * gdbarch.{c,h}: Regenerate.
6131 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6132 gdbarch_bits_big_endian (comment).
6133 (unpack_field_as_long, modify_field): Likewise.
6134 * value.h: Likewise (comment).
6135 * valops.c (value_slice): Likewise.
6136 * valarith.c (value_subscript, value_bit_index): Likewise.
6137 * gdbtypes.h (field): Likewise (comment).
6138 * eval.c (evaluate_subexp_standard): Likewise.
6139 * dwarf2read.c (dwarf2_add_field): Likewise.
6140 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6141 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
6143 * defs.h (BITS_BIG_ENDIAN): Remove.
6145 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6147 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6149 * m2-exp.y (yylex): Likewise.
6150 * objc-exp.y (yylex): Likewise.
6152 * defs.h (DEPRECATED_STREQN): Remove.
6154 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
6156 * MAINTAINERS: Update my email address.
6158 2008-01-17 Jim Blandy <jimb@codesourcery.com>
6160 * README: Mention gdbserver/README.
6162 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6164 * valarith.c (value_binop): Handle BINOP_INTDIV
6165 for unsigned and signed integers.
6167 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6169 * s390-tdep.c (s390_gdbarch_init): Set default long double
6170 type to 128-bit IEEE quad.
6172 2008-01-17 Joel Brobecker <brobecker@adacore.com>
6174 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6176 2008-01-16 Mark Kettenis <kettenis@gnu.org>
6178 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6180 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6181 * value.c: All callers changed.
6183 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6185 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6186 DEPRECATED_STREQ by its expression.
6187 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6188 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6189 (scan_xcoff_symtab): Likewise.
6190 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6191 * f-lang.c (find_common_for_function): Likewise.
6192 * objc-exp.y (parse_number): Likewise.
6194 * defs.h (DEPRECATED_STREQ): Remove.
6196 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6198 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6199 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6200 get_frame_arch to get at the current_architecture. Update AM33_MODE
6202 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6203 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6205 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6207 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6209 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
6211 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6213 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6214 current_gdbarch by gdbarch. Update caller.
6216 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6217 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6218 the current architecture. Update calls of
6219 amd64_native_gregset_supplies_p.
6220 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6221 (amd64bsd_store_inferior_registers): Likewise.
6223 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6225 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6226 Replace current_gdbarch by gdbarch. Update caller.
6228 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6230 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6231 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6232 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6233 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6234 (stabsect_build_psymtabs): Fix indentation.
6236 2008-01-15 Michael Snyder <msnyder@specifix.com>
6238 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6240 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6242 * win32-nat.c (win32_create_inferior): Restore code calling
6243 CloseHandle on ProcessInformation structure.
6245 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6247 * configure.ac: Check for void * as 3 argument of ptrace.
6248 * configure: regenerate.
6250 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6252 * alpha-tdep.c (alpha_heuristic_proc_start)
6253 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6254 current_gdbarch by gdbarch.
6256 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
6257 current architecture by frame_info. Update alpha_heuristic_proc_start
6260 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6261 get_frame_arch to get at the current architecture by frame_info. Update
6262 alpha_sigtramp_register_address call.
6264 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6265 current_gdbarch by gdbarch. Update caller.
6266 (convert_to_extended, convert_from_extended): Add endianess parameter
6267 for comparison. Update caller.
6268 (arm_extract_return_value, arm_store_return_value): Use
6269 get_regcache_arch to get at the current architecture.
6271 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6272 current_gdbarch by gdbarch. Update caller.
6273 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6274 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6276 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
6277 gdbarch as parameter. Update caller.
6278 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6279 current_gdbarch by gdbarch. Update caller.
6281 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
6282 update caller. Replace current_gdbarch by gdbarch.
6284 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6285 the current architecture. Replace current_gdbarch by gdbarch.
6286 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6287 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6288 expression. Add gdbarch as parameter and replace current_gdbarch with
6290 (M6811_TDEP): Remove.
6291 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6293 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
6294 current_gdbarch by gdbarch. Update caller.
6296 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6298 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6301 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6302 caller. Relace current_gdbarch by gdbarch.
6303 (altivec_register_p, spe_register_p): Likewise.
6304 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6306 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6307 altivec_register_p and spe_register_p.
6309 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
6310 caller. Replace current_gdbarch by gdbarch.
6311 (score_analyze_prologue): use get_frame_arch to get at the current
6314 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6315 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6316 current_gdbarch by gdbarch. Update caller.
6317 (sparc_frame_cache): Use get_frame_arch to get at the current
6319 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6320 sparc_analyze_prologue.
6322 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6325 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6327 * exec.c: #include "arch-utils.h"
6328 (print_section_info): Use gdbarch_from_bfd to get at the
6329 current architecture. Replace current_gdbarch. Fix indention. Replace
6330 deprecated_print_address_numeric by paddress.
6331 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6333 * valprint.c (val_print_string): Replace
6334 deprecated_print_address_numeric.
6335 * tracepoint.c (trace_mention, scope_info): Likewise.
6336 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6337 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6338 (maintenance_check_symtabs): Likewise.
6339 * symfile.c (list_overlays_command): Likewise.
6340 * stack.c (frame_info, print_block_frame_labels): Likewise.
6341 * printcmd.c (print_address, print_address_demangle)
6342 (address_info): Likewise.
6343 * corefile.c (memory_error): Likewise.
6344 * infcmd.c (jump_command): Likewise.
6345 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6346 (mention, delete_breakpoint): Likewise.
6347 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6348 * dwarf2read.c (dump_die): Likewise.
6349 * ada-valprint.c (ada_val_print_1): Likewise.
6350 * f-valprint.c (f_val_print): Likewise.
6351 * linux-fork.c (info_forks_command): Likewise.
6352 * m32r-com.c (m32r_load_section, m32r_load)
6353 (m32r_upload_command): Likewise.
6355 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6357 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6359 * gdbarch.sh (skip_prologue): Add gdbarch
6361 * gdbarch.{c,h}: Regenerate.
6363 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6364 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6365 * avr-tdep.c (avr_skip_prologue): Likewise.
6366 * cris-tdep.c (cris_skip_prologue): Likewise.
6367 * frv-tdep.c (frv_skip_prologue): Likewise.
6368 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6369 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6370 * i386-tdep.c (i386_skip_prologue): Likewise.
6371 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6372 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6373 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6374 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6375 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6376 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6377 * mep-tdep.c (mep_skip_prologue): Likewise.
6378 * mips-tdep.c (mips_skip_prologue): Likewise.
6379 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6380 * mt-tdep.c (mt_skip_prologue): Likewise.
6381 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6382 * score-tdep.c (score_skip_prologue): Likewise.
6383 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6384 * sh-tdep.c (sh_skip_prologue): Likewise.
6385 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6386 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6387 * spu-tdep.c (spu_skip_prologue): Likewise.
6388 * v850-tdep.c (v850_skip_prologue): Likewise.
6389 * vax-tdep.c (vax_skip_prologue): Likewise.
6390 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6391 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6393 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6394 current_gdbarch by gdbarch.
6395 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6396 * s390-tdep.c (s390_skip_prologue): Likewise.
6398 2008-01-10 Doug Evans <dje@google.com>
6400 * defs.h (struct continuation_arg): Fix typo in comment.
6401 * target.c (target_translate_tls_address): Fix comment spelling error.
6403 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6405 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6406 (DOUBLEST_SCAN_FORMAT): Likewise.
6407 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6408 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6409 * c-exp.y (parse_number): Likewise.
6410 * jv-exp.y (parse_number): Likewise.
6411 * objc-exp.y (parse_number): Likewise.
6412 * p-exp.y (parse_number): Likewise.
6414 2008-01-09 Joel Brobecker <brobecker@adacore.com>
6416 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6417 (check_typedef): Likewise.
6419 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
6421 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6422 seen_double_big_d, treat the new H, D, and DD modifiers as length
6425 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6427 * dwarf2read.c (read_enumeration_type): Add comment.
6429 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6431 * config.in: Regenerate.
6433 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6435 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6437 (ada_convert_actuals): Delete.
6438 * ada-lang.h (ada_convert_actual): Add declaration.
6439 (ada_convert_actuals): Remove declaration.
6440 * infcall.c: #include "ada-lang.h".
6441 (value_arg_coerce): Add new parameter sp. Update function
6442 documetnation. Add handling of Ada function call parameters.
6443 * Makefile.in (infcall.o): Update dependencies.
6445 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6447 * ada-lang.c (ensure_lval): Fix value lval kind.
6448 (convert_actual): Add handling for arguments passed by reference.
6450 2008-01-08 Doug Evans <dje@google.com>
6452 * dbxread.c (read_dbx_symtab): Fix indentation.
6454 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6456 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6457 (valarith.o): Depend on dfp.h.
6458 (valops.o): Likewise.
6459 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6460 (set_decnumber_context): New function.
6461 (decimal_check_errors): Likewise.
6462 (decimal_from_number): Likewise.
6463 (decimal_to_number): Likewise.
6464 (decimal_from_string): Use set_decnumber_context and
6465 decimal_check_errors.
6466 (decimal_from_integral): New function.
6467 (decimal_from_floating): Likewise.
6468 (decimal_to_double): Likewise.
6469 (promote_decimal): Likewise.
6470 (decimal_binop): Likewise.
6471 (decimal_is_zero): Likewise.
6472 (decimal_compare): Likewise.
6473 (decimal_convert): Likewise.
6474 * dfp.h (decimal_from_integral): New prototype.
6475 (decimal_from_floating): Likewise.
6476 (decimal_to_double): Likewise.
6477 (decimal_binop): Likewise.
6478 (decimal_is_zero): Likewise.
6479 (decimal_compare): Likewise.
6480 (decimal_convert): Likewise.
6481 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6482 call to value_from_decfloat.
6483 * valarith.c: Include dfp.h.
6484 (value_args_as_decimal): New function.
6485 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6486 (value_logical_not): Likewise.
6487 (value_equal): Likewise.
6488 (value_less): Likewise.
6489 (value_pos): Likewise.
6490 (value_neg): Formatting fix.
6491 * valops.c: Include dfp.h.
6492 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6493 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6494 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6495 (value_from_decfloat): Remove expect_type argument.
6496 * value.h (value_from_decfloat): Update prototype.
6498 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6500 Ignore change in name of dynamic linker during
6501 execution on Solaris. This also unbreaks pending breakpoints.
6503 * solist.h (struct target_so_ops): New field same.
6504 * solib-svr4.c (svr4_same): New.
6505 (_initialize_svr4_solib): Register svr4_same.
6506 * solib.c (update_solib_list): Use ops->same, if available.
6508 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6510 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6511 when using MS-DOS paths.
6513 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6515 * NEWS: Mention --pid and --core command line behaviour changes.
6517 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6519 * main.c (captured_main): Remove 'count' varible and the
6520 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6521 --pid options were issued simultaneously. If an explicit pid
6522 option was passed, don't fallback to core file. Detect extra
6523 arguments better in the presence of explicit pid or core
6526 2008-01-05 Joel Brobecker <brobecker@adacore.com>
6528 * ada-lang.c (ada_which_variant_applies): Correctly compute
6529 the value of the discriminant when the variant record is packed.
6531 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6533 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6534 that are used to differentiate homonyms.
6536 2008-01-04 Jerome Guitton <guitton@adacore.com>
6538 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6539 when the type is an anonymous pointer type.
6540 (ada_check_typedef): Avoid a seg fault when the type is null.
6541 * ada-typeprint.c (print_array_type): Add support for pointer
6544 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6546 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
6548 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6550 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6551 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6553 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6555 * ada-exp.y (chop_separator): New function.
6556 (write_selectors): Rewrite to re-use chop_separator.
6557 (ada_nget_field_index, get_symbol_field_type): New functions.
6558 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6561 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6563 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6564 of SYMBOL_VALUE when working with function symbols.
6566 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6568 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6569 expressions. These expressions do not need to be rewriten.
6571 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6573 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6574 the given die is a declaration.
6576 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6578 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6579 Handle properly the case when the index type is an enumerated type.
6580 Do not return the subtype of the bounds type, just return the
6581 bounds type directly - this is not needed and is more consistent
6582 with what we do for arrays when no XA parallel type exists.
6584 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6586 * ada-lang.c (static_unwrap_type): Add forward declaration.
6587 (template_to_static_fixed_type): Fields of dynamic types sometimes
6588 also need to be unwrapped. Take this into account.
6589 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6590 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6591 * ada-typeprint.c (ada_print_type): Get the typename from
6592 the original type, not the base type.
6594 2008-01-03 Jerome Guitton <guitton@adacore.com>
6596 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
6597 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
6598 Update calls to ada_to_fixed_type.
6599 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6601 (ada_to_fixed_type): Add check_tag parameter; do not look for
6602 tag if null. When looking for a tag, use a fixed record type.
6603 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6604 * ada-valprint.c (printable_val_type, ada_value_print): Update
6605 calls to ada_to_fixed_type.
6607 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
6609 * doublest.c (convert_floatformat_to_doublest): Call
6610 floatformat_to_doublest instead of floatformat_to_double and use
6612 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6613 instead of floatformat_from_double and use DOUBLEST variables.
6615 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6617 * MAINTAINERS (Write After Approval): Add self.
6619 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6621 * symfile.c (set_initial_language): Make non-static.
6622 * symfile.h (set_initial_language): Add declaration.
6623 * language.c: #include "symfile.h".
6624 (set_language): Call set_initial_language if the frame language
6625 could not be determined.
6627 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6629 * eval.c (evaluate_subexp_for_address): Provide frame address to
6630 locate_var_value only if it will be needed.
6632 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6634 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6636 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6638 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6639 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6640 This is needed to make sure that any other treatment applied
6641 to the resulting value does not fail for spurious reason,
6642 such as trying to take the address of this value.
6644 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6646 * ada-lang.c (ada_value_equal): Dereference reference types when
6649 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6651 Updated copyright notices for most files.
6653 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6655 * win32-nat.c (psapi_module_handle): Remove static.
6656 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6657 return first module found if base_address is zero. Don't initialize
6658 psapi function pointers here. Convert to cygwin paths when
6660 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6661 executable name. Use get_module_name when that fails or when
6663 (_initialize_psapi): New function. Initialize psapi stuff before it is
6664 needed or issue a warning if it is not found. Move psapi_module_handle
6667 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6669 * ada-lang.c (ada_remove_trailing_digits): New function.
6670 (ada_remove_po_subprogram_suffix): New function.
6671 (ada_decode): Improve. Move the description of the algorithm
6672 directly inside the code, instead of in the function global
6675 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6677 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6678 and always print the dereferenced value.
6680 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6682 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6683 of the case where the first argument is a reference.
6684 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6686 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6688 Implement support for Ada interface types.
6690 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6691 (ada_is_ignored_field): Ignore fields that are a dispatch table
6694 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6696 * top.c (print_gdb_version): Update copyright year.
6698 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6700 * ChangeLog-2007: New ChangeLog rotation.
6701 * ChangeLog: Reset for 2008.
6702 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6705 For older changes see ChangeLog-2007.
6711 version-control: never