Skip to content

Commit

Permalink
Mirror c and s... let's try making s;c just single step normally.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Nov 22, 2024
1 parent 9a6ea5b commit 3010b31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions minichlink/microgdbstub.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void HandleGDBPacket( void * dev, char * data, int len )
data++;

char cmd = *(data++);
//printf( "DATA: [%c] %c%c%c%c%c%c%c%c%c\n",cmd, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8] );
//printf( "DATA: [%c] %c%c%c%c%c%c%c%c%c%c%c%c\n",cmd, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11] );

switch( cmd )
{
Expand Down Expand Up @@ -430,9 +430,10 @@ void HandleGDBPacket( void * dev, char * data, int len )
case 'v':
if( StringMatch( data, "Cont" ) ) // vCont?
{
//printf( "CONT: %s\n", data );
char * de = data + 4;
char de0;
while( (de0 = *(de++)) )
if( (de0 = *(de++)) ) // was while?
{
printf( "DE0: %c\n", de0 );
if( de0 == '?' )
Expand All @@ -444,6 +445,7 @@ void HandleGDBPacket( void * dev, char * data, int len )
}
else if( de0 == ';' )
{
//printf( "de[0] = %c\n", de[0] );
switch( de[0] )
{
case 'c':
Expand All @@ -458,8 +460,8 @@ void HandleGDBPacket( void * dev, char * data, int len )
RVDebugExec( dev, HALT_TYPE_SINGLE_STEP, 0, 0 );
//SendReplyFull( "T05" );
//SendReplyFull( "OK" ); // Will be sent from RVNetPoll
//RVHandleGDBBreakRequest( dev );
//RVSendGDBHaltReason( dev );
RVHandleGDBBreakRequest( dev );
RVSendGDBHaltReason( dev );
break;
default:
SendReplyFull( "E 98" );
Expand Down
Binary file modified minichlink/minichlink.exe
Binary file not shown.

0 comments on commit 3010b31

Please sign in to comment.