binutils-gdb.git
12 years agogdb/
Pedro Alves [Wed, 6 Jun 2012 18:10:17 +0000 (18:10 +0000)]
gdb/
2012-06-06  Pedro Alves  <palves@redhat.com>

* infrun.c (struct execution_control_state): Remove
`new_thread_event' field.
(handle_inferior_event): Simplify new threads handling; don't
resume the inferior if we find a new thread.

gdb/testsuite/
2012-06-06  Pedro Alves  <palves@redhat.com>

* gdb.threads/clone-new-thread-event.c: New file.
* gdb.threads/clone-new-thread-event.exp: New file.

12 years agogdb/
Thomas Schwinge [Wed, 6 Jun 2012 18:03:54 +0000 (18:03 +0000)]
gdb/
* NEWS: Document the deprecation of SH's 'regs' command.
* inferior.h (all_registers_info): Add function declaration.
* sh-tdep.c (sh_show_regs): Remove variable.
(sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
(sh_show_regs_command): Remove functions.
(sh_gdbarch_init): Don't set sh_show_regs.
(_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
'info all-registers'.
* sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
(sh64_show_regs): Remove functions.
* sh64-tdep.h (sh64_show_regs): Remove function declaration.

gdb/doc/
* gdb.texinfo: Document the deprecation of SH's 'regs' command.

12 years agogdb/
Jan Kratochvil [Wed, 6 Jun 2012 16:57:38 +0000 (16:57 +0000)]
gdb/
* configure.ac: Move development=true below AC_INIT.
* configure: Regenerate.

12 years agoAdd #include "config.h".
Michael Eager [Wed, 6 Jun 2012 15:05:23 +0000 (15:05 +0000)]
Add #include "config.h".

12 years agobfd/
Alan Modra [Wed, 6 Jun 2012 10:50:18 +0000 (10:50 +0000)]
bfd/
* elflink.c (elf_link_input_bfd): Provide a file symbol for
each input file with local syms, if the input lacks such.
(bfd_elf_final_link): Add a file symbol to mark end of locals
for which we can associate with input files.
(struct elf_final_link_info): Add filesym_count field.
(struct elf_outext_info): Add need_second_pass and second_pass.
(elf_link_output_extsym): Detect symbols defined in the output
file, emit them on second pass over locals.
ld/testsuite/
Update to suit added STT_FILE symbols.

12 years agogdb/testsuite/
Yao Qi [Wed, 6 Jun 2012 08:51:22 +0000 (08:51 +0000)]
gdb/testsuite/

* gdb.base/dprintf.c (main): Add extra parameter when calling
printf and fprintf.
(bar): New function.  It is a dead function, but to ensure
'malloc' is linked explicitly.

12 years agogdb/testsuite/
Yao Qi [Wed, 6 Jun 2012 08:47:04 +0000 (08:47 +0000)]
gdb/testsuite/

* gdb.base/info-proc.exp: Return if target doesn't support
'info proc'.

12 years agogdb/gdbserver/
Yao Qi [Wed, 6 Jun 2012 08:31:31 +0000 (08:31 +0000)]
gdb/gdbserver/
* ax.c (gdb_eval_agent_expr): Print `top' in hex.

12 years agogdb/doc/
Yao Qi [Wed, 6 Jun 2012 08:20:12 +0000 (08:20 +0000)]
gdb/doc/
* gdb.texinfo: Update copyright year.

12 years ago2012-06-05 Jing Yu <jingyu@google.com>
Doug Kwan [Wed, 6 Jun 2012 07:49:26 +0000 (07:49 +0000)]
2012-06-05  Jing Yu  <jingyu@google.com>

* gold.h (textdomain): Add do {} to empty while(0).
(bindtextdomain): Likewise.

12 years ago * ld-mmix/bpo-9.d: Update.
Alan Modra [Wed, 6 Jun 2012 06:12:35 +0000 (06:12 +0000)]
* ld-mmix/bpo-9.d: Update.
* ld-mmix/bpo-10.d: Update.
* ld-mmix/bpo-11.d: Update.
* ld-mmix/sec-7m.d: Update.

