* lin-lwp.c (child_wait): Call linux_record_stopped_pid.
[binutils-gdb.git] / gdb / ChangeLog
index 72ab0eb48075862c45967521ccf0e6196180fd6b..fe047c668ffacce80ddfbd7b26554ea6ba7b4367 100644 (file)
@@ -1,3 +1,258 @@
+2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
+
+       * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
+
+2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
+
+       * Makefile.in (i386-linux-nat.o): Update dependencies.
+       * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
+       * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
+       (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
+       * i386-linux-nat.c: Include "linux-nat.h".
+       (child_post_startup_inferior): New function.
+       * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
+       * infptrace.c (kill_inferior): Wrap in #ifdef.
+       * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
+       attaching to each LWP.
+       (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
+       (init_lin_lwp_ops): Fill in some more operations.
+       * linux-nat.h (linux_enable_event_reporting)
+       (linux_handle_extended_wait, linux_child_post_startup_inferior): New
+       prototypes.
+       * linux-nat.c (linux_enable_event_reporting): New function.
+       (child_post_attach, linux_child_post_startup_inferior)
+       (child_post_startup_inferior, child_follow_fork)
+       (linux_handle_extended_wait, kill_inferior): New functions.
+
+2003-08-16  Andrew Cagney  <cagney@redhat.com>
+
+       * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
+       * gdbarch.h, gdbarch.c: Re-generate.
+
+2003-08-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
+
+2003-08-16  Andrew Cagney  <cagney@redhat.com>
+
+       * NEWS: Mention that "set prompt-escape-char" was deleted.
+       * top.c (get_prompt_1): Delete function.
+       (gdb_prompt_escape):
+       (init_main): Do not clear "gdb_prompt_escape".  Delete "set
+       prompt-escape-char" command.
+       (MAX_PROMPT_SIZE): Delete macro.
+       (get_prompt): Simplify, do not call get_prompt_1.
+
+2003-08-16  Andrew Cagney  <cagney@redhat.com>
+
+       * Makefile.in (printcmd.o, valprint.o): Do not try to build with
+       -Werror.  -Wformat-nonliteral problems.
+
+2003-08-15  J. Brobecker  <brobecker@gnat.com>
+
+       Further multiarching work mostly for hppa64-*-hpux11:
+       * hppa-tdep.h: New file.
+       * hppa-tdep.c: #include hppa-tdep.c.
+       (hppa32_num_regs): Renamed from hppa_num_regs.
+       (hppa64_num_regs): New constant.
+       (hppa64_call_dummy_breakpoint_offset): New constant.
+       (hppa32_call_dummy_length): New constant.
+       (hppa64_call_dummy_length): New constant.
+       (hppa32_stack_align): Make name 32bit explicit.
+       (hppa32_register_virtual_type): Likewise.
+       (hppa32_extract_return_value): Likewise.
+       (hppa32_use_struct_convention): Likewise.
+       (hppa32_store_return_value): Likewise.
+       (hppa64_register_virtual_type): New function.
+       (hppa64_extract_return_value): New function.
+       (hppa64_use_struct_convention): New function.
+       (hppa64_store_return_value): New function.
+       (hppa_frame_locals_address): Remove declaration, function does
+       not exist anymore.
+       (hppa_register_byte): Add support for PA64 ABI.
+       (hppa_gdbarch_init): Add support for PA64 ABI.
+       * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
+       Make name 32bit explicit.
+       (hppa32_hpux_frame_base_before_sigtramp): Likewise.
+       (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
+       (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
+       (hppa64_hpux_frame_base_before_sigtramp): New function.
+       (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
+       * config/pa/tm-hppa64.h: Remove macros that are no longer
+       necessary now that the gdbarch vector is properly setup.
+       Transform some macros into function calls. Some minor cleanup. 
+       * config/pa/tm-hppah.h: Update function calls in macros
+       following the function renaming in hppa-hpux-tdep.c.
+       * Makefile.in (hppa_tdep_h): New variable.
+       (hppa-tdep.o): Add dependency over hppa_tdep_h.
+
+2003-08-14  Michael Snyder  <msnyder@redhat.com>
+
+       * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
+
+2003-08-13  J. Brobecker  <brobecker@gnat.com>
+
+       * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
+       bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
+       routine.
+
+2003-08-13  Michael Snyder  <msnyder@redhat.com>
+
+       * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
+       (frv_saved_pc_after_call): Use deprecated ftype.
+       (stupid_useless_init_extra_frame_info): Remove orphan prototype.
+       (frv_remote_translate_xfer_address): Remove.
+       (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
+
+2003-08-13  J. Brobecker  <brobecker@gnat.com>
+
+       * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
+       initialization after the common gdbarch initialization, not before.
+
+2003-08-13  J. Brobecker  <brobecker@gnat.com>
+
+       * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
+       (ADDR_BITS_REMOVE): Remove, redundant.
+
+2003-08-13  J. Brobecker  <brobecker@gnat.com>
+
+       * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
+       gdbarch method to clear the 2 low bits of text addresses.
+
+2003-08-12  Andrew Cagney  <cagney@redhat.com>
+
+       * Makefile.in (dsrec.o): Update dependencies.
+       * dsrec.c: Include "gdb_assert.h".
+       (make_srec): Use snprintf instead of sprintf, use a literal format
+       string.
+
+2003-08-12  Andrew Cagney  <cagney@redhat.com>
+
+       * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
+       FRAME_OBSTACK_ZALLOC.
+
+2003-08-12  Kevin Buettner  <kevinb@redhat.com>
+
+       * i386-tdep.c (i386_gdbarch_init): Enable default support for
+       SSE registers.
+
+2003-08-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
+       amd64fbsd_sc_reg_offset): Add extern declarations.
+       * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
+       declarations.
+
+2003-08-11  Ben Elliston  <bje@wasabisystems.com>
+
+       * MAINTAINERS (write after approval): Update my mail address.
+
+2003-08-10  Andrew Cagney  <cagney@redhat.com>
+
+       * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
+
+2003-08-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
+       i386obsd_sigtramp_start, i386obsd_sigtramp_end,
+       i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
+       i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
+       i386bsd_sc_reg_offset): Add extern declarations.
+       * i386obsd-nat.c: Include "i386-tdep.h"
+       (_initialize_i386obsd_nat): Remove extern declarations.
+       * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
+       declarations.
+       * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
+       declarations.
+
+       * i386-tdep.c (i386_register_to_value): Use get_frame_register
+       instead of frame_read_register.
+       (i386_fetch_pointer_argument): Use get_frame_register_unsigned
+       instead of frame_read_register.  Use I386_ESP_REGNUM instead of
+       SP_REGNUM.
+       (i386_frame_prev_register): Use frame_unwind_register_unsigned
+       instead of frame_unwind_unsigned_register.  Use
+       I386_EFLAGS_REGISTER instead of PS_REGNUM.
+       (i386_get_longjmp_target): Use regcache_read_unsigned_register
+       instead of read_register.  Use builtin_type_void_data_ptr instead
+       of builtin_type_void_func_ptr when extracting the address of the
+       jmp_buf.
+       (i386_extract_return_value, i386_store_return_value,
+       i386_pseudo_register_read, i386_pseudo_register_write): Use
+       register_size instead REGISTER_RAW_SIZE.
+
+2003-08-10  Andrew Cagney  <cagney@redhat.com>
+
+       * infcall.c (call_function_by_hand): Use xstrprintf instead of
+       sprintf.  Make "name" constant.
+
+2003-08-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * i387-tdep.c (i387_register_to_value): Use get_frame_register
+       instead of frame_read_register.
+       (i387_print_float_info): Use get_frame_register and
+       get_frame_register_unsigned instead of frame_register_read.
+
+       * i386fbsd-nat.c: Include "i386-tdep.h".
+       (child_resume): Make `eflags' an ULONGEST.  Use
+       regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
+       instead of register_read and register_write.
+
+       * i386bsd-nat.c (fetch_inferior_registers,
+       store_inferior_registers): Don't use && at the end of a line.
+       (_initialize_i386bsd_nat): Fix typo.
+
+       * frame.c (_initialize_frame): Add missing backslash.
+
+       From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
+       * sol-thread.c (sol_thread_store_registers): Use regcache_collect
+       and supply_register instead of manipulating the register buffer
+       directly.
+
+       From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
+       * config/i386/nm-i386sol2.h
+       (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
+
+       Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
+       * i386-tdep.c (i386_analyze_frame_setup): Recognize more
+       instructions that GCC likes to mingle into the prologue.  Fixes
+       gdb/1253 and gdb/1255.
+
+2003-08-09  Andrew Cagney  <cagney@redhat.com>
+
+       Fix GDB PR cli/926.
+       * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
+       * command.h (add_setshow_uinteger_cmd): Declare.
+       * frame.c (set_backtrace_cmd): New function.
+       (show_backtrace_cmd): New function.
+       * frame.c (_initialize_frame): Replace "set/show
+       backtrace-below-main" with "set/show backtrace past-main".  Add
+       command "set/show backtrace limit".
+       (backtrace_past_main): Rename "backtrace_below_main".
+       (backtrace_limit): New variable.
+       (get_prev_frame): Update.  Check the backtrace_limit.
+
+2003-08-09  Andrew Cagney  <cagney@redhat.com>
+
+       * defs.h (xstrprintf): Declare.
+       * utils.c (xstrprintf): New function.
+       * breakpoint.c (insert_breakpoints): Replace sprintf and
+       non-literal format strings, with xstrprintf and cleanups.
+       (delete_breakpoint,breakpoint_re_set): Ditto.
+       (commands_command, insert_breakpoints): Ditto.
+       (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
+       (break_at_finish_command_1): Ditto.
+
+2003-08-09  Andrew Cagney  <cagney@redhat.com>
+
+       * MAINTAINERS (language support): List Adam Fedor as Objective C
+       maintainer.
+
+2003-08-08  J. Brobecker  <brobecker@gnat.com>
+
+       * NEWS (Multi-arched targets): Document that all hppa-hpux targets
+       are now multiarched.
+
 2003-08-08  J. Brobecker  <brobecker@gnat.com>
 
        * config/pa/tm-hppa64.h: Remove lots of macros that are no