mixed-language debuggging - How to use "normal" print
After the extensions were loaded, which now happens automatically (which is good) then it is unclear how we can print the "C" way (when debugging on purpose into libcob).
See try to debug in cob_open()
.
(gdb) print *f
Traceback (most recent call last):
File "/opt/cbl-gdb-3.14/bin/cobcd.py", line 3331, in invoke
self.Worker.ProcessArguments(self.TabFile,GV_ShortTermMemory,arguments)
File "/opt/cbl-gdb-3.14/bin/cobcd.py", line 3246, in ProcessArguments
possibilities = MetaPossibilities(args,TabFile,ShortTermMemory,self.machine_interface_mode,rside)
File "/opt/cbl-gdb-3.14/bin/cobcd.py", line 3040, in MetaPossibilities
possibilities = TabFile.var_trie.GetListOfPossibilities(args)
File "/opt/cbl-gdb-3.14/bin/cobcd.py", line 644, in GetListOfPossibilities
pattern1 = re.compile("^" + fragment)
File "/usr/lib64/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
error: nothing to repeat
(gdb)
BTW: I think neither the "error: nothing to repeat" nor the "Traceback" should be raised here.
Is the only way to unload/load the extension? If yes how can this be achieved?