external/binutils.git
21 years agodaily update
Alan Modra [Tue, 19 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years agoIndex: ChangeLog
Andrew Cagney [Mon, 18 Aug 2003 20:04:56 +0000 (20:04 +0000)]
Index: ChangeLog
2003-08-18  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
* gdbarch.h, gdbarch.c: Re-generate.
* infcall.c (call_function_by_hand): Adjust the SP by
frame_red_zone_size before allocating any stack space.
* rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
* x86-64-tdep.c (x86_64_frame_align): New function.
(x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".

* x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
Remove code adjusting SP so that it skips over the Red Zone.

Index: doc/ChangeLog
2003-08-18  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Document
"frame_red_zone_size".

21 years ago2003-08-18 Andreas Schwab <schwab@suse.de>
H.J. Lu [Mon, 18 Aug 2003 18:26:56 +0000 (18:26 +0000)]
2003-08-18  Andreas Schwab  <schwab@suse.de>

* libpei.h (bfd_pe_executable_p): Also recognize efi-app
executables.

21 years ago* NEWS (New native configurations): Mention FreeBSD/amd64.
Mark Kettenis [Mon, 18 Aug 2003 18:20:19 +0000 (18:20 +0000)]
* NEWS (New native configurations): Mention FreeBSD/amd64.

21 years ago2003-08-18 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 18 Aug 2003 17:35:16 +0000 (17:35 +0000)]
2003-08-18  Andrew Cagney  <cagney@redhat.com>

* m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
"dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
"m68k_frame_p".
(m68hc11_frame_sniffer): Replace "m68hc11_frame_p".

21 years ago* x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
Mark Kettenis [Mon, 18 Aug 2003 17:33:26 +0000 (17:33 +0000)]
* x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.

21 years ago2003-08-18 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Mon, 18 Aug 2003 13:42:13 +0000 (13:42 +0000)]
2003-08-18  Michal Ludvig  <mludvig@suse.cz>

* config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
Define.
* i386-linux-nat.c: Include "linux-nat.h".
(child_post_startup_inferior): New function.

