aboutsummaryrefslogtreecommitdiff
path: root/bfd/pef-traceback.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-06-08 11:06:02 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-12-24 14:15:24 +0000
commit600456716565103241530d7bd429cd9fb6c6258b (patch)
tree204e36685a73841d870d5924b9694a7c3048afce /bfd/pef-traceback.h
parentd3d13bf876aae425ae0eff2ab0f1af9f7da0264a (diff)
downloadgdb-600456716565103241530d7bd429cd9fb6c6258b.zip
gdb-600456716565103241530d7bd429cd9fb6c6258b.tar.gz
gdb-600456716565103241530d7bd429cd9fb6c6258b.tar.bz2
gdb: parse and set the inferior environment from core files
Extend the core file context parsing mechanism added in the previous commit to also store the environment parsed from the core file. This environment can then be injected into the inferior object. The benefit of this is that when examining a core file in GDB, the 'show environment' command will now show the environment extracted from a core file. Consider this example: $ env -i GDB_TEST_VAR=FOO ./gen-core Segmentation fault (core dumped) $ gdb -c ./core.1669829 ... [New LWP 1669829] Core was generated by `./gen-core'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000401111 in ?? () (gdb) show environment GDB_TEST_VAR=foo (gdb) There's a new test for this functionality.
Diffstat (limited to 'bfd/pef-traceback.h')
0 files changed, 0 insertions, 0 deletions