binutils-gdb.git
13 years agoChangeLog:
Paul Pluzhnikov [Thu, 6 Jan 2011 19:56:44 +0000 (19:56 +0000)]
ChangeLog:
2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

* jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
* jit.c (jit_debug): New variable.
(show_jit_debug): New function.
(struct target_buffer): Use ULONGEST.
(bfd_open_from_target_memory): Likewise.
(jit_register_code, jit_inferior_init): Add debug output.
(_initialize_jit): Register "debug jit" command.

doc/ChangeLog:
2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

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

13 years agoCorrect year.
H.J. Lu [Thu, 6 Jan 2011 19:05:48 +0000 (19:05 +0000)]
Correct year.

13 years agoHandle STT_GNU_IFUNC symols when building shared library.
H.J. Lu [Thu, 6 Jan 2011 18:45:05 +0000 (18:45 +0000)]
Handle STT_GNU_IFUNC symols when building shared library.

bfd/

2012-01-06  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12366
PR ld/12371
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
handle symbols marked with regular reference, but not non-GOT
reference when building shared library.

* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
local and global STT_GNU_IFUNC symols when building shared
library.
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.

ld/testsuite/

2012-01-06  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12366
PR ld/12371
* ld-ifunc/ifunc-10-i386.s: Add more tests.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.

* ld-ifunc/ifunc-12-i386.d: New.
* ld-ifunc/ifunc-12-i386.s: Likewise.
* ld-ifunc/ifunc-12-x86-64.d: Likewise.
* ld-ifunc/ifunc-12-x86-64.s: Likewise.
* ld-ifunc/ifunc-13-i386.d: Likewise.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-13a-i386.s: Likewise.
* ld-ifunc/ifunc-13a-x86-64.s: Likewise.
* ld-ifunc/ifunc-13b-i386.s: Likewise.
* ld-ifunc/ifunc-13b-x86-64.s: Likewise.

13 years agogdb
Tom Tromey [Thu, 6 Jan 2011 18:34:16 +0000 (18:34 +0000)]
gdb
* frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
* python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
and ARCH_FRAME.
gdb/doc
PR python/12133:
* gdb.texinfo (Frames In Python): Document various frame
constants.

13 years ago * python/py-frame.c (frapy_block): Use get_frame_block.
Tom Tromey [Thu, 6 Jan 2011 17:16:58 +0000 (17:16 +0000)]
* python/py-frame.c (frapy_block): Use get_frame_block.

13 years ago* config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
Paul Koning [Thu, 6 Jan 2011 16:41:35 +0000 (16:41 +0000)]
* config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
references to absolute addresses.

13 years ago* gas/pdp11/opcode.d: Fix expected output for sec instruction.
Paul Koning [Thu, 6 Jan 2011 16:31:39 +0000 (16:31 +0000)]
* gas/pdp11/opcode.d: Fix expected output for sec instruction.

13 years agoDo not stop on SIGPRIO signals by default
Joel Brobecker [Thu, 6 Jan 2011 14:58:58 +0000 (14:58 +0000)]
Do not stop on SIGPRIO signals by default

This signal does not indicate an error condition, so the default
behavior when receiving this signal should be to resume execution
silently.

gdb/ChangeLog:

        Do not stop on SIGPRIO signals by default
        * infrun.c (_initialize_infrun): Unset signal_stop and
        signal_print for TARGET_SIGNAL_PRIO.

13 years agofix style violation in ada-tasks.c comment
Joel Brobecker [Thu, 6 Jan 2011 14:43:37 +0000 (14:43 +0000)]
fix style violation in ada-tasks.c comment

gdb/ChangeLog:

       * ada-tasks.c: Fix style violation in comment.

13 years ago gas/testsuite/
Nathan Sidwell [Thu, 6 Jan 2011 14:30:43 +0000 (14:30 +0000)]
gas/testsuite/
* gas/arm/blx-bad.s: New.
* gas/arm/blx-bad.d: New.

opcodes/
* arm-dis.c (thumb32_opcodes): BLX must have bit zero clear.

13 years ago * bucomm.c (get_file_size): Check for negative sizes and issue a
Nick Clifton [Thu, 6 Jan 2011 11:34:28 +0000 (11:34 +0000)]
* bucomm.c (get_file_size): Check for negative sizes and issue a
warning message if encountered.

13 years ago[testsuite/gdb.ada] simplify some testcases by using clean_restart.
Joel Brobecker [Thu, 6 Jan 2011 10:35:00 +0000 (10:35 +0000)]
[testsuite/gdb.ada] simplify some testcases by using clean_restart.

gdb/testsuite/ChangeLog:

        * gdb.ada/array_bounds.exp, gdb.ada/array_return.exp,
        gdb.ada/array_subscript_addr.exp, gdb.ada/arrayidx.exp,
        gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
        gdb.ada/atomic_enum.exp, gdb.ada/call_pn.exp,
        gdb.ada/catch_ex.exp, gdb.ada/char_param.exp,
        gdb.ada/complete.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
        gdb.ada/fixed_points.exp, gdb.ada/formatted_ref.exp,
        gdb.ada/frame_args.exp, gdb.ada/fun_addr.exp,
        gdb.ada/fun_in_declare.exp, gdb.ada/funcall_param.exp,
        gdb.ada/homonym.exp, gdb.ada/int_deref.exp,
        gdb.ada/interface.exp, gdb.ada/lang_switch.exp,
        gdb.ada/mod_from_name.exp, gdb.ada/nested.exp,
        gdb.ada/null_array.exp, gdb.ada/null_record.exp,
        gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
        gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
        gdb.ada/ptype_field.exp, gdb.ada/ptype_tagged_param.exp,
        gdb.ada/rec_return.exp, gdb.ada/ref_param.exp,
        gdb.ada/ref_tick_size.exp, gdb.ada/start.exp,
        gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
        gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/tasks.exp,
        gdb.ada/tick_last_segv.exp, gdb.ada/type_coercion.exp,
        gdb.ada/uninitialized_vars.exp,
        gdb.ada/variant_record_packed_array.exp, gdb.ada/watch_arg.exp:
        Simplify by using clean_restart.

13 years agoAvoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.
Joel Brobecker [Thu, 6 Jan 2011 10:33:38 +0000 (10:33 +0000)]
Avoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.

This command does not work when testing with GDBserver.  So this patch
changes the few tests that do not specifically test the `start' command,
and replace calls to gdb_start_cmd with the usual `run LOC' approach.

