OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years ago* dlmalloc.c: New file. Port of Doug Lea's malloc
duda [Tue, 24 Apr 2001 15:25:30 +0000 (15:25 +0000)]
* dlmalloc.c: New file. Port of Doug Lea's malloc
* dlmalloc.h: Ditto.
* Makefile.in: Add support for MALLOC_DEBUG
* config.h.in: Ditto.
* winsup.h: Ditto.
* configure.in: Add --enable-malloc-debugging option.
* configure: Regenerate.
* debug.h: Include declarations for debugging malloc.
* tty.cc (grantpt): Fix definition.
(unlockpt): Ditto.

23 years agoz8k fixes
nickc [Tue, 24 Apr 2001 15:22:23 +0000 (15:22 +0000)]
z8k fixes

23 years agoAdd OpenRISC support
nickc [Tue, 24 Apr 2001 15:08:12 +0000 (15:08 +0000)]
Add OpenRISC support

23 years ago* include/winsock2.h: Protect some more newlib defines when compiling cygwin
cgf [Tue, 24 Apr 2001 03:41:36 +0000 (03:41 +0000)]
* include/winsock2.h: Protect some more newlib defines when compiling cygwin

23 years agoRemove trailing underscore from fhandler_base and friends, throughout.
cgf [Tue, 24 Apr 2001 02:07:57 +0000 (02:07 +0000)]
Remove trailing underscore from fhandler_base and friends, throughout.
* fhandler.h (fhandler_base::set_open_status): New method.  Stores original
open status.
(fhandler_base::get_open_status): New method.  Retrieves original open status.
(fhandler_base::reset_to_open_binmode): New method.
* fhandler.cc (fhandler_base::open): Save open status.
(fhandler_base::init): Ditto.
* fhandler_clipboard.cc (fhandler_clipboard::open): Ditto.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_dsp.cc (fhandler_dsp::open): Ditto.
* fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_dev_random.cc (fhandler_dev_random::open): Ditto.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tty_master.cc (fhandler_tty_master::open): Ditto.
* fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto.
* syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open
state.
* fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when
converting from deciseconds to milliseconds.

23 years ago * generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
kseitz [Mon, 23 Apr 2001 20:28:28 +0000 (20:28 +0000)]
* generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
string when there is no active target (i.e., there is no
entry point to return yet).

23 years ago * generic/gdbtk-cmds.c (gdb_get_breakpoint_info): If unable
kseitz [Mon, 23 Apr 2001 20:27:54 +0000 (20:27 +0000)]
* generic/gdbtk-cmds.c (gdb_get_breakpoint_info): If unable
to find the requested breakpoint for lookup, check if
it is about to be deleted and return information about
that breakpoint.
(gdb_get_tracepoint_info): Ditto for tracepoints.
* generic/gdbtk-hooks.c (gdbtk_deleted_bp): New global.
(gdbtk_delete_breakpoint): Remember the deleted breakpoint
for gdb_get_breakpoint_info, in case it is called during
the event notification.
(gdbtk_delete_tracepoints): Ditto for tracepoints.

23 years ago* fhandler.h (fhandler_base::clear_r_binary): New method.
cgf [Mon, 23 Apr 2001 17:29:32 +0000 (17:29 +0000)]
* fhandler.h (fhandler_base::clear_r_binary): New method.
(fhandler_base::clear_w_binary): New method.
* syscalls.cc (setmode): Accept 0 as mode value.  Resets text/binary behavior
for fd to default.

23 years ago* include/winsock.h: Protect some more newlib defines when compiling cygwin.
cgf [Mon, 23 Apr 2001 17:19:24 +0000 (17:19 +0000)]
* include/winsock.h: Protect some more newlib defines when compiling cygwin.

23 years ago2001-04-22 Michael Chastain <chastain@redhat.com>
chastain [Mon, 23 Apr 2001 17:02:04 +0000 (17:02 +0000)]
2001-04-22  Michael Chastain  <chastain@redhat.com>

* gdb.c++/local.exp: Use the 'runto' library function.
* gdb.c++/namespace.exp: Likewise.
* gdb.c++/overload.exp: Likewise.

23 years ago* net.cc [errmap]: Add '0' condition.
cgf [Mon, 23 Apr 2001 16:46:30 +0000 (16:46 +0000)]
* net.cc [errmap]: Add '0' condition.
(find_winsock_errno): Don't translate no error to EPERM.

23 years ago2001-04-23 Bo Thorsen <bo@suse.de>
aj [Mon, 23 Apr 2001 08:00:13 +0000 (08:00 +0000)]
2001-04-23  Bo Thorsen  <bo@suse.de>

* x86-64.h: Add vtable support.

2001-04-23  Bo Thorsen  <bo@suse.de>

* elf64-x86-64.c: Add c++ vtable hack.
Small whitespace and comment changes.

23 years agospacing changes.
cgf [Mon, 23 Apr 2001 02:56:19 +0000 (02:56 +0000)]
spacing changes.

