]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/record.c
record-btrace: optionally indent function call history
[thirdparty/binutils-gdb.git] / gdb / record.c
index f2cfcc86d90067292471de866e6a355c059e44db..4c671927c25a0e0c14189a4d29aa08c1ca0a2e48 100644 (file)
@@ -586,6 +586,9 @@ get_call_history_modifiers (char **arg)
            case 'i':
              modifiers |= RECORD_PRINT_INSN_RANGE;
              break;
+           case 'c':
+             modifiers |= RECORD_PRINT_INDENT_CALLS;
+             break;
            default:
              error (_("Invalid modifier: %c."), *args);
            }
@@ -820,6 +823,7 @@ function.\n\
 Without modifiers, it prints the function name.\n\
 With a /l modifier, the source file and line number range is included.\n\
 With a /i modifier, the instruction number range is included.\n\
+With a /c modifier, the output is indented based on the call stack depth.\n\
 With no argument, prints ten more lines after the previous ten-line print.\n\
 \"record function-call-history -\" prints ten lines before a previous ten-line \
 print.\n\