external/binutils.git
15 years ago2008-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 17 Dec 2008 23:16:07 +0000 (23:16 +0000)]
2008-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Updated.
        * COPYING.LIBGLOSS: Ditto.

15 years ago (cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
Hans-Peter Nilsson [Wed, 17 Dec 2008 02:31:16 +0000 (02:31 +0000)]
(cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
gate h != NULL for h->def_regular test.

15 years ago * ld-cris/expalltst3, ld-cris/expdyn2.s, ld-cris/libdso-15.d: New
Hans-Peter Nilsson [Wed, 17 Dec 2008 02:15:34 +0000 (02:15 +0000)]
* ld-cris/expalltst3, ld-cris/expdyn2.s, ld-cris/libdso-15.d: New
tests.

15 years ago * elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
Hans-Peter Nilsson [Wed, 17 Dec 2008 02:14:30 +0000 (02:14 +0000)]
* elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
action for symbols other than bfd_link_hash_indirect.

15 years agodaily update
Alan Modra [Wed, 17 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 17 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * plugin.cc (Plugin::load): Move LDPT_MESSAGE to front of transfer
Cary Coutant [Tue, 16 Dec 2008 19:19:16 +0000 (19:19 +0000)]
* plugin.cc (Plugin::load): Move LDPT_MESSAGE to front of transfer
vector.
(Plugin_manager::claim_file): Create plugin object even if
plugin did not call the add_symbols callback.
(Plugin_obj::get_symbol_resolution_info): Guard against plugin
asking for more symbols than were added.
* testsuite/Makefile.am (plugin_test_1): Add test case with
no global symbols.
(empty.syms): New target.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_test.c (claim_file_hook): Add new debug
message. Don't call add_symbols if no globals.
(all_symbols_read_hook): Don't provide replacement for empty
claimed file.

15 years ago2008-12-16 Christophe Lyon <christophe.lyon@st.com>
Denis Pilat [Tue, 16 Dec 2008 13:15:50 +0000 (13:15 +0000)]
2008-12-16  Christophe Lyon  <christophe.lyon@st.com>

       * gdb.base/expand-psymtabs.c: Insert code in foo so that the
       compiler actually generate code at the expected line number.

15 years ago2008-12-16 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 16 Dec 2008 12:31:18 +0000 (12:31 +0000)]
2008-12-16  Paolo Bonzini  <bonzini@gnu.org>

Sync with GCC:

2008-12-12  Sebastian Pop  <sebastian.pop@amd.com>

* configure.ac (ppllibs): Add by default the lib flags.
* configure: Regenerate.

2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Add double brackets on darwin[912].
        * configure: Regenerate.

2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Expand to darwin10 and later.
        * configure: Regenerate.

15 years ago2008-12-16 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 16 Dec 2008 11:15:58 +0000 (11:15 +0000)]
2008-12-16  Tristan Gingold  <gingold@adacore.com>

* inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
set_sigio_trap, clear_sigio_trap definitions.
* inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
* inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
and clear_sigio_trap.
* inf-ttrace.c (inf_ttrace_wait): Ditto.
* linux-nat.c (linux_nat_wait): Ditto.
* spu-linux-nat.c (spu_child_wait): Ditto.
* rs6000-nat.c (rs6000_wait): Ditto.
* target.c: Remove target_activity_function and target_activity_fd.
* target.h: Remove target_activity_function and target_activity_fd
declarations.

15 years ago * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
Joel Brobecker [Tue, 16 Dec 2008 06:14:00 +0000 (06:14 +0000)]
    * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
        examples.
        (Additions to Ada): Likewise. Add the missing opening and closing
        parenthesis of the GDB prompt in one of the examples.

15 years ago2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 16 Dec 2008 05:06:05 +0000 (05:06 +0000)]
2008-12-15  Paul Pluzhnikov  <ppluzhnikov@google.com>

* dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
N_PSYM STABS values for 64-bit GDB.

15 years ago*** empty log message ***
gdbadmin [Tue, 16 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 16 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Mon, 15 Dec 2008 19:48:06 +0000 (19:48 +0000)]
2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>

* ppc-instructions, ppc-spr-table: Add ability
to read tbrl and tbru special registers.

15 years agoopcodes:
Richard Earnshaw [Mon, 15 Dec 2008 17:24:13 +0000 (17:24 +0000)]
opcodes:
* arm-dis.c (coprocessor_opcodes): Disassemble VFP instructions using
unified syntax.
gas/testsuite:
* gas/arm/group-reloc-ldc.d: Disassembly of VFP instructions now uses
unified syntax.
* gas/arm/vfp-non-overlap.d: Likewise.
* gas/arm/vfp-neon-syntax.d: Likewise.
* gas/arm/vfp-neon-syntax_t2.d: Likewise.
* gas/arm/vfp1.d: Likewise.
* gas/arm/vfp1_t2.d: Likewise.
* gas/arm/vfp1xD.d: Likewise.
* gas/arm/vfp1xD_t2.d: Likewise.
* gas/arm/vfp2.d: Likewise.
* gas/arm/vfp2_t2.d: Likewise.
* gas/arm/vfpv3-32drs.d: Likewise.
* gas/arm/vfpv3-const-conv.d: Likewise.
ld/testsuite:
* ld-arm/vfp11-fix-scalar.d: Disassembly of VFP instructions now uses
unified syntax.
* ld-arm/vfp11-fix-vector.d: Likewise.

15 years ago * gdb.base/consecutive.exp: Don't use global in gdb_expect.
Jie Zhang [Mon, 15 Dec 2008 13:04:56 +0000 (13:04 +0000)]
* gdb.base/consecutive.exp: Don't use global in gdb_expect.

15 years ago2008-12-15 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 15 Dec 2008 11:32:08 +0000 (11:32 +0000)]
2008-12-15  Tristan Gingold  <gingold@adacore.com>

* dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.

15 years ago * ada-lang.c (ada_value_slice_ptr): Rename to...
Jerome Guitton [Mon, 15 Dec 2008 10:40:28 +0000 (10:40 +0000)]
* ada-lang.c (ada_value_slice_ptr): Rename to...
(ada_value_slice_from_ptr): ... this. Return a lazy value instead
of a reference. Update comment.
(ada_value_struct_elt): Ditto if arg is a pointer or a reference.
Update comment as well.
(ada_evaluate_subexp): Update use of ada_value_slice_ptr.

15 years ago * elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
Hans-Peter Nilsson [Mon, 15 Dec 2008 03:17:49 +0000 (03:17 +0000)]
* elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Define to above.

15 years ago * ld-cris/libdso-13b.d: New test.
Hans-Peter Nilsson [Mon, 15 Dec 2008 02:33:38 +0000 (02:33 +0000)]
* ld-cris/libdso-13b.d: New test.

15 years ago * elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
Hans-Peter Nilsson [Mon, 15 Dec 2008 02:32:22 +0000 (02:32 +0000)]
* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
r_type.  Fix formatting.
(cris_elf_relocate_section) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
<R_CRIS_32_PCREL>: Also break early if the symbol doesn't get
emitted as a dynamic one.
(cris_elf_check_relocs) <R_CRIS_7, R_CRIS_16, R_CRIS_32>: Fork
from PCREL relocs code and simplify; don't fall through.
<R_CRIS_8_PCREL, R_CRIS_16_PCREL, R_CRIS_32_PCREL>: Simplify for
pcrel only.  For non-local or overridable symbols in a DSO, always
keep count of relocs, not just when -Bsymbolic.  Don't emit
message nor mark as TEXTREL here.
(elf_cris_discard_excess_dso_dynamics): Emit warning and mark as
TEXTREL here, if there are nondiscarded pcrel relocs.

