binutils-gdb.git
16 years agoImplement -q/--emit-relocs.
Ian Lance Taylor [Wed, 27 Feb 2008 22:38:18 +0000 (22:38 +0000)]
Implement -q/--emit-relocs.

16 years ago * remote.c (remote_wait, remote_async_wait): Stop if we receive
Daniel Jacobowitz [Wed, 27 Feb 2008 21:00:01 +0000 (21:00 +0000)]
* remote.c (remote_wait, remote_async_wait): Stop if we receive
an error.

16 years agoAdd changelog entries for last commit.
Daniel Jacobowitz [Wed, 27 Feb 2008 20:59:38 +0000 (20:59 +0000)]
Add changelog entries for last commit.

16 years ago * utils.c (debug_timestamp): New.
Daniel Jacobowitz [Wed, 27 Feb 2008 20:50:49 +0000 (20:50 +0000)]
* utils.c (debug_timestamp): New.
(vfprintf_unfiltered): Print timestamps if requested.
(show_debug_timestamp): New.
(initialize_utils): Register "set debug timestamp".
* NEWS: Mention "set debug timestamp".  Add GDB 6.8 section.

* gdb.texinfo (Debugging Output): Document "set debug timestamp".

16 years ago * gdb.base/ending-run.exp: Use the first line of code inside
Joel Brobecker [Wed, 27 Feb 2008 20:29:31 +0000 (20:29 +0000)]
    * gdb.base/ending-run.exp: Use the first line of code inside
        function body to test breakpoints.
        * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual
        location where the breakpoint is inserted when using the line
        where a function is declared. Fix typo in the description of
        one of the tests.
        * gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.

16 years ago * breakpoint.c (skip_prologue_sal): New function.
Joel Brobecker [Wed, 27 Feb 2008 20:27:49 +0000 (20:27 +0000)]
    * breakpoint.c (skip_prologue_sal): New function.
        (resolve_sal_pc): Adjust SAL past prologue if the SAL was
        computed from a line number.

16 years ago * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
Joel Brobecker [Wed, 27 Feb 2008 20:20:51 +0000 (20:20 +0000)]
    * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
        features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
        Set PC register type to "code_ptr".
        * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
        features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
        features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
        features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
        features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
        features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
        features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
        Regenerate.

16 years ago * ld-cris/libdso-10.d: Update expected output for the Dynamic
Catherine Moore [Wed, 27 Feb 2008 17:06:42 +0000 (17:06 +0000)]
    * ld-cris/libdso-10.d: Update expected output for the Dynamic
        Section to allow an arbitrary number of spaces.

16 years ago * elf.c ( _bfd_elf_print_private_bfd_data): Call
Catherine Moore [Wed, 27 Feb 2008 17:06:06 +0000 (17:06 +0000)]
    * elf.c ( _bfd_elf_print_private_bfd_data): Call
        elf_backend_get_target_dtag if defined.
        * elf32-mips.c (elf_backend_get_target_dtag): Define.
        * elf64-mips.c: Likewise.
        * elfn32-mips.c: Likewise.
        * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
        * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
        * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
        * elfxx-target.h (elf_backend_get_target_dtag): Add default.
        (elf_backend_data): Add elf_backend_get_target_dtag.

16 years ago2008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Wed, 27 Feb 2008 15:52:33 +0000 (15:52 +0000)]
2008-02-27  Pierre Muller  <muller@ics.u-strasbg.fr>

* gdb.arch/i386-sse.exp: avoid same output for two breakpoint setting
tests.

16 years ago2008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Wed, 27 Feb 2008 15:46:46 +0000 (15:46 +0000)]
2008-02-27  Pierre Muller  <muller@ics.u-strasbg.fr>

* gdb.base/args.exp: avoid same output for tests
with single quotes.

16 years agoFix handling of ENTRY in linker script.
Ian Lance Taylor [Wed, 27 Feb 2008 15:09:16 +0000 (15:09 +0000)]
Fix handling of ENTRY in linker script.

16 years ago PR 3134
Nick Clifton [Wed, 27 Feb 2008 12:33:43 +0000 (12:33 +0000)]
   PR 3134
   * h8300.h (h8_opcodes): Add an encoding for a mov.l instruction
   with a 32-bit displacement but without the top bit of the 4th byte
   set.

   * gas/h8300/pr3134.s: New test.
   * gas/h8300/pr3134.d: Expected disassembly
   * gas/h8300/h8300.exp: Run the new test.

   * gas/h8300/h8300-coff.exp: Fix test for COFF based ports to
   accept h8300-rtemscoff not just h8300-rtems.

