[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29351 - gnunet/contrib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29351 - gnunet/contrib |
Date: |
Tue, 17 Sep 2013 16:51:41 +0200 |
Author: harsha
Date: 2013-09-17 16:51:41 +0200 (Tue, 17 Sep 2013)
New Revision: 29351
Modified:
gnunet/contrib/gdb-iterate-dll.py
Log:
- match according to type
Modified: gnunet/contrib/gdb-iterate-dll.py
===================================================================
--- gnunet/contrib/gdb-iterate-dll.py 2013-09-17 14:41:39 UTC (rev 29350)
+++ gnunet/contrib/gdb-iterate-dll.py 2013-09-17 14:51:41 UTC (rev 29351)
@@ -15,9 +15,21 @@
if symbol is None:
print "Can't find symbol: " + head
return
- while not symbol:
+ while symbol:
symbol_val = symbol.value().derefence
- if match == symbol_val[field]:
+ field_val = symbol_val[field]
+ if field_val.type.code == gdb.TYPE_CODE_INT:
+ val = int(field_val)
+ res = (match == val)
+ if (field_val.type.code == gdb.TYPE_CODE_STRING)
+ or (filed_val.type.code == gdb.TYPE_CODE_ARRAY):
+ val = str (field_val)
+ res = (match == val)
+ if (field_val.type.code == gdb.TYPE_CODE_TYPEDEF):
+ val = str (field_val)
+ res = match in val
+
+ if res:
if pfield is None:
print symbol_val
else:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29351 - gnunet/contrib,
gnunet <=