For the couple of testcases that do really test the `start' command,
do an early return as UNTESTED instead of running this testcase.

gdb/testsuite/ChangeLog:

Add marker to be used as anchor for inserting breakpoints.
* gdb.ada/null_record/null_record.adb: Add "-- START" comment.
* gdb.ada/start/dummy.adb, gdb.ada/uninitialized_vars/parse.adb:
Likewise.

Remove uses of gdb_start_cmd.
* gdb.ada/null_record.exp: Remove use of gdb_start_cmd.
* gdb.ada/print_pc.exp, gdb.ada/uninitialized_vars.exp: Ditto.

Do not run testcase if testing with GDBserver.
* gdb.ada/exec_changed.exp, gdb.ada/start.exp: Abort as untested
if testing with GDBserver.

13 years agoRemove trailing new-line at end of error string
Joel Brobecker [Thu, 6 Jan 2011 09:30:35 +0000 (09:30 +0000)]
Remove trailing new-line at end of error string

gdb/ChangeLog:

* linespec.c (decode_compound, find_method): Remove trailing \n
at end of error string.
* solib-irix.c (irix_current_sos): Likewise.
* varobj.c (uninstall_variable): Likewise.

13 years agoNew script copyright.py
Joel Brobecker [Thu, 6 Jan 2011 06:28:39 +0000 (06:28 +0000)]
New script copyright.py

gdb/ChangeLog:

        * copyright.py: New script.
        * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
        Launch emacs without exec'ing. Call copyright.py afterwards.

13 years agoAdd copyright header to some Ada files (testsuite)
Joel Brobecker [Thu, 6 Jan 2011 06:27:44 +0000 (06:27 +0000)]
Add copyright header to some Ada files (testsuite)

gdb/testsuite/ChangeLog:

  * gdb.ada/complete/foo.adb, gdb.ada/complete/pck.adb,
  gdb.ada/complete/pck.ads, gdb.ada/print_chars/foo.adb: Add
  copyright header.

13 years ago2011-01-05 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Thu, 6 Jan 2011 00:57:05 +0000 (00:57 +0000)]
2011-01-05  Michael Snyder  <msnyder@vmware.com>

* cli/cli-cmds.c: Shorten lines of >= 80 columns.
* cli/cli-decode.c: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* common/signals.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-common.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* osf-share/cma_attr.c: Ditto.
* osf-share/cma_deb_core.h: Ditto.
* osf-share/cma_debug_client.h: Ditto.
* osf-share/cma_handle.h: Ditto.
* osf-share/cma_mutex.h: Ditto.
* osf-share/cma_stack_int.h: Ditto.
* osf-share/cma_tcb_defs.h: Ditto.
* python/py-auto-load.c: Ditto.
* python/py-breakpoint.c: Ditto.
* python/py-cmd.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-objfile.c: Ditto.
* python/py-param.c: Ditto.
* python/py-progspace.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
* tui/tui-data.c: Ditto.
* tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c: Ditto.
* tui/tui-io.c: Ditto.
* tui/tui-layout.c: Ditto.
* tui/tui-regs.c: Ditto.
* tui/tui-source.c: Ditto.
* tui/tui-stack.c: Ditto.
* tui/tui-win.c: Ditto.
* tui/tui-windata.c: Ditto.
* tui/tui-winsource.c: Ditto.

13 years ago2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
Michael Snyder [Thu, 6 Jan 2011 00:14:09 +0000 (00:14 +0000)]
2011-01-05  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>

* gdbreplay.c: Shorten lines of >= 80 columns.
* linux-low.c: Ditto.
* linux-ppc-low.c: Ditto.
* linux-s390-low.c: Ditto.
* linux-sparc-low.c: Ditto.
* linux-x86-low.c: Ditto.
* linux-xtensa-low.c: Ditto.
* mem-break.c: Ditto.
* nto-low.c: Ditto.
* regcache.h: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* server.h: Ditto.
* thread-db.c: Ditto.
* tracepoint.c: Ditto.
* utils.c: Ditto.
* win32-low.h: Ditto.

13 years ago*** empty log message ***
gdbadmin [Thu, 6 Jan 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * testutils.inc: Correct comment syntax fallout from
Hans-Peter Nilsson [Wed, 5 Jan 2011 23:12:37 +0000 (23:12 +0000)]
* testutils.inc: Correct comment syntax fallout from
copyright update.
* utils-dsp.inc, utils-fpu.inc, utils-mdmx.inc: Ditto.

13 years ago * mips32-dsp.s: Update copyright year.
Hans-Peter Nilsson [Wed, 5 Jan 2011 23:10:39 +0000 (23:10 +0000)]
* mips32-dsp.s: Update copyright year.

13 years agodaily update
Alan Modra [Wed, 5 Jan 2011 23:00:04 +0000 (23:00 +0000)]
daily update

13 years ago2011-01-05 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 5 Jan 2011 22:22:53 +0000 (22:22 +0000)]
2011-01-05  Michael Snyder  <msnyder@vmware.com>

* addrmap.c: Shorten lines of >= 80 columns.
* arch-utils.c: Ditto.
* arch-utils.h: Ditto.
* ax-gdb.c: Ditto.
* ax-general.c: Ditto.
* bcache.c: Ditto.
* blockframe.c: Ditto.
* breakpoint.c: Ditto.
* buildsym.c: Ditto.
* c-lang.c: Ditto.
* c-typeprint.c: Ditto.
* charset.c: Ditto.
* coffread.c: Ditto.
* command.h: Ditto.
* corelow.c: Ditto.
* cp-abi.c: Ditto.
* cp-namespace.c: Ditto.
* cp-support.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* defs.h: Ditto.
* dfp.c: Ditto.
* dfp.h: Ditto.
* dictionary.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* eval.c: Ditto.
* event-loop.c: Ditto.
* event-loop.h: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-lang.c: Ditto.
* f-valprint.c: Ditto.
* findcmd.c: Ditto.
* frame-base.c: Ditto.
* frame-unwind.c: Ditto.
* frame-unwind.h: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_dirent.h: Ditto.
* gdb_obstack.h: Ditto.
* gdbcore.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* inf-ttrace.c: Ditto.
* infcall.c: Ditto.
* infcmd.c: Ditto.
* inflow.c: Ditto.
* infrun.c: Ditto.
* inline-frame.h: Ditto.
* language.c: Ditto.
* language.h: Ditto.
* libunwind-frame.c: Ditto.
* libunwind-frame.h: Ditto.
* linespec.c: Ditto.
* linux-nat.c: Ditto.
* linux-nat.h: Ditto.
* linux-thread-db.c: Ditto.
* machoread.c: Ditto.
* macroexp.c: Ditto.
* macrotab.c: Ditto.
* main.c: Ditto.
* maint.c: Ditto.
* mdebugread.c: Ditto.
* memattr.c: Ditto.
* minsyms.c: Ditto.
* monitor.c: Ditto.
* monitor.h: Ditto.
* objfiles.c: Ditto.
* objfiles.h: Ditto.
* osabi.c: Ditto.
* p-typeprint.c: Ditto.
* p-valprint.c: Ditto.
* parse.c: Ditto.
* printcmd.c: Ditto.
* proc-events.c: Ditto.
* procfs.c: Ditto.
* progspace.c: Ditto.
* progspace.h: Ditto.
* psympriv.h: Ditto.
* psymtab.c: Ditto.
* record.c: Ditto.
* regcache.c: Ditto.
* regcache.h: Ditto.
* remote-fileio.c: Ditto.
* remote.c: Ditto.
* ser-mingw.c: Ditto.
* ser-tcp.c: Ditto.
* ser-unix.c: Ditto.
* serial.c: Ditto.
* serial.h: Ditto.
* solib-frv.c: Ditto.
* solib-irix.c: Ditto.
* solib-osf.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
* solib-sunos.c: Ditto.
* solib-svr4.c: Ditto.
* solib-target.c: Ditto.
* solib.c: Ditto.
* somread.c: Ditto.
* source.c: Ditto.
* stabsread.c: Ditto.
* stabsread.c: Ditto.
* stack.c: Ditto.
* stack.h: Ditto.
* symfile-mem.c: Ditto.
* symfile.c: Ditto.
* symfile.h: Ditto.
* symmisc.c: Ditto.
* symtab.c: Ditto.
* symtab.h: Ditto.
* target-descriptions.c: Ditto.
* target-memory.c: Ditto.
* target.c: Ditto.
* target.h: Ditto.
* terminal.h: Ditto.
* thread.c: Ditto.
* top.c: Ditto.
* tracepoint.c: Ditto.
* tracepoint.h: Ditto.
* ui-file.c: Ditto.
* ui-file.h: Ditto.
* ui-out.h: Ditto.
* user-regs.c: Ditto.
* user-regs.h: Ditto.
* utils.c: Ditto.
* valarith.c: Ditto.
* valops.c: Ditto.
* valprint.c: Ditto.
* valprint.h: Ditto.
* value.c: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
* vec.h: Ditto.
* xcoffread.c: Ditto.
* xcoffsolib.c: Ditto.
* xcoffsolib.h: Ditto.
* xml-syscall.c: Ditto.
* xml-tdesc.c: Ditto.

13 years ago* reloc.c: Add BFD_RELOC_RX_OP_NEG.
DJ Delorie [Wed, 5 Jan 2011 22:04:09 +0000 (22:04 +0000)]
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.

* config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
instead of an RH_NEG32 one.

13 years agoClarify --n32.
H.J. Lu [Wed, 5 Jan 2011 21:35:08 +0000 (21:35 +0000)]
Clarify --n32.

2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>

* doc/c-i386.texi: Clarify --n32.

13 years agosim: ignore generated hw-config.h
Mike Frysinger [Wed, 5 Jan 2011 17:17:44 +0000 (17:17 +0000)]
sim: ignore generated hw-config.h

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: tweak load buffer type to avoid signed warnings
Mike Frysinger [Wed, 5 Jan 2011 17:13:36 +0000 (17:13 +0000)]
sim: tweak load buffer type to avoid signed warnings

The sim_load_file func creates a buffer with arbitrary data in it (reads
it via the bfd).  It then passes it on to a sim_write_fn which expects a
unsigned char buffer.  Since sim_load_file itself doesn't care about the
contents, tweak the type to avoid signed mismatch warnings from gcc:

common/sim-load.c: In function ‘sim_load_file’:
common/sim-load.c:143: warning: pointer targets in passing argument 3 of ‘do_write’ differ in signedness
common/sim-load.c:143: note: expected ‘const unsigned char *’ but argument is of type ‘char *’

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoCheck if a bfd is NULL before accessing its flags field.
H.J. Lu [Wed, 5 Jan 2011 14:25:26 +0000 (14:25 +0000)]
Check if a bfd is NULL before accessing its flags field.

2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12364
* plugin.c (get_symbols): Check if owner_sec->owner is NULL
before accessing its flags field.

13 years agoCopyright year update in sim/ppc/psim.texinfo
Joel Brobecker [Wed, 5 Jan 2011 06:01:36 +0000 (06:01 +0000)]
Copyright year update in sim/ppc/psim.texinfo

sim/ppc/ChangeLog:

       * psim.texinfo: Copyright year update.

13 years agoUpdate the copyright year for most remaining files in GDB
Joel Brobecker [Wed, 5 Jan 2011 05:09:55 +0000 (05:09 +0000)]
Update the copyright year for most remaining files in GDB

13 years agoAdd missing copyright header for testsuite/gdb.base/langs1.f.
Joel Brobecker [Wed, 5 Jan 2011 05:06:48 +0000 (05:06 +0000)]
Add missing copyright header for testsuite/gdb.base/langs1.f.

This file has been created prior to CVS rev 1. Instead of listing all
the years since 1999, I just put 1999, 2010 and 2011.

gdb/testsuite/ChangeLog:

        * gdb.base/langs1.f: Add copyright header.

13 years agoImplement BMI instructions.
H.J. Lu [Wed, 5 Jan 2011 00:16:57 +0000 (00:16 +0000)]
Implement BMI instructions.

13 years ago*** empty log message ***
gdbadmin [Wed, 5 Jan 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 4 Jan 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago * script-sections.cc (Sort_output_sections::operator()): Sort TLS
Cary Coutant [Tue, 4 Jan 2011 21:46:06 +0000 (21:46 +0000)]
* script-sections.cc (Sort_output_sections::operator()): Sort TLS
sections before NOBITS sections.

13 years agoAdd VexGdq.
H.J. Lu [Tue, 4 Jan 2011 20:53:32 +0000 (20:53 +0000)]
Add VexGdq.

2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (VexGdq): New.
(OP_VEX): Handle dq_mode.

13 years ago*** empty log message ***
gdbadmin [Tue, 4 Jan 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Mon, 3 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agomerge from gcc
DJ Delorie [Mon, 3 Jan 2011 21:05:58 +0000 (21:05 +0000)]
merge from gcc

13 years agoDon't allow mixing x64_32 with x86_64.
H.J. Lu [Mon, 3 Jan 2011 18:16:46 +0000 (18:16 +0000)]
Don't allow mixing x64_32 with x86_64.

bfd/

2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* cpu-i386.c (bfd_i386_compatible): New.
(bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
with bfd_i386_compatible.
(bfd_x86_64_arch_intel_syntax): Likewise.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x64_32_arch): Likewise.
(bfd_x86_64_arch): Likewise.
(bfd_i386_arch): Likewise.

ld/testsuite/

2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/dummy.s: New.
* ld-x86-64/foo.s: Likewise.
* ld-x86-64/ia32-1.d: Likewise.
* ld-x86-64/ia32-2.d: Likewise.
* ld-x86-64/ia32-3.d: Likewise.
* ld-x86-64/ilp32-1.d: Likewise.
* ld-x86-64/ilp32-2.d: Likewise.
* ld-x86-64/ilp32-3.d: Likewise.
* ld-x86-64/lp64-1.d: Likewise.
* ld-x86-64/lp64-2.d: Likewise.
* ld-x86-64/lp64-3.d: Likewise.
* ld-x86-64/start.s: Likewise.

* ld-x86-64/x86-64.exp: Run ilp32-1, ilp32-2, ilp32-3, ia32-1,
ia32-2, ia32-3, lp64-1, lp64-2 and lp64-3.

13 years ago * lib/binutils-common.exp (regexp_diff): Use "==" instead of "eq".
Dave Anglin [Mon, 3 Jan 2011 16:53:28 +0000 (16:53 +0000)]
* lib/binutils-common.exp (regexp_diff): Use "==" instead of "eq".

13 years agogdb/
Jan Kratochvil [Mon, 3 Jan 2011 13:11:06 +0000 (13:11 +0000)]
gdb/
* frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
this_pc_in_block, morestack_msym and morestack_name.  Check for
"__morestack" minimal symbol there.

gdb/testsuite/
* gdb.base/morestack.exp: New file.
* gdb.base/morestack.c: New file.

13 years agogdb/doc/
Jan Kratochvil [Mon, 3 Jan 2011 13:01:05 +0000 (13:01 +0000)]
gdb/doc/
* Makefile.in (diststuff): Remove gdb-cfg.texi and GDBvn.texi.
(clean): Add GDBvn.texi.

13 years agoprevent the "load" command from repeating
Joel Brobecker [Mon, 3 Jan 2011 07:53:06 +0000 (07:53 +0000)]
prevent the "load" command from repeating

This makes sure that the `load' command does not repeat when the user
presses Return again, as documented in the GDB User's Manual.

