OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years ago2009-03-25 Richard Earnshaw <rearnsha@arm.com>
jjohnstn [Wed, 25 Mar 2009 18:56:15 +0000 (18:56 +0000)]
2009-03-25  Richard Earnshaw  <rearnsha@arm.com>

        * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
        detect the nul-byte in a big-endian string.

15 years ago2009-03-25 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Wed, 25 Mar 2009 17:57:10 +0000 (17:57 +0000)]
2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/wcsdup.c: Fix documentation error.
        * libc/string/Makefile.am: Fix CHEWOUT files to contain
        wcsdup.def rather than wcsdup.
        * libc/string/Makefile.in: Regenerated.

15 years ago * pathnames.sgml: Add a note that ASCII SO handling isn't foolproof
corinna [Wed, 25 Mar 2009 14:33:05 +0000 (14:33 +0000)]
* pathnames.sgml: Add a note that ASCII SO handling isn't foolproof
under all circumstances.

15 years ago * strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
corinna [Wed, 25 Mar 2009 13:54:41 +0000 (13:54 +0000)]
* strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
ASCII SO's.

15 years ago * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
corinna [Wed, 25 Mar 2009 13:52:08 +0000 (13:52 +0000)]
* libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
pointers if category is LC_CTYPE.

15 years ago * mn10300-tdep.c (trad-frame.h): Don't include.
kevinb [Wed, 25 Mar 2009 13:40:03 +0000 (13:40 +0000)]
* mn10300-tdep.c (trad-frame.h): Don't include.
(prologue-value.h): Include.
(mn10300_frame_unwind_cache, set_reg_offsets): Delete.
(struct mn10300_prologue): Define.
(push_reg, translate_rreg, check_for_saved): New functions.
(mn10300_analyze_prologue): Rewrite, using prologue-value
machinery.  Handle more instructions than before.  Permit
instructions to occur in any order.
(mn10300_skip_prologue): Find the extents of the function
in question; mn10300_analyze_prologue no longer does this.
(mn10300_analyze_frame_prologue): New function.
(mn10300_frame_base): New function.
(mn10300_frame_this_id): Rewrite, no longer using trad-frame
implementation.
(mn10300_frame_prev_register): Likewise.
(mn10300_frame_base_address, mn10300_frame_base struct): Delete.
(mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
`this_frame'.
(mn10300_frame_unwind_init): Don't call frame_base_set_default().

15 years ago * environ.cc (environ_init): Break from locale loop after first hit.
corinna [Wed, 25 Mar 2009 12:29:03 +0000 (12:29 +0000)]
* environ.cc (environ_init): Break from locale loop after first hit.
* fhandler_console.cc (fhandler_console::write_normal): Print a SO
sequence using always valid Unicode chars.

15 years ago * gdb.base/completion.exp: Add a test for directory completion.
muller [Wed, 25 Mar 2009 10:52:21 +0000 (10:52 +0000)]
* gdb.base/completion.exp: Add a test for directory completion.

15 years ago Fix completer problem for filename completion on the first try.
muller [Wed, 25 Mar 2009 10:50:56 +0000 (10:50 +0000)]
Fix completer problem for filename completion on the first try.

* gdb/completer.h (gdb_completion_word_break_characters): New function.
* gdb/completer.c: Include gdb_assert.h.
(complete_line_internal_reason): New enum.
(complete_line_internal): Change last argument type to
complete_line_internal_reason.
Modify function to handle the different complete_line_internal_reason
argument values.
(complete_line): Adapt to change in complete_line_internal.
(command_completer): Ditto.
(gdb_completion_word_break_characters): Implement new function.
* top.c (init_main): Set  rl_completion_word_break_hook to
gdb_completion_word_break_characters.

15 years ago * new-features.sgml: Add missing GB2312 and eucKR character sets.
corinna [Wed, 25 Mar 2009 10:37:06 +0000 (10:37 +0000)]
* new-features.sgml: Add missing GB2312 and eucKR character sets.
* pathnames.sgml: Change "DOS devices" title to "Invalid filenames"
and rephrase that section.
Add section "Filenames with unusual (foreign) characters".
Fix an emphasis.
* setup-net.sgml: Integrate setup-locale section.
* setup2.sgml: Add locale variables to section "Environment Variables".
Add section "Internationalization".

15 years ago ARI fix: "strlen d_name" rule.
muller [Wed, 25 Mar 2009 10:02:13 +0000 (10:02 +0000)]
ARI fix: "strlen d_name" rule.
* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.

15 years ago * strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949.
corinna [Wed, 25 Mar 2009 09:02:22 +0000 (09:02 +0000)]
* strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949.
(__kr_mbtowc): Ditto.
(__set_charset_from_codepage): Ditto.  Translate codepage 936 to
"GB2312" and drop the charset name "GBK".

15 years ago * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
corinna [Wed, 25 Mar 2009 09:00:02 +0000 (09:00 +0000)]
* libc/locale/locale.c (loadlocale): Rename charset "GBK" to
"GB2312".  Fix documentation accordingly.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
swami [Wed, 25 Mar 2009 08:08:36 +0000 (08:08 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

        * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
        the reloc descriptions.

15 years ago2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
swami [Wed, 25 Mar 2009 08:05:57 +0000 (08:05 +0000)]
2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
the reloc descriptions.

15 years ago * ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
hp [Wed, 25 Mar 2009 03:04:20 +0000 (03:04 +0000)]
* ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-e-tpoffcomm1.d,
ld-cris/tls-e-tpoffcomm1.s: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
hp [Wed, 25 Mar 2009 03:03:39 +0000 (03:03 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.

15 years ago * readelf.c (process_file_header): Don't report a corrupt string
amodra [Wed, 25 Mar 2009 01:37:18 +0000 (01:37 +0000)]
* readelf.c (process_file_header): Don't report a corrupt string
table index if it is zero.

15 years ago * symtab.h (needs_plt_entry): Check for unsatisfied reference from
ccoutant [Wed, 25 Mar 2009 01:34:25 +0000 (01:34 +0000)]
* symtab.h (needs_plt_entry): Check for unsatisfied reference from
an executable.
(needs_dynamic_reloc): Likewise.

15 years ago2009-03-24 Tom Tromey <tromey@redhat.com>
tromey [Wed, 25 Mar 2009 00:58:31 +0000 (00:58 +0000)]
2009-03-24  Tom Tromey  <tromey@redhat.com>
    Pedro Alves  <pedro@codesourcery.com>

* configure, config.in: Rebuild.
* configure.ac: Check for libiconvlist.
* charset.c: Check HAVE_LIBICONVLIST.
* acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
LIBICONV_LIBDIR.  Update CPPFLAGS and LIBS.
* Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
Remove.
(INTERNAL_CFLAGS_BASE): Update.
(INTERNAL_LDFLAGS): Update.
(CLIBS): Update.

15 years agodaily update
amodra [Wed, 25 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 25 Mar 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * yyscript.y (file_cmd): Recognize EXTERN.
ian [Tue, 24 Mar 2009 19:08:37 +0000 (19:08 +0000)]
* yyscript.y (file_cmd): Recognize EXTERN.
(extern_name_list, extern_name_list_body): New nonterminals.
* script.cc (script_add_extern): Define.
* script-c.h (script_add_extern): Declare.

15 years ago * object.cc (is_elf_object): Define.
ian [Tue, 24 Mar 2009 18:42:10 +0000 (18:42 +0000)]
* object.cc (is_elf_object): Define.
* object.h (is_elf_object): Declare.
* archive.cc (Archive::get_elf_object_for_member): Call
is_elf_object.
* readsymc.cc (Read_symbols::do_read_symbols): Likewise.

15 years ago * strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949.
corinna [Tue, 24 Mar 2009 18:20:00 +0000 (18:20 +0000)]
* strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949.
(__kr_mbtowc): Ditto.
(__set_charset_from_codepage): Translate codepages 949 and 50949 to
"EUCKR" and drop the charset name "CP949".

15 years ago * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
corinna [Tue, 24 Mar 2009 18:18:12 +0000 (18:18 +0000)]
* libc/locale/locale.c (loadlocale): Rename charset "CP949" to
"eucKR".  Fix documentation accordingly.

15 years ago2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 24 Mar 2009 18:07:14 +0000 (18:07 +0000)]
2009-03-24  H.J. Lu  <hongjiu.lu@intel.com>

* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x86_64_arch): Likewise.

15 years ago * output.cc (Output_file::map_anonymous): Define.
ian [Tue, 24 Mar 2009 18:04:25 +0000 (18:04 +0000)]
* output.cc (Output_file::map_anonymous): Define.
(Output_file::map): Use map_anonymous.  If the regular mmap fails,
try an anonymous one.  Report the size if the mmap fails.
* output.h (class Output_file): Declare map_anonymous.

15 years ago * target-select.cc (instantiate_target): Don't acquire the lock if
ian [Tue, 24 Mar 2009 17:32:43 +0000 (17:32 +0000)]
* target-select.cc (instantiate_target): Don't acquire the lock if
the instantiated_target_ field has already been set.

15 years ago * configure.ac: Initialize the variable $PREFER_CURSES.
jkratoch [Tue, 24 Mar 2009 17:01:29 +0000 (17:01 +0000)]
* configure.ac: Initialize the variable $PREFER_CURSES.
* configure: Regenerated.

15 years ago * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
corinna [Tue, 24 Mar 2009 16:56:32 +0000 (16:56 +0000)]
* libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
for "eucJP" charset support.

15 years ago * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
jkratoch [Tue, 24 Mar 2009 16:54:33 +0000 (16:54 +0000)]
* configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
* configure: Regenerated.

15 years ago * strfuncs.cc (sys_cp_mbstowcs): Don't read beyond src + nms.
corinna [Tue, 24 Mar 2009 16:42:35 +0000 (16:42 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Don't read beyond src + nms.

15 years ago2009-03-24 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Tue, 24 Mar 2009 16:05:07 +0000 (16:05 +0000)]
2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/errno.h: Move EFTYPE to general usage because
        it is used in libc/search.

15 years ago * new-features.sgml: Add section about chaged (no)winsymlink default.
corinna [Tue, 24 Mar 2009 13:51:25 +0000 (13:51 +0000)]
* new-features.sgml: Add section about chaged (no)winsymlink default.

15 years ago * shared_info.h (CURR_SHARED_MAGIC): Update.
corinna [Tue, 24 Mar 2009 13:44:52 +0000 (13:44 +0000)]
* shared_info.h (CURR_SHARED_MAGIC): Update.

15 years ago * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
corinna [Tue, 24 Mar 2009 13:35:08 +0000 (13:35 +0000)]
* cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
* strace.cc (proc_child): Ditto.
* ldd.cc: Remove now useless undef wcscasecmp.

15 years ago * wchar.h: Replace UINT with unsigned int.
corinna [Tue, 24 Mar 2009 13:33:57 +0000 (13:33 +0000)]
* wchar.h: Replace UINT with unsigned int.

15 years ago * wchar.h: Remove erroneous "C" specifier from extern declaration.
corinna [Tue, 24 Mar 2009 13:21:23 +0000 (13:21 +0000)]
* wchar.h: Remove erroneous "C" specifier from extern declaration.

15 years ago * cygwinenv.sgml: Move "codepage:xxx" to the removed options section.
corinna [Tue, 24 Mar 2009 12:37:02 +0000 (12:37 +0000)]
* cygwinenv.sgml: Move "codepage:xxx" to the removed options section.
Change text accordingly.
* new-features.sgml: Try to explain new way to define character sets.

15 years ago * ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
corinna [Tue, 24 Mar 2009 12:18:33 +0000 (12:18 +0000)]
* ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
(__ctype_default): New character class array for default ASCII
character set.
(__ctype_iso): New array of character class array for ISO charsets.
(__ctype_cp): Ditto for singlebyte Windows codepages.
(tolower): Implement as distinct function to support any singlebyte
charset.
(toupper): Ditto.
(__set_ctype): New function to copy singlebyte character classes
corresponding to current charset to ctype_b array.
Align copyright text to upstream.
* dcrt0.cc (dll_crt0_1): Reset current locale to "C" per POSIX.
* environ.cc (set_file_api_mode): Remove.
(codepage_init): Remove.
(parse_thing): Remove "codepage" setting.
(environ_init): Set locale according to environment settings, or
to current codepage, before converting environment to multibyte.
* fhandler.h (fhandler_console::write_replacement_char): Drop argument.
* fhandler_console.cc (dev_console::str_to_con): Call sys_cp_mbstowcs
rather than MultiByteToWideChar.
(fhandler_console::write_replacement_char): Always print a funny
half filled square if a character isn't in the current charset.
(fhandler_console::write_normal): Convert to using __mbtowc
rather than next_char.
* fork.cc (frok::child): Drop call to set_file_api_mode.
* globals.cc (enum codepage_type) Remove.
(current_codepage): Remove.
* miscfuncs.cc (cygwin_wcslwr): Unused, dangerous.  Remove.
(cygwin_wcsupr): Ditto.
(is_cp_multibyte): Remove.
(next_char): Remove.
* miscfuncs.h (is_cp_multibyte): Drop declaration.
(next_char): Ditto.
* strfuncs.cc (get_cp): Remove.
(__db_wctomb): New function to implement _wctomb_r functionality for
doublebyte charsets using WideCharToMultiByte.
(__sjis_wctomb): New function to replace unusable newlib function.
(__jis_wctomb): Ditto.
(__eucjp_wctomb): Ditto.
(__gbk_wctomb): New function.
(__kr_wctomb): Ditto.
(__big5_wctomb): Ditto.
(__db_mbtowc): New function to implement _mbtowc_r functionality for
doublebyte charsets using MultiByteToWideChar.
(__sjis_mbtowc): New function to replace unusable newlib function.
(__jis_mbtowc): Ditto.
(__eucjp_mbtowc): Ditto.
(__gbk_mbtowc): New function.
(__kr_mbtowc): New function
(__big5_mbtowc): New function
(__set_charset_from_codepage): New function.
(sys_wcstombs): Reimplement, basically using same wide char to multibyte
conversion as newlib's application level functions.  Plus extras.
Add lengthy comment to explain.  Change return type to size_t.
(sys_wcstombs_alloc): Just use sys_wcstombs.  Change return type to
size_t.
(sys_cp_mbstowcs): Replace sys_mbstowcs, take additional codepage
argument.  Explain why.  Change return type to size_t.
(sys_mbstowcs_alloc): Just use sys_mbstowcs.  Change return type to
size_t.
* wchar.h: Declare internal functions implemented in strfuncs.cc.
(wcscasecmp): Remove.
(wcsncasecmp): Remove.
(wcslwr): Remove.
(wcsupr): Remove.
* winsup.h (codepage_init): Remove declaration.
(get_cp): Ditto.
(sys_wcstombs): Align declaration to new implementation.
(sys_wcstombs_alloc): Ditto.
(sys_cp_mbstowcs): Add declaration.
(sys_mbstowcs): Define as inline function.
(sys_mbstowcs_alloc): Align declaration to new implementation.
(set_file_api_mode): Remove declaration.
* include/ctype.h (isblank): Redefine to use _B character class.
(toupper): Remove ASCII-only definition.
(tolower): Ditto.

15 years ago * sec_auth.cc (str2buf2uni): Remove.
corinna [Tue, 24 Mar 2009 10:53:56 +0000 (10:53 +0000)]
* sec_auth.cc (str2buf2uni): Remove.
* security.h (str2buf2uni): Remove declaration.

15 years ago * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
corinna [Tue, 24 Mar 2009 10:13:26 +0000 (10:13 +0000)]
* libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
* libc/ctype/iswblank.c: Ditto.
* libc/ctype/iswcntrl.c: Ditto.
* libc/ctype/iswprint.c: Ditto.
* libc/ctype/iswpunct.c: Ditto.
* libc/ctype/iswspace.c: Ditto.
* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
Explain why.
* libc/ctype/towlower.c: Ditto.
* libc/ctype/towupper.c: Ditto.
* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
* libc/include/sys/reent.h (struct _reent): Mark _current_category
and _current_locale as unused.
* libc/locale/locale.c: Add new charset support to documentation.
Include ../stdio/local.h from here.
(lc_ctype_charset): Set to "ASCII" by default.
(lc_message_charset): Ditto.
(_setlocale_r): Don't set _current_category and _current_locale.
(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
systems, set __mbtowc and __wctomb function pointers to function
corresponding with current charset.  Don't allow non-existant
ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
_current_category and _current_locale.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/local.h: Add prototype for __locale_charset.
Add prototypes for __mbtowc and __wctomb pointers.
Add prototypes for charset-specific _wctomb_r and _mbtowc_r
functions.
Declare tables and functions from sb_charsets.c.
* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
by default.
(_mbtowc_r): Just call __mbtowc from here.
(__ascii_mbtowc): New function.
(__iso_mbtowc): New function.
(__cp_mbtowc): New function.
(__utf8_mbtowc): New function.
(__sjis_mbtowc): New function.  Disable on Cygwin.
(__eucjp_mbtowc): New function.  Disable on Cygwin.
(__jis_mbtowc): New function.  Disable on Cygwin.
* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
conversion tables for all ISO and CP charsets.
(__iso_8859_index): New function.
(__cp_index): New function.
* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
by default.
(_wctomb_r): Just call __wctomb from here.
(__ascii_wctomb): New function.
(__utf8_wctomb): New function.
(__sjis_wctomb): New function.  Disable on Cygwin.
(__eucjp_wctomb): New function.  Disable on Cygwin.
(__jis_wctomb): New function.  Disable on Cygwin.
(__iso_wctomb): New function.
(__cp_wctomb): New function.

15 years ago * include/mntent.h: Remove declarations of nonexistant addmntent
corinna [Tue, 24 Mar 2009 09:19:37 +0000 (09:19 +0000)]
* include/mntent.h: Remove declarations of nonexistant addmntent
and hasmntopt.  Update and clarify the /etc/mtab comment.

15 years ago * ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
hp [Tue, 24 Mar 2009 07:58:23 +0000 (07:58 +0000)]
* ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s,
ld-cris/tls-e-dtpoffd1.d: New tests.

15 years ago * elf32-cris.c (cris_elf_relocate_section): <case
hp [Tue, 24 Mar 2009 07:57:21 +0000 (07:57 +0000)]
* elf32-cris.c (cris_elf_relocate_section): <case
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
symbols for non-allocated sections.  Don't check whether to
generate R_CRIS_DTPMOD for non-allocated sections.
(cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
handle relocation GC:ing if applied to non-allocated section.
(cris_elf_check_relocs): Similar.

15 years ago ARI fix: "strerror" rule.
muller [Tue, 24 Mar 2009 07:19:44 +0000 (07:19 +0000)]
ARI fix: "strerror" rule.
* darwin-nat.c (darwin_ptrace): Use safe_strerror.
(darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
ian [Tue, 24 Mar 2009 04:50:31 +0000 (04:50 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* gold-threads.h (class Initialize_lock): Define.
* gold-threads.cc (class Initialize_lock_once): Define.
(initialize_lock_control): New static variable.
(initialize_lock_pointer): New static variable.
(initialize_lock_once): New static function.
(Initialize_lock::Initialize_lock): Define.
(Initialize_lock::initialize): Define.
* target-select.h: Include "gold-threads.h".
(class Target_selector): Add lock_ and initialize_lock_ fields.
Don't define instantiate_target, just declare it.
* target-select.cc (Target_selector::Target_selector): Initialize
new fields.
(Target_selector::instantiate_target): Define.
* descriptors.h: Include "gold-threads.h".
(class Descriptors): Add initialize_lock_ field.
* descriptors.cc (Descriptors::Descriptors): Initialize new
field.
(Descriptors::open): Use initialize_lock_ field
* errors.h (class Errors): Add initialize_lock_ field.
* errors.cc (Errors::Errors): Initialize new field.
(Errors::initialize_lock): Use initialize_lock_ field.
* powerpc.cc (class Target_selector_powerpc): Remove
instantiated_target_ field.  In do_recognize call
instantiate_target rather than do_instantiate_target.  In
do_instantiate_target just allocate a new target.
* sparc.cc (class Target_selector_sparc): Likewise.

15 years ago * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
hp [Tue, 24 Mar 2009 03:34:05 +0000 (03:34 +0000)]
* ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
ld-cris/tls-e-80.d, ld-cris/tls-gd-3.d, ld-cris/tls-gd-3h.d,
ld-cris/tls-global-74.d, ld-cris/tls-ldgde-14.d,
ld-cris/tls-ldgde-15.d, ld-cris/tls-legd-16.d,
ld-cris/tls-legd-17.d, ld-cris/tls-local-57.d,
ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for BFD
change in link-time known GOT contents for GD relocations.

15 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
hp [Tue, 24 Mar 2009 03:32:31 +0000 (03:32 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
when emitting a known TP offset in the GOT.

15 years ago * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
brobecke [Tue, 24 Mar 2009 02:08:23 +0000 (02:08 +0000)]
    * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
        before looking up the fields inside our struct type.

15 years ago * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
brobecke [Tue, 24 Mar 2009 02:07:06 +0000 (02:07 +0000)]
    * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
        trying to resolve the type qualification.

15 years ago * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
brobecke [Tue, 24 Mar 2009 02:04:19 +0000 (02:04 +0000)]
    * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
        we try to apply the attribute on the real type, rather than
        its associated typedef.

15 years ago * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
brobecke [Tue, 24 Mar 2009 02:00:51 +0000 (02:00 +0000)]
    * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
        to make sure we try to get the modulus of the actual type, not the
        associated typedef.

15 years ago * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
brobecke [Tue, 24 Mar 2009 01:58:22 +0000 (01:58 +0000)]
    * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
        [OP_ATR_LENGTH]: When using the attribute on a type, make sure
        to get the real type, not the associated typedef.

15 years agoFix typo (sleep -> usleep).
brobecke [Tue, 24 Mar 2009 01:52:16 +0000 (01:52 +0000)]
Fix typo (sleep -> usleep).

15 years ago * ada-lang.c (ada_get_field_index): Add handling of the case
brobecke [Tue, 24 Mar 2009 01:51:48 +0000 (01:51 +0000)]
    * ada-lang.c (ada_get_field_index): Add handling of the case
        when TYPE is a typedef of a struct.

15 years ago * gdb_usleep.h, gdb_usleep.c: New files.
brobecke [Tue, 24 Mar 2009 01:37:48 +0000 (01:37 +0000)]
        * gdb_usleep.h, gdb_usleep.c: New files.
            * Makefile.in (SFILES): Add gdb_usleep.c.
            (HFILES_NO_SRCDIR): Add gdb_usleep.h.
            (COMMON_OBS): Add gdb_usleep.o.
            * ser-unix.c (hardwire_send_break): Replace call to gdb_select
            by call to gdb_usleep.

15 years ago * buildsym.c (end_symtab): If we ignore the subfiles, then
brobecke [Tue, 24 Mar 2009 01:32:46 +0000 (01:32 +0000)]
    * buildsym.c (end_symtab): If we ignore the subfiles, then
        unlink the associated symtabs if they were already allocated.

15 years ago Provide a way to force building of GDB with libcurses.
brobecke [Tue, 24 Mar 2009 01:19:26 +0000 (01:19 +0000)]
    Provide a way to force building of GDB with libcurses.
        * configure.ac: Add --with-curses.
        * configure: Regenerated.

15 years ago2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 24 Mar 2009 01:04:25 +0000 (01:04 +0000)]
2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/9966
* listing.c (listing_newline): Properly handle `\\"' and ';'.

* read.c (is_end_of_line): Update comments for line separator.
(read_begin): Set line separator in is_end_of_line to 2.

15 years ago2009-03-23 Ian Lance Taylor <iant@google.com>
ian [Tue, 24 Mar 2009 00:31:28 +0000 (00:31 +0000)]
2009-03-23  Ian Lance Taylor  <iant@google.com>

* freebsd.h: New file.
* i386.cc: Include "freebsd.h".
(Target_i386): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_i386): Derive from Target_selector_freebsd rather
than Target_selector.
* x86_64.cc: Include "freebsd.h".
(Target_x86_64): Derive from Target_freebsd rather than
Sized_target.
(Target_selector_x86_64): Derive from Target_selector_freebsd
rather than Target_selector.
* target.h (class Target): Add adjust_elf_header and
do_adjust_elf_header.
* output.cc (Output_file_header:: do_sized_write): Call target
adjust_elf_header routine.
* configure.tgt: Set targ_osabi.
* configure.ac: Define GOLD_DEFAULT_OSABI.
* parameters.cc (Parameters::default_target): Pass
GOLD_DEFAULT_OSABI to select_target.
* target-select.h (class Target_selector): Make instantiate_target
protected rather than private.
* Makefile.am (HFILES): Add freebsd.h.
* configure, Makefile.in, config.in: Rebuild.