16 years agooops - omitted from previous delta
Nick Clifton [Wed, 27 Feb 2008 11:11:06 +0000 (11:11 +0000)]
oops - omitted from previous delta

16 years ago * ar.c (usage): Mention -t command line switch.
Nick Clifton [Wed, 27 Feb 2008 10:56:20 +0000 (10:56 +0000)]
    * ar.c (usage): Mention -t command line switch.
        * doc/binutils.texi (ranlib): Document -t command line switch.

16 years ago * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
Ulrich Weigand [Wed, 27 Feb 2008 03:33:07 +0000 (03:33 +0000)]
* linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
by collect_ptrace_register and supply_ptrace_register hooks.
* linux-low.c (fetch_register): Use supply_ptrace_register callback
instead of checking for the_low_target.left_pad_xfer.
(usr_store_inferior_registers): Use collect_ptrace_register callback
instead of checking for the_low_target.left_pad_xfer.

* linux-s390-low.c (s390_collect_ptrace_register): New function.
(s390_supply_ptrace_register): Likewise.
(s390_fill_gregset): Call s390_collect_ptrace_register.
(the_low_target): Update.

* linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
(ppc_supply_ptrace_register): Likewise.
(the_low_target): Update.

* linux-i386-low.c (the_low_target): Update.
* linux-x86-64-low.c (the_low_target): Update.

16 years ago * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
Ulrich Weigand [Wed, 27 Feb 2008 03:31:05 +0000 (03:31 +0000)]
* configure.srv [s390x-*-linux*]: Set srv_regobj to include both
reg-s390.o and reg-s390x.o.

* linux-low.c (new_inferior): New global variable.
(linux_create_inferior, linux_attach): Set it.
(linux_wait_for_process): Call the_low_target.arch_setup after the
target has stopped for the first time.
(initialize_low): Do not call the_low_target.arch_setup.

* linux-s390-low.c (s390_get_pc): Support bi-arch operation.
(s390_set_pc): Likewise.
(s390_arch_setup): New function.
(the_low_target): Use s390_arch_setup as arch_setup routine.

* regcache.c (realloc_register_cache): New function.
(set_register_cache): Call it for each existing regcache.

16 years agogdb/ChangeLog:
Ulrich Weigand [Wed, 27 Feb 2008 03:27:40 +0000 (03:27 +0000)]
gdb/ChangeLog:

* regformats/regdat.sh: Rename init_registers function in
generated file to init_registers_${name}.

* regformats/reg-crisv32.dat: Set "name" to crisv32.
* regformats/reg-ppc64.dat: Set "name" to ppc64.
* regformats/reg-s390x.dat: Set "name" to s390x.

gdbserver/ChangeLog:

* server.h (init_registers): Remove prototype.

