diff options
| author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-06-26 12:22:54 +0200 | 
|---|---|---|
| committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-06-26 12:22:54 +0200 | 
| commit | 355a47ae7ebcf9d605aa809b259d380422e81b8d (patch) | |
| tree | f42b3196986c7de89a335b4f57384d249f5663e9 /scripts/gdb/linux/utils.py | |
| parent | b1622cb3be4557fd086831ca7426eafe5f1acc2e (diff) | |
| parent | 80d42db02b3a5beb8cffba08207adf5f4c525ee3 (diff) | |
Merge remote-tracking branch 'drm/drm-next' into drm-misc-next-fixes
Some fixes have been accidentally pushed to this, so I cannot fost-forward.
Required to pull in the remove-fbcon-notifiers fixes.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
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 | 
