X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=d709b5b4096583365ecc51d7b7a8e39266ed34b7;hb=83c265ab8408ecf21deea17f871be0f198366c48;hp=9ca905b218f132aa3a78f8c7fb804d317995a180;hpb=cdc9523a4dd8e0eda4d3a801aeee9a2f1c7a24d3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9ca905b218..d709b5b409 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,947 @@ +2008-08-16 Pedro Alves + + * infrun.c (fetch_inferior_event): Only call normal_stop if not + stopping quietly. + +2008-08-15 Luis Machado + + * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c". + Include "features/rs6000/powerpc-vsx64.c". + (ppc_supply_vsxregset): New function. + (ppc_collect_vsxregset): New function. + (IS_VSX_PSEUDOREG): New macro. + (IS_EFP_PSEUDOREG): New macro. + (vsx_register_p): New function. + (ppc_vsx_support_p): New function. + (rs6000_builtin_type_vec128): New function. + (rs6000_register_name): Hide upper halves of vs0~vs31. Return + correct names for VSX registers and EFPR registers. + (rs6000_pseudo_register_type): Return correct types for VSX + and EFPR registers. + (rs6000_pseudo_register_reggroup_p): Return correct group for + VSX and EFPR registers. + (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. + (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. + (vsx_pseudo_register_read): New function. + (vsx_pseudo_register_write): New function. + (efpr_pseudo_register_read): New function. + (efpr_pseudo_register_write): New function. + (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. + (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. + (rs6000_gdbarch_init): Declare have_vsx. + Initialize new upper half VSX registers. + Initialize VSX-related and EFPR-related pseudo-registers variables. + Adjust the number of pseudo registers accordingly. + + * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS + and SIZEOF_VSRREGS. + (gdb_vsxregset_t): New type. + (have_ptrace_getsetvsxregs): New variable. + (fetch_vsx_register): New function. + (fetch_register): Handle VSX registers. + (fetch_vsx_registers): New function. + (fetch_ppc_registers): Handle VSX registers. + (store_ppc_registers): Handle VSX registers. + (store_vsx_register): New function. + (store_register): Handle VSX registers. + (store_vsx_registers): New function. + (ppc_linux_read_description): Handle VSX-enabled inferiors. + (gdb_vsxregset_t): New type. + (supply_vsxregset): New function. + (fill_vsxregset): New function. + + * ppc-tdep.h (vsx_register_p): New prototype. + (vsx_support_p): New prototype. + (ppc_vsr0_regnum): New variable. + (ppc_vsr0_upper_regnum): Likewise. + (ppc_efpr0_regnum): Likewise. + (ppc_builtin_type_vec128): New type. + (ppc_num_vsrs): New constant. + (ppc_num_vshrs): New constant. + (ppc_num_efprs): Likewise. + Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. + (ppc_supply_vsxregset): New prototype. + (ppc_collect_vsxregset): New prototype. + + * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" + Include "features/rs6000/powerpc-vsx64l.c". + (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. + (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. + (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. + (ppc_linux_regset_from_core_section): Handle VSX core section. + (ppc_linux_core_read_description): Support VSX-enabled core files. + + * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l + Declare tdesc_powerpc_vsx64l + + * corelow.c (get_core_register_section): Support VSX-enabled + core files. + + * features/rs6000/power-vsx.xml: New VSX descriptions. + * features/rs6000/powerpc-vsx32.xml: New file. + * features/rs6000/powerpc-vsx32l.xml: New file. + * features/rs6000/powerpc-vsx64.xml: New file. + * features/rs6000/powerpc-vsx64l.xml: New file. + * features/rs6000/powerpc-vsx32.c: New file (generated). + * features/rs6000/powerpc-vsx32l.c: New file (generated). + * features/rs6000/powerpc-vsx64.c: New file (generated). + * features/rs6000/powerpc-vsx64l.c: New file (generated). + * features/Makefile: Updated with new descriptions. + * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). + * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). + +2008-08-15 Vladimir Prus + + * ia64-linux.nat (_initialize_ia64_linux_nat): Don't + call linux_target twice. + +2008-08-14 Aleksandar Ristovski + + * nto-tdep.c (lm_info): Updated struct lm_info definition from + solib-svr4.c + (LM_ADDR): Use l_addr if available; if not, use link map and set + l_addr. + +2008-08-14 Tom Tromey + + * macrocmd.c (macro_define_command): Check for NULL argument. + (macro_undef_command): Likewise. + +2008-08-14 Pedro Alves + + * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call. + +2008-08-13 Pedro Alves + + * breakpoint.c (always_inserted_auto, always_inserted_on) + (always_inserted_off, always_inserted_enums): New. + (always_inserted_mode): Change type to char* and point to + always_inserted_auto. + (show_always_inserted_mode): In auto mode, also show the current + effect of the option. + (breakpoints_always_inserted_mode): Adjust for the new auto mode. + (_initialize_breakpoint): Make the "set breakpoints + always-inserted" command an enum command. Extend help to describe + the auto mode. + +2008-08-13 Ulrich Weigand + + * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status + query valid) bit. Ignore bits outside the condition field. + (info_spu_proxydma_command): Ignore bits outside the field. + +2008-08-12 Michael Snyder + + * MAINTAINERS: Update my email address. + +2008-08-12 Ulrich Weigand + + * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. + +2008-08-12 Pedro Alves + + Add no-ack mode to the remote protocol --- optionally stop ACKing + packets and responses when we have a reliable communication + medium. + + Based on Apple's GDB, by Jason Molenda + + * remote.c (struct remote_state): Add noack_mode field. + (PACKET_QStartNoAckMode): New. + (remote_start_remote): Don't any outstanding packet here. + (remote_open_1): Clear noack_mode. Ack any outstanding packet + here. Activate noack mode if requested. + (remote_protocol_features): Add QStartNoAckMode. + (remote_open_1): + (putpkt_binary): Don't send ack in noack mode. + (read_frame): Don't recompute the checksum in noack mode. + (getpkt_sane): Skip sending ack if in noack mode. + (_initialize_remote): Add set/show remote noack mode. + * NEWS: Note the new features. + +2008-08-11 Kevin Buettner + + * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK): + New macros. + (rs6000_skip_main_prologue): New function. + (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue. + +2008-08-11 Sandra Loosemore + + * MAINTAINERS (Write After Approval): Add self. + +2008-08-11 Stan Shebs + + ARM BE8 support. + * disasm.c (gdb_disassemble_info): Set endian_code. + * gdbarch.sh (gdbarch_info): New field byte_order_for_code. + * gdbarch.h, gdbarch.c: Regenerate. + * arch-utils.c (initialize_current_architecture): Set the + default byte_order_for_code. + (gdbarch_info_init): Ditto. + (gdbarch_info_fill): Ditto. + * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros. + (thumb_analyze_prologue): Swap halfword if code endianness is + different from general endianness. + (arm_skip_prologue): Similarly. + (arm_scan_prologue): Ditto. + (thumb_get_next_pc): Ditto. + (arm_get_next_pc): Ditto. + (arm_gdbarch_init): Set byte_order_for_code from BE8 flag, + choose correct endianness for breakpoints. + +2008-08-10 Pedro Alves + + * bsd-kvm.c: Include "gdbthread.h". + (bsd_kvm_ptid): New. + (bsd_kvm_open): Add a main thread. + (bsd_kvm_close): Delete it. + (bsd_kvm_thread_alive): New. + (bsd_kvm_pid_to_str): New. + (bsd_kvm_add_target): Register bsd_kvm_thread_alive and + bsd_kvm_pid_to_str. + (bsd_kvm_add_target): Initialize bsd_kvm_ptid. + +2008-08-09 Pedro Alves + + * buildsym.c (start_subfile): Properly cast sentinel in concat + call. + * cp-name-parser.y: Include "config.h". + * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in + concat call. + * gdb_select.h: Include sys/time.h if sys/select.h is not + available. + +2008-08-09 Pedro Alves + + * go32-nat.c: Include "gdbthread.h". + (go32_stop, go32_kill_inferior): Delete the main thread. + (go32_create_inferior): Add it. + (go32_thread_alive, go32_pid_to_str): New. + (init_go32_ops): Register go32_thread_alive and go32_pid_to_str. + +2008-08-09 Pedro Alves + + * go32-nat.c (fetch_register, store_register): Pass the regcache + gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p. + (go32_xfer_memory): Change type of myaddr parameter to gdb_byte. + (struct seg_descr, struct seg_descr): pack the whole struct + instead of each member individually. + +2008-08-09 Andreas Schwab + + * python/python.c (_initialize_python): Use unabbreviated commands + in prefix name. + +2008-08-09 Daniel Jacobowitz + + * Makefile.in (stamp-h): Also create .deps. + +2008-08-09 Tom Tromey + + * Makefile.in (generated_files): Add GNULIB_H. + +2008-08-09 John David Anglin + + * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set + DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set. + Revise comment. + (pa64_current_sos): Remove map private warning warning. + * solib-som.c: Include string.h and sys/utsname.h. + (get_hpux_major_release): New function. + (som_solib_create_inferior_hook): Read dynamic linker header. Warn + about shared library private mapping on HP-UX 11 and later. Only force + private mapping of shared libraries on HP-UX 10 and earlier. + (link_map_start): Delete warning. + +2008-08-09 Xuepeng Guo + H.J. Lu + Mark Kettenis + + * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. + (amd64_init_frame_cache): Initialize saved_sp_reg. + (amd64_analyze_stack_align): New. + (amd64_analyze_prologue): Call it. + (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set + %rip to 8 when halfway aligning the stack. + + * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to + AMD64_R14_REGNUM. + + * i386-tdep.c (i386_frame_cache): Remove stack_align. Add + saved_sp_reg. + (i386_alloc_frame_cache): Remove stack_align. Initialize + saved_sp_reg to -1. + (i386_analyze_stack_align): Rewrite. + (i386_frame_cache): Use saved_sp_reg if it is valid. + +2008-08-09 Ulrich Weigand + + * target.c: Include "solib.h". + (target_pre_inferior): Call no_shared_libraries. + * infcmd.c (run_command_1): Do not call objfile_purge_solibs + or clear_solib. + (attach_command): Do not call clear_solib. + +2008-08-09 Mark Kettenis + + * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for + the %eip register. + +2008-08-08 Tom Tromey + + * Makefile.in (python.o): Remove dependencies. Use COMPILE and + POSTCOMPILE. + (python-utils.o): Likewise. + +2008-08-08 Andreas Schwab + + * corefile.c (_initialize_core): Remove spurious paren from set + gnutarget doc string. + +2008-08-08 Luis Machado + + * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h". + Define PPC_FEATURE_BOOKE. + (ppc_linux_get_hwcap): New function. + (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440 + 4-bytes alignment restrictions. + (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific + positioning of the read/write flags. + (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440 + 4-bytes alignment. + +2008-08-08 Pedro Alves + + Use ptid_t.tid to store thread ids instead of ptid_t.pid. + + * win32-nat.c (win32_add_thread): Change thread argument type to + ptid_t. Adjust. + (win32_add_thread): Adjust. + (win32_delete_thread): Change thread argument type to ptid_t. + Adjust. + (win32_fetch_inferior_registers, win32_store_inferior_registers) + (win32_resume, get_win32_debug_event, get_win32_debug_event) + (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust. + (init_win32_ops): Put to_magic last. + (win32_win32_thread_alive): Adjust. + +2008-08-08 Pedro Alves + + * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New. + (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str. + +2008-08-08 Pedro Alves + + * remote-m32r-sdi.c: Include "gdbthread.h". + (remote_m32r_ptid): New. + (m32r_close): Delete the main thread. + (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the + main thread. + (m32r_kill, m32r_load, sdireset_command): Delete the main thread. + (_initialize_remote_m32r): Initialize remote_m32r_ptid. + +2008-08-07 Tom Tromey + Ralf Wildenhues + + * aclocal.m4, configure: Rebuild. + * configure.in: Call ZW_CREATE_DEPDIR, + ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET. + (MAKE, GMAKE): New substs. + * acinclude.m4: Include depstand.m4. + * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre, + COMPILE, POSTCOMPILE, depcomp): New variables. + Remove all _h variables. + Remove many .o targets. + ($(srcdir)/copying.c): avoid backslash-newline after comment + sign (@maintainer_mode_true@). + (HFILES_NO_SRCDIR): Regenerate. + (generated_files): New variable. + (all_gdbtk_cflags): Likewise. + (.c.o): Rewrote. + (init.o, version.o, copying.o): Remove. + (distclean): Remove DEPDIR. + (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o, + printcmd.o, procfs.o, v850ice.o): Rewrite. + (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o, + cli-script.o, cli-setshow.o, cli-utils.o): Likewise. + (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o, + gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o, + gdbtk-wrapper.o): Likewise. + (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o, + mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o, + mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o, + mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o, + tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o, + tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o, + tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o, + tui-wingeneral.o, tui-winsource.o): Likewise. + (all_object_files): New variable. + ($(all_object_files)): New target. + Include dependency files, when using GNU Make. + +2008-08-07 Ulrich Weigand + + * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with + the valid bit set. Ensure display order respects partial + order defined by dependency bits. + +2008-08-06 John David Anglin + + * solib-pa64.c (read_dld_descriptor): Return zero if load map is not + setup. + +2008-08-06 Mark Kettenis + + * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in + OpenBSD 4.3. + +2008-08-06 Vladimir Prus + Tom Tromey + Thiago Jung Bauermann + Doug Evans + + * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, + SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS, + PYTHON_CFLAGS): New. + (python_h, python_internal_h): New. + (cli-script.o): Depend on python.h + (python.o, python-utils.o): New. + * cli/cli-script.c (print_command_lines): Handle python_control. + (execute_control_command): Handle python_control. + (execute_control_command_untraced): New function. + (while_command): Call execute_control_command_untraced. + (if_command): Likewise. + (get_command_line): Remove static attribute. + (read_next_line): Handle "python". + (recurse_read_control_structure): Handle python_control. + (read_command_lines): Handle python_control. + Include python.h. + * cli/cli-script.h (get_command_line): Add prototype. + (execute_control_command_untraced): Likewise. + * configure.ac: Add --with-python. + * defs.h (enum command_control_type) : New + constant. + * python/python-internal.h: New file. + * python/python.c: New file. + * python/python.h: New file. + * python/python-utils.c: New file. + * NEWS: Mention Python scripting support and its new commands. + +2008-08-06 Ulrich Weigand + + * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size. + +2008-08-06 Phil Muldoon + + * MAINTAINERS (Write After Approval): Add self. + +2008-08-06 Phil Muldoon + + * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled. + (insert_breakpoint_locations): Likewise. + +2008-08-05 Phil Muldoon + + * breakpoint.c (create_longjmp_breakpoint): Remove unused struct + breakpoint. + (set_longjmp_breakpoint): Likewise. + +2008-08-04 John David Anglin + + PR build/2490 + * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are + defined. + +2008-08-05 Tom Tromey + + * bcache.c (deprecated_bcache_added): Initialize obstack. + (bcache_xmalloc): Don't initialize obstack. + (bcache_xfree): Conditionally free obstack. + (bcache_memory_used): Update. + +2008-08-05 Tom Tromey + + * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use + bcache_full. + (append_psymbol_to_list): Accept a const pointer. + (add_psymbol_to_list): Fix const correctness. + * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove. + (bcache_full): Declare. + * bcache.c (bcache_data, deprecated_bcache): Remove. + (bcache): Use bcache_full. + (bcache_full): Rename from deprecated_bcache_added. Change return + type. + +2008-08-04 Stan Shebs + + * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined. + (bkpt_names): Remove SOLIB_BKPT_NAME, never defined. + (enable_break): Remove test of BKPT_AT_SYMBOL. + +2008-08-02 Keith Seitz + + * acinclude.m4: Include ../config/tcl.m4 to pick up + standard Tcl configury bits. + Remove all Tcl, Tk, Itcl, Itk, etc definitions. + * configure.ac: Don't check if ../itcl exists when building + gdbtk. It could be installed. + Rewrite gdbtk configury to allow for using system-supplied + Tcl and Tk. Gdbtk no longer requires build-time access to + itcl and itk. + * Makefile.in: Remove everything related to itcl and itk. + Rewrite the Tcl bits for gdbtk to correspond to rewrite of + configure.ac. + Remove v850ice.o build rule. + (ALL_TCL_CFLAGS): New convenience defintion. Change all + gdbtk sources to use it. + * configure: Regenerate. + +2008-07-31 Stan Shebs + + * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE. + +2008-07-30 Stan Shebs + + * objfiles.c (TARGET_KEEP_SECTION): Remove. + (add_to_objfile_sections): Remove use. + +2008-07-29 Tom Tromey + + * cli/cli-decode.c (lookup_cmd_1): Use memcpy. + (lookup_cmd_composition): Likewise. + +2008-07-29 Tom Tromey + + * cli/cli-cmds.c (edit_command): Remove unused variables. Delete + dead code. Fix indentation. + +2008-07-29 Stan Shebs + + * main.c (captured_main): Remove long-unused #if 0 blocks. + +2008-07-28 Tom Tromey + + * annotate.h (deprecated_annotate_starting_hook): Remove. + (deprecated_annotate_stopped_hook): Remove. + (deprecated_annotate_exited_hook): Remove. + * Makefile.in (annotate.o): Depend on observer_h. + * top.c (deprecated_delete_breakpoint_hook): Remove. + (deprecated_create_breakpoint_hook): Likewise. + (deprecated_modify_breakpoint_hook): Likewise. + * interps.c (clear_interpreter_hooks): Update for removed hooks. + * breakpoint.c (mention): Don't call removed hook. + (delete_breakpoint): Likewise. + (disable_breakpoint): Likewise. + (do_enable_breakpoint): Likewise. + * annotate.c: Include observer.h. + (breakpoint_changed): Change type of argument. + (_initialize_annotate): Register observers. + (deprecated_annotate_starting_hook): Remove. + (deprecated_annotate_stopped_hook): Remove. + (deprecated_annotate_exited_hook): Remove. + (annotate_starting): Update for hook removal. + (annotate_stopped): Likewise. + (annotate_exited): Likewise. + * defs.h (deprecated_delete_breakpoint_hook): Remove. + (deprecated_create_breakpoint_hook): Likewise. + (deprecated_modify_breakpoint_hook): Likewise. + +2008-07-28 Tom Tromey + + * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK. + +2008-07-27 Daniel Jacobowitz + + * configure.ac: Check for the GNU/Linux ptrace signature. + * configure: Regenerated. + +2008-07-27 Daniel Jacobowitz + + * linux-nat.c (resume_callback): Add more debugging output. + (linux_nat_has_pending_sigint): New function, based on + linux_nat_has_pending. + (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. + (stop_wait_callback): Remove flush_mask handling. Honor + ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL + to recursive calls. + (linux_nat_has_pending, flush_callback): Remove. + (linux_nat_filter_event): Check for ignore_sigint. + (linux_nat_wait): Remove flush_mask support and call to + flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. + * linux-nat.h (struct lwp_info): Add ignore_sigint field. + +2008-07-27 Daniel Jacobowitz + + * linux-nat.c (count_events_callback, select_event_lwp_callback): Only + report events from resumed threads. + +2008-07-27 Daniel Jacobowitz + + * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function. + (mips_linux_init_abi): Set tdep->syscall_next_pc. + * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to + mips-tdep.h. + (mips32_next_pc): Handle the syscall instruction. + * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New, + from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep. + +2008-07-26 Tom Tromey + + PR gdb/1158: + * valops.c (value_struct_elt): Treat function-valued field as a + static method. + +2008-07-26 Tom Tromey + + PR gdb/1136: + * macroexp.c (get_punctuator) : Rearrange to put + longer tokens first. + +2008-07-26 Vladimir Prus + + Kill cmd_async_ok. + * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok) + (get_cmd_async_ok): Remove. + * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove. + * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok. + * infcmd.c (_initialize_infcmd): Likewise. + * thread.c (_initialize_thread): Likewise. + +2008-07-25 Joseph Myers + + * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing + 128-bit long doubles in even-odd pairs of FPRs. Do not + right-align float arguments for big-endian. + (mips_n32n64_return_value): Apply return value convention for + structs containing one or two floating-point values to soft-float + as well as hard-float. Handle 128-bit long doubles in such + structs. + (mips_o32_push_dummy_call): Only skip one integer register for a + float argument passed in an FPR. + +2008-07-25 Tom Tromey + + * tui/tui-hooks.c: Include observer.h. + (tui_event_default, tui_old_event_hooks, tui_event_hooks): + Remove. + (tui_bp_created_observer, tui_bp_deleted_observer, + tui_bp_modified_observer): New globals. + (tui_install_hooks): Use observers, not events. + (tui_remove_hooks): Likewise. + * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. + (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New + globals. + (breakpoint_notify): Check mi_can_breakpoint_notify. + (breakpoint_hooks): Remove. + (mi_cmd_break_insert): Attach observers. Don't use events. + * tracepoint.c: Include observer.h, not gdb-events.h. + (tracepoint_operation, trace_pass_command): Notify observer. + * interps.c: Don't include gdb-events.h. + (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. + * gdbarch.c: Rebuild. + * gdbarch.sh: Emit include for observer.h, not gdb-events.h. + (deprecated_current_gdbarch_select_hack): Notify observer. + * breakpoint.h: Don't include gdb-events.h. + * breakpoint.c: Don't include gdb-events.h. + (condition_command): Notify observer. + (commands_command): Likewise. + (commands_from_control_command): Likewise. + (mention, delete_breakpoint, set_ignore_count): Likewise. + (disable_breakpoint, do_enable_breakpoint): Likewise. + * Makefile.in (gdb_events_h): Remove. + (breakpoint_h): Update. + (COMMON_OBS): Remove gdb-events.o. + (gdb-events.o): Remove. + (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, + gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. + * gdb-events.c: Remove. + * gdb-events.h: Remove. + * gdb-events.sh: Remove. + +2008-07-24 Pedro Alves + + * remote.c (remote_threads_extra_info): Don't query the remote + server about info on the internally added main thread. + +2008-07-24 Aleksandar Ristovski + + * nto-procfs.c (procfs_attach): Populate initial thread list. + (procfs_wait): Return new pid, built from the inferior status. + +2008-07-23 Thiago Jung Bauermann + + * configure.ac (CONFIG_INITS): Delete long obsoleted variable. + * configure: Regenerate. + +2008-07-23 Aleksandar Ristovski + + * nto-procfs.c (procfs_xfer_memory): Changed signature. + (procfs_resume): Workaround for dereferencing type-punned pointer + warning. + * nto-tdep.c (nto_parse_redirection): Change signature to be const + correct. + * nto-tdep.h (nto_parse_redirection): Likewise. + +2008-07-21 Stan Shebs + + Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE. + * gdbarch.sh: Adjust comment to refer to + in_solib_dynsym_resolve_code(). + * gdbarch.h, gdbarch.c: Update. + * solib-osf.c: Ditto. + * infrun.c: Ditto. + (handle_inferior_event): Use in_solib_dynsym_resolve_code + unconditionally. + * config/mips/nm-irix5.h: Remove undef of + IN_SOLIB_DYNSYM_RESOLVE_CODE. + +2008-07-21 Tom Tromey + + * symfile.c (reread_symbols): Don't pass argument to observer. + * exec.c (exec_file_attach): Don't pass argument to observer. + * ada-lang.c (ada_executable_changed_observer): Remove argument. + * symtab.c (symtab_observer_executable_changed): Remove argument. + * observer.sh: Handle functions with no arguments. + +2008-07-20 Sergei Poselenov + Chris Demetriou + + * elfread.c (elf_symfile_segments): Fix the check that each loadable + section fits within an ELF segment to handle ELF segments that hit + the end of the address space. + +2008-07-20 Chris Demetriou + + * MAINTAINERS (Write After Approval): Add self. + +2008-07-18 Tom Tromey + + PR gdb/855: + * NEWS: Add entry for macro commands. + * Makefile.in (macrocmd.o): Add gdb_string.h. + * macroscope.h (user_macro_scope): Declare. + (default_macro_scope): Update documentation. + (macro_user_macros): Declare. + * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. + Use user_macro_scope. + (null_macro_lookup): Remove. + * macrotab.h (macro_callback_fn): Declare. + (macro_for_each): Likewise. + (macro_allow_redefinitions): Likewise. + * macrotab.c (foreach_macro): New function + (macro_for_each): Likewise. + (struct macro_table) : New field. + (macro_allow_redefinitions): New function. + (new_macro_table): Update. + (macro_define_function): Likewise. + (macro_define_object): Likewise. + * macroscope.c (user_macro_scope): New function. + (default_macro_scope): Use it. + (macro_user_macros): New global. + (standard_macro_lookup): Look in macro_user_macros. + (_initialize_macroscope): New function. + * macroexp.h (macro_is_whitespace, macro_is_digit, + macro_is_identifier_nondigit): Declare. + * macroexp.c (macro_is_whitespace): Rename. No longer static. + (macro_is_digit): Likewise. + (macro_is_identifier_nondigit): Likewise. + (get_identifier): Update. + (get_pp_number): Likewise. + (get_token): Likewise. + * macrocmd.c (skip_ws): New function. + (extract_identifier): Likewise. + (free_macro_definition_ptr): Likewise. + (user_macros): Remove. + (macro_define_command): Implement. + (_initialize_macrocmd): Update. + (macro_undef_command): Implement. + (print_one_macro): New function. + (macro_list_command): Implement. + +2008-07-18 Joseph Myers + + * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl + in BFD ELF check. + * configure: Regenerate. + +2008-07-17 Paul Pluzhnikov + + * auxv.c (fprint_target_auxv): Stop at AT_NULL. + +2008-07-15 Andreas Schwab + + * valops.c (value_cast_pointers): Follow typedefs when checking + result of coercion. + +2008-07-15 Daniel Jacobowitz + + * block.c (block_function): Renamed to ... + (block_linkage_function): ... this. All callers changed. + * block.h (block_function): Renamed to ... + (block_linkage_function): ... this. + +2008-07-15 Daniel Jacobowitz + + * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. + +2008-07-15 Daniel Jacobowitz + + * frame.c (frame_sp_unwind): Delete. + (get_frame_sp): Do not use it. + * frame.h (frame_sp_unwind): Delete prototype. + +2008-07-15 Daniel Jacobowitz + + * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc. + +2008-07-15 Daniel Jacobowitz + + * dwarf2-frame.c (dwarf2_frame_cache): Update comment. + * frame.c (frame_unwind_address_in_block): Delete. + (get_frame_address_in_block): Do not use it. Check the type + of the next frame first. + (frame_cleanup_after_sniffer): Update comment. + * frame.h (frame_unwind_address_in_block): Delete prototype. + * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment. + +2008-07-15 Daniel Jacobowitz + + * frame.c (frame_func_unwind): Delete. + (get_frame_func): Do not use it. + * frame.h (frame_func_unwind): Delete prototype. + * hppa-tdep.c (hppa_frame_cache): Update comment. + * rs6000-tdep.c (rs6000_frame_cache): Update comment. + +2008-07-14 Stan Shebs + + * remote-sim.c (init_gdbsim_ops): Remove + TARGET_REDEFINE_DEFAULT_OPS. + +2008-07-15 Daniel Jacobowitz + + * findvar.c (read_var_value): Remove unused variable. + +2008-07-15 Luis Machado + + * infrun.c (handle_inferior_event): Tag threads as stopped + before inserting breakpoints. + +2008-07-15 Hui Zhu + + * MAINTAINERS: Added myself to section Write After Approval. + +2008-07-14 Paul Pluzhnikov + + PR gdb/2477 + * cp-abi.c (value_virtual_fn_field): Handle invalid pointers. + +2008-07-14 Pedro Alves + + * i386-dicos-tdep.c (i386_dicos_frame_align): Delete. + (i386_dicos_push_dummy_code): New. + (i386_dicos_init_abi): Don't register i386_dicos_frame_align. + Register i386_dicos_push_dummy_code. + +2008-07-14 Markus Deuling + + * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter. + (mips_n32n64_push_dummy_call, mips_o64_return_value) + (mips_eabi_push_dummy_call): Update call to fp_register_arg_p. + + (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch. + (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command) + (mips_n32n64_fp_arg_chunk_p): Update caller. + + (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter. + (mips_n32n64_push_dummy_call): Update caller. + + (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace + current_gdbarch. + (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) + (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller. + + + (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace + current_gdbarch. + (mips_eabi_push_dummy_call, mips_o32_push_dummy_call) + (mips_o64_push_dummy_call): Update caller. + + (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch. + (fp_register_arg_p, mips_dump_tdep): Update caller. + + (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch. + (mips16_scan_prologue, mips32_scan_prologue): Update caller. + + (reset_saved_regs): Make static. Add gdbarch as parameter. Replace + current_gdbarch. + (mips32_scan_prologue): Update caller. + + (heuristic_proc_start): Add gdbarch as parameter. Replace + current_gdbarch. + (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller. + + * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) + (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at + the current architecture. Update call to getregs_supplies. + (getregs_supplies): Add gdbarch as parameter and replace + current_gdbarch. + + * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to + get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and + NBSD_MIPS_JB_ELEMENT_SIZE. + (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and + replace current_gdbarch. + + * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace + current_gdbarch. + (mips_fetch_registers, mips_store_registers): Update call + to mips_map_regno. + (mips_load): Use get_regcache_arch to get at the current_architecture + and replace current_gdbarch. + +2008-07-13 Pedro Alves + + * thread.c (restore_selected_frame): On fail to restore, select + the innermost frame, and don't crash when warning the user. + +2008-07-13 Hui Zhu + + * symtab.c (expand_line_sal): Fix a memory leak. + +2008-07-13 Pedro Alves + + * utils.c (struct continuation): Define as inheriting struct + cleanup. + (add_continuation, do_all_continuations) + (discard_all_continuations, add_intermediate_continuation) + (do_all_intermediate_continuations) + (discard_all_intermediate_continuations): Adjust. + +2008-07-13 Vladimir Prus + + Skip varobj in running threads. + * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's + thread is not stopped, skip the varobj. + * Makefile.in: Update dependencies. + +2008-07-13 Vladimir Prus + + Enable all commands while inferiour is running + * mi/mi-main.c (mi_cmd_execute): Don't check if + inferiour is executing. + +2008-07-13 Vladimir Prus + + Allow all CLI command even if target is executing. + * gdb/top.c (execute_command_1): Don't check if the inferiour + is running. + +2008-07-13 Vladimir Prus + + * mi/mi-main.c (mi_cmd_execute): Remove unused variable. + Fix printing of frame, when frame is wrong. + 2008-07-12 Ulrich Weigand * spu-tdep.c (spu_frame_unwind_cache): Do not error if @@ -119,23 +1063,23 @@ 2008-07-12 Vladimir Prus Implement -exec-continue/-exec-interrupt --all. - * infcmd.c (continue_1): New, extracted from - (continue_command): ...here. - (interrupt_target_1): New, extracted from - (interrupt_target_command): ...here. - * inferior.h (continue_1, interrupt_target_1): New. - * mi/mi-main.c (mi_cmd_exec_continue) - (mi_cmd_exec_interrupt): Handle --all. + * infcmd.c (continue_1): New, extracted from + (continue_command): ...here. + (interrupt_target_1): New, extracted from + (interrupt_target_command): ...here. + * inferior.h (continue_1, interrupt_target_1): New. + * mi/mi-main.c (mi_cmd_exec_continue) + (mi_cmd_exec_interrupt): Handle --all. 2008-07-12 Vladimir Prus Implement --thread and --frame. * gdbthread.h (find_thread_id): Declare. - * thread.c (find_thread_id): Make non-static. - * mi/mi-main.c (mi_cmd_execute): Switch to the right - thread and frame, if necessary. - * mi/mi-parse.c (mi_parse): Handle --thread and --frame. - * mi/mi-parse.h (strcut mi_parse): New fields thread and frame. + * thread.c (find_thread_id): Make non-static. + * mi/mi-main.c (mi_cmd_execute): Switch to the right + thread and frame, if necessary. + * mi/mi-parse.c (mi_parse): Handle --thread and --frame. + * mi/mi-parse.h (strcut mi_parse): New fields thread and frame. 2008-07-12 Vladimir Prus @@ -143,13 +1087,13 @@ 2008-07-12 Vladimir Prus - * infrun.c (normal_stop): For MI, report which threads + * infrun.c (normal_stop): For MI, report which threads were stopped. 2008-07-12 Vladimir Prus Report thread state in -thread-info output. - * thread.c (print_thread_info): Add new field "state". + * thread.c (print_thread_info): Add new field "state". 2008-07-11 Pedro Alves @@ -573,7 +1517,7 @@ here. * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing by any_running. - + * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute) (mi_execute_async_cli_command): Replace target_executing by is_running. @@ -583,7 +1527,7 @@ (has_stack_frames): New. (get_selected_frame, deprecated_safe_get_selected_frame): Check has_stack_frames. - + * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on $(gdbthread_h). @@ -690,13 +1634,13 @@ * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set completer for set to filename_completer. - + NEWS: Mention it. 2008-07-04 Vladimir Prus Implement -target-attach. - * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach. + * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach. 2008-06-21 Hui Zhu @@ -829,18 +1773,18 @@ 2008-06-28 Vladimir Prus - * breakpoint.c (moribund_locations): New. - (bpstat_stop_status): Process moribund locations. - (update_global_location_list): Add removed - locations to moribund_locations. - (breakpoint_retire_moribund): New. - * breakpoint.h (struct bp_location): New field - events_till_retirement. - (breakpoint_retire_moribund): Declare. - * thread.c (thread_count): New. - * infrun.c (handle_inferior_event): Call - breakpoint_retire_moribund. - * gdbthread.h (thread_count): Declare. + * breakpoint.c (moribund_locations): New. + (bpstat_stop_status): Process moribund locations. + (update_global_location_list): Add removed + locations to moribund_locations. + (breakpoint_retire_moribund): New. + * breakpoint.h (struct bp_location): New field + events_till_retirement. + (breakpoint_retire_moribund): Declare. + * thread.c (thread_count): New. + * infrun.c (handle_inferior_event): Call + breakpoint_retire_moribund. + * gdbthread.h (thread_count): Declare. 2008-06-27 Joseph Myers @@ -945,9 +1889,9 @@ 2008-06-26 Vladimir Prus * target.c (target_read_until_error): New. - * target.h (target_read_until_error): Declare. - * mi/mi-main.c (mi_cmd_data_read_memory): Use - target_read_until_error. + * target.h (target_read_until_error): Declare. + * mi/mi-main.c (mi_cmd_data_read_memory): Use + target_read_until_error. 2008-06-25 Jan Kratochvil @@ -989,15 +1933,15 @@ Emit ^running via observer. * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print - ^running here. - (mi_on_resume): Print ^running if not previously output. - * mi/mi-main.c (running_result_record_printed): New. - (captured_mi_execute_command): Reset - running_result_record_printed. Use running_result_record_printed - to decide if we should skip ^done. - (mi_execute_async_cli_command): Don't print ^running here. - * mi/mi-main.h (current_token, running_result_record_printed): - Declare. + ^running here. + (mi_on_resume): Print ^running if not previously output. + * mi/mi-main.c (running_result_record_printed): New. + (captured_mi_execute_command): Reset + running_result_record_printed. Use running_result_record_printed + to decide if we should skip ^done. + (mi_execute_async_cli_command): Don't print ^running here. + * mi/mi-main.h (current_token, running_result_record_printed): + Declare. 2008-06-24 Michael Snyder @@ -1012,15 +1956,15 @@ 2008-06-19 Pierre Muller * gnu-nat.c (proc_string): Use capital T for "Thread". - + 2008-06-19 Pierre Muller * win32-nat.c (win32_pid_to_str): Use capital T for "Thread". - + 2008-06-18 Joel Brobecker - * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if - the target cannot run. + * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if + the target cannot run. 2008-06-18 Joel Brobecker @@ -1036,16 +1980,16 @@ 2008-06-14 Vladimir Prus Don't suppress *running when doing finish. - * infcall.c (call_function_by_hand): Set both - suppress_resume_observer and suppress_stop_observer. - * infcmd.c (suppress_run_stop_observers): Split into... - (suppress_resume_observer, suppress_stop_observer): ...those. - (finish_command_continuation): Clear suppress_stop_observer. - (finish_command): Set suppress_stop_observer. - * inferior.h (suppress_run_stop_observers): Split into... - (suppress_resume_observer, suppress_stop_observer): ...those. - * infrun.c (normal_stop): Check for suppress_stop_observer. - * thread.c (set_running): Check for suppress_resume_observer. + * infcall.c (call_function_by_hand): Set both + suppress_resume_observer and suppress_stop_observer. + * infcmd.c (suppress_run_stop_observers): Split into... + (suppress_resume_observer, suppress_stop_observer): ...those. + (finish_command_continuation): Clear suppress_stop_observer. + (finish_command): Set suppress_stop_observer. + * inferior.h (suppress_run_stop_observers): Split into... + (suppress_resume_observer, suppress_stop_observer): ...those. + * infrun.c (normal_stop): Check for suppress_stop_observer. + * thread.c (set_running): Check for suppress_resume_observer. 2008-06-12 Pedro Alves Pierre Muller @@ -1054,7 +1998,7 @@ * gdbarch.h, gdbarch.c: Regenerate. * i386-tdep.h (i386_skip_main_prologue): Declare. * i386-tdep.c (i386_skip_main_prologue): New. - * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register + * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. * symtab.c (find_function_start_sal): When pc points at the "main" function, call gdbarch_skip_main_prologue. @@ -1081,73 +2025,73 @@ 2008-06-10 Vladimir Prus Implement *running. - * Makefile.in: Update dependencies. - * gdbthread.h (struct thread_info): New field - running_. - (set_running, is_running): New. - * thread.c (set_running, is_running): New. - * inferior.h (suppress_normal_stop_observer): Rename to... - (suppress_run_stop_observers): ..this. - * infcmd.c (suppress_normal_stop_observer): Rename to... - (suppress_run_stop_observers): ..this. - (finish_command_continuation, finish_command): Adjust. - * infcall.c (call_function_by_hand): Adjust. - * infrun.c (normal_stop): Call set_running. - * target.c (target_resume): New. Call set_running. - * target.h (target_resume): Convert from macro to - a function. - - * mi/mi-interp.c (mi_on_resume): New. - (mi_interpreter_init): Register mi_on_resume. + * Makefile.in: Update dependencies. + * gdbthread.h (struct thread_info): New field + running_. + (set_running, is_running): New. + * thread.c (set_running, is_running): New. + * inferior.h (suppress_normal_stop_observer): Rename to... + (suppress_run_stop_observers): ..this. + * infcmd.c (suppress_normal_stop_observer): Rename to... + (suppress_run_stop_observers): ..this. + (finish_command_continuation, finish_command): Adjust. + * infcall.c (call_function_by_hand): Adjust. + * infrun.c (normal_stop): Call set_running. + * target.c (target_resume): New. Call set_running. + * target.h (target_resume): Convert from macro to + a function. + + * mi/mi-interp.c (mi_on_resume): New. + (mi_interpreter_init): Register mi_on_resume. 2008-06-10 Vladimir Prus Use observers to report stop events in MI. - * mi/mi-interp.c (mi_on_normal_stop): New. - (mi_interpreter_init): Register mi_on_normal_stop. - (mi_interpreter_exec_continuation): Remove. - (mi_cmd_interpreter_exec): Don't register the above. - * mi/mi-main.c (captured_mi_execute_command): Don't care - about sync_execution. - (mi_execute_async_cli_command): Don't install continuation. Don't - print *stopped. - (mi_exec_async_cli_cmd_continuation): Remove. + * mi/mi-interp.c (mi_on_normal_stop): New. + (mi_interpreter_init): Register mi_on_normal_stop. + (mi_interpreter_exec_continuation): Remove. + (mi_cmd_interpreter_exec): Don't register the above. + * mi/mi-main.c (captured_mi_execute_command): Don't care + about sync_execution. + (mi_execute_async_cli_command): Don't install continuation. Don't + print *stopped. + (mi_exec_async_cli_cmd_continuation): Remove. 2008-06-10 Vladimir Prus Suppress normal stop observer when it's problematic. - * inferior.h (suppress_normal_stop_observer): New. - * infcall.c (call_function_by_hand): Disable stop events when - doing function calls. - * infmcd.c (suppress_normal_stop_observer): New. - (finish_command_continuation): Call normal_stop observer - explicitly. - (finish_command): Disable stop events inside proceed. - * infrun.c (normal_stop): Don't call normal stop observer if - suppressed of if multi-step is in progress. + * inferior.h (suppress_normal_stop_observer): New. + * infcall.c (call_function_by_hand): Disable stop events when + doing function calls. + * infmcd.c (suppress_normal_stop_observer): New. + (finish_command_continuation): Call normal_stop observer + explicitly. + (finish_command): Disable stop events inside proceed. + * infrun.c (normal_stop): Don't call normal stop observer if + suppressed of if multi-step is in progress. 2008-06-10 Vladimir Prus Remove stale code. - * infrun.c (finish_command): Don't pass cleanup - to continuation. - (finish_command_continuation): Don't grab cleanup from - the passed data, as we don't use, and cannot, use it anyway. + * infrun.c (finish_command): Don't pass cleanup + to continuation. + (finish_command_continuation): Don't grab cleanup from + the passed data, as we don't use, and cannot, use it anyway. 2008-06-10 Vladimir Prus Introduce common cleanup for restoring integers. - * defs.h (make_cleanup_restore_integer): New declaration. - (struct cleanup): New field free_arg. - (make_my_cleanup_2): New. - * utils.c (restore_integer_closure, restore_integer) - (make_cleanup_restore_integer): New. - (make_my_cleanup): Initialize the free_arg field and - renamed to make_my_cleanup_2. - (do_my_cleanups): Call free_arg. - (discard_cleanups): Call free_arg. - * breakpoint.c (restore_always_inserted_mode): Remove. - (update_breakpoints_after_exec): Use make_cleanup_restore_integer. + * defs.h (make_cleanup_restore_integer): New declaration. + (struct cleanup): New field free_arg. + (make_my_cleanup_2): New. + * utils.c (restore_integer_closure, restore_integer) + (make_cleanup_restore_integer): New. + (make_my_cleanup): Initialize the free_arg field and + renamed to make_my_cleanup_2. + (do_my_cleanups): Call free_arg. + (discard_cleanups): Call free_arg. + * breakpoint.c (restore_always_inserted_mode): Remove. + (update_breakpoints_after_exec): Use make_cleanup_restore_integer. 2008-06-09 Doug Evans @@ -1227,8 +2171,8 @@ * infrun.c (normal_stop): Use it. 2008-06-05 Vladimir Prus - Nathan Sidwell - Joseph Myers + Nathan Sidwell + Joseph Myers * acinclude.m4: Include ../config/acx.m4. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. @@ -1292,15 +2236,15 @@ 2008-06-05 Aleksandar Ristovski * bcache.c (bcache_data): Call deprecated_bcache_added function. - (deprecated_bcache_added): New function name. Body of function - bcache_data is used here with the addition of 'added' argument. + (deprecated_bcache_added): New function name. Body of function + bcache_data is used here with the addition of 'added' argument. * bcache.h (deprecated_bcache_added): New function. * symfile.c (add_psymbol_to_bcache): New helper function, takes part of work from add_psymbol_to_list - initialises partial symbol and stashes it in objfile's cache. - (append_psymbol_to_list): New helper function, takes other part of + (append_psymbol_to_list): New helper function, takes other part of work from add_psymbol_to_list - adds partial symbol to the given list. - (add_psymbol_to_list): Call helper functions instead of doing work + (add_psymbol_to_list): Call helper functions instead of doing work here. If adding to global list, do not duplicate partial symbols in the partial symtab. @@ -1334,7 +2278,7 @@ (svr4_clear_solib): Clear main_lm_addr. 2008-06-03 Michael Snyder - Joseph Myers + Joseph Myers * mips-tdep.c (mips_eabi_return_value): Replace stub that always returned RETURN_VALUE_STRUCT_CONVENTION with a real function. @@ -1370,7 +2314,7 @@ 2008-05-28 Aleksandar Ristovski * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for - temporary catchpoints. In MI add missing fields 'reason', 'disp', + temporary catchpoints. In MI add missing fields 'reason', 'disp', 'bkptno'. (print_mention_exception_catchpoint): Add 'Temporary' for temporary catchpoints. @@ -1379,14 +2323,14 @@ 2008-05-28 Vladimir Prus Refactor varobj_update interface. - * varobj.c (varobj_update): Report changes as vector. Also - return not just a list of varobj, but a list of special structures - that tell what exactly has changed. - * varobj.h (enum varobj_update_error): Rename to - varobj_scope_status. - (struct varobj_update_result_t): New. - (varobj_update): Adjust prototype. - * mi/mi-cmd-var.c: Adjust for changes. + * varobj.c (varobj_update): Report changes as vector. Also + return not just a list of varobj, but a list of special structures + that tell what exactly has changed. + * varobj.h (enum varobj_update_error): Rename to + varobj_scope_status. + (struct varobj_update_result_t): New. + (varobj_update): Adjust prototype. + * mi/mi-cmd-var.c: Adjust for changes. 2008-05-28 Vladimir Prus @@ -2038,8 +2982,8 @@ 2008-05-05 Vladimir Prus - * top.c (command_line_handler_continuation): Remove. - (execute_command): Do not install the above. + * top.c (command_line_handler_continuation): Remove. + (execute_command): Do not install the above. 2008-05-05 Vladimir Prus @@ -2441,9 +3385,9 @@ 2008-05-03 Pedro Alves * thread.c (delete_thread): Call observer_notify_thread_exit. - * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as - thread_exit observer. - (mi_thread_exit): New. + * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as + thread_exit observer. + (mi_thread_exit): New. 2008-05-03 Thiago Jung Bauermann @@ -2473,7 +3417,7 @@ (find_function_start_pc): Likewise. * value.c: Include "objfiles.h". (value_fn_field): Handle minimal symbols pointing to function - descriptors. + descriptors. * Makefile.in (linespec.o): Update dependencies. (value.o): Likewise. @@ -2669,7 +3613,7 @@ * gdbarch.c, gdbarch.h: Regenerated. * gdbarch.sh: Added two new functions target_signal_from_host and target_signal_to_host. - * target.h (default_target_signal_from_host, + * target.h (default_target_signal_from_host, default_target_signal_to_host): New functions - declarations. * signals/signals.c (struct gdbarch): New declaration. (default_target_signal_to_host, default_target_signal_from_host): New @@ -2728,7 +3672,7 @@ 2008-05-01 Vladimir Prus * thread.c (add_thread): Move observer call to ... - (add_thread_silent): ... here. + (add_thread_silent): ... here. 2008-04-30 Ulrich Weigand @@ -2995,29 +3939,29 @@ 2008-04-24 Vladimir Prus - * breakpoint.c (bpstat_check_location) - (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): - New, extracted from bpstat_stop_status. - (bpstat_stop_status): Use the above. + * breakpoint.c (bpstat_check_location) + (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): + New, extracted from bpstat_stop_status. + (bpstat_stop_status): Use the above. 2008-04-24 Vladimir Prus - * mi/mi-main.c (last_async_command): Rename to current_token. - (previous_async_command): Remove. - (mi_cmd_gdb_exit): Adjust. - (mi_cmd_exec_interrupt): Don't dance with previous_async_command. - (mi_cmd_target_select): Adjust. - (mi_cmd_execute): Don't set previous_async_command. Free token - here even in async mode. - (mi_execute_async_cli_command): Adjust. - (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the - token. - (mi_load_progress): Adjust. + * mi/mi-main.c (last_async_command): Rename to current_token. + (previous_async_command): Remove. + (mi_cmd_gdb_exit): Adjust. + (mi_cmd_exec_interrupt): Don't dance with previous_async_command. + (mi_cmd_target_select): Adjust. + (mi_cmd_execute): Don't set previous_async_command. Free token + here even in async mode. + (mi_execute_async_cli_command): Adjust. + (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the + token. + (mi_load_progress): Adjust. 2008-04-24 Vladimir Prus - * infcmd.c (step_1_continuation): Always disable longjmp - breakpoint if we're not going to do another step. + * infcmd.c (step_1_continuation): Always disable longjmp + breakpoint if we're not going to do another step. 2008-04-24 Vladimir Prus @@ -3126,7 +4070,7 @@ * target.c (target_disconnect, target_detach): Remove breakpoints from target. - + 2008-04-24 Vladimir Prus * breakpoint.c (print_one_breakpoint_location): In MI @@ -3163,8 +4107,8 @@ 2008-04-23 Paolo Bonzini - * acinclude.m4: Add override.m4. - * configure: Regenerate. + * acinclude.m4: Add override.m4. + * configure: Regenerate. 2008-04-22 Jan Kratochvil @@ -3451,10 +4395,10 @@ Vladimir Prus Fix @-varobjs. - * varobj.c (value_of_root): Update the expression for - floating varobjs. - * mi/mi-cmd-var.c (varobj_update_one): If type has changed, - report that. + * varobj.c (value_of_root): Update the expression for + floating varobjs. + * mi/mi-cmd-var.c (varobj_update_one): If type has changed, + report that. 2008-04-09 Marc Khouzam @@ -3475,7 +4419,7 @@ *value_of_variable. (varobj_get_formatted_value): New. (varobj_get_value): Added format parameter to method call. - + 2008-04-08 Joel Brobecker * stabsread.c (cleanup_undefined_types_noname): Manually set the @@ -3484,7 +4428,7 @@ 2008-04-08 Vladimir Prus * target.h (enum strata): Remove the download_stratum. - + 2008-04-07 Doug Evans * buildsym.h (last_source_file): Add dwarf info to comment. @@ -3499,33 +4443,33 @@ 2008-04-06 Vladimir Prus Fix breakpoint condition that use member variables. - * valops.c (check_field): Remove. - (check_field_in): Rename to check_field. - (value_of_this): Use la_name_of_this. - * value.h (check_field): Adjust prototype. - - * language.h (la_value_of_this): Rename to la_name_of_this. - * language.c (unknown_language_defn): Specify "this" for - name_of_this. - (auto_language_defn): Likewise. - (local_language_defn): Likewise. - * ada-lang.c (ada_language_defn): Adjust comment. - * c-lang.c (c_language_defn): Adjust comment. - (cplus_language_defn): Specify "this" for name_of_this. - (asm_language_defn): Adjust comment. - (minimal_language_defn): Adjust comment. - * f-lang.c (f_language_defn): Specify NULL for name_of_this. - * jv-lang.c (java_language_defn): Specify "this" for name_of_this. - * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. - * objc-lang.c (objc_language_defn): Specify "self" for - name_of_this. - * p-lang.c (pascal_language_defn): Specify "this" for - name_of_this. - * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. - - * symtab.c (lookup_symbol_aux): Lookup "this" in the - proper scope, and check for field in type of "this", without - trying to create a value. + * valops.c (check_field): Remove. + (check_field_in): Rename to check_field. + (value_of_this): Use la_name_of_this. + * value.h (check_field): Adjust prototype. + + * language.h (la_value_of_this): Rename to la_name_of_this. + * language.c (unknown_language_defn): Specify "this" for + name_of_this. + (auto_language_defn): Likewise. + (local_language_defn): Likewise. + * ada-lang.c (ada_language_defn): Adjust comment. + * c-lang.c (c_language_defn): Adjust comment. + (cplus_language_defn): Specify "this" for name_of_this. + (asm_language_defn): Adjust comment. + (minimal_language_defn): Adjust comment. + * f-lang.c (f_language_defn): Specify NULL for name_of_this. + * jv-lang.c (java_language_defn): Specify "this" for name_of_this. + * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. + * objc-lang.c (objc_language_defn): Specify "self" for + name_of_this. + * p-lang.c (pascal_language_defn): Specify "this" for + name_of_this. + * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. + + * symtab.c (lookup_symbol_aux): Lookup "this" in the + proper scope, and check for field in type of "this", without + trying to create a value. 2008-04-04 Pedro Alves @@ -3574,7 +4518,7 @@ 2008-04-01 Aleksandar Ristovski * valops.c (value_cast_structs): New function. Cast related - STRUCT types up/down and return cast value. The body of this + STRUCT types up/down and return cast value. The body of this function comes mostly from value_cast_pointers. (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved to value_cast_structs. Now value_cast_pointers needs only create @@ -3738,14 +4682,14 @@ 2008-03-24 Nick Roberts Vladimir Prus - * varobj.c (struct varobj_root): New component thread_id. - (varobj_get_thread_id, check_scope): New functions. - (c_value_of_root): Use check_scope. Switch to the + * varobj.c (struct varobj_root): New component thread_id. + (varobj_get_thread_id, check_scope): New functions. + (c_value_of_root): Use check_scope. Switch to the proper thread if necessary. - * varobj.h (varobj_get_thread_id): New extern. + * varobj.h (varobj_get_thread_id): New extern. - * mi/mi-cmd-var.c (print_varobj): Add thread-id field. + * mi/mi-cmd-var.c (print_varobj): Add thread-id field. 2008-03-23 Daniel Jacobowitz @@ -3764,10 +4708,10 @@ 2008-03-23 Vladimir Prus - * varobj.c (struct varobj_root): Clarify - comment on the frame field. - (varobj_create): Don't set frame if we have no - block. + * varobj.c (struct varobj_root): Clarify + comment on the frame field. + (varobj_create): Don't set frame if we have no + block. 2008-03-21 Daniel Jacobowitz @@ -4051,46 +4995,46 @@ 2008-03-16 Nick Hudson - * Makefile.in (amd64nbsd-nat.o): New dependency. - * amd64nbsd-nat.c: Include "nbsd-nat.h". - (_initialize_amd64nbsd_nat): Update target vector to use - nbsd_pid_to_exec_file. - * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o. + * Makefile.in (amd64nbsd-nat.o): New dependency. + * amd64nbsd-nat.c: Include "nbsd-nat.h". + (_initialize_amd64nbsd_nat): Update target vector to use + nbsd_pid_to_exec_file. + * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o. 2008-03-15 Vladimir Prus Remove ignoring leading exec events code. - * fork-child.c (startup_inferior): Do not set - inferior_ignoring_leading_exec_events. - * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove. - (inf_child_target): Do not set to_reported_exec_events_per_exec_call. - * infrun.c (inferior_ignoring_leading_exec_events): Remove. - (handle_inferior_event): Remove code for ignoring leading exec - events. - * target.c (update_current_target): Do not inherit, or default, - to_reported_exec_events_per_exec_call. - (debug_to_reported_exec_events_per_exec_call): Remove. - (setup_target_debug): Do not set to_reported_exec_events_per_exec_call. - * target.h (target_reported_exec_events_per_exec_call): Remove. - (struct target): Remove the to_reported_exec_events_per_exec_call - field. + * fork-child.c (startup_inferior): Do not set + inferior_ignoring_leading_exec_events. + * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove. + (inf_child_target): Do not set to_reported_exec_events_per_exec_call. + * infrun.c (inferior_ignoring_leading_exec_events): Remove. + (handle_inferior_event): Remove code for ignoring leading exec + events. + * target.c (update_current_target): Do not inherit, or default, + to_reported_exec_events_per_exec_call. + (debug_to_reported_exec_events_per_exec_call): Remove. + (setup_target_debug): Do not set to_reported_exec_events_per_exec_call. + * target.h (target_reported_exec_events_per_exec_call): Remove. + (struct target): Remove the to_reported_exec_events_per_exec_call + field. 2008-03-15 Vladimir Prus Implement -thread-info. - * gdbthread.h (print_thread_info): Declare. + * gdbthread.h (print_thread_info): Declare. - * thread.c (print_thread_info): New, extracted - from info_threads_command and adjusted to - work for CLI and MI. - (info_threads_command): Use print_thread_info. + * thread.c (print_thread_info): New, extracted + from info_threads_command and adjusted to + work for CLI and MI. + (info_threads_command): Use print_thread_info. * Makefile.in: Update dependencies. - * mi/mi-cmds.c (mi_cmds): Specify a handler - for -thread-info. - * mi/mi-cmds.h (mi_cmd_thread_info): Declare. - * mi/mi-main.c (mi_cmd_thread_info): New. - (mi_cmd_list_features): Include 'thread-info'. + * mi/mi-cmds.c (mi_cmds): Specify a handler + for -thread-info. + * mi/mi-cmds.h (mi_cmd_thread_info): Declare. + * mi/mi-main.c (mi_cmd_thread_info): New. + (mi_cmd_list_features): Include 'thread-info'. 2008-03-14 Kevin Buettner @@ -4148,33 +5092,33 @@ 2008-03-14 Vladimir Prus Async mode fixes. - * Makefile.in (infcmd.o, inf-loop.o): Update dependencies. - * breakpoint.c (bpstat_do_actions): In async mode, - don't jump to top expecting stop_bpstat to be already - updated. - * event-loop.c (start_event_loop): Call async_enable_stdin - on exception. - * event-top.c (async_enable_stdin): Do nothing if sync_execution - is not set. - (command_handler): Do not setup continuation here. - (command_line_handler_continuation): Move to... - * top.c (command_line_handler_continuation): ... here. - (execute_command): In async mode, register continuation. - Don't check frame's language in running in async mode. - * exceptions.c (throw_exception): Don't do exec_error_cleanups. - * inf-loop.c (complete_execution): Inline into... - (inferior_event_handler): ... here. Clear target_executing before - doing any cleanups. Don't try to show prompt if the target was - resumed. - * infcmd.c (signal_command): Add support for async mode. - (finish_command): Only add continuation if the target was - successfully resumed. - * remote.c (init_async_opts): Register to_get_thread_local_address - handler. - * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess - with sync_execution. - * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin - on exception. + * Makefile.in (infcmd.o, inf-loop.o): Update dependencies. + * breakpoint.c (bpstat_do_actions): In async mode, + don't jump to top expecting stop_bpstat to be already + updated. + * event-loop.c (start_event_loop): Call async_enable_stdin + on exception. + * event-top.c (async_enable_stdin): Do nothing if sync_execution + is not set. + (command_handler): Do not setup continuation here. + (command_line_handler_continuation): Move to... + * top.c (command_line_handler_continuation): ... here. + (execute_command): In async mode, register continuation. + Don't check frame's language in running in async mode. + * exceptions.c (throw_exception): Don't do exec_error_cleanups. + * inf-loop.c (complete_execution): Inline into... + (inferior_event_handler): ... here. Clear target_executing before + doing any cleanups. Don't try to show prompt if the target was + resumed. + * infcmd.c (signal_command): Add support for async mode. + (finish_command): Only add continuation if the target was + successfully resumed. + * remote.c (init_async_opts): Register to_get_thread_local_address + handler. + * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess + with sync_execution. + * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin + on exception. 2008-03-14 Daniel Jacobowitz @@ -4192,39 +5136,39 @@ 2008-03-14 Vladimir Prus Remove unused remote.c hooks. - * remote.c (deprecated_target_resume_hook) - (deprecated_target_wait_loop_hook): Remove. - (remote_resume): Do not call deprecated_target_resume_hook. - (remote_wait): Do not call deprecated_target_wait_loop_hook. - (remote_async_wait): Likewise. + * remote.c (deprecated_target_resume_hook) + (deprecated_target_wait_loop_hook): Remove. + (remote_resume): Do not call deprecated_target_resume_hook. + (remote_wait): Do not call deprecated_target_wait_loop_hook. + (remote_async_wait): Likewise. 2008-03-14 Vladimir Prus Implement MI notification for new threads. - * doc/observer.texi (new_thread): Document. - * observer.sh: Forward declare struct thread_info. - * thread.c (add_thread): Notify observer. - - * interps.h (interp_init_ftype): New parameter - top_level. - (interp_set): Likewise. - (top_level_interpreter_data): Declare. - * interps.c (interp_set): New parameter top_level. - Pass it to interpreter's init function. Remember - top level interpreter. - (interpreter_exec_cmd): Adjust. - (top_level_interpreter_data): New. - * main.c (captured_main): Pass 1 for top_level - parameter of interp_set. + * doc/observer.texi (new_thread): Document. + * observer.sh: Forward declare struct thread_info. + * thread.c (add_thread): Notify observer. + + * interps.h (interp_init_ftype): New parameter + top_level. + (interp_set): Likewise. + (top_level_interpreter_data): Declare. + * interps.c (interp_set): New parameter top_level. + Pass it to interpreter's init function. Remember + top level interpreter. + (interpreter_exec_cmd): Adjust. + (top_level_interpreter_data): New. + * main.c (captured_main): Pass 1 for top_level + parameter of interp_set. * cli/cli-interp.c (cli_interpreter_init): New - parameter top_level. - * tui/tui-interp.c (tui_init): New parameter top_level. + parameter top_level. + * tui/tui-interp.c (tui_init): New parameter top_level. - * mi/mi-interp.c (mi_new_thread): New. - (mi_interpreter_init): If top level, register - observer for new threads. + * mi/mi-interp.c (mi_new_thread): New. + (mi_interpreter_init): If top level, register + observer for new threads. - * Makefile.in (mi-interp.o, thread.o): Update dependencies. + * Makefile.in (mi-interp.o, thread.o): Update dependencies. 2008-03-14 Pedro Alves @@ -4383,7 +5327,7 @@ * mi/mi-interp.c (mi_command_loop): Remove commented-out code. - + 2008-03-07 Joel Brobecker * remote.c (extended_remote_attach_1): Make local variable pid an int @@ -4613,9 +5557,9 @@ 2008-02-23 Vladimir Prus Unbreak 'target async'. - * serial.c (serial_async): Set the - handler function before enabling async - mode. + * serial.c (serial_async): Set the + handler function before enabling async + mode. 2008-02-22 Daniel Jacobowitz @@ -4645,13 +5589,13 @@ * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by trad_frame_saved_reg. - (trad-frame.h): New include. + (trad-frame.h): New include. (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs - instead of frame_obstack_zalloc. + instead of frame_obstack_zalloc. (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register. - * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. + * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. 2008-02-20 Markus Deuling @@ -4719,7 +5663,7 @@ of gdbarch_num_regs. * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and - replace current_gdbarch by gdbarch. + replace current_gdbarch by gdbarch. (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr. 2008-02-18 Markus Deuling @@ -4732,13 +5676,13 @@ * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as parameter and replace current_gdbarch by gdbarch. - + (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at the current architecture. Update call for getregs_supplies and getfpregs_supplies. (ppcnbsd_fetch_inferior_registers): Likewise. - * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and + * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and replace current_gdbarch by gdbarch. (ppcobsd_fetch_registers, ppcobsd_store_registers): Use get_regcache_arch to get at the current architecture. Update call for @@ -4747,7 +5691,7 @@ 2008-02-18 Markus Deuling * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch - variables. + variables. 2008-02-15 Markus Deuling @@ -4756,7 +5700,7 @@ 2008-02-14 Vladimir Prus * NEWS: Mention pending breakpints in MI. - + 2008-02-14 Markus Deuling * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o. @@ -4910,8 +5854,8 @@ Update stored rendition of varobj value when format changes. * varobj.c (varobj_set_display_format): Recomputed - print_value. - (c_value_of_variable): Return print_value. + print_value. + (c_value_of_variable): Return print_value. 2008-02-03 Doug Evans @@ -4943,7 +5887,7 @@ 2008-02-02 Mark Kettenis Luis Machado - Thiago Jung Bauermann + Thiago Jung Bauermann * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that don't fit into registerson the stack the way GCC does. @@ -4961,18 +5905,18 @@ (new_symbol): Likewise. 2008-02-01 Vladimir Prus - - * breakpoint.c (break_command_1): Return void. - (break_command_really): Return void. Rethrow - exceptions instead of returning. - (gdb_breakpoint): Remove the error_message parameter. - Return void. Rename to set_breakpoint. - * gdb.h (gdb_breakpoint): Rename and move to... + + * breakpoint.c (break_command_1): Return void. + (break_command_really): Return void. Rethrow + exceptions instead of returning. + (gdb_breakpoint): Remove the error_message parameter. + Return void. Rename to set_breakpoint. + * gdb.h (gdb_breakpoint): Rename and move to... * breakpoint.h (set_breakpoint): ...here. - * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore - event hooks even if exception is thrown. Adjust to - gdb_breakpoint interface changes. - + * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore + event hooks even if exception is thrown. Adjust to + gdb_breakpoint interface changes. + 2008-02-01 Thiago Jung Bauermann @@ -4984,8 +5928,8 @@ Properly rethrow exception. This fixes errors about non-existent functions for -break-insert. - * breakpoint.c (break_command_really): Use throw_exception - for rethrowing. If rethrowing, don't print the exception. + * breakpoint.c (break_command_really): Use throw_exception + for rethrowing. If rethrowing, don't print the exception. 2008-01-31 Thiago Jung Bauermann @@ -5066,13 +6010,13 @@ 2008-01-30 Vladimir Prus Use vector for varobj_list_children interface. - * gdb/varobj.c (varobj_list_children): Return vector - of varobjs. - * gdb/varobj.h (varobj_list_children): Adjust - prototype. - (varobj_p): Declare. Declare vector thereof. - * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust - for varobj_list_children change. + * gdb/varobj.c (varobj_list_children): Return vector + of varobjs. + * gdb/varobj.h (varobj_list_children): Adjust + prototype. + (varobj_p): Declare. Declare vector thereof. + * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust + for varobj_list_children change. * Makefile.in (varobj_h): Update dependencies. 2008-01-30 Thiago Jung Bauermann @@ -5171,7 +6115,7 @@ 2008-01-29 Aleksandar Ristovski - * varobj (adjust_value_for_child_access): Added checking for + * varobj (adjust_value_for_child_access): Added checking for returned value from gdb_value_ind. (c_describe_child): Likewise. (cplus_describe_child): Fixed a typo. @@ -5186,39 +6130,39 @@ This eliminates the need to traverse value chain, doing various checks, in three different places. - * breakpoint.h (struct bp_location): New fields - lengths and watchpoint_type. - (struct breakpoint): Remove the val_chain field. - * breakpoint.c (is_hardware_watchpoint): New. - (free_valchain): Remove. - (update_watchpoint): New. - (insert_bp_location): For hardware watchpoint, just - directly insert it. - (insert_breakpoints): Call update_watchpoint_locations - on all watchpoints. If we have failed to insert - any location of a hardware watchpoint, remove all inserted - locations. - (remove_breakpoint): For hardware watchpoints, directly - remove location. - (watchpoints_triggered): Iterate over locations. - (bpstat_stop_status): Use only first location of - a resource watchpoint. - (delete_breakpoint): Don't call free_valchain. - (print_one_breakpoint): Don't print all - locations for watchpoints. - (breakpoint_re_set_one): Use update_watchpoint for - watchpoints. + * breakpoint.h (struct bp_location): New fields + lengths and watchpoint_type. + (struct breakpoint): Remove the val_chain field. + * breakpoint.c (is_hardware_watchpoint): New. + (free_valchain): Remove. + (update_watchpoint): New. + (insert_bp_location): For hardware watchpoint, just + directly insert it. + (insert_breakpoints): Call update_watchpoint_locations + on all watchpoints. If we have failed to insert + any location of a hardware watchpoint, remove all inserted + locations. + (remove_breakpoint): For hardware watchpoints, directly + remove location. + (watchpoints_triggered): Iterate over locations. + (bpstat_stop_status): Use only first location of + a resource watchpoint. + (delete_breakpoint): Don't call free_valchain. + (print_one_breakpoint): Don't print all + locations for watchpoints. + (breakpoint_re_set_one): Use update_watchpoint for + watchpoints. 2008-01-29 Vladimir Prus Don't reset watchpoint block on solib load. - * breakpoint.c (insert_bp_location): For watchpoints, - recompute condition. - (breakpoint_re_set_one): Instead of recomputing value - and condition for watchpoints, just reset value and - let insert_breakpoints/insert_bp_location recompute it. - Don't do anything about disabled watchpoint. + * breakpoint.c (insert_bp_location): For watchpoints, + recompute condition. + (breakpoint_re_set_one): Instead of recomputing value + and condition for watchpoints, just reset value and + let insert_breakpoints/insert_bp_location recompute it. + Don't do anything about disabled watchpoint. 2008-01-29 Pierre Muller @@ -5267,32 +6211,32 @@ 2008-01-23 Vladimir Prus Chris Demetriou - * thread.c (add_thread_silent): Renamed - from add_thread. - (print_thread_events): New variable definition. - (show_print_thread_events): New function. - (_initialize_thread): Add "set print thread-events" and - "show print thread-events" commands. - (add_thread): Announce new thread. - * gdbthread.h (add_thread_silent): Declare. - (print_thread_events): New variable declaration. - * inf-ttrace.c (inf_ttrace_wait): Don't - inform about new thread, as add_thread is always - called too, and will take care of that. - * infrun.c (handle_inferior_event): Likewise. - * procfs.c (procfs_wait): Likewise. - * remote.c (remote_currthread): Likewise. - * sol-thread.c (sol_thread_wait): Likewise. - * win32-nat.c (get_win32_debug_event): Likewise. - * linux-thread-db.c (attach_thread): Likewise. - Remove the verbose parameter. - (check_event): Make detach_thread be verbose - only if print_thread_events is set. - * linux-nat.c (lin_lwp_attach_lwp): Don't inform - about new thread. This is called only from - linux-thread-db.c:attach_thread, which will take care. - Remove the verbose parameter. - * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype. + * thread.c (add_thread_silent): Renamed + from add_thread. + (print_thread_events): New variable definition. + (show_print_thread_events): New function. + (_initialize_thread): Add "set print thread-events" and + "show print thread-events" commands. + (add_thread): Announce new thread. + * gdbthread.h (add_thread_silent): Declare. + (print_thread_events): New variable declaration. + * inf-ttrace.c (inf_ttrace_wait): Don't + inform about new thread, as add_thread is always + called too, and will take care of that. + * infrun.c (handle_inferior_event): Likewise. + * procfs.c (procfs_wait): Likewise. + * remote.c (remote_currthread): Likewise. + * sol-thread.c (sol_thread_wait): Likewise. + * win32-nat.c (get_win32_debug_event): Likewise. + * linux-thread-db.c (attach_thread): Likewise. + Remove the verbose parameter. + (check_event): Make detach_thread be verbose + only if print_thread_events is set. + * linux-nat.c (lin_lwp_attach_lwp): Don't inform + about new thread. This is called only from + linux-thread-db.c:attach_thread, which will take care. + Remove the verbose parameter. + * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype. 2008-01-23 Nick Roberts @@ -5336,10 +6280,10 @@ * hppaobsd-tdep.c: ... here. New file. * hppnbsd-tdep.c: New file. * hppnbsd-nat.c: New file. - * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o. + * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o. (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c. - (hppabsd-nat.o, hppabsd-tdep.o): New dependencies. - (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies. + (hppabsd-nat.o, hppabsd-tdep.o): New dependencies. + (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies. * configure.host (hppa*-*-netbsd*): New entry. * configure.tgt (hppa*-*-netbsd*): New entry. (hppa*-*-openbsd*): Update. @@ -5363,7 +6307,7 @@ * dwarf2read.c (dwarf2_add_field): Likewise. * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val) (move_bits, ada_value_assign, value_assign_to_component): Likewise. - + * defs.h (BITS_BIG_ENDIAN): Remove. 2008-01-18 Markus Deuling @@ -5430,7 +6374,7 @@ 2008-01-16 Markus Deuling - * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as + * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as parameter. * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise. @@ -5478,7 +6422,7 @@ current_gdbarch by gdbarch. (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the - current architecture by frame_info. Update alpha_heuristic_proc_start + current architecture by frame_info. Update alpha_heuristic_proc_start call. (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use @@ -5498,11 +6442,11 @@ gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch. * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add - gdbarch as parameter. Update caller. + gdbarch as parameter. Update caller. (h8300_init_frame_cache): Add gdbarch as parameter. Replace current_gdbarch by gdbarch. Update caller. - * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and + * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and update caller. Replace current_gdbarch by gdbarch. * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at @@ -5514,7 +6458,7 @@ (M6811_TDEP): Remove. (m68hc11_frame_prev_register): Use get_frame_arch to get at the current architecture. - (m68hc11_scan_prologue): Add gdbarch as parameter. Replace + (m68hc11_scan_prologue): Add gdbarch as parameter. Replace current_gdbarch by gdbarch. Update caller. * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and @@ -5530,10 +6474,10 @@ * ppc-linux-nat.c (fetch_register, store_register): Update caller of altivec_register_p and spe_register_p. - * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update + * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch. (score_analyze_prologue): use get_frame_arch to get at the current - architecture. + architecture. * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter. * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace @@ -5554,7 +6498,7 @@ deprecated_print_address_numeric by paddress. * Makefile.in (exec.o) Add dependency to arch-utils.h. - * valprint.c (val_print_string): Replace + * valprint.c (val_print_string): Replace deprecated_print_address_numeric. * tracepoint.c (trace_mention, scope_info): Likewise. * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol) @@ -5572,7 +6516,7 @@ * dwarf2read.c (dump_die): Likewise. * ada-valprint.c (ada_val_print_1): Likewise. * f-valprint.c (f_val_print): Likewise. - * linux-fork.c (info_forks_command): Likewise. + * linux-fork.c (info_forks_command): Likewise. * m32r-com.c (m32r_load_section, m32r_load) (m32r_upload_command): Likewise. @@ -5725,9 +6669,9 @@ execution on Solaris. This also unbreaks pending breakpoints. * solist.h (struct target_so_ops): New field same. - * solib-svr4.c (svr4_same): New. - (_initialize_svr4_solib): Register svr4_same. - * solib.c (update_solib_list): Use ops->same, if available. + * solib-svr4.c (svr4_same): New. + (_initialize_svr4_solib): Register svr4_same. + * solib.c (update_solib_list): Use ops->same, if available. 2008-01-06 Christopher Faylor @@ -5767,7 +6711,7 @@ 2008-01-04 Paul N. Hilfinger - * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. + * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. 2008-01-04 Joel Brobecker @@ -5813,12 +6757,12 @@ (ada_to_fixed_type_1): Renamed from ada_to_fixed_type. (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1. * ada-typeprint.c (ada_print_type): Get the typename from - the original type, not the base type. + the original type, not the base type. 2008-01-03 Jerome Guitton * ada-lang.c (ada_value_struct_elt, to_fixed_array_type) - (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): + (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): Update calls to ada_to_fixed_type. (ada_template_to_fixed_record_type_1): Ditto, but without looking for the tag. @@ -5830,7 +6774,7 @@ 2008-01-03 Luis Machado - * doublest.c (convert_floatformat_to_doublest): Call + * doublest.c (convert_floatformat_to_doublest): Call floatformat_to_doublest instead of floatformat_to_double and use DOUBLEST variables. (convert_doublest_to_floatformat): Call floatformat_from_doublest @@ -5869,7 +6813,7 @@ * ada-lang.c (ada_value_equal): Dereference reference types when comparing arrays. - + 2008-01-01 Daniel Jacobowitz Updated copyright notices for most files.