external/binutils.git
14 years ago * infrun.c (prepare_for_detach): In non-stop, context switch to
Pedro Alves [Sat, 1 May 2010 15:56:52 +0000 (15:56 +0000)]
* infrun.c (prepare_for_detach): In non-stop, context switch to
the thread that got the event before handling the event.

14 years ago * linux-low.c (linux_enable_event_reporting): New.
Pedro Alves [Sat, 1 May 2010 15:46:26 +0000 (15:46 +0000)]
* linux-low.c (linux_enable_event_reporting): New.
(linux_wait_for_event_1, handle_extended_wait): Use it.

14 years agodaily update
Alan Modra [Sat, 1 May 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 1 May 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * linux-low.c (linux_kill_one_lwp, linux_kill)
Pedro Alves [Fri, 30 Apr 2010 21:36:45 +0000 (21:36 +0000)]
* linux-low.c (linux_kill_one_lwp, linux_kill)
(linux_detach_one_lwp): Adjust to send_sigstop interface change.
(send_sigstop): Take an lwp_info as parameter instead.  Queue a
SIGSTOP even if the LWP is stopped.
(send_sigstop_callback): New.
(stop_all_lwps): Use send_sigstop_callback instead.
(linux_resume_one_thread): Adjust.
(proceed_one_lwp): Still proceed an LWP that the client has
requested to stop, if we haven't reported it as stopped yet.  Make
sure that LWPs the client want stopped, have a pending SIGSTOP.

14 years agoAdd a missing `"'.
H.J. Lu [Fri, 30 Apr 2010 19:30:55 +0000 (19:30 +0000)]
Add a missing `"'.

2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/dlltool.exp: Add a missing `"'.

14 years agoRemove relocation against discarded sections for relocatable link.
H.J. Lu [Fri, 30 Apr 2010 18:27:32 +0000 (18:27 +0000)]
Remove relocation against discarded sections for relocatable link.

bfd/

2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11542
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.

* elf32-i386.c (elf_i386_relocate_section): Use it.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.

ld/testsuite/

2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11542
* ld-elf/discard.ld: New.
* ld-elf/discard1.d: Likewise.
* ld-elf/discard1.s: Likewise.
* ld-elf/discard2.d: Likewise.
* ld-elf/discard2.s: Likewise.
* ld-elf/discard3.d: Likewise.

14 years ago * symtab.c (symbol_set_names): Fix typo.
Tom Tromey [Fri, 30 Apr 2010 17:43:55 +0000 (17:43 +0000)]
* symtab.c (symbol_set_names): Fix typo.

14 years ago * python/py-param.c (parm_constants): Avoid ARI warning
Pierre Muller [Fri, 30 Apr 2010 16:22:42 +0000 (16:22 +0000)]
* python/py-param.c (parm_constants): Avoid ARI warning
by adding ARI comment.
(parmpy_init): Likewise.

14 years ago * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
Pierre Muller [Fri, 30 Apr 2010 15:38:42 +0000 (15:38 +0000)]
* windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
and created type for re-use.

14 years agobfd/
Tristan Gingold [Fri, 30 Apr 2010 12:44:51 +0000 (12:44 +0000)]
bfd/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (vms_read_block): New function.
(vms_traverse_index): Use vms_read_block.  Handle long key names.

include/vms/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_kbn): New structure.

14 years agobfd/
Tristan Gingold [Fri, 30 Apr 2010 09:40:42 +0000 (09:40 +0000)]
bfd/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
and syms removed.
(struct carsym_mem): New structure.
(vms_add_index): New function.
(vms_add_indexes_from_list): New function.
(vms_traverse_index): Parameter carsym changed to carsym_mem.
Code adjusted to handle elfidx.
(vms_lib_read_index): Adjusted for vms_traverse_index changes.
Parameter NBREL is now a pointer.
(_bfd_vms_lib_archive_p): Adjust for above change.  Handle ia64
archives.
(_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
(_bfd_vms_lib_find_symbol): Ditto.
(vms_lib_bopen): Fix two typos: return FALSE in case of error,
check MHD id.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
changes of _bfd_vms_lib_find_symbol.

include/vms
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* lbr.h (LBR__C_TYP_ISHSTB): Added.
(LHD_SANEID4): Renamed to ...
(LHD_SANEID6): ...  this.
(LBR_MAJORID, LBR_ELFMAJORID): New macros.
(struct vms_rfa): New structure.
(struct vms_idxdef): Renamed to ...
(struct vms_idx): ... this.
(struct vms_idxdef2): Renamed to ...
(struct vms_elfidx): ... this.
(ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New
macros.
(struct vms_lhs, struct vms_lns): New structures.
(struct vms_mhd): Add missing fields.
(MHD__C_MHDLEN): New macro.

14 years ago * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
Pierre Muller [Fri, 30 Apr 2010 07:04:52 +0000 (07:04 +0000)]
* NEWS: Mention gdbserver support for x86_64 Windows 64-bit.

14 years ago*** empty log message ***
gdbadmin [Fri, 30 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 30 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * ser-base.h (reschedule): Delete prototype.
Doug Evans [Thu, 29 Apr 2010 22:51:04 +0000 (22:51 +0000)]
* ser-base.h (reschedule): Delete prototype.
* ser-base.c (reschedule): Make static.

14 years ago*** empty log message ***
Matthew Gretton-Dann [Thu, 29 Apr 2010 16:34:25 +0000 (16:34 +0000)]
*** empty log message ***

14 years ago PR gdb/11557
Pedro Alves [Thu, 29 Apr 2010 16:33:16 +0000 (16:33 +0000)]
PR gdb/11557

gdb/
* regcache.c (registers_changed): Rename to ...
(registers_changed_ptid): ... this, and only delete register cache
entries matching the ptid filter argument.
(registers_changed): Reimplement on top of registers_changed_ptid.
* regcache.h (registers_changed_ptid): Declare.
* target.c (target_resume): Flush register caches.

gdb/testsuite/
* gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New
files.

14 years agoFix typo in ChangeLog name (non-UTF8 character).
Joel Brobecker [Thu, 29 Apr 2010 16:03:32 +0000 (16:03 +0000)]
Fix typo in ChangeLog name (non-UTF8 character).

Seems to have been inserted accidently.

14 years ago2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 29 Apr 2010 15:45:57 +0000 (15:45 +0000)]
2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>

        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
        (SUBDIR_PYTHON_SRCS): Likewise.
        (py-parameter.o): New rule.
        * python/py-parameter.c: New file.
        * python/python-internal.h (gdbpy_initialize_parameter)
        (gdbpy_parameter, gdbpy_parameter_value)
        (gdbpy_parse_command_name): Declare.
        * python/py-cmd.c (parse_command_name): Rename to
        gdbpy_parse_command_name.
        (gdbpy_parse_command_name): Accept a starting list parameter and
        use over cmdlist.
        (cmdpy_init): Use gdbpy_parse_command_name.
        * python/python.c (parameter_to_python): Rename to
        gdbpy_parameter_to_python.  Accept enum var_types and value.
        (gdbpy_parameter): Use gdbpy_parameter_value.
        (_initialize_python): Call gdbpy_initialize_parameters.

2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>

        * gdb.python/py-param.exp: New File.

2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>

        * gdb.texinfo (Parameters In Python): New Node.

14 years ago * gdb/MAINTAINERS: Add myself for write after approval privileges.
Matthew Gretton-Dann [Thu, 29 Apr 2010 14:55:38 +0000 (14:55 +0000)]
* gdb/MAINTAINERS: Add myself for write after approval privileges.

14 years agoD language support.
Joel Brobecker [Thu, 29 Apr 2010 14:45:39 +0000 (14:45 +0000)]
D language support.

gdb/ChangeLog:

        D language support.
        * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
        (COMMON_OBS): Add d-lang.o d-valprint.o.
        (HFILES_NO_SRCDIR): Add d-lang.h.
        * NEWS: Mention D language support.
        * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
        * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
        * d-lang.c: New file.
        * d-lang.h: New file.
        * d-valprint.c: New file.
        * defs.h (enum language): Add language_d.
        * dwarf2read.c (set_cu_language): Add DW_LANG_D.
        * language.c (binop_result_type, integral_type, character_type)
        (string_type, boolean_type, structured_type): Add language_d.
        * symfile.c (init_filename_language_table): Add language_d.
        * symtab.c: Include d-lang.h.
        (symbol_init_language_specific, symbol_find_demangled_name)
        (symbol_natural_name, lookup_symbol_in_language)
        (symbol_demangled_name, symbol_matches_domain): Add language_d.

gdb/doc/ChangeLog:

        * gdb.texinfo: (Summary) Add mention about D language support.
        (Filenames): Add D suffixes.
        (D): New node.

gdb/testsuite/ChangeLog:

        * gdb.base/default.exp: Fix "set language" test.

14 years ago * write.c (fixup_segment): Do not assume we know the section a
Nick Clifton [Thu, 29 Apr 2010 14:44:15 +0000 (14:44 +0000)]
    * write.c (fixup_segment): Do not assume we know the section a
        defined weak symbol is in.
        * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat
        weak symbols as not known to be in the same section, even if they
        are defined.

        * gas/arm/weakdef-1.s: New.
        * gas/arm/weakdef-1.d: New.
        * gas/arm/weakdef-2.s: New.
        * gas/arm/weakdef-2.d: New.
        * gas/arm/weakdef-2.l: New.

14 years ago*** empty log message ***
gdbadmin [Thu, 29 Apr 2010 00:00:09 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 29 Apr 2010 00:00:08 +0000 (00:00 +0000)]
daily update

14 years ago2010-04-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 28 Apr 2010 15:24:22 +0000 (15:24 +0000)]
2010-04-27  Kai Tietz  <kai.tietz@onevision.com>

        * pe-dll.c (_nm_-symbols): Use always underscored variant
        for symbols.
        (__imp_-symbols): Likewise.
        (___imp_-symbols): Likewise.
        * NEWS: Mention ABI change for x64 PE-COFF.

PS: Sorry, missed this part of approved patch.

14 years ago2010-04-28 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 28 Apr 2010 07:59:49 +0000 (07:59 +0000)]
2010-04-28  Kai Tietz  <kai.tietz@onevision.com>

        * config.bfd: Correct accidential reverted patch
        about vax*-*-*vms*.

14 years ago*** empty log message ***
gdbadmin [Wed, 28 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 28 Apr 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agogas:
Joseph Myers [Tue, 27 Apr 2010 23:43:25 +0000 (23:43 +0000)]
gas:
* config/tc-tic6x.h (tic6x_label_list): New.
(tic6x_segment_info_type): Keep a list of labels and a current
frag instead of a boolean for whether labels seen and a count of
instructions.
(tic6x_frag_info, TC_FRAG_TYPE, TC_FRAG_INIT, tic6x_frag_init,
md_do_align, tic6x_do_align, md_end, tic6x_end): New.
* config/tc-tic6x.c (tic6x_frob_label): Put label on list.
(tic6x_cleanup): Correct comment.
(tic6x_free_label_list): New.
(tic6x_cons_align): Free label list and update for
tic6x_segment_info_type changes.
(tic6x_do_align): New.
(md_assemble): Handle list of labels and saved frag for execute
packet.  Create machine-dependent frag for new execute packet and
adjust labels accordingly.
(tic6x_adjust_section, tic6x_frag_init, tic6x_end): New.
(md_convert_frag, md_estimate_size_before_relax): Update comments.

gas/testsuite:
* gas/tic6x/align-1-be.d, gas/tic6x/align-1.d,
gas/tic6x/align-1.s, gas/tic6x/align-2.d, gas/tic6x/align-2.s:
New.

14 years agoFix author list for one of the patches.
Joel Brobecker [Tue, 27 Apr 2010 21:06:28 +0000 (21:06 +0000)]
Fix author list for one of the patches.

I was the committer, not the author.

14 years agoExpand description of solib-svr4.c:solib_svr4_r_map
Joel Brobecker [Tue, 27 Apr 2010 21:02:11 +0000 (21:02 +0000)]
Expand description of solib-svr4.c:solib_svr4_r_map

2010-04-27  Joel Brobecker  <brobecker@adacore.com>

        * solib-svr4.c (solib_svr4_r_map): Expand function description.

14 years agoAssociate .dg files to Ada
Joel Brobecker [Tue, 27 Apr 2010 21:01:57 +0000 (21:01 +0000)]
Associate .dg files to Ada

The .dg files are files containing the user's code, after the GNAT
expander was applied.  The expansion replaces some of the complex
features by simpler pseudo-Ada code and the user can ask to see and
debug that code using the -gnatDG option...

For instance, given the following code where Circle is a tagged type
(aka as a class type in C++):

    procedure Foo is
       My_Shape : Circle := (X => 1, Y => 2, R => 3);
       X : Integer;
    begin
       X := Position_X (My_Shape);
    end Foo;

The expansion results in:

    procedure foo is
       my_shape : pck__circle := (
          _parent => (
             _tag => pck__circleP,
             x => 1,
             y => 2),
          r => 3);
       x : integer;
    begin
       x := pck__position_x (my_shape);
       return;
    end foo;

2010-04-27  Joel Brobecker  <brobecker@adacore.com>

        * symfile.c (init_filename_language_table): Register .dg files
        with language_ada.

14 years agoDocument special use of target_type field in Ada structs.
Joel Brobecker [Tue, 27 Apr 2010 21:01:45 +0000 (21:01 +0000)]
Document special use of target_type field in Ada structs.

This is a comment that I wrote not too long ago, I believe, as part
of a submission process, and somehow did not get to commit.  It explains
how the TYPE_TARGET_TYPE is used by Ada in the case of dynamic records/
unions.

2010-04-24  Joel Brobecker  <brobecker@adacore.com>

        * gdbtypes.h (struct main_type): Expand comment about target_type
        field.

14 years agoCheck library name rather than member name when rereading symbols.
Joel Brobecker [Tue, 27 Apr 2010 21:01:30 +0000 (21:01 +0000)]
Check library name rather than member name when rereading symbols.

On Darwin, we have lots of complaints being emitted when restarting
a program:

    (gdb) start
    `a-except.o' has disappeared; keeping its symbols.
    `unwind-dw2.o' has disappeared; keeping its symbols.
    `s-except.o' has disappeared; keeping its symbols.
    `s-traceb.o' has disappeared; keeping its symbols.

These object files are part of the GNAT runtime, and were never available.
The warning comes from the fact that we're checking whether the .o files
in the GNAT shared runtime have changed whereas we should be checking
whether the GNAT shared library itself has changed.

This patch implements this.  Although it is really only useful on a platform
such as Darwin (debug info stored in .o files), we believe that this is
the right thing to do in general.  This change should be a noop for all
the other platforms in any case.

gdb/ChangeLog (from Tristan Gingold & Pedro Alves):

        * symfile.c (reread_symbols): Also search for file in libraries.
        Update comment.

Tested on x86_64-darwin and x86_64-linux.

14 years agoAdd support for x86-lynxos cross debugger (as bareboard x86).
Joel Brobecker [Tue, 27 Apr 2010 21:01:14 +0000 (21:01 +0000)]
Add support for x86-lynxos cross debugger (as bareboard x86).

This is a fairly simple patch that we have had for a while.  LynxOS has
relatively few features, from a GDB perspective, and we've been using
a bareboard x86 debugger as our LynxOS cross-debugger.  So here is a patch
that make x86-lynxos an alias of bareboard x86.

On the other end of things, I'm still working on gdbserver support
for LynxOS - I'm just lacking the time to make significant progress.
But this is in the works (in the meantime, we're using gdbserver from
gdb-6.8 which is derived work from LinuxWorks' patch).

I wasn't sure whether this would be interesting or not for the FSF tree,
but since it's simple and unintrusive, I am suggesting it now... Any
objection?  I wasn't sure whether it warranted a NEWS entry either, since
it doesn't really add a new port, just an alias.  I suggest the NEWS entry
when I'm finally done with the gdbserver port.

gdb/ChangeLog:

        * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
        in terms of configuration.

14 years agogdb/
Jan Kratochvil [Tue, 27 Apr 2010 20:07:01 +0000 (20:07 +0000)]
gdb/
* objfiles.c: Include solist.h.
(free_all_objfiles): New variable so.  Check stale solist objfiles.
* symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
and no_shared_libraries.

14 years ago2010-04-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 27 Apr 2010 17:28:15 +0000 (17:28 +0000)]
2010-04-27  Kai Tietz  <kai.tietz@onevision.com>

* dlltool.c (main): Query for bfd's underscoring default for
default target case.

2010-04-27  Kai Tietz  <kai.tietz@onevision.com>

* binutils-all/dlltool.exp: Allow test for
arm-wince-pe target.

14 years ago2010-04-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 27 Apr 2010 17:26:09 +0000 (17:26 +0000)]
2010-04-27  Kai Tietz  <kai.tietz@onevision.com>

* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
to USE_MINGW64_LEADING_UNDERSCORES.
        * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
* config.bfd: Change underscoring default for x64 mingw
to false.
* coffcode.h (coff_write_relocs): Add check that dereferenced
sym_ptr_ptr isn't NULL.
* config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
* configure: Regenerated.
* configure.in: Add option '--enable-leading-mingw64-underscores'
and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.

14 years agoARI warning fix.
Joel Brobecker [Tue, 27 Apr 2010 16:36:02 +0000 (16:36 +0000)]
ARI warning fix.

        * python/py-auto-load.c (source_section_scripts): Remove trailing
        new-line in i18n string.

14 years agoProperly install gold/ld as default cross linker.
H.J. Lu [Tue, 27 Apr 2010 16:05:54 +0000 (16:05 +0000)]
Properly install gold/ld as default cross linker.

gold/

2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (install-exec-local): Properly install gold as
default cross linker.
* Makefile.in: Regenerated.

ld/

2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (install-exec-local): Properly install ld as
default cross linker.
* Makefile.in: Regenerated.

14 years ago PR gprof/11524
Nick Clifton [Tue, 27 Apr 2010 14:46:09 +0000 (14:46 +0000)]
    PR gprof/11524
        * corefile.c (core_create_syms_from): Use correct size of buffer.

14 years ago PR binutils/11512
Nick Clifton [Tue, 27 Apr 2010 14:42:50 +0000 (14:42 +0000)]
    PR binutils/11512
        * coffgen.c (coff_find_nearest_line): Incldue the section address
        of function name symbols in address comparisons.

14 years agoUpdated French and Russian translations.
Nick Clifton [Tue, 27 Apr 2010 14:28:40 +0000 (14:28 +0000)]
Updated French and Russian translations.

14 years ago * configure.ac (--enable-gold): Support both, both/gold and
Nick Clifton [Tue, 27 Apr 2010 14:24:37 +0000 (14:24 +0000)]
    * configure.ac (--enable-gold): Support both, both/gold and
        both/bfd to add gold to configdirs without removing ld.
        * configure: Regenerated.

        * Makefile.def: Add install-gold dependency to install-ld.
        * Makefile.in: Regenerated.

14 years agogold:
Nick Clifton [Tue, 27 Apr 2010 14:12:32 +0000 (14:12 +0000)]
gold:
        * configure.ac (install_as_default): Define and set to false
        unless --enable-gold or --enable-gold=both/gold has been
        specified.
        * configure: Regenerate.

        * Makefile.am (install-exec-local): Install the executable as
        'ld.gold'.  If install_as_default is true then also install it as
        'ld'.
        * Makefile.in: Regenerated.
ld:
        * configure.in (install_as_default): Define and set to true
        unless --enable-gold=both/gold has been specified.
        * configure: Regenerate.

        * Makefile.am (transform): Use ld.bfd as the default name of
        the linker.
        (install-exec-local): Also install the executable as a binary
        named 'ld' if install_as_default is true.
        * Makefile.in: Regenerate.

14 years ago*** empty log message ***
gdbadmin [Tue, 27 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 27 Apr 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * server.c (handle_general_set): Make static.
Doug Evans [Mon, 26 Apr 2010 22:02:33 +0000 (22:02 +0000)]
* server.c (handle_general_set): Make static.

14 years ago * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
Doug Evans [Mon, 26 Apr 2010 21:45:50 +0000 (21:45 +0000)]
* serial.c (serial_write): Handle serial_debug_p akin to serial_read.

14 years ago PR breakpoints/11531.
Pierre Muller [Mon, 26 Apr 2010 20:49:28 +0000 (20:49 +0000)]
PR breakpoints/11531.
* gdb.base/gdb11531.c: New file.
* gdb.base/gdb11531.exp: New file.

14 years agogdb
Tom Tromey [Mon, 26 Apr 2010 18:37:14 +0000 (18:37 +0000)]
gdb
* cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
command list.
gdb/testsuite
* gdb.base/completion.exp: Add tests for completion and deprecated
commands.

14 years agomerge from gcc
DJ Delorie [Mon, 26 Apr 2010 18:04:23 +0000 (18:04 +0000)]
merge from gcc

14 years ago * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
Doug Evans [Mon, 26 Apr 2010 17:38:07 +0000 (17:38 +0000)]
* remote-utils.c (putpkt_binary_1): Call readchar instead of read.
Print received char after testing for error/eof instead of before.
(input_interrupt): Tweak comment.

14 years agosim: unify target->subdir handling for default tests
Mike Frysinger [Mon, 26 Apr 2010 16:23:24 +0000 (16:23 +0000)]
sim: unify target->subdir handling for default tests

The testsuite subdir has a note about unifying the target->subdir logic,
so do just that.  The end goal here is to have `make check` work out of
the box without having to delve into dejagnu internals.

The target-specific logic is split out of the top level configure.ac file
and into a dedicated configure.tgt similar to other subprojects (gdb and
ld and etc...) with the difference that this file has to be included at
the m4 level instead of the shell level.  This is necessary only because
autoconf requires AC_CONFIG_SUBDIRS be given a string literal and not a
variable value.

Then the toplevel and the testsuite configure files pull this in, the sim
subdir gets expanded into testsuite/site.exp, and the default sim run code
uses this info to set the sim path to the local compiled run file if it
hasn't already been specified.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agogdb/testsuite/
Jan Kratochvil [Mon, 26 Apr 2010 15:49:11 +0000 (15:49 +0000)]
gdb/testsuite/
* gdb.pascal/gdb11492.exp (print integer_array, print /d char_array)
(print /x char_array): Escape curly brackets.

14 years ago *Fix ChangeLog entry
Pierre Muller [Mon, 26 Apr 2010 13:58:42 +0000 (13:58 +0000)]
 *Fix ChangeLog entry

14 years ago Removal of config/i386/nm-i386sol2.h native configuration file.
Pierre Muller [Mon, 26 Apr 2010 13:53:57 +0000 (13:53 +0000)]
Removal of config/i386/nm-i386sol2.h native configuration file.
* config/i386/nm-i386sol2.h: Remove file.
* config/i386/i386sol2.mh: Remove NAT_FILE definition.
* config/i386/sol2-64.mh: Idem.
* config/djgpp/fnchange.lst: Idem.
* Makefile.in (HFILES_NO_SRCDIR): Remove reference to that file.

14 years ago PR breakpoints/11531.
Pierre Muller [Mon, 26 Apr 2010 12:01:44 +0000 (12:01 +0000)]
PR breakpoints/11531.
* config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
macro definition and related comment.
* infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
(resume): Remove code and comment related to this macro.

doc ChangeLog entry:
* gdbint.texinfo (CANNOT_STEP_HW_WATCHPOINTS): Remove explanation
of macro deleted from GDB code.

14 years agogdb/
Jan Kratochvil [Mon, 26 Apr 2010 09:30:10 +0000 (09:30 +0000)]
gdb/
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
Fix whitespace.

14 years ago*** empty log message ***
gdbadmin [Mon, 26 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 26 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sun, 25 Apr 2010 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 25 Apr 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years agoRestore "call|jmp [xtrn]" in x86 assembler.
H.J. Lu [Sat, 24 Apr 2010 17:41:04 +0000 (17:41 +0000)]
Restore "call|jmp [xtrn]" in x86 assembler.

gas/

2010-04-24  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11535
* config/tc-i386-intel.c (intel_state): Add is_indirect.
(i386_intel_operand): Initialize intel_state.is_indirect.  Check
intel_state.is_indirect for "call|jmp [symbol]".

gas/testsuite/

2010-04-24  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11535
* gas/i386/intelok.s: Add tests for "call|jmp [xtrn]".
* gas/i386/intelok.d: Updated.

14 years ago * layout.cc (Layout::layout_reloc): In relocatable link don't
Ian Lance Taylor [Sat, 24 Apr 2010 14:32:23 +0000 (14:32 +0000)]
* layout.cc (Layout::layout_reloc): In relocatable link don't
combine reloc sections for grouped sections.

14 years ago * defs.h: Adjust comment.
Pedro Alves [Sat, 24 Apr 2010 13:12:56 +0000 (13:12 +0000)]
* defs.h: Adjust comment.
* filesystem.h, filesystem.c: New files.
* Makefile.in (SFILES): Add filesystem.c.
(COMMON_OBS): Add filesystem.o.
* solib.c (solib_find): Handle DOS-based filesystems.  Handle
different target and host path flavours.
* arm-symbian-tdep.c (arm_symbian_init_abi): Set
has_dos_based_file_system on the gdbarch.
* arm-wince-tdep.c (arm_wince_init_abi): Ditto.
* i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
* i386-tdep.c (i386_go32_init_abi): Ditto.
* gdbarch.sh (has_dos_based_file_system): New.
* gdbarch.h, gdbarch.c: Regenerate.
* NEWS: Mention improved support for remote targets with DOS-based
filesystems.  Mention new `set/show target-file-system-kind'
commands.

gdb/doc/
* gdb.texinfo (Commands to specify files): Describe what how GDB
looks up DOS-based filesystem paths on the system root.  Document
the new `set/show target-file-system-kind' commands.

14 years agoinclude/elf/
Alan Modra [Sat, 24 Apr 2010 01:05:25 +0000 (01:05 +0000)]
include/elf/
* internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses.
Invert logic to clarify test for .tbss.
(ELF_IS_SECTION_IN_SEGMENT): Rename to..
(ELF_SECTION_IN_SEGMENT_1): ..this.  Add check_vma param.  Protect
macro args with parentheses.
(ELF_SECTION_IN_SEGMENT): Define.
(ELF_IS_SECTION_IN_SEGMENT_FILE): Delete.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete.
bfd/
* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
throughout file.
(assign_file_positions_for_load_sections): Modify section in
segment warning to ignore overlay vmas.
* elf32-spu.c (spu_elf_object_p): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
binutils/
* readelf.c (process_program_headers): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.

14 years agomerge from gcc
DJ Delorie [Sat, 24 Apr 2010 01:03:21 +0000 (01:03 +0000)]
merge from gcc

14 years ago * server.c (start_inferior): Print inferior argv if --debug.
Doug Evans [Sat, 24 Apr 2010 00:58:43 +0000 (00:58 +0000)]
* server.c (start_inferior): Print inferior argv if --debug.

14 years agodaily update
Alan Modra [Sat, 24 Apr 2010 00:00:07 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 24 Apr 2010 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2010-04-23 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 23 Apr 2010 23:51:05 +0000 (23:51 +0000)]
2010-04-23  Stan Shebs  <stan@codesourcery.com>

* ax.h (struct agent_expr): Merge in agent_reqs fields, add some
comments.
(struct agent_reqs): Remove.
(ax_reg_mask): Declare.
* ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
(free_agent_expr): Free reg_mask.
(ax_print): Add scope and register mask info.
(ax_reqs): Remove agent_reqs argument, use agent expression
fields, and move part of register mask computation to...
(ax_reg_mask): New function.
* ax-gdb.c (gen_trace_static_fields): Call it.
(gen_traced_pop): Ditto.
(is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
(gen_trace_for_var): Pass gdbarch to new_agent_expr.
(gen_trace_for_expr): Ditto, and clear optimized_out flag.
(gen_eval_for_expr): Ditto, and require an rvalue.
(agent_command): Call ax_reqs.
(agent_eval_command): Ditto.
* tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
(validate_action_line): Ditto.
(collect_symbol): Ditto.
(encode_actions_1): Ditto.

14 years agogdb/
Jan Kratochvil [Fri, 23 Apr 2010 21:44:20 +0000 (21:44 +0000)]
gdb/
Fix deadlock on looped list of loaded shared objects.
* solib-svr4.c (LM_PREV): New function.
(IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
(svr4_current_sos): Check for correct l_prev.  New variables prev_lm
and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
* config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.

gdb/testsuite/
Fix deadlock on looped list of loaded shared objects.
* gdb.base/solib-corrupted.exp: New.

14 years ago2010-04-23 Sriraman Tallam <tmsriram@google.com>
Sriraman Tallam [Fri, 23 Apr 2010 18:49:23 +0000 (18:49 +0000)]
2010-04-23  Sriraman Tallam  <tmsriram@google.com>

* gc.h (gc_process_relocs): Pass information on relocs pointing to
sections that are not ordinary to icf.
* icf.cc (get_section_contents): Handle relocation pointing to section
with no object or shndx information.
* testsuite/Makefile.am: Remove icf_virtual_function_folding_test.sh
* testsuite/Makefile.in: Regenerate.
* testsuite/icf_virtual_function_folding_test.cc: Remove printf.
* testsuite/icf_virtual_function_folding_test.sh: Delete file.

14 years ago * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
Doug Evans [Fri, 23 Apr 2010 18:09:16 +0000 (18:09 +0000)]
* configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
python.
* configure: Regenerate.
* main.c: #include "python/python.h".
(captured_main): Defer loading auto-loaded scripts until after
local_gdbinit has been sourced.
* python/py-auto-load.c (gdbpy_global_auto_load): New global.
(load_auto_scripts_for_objfile): New function.
(auto_load_new_objfile): Call it.
* python/python.h (gdbpy_global_auto_load): Declare.
(load_auto_scripts_for_objfile): Declare.

14 years ago Add support for auto-loading scripts from .debug_gdb_scripts section.
Doug Evans [Fri, 23 Apr 2010 18:03:31 +0000 (18:03 +0000)]
Add support for auto-loading scripts from .debug_gdb_scripts section.
* NEWS: Add entry for .debug_gdb_scripts.
* Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
(SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
(py-auto-load.o): New rule.
* cli/cli-cmds.c (find_and_open_script): Make externally visible.
* cli/cli-cmds.h (find_and_open_script): Update prototype.
* python/py-auto-load.c: New file.
* python/python-internal.h: #include <stdio.h>.
(set_python_list, show_python_list): Declare.
(gdbpy_initialize_auto_load): Declare.
(source_python_script_for_objfile): Declare.
* python/python.c: Remove #include of observer.h.
(gdbpy_auto_load): Moved to py-auto-load.c.
(GDBPY_AUTO_FILENAME): Ditto.
(gdbpy_new_objfile): Delete.
(source_python_script_for_objfile): New function.
(set_python_list, show_python_list): Make externally visible.
(_initialize_python): Move "auto-load" command to py-auto-load.c
and observer_attach_new_objfile to py-auto-load.c.

doc/
* gdb.texinfo (Python): Move Auto-loading section here ...
(Python API): from here.
(Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts.
(Maintenance Commands): Add docs for "maint print section-scripts".

testsuite/
* gdb.python/py-section-script.c: New file.
* gdb.python/py-section-script.exp: New file.
* gdb.python/py-section-script.py: New file.

14 years ago Add support for auto-loading scripts from .debug_gdb_scripts section.
Doug Evans [Fri, 23 Apr 2010 16:20:13 +0000 (16:20 +0000)]
Add support for auto-loading scripts from .debug_gdb_scripts section.
* NEWS: Add entry for .debug_gdb_scripts.
* Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
(SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
(py-auto-load.o): New rule.
* cli/cli-cmds.c (find_and_open_script): Make externally visible.
* cli/cli-cmds.h (find_and_open_script): Update prototype.
* python/py-auto-load.c: New file.
* python/python-internal.h: #include <stdio.h>.
(set_python_list, show_python_list): Declare.
(gdbpy_initialize_auto_load): Declare.
(source_python_script_for_objfile): Declare.
* python/python.c: Remove #include of observer.h.
(gdbpy_auto_load): Moved to py-auto-load.c.
(GDBPY_AUTO_FILENAME): Ditto.
(gdbpy_new_objfile): Delete.
(source_python_script_for_objfile): New function.
(set_python_list, show_python_list): Make externally visible.
(_initialize_python): Move "auto-load" command to py-auto-load.c
and observer_attach_new_objfile to py-auto-load.c.

doc/
* gdb.texinfo (Python): Move Auto-loading section here ...
(Python API): from here.
(Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts.
(Maintenance Commands): Add docs for "maint print section-scripts".

testsuite/
* gdb.python/py-section-script.c: New file.
* gdb.python/py-section-script.exp: New file.
* gdb.python/py-section-script.py: New file.

14 years agosim: fix fpu missing initializer warnings
Mike Frysinger [Fri, 23 Apr 2010 15:39:15 +0000 (15:39 +0000)]
sim: fix fpu missing initializer warnings

The current fpu code with externals enabled results in the warnings:
common/sim-fpu.c:2437: warning: missing initializer
common/sim-fpu.c:2437: warning: (near initialization for 'sim_fpu_zero.sign')
common/sim-fpu.c:2440: warning: missing initializer
common/sim-fpu.c:2440: warning: (near initialization for 'sim_fpu_qnan.sign')

So tweak the old style initializers to avoid these.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
Jerome Guitton [Fri, 23 Apr 2010 15:14:22 +0000 (15:14 +0000)]
* alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
(OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
(lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
New constants.
(alpha_heuristic_analyze_probing_loop): New function.
(alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
and handle cases when a stack probe loop is generated.
* alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
(alpha_mdebug_max_frame_size_exceeded): New function.
(alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
(alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
Return 0 when the maximum debuggable frame size has been exceeded.

14 years agoFix ARI warning.
Joel Brobecker [Fri, 23 Apr 2010 12:36:05 +0000 (12:36 +0000)]
Fix ARI warning.

        * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.

14 years agoPR 10179
Chris Moller [Fri, 23 Apr 2010 12:08:07 +0000 (12:08 +0000)]
PR 10179
* symtab.c (rbreak_command): Added code to include a filename
specification in the rbreak argument.
* NEWS: Added a brief description of filename-qualified rbreak.
* gdb.base/Makefile.in (EXECUTABLES): Added pr10179.
* gdb.base/pr10179-a.c:
* gdb.base/pr10179-b.c:
* gdb.base/pr10179.exp: New files.
* gdb.texinfo (Setting Breakpoints): Added description of
filename-qualified rbreak.
* refcard.tex (Breakpoints and Watchpoints): Added brief
description of filename-qualified rbreak.

14 years ago * expression.cc (Expression::Expression_eval_info): Add
Ian Lance Taylor [Fri, 23 Apr 2010 04:47:33 +0000 (04:47 +0000)]
* expression.cc (Expression::Expression_eval_info): Add
result_alignment_pointer field.
(Expression::eval_with_dot): Add result_alignment_pointer
parameter.  Change all callers.
(Expression::eval_maybe_dot): Likewise.
(class Binary_expression): Add alignment_pointer parameter to
left_value and right_value.  Change all callers.
(BINARY_EXPRESSION): Set result alignment.
(class Trinary_expression): Add alignment_pointer parameter to
arg2_value and arg3_value.  Change all callers.
(Trinary_cond::value): Set result alignment.
(Max_expression::value, Min_expression::value): Likewise.
(Align_expression::value): Likewise.
* script-sections.cc (class Sections_element): Add dot_alignment
parameter to set_section_addresses virtual function.  Update
instantiations.
(class Output_section_element): Likewise.
(Script_sections::create_segments): Add dot_alignment parameter.
Change all callers.
(Script_sections::create_segments_from_phdrs_clause): Likewise.
(Script_sections::set_phdrs_clause_addresses): Likewise.
* script-sections.h: Update declarations.
* script.h: Update declarations.
* output.h (Output_segment::set_minimum_p_align): Don't decrease
min_p_align.
* testsuite/script_test_3.t: Set large alignment.
* testsuite/script_test_3.sh: Make sure that at least one LOAD
segment has expected alignment.

14 years ago*** empty log message ***
gdbadmin [Fri, 23 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 23 Apr 2010 00:00:07 +0000 (00:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Thu, 22 Apr 2010 23:15:43 +0000 (23:15 +0000)]
gdb/
Fix crashes on dangling display expressions.
* ada-lang.c (ada_operator_check): New function.
(ada_exp_descriptor): Fill-in the field operator_check.
* c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
* jv-lang.c (exp_descriptor_java): Likewise.
* m2-lang.c (exp_descriptor_modula2): Likewise.
* scm-lang.c (exp_descriptor_scm): Likewise.
* parse.c (exp_descriptor_standard): Likewise.
(operator_check_standard): New function.
(exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
* parser-defs.h (struct exp_descriptor): New field operator_check.
(operator_check_standard, exp_uses_objfile): New declarations.
* printcmd.c: Remove the inclusion of solib.h.
(display_uses_solib_p): Remove the function.
(clear_dangling_display_expressions): Call lookup_objfile_from_block
and exp_uses_objfile instead of display_uses_solib_p.
* solist.h (struct so_list) <objfile>: New comment.
* symtab.c (lookup_objfile_from_block): Remove the static qualifier.
* symtab.h (lookup_objfile_from_block): New declaration.
(struct general_symbol_info) <obj_section>: Extend the comment.

gdb/testsuite/
Fix crashes on dangling display expressions.
* gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG
is SEP.
(lib_flags): Remove the "debug" keyword.
(libsepdebug): New variable for iterating new loop.
(save_pf_prefix): New variable wrapping the loop.
(sep_lib_flags): New variable derived from LIB_FLAGS.  Use it.
* lib/gdb.exp (gdb_gnu_strip_debug): Document the return code.

14 years ago * gdb.threads/watchthreads.exp: Change to obtain consistent output.
Pierre Muller [Thu, 22 Apr 2010 22:29:01 +0000 (22:29 +0000)]
* gdb.threads/watchthreads.exp: Change to obtain consistent output.

14 years ago2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Thiago Jung Bauermann [Thu, 22 Apr 2010 22:26:36 +0000 (22:26 +0000)]
2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
(PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
Define, in case <ptrace.h> doesn't provide it.
(booke_debug_info): New variable.
(max_slots_number): Ditto.
(hw_break_tuple): New struct.
(thread_points): Ditto.
(ppc_threads): New variable.
(PPC_DEBUG_CURRENT_VERSION): New define.
(have_ptrace_new_debug_booke): New function.
(ppc_linux_check_watch_resources): Renamed to ...
(ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
(ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
(booke_cmp_hw_point): New function.
(booke_find_thread_points_by_tid): Ditto.
(booke_insert_point): Ditto.
(booke_remove_point): Ditto.
(ppc_linux_insert_hw_breakpoint): Ditto.
(ppc_linux_remove_hw_breakpoint): Ditto.
(get_trigger_type): Ditto.
(ppc_linux_insert_watchpoint): Handle BookE processors.
(ppc_linux_remove_watchpoint): Ditto.
(ppc_linux_new_thread): Ditto.
(ppc_linux_thread_exit): New function..
(ppc_linux_stopped_data_address): Handle BookE processors.
(ppc_linux_watchpoint_addr_within_range): Ditto.
(_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
to_remove_hw_breakpoint fields of the target operations struct.
Add observe for the thread_exit event.

14 years agoReformat.
H.J. Lu [Thu, 22 Apr 2010 20:42:04 +0000 (20:42 +0000)]
Reformat.

14 years agoRemove regmap from i386-linux-nat.c.
H.J. Lu [Thu, 22 Apr 2010 20:35:28 +0000 (20:35 +0000)]
Remove regmap from i386-linux-nat.c.

2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>

* i386-linux-nat.c (regmap): Removed.
(fetch_register): Replace regmap with
i386_linux_gregset_reg_offset.
(store_register): Likewise.
(supply_gregset): Likewise.
(fill_gregset): Likewise.

* i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
global.

* i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.

14 years ago* cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
Chris Moller [Thu, 22 Apr 2010 20:12:07 +0000 (20:12 +0000)]
* cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
method of popping recursion-detection stack with a method based on
obstack_object_size().  (Similar to the PR9167 patch below, but for
the static array obstack rather than the static member obstack.)

14 years agoRemove amd64_linux_gregset64_reg_offset.
H.J. Lu [Thu, 22 Apr 2010 20:02:55 +0000 (20:02 +0000)]
Remove amd64_linux_gregset64_reg_offset.

2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>

* amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
(_initialize_amd64_linux_nat): Replace
amd64_linux_gregset64_reg_offset with
amd64_linux_gregset_reg_offset.

* amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
global.

* amd64-tdep.h (amd64_linux_gregset_reg_offset): New.

14 years agogdb/doc/
Jan Kratochvil [Thu, 22 Apr 2010 16:32:43 +0000 (16:32 +0000)]
gdb/doc/
* gdb.texinfo (Data): New @menu reference to Pretty Printing.
(Python API): Change the reference to Pretty Printing API.
(Pretty Printing): Move the user part under the Data node.  Reformat
the sample output to 72 columns.  Create a new reference to Pretty
Printing API.  Rename the API part ...
(Pretty Printing API): To a new node name.
(Selecting Pretty-Printers, Progspaces In Python, Objfiles In Python)
(GDB/MI Variable Objects): Change references to Pretty Printing API.

14 years agoUpdated translation templates.
Nick Clifton [Thu, 22 Apr 2010 14:37:16 +0000 (14:37 +0000)]
Updated translation templates.
Updated Bulgarian translation.
Updated Finnish translations.
Updated French translations.
Updated Vietnamese translations.

14 years agoAdd icf_virtual_function_folding_test to check_PROGRAMS.
H.J. Lu [Thu, 22 Apr 2010 14:12:42 +0000 (14:12 +0000)]
Add icf_virtual_function_folding_test to check_PROGRAMS.

2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>

* testsuite/Makefile.am (check_PROGRAMS): Add
icf_virtual_function_folding_test.
* testsuite/Makefile.in: Regenerated.

14 years ago PR stabs/11479.
Pierre Muller [Thu, 22 Apr 2010 13:37:18 +0000 (13:37 +0000)]
PR stabs/11479.
* gdb.stabs/gdb11479.exp: New file.
* gdb.stabs/gdb11479.c: New file.

14 years ago * Remove unwanted space in set_length_in_type_chain parameterdeclaration
Pierre Muller [Thu, 22 Apr 2010 12:34:24 +0000 (12:34 +0000)]
 * Remove unwanted space in set_length_in_type_chain parameterdeclaration

14 years ago PR stabs/11479.
Pierre Muller [Thu, 22 Apr 2010 12:30:55 +0000 (12:30 +0000)]
PR stabs/11479.
* stabsread.c (set_length_in_type_chain): New function.
(read_struct_type): Call set_length_in_type_chain function.
(read_enum_type): Idem.

14 years ago2010-04-21 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Thu, 22 Apr 2010 04:14:15 +0000 (04:14 +0000)]
2010-04-21  Stan Shebs  <stan@codesourcery.com>
    Nathan Sidwell  <nathan@codesourcery.com>

* tracepoint.c (trace_save): Open in binary mode.

14 years ago2010-04-21 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Thu, 22 Apr 2010 04:09:25 +0000 (04:09 +0000)]
2010-04-21  Stan Shebs  <stan@codesourcery.com>

* gdb.texinfo (Tracepoint Actions): Mention synonymy of actions
  and commands.
(Listing Tracepoints): Update to reflect current behavior.