Implemented the symbolfile command (as mentioned by the help

command). This reads a symbol file in the format generated by nm.
This commit is contained in:
NF Stevens 1999-01-28 17:37:49 +00:00 committed by Alexandre Julliard
parent 9266004f63
commit 2c3d07fa0e
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,7 @@ extern void VIRTUAL_Dump(void); /* memory/virtual.c */
%token <string> tIDENTIFIER tSTRING tDEBUGSTR
%token <integer> tNUM tFORMAT
%token <reg> tREG
%token tSYMBOLFILE
%token tCHAR tSHORT tINT tLONG tFLOAT tDOUBLE tUNSIGNED tSIGNED
%token tSTRUCT tUNION tENUM
@ -156,6 +157,7 @@ command:
| tCOND tNUM tEOL { DEBUG_AddBPCondition($2, NULL); }
| tCOND tNUM expr tEOL { DEBUG_AddBPCondition($2, $3); }
| tDEBUGMSG tDEBUGSTR tEOL { MAIN_ParseDebugOptions($2); }
| tSYMBOLFILE pathname tEOL{ DEBUG_ReadSymbolTable($2); }
| list_command
| disassemble_command
| set_command

View file

@ -142,6 +142,7 @@ $gs { yylval.reg = REG_GS; return tREG; }
<INITIAL>mode { BEGIN(NOCMD); return tMODE; }
<INITIAL>show|sho|sh { BEGIN(SHOW_CMD); return tSHOW; }
<INITIAL>symbolfile|symbols|symbol|sf { BEGIN(PATH_EXPECTED); return tSYMBOLFILE; }
<INITIAL,INFO_CMD,DEL_CMD>break|brea|bre|br|b { BEGIN(PATH_EXPECTED); return tBREAK; }