diff options
author | 2019-05-20 11:54:11 +0100 | |
---|---|---|
committer | 2019-05-20 11:54:11 +0100 | |
commit | 96d82e9d0dc799bb382ed0fe9db30c79c3a9f3b9 (patch) | |
tree | 76a630c2f0c84d807cc2c6199be24519ecc9ec16 /scripts/gdb/linux/utils.py | |
parent | dt-bindings: regulator: add document bindings for slg51000 (diff) | |
parent | Linux 5.2-rc1 (diff) | |
download | linux-rng-96d82e9d0dc799bb382ed0fe9db30c79c3a9f3b9.tar.xz linux-rng-96d82e9d0dc799bb382ed0fe9db30c79c3a9f3b9.zip |
Merge tag 'v5.2-rc1' into regulator-5.3
Linux 5.2-rc1
Diffstat (limited to 'scripts/gdb/linux/utils.py')
-rw-r--r-- | scripts/gdb/linux/utils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/gdb/linux/utils.py b/scripts/gdb/linux/utils.py index 50805874cfc3..bc67126118c4 100644 --- a/scripts/gdb/linux/utils.py +++ b/scripts/gdb/linux/utils.py @@ -66,6 +66,7 @@ Note that TYPE and ELEMENT have to be quoted as strings.""" return container_of(ptr, gdb.lookup_type(typename.string()).pointer(), elementname.string()) + ContainerOf() @@ -148,14 +149,14 @@ def get_gdbserver_type(): def probe_qemu(): try: return gdb.execute("monitor info version", to_string=True) != "" - except: + except gdb.error: return False def probe_kgdb(): try: thread_info = gdb.execute("info thread 2", to_string=True) return "shadowCPU0" in thread_info - except: + except gdb.error: return False global gdbserver_type @@ -172,7 +173,7 @@ def get_gdbserver_type(): def gdb_eval_or_none(expresssion): try: return gdb.parse_and_eval(expresssion) - except: + except gdb.error: return None |