X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fgdbinit.in;h=ffb7f53b5007788a8177382a903c53587de7a540;hb=37cc8bfee6166ea05f1fa2e7d9f0f4d90663b7fc;hp=af97d2cae3d6739ad8976ef8abac47469dcf5d32;hpb=5b64ad42d36e6d487e1f7287d37fbc243a178e72;p=binutils-gdb.git diff --git a/gdb/gdbinit.in b/gdb/gdbinit.in index af97d2cae3d..ffb7f53b500 100644 --- a/gdb/gdbinit.in +++ b/gdb/gdbinit.in @@ -2,7 +2,7 @@ echo Setting up the environment for debugging gdb.\n set complaints 1 -b fatal +b internal_error b info_command commands @@ -10,9 +10,25 @@ commands return end -dir @srcdir@ -dir . -dir @srcdir@/../mmalloc dir @srcdir@/../libiberty dir @srcdir@/../bfd +dir @srcdir@ +dir . set prompt (top-gdb) + +define pdie + if $argc == 1 + call dump_die ($arg0, 1) + else + if $argc == 2 + call dump_die ($arg0, $arg1) + else + printf "Syntax: pdie die [depth]\n" + end + end +end + +document pdie +Pretty print a DWARF DIE. +Syntax: pdie die [depth] +end