File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8832,7 +8832,15 @@ def context_trace(self):
88328832 insn = next (gef_disassemble (pc , 1 ))
88338833 except gdb .MemoryError :
88348834 break
8835- items .append (Color .redify ("{} {}" .format (insn .mnemonic , ", " .join (insn .operands ))))
8835+
8836+ # check if the gdb symbol table may know the address
8837+ sym_found = gdb_get_location_from_symbol (pc )
8838+ symbol = ""
8839+ if sym_found :
8840+ sym_name , offset = sym_found
8841+ symbol = " <{}+{:x}> " .format (sym_name , offset )
8842+
8843+ items .append (Color .redify ("{}{} {}" .format (symbol , insn .mnemonic , ", " .join (insn .operands ))))
88368844
88378845 gef_print ("[{}] {}" .format (Color .colorify ("#{}" .format (level ), "bold green" if current_frame == orig_frame else "bold pink" ),
88388846 RIGHT_ARROW .join (items )))
You can’t perform that action at this time.
0 commit comments