23 years ago* include/cygwin/version.h: Bump Cygwin version and API version.
cgf [Mon, 23 Apr 2001 00:48:23 +0000 (00:48 +0000)]
* include/cygwin/version.h: Bump Cygwin version and API version.

23 years agoMon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Sun, 22 Apr 2001 23:59:15 +0000 (23:59 +0000)]
Mon Apr 23  9:27:00 2001  Robert Collins <rbtcollins@hotmail.com>

       * thread.cc (MTinterface::Init): Always initialise per process variables.

23 years ago* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
cgf [Sun, 22 Apr 2001 23:52:06 +0000 (23:52 +0000)]
* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
definitions in sys/file.h.

23 years ago* features.h: Reinstate as wrapper for sys/features.h.
cgf [Sun, 22 Apr 2001 23:18:27 +0000 (23:18 +0000)]
* features.h: Reinstate as wrapper for sys/features.h.

23 years ago * security.cc (alloc_sd): Reformat comment.
corinna [Sun, 22 Apr 2001 22:12:12 +0000 (22:12 +0000)]
    * security.cc (alloc_sd): Reformat comment.
        * shared.cc: Drop function declarations already in security.h.

23 years ago* shortcut.c (check_shortcut): Close input file handle before returning. pre-posix-scan
cgf [Sun, 22 Apr 2001 16:19:26 +0000 (16:19 +0000)]
* shortcut.c (check_shortcut): Close input file handle before returning.
* path.cc (check_sysfile): Ditto.
(symlink_info::check): Rely on opened file handle being closed by symlink
checking routines.  Set ext_tacked_on when .lnk is detected.

23 years ago* thread.cc (MTinterface::Init): Remove accidentally checked in code.
cgf [Sat, 21 Apr 2001 23:26:13 +0000 (23:26 +0000)]
* thread.cc (MTinterface::Init): Remove accidentally checked in code.

23 years agoRevert call to bfd_cache_close().
cagney [Sat, 21 Apr 2001 22:50:54 +0000 (22:50 +0000)]
Revert call to bfd_cache_close().

23 years agoSun Apr 22 20:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
rbcollins [Sat, 21 Apr 2001 14:23:47 +0000 (14:23 +0000)]
Sun Apr 22 20:22:00 2001  Robert Collins <rbtcollins@hotmail.com>

* passwd.cc (getpwuid): Check for thread cancellation.
(getpwuid_r): Ditto.
(getpwname): Ditto.
(getpwnam_r): Ditto.
* thread.h (pthread_mutex): New constructors for pshared operation.
(MTinterface): Associative array for pshared mutex's.
* thread.cc (MTinterface::Init): Initailize pshared mutex array.
(pthread_cond::BroadCast): Implementation notes.
(pthread_cond::TimedWait): Remove use of SignalObjectAndWait on non-NT systems.
(pthread_mutex::pthread_mutex(unsigned short)): New function.
(pthread_mutex::pthread_mutex (pthread_mutex_t *, pthread_mutexattr *)):New function.
(pthread_mutex::pthread_mutex(pthread_mutexattr *)): Fail on pshared mutex's.
(__pthread_mutex_getpshared): New function.
(__pthread_join): Check for thread cancellation.
(__pthread_cond_timedwait): Support pshared mutex's.
(__pthread_cond_wait): Ditto.
(__pthread_condattr_setpshared): Error on PROCESS_SHARED requests.
(__pthread_mutex_init): Support pshared mutex's.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutexattr_setpshared): Support PTHREAD_PROCESS_PSHARED requests.

23 years ago* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
cgf [Sat, 21 Apr 2001 03:22:46 +0000 (03:22 +0000)]
* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
too.

23 years ago2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Sat, 21 Apr 2001 01:16:47 +0000 (01:16 +0000)]
2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>

        * acinclude.m4: Added --enable-malloc-debugging configure flag.
        * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
        --enable-malloc-debugging selected.
        * aclocal.m4 configure: Regenerated.
          libm/aclocal.m4 libm/configure: Ditto.
        * libc/aclocal.m4 libc/configure: Ditto.
        * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
        * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
        * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
        * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
        * doc/aclocal.m4 doc/configure: Ditto.

23 years ago* cygwin.din: Add *scanf and *scan_r functions.
cgf [Fri, 20 Apr 2001 23:38:42 +0000 (23:38 +0000)]
* cygwin.din: Add *scanf and *scan_r functions.

23 years ago2000-04-20 Jason Eckhardt <jle@redhat.com>
jle [Fri, 20 Apr 2001 23:38:37 +0000 (23:38 +0000)]
2000-04-20  Jason Eckhardt  <jle@redhat.com>

