Skip to content

Commit

Permalink
[UI] Fixed color swap between heap/stack in vmmap legend (#1136)
Browse files Browse the repository at this point in the history
## Description

There is a bug in how stack/heap addresses colors are shown in gdb using
the `vmmap` command. This PR fixes it.
  • Loading branch information
arty-hlr committed Sep 16, 2024
1 parent 674c74d commit f298b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -8950,8 +8950,8 @@ def print_entry(self, entry: Section) -> None:

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

Expand Down

0 comments on commit f298b7f

Please sign in to comment.