Table of Contents

IronForgeCyber

Courses

Resources

Blog

Log In



IronForgeCyber

AboutPrivacyTerms

© 2026 IronForgeCyber. All rights reserved.

  1. resources
  2. gdb
  3. ease-of-use

Ease of Use

There are a few commands gdb uses to make the debugging experience better. These don't provide any extra information, but they make debugging quicker.

aliases

GEF overrides the typical gdb aliasing mechanism (which is done via alias).

Use aliases add <alias> <command> to add an alias. Use aliases rm <alias> to remove an alias.

gef➤ aliases add p64 x/gxgef➤ aliases rm p64

Use aliases ls to view the current alias list.

gef➤ aliases ls[+] Aliases defined:ctx                             →  contexttelescope                       →  dereferenceflags                           →  edit-flagsstart                           →  entry-breakfmtstr-helper                   →  format-string-helperhl                              →  highlighthighlight set                   →  highlight addhla                             →  highlight addhlc                             →  highlight clearhighlight ls                    →  highlight listhll                             →  highlight listhighlight delete                →  highlight removehighlight del                   →  highlight removehighlight unset                 →  highlight removehighlight rm                    →  highlight removehlr                             →  highlight removenb                              →  name-breakpattern offset                  →  pattern searchpf                              →  print-formatps                              →  process-searchstatus                          →  process-statuslookup                          →  scangrep                            →  search-patternxref                            →  search-patternsc-get                          →  shellcode get
Info
Aliases are stored in ~/.gef.rc. You can edit the aliases directly in this file.

config

This command shows the current GEF configuration. It reads from ~/.gef.rc and the gef section of ~/.gdbinit.

gef➤ gef config─────────── GEF configuration settings ───────────assemble.default_architecture (str) = "X86"assemble.default_mode (str) = "64"capstone-disassemble.use-capstone (bool) = Falsecontext.clear_screen (bool) = Truecontext.enable (bool) = Truecontext.grow_stack_down (bool) = False......theme.source_current_line (str) = "green"theme.table_heading (str) = "blue"trace-run.max_tracing_recursion (int) = 1trace-run.tracefile_prefix (str) = "./gef-trace-"unicorn-emulate.show_disassembly (bool) = Falseunicorn-emulate.verbose (bool) = Falsevereference.max_recursion (int) = 7

You can set a value in this configuration with gef config <key> <value>. For example, gef config context.enable False will disable the context.

Changing the Configuration
These changes are temporary. You can restore the original configuration using:
gef➤ gef restore[+] Configuration from '/home/ironforge/.gef.rc' restored

You can make permanent changes by editing ~/.gef.rc or using gef save.

gef➤ gef save[+] Configuration saved to '/home/ironforge/.gef.rc'
sc-search → shellcode search
screen-setup → tmux-setup