aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-01-05 08:43:59 -0700
committerTom Tromey <tromey@adacore.com>2022-01-05 10:08:15 -0700
commitffcc2b69d1a516f55ede0e12a8847913651ea588 (patch)
treea221b92aa9db5edd6a51845338a5ae71dd067fca /gdb/cli/cli-script.c
parent93f3b8eeaac14fe1d9343ce1b8eca87be2ce5843 (diff)
downloadgdb-ffcc2b69d1a516f55ede0e12a8847913651ea588.zip
gdb-ffcc2b69d1a516f55ede0e12a8847913651ea588.tar.gz
gdb-ffcc2b69d1a516f55ede0e12a8847913651ea588.tar.bz2
Do not print anything when self-backtrace unavailable
Right now, gdb's self-backtrace feature will still print something when a backtrace is unavailable: sig_write (_("----- Backtrace -----\n")); [...] sig_write (_("Backtrace unavailable\n")); sig_write ("---------------------\n"); However, if GDB_PRINT_INTERNAL_BACKTRACE is undefined, it seems better to me to print nothing at all. This patch implements this change. It also makes a couple of other small changes in this same module: it adds a header guard to bt-utils.h, and it protects the definitions of gdb_internal_backtrace_1 with a check of GDB_PRINT_INTERNAL_BACKTRACE.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions