OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years agoAdd new section "Where can I get it?" to what.texinfo.
davidsb [Wed, 18 Oct 2000 12:34:41 +0000 (12:34 +0000)]
Add new section "Where can I get it?" to what.texinfo.
Omit sites.texinfo altogether (mirror list not useful).

23 years agoDelete entry "Ancient history of the project", replace with link to history.html.
davidsb [Wed, 18 Oct 2000 11:52:15 +0000 (11:52 +0000)]
Delete entry "Ancient history of the project", replace with link to history.html.

23 years ago* ps.cc (main): Add some extra space to pid output for Windows 95.
cgf [Wed, 18 Oct 2000 04:55:01 +0000 (04:55 +0000)]
* ps.cc (main): Add some extra space to pid output for Windows 95.

23 years ago* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
cgf [Wed, 18 Oct 2000 04:53:37 +0000 (04:53 +0000)]
* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
active.
* syscalls.cc (_read): Don't clear errno.
* sigproc.cc (wait_sig): Don't scan the waiting process list after a SIGCHLD if
there are no zombies to reap.
* winsup.h: Use __builtin_strcmp.
* environ.cc (posify): Don't initialize len unless it is required
(from DJ Delorie <dj@redhat.com>).

23 years agoProtoization.
kevinb [Wed, 18 Oct 2000 03:29:25 +0000 (03:29 +0000)]
Protoization.

23 years ago2000-10-17 Kazu Hirata <kazu@hxi.com>
kazu [Tue, 17 Oct 2000 20:21:45 +0000 (20:21 +0000)]
2000-10-17  Kazu Hirata  <kazu@hxi.com>

* debug.c: Fix formatting.
* depend.c: Likewise.
* dwarf2dbg.c: Likewise.
* dwarf2dbg.h: Likewise.
* ecoff.c: Likewise.
* expr.c: Likewise.
* expr.h: Likewise.
* flonum-konst.c: Likewise.
* frags.h: Likewise.

23 years agoAdded new option --target-help.
cchavva [Tue, 17 Oct 2000 20:10:20 +0000 (20:10 +0000)]
Added new option --target-help.

23 years agoAdded new option --target-help.
cchavva [Tue, 17 Oct 2000 20:08:37 +0000 (20:08 +0000)]
Added new option --target-help.

23 years ago2000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>
msnyder [Tue, 17 Oct 2000 20:00:21 +0000 (20:00 +0000)]
2000-10-16  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * lib/gdb.exp (gdb_skip_float_test): New proc.  Skip test if
        no floating point support.
        (gdb_skip_stdio_test): New proc.  Skip test if no stdio support.
        * gdb.base/call-ar-st.exp: Use above procs to skip tests.
        * gdb.base/call-rt-st.exp: Ditto.
        * gdb.base/call-strs.exp: Ditto.
        * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
        * gdb.base/varargs.exp: Skip entire test if no printf support.
        * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
        * gdb.base/shlib-call.exp: Skip several tests if no printf support.

23 years ago* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
cgf [Tue, 17 Oct 2000 18:55:58 +0000 (18:55 +0000)]
* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
PROC_ADDCHILD.  Return 0 when terminated child has just been reparented.
(wait_subproc): Only send SIGCHLD when proc_subproc returns != 0.
* strace.cc (strace::vsprntf): Only strip .exe extension from program name.

23 years ago* fhandler_clipboard.cc: new file
dj [Tue, 17 Oct 2000 01:46:26 +0000 (01:46 +0000)]
* fhandler_clipboard.cc: new file
* Makefile.in: include fhandler_clipboard.o in DLL_OFILES list.
* fhandler.h: add FH_CLIPBOARD to the devices enum.
(fhandler_dev_clipboard): new
* path.cc (windows_device_names): add "\\dev\\clipboard"
(get_device_number): check for "clipboard"
* dcrt0.cc: declare a few more functions from winuser.h
* dtable.cc (dtable::build_fhandler): check for FH_CLIPBOARD in
switch().

23 years ago* debug.cc (add_handle): Issue warning on attempts to add the same handle more
cgf [Tue, 17 Oct 2000 01:42:04 +0000 (01:42 +0000)]
* debug.cc (add_handle): Issue warning on attempts to add the same handle more
than once.
* fhandler_tty.cc (fhandler_tty_slave::open): Protect some handles.
(fhandler_tty_common::close): Use proper name when closing handles.
(fhandler_pty_master::close): Don't close to_slave or from_slave since they've
already been closed earlier in the function.
* sigproc.cc (proc_subproc): Don't protect vchild->hProcess.  Expect that the
caller will do this, instead.
* tty.cc (tty_list::terminate): Use proper name when closing handles.
(tty::make_pipes): Protect some handles.

