OSDN Git Service

pf3gnuchains/sourceware.git
14 years ago * write.c (fixup_segment): Do not assume we know the section a
nickc [Thu, 29 Apr 2010 23:44:13 +0000 (23: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 * dlfcn.cc (get_full_path_of_dll): Handle non-existent file.
corinna [Thu, 29 Apr 2010 22:03:30 +0000 (22:03 +0000)]
* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.

14 years ago * new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount
corinna [Thu, 29 Apr 2010 19:58:17 +0000 (19:58 +0000)]
* new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount
options.
* pathnames.sgml (mount-table): Ditto.
(pathnames-specialchars): Change description order.  Add paragraph
to explain new behaviour in terms of leading spaces and trailing dots
and spaces in pathnames.

14 years ago * utils.sgml (mount): Add description for "dos" and "ihash" mount
corinna [Thu, 29 Apr 2010 19:53:31 +0000 (19:53 +0000)]
* utils.sgml (mount): Add description for "dos" and "ihash" mount
options.

14 years ago * path.cc: Include sys/cygwin.h if built for mount(1).
corinna [Thu, 29 Apr 2010 19:39:35 +0000 (19:39 +0000)]
* path.cc: Include sys/cygwin.h if built for mount(1).
(struct opt): Add "dos" and "ihash" options.
(from_fstab_line): Call cygwin_internal rather than read_flags if
built for mount(1).

14 years ago * mount.cc (struct opt): Add "dos" and "ihash" options.
corinna [Thu, 29 Apr 2010 19:38:03 +0000 (19:38 +0000)]
* mount.cc (struct opt): Add "dos" and "ihash" options.
(fillout_mntent): Ditto.
* path.cc (path_conv::get_nt_native_path): Use path_conv's
has_dos_filenames_only method.
(path_conv::check): Add PATH_IHASH flag if FS has unreliable inode
numbers.
(symlink_info::check_shortcut): Or symlink flags to pflags.
(symlink_info::check_sysfile): Ditto.  Change test accordingly.
(symlink_info::check_reparse_point): Ditto.
(symlink_info::check_nfs_symlink): Ditto.
(symlink_info::check): Check PATH_DOS flag in call to get_nt_native_path
to utilize mount flag.  Ditto in test for potential restarting.  Set
PATH_DOS if FS only allows DOS filename rules.
* path.h (enum path_types): Add PATH_DOS and PATH_IHASH.
(path_conv::hasgood_inode): Check PATH_IHASH instead of
fs.hasgood_inode.
(path_conv::has_dos_filenames_only): New method.
* include/sys/mount.h (MOUNT_DOS): New mount flag.
(MOUNT_IHASH): Ditto.

14 years ago * mount.cc (oopts): Remove entirely.
corinna [Thu, 29 Apr 2010 17:50:22 +0000 (17:50 +0000)]
* mount.cc (oopts): Remove entirely.
(usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
mount options.
(print_version): Fix copyright date.
(main): Replace option processing loop with single call to
cygwin_internal (CW_CVT_MNT_OPTS).

14 years ago * external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount
corinna [Thu, 29 Apr 2010 17:47:40 +0000 (17:47 +0000)]
* external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount
flag parsing.  Add CW_LST_MNT_OPTS case to allow mount flag listing.
* mount.cc (fstab_read_flags): Rename from read_flags.  Make externally
available.  Change input string to char ** to allow returning faulty
option.  Add flag for avoiding debug output.
(fstab_list_flags): New function to create list of options.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_MNT_OPTS and
CW_LST_MNT_OPTS.

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

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

14 years ago * mount.cc (compare_flags): New function.
corinna [Thu, 29 Apr 2010 00:35:52 +0000 (00:35 +0000)]
* mount.cc (compare_flags): New function.
(read_flags): Replace loop with bsearch.  Simplify error check.

14 years ago2010-04-27 Kai Tietz <kai.tietz@onevision.com>
ktietz [Thu, 29 Apr 2010 00:24:22 +0000 (00: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 ago * include/cygwin/version.h: Bump API minor version.
corinna [Wed, 28 Apr 2010 19:20:33 +0000 (19:20 +0000)]
* include/cygwin/version.h: Bump API minor version.

14 years ago * new-features.sgml (ov-new1.7.6): Add locale wide-char changes.
corinna [Wed, 28 Apr 2010 19:19:25 +0000 (19:19 +0000)]
* new-features.sgml (ov-new1.7.6): Add locale wide-char changes.

14 years ago * locale.cc (print_lc_xxx_charset): Remove.
corinna [Wed, 28 Apr 2010 19:00:40 +0000 (19:00 +0000)]
* locale.cc (print_lc_xxx_charset): Remove.
(enum type_t): Change according to the fact that nl_langinfo now returns
all locale category values.
(lc_ctype_names): Add new category members.  Redefine for exclusive
nl_langinfo usage.
(lc_numeric_names): Ditto.
(lc_time_names): Ditto.
(lc_collate_names): Ditto.
(lc_monetary_names): Ditto.
(lc_messages_names): Ditto.
(print_lc): Change switch according to new type_t values.

14 years ago * cygwin.din (__locale_mb_cur_max): Export.
corinna [Wed, 28 Apr 2010 19:00:24 +0000 (19:00 +0000)]
* cygwin.din (__locale_mb_cur_max): Export.
* nlsfuncs.cc (__getlocaleinfo): Drop conversion to multibyte.
(__charfromwchar): New function to convert to multibyte.
(__eval_datetimefmt): Convert to return wchar_t pointer.  Work on
wide char string.
(__set_lc_time_from_win): Take additional pointer to "C" category info
to accommodate C.foo locales.  Rework to fill wide char members in
category info.
(__set_lc_ctype_from_win): New function.
(__set_lc_numeric_from_win): Take additional pointer to "C" category
info to accommodate C.foo locales.  Rework to fill wide char members
in category info.
(__set_lc_monetary_from_win): Ditto.
(__set_lc_messages_from_win): Ditto.
(__get_current_collate_codeset): New function, called from nl_langinfo.
* include/cygwin/config.h (__HAVE_LOCALE_INFO_EXTENDED__): Define.

14 years ago Extend locale support to maintain wide char values of native strings
corinna [Wed, 28 Apr 2010 18:59:34 +0000 (18:59 +0000)]
Extend locale support to maintain wide char values of native strings
if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/include/langinfo.h (enum __nl_item): New type.  Define all
native values accessible through nl_langinfo.  Define previously
existing POSIX-compatible values as macros as well.
* libc/include/stdlib.h (__mb_cur_max): Drop declaration.
(__locale_mb_cur_max): Declare.
(MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
* libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
* libc/locale/Makefile.in: Regenerate.
* libc/locale/lctype.c: New file to define and load LC_CTYPE category.
* libc/locale/lctype.h: New file, matching header.
* libc/locale/lmessages.c (_C_messages_locale): Add default values for
wide char members.
(__messages_load_locale): Add _C_messages_locale in call to
__set_lc_messages_from_win.
* libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
* libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
wide char members.
(__monetary_load_locale): Add _C_monetary_locale in call to
__set_lc_monetary_from_win.
* libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
Add numerical values for international currency formatting per
POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
wide char members.
(__numeric_load_locale): Add _C_numeric_locale in call to
__set_lc_numeric_from_win.
* libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
* libc/locale/locale.c (loadlocale): Return doing nothing if category
locale didn't change.  Convert category if chain to switch statement.
Call __ctype_load_locale in LC_CTYPE case.
(__locale_charset): Add (but disable for now) returning codeset from
__get_current_ctype_locale.
(__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
from __get_current_ctype_locale.
(__locale_msgcharset): Add returning codeset from
__get_current_messages_locale.
(_localeconv_r): Accommodate int_XXX values.
* libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
be returned for non-POSIX values.
(nl_Langinfo): Return correct codeset for each locale category.  Return
extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/locale/timelocal.c (_C_time_locale): Add default values for
wide char members.
(__time_load_locale): Add _C_time_locale in call to
__set_lc_time_from_win.
* libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/time/strftime.c: Rework to accommodate availability of wide char
strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.

14 years ago2010-04-28 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 28 Apr 2010 16:59:47 +0000 (16: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 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***

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

14 years agogas:
jsm28 [Wed, 28 Apr 2010 08:43:24 +0000 (08: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 ago* spawn.cc (find_exec): Use the first detected errno when lookup fails.
cgf [Wed, 28 Apr 2010 08:06:48 +0000 (08:06 +0000)]
* spawn.cc (find_exec): Use the first detected errno when lookup fails.

14 years agoFix author list for one of the patches.
brobecke [Wed, 28 Apr 2010 06:06:28 +0000 (06: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
brobecke [Wed, 28 Apr 2010 06:02:10 +0000 (06: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
brobecke [Wed, 28 Apr 2010 06:01:57 +0000 (06: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.
brobecke [Wed, 28 Apr 2010 06:01:44 +0000 (06: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.
brobecke [Wed, 28 Apr 2010 06:01:30 +0000 (06: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).
brobecke [Wed, 28 Apr 2010 06:01:13 +0000 (06: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/
jkratoch [Wed, 28 Apr 2010 05:06:56 +0000 (05:06 +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>
ktietz [Wed, 28 Apr 2010 02:28:13 +0000 (02: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>
ktietz [Wed, 28 Apr 2010 02:25:59 +0000 (02:25 +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.
brobecke [Wed, 28 Apr 2010 01:35:57 +0000 (01:35 +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.
hjl [Wed, 28 Apr 2010 01:05:48 +0000 (01: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 * include/regex.h: Include _ansi.h to avoid missing out on preprocessor
corinna [Wed, 28 Apr 2010 00:18:13 +0000 (00:18 +0000)]
* include/regex.h: Include _ansi.h to avoid missing out on preprocessor
macros in sys/_types.h.

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

14 years ago PR binutils/11512
nickc [Tue, 27 Apr 2010 23:42:50 +0000 (23: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.
nickc [Tue, 27 Apr 2010 23:28:33 +0000 (23:28 +0000)]
Updated French and Russian translations.

14 years ago * configure.ac (--enable-gold): Support both, both/gold and
nickc [Tue, 27 Apr 2010 23:24:35 +0000 (23: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:
nickc [Tue, 27 Apr 2010 23:12:30 +0000 (23: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 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***

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

14 years ago * server.c (handle_general_set): Make static.
devans [Tue, 27 Apr 2010 07:02:32 +0000 (07:02 +0000)]
* server.c (handle_general_set): Make static.

14 years ago * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
devans [Tue, 27 Apr 2010 06:45:47 +0000 (06:45 +0000)]
* serial.c (serial_write): Handle serial_debug_p akin to serial_read.

14 years ago PR breakpoints/11531.
muller [Tue, 27 Apr 2010 05:49:27 +0000 (05:49 +0000)]
PR breakpoints/11531.
* gdb.base/gdb11531.c: New file.
* gdb.base/gdb11531.exp: New file.

14 years agogdb
tromey [Tue, 27 Apr 2010 03:37:08 +0000 (03: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 [Tue, 27 Apr 2010 03:04:23 +0000 (03:04 +0000)]
merge from gcc

14 years ago * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
devans [Tue, 27 Apr 2010 02:38:07 +0000 (02: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
vapier [Tue, 27 Apr 2010 01:23:21 +0000 (01: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/
jkratoch [Tue, 27 Apr 2010 00:49:10 +0000 (00: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
muller [Mon, 26 Apr 2010 22:58:42 +0000 (22:58 +0000)]
 *Fix ChangeLog entry

14 years ago Removal of config/i386/nm-i386sol2.h native configuration file.
muller [Mon, 26 Apr 2010 22:53:55 +0000 (22: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 * mount.h (fs_info::inited): New inline method.
corinna [Mon, 26 Apr 2010 22:47:58 +0000 (22:47 +0000)]
* mount.h (fs_info::inited): New inline method.
* path.cc (path_conv::check): Clear filesystem info if following a
symlink.  Use new fs_info::inited method to check if FS info is already
available.
(symlink_info::check): Drop fs_update_called.  Use fs_info::inited
method instead.  Streamline test for leading space and trailing dot or
space.  Add comments.

14 years ago PR breakpoints/11531.
muller [Mon, 26 Apr 2010 21:01:40 +0000 (21: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/
jkratoch [Mon, 26 Apr 2010 18:30:03 +0000 (18: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 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***

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

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

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

14 years agoRestore "call|jmp [xtrn]" in x86 assembler.
hjl [Sun, 25 Apr 2010 02:41:03 +0000 (02: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 [Sat, 24 Apr 2010 23:32:23 +0000 (23: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.
palves [Sat, 24 Apr 2010 22:12:49 +0000 (22: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/
amodra [Sat, 24 Apr 2010 10:05:21 +0000 (10: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 [Sat, 24 Apr 2010 10:03:15 +0000 (10:03 +0000)]
merge from gcc

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

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

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

14 years ago2010-04-23 Stan Shebs <stan@codesourcery.com>
shebs [Sat, 24 Apr 2010 08:51:03 +0000 (08: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/
jkratoch [Sat, 24 Apr 2010 06:44:19 +0000 (06: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>
tmsriram [Sat, 24 Apr 2010 03:49:22 +0000 (03: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
devans [Sat, 24 Apr 2010 03:07:26 +0000 (03:07 +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.
devans [Sat, 24 Apr 2010 03:03:24 +0000 (03: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.
devans [Sat, 24 Apr 2010 01:20:08 +0000 (01: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
vapier [Sat, 24 Apr 2010 00:39:15 +0000 (00: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)
guitton [Sat, 24 Apr 2010 00:14:21 +0000 (00: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.
brobecke [Fri, 23 Apr 2010 21:36:05 +0000 (21:36 +0000)]
Fix ARI warning.

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

14 years agoPR 10179
cmoller [Fri, 23 Apr 2010 21:08:04 +0000 (21: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 * path.h (get_nt_native_path): Add third parameter to declaration and
corinna [Fri, 23 Apr 2010 20:07:32 +0000 (20:07 +0000)]
* path.h (get_nt_native_path): Add third parameter to declaration and
declare with regparms.
* path.cc (get_nt_native_path): Add third parameter to allow conversion
of leading and trailing dots and spaces on filesystems only supporting
filenames following DOS rules.
(path_conv::get_nt_native_path): Call get_nt_native_path according to
fs.has_dos_filenames_only flag.
(getfileattr): Accommodate new parameter to get_nt_native_path.
(symlink_info::check): Revamp fs_update_called handling to call
fs.update only once per call.  Call get_nt_native_path according to
fs.has_dos_filenames_only flag.  Streamline filesystem dependent code
not to be called more than once unnecessarily.  Drop code tweaking
incoming path for broken filesystems only allowing DOS pathnames.
Rely on changed get_nt_native_path instead.
* mount.cc (fillout_mntent): Accommodate new parameter to
get_nt_native_path.
* strfuncs.cc (tfx_rev_chars): New conversion table with comment.
(sys_cp_wcstombs): Use tfx_rev_chars rather than tfx_chars.

14 years ago * expression.cc (Expression::Expression_eval_info): Add
ian [Fri, 23 Apr 2010 13:47:32 +0000 (13: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 09:00:33 +0000 (09:00 +0000)]
*** empty log message ***

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

14 years ago* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
dj [Fri, 23 Apr 2010 08:32:39 +0000 (08:32 +0000)]
* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
(libc.info): Add posix.texi.
(libc.dvi): Likewise.
(stmp-posix): New.
(posix.texi): New.
(libc_TEXINFOS): Add posix.texi.
* libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
tests.
* libc/libc.texinfo: Include posix.texi
* libc/locale/locale.c: Fix texinfo typo.
* libc/time/strftime.c: Fix texinfo typo.

* libc/configure: Regenerate.
* libc/Makefile.in: Regenerate.
* libc/argz/Makefile.in: Regenerate.
* libc/ctype/Makefile.in: Regenerate.
* libc/errno/Makefile.in: Regenerate.
* libc/iconv/Makefile.in: Regenerate.
* libc/iconv/ccs/Makefile.in: Regenerate.
* libc/iconv/ccs/binary/Makefile.in: Regenerate.
* libc/iconv/ces/Makefile.in: Regenerate.
* libc/iconv/lib/Makefile.in: Regenerate.
* libc/locale/Makefile.in: Regenerate.
* libc/misc/Makefile.in: Regenerate.
* libc/posix/Makefile.in: Regenerate.
* libc/reent/Makefile.in: Regenerate.
* libc/search/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Regenerate.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio64/Makefile.in: Regenerate.
* libc/stdlib/Makefile.in: Regenerate.
* libc/string/Makefile.in: Regenerate.
* libc/syscalls/Makefile.in: Regenerate.
* libc/time/Makefile.in: Regenerate.
* libc/unix/Makefile.in: Regenerate.
* libc/xdr/Makefile.in: Regenerate.

14 years agogdb/
jkratoch [Fri, 23 Apr 2010 08:15:41 +0000 (08: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.
muller [Fri, 23 Apr 2010 07:29:00 +0000 (07:29 +0000)]
* gdb.threads/watchthreads.exp: Change to obtain consistent output.

14 years ago2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
bauermann [Fri, 23 Apr 2010 07:26:35 +0000 (07: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.
hjl [Fri, 23 Apr 2010 05:42:04 +0000 (05:42 +0000)]
Reformat.

14 years agoRemove regmap from i386-linux-nat.c.
hjl [Fri, 23 Apr 2010 05:35:27 +0000 (05: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()
cmoller [Fri, 23 Apr 2010 05:12:06 +0000 (05: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.
hjl [Fri, 23 Apr 2010 05:02:55 +0000 (05: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 ago * path.cc (symlink_info::check): Make sure to restart only once.
corinna [Fri, 23 Apr 2010 02:42:16 +0000 (02:42 +0000)]
* path.cc (symlink_info::check): Make sure to restart only once.

14 years ago * mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE
corinna [Fri, 23 Apr 2010 02:33:27 +0000 (02:33 +0000)]
* mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE
from mask.  Expand the comment a bit.
(WIN_FAT_FLAGS): New define.
(FS_IS_WINDOWS_FAT): New macro.
(fs_info::update): Handle remote FS faking to be FAT.  Subsume under
CIFS.  Check for NWFS and has_buggy_basic_info only for remote
filesystems.  Add check for has_dos_filenames_only.
* mount.h (class fs_info): Add has_dos_filenames_only status flag.
Implement accessors.
* path.cc (symlink_info::check): Rearrange variable definitions to
clear them up.  Add a restart label to allow a clean restart within
the method.  Add a check for broken filesystems only allowing DOS
pathnames in case we encounter a STATUS_OBJECT_NAME_NOT_FOUND status.
If all checks point to one of that, restart method with tweaked
incoming path.  Add lengthy comments to explain what we do.

14 years agogdb/doc/
jkratoch [Fri, 23 Apr 2010 01:32:43 +0000 (01: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.
nickc [Thu, 22 Apr 2010 23:36:58 +0000 (23:36 +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.
hjl [Thu, 22 Apr 2010 23:12:41 +0000 (23: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.
muller [Thu, 22 Apr 2010 22:37:17 +0000 (22: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
muller [Thu, 22 Apr 2010 21:34:24 +0000 (21:34 +0000)]
 * Remove unwanted space in set_length_in_type_chain parameterdeclaration

14 years ago PR stabs/11479.
muller [Thu, 22 Apr 2010 21:30:54 +0000 (21: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 ago * path.cc (symlink_info::check): Fix a comment.
corinna [Thu, 22 Apr 2010 18:43:28 +0000 (18:43 +0000)]
* path.cc (symlink_info::check): Fix a comment.

14 years ago * cygserver.sgml: Note the fact that slave tty/pty handle dispersal is
corinna [Thu, 22 Apr 2010 18:05:37 +0000 (18:05 +0000)]
* cygserver.sgml: Note the fact that slave tty/pty handle dispersal is
unsed as of Cygwin 1.7.6.
* new-features.sgml (ov-new1.7.6): New section.  Add tty/pty and
setrlimit changes.

14 years ago2010-04-21 Stan Shebs <stan@codesourcery.com>
shebs [Thu, 22 Apr 2010 13:14:13 +0000 (13: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>
shebs [Thu, 22 Apr 2010 13:09:25 +0000 (13: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.