Alan Modra
6d8bf25d7e
* ldlang.h (lang_output_section_statement_type): Rename
...
"section_relative_symbol" field to "update_dot".
* ldlang.c: Update all uses.
(strip_excluded_output_sections): Don't test update_dot_tree here..
(lang_leave_overlay): ..set update_dot here.
2012-05-30 04:19:11 +00:00
Thiago Jung Bauermann
ebd86fb568
* source.c (openp): Expand tilde in path entries.
2012-05-30 03:42:21 +00:00
gdbadmin
b887615911
*** empty log message ***
2012-05-30 00:00:33 +00:00
Alan Modra
5189aad2e6
daily update
2012-05-30 00:00:03 +00:00
Doug Evans
98cc87bdf3
* buildsym.c (block_compar): Fix comment.
...
(end_symtab): Fix and clarify some comments.
2012-05-29 20:23:17 +00:00
Doug Evans
0a0edcd5c2
* stabsread.h (cleanup_undefined_stabs_types): Renamed from
...
cleanup_undefined_types.
* stabsread.c (cleanup_undefined_stabs_types): Ditto.
All callers updated.
2012-05-29 18:54:50 +00:00
Roland McGrath
d416e51da0
gas/
...
* read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
(read_a_source_file) [HANDLE_BUNDLE]: Reset it.
[HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
pairs.
gas/testsuite/
* gas/i386/bundle-bad.s: Remove nested .bundle_lock case.
* gas/i386/bundle-bad.l: Remove expected error line.
* gas/i386/bundle-lock.s: Add nested .bundle_lock case.
* gas/i386/bundle-lock.d: Update expectations.
2012-05-29 16:32:11 +00:00
Joseph Myers
acf89cab13
Resync config/ from GCC.
2012-05-29 15:58:15 +00:00
Nick Clifton
d5531c88ee
* ld-tic6x/shlib-1b.rd: Update expected readelf output.
...
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-1.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.
2012-05-29 15:48:18 +00:00
Tom Tromey
6f0c7050fc
bfd/
...
* opncls.c (bfd_fopen): Always close fd on failure.
(bfd_fdopenr): Likewise.
gdb/
* symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
fails.
* solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
* exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
fails.
* dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
fails.
2012-05-29 14:23:40 +00:00
Tristan Gingold
ec95993ca4
2012-05-29 Tristan Gingold <gingold@adacore.com>
...
* solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
(struct darwin_info): ... New struct.
(solib_darwin_pspace_data): New variable.
(darwin_pspace_data_cleanup): New function.
(get_darwin_info): Likewise.
(darwin_dyld_version_ok, darwin_load_image_infos)
(darwin_solib_get_all_image_info_addr_at_init)
(darwin_solib_read_all_image_info_addr): Add info argument.
Adjust code.
(darwin_current_sos): Use per pspace structure.
(darwin_solib_create_inferior_hook): Likewise.
(darwin_clear_solib): Likewise.
(_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2012-05-29 12:59:53 +00:00
gdbadmin
8bb3cf8bac
*** empty log message ***
2012-05-29 00:00:04 +00:00
Alan Modra
431719081d
daily update
2012-05-29 00:00:03 +00:00
Pedro Alves
ae25568b69
2012-05-28 Pedro Alves <palves@redhat.com>
...
* infrun.c (wait_for_inferior): Move ecss and ecs locals to the
block that uses them. Clear ecss before handling each event.
2012-05-28 20:43:26 +00:00
Jan Kratochvil
0c5bf5a97d
gdb/
...
* solib-svr4.c (svr4_current_sos): New comment on
svr4_current_sos_via_xfer_libraries fall back.
gdb/gdbserver/
* linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
gdb/testsuite/
* gdb.server/solib-list-lib.c: New file.
* gdb.server/solib-list-main.c: New file.
* gdb.server/solib-list.exp: New file.
2012-05-28 20:37:29 +00:00
Nick Clifton
7bfd842d05
* read.c (read_symbol_name): New function. Reads a symbol names.
...
Allows escape codes in names.
(s_comm_internal): Use read_symbol_name.
(s_globl, s_lsym, s_set, s_weakref): Likewise.
* doc/as.texinfo: Document support for multibyte characters in
symbol names.
* gas/elf/syms.s: New test - checks the generation of multibyte
symbol names.
* gas/elf/syms.d: New file - expected readelf output.
* gas/elf/elf.exp: Add syms.
* readelf.c (print_symbol): Display multibyte characters in symbol
names.
(process_section_headers): Use print_symbol.
* ld-ifunc/ifunc-13a-i386.s: Fix use of .global directive.
* ld-ifunc/ifunc-15a-i385.s: Likewise.
2012-05-28 14:20:19 +00:00
Alan Modra
e54e67a9e9
PR ld/14170
...
* ld-elf/pr14170a.s: Put foo, bar address in .data.
* ld-elf/elf.exp: Don't run pr14170 test on hppa64-hpux. Ignore
tic6x warnings.
2012-05-28 04:08:53 +00:00
gdbadmin
d55f95fab0
*** empty log message ***
2012-05-28 00:00:32 +00:00
Alan Modra
55a189b0c9
daily update
2012-05-28 00:00:03 +00:00
H.J. Lu
de687b11fb
Add a test for PR ld/14170
...
PR ld/14170
* ld-elf/elf.exp: Add a test for PR ld/14170.
* ld-elf/pr14170a.s: New file.
* ld-elf/pr14170b.s: Likewise.
* ld-elf/pr14170b.s: Likewise.
2012-05-27 14:45:41 +00:00
Alan Modra
f5eda4731e
PR ld/14170
...
* elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
a dynamic library finds a new instance with non-default
visibility in a regular object, correctly handle symbols
already on the undefs list and undo dynamic symbol state when
the new symbol is hidden or internal.
2012-05-27 13:55:45 +00:00
gdbadmin
39dc1b2e6a
*** empty log message ***
2012-05-27 00:00:32 +00:00
Alan Modra
887b61ae53
daily update
2012-05-27 00:00:03 +00:00
Alan Modra
f05eb3b73c
ld/
...
* ldlex.h (enum option_values): Move from..
* lexsup.c: ..here.
* emultempl/ppc32elf.em: Include ldlex.h.
(PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
--traditional-format.
* emultempl/ppc64elf.em: Likewise.
ld/testsuite/
* ld-srec/srec.exp: Remove powerpc64 flag setting.
2012-05-26 11:13:20 +00:00
Alan Modra
e7c7fd1c22
daily update
2012-05-26 00:00:04 +00:00
gdbadmin
6af28bcef9
*** empty log message ***
2012-05-26 00:00:02 +00:00
Sriraman Tallam
8cc69fb6b5
2012-05-25 Sriraman Tallam <tmsriram@google.com>
...
* symtab.cc (Symbol_table::define_special_symbol):
Initialize *poldsym to prevent uninitialized variable errors.
2012-05-25 22:53:52 +00:00
Maciej W. Rozycki
4196f32530
* gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
...
for 'set print symbol' change.
2012-05-25 21:54:16 +00:00
H.J. Lu
bbf96e4eef
Don't use dynamic_sec_flags on PLT .eh_frame section
...
* elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
dynamic_sec_flags to create PLT .eh_frame section.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
2012-05-25 16:20:15 +00:00
Alan Modra
9cf8b46e48
PR ld/13909
...
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
multiple .eh_frame sections attached to bfd.
2012-05-25 01:13:59 +00:00
Alan Modra
9a2a56cc5a
PR ld/13909
...
* elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
(_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
* elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
* elflink.c (bfd_elf_size_dynamic_sections): Let the backend
size dynamic sections before stripping eh_frame_hdr.
(bfd_elf_gc_sections): Handle multiple .eh_frame sections.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
if no other .eh_frame sections exist.
* elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
* elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
or alloc plt_eh_frame here..
(elf_i386_size_dynamic_sections): ..do it here instead. Don't
specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
(elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
before writing plt offset.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
or alloc plt_eh_frame here..
(elf_x86_64_size_dynamic_sections): ..do it here instead.
(elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
before writing plt offset.
2012-05-25 01:12:20 +00:00
Alan Modra
3161ca4f50
daily update
2012-05-25 00:00:04 +00:00
gdbadmin
696bec38c6
*** empty log message ***
2012-05-25 00:00:02 +00:00
Jan Kratochvil
bfb05775e6
gdb/
...
* psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
it as a fallback for TYPE_IS_OPAQUE.
* symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
symbols for lookup_symbol.
gdb/testsuite/
* gdb.dwarf2/dw2-icc-opaque.S: Add debug_info_seg3 and
.debug_abbrev_seg3.
2012-05-24 22:14:36 +00:00
Jan Kratochvil
685b110556
gdb/
...
PR symtab/13277: Resolving opaque structures in ICC generated binaries.
* dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
(producer_is_gxx_lt_4_6): Move the checking and caching to...
(check_producer): ... this new function, which also checks for ICC
and caches the result.
(producer_is_icc): New function.
(read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
producer was ICC.
gdb/testsuite/
PR symtab/13277: Resolving opaque structures in ICC generated binaries.
* gdb.dwarf2/dw2-icc-opaque.S: New file.
* gdb.dwarf2/dw2-icc-opaque.exp: New file.
2012-05-24 22:09:21 +00:00
Pedro Alves
2c1fa544e1
2012-05-24 Pedro Alves <palves@redhat.com>
...
* sim-signal.h (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-signal.c (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-reason.c (sim_stop_reason): Adjust to rename.
2012-05-24 17:38:54 +00:00
Pedro Alves
22203bbfb7
2012-05-24 Pedro Alves <palves@redhat.com>
...
PR gdb/7205
* arch-utils.c (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this. Add comment.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this. Add comment.
* arch-utils.h (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this.
* corelow.c (core_open): Adjust to naming change. Replace comment.
* gdbarch.sh (gdb_signal_from_host): Rename to ...
(gdb_signal_from_target): ... this. Adjust to
default_gdb_signal_from_host naming change. Extend comment.
(gdb_signal_to_host): Rename to ...
(gdb_signal_to_target): ... this. Adjust to
default_gdb_signal_to_host naming change.
* gdbarch.h, gdbarch.c: Renegerate.
2012-05-24 17:03:28 +00:00
Pedro Alves
a493e3e2e4
gdb/
...
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
gdb/gdbserver/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
include/gdb/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
* gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_
throughout.
sim/arm/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/avr/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/common/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/cr16/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/d10v/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/erc32/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/m32c/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/ppc/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/rl78/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
sim/rx/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2012-05-24 16:51:47 +00:00
Pedro Alves
2ea286498f
gdb/
...
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
gdb/gdbserver/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
include/gdb/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
sim/common/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
2012-05-24 16:39:15 +00:00
Pedro Alves
b09846a918
2012-05-24 Pedro Alves <palves@redhat.com>
...
PR tui/14159
* tui/tui-hooks.c (tui_query_hook): Pre-compute the question
string, instead of reusing the va_list argument.
2012-05-24 15:54:57 +00:00
Alan Modra
16224acd5c
* gas/lns/lns-big-delta.s: Add nops.
...
* gas/lns/lns-big-delta.d: Update.
2012-05-24 15:36:33 +00:00
Tom Tromey
e77c107edd
* cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
...
Remove.
2012-05-24 14:31:01 +00:00
Alan Modra
4bbe044a20
PR ld/14158
...
* elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
size to output section alignment.
(ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
2012-05-24 06:20:52 +00:00
Doug Evans
d50bd42bda
* symtab.c (search_symbols): Formatting fixes.
...
(print_symbol_info): Formatting fixes.
2012-05-24 02:51:48 +00:00
Doug Evans
9fccedf760
* dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
...
int64_t change to leb128 API.
(read_encoded_value, decode_frame_entry_1): Ditto.
* dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
(dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
(dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
(execute_stack_op): Ditto.
* dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
(safe_read_uleb128, safe_read_sleb128): Ditto.
* dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
(dwarf2_compile_expr_to_ax): Ditto.
(locexpr_describe_location_piece): Ditto.
(disassemble_dwarf_expression): Ditto.
(locexpr_describe_location_1): Ditto.
2012-05-24 01:26:15 +00:00
Doug Evans
c81795e6d4
* leb128.h: #include stdint.h, inttypes.h.
...
(read_uleb128_to_uint64): Renamed from read_uleb128_to_ull.
Change to take a uint64_t * argument instead of unsigned long long.
(read_sleb128_to_uint64): Renamed from read_sleb128_to_ll.
Change to take an int64_t * argument instead of long long.
2012-05-24 01:18:15 +00:00
Cary Coutant
18bbc1c5f0
ld/
...
* scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
carefully. Fix typo where .rela.data.rel.ro matches
.rel.data.rel.ro.
* scripttempl/mep.sc: Likewise.
* scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
2012-05-24 01:04:53 +00:00
Cary Coutant
1be75daacf
gold/
...
* layout.cc (Layout::section_name_mapping): Add rules to handle
exact match on .data.rel.ro.local or .data.rel.ro.
(Layout::output_section_name): Check for exact matches.
2012-05-24 01:02:15 +00:00
Stan Shebs
f3e0e9604d
2012-05-23 Stan Shebs <stan@codesourcery.com>
...
Kwok Cheung Yeung <kcy@codesourcery.com>
* Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
(SUBDIR_MI_SRCS): Add mi-cmd-info.c.
(mi-cmd-info.o): New rule.
* osdata.h (info_osdata_command): New declaration.
* osdata.c (info_osdata_command): Change to non-static.
* mi/mi-cmds.h (mi_cmd_info_os): New declaration.
* mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
* mi/mi-cmd-info.c: New file.
* gdb.texinfo (Miscellaneous GDB/MI Commands): Document -info-os.
* gdb.mi/mi-info-os.exp: New file.
2012-05-24 00:33:47 +00:00
Doug Evans
71cddcc178
* symtab.c (search_symbols): Pass NULL for file_matcher to
...
expand_symtabs_matching if there are no files to match.
2012-05-24 00:23:13 +00:00