Pedro Alves
4b4e080e83
2011-10-24 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* infrun.c (handle_inferior_event): Add debug output for
TARGET_WAITKIND_NO_HISTORY.
2011-10-24 14:01:12 +00:00
Maciej W. Rozycki
61a2712e81
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
...
assertions.
2011-10-24 13:58:47 +00:00
Yao Qi
b022178194
gdb/testsuite/
...
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when
target is tic6x-*-*.
2011-10-24 13:51:20 +00:00
Nick Clifton
b6009aca9a
PR ld/13273
...
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
identical TAG_PCS_config attributes.
2011-10-24 12:52:37 +00:00
Nick Clifton
07725569e1
Updated Japanese translation
2011-10-24 11:51:22 +00:00
Phil Muldoon
baacfb07fc
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
...
* NEWS: Move set/show extended-prompt to "New Options". Expand
description. Fix typos.
2011-10-24 11:49:26 +00:00
Phil Muldoon
8432bc4103
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
...
PR python/13310
* python/py-param.c (call_doc_function): Correctly deference on
function exit.
2011-10-24 11:39:50 +00:00
Nick Clifton
f11632056d
PR binutils/13292
...
* bfd-in.h: Include <sys/stat.h> rather than forward defining
struct stat.
* bfd-in2.h: Regenerate.
2011-10-24 11:23:40 +00:00
Alan Modra
652618321c
* config/tc-mn10200.c (md_convert_frag): Add missing break.
2011-10-24 02:49:24 +00:00
gdbadmin
957ff1ca67
*** empty log message ***
2011-10-24 00:00:03 +00:00
Alan Modra
56fae03918
daily update
2011-10-23 23:00:05 +00:00
gdbadmin
9784852956
*** empty log message ***
2011-10-23 00:00:32 +00:00
Alan Modra
7ca54243fb
daily update
2011-10-22 23:00:05 +00:00
DJ Delorie
006d5c8857
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
...
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
2011-10-22 01:35:29 +00:00
gdbadmin
2954ce4ce4
*** empty log message ***
2011-10-22 00:00:33 +00:00
Alan Modra
7bac65fdd2
daily update
2011-10-21 23:00:06 +00:00
H.J. Lu
9892017203
Replace IRELATIVE relocations with RELATIVE in .rel.dyn.
...
bfd/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* elf32-i386.c (elf_i386_relocate_section): Replace
R_386_IRELATIVE with R_386_RELATIVE.
* elf64-x86-64.c (elf_x86_64_relocate_section): Replace
R_X86_64_IRELATIVE with R_X86_64_RELATIVE.
ld/testsuite/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* ld-i386/i386.exp: Run pr13302.
* ld-i386/pr13302.d: New.
* ld-i386/pr13302.s: Likewise.
* ld-x86-64/pr13082-5b.d: Updated.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.
2011-10-21 19:37:15 +00:00
Joel Brobecker
6cda5a2082
[Ada] Fix number of lines in -ada-task-info output
...
When using the new -ada-task-info command with an argument,
the output would say that there are N entries in the returned
table, (where N is the total number of tasks present in the inferior).
But, in fact, the table would only contain at most 1 entry.
This patch fixes this by properly computing the number of
tasks being displayed before giving it to the uiout.
gdb/ChangeLog:
* ada-tasks.c (print_ada_task_info): Fix computation of
number of tasks displayed in command output.
gdb/testsuite/ChangeLog:
* gdb.ada/mi_task_info/task_switch.adb: New file.
* gdb.ada/mi_task_info.exp: New file.
2011-10-21 18:46:06 +00:00
Jan Kratochvil
5ed9db04f8
gdb/testsuite/
...
* gdb.cp/expand-psymtabs-cxx.exp: New file.
* gdb.cp/expand-psymtabs-cxx.cc: New file.
2011-10-21 16:31:17 +00:00
H.J. Lu
c293fa4964
Fix a typo in comments.
...
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>.
* elf32-i386.c (elf_i386_relocate_section): Fix a typo in
comments.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
2011-10-21 16:16:51 +00:00
H.J. Lu
e1f987424b
Put IRELATIVE relocations after JUMP_SLOT.
...
bfd/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
and next_irelative_index.
(elf_i386_link_hash_table_create): Initialize next_jump_slot_index
and next_irelative_index.
(elf_i386_allocate_dynrelocs): Increment reloc_count instead of
next_tls_desc_index.
(elf_i386_size_dynamic_sections): Set next_tls_desc_index and
next_irelative_index from reloc_count.
(elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
R_386_JUMP_SLOT.
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add
next_jump_slot_index and next_irelative_index.
(elf_x86_64_link_hash_table_create): Initialize
next_jump_slot_index and next_irelative_index.
(elf_x86_64_size_dynamic_sections): Set next_irelative_index
from reloc_count.
(elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
R_X86_64_JUMP_SLOT.
ld/testsuite/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* ld-ifunc/ifunc-16-i386.d: New.
* ld-ifunc/ifunc-16-x86-64.d: Likewise.
* ld-ifunc/ifunc-16-x86.s: Likewise.
2011-10-21 15:13:37 +00:00
Tristan Gingold
f8e24652cb
2011-10-21 Tristan Gingold <gingold@adacore.com>
...
* config/tc-alpha.c (load_expression): Use symbol_mark_used accessor.
(s_alpha_comm): Use symbol_set_frag accessor.
2011-10-21 13:24:26 +00:00
Andreas Krebbel
9cae27dcb1
2011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>
...
* s390-opc.txt: Add CPUMF instructions.
2011-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/zarch-z10.d: Add CPUMF instructions.
* gas/s390/zarch-z10.s: Likewise.
2011-10-21 12:50:30 +00:00
gdbadmin
a27f53a7cb
*** empty log message ***
2011-10-21 00:00:33 +00:00
Jan Kratochvil
13294f7d62
gdb/
...
* dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
(dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
(dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
gdbarch_pc_regnum and frame_unwind_register_unsigned by
gdbarch_unwind_pc.
2011-10-20 23:57:23 +00:00
Cary Coutant
460c1c54b4
* dwarf2read.c (dw2_get_file_names): Move adjustment for type
...
section to...
(partial_read_comp_unit_head): ...here. Add is_debug_type_section
flag. Adjust all callers.
(process_psymtab_comp_unit): Remove adjustment for type section.
2011-10-20 23:13:01 +00:00
Alan Modra
2fe962a34b
daily update
2011-10-20 23:00:05 +00:00
Aleksandar Ristovski
a10964d12c
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
...
arguments by adding OBJFILE. Instead of getting objfile from
symbol's symtab, use new argument OBJFILE.
* cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE.
* gdb/dwarf2read.c (new_symbol_full): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
* gdb/stabsread.c (define_symbol): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
2011-10-20 20:06:14 +00:00
Nick Clifton
9553db3cc3
PR ld/13049
...
* elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace
symbol names.
* elf64-ppc.c (STUB_SUFFIX): Likewise.
* elf32-hppa.c (STUB_SUFFIX): Likewise.
2011-10-20 16:27:04 +00:00
Phil Muldoon
27ca1a5b08
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
...
PR python/13308
PR python/13309
* python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
leak.
* python/py-inferior.c (gdbpy_inferiors): Fix List reference
leak. Delete unused variables.
2011-10-20 13:34:17 +00:00
Alan Modra
4a89cbfcf5
* ld-selective/selective.exp: Use check_gc_sections_available.
...
Remove redundant xfails.
* ld-selective/sel-dump.exp: Likewise.
2011-10-20 12:34:20 +00:00
Phil Muldoon
9df2fbc4c1
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
...
PR python/12656
* python/py-frame.c (frapy_read_var): Use const struct *block.
* python/py-type.c (typy_lookup_typename): Likewise.
(typy_lookup_type): Likewise.
(typy_legacy_template_argument): Likewise.
(typy_template_argument): Likewise.
(gdbpy_lookup_type): Likewise.
* python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
* python/py-block.c (blpy_block_object): Likewise.
(blpy_iter): Likewise.
(blpy_get_start): Likewise.
(blpy_get_end): Likewise.
(blpy_get_function): Likewise.
(blpy_get_superblock): Likewise.
(set_block): Likewise.
(block_to_block_object): Likewise.
(block_object_to_block): Likewise.
(blpy_is_valid): Likewise.
(blpy_get_global_block): New function.
(blpy_get_static_block): New function.
(blpy_is_global): New function.
(blpy_is_static): New function.
* blockframe.c (block_innermost_frame): Likewise.
* valops.c (value_of_variable): Likewise.
* frame.h: Update prototypes.
* python/python-internal.h: Likewise.
* value.h: Likewise.
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/12656
* gdb.texinfo (Blocks In Python): Document is_static, is_global,
global_block, static_block function.
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/12656
* gdb.python/py-block.exp: Add is_global, is_static, static_block,
global_block tests.
2011-10-20 12:31:30 +00:00
Alan Modra
5468810dda
PR ld/13287
...
* plugin.c (plugin_should_reload): New function.
* plugin.h (plugin_should_reload): Declare.
* ldlang.c (open_input_bfds): Use above function.
2011-10-20 09:50:59 +00:00
Cary Coutant
4743b73565
* dwarf2read.c (create_debug_types_hash_table): Fix size of
...
type_offset field.
2011-10-20 01:11:34 +00:00
gdbadmin
5b1c20602a
*** empty log message ***
2011-10-20 00:00:03 +00:00
Alan Modra
db9b2be466
* config/tc-mips.c (micromips_add_label): Avoid gcc warning.
...
(md_convert_frag): Likewise.
2011-10-19 23:09:11 +00:00
Alan Modra
fa289a5fde
* elf32-i386.c (i386_opcode16): Delete.
...
(elf_i386_check_tls_transition): Use memcmp to compare contents.
* elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete.
(elf_x86_64_check_tls_transition): Use memcmp to compare contents.
2011-10-19 23:02:50 +00:00
Alan Modra
0319698bac
daily update
2011-10-19 23:00:04 +00:00
Mike Frysinger
4399a56be2
sim: dv-cfi: check for log2 support in libm when enabled
...
The dv-cfi model uses log2() internally, so make sure we automatically
link in libm when required.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-19 21:28:27 +00:00
Tom Tromey
f05e2e1de6
* gdb.texinfo (Commands In Python): Add missing "@"s.
2011-10-19 17:51:01 +00:00
Ian Lance Taylor
bfc34b3fc4
PR gold/13163
...
* script-sections.cc
(Output_section_element_dot_assignment::needs_output_section): New
function.
2011-10-19 15:51:00 +00:00
Cary Coutant
6caca83cb8
* dwarf2read.c (peek_abbrev_code): New function.
...
(dw2_get_file_names): Check for dummy compilation units.
(create_debug_types_hash_table): Likewise.
(process_psymtab_comp_unit): Likewise.
(load_partial_comp_unit): Likewise.
(load_full_comp_unit): Likewise.
2011-10-19 15:26:30 +00:00
Ian Lance Taylor
ea0d8c4740
PR gold/13204
...
* layout.cc (Layout::segment_precedes): Don't assert failure if a
--section-start option was seen.
* options.h (General_options::any_section_start): New function.
2011-10-19 15:05:58 +00:00
Alan Modra
1d5316ab67
PR ld/13177
...
bfd/
* elflink.c (_bfd_elf_gc_mark_rsec): Set symbol "mark".
(elf_gc_sweep_symbol): Don't test plt/got refcounts, instead test
"mark". Hide undefweak too. Clear def_regular and ref_regular.
* elf-m10300.c (mn10300_elf_relocate_section): Ignore unresolved
reloc errors from garbage-collected code.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
ld/testsuite/
* ld-elf/elf.exp: Move test for shared lib support..
* lib/ld-lib.exp (check_shared_lib_support): ..to here. Add m68hc1*,
and s/ms1/mt/.
(check_gc_sections_available): Match hppa*64 not hppa64. Comment.
* ld-gc/libpersonality.s: New.
* ld-gc/personality.s, * ld-gc/personality.d: New.
* ld-gc/gc.exp: Run personality test.
2011-10-19 07:17:21 +00:00
Alan Modra
371a586695
PR ld/13311
...
* elflink.c (elf_link_output_extsym): Correct test for warning when
forced local executable syms are referenced from shared libraries.
2011-10-19 05:24:38 +00:00
Alan Modra
c192a13368
PR ld/13254
...
include/
* bfdlink.h (struct bfd_link_info): Add error_textrel.
bfd/
* elflink.c (bfd_elf_final_link): Emit error_textrel error.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z text, -z notext, -z textoff options for all targets having
shared lib support.
2011-10-19 04:13:28 +00:00
Joel Brobecker
f1a81b376a
[sim]: Only print the profile info title once.
...
sim/common/ChangeLog:
From John Wehle <john@feith.com> (tiny patch)
* sim-profile.c (profile_info): Only print the title once.
2011-10-19 00:54:03 +00:00
David S. Miller
abd242a908
Fix sparc TLS call relaxation when the delay slot sets up %o0.
...
bfd/
PR binutils/13301
* elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function.
(_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr
call delay slot instruction forward 4 bytes when performing
relaxation.
gold/
PR binutils/13301
* sparc.cc (Target_sparc::Relocate::reloc_adjust_addr_): New
member to track relocation locations that have moved during TLS
reloc optimizations.
(Target_sparc::Relocate::Relocate): Initialize to NULL.
(Target_sparc::Relocate::relocate): Adjust view down by 4
bytes if it matches reloc_adjust_addr_.
(Target_sparc::Relocate::relocate_tls): Always move the
__tls_get_addr call delay slot instruction forward 4 bytes when
performing relaxation.
ld/testsuite/
* ld-sparc/tlssunbin32.dd: Update for TLS call relaxation fix
for PR 13301.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.
2011-10-19 00:32:25 +00:00
gdbadmin
01b701aae6
*** empty log message ***
2011-10-19 00:00:32 +00:00
Alan Modra
f33e68fc7e
daily update
2011-10-18 23:00:06 +00:00