1 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
3 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4 call linux_target twice.
6 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
8 * nto-tdep.c (lm_info): Updated struct lm_info definition from
10 (LM_ADDR): Use l_addr if available; if not, use link map and set
13 2008-08-14 Tom Tromey <tromey@redhat.com>
15 * macrocmd.c (macro_define_command): Check for NULL argument.
16 (macro_undef_command): Likewise.
18 2008-08-14 Pedro Alves <pedro@codesourcery.com>
20 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
22 2008-08-13 Pedro Alves <pedro@codesourcery.com>
24 * breakpoint.c (always_inserted_auto, always_inserted_on)
25 (always_inserted_off, always_inserted_enums): New.
26 (always_inserted_mode): Change type to char* and point to
28 (show_always_inserted_mode): In auto mode, also show the current
30 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
31 (_initialize_breakpoint): Make the "set breakpoints
32 always-inserted" command an enum command. Extend help to describe
35 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
37 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
38 query valid) bit. Ignore bits outside the condition field.
39 (info_spu_proxydma_command): Ignore bits outside the field.
41 2008-08-12 Michael Snyder <msnyder@vmware.com>
43 * MAINTAINERS: Update my email address.
45 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
47 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
49 2008-08-12 Pedro Alves <pedro@codesourcery.com>
51 Add no-ack mode to the remote protocol --- optionally stop ACKing
52 packets and responses when we have a reliable communication
55 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
57 * remote.c (struct remote_state): Add noack_mode field.
58 (PACKET_QStartNoAckMode): New.
59 (remote_start_remote): Don't any outstanding packet here.
60 (remote_open_1): Clear noack_mode. Ack any outstanding packet
61 here. Activate noack mode if requested.
62 (remote_protocol_features): Add QStartNoAckMode.
64 (putpkt_binary): Don't send ack in noack mode.
65 (read_frame): Don't recompute the checksum in noack mode.
66 (getpkt_sane): Skip sending ack if in noack mode.
67 (_initialize_remote): Add set/show remote noack mode.
68 * NEWS: Note the new features.
70 2008-08-11 Kevin Buettner <kevinb@redhat.com>
72 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
74 (rs6000_skip_main_prologue): New function.
75 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
77 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
79 * MAINTAINERS (Write After Approval): Add self.
81 2008-08-11 Stan Shebs <stan@codesourcery.com>
84 * disasm.c (gdb_disassemble_info): Set endian_code.
85 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
86 * gdbarch.h, gdbarch.c: Regenerate.
87 * arch-utils.c (initialize_current_architecture): Set the
88 default byte_order_for_code.
89 (gdbarch_info_init): Ditto.
90 (gdbarch_info_fill): Ditto.
91 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
92 (thumb_analyze_prologue): Swap halfword if code endianness is
93 different from general endianness.
94 (arm_skip_prologue): Similarly.
95 (arm_scan_prologue): Ditto.
96 (thumb_get_next_pc): Ditto.
97 (arm_get_next_pc): Ditto.
98 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
99 choose correct endianness for breakpoints.
101 2008-08-10 Pedro Alves <pedro@codesourcery.com>
103 * bsd-kvm.c: Include "gdbthread.h".
105 (bsd_kvm_open): Add a main thread.
106 (bsd_kvm_close): Delete it.
107 (bsd_kvm_thread_alive): New.
108 (bsd_kvm_pid_to_str): New.
109 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
111 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
113 2008-08-09 Pedro Alves <pedro@codesourcery.com>
115 * buildsym.c (start_subfile): Properly cast sentinel in concat
117 * cp-name-parser.y: Include "config.h".
118 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
120 * gdb_select.h: Include sys/time.h if sys/select.h is not
123 2008-08-09 Pedro Alves <pedro@codesourcery.com>
125 * go32-nat.c: Include "gdbthread.h".
126 (go32_stop, go32_kill_inferior): Delete the main thread.
127 (go32_create_inferior): Add it.
128 (go32_thread_alive, go32_pid_to_str): New.
129 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
131 2008-08-09 Pedro Alves <pedro@codesourcery.com>
133 * go32-nat.c (fetch_register, store_register): Pass the regcache
134 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
135 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
136 (struct seg_descr, struct seg_descr): pack the whole struct
137 instead of each member individually.
139 2008-08-09 Andreas Schwab <schwab@suse.de>
141 * python/python.c (_initialize_python): Use unabbreviated commands
144 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
146 * Makefile.in (stamp-h): Also create .deps.
148 2008-08-09 Tom Tromey <tromey@redhat.com>
150 * Makefile.in (generated_files): Add GNULIB_H.
152 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
154 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
155 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
157 (pa64_current_sos): Remove map private warning warning.
158 * solib-som.c: Include string.h and sys/utsname.h.
159 (get_hpux_major_release): New function.
160 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
161 about shared library private mapping on HP-UX 11 and later. Only force
162 private mapping of shared libraries on HP-UX 10 and earlier.
163 (link_map_start): Delete warning.
165 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
166 H.J. Lu <hongjiu.lu@intel.com>
167 Mark Kettenis <kettenis@gnu.org>
169 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
170 (amd64_init_frame_cache): Initialize saved_sp_reg.
171 (amd64_analyze_stack_align): New.
172 (amd64_analyze_prologue): Call it.
173 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
174 %rip to 8 when halfway aligning the stack.
176 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
179 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
181 (i386_alloc_frame_cache): Remove stack_align. Initialize
183 (i386_analyze_stack_align): Rewrite.
184 (i386_frame_cache): Use saved_sp_reg if it is valid.
186 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
188 * target.c: Include "solib.h".
189 (target_pre_inferior): Call no_shared_libraries.
190 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
192 (attach_command): Do not call clear_solib.
194 2008-08-09 Mark Kettenis <kettenis@gnu.org>
196 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
199 2008-08-08 Tom Tromey <tromey@redhat.com>
201 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
203 (python-utils.o): Likewise.
205 2008-08-08 Andreas Schwab <schwab@suse.de>
207 * corefile.c (_initialize_core): Remove spurious paren from set
208 gnutarget doc string.
210 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
212 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
213 Define PPC_FEATURE_BOOKE.
214 (ppc_linux_get_hwcap): New function.
215 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
216 4-bytes alignment restrictions.
217 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
218 positioning of the read/write flags.
219 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
222 2008-08-08 Pedro Alves <pedro@codesourcery.com>
224 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
226 * win32-nat.c (win32_add_thread): Change thread argument type to
228 (win32_add_thread): Adjust.
229 (win32_delete_thread): Change thread argument type to ptid_t.
231 (win32_fetch_inferior_registers, win32_store_inferior_registers)
232 (win32_resume, get_win32_debug_event, get_win32_debug_event)
233 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
234 (init_win32_ops): Put to_magic last.
235 (win32_win32_thread_alive): Adjust.
237 2008-08-08 Pedro Alves <pedro@codesourcery.com>
239 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
240 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
242 2008-08-08 Pedro Alves <pedro@codesourcery.com>
244 * remote-m32r-sdi.c: Include "gdbthread.h".
245 (remote_m32r_ptid): New.
246 (m32r_close): Delete the main thread.
247 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
249 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
250 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
252 2008-08-07 Tom Tromey <tromey@redhat.com>
253 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
255 * aclocal.m4, configure: Rebuild.
256 * configure.in: Call ZW_CREATE_DEPDIR,
257 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
258 (MAKE, GMAKE): New substs.
259 * acinclude.m4: Include depstand.m4.
260 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
261 COMPILE, POSTCOMPILE, depcomp): New variables.
262 Remove all _h variables.
263 Remove many .o targets.
264 ($(srcdir)/copying.c): avoid backslash-newline after comment
265 sign (@maintainer_mode_true@).
266 (HFILES_NO_SRCDIR): Regenerate.
267 (generated_files): New variable.
268 (all_gdbtk_cflags): Likewise.
270 (init.o, version.o, copying.o): Remove.
271 (distclean): Remove DEPDIR.
272 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
273 printcmd.o, procfs.o, v850ice.o): Rewrite.
274 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
275 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
276 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
277 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
278 gdbtk-wrapper.o): Likewise.
279 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
280 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
281 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
282 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
283 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
284 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
285 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
286 tui-wingeneral.o, tui-winsource.o): Likewise.
287 (all_object_files): New variable.
288 ($(all_object_files)): New target.
289 Include dependency files, when using GNU Make.
291 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
293 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
294 the valid bit set. Ensure display order respects partial
295 order defined by dependency bits.
297 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
299 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
302 2008-08-06 Mark Kettenis <kettenis@gnu.org>
304 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
307 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
308 Tom Tromey <tromey@redhat.com>
309 Thiago Jung Bauermann <bauerman@br.ibm.com>
310 Doug Evans <dje@google.com>
312 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
313 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
315 (python_h, python_internal_h): New.
316 (cli-script.o): Depend on python.h
317 (python.o, python-utils.o): New.
318 * cli/cli-script.c (print_command_lines): Handle python_control.
319 (execute_control_command): Handle python_control.
320 (execute_control_command_untraced): New function.
321 (while_command): Call execute_control_command_untraced.
322 (if_command): Likewise.
323 (get_command_line): Remove static attribute.
324 (read_next_line): Handle "python".
325 (recurse_read_control_structure): Handle python_control.
326 (read_command_lines): Handle python_control.
328 * cli/cli-script.h (get_command_line): Add prototype.
329 (execute_control_command_untraced): Likewise.
330 * configure.ac: Add --with-python.
331 * defs.h (enum command_control_type) <python_control>: New
333 * python/python-internal.h: New file.
334 * python/python.c: New file.
335 * python/python.h: New file.
336 * python/python-utils.c: New file.
337 * NEWS: Mention Python scripting support and its new commands.
339 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
341 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
343 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
345 * MAINTAINERS (Write After Approval): Add self.
347 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
349 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
350 (insert_breakpoint_locations): Likewise.
352 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
354 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
356 (set_longjmp_breakpoint): Likewise.
358 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
361 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
364 2008-08-05 Tom Tromey <tromey@redhat.com>
366 * bcache.c (deprecated_bcache_added): Initialize obstack.
367 (bcache_xmalloc): Don't initialize obstack.
368 (bcache_xfree): Conditionally free obstack.
369 (bcache_memory_used): Update.
371 2008-08-05 Tom Tromey <tromey@redhat.com>
373 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
375 (append_psymbol_to_list): Accept a const pointer.
376 (add_psymbol_to_list): Fix const correctness.
377 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
378 (bcache_full): Declare.
379 * bcache.c (bcache_data, deprecated_bcache): Remove.
380 (bcache): Use bcache_full.
381 (bcache_full): Rename from deprecated_bcache_added. Change return
384 2008-08-04 Stan Shebs <stan@codesourcery.com>
386 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
387 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
388 (enable_break): Remove test of BKPT_AT_SYMBOL.
390 2008-08-02 Keith Seitz <keiths@redhat.com>
392 * acinclude.m4: Include ../config/tcl.m4 to pick up
393 standard Tcl configury bits.
394 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
395 * configure.ac: Don't check if ../itcl exists when building
396 gdbtk. It could be installed.
397 Rewrite gdbtk configury to allow for using system-supplied
398 Tcl and Tk. Gdbtk no longer requires build-time access to
400 * Makefile.in: Remove everything related to itcl and itk.
401 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
403 Remove v850ice.o build rule.
404 (ALL_TCL_CFLAGS): New convenience defintion. Change all
405 gdbtk sources to use it.
406 * configure: Regenerate.
408 2008-07-31 Stan Shebs <stan@codesourcery.com>
410 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
412 2008-07-30 Stan Shebs <stan@codesourcery.com>
414 * objfiles.c (TARGET_KEEP_SECTION): Remove.
415 (add_to_objfile_sections): Remove use.
417 2008-07-29 Tom Tromey <tromey@redhat.com>
419 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
420 (lookup_cmd_composition): Likewise.
422 2008-07-29 Tom Tromey <tromey@redhat.com>
424 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
425 dead code. Fix indentation.
427 2008-07-29 Stan Shebs <stan@codesourcery.com>
429 * main.c (captured_main): Remove long-unused #if 0 blocks.
431 2008-07-28 Tom Tromey <tromey@redhat.com>
433 * annotate.h (deprecated_annotate_starting_hook): Remove.
434 (deprecated_annotate_stopped_hook): Remove.
435 (deprecated_annotate_exited_hook): Remove.
436 * Makefile.in (annotate.o): Depend on observer_h.
437 * top.c (deprecated_delete_breakpoint_hook): Remove.
438 (deprecated_create_breakpoint_hook): Likewise.
439 (deprecated_modify_breakpoint_hook): Likewise.
440 * interps.c (clear_interpreter_hooks): Update for removed hooks.
441 * breakpoint.c (mention): Don't call removed hook.
442 (delete_breakpoint): Likewise.
443 (disable_breakpoint): Likewise.
444 (do_enable_breakpoint): Likewise.
445 * annotate.c: Include observer.h.
446 (breakpoint_changed): Change type of argument.
447 (_initialize_annotate): Register observers.
448 (deprecated_annotate_starting_hook): Remove.
449 (deprecated_annotate_stopped_hook): Remove.
450 (deprecated_annotate_exited_hook): Remove.
451 (annotate_starting): Update for hook removal.
452 (annotate_stopped): Likewise.
453 (annotate_exited): Likewise.
454 * defs.h (deprecated_delete_breakpoint_hook): Remove.
455 (deprecated_create_breakpoint_hook): Likewise.
456 (deprecated_modify_breakpoint_hook): Likewise.
458 2008-07-28 Tom Tromey <tromey@redhat.com>
460 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
462 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
464 * configure.ac: Check for the GNU/Linux ptrace signature.
465 * configure: Regenerated.
467 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
469 * linux-nat.c (resume_callback): Add more debugging output.
470 (linux_nat_has_pending_sigint): New function, based on
471 linux_nat_has_pending.
472 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
473 (stop_wait_callback): Remove flush_mask handling. Honor
474 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
476 (linux_nat_has_pending, flush_callback): Remove.
477 (linux_nat_filter_event): Check for ignore_sigint.
478 (linux_nat_wait): Remove flush_mask support and call to
479 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
480 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
482 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
484 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
485 report events from resumed threads.
487 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
489 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
490 (mips_linux_init_abi): Set tdep->syscall_next_pc.
491 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
493 (mips32_next_pc): Handle the syscall instruction.
494 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
495 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
497 2008-07-26 Tom Tromey <tromey@redhat.com>
500 * valops.c (value_struct_elt): Treat function-valued field as a
503 2008-07-26 Tom Tromey <tromey@redhat.com>
506 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
509 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
512 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
513 (get_cmd_async_ok): Remove.
514 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
515 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
516 * infcmd.c (_initialize_infcmd): Likewise.
517 * thread.c (_initialize_thread): Likewise.
519 2008-07-25 Joseph Myers <joseph@codesourcery.com>
521 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
522 128-bit long doubles in even-odd pairs of FPRs. Do not
523 right-align float arguments for big-endian.
524 (mips_n32n64_return_value): Apply return value convention for
525 structs containing one or two floating-point values to soft-float
526 as well as hard-float. Handle 128-bit long doubles in such
528 (mips_o32_push_dummy_call): Only skip one integer register for a
529 float argument passed in an FPR.
531 2008-07-25 Tom Tromey <tromey@redhat.com>
533 * tui/tui-hooks.c: Include observer.h.
534 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
536 (tui_bp_created_observer, tui_bp_deleted_observer,
537 tui_bp_modified_observer): New globals.
538 (tui_install_hooks): Use observers, not events.
539 (tui_remove_hooks): Likewise.
540 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
541 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
543 (breakpoint_notify): Check mi_can_breakpoint_notify.
544 (breakpoint_hooks): Remove.
545 (mi_cmd_break_insert): Attach observers. Don't use events.
546 * tracepoint.c: Include observer.h, not gdb-events.h.
547 (tracepoint_operation, trace_pass_command): Notify observer.
548 * interps.c: Don't include gdb-events.h.
549 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
550 * gdbarch.c: Rebuild.
551 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
552 (deprecated_current_gdbarch_select_hack): Notify observer.
553 * breakpoint.h: Don't include gdb-events.h.
554 * breakpoint.c: Don't include gdb-events.h.
555 (condition_command): Notify observer.
556 (commands_command): Likewise.
557 (commands_from_control_command): Likewise.
558 (mention, delete_breakpoint, set_ignore_count): Likewise.
559 (disable_breakpoint, do_enable_breakpoint): Likewise.
560 * Makefile.in (gdb_events_h): Remove.
561 (breakpoint_h): Update.
562 (COMMON_OBS): Remove gdb-events.o.
563 (gdb-events.o): Remove.
564 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
565 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
566 * gdb-events.c: Remove.
567 * gdb-events.h: Remove.
568 * gdb-events.sh: Remove.
570 2008-07-24 Pedro Alves <pedro@codesourcery.com>
572 * remote.c (remote_threads_extra_info): Don't query the remote
573 server about info on the internally added main thread.
575 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
577 * nto-procfs.c (procfs_attach): Populate initial thread list.
578 (procfs_wait): Return new pid, built from the inferior status.
580 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
582 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
583 * configure: Regenerate.
585 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
587 * nto-procfs.c (procfs_xfer_memory): Changed signature.
588 (procfs_resume): Workaround for dereferencing type-punned pointer
590 * nto-tdep.c (nto_parse_redirection): Change signature to be const
592 * nto-tdep.h (nto_parse_redirection): Likewise.
594 2008-07-21 Stan Shebs <stan@codesourcery.com>
596 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
597 * gdbarch.sh: Adjust comment to refer to
598 in_solib_dynsym_resolve_code().
599 * gdbarch.h, gdbarch.c: Update.
600 * solib-osf.c: Ditto.
602 (handle_inferior_event): Use in_solib_dynsym_resolve_code
604 * config/mips/nm-irix5.h: Remove undef of
605 IN_SOLIB_DYNSYM_RESOLVE_CODE.
607 2008-07-21 Tom Tromey <tromey@redhat.com>
609 * symfile.c (reread_symbols): Don't pass argument to observer.
610 * exec.c (exec_file_attach): Don't pass argument to observer.
611 * ada-lang.c (ada_executable_changed_observer): Remove argument.
612 * symtab.c (symtab_observer_executable_changed): Remove argument.
613 * observer.sh: Handle functions with no arguments.
615 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
616 Chris Demetriou <cgd@google.com>
618 * elfread.c (elf_symfile_segments): Fix the check that each loadable
619 section fits within an ELF segment to handle ELF segments that hit
620 the end of the address space.
622 2008-07-20 Chris Demetriou <cgd@google.com>
624 * MAINTAINERS (Write After Approval): Add self.
626 2008-07-18 Tom Tromey <tromey@redhat.com>
629 * NEWS: Add entry for macro commands.
630 * Makefile.in (macrocmd.o): Add gdb_string.h.
631 * macroscope.h (user_macro_scope): Declare.
632 (default_macro_scope): Update documentation.
633 (macro_user_macros): Declare.
634 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
635 Use user_macro_scope.
636 (null_macro_lookup): Remove.
637 * macrotab.h (macro_callback_fn): Declare.
638 (macro_for_each): Likewise.
639 (macro_allow_redefinitions): Likewise.
640 * macrotab.c (foreach_macro): New function
641 (macro_for_each): Likewise.
642 (struct macro_table) <redef_ok>: New field.
643 (macro_allow_redefinitions): New function.
644 (new_macro_table): Update.
645 (macro_define_function): Likewise.
646 (macro_define_object): Likewise.
647 * macroscope.c (user_macro_scope): New function.
648 (default_macro_scope): Use it.
649 (macro_user_macros): New global.
650 (standard_macro_lookup): Look in macro_user_macros.
651 (_initialize_macroscope): New function.
652 * macroexp.h (macro_is_whitespace, macro_is_digit,
653 macro_is_identifier_nondigit): Declare.
654 * macroexp.c (macro_is_whitespace): Rename. No longer static.
655 (macro_is_digit): Likewise.
656 (macro_is_identifier_nondigit): Likewise.
657 (get_identifier): Update.
658 (get_pp_number): Likewise.
659 (get_token): Likewise.
660 * macrocmd.c (skip_ws): New function.
661 (extract_identifier): Likewise.
662 (free_macro_definition_ptr): Likewise.
663 (user_macros): Remove.
664 (macro_define_command): Implement.
665 (_initialize_macrocmd): Update.
666 (macro_undef_command): Implement.
667 (print_one_macro): New function.
668 (macro_list_command): Implement.
670 2008-07-18 Joseph Myers <joseph@codesourcery.com>
672 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
674 * configure: Regenerate.
676 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
678 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
680 2008-07-15 Andreas Schwab <schwab@suse.de>
682 * valops.c (value_cast_pointers): Follow typedefs when checking
685 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
687 * block.c (block_function): Renamed to ...
688 (block_linkage_function): ... this. All callers changed.
689 * block.h (block_function): Renamed to ...
690 (block_linkage_function): ... this.
692 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
694 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
696 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
698 * frame.c (frame_sp_unwind): Delete.
699 (get_frame_sp): Do not use it.
700 * frame.h (frame_sp_unwind): Delete prototype.
702 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
704 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
706 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
708 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
709 * frame.c (frame_unwind_address_in_block): Delete.
710 (get_frame_address_in_block): Do not use it. Check the type
711 of the next frame first.
712 (frame_cleanup_after_sniffer): Update comment.
713 * frame.h (frame_unwind_address_in_block): Delete prototype.
714 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
716 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
718 * frame.c (frame_func_unwind): Delete.
719 (get_frame_func): Do not use it.
720 * frame.h (frame_func_unwind): Delete prototype.
721 * hppa-tdep.c (hppa_frame_cache): Update comment.
722 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
724 2008-07-14 Stan Shebs <stan@codesourcery.com>
726 * remote-sim.c (init_gdbsim_ops): Remove
727 TARGET_REDEFINE_DEFAULT_OPS.
729 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
731 * findvar.c (read_var_value): Remove unused variable.
733 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
735 * infrun.c (handle_inferior_event): Tag threads as stopped
736 before inserting breakpoints.
738 2008-07-15 Hui Zhu <teawater@gmail.com>
740 * MAINTAINERS: Added myself to section Write After Approval.
742 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
745 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
747 2008-07-14 Pedro Alves <pedro@codesourcery.com>
749 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
750 (i386_dicos_push_dummy_code): New.
751 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
752 Register i386_dicos_push_dummy_code.
754 2008-07-14 Markus Deuling <deuling@de.ibm.com>
756 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
757 (mips_n32n64_push_dummy_call, mips_o64_return_value)
758 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
760 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
761 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
762 (mips_n32n64_fp_arg_chunk_p): Update caller.
764 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
765 (mips_n32n64_push_dummy_call): Update caller.
767 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
769 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
770 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
773 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
775 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
776 (mips_o64_push_dummy_call): Update caller.
778 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
779 (fp_register_arg_p, mips_dump_tdep): Update caller.
781 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
782 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
784 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
786 (mips32_scan_prologue): Update caller.
788 (heuristic_proc_start): Add gdbarch as parameter. Replace
790 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
792 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
793 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
794 the current architecture. Update call to getregs_supplies.
795 (getregs_supplies): Add gdbarch as parameter and replace
798 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
799 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
800 NBSD_MIPS_JB_ELEMENT_SIZE.
801 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
802 replace current_gdbarch.
804 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
806 (mips_fetch_registers, mips_store_registers): Update call
808 (mips_load): Use get_regcache_arch to get at the current_architecture
809 and replace current_gdbarch.
811 2008-07-13 Pedro Alves <pedro@codesourcery.com>
813 * thread.c (restore_selected_frame): On fail to restore, select
814 the innermost frame, and don't crash when warning the user.
816 2008-07-13 Hui Zhu <teawater@gmail.com>
818 * symtab.c (expand_line_sal): Fix a memory leak.
820 2008-07-13 Pedro Alves <pedro@codesourcery.com>
822 * utils.c (struct continuation): Define as inheriting struct
824 (add_continuation, do_all_continuations)
825 (discard_all_continuations, add_intermediate_continuation)
826 (do_all_intermediate_continuations)
827 (discard_all_intermediate_continuations): Adjust.
829 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
831 Skip varobj in running threads.
832 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
833 thread is not stopped, skip the varobj.
834 * Makefile.in: Update dependencies.
836 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
838 Enable all commands while inferiour is running
839 * mi/mi-main.c (mi_cmd_execute): Don't check if
840 inferiour is executing.
842 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
844 Allow all CLI command even if target is executing.
845 * gdb/top.c (execute_command_1): Don't check if the inferiour
848 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
850 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
851 Fix printing of frame, when frame is wrong.
853 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
855 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
856 backchain is unreadable.
858 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
860 * spu-linux-nat.c: Include "gdbthread.h".
861 (spu_child_post_startup_inferior): Register main thread.
862 (spu_child_post_attach): Likewise.
863 * Makefile.in (spu-linux-nat.o): Update dependencies.
865 2008-07-12 Pedro Alves <pedro@codesourcery.com>
867 Rewrite continuations internals on top of cleanups and plug
868 continuation arguments leaks.
870 * defs.h (struct continuation): Make it opaque.
871 (add_continuation, add_intermediate_continuation): Drop the int
872 argument of the continuation hook argument. Add
873 continuation_free_args argument.
874 (do_all_continuations, do_all_intermediate_continuations): Drop
875 the error_p argument.
877 * utils.c (add_continuation): Drop the int argument of the
878 continuation hook argument. Add continuation_free_args argument.
879 Reimplement on top of cleanups.
880 (do_all_continuations): Drop error argument. Reimplement on top
882 (discard_all_continuations): Reimplement on top of cleanups.
883 (add_intermediate_continuation): Drop the int argument of the
884 continuation hook argument. Add continuation_free_args argument.
885 Reimplement on top of cleanups.
886 (do_all_intermediate_continuations): Drop error argument.
887 Reimplement on top of cleanups.
888 (discard_all_intermediate_continuations): Reimplement on top of
891 * breakpoint.c (until_break_command_continuation): Drop error
892 argument. Add xfree as continuation argument deleter.
894 * inf-loop.c (inferior_event_handler): On error, discard all
895 continuations. Adjust to new do_all_intermediate_continuations
896 and do_all_continuations interfaces.
898 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
899 Pass xfree as continuation argument deleter.
900 (finish_command_continuation): Drop error_p argument. Adjust.
901 (finish_command_continuation_free_arg): New.
902 (finish_command): Pass finish_command_continuation_free_arg as
903 continuation argument deleter. Adjust to new do_all_continuations
905 (attach_command_continuation): Drop error_p argument.
906 (attach_command_continuation_free_args): New.
907 (attach_command): Pass attach_command_continuation_free_args as
908 continuation argument deleter.
910 * interps.c (interp_set): Adjust to new do_all_continuations
913 * event-top.c (stdin_event_handler): In error, also discard the
914 intermediate continuations.
916 2008-07-12 Pedro Alves <pedro@codesourcery.com>
918 Replace struct continuation_args by void* and per command structs.
920 * top.c (execute_command): Remove unused arg1 and arg2 locals.
922 * breakpoint.c (struct until_break_command_continuation_args):
924 (until_break_command_continuation): Take a void* instead of a
925 continuations_arg. Adjust.
926 (until_break_command): Adjust to use struct
927 until_break_command_continuation_args instead of struct
930 * infcmd.c (struct step_1_continuation_args): New.
931 (step_1_continuation): Take a void* instead of a
932 continuations_arg. Adjust to use struct step_1_continuation_args.
933 (step_once): Adjust to use struct step_1_continuation_args.
935 (struct finish_command_continuation_args): New.
936 (finish_command_continuation): Take a void* instead of a
937 continuations_arg. Adjust to use struct
938 finish_command_continuation_args.
939 (finish_command): Adjust to use struct
940 finish_command_continuation_args.
941 (struct attach_command_continuation_args): New.
942 (attach_command_continuation): Take a void* instead of a
943 continuations_arg. Adjust to use struct
944 attach_command_continuation_args.
945 (attach_command): Adjust to use struct
946 attach_command_continuation_args.
948 * defs.h (struct continuation_arg): Delete.
949 (struct continuation): Replace the struct continuation_arg*
950 parameter of continuation_hook by a void*. Replace "arg_list"
951 member by a new "args" member with void* type.
952 (add_continuation, add_intermediate_continuation): Replace struct
953 continuation_arg type usages by void* usages.
955 * utils.c (add_continuation, do_all_continuations)
956 (add_intermediate_continuation)
957 (do_all_intermediate_continuations): Replace struct
958 continuation_arg type usages by void* usages. Pass "args" instead
961 2008-07-12 Pedro Alves <pedro@codesourcery.com>
963 * infrun.c (struct thread_stepping_state): Delete sal member.
964 (init_thread_stepping_state): Add local sal. Use it instead of
966 (handle_inferior_event): New local stop_pc_sal. Use it instead of
968 (step_into_function): Add local stop_func_sal. Use it instead of
971 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
973 Implement -exec-continue/-exec-interrupt --all.
974 * infcmd.c (continue_1): New, extracted from
975 (continue_command): ...here.
976 (interrupt_target_1): New, extracted from
977 (interrupt_target_command): ...here.
978 * inferior.h (continue_1, interrupt_target_1): New.
979 * mi/mi-main.c (mi_cmd_exec_continue)
980 (mi_cmd_exec_interrupt): Handle --all.
982 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
984 Implement --thread and --frame.
985 * gdbthread.h (find_thread_id): Declare.
986 * thread.c (find_thread_id): Make non-static.
987 * mi/mi-main.c (mi_cmd_execute): Switch to the right
988 thread and frame, if necessary.
989 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
990 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
992 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
994 * infrun.c (resume): Discard cleanups on early exit path.
996 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
998 * infrun.c (normal_stop): For MI, report which threads
1001 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1003 Report thread state in -thread-info output.
1004 * thread.c (print_thread_info): Add new field "state".
1006 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1008 * infrun.c (handle_inferior_event): Also ignore a
1009 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1011 2008-07-11 Tom Tromey <tromey@redhat.com>
1013 * completer.c (complete_line_internal): New function, from
1014 complete_line. Add 'for_help' parameter.
1015 (complete_line): Use it.
1016 (command_completer): Move later. Rewrite.
1018 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1020 * thread.c (thread_apply_command): Move making the cleanup out of
1023 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1027 * thread.c (enum thread_state): New.
1028 (thread_state main_thread_running): Delete, in favor of...
1029 (thread_state main_thread_state): ... this. Update throughout.
1030 (clear_thread_inferior_resources): New, split from free_thread.
1031 (free_thread): Call clear_thread_inferior_resources.
1032 (init_thread_list): Set main thread to stopped state.
1033 (add_thread_silent): Take care of PTID reuses.
1034 (delete_thread): If deleting inferior_ptid or a thread with
1035 refcount > 0, mark it as exited, but still keep it in the list.
1036 Only notify of thread exits, if we haven't done so yet.
1037 (iterate_over_threads): Make it safe to delete threads while
1038 iterating over them.
1039 (do_captured_list_thread_ids): Don't account for exited threads.
1040 (thread_alive): Check for the THREAD_EXITED state, and don't set
1041 ptid to -1 on exited threads.
1042 (set_running): Update to account for extra possible states.
1043 (is_thread_state): New.
1044 (is_stopped, is_exited): New.
1045 (is_running): Implement in terms of is_thread_state.
1046 (any_running): Update.
1047 (print_thread_info): Update. Account for exited threads. Don't
1048 warn about missed frame restoring here, its done in the cleanup.
1049 (switch_to_thread): Don't read from a thread that has gone.
1050 (restore_current_thread): In non-stop mode, do a full context
1052 (restore_selected_frame): Add a frame_level argument. Rewrite.
1053 (struct current_thread_cleanup): Add selected_frame_level and
1054 was_stopped members.
1055 (do_restore_current_thread_cleanup): Check if thread was stopped
1056 and still is, and if the target has registers, stack and memory
1057 before restoring the selected frame. Don't delete the cleanup
1059 (restore_current_thread_cleanup_dtor): New.
1060 (make_cleanup_restore_current_thread): Remove all arguments.
1062 (thread_apply_all_command): Update. Prune threads.
1063 (thread_apply_command): Update.
1064 (thread_command): Account for currently selected exited thread.
1065 (do_captured_thread_select): Check for a running thread. Prune
1067 (_initialize_thread): Make "info threads", "thread", "thread
1068 apply", and "thread apply all" appliable without a selected thread.
1069 * gdbthread.h (struct thread_info): Replace running_ by state_.
1071 (is_exited, is_stopped): Declare.
1072 (make_cleanup_restore_current_thread): Remove all arguments.
1073 * infrun.c: Include "event-top.h".
1074 (fetch_inferior_event): In non-stop mode, restore selected thread
1075 and frame after handling the event and running breakpoint
1076 commands. Display GDB prompt if needed.
1077 (normal_stop): In non-stop mode, don't print thread switching
1079 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1080 (get_cmd_no_selected_thread_ok): New.
1081 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1082 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1084 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1085 no-selected-thread ok.
1086 * top.c (execute_command): Check for non no-selected-thread-ok
1088 * linux-nat.c (struct saved_ptids, threads_to_delete)
1089 (record_dead_thread, prune_lwps): Delete.
1090 (exit_lwp): Unconditionally delete thread.
1091 (linux_nat_resume): Remove prune_lwps call.
1092 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1093 of is_running. Adjust to make_cleanup_restore_current_thread
1095 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1096 selected thread has exited.
1097 * inf-loop.c (inferior_event_handler): Don't display the prompt
1099 * varobj.c (c_value_of_root): Update.
1100 * defs.h (make_cleanup_dtor): Declare.
1101 * utils.c (make_cleanup_dtor): New.
1103 * Makefile.in (infrun.o): Depend on $(event_top_h).
1105 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1107 Add "continue -a" and "interrupt -a" options for non-stop mode.
1109 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1110 (continue_command): Add "-a" option.
1111 (interrupt_target_command): Add "-a" option.
1112 (_initialize_infcmd): Add extend help of continue and interrupt
1113 command to mention the new "-a" option. Mark "continue" async ok.
1115 2008-07-10 Doug Evans <dje@google.com>
1117 Add "set print symbol-loading on|off".
1118 * NEWS: Document new option.
1119 * symfile.h (print_symbol_loading): Declare.
1120 * symfile.c (print_symbol_loading): New global.
1121 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1122 from ..." if print_symbol_loading.
1123 (_initialize_symfile): Add set/show print symbol-loading.
1124 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1125 if print_symbol_loading.
1127 2008-07-10 Pedro Alves <pedro@codesourcery.com>
1129 Non-stop linux native.
1131 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1133 (get_pending_status): Implement non-stop mode.
1134 (linux_nat_detach): Stop threads before detaching.
1135 (linux_nat_resume): In non-stop mode, always resume only a single
1137 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1138 add new lwp to GDB's thread table, and mark as running, executing
1139 and stopped appropriately.
1140 (linux_nat_filter_event): Don't assume there are other running
1141 threads when a thread exits.
1142 (linux_nat_wait): Mark the main thread as running and executing.
1143 In non-stop mode, don't stop all lwps.
1144 (linux_nat_kill): Stop lwps before killing them.
1145 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1147 (send_sigint_callback): New.
1148 (linux_nat_stop): New.
1149 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1151 * linux-nat.h (thread_db_attach_lwp): Declare.
1153 * linux-thread-db.c (thread_get_info_callback): Check for new
1154 threads if we have none.
1155 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1156 stopped lwp. Check for new threads if we have none.
1157 (thread_db_attach_lwp): New.
1158 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1159 (check_event): Set proc_handle.pid to the stopped lwp.
1160 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1161 lwp available, bail out if there is none.
1163 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1166 2008-07-10 Kevin Buettner <kevinb@redhat.com>
1168 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1169 `current_pc' from CORE_ADDR to ULONGEST.
1171 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1174 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1176 * NEWS (New commands): Mention "set disable-randomization".
1177 * configure.ac: Add check for HAVE_PERSONALITY and
1178 HAVE_DECL_ADDR_NO_RANDOMIZE.
1179 * configure, config.in: Regenerate.
1180 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1181 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1183 (disable_randomization, show_disable_randomization)
1184 (set_disable_randomization): New.
1185 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1186 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1187 variable DISABLE_RANDOMIZATION.
1188 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1189 DISABLE_RANDOMIZATION.
1191 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1193 Adjust all targets to new target_stop interface.
1195 * gnu-nat.c (gnu_stop): Add ptid argument.
1196 * go32-nat.c (go32_stop): Add ptid argument.
1197 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1198 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1199 * monitor.c (monitor_stop): Add ptid argument.
1200 (monitor_open): Pass inferior_ptid to monitor_stop.
1201 (monitor_interrupt): Pass inferior_ptid to target_stop.
1202 (monitor_stop): Add ptid argument.
1203 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1204 (procfs_create_inferior): Add ptid argument.
1205 * procfs.c (procfs_stop): Add ptid argument.
1206 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1207 * remote-sim.c (gdbsim_stop): Add ptid argument.
1208 * sol-thread.c (sol_thread_stop): Add ptid argument.
1209 * win32-nat.c (win32_stop): Add ptid argument.
1211 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1213 Non-stop inferior control.
1215 * infrun.c (resume): In non-stop mode, always resume just one
1217 (proceed): Don't call prepare_to_proceed in non-stop mode.
1218 (fetch_inferior_event): In non-stop mode, switch context before
1220 (error_is_running, ensure_not_running): New.
1221 (handle_inferior_event): In non-stop mode: Mark only the event
1222 thread as stopped. Require that the target module manages adding
1223 threads to the thread list. Assert that there isn't a
1224 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1225 (normal_stop): Only mark not-running if inferior hasn't exited.
1226 In non-stop mode, only mark the event thread.
1228 * thread.c:Include "cli/cli-decode.h".
1229 (print_thread_info): Don't read from a running thread.
1230 Output "(running)" if thread is running.
1231 (switch_to_thread): Don't read stop_pc if thread is executing.
1232 (do_restore_current_thread_cleanup): Don't write to a running
1234 (thread_apply_all_command): Don't read from a running thread. In
1235 non-stop mode, do a full context-switch instead of just switching
1237 (thread_apply_command): In non-stop mode, do a full context-switch
1238 instead of just switching threads.
1239 (do_captured_thread_select): Likewise. Inform user if selected
1241 (_initialize_thread): Mark "info threads" and "thread" and
1244 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1245 unregister the target from the event loop.
1247 * infcmd.c (continue_command, step_1, jump_command)
1248 (signal_command): Ensure the selected thread isn't running.
1249 (interrupt_target_command): In non-stop mode, interrupt only the
1252 * inferior.h (error_is_running, ensure_not_running): Declare.
1254 * target.h (struct target_ops): Add ptid argument to the to_stop
1256 (target_stop): Add ptid_t argument.
1258 * target.c (update_current_target): Add ptid argument to to_stop's
1260 (debug_to_stop): Add ptid_t argument.
1261 (debug_to_rcmd): Set to_stop_ptid.
1263 * remote.c (remote_stop): Add ptid_t argument.
1264 (async_remote_interrupt): Add inferior_ptid to target_stop.
1265 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1267 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1269 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1271 Don't rely on ecs->wait_for_more.
1273 * infrun.c (proceed): Clear the stepping state, set
1274 previous_inferior_ptid and clear infwait state.
1275 (wait_for_inferior): Don't clear the stepping state, set
1276 previous_inferior_ptid, or clear the infwait state here.
1277 (fetch_inferior_event): Don't clear the stepping state, set
1278 previous_inferior_ptid, or clear the infwait state here. Don't
1279 condition on wait_for_more.
1281 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1283 Refactor infrun a bit.
1285 * infrun.c (currently_stepping): Take a struct
1286 thread_stepping_state instead of an execution_control_state.
1287 (struct thread_stepping_state): New, split from
1288 execution_control_state.
1289 (gtss, tss): New globals.
1290 (proceed): Clear the stepping state, set previous_inferior_ptid
1291 and clear infwait state.
1292 (init_wait_for_inferior): Clear the stepping state,
1293 previous_inferior_ptid and infwait state.
1294 (waiton_ptid, infwait_state): New, split from
1295 execution_control_state.
1296 (struct execution_control_state): Members that persist through
1297 events moved out to either struct thred_stepping_state or made
1298 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1299 (wait_for_inferior, fetch_inferior_event): Use local
1300 execution_control_state. Update to execution_control_state split.
1301 (init_execution_control_state): Adjust.
1302 (init_thread_stepping_state): New, extracted from
1303 init_execution_control_state.
1304 (context_switch): Take a ptid instead of an
1305 execution_control_state.
1306 (context_switch_to): Adjust.
1307 (adjust_pc_after_break): Adjust.
1308 (init_infwait_state): New.
1309 (handle_inferior_event): Adjust.
1311 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1312 Vladimir Prus <vladimir@codesourcery.com>
1314 Per-thread commands.
1316 * gdbthread.h: Remove unneeded forward declarations.
1317 Include "inferior.h".
1318 (struct thread_info): Add continuations,
1319 intermediate_continuations, proceed_to_finish, step_over_calls,
1320 stop_step, step_multi and stop_signal members.
1321 (save_infrun_state): Add continuations,
1322 intermediate_continuations, proceed_to_finish, step_over_calls,
1323 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1324 (load_infrun_state): Add continuations,
1325 intermediate_continuations, proceed_to_finish, step_over_calls,
1326 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1328 * thread.c (load_infrun_state): In non-stop mode, load
1329 continuations, intermediate_continuations, proceed_to_finish,
1330 step_over_calls, stop_step, step_multi and stop_signal.
1331 (save_infrun_state): Store continuations,
1332 intermediate_continuations, proceed_to_finish, step_over_calls,
1333 stop_step, step_multi, stop_signal and stop_bpstat.
1334 (save_infrun_state): Store continuations,
1335 intermediate_continuations, proceed_to_finish, step_over_calls,
1336 stop_step, step_multi, stop_signal and stop_bpstat.
1337 (free_thread): Clear The thread's stop_bpstat.
1339 * inferior.h (context_switch_to): Declare.
1341 * infrun.c (ecss): New global.
1342 (context_switch): Context switch continuations,
1343 intermediate_continuations, proceed_to_finish, step_over_calls,
1344 stop_step, step_multi, stop_signal and stop_bpstat.
1345 (wait_for_inferior): Use global ecss.
1346 (async_ecss, async_ecs): Delete.
1347 (fetch_inferior_event): Use global ecss.
1348 (context_switch_to): New.
1350 * top.c (execute_command): In non-stop, only check if the current
1351 thread is running, in all-stop, check if there's any thread
1354 * breakpoint.c (bpstat_remove_breakpoint): New.
1355 (bpstat_remove_breakpoint_callback): New.
1356 (delete_breakpoint): Clear the stop_bpstats of all threads.
1358 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1359 current thread is running, in all-stop, check if there's any
1362 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1364 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1366 Add non_stop global.
1368 * inferior.h (non_stop): Declare.
1369 * infrun.c (non_stop, non_stop_1): New.
1370 (set_non_stop, show_non_stop): New.
1371 (_initialize_infrun): Add "set/show non-stop" command.
1373 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1375 Adjust fork/vfork/exec to pass ptids around.
1377 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1378 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1380 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1382 * breakpoint.c (print_it_typical, bpstat_check_location)
1383 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1384 (create_fork_vfork_event_catchpoint): Adjust.
1385 * infrun.c (fork_event): Change parent_pid and child_pid types to
1387 (follow_exec, inferior_has_forked, inferior_has_vforked)
1388 (inferior_has_execd): Take a ptid_t and don't trim it.
1389 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1390 * linux-nat.c (linux_child_follow_fork): Adjust.
1391 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1392 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1393 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1395 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1397 Add "executing" property to threads.
1399 * inferior.h (target_executing): Delete.
1400 * gdbthread.h (struct thread_info): Add executing_ field.
1401 (set_executing, is_executing): New.
1402 * thread.c (main_thread_executing): New.
1403 (init_thread_list): Clear it and also main_thread_running.
1404 (is_running): Return false if target has no execution.
1405 (any_running, is_executing, set_executing): New.
1407 * top.c: Include "gdbthread.h".
1408 (target_executing): Delete.
1409 (execute_command): Replace target_executing check by any_running.
1410 * event-top.c: Include "gdbthread.h".
1411 (display_gdb_prompt, command_handler): Replace target_executing by
1413 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1414 here. Replace target_executing by is_running.
1415 * infrun.c (handle_inferior_event): Mark all threads as
1417 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1419 * stack.c (get_selected_block): Return null if inferior is
1421 * target.c (target_resume): Mark resumed ptid as executing.
1422 * breakpoint.c (until_break_command): Replace target_executing
1423 check by is_executing.
1424 * remote.c (remote_async_resume): Don't mark inferior as executing
1426 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1429 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1430 (mi_execute_async_cli_command): Replace target_executing by
1433 * frame.c (get_current_frame): Error out if the current thread is
1435 (has_stack_frames): New.
1436 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1439 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1442 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1444 * symfile.c (load_command): Reopen the exec file and reread
1445 symbols before anything else.
1447 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1449 * remote-sim.c: Include gdbthread.h.
1450 (remote_sim_ptid): New global.
1451 (gdbsim_create_inferior): Silently add the main task to GDB's
1453 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1454 task from GDB's thread list.
1455 (gdbsim_resume): Adjust to use remote_sim_ptid.
1456 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1457 (init_gdbsim_ops): Register gdbsim_thread_alive and
1459 (_initialize_remote_sim): Initialize remote_sim_ptid.
1460 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1462 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1464 * monitor (monitor_ptid): New global.
1465 (monitor_open): Silently add the main task to GDB's thread list.
1466 (monitor_close, monitor_mourn_inferior): Silently delete the main
1467 task from GDB's thread list.
1468 (monitor_thread_alive, monitor_pid_to_str): New.
1469 (init_base_monitor_ops): Register monitor_thread_alive and
1471 (_initialize_remote_monitors): Initialize monitor_ptid.
1473 * gdbthread.h (delete_thread_silent): Declare.
1474 * thread.c (delete_thread): Rename to ...
1475 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1476 don't do exit notifications.
1477 (delete_thread, delete_thread_silent): New, as wrappers to
1480 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1482 * breakpoint.c (update_global_location_list): Add boolean
1483 "should_insert" argument. Only insert locations if caller told it
1485 (update_global_location_list_nothrow): Add boolean "should_insert"
1486 argument. Pass it to update_global_location_list.
1487 (insert_breakpoints, create_longjmp_breakpoint)
1488 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1489 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1490 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1491 (enable_watchpoints_after_interactive_call_stop)
1492 (set_momentary_breakpoint, create_breakpoints)
1493 (break_command_really, watch_command_1)
1494 (create_ada_exception_breakpoint, update_breakpoint_locations)
1495 (do_enable_breakpoint, enable_command): Pass true to
1496 update_global_location_list.
1497 (bpstat_stop_status, disable_overlay_breakpoints)
1498 (disable_watchpoints_before_interactive_call_start)
1499 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1500 false to update_global_location_list.
1501 (update_breakpoints_after_exec): Don't temporarily disable
1502 always-inserted mode.
1504 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1506 * breakpoint.c (mark_breakpoints_out): Make public.
1507 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1508 here. Update comment.
1509 * breakpoint.h (mark_breakpoints_out): Declare.
1511 * linux-nat.c (linux_handle_extended_wait): On
1512 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1513 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1515 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1517 * infrun.c (follow_exec): Reset shared libraries before adding the
1520 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1522 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1524 2008-07-07 Pedro Alves <pedro@codesourcery.com>
1526 * i386-dicos-tdep.c: Include "inferior.h".
1527 (i386_dicos_frame_align): New.
1528 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1529 dummy location ON_STACK.
1530 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1532 2008-07-07 Joel Brobecker <brobecker@adacore.com>
1534 * gstdint.h: New file.
1536 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1538 * mi/mi-interp.c (mi_on_resume): Don't try to report
1539 resumed thread it the thread list is empty.
1541 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1543 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1544 completer for set to filename_completer.
1548 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1550 Implement -target-attach.
1551 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
1553 2008-06-21 Hui Zhu <teawater@gmail.com>
1555 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1557 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1559 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1560 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1562 * target.h (struct target_ops): Add to_attach_no_wait member.
1563 (target_attach_no_wait): New.
1564 * target.c (update_current_target): Inherit to_attach_no_wait.
1566 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1567 target_attach_no_wait runtime check.
1569 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1570 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1573 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1575 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1576 on debug_displaced being set.
1578 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1580 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1581 directly instead of get_frame_id.
1583 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1585 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1586 (deal_with_atomic_sequence): Update BC masks.
1587 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1588 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1590 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1592 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1593 register, not the previous frame's.
1595 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1597 * source.c (select_source_symtab): Make sure we skip namespace
1598 symtabs when showing cpp source code.
1600 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
1602 * MAINTAINERS (Authorized committers): Fix my email address.
1604 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1606 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1607 -target-download and -target-select via CLI, so that
1608 the quoting rules are the same as they were (unfortunately)
1609 in all prior gdb releases.
1610 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1611 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1612 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1613 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1614 (mi_cmd_execute): Set current_token even for commands
1617 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1619 * alphafbsd-tdep.c: Update for unwinder changes.
1620 * alpha-linux-tdep.c: Likewise.
1621 * alphanbsd-tdep.c: Likewise.
1622 * alphaobsd-tdep.c: Likewise.
1623 * avr-tdep.c: Likewise.
1624 * cris-tdep.c: Likewise.
1625 * frv-linux-tdep.c: Likewise.
1626 * frv-tdep.c: Likewise.
1627 * h8300-tdep.c: Likewise.
1628 * hppa-linux-tdep.c: Likewise.
1629 * iq2000-tdep.c: Likewise.
1630 * m32c-tdep.c: Likewise.
1631 * m32r-linux-tdep.c: Likewise.
1632 * m32r-tdep.c: Likewise.
1633 * m68hc11-tdep.c: Likewise.
1634 * mep-tdep.c: Likewise.
1635 * mn10300-tdep.c: Likewise.
1636 * mt-tdep.c: Likewise.
1637 * score-tdep.c: Likewise.
1638 * sh64-tdep.c: Likewise.
1639 * sh-tdep.c: Likewise.
1640 * sparc64fbsd-tdep.c: Likewise.
1641 * sparc64nbsd-tdep.c: Likewise.
1642 * sparc64obsd-tdep.c: Likewise.
1643 * v850-tdep.c: Likewise.
1644 * vaxobsd-tdep.c: Likewise.
1645 * vax-tdep.c: Likewise.
1646 * xstormy16-tdep.c: Likewise.
1648 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1650 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1651 (captured_mi_execute_command_args): Remove.
1652 (captured_mi_execute_command): Cast the closure to mi_parse
1653 pointer, not to captured_mi_execute_command_args, and don't
1654 set the action field thereof.
1655 (mi_execute_command): Pass struct mi_parse, not
1656 captured_mi_execute_command_args to captured_mi_execute_command.
1657 (mi_execute_command): Remove (dead) code for suppressing
1660 2008-06-28 Pedro Alves <pedro@codesourcery.com>
1662 * linux-nat.c (enum sigchld_state): New.
1663 (linux_nat_async_events_state): Renamed from
1664 linux_nat_async_events_enabled.
1665 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1666 (sigchld_default_action): New.
1667 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1669 (linux_nat_create_inferior): Set events state to sigchld_default
1671 (linux_nat_resume): Adjust.
1672 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1673 (sigchld_handler): Adjust.
1674 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1675 (get_pending_events): Adjust.
1676 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1677 instead of a boolean.
1678 (linux_nat_async): Adjust.
1679 (_initialize_linux_nat): Capture default SIGCHLD action into
1680 sigchld_default_action.
1682 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1684 * breakpoint.c (moribund_locations): New.
1685 (bpstat_stop_status): Process moribund locations.
1686 (update_global_location_list): Add removed
1687 locations to moribund_locations.
1688 (breakpoint_retire_moribund): New.
1689 * breakpoint.h (struct bp_location): New field
1690 events_till_retirement.
1691 (breakpoint_retire_moribund): Declare.
1692 * thread.c (thread_count): New.
1693 * infrun.c (handle_inferior_event): Call
1694 breakpoint_retire_moribund.
1695 * gdbthread.h (thread_count): Declare.
1697 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1699 * dfp.c (decimal_convert): Call match_endianness before and after
1702 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1704 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1705 unsupported and we fall back to memory_insert_breakpoint, we
1706 use the unmodified requested address.
1708 2008-06-27 Joel Brobecker <brobecker@adacore.com>
1710 * dwarf2read.c (read_attribute_value): Issue a complaint when
1711 adjusting size attribute values of 0xffffffff as zero.
1713 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1715 * i386-tdep.c (i386_16_byte_align_p): New.
1716 (i386_push_dummy_call): Determine stack space required for
1717 arguments going forwards allowing for 16-byte alignment, then push
1718 arguments going forwards.
1720 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1722 * infrun.c (start_remote): Don't clear thread list here.
1723 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1725 * remote.c (record_currthread): Upgrade the main thread and its
1726 entry in the thread list if this is the first time we hear about
1728 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1729 a tid member always alive.
1730 (remote_find_new_threads): Don't update the main thread here.
1731 (remote_start_remote): Clear thread list here. Always add the
1733 (extended_remote_attach_1): Add the main thread here.
1734 (extended_remote_mourn_1): Re-add the main thread here.
1735 (extended_remote_create_inferior_1): Add a main thread.
1737 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1739 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1741 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1743 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1745 (general_thread, continue_thread): Change type to ptid_t.
1746 (record_currthread): Take a ptid_t parameter instead of an
1748 (MAGIC_NULL_PID): Delete.
1749 (set_thread): Take a ptid_t parameter and adjust.
1750 (set_general_thread, set_continue_thread): New.
1751 (remote_thread_alive, remote_newthread_step)
1752 (remote_current_thread, remote_find_new_threads)
1753 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1754 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1755 (threadalive_test, remote_pid_to_str)
1756 (remote_get_thread_local_address): Adjust.
1757 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1758 and any_thread_ptid.
1760 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1763 * configure: Regenerated.
1765 2008-06-26 Joel Brobecker <brobecker@adacore.com>
1767 * dwarf2read.c (read_attribute_value): Treat size attribute
1768 values of 0xffffffff as if the attribute value was zero.
1770 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1772 * linux-nat.c: Add description of overall logic.
1774 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1776 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1777 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1778 all dependencies on $(gdb_stdint_h).
1779 (distclean): Do not delete gdb_stdint.h.
1780 * acinclude.m4: Do not use stdint.m4.
1781 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1782 uintptr_t, and gdb_stdint.h.
1783 * defs.h: Include <stdint.h>.
1784 * gdb_thread_db.h: Assume stdint.h is already included.
1785 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1786 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1787 include gdb_stdint.h.
1788 * configure, config.in: Regenerate.
1790 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1792 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1793 decimal floating-point values in GPRs for soft-float.
1794 (do_ppc_sysv_return_value): Handle returning decimal
1795 floating-point values in GPRs for soft-float.
1797 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1799 * target.c (target_read_until_error): New.
1800 * target.h (target_read_until_error): Declare.
1801 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1802 target_read_until_error.
1804 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1807 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1808 after the DECFLOAT detection to fix a memory leak. Remove the
1809 redundant NUM initialization. Protect the DECFLOAT detection memory
1810 access before the P block. Restore the P memory content for the
1813 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1815 Kill the return value for all MI command functions.
1816 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1817 (mi_cmd_argv_ftype): Change return type to void.
1819 * mi/mi-main.c: Adjust all function that implement
1820 MI commands to return nothing.
1821 (struct captured_mi_execute_command_actions):
1822 Remove the rc field.
1823 (mi_cmd_execute): Return nothing.
1824 (mi_execute_async_cli_command): Return nothing.
1825 (mi_cmd_exec_interrupt): Don't print ^done here.
1826 (mi_cmd_target_select): Don't print ^connected here.
1827 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1828 Special-case -target-select and output ^connected, not ^done.
1830 * mi/mi-cmd-break.c: Adjust.
1831 * mi/mi-cmd-disas.c: Adjust.
1832 * mi/mi-cmd-env.c: Adjust.
1833 * mi/mi-cmd-file.c: Adjust.
1834 * mi/mi-cmd-stack.c: Adjust.
1835 * mi/mi-cmd-target.c: Adjust.
1836 * mi/mi-cmd-var.c: Adjust.
1837 * mi/mi-interp.c: Adjust.
1838 * mi/mi-symbol-cmds.c: Adjust.
1840 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1842 Emit ^running via observer.
1843 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
1845 (mi_on_resume): Print ^running if not previously output.
1846 * mi/mi-main.c (running_result_record_printed): New.
1847 (captured_mi_execute_command): Reset
1848 running_result_record_printed. Use running_result_record_printed
1849 to decide if we should skip ^done.
1850 (mi_execute_async_cli_command): Don't print ^running here.
1851 * mi/mi-main.h (current_token, running_result_record_printed):
1854 2008-06-24 Michael Snyder <msnyder@specifix.com>
1856 * infrun.c (_initialize_infrun): White space and typo fix.
1858 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1860 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1861 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1862 when first loading DLL with "dll" command.
1864 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1866 * gnu-nat.c (proc_string): Use capital T for "Thread".
1868 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1870 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
1872 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1874 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1875 the target cannot run.
1877 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1879 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1880 we're attaching to a running process.
1882 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
1884 * win32-nat.c (handle_load_dll): Give dll name and load address
1885 if debug_events is on.
1886 (handle_unload_dll): Likewise.
1888 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1890 Don't suppress *running when doing finish.
1891 * infcall.c (call_function_by_hand): Set both
1892 suppress_resume_observer and suppress_stop_observer.
1893 * infcmd.c (suppress_run_stop_observers): Split into...
1894 (suppress_resume_observer, suppress_stop_observer): ...those.
1895 (finish_command_continuation): Clear suppress_stop_observer.
1896 (finish_command): Set suppress_stop_observer.
1897 * inferior.h (suppress_run_stop_observers): Split into...
1898 (suppress_resume_observer, suppress_stop_observer): ...those.
1899 * infrun.c (normal_stop): Check for suppress_stop_observer.
1900 * thread.c (set_running): Check for suppress_resume_observer.
1902 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1903 Pierre Muller <muller@ics.u-strasbg.fr>
1905 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907 * i386-tdep.h (i386_skip_main_prologue): Declare.
1908 * i386-tdep.c (i386_skip_main_prologue): New.
1909 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
1910 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
1911 * symtab.c (find_function_start_sal): When pc points at the "main"
1912 function, call gdbarch_skip_main_prologue.
1914 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
1916 * value.c (value_primitive_field): Fetch lazy register values.
1918 2008-06-11 Pedro Alves <pedro@codesourcery.com>
1920 * NEWS: Mention support removal of undocumented S AA p PID stop
1923 * remote.c (remote_wait): Remove undocumented S AA p PID support.
1925 2008-06-10 Stan Shebs <stan@codesourcery.com>
1927 * MAINTAINERS: Update my affiliation and address.
1929 2008-06-10 Andreas Schwab <schwab@suse.de>
1931 * top.c (print_gdb_version): Don't print final newline.
1933 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1936 * Makefile.in: Update dependencies.
1937 * gdbthread.h (struct thread_info): New field
1939 (set_running, is_running): New.
1940 * thread.c (set_running, is_running): New.
1941 * inferior.h (suppress_normal_stop_observer): Rename to...
1942 (suppress_run_stop_observers): ..this.
1943 * infcmd.c (suppress_normal_stop_observer): Rename to...
1944 (suppress_run_stop_observers): ..this.
1945 (finish_command_continuation, finish_command): Adjust.
1946 * infcall.c (call_function_by_hand): Adjust.
1947 * infrun.c (normal_stop): Call set_running.
1948 * target.c (target_resume): New. Call set_running.
1949 * target.h (target_resume): Convert from macro to
1952 * mi/mi-interp.c (mi_on_resume): New.
1953 (mi_interpreter_init): Register mi_on_resume.
1955 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1957 Use observers to report stop events in MI.
1958 * mi/mi-interp.c (mi_on_normal_stop): New.
1959 (mi_interpreter_init): Register mi_on_normal_stop.
1960 (mi_interpreter_exec_continuation): Remove.
1961 (mi_cmd_interpreter_exec): Don't register the above.
1962 * mi/mi-main.c (captured_mi_execute_command): Don't care
1963 about sync_execution.
1964 (mi_execute_async_cli_command): Don't install continuation. Don't
1966 (mi_exec_async_cli_cmd_continuation): Remove.
1968 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1970 Suppress normal stop observer when it's problematic.
1971 * inferior.h (suppress_normal_stop_observer): New.
1972 * infcall.c (call_function_by_hand): Disable stop events when
1973 doing function calls.
1974 * infmcd.c (suppress_normal_stop_observer): New.
1975 (finish_command_continuation): Call normal_stop observer
1977 (finish_command): Disable stop events inside proceed.
1978 * infrun.c (normal_stop): Don't call normal stop observer if
1979 suppressed of if multi-step is in progress.
1981 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1984 * infrun.c (finish_command): Don't pass cleanup
1986 (finish_command_continuation): Don't grab cleanup from
1987 the passed data, as we don't use, and cannot, use it anyway.
1989 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1991 Introduce common cleanup for restoring integers.
1992 * defs.h (make_cleanup_restore_integer): New declaration.
1993 (struct cleanup): New field free_arg.
1994 (make_my_cleanup_2): New.
1995 * utils.c (restore_integer_closure, restore_integer)
1996 (make_cleanup_restore_integer): New.
1997 (make_my_cleanup): Initialize the free_arg field and
1998 renamed to make_my_cleanup_2.
1999 (do_my_cleanups): Call free_arg.
2000 (discard_cleanups): Call free_arg.
2001 * breakpoint.c (restore_always_inserted_mode): Remove.
2002 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2004 2008-06-09 Doug Evans <dje@google.com>
2006 * remote.c (remote_wait): Include beginning of malformed packet
2009 2008-06-09 Tom Tromey <tromey@redhat.com>
2011 * completer.c (complete_line): Don't special-case
2012 expression_completer.
2013 (expression_completer): Only pass last word to
2015 * c-exp.y (yylex): Check 'token', not 'operator'.
2017 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
2019 * configure.ac (build_warnings): Add -Wno-format for mingw.
2020 * configure: Regenerated.
2022 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2024 * NEWS: Make indentation consistent. Move exec tracing entry out
2025 of remote packet list.
2027 2008-06-06 Tom Tromey <tromey@redhat.com>
2029 * value.h (evaluate_subexpression_type, extract_field_op):
2031 * printcmd.c (_initialize_printcmd): Use expression_completer for
2032 'p', 'inspect', 'call'.
2033 * parser-defs.h (parse_field_expression): Declare.
2034 * parse.c: Include exceptions.h.
2035 (in_parse_field, expout_last_struct): New globals.
2036 (mark_struct_expression): New function.
2037 (prefixify_expression): Return int.
2038 (prefixify_subexp): Return int. Use expout_last_struct.
2039 (parse_exp_1): Update.
2040 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2042 (parse_field_expression): New function.
2043 * expression.h (parse_field_expression): Declare.
2044 (in_parse_field): Likewise.
2045 * eval.c (evaluate_subexpression_type): New function.
2046 (extract_field_op): Likewise.
2047 * completer.h (expression_completer): Declare.
2048 * completer.c (expression_completer): New function.
2049 (count_struct_fields, add_struct_fields): New functions.
2050 * c-exp.y (yyparse): Redefine.
2051 (COMPLETE): New token.
2052 (exp): New productions.
2053 (saw_name_at_eof, last_was_structop): New globals.
2054 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2055 (c_parse): New function.
2056 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2057 for watch, awatch, and rwatch.
2058 * Makefile.in (parse.o): Depend on exceptions_h.
2060 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2063 * gdb/valopts.c (find_overload_match): Handle references
2066 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2068 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2069 account the bitsize of the 'from' operand.
2071 2008-06-06 Pedro Alves <pedro@codesourcery.com>
2073 * annotate.h (annotate_thread_changed): Declare.
2075 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
2077 * annotate.c (annotate_thread_changed): New function.
2078 * thread.c (thread_command) : Use it.
2079 * infrun.c (normal_stop): Use it.
2081 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
2082 Nathan Sidwell <nathan@codesourcery.com>
2083 Joseph Myers <joseph@codesourcery.com>
2085 * acinclude.m4: Include ../config/acx.m4.
2086 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2087 * configure, config.in: Regenerate.
2088 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2090 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2092 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2094 Replace 'target async' by 'maintenance set remote-async' and
2095 'target remote' combination.
2097 * remote.c (remote_async_wait): Merge into remote_wait, and
2099 (remote_async_permitted, remote_async_permitted_set): New
2101 (set_maintenance_remote_async_permitted)
2102 (show_maintenance_remote_async_permitted): New functions.
2103 (remote_async_ops, extended_async_remote_ops): Delete.
2104 (remote_async_open, extended_remote_async_open): Delete.
2105 (remote_open_1): Drop async_p parameter. Update callers. Replace
2106 async_p with remote_async_permitted checks.
2107 (extended_async_remote_attach): Delete.
2108 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2109 (remote_async_terminal_inferior): Rename to...
2110 (remote_terminal_inferior): ... this, and add
2111 remote_async_termitted check.
2112 (remote_async_terminal_ours): Rename to...
2113 (remote_terminal_ours): ... this, and add remote_async_termitted
2115 (remote_wait, remote_async_wait): Merge and leave remote_wait
2117 (remote_kill, remote_async_kill): Merge and leave remote_kill
2119 (remote_async_mourn, extended_async_remote_mourn): Delete.
2120 (extended_remote_create_inferior_1): Drop async_p parameter.
2121 Update callers. Always use extended_remote_ops.
2122 (extended_remote_async_create_inferior): Delete.
2123 (remote_return_zero): Delete.
2124 (init_remote_ops): Register remote_can_async_p, remote_async,
2125 remote_async_mask, remote_terminal_inferior and
2126 remote_terminal_ours.
2127 (remote_can_async_p, remote_is_async_p): Check for
2128 remote_async_permitted.
2129 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2130 (set_remote_cmd): Don't add async and extended-async targets.
2131 (_initialize_remote): Add set/show remote-async maintenance
2134 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2136 * remote.c (kill_kludge): Delete.
2137 (remote_wait, remote_async_wait): Don't set it.
2138 (remote_kill, remote_async_kill): Don't do anything with it.
2140 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2142 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2144 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2146 * bcache.c (bcache_data): Call deprecated_bcache_added function.
2147 (deprecated_bcache_added): New function name. Body of function
2148 bcache_data is used here with the addition of 'added' argument.
2149 * bcache.h (deprecated_bcache_added): New function.
2150 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2151 work from add_psymbol_to_list - initialises partial symbol and stashes
2152 it in objfile's cache.
2153 (append_psymbol_to_list): New helper function, takes other part of
2154 work from add_psymbol_to_list - adds partial symbol to the given list.
2155 (add_psymbol_to_list): Call helper functions instead of doing work
2156 here. If adding to global list, do not duplicate partial symbols in the
2159 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2161 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2162 'exception caught|thrown' message.
2164 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2166 * Makefile.in: Update dependencies.
2167 * dwarf2expr.c: New include "gdb_assert.h".
2168 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2169 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2170 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2171 Increase/decrease RECURSION_DEPTH around the function.
2173 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2175 * remote.c (get_offsets): Handle a single segment.
2176 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2179 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2181 * solib-svr4.c (struct lm_info): Add lm_addr.
2182 (main_lm_addr): New.
2183 (svr4_default_sos): Set lm_addr.
2184 (svr4_current_sos): Set lm_addr and main_lm_addr.
2185 (svr4_fetch_objfile_link_map): Rewrite.
2186 (svr4_clear_solib): Clear main_lm_addr.
2188 2008-06-03 Michael Snyder <msnyder@redhat.com>
2189 Joseph Myers <joseph@codesourcery.com>
2191 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2192 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2194 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2196 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2198 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2200 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2202 2008-06-01 Joel Brobecker <brobecker@adacore.com>
2204 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2205 treat pointers in data space as function descriptors if the
2206 target address is also in the data space.
2208 2008-05-30 Joel Brobecker <brobecker@adacore.com>
2210 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2211 the trad-frame register value for the SP register.
2213 2008-05-29 Mark Kettenis <kettenis@gnu.org>
2215 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2217 2008-05-28 Joel Brobecker <brobecker@adacore.com>
2219 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2220 that identifies function descriptors outside of the .opd section.
2222 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2224 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
2225 temporary catchpoints. In MI add missing fields 'reason', 'disp',
2227 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2229 (handle_gnu_v3_exceptions): Use tempflag.
2231 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2233 Refactor varobj_update interface.
2234 * varobj.c (varobj_update): Report changes as vector. Also
2235 return not just a list of varobj, but a list of special structures
2236 that tell what exactly has changed.
2237 * varobj.h (enum varobj_update_error): Rename to
2238 varobj_scope_status.
2239 (struct varobj_update_result_t): New.
2240 (varobj_update): Adjust prototype.
2241 * mi/mi-cmd-var.c: Adjust for changes.
2243 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2245 * varobj.c (varobj_update): Fix comment typo.
2248 2008-05-26 Joel Brobecker <brobecker@adacore.com>
2250 Set the symtab field of symbols read from ECOFF debugging entries.
2251 * mdebugread.c (add_symbol): Add new parameter symtab.
2252 (parse_symbol): Update calls to add_symbol throughout.
2254 2008-05-27 Andreas Schwab <schwab@suse.de>
2256 * symtab.h (enum address_class): Remove LOC_REGPARM and
2258 (struct symbol): Add is_argument.
2259 (SYMBOL_IS_ARGUMENT): Define.
2261 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2262 * buildsym.c (finish_block): Likewise.
2263 * stack.c (print_frame_args, print_block_frame_locals)
2264 (print_frame_arg_vars): Likewise.
2265 * symtab.c (lookup_block_symbol): Likewise.
2266 * tracepoint.c (add_local_symbols): Likewise.
2267 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2269 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2270 * dwarf2read.c (new_symbol): Likewise.
2271 * mdebugread.c (parse_symbol): Likewise.
2272 * stabsread.c (define_symbol): Likewise.
2274 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2275 and LOC_COMPUTED_ARG.
2276 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2277 * ax-gdb.c (gen_var_ref): Likewise.
2278 * eval.c (evaluate_subexp_for_address): Likewise.
2279 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2280 * m2-exp.y (yylex): Likewise.
2281 * printcmd.c (address_info): Likewise.
2282 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2283 * tracepoint.c (collect_symbol, scope_info): Likewise.
2285 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2287 * gdbarch.sh: Added new gdbarch struct
2288 core_regset_sections.
2289 * gdbarch.c: Refreshed.
2290 * gdbarch.h: Refreshed.
2291 * regset.h (core_regset_section): Declared.
2292 * linux-nat.c (linux_nat_do_thread_registers): Added
2293 support for the new gdbarch struct core_regset_sections.
2294 * utils.c (host_address_to_string): New function.
2295 * defs.h (host_address_to_string): New prototype.
2296 * i386-linux-tdep.c (i386_regset_rections): New register
2297 sections list for i386.
2298 (i386_linux_init_abi): Initialized new gdbarch struct
2299 core_regset_sections.
2300 * Makefile.in: Updated to reflect dependency changes.
2301 * ppc-linux-tdep.c (ppc_regset_sections): Register
2302 sections list for ppc.
2303 (ppc_linux_init_abi): Initialized new gdbarch struct
2304 core_regset_sections
2306 2008-05-24 Andreas Schwab <schwab@suse.de>
2308 * linespec.c (decode_objc): Save current language around call to
2311 2008-05-23 Joel Brobecker <brobecker@adacore.com>
2313 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2314 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2315 Return the proper bound value if the array index type is an
2316 enumerated type. Compute the high bound if requested.
2317 (val_print_array_elements): Handle the case when the array
2318 element has a null size.
2319 * ada-valprint.c (print_optional_low_bound): Add handling
2320 for empty arrays or arrays of zero-size elements.
2321 (ada_val_print_array): New function, extracted out from
2322 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2323 handle empty arrays and arrays of zero-size elements.
2324 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2325 code by call to ada_val_print_array.
2326 (ada_value_print): Remove handling of null array. The handling
2327 was incomplete and is now better handled by ada_val_print_array.
2329 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2331 * annotate.c (annotate_source, annotate_frame_begin): Replace
2332 deprecated_print_address_numeric with paddress.
2333 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2334 * tui/tui-stack.c (tui_make_status_line): Likewise.
2336 * defs.h (deprecated_print_address_numeric): Remove.
2337 * printcmd.c (deprecated_print_address_numeric): Remove.
2338 * maint.c (maint_print_section_info): Fix comment.
2340 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2342 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2343 print_binary_chars, print_char_chars): Add byte_order parameter and
2344 replace gdbarch_byte_order.
2345 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2346 expressions and remove them. Remove unused TWO_TO_FOURTH.
2347 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2348 endianness. Update call to print_hex_chars.
2349 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2350 print_binary_chars, print_char_chars): Add byte_order parameter.
2351 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2352 get at the endianness. Update print_*_char calls to use byte_order.
2354 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2356 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2358 (SYMBOL_LOCATION_BATON): Update.
2360 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2362 * symtab.h (enum address_class): Remove LOC_BASEREG and
2364 (struct symbol): Remove "basereg" member of "aux_value" union.
2365 (SYMBOL_BASEREG): Remove.
2367 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2369 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2370 (ada_add_block_symbols): Likewise.
2371 * ax-gdb.c (gen_var_ref): Likewise.
2372 * buildsym.c (finish_block): Likewise.
2373 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2374 * m2-exp.y (yylex): Likewise.
2375 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2376 * printcmd.c (address_info): Likewise.
2377 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2378 (print_frame_arg_vars): Likewise.
2379 * symmisc.c (print_symbol): Likewise.
2380 * symtab.c (lookup_block_symbol): Likewise.
2381 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2382 (scope_info): Likewise.
2384 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2386 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2388 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2389 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2390 (ada_add_block_symbols): Likewise.
2391 * ax-gdb.c (gen_var_ref): Likewise.
2392 * buildsyms.c (finish_block): Likewise.
2393 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2394 * m2-exp.y (yylex): Likewise.
2395 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2396 * printcmd.c (address_info): Likewise.
2397 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2398 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2399 * symtab.c (lookup_block_symbol): Likewise.
2400 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2401 (scope_info): Likewise.
2403 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2405 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2406 LOC_HP_THREAD_LOCAL_STATIC.
2408 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2409 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2410 (read_var_value): Likewise.
2411 * buildsym.c (finish_block): Likewise.
2412 * objfiles.c (objfile_relocate): Likewise.
2413 * printcmd.c (address_info): Likewise.
2414 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2415 * tracepoint.c (scope_info): Likewise.
2417 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2418 Maxim Grigoriev <maxim2405@gmail.com>
2420 * xtensa-tdep.c (xtensa_read_register): Remove.
2421 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2422 argument litbase to call0_frame_cache().
2423 (call0_track_op, call0_analyze_prologue)
2424 (call0_frame_cache): Use extra argument litbase.
2426 2008-05-21 Joel Brobecker <brobecker@adacore.com>
2428 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2430 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2432 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2434 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2436 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2437 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2438 struct trad_frame_saved_reg *.
2439 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2440 trad_frame_alloc_saved_regs. Update accesses. Record previous
2441 value of SP as being vfp.
2442 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2443 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2445 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2447 * score-tdep.c (score_print_insn): Get the current endianess from
2448 disassemble_info instead of gdbarch_byte_order.
2450 2008-05-21 Pedro Alves <pedro@codesourcery.com>
2452 * frame.c (get_prev_frame_1): Build frame id before setting
2453 this_frame->prev_p, not after.
2455 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
2457 * annotate.c (annotate_new_thread): New function for new-thread
2459 * annotate.h: (annotate_new_thread): New extern.
2460 * thread.c (add_thread_with_info): Use it.
2461 * Makefile.in (thread.o): Add dependency on annotate.h.
2463 2008-05-20 Joel Brobecker <brobecker@adacore.com>
2465 * win32-nat.c (win32_wait): Block the control-c event while
2466 waiting for a debug event.
2468 2008-05-19 Pedro Alves <pedro@codesourcery.com>
2470 * symtab.h (lookup_symbol_in_language): Update comment.
2471 * symtab.c (lookup_symbol_aux_block): Update comment.
2472 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2474 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2476 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2477 (lookup_symbol): Likewise.
2478 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2479 (lookup_symbol): Likewise.
2480 (search_symbols): Update.
2482 * linespec.c (find_methods, collect_methods): Update.
2483 (add_matching_methods, add_constructors): Update.
2484 (decode_compound, decode_dollar, decode_variable): Update.
2485 (lookup_prefix_sym): Update.
2487 (symbol_found): Remove SYM_SYMTAB parameter.
2488 Use SYMBOL_SYMTAB (sym) instead.
2490 * gdbtypes.c (lookup_typename): Update.
2491 (lookup_struct, lookup_union, lookup_enum): Update.
2492 (lookup_template_type): Update.
2493 (check_typedef): Update.
2494 * language.c (lang_bool_type): Update.
2495 * mdebugread.c (parse_procedure): Update.
2496 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2497 * parse.c (write_dollar_variable): Update.
2498 * printcmd.c (address_info): Update.
2499 * source.c (select_source_symtab): Update.
2500 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2501 * valops.c (find_function_in_inferior): Update.
2502 (value_struct_elt_for_reference): Update.
2503 * value.c (value_static_field, value_fn_field): Update.
2505 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2506 * arm-tdep.c (arm_skip_prologue): Update.
2507 * mt-tdep.c (mt_skip_prologue): Update.
2508 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2510 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2511 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2512 (add_defn_to_vec): Likewise.
2513 (ada_add_block_symbols): Likewise.
2514 (lookup_cached_symbol, cache_symbol): Likewise.
2515 (standard_lookup): Update.
2516 (ada_lookup_symbol_list): Update.
2518 * c-valprint.c (c_val_print): Update.
2519 * cp-support.c (cp_lookup_rtti_type): Update.
2520 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2521 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2522 * p-valprint.c (pascal_val_print): Update.
2523 * scm-lang.c (scm_lookup_name): Update.
2529 * objc-exp.y: Update.
2532 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2534 * language.h (struct language_defn): Remove SYMTAB parameter from
2535 la_lookup_symbol_nonlocal callback function pointer.
2537 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2538 (ada_lookup_encoded_symbol): Likewise.
2539 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2540 Always call fixup_symbol_section.
2541 (ada_lookup_symbol): Remove SYMTAB parameter.
2542 (ada_lookup_symbol_nonlocal): Likewise.
2543 * ada-exp.y (write_object_renaming): Update.
2544 (find_primitive_type): Likewise.
2546 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2547 (cp_lookup_symbol_namespace): Likewise.
2548 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2549 (lookup_symbol_file): Likewise.
2550 (lookup_possible_namespace_symbol): Likewise.
2551 (cp_lookup_symbol_nonlocal): Likewise.
2552 (cp_lookup_symbol_namespace): Likewise.
2553 (cp_lookup_nested_type): Update.
2555 * scm-valprint.c (scm_inferior_print): Update.
2556 * valops.c (value_maybe_namespace_elt): Update.
2558 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2559 lookup_lib_global_symbol callback function pointer.
2560 (solib_global_lookup): Remove SYMTAB parameter.
2561 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2562 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2564 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2565 (lookup_symbol_static): Likewise.
2566 (lookup_symbol_global): Likewise.
2567 (lookup_symbol_aux_block): Likewise.
2568 (lookup_global_symbol_from_objfile): Likewise.
2569 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2570 (lookup_symbol_aux_local): Likewise.
2571 (lookup_symbol_aux_block): Likewise.
2572 (lookup_symbol_aux_symtabs): Likewise.
2573 (lookup_symbol_aux_psymtabs): Likewise.
2574 (lookup_global_symbol_from_objfile): Likewise.
2575 (basic_lookup_symbol_nonlocal): Likewise.
2576 (lookup_symbol_static): Likewise.
2577 (lookup_symbol_global): Likewise.
2579 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2581 2008-05-17 Pedro Alves <pedro@codesourcery.com>
2583 * remote.c (init_extended_remote_ops): Fix typo.
2585 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2587 * NEWS: Mention new DICOS x86 target configuration.
2589 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2590 Ulrich Weigand <uweigand@de.ibm.com>
2592 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2593 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2595 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2596 use it instead of ginfo->value.address. Look up minimal symbol by
2597 address and name. Assume OBJFILE is non-NULL.
2598 (fixup_symbol_section): Ensure we always have an objfile to look
2599 into. Extract and pass to fixup_section the symbol's address that
2600 will match the minimal symbol's address.
2601 (fixup_psymbol_section): Likewise.
2603 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2604 overlays and the addrmap returned the wrong section.
2606 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2607 calling fixup_symbol_section.
2609 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2611 * minsyms.c: Include "target.h".
2612 (find_solib_trampoline_target): Handle minimal symbols pointing
2613 to function descriptors as well.
2614 * Makefile.in (minsyms.o): Update dependencies.
2616 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2617 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2618 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2619 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2620 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2621 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2622 (ppc64_standard_linkage_target): Rename to ...
2623 (ppc64_standard_linkage1_target): ... this.
2624 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2625 (ppc64_skip_trampoline_code): Support three variants of standard
2626 linkage stubs. Call find_solib_trampoline_target to handle
2629 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2631 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2632 ppc64_sysv_abi_adjust_breakpoint_address.
2633 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2634 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2636 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2638 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2639 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2640 of ppc_linux_skip_trampoline_code.
2642 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2644 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2645 * gdbarch.c, gdbarch.h: Regenerated.
2646 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2647 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2648 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2650 2008-05-15 Pedro Alves <pedro@codesourcery.com>
2652 * linux-nat.c (trap_ptid): Delete.
2653 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2655 * linux-thread-db.c (thread_db_wait): Adjust.
2657 2008-05-15 Joel Brobecker <brobecker@adacore.com>
2659 * linespec.c (decode_line_1): Fix a couple of comments.
2661 2008-05-15 Alan Modra <amodra@bigpond.net.au>
2663 * dbxread.c: Formatting.
2664 (INTERNALIZE_SYMBOL): Init n_other.
2665 (set_namestring): Take pointer to nlist arg rather than struct
2666 copy. Update all callers.
2668 2008-05-15 Andreas Schwab <schwab@suse.de>
2670 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2671 (dwarf2read.o): Add $(addrmap_h).
2673 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2675 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2676 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2677 to handle ppc32 PLT entries.
2678 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2681 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2683 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2684 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2685 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2686 (lookup_minimal_symbol_by_pc_section): Use
2687 lookup_minimal_symbol_by_pc_section_1.
2688 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2690 2008-05-13 Joel Brobecker <brobecker@adacore.com>
2692 * findcmd.c: Add #include "gdb_stdint.h".
2693 * Makefile.in (findcmd.o): Update dependencies.
2695 2008-05-11 David S. Miller <davem@davemloft.net>
2697 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2698 long double size override, Linux does use 128-bit now.
2700 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2701 (sparc_linux_write_pc): New function.
2702 (sparc32_linux_init_abi): Register it.
2703 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2704 (sparc64_linux_write_pc): New function.
2705 (sparc64_linux_init_abi): Register it.
2707 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2708 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2710 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2712 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2713 and info.tdep_info before calling gdbarch_init_osabi.
2715 2008-05-09 Joel Brobecker <brobecker@adacore.com>
2717 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2718 the type of the right hand side of the assignment to the type
2719 of the left hand side if the left hand side is a convenience
2722 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2724 * NEWS: Mention gdbserver bi-arch capability.
2726 2008-05-09 Doug Evans <dje@google.com>
2729 * NEWS: Document find command and qSearch:memory packet.
2730 * Makefile.in (SFILES): Add findcmd.c.
2731 (COMMON_OBJS): Add findcmd.o.
2732 (findcmd.o): New rule.
2733 * findcmd.c: New file.
2734 * target.h (target_ops): New member to_search_memory.
2735 (simple_search_memory): Declare.
2736 (target_search_memory): Declare.
2737 * target.c (simple_search_memory): New fn.
2738 (target_search_memory): New fn.
2739 * remote.c (PACKET_qSearch_memory): New packet kind.
2740 (remote_search_memory): New fn.
2741 (init_remote_ops): Init to_search_memory.
2742 (init_extended_remote_ops): Ditto.
2743 (_initialize_remote): Add qSearch:memory packet config command.
2745 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2747 * thread.c (_initialize_thread): Don't use commas and periods in
2748 first line of doc string of "set/show print thread-events".
2750 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2752 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2753 Update for unwinder changes.
2755 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2757 * frame.c (get_frame_base_address, get_frame_locals_address)
2758 (get_frame_args_address): Pass the correct frame when calling
2759 frame_base_find_by_frame.
2761 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2763 * remote.c (extended_remote_attach_1): Call target_find_description.
2765 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2767 * remote.c (extended_remote_create_inferior_1): Clean up
2768 before marking the target running.
2770 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2772 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2775 2008-05-07 Joel Brobecker <brobecker@adacore.com>
2777 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2778 sparc64-sol2-tdep.c: Update for unwinder changes.
2780 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2782 * cp-support.c (mangled_name_to_comp): Initialize storage.
2783 (unqualified_name_from_comp): Likewise.
2785 2008-05-07 Jie Zhang <jie.zhang@analog.com>
2787 * remote.c (remote_insert_breakpoint): Call get_remote_state
2788 after gdbarch_breakpoint_from_pc is called.
2789 (remote_insert_hw_breakpoint): Likewise.
2791 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2793 * valprint.c (val_print): Add new language parameter and use it
2794 instead of using the current_language. Update calls to val_print
2796 (common_val_print): Add new langauge parameter and pass it to
2798 * value.h (struct language_defn): Add opaque declaration.
2799 (val_print, common_val_print): Update declarations.
2800 * stack.c (print_frame_args): Update call to common_val_print
2801 using the appropriate language.
2802 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2803 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2804 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2805 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2806 #include "language.h" if necessary.
2807 Update calls to val_print and common_val_print.
2808 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2809 Update dependencies.
2811 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2813 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2814 pointing inside a non-executable section as function descriptors.
2816 2008-05-06 Pedro Alves <pedro@codesourcery.com>
2818 * inf-loop.c (inferior_event_handler): Run all continuations and
2819 print any language change before running the breakpoint commands.
2821 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2823 * frame-unwind.c (frame_unwind_got_bytes): New function.
2824 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2825 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2826 for unwinder changes.
2828 2008-05-05 Doug Evans <dje@google.com>
2830 * NEWS: Mention new /m modifier for disassemble command.
2831 * cli/cli-cmds.c (print_disassembly): New function.
2832 (disassemble_current_function): New function
2833 (disassemble_command): Recognize /m modifier, print mixed
2835 (init_cli_cmds): Update disassemble help text.
2837 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2839 * xtensa-tdep.c: Update for unwinder changes.
2841 2008-05-05 Andreas Schwab <schwab@suse.de>
2843 Update m68k port for unwinder changes.
2844 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2845 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2846 (m68k_frame_unwind): Use default_frame_sniffer.
2847 (m68k_frame_sniffer): Remove.
2848 (m68k_frame_base_address): Expect this_frame.
2849 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2851 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2852 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2853 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2854 parameter instead of pc value.
2855 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2857 (m68k_linux_sigtramp_frame_this_id)
2858 (m68k_linux_sigtramp_frame_prev_register)
2859 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2860 (m68k_linux_sigtramp_frame_unwind): Use
2861 m68k_linux_sigtramp_frame_sniffer.
2862 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2864 * m68klinux-nat.c (store_register): Fix typo.
2866 2008-05-05 Pedro Alves <pedro@codesourcery.com>
2868 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2871 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
2873 * symfile.c (reread_symbols): Update objfile's entry point.
2875 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2876 Joel Brobecker <brobecker@adacore.com>
2878 * ada-lang.c: Update throughout to use symbol_matches_domain
2879 instead of matching the symbol domain explictly.
2880 * dwarf2read.c (add_partial_symbol): Do not add new psym for
2881 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
2882 class as typedefs. See lookup_partial_symbol function.
2883 (new_symbol): Similar to add_partial_symbol, do not create
2884 symbol for the typedef. See lookup_block_symbol.
2885 * symtab.c (symbol_matches_domain): New function, takes care
2886 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2887 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2888 found psym domain matches the given domain.
2889 (lookup_block_symbol): Likewise.
2891 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2893 * top.c (command_line_handler_continuation): Remove.
2894 (execute_command): Do not install the above.
2896 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2898 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2899 and catch all exceptions from it.
2900 * top.c (command_line_handler_continuation): Don't
2901 call bpstat_do_action here.
2903 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2905 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2906 (struct die_info): Remove type.
2907 (read_type_die, read_typedef, read_base_type, read_subrange_type)
2908 (read_structure_type, read_enumeration_type, read_array_type)
2909 (read_tag_pointer_type, read_tag_ptr_to_member_type)
2910 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
2911 (read_tag_string_type, read_subroutine_type, read_set_type)
2912 (read_unspecified_type): Delete prototypes. Remove check for
2913 already-loaded type. Return the new type.
2914 (set_die_type): Return the new type.
2915 (reset_die_and_siblings_types): Delete.
2916 (load_comp_unit, load_full_comp_unit): Set type_hash.
2917 (process_queue): Remove call to reset_die_and_siblings_types.
2918 (process_die): Do not read most types here. Use read_type_die
2920 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
2921 (quirk_gcc_member_function_pointer): Return the new type.
2922 (process_structure_scope, process_enumeration_scope): Use
2923 get_die_type and read the DIE's type.
2924 (read_full_die): Do not initialize die->type.
2925 (tag_type_to_type): Use read_type_die.
2926 (read_type_die): Check for already defined types. Return the
2928 (determine_prefix): Use get_die_type.
2929 (set_die_type): Return the type.
2930 (get_die_type): Take a CU argument. Check for no type_hash.
2932 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2934 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
2937 2008-05-04 Pedro Alves <pedro@codesourcery.com>
2939 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
2940 and bp_longjmp_resume breakpoints.
2941 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
2943 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
2944 breakpoints. Create bp_longjmp breakpoints as momentary
2946 (enable_longjmp_breakpoint): Delete.
2947 (set_longjmp_breakpoint): New.
2948 (disable_longjmp_breakpoint): Delete.
2949 (delete_longjmp_breakpoint): New.
2950 (set_longjmp_resume_breakpoint): Delete.
2951 (set_momentary_breakpoint_at_pc): New.
2952 (breakpoint_re_set_one): Don't delete bp_longjmp and
2953 bp_longjmp_resume breakpoints.
2954 (breakpoint_re_set): Don't create longjmp and longjmp-resume
2957 * infrun.c (step_resume_breakpoint): Add comment.
2958 (struct execution_control_state): Delete handling_longjmp member.
2959 (init_execution_control_state). Don't clear handling_longjmp.
2960 (context_switch): Don't context switch handling_longjmp.
2961 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2962 create a bp_longjmp_resume breakpoint, and set it as current
2963 step_resume_breakpoint, then step over the longjmp breakpoint. If
2964 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2965 breakpoint, delete the longjmp-resume breakpoint, and stop
2967 (currently_stepping): Remove handling_longjmp from expression.
2968 (insert_step_resume_breakpoint_at_sal): Update comment.
2969 (insert_longjmp_resume_breakpoint): New.
2971 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2972 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2974 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2975 (set_longjmp_resume_breakpoint): Delete declaration.
2977 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2979 (load_infrun_state): Delete *handling_longjmp parameter.
2980 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2982 (load_infrun_state): Delete *handling_longjmp parameter. Update
2985 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2986 (delete_longjmp_breakpoint_cleanup): New.
2987 (step_1): Call set_longjmp_breakpoint instead of
2988 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2989 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2990 (step_1_continuation): Pass thread id in the continuation args to
2992 (step_once): Add thread parameter. Pass thread id the the
2995 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2997 Set CU BASE_ADDRESS already from partial DIEs.
2998 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2999 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3000 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3001 from these variables if it was still unset.
3003 * Makefile.in: Update dependencies.
3004 * dwarf2read.c: Include "addrmap.h"
3005 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3006 (dwarf2_ranges_read): New prototype.
3007 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3008 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3009 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3010 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3011 comment for it. Add the found ranges to RANGES_PST. New variable
3012 BASEADDR, initialize it the common way.
3013 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3014 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3015 HAS_RANGES_OFFSET for the later processing.
3016 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3017 * symtab.c: Include "addrmap.h"
3018 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3019 Move the psymtab locator into ...
3020 (find_pc_sect_psymtab_closer): ... a new function.
3022 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3024 * arch-utils.c (gdbarch_update_p): Use default values for
3025 info.abfd and info.target_desc if they are NULL.
3026 (gdbarch_from_bfd): Remove assertion.
3027 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3028 using the current target description.
3029 (gdbarch_info_fill): Do not use default values for info->abfd
3030 and info->target_desc.
3032 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3036 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3038 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3039 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3041 * regcache.c (read_pc_pid): Remove, replace by ...
3042 (regcache_read_pc): ... this function.
3043 (write_pc_pid): Remove, replace by ...
3044 (regcache_write_pc): ... this function.
3045 (read_pc, write_pc): Update.
3047 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3048 write_pc_pid by regcache_read_pc and regcache_write_pc.
3049 (displaced_step_fixup): Likewise.
3050 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3051 (prepare_to_proceed): Likewise.
3052 (proceed): Likewise.
3053 (adjust_pc_after_break): Likewise.
3054 (handle_inferior_event): Likewise.
3056 * linux-nat.c (cancel_breakpoint): Likewise.
3057 * linux-thread-db.c (check_event): Likewise.
3058 * aix-thread.c (aix_thread_wait): Likewise.
3059 * tracepoint.c (trace_dump_command): Likewise.
3061 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3063 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3064 SYMBOL_LOCATION_BATON.
3066 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3068 * target.h (struct target_ops): New field to_auxv_parse.
3069 * auxv.c (default_auxv_parse): New, renamed from previous
3071 (target_auxv_parse): Try to call target method. Fallback to
3072 default_auxv_parse if not found.
3073 * procfs.c (procfs_auxv_parse): New.
3074 (init_procfs_ops): On Solaris, in 64-bit mode, install
3077 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3079 * symfile.c (add_symbol_file_command): Use paddress rather than
3080 hex_string to print the address.
3082 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3084 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3085 return the null frame ID to terminate the backtrace.
3087 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3089 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3090 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3091 (SIG_FRAME_PC_OFFSET): Likewise.
3092 (SIG_FRAME_LR_OFFSET): Likewise.
3093 (SIG_FRAME_FP_OFFSET): Likewise.
3094 (rs6000_push_dummy_call): Likewise.
3095 (rs6000_return_value): Likewise.
3096 (rs6000_convert_from_func_ptr_addr): Likewise.
3097 (branch_dest, rs6000_software_single_step): Likewise.
3098 (deal_with_atomic_sequence): Rename to ...
3099 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3100 Do not call branch_dest; inline required parts of that function.
3101 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3102 with SYMBOL_LINKAGE_NAME.
3103 (struct reg, regsize): Delete.
3104 (read_memory_addr): Delete; inline into callers.
3105 (rs6000_skip_prologue): Move after skip_prologue.
3106 (skip_prologue): Remove prototype.
3107 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3108 initialization as if this variable were true. Do not install
3109 ppc64_sysv_abi_adjust_breakpoint_address.
3111 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3112 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3114 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3115 (SIG_FRAME_PC_OFFSET): Likewise.
3116 (SIG_FRAME_LR_OFFSET): Likewise.
3117 (SIG_FRAME_FP_OFFSET): Likewise.
3118 (rs6000_push_dummy_call): Likewise.
3119 (rs6000_return_value): Likewise.
3120 (rs6000_convert_from_func_ptr_addr): Likewise.
3121 (branch_dest, rs6000_software_single_step): Likewise. Replace
3122 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3123 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3124 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3125 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3126 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3128 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3129 (AIX_TEXT_SEGMENT_BASE): New macro.
3130 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3131 by AIX_TEXT_SEGMENT_BASE.
3133 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3134 (struct gdbarch_tdep): Remove text_segment_base member.
3135 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3136 ppc64_sysv_abi_adjust_breakpoint_address.
3138 * Makefile.in (rs6000-tdep.o): Update dependencies.
3139 (rs6000-aix-tdep.o): Likewise.
3141 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
3142 Thiago Jung Bauermann <bauerman@br.ibm.com>
3144 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3145 * doublest.c (convert_typed_floating): Fix typo in comment.
3146 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3147 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3148 * frame.c (frame_unwind_address_in_block): Likewise.
3149 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3150 * symtab.h (struct symbol): Likewise.
3151 * tramp-frame.h (struct trad_frame_cache): Likewise.
3152 * value.c (allocate_repeat_value): Likewise.
3154 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3156 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3157 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3159 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3161 * parse.c (parse_exp_in_context): Don't override
3162 expression_context_pc if get_selected_block returned a valid
3165 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3167 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3168 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3169 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3171 * c-typeprint.c (c_type_print_base): Delete handling of template
3173 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3174 (METHOD_PTR_TO_VOFFSET): Delete.
3175 * defs.h (QUIT_FIXME): Delete.
3176 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3177 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3178 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3179 ninstantiations, and instantiations.
3180 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3181 (TYPE_FN_FIELD_INLINED): Delete.
3182 * srec.h (SREC_BINARY): Delete.
3183 * symtab.c (symbol_init_demangled_name): Delete.
3184 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3185 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3186 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3187 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3188 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3189 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3190 * target.h (enum thread_control_capabilities): Delete tc_switch.
3191 (target_can_switch_threads): Delete.
3193 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3195 * Makefile.in (objfiles.o): Update.
3196 * exec.c (exec_set_section_address): Support p->addr != 0.
3197 * objfiles.c (objfile_relocate): Update exec_ops section
3199 * symfile.c (place_section): Move exec_set_section_address call...
3200 (default_symfile_offsets): ...to here.
3202 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3204 * Makefile.in (ppc_linux_tdep_h): New macro.
3205 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3206 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3207 (powerpc_e500l_c): Likewise.
3208 (ppc-linux-nat.o): Update dependencies.
3209 (ppc-linux-tdep.o): Update dependencies.
3210 (rs6000-tdep.o): Update dependencies.
3212 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3213 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3214 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3215 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3216 (tdesc_powerpc_e500): Remove.
3218 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3219 and "features/rs6000/powerpc-altivec64.c".
3220 (ppc_supply_reg, ppc_collect_reg): Make global.
3221 (variants): Use tdesc_powerpc_32 for "powerpc" and
3222 tdesc_powerpc_altivec64 for "powerpc64".
3223 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3225 * ppc-linux-tdep.h: New file.
3227 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3228 Include "features/rs6000/powerpc-32l.c".
3229 Include "features/rs6000/powerpc-altivec32l.c".
3230 Include "features/rs6000/powerpc-64l.c".
3231 Include "features/rs6000/powerpc-altivec64l.c".
3232 Include "features/rs6000/powerpc-e500l.c".
3233 (ppc_linux_supply_gregset): New function.
3234 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3235 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3236 (ppc64_linux_gregset): Likewise.
3237 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3238 (ppc_linux_trap_reg_p): New function.
3239 (ppc_linux_write_pc): New function.
3240 (ppc_linux_core_read_description): New function.
3241 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3242 ppc_linux_core_read_description. Install orig_r3 and trap
3243 registers if present in the target description.
3244 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3246 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3247 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3248 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3249 (fetch_ppc_registers): Likewise.
3250 (store_ppc_registers): Likewise.
3251 (store_register): Likewise.
3252 (ppc_linux_read_description): Check whether AltiVec is supported.
3253 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3254 Linux target description.
3256 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3257 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3258 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3259 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3260 rs6000/powerpc-e500. Update -expedite variables accordingly.
3262 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3263 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3264 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3265 * features/rs6000/powerpc-e500.c: Regenerate.
3266 * features/rs6000/powerpc-32.c: Regenerate.
3267 * features/rs6000/powerpc-64.c: Regenerate.
3269 * features/rs6000/power-linux.xml: New file.
3270 * features/rs6000/power64-linux.xml: New file.
3271 * features/rs6000/powerpc-32l.xml: New file.
3272 * features/rs6000/powerpc-altivec32l.xml: New file.
3273 * features/rs6000/powerpc-64l.xml: New file.
3274 * features/rs6000/powerpc-altivec64l.xml: New file.
3275 * features/rs6000/powerpc-e500l.xml: New file.
3276 * features/rs6000/powerpc-32l.c: New (generated) file.
3277 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3278 * features/rs6000/powerpc-64l.c: New (generated) file.
3279 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3280 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3282 * regformats/reg-ppc.dat: Remove.
3283 * regformats/reg-ppc64.dat: Remove.
3284 * regformats/rs6000/powerpc-32.dat: Remove.
3285 * regformats/rs6000/powerpc-64.dat: Remove.
3286 * regformats/rs6000/powerpc-e500.dat: Remove.
3287 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3288 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3289 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3290 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3291 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3293 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3295 * thread.c (delete_thread): Call observer_notify_thread_exit.
3296 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3297 thread_exit observer.
3298 (mi_thread_exit): New.
3300 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3302 * breakpoint.c (create_exception_catchpoint): Remove prototype
3303 for already deleted function.
3304 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3305 * frame.h (show_stack_frame): Remove prototype.
3306 * stack.c (show_stack_frame): Remove empty, unused function.
3307 * source.c (symtab_to_fullname, print_source_lines): Small fix
3309 * value.c (show_values): Update comments to mention "show values"
3310 command instead of "info history".
3312 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3314 * linespec.c: Include "target.h".
3315 (minsym_found): Handle minimal symbols pointing to function
3316 descriptors. Use find_function_start_pc.
3317 * minsyms.c (msymbol_objfile): New function.
3318 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3319 to function descriptors.
3320 * symtab.c (fixup_section): Only use minimal symbol at the same
3321 address to determine section of a symbol.
3322 (find_function_start_pc): New function.
3323 (find_function_start_sal): Use it.
3324 * symtab.h (msymbol_objfile): Add prototype.
3325 (find_function_start_pc): Likewise.
3326 * value.c: Include "objfiles.h".
3327 (value_fn_field): Handle minimal symbols pointing to function
3329 * Makefile.in (linespec.o): Update dependencies.
3330 (value.o): Likewise.
3332 2008-05-02 Joel Brobecker <brobecker@adacore.com>
3334 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3335 inside a PAD type is a bitfield.
3337 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3339 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3340 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3341 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3342 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3343 Allow typedefs when checking for function pointer arguments.
3344 Right-align small structs passed on the stack.
3345 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3346 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3347 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3349 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3351 * Makefile.in (arm-tdep.o): Update.
3352 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3353 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3354 (arm_pc_is_thumb): Use mapping symbols.
3355 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3356 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3357 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3358 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3359 * gdbarch.sh: Add record_special_symbol.
3360 * gdbarch.c, gdbarch.h: Regenerated.
3361 * objfiles.c (struct objfile_data): Add cleanup member.
3362 (register_objfile_data_with_cleanup): New function, from
3363 register_objfile_data.
3364 (register_objfile_data): Use it.
3365 (objfile_free_data): Call clear_objfile_data.
3366 (clear_objfile_data): Call cleanup functions.
3367 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3369 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3371 * objfiles.c (init_entry_point_info): Handle shared libraries.
3373 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3375 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3378 2008-05-02 Jim Blandy <jimb@codesourcery.com>
3379 Pedro Alves <pedro@codesourcery.com>
3381 Implement displaced stepping.
3383 * gdbarch.sh (max_insn_length): New 'variable'.
3384 (displaced_step_copy, displaced_step_fixup)
3385 (displaced_step_free_closure, displaced_step_location): New
3387 (struct displaced_step_closure): Add forward declaration.
3388 * gdbarch.c, gdbarch.h: Regenerated.
3390 * arch-utils.c: #include "objfiles.h".
3391 (simple_displaced_step_copy_insn)
3392 (simple_displaced_step_free_closure)
3393 (displaced_step_at_entry_point): New functions.
3394 * arch-utils.h (simple_displaced_step_copy_insn)
3395 (simple_displaced_step_free_closure)
3396 (displaced_step_at_entry_point): New prototypes.
3398 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3399 (I386_MAX_MATCHED_INSN_LEN): ... this.
3400 (i386_absolute_jmp_p, i386_absolute_call_p)
3401 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3402 (i386_displaced_step_fixup): New functions.
3403 (struct i386_insn, i386_match_insn): Update.
3404 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3405 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3406 (i386_displaced_step_fixup): New prototype.
3407 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3408 Register gdbarch_displaced_step_copy,
3409 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3410 and gdbarch_displaced_step_location functions.
3412 * infrun.c (debug_displaced): New variable.
3413 (show_debug_displaced): New function.
3414 (struct displaced_step_request): New struct.
3415 (displaced_step_request_queue, displaced_step_ptid)
3416 (displaced_step_gdbarch, displaced_step_closure)
3417 (displaced_step_original, displaced_step_copy)
3418 (displaced_step_saved_copy, can_use_displaced_stepping): New
3420 (show_can_use_displaced_stepping, use_displaced_stepping)
3421 (displaced_step_clear, cleanup_displaced_step_closure)
3422 (displaced_step_dump_bytes, displaced_step_prepare)
3423 (displaced_step_clear_cleanup, write_memory_ptid)
3424 (displaced_step_fixup): New functions.
3425 (resume): Call displaced_step_prepare.
3426 (proceed): Call read_pc once, and remember the value. If using
3427 displaced stepping, don't remove breakpoints.
3428 (handle_inferior_event): Call displaced_step_fixup. Add some
3429 debugging output. When we try to step over a breakpoint, but get
3430 a signal to deliver to the thread instead, ensure the step-resume
3431 breakpoint is actually inserted. If a thread hop is needed, and
3432 displaced stepping is enabled, don't remove breakpoints.
3433 (init_wait_for_inferior): Call displaced_step_clear.
3434 (_initialize_infrun): Add "set debug displaced" command. Add
3435 "maint set can-use-displaced-stepping" command. Clear
3436 displaced_step_ptid.
3437 * inferior.h (debug_displaced): Declare variable.
3438 (displaced_step_dump_bytes): Declare function.
3440 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3443 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3445 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3446 (arm_force_mode_string, arm_show_fallback_mode)
3447 (arm_show_force_mode): New.
3448 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3450 (_initialize_arm_tdep): Add "set arm fallback-mode"
3451 and "set arm force-mode".
3452 * NEWS: Document new commands.
3454 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3456 * main.h (batch_silent): Declare.
3457 * event-top.c: Include main.h.
3458 (gdb_setup_readline): Remove extern batch_silent declaration.
3459 * infrun.c (normal_stop): Don't print source location when running in
3460 --batch-silent mode.
3461 * Makefile.in (event-top.o): Add main.h dependency.
3463 2008-05-02 Andreas Schwab <schwab@suse.de>
3465 * target.h (struct target_ops): Add
3466 to_watchpoint_addr_within_range.
3467 (target_watchpoint_addr_within_range): New function.
3468 * target.c (update_current_target): Inherit
3469 to_watchpoint_addr_within_range, defaulting to
3470 default_watchpoint_addr_within_range.
3471 (default_watchpoint_addr_within_range): New function.
3472 (debug_to_watchpoint_addr_within_range): New function.
3473 (setup_target_debug): Set to_watchpoint_addr_within_range.
3474 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3476 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3477 * breakpoint.c (watchpoints_triggered): Use
3478 target_watchpoint_addr_within_range.
3480 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3482 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3483 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3484 Set gdb_osabi to GDB_OSABI_DICOS.
3486 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3487 * osabi.c (gdb_osabi_name): Add "DICOS".
3489 * i386-dicos-tdep.c: New file.
3491 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3492 (ALLDEPFILES): Add i386-dicos-tdep.c.
3493 (i386-dicos-tdep.o): New rule.
3495 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3497 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3498 and register the fork's PTID as a thread.
3500 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3503 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3504 assign its value to the breakpoint created.
3505 (create_breakpoints): Add breakpoint_ops argument and pass it
3506 to create_breakpoint call.
3507 (break_command_really): Add breakpoint_ops argument and pass/assign
3509 (break_command_1): Pass NULL as ops argument.
3510 (set_breakpoint): Pass NULL as ops argument.
3511 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3512 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3513 catch and throw catchpoints.
3515 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3518 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3519 translate signal numeric value from the target to GDB's enum
3521 * gdbarch.c, gdbarch.h: Regenerated.
3522 * gdbarch.sh: Added two new functions target_signal_from_host and
3523 target_signal_to_host.
3524 * target.h (default_target_signal_from_host,
3525 default_target_signal_to_host): New functions - declarations.
3526 * signals/signals.c (struct gdbarch): New declaration.
3527 (default_target_signal_to_host, default_target_signal_from_host): New
3530 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3531 Pedro Alves <pedro@codesourcery.com>
3533 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3534 Johnston <jjohnstn@redhat.com>.
3536 * NEWS: Mention attach to stopped process fix.
3537 * infcmd.c (detach_command, disconnect_command): Discard the thread
3539 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3540 attaching. Use signal_stop_state.
3541 (signal_stop_state): Check stop_soon.
3542 * linux-nat.c (kill_lwp): Declare earlier.
3543 (pid_is_stopped, linux_nat_post_attach_wait): New.
3544 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3546 (linux_nat_attach): Use linux_nat_post_attach_wait.
3547 (detach_callback, linux_nat_detach): Improve handling for signalled
3549 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3550 from the process ID.
3551 * Makefile.in (infcmd.o): Update.
3553 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3555 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3556 * arm-tdep.c (arm_frame_is_thumb): New.
3557 (arm_pc_is_thumb): Clarify comment.
3558 (thumb_analyze_prologue): Remove PC special case.
3559 (thumb_scan_prologue): Take a block_addr argument. Use it for
3560 find_pc_partial_function. Remove unused variables.
3561 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3562 for find_pc_partial_function. Remove PC special case.
3563 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3564 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3565 (arm_get_next_pc): Use arm_frame_is_thumb.
3566 (arm_write_pc): Use CPSR_T instead of 0x20.
3567 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3568 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3570 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3571 DWARF2_FRAME_REG_FN.
3572 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3573 DWARF2_FRAME_REG_FN.
3574 (struct dwarf2_frame_state_reg): Add FN to loc union.
3576 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
3578 * exec.c (print_section_info): Add missing '\n'.
3580 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3582 * thread.c (add_thread): Move observer call to ...
3583 (add_thread_silent): ... here.
3585 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3587 * rs6000-tdep.c: Update for unwinder changes.
3588 * ppcobsd-tdep.c: Likewise.
3590 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3592 * s390-tdep.c: Update for unwinder changes.
3594 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3596 * spu-tdep.c: Update for unwinder changes.
3598 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3600 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3601 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3602 sparc64-linux-tdep.c: Update for unwinder changes.
3604 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3606 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3607 for unwinder changes.
3608 * mips-tdep.c: Likewise.
3609 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3612 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3614 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3617 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3619 Update i386 and amd64 ports for unwinder changes.
3621 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3622 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3623 (amd64_frame_unwind): Use default_frame_sniffer.
3624 (amd64_frame_sniffer): Delete.
3625 (amd64_sigtramp_frame_cache): Expect this_frame.
3626 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3627 (amd64_sigtramp_frame_sniffer): Update signature.
3628 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3629 (amd64_frame_base_address): Expect this_frame.
3630 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3632 (amd64_init_abi): Use set_gdbarch_dummy_id and
3633 frame_unwind_append_unwinder.
3634 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3635 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3636 (i386_frame_unwind): Use default_frame_sniffer.
3637 (i386_frame_sniffer): Delete.
3638 (i386_sigtramp_frame_cache): Expect this_frame.
3639 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3640 (i386_sigtramp_frame_sniffer): Update signature.
3641 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3642 (i386_frame_base_address): Update signature.
3643 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3644 (i386_push_dummy_call): Update comment.
3645 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3647 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3648 and frame_unwind_append_unwinder.
3649 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3650 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3651 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3652 i386nbsd-tdep.c: Update for unwinder changes.
3654 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3656 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3657 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3659 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3660 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3661 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3663 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3665 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3667 * tramp-frame.h (struct tramp_frame): Update signature of init.
3668 * Makefile.in (trad-frame.o): Update.
3670 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3672 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3673 (execute_stack_op): Put this_frame in the baton.
3674 (execute_cfa_program): Take this_frame.
3675 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3676 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3677 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3678 (dwarf2_frame_this_id): Adjust to work on this_frame.
3679 (dwarf2_signal_frame_this_id): Delete.
3680 (dwarf2_frame_prev_register): Update signature. Use new frame
3682 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3683 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3684 dwarf2_frame_sniffer.
3685 (dwarf2_append_unwinders): New.
3686 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3688 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3689 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3690 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3691 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3692 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3693 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3694 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3695 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3696 (dwarf2_append_unwinders): Declare.
3697 (dwarf2_frame_base_sniffer): Update declaration.
3698 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3701 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3703 Convert frame unwinders to use the current frame and
3706 * frame.c (frame_debug): Make global.
3707 (get_frame_id): Pass this frame to unwinder routines.
3708 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3709 (do_frame_register_read): Do not discard the return value of
3710 frame_register_read.
3711 (frame_register_unwind): Remove debug messages. Use
3712 frame_unwind_register_value.
3713 (frame_unwind_register_value, get_frame_register_value): New
3715 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3716 (get_frame_args_address, get_frame_type): Pass this frame to
3718 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3720 * frame.h: Update comments.
3721 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3722 (frame_prepare_for_sniffer): Declare.
3723 * frame-unwind.h: Update comments and parameter names.
3724 (default_frame_sniffer): Declare.
3725 (frame_prev_register_ftype): Return a struct value *.
3726 (struct frame_unwind): Remove prev_pc member.
3727 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3728 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3729 (frame_unwind_got_register, frame_unwind_got_memory)
3730 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3731 * frame-base.h: Update comments and parameter names.
3732 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3733 if necessary. Add debugging output.
3734 * sentinel-frame.c (sentinel_frame_prev_register)
3735 (sentinel_frame_this_id): Update for new signature.
3736 (sentinel_frame_prev_pc): Delete.
3737 (sentinel_frame_unwinder): Remove prev_pc.
3738 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3740 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3741 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3742 (frame_unwind_append_sniffer): Delete.
3743 (frame_unwind_append_unwinder): New function.
3744 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3745 from unwinders. Use frame_prepare_for_sniffer.
3746 (default_frame_sniffer, frame_unwind_got_optimized)
3747 (frame_unwind_got_register, frame_unwind_got_memory)
3748 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3749 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3750 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3752 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3753 * gdbarch.c, gdbarch.c: Regenerated.
3754 * frame-base.c (default_frame_base_address)
3755 (default_frame_locals_address, default_frame_args_address): Update
3757 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3758 * infcall.c (call_function_by_hand): Update comments.
3759 * Makefile.in (frame-unwind.o): Update dependencies.
3761 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3763 * ada-lang.c (ada_value_primitive_packed_val): Only check
3764 value_lazy for memory lvals.
3765 * findvar.c (value_of_register_lazy): New function.
3766 (locate_var_value): Only check value_lazy for memory lvals.
3767 * valarith.c (value_subscripted_rvalue): Likewise.
3768 * valops.c (value_fetch_lazy): Handle both memory and register
3770 (search_struct_field, value_slice): Only check value_lazy for memory
3772 * value.c (struct value): Update comment for lazy.
3773 (value_primitive_field): Only check value_lazy for memory lvals.
3774 * value.h (value_lazy): Update comment.
3775 (value_of_register_lazy): Declare.
3777 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3779 * corefile.c (reopen_exec_file): Close any open files.
3781 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3783 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3784 show_memory_breakpoints to 1 while reading the instruction bundle.
3786 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3788 * gdbarch.sh: Document the return_value method. Explain that
3789 the FUNCTYPE parameter might be NULL.
3790 * gdbarch.h: Regenerated.
3791 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3792 type when calling using_struct_return, as this is unnecessary
3795 2008-04-28 Joel Brobecker <brobecker@adacore.com>
3797 * terminal.h (create_tty_session): Fix return type.
3799 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3801 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3803 2008-04-26 Joel Brobecker <brobecker@adacore.com>
3805 * breakpoint.c (condition_command, commands_from_control_command)
3806 (break_command_really): Minor reformatting.
3808 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3810 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3812 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3814 * amd64-tdep.c (amd64_get_longjmp_target): New.
3815 (amd64_init_abi): Register amd64_get_longjmp_target as
3816 gdbarch_get_longjmp_target callback.
3817 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3819 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3821 * breakpoint.h (enum bpstat_what_main_action): Delete
3822 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3824 * breakpoint.c (clrs): Delete.
3825 (bpstat_what): Update table.
3827 * infrun.c (handle_inferior_event): Remove
3828 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3830 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3832 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3833 Adjust all prototypes using mi_cmd_args_ftype to use
3835 (struct mi_cmd): Remove the args_func field.
3836 * mi/mi-cmds.c: Don't provide value for the args_func field.
3837 * mi/mi-main.c (mi_execute_async_cli_command)
3838 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3839 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3840 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3841 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3842 (mi_cmd_target_download): Adjust.
3843 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3844 (mi_cmd_execute): Do not check for args_func.
3845 (mi_execute_async_cli_command): Adjust.
3846 * mi/mi-parse.c: Don't check for args_func.
3848 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3850 * breakpoint.c (bpstat_check_location)
3851 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3852 New, extracted from bpstat_stop_status.
3853 (bpstat_stop_status): Use the above.
3855 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3857 * mi/mi-main.c (last_async_command): Rename to current_token.
3858 (previous_async_command): Remove.
3859 (mi_cmd_gdb_exit): Adjust.
3860 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3861 (mi_cmd_target_select): Adjust.
3862 (mi_cmd_execute): Don't set previous_async_command. Free token
3863 here even in async mode.
3864 (mi_execute_async_cli_command): Adjust.
3865 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3867 (mi_load_progress): Adjust.
3869 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3871 * infcmd.c (step_1_continuation): Always disable longjmp
3872 breakpoint if we're not going to do another step.
3874 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3876 exec_cleanup murder.
3877 * breakpoint.c (until_break_command_continuation): Add
3878 the 'error' parameter. Directly delete the breakoint as
3879 opposed to running cleanups.
3880 (until_break_command): Install continuation only
3881 after starting the target. Don't use exec cleanups,
3882 use ordinary cleanups. Discard cleanups is successfully
3883 started the target in async mode.
3884 (make_cleanup_delete_breakpoint): Remove.
3885 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3887 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3889 (struct continations): Add the 'error' parameter to the
3890 continuation_hook field.
3891 (add_continuation, do_all_continuations)
3892 (add_intermediate_continuation)
3893 (do_all_intermediate_continuations): Add the 'error' parameter.
3894 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3895 * inf-loop.c (inferior_event_handler): Instead of calling
3896 discard_all_continuations, use do_all_continuations with 1 as
3897 'error' parameter. Pass 0 as 'error' parameter in existing uses
3898 of discard_all_continuations.
3899 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3901 (step_once): Install continuation only after resuming the target.
3902 (step_1_continuation): Disable longjmp breakpoint on error.
3903 (finish_command_continuation): Add the error parameter. Delete
3904 the finish breakpoint directly, do not use cleanups.
3905 (finish_command): Do not use exec_cleanups. Always setup
3906 continuation. For sync case, immediately run them.
3907 (attach_command_continuation): Add the error parameter.
3908 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
3909 remove step_resume_breakpoint -- adjust delete it directly.
3910 * interps.c (interp_set): Adjust call to do_all_continations.
3911 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
3913 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
3915 (mi_cmd_execute): Do not use exec_cleanup.
3916 (mi_execute_async_cli_command): Simplify the string concatenation
3917 logic. Do no use exec cleanup.
3918 (mi_exec_async_cli_cmd_continuation): New parameter error.
3919 Free last_async_command.
3920 * top.c (command_line_handler_continuation): New parameter error.
3921 * utils.c (exec_cleanup_chain, make_exec_cleanup)
3922 (do_exec_cleanups): Remove.
3923 (add_continuation, do_all_continations)
3924 (add_intermediate_continuation)
3925 (do_all_intermediate_continuations): New parameter error.
3927 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3929 * breakpoint.h (bp_location_p): New typedef.
3930 Register a vector of bp_location_p.
3931 * breakpoint.c (always_inserted_mode)
3932 (show_always_inserted_mode): New.
3933 (unlink_locations_from_global_list): Remove.
3934 (update_global_location_list)
3935 (update_global_location_list_nothrow): New.
3936 (update_watchpoint): Don't free locations.
3937 (should_insert_location): New.
3938 (insert_bp_location): Use should_insert_location.
3939 (insert_breakpoint_locations): Copied from
3941 (insert_breakpoint): Use insert_breakpoint_locations.
3942 (bpstat_stop_status): Call update_global_location_list
3943 when disabling breakpoint.
3944 (allocate_bp_location): Don't add to bp_location_chain.
3945 (set_raw_breakpoint)
3946 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
3947 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
3948 (enable_overlay_breakpoints, disable_overlay_breakpoints)
3949 (set_longjmp_resume_breakpoint)
3950 (enable_watchpoints_after_interactive_call_stop)
3951 (disable_watchpoints_before_interactive_call_start)
3952 (create_internal_breakpoint)
3953 (create_fork_vfork_event_catchpoint)
3954 (create_exec_event_catchpoint, set_momentary_breakpoint)
3955 (create_breakpoints, break_command_1, watch_command_1)
3956 (create_exception_catchpoint)
3957 (handle_gnu_v3_exceptions)
3958 (disable_breakpoint, breakpoint_re_set_one)
3959 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3960 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3961 Call update_global_location_list.
3962 (delete_breakpoint): Don't remove locations and don't
3963 try to reinsert them. Call update_global_location_list.
3964 (update_breakpoint_locations): Likewise.
3965 (restore_always_inserted_mode): New.
3966 (update_breakpoints_after_exec): Temporary disable
3967 always inserted mode.
3968 * Makefile.in: Update dependencies.
3970 * infrun.c (proceed): Remove breakpoints while stepping
3972 (handle_inferior_event): Don't remove or insert
3974 * linux-fork.c (checkpoint_command): Remove breakpoints
3975 before fork and insert after.
3976 (linux_fork_context): Remove breakpoints before switch
3978 * target.c (target_disconnect, target_detach): Remove
3979 breakpoints from target.
3982 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3984 * breakpoint.c (print_one_breakpoint_location): In MI
3985 mode, report the location string the breakpoint was
3986 originally created with.
3988 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3990 * Makefile.in (xtensa-tdep.o): Update dependencies.
3991 * configure.tgt (xtensa*): Update dependencies.
3992 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3993 Local variable areg renamed to arreg.
3994 (areg_number): New function.
3995 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3996 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3997 replaced by arreg_number.
3998 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3999 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4000 (xtensa_scan_prologue): New function.
4001 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4002 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4003 value based on prologue analysis. Fix the bugs preventing WS and
4004 AR4-AR7/A11 registers from getting right values for intermediate frames,
4005 whose registers have been already spilled.
4006 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4007 and arreg_number appropriately.
4008 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4009 svr4_ilp32_fetch_link_map_offsets.
4011 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
4013 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4014 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4016 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4018 * acinclude.m4: Add override.m4.
4019 * configure: Regenerate.
4021 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4023 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4024 initialized with a trailing space now. Use PROMPT_ARG of
4025 COMMAND_LINE_INPUT instead of printing it ourselves.
4027 2008-04-22 Joel Brobecker <brobecker@adacore.com>
4029 * NEWS: Document support for 64-bit core file.
4031 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
4033 * NEWS: Add information on calling convention and new SH CLI options.
4035 * sh-tdep.c (sh_cc_gcc): New static string.
4036 (sh_cc_renesas): Ditto.
4037 (sh_cc_enum): New static string array.
4038 (sh_active_calling_convention): New static string pointer denoting
4039 active user chosen ABI.
4040 (sh_is_renesas_calling_convention): New function to return function
4041 specific ABI, or user choice if necessary.
4042 (sh_use_struct_convention): Rename first argument and turn around its
4043 meaning. Check for renesas ABI and return accordingly.
4044 (sh_use_struct_convention_nofpu): New function.
4045 (sh_next_flt_argreg): Get function type as third parameter. Check
4046 for renesas ABI and choose floating registers accordingly.
4047 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4048 struct return slot accordingly.
4049 (sh_push_dummy_call_nofpu): Ditto.
4050 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4051 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4052 (sh_return_value_fpu): Evaluate ABI and give to
4053 sh_use_struct_convention.
4054 (show_sh_command): New function.
4055 (set_sh_command): Ditto.
4056 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4059 * gdbarch.sh (return_value): Add func_type argument.
4060 * gdbarch.c: Regenerate.
4062 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4063 val_type so as not to collide with value_type function. Call
4064 using_struct_return with additional function type argument.
4065 * infcall.c (call_function_by_hand): Call using_struct_return and
4066 gdbarch_return_value with additional function type argument.
4067 * infcmd.c (print_return_value): Take addition func_type argument.
4068 Call gdbarch_return_value with additional function type argument.
4069 (finish_command_continuation): Call print_return_value with additional
4070 function type argument.
4071 (finish_command): Ditto.
4072 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4073 additional function type argument.
4074 * stack.c (return_command): Call using_struct_return and
4075 gdbarch_return_value with additional function type argument.
4076 * value.c (using_struct_return): Take additional function type argument.
4077 * value.h (using_struct_return): Accommodate declaration.
4078 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4079 * amd64-tdep.c (amd64_return_value): Ditto.
4080 * arm-tdep.c (arm_return_value): Ditto.
4081 * avr-tdep.c (avr_return_value): Ditto.
4082 * cris-tdep.c (cris_return_value): Ditto.
4083 * frv-tdep.c (frv_return_value): Ditto.
4084 * h8300-tdep.c (h8300_return_value): Ditto.
4085 (h8300h_return_value): Ditto.
4086 * hppa-tdep.c (hppa32_return_value): Ditto.
4087 (hppa64_return_value): Ditto.
4088 * i386-tdep.c (i386_return_value): Ditto.
4089 * ia64-tdep.c (ia64_return_value): Ditto.
4090 * iq2000-tdep.c (iq2000_return_value): Ditto.
4091 * m32c-tdep.c (m32c_return_value): Ditto.
4092 * m32r-tdep.c (m32r_return_value): Ditto.
4093 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4094 * m68k-tdep.c (m68k_return_value): Ditto.
4095 (m68k_svr4_return_value): Ditto.
4096 * m88k-tdep.c (m88k_return_value): Ditto.
4097 * mep-tdep.c (mep_return_value): Ditto.
4098 * mips-tdep.c (mips_eabi_return_value): Ditto.
4099 (mips_n32n64_return_value): Ditto.
4100 (mips_o32_return_value): Ditto.
4101 (mips_o64_return_value): Ditto.
4102 * mn10300-tdep.c (mn10300_return_value): Ditto.
4103 * mt-tdep.c (mt_return_value): Ditto.
4104 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4105 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4106 (ppc_sysv_abi_broken_return_value): Ditto.
4107 (ppc64_sysv_abi_return_value): Ditto.
4108 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4109 (ppc_sysv_abi_broken_return_value): Ditto.
4110 (ppc64_sysv_abi_return_value): Ditto.
4111 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4112 * rs6000-tdep.c (rs6000_return_value): Ditto.
4113 * s390-tdep.c (s390_return_value): Ditto.
4114 * score-tdep.c (score_return_value): Ditto.
4115 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4116 (sh_return_value_fpu): Ditto.
4117 * sh64-tdep.c (sh64_return_value): Ditto.
4118 * sparc-tdep.c (sparc32_return_value): Ditto.
4119 * sparc64-tdep.c (sparc64_return_value): Ditto.
4120 * spu-tdep.c (spu_return_value): Ditto.
4121 * v850-tdep.c (v850_return_value): Ditto.
4122 * vax-tdep.c (vax_return_value): Ditto.
4123 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4124 * xtensa-tdep.c (xtensa_return_value): Ditto.
4126 * gdbtypes.h (struct type): Add calling_convention member.
4127 * dwarf2read.c (read_subroutine_type): Add calling convention read
4128 from DW_AT_calling_convention attribute to function type.
4130 2008-04-22 Markus Deuling <deuling@de.ibm.com>
4132 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4133 multi_f77_subscript to support values from registers.
4134 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4135 * value.h (value_subscripted_rvalue): Add prototype.
4137 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4139 * f-valprint.c (f_val_print): Likewise.
4141 2008-04-21 Craig Silverstein <csilvers@google.com>
4143 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4146 2008-04-21 Pedro Alves <pedro@codesourcery.com>
4148 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4149 section is not a code section.
4151 2008-04-19 Craig Silverstein <csilvers@google.com>
4153 * NEWS: Add information on compressed debug sections.
4155 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4157 * mi/mi-cmd-var.c (varobj_update_one): Print new
4158 value for variable objects that changed type.
4160 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4162 * varobj.c (varobj_invalidate): Don't touch floating
4165 2008-04-19 Mark Kettenis <kettenis@gnu.org>
4167 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4168 (multiple_symbols_cancel): Remove extra const.
4169 * symtab.h: Likewise.
4171 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
4173 * interps.c (top_level_interpreter): Rename static variable...
4174 (top_level_interpreter_ptr): ...to this.
4175 (top_level_interpreter): New function.
4177 * interps.h: New extern for top_level_interpreter.
4179 * linespec.c: Include interps.h and mi/mi-cmds.h.
4180 (decode_line_2): When using MI, always set all breakpoints in menu.
4182 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4184 2008-04-18 Craig Silverstein <csilvers@google.com>
4186 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4187 * config.in, configure: Regenerate.
4188 * dwarf2read.c: Include zlib.h if present.
4189 Modified *_SECTION macros.
4190 (section_is_p): New.
4191 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4192 (dwarf2_resize_section): New.
4193 to determine whether a given section has a given name.
4194 (zlib_decompress_section): New.
4195 (dwarf2_read_section): Read the compressed section if present
4197 * MAINTAINERS: Added myself to section Write After Approval.
4199 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4201 * defs.h (exec_set_section_offsets): Remove prototype.
4202 * exec.c (exec_set_section_offsets): Remove function.
4204 2008-04-18 Joel Brobecker <brobecker@adacore.com>
4206 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4207 in the search for the matching symbol.
4209 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4211 * breakpoint.c (update_watchpoint): Always reparse
4214 2008-04-17 Joel Brobecker <brobecker@adacore.com>
4216 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4217 the breakpoint address only once.
4219 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4221 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4222 rather than a hard-coded architecture, for xcoff executables.
4224 2008-04-17 Doug Evans <dje@google.com>
4226 * buildsym.c (watch_main_source_file_lossage): New fn.
4227 (end_symtab): Call it.
4229 * source.c (find_and_open_source): Add some comments clarifying
4230 handling of FULLNAME argument. Make static. Remove pointless
4233 2008-04-17 Pedro Alves <pedro@codesourcery.com>
4235 * inf-loop.c (inferior_event_handler): Also run the intermediate
4236 continuations in the INF_EXEC_COMPLETE case.
4238 2008-04-16 Tom Tromey <tromey@redhat.com>
4240 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4241 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4242 * cli/cli-decode.c (set_cmd_async_ok): New function.
4243 (get_cmd_async_ok): New function.
4244 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4246 * top.c (execute_command): Use get_cmd_async_ok.
4247 * infcmd.c: Include cli/cli-decode.h.
4248 (_initialize_infcmd): Mark "interrupt" as async-ok.
4249 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4251 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4254 * exec.c: Correct "arch-utils.h" include.
4256 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
4259 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4260 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4261 * breakpoint.c (bpdisp_texst): New function. The function takes over
4262 the role of bpstats static array in print_one_breakpoint_location.
4263 (print_it_typical): Print "Temporary breakpoint" instead
4264 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4265 protocols, print disp field.
4266 (print_one_breakpoint_location): Removed bpdisps static definition.
4267 Call new bpstat_text function to get value for 'disp' field.
4268 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4270 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4272 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4273 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4274 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4275 * gnulib/Makefile.in: Regenerate.
4277 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4279 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4280 (defs_h): Use $(GNULIB_H).
4281 (all-lib): Depend on gnulib/Makefile.
4282 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4283 * config.in, gnulib/Makefile.in: Regenerated.
4285 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4287 * Makefile.in (LIBGNU, INCGNU): Define.
4288 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4289 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4291 ($(LIBGNU), all-lib): New rules.
4292 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4293 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4294 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4295 * gnulib: New directory, from gnulib-tool.
4296 * configure, aclocal.m4: Regenerated.
4298 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4300 * linux-thread-db.c (have_threads_callback): Check thread->private.
4302 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
4303 Vladimir Prus <vladimir@codesourcery.com>
4306 * varobj.c (value_of_root): Update the expression for
4308 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4311 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4313 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4314 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4315 (mi_cmd_var_set_format): Use new mi_parse_format.
4316 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4318 * Makefile.in (mi-cmd-var.o): Update dependencies.
4320 * varobj.h (varobj_get_formatted_value): Declare.
4321 * varobj.c (my_value_of_variable): Added format parameter.
4322 (cplus_value_of_variable): Likewise.
4323 (java_value_of_variable): Likewise.
4324 (c_value_of_variable): Likewise. Evaluate expression based
4325 on format parameter.
4326 (struct language_specific): Add format parameter to function member
4328 (varobj_get_formatted_value): New.
4329 (varobj_get_value): Added format parameter to method call.
4331 2008-04-08 Joel Brobecker <brobecker@adacore.com>
4333 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4334 instance flags of the undefined type before calling replace_type.
4336 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4338 * target.h (enum strata): Remove the download_stratum.
4340 2008-04-07 Doug Evans <dje@google.com>
4342 * buildsym.h (last_source_file): Add dwarf info to comment.
4343 (last_source_start_addr): Ditto.
4345 2008-04-07 Pedro Alves <pedro@codesourcery.com>
4347 * alphanbsd-tdep.c: Include "target.h".
4348 * mn10300-tdep.c: Include "target.h".
4349 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4351 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4353 Fix breakpoint condition that use member variables.
4354 * valops.c (check_field): Remove.
4355 (check_field_in): Rename to check_field.
4356 (value_of_this): Use la_name_of_this.
4357 * value.h (check_field): Adjust prototype.
4359 * language.h (la_value_of_this): Rename to la_name_of_this.
4360 * language.c (unknown_language_defn): Specify "this" for
4362 (auto_language_defn): Likewise.
4363 (local_language_defn): Likewise.
4364 * ada-lang.c (ada_language_defn): Adjust comment.
4365 * c-lang.c (c_language_defn): Adjust comment.
4366 (cplus_language_defn): Specify "this" for name_of_this.
4367 (asm_language_defn): Adjust comment.
4368 (minimal_language_defn): Adjust comment.
4369 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4370 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4371 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4372 * objc-lang.c (objc_language_defn): Specify "self" for
4374 * p-lang.c (pascal_language_defn): Specify "this" for
4376 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4378 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4379 proper scope, and check for field in type of "this", without
4380 trying to create a value.
4382 2008-04-04 Pedro Alves <pedro@codesourcery.com>
4384 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4385 (mi_error_message): Delete declaration.
4386 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4387 returning MI_CMD_ERROR.
4388 * mi/mi-main.c (mi_error_message): Delete.
4389 (mi_cmd_exec_interrupt):
4390 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4391 (mi_cmd_thread_info): Call error instead of returning
4393 (mi_cmd_data_list_register_values): Call error instead of
4394 returning MI_CMD_ERROR. Adapt to new get_register interface.
4395 (get_register): Change return typo to void. Call error instead of
4396 returning MI_CMD_ERROR.
4397 (mi_cmd_data_write_register_values): Call error instead of
4398 returning MI_CMD_ERROR.
4399 (mi_cmd_list_features): Return MI_CMD_DONE.
4400 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4401 (mi_execute_command): Always print exceptions with -error.
4403 2008-04-04 Joel Brobecker <brobecker@adacore.com>
4405 * NEWS: Mention new commands set/show multiple-symbols.
4407 2008-04-03 Joel Brobecker <brobecker@adacore.com>
4409 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4410 (multiple_symbols_cancel): New constants.
4411 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4412 (multiple_symbols_select_mode): New function.
4413 (_initialize_symtab): Add new set/show multiple-symbols commands.
4414 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4415 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4416 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4418 * linespec.c (decode_line_2): Likewise.
4420 2008-04-03 Doug Evans <dje@sebabeach.org>
4422 * symtab.h (enum free_code): Delete free_contents, unused.
4423 * symmisc.c (free_symtab_block): Delete.
4424 (free_symtab, case free_code): Delete.
4426 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4428 * valops.c (value_cast_structs): New function. Cast related
4429 STRUCT types up/down and return cast value. The body of this
4430 function comes mostly from value_cast_pointers.
4431 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4432 to value_cast_structs. Now value_cast_pointers needs only create
4433 appropriate reference after using value_cast_structs for actual
4435 (value_cast): Handle references.
4437 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4439 * MAINTAINERS: Added myself to section Write After Approval.
4441 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4443 * ia64-tdep.c (examine_prologue): Correct array access.
4445 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4447 * cp-support.c (first_component_command): Return if no arguments.
4449 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4451 * ser-mingw.c (ser_windows_open): Open requested name.
4453 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4455 * MAINTAINERS: Added myself.
4457 2008-03-28 Pedro Alves <pedro@codesourcery.com>
4459 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4460 parameter. If it is NULL, don't call error.
4461 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4462 `do_mesg' parameter to find_default_run_target. If no target was
4465 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4467 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4468 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4469 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4471 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4473 2008-03-27 Joel Brobecker <brobecker@adacore.com>
4477 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4479 * features/Makefile (%.dat): Set xmltarget to the base filename
4480 of the XML source, without subdirectory.
4481 * regformats/rs6000/powerpc-32.dat: Regenerate.
4482 * regformats/rs6000/powerpc-64.dat: Regenerate.
4483 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4485 2008-03-27 Markus Deuling <deuling@de.ibm.com>
4487 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4490 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
4492 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4493 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4495 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4497 * objfiles.h (struct objfile): New GDBARCH member.
4498 (get_objfile_arch): Add prototype.
4499 * objfiles.c: Include "arch-utils.h".
4500 (allocate_objfile): Look up gdbarch associated with bfd.
4501 (get_objfile_arch): New function.
4502 * Makefile (objfiles.o): Update dependencies.
4504 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4506 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4508 (locexpr_describe_location): Replace current_gdbarch by
4510 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4511 (dwarf2_add_field): Likewise.
4512 (read_tag_pointer_type): Likewise.
4513 (read_base_type): Likewise.
4514 (new_symbol): Likewise.
4516 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4517 (decode_base_type, decode_function_type): Likewise.
4518 (coff_read_struct_type, coff_read_enum_type): Likewise.
4519 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4520 (decode_base_type): Likewise.
4521 (coff_read_enum_type): Likewise.
4522 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4523 (coff_read_enum_type): Likewise.
4525 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4526 (end_psymtab): Likewise.
4527 (process_one_symbol): Likewise.
4529 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4530 (parse_procedure): Likewise.
4531 (parse_partial_symbols): Likewise.
4533 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4535 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4536 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4538 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4539 static range_index_type by built-in type.
4540 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4541 (read_enum_type): Likewise.
4543 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4546 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4548 * varobj.h (varobj_floating_p): Declare.
4549 * varobj.c (varobj_floating_p): New.
4550 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4551 '@' as the name, update all floating varobjs.
4553 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4555 * varobj.c (struct varobj_root): Rename use_selected_frame to
4556 floating, and clarify the meaning.
4557 (varobj_create, varobj_update, new_root_variable): Adjust.
4558 (value_of_root): Don't use type_changed as in variable,
4560 (c_value_of_root): Adjust.
4562 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4564 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4566 (linux_nat_wait): Add main lwp to gdb's thread list.
4567 * linux-thread-db.c (find_new_threads_callback): Also attach to
4568 already listed threads which thread_db didn't know about yet.
4570 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4572 * linux-nat.c (drain_queued_events): Fix comment typo.
4573 (linux_nat_attach): In async mode, don't rely on storing a pending
4574 status. Instead place the wait status on the pipe.
4575 (linux_nat_resume): Remove unreacheable shortcut code in async
4577 (stop_wait_callback): In async mode, don't store pending status.
4578 Instead, cancel breakpoints or resend the signal appropriatelly.
4579 (cancel_breakpoint): New, refactored from
4580 cancel_breakpoints_callback.
4581 (cancel_breakpoints_callback): Call cancel_breakpoint.
4582 (pipe_to_local_event_queue): Remove special token processing.
4583 (linux_nat_wait): Issue an internal error if a pending status is
4584 found in async mode.
4586 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4588 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4590 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
4591 Vladimir Prus <vladimir@codesourcery.com>
4593 * varobj.c (struct varobj_root): New component thread_id.
4594 (varobj_get_thread_id, check_scope): New functions.
4595 (c_value_of_root): Use check_scope. Switch to the
4596 proper thread if necessary.
4598 * varobj.h (varobj_get_thread_id): New extern.
4600 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
4602 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4605 * top.c: Revert 2008-03-21 changes.
4607 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4609 * thread.c (make_cleanup_restore_current_thread): Make it
4611 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4612 * varobj.c (varobj_update): Don't save/restore frame.
4613 (c_value_of_root): Save/restore thread and frame here,
4614 using make_cleanup_restore_current_thread.
4615 * Makefile.in: Update dependecies.
4617 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4619 * varobj.c (struct varobj_root): Clarify
4620 comment on the frame field.
4621 (varobj_create): Don't set frame if we have no
4624 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4627 Suggested by Jan Kratochvil:
4628 * top.c (gdb_rl_operate_and_get_next_completion): Call
4629 rl_redisplay_function.
4630 (gdb_rl_redisplay): New.
4631 (init_main): Set rl_redisplay_function.
4633 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4635 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4636 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4637 (store_regs_kernel_thread): Likewise.
4639 2008-03-21 Pedro Alves <pedro@codesourcery.com>
4641 Linux native async support.
4643 * target.h (struct target_ops): Delete to_async_mask_value and add
4645 (target_is_async_p, target_async): Formatting.
4646 (target_async_mask_value): Delete.
4647 (target_async_mask): Delete function declaration, and add new
4648 target macro with the same name.
4650 * target.c (update_current_target): Replace to_async_mask_value by
4651 to_async_mask. Default to_async_mask to return_one.
4652 (target_async_mask): Delete.
4653 (find_default_can_async_p, find_default_is_async_p): New.
4654 (init_dummy_target): register find_default_can_async_p and
4655 find_default_is_async_p on the dummy target.
4657 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4658 (debug_linux_nat_async): New global.
4659 (show_debug_linux_nat_async): New function.
4660 (linux_nat_async_enabled, linux_nat_async_mask_value)
4661 (linux_nat_event_pipe, linux_nat_num_queued_events)
4662 (linux_nat_async_events_enabled): New globals.
4663 (struct waitpid_result): New struct.
4664 (waitpid_queue): New global.
4665 (queued_waitpid, push_waitpid, drain_queued_events): New.
4666 (my_waitpid): Call queued_waitpid.
4667 (linux_child_follow_fork): Disable async events during the call.
4668 (blocked_mask): Delete.
4669 (sync_sigchld_action, async_sigchld_action): New globals.
4670 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4671 async mode, block events during the call.
4672 (linux_nat_create_inferior): New.
4673 (linux_nat_attach): In sync mode, restore the mask states. In
4674 async mode, wake the event loop immediatelly.
4675 (detach_callback): Drain all queued events of the lwp we're
4677 (linux_nat_detach): Block async mode, and drain events of the main
4679 (linux_nat_resume): If in async mode, mask async events during the
4680 call. If short circuiting, force event loop to wake up. If
4681 resuming, set target_executing, and register target events in the
4683 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4684 (linux_nat_wait): In async mode, block events during the call.
4685 Only enable/disable passing SIGINT to the inferior in sync mode.
4686 Get events from local waitpid queue. If no interesting events was
4687 found, return to events loop. Reregister target events in the
4688 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4689 (linux_nat_kill): Disable events on entry.
4690 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4691 here. Detach async mode from the event loop if there are no more
4692 forks available, otherwise leave it on.
4693 (sigchld_handler): Assure this is called only in sync mode.
4694 (linux_async_permitted, linux_async_permitted_1): New globals.
4695 (set_maintenance_linux_async_permitted)
4696 (show_maintenance_linux_async_permitted): New functions.
4697 (linux_nat_is_async_p, linux_nat_can_async_p)
4698 (linux_nat_async_mask): New.
4699 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4700 (get_pending_events, async_sigchld_handler): New.
4701 (linux_nat_async_events): New.
4702 (async_terminal_is_ours): New global.
4703 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4704 (async_client_callback, async_client_context): New.
4705 (linux_nat_async_file_handler, linux_nat_async)
4706 (linux_nat_disable_async, linux_nat_enable_async): New.
4707 (linux_nat_add_target): Register linux_nat_create_inferior,
4708 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4709 linux_nat_async_mask, linux_nat_terminal_inferior and
4710 linux_nat_terminal_ours.
4711 (_initialize_linux_nat): Remove local action variable, and update
4712 code that used it to use sync_sigchld_action. Add new
4713 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4714 set/show command in the maintenance class. Add new "linux-async"
4715 maintenance set/show command. Block SIGCHLD by default. Setup
4716 async_sichld_action, and sync_sigchld_action. Install the default
4718 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4721 * linux-thread-db.c (re_check_for_thread_db): New.
4722 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4723 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4724 (thread_db_async_mask): New.
4725 (init_thread_db_ops): Register thread_db_can_async_p,
4726 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4728 * remote.c (remote_async_mask_value): New.
4729 (remote_return_zero): New.
4730 (init_remote_ops): Register remote_return_zero as callbacks of
4731 to_can_async_p and to_is_async_p.
4732 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4733 use remote_async_mask_value.
4734 (remote_async_mask): New.
4735 (init_remote_async_ops): Remove to_async_mask_value setting and
4736 register remote_async_mask as to_async_mask callback in
4739 * Makefile.in (linux-nat.o): Update.
4741 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4743 * gdbthread.h (add_thread_with_info): New.
4744 * linux-thread-db.c: Add some documentation.
4745 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4746 (struct private_thread_info): Remove th_valid and ti_valid.
4747 Replace ti with tid.
4748 (thread_get_info_callback): Do not add TID to the new ptid. Do
4750 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4751 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4753 (attach_thread): Handle an already-existing thread. Use
4754 add_thread_with_info. Cache the th and tid.
4755 (detach_thread): Verify that private was set. Remove verbose
4756 argument and printing. Update caller.
4757 (thread_db_detach): Do not adjust inferior_ptid.
4758 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4759 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4760 (thread_db_wait): Do not use lwp_from_thread.
4761 (thread_db_pid_to_str): Use the cached TID.
4762 (thread_db_extra_thread_info): Check that private is set.
4763 (same_ptid_callback): Delete.
4764 (thread_db_get_thread_local_address): Do not use it or check
4765 is_thread. Check that private is set. Assume that the thread
4766 handle is already cached.
4767 (init_thread_db_ops): Remove to_resume and to_kill.
4768 * thread.c (add_thread_with_info): New.
4769 (add_thread): Use it.
4770 * linux-nat.c (find_thread_from_lwp): Delete.
4771 (exit_lwp): Do not use it. Check print_thread_events. Print before
4772 deleting the thread.
4773 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4774 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4775 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4776 printf_unfiltered for thread exits.
4777 * procfs.c (procfs_wait): Likewise.
4779 2008-03-21 Chris Demetriou <cgd@google.com>
4781 * symtab.c (rbreak_command): Quote symbol name before passing
4782 it to break_command.
4784 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4786 * eval.c (evaluate_subexp_for_address): Clarify error message.
4787 Use value_must_coerce_to_target.
4788 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4789 * valops.c (value_assign): Call value_coerce_to_target when
4790 assigning to anything but internalvars. Leave GDB-side arrays
4791 as arrays when assigning to internalvars.
4792 (value_must_coerce_to_target, value_coerce_to_target): New.
4793 (value_coerce_array, value_addr): Call value_coerce_to_target.
4794 (value_array): Create the array in GDB's memory instead of
4796 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4799 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4801 * top.c (quit_confirm): Warn that we will kill the program.
4803 2008-03-19 Pedro Alves <pedro@codesourcery.com>
4805 * inflow.c (terminal_ours_1): Guard access to
4806 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4808 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4809 Jim Blandy <jimb@codesourcery.com>
4810 Daniel Jacobowitz <drow@false.org>
4812 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4813 (dwarf2_read_address): Update prototype.
4815 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4816 (signed_address_type): Likewise.
4817 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4818 (execute_stack_op): Update calls to unsigned_address_type,
4819 signed_address_type and dwarf2_read_address. Fix implementation
4820 of DW_OP_deref_size.
4822 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4823 (dwarf2_per_cu_addr_size): Likewise.
4824 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4825 (struct dwarf2_loclist_baton): Likewise.
4827 * dwarf2loc.c (find_location_expression): Update calls to
4828 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4829 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4830 (locexpr_describe_location): Likewise.
4831 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4832 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4833 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4834 to dwarf2_per_cu_addr_size (per_cu).
4835 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4836 (loclist_read_variable): Likewise.
4837 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4839 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4840 instead of baton->objfile.
4841 (dwarf2_per_cu_obfile): New function.
4842 (dwarf2_per_cu_addr_size): Likewise.
4844 * dwarf2-frame.c (struct comp_unit): Move higher.
4845 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4846 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4847 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4848 parameter by using fde->eh_frame_p. Use read_encoded_value
4849 to implement DW_CFA_set_loc.
4850 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4851 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4852 execute_stack_op and execute_cfa_program.
4853 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4854 (size_of_encoded_value): Remove.
4855 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4856 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4857 (add_cie): Set cie->unit backlink.
4858 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4860 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4862 2008-03-17 Markus Deuling <deuling@de.ibm.com>
4864 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4865 gdbarch_bfd_arch_info.
4867 2008-03-17 Joel Brobecker <brobecker@adacore.com>
4869 * aix-thread.c (pdc_read_regs): Minor reformatting.
4871 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4873 * thread.c (print_thread_info): Don't insist
4874 on having current thread if there are no
4877 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4879 * infcmd.c (attach_command_post_wait)
4880 (attach_command_continuation): New.
4881 (attach_command): Support background async execution, and async
4882 execution in synchronous mode.
4884 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4886 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4887 * symmisc.c (dump_symtab_1): Likewise.
4888 * wrapper.c (gdb_value_struct_elt): Likewise.
4890 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4892 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4894 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4896 * linux-nat.c (linux_nat_filter_event): New, refactored from
4898 (linux_nat_wait): Call linux_nat_filter_event.
4900 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4902 * top.c (execute_command): Fix uninitialized variable error.
4904 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4906 * Makefile.in (amd64nbsd-nat.o): New dependency.
4907 * amd64nbsd-nat.c: Include "nbsd-nat.h".
4908 (_initialize_amd64nbsd_nat): Update target vector to use
4909 nbsd_pid_to_exec_file.
4910 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
4912 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4914 Remove ignoring leading exec events code.
4915 * fork-child.c (startup_inferior): Do not set
4916 inferior_ignoring_leading_exec_events.
4917 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
4918 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
4919 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
4920 (handle_inferior_event): Remove code for ignoring leading exec
4922 * target.c (update_current_target): Do not inherit, or default,
4923 to_reported_exec_events_per_exec_call.
4924 (debug_to_reported_exec_events_per_exec_call): Remove.
4925 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
4926 * target.h (target_reported_exec_events_per_exec_call): Remove.
4927 (struct target): Remove the to_reported_exec_events_per_exec_call
4930 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4932 Implement -thread-info.
4933 * gdbthread.h (print_thread_info): Declare.
4935 * thread.c (print_thread_info): New, extracted
4936 from info_threads_command and adjusted to
4937 work for CLI and MI.
4938 (info_threads_command): Use print_thread_info.
4939 * Makefile.in: Update dependencies.
4941 * mi/mi-cmds.c (mi_cmds): Specify a handler
4943 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
4944 * mi/mi-main.c (mi_cmd_thread_info): New.
4945 (mi_cmd_list_features): Include 'thread-info'.
4947 2008-03-14 Kevin Buettner <kevinb@redhat.com>
4949 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4950 to decide whether to match instruction patterns using "sw" and "sd".
4952 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4954 * infcmd.c (jump_command): Postpone disabling stdin until after
4957 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4959 * inflow.c (gdb_getpgrp): New.
4960 (gdb_has_a_terminal): Use get_getpgrp.
4961 (terminal_ours_1): If attach_flag is set, don't refetch
4962 inferior_process_group.
4964 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4966 * features/library-list.dtd: Allow "section" elements as children
4967 of "library". Add "section" element and describe its attributes.
4969 * solib-target.c (struct lm_info): Add section_bases member.
4970 (library_list_start_segment): Error out if seen a section element.
4971 (library_list_start_section): New.
4972 (library_list_end_library): New.
4973 (solib_target_free_library_list): Free section_bases.
4974 (section_attributes): New.
4975 (library_children): Make "segment" optional. Add "section" child.
4976 (library_list_children): Register library_list_end_library.
4977 (solib_target_relocate_section_addresses): Handle section bases.
4979 * NEWS: Mention new qXfer:libraries:read section offsets support.
4981 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4983 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4984 (make_exec_error_cleanup): Remove declarations.
4985 * utils.c (exec_error_cleanup_chain): Remove.
4986 (do_exec_error_cleanups, discard_exec_error_cleanups)
4987 (make_exec_error_cleanup): Remove.
4988 * event-loop.c (start_event_loop): Adjust call to
4990 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4991 (async_disable_stdin): Don't register async_enable_stdin via
4993 * inf-loop.c (inferior_event_handler): Don't
4994 call do_exec_error_cleanups. Call async_enable_stdin instead.
4995 * event-loop.c (start_event_loop): Adjust call to
4997 * tui/tui-interp.c (tui_command_loop): Adjust call to
5000 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5003 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5004 * breakpoint.c (bpstat_do_actions): In async mode,
5005 don't jump to top expecting stop_bpstat to be already
5007 * event-loop.c (start_event_loop): Call async_enable_stdin
5009 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5011 (command_handler): Do not setup continuation here.
5012 (command_line_handler_continuation): Move to...
5013 * top.c (command_line_handler_continuation): ... here.
5014 (execute_command): In async mode, register continuation.
5015 Don't check frame's language in running in async mode.
5016 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5017 * inf-loop.c (complete_execution): Inline into...
5018 (inferior_event_handler): ... here. Clear target_executing before
5019 doing any cleanups. Don't try to show prompt if the target was
5021 * infcmd.c (signal_command): Add support for async mode.
5022 (finish_command): Only add continuation if the target was
5023 successfully resumed.
5024 * remote.c (init_async_opts): Register to_get_thread_local_address
5026 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5027 with sync_execution.
5028 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5031 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5033 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5034 * exec.c (exec_bfd_mtime): Define.
5035 (exec_close): Clear it.
5036 (exec_file_attach): Set it.
5037 * gdbcore.h (exec_bfd_mtime): Declare.
5038 * source.c (find_source_lines): Do not use bfd_get_mtime.
5040 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5042 * top.c (simplified_command_loop): Remove.
5044 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5046 Remove unused remote.c hooks.
5047 * remote.c (deprecated_target_resume_hook)
5048 (deprecated_target_wait_loop_hook): Remove.
5049 (remote_resume): Do not call deprecated_target_resume_hook.
5050 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5051 (remote_async_wait): Likewise.
5053 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5055 Implement MI notification for new threads.
5056 * doc/observer.texi (new_thread): Document.
5057 * observer.sh: Forward declare struct thread_info.
5058 * thread.c (add_thread): Notify observer.
5060 * interps.h (interp_init_ftype): New parameter
5062 (interp_set): Likewise.
5063 (top_level_interpreter_data): Declare.
5064 * interps.c (interp_set): New parameter top_level.
5065 Pass it to interpreter's init function. Remember
5066 top level interpreter.
5067 (interpreter_exec_cmd): Adjust.
5068 (top_level_interpreter_data): New.
5069 * main.c (captured_main): Pass 1 for top_level
5070 parameter of interp_set.
5071 * cli/cli-interp.c (cli_interpreter_init): New
5072 parameter top_level.
5073 * tui/tui-interp.c (tui_init): New parameter top_level.
5075 * mi/mi-interp.c (mi_new_thread): New.
5076 (mi_interpreter_init): If top level, register
5077 observer for new threads.
5079 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5081 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5083 * top.c (execute_command): Disable break and stop
5084 commands in async mode.
5086 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5089 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5090 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5091 Call target_stop in the INF_QUIT_REQ case.
5092 * Makefile.in (inf-loop.o): Update.
5094 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5096 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5097 Call target_stop in the INF_QUIT_REQ case.
5098 * Makefile.in (inf-loop.o): Update.
5100 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5102 * top.c (execute_command): Enable break, info and interrupt
5103 commands in async mode.
5105 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5106 Daniel Jacobowitz <dan@codesourcery.com>
5108 * breakpoint.h (breakpoint_restore_shadows): New
5110 * breakpoint.c (breakpoint_restore_shadows): New.
5111 (read_memory_nobpt): Delete.
5112 * gdbcore.h (read_memory_nobpt): Delete declaration.
5113 * target.c (memory_xfer_partial): Call
5114 breakpoint_restore_shadows.
5115 (restore_show_memory_breakpoints)
5116 (make_show_memory_beakpoints_cleanup): New.
5117 (show_memory_breakpoints): New.
5118 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5119 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5120 Make sure we see memory breakpoints when checking if
5121 breakpoint is still there.
5122 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5123 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5124 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5125 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5127 2008-03-12 Pedro Alves <pedro@codesourcery.com>
5129 * thread.c (add_thread): Use printf_unfiltered to print.
5131 2008-03-12 Joel Brobecker <brobecker@gnat.com>
5133 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5134 that is true only on x86-solaris and x86_64-solaris.
5135 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5136 with proc_get_LDT_entry.
5138 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5140 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5141 * config.in, configure: Regenerate.
5142 * fork-child.c (fork_inferior): Call create_tty_session.
5143 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5144 (create_tty_session): New function.
5145 * terminal.h: Declare create_tty_session.
5147 2008-03-12 Alan Modra <amodra@bigpond.net.au>
5150 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5151 * mipsread.c: Include elf/internal.h.
5152 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5155 2008-03-11 Markus Deuling <deuling@de.ibm.com>
5157 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5158 to get at the current architecture and at the target specific vector.
5159 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5160 remove define of I387_ST0_REGNUM.
5162 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5164 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5165 get at the current architecture
5166 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5169 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5170 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5172 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5173 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5174 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5176 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5177 at the target specific vector.
5179 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5180 architecture. Use gdbarch_tdep to get at the target specific vector.
5182 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5183 update caller. Use gdbarch_tdep to get at the target specific vector.
5185 (i386_register_to_value: Use get_frame_arch to get at the current
5188 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5191 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5192 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5193 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5194 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5196 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5199 (i387_convert_register_p, i387_register_to_value,
5200 i387_value_to_register): Update call for i386_fp_regnum_p.
5202 * i387-tdep.h: Remove comment.
5203 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5204 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5205 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5206 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5207 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5209 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5211 * Makefile.in (fork-child.o): Update.
5212 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5213 argument. Gather all gdbserver features together.
5214 * fork-child.c (exec_wrapper): New variable.
5215 (fork_inferior): Use it.
5216 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5217 (unset_exec_wrapper_command, _initialize_fork_child): New.
5219 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5221 * source.c (directory_command): Modify the determination of
5222 condition of terminal "from_tty".
5224 2008-03-10 Matt Rice <ratmice@gmail.com>
5226 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5228 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5230 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5231 of the data passing to strtoulst function.
5232 (info_spu_signal_command): Likewise.
5234 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5236 * mi/mi-interp.c (mi_command_loop): Remove
5239 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5241 * remote.c (extended_remote_attach_1): Make local variable pid an int
5244 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5246 * solib-svr4.c (svr4_same_1): New function, originally extracted
5247 from svr4_same and expanded to handle the sparc64 case.
5248 (svr4_same): Move up and reimplement using svr4_same_1.
5249 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5251 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5253 * MAINTAINERS: Move self to Paper trail.
5255 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5257 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5258 * event-loop.c (call_async_signal_handler): New.
5259 * event-loop.h (call_async_signal_handler)
5260 (gdb_call_async_signal_handler): Declare.
5261 (mark_async_signal_handler): Add comments.
5262 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5263 * mingw-hdep.c (sigint_event, sigint_handler): New.
5264 (gdb_select): Use them. Wait for the readline signal handler
5266 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5267 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5268 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5270 (remote_fileio_ctrl_c_signal_handler): Use
5271 gdb_call_async_signal_handler.
5272 (initialize_remote_fileio): Initialize sigint_fileio_token.
5273 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5274 not initialize tokens here.
5275 (handle_remote_sigint_twice): Likewise. Reinstall
5276 handle_remote_sigint.
5277 (async_remote_interrupt_twice): Just call interrupt_query.
5278 (cleanup_sigint_signal_handler): Do not delete tokens.
5279 (remote_interrupt, remote_interrupt_twice): Use
5280 gdb_call_async_signal_handler.
5281 (interrupt_query): Reinstall the default signal handler.
5282 (_initialize_remote): Initialize tokens here.
5284 2008-03-04 Joel Brobecker <brobecker@adacore.com>
5286 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5287 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5288 Change the type of the lr register to code_ptr.
5289 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5290 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5291 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5292 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5293 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5294 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5295 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5297 2008-03-03 James E. Wilson <wilson@tuliptree.org>
5299 * MAINTAINERS: Update my email address.
5301 2008-03-03 Keith Seitz <keiths@redhat.com>
5303 From Dave Murphy <davem@devkitpro.org>:
5304 * configure.ac: Set tcl configdir to win under mingw.
5305 * configure: Regenerate.
5307 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5309 * breakpoint.c (fetch_watchpoint_value): New function.
5310 (update_watchpoint): Set and clear val_valid. Use
5311 fetch_watchpoint_value. Handle unreadable values on the
5312 value chain. Correct check for user-requested array watchpoints.
5313 (breakpoint_init_inferior): Clear val_valid.
5314 (watchpoint_value_print): New function.
5315 (print_it_typical): Use it. Do not free or clear old_val. Print
5316 watchpoints even if old_val == NULL.
5317 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5318 becoming readable or unreadable.
5319 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5320 (do_enable_watchpoint): Likewise.
5321 * breakpoint.h (struct breakpoint): Update comment for val. Add
5323 * NEWS: Mention watchpoints on inaccessible memory.
5325 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5327 * Makefile.in (i386-nat.o): Update.
5328 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5329 i386_use_watchpoints.
5330 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5331 i386_use_watchpoints.
5332 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5333 (i386_stopped_by_watchpoint): Update call.
5334 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5335 * config/i386/nm-i386.h: Conditionalize definitions on
5336 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5337 (i386_use_watchpoints): Declare.
5338 (i386_stopped_data_address): Update.
5339 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5340 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5342 2008-02-29 Joel Brobecker <brobecker@adacore.com>
5344 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5345 * version.in: Bump version to 6.8.50.20080229-cvs.
5347 2008-02-28 Markus Deuling <deuling@de.ibm.com>
5349 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5352 2008-02-28 Tom Tromey <tromey@redhat.com>
5354 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5356 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5358 * infcmd.c (kill_if_already_running): Make static. Use
5359 target_require_runnable.
5360 * target.c (target_require_runnable): New.
5361 * target.h (target_require_runnable): Declare.
5363 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5365 * frame.c (reinit_frame_cache): Only annotate if frames were
5368 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5370 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5371 * regformats/reg-ppc64.dat: Likewise.
5373 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5375 * features/Makefile (%.dat): Emit xmltarget statement.
5377 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5378 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5380 * regformats/arm-with-iwmmxt.dat: Regenerate.
5381 * regformats/mips64-linux.dat: Regenerate.
5382 * regformats/mips-linux.dat: Regenerate.
5383 * regformats/rs6000/powerpc-32.dat: Regenerate.
5384 * regformats/rs6000/powerpc-64.dat: Regenerate.
5385 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5387 * regformats/reg-arm.dat: Add xmlarch statement.
5388 * regformats/reg-i386.dat: Likewise.
5389 * regformats/reg-i386-linux.dat: Likewise.
5390 * regformats/reg-x86-64-linux.dat: Likewise.
5391 * regformats/reg-spu.dat: Likewise.
5393 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5395 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5398 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5400 * utils.c (debug_timestamp): New.
5401 (vfprintf_unfiltered): Print timestamps if requested.
5402 (show_debug_timestamp): New.
5403 (initialize_utils): Register "set debug timestamp".
5404 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5406 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5408 * breakpoint.c (skip_prologue_sal): New function.
5409 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5410 computed from a line number.
5412 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5414 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5415 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5416 Set PC register type to "code_ptr".
5417 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5418 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5419 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5420 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5421 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5422 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5423 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5426 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5428 * regformats/regdat.sh: Rename init_registers function in
5429 generated file to init_registers_${name}.
5431 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5432 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5433 * regformats/reg-s390x.dat: Set "name" to s390x.
5435 2008-02-26 Greg Law <glaw@undo-software.com>
5437 * regcache.c (registers_changed): Call reinit_frame_cache.
5439 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5441 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5442 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5443 and svr4_fetch_objfile_link_map.
5444 * Makefile.in (sh-linux-tdep.o): Update.
5446 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5448 * amd64-tdep.c (amd64_classify): Add support for decimal float
5450 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5451 use the struct return convention.
5453 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
5455 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5456 to old format. Discard breakpoint address if shared library is
5458 (breakpoint_1): Adjust formatting of table header accordingly.
5460 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5462 * remote.c (remote_get_threadlist): If the response
5463 is empty, don't try to parse it.
5465 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5467 Unbreak 'target async'.
5468 * serial.c (serial_async): Set the
5469 handler function before enabling async
5472 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5474 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5476 2008-02-21 Pedro Alves <pedro@codesourcery.com>
5478 * remote.c (extended_remote_attach_1): Set attach_flag.
5479 (extended_remote_create_inferior_1): Clear attach_flag.
5481 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5483 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5485 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5486 * solib-svr4.c (solib_svr4_r_brk): New.
5487 (open_symbol_file_object, svr4_current_sos): Always check the
5489 (svr4_fetch_objfile_link_map): Do not set debug_base.
5490 (enable_break): Use r_brk if it is set.
5491 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5492 (svr4_lp64_fetch_link_map_offsets): Likewise.
5493 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5495 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5496 Mark Kettenis <kettenis@gnu.org>
5498 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5499 trad_frame_saved_reg.
5500 (trad-frame.h): New include.
5502 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
5503 instead of frame_obstack_zalloc.
5504 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5506 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
5508 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5510 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5511 from disassemble_info instead of gdbarch_byte_order.
5513 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5514 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5516 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5518 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5519 gdbarch as parameter.
5521 * gdbarch.{c,h}: Regenerate.
5523 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5525 * mem-break.c (default_memory_insert_breakpoint)
5526 (default_memory_remove_breakpoint): Likewise.
5527 * target.h (default_memory_remove_breakpoint)
5528 (default_memory_insert_breakpoint): Likewise.
5530 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5531 parameter. Replace current_gdbarch by gdbarch.
5532 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5533 (m32r_memory_remove_breakpoint): Likewise.
5535 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5537 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5539 2008-02-19 Joel Brobecker <brobecker@adacore.com>
5541 * NEWS: Add entry describing Add support improvements.
5543 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5545 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5548 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5550 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5551 register_offset_hack anymore.
5553 * regcache.{c,h} (register_offset_hack): Remove.
5555 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5557 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5559 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5560 current_gdbarch by gdbarch.
5561 (hppa64_hpux_find_global_pointer): Likewise.
5562 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5563 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5564 find_global_pointer.
5566 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5568 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5570 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5571 of gdbarch_num_regs.
5573 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
5574 replace current_gdbarch by gdbarch.
5575 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5577 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5579 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5580 and replace current_gdbarch by gdbarch.
5582 (store_register): Update call for exec_one_dummy_insn.
5583 (fetch_register, store_register): Update call of regmap.
5585 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5586 parameter and replace current_gdbarch by gdbarch.
5588 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5589 the current architecture. Update call for getregs_supplies and
5591 (ppcnbsd_fetch_inferior_registers): Likewise.
5593 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
5594 replace current_gdbarch by gdbarch.
5595 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5596 get_regcache_arch to get at the current architecture. Update call for
5599 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5601 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
5604 2008-02-15 Markus Deuling <deuling@de.ibm.com>
5606 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5608 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5610 * NEWS: Mention pending breakpints in MI.
5612 2008-02-14 Markus Deuling <deuling@de.ibm.com>
5614 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5616 2008-02-13 Markus Deuling <deuling@de.ibm.com>
5618 Add script to build and test GDB using enable-targets=all.
5620 * gdb_buildall.sh: New file.
5622 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5624 * NEWS (New native configurations): Xtensa GNU/Linux.
5625 (New targets): Xtensa GNU/Linux.
5626 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5628 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5629 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5630 * configure.tgt (xtensa*-*-linux*): New entry.
5631 * xtensa-config.c (xtensa_tdep): New variable.
5632 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5633 (rmap): Change format based on new macro XTREG.
5634 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5635 * xtensa-linux-nat.c: New.
5636 * xtensa-linux-tdep.c: New.
5637 * xtensa-xtregs.c: New.
5638 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5639 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5640 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5641 (xtensa_register_t): New field coprocessor.
5642 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5643 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5644 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5645 Update to handle privileged registers.
5646 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5647 (xtensa_push_dummy_call): Set windowstart register correctly.
5648 (call0_analyze_prologue): Initialize xtensa_default_isa.
5649 (xtensa_derive_tdep): New.
5650 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5651 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5652 Call xtensa_derive_tdep().
5653 * config/xtensa/linux.mh: New.
5654 * regformats/reg-xtensa.dat: New.
5656 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
5658 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5659 (filenames.h): New include.
5660 * Makefile.in (corelow.o): Add dependency for filenames.h.
5662 2008-02-08 Doug Evans <dje@google.com>
5664 * source.c (find_and_open_source): Always rewrite absolute filenames.
5666 2008-02-07 Doug Evans <dje@google.com>
5668 * breakpoint.c: #include "hashtab.h".
5669 (ambiguous_names_p): New fn.
5670 (update_breakpoint_locations): When restoring bp enable status, don't
5671 compare function names if any functions have same name.
5672 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5674 2008-02-07 Joel Brobecker <brobecker@adacore.com>
5676 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5677 instead of just a VEC*. Update use of SV.
5678 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5680 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5682 * NEWS: Put all new commands since gdb-6.7 together.
5684 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5686 * ada-lang.c: #include "vec.h".
5687 (struct string_vector, new_string_vector, string_vector_append):
5689 (char_ptr): New typedef.
5690 (DEF_VEC_P (char_ptr)): New VEC type.
5691 (symbol_completion_add): Update profile to take the new VEC type
5692 instead of the old string_vector structure. Update code accordingly.
5693 (ada_make_symbol_completion_list): Use the new VEC type instead of
5694 the old string_vector structure, and update the code accordingly.
5695 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5697 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5699 * p-exp.y: Set current_type in missing places.
5700 (leftdiv_is_integer): New static variable.
5701 Typecast right operand of BINOP_DIV to long_double if both operands
5704 2008-02-06 Maciej W. Rozycki <macro@mips.com>
5706 * remote-mips.c (set_breakpoint): Rename to...
5707 (mips_set_breakpoint): ... this.
5708 (clear_breakpoint): Rename to...
5709 (mips_clear_breakpoint): ... this.
5710 (common_breakpoint): Rename to...
5711 (mips_common_breakpoint): ... this.
5712 (check_lsi_error): Rename to...
5713 (mips_check_lsi_error): ... this.
5715 2007-02-05 Joel Brobecker <brobecker@adacore.com>
5717 * language.h (struct language_defn): Add new field
5718 la_make_symbol_completion_list.
5719 * symtab.c (default_make_symbol_completion_list): Renames
5720 make_symbol_completion_list.
5721 (make_symbol_completion_list): New function.
5722 * symtab.h (default_make_symbol_completion_list): Add declaration.
5723 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5724 (auto_language, local_language): Likewise.
5725 * objc-lang.c (objc_language_defn): Likewise.
5726 * scm-lang.c (scm_language_defn): Likewise.
5727 * m2-lang.c (m2_language_defn): Likewise.
5728 * f-lang.c (f_language_defn): Likewise.
5729 * jv-lang.c (java_language_defn): Likewise.
5730 * p-lang.c (pascal_language_defn): Likewise.
5731 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5732 (minimal_language_defn): Likewise.
5733 * ada-lang.c (struct string_vector): New structure.
5734 (new_string_vector, string_vector_append, ada_unqualified_name)
5735 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5736 (ada_make_symbol_completion_list): New functions.
5737 (ada_language_defn): Set la_make_symbol_completion_list.
5738 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5739 this function is static.
5741 2008-02-05 Kevin Buettner <kevinb@redhat.com>
5743 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5744 to account for call site optimizations.
5746 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5748 * tracepoint.c (read_actions): Handle end-of-text indicator
5749 in action list properly. (Committed by Jim Blandy)
5751 2008-02-05 Jim Blandy <jimb@red-bean.com>
5753 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5754 pseudoregister, not an internal error.
5755 Reported by: Andrzej Zaborowski
5757 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5759 * varobj.c (c_value_of_variable): Use xstrdup.
5761 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5763 Update stored rendition of varobj value when format changes.
5764 * varobj.c (varobj_set_display_format): Recomputed
5766 (c_value_of_variable): Return print_value.
5768 2008-02-03 Doug Evans <dje@google.com>
5770 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5771 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5772 * valops.c (value_one): New function.
5773 * value.h (value_one): Declare.
5775 Fix argument promotion for binary arithmetic ops for C.
5776 * valarith.c (unop_result_type): New fn.
5777 (binop_result_type): New fn.
5778 (value_binop): Move result type computation to binop_result_type.
5779 (value_pos, value_neg, value_complement): Move result type
5780 computation to unop_result_type.
5783 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5784 Return basetype, fieldno if found. All callers updated.
5785 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5787 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5788 * symfile.h (fill_in_vptr_fieldno): Delete.
5790 2008-02-02 Doug Evans <dje@google.com>
5792 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5794 * typeprint.c (*): Whitespace cleanup.
5796 2008-02-02 Mark Kettenis <kettenis@gnu.org>
5797 Luis Machado <luisgpm@br.ibm.com>
5798 Thiago Jung Bauermann <bauerman@br.ibm.com>
5800 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5801 don't fit into registerson the stack the way GCC does.
5803 2008-02-01 Joel Brobecker <brobecker@adacore.com>
5805 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5806 hash table for Ada symbols. Just store the linkage name as is,
5807 and leave the demangled_name as NULL.
5809 2007-02-01 Joel Brobecker <brobecker@adacore.com>
5811 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5812 in the global scope.
5813 (new_symbol): Likewise.
5815 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5817 * breakpoint.c (break_command_1): Return void.
5818 (break_command_really): Return void. Rethrow
5819 exceptions instead of returning.
5820 (gdb_breakpoint): Remove the error_message parameter.
5821 Return void. Rename to set_breakpoint.
5822 * gdb.h (gdb_breakpoint): Rename and move to...
5823 * breakpoint.h (set_breakpoint): ...here.
5824 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5825 event hooks even if exception is thrown. Adjust to
5826 gdb_breakpoint interface changes.
5829 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5831 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5832 float in both first and second word in the doubleword, to support
5835 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5837 Properly rethrow exception. This fixes errors
5838 about non-existent functions for -break-insert.
5839 * breakpoint.c (break_command_really): Use throw_exception
5840 for rethrowing. If rethrowing, don't print the exception.
5842 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5844 * NEWS: Mention Decimal Floating Point support.
5846 2008-01-31 Joel Brobecker <brobecker@adacore.com>
5848 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5849 value type to builtin_type_void_func_ptr.
5851 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5853 * s390-tdep.c (is_float_singleton, is_float_like,
5854 alignment_of, s390_return_value): Make checks for
5855 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5857 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
5858 Thiago Jung Bauermann <bauerman@br.ibm.com>
5860 * infcmd.c (default_print_registers_info): Also print hex
5861 raw contents for TYPE_CODE_DECFLOAT registers.
5862 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5863 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5864 (rs6000_register_name): Add support for DFP pseudo-registers.
5865 (rs6000_pseudo_register_type): Likewise.
5866 rs6000_pseudo_register_reggroup_p): Likewise.
5867 (ppc_pseudo_register_read): New function.
5868 (ppc_pseudo_register_write): Likewise.
5869 (rs6000_pseudo_register_read): Likewise.
5870 (rs6000_pseudo_register_write): Likewise.
5871 (e500_pseudo_register_read): Move checks to
5872 rs6000_pseudo_register_read.
5873 (e500_pseudo_register_write): Move checks to
5874 rs6000_pseudo_register_write.
5875 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5876 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5877 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5878 num_pseudo_regs to account for DFP pseudo regs.
5880 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5882 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5883 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5884 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5885 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5886 e500_pseudo_register_read, e500_pseudo_register_write): Use
5887 IS_SPE_PSEUDOREG macro.
5888 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5889 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5890 Remove initialization of tdep->ppc_ev31_regnum.
5892 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5894 * printcmd.c (print_formatted): Handle references as for unformatted
5897 2008-01-30 Joel Brobecker <brobecker@adacore.com>
5899 * eval.c (evaluate_subexp_standard): Add handling of user
5900 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5902 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5904 * eval.c (evaluate_subexp_standard): Support
5905 BINOP_INTDIV opcode.
5907 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
5909 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5911 For BINOP_EXP, use length and signedness of left operand only for
5912 result, as for shifts.
5913 For integral operands to BINOP_EXP, use new integer_pow and
5914 uinteger_pow functions so as to get full range of results.
5915 (integer_pow): New function.
5916 (uinteger_pow): New function.
5918 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
5920 Use vector for varobj_list_children interface.
5921 * gdb/varobj.c (varobj_list_children): Return vector
5923 * gdb/varobj.h (varobj_list_children): Adjust
5925 (varobj_p): Declare. Declare vector thereof.
5926 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
5927 for varobj_list_children change.
5928 * Makefile.in (varobj_h): Update dependencies.
5930 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5932 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
5933 TYPE_CODE_DECFLOAT arguments.
5934 (ppc64_sysv_abi_push_dummy_call) Likewise.
5935 (get_decimal_float_return_value): New function.
5936 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
5937 values by calling get_decimal_float_return_value.
5938 (ppc64_sysv_abi_return_value): Likewise.
5940 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
5942 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
5943 for preprocessor macro information. Formatting changes.
5945 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5947 * remote.c (struct remote_state): Add cached_wait_status.
5948 (remote_exec_file): New variable.
5949 (PACKET_vAttach, PACKET_vRun): New constants.
5950 (extended_remote_restart): Do not query for status.
5951 (struct start_remote_args): New.
5952 (remote_start_remote): Take it as a second argument. Check
5953 whether the target is running. Issue an error for non-running
5954 non-extended targets. Cache the wait status. Set inferior_ptid
5956 (remote_open_1): Prompt to disconnect non-running targets. Make
5957 sure the target is marked running. Do not set inferior_ptid here.
5958 Update call to remote_start_remote. Do not call remote_check_symbols
5959 if the target is not running.
5960 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5961 argument. Handle a non-running target.
5962 (remote_detach): Use it.
5963 (extended_remote_detach): New.
5964 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5965 (extended_remote_attach_1, extended_remote_attach)
5966 (extended_async_remote_attach): New.
5967 (remote_vcont_resume): Remove unused variable.
5968 (remote_wait, remote_async_wait): Use any cached wait status.
5969 (putpkt_binary, getpkt): Clear any cached wait status.
5970 (extended_remoute_mourn_1): New.
5971 (extended_remote_mourn): Use it.
5972 (extended_async_remote_mourn, extended_remote_run): New.
5973 (extended_remote_create_inferior_1): New.
5974 (extended_remote_create_inferior): Use it.
5975 (extended_remote_async_create_inferior): Likewise.
5976 (remote_xfer_partial): Skip for non-executing targets.
5977 (init_extended_remote_ops): Set to_detach and to_attach.
5978 (init_extended_async_remote_ops): Likewise. Use
5979 extended_async_remote_mourn.
5980 (_initialize_remote): Register vAttach, vRun, and
5981 set remote exec-file.
5982 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5984 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5986 * Makefile.in (symfile.o): Update.
5987 * NEWS: Mention exec tracing support.
5988 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5990 * infcmd.c (kill_if_already_running, detach_command)
5991 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5992 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5993 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5994 targets. Apply the sysroot path to the loaded executable. Use
5995 no_shared_libraries.
5996 * linux-nat.c (linux_child_follow_fork): Print fork following
5997 messages if verbose.
5998 (kill_wait_callback): Kill again before waiting a second time.
5999 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6000 no_shared_libraries.
6002 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6004 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6006 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6008 * nto-tdep.h: Remove #include "defs.h".
6009 * nto-tdep.c: Add #include "defs.h".
6010 * Makefile.in (nto_tdep_h): Update dependencies.
6011 (nto-tdep.o): Likewise.
6013 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6015 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6017 (proceed, start_remote): Update call to wait_for_inferior.
6018 * inferior.h (wait_for_inferior): Update declaration.
6019 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6020 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6021 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6022 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6024 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
6026 * varobj (adjust_value_for_child_access): Added checking for
6027 returned value from gdb_value_ind.
6028 (c_describe_child): Likewise.
6029 (cplus_describe_child): Fixed a typo.
6031 2008-01-29 Jim Blandy <jimb@red-bean.com>
6033 * MAINTAINERS: Update my info.
6035 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6037 Use multiple locations for hardware watchpoints.
6038 This eliminates the need to traverse value chain, doing
6039 various checks, in three different places.
6041 * breakpoint.h (struct bp_location): New fields
6042 lengths and watchpoint_type.
6043 (struct breakpoint): Remove the val_chain field.
6044 * breakpoint.c (is_hardware_watchpoint): New.
6045 (free_valchain): Remove.
6046 (update_watchpoint): New.
6047 (insert_bp_location): For hardware watchpoint, just
6049 (insert_breakpoints): Call update_watchpoint_locations
6050 on all watchpoints. If we have failed to insert
6051 any location of a hardware watchpoint, remove all inserted
6053 (remove_breakpoint): For hardware watchpoints, directly
6055 (watchpoints_triggered): Iterate over locations.
6056 (bpstat_stop_status): Use only first location of
6057 a resource watchpoint.
6058 (delete_breakpoint): Don't call free_valchain.
6059 (print_one_breakpoint): Don't print all
6060 locations for watchpoints.
6061 (breakpoint_re_set_one): Use update_watchpoint for
6064 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6066 Don't reset watchpoint block on solib load.
6068 * breakpoint.c (insert_bp_location): For watchpoints,
6069 recompute condition.
6070 (breakpoint_re_set_one): Instead of recomputing value
6071 and condition for watchpoints, just reset value and
6072 let insert_breakpoints/insert_bp_location recompute it.
6073 Don't do anything about disabled watchpoint.
6075 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6077 * valarith.c (value_binop): Handle unsigned integer
6080 2008-01-28 Kevin Buettner <kevinb@redhat.com>
6082 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6083 instruction pattern that appears frequently in position
6084 independent code. Fix bug in code which looks for "fmov" and
6085 backtracks if no "fmov" is found.
6087 2008-01-28 Doug Evans <dje@google.com>
6089 * dbxread.c (read_dbx_symtab): Fix indentation.
6090 Reformat comments to 80 columns.
6091 Move local var def closer to only use.
6093 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6095 * fork-child.c (SHELL_FILE): Remove #ifndef.
6096 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6098 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6100 * i386-tdep.c (i386_skip_noop): New function.
6101 (i386_analyze_prologue): Call i386_skip_noop function.
6103 2008-01-24 Michael Snyder <msnyder@specifix.com>
6105 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6106 * win32-nat.c (win32_xfer_partial): Ditto.
6107 * target.c (default_xfer_partial): Minor whitespace adjustment.
6109 2008-01-24 Pedro Alves <pedro@codesourcery.com>
6111 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6112 strip bit 1 even if pc doesn't point to thumb code.
6114 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6116 * remote.c (remote_wait): Handle SIGINT between packets.
6117 (remote_async_wait): Likewise.
6119 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6120 Chris Demetriou <cgd@google.com>
6122 * thread.c (add_thread_silent): Renamed
6124 (print_thread_events): New variable definition.
6125 (show_print_thread_events): New function.
6126 (_initialize_thread): Add "set print thread-events" and
6127 "show print thread-events" commands.
6128 (add_thread): Announce new thread.
6129 * gdbthread.h (add_thread_silent): Declare.
6130 (print_thread_events): New variable declaration.
6131 * inf-ttrace.c (inf_ttrace_wait): Don't
6132 inform about new thread, as add_thread is always
6133 called too, and will take care of that.
6134 * infrun.c (handle_inferior_event): Likewise.
6135 * procfs.c (procfs_wait): Likewise.
6136 * remote.c (remote_currthread): Likewise.
6137 * sol-thread.c (sol_thread_wait): Likewise.
6138 * win32-nat.c (get_win32_debug_event): Likewise.
6139 * linux-thread-db.c (attach_thread): Likewise.
6140 Remove the verbose parameter.
6141 (check_event): Make detach_thread be verbose
6142 only if print_thread_events is set.
6143 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6144 about new thread. This is called only from
6145 linux-thread-db.c:attach_thread, which will take care.
6146 Remove the verbose parameter.
6147 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
6149 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
6151 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6153 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6155 * breakpoint.c (break_command_really): New parameter
6157 (break_command_1): Pass 0 as
6158 ignore_count to break_command_really.
6159 (gdb_breakpoint): Pass ignore_count to
6160 break_command_really.
6162 2008-01-21 Kevin Buettner <kevinb@redhat.com>
6164 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6165 sigcontext struct via pointer.
6166 (struct sigframe comment): Update to show new field `psc'.
6168 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6170 * infrun.c (handle_inferior_event): If
6171 we failed to remove breakpoints, error,
6172 don't try to increment PC by hand.
6174 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6176 Add NetBSD/hppa target and host support.
6178 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6179 (hppabsd_gregset): Move to ...
6180 (hppabsd_regset_from_core_section): Rename
6181 hppaobsd_regset_from_core_section and move to ...
6182 (hppabsd_find_global_pointer): Update comment.
6183 (hppabsd_init_abi): Make global. Do not register
6184 hppabsd_regset_from_core_section.
6185 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6187 (_initialize_hppabsd_tdep): Move to ...
6188 * hppaobsd-tdep.c: ... here. New file.
6189 * hppnbsd-tdep.c: New file.
6190 * hppnbsd-nat.c: New file.
6191 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
6192 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6193 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6194 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
6195 * configure.host (hppa*-*-netbsd*): New entry.
6196 * configure.tgt (hppa*-*-netbsd*): New entry.
6197 (hppa*-*-openbsd*): Update.
6198 * NEWS (New native configuration): Mention NetBSD/hppa.
6199 (New targets): Mention NetBSD/hppa.
6201 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6203 * gdbarch.sh (function_list): Add new property bits_big_endian to
6205 * gdbarch.{c,h}: Regenerate.
6207 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6208 gdbarch_bits_big_endian (comment).
6209 (unpack_field_as_long, modify_field): Likewise.
6210 * value.h: Likewise (comment).
6211 * valops.c (value_slice): Likewise.
6212 * valarith.c (value_subscript, value_bit_index): Likewise.
6213 * gdbtypes.h (field): Likewise (comment).
6214 * eval.c (evaluate_subexp_standard): Likewise.
6215 * dwarf2read.c (dwarf2_add_field): Likewise.
6216 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6217 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
6219 * defs.h (BITS_BIG_ENDIAN): Remove.
6221 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6223 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6225 * m2-exp.y (yylex): Likewise.
6226 * objc-exp.y (yylex): Likewise.
6228 * defs.h (DEPRECATED_STREQN): Remove.
6230 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
6232 * MAINTAINERS: Update my email address.
6234 2008-01-17 Jim Blandy <jimb@codesourcery.com>
6236 * README: Mention gdbserver/README.
6238 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6240 * valarith.c (value_binop): Handle BINOP_INTDIV
6241 for unsigned and signed integers.
6243 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6245 * s390-tdep.c (s390_gdbarch_init): Set default long double
6246 type to 128-bit IEEE quad.
6248 2008-01-17 Joel Brobecker <brobecker@adacore.com>
6250 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6252 2008-01-16 Mark Kettenis <kettenis@gnu.org>
6254 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6256 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6257 * value.c: All callers changed.
6259 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6261 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6262 DEPRECATED_STREQ by its expression.
6263 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6264 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6265 (scan_xcoff_symtab): Likewise.
6266 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6267 * f-lang.c (find_common_for_function): Likewise.
6268 * objc-exp.y (parse_number): Likewise.
6270 * defs.h (DEPRECATED_STREQ): Remove.
6272 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6274 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6275 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6276 get_frame_arch to get at the current_architecture. Update AM33_MODE
6278 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6279 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6281 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6283 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6285 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
6287 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6289 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6290 current_gdbarch by gdbarch. Update caller.
6292 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6293 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6294 the current architecture. Update calls of
6295 amd64_native_gregset_supplies_p.
6296 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6297 (amd64bsd_store_inferior_registers): Likewise.
6299 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6301 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6302 Replace current_gdbarch by gdbarch. Update caller.
6304 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6306 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6307 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6308 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6309 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6310 (stabsect_build_psymtabs): Fix indentation.
6312 2008-01-15 Michael Snyder <msnyder@specifix.com>
6314 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6316 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6318 * win32-nat.c (win32_create_inferior): Restore code calling
6319 CloseHandle on ProcessInformation structure.
6321 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6323 * configure.ac: Check for void * as 3 argument of ptrace.
6324 * configure: regenerate.
6326 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6328 * alpha-tdep.c (alpha_heuristic_proc_start)
6329 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6330 current_gdbarch by gdbarch.
6332 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
6333 current architecture by frame_info. Update alpha_heuristic_proc_start
6336 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6337 get_frame_arch to get at the current architecture by frame_info. Update
6338 alpha_sigtramp_register_address call.
6340 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6341 current_gdbarch by gdbarch. Update caller.
6342 (convert_to_extended, convert_from_extended): Add endianess parameter
6343 for comparison. Update caller.
6344 (arm_extract_return_value, arm_store_return_value): Use
6345 get_regcache_arch to get at the current architecture.
6347 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6348 current_gdbarch by gdbarch. Update caller.
6349 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6350 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6352 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
6353 gdbarch as parameter. Update caller.
6354 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6355 current_gdbarch by gdbarch. Update caller.
6357 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
6358 update caller. Replace current_gdbarch by gdbarch.
6360 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6361 the current architecture. Replace current_gdbarch by gdbarch.
6362 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6363 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6364 expression. Add gdbarch as parameter and replace current_gdbarch with
6366 (M6811_TDEP): Remove.
6367 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6369 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
6370 current_gdbarch by gdbarch. Update caller.
6372 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6374 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6377 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6378 caller. Relace current_gdbarch by gdbarch.
6379 (altivec_register_p, spe_register_p): Likewise.
6380 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6382 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6383 altivec_register_p and spe_register_p.
6385 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
6386 caller. Replace current_gdbarch by gdbarch.
6387 (score_analyze_prologue): use get_frame_arch to get at the current
6390 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6391 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6392 current_gdbarch by gdbarch. Update caller.
6393 (sparc_frame_cache): Use get_frame_arch to get at the current
6395 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6396 sparc_analyze_prologue.
6398 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6401 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6403 * exec.c: #include "arch-utils.h"
6404 (print_section_info): Use gdbarch_from_bfd to get at the
6405 current architecture. Replace current_gdbarch. Fix indention. Replace
6406 deprecated_print_address_numeric by paddress.
6407 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6409 * valprint.c (val_print_string): Replace
6410 deprecated_print_address_numeric.
6411 * tracepoint.c (trace_mention, scope_info): Likewise.
6412 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6413 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6414 (maintenance_check_symtabs): Likewise.
6415 * symfile.c (list_overlays_command): Likewise.
6416 * stack.c (frame_info, print_block_frame_labels): Likewise.
6417 * printcmd.c (print_address, print_address_demangle)
6418 (address_info): Likewise.
6419 * corefile.c (memory_error): Likewise.
6420 * infcmd.c (jump_command): Likewise.
6421 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6422 (mention, delete_breakpoint): Likewise.
6423 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6424 * dwarf2read.c (dump_die): Likewise.
6425 * ada-valprint.c (ada_val_print_1): Likewise.
6426 * f-valprint.c (f_val_print): Likewise.
6427 * linux-fork.c (info_forks_command): Likewise.
6428 * m32r-com.c (m32r_load_section, m32r_load)
6429 (m32r_upload_command): Likewise.
6431 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6433 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6435 * gdbarch.sh (skip_prologue): Add gdbarch
6437 * gdbarch.{c,h}: Regenerate.
6439 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6440 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6441 * avr-tdep.c (avr_skip_prologue): Likewise.
6442 * cris-tdep.c (cris_skip_prologue): Likewise.
6443 * frv-tdep.c (frv_skip_prologue): Likewise.
6444 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6445 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6446 * i386-tdep.c (i386_skip_prologue): Likewise.
6447 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6448 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6449 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6450 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6451 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6452 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6453 * mep-tdep.c (mep_skip_prologue): Likewise.
6454 * mips-tdep.c (mips_skip_prologue): Likewise.
6455 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6456 * mt-tdep.c (mt_skip_prologue): Likewise.
6457 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6458 * score-tdep.c (score_skip_prologue): Likewise.
6459 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6460 * sh-tdep.c (sh_skip_prologue): Likewise.
6461 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6462 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6463 * spu-tdep.c (spu_skip_prologue): Likewise.
6464 * v850-tdep.c (v850_skip_prologue): Likewise.
6465 * vax-tdep.c (vax_skip_prologue): Likewise.
6466 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6467 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6469 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6470 current_gdbarch by gdbarch.
6471 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6472 * s390-tdep.c (s390_skip_prologue): Likewise.
6474 2008-01-10 Doug Evans <dje@google.com>
6476 * defs.h (struct continuation_arg): Fix typo in comment.
6477 * target.c (target_translate_tls_address): Fix comment spelling error.
6479 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6481 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6482 (DOUBLEST_SCAN_FORMAT): Likewise.
6483 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6484 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6485 * c-exp.y (parse_number): Likewise.
6486 * jv-exp.y (parse_number): Likewise.
6487 * objc-exp.y (parse_number): Likewise.
6488 * p-exp.y (parse_number): Likewise.
6490 2008-01-09 Joel Brobecker <brobecker@adacore.com>
6492 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6493 (check_typedef): Likewise.
6495 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
6497 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6498 seen_double_big_d, treat the new H, D, and DD modifiers as length
6501 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6503 * dwarf2read.c (read_enumeration_type): Add comment.
6505 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6507 * config.in: Regenerate.
6509 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6511 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6513 (ada_convert_actuals): Delete.
6514 * ada-lang.h (ada_convert_actual): Add declaration.
6515 (ada_convert_actuals): Remove declaration.
6516 * infcall.c: #include "ada-lang.h".
6517 (value_arg_coerce): Add new parameter sp. Update function
6518 documetnation. Add handling of Ada function call parameters.
6519 * Makefile.in (infcall.o): Update dependencies.
6521 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6523 * ada-lang.c (ensure_lval): Fix value lval kind.
6524 (convert_actual): Add handling for arguments passed by reference.
6526 2008-01-08 Doug Evans <dje@google.com>
6528 * dbxread.c (read_dbx_symtab): Fix indentation.
6530 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6532 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6533 (valarith.o): Depend on dfp.h.
6534 (valops.o): Likewise.
6535 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6536 (set_decnumber_context): New function.
6537 (decimal_check_errors): Likewise.
6538 (decimal_from_number): Likewise.
6539 (decimal_to_number): Likewise.
6540 (decimal_from_string): Use set_decnumber_context and
6541 decimal_check_errors.
6542 (decimal_from_integral): New function.
6543 (decimal_from_floating): Likewise.
6544 (decimal_to_double): Likewise.
6545 (promote_decimal): Likewise.
6546 (decimal_binop): Likewise.
6547 (decimal_is_zero): Likewise.
6548 (decimal_compare): Likewise.
6549 (decimal_convert): Likewise.
6550 * dfp.h (decimal_from_integral): New prototype.
6551 (decimal_from_floating): Likewise.
6552 (decimal_to_double): Likewise.
6553 (decimal_binop): Likewise.
6554 (decimal_is_zero): Likewise.
6555 (decimal_compare): Likewise.
6556 (decimal_convert): Likewise.
6557 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6558 call to value_from_decfloat.
6559 * valarith.c: Include dfp.h.
6560 (value_args_as_decimal): New function.
6561 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6562 (value_logical_not): Likewise.
6563 (value_equal): Likewise.
6564 (value_less): Likewise.
6565 (value_pos): Likewise.
6566 (value_neg): Formatting fix.
6567 * valops.c: Include dfp.h.
6568 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6569 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6570 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6571 (value_from_decfloat): Remove expect_type argument.
6572 * value.h (value_from_decfloat): Update prototype.
6574 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6576 Ignore change in name of dynamic linker during
6577 execution on Solaris. This also unbreaks pending breakpoints.
6579 * solist.h (struct target_so_ops): New field same.
6580 * solib-svr4.c (svr4_same): New.
6581 (_initialize_svr4_solib): Register svr4_same.
6582 * solib.c (update_solib_list): Use ops->same, if available.
6584 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6586 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6587 when using MS-DOS paths.
6589 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6591 * NEWS: Mention --pid and --core command line behaviour changes.
6593 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6595 * main.c (captured_main): Remove 'count' varible and the
6596 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6597 --pid options were issued simultaneously. If an explicit pid
6598 option was passed, don't fallback to core file. Detect extra
6599 arguments better in the presence of explicit pid or core
6602 2008-01-05 Joel Brobecker <brobecker@adacore.com>
6604 * ada-lang.c (ada_which_variant_applies): Correctly compute
6605 the value of the discriminant when the variant record is packed.
6607 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6609 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6610 that are used to differentiate homonyms.
6612 2008-01-04 Jerome Guitton <guitton@adacore.com>
6614 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6615 when the type is an anonymous pointer type.
6616 (ada_check_typedef): Avoid a seg fault when the type is null.
6617 * ada-typeprint.c (print_array_type): Add support for pointer
6620 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6622 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
6624 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6626 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6627 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6629 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6631 * ada-exp.y (chop_separator): New function.
6632 (write_selectors): Rewrite to re-use chop_separator.
6633 (ada_nget_field_index, get_symbol_field_type): New functions.
6634 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6637 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6639 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6640 of SYMBOL_VALUE when working with function symbols.
6642 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6644 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6645 expressions. These expressions do not need to be rewriten.
6647 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6649 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6650 the given die is a declaration.
6652 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6654 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6655 Handle properly the case when the index type is an enumerated type.
6656 Do not return the subtype of the bounds type, just return the
6657 bounds type directly - this is not needed and is more consistent
6658 with what we do for arrays when no XA parallel type exists.
6660 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6662 * ada-lang.c (static_unwrap_type): Add forward declaration.
6663 (template_to_static_fixed_type): Fields of dynamic types sometimes
6664 also need to be unwrapped. Take this into account.
6665 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6666 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6667 * ada-typeprint.c (ada_print_type): Get the typename from
6668 the original type, not the base type.
6670 2008-01-03 Jerome Guitton <guitton@adacore.com>
6672 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
6673 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
6674 Update calls to ada_to_fixed_type.
6675 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6677 (ada_to_fixed_type): Add check_tag parameter; do not look for
6678 tag if null. When looking for a tag, use a fixed record type.
6679 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6680 * ada-valprint.c (printable_val_type, ada_value_print): Update
6681 calls to ada_to_fixed_type.
6683 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
6685 * doublest.c (convert_floatformat_to_doublest): Call
6686 floatformat_to_doublest instead of floatformat_to_double and use
6688 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6689 instead of floatformat_from_double and use DOUBLEST variables.
6691 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6693 * MAINTAINERS (Write After Approval): Add self.
6695 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6697 * symfile.c (set_initial_language): Make non-static.
6698 * symfile.h (set_initial_language): Add declaration.
6699 * language.c: #include "symfile.h".
6700 (set_language): Call set_initial_language if the frame language
6701 could not be determined.
6703 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6705 * eval.c (evaluate_subexp_for_address): Provide frame address to
6706 locate_var_value only if it will be needed.
6708 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6710 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6712 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6714 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6715 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6716 This is needed to make sure that any other treatment applied
6717 to the resulting value does not fail for spurious reason,
6718 such as trying to take the address of this value.
6720 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6722 * ada-lang.c (ada_value_equal): Dereference reference types when
6725 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6727 Updated copyright notices for most files.
6729 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6731 * win32-nat.c (psapi_module_handle): Remove static.
6732 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6733 return first module found if base_address is zero. Don't initialize
6734 psapi function pointers here. Convert to cygwin paths when
6736 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6737 executable name. Use get_module_name when that fails or when
6739 (_initialize_psapi): New function. Initialize psapi stuff before it is
6740 needed or issue a warning if it is not found. Move psapi_module_handle
6743 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6745 * ada-lang.c (ada_remove_trailing_digits): New function.
6746 (ada_remove_po_subprogram_suffix): New function.
6747 (ada_decode): Improve. Move the description of the algorithm
6748 directly inside the code, instead of in the function global
6751 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6753 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6754 and always print the dereferenced value.
6756 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6758 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6759 of the case where the first argument is a reference.
6760 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6762 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6764 Implement support for Ada interface types.
6766 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6767 (ada_is_ignored_field): Ignore fields that are a dispatch table
6770 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6772 * top.c (print_gdb_version): Update copyright year.
6774 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6776 * ChangeLog-2007: New ChangeLog rotation.
6777 * ChangeLog: Reset for 2008.
6778 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6781 For older changes see ChangeLog-2007.
6787 version-control: never