From ad9cdfbcfdf9c7a679393d35adaf95e2b3cb6fd0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 16 May 2023 09:51:51 -0600 Subject: Add "stop at main" extension to DAP launch request Co-workers who work on a program that uses DAP asked for the ability to have gdb stop at the main subprogram when launching. This patch implements this extension. Reviewed-By: Eli Zaretskii --- gdb/doc/gdb.texinfo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index fc3a330..b10c06a 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -39068,6 +39068,11 @@ inferior will be set to exactly as passed in. @xref{Environment}. @item program If provided, this is a string that specifies the program to use. This corresponds to the @code{file} command. @xref{Files}. + +@item stopAtBeginningOfMainSubprogram +If provided, this must be a boolean. When @samp{True}, @value{GDBN} +will set a temporary breakpoint at the program's main procedure, using +the same approach as the @code{start} command. @xref{Starting}. @end table @value{GDBN} defines some parameters that can be passed to the -- cgit v1.1