15 years agodaily update
amodra [Tue, 24 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 24 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agomerge from gcc
dj [Mon, 23 Mar 2009 22:05:08 +0000 (22:05 +0000)]
merge from gcc

15 years ago * merge.cc (do_add_input_section): Correct pend value. Change
ian [Mon, 23 Mar 2009 21:15:08 +0000 (21:15 +0000)]
* merge.cc (do_add_input_section): Correct pend value.  Change
message about last entry not being null terminated from error to
warning.

15 years ago * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
tromey [Mon, 23 Mar 2009 21:06:07 +0000 (21:06 +0000)]
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
error message.

15 years ago * passwd.c (usage): Change description for -d option according to
corinna [Mon, 23 Mar 2009 20:40:17 +0000 (20:40 +0000)]
* passwd.c (usage): Change description for -d option according to
previous change.
(main): Fix typo.
* utils.sgml: Add missing description for passwd -d option.

15 years ago2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Mon, 23 Mar 2009 18:34:03 +0000 (18:34 +0000)]
2009-03-23  Paul Pluzhnikov  <ppluzhnikov@google.com>

* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
solib_contains_address_p instead of searching.

15 years ago2009-03-23 Richard Earnshaw <rearnsha@arm.com>
jjohnstn [Mon, 23 Mar 2009 18:25:09 +0000 (18:25 +0000)]
2009-03-23  Richard Earnshaw  <rearnsha@arm.com>

* libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.

15 years ago * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
tromey [Mon, 23 Mar 2009 17:48:07 +0000 (17:48 +0000)]
* charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
(iconv): Make 'inbuf' argument const.
(convert_between_encodings): Use ICONV_CONST.
(wchar_iterate): Likewise.

15 years ago * passwd.c (caller_is_admin): New function to test if calling user
corinna [Mon, 23 Mar 2009 16:37:49 +0000 (16:37 +0000)]
* passwd.c (caller_is_admin): New function to test if calling user
is an administrator by inspecting user token.
(main): Drop fetching caller info from logonserver.  Only fetch
server from environment when trying to change password for own
account.  Drop admin check entirely in case of doing account
maintainance.  Otherwise replace check for admin by result of
caller_is_admin call.

15 years ago * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and
corinna [Mon, 23 Mar 2009 15:48:16 +0000 (15:48 +0000)]
* smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and
PUNICODE_STRING arguments.
(__small_vswprintf): Ditto.

15 years ago * include/asm/byteorder.h (__constant_ntohs): Remove declaration.
corinna [Mon, 23 Mar 2009 14:26:54 +0000 (14:26 +0000)]
* include/asm/byteorder.h (__constant_ntohs): Remove declaration.
(__constant_ntohl): Ditto.

