Skip to content

Commit f298b7f

Browse files
authored
[UI] Fixed color swap between heap/stack in vmmap legend (#1136)
## Description There is a bug in how stack/heap addresses colors are shown in gdb using the `vmmap` command. This PR fixes it.
1 parent 674c74d commit f298b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gef.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8950,8 +8950,8 @@ def print_entry(self, entry: Section) -> None:
89508950

89518951
def show_legend(self) -> None:
89528952
code_title = Color.colorify("Code", gef.config["theme.address_code"])
8953-
stack_title = Color.colorify("Heap", gef.config["theme.address_stack"])
8954-
heap_title = Color.colorify("Stack", gef.config["theme.address_heap"])
8953+
stack_title = Color.colorify("Stack", gef.config["theme.address_stack"])
8954+
heap_title = Color.colorify("Heap", gef.config["theme.address_heap"])
89558955
gef_print(f"[ Legend: {code_title} | {stack_title} | {heap_title} ]")
89568956
return
89578957

0 commit comments

Comments
 (0)