Skip to content

Commit 65b1dfc

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 4c15186 + 35b6eff commit 65b1dfc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

debug/kgdb.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,10 @@ def __init__(self, val, cat, sortName):
375375
self.kompiled_dir = getKompiledDir()
376376

377377
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]
379379

380380
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]
382382

383383
def getLayoutData(self, layout):
384384
return gdb.lookup_global_symbol("layout_" + str(layout)).value()
@@ -610,7 +610,7 @@ def append(self, subject, isVar, sort):
610610
argData = layoutData['args'] + i
611611
arg = subject.cast(self.long_int) + int(argData.dereference()['offset'])
612612
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")
614614
if cat == @MAP_LAYOUT@:
615615
self.appendMap(arg.cast(self.map_ptr), sort)
616616
elif cat == @RANGEMAP_LAYOUT@:
@@ -748,7 +748,7 @@ def invoke(self, arg, from_tty):
748748
argv = gdb.string_to_argv(arg)
749749
if gdb.selected_inferior().pid == 0:
750750
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()()
752752
if (len(argv) != 2):
753753
raise gdb.GdbError("k match takes two arguments.")
754754
fun = gdb.lookup_global_symbol(argv[0] + '.match')
@@ -759,8 +759,8 @@ def invoke(self, arg, from_tty):
759759
except gdb.error as err:
760760
raise gdb.GdbError(*err.args)
761761
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()())
764764
for i in range(size):
765765
entry = entries[i]
766766
if entry['kind'] == self.SUCCESS:
@@ -771,7 +771,7 @@ def invoke(self, arg, from_tty):
771771
print(debugFunctionName + '(', end='')
772772
name = functionName if functionName[:5] == 'hook_' else debugFunctionName
773773
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)
775775
conn = ""
776776
for i in range(len(function.fields())):
777777
arg = front[i]

debug/klldb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _field_expr(self, field):
141141
return self.exe_ctx.target.EvaluateExpression(ptr_exp)
142142

143143
def get_match_function_args(self):
144-
return target_call(self.exe_ctx, 'getMatchFnArgs', 'void **',
144+
return target_call(self.exe_ctx, 'get_match_fn_args', 'void **',
145145
['MatchLog *'], [self.root])
146146

147147
@property
@@ -190,18 +190,18 @@ def __init__(self, exe_ctx):
190190
self.exe_ctx = exe_ctx
191191

192192
def _reset_match_reason(self):
193-
target_call(self.exe_ctx, 'resetMatchReason', 'void')
193+
target_call(self.exe_ctx, 'reset_match_reason', 'void')
194194

195195
def _try_match(self, rule_name, subject):
196196
expr = self.exe_ctx.target.EvaluateExpression(subject)
197197
target_call(self.exe_ctx, f'{rule_name}.match',
198198
'void', ['block *'], [expr])
199199

200200
def _get_match_log_size(self):
201-
return target_call(self.exe_ctx, 'getMatchLogSize', 'size_t').data.uint64[0]
201+
return target_call(self.exe_ctx, 'getmatch_log_size', 'size_t').data.uint64[0]
202202

203203
def _get_match_log(self):
204-
return target_call(self.exe_ctx, 'getMatchLog', 'MatchLog *')
204+
return target_call(self.exe_ctx, 'getmatch_log', 'MatchLog *')
205205

206206
def _type_to_sort(self, ty):
207207
return {

0 commit comments

Comments
 (0)