* config/tc-d10v.h (tc_frob_label): Update the symbol's frag
since frag_now can change after d10v_cleanup is called.

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

        * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
        into one list.
        [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
        (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
        function prototypes.
        (_fscanf_r, _sscanf_r): Ditto.
        * libc/include/stdlib.h: Added _strtod_r prototype.
        * libc/stdio/Makefile.am: Add new v*scanf functions.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
        and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.        * libc/stdio/scanf.c: Changed to call __svfscanf_r.
        * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
        (sscanf): Changed to call __svfscanf_r with _REENT argument.
        (_sscanf_r): New routine.
        * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
        with __svfscanf_r prototype.
        * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
        routines.
        (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
        structure as argument as calls reentrant versions of helper functions
        (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
        to _strtol_r and _strtod_r respectively.
        * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
        * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
        _REENT argument.
        * libc/stdio/vscanf.c: New file.
        * libc/stdio/vsscanf.c: Ditto.

23 years ago * security.cc (set_process_privileges): Swap out.
corinna [Fri, 20 Apr 2001 20:36:13 +0000 (20:36 +0000)]
    * security.cc (set_process_privileges): Swap out.
        * sec_helper.cc (set_process_privilege): Rename from
        `set_process_privileges'. Takes the privilege to enable or disable
        as parameter now.
        * security.h: Add prototype for `set_process_privileges'.

23 years agoOther half of SetVariableEvent:
kseitz [Fri, 20 Apr 2001 18:47:32 +0000 (18:47 +0000)]
Other half of SetVariableEvent:

* library/srctextwin.ith (handle_set_hook): Rename to set_variable.
* library/srctextwin.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/srcbar.itcl: Inherit from GDBEventHandler.
(set_hook): Rename to set_variable and handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/regwin.ith (handle_set_hook): Renamed to set_variable.
* library/regwin.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/kod.ith (set_os): Renamed to "set_variable".
* library/kod.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/tclIndex: Regenerated.

23 years agoEvent model revamp for "gdb_set_hook".
kseitz [Fri, 20 Apr 2001 17:20:02 +0000 (17:20 +0000)]
Event model revamp for "gdb_set_hook".

* library/interface.tcl (gdbtk_tcl_set_variable): New proc.
* library/gdbevent.ith (SetVariableEvent): New event.
* library/gdbevent.itb (SetVariableEvent::get): Override
GDBEvent::get.
* library/ehandler.ith (set_variable): New public method.
* generic/gdbtk-hooks.c (gdbtk_set_hook): Let inteface function
gdbtk_tcl_set_variable do all the work.
* tclIndex: Regenerated.

23 years ago* path.cc (path_conv::check): Always initialize member variables.
cgf [Fri, 20 Apr 2001 16:40:04 +0000 (16:40 +0000)]
* path.cc (path_conv::check): Always initialize member variables.

23 years ago* include/sys/file.h: More cleanup for X_OK.
cgf [Fri, 20 Apr 2001 16:36:17 +0000 (16:36 +0000)]
* include/sys/file.h: More cleanup for X_OK.

23 years ago* include/sys/file.h: Move X_OK protection earlier.
cgf [Fri, 20 Apr 2001 15:50:03 +0000 (15:50 +0000)]
* include/sys/file.h: Move X_OK protection earlier.
* dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.

23 years ago * grp.cc (getgroups): Change so that SIDs get compared instead
corinna [Fri, 20 Apr 2001 14:30:22 +0000 (14:30 +0000)]
    * grp.cc (getgroups): Change so that SIDs get compared instead
        of strings to SIDs.

23 years ago* event-top.h: Fix formatting.
kettenis [Fri, 20 Apr 2001 14:25:59 +0000 (14:25 +0000)]
* event-top.h: Fix formatting.

23 years ago * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.
corinna [Fri, 20 Apr 2001 13:02:32 +0000 (13:02 +0000)]
    * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.
        * security.cc: Swap out several functions.
        * sec_acl.cc: New file. Move Sun compatibel ACL functions from
        `security.cc' to here.
        * sec_helper.cc: New file. Move security helper functions from
        `security.cc' to here.
        * security.h: Changed to accomodate the above changes.

        * grp.cc: Replace `group_in_memory_p' by `group_state'.
        Eliminate group_sem throughout.
        (enum grp_state): New enumeration type.
        (read_etc_group): Make race safe.
        * security.cc: Eliminate group_sem throughout.

23 years ago* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
aoliva [Fri, 20 Apr 2001 09:28:04 +0000 (09:28 +0000)]
* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
1.641.2.228.

23 years agoObsolete MPW as host.
cagney [Thu, 19 Apr 2001 23:56:12 +0000 (23:56 +0000)]
Obsolete MPW as host.

23 years agoWhoops. Missed a file for the new event model check-in...
kseitz [Thu, 19 Apr 2001 22:55:26 +0000 (22:55 +0000)]
Whoops. Missed a file for the new event model check-in...

23 years agoBreakpoint/tracepoint event notification using new event model...
kseitz [Thu, 19 Apr 2001 22:51:02 +0000 (22:51 +0000)]
Breakpoint/tracepoint event notification using new event model...

* generic/gdbtk-cmds.c (gdb_set_bp): Use create_breakpoint_hook
to notify gui of changes.
(gdb_set_bp_addr): Ditto.
(gdb_get_breakpoint_info): Update comments to match reality.
* generic/gdbtk-hooks.c (breakpoint_notify): Only pass the
breakpoint number which generated the event.
(tracepoint_notify): Ditto for tracepoints.
* library/interface.tcl (gdb_breakpoint_change_hook): Mark
as deprecated and comment out definition.
(gdbtk_tcl_breakpoint): Use new GDBEvent event "breakpoint"
to notify rest of UI about breakpoint event.
(gdbtk_tcl_tracepoint): Ditto for "tracepoint" event.
* library/bpwin.ith (update): Renamed to "breakpoint".
(breakpoint): New public method.
(tracepoint): New public method.
(bp_add): Take event as argument instead of number.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/bpwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(build_win): Insert any existing breakpoints by
making BreakpointEvents for them.
(breakpoint): Renamed from "update" to handle
breakpoint events.
Remove code to deal with tracepoints.
(tracepoint): New method to handle tracepoint
events.
(bp_add): Deal with breakpoint events, not breakpoint
numbers.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/srctextwin.ith: Inherit from GDBWin.
(breakpoint): New public method.
(tracepoint): New public method.
* library/srctextwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(breakpoint): New method to handle breakpoint event.
(tracepoint): New method to handle tracepoint event.
(do_bp): Handle duplicate breakpoints for asm, too.
(remove_bp_at_line): Delete breakpoints by number, not
linespec. clear_command removes breakpoints from the
breakpoint_chain BEFORE deleting the breakpoint. delete_command
does this afterward (so we can call gdb_get_breakpoint_info on
an about-to-be-deleted breakpoint).

23 years agoNew event handling infrastructure.
kseitz [Thu, 19 Apr 2001 22:48:46 +0000 (22:48 +0000)]
New event handling infrastructure.

* library/gdbevent.ith: New file. Defines new event model.
* library/gdbevent.itb: New file. Implements new event
model.
* library/ehandler.ith: New file. Defines new event model.
* library/ehandler.itb: New file. Implements new event
model.
* library/gdbwin.ith: Inherit from GDBEventHandler.
(update): Delete unused method.
(_state): Delete unused variable.
* library/tclIndex: Regenerated.

23 years ago* bug fix
fche [Thu, 19 Apr 2001 20:59:30 +0000 (20:59 +0000)]
* bug fix

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

* sim-utils.c (sim_analyze_program): Call bfd_cache_close after
we're finished with its immediate use.
* sim-load.c (sim_load_file): Ditto.

23 years ago2001-04-19 Robert Collins <rbtcollins@hotmail.com>
jjohnstn [Thu, 19 Apr 2001 15:54:47 +0000 (15:54 +0000)]
2001-04-19  Robert Collins  <rbtcollins@hotmail.com>

        * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
        Define daylight to _daylight if it is not defined
        Prepare a variable export of timezone based on timezonevariable.
        (Cannot be used with the timezone() function.)

23 years ago* dumper.cc (dumper::init_core_dump): Set architecture field in dump
duda [Thu, 19 Apr 2001 14:22:30 +0000 (14:22 +0000)]
* dumper.cc (dumper::init_core_dump): Set architecture field in dump
header.

23 years ago* i386-tdep.c (i386_frameless_function_invocation): New function.
kettenis [Thu, 19 Apr 2001 11:39:47 +0000 (11:39 +0000)]
* i386-tdep.c (i386_frameless_function_invocation): New function.
* config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
in terms of i386_frameless_function_invocation.  Adjust comment.
(i386_frameless_function_invocation): New prototype.

23 years ago2001-04-19 Andreas Jaeger <aj@suse.de>
aj [Thu, 19 Apr 2001 09:39:28 +0000 (09:39 +0000)]
2001-04-19  Andreas Jaeger  <aj@suse.de>

* elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
(elf64_x86_64_plt_entry): Likewise.
(elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
(elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.

23 years ago * winsup.api/mmaptest02.c: New test.
corinna [Thu, 19 Apr 2001 09:16:40 +0000 (09:16 +0000)]
    * winsup.api/mmaptest02.c: New test.
        * winsup.api/mmaptest03.c: Ditto.
        * winsup.api/mmaptest04.c: Ditto.

23 years ago * mmap.cc (mmap): Drop usage of the same memory area if the same
corinna [Thu, 19 Apr 2001 07:44:34 +0000 (07:44 +0000)]
    * mmap.cc (mmap): Drop usage of the same memory area if the same
        region of the same file is mapped twice.

23 years ago2001-04-18 Martin M. Hunt <hunt@redhat.com>
hunt [Thu, 19 Apr 2001 05:28:54 +0000 (05:28 +0000)]
2001-04-18  Martin M. Hunt  <hunt@redhat.com>

* generic/gdbtk.c (gdbtk_init): Initialize uiout.

23 years ago2001-04-18 Martin M. Hunt <hunt@redhat.com>
hunt [Thu, 19 Apr 2001 05:28:12 +0000 (05:28 +0000)]
2001-04-18  Martin M. Hunt  <hunt@redhat.com>

* top.c (gdb_init): Don't call cli_out_new() to
create global uiout if init_ui_hook is set.  uiout will
have to be initialized there.

23 years ago* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate
cgf [Thu, 19 Apr 2001 03:55:02 +0000 (03:55 +0000)]
* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate
Windows-isms.

23 years ago#include "regcache.h".
cagney [Thu, 19 Apr 2001 00:37:24 +0000 (00:37 +0000)]
#include "regcache.h".

23 years ago* configure.in: Add bz2lib.
cgf [Wed, 18 Apr 2001 22:45:27 +0000 (22:45 +0000)]
* configure.in: Add bz2lib.

23 years ago 2001-04-18 Elena Zannoni <ezannoni@redhat.com>
ezannoni [Wed, 18 Apr 2001 22:43:56 +0000 (22:43 +0000)]
 2001-04-18  Elena Zannoni  <ezannoni@redhat.com>

        * baseboards/sh-hms.exp: Enable inferior function calls testing.
        * baseboards/sh-hms-sim.exp: Likewise.

23 years agoThroughout, change fdtab references to cygheap->fdtab.
cgf [Wed, 18 Apr 2001 21:10:11 +0000 (21:10 +0000)]
Throughout, change fdtab references to cygheap->fdtab.
* child_info.h (cygheap_exec_info): Eliminate special fdtab stuff.
* spawn.cc (spawn_guts): Ditto.
* cygheap.cc (cygheap_init): Initialize fdtab, if appropriate.
* cygheap.h (CYGHEAPSIZE): Include size of init_cygheap.
(_cmalloc_entry): Include fdtab here.
* dtable.h (dtable): Declare/define new methods.
* dtable.cc (dtable::vfork_child_fixup): New method.
(dtable::fixup_after_exec): Remove unneeded extra arguments.
* dcrt0.cc (dll_crt0_1): Ditto.
* environ.cc (getwinenv): Use case sensitive comparison.
(winenv): Make a copy of environment cache to avoid realloc problems when
duplicate environment variables exist in the environment.  (From Egor Duda)
* net.cc (cygwin_socket): Revert Apr 14 change.
* include/sys/file.h: Protect against previous X_OK definition.
* passwd.cc: Eliminate passwd_sem throughout.
* security.cc: Ditto.
* cygwin.din: Export New functions.
* passwd.cc (read_etc_passwd): Make race safe.
(getpwuid_r): New function.
(getpwnam_r): New function.

23 years ago*** empty log message ***
cgf [Wed, 18 Apr 2001 20:00:33 +0000 (20:00 +0000)]
*** empty log message ***

23 years ago2001-04-18 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Wed, 18 Apr 2001 19:50:00 +0000 (19:50 +0000)]
2001-04-18  Jeff Johnston  <jjohnstn@redhat.com>

        * gloss.cxx (gloss32::reset): Move check for std streams into
        hostops::close.
        * hostops.cxx (hostops::close): Don't close host std streams.

23 years ago * library/interface.tcl (run_executable): Use
tromey [Wed, 18 Apr 2001 17:43:59 +0000 (17:43 +0000)]
* library/interface.tcl (run_executable): Use
gdb_set_inferior_args.
* library/session.tcl (session_load): Use gdb_set_inferior_args.
* generic/gdbtk-cmds.c (Gdbtk_Init): Register
gdb_set_inferior_args.
(gdb_get_inferior_args): New function.

23 years ago * library/session.tcl (session_save): Use gdb_get_inferior_args.
tromey [Wed, 18 Apr 2001 16:49:37 +0000 (16:49 +0000)]
* library/session.tcl (session_save): Use gdb_get_inferior_args.
* generic/gdbtk-cmds.c (inferior_args): Removed.
(Gdbtk_Init): Don't register gdb_inferior_args variable.  Do
register gdb_get_inferior_args function.
(gdb_get_inferior_args): New function.

23 years ago* XScale coprocessor support.
mrg [Wed, 18 Apr 2001 16:39:37 +0000 (16:39 +0000)]
* XScale coprocessor support.

2001-04-18  matthew green  <mrg@redhat.com>

* armcopro.c (write_cp15_reg): Set CHANGEMODE if endianness changes.
(read_cp15_reg): Make non-static.
(XScale_cp15_LDC): Update for write_cp15_reg() change.
(XScale_cp15_MCR): Likewise.
(XScale_cp15_write_reg): Likewise.
(XScale_check_memacc): New function. Check for breakpoints being
activated by memory accesses.  Does not support the Branch Target
Buffer.
(XScale_set_fsr_far): New function. Set FSR and FAR for XScale.
(XScale_debug_moe): New function. Set the debug Method Of Entry,
if configured.
(write_cp14_reg): Reset count counter if requested.
* armdefs.h (struct ARMul_State): New members `LastTime' and
`CP14R0_CCD' used for the timer/counters.
(ARMul_CP13_R0_FIQ, ARMul_CP13_R0_IRQ, ARMul_CP13_R8_PMUS,
ARMul_CP14_R0_ENABLE, ARMul_CP14_R0_CLKRST, ARMul_CP14_R0_CCD,
ARMul_CP14_R0_INTEN0, ARMul_CP14_R0_INTEN1, ARMul_CP14_R0_INTEN2,
ARMul_CP14_R0_FLAG0, ARMul_CP14_R0_FLAG1, ARMul_CP14_R0_FLAG2,
ARMul_CP14_R10_MOE_IB, ARMul_CP14_R10_MOE_DB, ARMul_CP14_R10_MOE_BT,
ARMul_CP15_R1_ENDIAN, ARMul_CP15_R1_ALIGN, ARMul_CP15_R5_X,
ARMul_CP15_R5_ST_ALIGN, ARMul_CP15_R5_IMPRE, ARMul_CP15_R5_MMU_EXCPT,
ARMul_CP15_DBCON_M, ARMul_CP15_DBCON_E1, ARMul_CP15_DBCON_E0): New
defines for XScale registers.
(XScale_check_memacc, XScale_set_fsr_far, XScale_debug_moe): Prototype.
(ARMul_Emulate32, ARMul_Emulate26): Clean up function definition.
(ARMul_Emulate32): Handle the clock counter and hardware instruction
breakpoints.  Call XScale_set_fsr_far() for software breakpoints and
software interrupts.
(LoadMult): Call XScale_set_fsr_far() for data aborts.
(LoadSMult): Likewise.
(StoreMult): Likewise.
(StoreSMult): Likewise.
* armemu.h (write_cp15_reg): Update prototype.
* arminit.c (ARMul_NewState): Initialise CP14R0_CCD and LastTime.
(ARMul_Abort): If XScale, check for FIQ and IRQ being enabled in CP13
register 0.
* armvirt.c (GetWord): Call XScale_check_memacc().
(PutWord): Likewise.

23 years ago * grp.cc (getgroups): Avoid crash if passwd field if /etc/group is
corinna [Wed, 18 Apr 2001 14:52:06 +0000 (14:52 +0000)]
    * grp.cc (getgroups): Avoid crash if passwd field if /etc/group is
        empty.

23 years ago2001-04-17 Michael Snyder <msnyder@redhat.com>
msnyder [Wed, 18 Apr 2001 00:37:48 +0000 (00:37 +0000)]
2001-04-17  Michael Snyder  <msnyder@redhat.com>

        * i386-nat.c: Fix typo in comment.

23 years ago* dlltool.c (do_default_excludes): Initialise to true.
dj [Tue, 17 Apr 2001 23:28:38 +0000 (23:28 +0000)]
* dlltool.c (do_default_excludes): Initialise to true.

23 years agoFix thinko.
msnyder [Tue, 17 Apr 2001 23:22:52 +0000 (23:22 +0000)]
Fix thinko.

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

* solib.c (no_shared_libraries): New function.  Discard all symbols
from shared libraries.
(_initialize_solib): Add command "nosharedlibrary" as complement
to the command "sharedlibrary".  Unloads symbols for all solibs.

23 years ago* i386-tdep.c (i386_saved_pc_after_call): New function.
kettenis [Tue, 17 Apr 2001 23:20:54 +0000 (23:20 +0000)]
* i386-tdep.c (i386_saved_pc_after_call): New function.
* config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
of i386_saved_pc_after_call.
(i386_saved_pc_after_call): New prototype.

23 years ago* path.h (path_conv::add_ext_from_sym): Declare.
cgf [Tue, 17 Apr 2001 23:12:10 +0000 (23:12 +0000)]
* path.h (path_conv::add_ext_from_sym): Declare.
* path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.

23 years agoObsolete NEWS and ISI systems (along with a few redundant m68k targets).
cagney [Tue, 17 Apr 2001 21:20:48 +0000 (21:20 +0000)]
Obsolete NEWS and ISI systems (along with a few redundant m68k targets).

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

* remote.c (remote_open_1): On opening the remote target, activate
the solib_create_inferior_hook, so that it can detect when the
target loads shared libraries.
(remote_async_open_1): Ditto.

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

        * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
* tracepoint.c (tracepoints_info): Handle 64-bit addresses.
        * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
* testsuite/gdb.trace/infotrace.exp: Ditto.
        * testsuite/gdb.trace/passcount.exp: Ditto.
* testsuite/gdb.trace/while-stepping.exp: Ditto.

23 years ago2001-04-17 Michael Snyder <msnyder@redhat.com>
msnyder [Tue, 17 Apr 2001 19:14:53 +0000 (19:14 +0000)]
2001-04-17  Michael Snyder  <msnyder@redhat.com>

* thread-db.c (check_thread_signals): When looping over all
signals, ignore signal zero.
(disable_thread_signals): Ditto.

23 years ago2001-04-17 Eirik Fuller <eirik@netapp.com>
msnyder [Tue, 17 Apr 2001 19:01:34 +0000 (19:01 +0000)]
2001-04-17  Eirik Fuller <eirik@netapp.com>

* thread.c (do_captured_thread_select): Allow the argument to the
thread command to be an expression rather than a literal integer.

23 years ago2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
jjohnstn [Tue, 17 Apr 2001 17:12:57 +0000 (17:12 +0000)]
2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>

        * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
         Correct the numerical values.

23 years ago * path.cc (windows_device_names): Add missing NULL element.
corinna [Tue, 17 Apr 2001 16:52:08 +0000 (16:52 +0000)]
    * path.cc (windows_device_names): Add missing NULL element.

23 years ago* path.cc (windows_device_names): Move dsp to proper location.
cgf [Tue, 17 Apr 2001 16:16:26 +0000 (16:16 +0000)]
* path.cc (windows_device_names): Move dsp to proper location.

23 years ago2001-04-17 Fernando Nasser <fnasser@redhat.com>
fnasser [Tue, 17 Apr 2001 16:14:22 +0000 (16:14 +0000)]
2001-04-17  Fernando Nasser  <fnasser@redhat.com>

* library/variables.tcl (update): Temporary fix to the detection of
"type_changed" condition.  Proper fix will require that this condition
is properly reported by the underlying code.

23 years ago * include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
earnie [Tue, 17 Apr 2001 12:58:04 +0000 (12:58 +0000)]
* include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
as __extenstion__ when appropriate.
* include/mmsystem.h: Mark anonymous structs and unions as
__extension__ to prevent compiler warning when invoked with
-pedantic
* include/oaidl.h: Ditto.
* include/objidl.h: Ditto.
* include/olectl.h: Ditto.
* include/prsht.h: Ditto.
* include/shlobj.h: Ditto.
* include/winbase.h: Ditto.
* include/winnt.h: Ditto.
* include/wtypes.h: Ditto.

23 years ago * elf32-cris.c: Tweak comments related to dynamic linking.
hp [Tue, 17 Apr 2001 12:32:28 +0000 (12:32 +0000)]
* elf32-cris.c: Tweak comments related to dynamic linking.
(cris_elf_relocate_section): When not creating shared object, fill
in the .got table for any symbol not in the dynamic symbol table.
(elf_cris_finish_dynamic_symbol): When not creating shared object,
only emit a .got.rela reloc if the symbol is in the dynamic symbol
table.
(cris_elf_check_relocs): Use variable r_type in all places rather
than the original expression.  Add default case in switch for
reloc types.
(elf_cris_size_dynamic_sections): Iterate over
elf_cris_discard_excess_program_dynamics when not creating shared
library.
  (elf_cris_discard_excess_dso_dynamics): Renamed from
elf_cris_discard_copies.  Correct typo, s/Rel/Rela/.
(elf_cris_discard_excess_program_dynamics): New.

23 years agoForgot the ChangeLog...
corinna [Tue, 17 Apr 2001 11:49:19 +0000 (11:49 +0000)]
Forgot the ChangeLog...

23 years ago * path.cc (path_conv::check): Set case_clash even if pcheck_case
corinna [Tue, 17 Apr 2001 11:47:37 +0000 (11:47 +0000)]
    * path.cc (path_conv::check): Set case_clash even if pcheck_case
        is set to PCHECK_ADJUST when a case clash is given for the last
        component in path.
        (symlink_info::case_check): Ditto.
        * syscalls.cc (_rename): Avoid overwriting an already existing file
        if a case clash is given even if pcheck_case is set to PCHECK_ADJUST.

23 years ago* runtest robustness
fche [Tue, 17 Apr 2001 10:13:22 +0000 (10:13 +0000)]
* runtest robustness

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

* unix.exp (sid_cmd): Bump up expect match_max size.

23 years ago* i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
kettenis [Tue, 17 Apr 2001 09:38:52 +0000 (09:38 +0000)]
* i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
read_memory_unsigned_integer instead of read_memory_integer.

23 years ago Add missing ChangeLog entry.
corinna [Tue, 17 Apr 2001 08:51:34 +0000 (08:51 +0000)]
Add missing ChangeLog entry.

23 years agoTurn NEWVFORK off.
cgf [Tue, 17 Apr 2001 06:07:07 +0000 (06:07 +0000)]
Turn NEWVFORK off.

23 years ago* path.h (cwdstuff): Move class.
cgf [Tue, 17 Apr 2001 03:52:08 +0000 (03:52 +0000)]
* path.h (cwdstuff): Move class.
* cygheap.h (cwdstuff): To here.
(init_cygheap): Add cwd field.
* child_info.h (cygheap_exec_info): Eliminate cwd stuff.
(child_info_spawn): Ditto.
* dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call.  Convert cygcwd
reference to cygheap->cwd.
* path.cc: Ditto, throughout.
(cwdstuff::copy): Eliminate.
(cwdstuff::fixup_after_exec): Ditto.
* spawn.cc (spawn_guts): Eliminate call to cygcwd.copy.
* fhandler.h (FH_OSS_DSP): Move into "fast" device category.

23 years ago * solib-aix5.c (map_index_vs_section_name_okay): New function.
kevinb [Tue, 17 Apr 2001 02:29:23 +0000 (02:29 +0000)]
* solib-aix5.c (map_index_vs_section_name_okay): New function.
(aix5_relocate_main_executable): Don't use file offsets for
determining corresponding sections and map file entries.  Call
map_index_vs_section_name_okay() to do this instead.

23 years ago2001-04-16 David O'Brien <obrien@FreeBSD.org>
obrien [Tue, 17 Apr 2001 01:36:23 +0000 (01:36 +0000)]
2001-04-16  David O'Brien  <obrien@FreeBSD.org>
* configure.in: Add the em type for FreeBSD targets.
* configure: Regenerate.

Approved by:  Alan Modra <amodra@one.net.au>
              <20010414192409.C16364@squeak.one.net.au>
  Philip Blundell <philb@gnu.org>
  <E14o06W-0002IT-00@kings-cross.london.uk.eu.org>

23 years agoAdd code to retry certain open()s.
kevinb [Tue, 17 Apr 2001 01:24:48 +0000 (01:24 +0000)]
Add code to retry certain open()s.

23 years agoFix date on previous commit.
kevinb [Mon, 16 Apr 2001 21:40:48 +0000 (21:40 +0000)]
Fix date on previous commit.

23 years agoMake hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel.
kevinb [Mon, 16 Apr 2001 21:26:46 +0000 (21:26 +0000)]
Make hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel.

23 years agosync with egcs
dj [Mon, 16 Apr 2001 18:42:41 +0000 (18:42 +0000)]
sync with egcs

23 years ago * mmap.cc: Move fh_paging_file from some functions to be
corinna [Mon, 16 Apr 2001 17:26:04 +0000 (17:26 +0000)]
    * mmap.cc: Move fh_paging_file from some functions to be
        a global static variable.
        (class mmap_record): Add `devtype_' member to remember
        the device type of the file. Add declaration for methods
        `get_device', `alloc_fh' and `free_fh'.
        (mmap_record::mmap_record): Initialize `devtype_' correctly.
        (mmap_record::alloc_fh): New method.
        (mmap_record::free_fh): Ditto.
        (munmap): Use new mmap_record::alloc_fh and mmap_record::free_fh
        methods to create a correct fhandler.
        (msync): Ditto.
        (fixup_mmaps_after_fork): Ditto.

23 years ago2001-04-16 Daniel Berlin <dan@cgsoftware.com>
dberlin [Mon, 16 Apr 2001 14:36:16 +0000 (14:36 +0000)]
2001-04-16  Daniel Berlin  <dan@cgsoftware.com>

* demangle.c (_initialize_demangler): Use xcalloc on the
demangling_style_names, and make it a null terminated array of
names, to avoid a crash.

23 years agoForgot the makefile portion
dberlin [Mon, 16 Apr 2001 14:11:24 +0000 (14:11 +0000)]
Forgot the makefile portion

23 years ago2001-04-15 Daniel Berlin <dan@cgsoftware.com>
dberlin [Mon, 16 Apr 2001 14:10:13 +0000 (14:10 +0000)]
2001-04-15  Daniel Berlin  <dan@cgsoftware.com>

* ternary.c: New file - Ternary search tree implementation.

2001-04-15  Daniel Berlin  <dan@cgsoftware.com>

* ternary.h: New file - Ternary search tree header.

23 years ago * grp.cc (getgroups): If `allow_ntsec' is set, use the process token
corinna [Mon, 16 Apr 2001 14:02:42 +0000 (14:02 +0000)]
    * grp.cc (getgroups): If `allow_ntsec' is set, use the process token
        information to evaluate the groups list.

23 years ago * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
corinna [Mon, 16 Apr 2001 13:19:27 +0000 (13:19 +0000)]
    * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
        `netgroupgetusers'.
        (load_netapi): Load function pointers `netlocalgroupgetmembers'
        and `netgroupgetusers'.
        (enum_local_users): New function.
        (enum_local_groups): Call `enum_local_users' for each group if
        `print_users' is set.
        (enum_users): New function.
        (enum_groups): Call `enum_users' for each group if `print_users' is set.
        (usage): Add usage text for `-u/--users'.
        (longopts): Add option `--users'.
        (opts): Add option character `u'.
        (main): Set `print_users' according to option `-u/--users'.
        Call `enum_local_groups' and `enum_groups' with additional parameter
        `print_users'.

23 years ago* i386-tdep.c (i386_frame_chain): New function.
kettenis [Mon, 16 Apr 2001 13:03:13 +0000 (13:03 +0000)]
* i386-tdep.c (i386_frame_chain): New function.
* config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
i386_frame_chain.
(i386_frame_chain): New prototype.

23 years ago* features.h: Remove this file as it is now being supplied by newlib.
cgf [Mon, 16 Apr 2001 04:08:05 +0000 (04:08 +0000)]
* features.h: Remove this file as it is now being supplied by newlib.

23 years ago* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.
cgf [Mon, 16 Apr 2001 03:27:15 +0000 (03:27 +0000)]
* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.
* fhandler_dsp.cc: New file.  Implements OSS like /dev/dsp.
* include/sys/soundcard.h: New file.  User land includes for OSS /dev/dsp.
* fhandler.h: Add new class fhandler_dev_dsp and a FH_OSS_DSP definition.
* dtable.cc (dtable::build_fhandler): Allow creation of the /dev/dsp device.
* path.cc (windows_device_names): Add /dev/dsp into list of device names.
* Makefile.in (DLL_OFILES): Add fhandler_dsp.o.