public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/24788] Add support for 'reverse-until'
       [not found] <bug-24788-4717@http.sourceware.org/bugzilla/>
@ 2023-11-29  9:37 ` blarsen at redhat dot com
  0 siblings, 0 replies; only message in thread
From: blarsen at redhat dot com @ 2023-11-29  9:37 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=24788

Guinevere Larsen <blarsen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blarsen at redhat dot com
           Keywords|                            |good-first-bug
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-11-29

--- Comment #1 from Guinevere Larsen <blarsen at redhat dot com> ---
Right now you can use 'set exec-direction reverse' and then 'until <line>' to
execute the inferior until a desired line, but if you try to use 'until' with
no arguments, it will run to the end of the function (or execution history)
instead of leaving a loop.

Meaning this is effectively 2 bugs: we need to fix the execution with no
parameters, and we need a new command that will automagically set the execution
direction and reset- it afterwards (like 'reverse-next').

Ideally, these problems should be solved in order, so it doesn't feel like we
have a "half-baked" feature, but if someone were to submit a patch that makes
until error out on the first condition (executing in reverse and called with no
arguments) and adds the command, I think it would already be an improvement
over current behaviour.

Seeing as this new command shouldn't be too difficult to implement, I'm marking
this as a good-first-bug.

I filed a second bug for the 'until' changes, 
https://sourceware.org/bugzilla/show_bug.cgi?id=31094

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-29  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-24788-4717@http.sourceware.org/bugzilla/>
2023-11-29  9:37 ` [Bug cli/24788] Add support for 'reverse-until' blarsen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).