Commit Graph

9 Commits

Author SHA1 Message Date
Stu Grossman
75a006d94f * sparc-stub.c (trap_low): Make trap handler work for arbitrary
numbers of register windows.
1994-02-24 01:49:15 +00:00
Stu Grossman
efe3ff3ef0 * sparc-stub.c: Remove unnecessary #include of memory.h. 1994-02-01 00:12:20 +00:00
Stu Grossman
f2e21136eb * sparc-stub.c (_trap_low): Do restore/save sequence after
setting sp to ensure that we load the previous window from the
right place on the stack.
1993-09-16 19:16:19 +00:00
Stu Grossman
797bc12b32 * sparclite/aload.c: Add copyleft.
* sparclite/crt0.s:  Add comment at beginning.
1993-02-02 00:19:26 +00:00
Stu Grossman
bfc55a5d7c * sparc-stub.c: Use a seperate stack for our traps.
* Handle recursive traps.
	* Remove all trap init code.  This needs to be done by the
	environment.
	* (set_mem_fault_trap):  Call exceptionHandler() to setup this
	trap.
	* (handle_exception):  See if we are at breakinst, if so, then
	advance PC sp that users can just step out of breakpoint().
	* (case 'G'):  Don't let GDB hack CWP.  Also, copy saved regs to
	new place if SP has changed.
	* (case 's'):  Get rid of this, we can't do it yet.
	* (case 't'):  New command to test any old random feature.
	* (case 'r'):  New command to reset the system.
	* (breakpoint):  Add label to breakpoint trap instruction so that
	handle_exception() can detect where we are and get past the
	breakpoint trivially.
1993-01-10 03:46:55 +00:00
John Gilmore
4ddd278ffa * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
* m68k-stub.c:  Remove a few extraneous ANSI-isms.
* remote-nindy.c (nindy_prepare_to_store):  Only fetch regs if
they aren't already there.
* remote-vx.c (vx_prepare_to_store):  Ditto.
* xcoffread.c:  Surround forward struct defns with #ifdef __STDC__.
1992-09-10 19:18:05 +00:00
Stu Grossman
ee97d6736c * sparc-stub.c (handle_exception): Flush instruction cache just
before returning to the user.  (hexToInt):  Fix overzealous cleanup.
1992-08-25 03:47:53 +00:00
Stu Grossman
39a131782f * remote.c (remote_open): Fix baud rate setting to make -b flag
work.  (remote_wait):  Change 'T' message parser to deal with new
improved format which allows stub to send an arbitrary bunch of
registers.
* sparc-stub.c:  General cleanups.  (trap_low, handle_exception):
make all this re-entrant by storing all state on the stack.  Clean
up memory error trapping.  (computeSignal, set_debug_traps):
make it all table driven.  Make a start at a baud rate setting command.
1992-08-21 22:35:35 +00:00
Stu Grossman
4ecee2f9f1 * sparc-stub.c: New file. Mix it with your SPARClite
application, and it will speak GDB remote protocol!
* remote.c (remote_wait):  Change 'T' (expedited reply) message to
deal with arbitrary registers.  Needed for sparc-stub,
1992-08-15 09:34:25 +00:00