print from a different frame
#28 (closed) allowed us to show variables after manually changing the frame for a deeper inspection. GDB's expression handling also allows to print from a different frame - that would be nice (so not a big priority) for cobcd, too.
cp audit
already shows the full path, ending with the program, for example
W101-AUDIT//W101-MAIN/W101-PARM/PROGA
the only option to show that from PROGC
is to show the backtrace bt
, then look where PROGA
is in there, then change to that frame f 5
then cp audit
then manually swith back f 0
.
GDB's variant would be: p PROGA::audit
, no manual frame switching needed.
Maybe cprint can support the same, looking for COBOL programs (or user functions) with the name before ::
, internally switch to that frame, do its logic, then switch back?