OSDN Git Service
corinna [Mon, 4 Apr 2005 10:26:32 +0000 (10:26 +0000)]
* dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.
* fhandler.h (enum change_state): Add.
(fhandler_base::status): Add a bit to has_changed flag.
(fhandler_base::has_changed): Implement with type change_state.
* fhandler.cc (fhandler_base::raw_write): Accomodate type change
of has_changed.
* fhandler_disk_file.cc )fhandler_disk_file::touch_ctime): Also
touch modification time if has_changed == data_changed.
(fhandler_disk_file::fchmod): Also open on 9x, otherwise we can't
touch ctime. Accomodate type change of has_changed.
(fhandler_disk_file::fchown): Accomodate type change of has_changed.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::ftruncate): Ditto.
(fhandler_disk_file::link): Ditto.
(fhandler_base::open_fs): Ditto.
nickc [Mon, 4 Apr 2005 10:09:51 +0000 (10:09 +0000)]
Initialise value to zero to avoid a compile time warning.
amodra [Mon, 4 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 4 Apr 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
fnf [Sun, 3 Apr 2005 20:36:36 +0000 (20:36 +0000)]
Apply patch for binutils bug 806, approved by nickc@redhat.com.
2005-04-03 Fred Fish <fnf@specifixinc.com>
* dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
dwarf_ranges_size members.
(struct comp_unit): Add base_address member.
(struct funcinfo): Replace low/high members with an arange.
(arange_add): Replace incoming "unit" parameter with "abfd" and
"first_arange" pointers. Reorganize/rewrite function body.
(decode_line_info): Change arange_add call to pass bfd and arange
pointers.
(lookup_address_in_line_info_table): Use arange list instead of
individual low/high members. Walk function's arange list to find
lowest PC in list, to test for overlapping functions.
(read_debug_ranges): New function, reads the debug_ranges section.
(lookup_address_in_function_table): Use arange list instead of
individual low/high members. Rewrite to find smallest range that
matches.
(read_rangelist): Read a given rangelist from debug_ranges.
(scan_unit_for_functions): Use arange list instead of individual
low/high members. Handle a DW_AT_ranges attribute.
(parse_comp_unit): Use arange list instead of individual low/high
members. Save comp unit base address. Handle a DW_AT_ranges
attribute.
corinna [Sun, 3 Apr 2005 17:47:36 +0000 (17:47 +0000)]
* include/winnt.h (SE_UNDOCK_NAME TEXT): Define.
(SE_MANAGE_VOLUME_NAME TEXT): Ditto.
(SE_IMPERSONATE_NAME TEXT): Ditto.
(SE_ENABLE_DELEGATION_NAME TEXT): Ditto.
(SE_SYNC_AGENT_NAME TEXT): Ditto.
corinna [Sun, 3 Apr 2005 13:06:37 +0000 (13:06 +0000)]
* cygheap.cc (cygheap_init): Accomodate set_process_privilege change.
* cygheap.h (cygheap_user::curr_primary_token): New member.
(cygheap_user::primary_token): New method.
(cygheap_user::deimpersonate): Always revert to processes'
impersonation token.
(cygheap_user::reimpersonate): Set processes' or setuid token as
necessary.
(cygheap_user::has_impersonation_tokens): Look for curr_primary_token
value.
(cygheap_user::close_impersonation_tokens): Close curr_primary_token
here if necessary. Don't reset token values to NO_IMPERSONATION since
that's done in uinfo_init anyway.
(init_cygheap::luid): New LUID array keeping privilege LUIDs.
* cygtls.cc (_cygtls::init_thread): Call cygheap->user.reimpersonate.
* dcrt0.cc (hProcToken): New global variable to keep process token.
(hProcImpToken): Ditto for process impersonation token.
(dll_crt0_0): Open process token here once. Duplicate to create
hProcImpToken.
(dll_crt0_1): Call set_cygwin_privileges.
* environ.cc (allow_ntea): Drop duplicate declaration.
(allow_smbntsec): Ditto.
(set_traverse): Only set allow_traverse here.
(environ_init): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Drop call to
enable_restore_privilege.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
* fork.cc (fork_child): Move call to cygheap->user.reimpersonate after
syn with parent. Call set_cygwin_privileges.
* grp.cc (internal_getgroups): Use hProcImpToken instead of opening
process token.
* path.cc (fs_info::update): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges.
* registry.cc (load_registry_hive): Drop setting restore privilege
since it's already set if available.
* sec_helper.cc: Include cygtls.h.
(cygpriv): Privilege string array.
(privilege_luid): New function, evaluate LUID from cygpriv_idx.
(privilege_luid_by_name): New function, evaluate LUID from privilege
string.
(privilege_name): New function, evaluate privilege string from
cygpriv_idx.
(set_privilege): New static function called by set_process_privilege
and set_thread_privilege. Call privilege_luid to get privilege LUID.
Fix bug in return value evaluation. Improve debug output.
(set_cygwin_privileges): New function.
(set_process_privilege): Remove.
(enable_restore_privilege): Remove.
* security.cc (allow_traverse): New global variable.
(sys_privs): Change type to cygpriv_idx and store privilege indices
instead of strings.
(SYSTEM_PRIVILEGES_COUNT): Renamed from SYSTEM_PERMISSION_COUNT.
(get_system_priv_list): Don't use numerical constant in malloc call.
Use privilege_luid to get privilege LUIDs.
(get_priv_list): Call privilege_luid_by_name to get LUIDs. Improve
inner privilege LUID comparison loop.
(create_token): Enable create token privilege using
push/pop_self_privileges. Use hProcToken instead of opening process
token. Use default DACL when duplicating token.
(subauth): Enable tcb privilege using push/pop_self_privileges.
Use sec_none instead of homw made security attributes when duplicating
token.
(check_file_access): Don't duplicate access token, use active
impersonation token as is.
* security.h (enum cygpriv_idx): New enumeration type enumerating
possible privileges.
(privilege_luid): Declare new function.
(privilege_luid_by_name): Ditto.
(privilege_name): Ditto.
(allow_traverse): Declare.
(set_privilege): Declare function.
(set_process_privilege): Define as macro.
(enable_restore_privilege): Remove declaration.
(_push_thread_privilege): Define macro.
(push_thread_privilege): Ditto.
(pop_thread_privilege): Ditto.
(pop_self_privilege): Ditto.
* spawn.cc (spawn_guts): Use cygheap->user.primary_token instead of
cygheap->user.token.
* syscalls.cc (statvfs): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges. Rearrange code
to simplify push/pop bracketing.
(seteuid32): Use hProcToken instead of opening process token. Call
cygheap->user.deimpersonate instead of RevertToSelf. Create
impersonation token from primary internal or external token. Set
cygheap->user.curr_primary_token and cygheap->user.current_token
privileges once here. Drop "failed" and "failed_ptok" labels.
Drop setting DefaultDacl of process token.
(setegid32): Use hProcToken and hProcImpToken instead of opening
process token. Always reimpersonate afterwards.
* uinfo.cc (cygheap_user::init): Use hProcToken instead of opening
process token.
(internal_getlogin): Ditto. Set hProcImpToken, too.
(uinfo_init): Initialize cygheap->user.curr_primary_token.
* winsup.h (hProcToken): Declare.
(hProcImpToken): Declare.
corinna [Sun, 3 Apr 2005 08:45:12 +0000 (08:45 +0000)]
Unify usage of CYG_MAX_PATH throughout. Change buffers from
size CYG_MAX_PATH + 1 to CYG_MAX_PATH. Change length tests
accordingly.
dj [Sun, 3 Apr 2005 04:41:10 +0000 (04:41 +0000)]
merge from gcc
amodra [Sun, 3 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 3 Apr 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
drow [Sat, 2 Apr 2005 22:59:34 +0000 (22:59 +0000)]
* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
big-endian correction code to not offset 32-bit registers.
Locate floating point registers correctly.
drow [Sat, 2 Apr 2005 22:59:16 +0000 (22:59 +0000)]
* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
big-endian correction code to not offset 32-bit registers.
Locate floating point registers correctly.
eliz [Sat, 2 Apr 2005 22:24:17 +0000 (22:24 +0000)]
(Targets): Document "set/show architecture". Remove
redundant index entry for "target" command.
(Backtrace): Add index entries.
(Symbols, Fortran): Document the "set case-sensitive" command.
(DJGPP Native): Document "set com1base", "set com1irq", etc.
(Print Settings): Add index entry for "set demangle-style".
(Target Commands): Document "set download-write-size".
(Debugging Output): Document "set exec-done-display".
cgf [Sat, 2 Apr 2005 21:22:51 +0000 (21:22 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 15.
schwab [Sat, 2 Apr 2005 21:11:20 +0000 (21:11 +0000)]
Fix typo.
kettenis [Sat, 2 Apr 2005 20:25:22 +0000 (20:25 +0000)]
* main.c: Update copyright year.
(captured_main): Avois using strcpy and strcat.
kettenis [Sat, 2 Apr 2005 20:25:11 +0000 (20:25 +0000)]
* main.c: Update copyright year.
(captured_main): Avois using strcpy and strcat.
dj [Sat, 2 Apr 2005 20:19:59 +0000 (20:19 +0000)]
merge from gcc
eliz [Sat, 2 Apr 2005 17:48:35 +0000 (17:48 +0000)]
(Files): Fix the name and documentation of
add-shared-symbol-files. Document its alias assf. Update the
list of OSs where GDB supports shared libraries. Fix markup.
(Continuing and Stepping): Add reference to @var{location} in the
text.
(Dump/Restore Files): Fix reference to @{filename}.
(Help): Fix wording.
(Attach): Ditto.
(Set Watchpoints): Ditto.
(Backtrace): Remove redundant index entries. Improve index
entries.
(Delete Breaks): Fix wording.
(Memory): Document the compare-sections command.
(Memory Region Attributes): Improve wording.
(Disabling): Improve wording.
(Fortran): New subsection. Document the "info common" command.
(Help): Document aliases "info copying" and "info warranty".
(Caching Remote Data): New section. Document the "set/show
remotecache" and "info dcache" commands.
(Show): Fix wording of the documentation of the "set
extension-language" command.
(Signals): Add index entry for "info handle".
(Memory Region Attributes): Fix punctuation.
(Symbols): Change the arg name to "location" and refer to it in
the text. Fix wording of "info types" doc.
(Threads): Fix usage of @enumerate @item's.
(Listing Tracepoints): Add index entry for "info tp".
(Set Watchpoints): Add xref to "info break" description.
(Macros): Add an index entry for "macro exp1". Document the
"macro list" command.
(Maintenance Commands): Document "flushregs", "maint agent",
"maint check-symtabs", "maint cplus", "maint demangle", "maint
deprecate", "maint undeprecate", "maint dump-me", "maint packet",
"maint print architecture", "maint print objfiles", "maint print
statistics", "maint print type", "maint show-debug-regs", "maint
space", "maint time", and "maint translate-address".
(Connecting): Document the "monitor" command.
(Annotations Overview): Describe the "set annotate" command.
ian [Sat, 2 Apr 2005 17:18:43 +0000 (17:18 +0000)]
* cp-demangle.c: Update copyright.
eliz [Sat, 2 Apr 2005 08:32:29 +0000 (08:32 +0000)]
(Set Watchpoints): Document can-use-hw-watchpoints.
Rearrange index entries and improve wording about support for
hardware watchpoints.
msnyder [Sat, 2 Apr 2005 00:45:51 +0000 (00:45 +0000)]
2005-04-01 Michael Snyder <msnyder@redhat.com>
* dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
computing this_id if there are no dummy frames on the stack.
wilson [Sat, 2 Apr 2005 00:43:46 +0000 (00:43 +0000)]
Patch from David Mosberger, to avoid nop.f on Itanium2.
* config/tc-ia64.c (ia64_handle_align): Move le_nop and
le_nop_stop arrays and initializers to file scope.
(md_begin): When generating code for anything other than
Itanium 1, use MMI instead of MFI NOP bundles as a filler.
msnyder [Sat, 2 Apr 2005 00:40:45 +0000 (00:40 +0000)]
2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c (mn10300_frame_unwind_cache): Use
find_partial_func instead of unwind_pc to identify frame.
(mn10300_push_dummy_call): Handle struct args, struct_return.
msnyder [Sat, 2 Apr 2005 00:08:14 +0000 (00:08 +0000)]
2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c (set_movm_offsets): Don't test variable
before setting it.
* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
instead of skip_prologue_using_sal.
msnyder [Sat, 2 Apr 2005 00:08:02 +0000 (00:08 +0000)]
2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c (set_movm_offsets): Don't test variable
before setting it.
* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
instead of skip_prologue_using_sal.
gdbadmin [Sat, 2 Apr 2005 00:00:39 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 2 Apr 2005 00:00:09 +0000 (00:00 +0000)]
daily update
hjl [Fri, 1 Apr 2005 20:52:22 +0000 (20:52 +0000)]
2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (assign_section_numbers): Really use the kept section.
pgilliam [Fri, 1 Apr 2005 18:43:21 +0000 (18:43 +0000)]
* gdb.arch/altivec-abi.exp: Check for compiler and set
use altivec' flag accordingly.
* gdb.arch/altivec-regs.exp: Likewise.
corinna [Fri, 1 Apr 2005 16:52:45 +0000 (16:52 +0000)]
* fork.cc (fork_child): Add missing __stdcall.
jbeulich [Fri, 1 Apr 2005 16:06:39 +0000 (16:06 +0000)]
opcodes/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* i386-dis.c (PNI_Fixup): Neither mwait nor monitor have any
visible operands in Intel mode. The first operand of monitor is
%rax in 64-bit mode.
jbeulich [Fri, 1 Apr 2005 16:03:39 +0000 (16:03 +0000)]
include/opcode/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* i386.h (i386_optab): Add rdtscp.
opcodes/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for
easier future additions.
jbeulich [Fri, 1 Apr 2005 15:58:30 +0000 (15:58 +0000)]
gas/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
immediates.
corinna [Fri, 1 Apr 2005 15:35:47 +0000 (15:35 +0000)]
* bsd_mutex.cc (_msleep): Whitespace fix.
* process.cc (process::process): Handle invalid signal_arrived values
more gracefully.
cgf [Fri, 1 Apr 2005 15:27:45 +0000 (15:27 +0000)]
* sigproc.cc (create_signal_arrive): New (temporary?) function to create
signal_arrived event.
(sigproc_init): Use create_signal_arrived.
* fork.cc (fork_child): Create signal_arrived early.
hjl [Fri, 1 Apr 2005 15:09:43 +0000 (15:09 +0000)]
2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention new readelf options, "-N/--full-section-name"
and "-g/--section-groups".
* doc/binutils.texi: Document new readelf options,
"-N/--full-section-name" and "-g/--section-groups".
nickc [Fri, 1 Apr 2005 14:17:14 +0000 (14:17 +0000)]
Support the .f_floating, .d_floating, .g_floating and .h_floating directives
for the VAX target in order to be more compatible with the VAX MACRO assembler.
nickc [Fri, 1 Apr 2005 14:08:55 +0000 (14:08 +0000)]
elf-rel.d: Call gas with -k. Thanks toMatt Thomas for figuring out.
vax.exp: Run elf-rel.[sd] for NetBSD-ELF and Linux.
nickc [Fri, 1 Apr 2005 12:56:27 +0000 (12:56 +0000)]
Add a check for <unistd.h> providing a prototype for getopt() which is compatible
with the one in include/getopt.h. If so then define HAVE_DECL_GETOPT.
corinna [Fri, 1 Apr 2005 11:46:58 +0000 (11:46 +0000)]
* fork.cc (fork_child): Fixup SYSV IPC shared memory before fixing
up fdtab.
corinna [Fri, 1 Apr 2005 09:54:18 +0000 (09:54 +0000)]
* libc/stdlib/strtod.c (_strtod_r): Never change s00.
jbeulich [Fri, 1 Apr 2005 07:50:22 +0000 (07:50 +0000)]
gas/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
gas/testsuite/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* gas/i386/bss.[sd]: New.
* gas/i386/i386.exp: Run new test.
jbeulich [Fri, 1 Apr 2005 07:46:05 +0000 (07:46 +0000)]
gas/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
(tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
gas/testsuite/
2005-04-01 Jan Beulich <jbeulich@novell.com>
* gas/i386/x86-64-pcrel.[sd]: New.
* gas/i386/i386.exp: Run new test.
hjl [Fri, 1 Apr 2005 03:49:44 +0000 (03:49 +0000)]
2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (_bfd_elf_check_kept_section): New.
* elf.c (assign_section_numbers): When sh_link points to a
discarded section, call _bfd_elf_check_kept_section to see if
the kept section can be used. Otherwise reject sh_link
pointing to discarded section.
* elflink.c (_bfd_elf_check_kept_section): New.
(elf_link_input_bfd): Use it.
amodra [Fri, 1 Apr 2005 02:50:13 +0000 (02:50 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
that we no longer need.
amodra [Fri, 1 Apr 2005 02:40:34 +0000 (02:40 +0000)]
(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
amodra [Fri, 1 Apr 2005 02:35:40 +0000 (02:35 +0000)]
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
rather than 0.
hjl [Fri, 1 Apr 2005 00:30:46 +0000 (00:30 +0000)]
2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (assign_section_numbers): Fix a typo.
hjl [Fri, 1 Apr 2005 00:03:17 +0000 (00:03 +0000)]
2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (do_full_section_name): New.
(options): Add "--full-section-name"/'N'.
(usage): Add -N/--full-section-name.
(parse_args): Handle 'N'.
(process_section_headers): Print out the full section name if
do_full_section_name isn't 0.
amodra [Fri, 1 Apr 2005 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 1 Apr 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
hjl [Thu, 31 Mar 2005 23:45:27 +0000 (23:45 +0000)]
2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_input_bfd): Remove the extra `\n' in
error message.
(_bfd_elf_section_already_linked): Likewise.
kevinb [Thu, 31 Mar 2005 20:39:08 +0000 (20:39 +0000)]
Add TLS load module support for FRV.
kevinb [Thu, 31 Mar 2005 19:58:20 +0000 (19:58 +0000)]
* gdbarch.sh (fetch_tls_load_module_address): New architecture method.
* gdbarch.c, gdbarch.h: Regenerate.
* dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
address and pass this address, instead of the objfile address, to
target_get_thread_local_address().
* linux-thread-db.c (thread_db_get_thread_local_address): Change
second parameter from type ``struct objfile *'' to CORE_ADDR. Do
not call svr4_fetch_objfile_link_map() to fetch the load module
address.
* target.h (struct target_ops): Change second parameter of
``to_get_thread_local_address'' from ``struct objfile *'' to
``CORE_ADDR''.
* alpha-linux-tdep.c (solib-svr4.h): Include.
(alpha_linux_init_abi): Register TLS load module fetcher.
* amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
* hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
* ia64-linux-tdep.c (solib-svr4.h): Include.
(ia64_linux_init_abi): Register TLS load module fetcher.
* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
* m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
* mips-linux-tdep.c (mips_linux_init_abi): Likewise.
* s390-tdep.c (s390_gdbarch_init): Likewise.
* sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
* sparc64-linux-tdep.c (solib-svr4.h): Include.
(sparc64_linux_init_abi): Register TLS load module fetcher.
* Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
(sparc-linux-tdep.o): Update dependencies.
dj [Thu, 31 Mar 2005 17:03:34 +0000 (17:03 +0000)]
merge from gcc
guitton [Thu, 31 Mar 2005 16:52:53 +0000 (16:52 +0000)]
* configure.in: Check for basename.
* configure: Regenerate.
* config.in: Ditto.
guitton [Thu, 31 Mar 2005 16:08:59 +0000 (16:08 +0000)]
* bfd/config.in: Regenerate.
corinna [Thu, 31 Mar 2005 15:53:55 +0000 (15:53 +0000)]
* gentls_offsets: Add '-m32' flag to native compiler call to satisfy
cross platform builds.
cgf [Thu, 31 Mar 2005 15:37:12 +0000 (15:37 +0000)]
force checkin
guitton [Thu, 31 Mar 2005 15:35:33 +0000 (15:35 +0000)]
* bfd/config.in (HAVE_DECL_BASENAME): New configure macro.
* bfd/configure.in: Check for basename.
* bfd/configure: Regenerate.
nickc [Thu, 31 Mar 2005 14:40:38 +0000 (14:40 +0000)]
Add a check for <unistd.h> providing a prototype for getopt() which is compatible
with the one in include/getopt.h. If so then define HAVE_DECL_GETOPT.
dannysmith [Thu, 31 Mar 2005 10:00:25 +0000 (10:00 +0000)]
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
amodra [Thu, 31 Mar 2005 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 31 Mar 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Wed, 30 Mar 2005 22:07:18 +0000 (22:07 +0000)]
* errno.cc (NO_SYSTEM_RESOURCES): Map to EAGAIN.
(NONPAGED_SYSTEM_RESOURCES): Ditto.
(PAGED_SYSTEM_RESOURCES): Ditto.
(WORKING_SET_QUOTA): Ditto.
(PAGEFILE_QUOTA): Ditto.
(COMMITMENT_LIMIT): Ditto.
cgf [Wed, 30 Mar 2005 22:06:30 +0000 (22:06 +0000)]
* environ.cc (spenvs): Re-force SYSTEMROOT to always be included in
environment.
(build_env): Ditto.
cgf [Wed, 30 Mar 2005 21:35:28 +0000 (21:35 +0000)]
* environ.cc (spenv::retrieve): Revert most of previous change.
(build_env): Ditto. Rework to track environment variables which need to always
be in the windows environment in a separate array.
corinna [Wed, 30 Mar 2005 20:01:41 +0000 (20:01 +0000)]
* path.cc (symlink_info::case_check): Ignore trailing characters
in paths when comparing case.
cgf [Wed, 30 Mar 2005 19:43:36 +0000 (19:43 +0000)]
fix typo
amylaar [Wed, 30 Mar 2005 18:36:32 +0000 (18:36 +0000)]
* config/mh-mingw32: Delete.
* configure.in: Don't use it.
* configure: Regenerate.
amylaar [Wed, 30 Mar 2005 18:36:09 +0000 (18:36 +0000)]
* config/mh-mingw32: Delete.
* configure.in: Don't use it.
* configure: Regenerate.
jules [Wed, 30 Mar 2005 17:19:25 +0000 (17:19 +0000)]
* bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
bfd_elf32_is_arm_mapping_symbol_name.
* bfd/bfd-in2.h: Regenerate.
* bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
bfd_elf32_is_arm_mapping_symbol_name.
* bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
(arm_elf_find_function): Likewise.
(elf32_arm_output_symbol_hook): Likewise.
* gas/config/tc-arm.c (arm_adjust_symtab): Likewise.
cgf [Wed, 30 Mar 2005 17:02:00 +0000 (17:02 +0000)]
* how-using.texinfo: Add more words to the "multiple DLL" section.
jules [Wed, 30 Mar 2005 16:21:53 +0000 (16:21 +0000)]
* bfd/bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
* bfd/bfd-in2.h: Regenerate.
* bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
bfd_elf32_is_arm_mapping_symbol_name.
(elf32_arm_output_symbol_hook): Likewise.
(arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
mapping symbols.
(is_arm_mapping_symbol_name): Function moved from here...
* bfd/cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here,
renamed and made global.
* gas/config/tc-arm.c (mapping_state): Change documentation in function
comment to cross-reference spec instead. Change type of mapping symbols
to BSF_NO_TYPE.
(arm_adjust_symtab): Don't change type of mapping symbols here.
* gas/testsuite/gas/arm/mapping.d: Update expected output.
* ld/testsuite/ld-arm/arm-app-abs32.d: Likewise.
* ld/testsuite/ld-arm/arm-app.d: Likewise.
* ld/testsuite/ld-arm/mixed-app.d: Likewise.
pbrook [Wed, 30 Mar 2005 16:21:29 +0000 (16:21 +0000)]
2005-03-30 Paul Brook <paul@codesourcery.com>
* arm/wrapper.c: Provide SIGTRAP and SIGBUS.
cgf [Wed, 30 Mar 2005 15:54:24 +0000 (15:54 +0000)]
* environ.h (win_env::immediate): Declare new field.
(win_env::operator = ): Declare new operator.
(win_env::reset): Declare new function.
(win_env::~win_env): Declare new destructor.
(getwinenv): Add optional third argument to declaration.
* environ.cc (conv_envvars): Accommodate immediate field.
(win_env::operator =): Define new operator.
(win_env::~win_env): Define new destructor.
(win_env::add_cache): Add value to environment immediately if "immediate" is
set.
(getwinenv): Accept optional third argument which will be used to store
"cached" values to avoid overwriting real cache.
(spenv::force): Declare new field.
(spenvs): Accommodate force field. Add "PATH=" with force set to true.
(spenv::retrieve): Avoid duping anything if we're not building an envblock.
(build_env): Ditto. Use size of potentially constructed new environment block
to determine if we need to create an environment block. Pass getwinenv
temporary storage to avoid inappropriately overwriting the environment cache.
bonzini [Wed, 30 Mar 2005 08:39:08 +0000 (08:39 +0000)]
2005-02-28 Paolo Bonzini <bonzini@gnu.org>
* Makefile.def (bfd, opcodes, libstdc++-v3, libmudflap): Set lib_path.
* Makefile.tpl (SET_LIB_PATH, REALLY_SET_LIB_PATH): Remove.
(HOST_EXPORTS, STAGE_HOST_EXPORTS, TARGET_EXPORTS): Set $(RPATH_ENVVAR).
(HOST_LIB_PATH): Generate from Makefile.def.
(TARGET_LIB_PATH): Likewise.
(Old bootstrap targets): Include TARGET_LIB_PATH into RPATH_ENVVAR.
* Makefile.in: Regenerate.
* configure.in (set_lib_path, SET_LIB_PATH, SET_GCC_LIB_PATH): Remove.
(RPATH_ENVVAR): Include Darwin case.
* configure: Regenerate.
config:
2005-02-28 Paolo Bonzini <bonzini@gnu.org>
* config/gcc-lib-path.m4: Remove.
aaronwl [Wed, 30 Mar 2005 02:55:12 +0000 (02:55 +0000)]
* as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
* config.in: Regenerate.
* configure: Regenerate.
* configure.in: Check for ffs decl and alphabetize.
aaronwl [Wed, 30 Mar 2005 02:46:21 +0000 (02:46 +0000)]
* configure.in: Check for ffs decl and alphabetize.
* config.in: Regenerate.
* configure: Regenerate.
* sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and
alphabetize.
gdbadmin [Wed, 30 Mar 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 30 Mar 2005 00:00:05 +0000 (00:00 +0000)]
daily update
drow [Tue, 29 Mar 2005 20:37:10 +0000 (20:37 +0000)]
* c-valprint.c (c_value_print): Fix up some formatting. Use
check_typedef.
testsuite/
* gdb.base/ptr-typedef.exp, gdb.base/ptr-typedef.c: New files.
drow [Tue, 29 Mar 2005 20:34:57 +0000 (20:34 +0000)]
Missed part of earlier commit.
fnf [Tue, 29 Mar 2005 20:10:36 +0000 (20:10 +0000)]
Approved by nickc@redhat.com
2005-03-29 Fred Fish <fnf@specifixinc.com>
* dwarf2.c (struct comp_unit): Fix typo.
(scan_unit_for_functions): Remove unused local variable "name"
and dead code that set it.
dj [Tue, 29 Mar 2005 19:32:15 +0000 (19:32 +0000)]
merge from gcc
hjl [Tue, 29 Mar 2005 19:30:44 +0000 (19:30 +0000)]
gas/testsuite/
2005-03-29 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run segment and inval-seg for i386. Run
x86-64-segment and x86-64-inval-seg for x86-64.
* gas/i386/intel.d: Expect movw for moving between memory and
segment register.
* gas/i386/naked.d: Likewise.
* gas/i386/opcode.d: Likewise.
* gas/i386/x86-64-opcode.d: Likewise.
* gas/i386/opcode.s: Use movw for moving between memory and
segment register.
* gas/i386/x86-64-opcode.s: Likewise.
* : Likewise.
* gas/i386/inval-seg.l: New.
* gas/i386/inval-seg.s: New.
* gas/i386/segment.l: New.
* gas/i386/segment.s: New.
* gas/i386/x86-64-inval-seg.l: New.
* gas/i386/x86-64-inval-seg.s: New.
* gas/i386/x86-64-segment.l: New.
* gas/i386/x86-64-segment.s: New.
include/opcode/
2005-03-29 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (i386_optab): Don't allow the `l' suffix for moving
moving between memory and segment register. Allow movq for
moving between general-purpose register and segment register.
opcodes/
2005-03-29 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (SEG_Fixup): New.
(Sv): New.
(dis386): Use "Sv" for 0x8c and 0x8e.
corinna [Tue, 29 Mar 2005 17:46:14 +0000 (17:46 +0000)]
* include/limits.h (NAME_MAX): New define.
(PATH_MAX): POSIX allows PATH_MAX to include trailing NUL.
nickc [Tue, 29 Mar 2005 17:43:07 +0000 (17:43 +0000)]
Updated German translation.
corinna [Tue, 29 Mar 2005 17:42:48 +0000 (17:42 +0000)]
* path.cc (is_floppy): Make externally available.
* path.h (is_floppy): Declare.
* syscalls.cc (sync): Check for floppies on A: and B: in guid case.
Don't call setmntent in non-guid case but evaluate drive bit mask
locally.
drow [Tue, 29 Mar 2005 16:58:22 +0000 (16:58 +0000)]
* arm-linux-nat.c (store_register, store_regs): Handle
ARM_PS_REGNUM.
drow [Tue, 29 Mar 2005 16:57:29 +0000 (16:57 +0000)]
* arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
(arm_linux_thumb_le_breakpoint): New. Update comments.
(arm_linux_init_abi): Set Thumb breakpoints also.
drow [Tue, 29 Mar 2005 16:56:35 +0000 (16:56 +0000)]
* Makefile.in (arm-tdep.o): Update dependencies.
* arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
(arm_gdbarch_init): Register dwarf2_frame_sniffer.
drow [Tue, 29 Mar 2005 16:54:18 +0000 (16:54 +0000)]
bfd/
* bfd-in2.h, libbfd.h: Regenerated.
* reloc.c: Add ARM TLS relocations.
* elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
relocations.
(elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
(elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
(elf32_arm_tls_ie32_howto): New.
(elf32_arm_howto_from_type): Support TLS relocations.
(elf32_arm_reloc_map): Likewise.
(elf32_arm_reloc_type_lookup): Likewise.
(TCB_SIZE): Define.
(struct elf32_arm_obj_tdata): New.
(elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
(elf32_arm_mkobject): New function.
(struct elf32_arm_relocs_copied): Add pc_count.
(elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
(GOT_TLS_IE): Define.
(struct elf32_arm_link_hash_table): Add tls_ldm_got.
(elf32_arm_link_hash_newfunc): Initialize tls_type.
(elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
(elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
(dtpoff_base, tpoff): New functions.
(elf32_arm_final_link_relocate): Handle TLS relocations.
(IS_ARM_TLS_RELOC): Define.
(elf32_arm_relocate_section): Warn about TLS mismatches.
(elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
(elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
TLS relocations and pc_count.
(elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
(allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
calls.
(elf32_arm_size_dynamic_sections): Handle TLS.
(elf32_arm_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject): Define.
gas/
* config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
(md_apply_fix3): Mark TLS symbols.
(tc_gen_reloc): Handle TLS relocations.
(arm_fix_adjustable): Ignore TLS relocations.
(s_arm_elf_cons): Support expressions after decorated symbols.
gas/testuite/
* gas/arm/tls.s, gas/arm/tls.d: New files.
* gas/arm/arm.exp: Run TLS test.
include/elf/
* arm.h: Add TLS relocations.
ld/testsuite/
* ld-arm/tls-lib.s, ld-arm/tls-lib.d, ld-arm/tls-lib.r,
ld-arm/tls-app.s, ld-arm/tls-app.d, ld-arm/tls-app.r: New files.
* ld-arm/arm-lib.ld, ld-arm/arm-dyn.ld: Increase data segment
alignment.
* ld-arm/arm-elf.exp: Run TLS tests.
drow [Tue, 29 Mar 2005 16:39:48 +0000 (16:39 +0000)]
* elf32-arm.c (elf32_arm_check_relocs): Increment count for all
relocation types. Don't count relocations which will use a PLT.
jules [Tue, 29 Mar 2005 16:29:05 +0000 (16:29 +0000)]
* gas/config/tc-arm.c (marked_pr_dependency): New bitmap, bit N
indicates whether personality routine index N has been output for this
section.
(mapping_state): tc_segment_info_data now struct not enum.
(arm_elf_change_section): Likewise, and marked_pr_dependency is now
handled on section change.
(create_unwind_entry): Previous code to output dependency removed.
(s_arm_unwind_fnend): Output dependency if it hasn't been done already
for this section.
* gas/config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
arm_segment_info_type.
(arm_segment_info_type): New struct.
* gas/testsuite/gas/arm/unwind.d: Update expected output.
nickc [Tue, 29 Mar 2005 16:13:42 +0000 (16:13 +0000)]
Add VAX specific disassembler option -Mentry: to specify a function entry
address, and add code to test this new option.
amodra [Tue, 29 Mar 2005 11:07:34 +0000 (11:07 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
New function, extracted from static void gld${EMULATION_NAME}_finish.
(gld${EMULATION_NAME}_strip_empty_sections): Likewise.
(gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
* emultempl/ppc64elf.em: Revert last change.
(ppc_layout_sections_again): Use
gld${EMULATION_NAME}_layout_sections_again.
(ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
gld${EMULATION_NAME}_strip_empty_sections and
gld${EMULATION_NAME}_provide_init_fini_syms.
* emultempl/hppaelf.em: Similarly.
corinna [Tue, 29 Mar 2005 09:10:55 +0000 (09:10 +0000)]
* fhandler_process.cc: Re-add exename.