linux_dsm_epyc7002/scripts/gdb/linux
Kieran Bingham e78f3d70b3 scripts/gdb: provide exception catching parser
If we attempt to read a value that is not available to GDB, an exception
is raised.  Most of the time, this is a good thing; however on occasion
we will want to be able to determine if a symbol is available.

By catching the exception to simply return None, we can determine if we
tried to read an invalid value, without the exception taking our
execution context away from us

Link: http://lkml.kernel.org/r/c72b25c06fc66e1d68371154097e2cbb112555d8.1462865983.git.jan.kiszka@siemens.com
Signed-off-by: Kieran Bingham <kieran.bingham@linaro.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-05-23 17:04:14 -07:00
..
__init__.py scripts/gdb: add empty package initialization script 2015-02-28 09:57:51 -08:00
.gitignore scripts/gdb: ignore byte-compiled python files 2015-02-17 14:34:54 -08:00
constants.py.in scripts/gdb: provide linux constants 2016-05-23 17:04:14 -07:00
cpus.py scripts/gdb: convert CpuList to generator function 2015-02-17 14:34:55 -08:00
dmesg.py scripts/gdb: fix PEP8 compliance 2015-06-30 19:44:58 -07:00
lists.py scripts/gdb: provide kernel list item generators 2016-05-23 17:04:14 -07:00
Makefile scripts/gdb: provide linux constants 2016-05-23 17:04:14 -07:00
modules.py scripts/gdb: convert modules usage to lists functions 2016-05-23 17:04:14 -07:00
proc.py scripts/gdb: add cmdline reader command 2016-03-22 15:36:02 -07:00
symbols.py scripts/gdb: account for changes in module data structure 2016-03-22 15:36:02 -07:00
tasks.py scripts/gdb: remove useless global instruction 2015-06-30 19:44:58 -07:00
utils.py scripts/gdb: provide exception catching parser 2016-05-23 17:04:14 -07:00