@@ -375,10 +375,10 @@ def __init__(self, val, cat, sortName):
375
375
self .kompiled_dir = getKompiledDir ()
376
376
377
377
def getSymbolNameForTag (self , tag ):
378
- return gdb .lookup_global_symbol ("table_getSymbolNameForTag " ).value ()[tag ]
378
+ return gdb .lookup_global_symbol ("table_get_symbol_name_for_tag " ).value ()[tag ]
379
379
380
380
def isSymbolABinder (self , tag ):
381
- return gdb .lookup_global_symbol ("table_isSymbolABinder " ).value ()[tag ]
381
+ return gdb .lookup_global_symbol ("table_is_symbol_a_binder " ).value ()[tag ]
382
382
383
383
def getLayoutData (self , layout ):
384
384
return gdb .lookup_global_symbol ("layout_" + str (layout )).value ()
@@ -610,7 +610,7 @@ def append(self, subject, isVar, sort):
610
610
argData = layoutData ['args' ] + i
611
611
arg = subject .cast (self .long_int ) + int (argData .dereference ()['offset' ])
612
612
cat = argData .dereference ()['cat' ]
613
- sort = gdb .lookup_global_symbol ("table_getArgumentSortsForTag " ).value ()[tag ][i ].string ("iso-8859-1" )
613
+ sort = gdb .lookup_global_symbol ("table_get_argument_sorts_for_tag " ).value ()[tag ][i ].string ("iso-8859-1" )
614
614
if cat == @MAP_LAYOUT @:
615
615
self .appendMap (arg .cast (self .map_ptr ), sort )
616
616
elif cat == @RANGEMAP_LAYOUT @:
@@ -748,7 +748,7 @@ def invoke(self, arg, from_tty):
748
748
argv = gdb .string_to_argv (arg )
749
749
if gdb .selected_inferior ().pid == 0 :
750
750
raise gdb .GdbError ("You can't do that without a process to debug." )
751
- gdb .lookup_global_symbol ("resetMatchReason " ).value ()()
751
+ gdb .lookup_global_symbol ("reset_match_reason " ).value ()()
752
752
if (len (argv ) != 2 ):
753
753
raise gdb .GdbError ("k match takes two arguments." )
754
754
fun = gdb .lookup_global_symbol (argv [0 ] + '.match' )
@@ -759,8 +759,8 @@ def invoke(self, arg, from_tty):
759
759
except gdb .error as err :
760
760
raise gdb .GdbError (* err .args )
761
761
fun .value ()(subject )
762
- entries = gdb .lookup_global_symbol ("getMatchLog " ).value ()()
763
- size = int (gdb .lookup_global_symbol ("getMatchLogSize " ).value ()())
762
+ entries = gdb .lookup_global_symbol ("getmatch_log " ).value ()()
763
+ size = int (gdb .lookup_global_symbol ("getmatch_log_size " ).value ()())
764
764
for i in range (size ):
765
765
entry = entries [i ]
766
766
if entry ['kind' ] == self .SUCCESS :
@@ -771,7 +771,7 @@ def invoke(self, arg, from_tty):
771
771
print (debugFunctionName + '(' , end = '' )
772
772
name = functionName if functionName [:5 ] == 'hook_' else debugFunctionName
773
773
function = gdb .lookup_global_symbol (name ).value ().type
774
- front = gdb .lookup_global_symbol ("getMatchFnArgs " ).value ()(entry .address )
774
+ front = gdb .lookup_global_symbol ("get_match_fn_args " ).value ()(entry .address )
775
775
conn = ""
776
776
for i in range (len (function .fields ())):
777
777
arg = front [i ]
0 commit comments