gdb/ChangeLog:

        * symfile.c (find_sym_fns): Add call to dont_repeat.

13 years ago*** empty log message ***
gdbadmin [Mon, 3 Jan 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sun, 2 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agoSync toplevel configure from GCC.
Ralf Wildenhues [Sun, 2 Jan 2011 16:40:07 +0000 (16:40 +0000)]
Sync toplevel configure from GCC.

/:
Sync from GCC:
2010-12-22  Hariharan Sandanagobalane  <hariharan@picochip.com>

* configure.ac: (picochip): Disable libiberty.
* configure: Regenerate.

13 years agoAdd a testcase for PR ld/12001.
H.J. Lu [Sun, 2 Jan 2011 16:04:32 +0000 (16:04 +0000)]
Add a testcase for PR ld/12001.

2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12001
* ld-misc/defsym.exp: New.
* ld-misc/defsym1.d: Likewise.
* ld-misc/dummy.s: Likewise.
* ld-misc/foo.s: Likewise.
* ld-misc/start.s: Likewise.

13 years agogdb/testsuite/
Jan Kratochvil [Sun, 2 Jan 2011 07:32:34 +0000 (07:32 +0000)]
gdb/testsuite/
* gdb.ada/gnat_ada.gpr: Fix copyright comment line regression by 2011.

13 years ago*** empty log message ***
gdbadmin [Sun, 2 Jan 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sat, 1 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agoUpdate copyright in comments to 2011.
H.J. Lu [Sat, 1 Jan 2011 21:42:17 +0000 (21:42 +0000)]
Update copyright in comments to 2011.

13 years agoUpdate copyright to 2011.
H.J. Lu [Sat, 1 Jan 2011 20:55:48 +0000 (20:55 +0000)]
Update copyright to 2011.

binutils/

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* version.c (print_version): Update copyright to 2011.

gas/

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* gas.c (parse_args): Update copyright to 2011.

gold/

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* version.cc (print_version): Update copyright to 2011.

ld/

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* ldver.c (ldversion): Update copyright to 2011.

opcodes/

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (process_copyright): Update copyright to 2011.

13 years agoAlso expect .zdebug in section name in ILP32 tests.
H.J. Lu [Sat, 1 Jan 2011 19:27:52 +0000 (19:27 +0000)]
Also expect .zdebug in section name in ILP32 tests.

2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/ilp32/lns/lns-common-1.d: Also expect .zdebug in
section name.
* gas/i386/ilp32/lns/lns-duplicate.d: Likewise.

13 years agoRotate gas ChangeLogs.
H.J. Lu [Sat, 1 Jan 2011 16:44:48 +0000 (16:44 +0000)]
Rotate gas ChangeLogs.

13 years agoRotate binutils ChangeLogs.
H.J. Lu [Sat, 1 Jan 2011 16:43:53 +0000 (16:43 +0000)]
Rotate binutils ChangeLogs.

13 years agorun copyright.sh for 2011.
Joel Brobecker [Sat, 1 Jan 2011 15:34:07 +0000 (15:34 +0000)]
run copyright.sh for 2011.

13 years agoUpdate copyright year in version of output (gdb/gdbserver/gdbreplay)
Joel Brobecker [Sat, 1 Jan 2011 14:14:46 +0000 (14:14 +0000)]
Update copyright year in version of output (gdb/gdbserver/gdbreplay)

gdb/ChangeLog:

       * top.c (print_gdb_version): Update copyright year in version output.

gdb/gdbserverChangeLog:

       * server.c (gdbserver_version): Update copyright year in version
       output.
       * gdbreplay.c (gdbreplay_version): Ditto.

13 years agoRotate GDB's main ChangeLog file
Joel Brobecker [Sat, 1 Jan 2011 14:05:08 +0000 (14:05 +0000)]
Rotate GDB's main ChangeLog file

gdb/ChangeLog:

        * ChangeLog-2010: Renames ChangeLog.
        * ChangeLog: New file.
        * config/djgpp/fnchange.lst: Add exception for gdb/ChangeLog-2010.
        Also fix a typo in the exception for gdb/ChangeLog-2009.

13 years ago * binutils-all/copy-2.d: Change "hppa" to "hppa*" in not-target list.
Dave Anglin [Sat, 1 Jan 2011 01:56:59 +0000 (01:56 +0000)]
* binutils-all/copy-2.d: Change "hppa" to "hppa*" in not-target list.
* binutils-all/copy-3.d: Add hppa*-*-hpux* to not-target list.
* binutils-all/objcopy.exp (reverse-bytes): xfail on 32-bit hpux.

13 years ago*** empty log message ***
gdbadmin [Sat, 1 Jan 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Fri, 31 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago2010-12-31 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Fri, 31 Dec 2010 22:59:52 +0000 (22:59 +0000)]
2010-12-31  Michael Snyder  <msnyder@vmware.com>

* charset.c: Comment cleanup and long line wrapping.
* charset.h: Ditto.
* c-lang.c: Ditto.
* c-lang.h: Ditto.
* coff-pe-read.c: Ditto.
* coff-pe-read.h: Ditto.
* coffread.c: Ditto.
* command.h: Ditto.
* complaints.c: Ditto.
* complaints.h: Ditto.
* completer.c: Ditto.
* completer.h: Ditto.
* corefile.c: Ditto.
* corelow.c: Ditto.
* core-regset.c: Ditto.
* cp-abi.c: Ditto.
* cp-abi.h: Ditto.
* cp-namespace.c: Ditto.
* cp-support.c: Ditto.
* cp-support.h: Ditto.
* cp-valprint.c: Ditto.
* cp-typeprint.c: Ditto.
* c-valprint.c: Ditto.

13 years ago * ld-undefined/undefined.exp (testline): XFAIL hppa*64*-*-*.
Dave Anglin [Fri, 31 Dec 2010 22:56:36 +0000 (22:56 +0000)]
* ld-undefined/undefined.exp (testline): XFAIL hppa*64*-*-*.

13 years ago PR ld/12360
Dave Anglin [Fri, 31 Dec 2010 22:29:19 +0000 (22:29 +0000)]
PR ld/12360
* ld-elfcomm/elfcomm.exp (test1w1): Use same check as MIPS on
hppa*64*-*-*.

13 years ago * gas/all/gas.exp (fwdexp): Run on hppa*64*-*-*. Skip on 32-bit
Dave Anglin [Fri, 31 Dec 2010 20:01:39 +0000 (20:01 +0000)]
* gas/all/gas.exp (fwdexp): Run on hppa*64*-*-*.  Skip on 32-bit
hppa*-*-hpux*.
(octa): Likewise.

13 years ago2010-12-31 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Fri, 31 Dec 2010 19:16:37 +0000 (19:16 +0000)]
2010-12-31  Michael Snyder  <msnyder@vmware.com>

* annotate.c: Comment cleanup, shorten long lines.
* arch-utils.c: Ditto.
* arch-utils.h: Ditto.
* auxv.c: Ditto.
* auxv.h: Ditto.
* ax-gdb.c: Ditto.
* ax-gdb.h: Ditto.
* ax-general.c: Ditto.
* breakpoint.h: Ditto.
* buildsym.h: Ditto.

13 years ago * gas/cfi/cfi.exp: Skip cfi-common-6 on hppa64*-*.
Dave Anglin [Fri, 31 Dec 2010 18:40:23 +0000 (18:40 +0000)]
* gas/cfi/cfi.exp: Skip cfi-common-6 on hppa64*-*.

13 years ago PR gas/11395
Dave Anglin [Fri, 31 Dec 2010 16:43:46 +0000 (16:43 +0000)]
PR gas/11395
* config/tc-hppa.c (pa_ip): Revert last change.  Add variable need_cond
to determine whether a 64-bit condition is needed for 'A' and 'S'
conditions.  Default to 32-bit never condition for logical and unit
instructions.  Add error message for missing branch on bit condition.

* hppa.h (pa_opcodes): Revert last change.  Exchange 32 and 64-bit
"bb" entries.

* hppa-dis.c (compare_cond_64_names): Change never condition to ",*".
(add_cond_64_names): Likewise.
(logical_cond_64_names): Likewise.
(unit_cond_64_names): Likewise.

13 years agoAdd change missing from previous commit, and fix misplaced changelog line.
Richard Sandiford [Fri, 31 Dec 2010 11:04:55 +0000 (11:04 +0000)]
Add change missing from previous commit, and fix misplaced changelog line.

13 years agobfd/
Richard Sandiford [Fri, 31 Dec 2010 11:01:00 +0000 (11:01 +0000)]
bfd/
2010-12-23  Robert Millan  <rmh@gnu.org>

* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.host: Likewise.
* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
* configure: Regenerate.
* elf32-mips.c: New target for FreeBSD support
(same as traditional MIPS but overrides ELF_OSABI
with ELFOSABI_FREEBSD).
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
* targets.c (_bfd_target_vector): Add
`bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.

ld/
2010-12-14  Robert Millan  <rmh@gnu.org>

* configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.

* emulparams/elf32btsmip_fbsd.sh: New file.
* emulparams/elf32btsmipn32_fbsd.sh: Likewise.
* emulparams/elf32ltsmip_fbsd.sh: Likewise.
* emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
* emulparams/elf64btsmip_fbsd.sh: Likewise.
* emulparams/elf64ltsmip_fbsd.sh: Likewise.

* Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
`eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
`eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
`eelf64ltsmip_fbsd.c'.
* Makefile.in: Regenerate.

gas/
2010-12-19  Robert Millan  <rmh@gnu.org>
    Richard Sandiford  <rdsandiford@googlemail.com>

* config/tc-mips.c (ELF_TARGET): New macro.  Generates target
names accordingly to whether TE_FreeBSD and whether TE_TMIPS
are defined.
(mips_target_format): Refactor code using ELF_TARGET().
(support_64bit_objects): Likewise.

* configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.tgt: Likewise.
* configure: Regenerate.

binutils/testsuite/
* binutils-all/readelf.exp: Handle MIPS FreeBSD targets.

gas/testsuite/
* gas/mips/e32el-rel2.d: Accept any file format.
* gas/mips/elf-rel.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/ldstla-n64-shared.d: Likewise.
* gas/mips/ldstla-n64.d: Likewise.
* gas/mips/noat-1.d: Likewise.
* gas/mips/set-arch.d: Likewise.
* gas/mips/tls-o32.d: Likewise.

ld/testsuite/
* ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mips-elf/mips16-call-global.d: Accept any file format.
* ld-mips-elf/mips16-intermix.d: Likewise.

13 years agoMove elfXX_r_info/elfXX_r_sym to elfcode.h.
H.J. Lu [Fri, 31 Dec 2010 02:43:21 +0000 (02:43 +0000)]
Move elfXX_r_info/elfXX_r_sym to elfcode.h.

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* elfcode.h (NAME(elf,r_info)): New.
(NAME(elf,r_sym)): Likewise.

* elflink.c (elf64_r_info): Removed.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.

13 years agoAdd elf_x86_64_relocs_compatible.
H.J. Lu [Fri, 31 Dec 2010 00:34:59 +0000 (00:34 +0000)]
Add elf_x86_64_relocs_compatible.

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
(elf_backend_relocs_compatible): Defined to
elf_x86_64_relocs_compatible.

13 years agoAdd x86-64 ILP32 support.
H.J. Lu [Fri, 31 Dec 2010 00:33:36 +0000 (00:33 +0000)]
Add x86-64 ILP32 support.

bfd/

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* archures.c (bfd_mach_x64_32): New.
(bfd_mach_x64_32_intel_syntax): Likewise.
* bfd-in2.h: Regenerated.

* config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
i[3-7]86-*-linux-*.
(targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.

* configure.in: Support bfd_elf32_x86_64_vec.
* configure: Regenerated.

* cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
(bfd_x64_32_arch): Likewise.

* elf-bfd.h (elf_append_rela): New prototype.
(elf_append_rel): Likewise.
(elf64_r_info): Likewise.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.

* elf64-x86-64.c (ABI_64_P): New.
(elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
ELF32_R_TYPE.  Replace ELF64_ST_TYPE with ELF_ST_TYPE.
(elf_x86_64_check_tls_transition):Likewise.
(elf_x86_64_check_relocs): Likewise.
(elf_x86_64_gc_mark_hook):Likewise.
(elf_x86_64_gc_sweep_hook): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_reloc_type_class): Likewise.
(ELF_DYNAMIC_INTERPRETER): Renamed to ...
(ELF64_DYNAMIC_INTERPRETER): This.
(ELF32_DYNAMIC_INTERPRETER): New.
(elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
dynamic_interpreter and dynamic_interpreter_size.
(elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
htab->r_sym.  Replace ELF64_R_INFO with htab->r_info.
(elf_x86_64_get_local_sym_hash): Likewise.
(elf_x86_64_check_tls_transition):Likewise.
(elf_x86_64_check_relocs): Likewise.
(elf_x86_64_gc_mark_hook):Likewise.
(elf_x86_64_gc_sweep_hook): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_finish_dynamic_symbol): Likewise.
(elf_x86_64_finish_local_dynamic_symbol): Likewise.
(elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
(elf_x86_64_check_relocs): Check ABI_64_P when requesting for
PIC.
(elf_x86_64_relocate_section): Likewise.
(elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
(Elf64_External_Rela) with bed->s->sizeof_rela.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_append_rela): Removed.
(elf32_x86_64_elf_object_p): New.
Add bfd_elf32_x86_64_vec.

* elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
(elf_x86_64_xxx): This.

* elflink.c (bfd_elf_final_link): Check ELF file class on error.
(elf_append_rela): New.
(elf_append_rel): Likewise.
(elf64_r_info): Likewise.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.

* targets.c (bfd_elf32_x86_64_vec): New.
(_bfd_target_vector): Add bfd_elf32_x86_64_vec.

gas/

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (x86_elf_abi): New.
(i386_mach): Return bfd_mach_x64_32 for ILP32.
(OPTION_N32): Likewise.
(md_longopts): Add "n32" for ELF.
(md_parse_option): Handle OPTION_N32.
(md_show_usage): Add --n32.
(i386_target_format): Update and check x86_elf_abi.

* config/tc-i386.h (ELF_TARGET_FORMAT32): New.

* doc/as.texinfo: Document --n32.
* doc/c-i386.texi: Likewise.

gas/testsuite/

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/ilp32/lns/ilp32.exp: New.
* gas/i386/ilp32/lns/lns-common-1.d: Likewise.
* gas/i386/ilp32/lns/lns-duplicate.d: Likewise.

* gas/i386/ilp32/cfi/cfi-common-1.d: New.
* gas/i386/ilp32/cfi/cfi-common-2.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-3.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-4.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-5.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-6.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-7.d: Likewise.
* gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/ehopt0.d: Likewise.
* gas/i386/ilp32/elf/equ-reloc.d: Likewise.
* gas/i386/ilp32/elf/file.d: Likewise.
* gas/i386/ilp32/elf/group0a.d: Likewise.
* gas/i386/ilp32/elf/group0b.d: Likewise.
* gas/i386/ilp32/elf/group1a.d: Likewise.
* gas/i386/ilp32/elf/group1b.d: Likewise.
* gas/i386/ilp32/elf/ifunc-1.d: Likewise.
* gas/i386/ilp32/elf/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/redef.d: Likewise.
* gas/i386/ilp32/elf/section0.d: Likewise.
* gas/i386/ilp32/elf/section1.d: Likewise.
* gas/i386/ilp32/elf/section3.d: Likewise.
* gas/i386/ilp32/elf/section4.d: Likewise.
* gas/i386/ilp32/elf/section6.d: Likewise.
* gas/i386/ilp32/elf/section7.d: Likewise.
* gas/i386/ilp32/elf/struct.d: Likewise.
* gas/i386/ilp32/elf/symtab.d: Likewise.
* gas/i386/ilp32/elf/symver.d: Likewise.

* gas/i386/ilp32/ilp32.exp: New.
* gas/i386/ilp32/immed64.d: Likewise.
* gas/i386/ilp32/mixed-mode-reloc64.d: Likewise.
* gas/i386/ilp32/reloc64.d: Likewise.
* gas/i386/ilp32/rex.d: Likewise.
* gas/i386/ilp32/rexw.d: Likewise.
* gas/i386/ilp32/svme64.d: Likewise.
* gas/i386/ilp32/x86-64-addr32.d: Likewise.
* gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
* gas/i386/ilp32/x86-64-aes.d: Likewise.
* gas/i386/ilp32/x86-64-aes-intel.d: Likewise.
* gas/i386/ilp32/x86-64-amdfam10.d: Likewise.
* gas/i386/ilp32/x86-64-arch-1.d: Likewise.
* gas/i386/ilp32/x86-64-arch-2.d: Likewise.
* gas/i386/ilp32/x86-64-avx.d: Likewise.
* gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
* gas/i386/ilp32/x86-64-avx-swap.d: Likewise.
* gas/i386/ilp32/x86-64-avx-swap-intel.d: Likewise.
* gas/i386/ilp32/x86-64-branch.d: Likewise.
* gas/i386/ilp32/x86-64-cbw.d: Likewise.
* gas/i386/ilp32/x86-64-cbw-intel.d: Likewise.
* gas/i386/ilp32/x86-64-clmul.d: Likewise.
* gas/i386/ilp32/x86-64-clmul-intel.d: Likewise.
* gas/i386/ilp32/x86-64-crc32.d: Likewise.
* gas/i386/ilp32/x86-64-crc32-intel.d: Likewise.
* gas/i386/ilp32/x86-64-crx.d: Likewise.
* gas/i386/ilp32/x86-64-crx-suffix.d: Likewise.
* gas/i386/ilp32/x86-64.d: Likewise.
* gas/i386/ilp32/x86-64-disp.d: Likewise.
* gas/i386/ilp32/x86-64-disp-intel.d: Likewise.
* gas/i386/ilp32/x86-64-drx.d: Likewise.
* gas/i386/ilp32/x86-64-drx-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-ept.d: Likewise.
* gas/i386/ilp32/x86-64-ept-intel.d: Likewise.
* gas/i386/ilp32/x86-64-fma4.d: Likewise.
* gas/i386/ilp32/x86-64-fma.d: Likewise.
* gas/i386/ilp32/x86-64-fma-intel.d: Likewise.
* gas/i386/ilp32/x86-64-gidt.d: Likewise.
* gas/i386/ilp32/x86-64-ifunc.d: Likewise.
* gas/i386/ilp32/x86-64-intel64.d: Likewise.
* gas/i386/ilp32/x86-64-io.d: Likewise.
* gas/i386/ilp32/x86-64-io-intel.d: Likewise.
* gas/i386/ilp32/x86-64-io-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-localpic.d: Likewise.
* gas/i386/ilp32/x86-64-mem.d: Likewise.
* gas/i386/ilp32/x86-64-mem-intel.d: Likewise.
* gas/i386/ilp32/x86-64-movbe.d: Likewise.
* gas/i386/ilp32/x86-64-movbe-intel.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-nocona.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
* gas/i386/ilp32/x86-64-nops-2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-3.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops.d: Likewise.
* gas/i386/ilp32/x86-64-opcode.d: Likewise.
* gas/i386/ilp32/x86-64-opcode-inval.d: Likewise.
* gas/i386/ilp32/x86-64-opcode-inval-intel.d: Likewise.
* gas/i386/ilp32/x86-64-opts.d: Likewise.
* gas/i386/ilp32/x86-64-opts-intel.d: Likewise.
* gas/i386/ilp32/x86-64-pcrel.d: Likewise.
* gas/i386/ilp32/x86-64-reg.d: Likewise.
* gas/i386/ilp32/x86-64-reg-intel.d: Likewise.
* gas/i386/ilp32/x86-64-rep.d: Likewise.
* gas/i386/ilp32/x86-64-rep-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-rip.d: Likewise.
* gas/i386/ilp32/x86-64-rip-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sib.d: Likewise.
* gas/i386/ilp32/x86-64-sib-intel.d: Likewise.
* gas/i386/ilp32/x86-64-simd.d: Likewise.
* gas/i386/ilp32/x86-64-simd-intel.d: Likewise.
* gas/i386/ilp32/x86-64-simd-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx-opts.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx-opts-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse3.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_1.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_1-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check-none.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check-warn.d: Likewise.
* gas/i386/ilp32/x86-64-sse-noavx.d: Likewise.
* gas/i386/ilp32/x86-64-ssse3.d: Likewise.
* gas/i386/ilp32/x86-64-stack.d: Likewise.
* gas/i386/ilp32/x86-64-stack-intel.d: Likewise.
* gas/i386/ilp32/x86-64-stack-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-unwind.d: Likewise.
* gas/i386/ilp32/x86-64-vmx.d: Likewise.
* gas/i386/ilp32/x86-64-xsave.d: Likewise.
* gas/i386/ilp32/x86-64-xsave-intel.d: Likewise.

ld/

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* emulparams/elf32_x86_64.sh: New.

* configure.tgt (targ64_extra_emuls): Add elf32_x86_64 for
i[3-7]86-*-linux-*.
(targ_extra_libpath): Likewise.
(targ_extra_emuls): Add elf32_x86_64 for x86_64-*-linux-*.
(targ_extra_libpath): Likewise.

* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64.c.
(eelf32_x86_64.c): New.
* Makefile.in: Regenerated.

opcodes/

2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (print_insn): Support bfd_mach_x64_32 and
bfd_mach_x64_32_intel_syntax.

13 years ago*** empty log message ***
gdbadmin [Fri, 31 Dec 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Thu, 30 Dec 2010 23:00:06 +0000 (23:00 +0000)]
daily update

13 years agoFix style warnings detected by server in new Blackfin code
Mike Frysinger [Thu, 30 Dec 2010 17:36:26 +0000 (17:36 +0000)]
Fix style warnings detected by server in new Blackfin code

13 years ago*** empty log message ***
gdbadmin [Thu, 30 Dec 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Wed, 29 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago2010-12-29 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 29 Dec 2010 21:44:26 +0000 (21:44 +0000)]
2010-12-29  Michael Snyder  <msnyder@vmware.com>

* bcache.c: Comment clean-up.
* block.c: Ditto.
* blockframe.c: Ditto.
* breakpoint.c: Ditto.
* bsd-kvm.c: Ditto.
* buildsym.c: Ditto.

13 years ago Move ChangeLog entry.
Dave Anglin [Wed, 29 Dec 2010 16:57:42 +0000 (16:57 +0000)]
Move ChangeLog entry.

13 years agogdbserver: bfin: new port
Mike Frysinger [Wed, 29 Dec 2010 16:15:42 +0000 (16:15 +0000)]
gdbserver: bfin: new port

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogdb: bfin: new port
Mike Frysinger [Wed, 29 Dec 2010 16:11:49 +0000 (16:11 +0000)]
gdb: bfin: new port

Initial support for Blackfin processors.  This supports the standard ABI.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2010-12-29 Hui Zhu <teawater@gmail.com>
Hui Zhu [Wed, 29 Dec 2010 12:47:19 +0000 (12:47 +0000)]
2010-12-29  Hui Zhu  <teawater@gmail.com>

* ax-gdb.c (gen_expr): Change error message.

13 years agorevert previous gdb.c commit (it was not a minor comment update)
Joel Brobecker [Wed, 29 Dec 2010 10:18:51 +0000 (10:18 +0000)]
revert previous gdb.c commit (it was not a minor comment update)

gdb/ChangeLog:

       * gdb.c: Revert the previous change, which was probably committed
        by accident.

13 years agoFix typo in ada-lang.c comment.
Joel Brobecker [Wed, 29 Dec 2010 08:15:24 +0000 (08:15 +0000)]
Fix typo in ada-lang.c comment.

gdb/ChangeLog:

        * ada-lang.c: Fix typo in comment.

13 years ago[Ada] print null array pointer as `0x0' rather than `(null)'
Joel Brobecker [Wed, 29 Dec 2010 08:02:59 +0000 (08:02 +0000)]
[Ada] print null array pointer as `0x0' rather than `(null)'

Trying to print a variable defined as an access to an unconstrained
array:

       type String_Access is access String;
       S1 : String_Access;

If that variable is null, then GDB prints its value in an odd way:

    (gdb) print S1
    $1 = (string_bug.string_access) (null)
                                    ^^^^^^

This patch changes the debugger behavior to print the pointer using
the same output we'd use for any null pointer:

    (gdb) print S1
    $1 = (string_bug.string_access) 0x0

It also adds an assert, helping us verify an assumption.

gdb/ChangeLog:

        * ada-valprint.c (ada_val_print_1): Print null array pointers as
        `0x0' rather than `(null)'.  Add assertion.

gdb/testsuite/ChangeLog:

        * gdb.ada/arrayptr/foo.adb: Add new local variable Null_String.
        * gdb.ada/arrayptr.exp: Add test printing that new variable.

13 years ago[Ada] do not print arrays as array pointers
Joel Brobecker [Wed, 29 Dec 2010 08:01:32 +0000 (08:01 +0000)]
[Ada] do not print arrays as array pointers

This patch enhances the debugger to distinguish between fat pointers
that represent either: array types, or array access types.  In the latter
case, the object/type is encoded as a typedef type pointing to the fat
pointer.

The first part of the change is to adjust ada_check_typedef to avoid
stripping the typedef layer when it points to a fat pointer.  The rest
of the patch is adjustments required in various places to deal with
the fact that the type is uses might now be a typedef.

gdb/ChangeLog:

        * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
        * ada-lang.c (ada_typedef_target_type): New function.
        (desc_base_type): Add handling of fat pointer typedefs.
        (ada_coerce_to_simple_array): Make non-static.
        (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
        Add assertion.
        (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
        (ada_check_typedef): Add handling of fat pointer typedefs.
        (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
        * ada-typeprint.c (ada_print_type): Add handling of fat pointer
        typedefs.
        * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
        array accesses to simple arrays rather than simple array pointers.
        (ada_value_print): In the case of array descriptors, do not print
        the value type description unless it is an array access.

gdb/testsuite/ChangeLog:

        * gdb.ada/lang_switch.exp: Correct expected parameter value.

gdb/doc/ChangeLog:

        * gdb.texinfo (Ada Glitches): Remove paragraph describing the
        occasional case where the debugger prints an array address
        instead of the array itself.

13 years agoAdd documentation for TARGET_OBJECT_OSDATA
Joel Brobecker [Wed, 29 Dec 2010 02:52:23 +0000 (02:52 +0000)]
Add documentation for TARGET_OBJECT_OSDATA

gdb/ChangeLog:

        * target.h (enum target_object): Expand the documentation of
        TARGET_OBJECT_OSDATA a bit.

13 years agosim: HW_NALLOC: new alloc helper
Mike Frysinger [Wed, 29 Dec 2010 02:51:40 +0000 (02:51 +0000)]
sim: HW_NALLOC: new alloc helper

We have malloc (uninitialized buffer), zalloc (zeroed buffer), and
nzalloc (zeroed array).  But we don't have a way to allocate an
uninitialized array.  Add a HW_NALLOC to fill this gap.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: HW_NZALLOC: fix arg handling
Mike Frysinger [Wed, 29 Dec 2010 02:50:35 +0000 (02:50 +0000)]
sim: HW_NZALLOC: fix arg handling

The HW_NZALLOC macro has all caps args for some reason (unlike the other
alloc helpers), and ends up not using the "ME" argument since its copy
and paste source uses "me".  Make all the args lowercase to match the
style of all the other args and make it use the correct "me".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2010-12-28 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 29 Dec 2010 02:11:04 +0000 (02:11 +0000)]
2010-12-28  Michael Snyder  <msnyder@vmware.com>

* command.h: Comment clean-up.
* cli/cli-cmds.c: Ditto.
* cli/cli-cmds.h: Ditto.
* cli/cli-decode.c: Ditto.
* cli/cli-decode.h: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-interp.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* cli/cli-setshow.h: Ditto.

13 years agoMention PR ld/12327 in ChangeLog entry.
H.J. Lu [Wed, 29 Dec 2010 01:03:31 +0000 (01:03 +0000)]
Mention PR ld/12327 in ChangeLog entry.

13 years ago2010-12-28 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 29 Dec 2010 00:58:14 +0000 (00:58 +0000)]
2010-12-28  Michael Snyder  <msnyder@vmware.com>

* event-loop.c: Comment clean-up.
* event-loop.h: Ditto.
* event-top.c: Ditto.
* gdb.c: Ditto.
* gdb.h: Ditto.
* main.c: Ditto.
* top.c: Ditto.
* top.h: Ditto.

13 years ago*** empty log message ***
gdbadmin [Wed, 29 Dec 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 28 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agoAdd testcases for PR ld/12327.
H.J. Lu [Tue, 28 Dec 2010 18:04:10 +0000 (18:04 +0000)]
Add testcases for PR ld/12327.

2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12327
* ld-scripts/defined4.d: New.
* ld-scripts/defined4.s: Likewise.
* ld-scripts/defined4.t: Likewise.
* ld-scripts/expr2.d: Likewise.
* ld-scripts/expr2.s: Likewise.
* ld-scripts/expr2.t: Likewise.

* ld-scripts/defined.exp: Run defined4.

* ld-scripts/expr.exp: Run expr2.

13 years ago * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
Pedro Alves [Tue, 28 Dec 2010 17:59:58 +0000 (17:59 +0000)]
* ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
collect a user register.

13 years ago2010-12-28 Hui Zhu <teawater@gmail.com>
Hui Zhu [Tue, 28 Dec 2010 16:00:13 +0000 (16:00 +0000)]
2010-12-28  Hui Zhu  <teawater@gmail.com>

* gdbarch.sh (ax_pseudo_register_collect,
ax_pseudo_register_push_stack): new callbacks.
(agent_expr): Forward declare.
* gdbarch.h, gdbarch.c: Regenerate.
* ax-gdb.c (gen_expr): Remove pseudo-register check code.
* ax-general.c (user-regs.h): New include.
(ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
(ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
* mips-tdep.c (ax.h): New include.
(mips_ax_pseudo_register_collect,
mips_ax_pseudo_register_push_stack): New functions.
(mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
mips_ax_pseudo_register_push_stack.

13 years ago2010-12-28 Yao Qi <yao@codesourcery.com>
Yao Qi [Tue, 28 Dec 2010 13:26:46 +0000 (13:26 +0000)]
2010-12-28  Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.