mtdbg: Rem check prev backtrace symbol
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 1m15s
Build system / Build (pull_request) Successful in 16m26s

The symbol may be repeated during recursion

Signed-off-by: Max Logaev <maxlogaev@proton.me>
This commit is contained in:
2026-01-16 19:33:18 +03:00
parent cc66bfd864
commit 9f55dc8d4f

View File

@@ -1159,10 +1159,8 @@ ends
OnBacktrace: OnBacktrace:
push ebp push ebp
xor eax, eax
mov [prev_bt_sym], eax
; Set max depth counter ; Set max depth counter
xor eax, eax
dec eax dec eax
mov esi, [curarg] mov esi, [curarg]
@@ -1218,14 +1216,8 @@ OnBacktrace:
; Find symbol by return address ; Find symbol by return address
call find_near_symbol call find_near_symbol
test esi, esi test esi, esi
jz .print_stub jnz .print_sym
; The current symbol must not be equal to the previous one
cmp esi, [prev_bt_sym]
mov [prev_bt_sym], esi
jnz .print_sym
.print_stub:
mov esi, aBacktraceSymStub mov esi, aBacktraceSymStub
.print_sym: .print_sym:
@@ -2619,7 +2611,6 @@ disasm_string rb 256
stack_frame_dump rb sizeof.STACK_FRAME stack_frame_dump rb sizeof.STACK_FRAME
bt_depth rd 1 bt_depth rd 1
prev_bt_sym rd 1
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; Coordinates and sizes for GUI ; Coordinates and sizes for GUI