15 years ago * elf64-ppc.c (synthetic_opd): Delete.
amodra [Mon, 23 Mar 2009 13:35:38 +0000 (13:35 +0000)]
* elf64-ppc.c (synthetic_opd): Delete.
(compare_symbols): Look for .opd name rather than section match.
(ppc64_elf_get_synthetic_symtab): Likewise.

15 years ago * libc/locale/locale.c (loadlocale): Fix typo in language and
corinna [Mon, 23 Mar 2009 11:28:11 +0000 (11:28 +0000)]
* libc/locale/locale.c (loadlocale): Fix typo in language and
territory evaluation.

15 years ago * cygwin.din: Export wordexp, wordfree.
corinna [Mon, 23 Mar 2009 09:46:38 +0000 (09:46 +0000)]
* cygwin.din: Export wordexp, wordfree.
* posix.sgml: Move them to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * include/sys/un.h: #include <string.h> for strlen.
corinna [Mon, 23 Mar 2009 08:45:17 +0000 (08:45 +0000)]
* include/sys/un.h: #include <string.h> for strlen.

15 years ago * server.c (handle_query) Whitespace and formatting.
palves [Mon, 23 Mar 2009 00:22:54 +0000 (00:22 +0000)]
* server.c (handle_query) Whitespace and formatting.

