Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
devops committed Aug 1, 2024
2 parents 3968914 + 5002ecd commit deb7967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion debug/kgdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def invoke(self, arg, from_tty):
if entry['kind'] == self.SUCCESS:
print('Match succeeds')
elif entry['kind'] == self.FUNCTION:
debugFunctionName = entry['debugName'].string("iso-8859-1")
debugFunctionName = entry['debug_name'].string("iso-8859-1")
functionName = entry['function'].string("iso-8859-1")
print(debugFunctionName + '(', end='')
name = functionName if functionName[:5] == 'hook_' else debugFunctionName
Expand Down
8 changes: 4 additions & 4 deletions debug/klldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __call__(self, debugger, command, exe_ctx, result):


class LogEntry:
typename = 'MatchLog'
typename = 'match_log'

def __init__(self, exe_ctx, root, idx):
self.exe_ctx = exe_ctx
Expand All @@ -142,7 +142,7 @@ def _field_expr(self, field):

def get_match_function_args(self):
return target_call(self.exe_ctx, 'get_match_fn_args', 'void **',
['MatchLog *'], [self.root])
['match_log *'], [self.root])

@property
def kind(self):
Expand Down Expand Up @@ -170,7 +170,7 @@ def subject(self):
def debug_name(self):
err = lldb.SBError()
return self.exe_ctx.process.ReadCStringFromMemory(
to_address(self._field_expr('debugName')), 65536, err)
to_address(self._field_expr('debug_name')), 65536, err)

@property
def function(self):
Expand Down Expand Up @@ -201,7 +201,7 @@ def _get_match_log_size(self):
return target_call(self.exe_ctx, 'getmatch_log_size', 'size_t').data.uint64[0]

def _get_match_log(self):
return target_call(self.exe_ctx, 'getmatch_log', 'MatchLog *')
return target_call(self.exe_ctx, 'getmatch_log', 'match_log *')

def _type_to_sort(self, ty):
return {
Expand Down

0 comments on commit deb7967

Please sign in to comment.