OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
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.

15 years agogdb/
bauermann [Sat, 21 Mar 2009 03:03:50 +0000 (03:03 +0000)]
gdb/
2009-03-05  Tom Tromey  <tromey@redhat.com>

Add support for convenience functions in Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
(SUBDIR_PYTHON_SRCS): Add python-function.c.
(python-function.o): New target.
* eval.c: Include "python/python.h" and <ctype.h>.
(evaluate_subexp_standard): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
* parse.c (write_exp_string): Remove duplicate word in comment.
* python/python-function.c: New file.
* python/python-internal.h (gdbpy_initialize_functions): Add
prototype.
* python/python.c (_initialize_python): Call
gdbpy_initialize_functions.
* valprint.c (value_check_printable): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* value.c: Include "cli/cli-decode.h".
(internal_function): New struct.
(functionlist, internal_fn_type): New static variables.
(lookup_only_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(create_internalvar): Likewise.  Initialize new field.
(set_internal_var): Fix typo in comment.  Don't allow assignment
to canonical variable.
(value_create_internal_function, value_internal_function_name,
call_internal_function, function_command, function_destroyer,
add_internal_function): New functions.
(_initialize_values): Create `function' placeholder command.
Initialize internal_fn_type.
* value.h (lookup_only_internalvar, create_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(internal_function_fn, add_internal_function, call_internal_function,
value_internal_function_name): Add prototypes.
(struct internalvar) <canonical>: New field.

gdb/doc/
2008-03-05  Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (Convenience Vars): Document convenience functions.
(Functions In Python): New node.
(Python API): Update.

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

* gdb.python/python-function.exp: New file.

15 years ago * elf32-ppc.c (is_pic_glink_stub): Delete.
amodra [Sat, 21 Mar 2009 02:35:26 +0000 (02:35 +0000)]
* elf32-ppc.c (is_pic_glink_stub): Delete.
(is_nonpic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
than first pic one.
(struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.

15 years ago * c-lang.c (evaluate_subexp_c): Call check_typedef.
tromey [Sat, 21 Mar 2009 00:46:16 +0000 (00:46 +0000)]
* c-lang.c (evaluate_subexp_c): Call check_typedef.

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

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

15 years agoinclude/elf:
ian [Fri, 20 Mar 2009 23:37:50 +0000 (23:37 +0000)]
include/elf:
* common.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
elfcpp:
* elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
gold:
* incremental.cc: New file.
* Makefile.am (CCFILES): Add incremental.cc.
* Makefile.in: Rebuild.

15 years agogdb:
tromey [Fri, 20 Mar 2009 23:04:27 +0000 (23:04 +0000)]
gdb:
2009-03-19  Tom Tromey  <tromey@redhat.com>
    Julian Brown  <julian@codesourcery.com>

PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
PR i18n/9401, PR exp/9613:
* NEWS: Update
* value.h (value_typed_string): Declare.
(val_print_string): Update.
* valprint.h (print_char_chars): Update.
* valprint.c (print_char_chars): Add type argument.  Update.
(val_print_string): Likewise.
* valops.c (value_typed_string): New function.
* utils.c (host_char_to_target): New function.
(parse_escape): Use host_char_to_target, host_hex_value.  Update.
Remove '^' case.
(no_control_char_error): Remove.
* typeprint.c (print_type_scalar): Update.
* scm-valprint.c (scm_scmval_print): Update.
* scm-lang.h (scm_printchar, scm_printstr): Update.
* scm-lang.c (scm_printchar): Add type argument.
(scm_printstr): Likewise.
* printcmd.c (print_formatted): Update.
(print_scalar_formatted): Update.
(printf_command) <wide_string_arg, wide_char_arg>: New constants.
Handle '%lc' and '%ls'.
* parser-defs.h (struct typed_stoken): New type.
(struct stoken_vector): Likewise.
(write_exp_string_vector): Declare.
* parse.c (write_exp_string_vector): New function.
* p-valprint.c (pascal_val_print): Update.
* p-lang.h (is_pascal_string_type, pascal_printchar,
pascal_printstr): Update.
* p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
Add 'char_type' argument.
(pascal_emit_char): Add type argument.
(pascal_printchar): Likewise.
(pascal_printstr): Likewise.
* objc-lang.c (objc_emit_char): Add type argument.
(objc_printchar): Likewise.
(objc_printstr): Likewise.
* macroexp.c (get_character_constant): Handle unicode characters.
Use c_parse_escape.
(get_string_literal): Handle unicode strings.  Use
c_parse_escape.
* m2-valprint.c (print_unpacked_pointer): Update.
(m2_print_array_contents): Update.
(m2_val_print): Update.
* m2-lang.c (m2_emit_char): Add type argument.
(m2_printchar): Likewise.
(m2_printstr): Likewise.
* language.h (struct language_defn) <la_printchar>: Add type
argument.
<la_printstr, la_emitchar>: Likewise.
(LA_PRINT_CHAR): Likewise.
(LA_PRINT_STRING): Likewise.
(LA_EMIT_CHAR): Likewise.
* language.c (unk_lang_emit_char): Add type argument.
(unk_lang_printchar): Likewise.
(unk_lang_printstr): Likewise.
* jv-valprint.c (java_val_print): Update.
* jv-lang.c (java_emit_char): Add type argument.
* f-valprint.c (f_val_print): Update.
* f-lang.c (f_emit_char): Add type argument.
(f_printchar): Likewise.
(f_printstr): Likewise.
* expprint.c (print_subexp_standard): Update.
* charset.h (target_wide_charset): Declare.
(c_target_char_has_backslash_escape, c_parse_backslash,
host_char_print_literally, host_char_to_target,
target_char_to_host, target_char_to_control_char): Remove.
(enum transliterations): New type.
(convert_between_encodings): Declare.
(HOST_ESCAPE_CHAR): New define.
(host_letter_to_control_character, host_hex_value): Declare.
(enum wchar_iterate_result): New enum.
(struct wchar_iterator): Declare.
(make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
wchar_push_back): Declare.
* charset-list.h: New file.
* c-valprint.c (textual_name): New function.
(textual_element_type): Handle wide character types.
(c_val_print): Pass original type to textual_element_type.  Handle
wide character types.
(c_value_print): Use textual_element_type.  Pass original type of
value to val_print.
* c-lang.h (enum c_string_type): New type.
(c_printchar, c_printstr): Update.
* c-lang.c (classify_type): New function.
(print_wchar): Likewise.
(c_emit_char): Add type argument.  Handle wide characters.
(c_printchar): Likewise.
(c_printstr): Add type argument.  Handle wide and multibyte
character sets.
(convert_ucn): New function.
(emit_numeric_character): Likewise.
(convert_octal): Likewise.
(convert_hex): Likewise.
(ADVANCE): New macro.
(convert_escape): New function.
(parse_one_string): Likewise.
(evaluate_subexp_c): Likewise.
(exp_descriptor_c): New global.
(c_language_defn): Use exp_descriptor_c.
(cplus_language_defn): Likewise.
(asm_language_defn): Likewise.
(minimal_language_defn): Likewise.
(charset_for_string_type): New function.
* c-exp.y (%union): Add 'svec' and 'tsval'.
(CHAR): New token.
(exp): Add CHAR production.
(string_exp): Rewrite.
(exp) <string_exp>: Rewrite.
(tempbuf): Now global.
(tempbuf_init): New global.
(parse_string_or_char): New function.
(yylex) <tempbuf>: Now global.
<tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
Remove.
Handle 'u', 'U', and 'L' prefixes.  Call parse_string_or_char.
(c_parse_escape): New function.
* auxv.c (fprint_target_auxv): Update.
* ada-valprint.c (ada_emit_char): Add type argument.
(ada_printchar): Likewise.
(ada_print_scalar): Update.
(printstr): Add type argument.  Update calls to ada_emit_char.
(ada_printstr): Add type argument.
(ada_val_print_array): Update.
(ada_val_print_1): Likewise.
* ada-lang.c (emit_char): Add type argument.
* ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
type arguments.
* gdb_locale.h: Include langinfo.h.
* charset.c (_initialize_charset): Set default host charset from
the locale.  Don't register charsets.  Add target-wide-charset
commands.  Call find_charset_names.
(struct charset, struct translation): Remove.
(GDB_DEFAULT_HOST_CHARSET): Remove.
(GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
(target_wide_charset_name): New global.
(show_host_charset_name): Handle "auto".
(show_target_wide_charset_name): New function.
(host_charset_enum, target_charset_enum): Remove.
(charset_enum): New global.
(all_charsets, register_charset, lookup_charset, all_translations,
register_translation, lookup_translation): Remove.
(simple_charset, ascii_print_literally, ascii_to_control): Remove.
(iso_8859_print_literally, iso_8859_to_control,
iso_8859_family_charset): Remove.
(ebcdic_print_literally, ebcdic_to_control,
ebcdic_family_charset): Remove.
(struct cached_iconv, check_iconv_cache, cached_iconv_convert,
register_iconv_charsets): Remove.
(target_wide_charset_be_name, target_wide_charset_le_name): New
globals.
(identity_either_char_to_other): Remove.
(set_be_le_names, validate): New functions.
(backslashable, backslashed, represented): Remove.
(default_c_target_char_has_backslash_escape): Remove.
(default_c_parse_backslash, iconv_convert): Remove.
(ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
(table_convert_char, table_translation, simple_table_translation):
Remove.
(current_host_charset, current_target_charset,
c_target_char_has_backslash_escape_func,
c_target_char_has_backslash_escape_baton): Remove.
(c_parse_backslash_func, c_parse_backslash_baton): Remove.
(host_char_to_target_func, host_char_to_target_baton): Remove.
(target_char_to_host_func, target_char_to_host_baton): Remove.
(cached_iconv_host_to_target, cached_iconv_target_to_host):
Remove.
(lookup_charset_or_error, check_valid_host_charset): Remove.
(set_host_and_target_charsets): Remove.
(set_host_charset, set_target_charset): Remove.
(set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
(set_target_wide_charset_sfunc): New function.
(show_charset): Print target wide character set.
(host_charset, target_charset): Rewrite.
(target_wide_charset): New function.
(c_target_char_has_backslash_escape): Remove.
(c_parse_backslash): Remove.
(host_letter_to_control_character): New function.
(host_char_print_literally): Remove.
(host_hex_value): New function.
(target_char_to_control_char): Remove.
(cleanup_iconv): New function.
(convert_between_encodings): New function.
(target_char_to_host): Remove.
(struct wchar_iterator): Define.
(make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
wchar_push_back): New functions.
(do_cleanup_iterator): New function.
(char_ptr): New typedef.
(charsets): New global.
(add_one, find_charset_names): New functions.
(default_charset_names): New global.
(auto_host_charset_name): Likewise.
* aclocal.m4, config.in, configure: Rebuild.
* configure.ac: Call AM_LANGINFO_CODESET.
(GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
(AM_ICONV): Invoke earlier.
* acinclude.m4: Include codeset.m4.  Subst LIBICONV_INCLUDE and
LIBICONV_LIBDIR.  Check for libiconv in build tree.
* Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
(INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
(INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
* gdb_obstack.h (obstack_grow_wstr): New define.
        * gdb_wchar.h: New file.
        * defs.h: Include it.
gdb/testsuite:
* gdb.base/store.exp: Update for change to escape output.
* gdb.base/callfuncs.exp (fetch_all_registers): Update for change
to escape output.
* gdb.base/pointers.exp: Update for change to escape output.
* gdb.base/long_long.exp (gdb_test_long_long): Update for change
to escape output.
* gdb.base/constvars.exp (do_constvar_tests): Update for change to
escape output.
* gdb.base/call-rt-st.exp (print_struct_call): Update for change
to escape output.
* gdb.cp/ref-types.exp (gdb_start_again): Update for change to
escape output.
* gdb.base/setvar.exp: Update for change to escape output.
* lib/gdb.exp (default_gdb_start): Set LC_CTYPE to C.
* gdb.base/printcmds.exp (test_print_all_chars): Update for change
to escape output.
(test_print_string_constants): Likewise.
* gdb.base/charset.exp (valid_host_charset): Check size of
wchar_t.  Handle UCS-2 and UCS-4.  Add tests for wide and unicode
cases.  Handle "auto"-related output.
* gdb.base/charset.c (char16_t, char32_t): New typedefs.
(uvar, Uvar): New globals.
gdb/doc:
* gdb.texinfo (Character Sets): Remove obsolete text.  Document
set target-wide-charset.
(Requirements): Mention iconv.

15 years ago2009-03-20 Tom Tromey <tromey@redhat.com>
tromey [Fri, 20 Mar 2009 22:00:05 +0000 (22:00 +0000)]
2009-03-20  Tom Tromey  <tromey@redhat.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwarf2read.c (process_die): Handle DW_TAG_typedef.
* eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
typedef.
* ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
SYMBOL_TYPE result.
* ada-typeprint.c (print_array_type): Do the NULL check
unconditionally.

15 years ago2009-03-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 20 Mar 2009 20:44:14 +0000 (20:44 +0000)]
2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/errno.h: Protect various non-standard errnos
        with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
        * libc/include/sys/config.h[__CYGWIN__]: Define
        __LINUX_ERRNO_EXTENSIONS__.

15 years agold/
hjl [Fri, 20 Mar 2009 17:39:02 +0000 (17:39 +0000)]
ld/

2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/9970
* ldlang.c (lang_end): Warn missing entry symbol for -pie.

ld/testsuite/

2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/9970
* ld-pie/pie.exp: Use -fpie to compile.  Run *.d tests.

* ld-pie/start.d: New.
* ld-pie/start.s: Likewise.

15 years ago2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
krebbel [Fri, 20 Mar 2009 12:57:15 +0000 (12:57 +0000)]
2009-03-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
    Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
        macros for visibilty and locality checks.
(elf_s390_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_check_relocs): Likewise.
(elf_s390_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.

15 years ago * cygserver-config: Remove misleading text describing the
corinna [Fri, 20 Mar 2009 11:54:16 +0000 (11:54 +0000)]
* cygserver-config: Remove misleading text describing the
"CYGWIN=server" setting for the client.

15 years ago2009-03-19 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 20 Mar 2009 00:05:37 +0000 (00:05 +0000)]
2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf.c (dwarf_regnames): Moved before frame_need_space.
(dwarf_regnames_count): Likewise.
(frame_need_space): Return int.
(display_debug_frames): Check invalid registers.

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

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

15 years ago * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
corinna [Thu, 19 Mar 2009 19:47:51 +0000 (19:47 +0000)]
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
invalid character sequence.

* libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
missing declaration of __locale_charset.
* libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.

15 years ago2009-03-19 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Thu, 19 Mar 2009 19:39:32 +0000 (19:39 +0000)]
2009-03-19  Paul Pluzhnikov  <ppluzhnikov@google.com>

* layout.cc (Layout::output_section_name): Preserve names
of '.note.' sections.

15 years ago * descriptors.cc (Descriptors::open): Check that the options are
ian [Thu, 19 Mar 2009 19:02:53 +0000 (19:02 +0000)]
* descriptors.cc (Descriptors::open): Check that the options are
valid before using them.

15 years ago * dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.
corinna [Thu, 19 Mar 2009 18:16:06 +0000 (18:16 +0000)]
* dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.

15 years ago * utils.c (do_obstack_free): New function.
tromey [Thu, 19 Mar 2009 17:39:30 +0000 (17:39 +0000)]
* utils.c (do_obstack_free): New function.
(make_cleanup_obstack_free): Likewise.
* defs.h (make_cleanup_obstack_free): Declare.

15 years ago2009-03-19 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 19 Mar 2009 14:42:52 +0000 (14:42 +0000)]
2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (debug_apply_relocations): Check relocations
against STT_SECTION symbol.

15 years agoFrom: J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
brobecke [Thu, 19 Mar 2009 14:32:38 +0000 (14:32 +0000)]
From: J"orn Rennecke  <joern.rennecke@arc.com>  (tiny change)
        Speed up simulator startup:
        * sim-utils.c (zalloc): Use xcalloc.

15 years ago * gdb.ada/fixed_points/fixed_points.adb: Add a test on overprecise
guitton [Thu, 19 Mar 2009 14:08:49 +0000 (14:08 +0000)]
* gdb.ada/fixed_points/fixed_points.adb: Add a test on overprecise
deltas.
* gdb.ada/fixed_points.exp: Ditto.

15 years ago2009-03-19 Kai Tietz <kai.tietz@onevision.com>
ktietz [Thu, 19 Mar 2009 11:02:09 +0000 (11:02 +0000)]
2009-03-19  Kai Tietz  <kai.tietz@onevision.com>

        * bfd-in2.h: Regenerated.
        * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
        for debugging sections and map memory read/write dependent on
        SEC_COFF_NOREAD.
        (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
        without memory read flags set.
        * section.c: Add SEC_COFF_NOREAD to section flags.

15 years ago * config/tc-sparc.c (md_parse_option): If the user gives
davem [Thu, 19 Mar 2009 10:41:46 +0000 (10:41 +0000)]
* config/tc-sparc.c (md_parse_option): If the user gives
us '--64' make sure max_architecture is at least V9.

15 years ago* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
schwab [Thu, 19 Mar 2009 10:40:06 +0000 (10:40 +0000)]
* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
for format string.

15 years ago * cygwin.din: Export log2, log2f as functions.
corinna [Thu, 19 Mar 2009 09:22:00 +0000 (09:22 +0000)]
* cygwin.din: Export log2, log2f as functions.
* posix.sgml: Add them to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years agobfd/
amodra [Thu, 19 Mar 2009 07:04:11 +0000 (07:04 +0000)]
bfd/
* elf32-spu.c (spu_elf_find_overlays): Separate error return from
"no overlays" return.  If there are overlays, create overlay
manager entry symbols here, so that..
(spu_elf_build_stubs): ..we don't need to set them up here.
Simplify entry symbol tests.
* elf32-spu.h (spu_elf_find_overlays): Update prototype.
ld/
* emultempl/spuelf.em (spu_before_allocation): Report errors from
spu_elf_find_overlays.

15 years ago * script-sections.h: Include <list>.
ian [Thu, 19 Mar 2009 05:51:49 +0000 (05:51 +0000)]
* script-sections.h: Include <list>.
(class Script_sections): Change Sections_elements from std::vector
to std::list.  Typedef public Elements_iterator.  Add
orphan_section_placement_, data_segment_align_start_, and
saw_data_segment_align_ fields.  Remove data_segment_align_index_
field.
* script-sections.cc (class Orphan_section_placement): New class.
(class Sections_element): Add virtual functions is_relro and
orphan_section_init.  Remove virtual function place_orphan_here.
(class Output_section_definition): Add is_relro and
orphan_section_init.  Remove place_orphan_here.
(class Orphan_output_section): Likewise.
(Script_sections::Script_sections): Update for field changes.
(Script_sections::data_segment_align): Set saw_data_segment_align_
and data_segment_align_start_, not data_segment_align_index.
(Script_sections::data_segment_relro_end): Check
saw_data_segment_align_.  Use data_segment_align_start_ rather
than data_segment_align_index_.
(Script_sections::place_orphan): Rewrite to use
Orphan_section_placement.

15 years ago2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 19 Mar 2009 02:38:53 +0000 (02:38 +0000)]
2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (debug_apply_relocations): Allow relocations
against function symbols.

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

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

15 years ago * configure: Rebuild.
tromey [Wed, 18 Mar 2009 23:33:25 +0000 (23:33 +0000)]
* configure: Rebuild.
* configure.ac (host_libs): Add libiconv.
* Makefile.in: Rebuild.
* Makefile.def (host_modules): Add libiconv.
(configure-gdb, all-gdb): Depend on libiconv.

15 years ago2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
jjohnstn [Wed, 18 Mar 2009 18:11:17 +0000 (18:11 +0000)]
2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

        * libm/common/s_log2.c: New file.
        * libm/common/sf_log2.c: Ditto.
        * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
        * libm/common/Makefile.in: Regenerated.
        * libc/include/math.h: Add log2 and log2f function prototypes.

15 years ago * Makefile.am (BFD32_BACKENDS): Remove elf32-score and
nickc [Wed, 18 Mar 2009 16:58:32 +0000 (16:58 +0000)]
    * Makefile.am (BFD32_BACKENDS): Remove elf32-score and
        elf32-score7 files.
        (BFD32_BACKEND_CFILES): Likewise.
        (BFD64_BACKENDS): Add elf32-score and elf32-score7 files.
        (BFD64_BACKENDS_CFILES): Likewise.
        * Makefile.in: Regenerate.
        * config.bfd: More Score targets into BFD64 list.
        * configure.in: Move score vectors to 64-bit list.
        * targets.c: Likewise.

        * score-dis.c: Only compile when 64-bit bfds are enabled.

15 years ago * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
devans [Wed, 18 Mar 2009 16:47:45 +0000 (16:47 +0000)]
* linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
int, not a long long.
(linux_nat_info_proc_cmd): Store pid in long instead of long long.

15 years ago * expprint.c (dump_raw_expression): Print note if non-NULL.
devans [Wed, 18 Mar 2009 16:38:17 +0000 (16:38 +0000)]
* expprint.c (dump_raw_expression): Print note if non-NULL.

15 years ago* elf.c (elfcore_grok_openbsd_procinfo)
kettenis [Wed, 18 Mar 2009 16:26:53 +0000 (16:26 +0000)]
* elf.c (elfcore_grok_openbsd_procinfo)
(elfcore_grok_openbsd_note): New functions.
(elf_parse_notes): Handle notes from OpenBSD ELF core files.

15 years ago * printcmd.c (display_uses_solib_p): Redo loop, scan element list
devans [Wed, 18 Mar 2009 16:22:48 +0000 (16:22 +0000)]
* printcmd.c (display_uses_solib_p): Redo loop, scan element list
backwards.

15 years ago* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)
kettenis [Wed, 18 Mar 2009 15:57:17 +0000 (15:57 +0000)]
* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)
(NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS)
(NT_OPENBSD_WCOOKIE): New defines.

15 years ago * return-nodebug.c: Don't include stdio.h.
palves [Wed, 18 Mar 2009 15:36:01 +0000 (15:36 +0000)]
* return-nodebug.c: Don't include stdio.h.
(init): Delete.
(func): Delete definition and provide extern declaration.
(t): New.
(main): Don't call printf.  Call func and store its result in t.
* return-nodebug1.c: New.
* return-nodebug.exp: Don't expect stdio output.  Instead, print
the global variable t.  Drop printf formatters and cast types from
foreach loop.  Don't use prepare_for_testing.  Compile
return-nodebug.c and return-nodebug1.c in separate steps.  Don't
define FORMAT or CAST.

15 years ago2009-03-18 Andrew Stubbs <ams@codesourcery.com>
ams [Wed, 18 Mar 2009 15:28:23 +0000 (15:28 +0000)]
2009-03-18  Andrew Stubbs  <ams@codesourcery.com>

gas/
* config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.

gas/testsuites/
* gas/arm/adr-invalid.d: New file.
* gas/arm/adr-invalid.l: New file.
* gas/arm/adr-invalid.s: New file.