mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* i386-nlmstub.c: More changes to be compatible with remote.c.
This commit is contained in:
parent
926ffe9446
commit
68ba2fa550
@ -1,5 +1,10 @@
|
||||
Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
|
||||
|
||||
* i386-nlmstub.c: More changes to be compatible with remote.c.
|
||||
|
||||
* dbxread.c: Move a bunch of strncmps out of process_one_symbol
|
||||
into (the far less frequently called) dbx_symfile_read.
|
||||
|
||||
* i386-nlmstub.c: An interim version till we get PIN for the x86.
|
||||
|
||||
Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
|
||||
|
@ -680,13 +680,10 @@ handle_exception (T_StackFrame *old_frame)
|
||||
else
|
||||
{
|
||||
sigval = computeSignal (frame->ExceptionNumber);
|
||||
remcomOutBuffer[0] = 'N';
|
||||
remcomOutBuffer[0] = 'S';
|
||||
remcomOutBuffer[1] = hexchars[sigval >> 4];
|
||||
remcomOutBuffer[2] = hexchars[sigval % 16];
|
||||
sprintf (remcomOutBuffer + 3, "%x;%x;%x",
|
||||
handle->LDCodeImageOffset,
|
||||
handle->LDDataImageOffset,
|
||||
handle->LDDataImageOffset + handle->LDDataImageLength);
|
||||
remcomOutBuffer[3] = 0;
|
||||
}
|
||||
|
||||
if (! putpacket(remcomOutBuffer))
|
||||
@ -709,13 +706,10 @@ handle_exception (T_StackFrame *old_frame)
|
||||
{
|
||||
case '?':
|
||||
sigval = computeSignal (frame->ExceptionNumber);
|
||||
remcomOutBuffer[0] = 'N';
|
||||
remcomOutBuffer[0] = 'S';
|
||||
remcomOutBuffer[1] = hexchars[sigval >> 4];
|
||||
remcomOutBuffer[2] = hexchars[sigval % 16];
|
||||
sprintf (remcomOutBuffer + 3, "%x;%x;%x",
|
||||
handle->LDCodeImageOffset,
|
||||
handle->LDDataImageOffset,
|
||||
handle->LDDataImageOffset + handle->LDDataImageLength);
|
||||
remcomOutBuffer[3] = 0;
|
||||
break;
|
||||
case 'd':
|
||||
remote_debug = !(remote_debug); /* toggle debug flag */
|
||||
@ -811,6 +805,18 @@ handle_exception (T_StackFrame *old_frame)
|
||||
KillMe (handle);
|
||||
ResumeThread (mainthread);
|
||||
return RETURN_TO_PROGRAM;
|
||||
|
||||
case 'q': /* Query message */
|
||||
if (strcmp (&remcomInBuffer[1], "Offsets") == 0)
|
||||
{
|
||||
sprintf (remcomOutBuffer, "Text=%x;Data=%x;Bss=%x",
|
||||
handle->LDCodeImageOffset,
|
||||
handle->LDDataImageOffset,
|
||||
handle->LDDataImageOffset + handle->LDDataImageLength);
|
||||
}
|
||||
else
|
||||
sprintf (remcomOutBuffer, "E04, Unknown query %s", &remcomInBuffer[1]);
|
||||
break;
|
||||
}
|
||||
|
||||
/* reply to the request */
|
||||
|
Loading…
Reference in New Issue
Block a user