23 years ago* Makefile.in: Remove some obsolete stuff.
cgf [Mon, 16 Oct 2000 23:55:55 +0000 (23:55 +0000)]
* Makefile.in: Remove some obsolete stuff.
* dcrt0.cc (dll_crt0_1): Call signal_fixup_after_exec where appropriate.  Set
myself->uid from parent version.  Just use ThreadItem Init method.  Close or
store hexec_proc as appropriate.
(_dll_crt0): Store user_data->forkee here so that proper tests can be made
subsequently.
(do_exit): Remove hExeced stuff.
* environ.cc (environ_init): Accept environ count as well as environ pointer.
* environ.h: Reflect above change.
* pinfo.cc (pinfo_init): Ditto.  Accept environ count.
(fixup_in_spawned_child): Remove.
* spawn.cc (spawn_guts): Move signal code to dll_crt0_1.  Don't suspend execing
process since it is no longer necessary.  Store envc.
* exceptions.cc (signal_fixup_after_exec): New function.
(call_handler): Remove hExeced test.
* child_info.h (cygheap_exec_info): Store envc as well as envp.
(child_info_spawn): Store hexec_proc so that it can be closed in child.
* path.cc (normalize_posix_path): Avoid intermediate use of temporary cwd buf.
(normalize_win32_path): Ditto.
(cwdstuff::get_initial): Always set lock.
* sigproc.h: Remove hExeced.
* strace.cc (strace::vsprntf): Modify to accomodate for lack of hExeced.
* thread.cc (MTinterface::Init): Merge Init1 and ClearReent into this method.
(MTinterface::Init1): Eliminate.
(MTinterface::ClearReent): Eliminate.
* thread.h: Reflect above changes.
* include/sys/strace.h (strace): Make microseconds() public.  Make various
functions 'regparm', throughout.
* pinfo.h (_pinfo): Inline simple signal manipulation functions.  Requires
inclusion of thread.h which was removed from .cc files, where appropriate.
throughout.
* pinfo.cc: Eliminate signal manipulation functions.
(_pinfo::exit): Calculate total rusage for exiting process here.
* cygheap.cc (size2bucket): Eliminate.
(init_buckets): Ditto.
(_cmalloc): Calculate size and bits in a loop rather than going through a
function call.
(_crealloc): Use stored array index to calculate allocated size.
* spawn.cc (spawn_guts): Use _pinfo exit method to exit, calculating cpu usage.

23 years ago * cygcheck.cc (main): Fix argument counting.
corinna [Mon, 16 Oct 2000 23:12:58 +0000 (23:12 +0000)]
    * cygcheck.cc (main): Fix argument counting.

23 years ago * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
geoffk [Mon, 16 Oct 2000 20:49:52 +0000 (20:49 +0000)]
* elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
of a GOT reloc.