12 years ago * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
Stan Shebs [Wed, 6 Jun 2012 06:04:46 +0000 (06:04 +0000)]
* mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
gdb_stdout.

12 years ago*** empty log message ***
gdbadmin [Wed, 6 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 6 Jun 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Tue, 5 Jun 2012 21:22:31 +0000 (21:22 +0000)]
gdb/
* corefile.c (read_memory, read_stack, write_memory): Accept LEN
argument as ssize_t.
* gdbcore.h (read_memory, read_stack, write_memory): Likewise.
* remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
* target.c (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.
* target.h (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.

12 years agogdb/
Jan Kratochvil [Tue, 5 Jun 2012 21:18:05 +0000 (21:18 +0000)]
gdb/
* symfile-mem.c: Change gdb_static_assert to ssize_t.
(target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
* target.c (target_read_memory): Change LEN to ssize_t.
* target.h (target_read_memory): Change LEN to ssize_t.

12 years ago2012-06-05 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 5 Jun 2012 19:50:50 +0000 (19:50 +0000)]
2012-06-05  Pedro Alves  <palves@redhat.com>

PR backtrace/13866

* breakpoint.c (until_break_command): Only fetch the selected
frame after decode_line_1.

12 years agogdb/testsuite/
Jan Kratochvil [Tue, 5 Jun 2012 19:06:20 +0000 (19:06 +0000)]
gdb/testsuite/
* gdb.base/freebpcmd.exp (set lines): Check valid range of I.
(run program with breakpoint commands): XFAIl if it is not.

12 years ago2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Pedro Alves [Tue, 5 Jun 2012 15:44:03 +0000 (15:44 +0000)]
2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>

* solib-svr4.c (enable_break): Don't fallback to setting the solib
event breakpoint at _start, __start or main if a program
interpreter is not found.

12 years agoWindows-specific iterate_over_objfiles_in_search_order
Joel Brobecker [Tue, 5 Jun 2012 13:50:57 +0000 (13:50 +0000)]
Windows-specific iterate_over_objfiles_in_search_order

This patch sets the windows target to use their own version of
the iterate_over_objfiles_in_search_order gdbarch method, in
order to make global symbol searches sensitive to the current
objfile.

gdb/ChangeLog:

        * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
        Add declaration.
        * windows-tdep.c: #include "objfiles.h".
        (windows_iterate_over_objfiles_in_search_order): New function.
        * amd64-windows-tdep.c (amd64_windows_init_abi): Set
        iterate_over_objfiles_in_search_order gdbarch method to
        windows_iterate_over_objfiles_in_search_order.
        * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.

12 years agoNew "iterate_over_objfiles_in_search_order" gdbarch method.
Joel Brobecker [Tue, 5 Jun 2012 13:50:50 +0000 (13:50 +0000)]
New "iterate_over_objfiles_in_search_order" gdbarch method.

This patch introduces the "iterate_over_objfiles_in_search_order"
gdbarch method, as well as its default implementation, and converts
the areas where it will matter to using this gdbarch method.

The default method implementation is the only one installed, and
the changes should have no functional impact in terms of behavior.
This only paves the way for the architectures that will need their
own version.

gdb/ChangeLog:

        * gdbarch.sh: Add generation of
        "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
        gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
        (iterate_over_objfiles_in_search_order): New gdbarch method.
        * gdbarch.h, gdbarch.c: Regenerate.
        * objfiles.h (default_iterate_over_objfiles_in_search_order):
        Add declaration.
        * objfiles.c (default_iterate_over_objfiles_in_search_order):
        New function.
        * symtab.c (lookup_symbol_aux_objfile): New function, extracted
        out of lookup_symbol_aux_symtabs.
        (lookup_symbol_aux_symtabs): Replace extracted-out code by
        call to lookup_symbol_aux_objfile.
        (struct global_sym_lookup_data): New type.
        (lookup_symbol_global_iterator_cb): New function.
        (lookup_symbol_global): Search for symbol using
        gdbarch_iterate_over_objfiles_in_search_order and
        lookup_symbol_global_iterator_cb.
        * findvar.c (struct minsym_lookup_data): New type.
        (minsym_lookup_iterator_cb): New function.
        (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
        symbol's address via gdbarch_iterate_over_objfiles_in_search_order
        and minsym_lookup_iterator_cb.

12 years agoRevert "Search global symbols from the expression's block objfile first."
Joel Brobecker [Tue, 5 Jun 2012 13:50:40 +0000 (13:50 +0000)]
Revert "Search global symbols from the expression's block objfile first."

The search order used in this patch breaks global symbol lookups
for certain symbols when copy-relocation is used.  A slightly different
search order will be implemented later.

gdb/ChangeLog:

        Revert the following patch:
        * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
        try locating the symbol in the symbol's own objfile first, before
        extending the search to all objfiles.
        * symtab.c (lookup_symbol_aux_objfile): New function, extracted
        out of lookup_symbol_aux_symtabs.
        (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
        Replace extracted-out code by call to lookup_symbol_aux_objfile.
        Do not search EXCLUDE_OBJFILE.
        (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
        (lookup_symbol_global): Search for matches in the block's objfile
        first, before searching all other objfiles.

12 years agoMake ctxobj.exp and print-file-var.exp work on all platforms.
Joel Brobecker [Tue, 5 Jun 2012 13:50:31 +0000 (13:50 +0000)]
Make ctxobj.exp and print-file-var.exp work on all platforms.

This patch adjusts the testing strategy used in a couple of testcases
where we are trying to print the value of a global variable defined
at multiple locations.  The problem is that the actual value depends
on the platform.  So instead of hard-coding the expected value in
the testcase script, we use local variables (in the inferior) holding
the correct value, and we compare the global variable's value with
the local variable's value.

gdb/testsuite/ChangeLog:

        * gdb.base/ctxobj-f.c (GET_VERSION): Introduce local variable
        and add comment.
        * gdb.base/ctxobj-m.c (main): Rewrite, and add comment.
        * gdb.base/ctxobj.exp: Insert breakpoint in ctxobj-f.c using
        "STOP" marker.  Adjust testing strategy to make it work on
        all targets.

        * gdb.base/print-file-var-main.c (main): Rewrite using local
        variables and adjust get_version_2's return value check.
        Add small comment.
        * gdb.base/print-file-var.exp: Insert breakpoint using "STOP"
        marker.  Adjust testing strategy to make it work on all targets.

12 years agostop parsing breakpoint command if invalid keyword found
Joel Brobecker [Tue, 5 Jun 2012 13:50:13 +0000 (13:50 +0000)]
stop parsing breakpoint command if invalid keyword found

With an Ada program, trying to break on a specific Ada task, but
with the wrong capitalization of the `task' keyword, we currently
get only pieces of the "garbage" that caused the error:

    (gdb) b *rendez_vous'address TASK 2
    Garbage 2 at end of command

Pushing this a little further:

    (gdb) b *rendez_vous'address TASK Task TaSK 2
    Garbage 2 at end of command

Another interesting failure mode:

    (gdb) b *rendez_vous'address TASK if
    Argument required (expression to compute).

The parser skipped `TASK', then found the `if' keyword, and thus
started looking for a condition.

This patch fixes the problem by aborting the parsing as soon as
an invalid keyword is found.  This makes it consistent with the
case where the REST parameter is passed as NULL (where an error
is raised immediately after seeing the first invalid keyword).

It also introduces a new testcase that reproduces all above scenarios.

gdb/ChangeLog:

        * breakpoint.c (find_condition_and_thread): Stop parsing
        as soon as the first invalid keyword is found.

gdb/testsuite/ChangeLog:

        * gdb.ada/bad-task-bp-keyword: New testcase.

12 years agocopyright.py: Add gdb/CONTRIBUTE to EXCLUDE_LIST.
Joel Brobecker [Tue, 5 Jun 2012 13:29:29 +0000 (13:29 +0000)]
copyright.py: Add gdb/CONTRIBUTE to EXCLUDE_LIST.

Normally, all files should have a copyright header, but gdb/CONTRIBUTE
currently doesn't, and it adding one at the top of the file would
probably be more pollution than information.  So don't require
a copyright header for now.

gdb/ChangeLog:

        * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.

12 years agoAdd copyright header to config/djgpp/djcheck.sh.
Joel Brobecker [Tue, 5 Jun 2012 13:29:22 +0000 (13:29 +0000)]
Add copyright header to config/djgpp/djcheck.sh.

gdb/ChangeLog:

        * config/djgpp/djcheck.sh: Add copyright header.

12 years agostubs/ia64vms-stub.c: Fix copyright header.
Joel Brobecker [Tue, 5 Jun 2012 13:29:14 +0000 (13:29 +0000)]
stubs/ia64vms-stub.c: Fix copyright header.

There is an extra coma after the copyright year which tricks
gnulib's update-copyright script.

gdb/stubs/ChangeLog:

        * ia64vms-stub.c: Adjust copyright header to follow convention
        expected by gnulib's update-copyright script.

12 years agocopyright.py: Update path to gnulib import.
Joel Brobecker [Tue, 5 Jun 2012 13:29:07 +0000 (13:29 +0000)]
copyright.py: Update path to gnulib import.

The location where we store the gnulib import has changed.
This patch updates accordingly the path to gnulib's update-copyright
script.

gdb/ChangeLog:

        * copyright.py (update_files, main): Fix path to update-copyright
        script.

12 years agocopyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.
Joel Brobecker [Tue, 5 Jun 2012 13:28:59 +0000 (13:28 +0000)]
copyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.

gdb/ChangeLog:

        * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
        (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
        for which a reminder to update by hand is printed.

12 years ago * buildsym.c (make_blockvector): Add comment.
Doug Evans [Tue, 5 Jun 2012 01:17:55 +0000 (01:17 +0000)]
* buildsym.c (make_blockvector): Add comment.

12 years ago*** empty log message ***
gdbadmin [Tue, 5 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 5 Jun 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call
Cary Coutant [Mon, 4 Jun 2012 20:00:31 +0000 (20:00 +0000)]
* dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call
has_dynsym_index.

12 years ago2012-06-04 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 4 Jun 2012 16:23:57 +0000 (16:23 +0000)]
2012-06-04  Pedro Alves  <palves@redhat.com>

* arch-utils.c (default_gdb_signal_from_target): Delete.
* arch-utils.h (default_gdb_signal_from_target): Delete.
* corelow.c (core_open) <signal mapping>: Extended comment.  Check
gdbarch_gdb_signal_from_target_p.
* gdbarch.sh (gdb_signal_from_target): Make it an M method (with
predicate).
* gdbarch.h: Regenerate.
* gdbarch.c: Regenerate.

12 years ago2012-06-04 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 4 Jun 2012 16:23:16 +0000 (16:23 +0000)]
2012-06-04  Pedro Alves  <palves@redhat.com>

* gdbarch.sh (gdb_signal_from_target): Mention that the
implementation of the method must be host independent.
* gdbarch.h: Regenerate.

12 years agobfd/
Jan Kratochvil [Mon, 4 Jun 2012 14:35:25 +0000 (14:35 +0000)]
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
of target_read_memory as bfd_size_type.
* bfd-in2.h: Regenerate.
* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
argument of target_read_memory as bfd_size_type.
(_bfd_elf32_bfd_from_remote_memory): Likewise.
(_bfd_elf64_bfd_from_remote_memory): Likewise.
* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.

gdb/
* symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
parameters.
(target_read_memory_bfd): New function.
(symbol_file_add_from_memory): Use it.

12 years ago * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
Doug Evans [Mon, 4 Jun 2012 03:07:03 +0000 (03:07 +0000)]
* symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
of primary symtab.
(basic_lookup_transparent_type): Ditto.

12 years ago * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
Doug Evans [Mon, 4 Jun 2012 02:57:28 +0000 (02:57 +0000)]
* objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
(ALL_PRIMARY_SYMTABS): Use it.
(ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
* dwarf2read.c (dw2_find_symbol_file): Ditto.
* linespec.c (iterate_over_all_matching_symtabs): Ditto.
* symtab.c (lookup_symbol_aux_objfile): Ditto.
(basic_lookup_transparent_type): Ditto.

12 years agodaily update
Alan Modra [Mon, 4 Jun 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 4 Jun 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/testsuite/
Jan Kratochvil [Sun, 3 Jun 2012 17:10:28 +0000 (17:10 +0000)]
gdb/testsuite/
* gdb.base/code_elim.exp
(add-symbol-file ${testfile1} 0x100000)
(add-symbol-file ${testfile2} 0x200000): Wrap them to 'order1' and
'order2'.
(order1: add-symbol-file ${testfile1} 0x100000)
(order1: add-symbol-file ${testfile2} 0x200000)
(order2: add-symbol-file ${testfile2} 0x200000)
(order2: add-symbol-file ${testfile1} 0x100000): Add -s .data and -s
.bss as appropriate.

12 years agogdb/testsuite/
Jan Kratochvil [Sun, 3 Jun 2012 17:06:04 +0000 (17:06 +0000)]
gdb/testsuite/
* gdb.base/code_elim.exp (add-symbol-file ${testfile1} 0x100000):
Simplify it to ...
(symbol-file ${testfile1}): ... here.
(test eliminated var my_global_symbol)
(test eliminated var my_static_symbol)
(test eliminated var my_global_func, get address of main): Wrap them to
'single psymtabs' and 'single symtabs'
(get address of my_global_symbol, get address of my_static_symbol)
(get address of my_global_func, get address of main): Wrap them to
'order1' and 'order2'.

12 years ago PR binutils/13897
Alan Modra [Sun, 3 Jun 2012 04:08:07 +0000 (04:08 +0000)]
PR binutils/13897
* elf.c (elf_find_function): Cache last function sym info.
(_bfd_elf_maybe_function_sym): Return function size, pass in
section of interest.
* elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
(_bfd_elf_maybe_function_sym): Likewise.
* elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
(opd_entry_value): Add in_code_sec param.  Revert caching code.
Return -1 if in_code_sec and function found in wrong section.
Update all calls.

12 years ago*** empty log message ***
gdbadmin [Sun, 3 Jun 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 3 Jun 2012 00:00:02 +0000 (00:00 +0000)]
daily update

12 years agogprof/
Andreas Schwab [Sat, 2 Jun 2012 10:19:24 +0000 (10:19 +0000)]
gprof/
* Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
* Makefile.in: Regenerate.

ld/
* Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
* Makefile.in: Regenerate.

12 years ago2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Sat, 2 Jun 2012 04:34:23 +0000 (04:34 +0000)]
2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>

* symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
it to optimize resolution of demangled name.

12 years ago*** empty log message ***
gdbadmin [Sat, 2 Jun 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 2 Jun 2012 00:00:02 +0000 (00:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Fri, 1 Jun 2012 18:20:18 +0000 (18:20 +0000)]
gdb/
* configure.ac (development): Define new variable.
Call AC_CHECK_LIB for mcheck if $development.
(ERROR_ON_WARNING): Enable it by default only if $development.
* config.in: Regenerate.
* configure: Regenerate.

12 years agogdb/gdbserver/
Jan Kratochvil [Fri, 1 Jun 2012 16:50:11 +0000 (16:50 +0000)]
gdb/gdbserver/
Fix gcc -flto compilation warning.
* server.c (main): Make variable multi_mode and attach volatile.

12 years agobfd/
Jan Kratochvil [Fri, 1 Jun 2012 16:37:59 +0000 (16:37 +0000)]
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
of target_read_memory as size_t.
* bfd-in2.h: Regenerate.
* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
argument of target_read_memory as size_t.
(_bfd_elf32_bfd_from_remote_memory): Likewise.
(_bfd_elf64_bfd_from_remote_memory): Likewise.
* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.

gdb/
* target.c (target_read_memory): Make LEN argument as size_t.
* target.h (target_read_memory): Likewise.

12 years agogdb/
Jan Kratochvil [Fri, 1 Jun 2012 14:43:30 +0000 (14:43 +0000)]
gdb/
* tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.

12 years ago PR binutils/13897
Alan Modra [Fri, 1 Jun 2012 12:26:55 +0000 (12:26 +0000)]
PR binutils/13897
* elf64-ppc.c (opd_entry_value): Rewrite cache code.

12 years agoRevert the last change
H.J. Lu [Fri, 1 Jun 2012 02:28:32 +0000 (02:28 +0000)]
Revert the last change

12 years ago * addr2line.c (translate_addresses): Truncate input addresses to
Alan Modra [Fri, 1 Jun 2012 01:04:29 +0000 (01:04 +0000)]
* addr2line.c (translate_addresses): Truncate input addresses to
arch_size bits.  Avoid undefined shift.  Print '?' for zero line.

12 years ago*** empty log message ***
gdbadmin [Fri, 1 Jun 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 1 Jun 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agogas/
Sean Keys [Thu, 31 May 2012 22:10:53 +0000 (22:10 +0000)]
gas/
    * tc-xgate.c (md_begin): Refactored code.

12 years ago* ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
Edjunior Barbosa Machado [Thu, 31 May 2012 22:07:31 +0000 (22:07 +0000)]
* ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
BookE interface for PowerPC server processors if not available
in the Linux Kernel.

12 years ago * linespec.c (decode_objc): Add cleanup to free
Keith Seitz [Thu, 31 May 2012 18:44:50 +0000 (18:44 +0000)]
* linespec.c (decode_objc): Add cleanup to free
INFO.FILE_SYMTABS.
(find_linespec_symbols): Add cleanup to free CLASSES.
* symfile.c (find_separate_debug_file_by_debuglink): Add
cleanup to free DEBUGLINK.
* ui-out.c (clear_header_list): No need to check if
HEADER_NEXT.COLHDR is NULL.
Free HEADER_NEXT.COL_NAME.

12 years agoMove linker test entry to ld/testsuite/ChangeLog
H.J. Lu [Thu, 31 May 2012 18:21:37 +0000 (18:21 +0000)]
Move linker test entry to ld/testsuite/ChangeLog

12 years agoAdd missing "foo" after ".global"
H.J. Lu [Thu, 31 May 2012 17:16:54 +0000 (17:16 +0000)]
Add missing "foo" after ".global"

2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-13a-x86-64.s: Add missing "foo" after ".global".
* ld-ifunc/ifunc-15-x86-64.s: Likewise.

12 years agoFix ChangeLog entry
H.J. Lu [Thu, 31 May 2012 17:03:18 +0000 (17:03 +0000)]
Fix ChangeLog entry

12 years ago * gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
Matthew Gretton-Dann [Thu, 31 May 2012 09:34:40 +0000 (09:34 +0000)]
* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.

12 years ago*** empty log message ***
gdbadmin [Thu, 31 May 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
Thiago Jung Bauermann [Wed, 30 May 2012 19:51:38 +0000 (19:51 +0000)]
* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
if the platform doesn't know about it.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:43:15 +0000 (19:43 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* Makefile.in (SFILES): Add linux-tile-low.c.
(linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
* configure.srv: Handle tilegx-*-linux*.
* linux-tile-low.c: New file.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:41:34 +0000 (19:41 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* configure.host (gdb_host_cpu): Handle tilegx*.
(gdb_host): Handle tilegx-*-linux*.
* tilegx-linux-nat.c: New file.
* config/tilegx/linux.mh: New file.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:31:44 +0000 (19:31 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
tilegx-linux-tdep.o.
(ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
tilegx-linux-tdep.c.
* configure.tgt: Handle tilegx-*-linux*.
* tilegx-tdep.h: New file.
* tilegx-tdep.c: New file.
* tilegx-linux-tdep.c: New file.
* regformats/reg-tilegx.dat: New file.

12 years ago * readelf.c (process_section_headers): Correct bug in previous
Nick Clifton [Wed, 30 May 2012 14:33:12 +0000 (14:33 +0000)]
* readelf.c (process_section_headers): Correct bug in previous
delta - display full section type in wide mode.

* ld-tic6x/shlib-1b.rd: Revert previous delta.
* 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.

12 years ago* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
Edjunior Barbosa Machado [Wed, 30 May 2012 13:37:17 +0000 (13:37 +0000)]
* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
accounting of hw watchpoints on ppc.

12 years ago * ldlang.h (lang_output_section_statement_type): Rename
Alan Modra [Wed, 30 May 2012 04:19:11 +0000 (04:19 +0000)]
* 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.

12 years ago * source.c (openp): Expand tilde in path entries.
Thiago Jung Bauermann [Wed, 30 May 2012 03:42:21 +0000 (03:42 +0000)]
* source.c (openp): Expand tilde in path entries.

12 years ago*** empty log message ***
gdbadmin [Wed, 30 May 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 30 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years ago * buildsym.c (block_compar): Fix comment.
Doug Evans [Tue, 29 May 2012 20:23:17 +0000 (20:23 +0000)]
* buildsym.c (block_compar): Fix comment.
(end_symtab): Fix and clarify some comments.

12 years ago * stabsread.h (cleanup_undefined_stabs_types): Renamed from
Doug Evans [Tue, 29 May 2012 18:54:50 +0000 (18:54 +0000)]
* stabsread.h (cleanup_undefined_stabs_types): Renamed from
cleanup_undefined_types.
* stabsread.c (cleanup_undefined_stabs_types): Ditto.
All callers updated.

12 years agogas/
Roland McGrath [Tue, 29 May 2012 16:32:11 +0000 (16:32 +0000)]
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.

12 years agoResync config/ from GCC.
Joseph Myers [Tue, 29 May 2012 15:58:15 +0000 (15:58 +0000)]
Resync config/ from GCC.

12 years ago * ld-tic6x/shlib-1b.rd: Update expected readelf output.
Nick Clifton [Tue, 29 May 2012 15:48:18 +0000 (15:48 +0000)]
* 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.

12 years agobfd/
Tom Tromey [Tue, 29 May 2012 14:23:40 +0000 (14:23 +0000)]
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.

12 years ago2012-05-29 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 29 May 2012 12:59:53 +0000 (12:59 +0000)]
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.

12 years ago*** empty log message ***
gdbadmin [Tue, 29 May 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 29 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years ago2012-05-28 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 28 May 2012 20:43:26 +0000 (20:43 +0000)]
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.

12 years agogdb/
Jan Kratochvil [Mon, 28 May 2012 20:37:29 +0000 (20:37 +0000)]
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.

12 years ago * read.c (read_symbol_name): New function. Reads a symbol names.
Nick Clifton [Mon, 28 May 2012 14:20:19 +0000 (14:20 +0000)]
* 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.

12 years ago PR ld/14170
Alan Modra [Mon, 28 May 2012 04:08:53 +0000 (04:08 +0000)]
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.

12 years ago*** empty log message ***
gdbadmin [Mon, 28 May 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 28 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agoAdd a test for PR ld/14170
H.J. Lu [Sun, 27 May 2012 14:45:41 +0000 (14:45 +0000)]
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.

12 years ago PR ld/14170
Alan Modra [Sun, 27 May 2012 13:55:45 +0000 (13:55 +0000)]
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.

12 years ago*** empty log message ***
gdbadmin [Sun, 27 May 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 27 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agold/
Alan Modra [Sat, 26 May 2012 11:13:20 +0000 (11:13 +0000)]
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.

12 years agodaily update
Alan Modra [Sat, 26 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 26 May 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-05-25 Sriraman Tallam <tmsriram@google.com>
Sriraman Tallam [Fri, 25 May 2012 22:53:52 +0000 (22:53 +0000)]
2012-05-25  Sriraman Tallam  <tmsriram@google.com>

* symtab.cc (Symbol_table::define_special_symbol):
Initialize *poldsym to prevent uninitialized variable errors.

12 years ago * gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
Maciej W. Rozycki [Fri, 25 May 2012 21:54:16 +0000 (21:54 +0000)]
* gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
for 'set print symbol' change.