21 years ago*** empty log message ***
gdbadmin [Mon, 18 Aug 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Mon, 18 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago* gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
Mark Kettenis [Sun, 17 Aug 2003 23:18:31 +0000 (23:18 +0000)]
* gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
* gdb.arch/i386-prologue.c (gdb1338): Add function.

21 years ago* i386-tdep.c (i386_analyze_register_saves): Handle register saves
Mark Kettenis [Sun, 17 Aug 2003 23:16:44 +0000 (23:16 +0000)]
* i386-tdep.c (i386_analyze_register_saves): Handle register saves
at the start of a frameless function.  This probably fixes PR
backtrace/1338.

21 years ago2003-08-17 Michael Chastain <mec@shout.net>
Michael Chastain [Sun, 17 Aug 2003 22:33:08 +0000 (22:33 +0000)]
2003-08-17  Michael Chastain  <mec@shout.net>

* symfile.c (find_sym_fns): Remove special case for apollo target.

21 years ago * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
Daniel Jacobowitz [Sun, 17 Aug 2003 20:17:02 +0000 (20:17 +0000)]
* linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
(PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
(linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
(linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
(linux_supports_tracevforkdone): New function.
(linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
TRACEVFORKDONE.
(child_follow_fork): Handle vfork.
(linux_handle_extended_wait): Likewise.  Also handle exec.
(child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
* NEWS: Mention fork tracing.

21 years ago * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
Daniel Jacobowitz [Sun, 17 Aug 2003 18:52:59 +0000 (18:52 +0000)]
* lin-lwp.c (child_wait): Call linux_record_stopped_pid.

21 years ago * Makefile.in (i386-linux-nat.o): Update dependencies.
Daniel Jacobowitz [Sun, 17 Aug 2003 18:22:25 +0000 (18:22 +0000)]
* 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.

21 years ago * mi-var-display.exp (-var-list-children weird): Accept function
Daniel Jacobowitz [Sun, 17 Aug 2003 17:23:13 +0000 (17:23 +0000)]
* mi-var-display.exp (-var-list-children weird): Accept function
pointers with argument types.
* mi1-var-display.exp (-var-list-children weird): Likewise.
* mi2-var-display.exp (-var-list-children weird): Likewise.

21 years ago * gdb.base/annota3.exp: Add missing newline.
Daniel Jacobowitz [Sun, 17 Aug 2003 16:50:59 +0000 (16:50 +0000)]
* gdb.base/annota3.exp: Add missing newline.

21 years ago * simple.c (bfd_simple_get_relocated_section_contents): Move
Hans-Peter Nilsson [Sun, 17 Aug 2003 07:37:33 +0000 (07:37 +0000)]
* simple.c (bfd_simple_get_relocated_section_contents): Move
reloc_done hack to before first bfd_section_size call.  Change all
returns to use new wrapper macro RETURN, restoring sec->reloc_done.

21 years agoinclude/opcode/ChangeLog:
Jason Eckhardt [Sun, 17 Aug 2003 03:16:23 +0000 (03:16 +0000)]
include/opcode/ChangeLog:
2003-08-16  Jason Eckhardt  <jle@rice.edu>

        * i860.h (fmov.ds): Expand as famov.ds.
        (fmov.sd): Expand as famov.sd.
        (pfmov.ds): Expand as pfamov.ds.

gas/testsuite/ChangeLog:
2003-08-16  Jason Eckhardt  <jle@rice.edu>

        * gas/i860/pseudo-ops01.{s,d}: New files.
        * gas/i860/i860.exp: Execute the new test above.
        * gas/i860/README.i860: Mention that pseudo-ops need more testing
        and remove the align fill defect from the list.

21 years ago2003-08-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 17 Aug 2003 01:06:47 +0000 (01:06 +0000)]
2003-08-16  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
* gdbarch.h, gdbarch.c: Re-generate.

21 years agodaily update
Alan Modra [Sun, 17 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sun, 17 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago* config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
Mark Kettenis [Sat, 16 Aug 2003 18:57:37 +0000 (18:57 +0000)]
* config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.

21 years agoReally check this in now.
Mark Kettenis [Sat, 16 Aug 2003 18:52:43 +0000 (18:52 +0000)]
Really check this in now.

21 years ago2003-08-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 16 Aug 2003 18:38:46 +0000 (18:38 +0000)]
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.

21 years agoOops, merge lost Makefile.in:printcmd.o part of change:
Andrew Cagney [Sat, 16 Aug 2003 17:49:12 +0000 (17:49 +0000)]
Oops, merge lost Makefile.in:printcmd.o part of change:

2003-08-16  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (printcmd.o, valprint.o): Do not try to build with
-Werror.  -Wformat-nonliteral problems.

21 years ago2003-08-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 16 Aug 2003 17:44:51 +0000 (17:44 +0000)]
2003-08-16  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (printcmd.o, valprint.o): Do not try to build with
-Werror.  -Wformat-nonliteral problems.

21 years ago2003-08-15 Michael Chastain <mec@shout.net>
Michael Chastain [Sat, 16 Aug 2003 16:54:26 +0000 (16:54 +0000)]
2003-08-15  Michael Chastain  <mec@shout.net>

* src-release (do-proto-toplev): Remove junk files
dejagnu/example/calc/config.status,
dejagnu/example/calc/config.log.

21 years ago * read.c (s_print): Check for NULL.
Alan Modra [Sat, 16 Aug 2003 14:04:48 +0000 (14:04 +0000)]
* read.c (s_print): Check for NULL.

21 years ago * elf64-ppc.c: Don't include elf/ppc.h.
Alan Modra [Sat, 16 Aug 2003 13:42:43 +0000 (13:42 +0000)]
* elf64-ppc.c: Don't include elf/ppc.h.

21 years ago * write.c (fixup_segment): When handling an expression involving
Alan Modra [Sat, 16 Aug 2003 13:35:08 +0000 (13:35 +0000)]
* write.c (fixup_segment): When handling an expression involving
the subtraction of two symbols in the same segment, don't clear
fx_pcrel except for TC_M68K.

21 years ago * ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust for
Hans-Peter Nilsson [Sat, 16 Aug 2003 11:15:25 +0000 (11:15 +0000)]
* ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust for
recent objdump "Contents of ..." change.

21 years agodaily update
Alan Modra [Sat, 16 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 16 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago Further multiarching work mostly for hppa64-*-hpux11:
Joel Brobecker [Fri, 15 Aug 2003 23:02:05 +0000 (23:02 +0000)]
    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.

21 years agoAdd 'src-release'. 'src-release' was carved out of 'Makefile.in',
Michael Chastain [Fri, 15 Aug 2003 21:47:31 +0000 (21:47 +0000)]
Add 'src-release'.  'src-release' was carved out of 'Makefile.in',
so use the same policy for it.

21 years ago* Makefile.am (GENSCRIPTS_EXTRA): New script definition which calls
Nick Clifton [Fri, 15 Aug 2003 17:04:48 +0000 (17:04 +0000)]
* Makefile.am (GENSCRIPTS_EXTRA): New script definition which calls
  genscripts_extra.sh.
  Rearrange all msp430 depends using this script.
* Makefile.in: Regenerate.
* genscripts_extra.sh: New file: Similar to genscripts.sh, except that the
  script to be run to generate the emulations can be passed
  as an optional parameter instead of being computed from the
  emulation name.
* emulparams/msp430all.sh: New file: Combine all msp430 subdevice definitions
  into one file.
* emulparams/msp430x*.sh: Removed.

21 years agoPut the keywords for the -z option into a table.
Nick Clifton [Fri, 15 Aug 2003 09:42:17 +0000 (09:42 +0000)]
Put the keywords for the -z option into a table.
Add more text describing what the -z now option does.

21 years agodaily update
Alan Modra [Fri, 15 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Fri, 15 Aug 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-08-14 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 14 Aug 2003 21:39:05 +0000 (21:39 +0000)]
2003-08-14  Michael Snyder  <msnyder@redhat.com>

        * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.

21 years ago* config-ml.in, symlink-tree: Add license.
DJ Delorie [Thu, 14 Aug 2003 20:44:13 +0000 (20:44 +0000)]
* config-ml.in, symlink-tree: Add license.

21 years ago2003-08-06 Michael Chastain <mec@shout.net>
Michael Chastain [Thu, 14 Aug 2003 19:11:10 +0000 (19:11 +0000)]
2003-08-06  Michael Chastain  <mec@shout.net>

* gdb.java/jmisc1.exp: Add test for pr gdb/1322.

21 years agoUpdate regexp for destination address of unrelocated branch instructions so
Nick Clifton [Thu, 14 Aug 2003 17:11:08 +0000 (17:11 +0000)]
Update regexp for destination address of unrelocated branch instructions so
that they point to themselves.

21 years ago * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
Richard Sandiford [Thu, 14 Aug 2003 09:30:34 +0000 (09:30 +0000)]
* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
code to work with 64-bit bfds.

21 years ago * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
Alan Modra [Thu, 14 Aug 2003 08:05:44 +0000 (08:05 +0000)]
* config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
code.
* config/tc-i386.c: Likewise.
(RELOC_ENUM): Don't define.  Replace throughout with enum.

21 years ago * dep-in.sed: Remove libintl.h.
Alan Modra [Thu, 14 Aug 2003 07:15:36 +0000 (07:15 +0000)]
* dep-in.sed: Remove libintl.h.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

21 years agofix typo
Alan Modra [Thu, 14 Aug 2003 07:06:45 +0000 (07:06 +0000)]
fix typo

21 years ago * dep-in.sed: Remove libintl.h.
Alan Modra [Thu, 14 Aug 2003 07:04:57 +0000 (07:04 +0000)]
* dep-in.sed: Remove libintl.h.
* Makefile.am (POTFILES.in): Unset LC_COLLATE.
* Makefile.in: Regenerate.

21 years ago * dep-in.sed: Remove libintl.h. Ignore include/fpoen-*.h
Alan Modra [Thu, 14 Aug 2003 07:04:09 +0000 (07:04 +0000)]
* dep-in.sed: Remove libintl.h.  Ignore include/fpoen-*.h
* Makefile.am (POTFILES.in): Unset LC_COLLATE.
Run "make dep-am".
* Makefile.in: Regenerate.

21 years ago * Makefile.am (POTFILES.in): Unset LC_COLLATE.
Alan Modra [Thu, 14 Aug 2003 07:03:41 +0000 (07:03 +0000)]
* Makefile.am (POTFILES.in): Unset LC_COLLATE.
* Makefile.in: Regenerate.

21 years ago * dep-in.sed: Remove libintl.h.
Alan Modra [Thu, 14 Aug 2003 07:03:18 +0000 (07:03 +0000)]
* dep-in.sed: Remove libintl.h.
* Makefile.am (POTFILES.in): Unset LC_COLLATE.
Run "make dep-am".
* Makefile.in: Regenerate.

21 years ago * dep-in.sed: Remove libintl.h.
Alan Modra [Thu, 14 Aug 2003 07:03:00 +0000 (07:03 +0000)]
* dep-in.sed: Remove libintl.h.
* Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Unset LC_COLLATE.
(POTFILES.in): Remove target.
* Makefile.in: Regenerate.

21 years ago * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
Joel Brobecker [Thu, 14 Aug 2003 00:23:51 +0000 (00:23 +0000)]
   * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
       bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
       routine.

21 years agodaily update
Alan Modra [Thu, 14 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Thu, 14 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-08-13 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 13 Aug 2003 21:59:20 +0000 (21:59 +0000)]
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.

21 years ago * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
Joel Brobecker [Wed, 13 Aug 2003 18:57:01 +0000 (18:57 +0000)]
   * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
       initialization after the common gdbarch initialization, not before.

21 years ago * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
Joel Brobecker [Wed, 13 Aug 2003 18:05:40 +0000 (18:05 +0000)]
   * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
       (ADDR_BITS_REMOVE): Remove, redundant.

21 years ago * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
Joel Brobecker [Wed, 13 Aug 2003 17:09:09 +0000 (17:09 +0000)]
    * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
        gdbarch method to clear the 2 low bits of text addresses.

21 years ago * genscripts.sh (libpath.exp): Only generate for first emulation.
Alan Modra [Wed, 13 Aug 2003 08:38:23 +0000 (08:38 +0000)]
* genscripts.sh (libpath.exp): Only generate for first emulation.
(LIB_PATH): Correct order of paths.  Don't add $tool_lib when
already present or when LIB_PATH is set to ":".

21 years agodaily update
Alan Modra [Wed, 13 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Wed, 13 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-08-12 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 12 Aug 2003 22:27:19 +0000 (22:27 +0000)]
2003-08-12  Michael Snyder  <msnyder@redhat.com>

        * gdb.base/float.exp: Add test for SH.

21 years ago2003-08-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 12 Aug 2003 19:34:20 +0000 (19:34 +0000)]
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.

21 years ago2003-08-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 12 Aug 2003 17:45:13 +0000 (17:45 +0000)]
2003-08-12  Andrew Cagney  <cagney@redhat.com>

* frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
FRAME_OBSTACK_ZALLOC.

21 years ago * ldmain.c (undefined_symbol): Change parameter name from `fatal'
Ian Lance Taylor [Tue, 12 Aug 2003 16:46:17 +0000 (16:46 +0000)]
* ldmain.c (undefined_symbol): Change parameter name from `fatal'
to `error'.  If only a warning, put warning in the reported
string.  Consistently set failure flag when not a warning.

21 years ago * i386-tdep.c (i386_gdbarch_init): Enable default support for
Kevin Buettner [Tue, 12 Aug 2003 16:12:33 +0000 (16:12 +0000)]
* i386-tdep.c (i386_gdbarch_init): Enable default support for
SSE registers.

21 years agomerge from gcc
DJ Delorie [Tue, 12 Aug 2003 12:23:42 +0000 (12:23 +0000)]
merge from gcc

21 years ago * elf64-ppc.c (ppc64_elf_next_input_section): Update comment.
Alan Modra [Tue, 12 Aug 2003 05:58:10 +0000 (05:58 +0000)]
* elf64-ppc.c (ppc64_elf_next_input_section): Update comment.
(ppc64_elf_relocate_section): For zero sym R_PPC64_TOC relocs,
use the function sym from the previous reloc.

21 years agodaily update
Alan Modra [Tue, 12 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Tue, 12 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-07-22 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 11 Aug 2003 23:20:05 +0000 (23:20 +0000)]
2003-07-22  Michael Snyder  <msnyder@redhat.com>

        * gdb.disasm/8300s.s: Fix syntax of bsr insn.

        * gdb.disasm/h8300s.exp : Minor changes in disassembler output require
        patterns to be more general, accepting old and new output.
        Some output chars (such as '+') also must be quoted.
        Some addresses are displayed numerically instead of
        symbolically.

21 years ago2003-08-11 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 11 Aug 2003 19:36:23 +0000 (19:36 +0000)]
2003-08-11  Michael Snyder  <msnyder@redhat.com>

        * macl.s: New file.
        * macw.s: New file.
        * allinsn.exp: Add new tests for mac.w and mac.l.

21 years ago2003-08-11 Shrinivas Atre <shrinivasa@KPITCummins.com>
Michael Snyder [Mon, 11 Aug 2003 19:28:05 +0000 (19:28 +0000)]
2003-08-11  Shrinivas Atre  <shrinivasa@KPITCummins.com>
* sim/sh/gencode.c ( tab[] ): Addition of MAC.L handler and
        correction for MAC.W handler
        * sim/sh/interp.c ( macl ): New Function. Implementation of
        MAC.L handler.

21 years ago* x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
Mark Kettenis [Mon, 11 Aug 2003 16:55:21 +0000 (16:55 +0000)]
* 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.

21 years ago * readelf.c (process_archive): Fix error handling. Remove memory
Ian Lance Taylor [Mon, 11 Aug 2003 16:34:18 +0000 (16:34 +0000)]
* readelf.c (process_archive): Fix error handling.  Remove memory
leak.

21 years ago * elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
Jakub Jelinek [Mon, 11 Aug 2003 14:26:11 +0000 (14:26 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
fatal if -pie.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
(ppc_elf_relocate_section) <case R_PPC_RELAX32>: Issue fatal error
on undefined symbols if -pie.
* elf32-sh.c (sh_elf_relocate_section): Likewise.

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Add special case for crt1.o
Alan Modra [Mon, 11 Aug 2003 11:31:01 +0000 (11:31 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Add special case for crt1.o
branch to __libc_start_main.

21 years agoAdd ability for readelf to parse archives
Nick Clifton [Mon, 11 Aug 2003 09:15:55 +0000 (09:15 +0000)]
Add ability for readelf to parse archives

21 years agodaily update
Alan Modra [Mon, 11 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Mon, 11 Aug 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * MAINTAINERS (write after approval): Update my mail address.
Ben Elliston [Sun, 10 Aug 2003 22:05:14 +0000 (22:05 +0000)]
* MAINTAINERS (write after approval): Update my mail address.

21 years ago2003-08-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 10 Aug 2003 19:58:21 +0000 (19:58 +0000)]
2003-08-10  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (monitor.o): Do not build monitor.c with -Werror.

21 years ago* i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
Mark Kettenis [Sun, 10 Aug 2003 18:32:09 +0000 (18:32 +0000)]
* 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.

21 years ago* i386-tdep.c (i386_register_to_value): Use get_frame_register
Mark Kettenis [Sun, 10 Aug 2003 18:06:05 +0000 (18:06 +0000)]
* 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.

(i387_print_float_info): Use get_frame_register and
get_frame_register_unsigned instead of frame_register_read.

21 years ago2003-08-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 10 Aug 2003 17:19:23 +0000 (17:19 +0000)]
2003-08-10  Andrew Cagney  <cagney@redhat.com>

* infcall.c (call_function_by_hand): Use xstrprintf instead of
sprintf.  Make "name" constant.

21 years ago* i387-tdep.c (i387_register_to_value): Use get_frame_register
Mark Kettenis [Sun, 10 Aug 2003 17:01:32 +0000 (17:01 +0000)]
* i387-tdep.c (i387_register_to_value): Use get_frame_register
instead of frame_read_register.

21 years ago* i386fbsd-nat.c: Include "i386-tdep.h".
Mark Kettenis [Sun, 10 Aug 2003 16:46:08 +0000 (16:46 +0000)]
* 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.

21 years ago* i386bsd-nat.c (fetch_inferior_registers,
Mark Kettenis [Sun, 10 Aug 2003 16:22:15 +0000 (16:22 +0000)]
* i386bsd-nat.c (fetch_inferior_registers,
store_inferior_registers): Don't use && at the end of a line.
(_initialize_i386bsd_nat): Fix typo.

21 years ago* frame.c (_initialize_frame): Add missing backslash.
Mark Kettenis [Sun, 10 Aug 2003 14:56:23 +0000 (14:56 +0000)]
* frame.c (_initialize_frame): Add missing backslash.

21 years ago* sol-thread.c (sol_thread_store_registers): Use regcache_collect
Mark Kettenis [Sun, 10 Aug 2003 14:05:47 +0000 (14:05 +0000)]
* 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):

21 years agoFrom Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
Mark Kettenis [Sun, 10 Aug 2003 13:49:33 +0000 (13:49 +0000)]
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.

21 years agoBased on a patch from Michael Elizabeth Chastain (mec@shout.net):
Mark Kettenis [Sun, 10 Aug 2003 12:15:16 +0000 (12:15 +0000)]
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.

21 years ago* gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.
Mark Kettenis [Sun, 10 Aug 2003 11:55:58 +0000 (11:55 +0000)]
* gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.

21 years ago * MAINTAINERS: Update my mail address.
Ben Elliston [Sun, 10 Aug 2003 10:42:22 +0000 (10:42 +0000)]
* MAINTAINERS: Update my mail address.

21 years ago*** empty log message ***
gdbadmin [Sun, 10 Aug 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Sun, 10 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago2003-08-09 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 9 Aug 2003 15:10:09 +0000 (15:10 +0000)]
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>

* gdb.texinfo (Backtrace): Replace "set/show backtrace-below-main"
with "set/show backtrace past-main" and "set/show backtrace
limit".

Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.174
diff -u -r1.174 gdb.texinfo
--- doc/gdb.texinfo 8 Aug 2003 01:58:00 -0000 1.174
+++ doc/gdb.texinfo 9 Aug 2003 14:57:10 -0000
@@ -3922,27 +3922,40 @@
 value, indicating that your program has stopped at the beginning of the
 code for line @code{993} of @code{builtin.c}.

-@kindex set backtrace-below-main
-@kindex show backtrace-below-main
+@kindex set backtrace past-main
+@kindex show backtrace past-main
+@kindex set backtrace limit
+@kindex show backtrace limit

-Most programs have a standard entry point---a place where system libraries
-and startup code transition into user code.  For C this is @code{main}.
-When @value{GDBN} finds the entry function in a backtrace it will terminate
-the backtrace, to avoid tracing into highly system-specific (and generally
-uninteresting) code.  If you need to examine the startup code, then you can
-change this behavior.
+Most programs have a standard user entry point---a place where system
+libraries and startup code transition into user code.  For C this is
+@code{main}.  When @value{GDBN} finds the entry function in a backtrace
+it will terminate the backtrace, to avoid tracing into highly
+system-specific (and generally uninteresting) code.
+
+If you need to examine the startup code, or limit the number of levels
+in a backtrace, you can change this behavior:

 @table @code
-@item set backtrace-below-main off
+@item set backtrace past-main
+@itemx set backtrace past-main on
+Backtraces will continue past the user entry point.
+
+@item set backtrace past-main off
 Backtraces will stop when they encounter the user entry point.  This is the
 default.

-@item set backtrace-below-main
-@itemx set backtrace-below-main on
-Backtraces will continue past the user entry point to the top of the stack.
+@item show backtrace past-main
+Display the current user entry point backtrace policy.
+
+@item set backtrace limit @var{n}
+@itemx set backtrace limit 0
+@cindex backtrace limit
+Limit the backtrace to @var{n} levels.  A value of zero means
+unlimited.

-@item show backtrace-below-main
-Display the current backtrace policy.
+@item show backtrace limit
+Display the current limit on backtrace levels.
 @end table

 @node Selection

21 years ago2003-08-09 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 9 Aug 2003 14:57:30 +0000 (14:57 +0000)]
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.