OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years agoConsolidate save_inferior_ptid/restore_inferior_ptid implementation to
kevinb [Sun, 6 May 2001 22:22:00 +0000 (22:22 +0000)]
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.

23 years agoMake ptid_t related changes.
kevinb [Sun, 6 May 2001 21:06:34 +0000 (21:06 +0000)]
Make ptid_t related changes.

23 years ago* config/tc-mn10300.c (md_assemble): Subtract operand->shift
aoliva [Sun, 6 May 2001 20:05:28 +0000 (20:05 +0000)]
* config/tc-mn10300.c (md_assemble): Subtract operand->shift
from offset in non-pcrel operands too.

23 years agoImplement attach/detach for multi-threaded programs on Linux.
kettenis [Sun, 6 May 2001 17:00:43 +0000 (17:00 +0000)]
Implement attach/detach for multi-threaded programs on Linux.
* thread-db.c (keep_thread_db): Adjust comment.
(deactivate_target): Removed.
(thread_db_new_objfile): Don't call deactivate_target.  Implement
guts of deactivate_target inline instead.
(attach_thread): Call ATTACH_LWP unconditionally if defined.
(thread_db_attach): New function.
(thread_db_detach): Don't call deactivate_target.  Do necessary
cleanup inline instead.  Set inferior_ptid to LWP corresponding to
the current user-level thread.
(thread_db_kill): Set inferior_ptid to LWP corresponding to the
current user-level thread.
(thread_db_create_inferior): Deactivate target vector if
KEEP_THREAD_DB is zero.
(thread_db_mourn_inferior): Don't call deactivate_target.  Do
necessary cleanup inline instead.
(init_thread_db_ops): Initialize to_attach field to
thread_db_attach.
* lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
(stop_wait_callback): Add prototype.
(init_lwp_list): Add comment about when to re-initialize the LWP
list.
(lin_lwp_attach_lwp): Only call ptrace for cloned processes.
Avoid adding publicates to the LWP list.  Only mark an LWP as
signalled if it doesn't correspond to a cloned process.
(lin_lwp_attach): Add initial process to the LWP list.  Make sure
it's stopped and fake a SIGSTOP.
(detach_callback): New function.
(lin_lwp_detach): Implement.
(lin_lwp_create_inferior): Don't re-initialize LWP list here.
Call child_ops.to_create_inferior directly instead of via
target_beneath local.
(lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
directly instead of via target_beneath local.

23 years ago* string.h (cygwin_strchr): Make 'static inline' so that things will still work
cgf [Sun, 6 May 2001 16:00:23 +0000 (16:00 +0000)]
* string.h (cygwin_strchr): Make 'static inline' so that things will still work
when optimized.

23 years agoDo not insert more than MAX_MEM_FOR_RS_ALIGN_CODE bytes.
nickc [Sun, 6 May 2001 10:11:32 +0000 (10:11 +0000)]
Do not insert more than MAX_MEM_FOR_RS_ALIGN_CODE bytes.

23 years ago * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
eliz [Sun, 6 May 2001 06:07:20 +0000 (06:07 +0000)]
* symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
instead of non-portable search for `/'.  Use FILENAME_CMP instead
of STREQ, to account for case-insensitive filesystems.
(top-level): #include "filenames.h".

23 years ago* breakpoint.c (check_duplicates): Use the breakpoint's type, not
jimb [Sun, 6 May 2001 01:35:57 +0000 (01:35 +0000)]
* breakpoint.c (check_duplicates): Use the breakpoint's type, not
its address, to decide whether it's a watchpoint or not.  Zero
is a valid code address.
(update_breakpoints_after_exec): Admonishing comments.
* breakpoint.h (struct breakpoint): Doc fixes.

23 years ago* breakpoint.c (check_duplicates): Take a breakpoint object as an
jimb [Sun, 6 May 2001 00:52:07 +0000 (00:52 +0000)]
* breakpoint.c (check_duplicates): Take a breakpoint object as an
argument, rather than an address and section.  All callers changed.

23 years ago* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
cgf [Sat, 5 May 2001 05:07:20 +0000 (05:07 +0000)]
* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
guard variable.

23 years ago* configure.in: Fix typo.
cgf [Sat, 5 May 2001 04:18:15 +0000 (04:18 +0000)]
* configure.in: Fix typo.
* configure: Regenerate.

23 years ago* exceptions.cc (stack_info): Add some controls.
cgf [Sat, 5 May 2001 02:44:36 +0000 (02:44 +0000)]
* exceptions.cc (stack_info): Add some controls.
(stack_info::init): Add extra arguments to control method of initialization..
If we have a known good frame, set things up so that this frame is not skipped
the first time through.  Record whether caller cares about arguments or not.
(stack_info::walk): Don't store arguments if they're unwanted.
(stackdump): Add isexception parameter for use when called by exception
handler.
(cygwin_stackdump): Accomodate extra argument to stackdump.
(handle_exceptions): Ditto.
(sig_handle): Ditto.
(interrupt_on_return): Accomodate extra arguments to stack walk initialization.

23 years ago* localtime.c: Revert exclusion of windows.h.
cgf [Sat, 5 May 2001 01:07:03 +0000 (01:07 +0000)]
* localtime.c: Revert exclusion of windows.h.

23 years ago * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
rth [Fri, 4 May 2001 23:22:31 +0000 (23:22 +0000)]
    * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.

23 years agooops.
cgf [Fri, 4 May 2001 21:09:47 +0000 (21:09 +0000)]
oops.

23 years agooops.
cgf [Fri, 4 May 2001 21:09:28 +0000 (21:09 +0000)]
oops.

23 years ago2001-05-03 Michael Snyder <msnyder@redhat.com>
msnyder [Fri, 4 May 2001 21:07:00 +0000 (21:07 +0000)]
2001-05-03  Michael Snyder  <msnyder@redhat.com>

* config/sid.exp (gdb_target_sid): Check for error messages.
On error or timeout, don't make expect exit (which will terminate
all subsequent tests); instead just make gdb exit.
(gdb_load): Check for error messages.  On error or timeout,
return a negative value.

23 years ago* string.h: Fix last-minute typo.
cgf [Fri, 4 May 2001 21:06:12 +0000 (21:06 +0000)]
* string.h: Fix last-minute typo.

23 years agoRevert much of previous erroneous checkin. Add ChangeLog entry.
cgf [Fri, 4 May 2001 21:02:15 +0000 (21:02 +0000)]
Revert much of previous erroneous checkin.  Add ChangeLog entry.

* pinfo.h: Correctly set __SIGOFFSET.
* path.cc (hash_path_name): Avoid calling library functions for simple copying
of characters.
* shortcut.c: Use WIN32_LEAN_AND_MEAN.
* smallprint.c: Ditto.
* environ.cc (getwinenv): Minor clarity fix.
* localtime.c: No need to include windows.h
* string.h: New file.

23 years ago2001-01-26 Felix Lee <flee@redhat.com>
msnyder [Fri, 4 May 2001 21:02:12 +0000 (21:02 +0000)]
2001-01-26  Felix Lee  <flee@redhat.com>

* sid.exp (sid_exit): Pass host, not target, to remote_close.

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Call `remote_push_conn' after firing
up sid.
(sid_exit): Call `remote_pop_conn' after GDB is gone.

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.'
Deprecate $sid_spawn_id.
(sid_exit): Remove code necessary only for `spawn.'

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Handle sim,protocol of `sid.'

23 years ago* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
cgf [Fri, 4 May 2001 20:39:37 +0000 (20:39 +0000)]
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.

23 years ago* typo fix
fche [Fri, 4 May 2001 17:46:00 +0000 (17:46 +0000)]
* typo fix

23 years ago* m32r disasm bug fix
fche [Fri, 4 May 2001 17:45:19 +0000 (17:45 +0000)]
* m32r disasm bug fix

2001-05-04  Frank Ch. Eigler  <fche@redhat.com>

* m32r-dis.c, -asm.c, -ibld.c: Regenerated with disassembler fixes.

2001-05-04  Frank Ch. Eigler  <fche@redhat.com>

* cgen-dis.in (print_insn): Remove call to read_insn.  Instead,
assume incoming buffer already has the base insn loaded.  Handle
case of smaller-than-base instructions for variable-length case.

23 years ago2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
jjohnstn [Fri, 4 May 2001 17:23:17 +0000 (17:23 +0000)]
2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>

        * libc/string/strrchr.c: Use strchr for the speed improvements.

23 years ago* fhandler_socket.cc (set_connect_secret): Use /dev/urandom to
duda [Fri, 4 May 2001 16:30:17 +0000 (16:30 +0000)]
* fhandler_socket.cc (set_connect_secret): Use /dev/urandom to
generate secret cookie.

23 years ago* configure.in: Make subauth configuration optional.
cgf [Fri, 4 May 2001 15:27:56 +0000 (15:27 +0000)]
* configure.in: Make subauth configuration optional.
* configure: Regenerate.

23 years ago Initial release of the Cygwin subauthentication DLL.
corinna [Fri, 4 May 2001 13:19:37 +0000 (13:19 +0000)]
    Initial release of the Cygwin subauthentication DLL.
        * ChangeLog: New file.
        * Makefile.in: Ditto.
        * configure: Ditto. Generated from configure.in.
        * configure.in: Ditto.
        * cygsuba.c: Ditto.
        * cygsuba.din: Ditto.

23 years ago * subauth: New subdirectory.
corinna [Fri, 4 May 2001 13:18:51 +0000 (13:18 +0000)]
    * subauth: New subdirectory.
        * configure.in: Add subauth to the list of subdirectories.
        * configure: Regenerated from configure.in.

23 years agoAssorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.
amodra [Fri, 4 May 2001 11:10:53 +0000 (11:10 +0000)]
Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.

23 years agoSet EF_ARM_HASENTRY if the start address is set.
nickc [Fri, 4 May 2001 08:32:20 +0000 (08:32 +0000)]
Set EF_ARM_HASENTRY if the start address is set.

23 years agoPhase 1 of the ptid_t changes.
kevinb [Fri, 4 May 2001 04:15:22 +0000 (04:15 +0000)]
Phase 1 of the ptid_t changes.

23 years ago* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
cgf [Thu, 3 May 2001 20:42:28 +0000 (20:42 +0000)]
* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
arguments.
(pthread_cleanup_pop): Ditto.

23 years ago* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
aoliva [Thu, 3 May 2001 20:31:54 +0000 (20:31 +0000)]
* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
libgcj.

23 years ago * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
kseitz [Thu, 3 May 2001 18:13:20 +0000 (18:13 +0000)]
    * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
        for all platforms. Used for testing ONLY.

        * util.tcl (gdbtk_read_defs): If there is an error reading
        the testsuite definition file, print the error message to
        stderr, not stdout. This will allow tcl to know that an error
        has occurred.
        (find_iwidgets_library): Make it work for running testsuites
        from installed directory.

        * main.tcl: If we failed to find iwidgets, check if the
        testsuite is running. If it is running, do not pop up
        a dialog box: just print out the error and exit.
        Initialize _test(verbose) for the testsuite.

23 years ago * src/tkWarpPointer.c (WarpPointer): Implement for windows.
kseitz [Thu, 3 May 2001 18:00:35 +0000 (18:00 +0000)]
* src/tkWarpPointer.c (WarpPointer): Implement for windows.

23 years agoCompute value of _bfd_target_vector_entries based on the size of
nickc [Thu, 3 May 2001 17:49:48 +0000 (17:49 +0000)]
Compute value of _bfd_target_vector_entries based on the size of
 _bfd_target_vector and not bfd_target_vector.

23 years ago * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'
corinna [Thu, 3 May 2001 16:18:51 +0000 (16:18 +0000)]
    * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'
        for clearness.

23 years ago* exceptions.cc (handle_exceptions): Break out of "loop" if the debugger
cgf [Thu, 3 May 2001 15:00:38 +0000 (15:00 +0000)]
* exceptions.cc (handle_exceptions): Break out of "loop" if the debugger
doesn't seem to be attaching to our process.

23 years ago * rdi-share/devsw.c: Include <time.h> for struct tm
jlarmour [Thu, 3 May 2001 13:42:12 +0000 (13:42 +0000)]
    * rdi-share/devsw.c: Include <time.h> for struct tm

23 years ago * rdi-share/devsw.c: Include <time.h> for struct tm
jlarmour [Thu, 3 May 2001 13:41:17 +0000 (13:41 +0000)]
    * rdi-share/devsw.c: Include <time.h> for struct tm

23 years ago * config/djgpp/fnchange.lst: Add mappings for the new
eliz [Thu, 3 May 2001 13:25:21 +0000 (13:25 +0000)]
* config/djgpp/fnchange.lst: Add mappings for the new
opcodes/openrisc-* files.

23 years agoFix a typo.
eliz [Thu, 3 May 2001 10:24:19 +0000 (10:24 +0000)]
Fix a typo.

23 years ago * autoload.cc: Use new definition of LoadDLLinitfunc throughout.
corinna [Thu, 3 May 2001 09:35:08 +0000 (09:35 +0000)]
    * autoload.cc: Use new definition of LoadDLLinitfunc throughout.
        Redefine wrapper for wsock32.dll and ws2_32.dll.
        (std_dll_init): New function.
        * autoload.h: Rename LoadDLLinitfunc to LoadDLLinitfuncdef.
        Add new defines LoadDLLinitfunc and LoadDLLstdfunc.
        * net.cc (wsock_init): Add guard variable handling. Take care
        to call WSAStartup only once. Load WSAStartup without using
        autoload wrapper to eliminate recursion.  Eliminate FIONBIO
        and srandom stuff.

23 years ago2001-05-03 H.J. Lu <hjl@gnu.org>
hjl [Thu, 3 May 2001 06:26:25 +0000 (06:26 +0000)]
2001-05-03  H.J. Lu  <hjl@gnu.org>

* emultempl/elf32.em: Include "libiberty.h".
(gld${EMULATION_NAME}_vercheck): Call basename () to get the
basename of the bfd filename.
(gld${EMULATION_NAME}_stat_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.

23 years ago2001-05-03 H.J. Lu <hjl@gnu.org>
hjl [Thu, 3 May 2001 06:25:58 +0000 (06:25 +0000)]
2001-05-03  H.J. Lu  <hjl@gnu.org>

* ld-elfvers/vers19.ver: Expect vers17.so instead of
*tmpdir/vers17.so.

23 years ago2001-05-03 H.J. Lu <hjl@gnu.org>
hjl [Thu, 3 May 2001 06:18:09 +0000 (06:18 +0000)]
2001-05-03  H.J. Lu  <hjl@gnu.org>

* elfcode.h: Include "libiberty.h".

* elflink.h (elf_link_add_object_symbols): Set
elf_dt_name (abfd) to basename of the bfd filename.
(NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
of the bfd filename.

23 years ago * coff-alpha.c (reloc_nil): Likewise.
aj [Thu, 3 May 2001 05:08:17 +0000 (05:08 +0000)]
    * coff-alpha.c (reloc_nil): Likewise.
        (alpha_ecoff_bad_format_hook): Likewise.
        (alpha_adjust_reloc_out): Likewise.
        (alpha_bfd_reloc_type_lookup): Likewise.
        (alpha_convert_external_reloc): Likewise.

23 years ago * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
aj [Thu, 3 May 2001 04:46:27 +0000 (04:46 +0000)]
* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
(elf_generic_info_to_howto_rel): Likewise.
* coff-alpha.c (reloc_nil): Likewise.
(alpha_ecoff_bad_format_hook): Likewise.
(alpha_adjust_reloc_out): Likewise.
(alpha_bfd_reloc_type_lookup): Likewise.
(alpha_convert_external_reloc): Likewise.
* elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
(elf64_alpha_reloc_bad): Likewise.
(elf64_alpha_reloc_gpdisp): Likewise.
(elf64_alpha_bfd_reloc_type_lookup): Likewise.
(elf64_alpha_info_to_howto): Likewise.
(elf64_alpha_add_symbol_hook): Likewise.
(elf64_alpha_create_got_section): Likewise.
(elf64_alpha_is_local_label_name): Likewise.
(elf64_alpha_merge_ind_symbols): Likewise.
* elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
(mips_elf64_get_reloc_upper_bound): Likewise.
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
(nlm_alpha_get_public_offset): Likewise.

23 years agoWarning fixes and configure/makefile tweaks by Thiemo Seufer.
amodra [Thu, 3 May 2001 02:07:00 +0000 (02:07 +0000)]
Warning fixes and configure/makefile tweaks by Thiemo Seufer.

23 years ago * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
amodra [Thu, 3 May 2001 01:08:44 +0000 (01:08 +0000)]
* config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
expressions rather than triggering an assert.

23 years ago2001-05-02 H.J. Lu <hjl@gnu.org>
hjl [Wed, 2 May 2001 21:01:02 +0000 (21:01 +0000)]
2001-05-02  H.J. Lu  <hjl@gnu.org>

* emultempl/pe.em: Include <ctype.h>.

23 years agoFix indentation and parenthesis
nickc [Wed, 2 May 2001 18:40:10 +0000 (18:40 +0000)]
Fix indentation and parenthesis

23 years agoAdd gas and ld support for openrisc
nickc [Wed, 2 May 2001 18:14:29 +0000 (18:14 +0000)]
Add gas and ld support for openrisc

23 years ago2001-05-02 H.J. Lu <hjl@gnu.org>
hjl [Wed, 2 May 2001 16:42:54 +0000 (16:42 +0000)]
2001-05-02  H.J. Lu  <hjl@gnu.org>

* ldfile.c: Include "libiberty.h".
* ldlex.l: Likewise.

* ldmisc.c (buystring): Removed.
* ldmisc.h: Likewise.

* ldfile.c: Replace buystring with xstrdup.
* ldlang.c: Likewise.
* ldlex.l: Likewise.
* ldmain.c: Likewise.
* ldmisc.c: Likewise.
* lexsup.c: Likewise.
* mpw-eppcmac.c: Likewise.

23 years agoimprrove error message
nickc [Wed, 2 May 2001 11:33:11 +0000 (11:33 +0000)]
imprrove error message

23 years ago2001-05-01 Michael Snyder <msnyder@redhat.com>
msnyder [Tue, 1 May 2001 20:39:50 +0000 (20:39 +0000)]
2001-05-01  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c: Change printf to fprintf_unfiltered.

23 years ago2001-05-01 Michael Snyder <msnyder@redhat.com>
msnyder [Tue, 1 May 2001 20:15:42 +0000 (20:15 +0000)]
2001-05-01  Michael Snyder  <msnyder@redhat.com>

* Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.

23 years ago * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
nsd [Tue, 1 May 2001 19:36:11 +0000 (19:36 +0000)]
* config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
(rs6000_in_solib_return_trampoline): Declare.
* rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
function.
(rs6000_skip_trampoline_code): Skip bigtoc fixup code.
* xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
check after the CSECT check rather than before it.  Allocate
separate symtabs for CSECTs whose names begin with '@'.
(scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
Activate the misc_func_recorded mechanism for whose names begin
with '@'.

23 years ago2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Tue, 1 May 2001 18:18:25 +0000 (18:18 +0000)]
2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
        real file systems, let __smakebuf() determine if line buffering
        should be used for stdout.

23 years ago* mkpasswd.c (enum_users): Use /bin/bash as the default shell.
cgf [Tue, 1 May 2001 14:50:54 +0000 (14:50 +0000)]
* mkpasswd.c (enum_users): Use /bin/bash as the default shell.
(main): Ditto.

23 years ago*** empty log message ***
eliz [Tue, 1 May 2001 08:54:08 +0000 (08:54 +0000)]
*** empty log message ***

23 years ago * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
aj [Tue, 1 May 2001 08:07:34 +0000 (08:07 +0000)]
    * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.

        * ld-scripts/phdrs.t: Use startaddress that's greater than any
        MAXPAGESIZE used.

23 years ago* path.cc (mount_info::conv_to_win32_path): More path tweaking.
cgf [Tue, 1 May 2001 05:26:03 +0000 (05:26 +0000)]
* path.cc (mount_info::conv_to_win32_path): More path tweaking.

23 years ago* path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid a
cgf [Tue, 1 May 2001 04:45:18 +0000 (04:45 +0000)]
* path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid a
SIGSEGV.  Avoid double backslashes in middle of filename.

23 years ago* path.cc (mkrelpath): New function.
cgf [Tue, 1 May 2001 02:03:10 +0000 (02:03 +0000)]
* path.cc (mkrelpath): New function.
(mount_info::conv_to_win32_path): Eliminate now-unneeded relative path name arg
and processing.
(path_conv::check): Accomodate relative path names again.  Accomodate one extra
argument in mount_info::conv_to_win32_path.  Tack trailing slash on end of
relative path as a side effect, like before.
* shared_info.h (mount_info::conv_to_win32_path): Reflect new argument
ordering.

23 years ago* ppcnbsd-nat.c (fetch_inferior_registers)
jtc [Mon, 30 Apr 2001 23:57:27 +0000 (23:57 +0000)]
* ppcnbsd-nat.c (fetch_inferior_registers)
(store_inferior_registers, fetch_core_registers): Changed to use
fpreg[] instead of r_regs[] to access floating point registers.

23 years ago * autoload.cc: Add LoadDLLinitfunc for secur32.dll.
corinna [Mon, 30 Apr 2001 21:19:42 +0000 (21:19 +0000)]
    * autoload.cc: Add LoadDLLinitfunc for secur32.dll.
        Add LoadDLLfuncEx statements for AllocateLocallyUniqueId@4,
        DuplicateTokenEx@24, LsaNtStatusToWinError@4,
        LsaDeregisterLogonProcess@4, LsaFreeReturnBuffer@4,
        LsaLogonUser@56, LsaLookupAuthenticationPackage@12,
        LsaRegisterLogonProcess@12,
        * environ.cc: Add extern declaration for `subauth_id'.
        (subauth_id_init): New function for setting `subauth_id'.
        (struct parse_thing): Add entry for `subauth_id'.
        * fork.cc (fork_parent): Call `RevertToSelf' and
        `ImpersonateLoggedOnUser' instead of `seteuid'.
        * security.cc: Define global variable `subauth_id'.
        (extract_nt_dom_user): New function.
        (cygwin_logon_user): Call `extract_nt_dom_user' now.
        (str2lsa): New static function.
        (str2buf2lsa): Ditto.
        (str2buf2uni): Ditto.
        (subauth): Ditto.
        * security.h: Add prototype for `subauth'.
        * spawn.cc (spawn_guts): Use cygheap->user.token only if impersonated.
        Use `cygsid' type. Remove impersonation before allowing access to
        workstation/desktop to everyone. Call `RevertToSelf' and
        `ImpersonateLoggedOnUser' instead of `seteuid'.
        * syscalls.cc (seteuid): Rearranged to allow using subauthentication
        to retrieve user tokens when needed.

23 years ago2001-04-30 Elena Zannoni <ezannoni@redhat.com>
ezannoni [Mon, 30 Apr 2001 20:57:31 +0000 (20:57 +0000)]
2001-04-30  Elena Zannoni  <ezannoni@redhat.com>

      * sh-tdep.c: Get rid of the function prototypes.
      (sh_sh4_build_float_register_type): Move earlier in file.
      (fv_reg_base_num): Ditto.
      (dr_reg_base_num): Ditto.

23 years ago2001-04-30 Michael Snyder <msnyder@redhat.com>
msnyder [Mon, 30 Apr 2001 20:25:06 +0000 (20:25 +0000)]
2001-04-30  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Revert 2001-04-26 change for debugging output.
* lin-lwp.c: Ditto.
* lin-lwp.c: Add set/show debug lin-lwp command.  Use this
command to turn extra debugging output on / off.

23 years ago * uinfo.cc (internal_getlogin): Formatting change.
corinna [Mon, 30 Apr 2001 18:27:24 +0000 (18:27 +0000)]
    * uinfo.cc (internal_getlogin): Formatting change.

23 years ago * grp.cc: Eliminate MAX_DOMAIN_NAME define.
corinna [Mon, 30 Apr 2001 18:21:47 +0000 (18:21 +0000)]
    * grp.cc: Eliminate MAX_DOMAIN_NAME define.
        (read_etc_group): Substitute MAX_DOMAIN_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * passwd.cc (parse_pwd): Don't force pw_name to be lower case.
        * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN,
        MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout.
        (lookup_name): Slight cleanup.
        * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN.
        * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and
        DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS.
        * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN.
        * thread.h: Ditto.
        * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN.
        Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and
        MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.

23 years ago2001-04-30 Michael Snyder <msnyder@redhat.com>
msnyder [Mon, 30 Apr 2001 18:21:17 +0000 (18:21 +0000)]
2001-04-30  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Revert 2001-04-26 change for debugging output.
* lin-lwp.c:   Ditto.

23 years ago2001-04-30 Michael Snyder <msnyder@redhat.com>
msnyder [Mon, 30 Apr 2001 18:20:17 +0000 (18:20 +0000)]
2001-04-30  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Revert 2001-04-26 change for debugging output.
* lin-lwp.c:   Ditto.

23 years agoAlways initialize `p'.
cagney [Mon, 30 Apr 2001 17:09:19 +0000 (17:09 +0000)]
Always initialize `p'.

23 years ago* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
cgf [Mon, 30 Apr 2001 16:52:53 +0000 (16:52 +0000)]
* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
syntax unless parsing tail of path component.  Stop parsing path when we reach
the 'root' of the path.  Correctly copy tail to path component.

23 years ago2000-04-27 H.J. Lu <hjl@gnu.org>
hjl [Mon, 30 Apr 2001 16:13:25 +0000 (16:13 +0000)]
2000-04-27  H.J. Lu  <hjl@gnu.org>

* elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
only for ELF_LINK_FORCED_LOCAL.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.

* elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
if the symbol has hidden or internal visibility.

23 years ago * elf32-hppa.c (final_link_relocate): Branch to .+8 for
amodra [Mon, 30 Apr 2001 13:34:41 +0000 (13:34 +0000)]
* elf32-hppa.c (final_link_relocate): Branch to .+8 for
calls to undefined weak symbols.

23 years ago * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
eliz [Mon, 30 Apr 2001 10:30:27 +0000 (10:30 +0000)]
* buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
(top-level): #include filenames.h.

* dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
FILENAME_CMP, to DTRT on non-Posix platforms.
(top-level): #include filenames.h.

23 years ago * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
aj [Mon, 30 Apr 2001 10:30:04 +0000 (10:30 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
R_X86_64_GOTPCREL, don't use assignments instead of comparisons.

23 years ago * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
aj [Mon, 30 Apr 2001 09:37:07 +0000 (09:37 +0000)]
* emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.

23 years ago* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
cgf [Mon, 30 Apr 2001 03:09:18 +0000 (03:09 +0000)]
* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
(init_exceptions): Just use init_exception_handler.
(open_stackdumpfile): New function.
(stack_info::first_time): Eliminate.
(stack_info::init): Set up fields to avoid "first_time" consideration.
(stack_info::walk): Remove "first_time" consideration.
(stackdump): Change arguments to accept initial frame pointer and open stack
file flag.
(stack): Eliminate.
(cygwin_stackdump): Use stackdump() rather than stack().
(try_to_debug): Remove all synchronization logic.  Just keep looping in
exception handler until debugger notices us.  Return 1 if successfully started
debugger.
(handle_exceptions): Just return if we know that we're debugging.  Reorganize
to avoid creating a stackdump file if we are starting a debugger.  Return from
exception handler if debugger started successfully.
(sig_handle): Create a stackdump only if debugger wasn't started.
* winsup.h (try_to_debug): Add an argument.

23 years ago* path.cc (symlink_info::check): Remove extra arguments, move functionality
cgf [Mon, 30 Apr 2001 01:46:30 +0000 (01:46 +0000)]
* path.cc (symlink_info::check): Remove extra arguments, move functionality
back to path_conv::check.  Clear symlink bit from pflags argument before
detecting if this is a symlink.
(path_conv::check): Convert posix path here instead of symlink_info::check.
Only grab volflags when using ntsec.
(symlink_info::check_case): Just replace appropriate part of input path.

23 years ago2001-04-29 H.J. Lu <hjl@gnu.org>
hjl [Sun, 29 Apr 2001 19:10:21 +0000 (19:10 +0000)]
2001-04-29  H.J. Lu  <hjl@gnu.org>

* ld-shared/symbolic.dat: New.

* ld-shared/shared.exp: Also check -Bsymbolic.

23 years ago2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
hjl [Sun, 29 Apr 2001 17:58:39 +0000 (17:58 +0000)]
2001-04-29  Keith M Wesolowski <wesolows@foobazco.org>

* config/tc-mips.c (md_parse_option): Also accept
elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.

23 years ago * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
aj [Sun, 29 Apr 2001 13:42:45 +0000 (13:42 +0000)]
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
out handled entries.
(elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
(elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
(elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
GOT32.

23 years agominor formatting changes.
cgf [Sun, 29 Apr 2001 02:54:36 +0000 (02:54 +0000)]
minor formatting changes.

23 years ago* passwd.cc (ttymnam): New function.
cgf [Sun, 29 Apr 2001 02:32:18 +0000 (02:32 +0000)]
* passwd.cc (ttymnam): New function.
(main): Use ttynam() to report name of tty.

23 years agoThroughout, change 'tty_attached' to 'real_tty_attached', for clarity.
cgf [Sat, 28 Apr 2001 23:48:27 +0000 (23:48 +0000)]
Throughout, change 'tty_attached' to 'real_tty_attached', for clarity.
Throughout, change 'OutputStopped' to 'output_stopped', for consistency.
* dtable.cc (stdio_init): Set controlling tty if not set by stdio opens.
* exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is
associated with the process.
(Suggested by Tim Baker <dbaker@direct.ca>)
* external.cc (fillout_pinfo): Return actual tty number for ctty.
* fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is
allocated.  Accept flags input from open().
(set_console_ctty): New function.
(fhandler_console::open): Pass flags to get_tty_stuff and rely on this function
to set the ctty, if appropriate.
* fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class.
* fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access
set_ctty().
* tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h.
(tty_min): Add set_ctty class here.
* include/sys/cygwin.h (TTY_CONSOLE): New home here.
* path.cc (symlink_info): Make contents an actual buffer.  Pass more flags to
case_check.
(path_conv::check): Reorganize to do parsing based on posix path rather than
native path.
(symlink_info::check): Expect posix path as input.  Translate to native path
here.  Accept path_conv flags.  Stop parsing if not a symlink regardless of
whether previous path was a symlink.

23 years agoGive emulation a chance to process unrecognized file before fatal error is
nickc [Sat, 28 Apr 2001 18:00:09 +0000 (18:00 +0000)]
Give emulation a chance to process unrecognized file before fatal error is
reported, not after.

23 years ago * ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
aj [Sat, 28 Apr 2001 16:14:39 +0000 (16:14 +0000)]
* ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
special.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 27 Apr 2001 21:59:44 +0000 (21:59 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.

23 years agoRevert the last change on aclocal.m4.
hjl [Fri, 27 Apr 2001 21:25:04 +0000 (21:25 +0000)]
Revert the last change on aclocal.m4.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Fri, 27 Apr 2001 20:43:41 +0000 (20:43 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdlib.h: Add prototype for _strtod_r.

23 years ago2001-04-27 David Mosberger <davidm@hpl.hp.com>
hjl [Fri, 27 Apr 2001 20:42:55 +0000 (20:42 +0000)]
2001-04-27  David Mosberger  <davidm@hpl.hp.com>

* config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
argument passing order: predicate goes last, not first.

23 years ago* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
cgf [Fri, 27 Apr 2001 18:50:57 +0000 (18:50 +0000)]
* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib.
* sigproc.h (sig_send): Add exception parameter to sig_send.
* sigproc.cc (sig_send): Ditto.  Use it when setting frame info.
* exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.

23 years agoAdd support for arm-vxworks target
nickc [Fri, 27 Apr 2001 17:12:15 +0000 (17:12 +0000)]
Add support for arm-vxworks target

23 years agoZap romp host.
cagney [Fri, 27 Apr 2001 16:40:28 +0000 (16:40 +0000)]
Zap romp host.

23 years agoAll 5.1 obsolete targets are done.
cagney [Fri, 27 Apr 2001 16:20:50 +0000 (16:20 +0000)]
All 5.1 obsolete targets are done.

23 years ago (Changes from Kevin Buettner, with minor update by Don Howard.)
dhoward [Fri, 27 Apr 2001 16:06:51 +0000 (16:06 +0000)]
(Changes from Kevin Buettner, with minor update by Don Howard.)

* i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
typos in which hexadecimal constants were really intended to be
binary constants.
(i387_tag): Swap logic regarding zero vs non-zero exponents.

23 years agoAdded myself to the write-after-approval list.
dhoward [Fri, 27 Apr 2001 15:53:06 +0000 (15:53 +0000)]
Added myself to the write-after-approval list.