bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40250: 26.3; gdb-mode incorrectly handles gdb's `explore' command


From: Vladimir Nikishkin
Subject: bug#40250: 26.3; gdb-mode incorrectly handles gdb's `explore' command
Date: Sat, 28 Mar 2020 21:34:54 +0800

I didn't test it extensively, but seems be to working.

сб, 28 мар. 2020 г. в 21:05, Eli Zaretskii <address@hidden>:
>
> > From: Vladimir Nikishkin <address@hidden>
> > Date: Fri, 27 Mar 2020 15:25:05 +0800
> >
> > 2) run M-x gdb RET RET
> > 3)break 14
> > (should put a breakpoint at the print statement)
> > 4)run RET
> > 5)explore a
> > (a is the specially prepared data object)
> > gdb should ask you for a choice
> > 6)0
> > (the only choice)
> >
> > Expected result: display of the contents of a
> > Obtained result: silent return to the (gdb) prompt
>
> Thanks.  Does the change below fix this?
>
> diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
> index 7fb3687..e046264 100644
> --- a/lisp/progmodes/gdb-mi.el
> +++ b/lisp/progmodes/gdb-mi.el
> @@ -1849,7 +1849,7 @@ gdb-control-commands-regexp
>     "comm\\(a\\(n\\(ds?\\)?\\)?\\)?\\|if\\|while"
>     "\\|def\\(i\\(ne?\\)?\\)?\\|doc\\(u\\(m\\(e\\(nt?\\)?\\)?\\)?\\)?\\|"
>     gdb-python-guile-commands-regexp
> -   "\\|while-stepping\\|stepp\\(i\\(ng?\\)?\\)?\\|ws\\|actions"
> +   "\\|while-stepping\\|stepp\\(i\\(ng?\\)?\\)?\\|ws\\|actions\\|explore"
>     "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$")
>    "Regexp matching GDB commands that enter a recursive reading loop.
>  As long as GDB is in the recursive reading loop, it does not expect



-- 
Yours sincerely, Vladimir Nikishkin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]