From: Eli Zaretskii Date: Sat, 4 Jan 2025 10:13:04 +0000 (+0200) Subject: [gdb/selftest] Fix 'help_doc_invariants' self-test X-Git-Tag: gdb-16.1-release~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bc042a41baeca9130a74ae33a1477752ba60f08;p=thirdparty%2Fbinutils-gdb.git [gdb/selftest] Fix 'help_doc_invariants' self-test Running selftest help_doc_invariants. help doc broken invariant: command 'signal-event' help doc has over-long line Self test failed: self-test failed at unittests/command-def-selftests.c:121 The reason is that doc string of 'signal-event' doesn't have newlines at end of its line. Fix by adding newlines. (cherry picked from commit c1023d95672cfd293fd84556baf899713955ee50) --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index a93e546d358..2fd943ea973 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -3114,9 +3114,9 @@ _initialize_windows_nat () add_com ("signal-event", class_run, signal_event_command, _("\ Signal a crashed process with event ID, to allow its debugging.\n\ -This command is needed in support of setting up GDB as JIT debugger on \ -MS-Windows. The command should be invoked from the GDB command line using \ -the '-ex' command-line option. The ID of the event that blocks the \ +This command is needed in support of setting up GDB as JIT debugger on\n\ +MS-Windows. The command should be invoked from the GDB command line using\n\ +the '-ex' command-line option. The ID of the event that blocks the\n\ crashed process will be supplied by the Windows JIT debugging mechanism.")); #ifdef __CYGWIN__