drgn/libdrgn/examples
Omar Sandoval 579e68885a libdrgn: examples: load_debug_info: pass struct drgn_program address to --{pre,post}-exec
This is useful for debugging the state of the program after loading
debugging information (e.g., debugging drgn with drgn!). For example:

  load_debug_info --post-exec 'echo drgn -p $1; echo "prog_obj = Object(prog, \"struct drgn_program *\", $2)"; sleep +inf'

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2023-08-04 12:49:48 -07:00
..
load_debug_info.c libdrgn: examples: load_debug_info: pass struct drgn_program address to --{pre,post}-exec 2023-08-04 12:49:48 -07:00