binutils-gdb.git
12 years agomerge from gcc
DJ Delorie [Fri, 6 Jan 2012 22:04:43 +0000 (22:04 +0000)]
merge from gcc

12 years ago * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
Doug Evans [Fri, 6 Jan 2012 18:13:22 +0000 (18:13 +0000)]
* dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
to top of file.
(dwarf2_find_comp_unit): Delete.
(process_psymtab_comp_unit): Make result "void".
Delete args buffer, info_ptr, buffer_size, and replace with
"section".  All callers updated.
(dwarf2_build_psymtabs_hard): Simplify.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 6 Jan 2012 16:23:39 +0000 (16:23 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.c: Update copyright year.
(lex_got): Also defined for Mach-O.
Add a guard for non-ELF configuration.
(md_longopts): Also handle -64 for Mach-O.
(md_parse_option): Likewise.
(i386_target_format): Adjust for x86_64-darwin.

12 years ago PR binutils/13121
Nick Clifton [Fri, 6 Jan 2012 15:44:30 +0000 (15:44 +0000)]
PR binutils/13121
* reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
'flaginfo' to avoid conflicts with AIX system headers.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 6 Jan 2012 11:43:51 +0000 (11:43 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* bfdio.c (bfd_bread): Use arelt_size macro.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 6 Jan 2012 11:41:28 +0000 (11:41 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.

12 years ago * po/ru.po: Updated Russian translation.
Nick Clifton [Fri, 6 Jan 2012 10:29:57 +0000 (10:29 +0000)]
* po/ru.po: Updated Russian translation.

12 years agosim: headers: use abs_srcdir to find helper scripts
Mike Frysinger [Fri, 6 Jan 2012 06:43:48 +0000 (06:43 +0000)]
sim: headers: use abs_srcdir to find helper scripts

Trying to run `headers` in an out-of-tree build fails atm due to the
relative srcdir paths being used in a location other than where they
were setup to be used from.  Get abs_srcdir from configure and use
that instead where applicable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
Yao Qi [Fri, 6 Jan 2012 05:58:29 +0000 (05:58 +0000)]
* tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
defined.
[IN_PROCESS_AGENT] (debug_agent): New global variable.

12 years ago2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Fri, 6 Jan 2012 03:34:46 +0000 (03:34 +0000)]
2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
before `struct gdb_exception'.
* breakpoint.c (update_global_location_list_nothrow)
(update_breakpoint_locations, enable_breakpoint_disp): Likewise.
* cp-abi.c (value_rtti_type): Likewise.
* cp-support.c (cp_validate_operator): Likewise.
* infrun.c (insert_exception_resume_breakpoint)
(check_exception_resume, keep_going): Likewise.
* mi-interp.c (mi_breakpoint_created)
(mi_breakpoint_modified): Likewise.
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
* solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
(ia64_hpux_handle_dld_breakpoint_1): Likewise.

12 years ago*** empty log message ***
gdbadmin [Fri, 6 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 5 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * dwarf2read.c (statement_prologue): Delete, unused.
Doug Evans [Thu, 5 Jan 2012 21:56:37 +0000 (21:56 +0000)]
* dwarf2read.c (statement_prologue): Delete, unused.

12 years ago * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
Doug Evans [Thu, 5 Jan 2012 21:53:14 +0000 (21:53 +0000)]
* dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
* dwarf2loc.h (dwarf2_per_cu_addr_size): Update.

12 years ago * dwarf2read.c (comp_unit_header): Delete, unused.
Doug Evans [Thu, 5 Jan 2012 20:17:50 +0000 (20:17 +0000)]
* dwarf2read.c (comp_unit_header): Delete, unused.

12 years ago * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
Ulrich Weigand [Thu, 5 Jan 2012 17:07:05 +0000 (17:07 +0000)]
* configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
* config/s390/s390.mh (NATDEPFILES): Remove corelow.o.

12 years ago * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and
Nick Clifton [Thu, 5 Jan 2012 15:17:18 +0000 (15:17 +0000)]
* ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and
64-bit objects when the 32-bit object (loaded first) contains 32+
local symbols, all referenced by relocs and the 64-bit object
contains a reloc that uses a symbol in the 32-bit object.
* 32bit.s: New source file.
* 64bit.s: New source file.
* incompatible.l: New expected linker output file.

12 years ago2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
Pedro Alves [Thu, 5 Jan 2012 13:11:31 +0000 (13:11 +0000)]
2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>

* infrun.c (normal_stop): Don't skip calling the normal_stop
observers if the thread was doing a multi-step, but stopped for
some reason other than stepping.

gdb/testsuite/
2012-01-05  Pedro Alves  <alves.ped@gmail.com>

* gdb.mi/mi-stepn.c, gdb.mi/mi-stepn.exp: New files.
* gdb.python/py-events.c (first): Add bits for new "step N" test.
* gdb.python/py-events.exp: Test that "step N" tripping on a
breakpoint emits a breakpoint event.

12 years ago2012-01-05 Pedro Alves <alves.ped@gmail.com>
Pedro Alves [Thu, 5 Jan 2012 11:39:31 +0000 (11:39 +0000)]
2012-01-05  Pedro Alves  <alves.ped@gmail.com>

* cli/cli-decode.h: Add comments.
(CMD_LIST_AMBIGUOUS): Moved to command.h
(add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
(set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
(set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
(deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
(add_com, add_com_alias, add_info, add_info_alias)
(complete_on_cmdlist, complete_on_enum, help_list): Remove
declarations.
* command.h: Add and adjust comments.
(CMD_LIST_AMBIGUOUS): Moved here.
(help_cmd, help_cmd_list): Delete declarations.

12 years agoRotate ChangeLogs
Nick Clifton [Thu, 5 Jan 2012 10:09:39 +0000 (10:09 +0000)]
Rotate ChangeLogs

12 years ago PR ld/12161
Nick Clifton [Thu, 5 Jan 2012 09:57:18 +0000 (09:57 +0000)]
PR ld/12161
* elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
necessary.

12 years agoDocument new procedure for updating copyright years
Joel Brobecker [Thu, 5 Jan 2012 09:41:03 +0000 (09:41 +0000)]
Document new procedure for updating copyright years

We now use a different script to perform the update.  This patch
updates the procedure in our documentation

gdb/doc/ChangeLog:

        * gdbint.texinfo (Start of New Year Procedure): Update
        to replace use of copyright.sh by use of copyright.py.

12 years agobfd/
Jan Kratochvil [Thu, 5 Jan 2012 07:50:44 +0000 (07:50 +0000)]
bfd/
Fix zero registers core files when built by gcc-4.7.
* elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
size.  Call elfcore_write_note for the local variables.  Remove the
final elfcore_write_note call.  Add NOTREACHED comments.

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

12 years ago * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
Doug Evans [Wed, 4 Jan 2012 19:49:41 +0000 (19:49 +0000)]
* dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
All callers updated.
(load_full_type_unit): Renamed from read_signatured_type_at_offset.
Replace all arguments with "per_cu".  All callers updated.

12 years ago * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
Doug Evans [Wed, 4 Jan 2012 19:16:15 +0000 (19:16 +0000)]
* dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.

12 years ago * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
Doug Evans [Wed, 4 Jan 2012 19:07:36 +0000 (19:07 +0000)]
* dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
New arg "per_cu".  All callers updated.

12 years ago Delete #if 0'd out code.
Doug Evans [Wed, 4 Jan 2012 18:57:01 +0000 (18:57 +0000)]
Delete #if 0'd out code.
* language.c (binop_result_type): Delete.
(simple_type, ordered_type, same_type, integral_type): Delete.
(numeric_type, character_type, string_type, boolean_type): Delete.
(float_type, structured_type): Delete.
* language.h: Update.

12 years ago * python/py-value.c (valpy_binop): Initialize 'res_val'.
Tom Tromey [Wed, 4 Jan 2012 16:15:14 +0000 (16:15 +0000)]
* python/py-value.c (valpy_binop): Initialize 'res_val'.

12 years agoGet rid of corefile.c:close_exec_file
Joel Brobecker [Wed, 4 Jan 2012 15:13:26 +0000 (15:13 +0000)]
Get rid of corefile.c:close_exec_file

The body of this function has been commented out since Jul 1999, and
thus seems unnecessary. While at it, remove some commented out code
that seems to be related to the function being deleted.

gdb/ChangeLog:

* corefile.c (close_exec_file): Delete.
(reopen_exec_file): Remove commented out code that seems related
to close_exec_file, which is being deleted here.
* inferior.h (close_exec_file): Delete.
* fork-child.c (fork_inferior): Remove call to fork_inferior.

12 years agoUse skip_spaces and skip_to_space in ada-lang.c
Joel Brobecker [Wed, 4 Jan 2012 14:55:09 +0000 (14:55 +0000)]
Use skip_spaces and skip_to_space in ada-lang.c

This is just a minor cleanup that reduces a bit the code in ada-lang.c
by using skip_spaces or skip_to_space, instead of doing the skipping
ourselves.

gdb/ChangeLog:

        * ada-lang.c: #include "cli/cli-utils.h".
        (get_selections): Use skip_spaces.
        (ada_get_next_arg): Use skip_spaces and skip_to_space.
        (catch_ada_exception_command_split): Use skip_spaces.
        (ada_decode_assert_location): Likewise.

12 years agogdb/gdbserver/
Yao Qi [Wed, 4 Jan 2012 14:39:12 +0000 (14:39 +0000)]
gdb/gdbserver/
* tracepoint.c (cmd_qtdp): Print debug message
for static tracepoint.

12 years agogdb/gdbserver/
Yao Qi [Wed, 4 Jan 2012 14:34:49 +0000 (14:34 +0000)]
gdb/gdbserver/
* tracepoint.c (trace_vdebug): Differentiate debug message
between gdbserver and IPA.

12 years agodo not call decode_compound with Ada expressions.
Joel Brobecker [Wed, 4 Jan 2012 14:24:57 +0000 (14:24 +0000)]
do not call decode_compound with Ada expressions.

Trying to insert a breakpoint on `ops."<"', we get the following error:

    (gdb) b ops."<"
    malformed template specification in command

This is because locate_first_half skips the linespec until the dot,
and the decode_line_internal thinks that the dot might mean that
we have C++ or Java compound.  It then tries calling decode_compound
which errors out because it sees the opening angle bracket but not
the closing one (I am guessing).

This patch short-circuits this part of the code when the current
language is Ada.

gdb/ChangeLog:

        * linespec.c (decode_line_internal): Check for C++ or Java
        compound constructs only if the current language is C, C++
        or Java.

12 years agogdb/
Jan Kratochvil [Wed, 4 Jan 2012 13:51:36 +0000 (13:51 +0000)]
gdb/
Revert:
2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Joel Brobecker  <brobecker@adacore.com>
Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
* arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3 times.
* infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
fall through into AT_ENTRY_POINT.
(call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
DUMMY_ADDR with it.
* ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
PPC_INSN_SIZE skip to 3 times.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Jan 2012 13:31:27 +0000 (13:31 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
(bfd_mach_o_generic_stat_arch_elt): Adjust.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Jan 2012 13:22:21 +0000 (13:22 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_fat_member_init): New function.
(bfd_mach_o_openr_next_archived_file): Reindent.
Adjust to call bfd_mach_o_fat_member_init.
(bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.

12 years agolinespec: keep function descriptors during minimal symbol search
Joel Brobecker [Wed, 4 Jan 2012 13:15:20 +0000 (13:15 +0000)]
linespec: keep function descriptors during minimal symbol search

When discarding data (minimal) symbols, we need to be careful to
not throw away the function descriptors.  This makes a difference
on platforms where these descriptors are used and live in a data
section.

gdb/ChangeLog:

        * linespec.c (add_minsym): Preserve function descriptors.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Jan 2012 12:59:23 +0000 (12:59 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
BFD_RELOC_MACH_O_X86_64_PCREL32_2,
BFD_RELOC_MACH_O_X86_64_PCREL32_4,
BFD_RELOC_MACH_O_X86_64_BRANCH32,
BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
BFD_RELOC_MACH_O_X86_64_GOT.

12 years ago * breakpoint.c (all_locations_are_pending): Consider locations
Ulrich Weigand [Wed, 4 Jan 2012 12:31:49 +0000 (12:31 +0000)]
* breakpoint.c (all_locations_are_pending): Consider locations
in program spaces executing during startup pending as well.

12 years agogas/testsuite:
Iain Sandoe [Wed, 4 Jan 2012 11:25:11 +0000 (11:25 +0000)]
gas/testsuite:

* gas/mach-o/zerofill-2.d: New.

12 years agoadd .zerofill to mach-o GAS.
Iain Sandoe [Wed, 4 Jan 2012 10:59:54 +0000 (10:59 +0000)]
add .zerofill to mach-o GAS.

gas:

* config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
(obj_mach_o_get_section_names): New (split from obj_mach_o_section).
(obj_mach_o_make_or_get_sect): Likewise.
(obj_mach_o_section): Split out the functionality shared with zerofill.
(obj_mach_o_zerofill): New.
(obj_mach_o_common_parse): Ensure whitespace is skipped.
(mach_o_pseudo_table): Add .zerofill.

gas/testsuite:

* gas/mach-o/zerofill-1.d: New.
* gas/mach-o/zerofill-1.s: New.

12 years agobfd/
Tristan Gingold [Wed, 4 Jan 2012 10:37:36 +0000 (10:37 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_fvmlib_command): New structure.
(bfd_mach_o_load_command): Add fvmlib field.

* mach-o.c (bfd_mach_o_read_fvmlib): New function.
(bfd_mach_o_read_command): Handle fvmlib.

binutils/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* od-macho.c (dump_load_command): Handle fvmlib.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* external.h (mach_o_fvmlib_command_external): New structure.

12 years agobfd/
Tristan Gingold [Wed, 4 Jan 2012 10:25:14 +0000 (10:25 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_convert_architecture): Reindent.
Decode msubtype for ARM.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* loader.h: Update copyright year.
(bfd_mach_o_cpu_subtype): Add ARM subtypes.

12 years agobfd/
Tristan Gingold [Wed, 4 Jan 2012 10:14:25 +0000 (10:14 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.

12 years agobfd/
Tristan Gingold [Wed, 4 Jan 2012 09:58:55 +0000 (09:58 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Reindent header.
(bfd_mach_o_encryption_info_command): New structure.
(bfd_mach_o_load_command): Add encryption_info field.

* mach-o.c (bfd_mach_o_read_encryption_info): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
(bfd_mach_o_read_command): Adjust error message.

binutils/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: Update copyright year.
(dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* external.h: Update copyright year.
(mach_o_symtab_command_external): Add comments.
(mach_o_encryption_info_command_external): New structure.

12 years ago2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tristan Gingold [Wed, 4 Jan 2012 08:44:04 +0000 (08:44 +0000)]
2012-01-04  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
which reads DWARF2 and stores in stash from find_line.
(find_line) Call _bfd_dwarf2_slurp_debug_info.
* libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
* libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
* mach-o.c (dsym_subdir): The name of subdir where debug
information may be stored.
(bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
type is UUID.
(bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
corresponding to the executable.
(bfd_mach_o_find_dsym): New. Find a debug information BFD in the
specified binary file.
(bfd_mach_o_follow_dsym): New. Find a debug information BFD for
the original BFD.
(bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
executables, dylibs, and bundles.
(bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
* mach-o.h (dsym_bfd): The BFD of the dSYM file.

12 years agoCopyright year update in most files of the GDB Project.
Joel Brobecker [Wed, 4 Jan 2012 08:28:28 +0000 (08:28 +0000)]
Copyright year update in most files of the GDB Project.

gdb/ChangeLog:

        Copyright year update in most files of the GDB Project.

12 years agoCopyright year update in most files of the GDB Project.
Joel Brobecker [Wed, 4 Jan 2012 08:17:56 +0000 (08:17 +0000)]
Copyright year update in most files of the GDB Project.

gdb/ChangeLog:

        Copyright year update in most files of the GDB Project.

12 years agouse gnulib's update-copyright script to update copyright years
Joel Brobecker [Wed, 4 Jan 2012 07:55:48 +0000 (07:55 +0000)]
use gnulib's update-copyright script to update copyright years

This patch now retires the old copyright.sh script which was using
emacs to perform the copyright update. It also completely rewrite
copyright.py to call update-copyright with the appropriate list
of files.

In addition to calling update-copyright, the new script also performs
a sanity-check on all the files that update-copyright could not update,
and sees whether the file might contain a copyright notice that
the script could not decipher.

gdb/ChangeLog:

        * copyright.sh: Delete.
        * copyright.py: Rewrite.

12 years agoImport gnulib's update-copyright script
Joel Brobecker [Wed, 4 Jan 2012 07:55:13 +0000 (07:55 +0000)]
Import gnulib's update-copyright script

gdb/ChangeLog:

        * gnulib/extra/update-copyright: New file, imported from gnulib.

12 years ago[README] Add note about copyright and license notices
Joel Brobecker [Wed, 4 Jan 2012 04:11:38 +0000 (04:11 +0000)]
[README] Add note about copyright and license notices

Also explain the use of year ranges in copyright notices.

gdb/ChangeLog:

        * README (Copyright and License Notices): New section.

12 years ago * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
Cary Coutant [Wed, 4 Jan 2012 00:18:23 +0000 (00:18 +0000)]
* gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
Use abstract base class for GOT.
* gold/output.h (class Output_data_got_base): New abstract base class.
(class Output_data_got): Derive from new base class, adjust ctors.
(Output_data_got::reserve_slot): Make virtual; rename to
do_reserve_slot; Adjust callers.
* gold/target.h (Sized_target::init_got_plt_for_update): Return
pointer to abstract base class.
* gold/x86_64.cc (Target_x86_64::init_got_plt_for_update): Likewise.

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

12 years agodaily update
Alan Modra [Tue, 3 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR python/12533:
Tom Tromey [Tue, 3 Jan 2012 19:27:52 +0000 (19:27 +0000)]
PR python/12533:
* python/py-value.c (valpy_dereference, valpy_get_address
valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
(valpy_getitem, valpy_call, valpy_binop, valpy_negative)
(valpy_absolute, valpy_richcompare): Free intermediate values.

12 years agomerge from gcc
DJ Delorie [Tue, 3 Jan 2012 16:02:36 +0000 (16:02 +0000)]
merge from gcc

12 years agomore copyright notice reformatting.
Joel Brobecker [Tue, 3 Jan 2012 13:31:01 +0000 (13:31 +0000)]
more copyright notice reformatting.

gdb/ChangeLog:

        * ada-lang.c: Reformat the copyright notice.

gdb/testsuite/ChangeLog:

        * gdb.base/auxv.exp: Reformat the copyright notice.

12 years agosupport stabs on mach-o GAS.
Iain Sandoe [Tue, 3 Jan 2012 13:18:48 +0000 (13:18 +0000)]
support stabs on mach-o GAS.

bfd:

* mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
for stabd symbols.
(bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
(bfd_mach_o_cf_symbols): Likewise.

gas:

* config/obj-macho.c (obj_macho_process_stab): New.
* config/obj-macho.h (OBJ_PROCESS_STAB): Define.
(obj_macho_process_stab): Declare.

12 years agocorrect typo in previous commit.
Iain Sandoe [Tue, 3 Jan 2012 12:03:10 +0000 (12:03 +0000)]
correct typo in previous commit.

bfd:

* mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.

12 years agoadd dysymtab write support to bfd/mach-o.
Iain Sandoe [Tue, 3 Jan 2012 10:54:01 +0000 (10:54 +0000)]
add dysymtab write support to bfd/mach-o.

bfd:

* mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
as the value of an indirect symbol.  Keep the string table index in
non-indirect syms for reference.
(bfd_mach_o_write_dysymtab): New.
(bfd_mach_o_primary_symbol_sort_key): New.
(bfd_mach_o_cf_symbols): New.
(bfd_mach_o_sort_symbol_table): New.
(bfd_mach_o_mangle_symbols): Return early if no symbols.  Sort symbols.
If we are emitting a dysymtab, process indirect symbols and count the
number of each other kind.
(bfd_mach_o_mangle_sections): New.
(bfd_mach_o_write_contents): Split out some pre-requisite code into
the command builder. Write dysymtab if the command is present.
(bfd_mach_o_count_sections_for_seg): New.
(bfd_mach_o_build_seg_command): New.
(bfd_mach_o_build_dysymtab_command): New.
(bfd_mach_o_build_commands): Reorganize to support the fact that some
commands are optional and should not be emitted if there are no
sections or symbols.
(bfd_mach_o_set_section_contents): Amend comment.
* mach-o.h: Amend and add to comments.
(mach_o_data_struct): Add fields for dysymtab symbols counts and a
pointer to the indirects, when present.
(bfd_mach_o_should_emit_dysymtab): New macro.
(IS_MACHO_INDIRECT): Likewise.

gas/testsuite:

* gas/mach-o/dysymtab-1-64.d: New.
* gas/mach-o/dysymtab-1.d: New.
* gas/mach-o/symbols-1-64.d: New.
* gas/mach-o/symbols-1.d: New.
* gas/mach-o/symbols-base-64.s: New.
* gas/mach-o/symbols-base.s: New.

12 years agogdb/testsuite/
Yao Qi [Tue, 3 Jan 2012 02:38:37 +0000 (02:38 +0000)]
gdb/testsuite/
* gdb.trace/strace.exp (strace_trace_on_same_addr): New.
(strace_trace_on_diff_addr): New.
* gdb.trace/strace.c: (main): Add two local variables.

12 years agogdb/gdbserver/
Yao Qi [Tue, 3 Jan 2012 02:26:52 +0000 (02:26 +0000)]
gdb/gdbserver/
* tracepoint.c (tracepoint_was_hit): Don't collect for
static tracepoint.

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

12 years agodaily update
Alan Modra [Mon, 2 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * gdb.cell/fork.exp: Delete breakpoints after reaching main.
Ulrich Weigand [Mon, 2 Jan 2012 18:04:26 +0000 (18:04 +0000)]
* gdb.cell/fork.exp: Delete breakpoints after reaching main.
* gdb.cell/gcore.exp: Likewise.
* gdb.cell/solib-symbol.exp: Use "info symbol" instead of "break"
to verify the correct instance of main is selected.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 17:18:46 +0000 (17:18 +0000)]
gdb/
* Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
* configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
(i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
(x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
Revert this part of:
2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
Build gdb directly from *.o files not using libgdb.a.
* Makefile.in (COMMON_OBS): Remove solib-target.o.

12 years agoUpdate the copyright header of various files...
Joel Brobecker [Mon, 2 Jan 2012 15:37:37 +0000 (15:37 +0000)]
Update the copyright header of various files...

... to follow the correct syntax (according to the gospel of
gnulib's update-copyright). In other words:
  - no comma after the last year;
  - FSF spelled exactly "Free Software Foundation, Inc.", with
    the comma and the period at the end.

sim/common/ChangeLog:

* dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
header.

sim/m32c/ChangeLog:

* blinky.S, gloss.S, sample.S: Reformat copyright header.

sim/mn10300/ChangeLog:

* sim-main.h: Reformat copyright header.

sim/ppc/ChangeLog:

* dp-bit.c: Reformat copyright header.

gdb/ChangeLog:

        * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
        gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
        Reformat the copyright header.

gdb/gdbserver/ChangeLog:

* terminal.h: Reformat copyright header.

gdb/testsuite/ChangeLog:

* dg-extract-results.sh, gdb.arch/gcore.c, gdb.arch/gdb1558.c,
gdb.arch/i386-gnu-cfi.c, gdb.base/complex.c, gdb.base/cvexpr.c,
gdb.base/gcore.c, gdb.base/gdb1555-main.c, gdb.base/gdb1555.c,
gdb.base/gdb1821.c, gdb.base/long_long.c, gdb.base/restore.c,
gdb.base/sepdebug.c, gdb.base/type-opaque-lib.c,
gdb.base/type-opaque-main.c, gdb.cp/maint.exp, gdb.cp/namespace1.cc,
gdb.cp/pr9631.cc, gdb.cp/psmang1.cc, gdb.cp/psmang2.cc,
gdb.cp/try_catch.cc, gdb.cp/virtfunc.cc, gdb.hp/gdb.base-hp/reg.exp,
gdb.mi/basics.c, gdb.mi/mi-stack.c, gdb.mi/mi-var-child.c,
gdb.mi/mi2-var-child.exp, gdb.mi/var-cmd.c,
gdb.threads/thread_check.c: Reformat copyright header.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 13:29:57 +0000 (13:29 +0000)]
gdb/
Revert this part of:
2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
Remove the gdbtui binary.
* gdb.c (main): Remove args.interpreter_p initialization.
* main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
* main.h (struct captured_main_args): Remove interpreter_p.

12 years agoAdd fnchange.lst entry for gdb/ChangeLog-2011.
Joel Brobecker [Mon, 2 Jan 2012 09:03:09 +0000 (09:03 +0000)]
Add fnchange.lst entry for gdb/ChangeLog-2011.

gdb/ChangeLog:

* config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.

12 years agogdb/gdbserver/gdbreplay: Update copyright year in version out
Joel Brobecker [Mon, 2 Jan 2012 08:59:35 +0000 (08:59 +0000)]
gdb/gdbserver/gdbreplay: Update copyright year in version out

gdb/ChangeLog:

* top.c (print_gdb_version): Update copyright year.

gdb/gdbserver/ChangeLog:

* server.c (gdbserver_version): Update copyright year.
* gdbreplay.c (gdbreplay_version): Likewise.

12 years agoRotate GDB ChangeLog for 2012.
Joel Brobecker [Mon, 2 Jan 2012 08:58:08 +0000 (08:58 +0000)]
Rotate GDB ChangeLog for 2012.

12 years ago gdb/
Yao Qi [Mon, 2 Jan 2012 03:59:35 +0000 (03:59 +0000)]
gdb/
* inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 02:52:20 +0000 (02:52 +0000)]
gdb/
Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
* arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3 times.
* infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
fall through into AT_ENTRY_POINT.
(call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
DUMMY_ADDR with it.
* ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
PPC_INSN_SIZE skip to 3 times.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 02:42:24 +0000 (02:42 +0000)]
gdb/
* amd64-linux-nat.c (update_debug_registers_callback): New comment on
the return value.
* i386-linux-nat.c (update_debug_registers_callback): Likewise.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 02:31:18 +0000 (02:31 +0000)]
gdb/
Build gdb directly from *.o files not using libgdb.a.
* Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
(COMMON_OBS): Remove solib-target.o.
(LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
(gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
(LIBGDB_OBS, libgdb.a): Move it above.
* configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
(alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
(alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
(arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
(arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
(hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
(i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
(i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
(i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
(x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
(i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
(m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
(microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
(mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
(mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
(powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
(powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
(sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
(sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
(sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
(sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
(sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
(sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
(vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
(x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
(x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
(xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.

12 years agogdb/
Jan Kratochvil [Mon, 2 Jan 2012 02:28:59 +0000 (02:28 +0000)]
gdb/
Remove the gdbtui binary.
* .gitignore (/gdbtui): Remove.
* Makefile.in (TUI): Remove.
(SUBDIR_TUI_OBS): Remove tui-main.o.
(SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
(all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
(tui-main.o): Remove.
(all_object_files): Remove tui-main.o.
* NEWS: New note for the gdbtui removal.
* configure: Rebuilt.
* configure.ac: No longer add all-tui, clean-tui, install-tui and
uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
CONFIG_UNINSTALL respectively.
* gdb.c (main): Remove args.interpreter_p initialization.
* main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
* main.h (struct captured_main_args): Remove interpreter_p.
* tui/tui-main.c: Remove.

gdb/doc/
Remove the gdbtui binary.
* all-cfg.texi (GDBTUI): Remove.
* gdb.texinfo (Mode Options): Remove the GDBTUI reference.
(TUI): Remove GDBTUI pindex.  Remove the GDBTUI reference.
* gdbint.texinfo (Testsuite): Replace `gdbtui' by `gdb -tui'.

12 years ago * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
Doug Evans [Mon, 2 Jan 2012 01:23:41 +0000 (01:23 +0000)]
* dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
(dwarf2_physname, read_import_statement): Ditto.
(read_call_site_scope, dwarf2_record_block_ranges): Ditto.
(process_structure_scope read_subroutine_type): Ditto.
(read_typedef, load_partial_dies, read_partial_die): Ditto.
(find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
(dwarf2_fetch_die_location_block): Ditto.
(dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.

12 years ago * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
Doug Evans [Mon, 2 Jan 2012 00:50:07 +0000 (00:50 +0000)]
* dwarf2read.c (read_signatured_type): Delete `objfile' arg.
All callers updated.
(load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
(dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
(process_psymtab_comp_unit, load_partial_comp_unit): Ditto.

12 years ago * dwarf2read.c (load_cu): Move assert to more useful location.
Doug Evans [Mon, 2 Jan 2012 00:29:19 +0000 (00:29 +0000)]
* dwarf2read.c (load_cu): Move assert to more useful location.

12 years ago * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
Doug Evans [Mon, 2 Jan 2012 00:23:50 +0000 (00:23 +0000)]
* dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
All callers updated.

12 years ago * dwarf2read.c (dwarf2_per_objfile): Add comment.
Doug Evans [Mon, 2 Jan 2012 00:09:58 +0000 (00:09 +0000)]
* dwarf2read.c (dwarf2_per_objfile): Add comment.
(dwarf2_elf_names): Minor reformat.
(dwarf2_per_cu_data): Tweak comment.
(dwarf2_read_section): Fix comment.
(create_all_comp_units): Fix comment.
(load_full_comp_unit): Fix comment.
(process_full_comp_unit): Fix comment.
(read_signatured_type): Fix comment.

12 years ago*** empty log message ***
gdbadmin [Mon, 2 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 1 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 1 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 31 Dec 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
Doug Evans [Sat, 31 Dec 2011 17:18:13 +0000 (17:18 +0000)]
* dwarf2read.c (read_typedef): Guard against self-referential typedefs.

12 years agosim: erc32: fix linking against local readline on modern (ncurses) systems
Mike Frysinger [Sat, 31 Dec 2011 07:06:47 +0000 (07:06 +0000)]
sim: erc32: fix linking against local readline on modern (ncurses) systems

The current erc32 configure script only searches for -ltermcap to provide
any termcap funcs (which readlines needs).  When building against a local
readline (which is static), we hit link failures like so:
  gcc ...-I/-D flags... -o sis \
    sis.o exec.o erc32.o func.o help.o float.o \
    ../../bfd/libbfd.a ../../opcodes/libopcodes.a \
    ../../libiberty/libiberty.a -lz -lnsl \
    ../../readline/libreadline.a -lm
  ../../readline/libreadline.a(display.o): In function 'cr':
  .../readline/display.c:2486: undefined reference to 'tputs'
  collect2: ld returned 1 exit status
  make[2]: *** [sis] Error 1

Use AC_SEARCH_LIBS from gdb's configure.ac as suggested by Joel Brobecker
to check for additional termcap providers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Sat, 31 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 30 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoFixing previous Changelog entry (removing the unnecessary "gdb/testsuite/" line
Edjunior Barbosa Machado [Fri, 30 Dec 2011 14:30:39 +0000 (14:30 +0000)]
Fixing previous Changelog entry (removing the unnecessary "gdb/testsuite/" line
and adding the missing period)

12 years ago2011-12-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
Edjunior Barbosa Machado [Fri, 30 Dec 2011 14:11:57 +0000 (14:11 +0000)]
2011-12-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>

gdb/testsuite/
* gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64
* gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support
is not enabled.

12 years agosim: cr16: add ifdefs around undefined syscalls
Mike Frysinger [Fri, 30 Dec 2011 09:12:36 +0000 (09:12 +0000)]
sim: cr16: add ifdefs around undefined syscalls

The cr16 libgloss port does not define these syscall numbers, so trying
to use them results in build failures [1].  The cr16 code already uses
ifdefs around a bunch of syscalls, so extend that style to cover the
ones that are currently missing.  Now we can at least compile.

[1] http://sourceware.org/ml/gdb-patches/2011-06/msg00118.html
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Fri, 30 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 29 Dec 2011 23:00:07 +0000 (23:00 +0000)]
daily update

12 years agoadjust mach-o default GAS sections.
Iain Sandoe [Thu, 29 Dec 2011 10:53:10 +0000 (10:53 +0000)]
adjust mach-o default GAS sections.

gas:

* as.c (perform_an_assembly_pass): Do not create text, data and bss
sections for MACH-O.  Do not switch to the text section.
* config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Forward decl.
(mach_o_begin): Startup with only text section unless suppressed.
* config/obj-macho.h (obj_begin): define to mach_o_begin ().

gas/testsuite:

* gas/mach-o/sections-1.d: Amend to recognize that bss is not emitted
by default.
* gas/mach-o/sections-2.d: New.

12 years ago * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.
Ian Lance Taylor [Thu, 29 Dec 2011 01:53:00 +0000 (01:53 +0000)]
* dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.

12 years ago*** empty log message ***
gdbadmin [Thu, 29 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 28 Dec 2011 23:00:08 +0000 (23:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Wed, 28 Dec 2011 18:45:46 +0000 (18:45 +0000)]
gdb/
* gdbarch.sh (max_insn_length): Extend the comment by unit.
* gdbarch.h: Regenerate.