From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

scripts/loader.py: make osv info callouts work with older C++ ABI

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/scripts/loader.py b/scripts/loader.py
--- a/scripts/loader.py
+++ b/scripts/loader.py
@@ -1034,7 +1034,10 @@ def invoke(self, arg, for_tty):
             fname = callout['c_fn']
 
             # time
-            t = int(callout['c_to_ns']['__d']['__r'])
+            try:
+                t = int(callout['c_to_ns']['__d']['__r'])
+            except gdb.error:
+                t = int(callout['c_to_ns'])
 
             # flags
             CALLOUT_ACTIVE = 0x0002

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000011da50059f5fda49%40google.com.

Reply via email to