Commit Graph

15 Commits

Author SHA1 Message Date
J.T. Conklin
d6a62067d9 * Makefile.in: Removed prelude.o, i386-nlmstub.o, nlmstub.o,
nlmstub.nlm, and nlmstub targets.  Removed NWSOURCE and
  NWINCLUDES definitions.
* i386-nlmstub.c: Removed.
1994-09-19 23:00:48 +00:00
J.T. Conklin
ac2068375f * i386-nlmstub.c (handle_exception): Wait until the thread has
been started before killing the NLM by pointing the PC at
  _exit().
1994-08-08 22:14:06 +00:00
J.T. Conklin
d375ce178d * i386-nlmstub.c (handle_exception): Point the PC at _exit() to
kill the program being debugged.  KillMe(), the undocumented
  call intended for this purpose, causes the server to hang.
1994-08-05 16:14:03 +00:00
J.T. Conklin
e356aae315 * i386-nlmstub.c: The returnLength field must be initialized
before portConfig is passed to AIOGetPortConfiguration.
  Compare command line arguments with strnicmp(); args are
  case insensitive on netware.
1994-07-27 21:46:06 +00:00
J.T. Conklin
159f3816fd * Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
* i386-nlmstub.c: Add support for NODE, PORT and BAUD command
  line arguments.
1994-07-25 18:45:14 +00:00
Stu Grossman
2e6784a89f * configure.in: Add nlm subdir to configdirs for alpha-*-netware
target.
	* defs.h (enum language):  Add language_asm.
	* findvar.c (read_register_bytes read_register_gen
	write_register_bytes read_register read_register_pid
	write_register write_register_pid supply_register):  Move multi-
	thread handling down into these routines.  Create XXX_pid routines
	that allow register references to specify the pid.
	* findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
	read_sp write_sp read_fp write_fp):  Move these routines from
	infcmd to findvar to centralize the whole mess.
	* i386-nlmstub.c:  Portability fixes.
	* infptrace.c (child_resume):  Conditionalize to allow other natives
	to override it.  Remove PIDGET gubbish, it's no longer necessary.
	* infrun.c (wait_for_inferior):  Put registers_changed() before
	target_wait() to speed up remote debugging.
	* Replace code that reads registers from other threads with much
	nicer looking new function calls (see changes to findvar.c).
	* Don't skip prologues if debugging assembly source.
	* lynx-nat.c (child_resume):  Lynx now needs it's own version of
	child_resume to handle multi-thread debugging properly.
	* remote.c:  Add O response to get console output from target.
	* (readchar): Add timeout parameter.  Handle SERIAL_EOF and
	SERIAL_ERROR here to simplify callers.
	* Change static var timeout to remote_timeout.
	* (fromhex):  Remove unnecessary return -1 at end of routine.
	* (remote_wait):  Turn this into a big switch statement.  Add
	support for O response.
	* (putpkt):  Remove unnecessary handling of SERIAL_EOF/ERROR.
	* (getpkt):  Split getpkt into two parts.  read_frame deals with
	all formatting issues, run-length encoding, and framing.  getpkt
	now handles error recovery, and frame detection.
	* ser-tcp.c (tcp_readchar):  Handle EINTR from read().
	* ser-unix.c (hardwire_raw):  Set CLOCAL so that we ignore modem
	control.  (hardwire_readchar):  Handle EINTR from read().
	* symfile.c (deduce_language_from_filename):  Add support for .s
	files.
	* config/nm-lynx.h:  Define CHILD_WAIT so that lynx-nat.c can
	override infptrace's child_wait.
	* config/rs6000/rs6000lynx.mh:  Use xm-rs6000ly.h & nm-rs6000ly.h
	instead of XXXlynx.h.
	* config/rs6000/rs6000lynx.mt:  Use tm-rs6000ly.h instead of
	tm-rs6000lynx.h.
	* nlm/gdbserve.c:  Portability fixes.
1994-06-02 16:58:48 +00:00
Stu Grossman
a49666feb0 * i386-nlmstub.c: Update to be more in line with PIN stub.
* nlm/gdbserve.c (putDebugChar):  Install bug fix from i386-nlmstub.
	* (hex2mem):  Init ptr.
	* General cleanups to use ConsolePrintf, standard prologues, etc...
1994-04-27 05:50:14 +00:00
Stu Grossman
68ba2fa550 * i386-nlmstub.c: More changes to be compatible with remote.c. 1994-04-26 22:39:20 +00:00
Stu Grossman
d0e2b7671e * i386-nlmstub.c: An interim version till we get PIN for the x86. 1994-04-26 17:24:59 +00:00
Stu Grossman
0bbe764a71 * i386-nlmstub.c: Undo I/O redirection changes by Tom Lord.
These definitely won't work under Netware.
1993-11-30 00:14:37 +00:00
Thomas Lord
199b2450f6 Change the stream argument to _filtered to GDB_FILE *.
Change all references to stdout/stderr to gdb_stdout/gdb_stderr.

Replace all calls to stdio output functions with calls to
corresponding _unfiltered functions (`fprintf_unfiltered')

Replaced calls to fopen for output to gdb_fopen.

Added sufficient goo to utils.c and defs.h to make the above work.

The net effect is that stdio output functions are only directly used
in utils.c.  Elsewhere, the _unfiltered and _filtered functions and
GDB_FILE type are used.

In the near future, GDB_FILE will stop being equivalant to FILE.

The semantics of some commands has changed in a very subtle way:
called in the right context, they may cause new occurences of
prompt_for_continue() behavior.  The testsuite doesn't notice anything
like this, though.

Please respect this change by not reintroducing stdio output
dependencies in the main body of gdb code.  All output from commands
should go to a GDB_FILE.

Target-specific code can still use stdio directly to communicate with
targets.
1993-11-01 22:25:23 +00:00
Ian Lance Taylor
ef0faeb6c3 Novell came through with the publicly visible information, so this
file may now be distributed.

	* i386-nlmstub.c: New file; debugging stub for i386 NetWare.  Must
	be compiled with NetWare header files and turned into an NLM with
	nlmconv.
1993-10-04 23:29:36 +00:00
Ian Lance Taylor
89709d42cb Snapshot of current i386 NetWare debugging stub.
Added some more debugging information.  Added handling of memory fault
errors when caused by invalid memory accesses.  Always use N response,
not S.
1993-09-21 21:03:35 +00:00
Ian Lance Taylor
d6a9983874 Snapshot of current i386 NLM debugging stub. 1993-09-10 23:25:40 +00:00
Ian Lance Taylor
72dd16ea2c Snapshot of stand alone i386 NLM debugging stub. Currently sanitized
out because it contains Novell proprietary code.
1993-09-06 19:48:43 +00:00