MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / LoadSymbols

Class LoadSymbols

util/gdb-dmtcp-utils.py:388–415  ·  view source on GitHub ↗

load-symbols [optional: FILENAME] (load symbols from /proc/self/maps) Normally, load-symbols works with no arguments. When GDB stack does not show any symbols, try this. This handles the case with one executable file loaded, such as attaching with GDB to a process restarted by DMTCP. There is _e

Source from the content-addressed store, hash-verified

386
387
388class LoadSymbols(gdb.Command):
389 """load-symbols [optional: FILENAME] (load symbols from /proc/self/maps)
390
391Normally, load-symbols works with no arguments. When GDB stack does
392not show any symbols, try this.
393
394This handles the case with one executable file loaded, such as attaching
395with GDB to a process restarted by DMTCP. There is _experimental_ support
396for when an executable was copied to a second address and the original
397may or may not have been unmapped.
398
399If there is more than one executable binary loaded (e.g., split processes),
400or if there are remaining frames on stack with no symbols, then you may
401need to try using load-symbols-library, and select as an argument the
402filename (or address in /proc/*/maps) for the specific binary desired."""
403
404 def __init__(self):
405 super(LoadSymbols,
406 self).__init__("load-symbols",
407 gdb.COMMAND_FILES, gdb.COMPLETE_FILENAME)
408 self.dont_repeat()
409
410 def invoke(self, filename, from_tty):
411 if filename:
412 filename = os.path.abspath(filename)
413 load_symbols(filename.split()[0])
414 else:
415 load_symbols()
416# This will add the new gdb command: load-symbols
417LoadSymbols()
418

Callers 1

gdb-dmtcp-utils.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected