OSDN Git Service
jjohnstn [Fri, 12 Dec 2008 19:47:05 +0000 (19:47 +0000)]
2008-12-12 Craig Howland <howland@LGSInnovations.com>
* libc/include/wchar.h: Added wcstok() declaration.
* libc/string/wcstok.c: New file, implementing wcstok.
* libc/string/Makefile.am: Add wcstok support.
* libc/string/wcstrings.tex: Ditto.
* libc/string/Makefile.in: Regenerated.
tromey [Fri, 12 Dec 2008 17:58:47 +0000 (17:58 +0000)]
gdb
PR cli/2563:
* cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
(add_cmd): Update. Install hooks into new command.
(add_alias_cmd): Update.
gdb/testsuite
* gdb.base/commands.exp (redefine_hook_test): New proc.
Call it.
jjohnstn [Fri, 12 Dec 2008 17:21:08 +0000 (17:21 +0000)]
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/stdio/fputws.c: Fix documentation.
* libc/stdio/getwchar.c: Ditto.
* libc/stdio/putwchar.c: Ditto.
jjohnstn [Fri, 12 Dec 2008 17:16:03 +0000 (17:16 +0000)]
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
200112L (SUSv3 compliance).
Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
jjohnstn [Fri, 12 Dec 2008 17:11:33 +0000 (17:11 +0000)]
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
_execve(), _exit().
jjohnstn [Fri, 12 Dec 2008 17:07:37 +0000 (17:07 +0000)]
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.host: Let *rtems* default to c99-formats.
tromey [Fri, 12 Dec 2008 17:03:36 +0000 (17:03 +0000)]
gdb
* macroexp.c (get_pp_number): Require digit after leading ".".
Correctly handle suffixes.
gdb/testsuite
* gdb.base/macscp.exp: New regression test.
tromey [Fri, 12 Dec 2008 16:58:45 +0000 (16:58 +0000)]
* macrocmd.c (macro_define_command): Skip whitespace after
macro name.
(print_one_macro): Print space after macro name.
ian [Fri, 12 Dec 2008 16:33:04 +0000 (16:33 +0000)]
* target-reloc.h (Default_scan_relocatable_relocs): Only discard
r_type == 0 for a local symbol with r_sym == 0.
(scan_relocatable_relocs): Pass r_sym to
local_non_section_strategy.
* reloc.cc (Emit_relocs_strategy::local_non_section_strategy): Add
r_sym parameter.
ian [Fri, 12 Dec 2008 16:23:27 +0000 (16:23 +0000)]
* configure.ac: Update test for TLS descriptors: they are
supported as of glibc 2.9.
* configure: Rebuild.
corinna [Fri, 12 Dec 2008 15:45:19 +0000 (15:45 +0000)]
* libc/stdio/freopen.c: Add <string.h> for memset prototype.
* libc/stdio/fseek.c: Ditto.
* libc/stdio/fwide.c: Add <wchar.h> for fwide prototype.
corinna [Fri, 12 Dec 2008 15:14:06 +0000 (15:14 +0000)]
* pathnames.sgml: New section for /proc/registry. Document registry
name encoding.
palves [Fri, 12 Dec 2008 14:20:48 +0000 (14:20 +0000)]
* infrun.c (handle_inferior_event): Correctly tag non-executing
threads in multi-process.
(normal_stop): Correctly tag stopped threads in multi-process.
palves [Fri, 12 Dec 2008 13:45:41 +0000 (13:45 +0000)]
* remote.c (extended_remote_mourn_1): Always call
generic_mourn_inferior.
ian [Fri, 12 Dec 2008 02:41:39 +0000 (02:41 +0000)]
PR 7091
* target-reloc.h (Default_scan_relocatable_relocs): For each
function, map r_type == 0 to RELOC_DISCARD.
palves [Fri, 12 Dec 2008 01:08:28 +0000 (01:08 +0000)]
* remote.c (remote_detach_1): Don't delete the inferior here.
(process_stop_reply): Ditto.
(extended_remote_kill): Ditto.
palves [Fri, 12 Dec 2008 00:12:02 +0000 (00:12 +0000)]
* remote.c (read_ptid): If we don't know about any inferior yet,
use the pid of magic_null_ptid.
(remote_start_remote): In the non-stop mode case, don't set
inferior_ptid to magic_null_ptid here.
gdbadmin [Fri, 12 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 12 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update
jjohnstn [Thu, 11 Dec 2008 22:49:58 +0000 (22:49 +0000)]
Formatting fix.
jjohnstn [Thu, 11 Dec 2008 22:48:38 +0000 (22:48 +0000)]
2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/time.h(gettimeofday): Change prototype so
2nd parameter is void *, matching SUSV2.
* libc/syscalls/sysgettod.c(gettimeofday): Ditto.
palves [Thu, 11 Dec 2008 20:34:18 +0000 (20:34 +0000)]
* infcmd.c (step_1): Use step_once in the synchronous case too.
(step_1_continuation): Wrap line.
(step_once): Adjust comment. Only install the continuation in
async mode.
jjohnstn [Thu, 11 Dec 2008 20:05:37 +0000 (20:05 +0000)]
2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* configure.host: Add lm32
* libc/include/machine/ieeefp.h: Add __lm32__
* libc/include/machine/setjmp.h: Add __lm32__
* libc/machine/configure.in: Add lm32
* libc/machine/configure: Regenerated.
* libc/machine/lm32/aclocal.m4: New file.
* libc/machine/lm32/configure.in: Ditto.
* libc/machine/lm32/configure: Ditto.
* libc/machine/lm32/Makefile.am: Ditto.
* libc/machine/lm32/Makefile.in: Ditto.
* libc/machine/lm32/setjmp.s: Ditto.
palves [Thu, 11 Dec 2008 19:19:11 +0000 (19:19 +0000)]
* infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
* linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
returned.
* inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
minus_one_ptid if the inferior disappeared.
* rs6000-nat.c (rs6000_wait): Likewise.
* spu-linux-nat.c (spu_child_wait): Likewise.
tromey [Thu, 11 Dec 2008 18:30:26 +0000 (18:30 +0000)]
gdb
PR macros/2564:
* c-exp.y (macro_original_text, expansion_obstack,
expression_macro_scope): New globals.
(scan_macro_expansion): New function.
(scanning_macro_expansion): Likewise.
(finished_macro_expansion): Likewise.
(scan_macro_cleanup): Likewise.
(c_parse): Find macro scope. Initialize obstack.
* c-lang.h (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
* c-lang.c (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
(macro_original_text, macro_expanded_text,
c_preprocess_and_parse): Remove.
(c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Use c_parse.
gdb/testsuite
* gdb.base/macscp.exp: Print "address.addr".
* gdb.base/macscp1.c (struct outer): New struct.
(address): New global.
jjohnstn [Thu, 11 Dec 2008 17:27:55 +0000 (17:27 +0000)]
2008-12-11 Craig Howland <howland@LGSInnovations.com>
* libc/include/sys/lock.h: Add void cast to avoid "statement has no
effect" warnings from gcc.
* libc/include/sys/stdio.h: Ditto.
* libc/include/sys/time.h: Correct gettimeofday() prototype.
* libc/stdlib/__exp10.c: Add #include "std.h" for function prototype.
* libc/stdlib/__ten_mu.c: Ditto.
* libc/stdlib/std.h: Correct __exp10's ANSI prototype.
* libc/stdlib/ldtoa.c: Change eiisinf definition to ANSI form. (Are
already others in file without _ansi method, so did not bother.)
* libc/stdlib/system.c: Use _ansi forms for function prototypes and
definitions.
* libc/time/mktime.c: Ditto.
* libc/misc/__dprintf.c: Ditto.
* libc/include/stdio.h: Add function prototypes for _fgetc_r,
_fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
_funopen_r, and _fopencookie_r.
* libc/include/reent.h: Add function prototype for _stat64_r, align
_execve_r prototype with POSIX definition for execve.
* libc/reent/execr.c: Align function prototype with POSIX definition.
* libc/stdio/asniprintf.c: Add #include "local.h".
* libc/stdio/vasniprintf.c: Ditto.
* libc/stdio/fread.c: Remove unused variable newcount.
* libc/stdio/local.h: Add function prototype for __sccl.
* libc/stdio/open_memstream.c: Remove unused variable flags.
* libc/stdio/vfscanf.c: Proper prototyping for ccfn, remove prototype
for __sccl since now in local.h.
* libc/string/memcpy.c: Add #include <string.h> (for real and for
traditional synopsis), remove extraneous stddef.h and limits.h.
* libc/syscalls/sysclose.c: Add #include <unistd.h>.
* libc/syscalls/sysfork.c: Ditto.
* libc/syscalls/sysgetpid.c: Ditto.
* libc/syscalls/sysexecve.c: Add #include <unistd.h>, align function
prototype with POSIX definition.
* libc/syscalls/sysfstat.c: Add #include <sys/stat.h>.
* libc/syscalls/sysgettod.c: Correct sys/times.h to sys/time.h.
* libc/syscalls/syskill.c: Add #include <signal.h>.
* libc/syscalls/syslink.c: Add #include <unistd.h>, fix prototype.
* libc/syscalls/sysunlink.c: Ditto.
* libc/syscalls/sysstat.c: Add #include <sys/stat.h>, fix prototype.
* libc/syscalls/syswait.c: Add #include <sys/wait.h>, fix prototype.
jjohnstn [Thu, 11 Dec 2008 12:46:36 +0000 (12:46 +0000)]
2008-12-11 Ken Werner <ken.werner@de.ibm.com
* spu/crt0.S: Call __monstartup if profiling is enabled.
* spu/Makefile.in: Add gcrt1.o gcrt2.o.
amodra [Thu, 11 Dec 2008 10:14:40 +0000 (10:14 +0000)]
PR 7041
* elf64-ppc.c (func_desc_adjust): Correct logic making fake function
descriptors. Similarly correct making function descriptors dynamic.
gdbadmin [Thu, 11 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 11 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update
jjohnstn [Wed, 10 Dec 2008 23:43:12 +0000 (23:43 +0000)]
2008-12-10 Corinna Vinschen <corinna@vinschen.de>
Implement basic wide char stdio functionality, based on FreeBSD.
* libc/include/stdio.h (__SORD): Define.
(__SWID): Define.
* libc/include/wchar.h: Add declarations for new wide char functions.
(getwc): Define as macro.
(getwchar): Ditto.
(putwc): Ditto.
(putwchar): Ditto.
* libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
(struct __sFILE64): Ditto.
* libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
and ungetwc.c.
(CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
ungetwc.def.
Add header dependency rules for the new files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
* libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
* libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
(__sfmoreglue): Ditto.
* libc/stdio/fputs.c (_fputs_r): Set stream orientation.
* libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
* libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
* libc/stdio/fread.c (_fread_r): Set stream orientation.
* libc/stdio/freopen.c (_freopen_r): Reset stream orientation. Reset
_mbstate.
* libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
* libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
* libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
* libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
* libc/stdio/getwchar.c: New file, implementing getwchar and
_getwchar_r.
* libc/stdio/local.h (ORIENT): New macro.
* libc/stdio/puts.c (_puts_r): Set stream orientation.
* libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
* libc/stdio/putwchar.c: New file, implementing putwchar and
_putwchar_r.
* libc/stdio/refill.c (__srefill_r): Set stream orientation.
* libc/stdio/stdio.tex: Add documentation for new functions.
* libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
* libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
* libc/stdio/wbuf.c (__swbuf_r): Ditto.
dj [Wed, 10 Dec 2008 23:28:15 +0000 (23:28 +0000)]
merge from gcc
palves [Wed, 10 Dec 2008 21:32:14 +0000 (21:32 +0000)]
* infcmd.c (until_next_command, finish_backward): Use get_frame_pc
instead of read_pc.
jjohnstn [Wed, 10 Dec 2008 21:27:58 +0000 (21:27 +0000)]
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
ccoutant [Wed, 10 Dec 2008 19:50:14 +0000 (19:50 +0000)]
* layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
object to override a kept COMDAT group from a plugin object.
amodra [Wed, 10 Dec 2008 13:36:40 +0000 (13:36 +0000)]
bfd/
* elf32-spu.h (struct spu_elf_params): Add num_regions.
* elf32-spu.c (spu_elf_auto_overlay): Handle multiple overlay regions.
ld/
* emultempl/spuelf.em (params): Init new field.
(OPTION_SPU_NUM_REGIONS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --num-regions.
(PARSE_AND_LIST_ARGS_CASES): Handle --num-regions.
amodra [Wed, 10 Dec 2008 06:32:51 +0000 (06:32 +0000)]
bfd/
* elf32-spu.g (struct spu_elf_params, enum _ovly_flavour): New.
(spu_elf_setup): Declare.
(spu_elf_create_sections, spu_elf_size_stubs): Update prototype.
(spu_elf_build_stubs, spu_elf_check_vma): Likewise.
* elf32-spu.c (struct spu_link_hash_table): Add "params". Remove
various other fields now in "params". Adjust code throughout.
(struct call_info, struct function_info): Move earlier in file.
(struct spu_elf_stack_info): Likewise.
(spu_elf_setup): New function.
(spu_elf_create_sections): Remove args other than "info".
(spu_elf_size_stubs, spu_elf_build_stubs, spu_elf_check_vma): Likewise.
(maybe_needs_stubs): Remove "output_bfd" arg. Adjust all calls.
(interesting_section): Similarly with "obfd" arg.
(needs_ovl_stub): Adjust output_section test.
(allocate_spuear_stubs): Likewise.
(OVL_STUB_SIZE): Don't define.
(ovl_stub_size): New function, use in place of OVL_STUB_SIZE.
(build_stub): Test params->ovly_flavour rather than OVL_STUB_SIZE.
(spu_elf_auto_overlay): Remove args other than "info". Make use
of size returned from spu_elf_load_ovl_mgr.
(spu_elf_stack_analysis): Remove args other than "info".
(spu_elf_relocate_section): Tidy setting of "ea".
ld/
* emultempl/spuelf.em (params): New var, used instead of various others.
Adjust use throughout file.
(spu_after_open): Call spu_elf_setup.
(spu_place_special_section): Tidy.
(spu_elf_load_ovl_mgr): Return total size of sections loaded. Move
code setting overlay section alignment to..
(spu_before_allocation): ..here.
amodra [Wed, 10 Dec 2008 03:49:01 +0000 (03:49 +0000)]
* elf32-spu.c (define_ovtab_symbol): Don't abort on symbols
defined in linker scripts.
(discover_functions): Consider STT_SECTION symbols too.
(collect_lib_sections): Don't cut short call tree traversal
when function size is too large.
tromey [Wed, 10 Dec 2008 01:05:13 +0000 (01:05 +0000)]
gdb
PR gdb/1815:
* cli/cli-decode.c (delete_cmd): Forward declare.
(delete_cmd): Now static. Change return type. Remove command
from alias chain. Rewrite.
(add_cmd): Initialize new fields. Update cmd_pointer on all
aliases.
(add_alias_cmd): Put command on alias chain.
* command.h (delete_cmd): Don't declare.
* cli/cli-decode.h (delete_cmd): Don't declare.
(struct cmd_list_element) <aliases, alias_chain>: New fields.
gdb/testsuite
* gdb.base/commands.exp (redefine_backtrace_test): New proc.
Call it.
amodra [Wed, 10 Dec 2008 00:37:11 +0000 (00:37 +0000)]
* elf32-spu.c (find_function_stack_adjust): Don't limit number
of insns scanned. Correct sp tests. Handle "fsmbi" and "andbi".
(mark_detached_root): New function.
(build_call_tree): Call it.
(sort_calls): Don't do void* arithmetic.
amodra [Wed, 10 Dec 2008 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 10 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
tromey [Tue, 9 Dec 2008 18:59:53 +0000 (18:59 +0000)]
bfd
* pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc
4.4.
binutils
* srconv.c (wr_hd): Add parens to placate gcc 4.4.
devans [Tue, 9 Dec 2008 18:52:20 +0000 (18:52 +0000)]
* linux-low.h (struct process_info): Delete member tid, unused.
* thread-db.c (find_one_thread): Update.
(maybe_attach_thread): Update.
tromey [Tue, 9 Dec 2008 17:18:28 +0000 (17:18 +0000)]
* config.in, configure: Rebuild.
* configure.ac: Check for locale.h, setlocale. Call
AM_LC_MESSAGES.
* acinclude.m4: Include lcmessage.m4.
jkratoch [Tue, 9 Dec 2008 16:36:12 +0000 (16:36 +0000)]
* remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
corinna [Tue, 9 Dec 2008 16:09:44 +0000 (16:09 +0000)]
* resolv.h: #include <netinet/in.h> for sockaddr_in typedef.
ian [Tue, 9 Dec 2008 16:09:32 +0000 (16:09 +0000)]
PR 7088
* yyscript.y (file_cmd): Handle INPUT.
ian [Tue, 9 Dec 2008 16:03:47 +0000 (16:03 +0000)]
* testsuite/initpri1.c: Change all declarations to be full
prototypes by adding void, to avoid compiler warnings.
gingold [Tue, 9 Dec 2008 09:51:08 +0000 (09:51 +0000)]
2008-12-09 Tristan Gingold <gingold@adacore.com>
* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.
ams [Tue, 9 Dec 2008 08:34:29 +0000 (08:34 +0000)]
2008-12-09 Andrew Stubbs <ams@codesourcery.com>
* readelf.c (arm_attr_tag_CPU_arch): Add "v6-M" and "v6S-M".
(arm_attr_tag_WMMX_arch): Add "WMMXv2".
(arm_attr_tag_NEON_arch): Rename to ...
(arm_attr_tag_Advanced_SIMD_arch): ... official name.
(arm_attr_tag_ABI_PCS_config): Rename to ...
(arm_attr_tag_PCS_config): ... official name.
(arm_attr_tag_ABI_PCS_RO_DATA): Rename to ...
(arm_attr_tag_ABI_PCS_RO_data): ... official name.
(arm_attr_tag_ABI_FP_denormal): Add "Sign only".
(arm_attr_tag_CPU_unaligned_access): New array.
(arm_attr_tag_T2EE_use): New array.
(arm_attr_tag_Virtualization_use): New array.
(arm_attr_tag_MPextension_use): New array.
(arm_attr_publ): NEON_arch -> Advanced_SIMD_arch.
ABI_PCS_config -> PCS_config.
ABI_PCS_RO_DATA -> ABI_PCS_RO_data.
Add CPU_unaligned_access, nodefaults, also_compatible_with,
T2EE_use, conformance, Virtualization_use and MPextension_use.
(display_arm_attribute): Handle Tag_nodefaults and
Tag_also_compatible_with.
dannysmith [Tue, 9 Dec 2008 02:42:21 +0000 (02:42 +0000)]
Committed as obvious.
2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
* cpu_features.c (__cpu_features_init): Remove erroneous ';'.
gdbadmin [Tue, 9 Dec 2008 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 9 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update
hjl [Mon, 8 Dec 2008 18:07:26 +0000 (18:07 +0000)]
2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Move VexNDS before VexNDD.
hjl [Mon, 8 Dec 2008 17:59:00 +0000 (17:59 +0000)]
2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (build_modrm_byte): Remove an extra blank
line.
hjl [Mon, 8 Dec 2008 17:43:06 +0000 (17:43 +0000)]
2008-12-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (putop): Remove strayed comments.
brobecke [Mon, 8 Dec 2008 17:13:30 +0000 (17:13 +0000)]
* python/python-value.c (values_in_python): Add specific initialization
to NULL to work-around a MacOS linker bug.
jkratoch [Mon, 8 Dec 2008 13:27:36 +0000 (13:27 +0000)]
Fix loc_type of `bp_location's created by update_watchpoint.
* breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
Replace bp_type by bpt->type. Update prototype. All callers updated.
(add_location_to_breakpoint): Remove the bp_type parameter.
Replace bp_type by b->type. All callers updated.
(set_breakpoint_location_function): Replace bptype by b->type.
corinna [Mon, 8 Dec 2008 11:45:17 +0000 (11:45 +0000)]
* fhandler_registry.cc (encode_regname): Add Parameter add_val.
Append "%val" if add_val is set.
(decode_regname): Remove trailing "%val". Change returncode accordingly.
(__DIR_hash): New class.
(d_hash): New macro.
(key_exists): New function.
(fhandler_registry::exists): Remove encode of registry name before path
compare, decode file part of path instead. Skip checks for keys if
trailing "%val" detected.
(fhandler_registry::fstat): Change check of return value of
decode_regname ().
(fhandler_registry::readdir): Allocate __DIR_hash. Record key names in
hash table. Append "%val" if key with same name exists. Fix error
handling of encode_regname (). Set dirent.d_type.
(fhandler_registry::closedir): Delete __DIR_hash.
(fhandler_registry::open): Don't open key if trailing "%val" detected
by decode_regname ().
(open_key): Ditto.
amodra [Mon, 8 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 8 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
jkratoch [Sun, 7 Dec 2008 15:59:50 +0000 (15:59 +0000)]
* breakpoint.c (update_global_location_list): Fix the comment.
amodra [Sun, 7 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 7 Dec 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
nemet [Sat, 6 Dec 2008 16:29:01 +0000 (16:29 +0000)]
* mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. Update
comment.
ironhead [Sat, 6 Dec 2008 02:25:28 +0000 (02:25 +0000)]
2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/w32api.h: Increment version to 3.13.
* Makefile.in: Ditto.
ironhead [Sat, 6 Dec 2008 02:19:56 +0000 (02:19 +0000)]
2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
* lib/glut.def: remove.
* lib/glut32.def: ditto.
gdbadmin [Sat, 6 Dec 2008 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 6 Dec 2008 00:00:06 +0000 (00:00 +0000)]
daily update
palves [Fri, 5 Dec 2008 22:38:08 +0000 (22:38 +0000)]
* infcmd.c (step_1, step_once): Look up the stepping range based
on the current frame's PC, not on stop_pc.
ccoutant [Fri, 5 Dec 2008 21:34:50 +0000 (21:34 +0000)]
2008-12-05 Rafael Avila de Espindola <espindola@google.com>
* options.cc (General_options::parse_plugin_opt): New.
(General_options::add_plugin): The argument now is just the filename.
(General_options::add_plugin_option): New.
* options.h (plugin_opt): New.
(add_plugin): Change argument name.
(add_plugin_option): New.
* plugin.cc (Plugin::load): Don't parse the plugin option.
* plugin.h (Plugin::Plugin): Rename argument. Init filename_.
(Plugin::add_option): New.
(Plugin::args_): Change type.
(Plugin::filename_): New.
(Plugin_manager::add_plugin_option): New.
* testsuite/Makefile.am (plugin_test_1): Use new syntax.
* testsuite/Makefile.in: Regenerate.
ccoutant [Fri, 5 Dec 2008 21:13:35 +0000 (21:13 +0000)]
* layout.cc (Layout::include_section): Check for SHF_EXCLUDE.
Handle --strip-lto-sections option.
* options.h (strip_lto_sections): New option.
nemet [Fri, 5 Dec 2008 19:51:33 +0000 (19:51 +0000)]
* mips/idt64.ld: Set arch to mips:isa64r2 from mips:isa64. Update
comment.
jkratoch [Fri, 5 Dec 2008 18:25:01 +0000 (18:25 +0000)]
Fix compilation on 32-bit host configurations.
* ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
gingold [Fri, 5 Dec 2008 11:08:57 +0000 (11:08 +0000)]
2008-12-05 Tristan Gingold <gingold@adacore.com>
* i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
(amd64_darwin_sstep_at_sigreturn): New function.
(darwin_set_sstep): The sigreturn is a special case: the trace flag
must be set in the mcontext structure.
palves [Fri, 5 Dec 2008 02:08:23 +0000 (02:08 +0000)]
* infcmd.c (step_once): Remove dead code.
amodra [Fri, 5 Dec 2008 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 5 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
devans [Thu, 4 Dec 2008 21:40:59 +0000 (21:40 +0000)]
* infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
devans [Thu, 4 Dec 2008 17:41:42 +0000 (17:41 +0000)]
* gdb.server/ext-run.exp: Relax regexp for init program.
gingold [Thu, 4 Dec 2008 15:35:43 +0000 (15:35 +0000)]
2008-12-03 Tristan Gingold <gingold@adacore.com>
* gdb.base/macscp.exp: Generate an object file during compilation
to work around Darwin dsymutil limitations.
corinna [Thu, 4 Dec 2008 13:58:11 +0000 (13:58 +0000)]
* libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
(_POSIX_V6_LP64_OFF64): Ditto.
(_POSIX_V6_LPBIG_OFFBIG): Ditto.
nickc [Thu, 4 Dec 2008 11:00:18 +0000 (11:00 +0000)]
* ld-x86-64/ifunc.d: New test (of STT_IFUNC for x86_64).
* ld-x86-64/ifunc.s: Source file for new test.
* ld-x86-64/x86-64.exp: Run the new test.
* ld-i386/ifunc.d: Tidy up regexps for expected output.
bje [Thu, 4 Dec 2008 10:29:15 +0000 (10:29 +0000)]
opcodes/
* ppc-dis.c (powerpc_init_dialect): Do not set PPC_OPCODE_BOOKE
for -Mbooke.
(print_ppc_disassembler_options): Update usage.
* ppc-opc.c (DE, DES, DEO, DE_MASK): Remove.
(BOOKE64): Remove.
(PPCCHLK64): Likewise.
(powerpc_opcodes): Remove all BOOKE64 instructions.
gas/
* config/tc-ppc.c (parse_cpu): Remove booke64 support. Update
usage strings.
(ppc_setup_opcodes): Likewise, remove booke64 support.
* doc/c-ppc.texi (PowerPC-Opts): Remove -mbooke32 and -mbooke64.
* doc/as.texinfo (Overview): Likewise.
binutils/
* doc/binutils.texi (objdump): Update booke documentation.
* NEWS: Document user-visible changes to command line options.
corinna [Thu, 4 Dec 2008 10:07:54 +0000 (10:07 +0000)]
* ntsec.sgml: Fix typo.
nickc [Thu, 4 Dec 2008 08:53:38 +0000 (08:53 +0000)]
* doc/as.texinfo (Type): Reword description of STT_IFUNC type.
krebbel [Thu, 4 Dec 2008 08:43:26 +0000 (08:43 +0000)]
2008-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* elf64-s390.c (elf_s390_check_relocs): Initialize
htab->elf.dynobj if necessary.
nickc [Thu, 4 Dec 2008 08:04:46 +0000 (08:04 +0000)]
* objdump.c (dump_reloc_set): Append "()" to symbol names which
have the BSF_INDIRECT_FUNCTION type.
* readelf.c (print_symbol): Fix handling of negative widths.
(dump_relocations): Append "()" to symbol names which have the
STT_IFUNC type. Display negative offsets as a positive number with
a "-" prefix.
(get_symbol_type): Return "IFUNC" for STT_IFUNC symbols.
* doc/binutils.texi: Document 'i' symbol type.
amodra [Thu, 4 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 4 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Wed, 3 Dec 2008 16:37:49 +0000 (16:37 +0000)]
* libc/minires.c (open_sock): Set non blocking and close on exec.
(res_ninit): Set id pseudo-randomly.
(res_nsend): Do not set close on exec. Initialize server from id.
Flush socket. Tighten rules for answer acceptance.
(res_nmkquery): Update id using current data.
nickc [Wed, 3 Dec 2008 14:50:56 +0000 (14:50 +0000)]
include/elf/
* common.h (STT_IFUNC): Define.
elfcpp/
* elfcpp.h (enum STT): Add STT_IFUNC.
bfd/
* syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION.
Remove redundant flag BFD_FORT_COMM_DEFAULT_VALUE. Renumber flags
to remove gaps.
(bfd_print_symbol_vandf): Return 'i' for BSF_INDIRECT_FUNCTION.
(bfd_decode_symclass): Likewise.
* elf.c (swap_out_syms): Translate BSF_INDIRECT_FUNCTION into
STT_IFUNC.
(elf_find_function): Treat STT_IFUNC in the same way as STT_FUNC.
(_bfd_elf_is_function_type): Likewise.
* elf32-arm.c (arm_elf_find_function): Likewise.
(elf32_arm_adjust_dynamic_symbol): Likewise.
(elf32_arm_swap_symbol_in): Likewise.
(elf32_arm_additional_program_headers): Likewise.
* elf32-i386.c (is_indirect_symbol): New function.
(elf_i386_check_relocs): Also generate dynamic relocs for
relocations against STT_IFUNC symbols.
(allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (is_indirect_symbol): New function.
(elf64_x86_64_check_relocs): Also generate dynamic relocs for
relocations against STT_IFUNC symbols.
(allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
* elfcode.h (elf_slurp_symbol_table): Translate STT_IFUNC into
BSF_INDIRECT_FUNCTION.
* elflink.c (_bfd_elf_adjust_dynamic_reloc_section): Add support
for STT_IFUNC symbols.
(get_ifunc_reloc_section_name): New function.
(_bfd_elf_make_ifunc_reloc_section): New function.
* elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs field.
* bfd-in2.h: Regenerate.
gas/
* config/obj-elf.c (obj_elf_type): Add support for STT_IFUNC type.
* doc/as.texinfo: Document new feature.
* NEWS: Mention new feature.
gas/testsuite/
* gas/elf/type.s: Add test of STT_IFUNC symbol type.
* gas/elf/type.e: Update expected disassembly.
* gas/elf/elf.exp: Update grep of symbol types.
ld/
* NEWS: Mention new feature.
* pe-dll.c (process_def_file): Replace use of redundant
BFD_FORT_COMM_DEFAULT_VALUE with 0.
* scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn
sections.
ld/testsuite/
* ld-mips-elf/reloc-1-n32.d: Updated expected output for reloc
descriptions.
* ld-mips-elf/reloc-1-n64.d: Likewise.
* ld-i386/ifunc.d: New test.
* ld-i386/ifunc.s: Source file for the new test.
* ld-i386/i386.exp: Run the new test.
corinna [Wed, 3 Dec 2008 11:47:27 +0000 (11:47 +0000)]
* ntsec.sgml: Revamp parts of the doc for clearness.
amodra [Wed, 3 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 3 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Tue, 2 Dec 2008 19:29:37 +0000 (19:29 +0000)]
* ntsec.sgml: Fix a few typos.
devans [Tue, 2 Dec 2008 19:20:23 +0000 (19:20 +0000)]
* infrun.c (handle_inferior_event): Remove redundant resetting of
stepping_past_singlestep_breakpoint.
corinna [Tue, 2 Dec 2008 17:39:39 +0000 (17:39 +0000)]
* cygserver.sgml: Fix cross reference to the ntsec documentation.
corinna [Tue, 2 Dec 2008 17:32:37 +0000 (17:32 +0000)]
* cygserver.sgml: Document new feature to store hidden passwords
for seteuid.