23 years ago * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
geoffk [Mon, 16 Oct 2000 19:52:26 +0000 (19:52 +0000)]
* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
(SYMBOL_CALLS_LOCAL): New macro.
(ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
(ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_relocate_section): Use flag variable to determine
whether the relocation refers to a local symbol.
Test whether a PLTREL24 reloc will produce a reloc by looking
to see whether a PLT entry was made.

23 years ago * config/tc-sh.c (JREG): Remove.
hp [Mon, 16 Oct 2000 19:44:38 +0000 (19:44 +0000)]
* config/tc-sh.c (JREG): Remove.
(md_convert_frag): Remove #if 0:d code using JREG.

23 years agoAdd tests of return values from bfd function calls
nickc [Mon, 16 Oct 2000 19:08:45 +0000 (19:08 +0000)]
Add tests of return values from bfd function calls

23 years agoChange mask for OC to 0xFE00
nickc [Mon, 16 Oct 2000 18:18:46 +0000 (18:18 +0000)]
Change mask for OC to 0xFE00

23 years ago * sparc-tdep.c (sparc_fix_call_dummy): Improve comments.
schauer [Mon, 16 Oct 2000 17:19:47 +0000 (17:19 +0000)]
* sparc-tdep.c (sparc_fix_call_dummy):  Improve comments.
Adjust call_dummy_breakpoint_offset, so that `finish' after a stop
in a call dummy works.
(sparc_gdbarch_init):  Fix setting of pc_in_call_dummy, it depends
on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK.

23 years agoSpelling changes from Dmitry Sivachenko <dima@Chg.RU>.
eliz [Mon, 16 Oct 2000 07:34:02 +0000 (07:34 +0000)]
Spelling changes from Dmitry Sivachenko <dima@Chg.RU>.

23 years agoProtoization.
kevinb [Mon, 16 Oct 2000 06:42:28 +0000 (06:42 +0000)]
Protoization.

23 years agogas:
dnovillo [Sun, 15 Oct 2000 06:17:35 +0000 (06:17 +0000)]
gas:

2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

* config/tc-i386.c (i386_operand_modifier): Only match
modifiers SHORT and FLAT if they are followed by a space.
(parse_register): When `allow_naked_reg' is set, do not confuse
identifiers that start with a register name with a register.

gas/testsuite:

2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

* intel.s, intel.d: Add new tests for naked registers using intel
syntax.

23 years ago* ps.cc (main): Accomodate new PID_ constant.
cgf [Sun, 15 Oct 2000 03:43:48 +0000 (03:43 +0000)]
* ps.cc (main): Accomodate new PID_ constant.

23 years ago* exceptions.cc (set_console_handler): Don't allocate
cgf [Sun, 15 Oct 2000 01:37:06 +0000 (01:37 +0000)]
* exceptions.cc (set_console_handler): Don't allocate
console_handler_thread_waiter.  It is obsolete.
(ctrl_c_handler): Don't use console_handler_thread_waiter.
* path.cc (hash_path_name): Fix handling of relative names.  Make case
insensitive.
* path.h (suffix_info): Use initializers.
* pinfo.h (_pinfo): Avoid initializers for null case.
* resource.cc (fill_rusage): Zero rest of rusage structure.
* security.cc (set_process_privileges): Don't reopen parent process.  Just use
hMainProc.
* signal.cc (signal): Track when a signal handler has been used.
(sigaction): Ditto.
* sigproc.cc (pchildren): Use default initializer.
(zombies): Ditto.
(sigproc_terminate): Avoid closing handles that will be closed on exit anyway.
(wait_sig): Send signal to "parent" on EXECing, not FORKing.
(wait_subproc): Send SIGCHLD here rather than in proc_wait to avoid potential
muto conflicts.
* sigproc.h (sigthread): Don't initialize to zero.  It's the default.
* spawn.cc (spawn_guts): Fill in resources from exec parent prior to
termination.
* sync.h (muto): Don't initialize to zero.
* syscalls.cc (close_all_files): Use one lock around entire loop and call
fhandler close/release stuff directly.
(_read): Don't use ready_for_read if there are not signal handlers active.
* dcrt0.cc (dll_crt0_1): Fix display of "title".
(do_exit): Use pinfo exit method to exit.
(__api_fatal): Ditto.
* exceptions.cc (signal_exit): Ditto.
* fork.cc (fork_child): Remove debugging stuff.  Use pinfo_fixup_after fork in
place of exec_fixup_after_fork.
* pinfo.cc (pinfo_fixup_after_fork): New method.
(pinfo_fixup_in_spawned_child): Ditto.
(_pinfo::exit): New method.
(_pinfo::init): Remove recursion.  Detect pathological case where pinfo
structure already exists for new pid.
* pinfo.h (_pinfo): Reorganize slightly.  Add new method and new function
declarations.
* sigproc.cc (proc_exists): Previous simplification was a little to simple.
Try harder to detect if a process exists.
(proc_terminate): Use PID_EXITED setting to determine if process is still
around.
(WFSO): Remove debugging statement.
(WFMO): Ditto.
* spawn.cc (exec_fixup_after_fork): Eliminate.
(spawn_guts): Always set old_title to NULL.  Is it really needed?  Move
hexec_proc to pinfo.cc.  Call pinfo_fixup_in_spawned_child to eliminate handle
link after a spawn.
* include/sys/cygwin.h: Remove PID_NOT_IN_USE.  Add PID_EXITED.

23 years ago * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
geoffk [Sat, 14 Oct 2000 23:30:12 +0000 (23:30 +0000)]
* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.

23 years agoForgot to commit ChangeLog
corinna [Sat, 14 Oct 2000 08:56:17 +0000 (08:56 +0000)]
Forgot to commit ChangeLog

23 years ago * cygwin.din: Add symbol hstrerror.
corinna [Sat, 14 Oct 2000 08:55:44 +0000 (08:55 +0000)]
    * cygwin.din: Add symbol hstrerror.
        * net.cc: Change meaning of member `s' of struct host_errmap.
        (set_host_errno): Fix error in loop condition.
        (hstrerror): Ditto.
        (herror): Add appropriate functionality.
        * include/netdb.h: Add declaration of hstrerror.
        * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 29.

23 years ago* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
cgf [Sat, 14 Oct 2000 05:52:38 +0000 (05:52 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
parent.
* dcrt0.cc (do_exit): Don't cleanup pinfo on exit.  That happens automatically
now.
* exceptions.cc (signal_exit): Ditto.
* fork.cc (fork_parent): Use stack_here value passed in from fork().
(fork): Figure out top of stack here and pass it to fork_parent.
* pinfo.cc (_pinfo::record_death): Eliminate.
* pinfo.h (_pinfo): Ditto.
* sigproc.cc (proc_exists): Simplify.
(proc_terminate): Ditto.
(remove_zombie): Don't cleanup pinfo stuff.
(wait_sig): Send subproc_ready signal whether execed or spawned.
* spawn.cc (spawn_guts): Always create subproc_ready event.  Use it for both
exec and spawn.
(_spawnve): Send proper mode to spawn_guts when mode != _P_OVERLAY.

23 years ago2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
ulfc [Sat, 14 Oct 2000 04:05:23 +0000 (04:05 +0000)]
2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>

From  Ralf Baechle  <ralf@gnu.org>

* elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
against local symbols.
(_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.

23 years agoAdd comment.
cgf [Sat, 14 Oct 2000 01:03:01 +0000 (01:03 +0000)]
Add comment.

23 years ago2000-10-13 Fernando Nasser <fnasser@cygnus.com>
fnasser [Fri, 13 Oct 2000 21:41:21 +0000 (21:41 +0000)]
2000-10-13  Fernando Nasser  <fnasser@cygnus.com>

* remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
(read_frame): Do not call error() on communication error when
reading checksum, but return failure instead and log message.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:50:44 +0000 (20:50 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* gdbtk.c (target_is_native): The "multi-thread" target is native.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:42:54 +0000 (20:42 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* varobj.c (type_changeable): Arrays are not changeable.
Trying to check for updates was causing an error if the array lived
in a register as gdb value_equal() cannot handle that case yet.

23 years agoOops - fix mistake in previous delta where unused variable 'nsyms' was
nickc [Fri, 13 Oct 2000 20:41:07 +0000 (20:41 +0000)]
Oops - fix mistake in previous delta where unused variable 'nsyms' was
deleted, but along with its (necessary) call to bfd_canonicalize_symtab.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:31:38 +0000 (20:31 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* varobj.c (varobj_update): Prevent uninitialized error code to be
returned on type_changed.  Also, prevent value_equal() to be called
for the types we do not want to test for updates.

23 years agoAdd #ifdef DLL_SUPPORT around use of pe_dll_search_prefix.
nickc [Fri, 13 Oct 2000 20:16:02 +0000 (20:16 +0000)]
Add #ifdef DLL_SUPPORT around use of pe_dll_search_prefix.

23 years ago* cleanup
fche [Fri, 13 Oct 2000 11:21:56 +0000 (11:21 +0000)]
* cleanup

2000-10-13  matthew green  <mrg@cygnus.com>

* utils-cgen.scm (get-ifetch): Move from here ...
* sim.scm (get-ifetch): ... to here.

23 years ago* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
cgf [Fri, 13 Oct 2000 03:13:58 +0000 (03:13 +0000)]
* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
* pinfo.cc (set_myself): Show pid in initial strace line.

23 years ago2000-10-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Thu, 12 Oct 2000 22:56:31 +0000 (22:56 +0000)]
2000-10-11  Fernando Nasser  <fnasser@totem.to.cygnus.com>

        From Grant Edwards <grante@visi.com>
        This keeps the GUI alive while running an RDI target and lets the
        STOP button be used to stop the target.
        * remote-rdi.c (arm_rdi_stop): New function.  Implements target_stop.
        (init_rdi_ops): Set to_stop target vector entry to the above.
        * rdi-share/ardi.c (stop_request): New variable.  Tells when a stop
        has been requested.
        (angel_RDI_stop_request): New function. Registers that a stop has
        been requested.
        (angel_RDI_ExecuteOrStep): Add call to ui_loop_hook() in loop that
        waits while target is executing.  Initialize and reset stop_request.
        * rdi-share/ardi.h: Add declaration of angel_RDI_stop_request().

23 years ago* child_info: Bump child_info "version".
cgf [Thu, 12 Oct 2000 22:15:46 +0000 (22:15 +0000)]
* child_info: Bump child_info "version".
(child_info): Move some fields from child_info_spawn to here.
* cygheap.cc: Make cygheap pointers NOCOPY.
* dcrt0.cc (dll_crt0_1): Copy cygwin heap here regardless of whether we've been
forked or execed.
* dtable.cc (dtable::fixup_after_fork): Just release close-on-exec fds.
* exceptions.cc (stackdump): Respond to C warning.
* fork.cc: Reorganize to minimize stack copying.
(fork_child): New function.
(fork_parent): Ditto.
(sync_with_child): Don't suspend the forkee.
(sync_with_parent): Ditto.  Make into a function.
* heap.cc (heap_init): Add some debugging output.
* path.cc (path_conv::check): Add an assertion.
(has_suffix): Ditto.
* security.cc (get_pw_sid): Defend against NULL.
* sigproc.cc (proc_subproc): Fix debugging output.
(wait_sig): Ditto.
* strace.cc: Make statics NO_COPY throughout.
(strace::vsprntf): Defend against NULL.

23 years agoProtoization.
kevinb [Thu, 12 Oct 2000 21:39:21 +0000 (21:39 +0000)]
Protoization.

23 years ago2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
ezannoni [Thu, 12 Oct 2000 19:34:27 +0000 (19:34 +0000)]
2000-10-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

From Daniel Berlin <dberlin@redhat.com> :

* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol
  language to auto instead of unknown, so it will try to demangle
  the symbol.
* symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
* symtab.c (gdb_mangle_name): Properly handle C++ operators.

23 years ago* emultempl/pe.em (pe_dll_search_prefix): New variable,
dj [Thu, 12 Oct 2000 19:18:20 +0000 (19:18 +0000)]
* emultempl/pe.em (pe_dll_search_prefix): New variable,
(longopts): New --dll-search-prefix option.
(gld_${EMULATION_NAME}_list_options): Document.
(gld_${EMULATION_NAME}_parse_args): Handle.
(gld_${EMULATION_NAME}_open_dynamic_archive): When linking
dynamically, search for a dll named '<prefix><basename>.dll'
in preference to 'lib<basename>.dll' if --dll-search-prefix
is specified.

23 years ago* Make comma after string after icon/control optional.
dj [Thu, 12 Oct 2000 17:47:35 +0000 (17:47 +0000)]
* Make comma after string after icon/control optional.

23 years ago2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
ezannoni [Thu, 12 Oct 2000 16:53:06 +0000 (16:53 +0000)]
2000-10-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

From Daniel Berlin <dberlin@redhat.com> :

* symtab.c (lookup_symbol_aux): New function. Renamed from
  lookup_symbol. Move code to do demangling/case sensitivity to
  lookup_symbol().
   (lookup_symbol): Now wrapper for lookup_symbol_aux, so we can
  perform case sensitivity/demangling without leaking memory.  Move
  code to do demangling/case sensitivity from old_lookup_symbol to
  here.
(lookup_partial_symbol): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME.
(lookup_block_symbol): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME. Don't do linear search in case of C++.

   * symfile.c (compare_symbols): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME.
   (compare_psymbols): Same here.

23 years ago* strace.cc (proc_child): Handle exceptions correctly.
cgf [Thu, 12 Oct 2000 06:22:30 +0000 (06:22 +0000)]
* strace.cc (proc_child): Handle exceptions correctly.

23 years ago* errno.cc (seterrno_from_win_error): Fix debugging output.
cgf [Thu, 12 Oct 2000 04:38:29 +0000 (04:38 +0000)]
* errno.cc (seterrno_from_win_error): Fix debugging output.
* fhandler.cc (fhandler_base::fstat): Move to inline method in fhandler.h.
(fhandler_base::set_io_handle): Ditto.
* fhandler.h (fhandler_base): Make some methods inline.
* fhandler_console.cc (fhandler_console::write_normal): Make buffer larger.
* sigproc.h (sigframe::sigframe): Actually use set ebp parameter correctly.
* spawn.cc (spawn_guts): Set dwProcessId when exec'ing.  Just exit immediately
after reparenting.
* syscalls.cc: Sprinkle sigframe stuff throughout.
* wait.cc (wait4): Set signal frame here.
* dcrt0.cc (__api_fatal): Don't rely on small_printf to display errors.  Always
display problems to the console, if possible.

23 years agoAnother try at correcting relocations against discarded
amodra [Thu, 12 Oct 2000 03:44:50 +0000 (03:44 +0000)]
Another try at correcting relocations against discarded
link-once section symbols.

23 years agomerge from gcc repository
dj [Thu, 12 Oct 2000 02:16:48 +0000 (02:16 +0000)]
merge from gcc repository

23 years agomerge from gcc repository
dj [Thu, 12 Oct 2000 02:15:49 +0000 (02:15 +0000)]
merge from gcc repository

23 years agoInclude alloca-conf.h
amodra [Thu, 12 Oct 2000 01:28:06 +0000 (01:28 +0000)]
Include alloca-conf.h

23 years ago2000-10-11 Fernando Nasser <fnasser@cygnus.com>
fnasser [Wed, 11 Oct 2000 22:37:30 +0000 (22:37 +0000)]
2000-10-11  Fernando Nasser  <fnasser@cygnus.com>

* srctextwin.itb (build_popups): Fix typos that caused duplicate
"Jump to Here" menu entries in the breakpoint-set right-click pop-up
menu.

23 years ago2000-10-12 Kazu Hirata <kazu@hxi.com>
kazu [Wed, 11 Oct 2000 20:24:32 +0000 (20:24 +0000)]
2000-10-12  Kazu Hirata  <kazu@hxi.com>

* app.c: Fix formatting.
* as.c: Likewise.
* as.h: Likewise.
* bit_fix.h: Likewise.
* cgen.c: Likewise.
* cgen.h: Likewise.
* cond.c: Likewise.

23 years agoRevert 2000-10-07 link-once section symbol changes.
amodra [Wed, 11 Oct 2000 07:05:01 +0000 (07:05 +0000)]
Revert 2000-10-07 link-once section symbol changes.

23 years ago2000-10-10 Kazu Hirata <kazu@hxi.com>
kazu [Wed, 11 Oct 2000 00:16:07 +0000 (00:16 +0000)]
2000-10-10  Kazu Hirata  <kazu@hxi.com>

* deffile.h: Fix formatting.
* lexsup.c: Likewise.
* mri.c: Likewise.

23 years agoFix my last change to actually compile.
amodra [Tue, 10 Oct 2000 23:38:27 +0000 (23:38 +0000)]
Fix my last change to actually compile.

23 years ago* path.cc (cwdstuff::get): Set EINVAL when length is zero.
cgf [Tue, 10 Oct 2000 19:24:32 +0000 (19:24 +0000)]
* path.cc (cwdstuff::get): Set EINVAL when length is zero.

23 years ago(ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
amodra [Tue, 10 Oct 2000 15:50:35 +0000 (15:50 +0000)]
(ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.

23 years ago* section.c (bfd_make_section_anyway): Release newsect ptr when
amodra [Tue, 10 Oct 2000 15:23:38 +0000 (15:23 +0000)]
* section.c (bfd_make_section_anyway): Release newsect ptr when
newsect->symbol fails to alloc.  Use bfd_release instead of free.

23 years agoProtoization.
kevinb [Tue, 10 Oct 2000 05:17:25 +0000 (05:17 +0000)]
Protoization.

23 years ago* pe-dll.c (make_one): Do not generate code thunk for DATA
dj [Tue, 10 Oct 2000 03:28:01 +0000 (03:28 +0000)]
* pe-dll.c (make_one): Do not generate code thunk for DATA
exports.
(process_def_file): deduce DATA flag for auto-export sumbols.

23 years ago* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
cgf [Tue, 10 Oct 2000 00:28:48 +0000 (00:28 +0000)]
* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
for __CYGWIN__.

23 years ago * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
rth [Mon, 9 Oct 2000 23:16:29 +0000 (23:16 +0000)]
    * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
        (elf64_ia64_unwind_entry_compare): New.
        (elf64_ia64_final_link): Sort the .IA_64.unwind section.

23 years ago * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
schauer [Mon, 9 Oct 2000 19:40:37 +0000 (19:40 +0000)]
* config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
reference to gethostbyname.

23 years ago * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
schauer [Mon, 9 Oct 2000 19:39:34 +0000 (19:39 +0000)]
* config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
reference to gethostbyname.

23 years ago* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
cgf [Mon, 9 Oct 2000 18:10:52 +0000 (18:10 +0000)]
* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
correctly.

23 years ago2000-10-09 Kazu Hirata <kazu@hxi.com>
kazu [Mon, 9 Oct 2000 15:46:44 +0000 (15:46 +0000)]
2000-10-09  Kazu Hirata  <kazu@hxi.com>

* pe-dll.c: Revert some formatting fixes.

23 years ago2000-10-09 Kazu Hirata <kazu@hxi.com>
kazu [Mon, 9 Oct 2000 15:09:17 +0000 (15:09 +0000)]
2000-10-09  Kazu Hirata  <kazu@hxi.com>

* ldcref.c: Fix formatting.
* ldctor.h: Likewise.
* ldemul.c: Likewise.
* ldemul.h: Likewise.
* ldexp.c: Likewise.
* ldexp.h: Likewise.
* ldfile.c: Likewise.
* ldfile.h: Likewise.
* ld.h: Likewise.
* ldlang.c: Likewise.
* ldlang.h: Likewise.
* ldmain.c: Likewise.

23 years ago* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Fix debug output.
corinna [Mon, 9 Oct 2000 14:49:25 +0000 (14:49 +0000)]
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Fix debug output.

23 years ago * fhandler_mem.cc: Eliminate unused include statements.
corinna [Mon, 9 Oct 2000 14:02:25 +0000 (14:02 +0000)]
    * fhandler_mem.cc: Eliminate unused include statements.
        (fhandler_dev_mem::fhandler_dev_mem): Check for 9X/ME.

23 years ago * fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
corinna [Mon, 9 Oct 2000 13:19:41 +0000 (13:19 +0000)]
    * fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
        member function `init'.
        * fhandler_mem.cc: Add typedefs for NT internal data types
        `SYSTEM_INFORMATION_CLASS' and `SYSTEM_BASIC_INFORMATION'.
        Add prototype for `NtQuerySystemInformation' function.
        (fhandler_dev_mem::fhandler_dev_mem): Takes over initialization task
        from `init'. Use `NtQuerySystemInformation' function to evaluate the
        size of physical memory instead of interval search.
        (fhandler_dev_mem::init): Eliminated.
        (fhandler_dev_mem::open): Don't call `init'.
        (fhandler_dev_mem::read): Eliminate check for `init_phase'.
        (dummy_autoload): Add load statement for `NtQuerySystemInformation'.

23 years ago * include/iprtrmib.h: Further layout changes according to standard.
corinna [Mon, 9 Oct 2000 09:51:46 +0000 (09:51 +0000)]
    * include/iprtrmib.h: Further layout changes according to standard.
        * include/iptypes.h: Ditto.
        * include/ntdef.h: Ditto.
        * include/ntsecapi.h: Ditto.
        * include/subauth.h: Ditto.

23 years ago * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.
corinna [Mon, 9 Oct 2000 09:34:04 +0000 (09:34 +0000)]
    * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.

23 years agoI forgot 'iprtrmib.h' in the ChangeLog
corinna [Mon, 9 Oct 2000 09:19:57 +0000 (09:19 +0000)]
I forgot 'iprtrmib.h' in the ChangeLog

23 years ago2000-10-09 Kazu Hirata <kazu@hxi.com>
kazu [Mon, 9 Oct 2000 07:01:29 +0000 (07:01 +0000)]
2000-10-09  Kazu Hirata  <kazu@hxi.com>

* pe-dll.c: Fix formatting.

23 years ago* ps.cc (main): Change order of reporting slightly so that windows pids are
cgf [Mon, 9 Oct 2000 03:31:10 +0000 (03:31 +0000)]
* ps.cc (main): Change order of reporting slightly so that windows pids are
more obvious.
* strace.cc (add_child): Just add child's pid directly.
(remove_child): No need to close the child process pid since ContinueDebugEvent
does that automatically.
(proc_child): Ditto for child thread.

23 years ago* dtable.cc (set_std_handle): Use std_consts array to control SetStdHandle
cgf [Mon, 9 Oct 2000 02:53:44 +0000 (02:53 +0000)]
* dtable.cc (set_std_handle): Use std_consts array to control SetStdHandle
settings.
(dtable::fixup_after_fork): Ditto.
* exceptions.cc (set_sig_errno): Remove some debugging output.
* path.cc (path_conv::check): Don't OR need_directory with flags sent to
symlink_info::check.
(symlink_info::check): Use PATH_ALL_EXEC to determine when a file is
executable.
* path.h (path_types): Add PATH_ALL_EXEC.
(isexec): Use PATH_ALL_EXEC so that cygexec types will be considered
executable.
* pinfo.h (_pinfo): Add a process handle that is kept open throughout the life
of a cygwin pid.
* sigproc.cc (proc_exists): Remove hopefully obsolete stuff.
(proc_subproc): Set up process handle that is kept open throughout the life of
a cygwin pid.  Reorganize PROC_WAIT stuff to use common code.
(proc_terminate): Close pid lifetime process handle.
(checkstate): Cleanup.
(stopped_or_terminated): Move zombie cleanup.
(remove_zombie): To here.
* spawn.cc (spawn_guts): Reorganize reparenting code for 1247th time.

23 years ago2000-10-08 Kazu Hirata <kazu@hxi.com>
kazu [Mon, 9 Oct 2000 01:37:11 +0000 (01:37 +0000)]
2000-10-08  Kazu Hirata  <kazu@hxi.com>

* pe-dll.c: Fix formatting.

23 years ago * ld-selective/selective.exp: Rearrange to be table-driven.
hp [Mon, 9 Oct 2000 01:35:13 +0000 (01:35 +0000)]
* ld-selective/selective.exp: Rearrange to be table-driven.

23 years ago* usability improvements
bje [Sun, 8 Oct 2000 22:37:14 +0000 (22:37 +0000)]
* usability improvements

2000-10-08  Ben Elliston  <bje@redhat.com>

* cgen-utils.c (cgen_rtx_error): New function.

2000-10-07  Ben Elliston  <bje@redhat.com>

* cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
conditions for sim_core_read_buffer().

23 years agoWhitespace tweak: replace leading spaces with a hard tab.
bje [Sun, 8 Oct 2000 22:31:22 +0000 (22:31 +0000)]
Whitespace tweak: replace leading spaces with a hard tab.

23 years ago * include/ntsecapi.h: New file.
corinna [Sun, 8 Oct 2000 16:55:29 +0000 (16:55 +0000)]
    * include/ntsecapi.h: New file.
        * include/subauth.h: Ditto.
        * include/ipexport.h: Fix global header define not to contain
        trailing underscore. Change layout according to standard.
        * include/iphlpapi.h: Ditto.
        * include/ipifcons.h: Ditto.
        * include/iptypes.h: Ditto.
        * include/ntdef.h: Ditto. Define conditional datatypes dependent
        of inclusion of ntdecapi.h and subauth.h.
        * lib/secur32.def: New stub for secur32.dll.

23 years ago* fhandler.h (fhandler_base): Remove obsolete _rpos and _rsize elements.
cgf [Sat, 7 Oct 2000 18:12:11 +0000 (18:12 +0000)]
* fhandler.h (fhandler_base): Remove obsolete _rpos and _rsize elements.
* fhandler.cc (fhandler_base::open): Ditto.
* fhandler.cc (fhandler_base::fhandler_base): Ditto.
(fhandler_base::read): Ditto.  Add more debugging output.  Don't issue a \r
when \r\n detected.
* pipe.cc (make_pipe): Streamline slightly.  Make debug output more
interesting.
* strace.cc (strace::vsprintf): Use __progname where appropriate to distinguish
strace output when exec'ing.

23 years ago * fhandler.h (fhandler_dev_mem): Add methods mmap, munmap and msync.
corinna [Sat, 7 Oct 2000 17:35:36 +0000 (17:35 +0000)]
    * fhandler.h (fhandler_dev_mem): Add methods mmap, munmap and msync.
        Add `unit' member.
        * fhandler_mem.cc (fhandler_dev_mem): Initialize `unit' as well.
        (init): Care for differences between /dev/mem, /dev/kmem (not
        implemented yet) and /dev/port.
        (open): Change debug message to reflect the device.
        (mmap): New function.
        (munmap): Ditto.
        (msync): Ditto.
        (fstat): Use unit when setting st_dev in stat structure.
        * mmap.cc (mmap): Handle MAP_ANONYMOUS flag.
        Change error handling slightly.
        * path.cc (get_device_number): Handle /dev/port.

23 years ago(md_apply_fix): Remove bad assert added 2000-09-26.
amodra [Sat, 7 Oct 2000 14:38:31 +0000 (14:38 +0000)]
(md_apply_fix): Remove bad assert added 2000-09-26.

23 years ago* ld-scripts/phdrs.exp: hppa*64*-*-* is 64-bit ELF too
amodra [Sat, 7 Oct 2000 13:57:28 +0000 (13:57 +0000)]
* ld-scripts/phdrs.exp: hppa*64*-*-* is 64-bit ELF too

23 years agoCure a number of segfaults caused by /DISCARD/ of dynamic sections.
amodra [Sat, 7 Oct 2000 13:40:33 +0000 (13:40 +0000)]
Cure a number of segfaults caused by /DISCARD/ of dynamic sections.

23 years agoMake elf section symbols global for link-once sections.
amodra [Sat, 7 Oct 2000 12:52:15 +0000 (12:52 +0000)]
Make elf section symbols global for link-once sections.

23 years ago* syscalls.cc (_read): Behave properly when passed previous version of
cgf [Sat, 7 Oct 2000 03:25:38 +0000 (03:25 +0000)]
* syscalls.cc (_read): Behave properly when passed previous version of
O_NDELAY.  Fix up debugging output.

23 years agoProtoization.
kevinb [Fri, 6 Oct 2000 21:50:56 +0000 (21:50 +0000)]
Protoization.

23 years ago* peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
dj [Fri, 6 Oct 2000 19:47:51 +0000 (19:47 +0000)]
* peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
* coffcode.h (coff_set_alignment_hook): read extended reloc count
(coff_write_relocs): write extended reloc count
(coff_write_object_contents): account for extended relocs

23 years ago* net.cc (set_socket_inheritance): Rename from duplicate_socket. Use NT
cgf [Fri, 6 Oct 2000 19:11:14 +0000 (19:11 +0000)]
* net.cc (set_socket_inheritance): Rename from duplicate_socket.  Use NT
specific call when appropriate.
(__set_winsock_errno): Rename from set_winsock_errno.  Accept function and line
as arguments.
* path.cc (path_conv::check): Continue the neverending battle to make cygwin
properly understand that path specs ending in a slash require that the path
refer to a directory.  Windows does not do this by default.
(symlink_info::check): Remove ENOTDIR test.  Move it to path_conv::check.
* path.h: Remove obsolete constant.
* winsup.h (set_winsock_errno): New macro.

23 years ago2000-10-06 Dave Brolley <brolley@redhat.com>
brolley [Fri, 6 Oct 2000 16:59:56 +0000 (16:59 +0000)]
2000-10-06  Dave Brolley  <brolley@redhat.com>

* sem.c: Regenerated.
* sem-switch.c: Regenerated.
* semx-switch.c: Regenerated.

23 years ago2000-10-06 Dave Brolley <brolley@redhat.com>
brolley [Fri, 6 Oct 2000 16:58:40 +0000 (16:58 +0000)]
2000-10-06  Dave Brolley  <brolley@redhat.com>

* sem.c: Regenerated.
* sem-switch.c: Regenerated.

23 years ago2000-10-06 Dave Brolley <brolley@redhat.com>
brolley [Fri, 6 Oct 2000 16:57:25 +0000 (16:57 +0000)]
2000-10-06  Dave Brolley  <brolley@redhat.com>

* fr30-desc.h: Regenerate.
* m32r-desc.h: Regenerate.
* m32r-ibld.c: Regenerate.

23 years ago2000-10-06 Dave Brolley <brolley@redhat.com>
brolley [Fri, 6 Oct 2000 16:55:16 +0000 (16:55 +0000)]
2000-10-06  Dave Brolley  <brolley@redhat.com>

* utils-gen.scm (-gen-ifld-extract-base): Compute start position as
ifld-start + ifld-word-offset.
(gen-ifld-extract): Check adata-integral-insn? before checking whether
the field is beyond the base number of bits.
(gen-define-ifields): Use a base-length of 32 if adata-integral-insn?.
(gen-extract-ifields): Ditto.
* gas-test.scm (gentest): Generate backslashes before '[' and ']'
characters in the regular expression.

23 years agoPreserve machine dependent section header flags when reading ELF object file.
wilson [Thu, 5 Oct 2000 22:22:27 +0000 (22:22 +0000)]
Preserve machine dependent section header flags when reading ELF object file.
* elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
field.
* elf.c (_bfd_elf_make_section_from_shdr): Call the
elf_backend_section_flags function.
* elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
code.
(elf64_ia64_section_flags): New function containing flag conversion
code.
(elf_backend_section_flags): Define to elf64_ia64_section_flags.
* elfxx-target.h (elf_backend_section_flags): Define.
(elfNN_bed): Initialize elf_backend_section_flags field.

23 years agoMinor DV table update, minor DV checking bug fix.
wilson [Thu, 5 Oct 2000 21:55:24 +0000 (21:55 +0000)]
Minor DV table update, minor DV checking bug fix.
* config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
* ia64-ic.tbl: Update from Intel.
* ia64-asmtab.c: Regenerate.

23 years ago =====================================
corinna [Thu, 5 Oct 2000 13:07:02 +0000 (13:07 +0000)]
    =====================================
        These changes require rebuilding all.
        =====================================
        * fhandler.h: Add mmap(), munmap() and msync() to fhandler_base
        and fhandler_disk_file.
        * mmem.cc (mmap): Eliminated device dependent implementation details.
        These are moved to the appropriate fhandler class.
        (munmap): Ditto.
        (msync): Ditto.
        (fhandler_base::mmap): New method.
        (fhandler_base::munmap): Ditto.
        (fhandler_base::msync): Ditto.
        (fhandler_disk_file::mmap): Ditto.
        (fhandler_disk_file::munmap): Ditto.
        (fhandler_disk_file::msync): Ditto.