Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* operate-and-get-next is off by one
@ 2002-04-20 22:02 Daniel Jacobowitz
  2002-04-21 12:34 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-04-20 22:02 UTC (permalink / raw)
  To: gdb

It appears to be "operate-and-get-command-after-next" right now.  It's
skipping every other command...

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: operate-and-get-next is off by one
  2002-04-20 22:02 operate-and-get-next is off by one Daniel Jacobowitz
@ 2002-04-21 12:34 ` Tom Tromey
  2002-04-21 12:52   ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2002-04-21 12:34 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:

Daniel> It appears to be "operate-and-get-command-after-next" right
Daniel> now.  It's skipping every other command...

What system?  How are you invoking gdb?

I updated and rebuilt gdb from scratch on x86 Linux (RHL 6.2).
operate-and-get-next seems to work fine in my simple test:

    p 1
    p 2
    p 3
    C-n C-n C-n
    C-o C-o

If you can tell me a simple way to reproduce the problem I will look
at it.

Tom


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: operate-and-get-next is off by one
  2002-04-21 12:34 ` Tom Tromey
@ 2002-04-21 12:52   ` Daniel Jacobowitz
  2002-04-21 12:57     ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-04-21 12:52 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb

On Sun, Apr 21, 2002 at 01:30:14PM -0600, Tom Tromey wrote:
> >>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:
> 
> Daniel> It appears to be "operate-and-get-command-after-next" right
> Daniel> now.  It's skipping every other command...
> 
> What system?  How are you invoking gdb?
> 
> I updated and rebuilt gdb from scratch on x86 Linux (RHL 6.2).
> operate-and-get-next seems to work fine in my simple test:
> 
>     p 1
>     p 2
>     p 3
>     C-n C-n C-n
>     C-o C-o

You mean C-p, I assume...

> If you can tell me a simple way to reproduce the problem I will look
> at it.

I can no longer reproduce the exact sequence, unfortunately.  It was
an interaction with 'commands'; I was trying to reset the commands of
a breakpoint.  Now when I try it simply skips all the '>' prompts, and
leaves the command after 'commands' at the (gdb) prompt after I type
'end'.  It would be very convenient if C-o worked at the > prompt also,
since everything you type there makes it into the command history.

If I reproduce the original problem again I'll let you know.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: operate-and-get-next is off by one
  2002-04-21 12:52   ` Daniel Jacobowitz
@ 2002-04-21 12:57     ` Tom Tromey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2002-04-21 12:57 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:

>> p 1
>> p 2
>> p 3
>> C-n C-n C-n
>> C-o C-o

Daniel> You mean C-p, I assume...

Yeah, sorry about that.

Daniel> It would be very convenient if C-o worked at the > prompt
Daniel> also, since everything you type there makes it into the
Daniel> command history.

I agree.  I'm a bit surprised it doesn't, but I'm also a bit
unsurprised since the command-line handling code is really quite
baroque.  I'll put this on my to-do list, but I can't promise to look
at it in a timely way :-(.

Tom


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-21 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-20 22:02 operate-and-get-next is off by one Daniel Jacobowitz
2002-04-21 12:34 ` Tom Tromey
2002-04-21 12:52   ` Daniel Jacobowitz
2002-04-21 12:57     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox