Fix for symbolic debugger
This commit is contained in:
parent
c34fcda208
commit
2a6c8390fa
2 changed files with 5 additions and 5 deletions
|
@ -120,7 +120,7 @@ GHSRC = botch_free.h dataflow.h debug.h density.h errout.h \
|
||||||
nobitfield.h nopp.h nocross.h \
|
nobitfield.h nopp.h nocross.h \
|
||||||
nparams.h numsize.h parbufsize.h pathlength.h Lpars.h \
|
nparams.h numsize.h parbufsize.h pathlength.h Lpars.h \
|
||||||
strsize.h trgt_sizes.h textsize.h use_tmp.h spec_arith.h static.h \
|
strsize.h trgt_sizes.h textsize.h use_tmp.h spec_arith.h static.h \
|
||||||
regcount.h db_symtab.h
|
regcount.h dbsymtab.h
|
||||||
|
|
||||||
HSRC = LLlex.h align.h arith.h assert.h atw.h class.h \
|
HSRC = LLlex.h align.h arith.h assert.h atw.h class.h \
|
||||||
input.h interface.h label.h level.h mes.h sizes.h specials.h \
|
input.h interface.h label.h level.h mes.h sizes.h specials.h \
|
||||||
|
|
|
@ -467,7 +467,7 @@ compound_statement
|
||||||
{
|
{
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
static int brc_level = 1;
|
static int brc_level = 1;
|
||||||
int ndecl = 0;
|
int decl_seen = brc_level == 1;
|
||||||
#endif /* DBSYMTAB */
|
#endif /* DBSYMTAB */
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
|
@ -481,14 +481,14 @@ compound_statement
|
||||||
declaration
|
declaration
|
||||||
{
|
{
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
ndecl++;
|
decl_seen++;
|
||||||
#endif /* DBSYMTAB */
|
#endif /* DBSYMTAB */
|
||||||
}
|
}
|
||||||
]*
|
]*
|
||||||
{
|
{
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
++brc_level;
|
++brc_level;
|
||||||
if (options['g'] && ndecl) {
|
if (options['g'] && decl_seen) {
|
||||||
C_ms_std((char *) 0, N_LBRAC, brc_level);
|
C_ms_std((char *) 0, N_LBRAC, brc_level);
|
||||||
}
|
}
|
||||||
#endif /* DBSYMTAB */
|
#endif /* DBSYMTAB */
|
||||||
|
@ -500,7 +500,7 @@ compound_statement
|
||||||
{
|
{
|
||||||
unstack_level();
|
unstack_level();
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
if (options['g'] && ndecl) {
|
if (options['g'] && decl_seen) {
|
||||||
C_ms_std((char *) 0, N_RBRAC, brc_level);
|
C_ms_std((char *) 0, N_RBRAC, brc_level);
|
||||||
}
|
}
|
||||||
brc_level--;
|
brc_level--;
|
||||||
|
|
Loading…
Reference in a new issue