15 years ago * elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
Hans-Peter Nilsson [Mon, 15 Dec 2008 02:10:27 +0000 (02:10 +0000)]
* elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
using ibfd, not abfd.

15 years ago * ld-cris/hidedsofns2468, ld-cris/libdso-12b.d,
Hans-Peter Nilsson [Mon, 15 Dec 2008 01:36:21 +0000 (01:36 +0000)]
* ld-cris/hidedsofns2468, ld-cris/libdso-12b.d,
ld-cris/libdso-12c.d, ld-cris/libdso-1b.d, ld-cris/dso-1b.s: New
tests.

15 years ago * ld-cris/got7.s: Correct .size expression.
Hans-Peter Nilsson [Mon, 15 Dec 2008 01:30:57 +0000 (01:30 +0000)]
* ld-cris/got7.s: Correct .size expression.
* ld-cris/tls-e-20a.d: Adjust accordingly.

15 years agodaily update
Alan Modra [Mon, 15 Dec 2008 00:00:45 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 15 Dec 2008 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * utils.c (xmalloc,xcalloc,xstrdup): New fns.
Doug Evans [Sun, 14 Dec 2008 20:51:04 +0000 (20:51 +0000)]
* utils.c (xmalloc,xcalloc,xstrdup): New fns.
* server.h (ATTR_MALLOC): New macro.
(xmalloc,xcalloc,xstrdup): Declare.
* hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
* inferiors.c: Ditto.
* linux-low.c: Ditto.
* mem-break.c: Ditto.
* regcache.c: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* target.c: Ditto.
* win32-low.c: Ditto.

15 years ago * gdb.texinfo (Omissions from Ada): Remove incorrect documentation
Joel Brobecker [Sun, 14 Dec 2008 18:30:25 +0000 (18:30 +0000)]
    * gdb.texinfo (Omissions from Ada): Remove incorrect documentation
        about the result of 'Address not being of type System.Address.
        This problem has been fixed a while ago.

15 years ago*** empty log message ***
gdbadmin [Sun, 14 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 14 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * gnu-v3-abi.c (vtable_ptrdiff_type): New function.
Kevin Buettner [Sat, 13 Dec 2008 00:39:53 +0000 (00:39 +0000)]
* gnu-v3-abi.c (vtable_ptrdiff_type): New function.
(gnuv3_decode_method_ptr, gnuv3_print_method_ptr)
(gnuv3_method_ptr_to_value): Use a better approximation for
`ptrdiff_t' instead of `long'.

* m32c-tdep.c (m32c_gdbarch_init): Call set_gdbarch_vbit_in_delta().
(m32c_push_dummy_call): Dereference pointer type.

15 years ago*** empty log message ***
gdbadmin [Sat, 13 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 13 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
Doug Evans [Fri, 12 Dec 2008 23:14:28 +0000 (23:14 +0000)]
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
in debugging printf.

15 years ago * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
Doug Evans [Fri, 12 Dec 2008 23:13:20 +0000 (23:13 +0000)]
* linux-low.c (handle_extended_wait): Simplify, use my_waitpid.

15 years agogdb
Tom Tromey [Fri, 12 Dec 2008 17:58:48 +0000 (17:58 +0000)]
gdb
PR cli/2563:
* cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
(add_cmd): Update.  Install hooks into new command.
(add_alias_cmd): Update.
gdb/testsuite
* gdb.base/commands.exp (redefine_hook_test): New proc.
Call it.

15 years agogdb
Tom Tromey [Fri, 12 Dec 2008 17:03:37 +0000 (17:03 +0000)]
gdb
* macroexp.c (get_pp_number): Require digit after leading ".".
Correctly handle suffixes.
gdb/testsuite
* gdb.base/macscp.exp: New regression test.

15 years ago * macrocmd.c (macro_define_command): Skip whitespace after
Tom Tromey [Fri, 12 Dec 2008 16:58:46 +0000 (16:58 +0000)]
* macrocmd.c (macro_define_command): Skip whitespace after
macro name.
(print_one_macro): Print space after macro name.

15 years ago * target-reloc.h (Default_scan_relocatable_relocs): Only discard
Ian Lance Taylor [Fri, 12 Dec 2008 16:33:05 +0000 (16:33 +0000)]
* target-reloc.h (Default_scan_relocatable_relocs): Only discard
r_type == 0 for a local symbol with r_sym == 0.
(scan_relocatable_relocs): Pass r_sym to
local_non_section_strategy.
* reloc.cc (Emit_relocs_strategy::local_non_section_strategy): Add
r_sym parameter.

15 years ago * configure.ac: Update test for TLS descriptors: they are
Ian Lance Taylor [Fri, 12 Dec 2008 16:23:27 +0000 (16:23 +0000)]
* configure.ac: Update test for TLS descriptors: they are
supported as of glibc 2.9.
* configure: Rebuild.

15 years ago * infrun.c (handle_inferior_event): Correctly tag non-executing
Pedro Alves [Fri, 12 Dec 2008 14:20:48 +0000 (14:20 +0000)]
* infrun.c (handle_inferior_event): Correctly tag non-executing
threads in multi-process.
(normal_stop): Correctly tag stopped threads in multi-process.

15 years ago * remote.c (extended_remote_mourn_1): Always call
Pedro Alves [Fri, 12 Dec 2008 13:45:43 +0000 (13:45 +0000)]
* remote.c (extended_remote_mourn_1): Always call
generic_mourn_inferior.

15 years ago PR 7091
Ian Lance Taylor [Fri, 12 Dec 2008 02:41:39 +0000 (02:41 +0000)]
PR 7091
* target-reloc.h (Default_scan_relocatable_relocs): For each
function, map r_type == 0 to RELOC_DISCARD.

15 years ago * remote.c (remote_detach_1): Don't delete the inferior here.
Pedro Alves [Fri, 12 Dec 2008 01:08:29 +0000 (01:08 +0000)]
* remote.c (remote_detach_1): Don't delete the inferior here.
(process_stop_reply): Ditto.
(extended_remote_kill): Ditto.

15 years ago * remote.c (read_ptid): If we don't know about any inferior yet,
Pedro Alves [Fri, 12 Dec 2008 00:12:03 +0000 (00:12 +0000)]
* remote.c (read_ptid): If we don't know about any inferior yet,
use the pid of magic_null_ptid.
(remote_start_remote): In the non-stop mode case, don't set
inferior_ptid to magic_null_ptid here.

15 years ago*** empty log message ***
gdbadmin [Fri, 12 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Fri, 12 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * infcmd.c (step_1): Use step_once in the synchronous case too.
Pedro Alves [Thu, 11 Dec 2008 20:34:18 +0000 (20:34 +0000)]
* infcmd.c (step_1): Use step_once in the synchronous case too.
(step_1_continuation): Wrap line.
(step_once): Adjust comment.  Only install the continuation in
async mode.

15 years ago * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
Pedro Alves [Thu, 11 Dec 2008 19:19:12 +0000 (19:19 +0000)]
* infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
* linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
returned.
* inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
minus_one_ptid if the inferior disappeared.
* rs6000-nat.c (rs6000_wait): Likewise.
* spu-linux-nat.c (spu_child_wait): Likewise.

15 years agogdb
Tom Tromey [Thu, 11 Dec 2008 18:30:28 +0000 (18:30 +0000)]
gdb
PR macros/2564:
* c-exp.y (macro_original_text, expansion_obstack,
expression_macro_scope): New globals.
(scan_macro_expansion): New function.
(scanning_macro_expansion): Likewise.
(finished_macro_expansion): Likewise.
(scan_macro_cleanup): Likewise.
(c_parse): Find macro scope.  Initialize obstack.
* c-lang.h (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
* c-lang.c (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
(macro_original_text, macro_expanded_text,
c_preprocess_and_parse): Remove.
(c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Use c_parse.
gdb/testsuite
* gdb.base/macscp.exp: Print "address.addr".
* gdb.base/macscp1.c (struct outer): New struct.
(address): New global.

15 years ago PR 7041
Alan Modra [Thu, 11 Dec 2008 10:14:40 +0000 (10:14 +0000)]
PR 7041
* elf64-ppc.c (func_desc_adjust): Correct logic making fake function
descriptors.  Similarly correct making function descriptors dynamic.

15 years ago*** empty log message ***
gdbadmin [Thu, 11 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 11 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Wed, 10 Dec 2008 23:28:19 +0000 (23:28 +0000)]
merge from gcc

15 years ago * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
Pedro Alves [Wed, 10 Dec 2008 21:32:15 +0000 (21:32 +0000)]
* infcmd.c (until_next_command, finish_backward): Use get_frame_pc
instead of read_pc.

15 years ago * layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
Cary Coutant [Wed, 10 Dec 2008 19:50:14 +0000 (19:50 +0000)]
* layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
object to override a kept COMDAT group from a plugin object.

15 years agobfd/
Alan Modra [Wed, 10 Dec 2008 13:36:41 +0000 (13:36 +0000)]
bfd/
* elf32-spu.h (struct spu_elf_params): Add num_regions.
* elf32-spu.c (spu_elf_auto_overlay): Handle multiple overlay regions.
ld/
* emultempl/spuelf.em (params): Init new field.
(OPTION_SPU_NUM_REGIONS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --num-regions.
(PARSE_AND_LIST_ARGS_CASES): Handle --num-regions.

15 years agobfd/
Alan Modra [Wed, 10 Dec 2008 06:32:52 +0000 (06:32 +0000)]
bfd/
* elf32-spu.g (struct spu_elf_params, enum _ovly_flavour): New.
(spu_elf_setup): Declare.
(spu_elf_create_sections, spu_elf_size_stubs): Update prototype.
(spu_elf_build_stubs, spu_elf_check_vma): Likewise.
* elf32-spu.c (struct spu_link_hash_table): Add "params". Remove
various other fields now in "params".  Adjust code throughout.
(struct call_info, struct function_info): Move earlier in file.
(struct spu_elf_stack_info): Likewise.
(spu_elf_setup): New function.
(spu_elf_create_sections): Remove args other than "info".
(spu_elf_size_stubs, spu_elf_build_stubs, spu_elf_check_vma): Likewise.
(maybe_needs_stubs): Remove "output_bfd" arg.  Adjust all calls.
(interesting_section): Similarly with "obfd" arg.
(needs_ovl_stub): Adjust output_section test.
(allocate_spuear_stubs): Likewise.
(OVL_STUB_SIZE): Don't define.
(ovl_stub_size): New function, use in place of OVL_STUB_SIZE.
(build_stub): Test params->ovly_flavour rather than OVL_STUB_SIZE.
(spu_elf_auto_overlay): Remove args other than "info".  Make use
of size returned from spu_elf_load_ovl_mgr.
(spu_elf_stack_analysis): Remove args other than "info".
(spu_elf_relocate_section): Tidy setting of "ea".
ld/
* emultempl/spuelf.em (params): New var, used instead of various others.
Adjust use throughout file.
(spu_after_open): Call spu_elf_setup.
(spu_place_special_section): Tidy.
(spu_elf_load_ovl_mgr): Return total size of sections loaded.  Move
code setting overlay section alignment to..
(spu_before_allocation): ..here.

15 years ago * elf32-spu.c (define_ovtab_symbol): Don't abort on symbols
Alan Modra [Wed, 10 Dec 2008 03:49:02 +0000 (03:49 +0000)]
* elf32-spu.c (define_ovtab_symbol): Don't abort on symbols
defined in linker scripts.
(discover_functions): Consider STT_SECTION symbols too.
(collect_lib_sections): Don't cut short call tree traversal
when function size is too large.

15 years agogdb
Tom Tromey [Wed, 10 Dec 2008 01:05:16 +0000 (01:05 +0000)]
gdb
PR gdb/1815:
* cli/cli-decode.c (delete_cmd): Forward declare.
(delete_cmd): Now static.  Change return type.  Remove command
from alias chain.  Rewrite.
(add_cmd): Initialize new fields.  Update cmd_pointer on all
aliases.
(add_alias_cmd): Put command on alias chain.
* command.h (delete_cmd): Don't declare.
* cli/cli-decode.h (delete_cmd): Don't declare.
(struct cmd_list_element) <aliases, alias_chain>: New fields.
gdb/testsuite
* gdb.base/commands.exp (redefine_backtrace_test): New proc.
Call it.

15 years ago * elf32-spu.c (find_function_stack_adjust): Don't limit number
Alan Modra [Wed, 10 Dec 2008 00:37:11 +0000 (00:37 +0000)]
* elf32-spu.c (find_function_stack_adjust): Don't limit number
of insns scanned.  Correct sp tests.  Handle "fsmbi" and "andbi".
(mark_detached_root): New function.
(build_call_tree): Call it.
(sort_calls): Don't do void* arithmetic.

15 years agodaily update
Alan Modra [Wed, 10 Dec 2008 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 10 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agobfd
Tom Tromey [Tue, 9 Dec 2008 18:59:54 +0000 (18:59 +0000)]
bfd
* pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc
4.4.
binutils
* srconv.c (wr_hd): Add parens to placate gcc 4.4.

15 years ago * linux-low.h (struct process_info): Delete member tid, unused.
Doug Evans [Tue, 9 Dec 2008 18:52:20 +0000 (18:52 +0000)]
* linux-low.h (struct process_info): Delete member tid, unused.
* thread-db.c (find_one_thread): Update.
(maybe_attach_thread): Update.

15 years ago * config.in, configure: Rebuild.
Tom Tromey [Tue, 9 Dec 2008 17:18:30 +0000 (17:18 +0000)]
* config.in, configure: Rebuild.
* configure.ac: Check for locale.h, setlocale.  Call
AM_LC_MESSAGES.
* acinclude.m4: Include lcmessage.m4.

15 years ago * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
Jan Kratochvil [Tue, 9 Dec 2008 16:36:15 +0000 (16:36 +0000)]
* remote.c (remote_parse_stop_reply): Use REG only after its NULL check.

15 years ago PR 7088
Ian Lance Taylor [Tue, 9 Dec 2008 16:09:32 +0000 (16:09 +0000)]
PR 7088
* yyscript.y (file_cmd): Handle INPUT.

15 years ago * testsuite/initpri1.c: Change all declarations to be full
Ian Lance Taylor [Tue, 9 Dec 2008 16:03:47 +0000 (16:03 +0000)]
* testsuite/initpri1.c: Change all declarations to be full
prototypes by adding void, to avoid compiler warnings.

15 years ago2008-12-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 9 Dec 2008 09:51:08 +0000 (09:51 +0000)]
2008-12-09  Tristan Gingold  <gingold@adacore.com>

* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.

15 years ago2008-12-09 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Tue, 9 Dec 2008 08:34:29 +0000 (08:34 +0000)]
2008-12-09  Andrew Stubbs  <ams@codesourcery.com>

* readelf.c (arm_attr_tag_CPU_arch): Add "v6-M" and "v6S-M".
(arm_attr_tag_WMMX_arch): Add "WMMXv2".
(arm_attr_tag_NEON_arch): Rename to ...
(arm_attr_tag_Advanced_SIMD_arch): ... official name.
(arm_attr_tag_ABI_PCS_config): Rename to ...
(arm_attr_tag_PCS_config): ... official name.
(arm_attr_tag_ABI_PCS_RO_DATA): Rename to ...
(arm_attr_tag_ABI_PCS_RO_data): ... official name.
(arm_attr_tag_ABI_FP_denormal): Add "Sign only".
(arm_attr_tag_CPU_unaligned_access): New array.
(arm_attr_tag_T2EE_use): New array.
(arm_attr_tag_Virtualization_use): New array.
(arm_attr_tag_MPextension_use): New array.
(arm_attr_publ): NEON_arch -> Advanced_SIMD_arch.
ABI_PCS_config -> PCS_config.
ABI_PCS_RO_DATA -> ABI_PCS_RO_data.
Add CPU_unaligned_access, nodefaults, also_compatible_with,
T2EE_use, conformance, Virtualization_use and MPextension_use.
(display_arm_attribute): Handle Tag_nodefaults and
Tag_also_compatible_with.

15 years ago*** empty log message ***
gdbadmin [Tue, 9 Dec 2008 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 9 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 8 Dec 2008 18:07:26 +0000 (18:07 +0000)]
2008-12-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Move VexNDS before VexNDD.

15 years ago2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 8 Dec 2008 17:59:00 +0000 (17:59 +0000)]
2008-12-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_modrm_byte): Remove an extra blank
line.

15 years ago2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 8 Dec 2008 17:43:06 +0000 (17:43 +0000)]
2008-12-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (putop): Remove strayed comments.

15 years ago * python/python-value.c (values_in_python): Add specific initialization
Joel Brobecker [Mon, 8 Dec 2008 17:13:30 +0000 (17:13 +0000)]
    * python/python-value.c (values_in_python): Add specific initialization
        to NULL to work-around a MacOS linker bug.

15 years ago Fix loc_type of `bp_location's created by update_watchpoint.
Jan Kratochvil [Mon, 8 Dec 2008 13:27:38 +0000 (13:27 +0000)]
Fix loc_type of `bp_location's created by update_watchpoint.
* breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
Replace bp_type by bpt->type.  Update prototype.  All callers updated.
(add_location_to_breakpoint):  Remove the bp_type parameter.
Replace bp_type by b->type.  All callers updated.
(set_breakpoint_location_function): Replace bptype by b->type.

15 years agodaily update
Alan Modra [Mon, 8 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 8 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * breakpoint.c (update_global_location_list): Fix the comment.
Jan Kratochvil [Sun, 7 Dec 2008 15:59:51 +0000 (15:59 +0000)]
* breakpoint.c (update_global_location_list): Fix the comment.

15 years agodaily update
Alan Modra [Sun, 7 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 7 Dec 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago*** empty log message ***
gdbadmin [Sat, 6 Dec 2008 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 6 Dec 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * infcmd.c (step_1, step_once): Look up the stepping range based
Pedro Alves [Fri, 5 Dec 2008 22:38:10 +0000 (22:38 +0000)]
* infcmd.c (step_1, step_once): Look up the stepping range based
on the current frame's PC, not on stop_pc.

15 years ago2008-12-05 Rafael Avila de Espindola <espindola@google.com>
Cary Coutant [Fri, 5 Dec 2008 21:34:54 +0000 (21:34 +0000)]
2008-12-05  Rafael Avila de Espindola  <espindola@google.com>

* options.cc (General_options::parse_plugin_opt): New.
(General_options::add_plugin): The argument now is just the filename.
(General_options::add_plugin_option): New.
* options.h (plugin_opt): New.
(add_plugin): Change argument name.
(add_plugin_option): New.
* plugin.cc (Plugin::load): Don't parse the plugin option.
* plugin.h (Plugin::Plugin): Rename argument. Init filename_.
(Plugin::add_option): New.
(Plugin::args_): Change type.
(Plugin::filename_): New.
(Plugin_manager::add_plugin_option): New.
* testsuite/Makefile.am (plugin_test_1): Use new syntax.
* testsuite/Makefile.in: Regenerate.

15 years ago * layout.cc (Layout::include_section): Check for SHF_EXCLUDE.
Cary Coutant [Fri, 5 Dec 2008 21:13:35 +0000 (21:13 +0000)]
* layout.cc (Layout::include_section): Check for SHF_EXCLUDE.
Handle --strip-lto-sections option.
* options.h (strip_lto_sections): New option.

15 years ago Fix compilation on 32-bit host configurations.
Jan Kratochvil [Fri, 5 Dec 2008 18:25:01 +0000 (18:25 +0000)]
Fix compilation on 32-bit host configurations.
* ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.

15 years ago2008-12-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 5 Dec 2008 11:08:58 +0000 (11:08 +0000)]
2008-12-05  Tristan Gingold  <gingold@adacore.com>

* i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
(amd64_darwin_sstep_at_sigreturn): New function.
(darwin_set_sstep): The sigreturn is a special case: the trace flag
must be set in the mcontext structure.

15 years ago * infcmd.c (step_once): Remove dead code.
Pedro Alves [Fri, 5 Dec 2008 02:08:26 +0000 (02:08 +0000)]
* infcmd.c (step_once): Remove dead code.

15 years agodaily update
Alan Modra [Fri, 5 Dec 2008 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 5 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
Doug Evans [Thu, 4 Dec 2008 21:41:00 +0000 (21:41 +0000)]
* infcall.c (call_function_by_hand): Clean up use of local dummy_addr.

15 years ago * gdb.server/ext-run.exp: Relax regexp for init program.
Doug Evans [Thu, 4 Dec 2008 17:41:42 +0000 (17:41 +0000)]
* gdb.server/ext-run.exp: Relax regexp for init program.

15 years ago2008-12-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 4 Dec 2008 15:35:43 +0000 (15:35 +0000)]
2008-12-03  Tristan Gingold  <gingold@adacore.com>

* gdb.base/macscp.exp: Generate an object file during compilation
to work around Darwin dsymutil limitations.

15 years ago * ld-x86-64/ifunc.d: New test (of STT_IFUNC for x86_64).
Nick Clifton [Thu, 4 Dec 2008 11:00:18 +0000 (11:00 +0000)]
    * ld-x86-64/ifunc.d: New test (of STT_IFUNC for x86_64).
        * ld-x86-64/ifunc.s: Source file for new test.
        * ld-x86-64/x86-64.exp: Run the new test.
        * ld-i386/ifunc.d: Tidy up regexps for expected output.

15 years agoopcodes/
Ben Elliston [Thu, 4 Dec 2008 10:29:16 +0000 (10:29 +0000)]
opcodes/
* ppc-dis.c (powerpc_init_dialect): Do not set PPC_OPCODE_BOOKE
for -Mbooke.
(print_ppc_disassembler_options): Update usage.
* ppc-opc.c (DE, DES, DEO, DE_MASK): Remove.
(BOOKE64): Remove.
(PPCCHLK64): Likewise.
(powerpc_opcodes): Remove all BOOKE64 instructions.

gas/
* config/tc-ppc.c (parse_cpu): Remove booke64 support. Update
usage strings.
(ppc_setup_opcodes): Likewise, remove booke64 support.
* doc/c-ppc.texi (PowerPC-Opts): Remove -mbooke32 and -mbooke64.
* doc/as.texinfo (Overview): Likewise.

binutils/
* doc/binutils.texi (objdump): Update booke documentation.
* NEWS: Document user-visible changes to command line options.

15 years ago* doc/as.texinfo (Type): Reword description of STT_IFUNC type.
Nick Clifton [Thu, 4 Dec 2008 08:53:39 +0000 (08:53 +0000)]
* doc/as.texinfo (Type): Reword description of STT_IFUNC type.