Joel Brobecker
325663dcd2
address size can be different from DW_OP_deref size
...
gdb/ChangeLog:
* dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2011-06-03 17:42:24 +00:00
Nick Clifton
164a5cb7bd
PR ld/12682
...
* hash.c (higher_primer_number): Add more, small, prime numbers.
(bfd_hash_set_default_size): Likewise.
2011-06-03 16:16:32 +00:00
Tom Tromey
8cf64490f2
gdb
...
* python/py-inferior.c (python_inferior_exit): Use inferior's exit
code fields.
* python/py-exitedevent.c (create_exited_event_object): Change
type of 'exit_code'. Optionally add exit_code attribute.
(emit_exited_event): Change type of 'exit_code'.
* python/py-event.h (emit_exited_event): Update.
* mi/mi-interp.c (mi_inferior_exit): Print exit code.
* infrun.c (handle_inferior_event): Set exit code fields on
inferior.
* inferior.h (struct inferior) <has_exit_code, exit_code>: New
fields.
* inferior.c (exit_inferior_1): Initialize new fields.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document 'exit-code' field.
(Events In Python): Note that exit_code is optional.
2011-06-03 15:32:44 +00:00
Tom Tromey
8ddd9a20a7
* dwarf2expr.c (get_signed_type): New function.
...
(execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2011-06-03 14:57:29 +00:00
Nick Clifton
331fe61622
Fix attributation of previous delta.
2011-06-03 14:44:04 +00:00
Nick Clifton
a4482bb643
PR gas/12698
...
* config/tc-arm.c (parse_psr): Set m_profile to false when
assembling for any architecture.
2011-06-03 14:42:47 +00:00
Nick Clifton
bc77a04af7
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
...
Add rule to build eelf32am33lin.c
* Makefile.in: Regenerate.
2011-06-03 10:36:39 +00:00
Nick Clifton
582386937d
oops - spelling fixes accidentally omitted from previous delta.
2011-06-03 10:11:06 +00:00
Nick Clifton
f8b960bc80
PR binutils/12752
...
* arm-dis.c (print_insn_coprocessor): Use bfd_vma type for
computing address offsets.
(print_arm_address): Likewise.
(print_insn_arm): Likewise.
(print_insn_thumb16): Likewise.
(print_insn_thumb32): Likewise.
2011-06-03 10:04:03 +00:00
Mike Frysinger
36f3e98103
sim: bfin: dma: fix indentation
2011-06-03 05:03:31 +00:00
Alan Modra
366e5998a8
daily update
2011-06-03 00:00:06 +00:00
gdbadmin
ce6e3af315
*** empty log message ***
2011-06-03 00:00:03 +00:00
Cary Coutant
7cdb37d9aa
PR gold/12163
...
* gold/archive.cc (Archive::Archive): Initialize new data member.
(Archive::include_all_members): Return if archive has already been
included.
* gold/archive.h (Archive::include_all_members_): New data member.
2011-06-02 20:13:23 +00:00
Keith Seitz
8dfd1e6d6e
* objc-lang.c (find_methods): Increment objfile_csym earlier.
2011-06-02 18:44:01 +00:00
Nathan Sidwell
26d97720ed
gas/
...
* config/tc-arm.c (parse_address_main): Handle -0 offsets.
(encode_arm_addr_mode_2): Set default sign of zero here ...
(encode_arm_addr_mode_3): ... and here.
(encode_arm_cp_address): ... and here.
(md_apply_fix): Use default sign of zero here.
gas/testsuite/
* gas/arm/inst.d: Adjust for signed zero offsets.
* gas/arm/ldst-offset0.d: New test.
* gas/arm/ldst-offset0.s: New test.
* gas/arm/offset-1.d: New test.
* gas/arm/offset-1.s: New test.
ld/testsuite/
Adjust tests for zero offset formatting.
* ld-arm/cortex-a8-fix-bcc-plt.d: Adjust.
* ld-arm/farcall-arm-arm-pic-veneer.d: Adjust.
* ld-arm/farcall-arm-thumb.d: Adjust.
* ld-arm/farcall-group-size2.d: Adjust.
* ld-arm/farcall-group.d: Adjust.
* ld-arm/farcall-mix.d: Adjust.
* ld-arm/farcall-mix2.d: Adjust.
* ld-arm/farcall-mixed-lib-v4t.d: Adjust.
* ld-arm/farcall-mixed-lib.d: Adjust.
* ld-arm/farcall-thumb-arm-blx-pic-veneer.d: Adjust.
* ld-arm/farcall-thumb-arm-pic-veneer.d: Adjust.
* ld-arm/farcall-thumb-thumb.d: Adjust.
* ld-arm/ifunc-10.dd: Adjust.
* ld-arm/ifunc-3.dd: Adjust.
* ld-arm/ifunc-4.dd: Adjust.
* ld-arm/ifunc-5.dd: Adjust.
* ld-arm/ifunc-6.dd: Adjust.
* ld-arm/ifunc-7.dd: Adjust.
* ld-arm/ifunc-8.dd: Adjust.
* ld-arm/jump-reloc-veneers-long.d: Adjust.
* ld-arm/tls-longplt-lib.d: Adjust.
* ld-arm/tls-thumb1.d: Adjust.
opcodes/
* arm-dis.c (print_insn_coprocessor): Explicitly print #-0
as address offset.
(print_arm_address): Likewise. Elide positive #0 appropriately.
(print_insn_arm): Likewise.
2011-06-02 15:32:10 +00:00
Pedro Alves
65fdb766be
2011-06-02 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* top.h (simplified_command_loop): Delete declaration.
2011-06-02 14:02:28 +00:00
Nick Clifton
cc643b88f1
Fix spelling mistakes.
2011-06-02 13:43:24 +00:00
DJ Delorie
4c422395e6
* config.bfd: Add bfd_elf32_rx_be_ns_vec.
...
* target.c: Likewise.
* configure.in: Likewise.
* configure.in: Regenerate.
* elf32-rx.c: Add elf32-rx-be-ns target.
(rx_elf_object_p): Never allow the be-ns target by default,
only allow it if the user requests it.
2011-06-02 00:51:19 +00:00
Alan Modra
a39ef33120
daily update
2011-06-02 00:00:05 +00:00
gdbadmin
598f424ddf
*** empty log message ***
2011-06-02 00:00:03 +00:00
Doug Kwan
f62a3ca731
2011-05-31 Doug Kwan <dougkwan@google.com>
...
Asier Llano
PR gold/12826
* arm.cc (Target_arm::tag_cpu_arch_combine): Fix handling of
arch value that equals to elfcpp::MAX_TAG_CPU_ARCH.
* testsuite/Makefile.am: (MOSTLYCLEANFILES): Clean up. Remove
redundant arm_exidx_test.so.
* testsuite/Makefile.in: Regenerate.
(check_SCRIPTS): Add pr12826.sh
(check_DATA): Add pr12826.stdout
(pr12826.stdout, pr12826.so, pr12826_1.o, pr12826_2.o): New rules.
* testsuite/pr12826.sh: New file.
* testsuite/pr12826_1.s: Ditto.
* testsuite/pr12826_1.s: Ditto.
2011-06-01 19:59:42 +00:00
H.J. Lu
4b819e1f6e
Properly warn relocation in readonly section in a shared object.
...
2011-06-01 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
relocation in readonly section in a shared object.
* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
2011-06-01 19:42:01 +00:00
Joel Brobecker
248d2a8fdc
Add `sim_complete_command' definition to erc32 sim
...
This patch fixes a build failure at link time due to
sim_complete_command being undefined. There was a recent change
that added this function to all the ports that do not use the
common/ subdir. But somehow, the erc32 port got missed.
sim/erc32/ChangeLog:
* interf.c (sim_complete_command): New stub function.
2011-06-01 17:35:02 +00:00
Yao Qi
dbc0f13167
2011-06-01 Yao Qi <yao@codesourcery.com>
...
* gdb.base/ending-run.exp: Match __uClibc_main for uClibc.
2011-06-01 15:55:55 +00:00
Mike Frysinger
f4b8c29b8a
gdb: sim: automatically pass down sysroot
...
Since gdb sets up a nice sysroot path for us by default, automatically
pass it down to the sim target so it too gets a good default. This does
not override anything the user explicitly specifies of course.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-01 15:29:07 +00:00
Yao Qi
1706c19944
2011-06-01 Yao Qi <yao@codesourcery.com>
...
* objfiles.h (obj_section_addr): Update reference to objfile from
`abfd' to `obfd'.
(obj_section_endaddr): Likewise.
2011-06-01 14:46:23 +00:00
Daniel Jacobowitz
d19cd71304
Really correct email address.
2011-06-01 11:09:15 +00:00
Daniel Jacobowitz
9483a6ee46
* MAINTAINERS: Update my email address.
2011-06-01 11:08:25 +00:00
Daniel Jacobowitz
8d07004de6
* MAINTAINERS: Update my email address and affiliation. Also
...
update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org .
2011-06-01 11:03:58 +00:00
gdbadmin
8dbe69d249
*** empty log message ***
2011-06-01 00:00:03 +00:00
Keith Seitz
fd336a18df
PR c++/12750
...
* gdb.cp/static-method.cc: New file.
* gdb.cp/static-method.exp: New file.
2011-05-31 22:14:21 +00:00
Keith Seitz
e8eb7bc534
PR c++/12750
...
* linespec.c (get_search_block): New function.
(find_methods): Add FILE_SYMTATB parameter and use it and
get_search_block to pass an appropriate block to
lookup_symbol_in_namespace.
(decode_line_1): Record if *ARGPTR is single-quote enclosed.
Check if *ARGPTR starts with a filename first.
If it does, call locate_first_half again to locate the next
"first half" of the linespec.
Pass FILE_SYMTATB to decode_objc and decode_compound.
Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
(locate_first_half): Stop on the first colon seen.
(decode_compound): Add FILE_SYMTAB parameter.
Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
(lookup_prefix_sym): Add FILE_SYMTAB parameter and use
get_search_block with lookup_symbol.
(find_method): Add FILE_SYMTAB parameter and pass it to
find_methods.
(decode_objc): Use get_search_block.
2011-05-31 22:13:51 +00:00
Keith Seitz
fa8b9902af
PR symtab/12704
...
* gdb.cp/anon-ns.cc: New file.
* gdb.cp/anon-ns.exp: New file.
2011-05-31 21:54:49 +00:00
Keith Seitz
2b1dbab03d
PR symtab/12704
...
* cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
(cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
and CP_ANONYMOUS_NAMESPACE_LEN.
(cp_is_anonymous): Likewise.
* cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
(CP_ANONYMOUS_NAMESPACE_LEN): Define.
* dwarf2read.c (namespace_name): Likewise.
(fixup_partial_die): Likewise.
* linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
seen in the input, keep it.
2011-05-31 21:54:07 +00:00
Pedro Alves
0a5b1e09bf
2011-05-31 Pedro Alves <pedro@codesourcery.com>
...
gdb/gdbserver/
* linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
assertion.
* win32-i386-low.c (i386_dr_low_get_addr): Ditto.
gdb/testsuite/
* gdb.arch/i386-dr3-watch.c: New file.
* gdb.arch/i386-dr3-watch.exp: New file.
2011-05-31 21:18:56 +00:00
Nick Clifton
74ce8de7ca
* archive.c (adjust_relative_path): Fix comment to prevent it
...
corrupting the auto-generated bfd.h.
2011-05-31 14:27:39 +00:00
Paul Brook
3b2f079304
2011-05-31 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (arm_cpus): Add Cortex-R5.
(arm_extensions): Allow idiv on ARMv7-R.
* doc/c-arm.text: Update idiv extension restrictions.
gas/testsuite/
* gas/arm/arm-idiv-bad.d: New test.
* gas/arm/arm-idiv-bad.s: New test.
* gas/arm/arm-idiv-bad.l: New test.
* gas/arm/arm-idiv.d: New test.
* gas/arm/arm-idiv.s: New test.
include/
* opcode/arm.h (ARM_ARCH_V7R_IDIV): Define.
2011-05-31 14:12:55 +00:00
Paul Brook
b58843019a
2011-05-31 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (arm_force_relocation): Resolve all pc-relative
loads.
gas/testsuite/
* gas/arm/ldr-global.d: New test.
* gas/arm/ldr-global.s: New test.
2011-05-31 14:10:07 +00:00
Paul Brook
63e1a0fcba
2011-05-31 Paul Brook <paul@codesourcery.com>
...
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
for known functions.
(elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
symbols.
include/elf/
* arm.h (arm_st_branch_type): Add ST_BRANCH_UNKNOWN.
ld/testsuite/
* ld-arm/cortex-a8-far.d: Adjust expected output.
* ld-arm/arm-call1.s: Give function symbol correct type.
* ld-arm/arm-call2.s: Ditto.
* ld-arm/farcall-group4.s: Ditto.
* ld-arm/arm-elf.exp (cortex-a8-far): Define far symbols with correct
type via assembly file.
* ld-arm/cortex-a8-far-3.s: New file.
* ld-arm/abs-call-1.s: Add Thumb tests
2011-05-31 14:07:58 +00:00
Paul Brook
10960bfbce
2011-05-31 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
addresses.
gas/testsuite/
* arm/t2-branch-global.d: New test.
* arm/t2-branch-global.s: New test.
2011-05-31 14:04:13 +00:00
Paul Brook
6e7ce2cdd3
2011-05-31 Paul Brook <paul@codesourcery.com>
...
Nathan Sidwell <nathan@codesourcery.com>
gas/
* config/tc-arm.c (fix_new_arm): Create an absolute symbol for
pc-relative fixes to constants.
* config/tc-arm.h (TC_FORCE_RELOCATATION_ABS): Define.
ld/testsuite/
* ld-arm/abs-call-1.d: New.
* ld-arm/abs-call-1.s: New.
* ld-arm/arm-elf.exp: Add it.
2011-05-31 13:40:04 +00:00
Paul Brook
12352d3f85
2011-05-31 Paul Brook <paul@codesourcery.com>
...
bfd/
* elf32-arm.c (arm_stub_is_thumb): Add
arm_stub_long_branch_v4t_thumb_tls_pic.
(elf32_arm_final_link_relocate): TLS stubs are always ARM.
Handle Thumb stubs.
ld/testsuite/
* ld-arm/tls-longplt.d: Update expected output.
* ld-arm/tls-thumb1.d: Ditto.
2011-05-31 13:37:27 +00:00
Alan Modra
1ab52cbe05
PR binutils/12820
...
* configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
* configure: Regenerate.
2011-05-31 08:54:47 +00:00
Ian Lance Taylor
8dbe1edcd3
* reloc.cc (Sized_relobj_file::do_read_relocs): Ignore empty reloc
...
sections.
2011-05-31 04:26:49 +00:00
gdbadmin
9ad61fd62f
*** empty log message ***
2011-05-31 00:00:32 +00:00
Alan Modra
3ccc0f8234
daily update
2011-05-31 00:00:05 +00:00
Pedro Alves
6d549500db
2011-05-30 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
* inf-loop.h (inferior_event_handler_wrapper): Delete.
* inf-loop.c (inferior_event_handler_wrapper): Delete.
(inferior_event_handler): Don't handle INF_QUIT_REQ.
* remote.c (_initialize_remote): Register
async_remote_interrupt_twice directly as
sigint_remote_twice_token event.
2011-05-30 21:16:35 +00:00
Pedro Alves
395bff701e
2011-05-30 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* target.h (enum inferior_event_type): Delete INF_ERROR.
* inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2011-05-30 20:54:24 +00:00
Pedro Alves
9722416428
2011-05-30 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* interps.c (interp_set): Don't cancel continuations.
2011-05-30 20:13:29 +00:00
Jan Kratochvil
07e78767d6
gdb/
...
* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2011-05-30 19:26:36 +00:00