* linux-low.h (struct linux_target_ops): Add arch_setup field.
* linux-low.c (initialize_low): Call the_low_target.arch_setup ()
instead of init_registers ().
* linux-arm-low.c (init_registers_arm): Add prototype.
(init_registers_arm_with_iwmmxt): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-cris-low.c (init_registers_cris): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-crisv32-low.c (init_registers_crisv32): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-i386-low.c (init_registers_i386_linux): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-ia64-low.c (init_registers_ia64): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-m32r-low.c (init_registers_m32r): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-m68k-low.c (init_registers_m68k): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-mips-low.c (init_registers_mips_linux): Add prototype.
(init_registers_mips64_linux): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-ppc-low.c (init_registers_ppc): Add prototype.
(init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-ppc64-low.c (init_registers_ppc64): Add prototype.
(init_registers_powerpc_64): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-s390-low.c (init_registers_s390): Add prototype.
(init_registers_s390x): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-sh-low.c (init_registers_sh): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-xtensa-low.c (init_registers_xtensa): Add prototype.
(the_low_target): Add initializer for arch_setup field.

* win32-low.h (struct win32_target_ops): Add arch_setup field.
* win32-low.c (initialize_low): Call the_low_target.arch_setup ()
instead of init_registers ().
* win32-arm-low.c (init_registers_arm): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* win32-i386-low.c (init_registers_i386): Add prototype.
(the_low_target): Add initializer for arch_setup field.

* spu-low.c (init_registers_spu): Add prototype.
(initialize_low): Call initialie_registers_spu () instead of
initialize_registers ().

16 years ago2008-02-26 Greg Law <glaw@undo-software.com>
Daniel Jacobowitz [Wed, 27 Feb 2008 01:07:42 +0000 (01:07 +0000)]
2008-02-26  Greg Law  <glaw@undo-software.com>

* regcache.c (registers_changed): Call reinit_frame_cache.

16 years ago * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
Daniel Jacobowitz [Wed, 27 Feb 2008 01:06:21 +0000 (01:06 +0000)]
* configure.tgt (sh-*-linux*): Match sh*.  Add glibc-tdep.o.
* sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
and svr4_fetch_objfile_link_map.
* Makefile.in (sh-linux-tdep.o): Update.

16 years ago*** empty log message ***
gdbadmin [Wed, 27 Feb 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 26 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoFrom Craig Silverstein: rework handling of Script_options.
Ian Lance Taylor [Tue, 26 Feb 2008 22:48:08 +0000 (22:48 +0000)]
From Craig Silverstein: rework handling of Script_options.

16 years ago * amd64-tdep.c (amd64_classify): Add support for decimal float
Thiago Jung Bauermann [Tue, 26 Feb 2008 22:23:45 +0000 (22:23 +0000)]
* amd64-tdep.c (amd64_classify): Add support for decimal float
types.
* i386-tdep.c (i386_return_value): Make 128-bit decimal float
use the struct return convention.

16 years agoFrom Craig Silverstein: implement -z max-page-size and -z
Ian Lance Taylor [Tue, 26 Feb 2008 22:10:32 +0000 (22:10 +0000)]
From Craig Silverstein: implement -z max-page-size and -z
common-page-size.

16 years agoFrom Craig Silverstein: rename option functions for future option
Ian Lance Taylor [Tue, 26 Feb 2008 21:45:30 +0000 (21:45 +0000)]
From Craig Silverstein: rename option functions for future option
handling rewrite.

16 years ago2008-02-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 26 Feb 2008 16:18:16 +0000 (16:18 +0000)]
2008-02-26  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/jump.d: Updated for COFF.

16 years ago * config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
Joseph Myers [Tue, 26 Feb 2008 12:29:10 +0000 (12:29 +0000)]
* config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
empty for testing an installed toolchain.

16 years ago* objdump.c (objdump_print_addr): If displaying file offsets, show
Nick Clifton [Tue, 26 Feb 2008 08:44:10 +0000 (08:44 +0000)]
* objdump.c (objdump_print_addr): If displaying file offsets, show
  the offset even if there are no symbols available.
  (dump_section): Display nothing if none of the section is going to
  be dumped.  Display the file offset, if requested, of the location
  from where the dump starts.
  * doc/binutils.texi (objdump): Mention that dumping via the -s
  switch is also affected by the -F option.

16 years ago * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
Alan Modra [Tue, 26 Feb 2008 08:36:03 +0000 (08:36 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
for R_PPC_REL32 syms.  Don't set non_got_ref on branch reloc syms,
and assume branch relocs are not dynamic when non-shared.
(readonly_dynrelocs): New function, split out from..
(maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
(ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
clear non_got_ref..
(allocate_dynrelocs): ..and don't set u.def for undefined weak.
Do allow dynamic relocs on undefined symbols.
(ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
(ppc_elf_relocate_section): Mirror dynamic reloc changes in
check_relocs.
(ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
plt symbols needing pointer_equality_needed.

16 years agoRe-apply this patch which was accidentally deleted:
Nick Clifton [Tue, 26 Feb 2008 08:25:46 +0000 (08:25 +0000)]
Re-apply this patch which was accidentally deleted:
         2006-05-16  Carlos O'Donell  <carlos@codesourcery.com>

         * doc/binutils.texi: Use "Binutils Index" for index name.

16 years ago * breakpoint.c (print_one_breakpoint_location): Revert Enb field
Vladimir Prus [Tue, 26 Feb 2008 08:14:11 +0000 (08:14 +0000)]
* breakpoint.c (print_one_breakpoint_location): Revert Enb field
to old format.  Discard breakpoint address if shared library is
unloaded.
(breakpoint_1): Adjust formatting of table header accordingly.

16 years ago*** empty log message ***
gdbadmin [Tue, 26 Feb 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Mon, 25 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago(Set Breaks): Revert description of Enb column of
Nick Roberts [Mon, 25 Feb 2008 20:34:40 +0000 (20:34 +0000)]
(Set Breaks): Revert description of Enb column of
breakpoint table.

16 years ago*** empty log message ***
Nick Roberts [Mon, 25 Feb 2008 20:33:39 +0000 (20:33 +0000)]
*** empty log message ***

16 years ago * remote.c (remote_get_threadlist): If the response
Vladimir Prus [Mon, 25 Feb 2008 09:59:06 +0000 (09:59 +0000)]
   * remote.c (remote_get_threadlist): If the response
       is empty, don't try to parse it.

16 years ago*** empty log message ***
gdbadmin [Mon, 25 Feb 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sun, 24 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sun, 24 Feb 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 23 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago Unbreak 'target async'.
Vladimir Prus [Sat, 23 Feb 2008 20:04:20 +0000 (20:04 +0000)]
Unbreak 'target async'.
        * serial.c (serial_async): Set the
        handler function before enabling async
        mode.

16 years agogas/testsuite/
H.J. Lu [Sat, 23 Feb 2008 17:29:17 +0000 (17:29 +0000)]
gas/testsuite/

2008-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/jump.s: Add tests for far branches.
* gas/i386/jump16.s: Likewise.

* gas/i386/jump.d: Updated.
* gas/i386/jump16.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.

* gas/i386/x86-64-inval.s: Add tests for 16-bit near indirect
branches.

opcodes/

2008-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Disallow 16-bit near indirect branches for
x86-64.
* i386-tbl.h: Regenerated.

16 years ago * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
Alan Modra [Sat, 23 Feb 2008 05:50:28 +0000 (05:50 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.

16 years ago * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
Alan Modra [Sat, 23 Feb 2008 01:56:21 +0000 (01:56 +0000)]
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
pointer_equality_needed.
(ppc_elf_check_relocs): Split out non-branch relocs from others
that might emit dynamic relocs.  Set pointer_equality_needed
for their symbols.  Don't set non_got_ref on branch reloc symbols.
(ppc_elf_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
(ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
Error if pointer_equality_needed on weak plt symbol.

16 years ago2008-02-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 23 Feb 2008 00:02:05 +0000 (00:02 +0000)]
2008-02-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/5788
* elflink.c (elf_create_symbuf): Correct buffer size and
position.

16 years ago*** empty log message ***
gdbadmin [Sat, 23 Feb 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago ld/testsuite/
Mark Mitchell [Fri, 22 Feb 2008 23:10:45 +0000 (23:10 +0000)]
ld/testsuite/
* ld-elf/seg.d: Expect .reginfo section on MIPS.

16 years agodaily update
Alan Modra [Fri, 22 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * solib-svr4.c (enable_break): Convert r_brk to a code address.
Daniel Jacobowitz [Fri, 22 Feb 2008 19:48:05 +0000 (19:48 +0000)]
* solib-svr4.c (enable_break): Convert r_brk to a code address.

16 years ago * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
Nick Clifton [Fri, 22 Feb 2008 16:47:01 +0000 (16:47 +0000)]
    * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
        targeted ARM ports, otherwise just skip generating the reloc.

16 years ago* gas/m68hc11/bug-1825.d: Update to match changes in the
Nick Clifton [Fri, 22 Feb 2008 15:33:31 +0000 (15:33 +0000)]
* gas/m68hc11/bug-1825.d: Update to match changes in the
  information generated with source-in-disassembly listings.
  * gas/m68hc11/indexed12.d: Likewise.
  * gas/m68hc11/insns-dwarf2.d: Likewise.
  * gas/m68hc11/lbranch-dwarf2.d: Likewise.

16 years ago PR 868
Nick Clifton [Fri, 22 Feb 2008 15:27:38 +0000 (15:27 +0000)]
    PR 868
        *dwarf2.c: Revert previous patch.  All of the allocate memory is
        on an obstack which will be freed at some other time.

16 years ago * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
Nick Clifton [Fri, 22 Feb 2008 15:14:44 +0000 (15:14 +0000)]
    * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
        targeted ARM ports.

16 years ago PR ld/5785
Nick Clifton [Fri, 22 Feb 2008 14:19:43 +0000 (14:19 +0000)]
    PR ld/5785
        * ldlang.c (lang_size_sections_1): Honour the setting of an
        lma_region even if there is no vma region set, or the vma region
        is the same as the lma region.

16 years ago* objdump.c (display_file_offsets): New variable.
Nick Clifton [Fri, 22 Feb 2008 09:42:58 +0000 (09:42 +0000)]
* objdump.c (display_file_offsets): New variable.
  (long_options): Add -F/--file-offsets.
  (objdump_print_addr_with_sym): If displaying file offsets, print
  the offset of the given address.
  (disassemble_bytes): If displaying file offsets, tell the user how
  many zeroes are skipped and the file offset of the point where
  dumping resumes.
  (disassemble_section): Only display the name of the section if
  data is going to be dumped from it.
  (main): Handle new option.  Produce error messages if the start or
  stop addresses do not make sense.
  * doc/binutils.texi: Document the new feature.
  * NEWS: Mention the new feature.

16 years ago*** empty log message ***
gdbadmin [Fri, 22 Feb 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Thu, 21 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * remote.c (extended_remote_attach_1): Set attach_flag.
Pedro Alves [Thu, 21 Feb 2008 17:26:16 +0000 (17:26 +0000)]
* remote.c (extended_remote_attach_1): Set attach_flag.
(extended_remote_create_inferior_1): Clear attach_flag.

16 years agoopcodes/
Jan Beulich [Thu, 21 Feb 2008 16:18:04 +0000 (16:18 +0000)]
opcodes/
2008-02-21  Jan Beulich  <jbeulich@novell.com>

* i386-opc.tbl: Allow Dword for far indirect call. Allow Dword
and Fword for far indirect jmp. Allow Reg16 and Word for near
indirect jmp on x86-64. Disallow Fword for lcall.
* i386-tbl.h: Re-generate.

16 years ago * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
Daniel Jacobowitz [Thu, 21 Feb 2008 01:47:32 +0000 (01:47 +0000)]
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
r_brk_offset.
(mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
* solib-svr4.c (solib_svr4_r_brk): New.
(open_symbol_file_object, svr4_current_sos): Always check the
debug base.
(svr4_fetch_objfile_link_map): Do not set debug_base.
(enable_break): Use r_brk if it is set.
(svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
(svr4_lp64_fetch_link_map_offsets): Likewise.
* solib-svr4.h (struct link_map_offsets): Add r_brk_offset.

16 years ago*** empty log message ***
gdbadmin [Thu, 21 Feb 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoCorrect year.
H.J. Lu [Wed, 20 Feb 2008 23:32:33 +0000 (23:32 +0000)]
Correct year.

16 years agodaily update
Alan Modra [Wed, 20 Feb 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * ld-auto-import/auto-import.exp: Use $ld to link the dll for
Nick Clifton [Wed, 20 Feb 2008 17:51:18 +0000 (17:51 +0000)]
    * ld-auto-import/auto-import.exp: Use $ld to link the dll for
        cygwin, not $CC.

16 years agoPR 868
Nick Clifton [Wed, 20 Feb 2008 17:42:36 +0000 (17:42 +0000)]
PR 868
   * libbfd.c (bfd_realloc_or_free): New function.  Performs like
   bfd_realloc, but if the (re)allocation fails, the pointer is
   freed.
   * libbfd-in.h: Prototype.
   * libbfd.h: Regenerate.
   * bfdio.c (bfd_bwrite): Use the new function.
   (bfd_seek): Likewise.
   * bfdwin.c:(bfd_get_file_window): Likewise.
   * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
   * elf32-ppc.c (ppc_elf_relax_section): Likewise.
   * elf32-xtensa.c (vsprintf_msg): Likewise.
   * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
   * stabs.c (_bfd_link_seciton_stabs): Likewise.
   * vms-misc.c (_bfd_vms_get_record): Likewise.
   * vms-tir.c (check_section): Likewise.
   * vms.c (vms_new_section_hook): Likewise.
   * elf32-arm.c (elf32_arm_section_map_add): Check that the
   allocation of sec_data->map succeeded before using it.
   * elflink.c (elf_link_output_sym): Do not overwrite finfo->
   symshndxbuf until it is known that the reallocation succeeded.

16 years agoconfig:
Paolo Bonzini [Wed, 20 Feb 2008 16:28:09 +0000 (16:28 +0000)]
config:
2008-02-20  Uros Bizjak  <ubizjak@gmail.com>

* mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.

16 years agoPR 868
Nick Clifton [Wed, 20 Feb 2008 15:56:33 +0000 (15:56 +0000)]
PR 868
   * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
   out of memory.
   (decode_line_info): Free the line_info_table before returning a
   failure result.
   (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
   Free the line table.  Free the function table.  Free the variable
   table.

16 years ago2008-02-20 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 20 Feb 2008 15:45:20 +0000 (15:45 +0000)]
2008-02-20  Markus Deuling  <deuling@de.ibm.com>
    Mark Kettenis  <kettenis@gnu.org>

* alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
trad_frame_saved_reg.
(trad-frame.h): New include.

(alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
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.

16 years ago2008-02-20 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 20 Feb 2008 15:17:56 +0000 (15:17 +0000)]
2008-02-20  Paul Brook  <paul@codesourcery.com>

ld/
* emultempl/armelf.em (OPTION_FIX_V4BX_INTERWORKING): Define.
(PARSE_AND_LIST_LONGOPTS): Add fix-v4bx-interworking.
(PARSE_AND_LIST_OPTIONS): Ditto.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FIX_V4BX_INTERWORKING.
* emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Add .v4_bx.
* emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Ditto.
* emulparams/armnto.sh (OTHER_TEXT_SECTIONS): Ditto.
* ld.texinfo: Document --fix-v4bx-interworking.

ld/testsuite/
* ld-arm/armv4-bx.d: New test.
* ld-arm/armv4-bx.s: New test.
* ld-arm/arm.ld: Add .v4bx.
* ld-arm/arm-elf.exp: Add armv4-bx.

gas/testsuite/
* gas/arm/thumb.d: Exclude EABI targets.
* gas/arm/arch4t.d: Exclude EABI targts.
* gas/arm/v4bx.d: New test.
* gas/arm/v4bx.s: New test.
* gas/arm/thumb-eabi.d: New test.
* gas/arm/arch4t-eabi.d: New test.

gas/
* config/tc-arm.c (fix_v4bx): New variable.
(do_bx): Generate V4BX relocations.
(md_assemble): Allow bx on v4 codes when fix_v4bx.
(md_apply_fix): Handle BFD_RELOC_ARM_V4BX.
(tc_gen_reloc): Ditto.
(OPTION_FIX_V4BX): Define.
(md_longopts): Add fix-v4bx.
(md_parse_option): Handle OPTION_FIX_V4BX.
(md_show_usage): Document --fix-v4bx.
* doc/c-arm.texi: Document --fix-v4bx.

bfd/
* reloc.c: Add BFD_RELOC_ARM_V4BX.
* elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_V4BX.
(ARM_BX_GLUE_SECTION_NAME, ARM_BX_GLUE_SECTION_NAME): Define.
(elf32_arm_link_hash_table): Add bx_glue_size and bx_glue_offset.
Update comment for fix_v4bx.
(elf32_arm_link_hash_table_create): Zero bx_glue_size and
bx_glue_offset.
(ARM_BX_VENEER_SIZE, armbx1_tst_insn, armbx2_moveq_insn,
armbx3_bx_insn): New.
(bfd_elf32_arm_allocate_interworking_sections): Allocate BX veneer
section.
(bfd_elf32_arm_add_glue_sections_to_bfd): Ditto.
(bfd_elf32_arm_process_before_allocation): Record BX veneers.
(record_arm_bx_glue, elf32_arm_bx_glue): New functions.
(elf32_arm_final_link_relocate): Handle BX veneers.
(elf32_arm_output_arch_local_syms): Output mapping symbol for .v4_bx.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

16 years ago * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
Markus Deuling [Wed, 20 Feb 2008 14:34:43 +0000 (14:34 +0000)]
* rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
from disassemble_info instead of gdbarch_byte_order.

* mips-tdep.c (gdb_print_insn_mips): Likewise.
* arm-tdep.c (gdb_print_insn_arm): Likewise.

16 years ago * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
Markus Deuling [Wed, 20 Feb 2008 14:31:40 +0000 (14:31 +0000)]
* gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
gdbarch as parameter.

* gdbarch.{c,h}: Regenerate.

* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter.
* mem-break.c (default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Likewise.
* target.h (default_memory_remove_breakpoint)
(default_memory_insert_breakpoint): Likewise.

* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter. Replace current_gdbarch by gdbarch.
* m32r-tdep.c (m32r_memory_insert_breakpoint)
(m32r_memory_remove_breakpoint): Likewise.

16 years ago2008-02-20 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 20 Feb 2008 14:26:59 +0000 (14:26 +0000)]
2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        PR bootstrap/32009
        PR bootstrap/32161

        * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here.
        * configure: Regenerate.

        * Makefile.def: Define stage_libcflags for all bootstrap stages.
        * Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS,
        STAGE4_LIBCFLAGS): New.
        (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without
        $(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
        (BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS.
        (EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS.
        (configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags
        for target modules.  Don't export LIBCFLAGS.
        (all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass
        $(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after
        the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
        (invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with
        $(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS).
        * Makefile.in: Regenerate.

config:
2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        PR bootstrap/32009
        * mh-ppc-darwin (BOOT_CFLAGS): Reenable.

16 years ago*** empty log message ***
gdbadmin [Wed, 20 Feb 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 19 Feb 2008 23:00:34 +0000 (23:00 +0000)]
daily update

16 years agodoc/
Pedro Alves [Tue, 19 Feb 2008 21:36:54 +0000 (21:36 +0000)]
doc/
* gdb.texinfo (vAttach, vRun): Remove requirement of the stub
killing the inferior when it is already debugging a process.

gdbserver/
* server.c (handle_v_requests): When handling the vRun and vAttach
packets, if already debugging a process, don't kill it.  Return an
error instead.

16 years ago * MAINTAINERS: Add Vladimir Prus as MI maintainer.
Daniel Jacobowitz [Tue, 19 Feb 2008 19:11:16 +0000 (19:11 +0000)]
* MAINTAINERS: Add Vladimir Prus as MI maintainer.

16 years ago * NEWS: Add entry describing Add support improvements.
Joel Brobecker [Tue, 19 Feb 2008 18:20:45 +0000 (18:20 +0000)]
    * NEWS: Add entry describing Add support improvements.

16 years ago PR other/12618
Ben Elliston [Tue, 19 Feb 2008 03:22:19 +0000 (03:22 +0000)]
PR other/12618
* testsuite/Makefile.in (mostlyclean): Remove any core file.

16 years ago*** empty log message ***
gdbadmin [Tue, 19 Feb 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Mon, 18 Feb 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 18 Feb 2008 21:05:07 +0000 (21:05 +0000)]
2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>

* cfi/cfi.exp (gas_x86_64_check): New.
(gas_x86_32_check): Likewise.
Run 32bit and 64bit tests for x86 targets if they are supportd.

16 years ago * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
Markus Deuling [Mon, 18 Feb 2008 19:58:27 +0000 (19:58 +0000)]
* m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
M68K_FP0_REGNUM.

16 years ago2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 18 Feb 2008 18:52:46 +0000 (18:52 +0000)]
2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>

* doc/c-i386.texi: Update -march= and .arch.

16 years ago * sentinel-frame.c (sentinel_frame_prev_register): Do not call
Markus Deuling [Mon, 18 Feb 2008 16:37:17 +0000 (16:37 +0000)]
* sentinel-frame.c (sentinel_frame_prev_register): Do not call
register_offset_hack anymore.

* regcache.{c,h} (register_offset_hack): Remove.

16 years ago * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
Markus Deuling [Mon, 18 Feb 2008 16:11:21 +0000 (16:11 +0000)]
* hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.

* hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
current_gdbarch by gdbarch.
(hppa64_hpux_find_global_pointer): Likewise.
* hppa-tdep.c (hppa_find_global_pointer): Likewise.
(hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
find_global_pointer.

* hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
parameter.
* hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.

* hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
of gdbarch_num_regs.

* hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
replace current_gdbarch by gdbarch.
(hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.

16 years ago * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
Nick Clifton [Mon, 18 Feb 2008 14:53:44 +0000 (14:53 +0000)]
    * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
        relocatable link.
        * scripttempl/elf32cr16.sc: Likewise.
        * scripttempl/elf32cr16c.sc: Likewise.
        * scripttempl/elf32crx.sc: Likewise.
        * scripttempl/elf32sh-symbian.sc: Likewise.
        * scripttempl/elf_chaos.sc: Likewise.
        * scripttempl/elfd10v.sc: Likewise.
        * scripttempl/elfi370.sc: Likewise.
        * scripttempl/elfm68hc11.sc: Likewise.
        * scripttempl/elfm68hc12.sc: Likewise.
        * scripttempl/ip2k.sc: Likewise.
        * scripttempl/iq2000.sc: Likewise.
        * scripttempl/mep.sc: Likewise.
        * scripttempl/v850.sc: Likewise.
        * scripttempl/xstormy16.sc: Likewise.

16 years ago * cr16.h (cr16_num_optab): Declared.
Nick Clifton [Mon, 18 Feb 2008 13:46:45 +0000 (13:46 +0000)]
    * cr16.h (cr16_num_optab): Declared.
        * cr16-opc.c  (cr16_num_optab): Defined

16 years ago * lib/ld-lib.exp (run_dump_test): Don't apply prune_warnings
Hans-Peter Nilsson [Mon, 18 Feb 2008 11:04:09 +0000 (11:04 +0000)]
* lib/ld-lib.exp (run_dump_test): Don't apply prune_warnings
for tool invocations where warnings or errors can be matched.

16 years ago * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
Markus Deuling [Mon, 18 Feb 2008 11:00:02 +0000 (11:00 +0000)]
* rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
and replace current_gdbarch by gdbarch.

(store_register): Update call for exec_one_dummy_insn.
(fetch_register, store_register): Update call of regmap.

* 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
replace current_gdbarch by gdbarch.
(ppcobsd_fetch_registers, ppcobsd_store_registers): Use
get_regcache_arch to get at the current architecture. Update call for
getfpregs_supplies.

16 years ago * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
Markus Deuling [Mon, 18 Feb 2008 10:56:43 +0000 (10:56 +0000)]
* arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
variables.

16 years ago * config/tc-mn10300.c (has_known_symbol_location): New function.
Nick Clifton [Mon, 18 Feb 2008 10:03:06 +0000 (10:03 +0000)]
    * config/tc-mn10300.c (has_known_symbol_location): New function.
        Do not regard weak symbols as having a known location.
        (md_estimate_size_before_relax): Use new function.
        (md_pcrel_from): Do not compute a pcrel against a weak symbol.

16 years agogas/
Jan Beulich [Mon, 18 Feb 2008 08:44:38 +0000 (08:44 +0000)]
gas/
2008-02-18  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (match_template): Disallow 'l' suffix when
currently selected CPU has no 32-bit support.
(parse_real_register): Do not return registers not available on
currently selected CPU.

gas/testsuite/
2008-02-18  Jan Beulich  <jbeulich@novell.com>

* gas/i386/att-regs.s, gas/i386/att-regs.d,
gas/i386/intel-regs.s, gas/i386/intel-regs.d: New.
* gas/i386/i386.exp: Run new tests.

16 years ago*** empty log message ***
gdbadmin [Mon, 18 Feb 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago* elf.c (swap_out_syms): Avoid preprocessing directive within
Mark Kettenis [Sun, 17 Feb 2008 23:45:23 +0000 (23:45 +0000)]
* elf.c (swap_out_syms): Avoid preprocessing directive within
macro arg.

16 years agodaily update
Alan Modra [Sun, 17 Feb 2008 23:00:04 +0000 (23:00 +0000)]
daily update

16 years ago * server.c (handle_query): Correct length check.
Daniel Jacobowitz [Sun, 17 Feb 2008 15:26:17 +0000 (15:26 +0000)]
* server.c (handle_query): Correct length check.

16 years ago* elf.c (assign_file_positions_for_load_sections): Set the type of
Jan Kratochvil [Sun, 17 Feb 2008 13:21:20 +0000 (13:21 +0000)]
* elf.c (assign_file_positions_for_load_sections): Set the type of
PT_NOTE sections to SHT_NOTE.

16 years ago2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 17 Feb 2008 00:26:19 +0000 (00:26 +0000)]
2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (process_immext): Fix format.

16 years ago*** empty log message ***
gdbadmin [Sun, 17 Feb 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***