drgn/tests
Omar Sandoval 98577e5e23 libdrgn: fix drgn_program_find_thread() for Linux kernel when thread isn't found
If a TID does not exist, then linux_helper_find_task() succeeds but
returns a null pointer object. Check for that instead of returning a
bogus thread.

Fixes: 301cc767ba ("Implement a new API for representing threads")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
2022-02-12 01:16:49 -08:00
..
helpers Add drgn.Program.main_thread() 2022-02-10 15:53:50 -08:00
linux_kernel libdrgn: fix drgn_program_find_thread() for Linux kernel when thread isn't found 2022-02-12 01:16:49 -08:00
__init__.py tests: remove no-op setUp() method 2022-01-22 11:12:52 -08:00
assembler.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
dwarf.py Track byte order in scalar types instead of objects 2021-02-19 21:41:29 -08:00
dwarfwriter.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
elf.py tests: add tests for ELF symbols 2021-11-19 17:04:20 -08:00
elfwriter.py tests: use NOBITS section for ELF symbols 2021-12-17 16:46:12 -08:00
libdrgn.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
sample.coredump.zst Implement a new API for representing threads 2022-01-11 17:28:17 -08:00
test_docs.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_dwarf.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
test_language_c.py libdrgn: language_c: replace c_keywords with memswitch 2022-02-04 20:26:35 -08:00
test_lexer.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_object.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
test_path.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_platform.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_program.py python: allow Program.type() to accept a Type 2022-01-21 16:52:36 -08:00
test_python.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_serialize.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_symbol.py Add methods to return multiple matching symbols 2022-01-15 11:44:33 -08:00
test_thread.py libdrgn: fix drgn_program_find_thread() for Linux kernel when thread isn't found 2022-02-12 01:16:49 -08:00
test_type.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
test_util.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00