OSDN Git Service

pf3gnuchains/sourceware.git
16 years ago * fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
corinna [Thu, 24 Apr 2008 12:37:05 +0000 (12:37 +0000)]
* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.

16 years ago * mi/mi-main.c (last_async_command): Rename to current_token.
vprus [Thu, 24 Apr 2008 12:09:48 +0000 (12:09 +0000)]
    * mi/mi-main.c (last_async_command): Rename to current_token.
        (previous_async_command): Remove.
        (mi_cmd_gdb_exit): Adjust.
        (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
        (mi_cmd_target_select): Adjust.
        (mi_cmd_execute): Don't set previous_async_command.  Free token
        here even in async mode.
        (mi_execute_async_cli_command): Adjust.
        (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
        token.
        (mi_load_progress): Adjust.

16 years ago * infcmd.c (step_1_continuation): Always disable longjmp
vprus [Thu, 24 Apr 2008 11:43:13 +0000 (11:43 +0000)]
    * infcmd.c (step_1_continuation): Always disable longjmp
        breakpoint if we're not going to do another step.

16 years ago* libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
nickc [Thu, 24 Apr 2008 11:26:41 +0000 (11:26 +0000)]
* libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
  should be _DOUBLE_IS_32BITS.

16 years ago exec_cleanup murder.
vprus [Thu, 24 Apr 2008 11:13:44 +0000 (11:13 +0000)]
exec_cleanup murder.
* breakpoint.c (until_break_command_continuation): Add
the 'error' parameter.  Directly delete the breakoint as
opposed to running cleanups.
(until_break_command): Install continuation only
after starting the target.  Don't use exec cleanups,
use ordinary cleanups.  Discard cleanups is successfully
started the target in async mode.
(make_cleanup_delete_breakpoint): Remove.
* breakpoint.h (make_cleanup_delete_breakpoint): Remove
declaration.
* defs.h (do_exec_cleanups, make_exec_cleanup): Remove
declarations.
(struct continations): Add the 'error' parameter to the
continuation_hook field.
(add_continuation, do_all_continuations)
(add_intermediate_continuation)
(do_all_intermediate_continuations): Add the 'error' parameter.
* exceptions.c (throw_exception): Don't call do_exec_cleanups.
* inf-loop.c (inferior_event_handler): Instead of calling
discard_all_continuations, use do_all_continuations with 1 as
'error' parameter.  Pass 0 as 'error' parameter in existing uses
of discard_all_continuations.
* infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
cleanups.
(step_once): Install continuation only after resuming the target.
(step_1_continuation): Disable longjmp breakpoint on error.
(finish_command_continuation): Add the error parameter.  Delete
the finish breakpoint directly, do not use cleanups.
(finish_command): Do not use exec_cleanups. Always setup
continuation.  For sync case, immediately run them.
(attach_command_continuation): Add the error parameter.
* infrun.c (fetch_inferior_event): Do not use exec cleanups to
remove step_resume_breakpoint -- adjust delete it directly.
* interps.c (interp_set): Adjust call to do_all_continations.
* mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
do exec cleanups.
* mi/mi-main.c (mi_cmd_target_select): Do not do exec
cleanups.
(mi_cmd_execute): Do not use exec_cleanup.
(mi_execute_async_cli_command): Simplify the string concatenation
logic.  Do no use exec cleanup.
(mi_exec_async_cli_cmd_continuation): New parameter error.
Free last_async_command.
* top.c (command_line_handler_continuation): New parameter error.
* utils.c (exec_cleanup_chain, make_exec_cleanup)
(do_exec_cleanups): Remove.
(add_continuation, do_all_continations)
(add_intermediate_continuation)
(do_all_intermediate_continuations): New parameter error.

16 years ago * breakpoint.h (bp_location_p): New typedef.
vprus [Thu, 24 Apr 2008 10:21:43 +0000 (10:21 +0000)]
* breakpoint.h (bp_location_p): New typedef.
Register a vector of bp_location_p.
* breakpoint.c (always_inserted_mode)
(show_always_inserted_mode): New.
(unlink_locations_from_global_list): Remove.
(update_global_location_list)
(update_global_location_list_nothrow): New.
(update_watchpoint): Don't free locations.
(should_insert_location): New.
(insert_bp_location): Use should_insert_location.
(insert_breakpoint_locations): Copied from
insert_breakpoints.
(insert_breakpoint): Use insert_breakpoint_locations.
(bpstat_stop_status): Call update_global_location_list
when disabling breakpoint.
(allocate_bp_location): Don't add to bp_location_chain.
(set_raw_breakpoint)
(create_longjmp_breakpoint, enable_longjmp_breakpoint)
(disable_longjmp_breakpoint, create_overlay_event_breakpoint)
(enable_overlay_breakpoints, disable_overlay_breakpoints)
(set_longjmp_resume_breakpoint)
(enable_watchpoints_after_interactive_call_stop)
(disable_watchpoints_before_interactive_call_start)
(create_internal_breakpoint)
(create_fork_vfork_event_catchpoint)
(create_exec_event_catchpoint, set_momentary_breakpoint)
(create_breakpoints, break_command_1, watch_command_1)
(create_exception_catchpoint)
(handle_gnu_v3_exceptions)
(disable_breakpoint, breakpoint_re_set_one)
(create_thread_event_breakpoint, create_solib_event_breakpoint)
(create_ada_exception_breakpoint): : Don't call check_duplicates.
Call update_global_location_list.
(delete_breakpoint): Don't remove locations and don't
try to reinsert them. Call update_global_location_list.
(update_breakpoint_locations): Likewise.
(restore_always_inserted_mode): New.
(update_breakpoints_after_exec): Temporary disable
always inserted mode.
* Makefile.in: Update dependencies.

* infrun.c (proceed): Remove breakpoints while stepping
over breakpoint.
(handle_inferior_event): Don't remove or insert
breakpoints.
* linux-fork.c (checkpoint_command): Remove breakpoints
before fork and insert after.
(linux_fork_context): Remove breakpoints before switch
and insert after.
* target.c (target_disconnect, target_detach): Remove
breakpoints from target.

16 years ago * cygwin-api.in.sgml: Add std-susv4 section to Compatibility chapter.
corinna [Thu, 24 Apr 2008 10:00:04 +0000 (10:00 +0000)]
* cygwin-api.in.sgml: Add std-susv4 section to Compatibility chapter.

16 years ago * cygwin.din (futimens): Export.
corinna [Thu, 24 Apr 2008 09:59:53 +0000 (09:59 +0000)]
* cygwin.din (futimens): Export.
(utimensat): Export.
* fhandler.cc (fhandler_base::utimens): Replace fhandler_base::utimes.
Call utimens_fs.
* fhandler.h (class fhandler_base): Declare utimens_fs instead of
utimes_fs, utimens instead of utimes.
(class fhandler_disk_file): Declare utimens instead of utimes.
* fhandler_disk_file.cc (fhandler_disk_file::utimens): Replace
fhandler_disk_file::utimes.
(fhandler_base::utimens_fs): Replace fhandler_base::utimes_fs.
Implement tv_nsec handling according to SUSv4.
* syscalls.cc (utimensat): New function.
* times.cc (timespec_to_filetime): New function.
(timeval_to_timespec): New function.
(utimens_worker): Replace utimes_worker.
(utimes): Convert timeval to timespec and call utimens_worker.
(lutimes): Ditto.
(futimens): Take over implementation from futimes.
(futimes): Convert timeval to timespec and call futimens.
* winsup.h (timespec_to_filetime): Declare.
* include/cygwin/version.h: Bump API minor number.
* posix.sgml: Add SUSv4 section.  Add futimens and utimensat to it.

16 years ago * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
corinna [Thu, 24 Apr 2008 09:39:20 +0000 (09:39 +0000)]
* libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
(UTIME_OMIT): Ditto.
(utimensat): Declare for Cygwin.
(futimens): Ditto.

16 years ago * include/wait.h: New file.
corinna [Thu, 24 Apr 2008 08:46:40 +0000 (08:46 +0000)]
* include/wait.h: New file.

16 years ago * breakpoint.c (print_one_breakpoint_location): In MI
vprus [Thu, 24 Apr 2008 08:46:17 +0000 (08:46 +0000)]
* breakpoint.c (print_one_breakpoint_location): In MI
mode, report the location string the breakpoint was
originally created with.

16 years ago(oops) Add changelog entry for David Miller's SunPRO support patch which was
nickc [Thu, 24 Apr 2008 08:20:55 +0000 (08:20 +0000)]
(oops) Add changelog entry for David Miller's SunPRO support patch which was
accidentally omitted yesterday.

16 years agodaily update
amodra [Thu, 24 Apr 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Thu, 24 Apr 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-04-23 Ken Werner <ken.werner@de.ibm.com>
jjohnstn [Wed, 23 Apr 2008 23:10:54 +0000 (23:10 +0000)]
2008-04-23  Ken Werner  <ken.werner@de.ibm.com>

        * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
        * libc/include/math.h: Likewise.

16 years ago2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 23 Apr 2008 21:17:04 +0000 (21:17 +0000)]
2008-04-23  Maxim Grigoriev  <maxim2405@gmail.com>

* Makefile.in (xtensa-tdep.o): Update dependencies.
* configure.tgt (xtensa*): Update dependencies.
* xtensa-tdep.c (arreg_number): Renamed from areg_number.
Local variable areg renamed to arreg.
(areg_number): New function.
(xtensa_pseudo_register_read, xtensa_pseudo_register_write)
(xtensa_extract_return_value, xtensa_store_return_value): areg_number
replaced by arreg_number.
(xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
(xtensa_alloc_frame_cache): Initialize cache->wd.ws.
(xtensa_scan_prologue): New function.
(xtensa_frame_cache): New local fp_regnum. Handle separately the case,
when ENTRY instraction hasn't been executed yet. Get the frame pointer
value based on prologue analysis. Fix the bugs preventing WS and
AR4-AR7/A11 registers from getting right values for intermediate frames,
whose registers have been already spilled.
(xtensa_frame_prev_register): Fix WS register value. Use are_number
and arreg_number appropriately.
(xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
svr4_ilp32_fetch_link_map_offsets.

16 years ago2008-04-23 Mike Frysinger <vapier@gentoo.org>
vapier [Wed, 23 Apr 2008 18:40:34 +0000 (18:40 +0000)]
2008-04-23  Mike Frysinger  <vapier@gentoo.org>

* Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
(OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
(obj-fdpicelf.o): Define.
* Makefile.in: Regenerate.
* configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
(bfin-*-*): Delete.
(bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
(bfin-*-uclinux*): New; set fmt to elf and em to linux.
* config/obj-fdpicelf.c: New.
* config/obj-fdpicelf.h: Likewise.
* config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
the OBJ_FDPIC_ELF define.
(OPTION_NOPIC): Define.
(md_longopts): Add mnopic and mno-fdpic.
(md_parse_option): Handle OPTION_NOPIC.

16 years ago Based on patch from Masaki Muranaka <monaka@monami-software.com>:
kseitz [Wed, 23 Apr 2008 18:09:41 +0000 (18:09 +0000)]
    Based on patch from Masaki Muranaka  <monaka@monami-software.com>:
        * compat/strstr.c: Include tcl.h and define NULL if it is
        not already defined.

16 years ago * object.cc (Sized_relobj::include_section_group): Check for
ian [Wed, 23 Apr 2008 17:40:19 +0000 (17:40 +0000)]
* object.cc (Sized_relobj::include_section_group): Check for
invalid section group.

16 years ago * object.cc (make_elf_object): Correct test for 64-bit ELF file
ian [Wed, 23 Apr 2008 17:32:53 +0000 (17:32 +0000)]
* object.cc (make_elf_object): Correct test for 64-bit ELF file
header size.

16 years ago * readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
ian [Wed, 23 Apr 2008 17:29:04 +0000 (17:29 +0000)]
* readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
than read for file header.
* archive.cc (Archive::include_member): Likewise.

16 years agobfd/
hjl [Wed, 23 Apr 2008 16:11:45 +0000 (16:11 +0000)]
bfd/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

binutils/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gas/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gold/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

gprof/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

ld/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

opcodes/

2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* aclocal.m4: Regenerate.
* configure: Regenerate.

16 years ago2008-04-23 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 23 Apr 2008 16:01:09 +0000 (16:01 +0000)]
2008-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run sse-noavx and x86-64-sse-noavx.

* gas/i386/sse-noavx.d: New.
* gas/i386/sse-noavx.s: Likewise.
* gas/i386/x86-64-sse-noavx.d: Likewise.
* gas/i386/x86-64-sse-noavx.s: Likewise.

16 years ago2008-04-23 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 23 Apr 2008 14:34:05 +0000 (14:34 +0000)]
2008-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/sse2.s: Add tests for pmuludq, paddq and psubq.
* gas/i386/x86-64-simd.s: Likewise.

* gas/i386/sse2.d: Updated.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd-suffix.d: Likewise.

16 years ago2008-04-23 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 23 Apr 2008 14:33:56 +0000 (14:33 +0000)]
2008-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/sse2.s: Add tests for pmuludq, paddq and psubq.
* gas/i386/x86-64-simd.s: Likewise.

* gas/i386/sse2.d: Updated.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd-suffix.d: Likewise.

16 years ago * config/obj-elf.c (obj_elf_section_type): Add prototype
nickc [Wed, 23 Apr 2008 13:54:56 +0000 (13:54 +0000)]
    * config/obj-elf.c (obj_elf_section_type): Add prototype
        before obj_elf_section_word and add 'warn' arg.
        (obj_elf_section_word): Add type pointer arg, and if no #SECTION
        is matched, try checking for #SECTION_TYPE.
        (obj_elf_section): Adjust for new args.
        (obj_elf_type_name): New function.
        (obj_elf_type): Call it, and accept STT_foo number strings
        in .type statements as output by SunPRO compiler.

16 years ago2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
ams [Wed, 23 Apr 2008 13:21:52 +0000 (13:21 +0000)]
2008-04-23  Andrew Stubbs  <andrew.stubbs@st.com>

* printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
(printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.

16 years agogdb:
bonzini [Wed, 23 Apr 2008 12:21:45 +0000 (12:21 +0000)]
gdb:
2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

        * acinclude.m4: Add override.m4.
        * configure: Regenerate.

gdb/gdbserver:
2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

        * acinclude.m4: Add override.m4.
        * configure: Regenerate.

gdb/testsuite:
2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

        * aclocal.m4: Add override.m4.
        * configure: Regenerate.

16 years ago * mount.cc (usage): Mark -s and -u as ignored.
corinna [Wed, 23 Apr 2008 11:37:58 +0000 (11:37 +0000)]
* mount.cc (usage): Mark -s and -u as ignored.
(print_version): Simplify printing copyright dates.
(main): Remove default_flag.  Dont set flags on -s and -u options.
(mount_commands): Drop handling -s and -u options.

16 years ago * posix.sgml: Add openat, faccessat, fchmodat, fchownat, fstatat,
corinna [Wed, 23 Apr 2008 11:19:57 +0000 (11:19 +0000)]
* posix.sgml: Add openat, faccessat, fchmodat, fchownat, fstatat,
futimesat, linkat, mkdirat, mkfifoat, mknodat, readlinkat, renameat,
symlinkat, unlinkat to list of implemented Solaris functions.

16 years ago * cygwin.din: Sort.
corinna [Wed, 23 Apr 2008 11:13:52 +0000 (11:13 +0000)]
* cygwin.din: Sort.
(faccessat): Export.
(fchmodat): Export.
(fchownat): Export.
(fstatat): Export.
(futimesat): Export.
(linkat): Export.
(mkdirat): Export.
(mkfifoat): Export.
(mknodat): Export.
(openat): Export.
(readlinkat): Export.
(renameat): Export.
(symlinkat): Export.
(unlinkat): Export.
* path.cc (readlink): Align definition to POSIX.
* syscalls.cc (gen_full_path_at): New static function.
(faccessat): Implement.
(fchmodat): Implement.
(fchownat): Implement.
(fstatat): Implement.
(futimesat): Implement.
(linkat): Implement.
(mkdirat): Implement.
(mkfifoat): Implement.
(mknodat): Implement.
(openat): Implement.
(readlinkat): Implement.
(renameat): Implement.
(symlinkat): Implement.
(unlinkat): Implement.
* include/cygwin/version.h: Bump API minor number.

16 years ago * libc/include/stdio.h (renameat): Declare for Cygwin.
corinna [Wed, 23 Apr 2008 11:13:24 +0000 (11:13 +0000)]
* libc/include/stdio.h (renameat): Declare for Cygwin.
(symlinkat): Ditto.
* libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
(faccessat): Declare for Cygwin.
(fchownat): Ditto.
(linkat): Ditto.
(readlinkat): Ditto.
* libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
(AT_EACCESS): Ditto.
(AT_SYMLINK_NOFOLLOW): Ditto.
(AT_SYMLINK_FOLLOW): Ditto.
(AT_REMOVEDIR): Ditto.
(futimesat): Declare for Cygwin.
(openat): Ditto.
(unlinkat): Ditto.
* libc/include/sys/stat.h (fchmodat): Ditto.
(fstatat): Ditto.
(mkdirat): Ditto.
(mkfifoat): Ditto.
(mknodat): Ditto.

16 years ago2008-04-23 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 23 Apr 2008 10:24:41 +0000 (10:24 +0000)]
2008-04-23  Paolo Bonzini  <bonzini@gnu.org>

* confsubdir.m4: Remove.
* override.m4: Apply _AC_ARG_VALIDATE fix to all versions
but 2.62.

16 years agoopcodes/
davem [Wed, 23 Apr 2008 07:49:32 +0000 (07:49 +0000)]
opcodes/

* sparc-opc.c (asi_table): Add UltraSPARC and Niagara
extended values.
(prefetch_table): Add missing values.

gas/

* config/tc-sparc.c (v9a_asr_table): Add missing
'stick' and 'stick_cmpr', and document ordering rules
of table.
(tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
BFD_RELOC_SPARC_PC10.
* doc/c-sparc.texi: New section on Sparc constants.
Add documentation for %stick and %stick_cmpr.

gas/testsuite/

* gas/sparc/pc2210.d: New file.
* gas/sparc/pc2210.d: Likewise.
* gas/sparc/sparc.exp: Run new %pc22/%pc10 relocation test.

16 years ago*** empty log message ***
gdbadmin [Wed, 23 Apr 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Wed, 23 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agogas/
hjl [Tue, 22 Apr 2008 22:27:13 +0000 (22:27 +0000)]
gas/

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

* config/tc-i386.c (md_assemble): Don't check SSE instructions
if noavx is 0.

opcodes/

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

* i386-gen.c (opcode_modifiers): Add NoAVX.

* i386-opc.h (NoAVX): New.
(OldGcc): Updated.
(i386_opcode_modifier): Add noavx.

* i386-opc.tbl: Add NoAVX to SSE, SSE2, SSE3 and SSSE3
instructions which don't have AVX equivalent.
* i386-tbl.h: Regenerated.

16 years ago * ada-lang.c (get_selections): Variable PROMPT made non-const and
jkratoch [Tue, 22 Apr 2008 22:23:15 +0000 (22:23 +0000)]
* ada-lang.c (get_selections): Variable PROMPT made non-const and
initialized with a trailing space now.  Use PROMPT_ARG of
COMMAND_LINE_INPUT instead of printing it ourselves.

16 years ago * dcrt0.cc (dll_crt0_0): Move CWD initialization from here...
corinna [Tue, 22 Apr 2008 20:56:26 +0000 (20:56 +0000)]
* dcrt0.cc (dll_crt0_0): Move CWD initialization from here...
(dll_crt0_1): ...to here.

16 years ago * NEWS: Document support for 64-bit core file.
brobecke [Tue, 22 Apr 2008 20:29:07 +0000 (20:29 +0000)]
    * NEWS: Document support for 64-bit core file.

16 years ago * cygwin.din (fmemopen): Export.
corinna [Tue, 22 Apr 2008 16:55:23 +0000 (16:55 +0000)]
* cygwin.din (fmemopen): Export.
(open_memstream): Export.
* include/cygwin/version.h: Bump API minor number.

16 years ago * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
corinna [Tue, 22 Apr 2008 14:42:05 +0000 (14:42 +0000)]
* cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
* path.cc: Fetch mount points from fstab files instead of from
registry.  Use adapted functions copied from Cygwin DLL.
(mnt_t): Drop issys member.  Define as "mnt_t" instead of "struct mnt_t"
subsequently.
(max_mount_entry): New variable.
(unconvert_slashes): Move to earlier location in file.  Make inline.
(find2): Remove.
(get_cygdrive0): Remove.
(get_cygdrive): Remove.
(skip_ws): New function.
(find_ws): Ditto.
(conv_fstab_spaces): Ditto.
(read_flags): Ditto.
(from_fstab_line): Ditto.
(get_user): Ditto.
(from_fstab): Ditto.
(mnt_sort): Ditto.
(read_mounts): Drop old registry code.  Fetch
"Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key.  Use
rootdir extracted from module path as fallback.  Call from_fstab for
nouser and user mount points.
(setmntent): Check max_mount_entry to test if read_mounts must be
called.
(getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.

16 years agodoc/ChangeLog:
corinna [Tue, 22 Apr 2008 11:03:40 +0000 (11:03 +0000)]
doc/ChangeLog:
--------------

* gdb.texinfo (Set SH Calling convention): New @item.
(Show SH Calling convention): Ditto.

ChangeLog:
----------

* NEWS: Add information on calling convention and new SH CLI options.

* sh-tdep.c (sh_cc_gcc): New static string.
(sh_cc_renesas): Ditto.
(sh_cc_enum): New static string array.
(sh_active_calling_convention): New static string pointer denoting
active user chosen ABI.
(sh_is_renesas_calling_convention): New function to return function
specific ABI, or user choice if necessary.
(sh_use_struct_convention): Rename first argument and turn around its
meaning.  Check for renesas ABI and return accordingly.
(sh_use_struct_convention_nofpu): New function.
(sh_next_flt_argreg): Get function type as third parameter.  Check
for renesas ABI and choose floating registers accordingly.
(sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
struct return slot accordingly.
(sh_push_dummy_call_nofpu): Ditto.
(sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
Evaluate ABI and give to sh_use_struct_convention_nofpu.
(sh_return_value_fpu):  Evaluate ABI and give to
sh_use_struct_convention.
(show_sh_command): New function.
(set_sh_command): Ditto.
(_initialize_sh_tdep): Initialize `set/show sh calling-convention
CLI command.

* gdbarch.sh (return_value): Add func_type argument.
* gdbarch.c: Regenerate.
* gdbarch.h: Ditto.
* eval.c (evaluate_subexp_standard): Rename local variable value_type to
val_type so as not to collide with value_type function.  Call
using_struct_return with additional function type argument.
* infcall.c (call_function_by_hand): Call using_struct_return and
gdbarch_return_value with additional function type argument.
* infcmd.c (print_return_value): Take addition func_type argument.
Call gdbarch_return_value with additional function type argument.
(finish_command_continuation): Call print_return_value with additional
function type argument.
(finish_command): Ditto.
* sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
additional function type argument.
* stack.c (return_command): Call using_struct_return and
gdbarch_return_value with additional function type argument.
* value.c (using_struct_return): Take additional function type argument.
* value.h (using_struct_return): Accommodate declaration.
* alpha-tdep.c (alpha_return_value): Add func_type argument.
* amd64-tdep.c (amd64_return_value): Ditto.
* arm-tdep.c (arm_return_value): Ditto.
* avr-tdep.c (avr_return_value): Ditto.
* cris-tdep.c (cris_return_value): Ditto.
* frv-tdep.c (frv_return_value): Ditto.
* h8300-tdep.c (h8300_return_value): Ditto.
(h8300h_return_value): Ditto.
* hppa-tdep.c (hppa32_return_value): Ditto.
(hppa64_return_value): Ditto.
* i386-tdep.c (i386_return_value): Ditto.
* ia64-tdep.c (ia64_return_value): Ditto.
* iq2000-tdep.c (iq2000_return_value): Ditto.
* m32c-tdep.c (m32c_return_value): Ditto.
* m32r-tdep.c (m32r_return_value): Ditto.
* m68hc11-tdep.c (m68hc11_return_value): Ditto.
* m68k-tdep.c (m68k_return_value): Ditto.
(m68k_svr4_return_value): Ditto.
* m88k-tdep.c  (m88k_return_value): Ditto.
* mep-tdep.c (mep_return_value): Ditto.
* mips-tdep.c (mips_eabi_return_value): Ditto.
(mips_n32n64_return_value): Ditto.
(mips_o32_return_value): Ditto.
(mips_o64_return_value): Ditto.
* mn10300-tdep.c (mn10300_return_value): Ditto.
* mt-tdep.c (mt_return_value): Ditto.
* ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
* ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
(ppc_sysv_abi_broken_return_value): Ditto.
(ppc64_sysv_abi_return_value): Ditto.
* ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
(ppc_sysv_abi_broken_return_value): Ditto.
(ppc64_sysv_abi_return_value): Ditto.
* ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
* rs6000-tdep.c (rs6000_return_value): Ditto.
* s390-tdep.c (s390_return_value): Ditto.
* score-tdep.c (score_return_value): Ditto.
* sh-tdep.c (sh_return_value_nofpu): Ditto.
(sh_return_value_fpu): Ditto.
* sh64-tdep.c (sh64_return_value): Ditto.
* sparc-tdep.c (sparc32_return_value): Ditto.
* sparc64-tdep.c (sparc64_return_value): Ditto.
* spu-tdep.c (spu_return_value): Ditto.
* v850-tdep.c (v850_return_value): Ditto.
* vax-tdep.c (vax_return_value): Ditto.
* xstormy16-tdep.c (xstormy16_return_value): Ditto.
* xtensa-tdep.c (xtensa_return_value): Ditto.

* gdbtypes.h (struct type): Add calling_convention member.
* dwarf2read.c (read_subroutine_type): Add calling convention read
from DW_AT_calling_convention attribute to function type.

16 years ago * sec_auth.cc (create_token): Add integrity level SID to token on
corinna [Tue, 22 Apr 2008 10:45:34 +0000 (10:45 +0000)]
* sec_auth.cc (create_token): Add integrity level SID to token on
systems supporting that.  Remove useless check for dynamically loading
NtCreateToken function.
* sec_helper.cc (mandatory_medium_integrity_sid): Define.
(mandatory_high_integrity_sid): Define.
(mandatory_system_integrity_sid): Define.
* sec_helper.h (mandatory_medium_integrity_sid): Declare.
(mandatory_high_integrity_sid): Declare.
(mandatory_system_integrity_sid): Declare.

16 years ago * include/winnt.h (SECURITY_MANDATORY_LABEL_AUTHORITY): Define.
corinna [Tue, 22 Apr 2008 10:43:04 +0000 (10:43 +0000)]
* include/winnt.h (SECURITY_MANDATORY_LABEL_AUTHORITY): Define.
(SECURITY_MANDATORY_UNTRUSTED_RID): Define.
(SECURITY_MANDATORY_LOW_RID): Define.
(SECURITY_MANDATORY_MEDIUM_RID): Define.
(SECURITY_MANDATORY_HIGH_RID): Define.
(SECURITY_MANDATORY_SYSTEM_RID): Define.
(SECURITY_MANDATORY_PROTECTED_PROCESS_RID): Define.
(SECURITY_MANDATORY_MAXIMUM_USER_RID): Define.
(SE_GROUP_INTEGRITY): Define.
(SE_GROUP_INTEGRITY_ENABLED): Define.

16 years ago * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
deuling [Tue, 22 Apr 2008 06:53:17 +0000 (06:53 +0000)]
* eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
multi_f77_subscript to support values from registers.
* valarith.c (value_subscripted_rvalue): Remove prototype and static.
* value.h (value_subscripted_rvalue): Add prototype.

* f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
Fix output.
* f-valprint.c (f_val_print): Likewise.

16 years ago * gdb.texinfo (Fortran Operators): Describe '%' operator.
deuling [Tue, 22 Apr 2008 06:51:04 +0000 (06:51 +0000)]
* gdb.texinfo (Fortran Operators): Describe '%' operator.

16 years ago * archive.c (_bfd_write_archive_contents): Fix incorrect use of
ccoutant [Tue, 22 Apr 2008 00:12:23 +0000 (00:12 +0000)]
* archive.c (_bfd_write_archive_contents): Fix incorrect use of
ARFMAG.

16 years agodaily update
amodra [Tue, 22 Apr 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Tue, 22 Apr 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agomerge from gcc
dj [Mon, 21 Apr 2008 22:30:16 +0000 (22:30 +0000)]
merge from gcc

16 years ago * dwarf2read.c (zlib_decompress_section): Define abfd in the
csilvers [Mon, 21 Apr 2008 22:00:49 +0000 (22:00 +0000)]
* dwarf2read.c (zlib_decompress_section): Define abfd in the
!HAVE_ZLIB_H case.

16 years ago * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
uweigand [Mon, 21 Apr 2008 20:31:22 +0000 (20:31 +0000)]
* linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
initial call to init_register_ppc64.

16 years ago * generic/gdbtk-cmds.c (symtab_to_filename): Call gdb's
kseitz [Mon, 21 Apr 2008 20:14:48 +0000 (20:14 +0000)]
    * generic/gdbtk-cmds.c (symtab_to_filename): Call gdb's
        open_source_file instead of find_and_open_source.

16 years agobfd/
nathan [Mon, 21 Apr 2008 17:54:24 +0000 (17:54 +0000)]
bfd/
* elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
set the value of undefined symbols in shared objects.
(_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for
undefined symbols unless pointer equality is needed.
ld/testsuite/
* ld-vxworks/plt-mips1.s: New.
* ld-vxworks/plt-mips1.d: New.

16 years ago * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
uweigand [Mon, 21 Apr 2008 14:55:50 +0000 (14:55 +0000)]
* configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
powerpc*-*-linux* case.
(s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.

16 years ago * symfile.c (syms_from_objfile): Don't warn if lowest loadable
palves [Mon, 21 Apr 2008 14:25:12 +0000 (14:25 +0000)]
* symfile.c (syms_from_objfile): Don't warn if lowest loadable
section is not a code section.

16 years ago * mount.cc (mount_info::init): Remove call to from_registry. Print
corinna [Mon, 21 Apr 2008 14:00:23 +0000 (14:00 +0000)]
* mount.cc (mount_info::init): Remove call to from_registry.  Print
message that fstab is missing.
(mount_info::from_fstab): Use CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX
instead of constant string.
(mount_info::read_mounts): Remove.
(mount_info::from_registry): Remove.
(mount_info::read_cygdrive_info_from_registry): Remove.
* postinstall: Enable code to create fstab entries from old registry
entries.
* registry.cc (reg_key::reg_key): Drop CYGWIN_INFO_CYGNUS_REGISTRY_NAME
from registry key.
* shared_info.h (mount_info::read_mounts): Remove declaration.
(mount_info::from_registry): Ditto.
(mount_info::to_registry): Ditto.
(mount_info::read_cygdrive_info_from_registry): Ditto.
* winver.rc (CYGWIN_REGISTRY_KEY): Remove.
(LegalCopyright): Fix to include 2008.
(RegistryKey): Set to CYGWIN_INFO_CYGWIN_REGISTRY_NAME.
* include/cygwin/version.h (CYGWIN_INFO_CYGNUS_REGISTRY_NAME): Remove.

16 years ago * kernel32.cc (CreateFileMappingW): Fix bug in reserve/commit handling.
corinna [Mon, 21 Apr 2008 13:17:35 +0000 (13:17 +0000)]
* kernel32.cc (CreateFileMappingW): Fix bug in reserve/commit handling.

16 years ago * Makefile.in (DLL_OFILES): Add kernel32.o.
corinna [Mon, 21 Apr 2008 12:46:57 +0000 (12:46 +0000)]
* Makefile.in (DLL_OFILES): Add kernel32.o.
* autoload.cc (WSACloseEvent): Remove.
(WSACreateEvent): Remove.
* cygheap.cc (cygheap_init): Drop initializing shared_prefix.
* cygheap.h (struct init_cygheap): Drop shared_prefix and
shared_prefix_buf members.
* fhandler_socket.cc (sock_shared_name): New static function.
(search_wsa_event_slot): Convert name buffers to WCHAR.  Call
NtCreateMutant/NtOpenMutant to create mutexes in session local
namespace.
(fhandler_socket::init_events): Ditto.  Fix debug output.
(fhandler_socket::release_events): Close mutexes using NtClose.
(fhandler_socket::dup): Ditto.
* kernel32.cc: New file, implementing Win32 calls in a Cygwin-specific
way.
* mmap.cc (MapView): Make static.
* ntdll.h: Fix status code sorting.
(STATUS_OBJECT_NAME_EXISTS): Define.
(SEMAPHORE_QUERY_STATE): Define.
(CYG_SHARED_DIR_ACCESS): Define.
(CYG_MUTANT_ACCESS): Define.
(CYG_EVENT_ACCESS): Define.
(CYG_SEMAPHORE_ACCESS): Define.
(enum _PROCESSINFOCLASS): Define ProcessSessionInformation.
(struct _PROCESS_SESSION_INFORMATION): Define.
(NtCreateSemaphore): Declare.
(NtOpenSemaphore): Declare.
* flock.cc: Use CYG_xxx_ACCESS access masks where appropriate.
* posix_ipc.cc (ipc_mutex_init): Use native functions to create mutex.
Create in cygwin-shared subdir.
(ipc_cond_init): Ditto for event.
(ipc_mutex_close): Use NtClose.
(ipc_cond_close): Ditto.
(mq_open): Drop "cyg" prefix from mqh_uname.
* shared.cc (CYG_SHARED_DIR_ACCESS): Drop definition here.
(_cygwin_testing): Declare extern on file level.
(get_shared_parent_dir): Change name of shared directory.  Add name
to api_fatal output.
(get_session_parent_dir): New function.
(shared_name): Simplify.
(shared_info::initialize): Call get_session_parent_dir.
* shared_info.h (get_session_parent_dir): Declare.
* smallprint.cc (__small_vswprintf): Fix bug in multibyte string
conversion.
* thread.cc (semaphore::semaphore): Align semaphore name to object
names in posix IPC functions.
* include/cygwin/version.h (CYGWIN_VERSION_SHARED_DATA): Bump.

16 years ago*** empty log message ***
gdbadmin [Mon, 21 Apr 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Mon, 21 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * gdb.texinfo (Set Breaks): Mention that multiple location
eliz [Sun, 20 Apr 2008 09:06:43 +0000 (09:06 +0000)]
* gdb.texinfo (Set Breaks): Mention that multiple location
breakpoints need line number info.  Add index entries.

16 years ago * NEWS: Add information on compressed debug sections.
csilvers [Sun, 20 Apr 2008 00:03:21 +0000 (00:03 +0000)]
  * NEWS: Add information on compressed debug sections.
      * doc/gdb.texinfo (Requirements): Add an optional requirement
      on zlib.
      * doc/gdbint.texinfo (Debugging File Formats): Add new
      subsection for Compressed DWARF 2.

16 years ago*** empty log message ***
gdbadmin [Sun, 20 Apr 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Sun, 20 Apr 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * version.cc (version_string): Bump to 1.6.
ian [Sat, 19 Apr 2008 20:15:56 +0000 (20:15 +0000)]
* version.cc (version_string): Bump to 1.6.

16 years ago * testsuite/Makefile.am (many_sections_r_test): New target.
ian [Sat, 19 Apr 2008 19:43:13 +0000 (19:43 +0000)]
* testsuite/Makefile.am (many_sections_r_test): New target.
(many_sections_r_test_SOURCES): Remove.
(many_sections_r_test_DEPENDENCIES): Remove.
(many_sections_r_test_LDFLAGS): Remove.
(many_sections_r_test_LDADD): Remove.

16 years ago * object.cc (Sized_relobj::do_add_symbols): Always pass
ian [Sat, 19 Apr 2008 19:34:41 +0000 (19:34 +0000)]
* object.cc (Sized_relobj::do_add_symbols): Always pass
local_symbol_count_ to add_from_relobj.

16 years ago * testsuite/Makefile.am (many_sections_check.h): Only check one in
ian [Sat, 19 Apr 2008 19:15:35 +0000 (19:15 +0000)]
* testsuite/Makefile.am (many_sections_check.h): Only check one in
every thousand variables.
* testsuite/Makefile.in: Rebuild.

16 years ago * elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
ian [Sat, 19 Apr 2008 18:33:19 +0000 (18:33 +0000)]
* elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
(Elf_file::large_shndx_offset): New function.
(Elf_file::construct): Initialize large_shndx_offset_.
(Elf_File::initialize_shnum): If necessary, adjust shstrndx_ and
set large_shndx_offset_.

16 years ago * object.cc (Xindex::initialize_symtab_xindex): New function.
ian [Sat, 19 Apr 2008 18:30:58 +0000 (18:30 +0000)]
* object.cc (Xindex::initialize_symtab_xindex): New function.
(Xindex::read_symtab_xindex): New function.
(Xindex::sym_xindex_to_shndx): New function.
(Sized_relobj::find_symtab): Pick up SHT_SYMTAB_SHNDX section if
available.
(Sized_relobj::do_initialize_xindex): New function.
(Sized_relobj::do_read_symbols): Adjust section links.
(Sized_relobj::symbol_section_and_value): Add is_ordinary
parameter.  Change all callers.
(Sized_relobj::include_section_group): Adjust section links and
symbol section indexes.
(Sized_relobj::do_layout): Adjust section links.
(Sized_relobj::do_count_local_symbols): Adjust section links and
symbol section indexes.
(Sized_relobj::do_finalize_local_symbols): Distinguish between
ordinary and special symbols.
(Sized_relobj::write_local_symbols): Add symtab_xindex and
dynsym_xindex parameters.  Change all callers.  Adjust section
links.  Use SHN_XINDEX when needed.
(Sized_relobj::get_symbol_location_info): Adjust section links.
Don't get fooled by special symbols.
* object.h (class Xindex): Define.
(class Object): Add xindex_ parameter.  Declare virtual functoin
do_initialize_xindex.
(Object::adjust_sym_shndx): New function.
(Object::set_xindex): New protected function.
(class Symbol_value): Add is_ordinary_shndx_ field.
(Symbol_value::Symbol_value): Initialize is_ordinary_shndx_.
(Symbol_value::value): Assert ordinary section.
(Symbol_value::initialize_input_to_output_map): Likewise.
(Symbol_value::set_input_shndx): Add is_ordinary parameter.
Change all callers.
(Symbol_value::input_shndx): Add is_ordinary parameter.  Change
all callers.
(class Sized_relobj): Update declarations.
(Sized_relobj::local_symbol_input_shndx): Add is_ordinary
parameter.  Change all callers.
(Sized_relobj::adjust_shndx): New function.
* dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize dynsym_shndx_
field.
(Sized_dynobj::find_dynsym_sections): Remove pdynsym_shndx
parameter.  Change all callers.  Pick up SHT_DYNSYM_SHNDX section
for SHT_DYNSYM section if available.  Set dynsym_shndx_ field.
(Sized_dynobj::read_dynsym_section): Adjust section links.
(Sized_dynobj::read_dynamic): Likewise.
(Sized_dynobj::do_read_symbols): Use dynsym_shndx_ field.  Adjust
section links.
(Sized_dynobj::do_initialize_xindex): New function.
* dynobj.h (class Sized_dynobj): Add dynsym_shndx_ field.  Declare
do_initialize_xindex.
(Sized_dynobj::adjust_shndx): New function.
* layout.cc (Layout::Layout): Initialize symtab_xindex_ and
dynsym_xindex_ fields.
(Layout::finalize): Add a call to set_section_indexes before
creating the symtab sections.
(Layout::set_section_indexes): Don't do anything if the section
already has a section index.
(Layout::create_symtab_sections): Add shnum parameter.  Change
caller.  Create .symtab_shndx section if needed.
(Layout::create_shdrs): Add shstrtab_section parameter.  Change
caller.
(Layout::allocated_output_section_count): New function.
(Layout::create_dynamic_symtab): Create .dynsym_shndx section if
needed.
* layout.h (class Layout): Add symtab_xindex_ and dynsym_xindex_
fields.  Update declarations.
(Layout::symtab_xindex): New function.
(Layout::dynsym_xindex): New function.
(class Write_symbols_task): Add layout_ field.
(Write_symbols_task::Write_symbols_task): Add layout parameter.
Change caller.
* output.cc (Output_section_headers::Output_section_headers): Add
shstrtab_section parameter.  Change all callers.
(Output_section_headers::do_sized_write): Store overflow values
for section count and section string table section index in
section header zero.
(Output_file_header::do_sized_write): Check for overflow of
section count and section string table section index.
(Output_symtab_xindex::do_write): New function.
(Output_symtab_xindex::endian_do_write): New function.
* output.h (class Output_section_headers): Add shstrtab_section_.
Update declarations.
(class Output_symtab_xindex): Define.
(Output_section::has_out_shndx): New function.
* symtab.cc (Symbol::init_fields): Initialize is_ordinary_shndx_
field.
(Symbol::init_base): Add st_shndx and is_ordinary parameters.
Change all callers.
(Sized_symbol::init): Likewise.
(Symbol::output_section): Check for ordinary symbol.
(Symbol_table::add_from_object): Remove orig_sym parameter.  Add
st_shndx, is_ordinary, and orig_st_shndx parameters.  Change all
callers.
(Symbol_table::add_from_relobj): Add symndx_offset parameter.
Change all callers.  Simplify handling of symbols from sections
not included in the link.
(Symbol_table::add_from_dynobj): Handle ordinary symbol
distinction.
(Weak_alias_sorter::operator()): Assert that symbols are
ordinary.
(Symbol_table::sized_finalize_symbol): Handle ordinary symbol
distinction.
(Symbol_table::write_globals): Add symtab_xindex and dynsym_xindex
parameters.  Change all callers.
(Symbol_table::sized_write_globals): Likewise.  Handle ordinary
symbol distinction.  Use SHN_XINDEX when needed.
(Symbol_table::write_section_symbol): Add symtab_xindex
parameter.  Change all callers.
(Symbol_table::sized_write_section_symbol): Likewise.  Use
SHN_XINDEX when needed.
* symtab.h (class Symbol): Add is_ordinary_shndx_ field.  Update
declarations.
(Symbol::shndx): Add is_ordinary parameter.  Change all callers.
(Symbol::is_defined): Check is_ordinary.
(Symbol::is_undefined, Symbol::is_weak_undefined): Likewise.
(Symbol::is_absolute, Symbol::is_common): Likewise.
(class Sized_symbol): Update declarations.
(class Symbol_table): Update declarations.
* resolve.cc (Symbol::override_base): Add st_shndx and is_ordinary
parameters.  Change all callers.
(Sized_symbol::override): Likewise.
(Symbol_table::override): Likewise.
(symbol_to_bits): Add is_ordinary parameter.  Change all callers.
(Symbol_table::resolve): Remove orig_sym parameter.  Add st_shndx,
is_ordinary, and orig_st_shndx parameters.  Change all callers.
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Require symbol
to be in an ordinary section.
* dwarf_reader.cc (Sized_dwarf_line_info::symbol_section): Add
object and is_ordinary parameters.  Change all callers.
(Sized_dwarf_line_info::read_relocs): Add object parameter.
Change all callers.  Don't add undefined or non-ordinary symbols
to reloc_map_.
(Sized_dwarf_line_info::read_line_mappings): Add object parameter.
Change all callers.
* dwarf_reader.h (class Sized_dwarf_line_info): Update
declarations.
* ehframe.cc (Eh_frame::read_fde): Check for ordinary symbol.
* reloc.cc (Sized_relobj::do_read_relocs): Adjust section links.
(Sized_relobj::relocate_sections): Likewise.
* target-reloc.h (scan_relocs): Adjust section symbol index.
(scan_relocatable_relocs): Likewise.
* i386.cc (Scan::local): Check for ordinary symbols.
* sparc.cc (Scan::local): Likewise.
* x86_64.cc (Scan::local): Likewise.
* testsuite/binary_unittest.cc (Sized_binary_test): Update calls
to symbol_section_and_value.
* testsuite/many_sections_test.cc: New file.
* testsuite/Makefile.am (BUILT_SOURCES): Define.
(check_PROGRAMS): Add many_sections_test.
(many_sections_test_SOURCES): Define.
(many_sections_test_DEPENDENCIES): Define.
(many_sections_test_LDFLAGS): Define.
(BUILT_SOURCES): Add many_sections_define.h.
(many_sections_define.h): New target.
(BUILT_SOURCES): Add many_sections_check.h.
(many_sections_check.h): New target.
(check_PROGRAMS): Add many_sections_r_test.
(many_sections_r_test_SOURCES): Define.
(many_sections_r_test_DEPENDENCIES): Define.
(many_sections_r_test_LDFLAGS): Define.
(many_sections_r_test_LDADD): Define.
(many_sections_r_test.o): New target.
* testsuite/Makefile.in: Rebuild.

16 years ago * mi/mi-cmd-var.c (varobj_update_one): Print new
vprus [Sat, 19 Apr 2008 17:03:19 +0000 (17:03 +0000)]
* mi/mi-cmd-var.c (varobj_update_one): Print new
value for variable objects that changed type.

16 years ago * varobj.c (varobj_invalidate): Don't touch floating
vprus [Sat, 19 Apr 2008 16:38:25 +0000 (16:38 +0000)]
* varobj.c (varobj_invalidate): Don't touch floating
varobjs.

16 years ago* symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
kettenis [Sat, 19 Apr 2008 11:39:50 +0000 (11:39 +0000)]
* symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
(multiple_symbols_cancel): Remove extra const.
* symtab.h: Likewise.

16 years ago(linespec.o, mi-interp.o): Add dependencies.
nickrob [Sat, 19 Apr 2008 06:12:16 +0000 (06:12 +0000)]
(linespec.o, mi-interp.o): Add dependencies.

16 years agoInclude interps.h and mi/mi-cmds.h.
nickrob [Sat, 19 Apr 2008 06:09:37 +0000 (06:09 +0000)]
Include interps.h and mi/mi-cmds.h.
(decode_line_2): When using MI, always set all breakpoints in menu.

16 years agoNew extern for top_level_interpreter.
nickrob [Sat, 19 Apr 2008 06:09:15 +0000 (06:09 +0000)]
New extern for top_level_interpreter.

16 years ago(top_level_interpreter): Rename static variable...
nickrob [Sat, 19 Apr 2008 06:08:18 +0000 (06:08 +0000)]
(top_level_interpreter): Rename static variable...
(top_level_interpreter_ptr): ...to this.
(top_level_interpreter): New function.

16 years ago*** empty log message ***
nickrob [Sat, 19 Apr 2008 06:07:51 +0000 (06:07 +0000)]
*** empty log message ***

16 years ago * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
csilvers [Sat, 19 Apr 2008 05:06:53 +0000 (05:06 +0000)]
* configure.ac (AC_SEARCH_LIBS): Add check for zlib.
* config.in, configure: Regenerate.
* dwarf2read.c: Include zlib.h if present.
Modified *_SECTION macros.
(section_is_p): New.
(dwarf2_locate_sections): Use section_is_p instead of strcmp
(dwarf2_resize_section): New.
to determine whether a given section has a given name.
(zlib_decompress_section): New.
(dwarf2_read_section): Read the compressed section if present
in the binary.
* testsuite/gdb.dwarf2/dw2-compressed.S: New file.
* testsuite/gdb.dwarf2/dw2-compressed.exp: New file.
* MAINTAINERS: Added myself to section Write After Approval.

16 years ago * defs.h (exec_set_section_offsets): Remove prototype.
bauermann [Sat, 19 Apr 2008 02:07:19 +0000 (02:07 +0000)]
* defs.h (exec_set_section_offsets): Remove prototype.
* exec.c (exec_set_section_offsets): Remove function.

16 years ago * gdb.ada/atomic_enum: New test program.
brobecke [Sat, 19 Apr 2008 01:35:49 +0000 (01:35 +0000)]
    * gdb.ada/atomic_enum: New test program.
        * gdb.ada/atomic_enum.exp: New testcase.

16 years ago * stabsread.c (cleanup_undefined_types_1): Add instance flags check
brobecke [Sat, 19 Apr 2008 01:33:26 +0000 (01:33 +0000)]
    * stabsread.c (cleanup_undefined_types_1): Add instance flags check
        in the search for the matching symbol.

16 years ago*** empty log message ***
gdbadmin [Sat, 19 Apr 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
amodra [Sat, 19 Apr 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * doc/c-sparc.texi: Add syntax section.
davem [Fri, 18 Apr 2008 21:19:48 +0000 (21:19 +0000)]
* doc/c-sparc.texi: Add syntax section.

16 years ago Revert thinko in previous patch.
corinna [Fri, 18 Apr 2008 20:30:04 +0000 (20:30 +0000)]
Revert thinko in previous patch.
* fhandler.h (struct wsa_event): Move back from wsa_event.h to here.
* fhandler_socket.cc (NUM_SOCKS): Ditto.
(wsa_events): Move back from cygwin_shared to here.  Accommodate
throughout.
(socket_serial_number): Ditto.
* shared_info.h: Accommodate above changes.
* wsa_event.h: Remove.

16 years ago * fhandler.h (-struct wsa_event): Move to wsa_event.h. Include
corinna [Fri, 18 Apr 2008 20:13:37 +0000 (20:13 +0000)]
* fhandler.h (-struct wsa_event): Move to wsa_event.h.  Include
wsa_event.h instead.
* fhandler_socket.cc (NUM_SOCKS): Move to wsa_event.h.
(wsa_events): Move from DLL shared area to cygwin_shared shared
memory.  Accommodate throughout.
(socket_serial_number): Ditto.
* fhandler_tape.cc (mt): Ditto.
(mtinfo_init): Remove.
(mt): Define as cygwin_shared->mt.
* flock.cc (FLOCK_PARENT_DIR_ACCESS): Remove.
(FLOCK_INODE_DIR_ACCESS): Move up in file.
(FLOCK_MUTANT_ACCESS): Ditto.
(FLOCK_EVENT_ACCESS): Ditto.
(get_lock_parent_dir): Remove.
(inode_t::inode_t): Call get_shared_parent_dir to get parent dir handle.
Add a "flock-" prefix to file's lock directory name for clarity.
* mtinfo.h (mtinfo_init): Drop declaration.
* net.cc (last_used_bindresvport): Move from DLL shared area to
cygwin_shared shared memory.
(cygwin_bindresvport_sa): Accommodate above change.
* sec_helper.cc (_everyone_sd): Move here from flock.cc.
* security.h (SD_MIN_SIZE): Ditto.
(everyone_sd): Ditto.
* shared.cc (cygwin_shared_area): Remove.
(cygwin_shared_h): New handle.
(get_shared_parent_dir): New static function.
(shared_name): Drop session_local argument.  Call get_shared_parent_dir
here.  Add cygwin-shared subdir to object name.
(offsets): Reinstantiate SH_CYGWIN_SHARED member.
(open_shared): Revert change from 2007-03-29 for systems supporting
SeCreateGlobalPrivilege.
(shared_info::initialize): Call mtinfo's initialize here.
(memory_init): Drop call to mtinfo_init.
* shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Add members for global socket and tape info
sharing.
(enum shared_locations): Reinstantiate SH_CYGWIN_SHARED.
(get_shared_parent_dir): Declare.
(shared_name): Drop session_local argument from declaration.
* wsa_event.h: New file.  Move definitions of NUM_SOCKS and
struct wsa_event here.

16 years ago2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 18 Apr 2008 18:22:36 +0000 (18:22 +0000)]
2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
REG and NDS for instructions with immediate operand.

16 years ago* autoload.cc (noload): Make sure this and succeeding functions are located in
cgf [Fri, 18 Apr 2008 18:20:30 +0000 (18:20 +0000)]
* autoload.cc (noload): Make sure this and succeeding functions are located in
the text segment.

16 years agomerge from gcc
dj [Fri, 18 Apr 2008 15:14:04 +0000 (15:14 +0000)]
merge from gcc

16 years agogas/
hjl [Fri, 18 Apr 2008 13:10:32 +0000 (13:10 +0000)]
gas/

2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
FMA.

gas/testsuite/

2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/arch-10.d: Updated.
* gas/i386/avx.d: Likewise.
* gas/i386/avx-intel.d: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
* gas/i386/x86-64-avx.d: Likewise.
* gas/i386/x86-64-avx-intel.d: Likewise.

opcodes/

2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (OP_VEX_FMA): New.
(OP_EX_VexImmW): Likewise.
(VexFMA): Likewise.
(Vex128FMA): Likewise.
(EXVexImmW): Likewise.
(get_vex_imm8): Likewise.
(OP_EX_VexReg): Likewise.
(vex_i4_done): Renamed to ...
(vex_w_done): This.
(prefix_table): Replace EXVexW with EXVexImmW on vpermil2ps
and vpermil2pd.  Replace Vex/Vex128 with VexFMA/Vex128FMA on
FMA instructions.
(print_insn): Updated.
(OP_EX_VexW): Rewrite to swap register in VEX with EX.
(OP_REG_VexI4): Check invalid high registers.

16 years ago2008-04-18 Paolo Bonzini <bonzini@gnu.org>
bonzini [Fri, 18 Apr 2008 11:07:30 +0000 (11:07 +0000)]
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/35457
* configure.ac: Include override.m4.
* configure: Regenerate.

2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.tpl (restrap): Call `make all' using double-colon rules.
        * Makefile.in: Regenerate.

2008-04-11  Eric B. Weddington  <eweddington@cso.atmel.com>

        * configure.ac: Do not build libssp for the AVR.
        * configure: Regenerate.

config:
2008-04-18  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/35457

* override.m4: Add this.  Make sure aclocal always picks it.
Add more lenient precious variable check, backported from
autoconf trunk.

16 years ago * aix5ppc-core.c: Define macros for the default architecture and
nickc [Fri, 18 Apr 2008 09:22:23 +0000 (09:22 +0000)]
   * aix5ppc-core.c: Define macros for the default architecture and
       machine for matching core files.
       (xcoff64_core_p): Set the architecture and machine to the default
       values defined in the macros mentioned above.
       * rs6000-core.c: Define macros to determine whether or not the
       core file header uses the core_dumpxx header format.
       (rs6000coff_core_p): Don't match core files that use the
       core_dumpxx header format.

16 years ago[patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32.
ktietz [Fri, 18 Apr 2008 09:06:22 +0000 (09:06 +0000)]
[patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32.

* scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.

16 years ago* MAINTAINERS: Replace reference to configure.in with reference to configure.ac.
nickc [Fri, 18 Apr 2008 08:55:06 +0000 (08:55 +0000)]
* MAINTAINERS: Replace reference to configure.in with reference to configure.ac.

16 years ago * config/tc-sparc.c (sparc_ip): Recognize %pc22 and %pc10.
davem [Fri, 18 Apr 2008 08:47:35 +0000 (08:47 +0000)]
* config/tc-sparc.c (sparc_ip): Recognize %pc22 and %pc10.

16 years ago * configure.ac (cr16-*-*): Add case for cr16 target and include gdb
nickc [Fri, 18 Apr 2008 08:45:05 +0000 (08:45 +0000)]
 * configure.ac (cr16-*-*): Add case for cr16 target and include gdb
   as nonconfigurable directories list.
 * configure: Regenerate.

16 years ago * Makefile.in (distclean): Add gstdint.h.
bje [Fri, 18 Apr 2008 02:12:45 +0000 (02:12 +0000)]
* Makefile.in (distclean): Add gstdint.h.