drgn/tests
Omar Sandoval a5cd92f24e libdrgn: make vmcoreinfo accessible before loading debug info
UTS_RELEASE is currently only accessible once debug info is loaded with
prog.load_debug_info(main=True). This makes it difficult to get the
release, find the appropriate vmlinux, then load the found vmlinux. We
can add vmcoreinfo_object_find as part of set_core_dump(), which makes
it possible to do the following:

  prog = drgn.Program()
  prog.set_core_dump(core_dump_path)
  release = prog['UTS_RELEASE'].string_()
  vmlinux_path = find_vmlinux(release)
  prog.load_debug_info([vmlinux_path])

The only downside is that this ends up using the default definition of
char rather than what we would get from the debug info, but that
shouldn't be a big problem.
2020-02-19 12:11:45 -08:00
..
helpers libdrgn: make vmcoreinfo accessible before loading debug info 2020-02-19 12:11:45 -08:00
__init__.py libdrgn/python: add proper type for members and parameters 2020-02-12 15:40:19 -08:00
dwarf.py Format Python code with Black 2020-01-14 11:51:58 -08:00
dwarfwriter.py Format Python code with Black 2020-01-14 11:51:58 -08:00
elf.py libdrgn: make program components pluggable 2019-05-10 12:41:07 -07:00
elfwriter.py Format Python code with Black 2020-01-14 11:51:58 -08:00
libdrgn.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_docs.py tests: test that Python documentation renders 2019-07-24 11:01:35 -07:00
test_dwarf.py libdrgn/python: add proper type for members and parameters 2020-02-12 15:40:19 -08:00
test_language_c.py libdrgn/python: add proper type for members and parameters 2020-02-12 15:40:19 -08:00
test_lexer.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_object.py libdrgn/python: add proper type for members and parameters 2020-02-12 15:40:19 -08:00
test_path.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_platform.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_program.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_python.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_serialize.py Format Python code with Black 2020-01-14 11:51:58 -08:00
test_type.py libdrgn/python: add proper type for members and parameters 2020-02-12 15:40:19 -08:00