Fix crash in "document" command
authorTom Tromey <tromey@adacore.com>
Fri, 18 Nov 2022 16:04:39 +0000 (09:04 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 28 Nov 2022 13:48:43 +0000 (06:48 -0700)
commitb70e9270fbafd43a3fece0c7dd52cabd70854dfd
treec439b062915062261abffad32093e4284e745813
parent76cd77dc729b03d6b33c683323594479e33a3f9a
Fix crash in "document" command

PR cli/29800 points out that "document" will now crash when the
argument is an undefined command.  This is a regression due to the
"document user-defined aliases" patch.

Approved-By: Joel Brobecker <brobecker@adacore.com>
Reviewed-By: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29800
gdb/cli/cli-script.c
gdb/testsuite/gdb.base/document.exp