Reputation: 131
I am using Eclipse gdb to debug c++ code.When step into yyparse() which is actually go thru flex and bison it happen
Can't find a source file at "eqv_yacc.tab.c" Locate the file or edit the source lookup path to include its location.
However thr is no longer the file eqv__yacc.tab.c there is only eqv_yacc.c.the name has been changed in my makefile.How can I solve this to point to eqv_yacc.c instead of need the debugger to find eqv_yacc.tab.c?anyone face the same problem before?
Makefile code:
eqv_yacc.C:
eqv_yacc.y $(YACC) $(YFLAGS) eqv_yacc.y
sed s/yy/eqvyy/g eqv_yacc.tab.c > eqv_yacc.C
sed s/yy/eqvyy/g eqv_yacc.tab.h > eqvy.tab.H
$(RM) eqv_yacc.tab.h
$(RM) eqv_yacc.tab.c
Upvotes: 0
Views: 255
Reputation: 409136
Those sed
commands are for replacing all instances of yy
with eqvyy
. You could add on to that to replace names in the source file as well:
sed s/yy/eqvyy/g eqv_yacc.tab.c | sed s/eqv_yacc\.tab\.c/eqv_yacc.c/g > eqv_yacc.C
Upvotes: 1