Alan Modra [Tue, 14 Dec 2010 23:00:08 +0000 (23:00 +0000)]
daily update
Ralf Wildenhues [Tue, 14 Dec 2010 21:33:26 +0000 (21:33 +0000)]
gold: fix race in FileRead::~View.
gold/:
* fileread.cc (file_counts_lock, file_counts_initialize_lock)
(total_mapped_bytes, current_mapped_bytes, maximum_mapped_bytes):
Move definition before File_read::View member definitions.
(File_read::View::~View): Initialize and hold lock before
updating current_mapped_bytes.
Kevin Buettner [Tue, 14 Dec 2010 21:07:50 +0000 (21:07 +0000)]
* mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
than unsigned, values in registers.
Ralf Wildenhues [Tue, 14 Dec 2010 19:03:30 +0000 (19:03 +0000)]
Fix typos in gold.
gold/:
* dwarf_reader.cc: Remove outdated comment.
* gold-threads.cc: Fix typo in error message.
* archive.cc: Fix typos in comments.
* archive.h: Likewise.
* arm-reloc-property.cc: Likewise.
* arm-reloc-property.h: Likewise.
* arm-reloc.def: Likewise.
* arm.cc: Likewise.
* attributes.h: Likewise.
* cref.cc: Likewise.
* ehframe.cc: Likewise.
* fileread.h: Likewise.
* gold.h: Likewise.
* i386.cc: Likewise.
* icf.cc: Likewise.
* incremental.h: Likewise.
* int_encoding.cc: Likewise.
* layout.h: Likewise.
* main.cc: Likewise.
* merge.h: Likewise.
* object.cc: Likewise.
* object.h: Likewise.
* options.cc: Likewise.
* readsyms.cc: Likewise.
* reduced_debug_output.cc: Likewise.
* reloc.cc: Likewise.
* script-sections.cc: Likewise.
* sparc.cc: Likewise.
* symtab.h: Likewise.
* target-reloc.h: Likewise.
* target.cc: Likewise.
* target.h: Likewise.
* timer.cc: Likewise.
* timer.h: Likewise.
* x86_64.cc: Likewise.
H.J. Lu [Tue, 14 Dec 2010 14:50:42 +0000 (14:50 +0000)]
Move gdb ChangeLog entry to gdb/ChangeLog.
Ken Werner [Tue, 14 Dec 2010 10:23:41 +0000 (10:23 +0000)]
gdb:
* valops.c (value_one): Use get_array_bounds to compute the number
of array elements instead of dividing the length of the array by the
length of the element types.
* valarith.c (value_complement, value_neg): Likewise.
Joel Brobecker [Tue, 14 Dec 2010 07:17:15 +0000 (07:17 +0000)]
build failure on IRIX when building with Python support.
This is a nasty interaction between Python and GDB. Basically,
Python causes some macros to be unilaterally defined in order
to turns some features on:
/* Define to activate features from IEEE Stds 1003.1-2001 */
#define _POSIX_C_SOURCE 200112L
/* Define to the level of X/Open that your system supports */
#define _XOPEN_SOURCE 600
But the problem is that they turn off defines provided by some
system headers on which we depend. Namely:
* sys/siginfo.h:
#if _SGIAPI
#define siginfo __siginfo
#endif
* sys/ucontext.h:
#if _SGIAPI && !defined(__SGI_NOUCONTEXT_COMPAT)
[...]
#define fp_r __fp_r
[...]
#define fp_csr __fp_csr
[...]
#endif
The important macro here is _SGIAPI, defined as follow in standards.h:
#define _SGIAPI ((defined(_SGI_SOURCE) && \
_NO_POSIX && _NO_XOPEN4 && _NO_XOPEN5) || \
(_ANSIMODE && _NO_POSIX && _NO_XOPEN4 && _NO_XOPEN5))
If one builds GDB without Python, then _SGIAPI is true, and all is fine.
But building with Python causes both _POSIX_C_SOURCE and _XOPEN_SOURCE
to trip all the _NO_[...] tests (_NO_POSIX, _NO_XOPEN4, _NO_XOPEN5).
And so we get build failures because we try to use undefined types, or
non-existent component names inside the regset structure.
The latter problem is observed only within irix5-nat.c, which means
that it is specific to IRIX. So it's easy to write the code in a way
that it does not require the macros (just use the real component names,
rather than relying on the macros to do the translation).
The former, on the other hand, is a little trickier, because the problem
occurs inside a generic unit (procfs.c). The solution I chose was to
adjust the configure script to add -Dsiginfo=__siginfo to the CPPFLAGS
if building with python using GCC on IRIX.
We hadn't seen this sort of issue up to now because the affect units
have not been dependent on the python includes up to now. Recent changes
have made them indirectly dependent on Python, thus triggering the issues.
gdb/ChangeLog:
* irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
and __fp_scr respectively throughout.
* configure.ac: Compile with -Dsiginfo=__siginfo if building with
Python using GCC on IRIX.
* configure: Regenerate.
gdbadmin [Tue, 14 Dec 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 13 Dec 2010 23:00:06 +0000 (23:00 +0000)]
daily update
Kevin Buettner [Mon, 13 Dec 2010 15:45:55 +0000 (15:45 +0000)]
* solib-svr4.c (enable_break): Don't attempt to place breakpoints,
when attaching, on the names in bkpt_names: _start, __start, and
main.
Stan Shebs [Mon, 13 Dec 2010 05:29:32 +0000 (05:29 +0000)]
2010-12-12 Stan Shebs <stan@codesourcery.com>
* value.c (value_of_internalvar): Add case for trace state
variables.
* gdb.trace/tsv.exp: Test print command on trace state variables.
Alan Modra [Mon, 13 Dec 2010 01:06:35 +0000 (01:06 +0000)]
* ldlang.c (load_symbols): Correct last change.
Alan Modra [Mon, 13 Dec 2010 01:06:16 +0000 (01:06 +0000)]
* aoutx.h (aout_link_check_ar_symbols): Formatting.
* cofflink.c (coff_link_check_ar_symbols): Likewise.
* elflink.c (elf_link_add_archive_symbols): Likewise.
* pdp11.c (aout_link_check_ar_symbols): Likewise.
* xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
xcoff_link_check_dynamic_ar_symbols): Likewise.
* aoutx.h (aout_link_check_archive_element): Simplify code dealing
with add_archive_element substitute BFD.
* cofflink.c (coff_link_check_archive_element): Likewise.
* ecoff.c (ecoff_link_check_archive_element): Likewise.
(ecoff_link_add_archive_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_archive_element): Likewise.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
* xcofflink.c (xcoff_link_check_archive_element): Likewise.
* aoutx.h (aout_link_check_archive_element): Free symbols from old
bfd if !keep_memory.
* cofflink.c (coff_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_archive_element): Likewise.
* xcofflink.c (xcoff_link_check_archive_element): Likewise.
gdbadmin [Mon, 13 Dec 2010 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 12 Dec 2010 23:50:47 +0000 (23:50 +0000)]
* plugin.c (bfd_plugin_mkobject): Delete.
(plugin_vec): Use bfd_false instead.
Alan Modra [Sun, 12 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Doug Evans [Sun, 12 Dec 2010 19:19:27 +0000 (19:19 +0000)]
* dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
(dwarf2_per_cu_quick_data): Move definition down to "quick functions"
section. Delete members lines full_names. Rename read_lines to
no_file_data.
(quick_file_names): New struct.
(hash_file_name_entry, eq_file_name_entry): New functions.
(delete_file_name_entry, create_quick_file_names_table): New functions.
(dwarf2_read_index): Initialize quick_file_names_table.
(dw2_get_file_names): Renamed from dw2_require_line_header.
Return pointer to quick_file_names entry. All callers updated.
(dw2_get_real_path): Renamed from dw2_require_full_path.
Replace per_cu arg with pointer to quick_file_names entry.
All callers updated.
(dw2_free_cached_file_names): New function.
(dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
(dwarf2_initialize_objfile): Initialize quick_file_names_table in
the OBJF_READNOW case.
(dwarf2_free_objfile): Rewrite freeing of quick file names tables.
Mark Kettenis [Sun, 12 Dec 2010 19:06:21 +0000 (19:06 +0000)]
Fix mail addres in ChangeLog.
Mark Kettenis [Sun, 12 Dec 2010 18:23:25 +0000 (18:23 +0000)]
* mips64obsd-tdep.c (floatformats_mips64_quad): New define.
(mips64obsd_init_abi): Set long_double_bit and long_double_format.
Mark Kettenis [Sun, 12 Dec 2010 17:41:19 +0000 (17:41 +0000)]
* sparc-tdep.c: Fix typo in comment.
H.J. Lu [Sun, 12 Dec 2010 15:29:31 +0000 (15:29 +0000)]
Fix typos in elfedit documentation.
2010-12-12 Peter Breitenlohner <peb@mppmu.mpg.de>
PR binutils/12306
* doc/binutils.texi: Fix typos in elfedit documentation.
H.J. Lu [Sun, 12 Dec 2010 14:52:27 +0000 (14:52 +0000)]
Optimize for add_archive_element.
bfd/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
ld/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (load_symbols): Optimize for add_archive_element.
H.J. Lu [Sun, 12 Dec 2010 14:49:25 +0000 (14:49 +0000)]
Mark .gnu.lto_* sections with SHF_EXCLUDE.
bfd/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (special_sections_g): Add ".gnu.lto_".
gas/testsuite/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/elf.exp: Run section9.
* gas/elf/section9.d: New.
* gas/elf/section9.s: Likewise.
gdbadmin [Sun, 12 Dec 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 11 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Alan Modra [Sat, 11 Dec 2010 12:58:36 +0000 (12:58 +0000)]
* ld-elfvers/vers25a.dsym: Really include _? in match.
Richard Sandiford [Sat, 11 Dec 2010 10:48:55 +0000 (10:48 +0000)]
opcodes/
2010-12-03 Mingming Sun <mingm.sun@gmail.com>
* mips-opc.c: (mips_builtin_opcodes): Add loongson3a mul/div and
fixed point instructions.
gas/testsuite/
2010-12-03 Mingming Sun <mingm.sun@gmail.com>
* gas/mips/loongson-3a.s, gas/mips/loongson-3a.d: New test.
* gas/mips/mips.exp: Run it.
gdbadmin [Sat, 11 Dec 2010 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***
Alan Modra [Fri, 10 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Doug Evans [Fri, 10 Dec 2010 22:00:00 +0000 (22:00 +0000)]
* dwarf2read.c: Whitespace cleanup, plus comment additions.
No code changes.
Tom Tromey [Fri, 10 Dec 2010 20:33:44 +0000 (20:33 +0000)]
* NEWS: Document exception-handling change.
Ian Lance Taylor [Fri, 10 Dec 2010 14:50:10 +0000 (14:50 +0000)]
PR bootstrap/46819
* configure.ac: For --disable-libgcj clear libgcj_saved.
* configure: Rebuild.
Maciej W. Rozycki [Fri, 10 Dec 2010 14:25:05 +0000 (14:25 +0000)]
* config/tc-mips.h (TC_ADDRESS_BYTES): New macro.
(mips_address_bytes): New prototype.
* config/tc-mips.c (mips_address_bytes): New function.
Paolo Bonzini [Fri, 10 Dec 2010 12:09:34 +0000 (12:09 +0000)]
2010-12-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46540
* configure.ac: Add --disable-libquadmath and
--disable-libquadmath-support.
Tristan Gingold [Fri, 10 Dec 2010 09:10:49 +0000 (09:10 +0000)]
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
Alan Modra [Fri, 10 Dec 2010 08:51:47 +0000 (08:51 +0000)]
* binemul.h (do_ar_emul_append): Declare.
* binemul.c (any_ok): New function.
(do_ar_emul_append): Rename from do_ar_emul_default_append. Make
global, add check arg. Adjust callers.
(ar_emul_default_replace): Tidy.
* configure.tgt (powerpc-*-aix[5-9]*,rs6000-*-aix[5-9]*): Use
bin_aix_emulation.
* emul_aix.c (bin_aix5_emulation, ar_emul_aix_internal): Delete.
(ar_emul_aix5_append, ar_emul_aix5_replace): Delete.
(check_aix): New function.
(ar_emul_aix_append, ar_emul_aix_replace): Rewrite.
Mike Frysinger [Fri, 10 Dec 2010 06:08:11 +0000 (06:08 +0000)]
ld: elfvers tests: support symbol prefixed targets
The symbol versioning tests mix C-visible symbols and linker-visible
symbols in order to verify .symver behavior. This works for most
people, but fail for targets that have a symbol prefix. So add a
helper file with macros that expand gcc's __USER_LABEL_PREFIX__ as
necessary and convert all .symver users over to it.
Now that the tests are usable on prefixed targets, update the tests
to take into account an optional leading underscore.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Alan Modra [Fri, 10 Dec 2010 01:03:13 +0000 (01:03 +0000)]
* config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
Add aix5coff64_vec to powerpc ELF entries.
gdbadmin [Fri, 10 Dec 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Maciej W. Rozycki [Thu, 9 Dec 2010 23:59:12 +0000 (23:59 +0000)]
* config/tc-mips.c (mips_ip): Remove dead format specifier code.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:57:22 +0000 (23:57 +0000)]
gas/
* config/tc-mips.c (file_ase_mips16): Adjust comment.
(append_insn): Update file_ase_mips16.
(mips_after_parse_args): Don't set file_ase_mips16 here.
gas/testsuite/
* gas/mips/elf_ase_mips16.d: Update test for new MIPS16 ASE flag
semantics.
* gas/mips/elf_ase_mips16-2.d: New test.
* gas/mips/nop.s: Source for the new test.
* gas/mips/mips.exp: Run the new test.
binutils/testsuite/
* lib/binutils-common.exp (regexp_diff): Implement inverse
matching, requested by `!'.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:46:06 +0000 (23:46 +0000)]
* config/tc-mips.c (macro)
<M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT, M_MSGWAIT_T>: Remove
dedicated return points.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:43:32 +0000 (23:43 +0000)]
* config/tc-mips.c (macro) <M_DEXT, M_DINS>: Correct types used
for pos and size.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:39:46 +0000 (23:39 +0000)]
* gas/mips/jal-svr4pic.d: Also use wildcard address matching in
relocations.
* gas/mips/mips1@jal-svr4pic.d: Likewise.
* gas/mips/jal-svr4pic-noreorder.d: Likewise.
* gas/mips/mips1@jal-svr4pic-noreorder.d: Likewise.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:33:24 +0000 (23:33 +0000)]
gas/
* config/tc-mips.c (macro) <ld_st>: Don't load a zero into an
auxiliary register when using a signed 16-bit constant offset.
gas/testsuite/
* gas/mips/ldstla-32.d: Update according to a 16-bit constant
offset optimization.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:21:51 +0000 (23:21 +0000)]
* config/tc-mips.c (mips_ip): Remove lastregno's
preinitialization.
Cary Coutant [Thu, 9 Dec 2010 23:19:50 +0000 (23:19 +0000)]
* layout.cc (Layout::layout_gnu_stack): Add warnings for executable
stack.
* layout.h (Layout::layout_gnu_stack): Add pointer to Object
parameter; change all callers.
* object.cc (Sized_relobj::do_layout): Adjust call to layout_gnu_stack.
* options.h (warn_execstack): New option.
Maciej W. Rozycki [Thu, 9 Dec 2010 23:19:22 +0000 (23:19 +0000)]
* config/tc-mips.c (mips_ip) <'('>: Don't let '4', '5' or '-'
as a base register specifier.
Alan Modra [Thu, 9 Dec 2010 23:00:08 +0000 (23:00 +0000)]
daily update
Maciej W. Rozycki [Thu, 9 Dec 2010 22:56:46 +0000 (22:56 +0000)]
* config/tc-mips.c (macro) <M_S_DOB>: Fix the placement of code.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:52:54 +0000 (22:52 +0000)]
* config/tc-mips.c (mips_ip) <'u'>: Report the value of the LUI
argument complained about; reword the message.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:45:13 +0000 (22:45 +0000)]
* config/tc-mips.c (macro)
<M_BGTUL_I, M_BGTU_I, M_BLEUL_I, M_BLEU_I>: Fix the constant
used to compare against for the always-false/true case.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:29:18 +0000 (22:29 +0000)]
* config/tc-mips.c (macro): Remove a trailing 0 from NOP
requests.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:17:27 +0000 (22:17 +0000)]
* config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register
numbers.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:09:40 +0000 (22:09 +0000)]
* config/tc-mips.c (macro): Replace 0 with ZERO in macro_build
and move_register calls referring to $0.
Maciej W. Rozycki [Thu, 9 Dec 2010 22:04:43 +0000 (22:04 +0000)]
gas/
* config/tc-mips.c (macro, mips_ip): Correct message
capitalization.
gas/testsuite/
* gas/mips/at-2.l: Adjust according to message capitalization
fixes.
* gas/mips/illegal.l: Likewise.
* gas/mips/jalr.l: Likewise.
* gas/mips/octeon-ill.l: Likewise.
* gas/mips/tls-ill.l: Likewise.
Marc Khouzam [Thu, 9 Dec 2010 20:41:54 +0000 (20:41 +0000)]
* mi/mi-parse.c (mi_parse): Wrong error message.
Arnold Metselaar [Thu, 9 Dec 2010 20:02:07 +0000 (20:02 +0000)]
* config/tc-z80.c (md_apply_fix): Rename var to fix shadow warning.
Doug Evans [Thu, 9 Dec 2010 19:52:23 +0000 (19:52 +0000)]
* symfile.h (quick_symbol_functions): Clarify usage of
map_symbol_filenames.
Tom Tromey [Thu, 9 Dec 2010 19:23:49 +0000 (19:23 +0000)]
gdb
* mi/mi-parse.h (mi_parse): Update.
* mi/mi-parse.c (mi_parse_cleanup): New function.
(mi_parse): Add 'token' argument. Throw exception on error.
* mi/mi-main.c (mi_print_exception): New function.
(mi_execute_command): Use mi_print_exception. Catch exceptions
from mi_parse.
gdb/testsuite
* gdb.base/interp.exp: Add regression test.
Maciej W. Rozycki [Thu, 9 Dec 2010 19:07:07 +0000 (19:07 +0000)]
* config/tc-mips.c (macro_build, macro, mips_ip, md_apply_fix):
Fix formatting.
Maciej W. Rozycki [Thu, 9 Dec 2010 19:00:00 +0000 (19:00 +0000)]
* gas/mips/ldstla-32.d: Use wildcard address matching.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
Tom Tromey [Thu, 9 Dec 2010 16:09:54 +0000 (16:09 +0000)]
gdb
PR c++/9593:
* thread.c (clear_thread_inferior_resources): Call
delete_longjmp_breakpoint.
* infrun.c (handle_inferior_event): Handle exception breakpoints.
(handle_inferior_event): Likewise.
(insert_exception_resume_breakpoint): New function.
(check_exception_resume): Likewise.
* inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
* infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
(step_1): Set thread's initiating frame.
(until_next_continuation): New function.
(until_next_command): Support exception breakpoints.
(finish_command_continuation): Delete longjmp breakpoint.
(finish_forward): Support exception breakpoints.
* gdbthread.h (struct thread_info) <initiating_frame>: New field.
* breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
bp_exception_master>: New constants.
(struct bpstat_what) <is_longjmp>: New field.
(set_longjmp_breakpoint): Update.
* breakpoint.c (create_exception_master_breakpoint): New function.
(update_breakpoints_after_exec): Handle bp_exception_master. Call
create_exception_master_breakpoint.
(print_it_typical): Handle bp_exception_master, bp_exception.
(bpstat_stop_status): Handle bp_exception_master.
(bpstat_what): Handle bp_exception_master, bp_exception,
bp_exception_resume.
(bptype_string): Likewise.
(print_one_breakpoint_location): Likewise.
(allocate_bp_location): Likewise.
(set_longjmp_breakpoint): Handle exception breakpoints. Change
interface.
(delete_longjmp_breakpoint): Handle exception breakpoints.
(mention): Likewise.
(struct until_break_command_continuation_args) <thread_num>: New
field.
(until_break_command_continuation): Call
delete_longjmp_breakpoint.
(until_break_command): Support exception breakpoints.
(delete_command): Likewise.
(breakpoint_re_set_one): Likewise.
(breakpoint_re_set): Likewise.
gdb/testuite
* gdb.java/jnpe.java: New file.
* gdb.java/jnpe.exp: New file.
* gdb.cp/nextoverthrow.exp: New file.
* gdb.cp/nextoverthrow.cc: New file.
Mike Frysinger [Thu, 9 Dec 2010 09:03:18 +0000 (09:03 +0000)]
bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore
This seems to cover a few random targets as well as --enable-targets=all.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdbadmin [Thu, 9 Dec 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 8 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Doug Evans [Wed, 8 Dec 2010 21:35:59 +0000 (21:35 +0000)]
* gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
Doug Evans [Wed, 8 Dec 2010 21:33:20 +0000 (21:33 +0000)]
* gdbtypes.c (check_typedef): Tweak comment.
Doug Evans [Wed, 8 Dec 2010 19:03:35 +0000 (19:03 +0000)]
PR symtab/12302
* dwarf2read.c (struct psymtab_cu_index_map): New struct.
(hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
(struct addrmap_index_data): New struct.
(add_address_entry): Remove arg `pst', new args `start', `end'.
(add_address_entry_worker, write_address_map): New functions.
(write_psymtabs_to_index): Address table generation moved to
write_address_map. Build a table mapping psymtab to CU index
to pass to it.
Doug Evans [Wed, 8 Dec 2010 18:26:40 +0000 (18:26 +0000)]
* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
name to perror.
Doug Evans [Wed, 8 Dec 2010 18:04:08 +0000 (18:04 +0000)]
* symfile.h (quick_symbol_functions): Clarify usage of
expand_symtabs_with_filename.
* dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
comp units, ignore type units.
Doug Evans [Wed, 8 Dec 2010 17:31:52 +0000 (17:31 +0000)]
* dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
DJ Delorie [Wed, 8 Dec 2010 16:24:43 +0000 (16:24 +0000)]
merge from gcc
Doug Kwan [Wed, 8 Dec 2010 05:18:54 +0000 (05:18 +0000)]
2010-12-07 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::Scan::get_reference_flags): Treat R_ARM_PREL31
like function call relocations.
Alan Modra [Wed, 8 Dec 2010 05:05:30 +0000 (05:05 +0000)]
* ar.c: Formatting.
(usage): Correct help strings.
(decode_options): Correct getopt_long short options. Remove
duplicate non-handled option message.
(main): Don't handle -M specially.
Alan Modra [Wed, 8 Dec 2010 05:00:14 +0000 (05:00 +0000)]
* ar.c (long_options): Add target.
(decode_options): Handle the --target option.
(open_inarch): Check for plugin's target, default to --target
(replace_members): Use generic `target'.
Alan Modra [Wed, 8 Dec 2010 04:59:36 +0000 (04:59 +0000)]
* ar.c (operation): New global variable.
(show_version): Likewise.
(show_help): Likewise.
(long_options): Likewise.
(usage): Fix help string argument order.
(decode_options): New.
(ranlib_main): Use getopt_long.
(main): Use decode_options.
Alan Modra [Wed, 8 Dec 2010 04:58:23 +0000 (04:58 +0000)]
* ar.c (main): Split ranlib path.
(ranlib_usage): New
(ranlib_main): New
gdbadmin [Wed, 8 Dec 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 7 Dec 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Ian Lance Taylor [Tue, 7 Dec 2010 21:20:22 +0000 (21:20 +0000)]
* configure.ac: Always set default for poststage1_ldflags to
-static-libstdc++ -static-libgcc.
Doug Evans [Tue, 7 Dec 2010 17:30:52 +0000 (17:30 +0000)]
* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
gdb_realpath.
Doug Evans [Tue, 7 Dec 2010 17:26:06 +0000 (17:26 +0000)]
PR python/12227
* NEWS: Mention -data-directory.
* main.c (captured_main): Recognize -data-directory.
doc/
* gdb.texinfo (Mode Options): Document -data-directory.
(Data Files): Add reference to -data-directory.
testsuite/
* gdb.base/catch-syscall.exp (do_syscall_tests): Remove setting
of data-directory.
* lib/gdb-python.exp (gdb_check_python_config): Delete, all callers
updated.
* lib/gdb.exp (INTERNAL_GDBFLAGS): Add -data-directory.
Ian Lance Taylor [Tue, 7 Dec 2010 15:47:47 +0000 (15:47 +0000)]
* archive.cc (Archive::get_elf_object_for_member): Permit
punconfigured to be NULL.
(Archive::read_symbols): Pass NULL to get_elf_object_for_member.
(Archive::include_member): Pass NULL to get_elf_object_for_member
if we searched for the archive and this is the first included
object.
gdbadmin [Tue, 7 Dec 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Mon, 6 Dec 2010 23:35:13 +0000 (23:35 +0000)]
Add -flto and -flto-partition=.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
* lexsup.c (ld_options): Add -flto and -flto-partition= for
GCC LTO option compatibility.
Alan Modra [Mon, 6 Dec 2010 23:00:04 +0000 (23:00 +0000)]
daily update
H.J. Lu [Mon, 6 Dec 2010 21:47:43 +0000 (21:47 +0000)]
Don't add the trailing `\n' for LDPL_ERROR.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12288
* plugin.c (message): Don't add the trailing `\n' for
LDPL_ERROR.
H.J. Lu [Mon, 6 Dec 2010 20:59:20 +0000 (20:59 +0000)]
Remove the trailing `\n' from TV_MESSAGE.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12288
* testplug.c: Remove the trailing `\n' from TV_MESSAGE.
H.J. Lu [Mon, 6 Dec 2010 20:25:49 +0000 (20:25 +0000)]
Use putchar for the trailing `\n' in plugin message.
bfd/
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12288
* plugin.c (message): Add putchar for the trailing `\n'.
ld/
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12288
* plugin.c (message): Use putchar for the trailing `\n'.
Marc Khouzam [Mon, 6 Dec 2010 14:16:43 +0000 (14:16 +0000)]
2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-parse.c (mi_parse): Missing else.
Alexandre Oliva [Mon, 6 Dec 2010 13:00:26 +0000 (13:00 +0000)]
Check in for PR other/46020 was meant for PR other/46026.
H.J. Lu [Mon, 6 Dec 2010 12:44:51 +0000 (12:44 +0000)]
Call xatexit with plugin_call_cleanup.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12289
* ldmain.c (main): Don't call plugin_call_cleanup.
* plugin.c (plugin_call_cleanup): Make it static.
(message): Don't call plugin_call_cleanup.
(plugin_load_plugins): Call xatexit with plugin_call_cleanup.
H.J. Lu [Mon, 6 Dec 2010 05:38:11 +0000 (05:38 +0000)]
Call plugin_call_cleanup on plugin fatal error.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12289
* plugin.c (message): Call plugin_call_cleanup on fatal
error.
H.J. Lu [Mon, 6 Dec 2010 02:28:31 +0000 (02:28 +0000)]
Add a space after `:' in plugin error message.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
* plugin.c (message): Add a space after `:' in error message.
Hans-Peter Nilsson [Mon, 6 Dec 2010 01:55:25 +0000 (01:55 +0000)]
PR libffi/46792
* configure.ac (cris-*-elf, crisv32-*-elf): Disable target-libffi.
* configure: Regenerate.
Dave Korn [Mon, 6 Dec 2010 01:40:20 +0000 (01:40 +0000)]
PR target/40125
PR lto/46695
* lthostflags.m4: New file.
(ACX_LT_HOST_FLAGS): Define.
H.J. Lu [Mon, 6 Dec 2010 00:59:14 +0000 (00:59 +0000)]
Add `%P' on error in plugin message.
H.J. Lu [Mon, 6 Dec 2010 00:53:20 +0000 (00:53 +0000)]
Add the trailing `\n' to einfo in plugin.c.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
* plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
to einfo.
(get_symbols): Likewise.
(plugin_notice): Likewise.
(plugin_multiple_definition): Likewise.
H.J. Lu [Mon, 6 Dec 2010 00:51:14 +0000 (00:51 +0000)]
Mention PR ld/12277 in ChangeLog.