15 years ago*** empty log message ***
gdbadmin [Mon, 23 Mar 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Mon, 23 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
palves [Sun, 22 Mar 2009 23:57:10 +0000 (23:57 +0000)]
* i387-fp.c, linux-arm-low.c, linux-cris-low.c,
linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
Makefile.in, configure.ac: Fix whitespace throughout.
* configure: Regenerate.

15 years ago * inferiors.c (find_inferior): Make it safe for the callback
palves [Sun, 22 Mar 2009 22:34:04 +0000 (22:34 +0000)]
* inferiors.c (find_inferior): Make it safe for the callback
function to delete the currently iterated inferior.

15 years ago * Makefile.in (linuw_low_h): Move higher.
palves [Sun, 22 Mar 2009 22:19:34 +0000 (22:19 +0000)]
* Makefile.in (linuw_low_h): Move higher.
(thread-db.o): Depend on $(linux_low_h).

15 years ago* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
cgf [Sun, 22 Mar 2009 22:13:21 +0000 (22:13 +0000)]
* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(AdjustTokenPrivileges): Rename and define placeholder for address of
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(set_process_privilege): Remove check for loaded functions.
(bad_OpenProcessToken): Define.
(_initialize_loadable): Load token functions from advapi here, setting
OpenProcessToken function to a dummy static function which always return error
if OS doesn't support this functionality.

15 years ago* win32-nat.c (ctrl_c_handler): New function.
cgf [Sun, 22 Mar 2009 21:43:56 +0000 (21:43 +0000)]
* win32-nat.c (ctrl_c_handler): New function.
(win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior is run
in a separate console.

15 years ago* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound for
cgf [Sun, 22 Mar 2009 21:27:29 +0000 (21:27 +0000)]
* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound for
dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(DebugActiveProcessStop): Rename and define placeholder for address of
dynamically loaded function.  for dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(psapi_loaded): Delete.
(get_module_name): Don't check psapi_loaded, just rely on the fact that
dynamically loaded functions will return failure if they weren't previously
found.
(has_detach_ability): Delete.
(windows_attach): Remove call to has_detach_ability ().  Just rely on functions
being callable.
(bad_DebugActiveProcessStop): Define.
(bad_DebugBreakProcess): Ditto.
(bad_DebugSetProcessKillOnExit): Ditto.
(bad_EnumProcessModules): Ditto.
(bad_GetModuleFileNameExA): Ditto.
(bad_GetModuleInformation): Ditto.
(_initialize_loadable): Rename from _initialize_psapi.  Initialize all dynamic
storage here, setting nonexistent functions to dummy static functions which
always return error.

15 years ago Fix a racy FAIL.
jkratoch [Sun, 22 Mar 2009 21:11:44 +0000 (21:11 +0000)]
Fix a racy FAIL.
* gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption.
* gdb.base/callfuncs.exp (fetch_all_registers): Likewise.

15 years ago * passwd.c (main): Always get logonserver from environment and
corinna [Sun, 22 Mar 2009 19:18:26 +0000 (19:18 +0000)]
* passwd.c (main): Always get logonserver from environment and
use when fetching user info for caller.

15 years agogdb/
palves [Sun, 22 Mar 2009 18:06:05 +0000 (18:06 +0000)]
gdb/

* mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
to the about_to_proceed observer notification.
(mi_about_to_proceed): New.
(mi_on_resume): Only output ^running and the prompt here if the
target was proceeded.
* breakpoint.c (breakpoint_proceeded): New static.
(breakpoint_about_to_proceed): New.
(_initialize_breakpoints): Attach breakpoint_about_to_proceed to
the about_to_proceed observer notification.
* inferior.h (breakpoint_proceeded): Delete declaration.
* infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
Notify the about_to_proceed observers.
(struct inferior_status): Delete breakpoint_proceeded member.
(save_inferior_status): Don't save it.
(restore_inferior_status): Don't restore it.
* mi-main.h (mi_proceeded): Declare.
* mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
a command.

gdb/doc/

* observer.texi (about_to_proceed): New.

15 years ago * gdbthread.h (struct thread_info): Add in_infcall member.
palves [Sun, 22 Mar 2009 17:59:59 +0000 (17:59 +0000)]
* gdbthread.h (struct thread_info): Add in_infcall member.
* infcall.c (run_inferior_call): Save, set and restore in_infcall.
Remove reverences to suppress_resume_observer.  Refresh
`call_thread' after returning from `proceed'.
* infcmd.c (suppress_resume_observer): Delete.
* inferior.h (suppress_resume_observer): Delete declaration.
* mi/mi-interp.c (mi_on_resume): Suppress output while calling an
inferior function.
* thread.c (set_running): Remove references to
suppress_resume_observer.
* infrun.c (struct inferior_status): Add in_infcall member.
(save_inferior_status): Save it.
(restore_inferior_status): Restore it.

15 years ago * infcall.c (run_inferior_call): Remove references to
palves [Sun, 22 Mar 2009 17:57:10 +0000 (17:57 +0000)]
* infcall.c (run_inferior_call): Remove references to
suppress_stop_observer.
* infcmd.c (suppress_stop_observer): Delete.
(finish_command_continuation): Remove NOTE.  Don't clear
suppress_stop_observer anymore.
(finish_command_continuation_free_arg): Likewise.
(finish_forward): Remove references to suppress_stop_observer.
Call normal_stop observer if we haven't already.
* inferior.h (suppress_stop_observer): Delete.
* infrun.c (normal_stop): When deciding to suppress the
normal_stop observer, check for proceed_to_finish instead of
suppress_stop_observer.

15 years ago * symfile.c (symfile_relocate_debug_section): Remove check for
palves [Sun, 22 Mar 2009 17:32:13 +0000 (17:32 +0000)]
* symfile.c (symfile_relocate_debug_section): Remove check for
SEC_DEBUGGING.

15 years ago * ldd.cc: Fix compiler warning.
corinna [Sun, 22 Mar 2009 10:09:01 +0000 (10:09 +0000)]
* ldd.cc: Fix compiler warning.

* passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
(main): Call setlocale.  Fix a bug in fetching the logon server from
the environment.

15 years agodaily update
amodra [Sun, 22 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 22 Mar 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agoFrom Jeremy Bennett <jeremy.bennett@embecosm.com>:
eliz [Sat, 21 Mar 2009 14:35:04 +0000 (14:35 +0000)]
From Jeremy Bennett <jeremy.bennett@embecosm.com>:

* stack_frame.eps: Version of image for TeX DVI output.

15 years agoFrom Jeremy Bennett <jeremy.bennett@embecosm.com>:
eliz [Sat, 21 Mar 2009 10:24:35 +0000 (10:24 +0000)]
From Jeremy Bennett  <jeremy.bennett@embecosm.com>:

* gdbint.texinfo (everywhere): Use braces {} in @deftypeXX type
field throughout to handle types with spaces in them.  Fix typos
found by aspell.
(Summary, Requirements, Contributors): New first chapter,
"Summary" added, old Requirements section moved there, and new
section, "Contributors" added.
(Initializing a New Architecture, Register Representation)
(Frame Interpretation, Inferior Call Setup, Adding a New Target)
(Porting gdb): These sections extended and updated.
(Compiler Characteristics): This section (empty) deleted.
(Defining Other Architecture Features): This section renamed and
duplicate material removed from (formerly "Target Conditionals").
Use braces {} in @deftypeXX type field throughout to handle types
with spaces in them. Typos found by aspell fixed.

* stack_frame.svg: New file, source of image for gdbint.texinfo.
* stack_frame.pdf: Version of image for PDF output.
* stack_frame.png: Version of image for HTML output and for Emacs.
* stack_frame.txt: Version of image for Info output.

15 years ago * gdb.texinfo (Character Sets): Fix last change.
eliz [Sat, 21 Mar 2009 08:33:14 +0000 (08:33 +0000)]
* gdb.texinfo (Character Sets): Fix last change.

15 years agogdb/
bauermann [Sat, 21 Mar 2009 03:13:01 +0000 (03:13 +0000)]
gdb/
2009-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Jim Blandy  <jimb@red-bean.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Tom Tromey  <tromey@redhat.com>

Miscellaneous fixes to the Python code.
* python/python-cmd.c (cmdpy_init): Accept keyword
arguments.
* python/python-value.c (valpy_string): Accept keyword
arguments.
(valpy_binop): Use `break' to exit from the TRY_CATCH block.
Do not call value_to_value_object on NULL RES_VAL.
(value_object_methods): Change `string' entry to also accept
keyword arguments.
(convert_value_from_python): Return a copy of the value if obj is
a gdb.Value object.
(value_object_methods): Mark the `string' method as accepting
keywords, and show method "prototype" in the doc string.
* python/python.c (get_parameter): Don't return inside a
TRY_CATCH.

gdb/doc/
2009-03-21  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.texinfo (Values From Inferior): Fix optional arguments
markup.
(Commands In Python): Adjust argument names of gdb.Command.__init__
to what the function accepts as keywords.

gdb/testsuite/
2009-03-21  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.python/python-cmd.exp: Add tests for keyword arguments.
* gdb.python/python-function.exp: Add test for function returning
a GDB value.