Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: How to interrupt a stepping GDB ?
@ 2006-06-20 12:24 Daniel Jacobowitz
  2006-07-03 18:28 ` Jim Blandy
  0 siblings, 1 reply; 26+ messages in thread
From: Daniel Jacobowitz @ 2006-06-20 12:24 UTC (permalink / raw)
  To: Sascha; +Cc: gdb

On Sun, Jun 18, 2006 at 11:55:19AM +0200, Sascha wrote:
> On a local, fast machine this might be okay. But on a (slow) remote target,
> stepping a loop like this will take minutes or hours because GDB sends
> thousands or even millions of step commands until a == 0;

[The correct fix for this is to add a "step range" packet, which will
speed up the process immensely.  As it happens, I hope to do that for
the next version of GDB after 6.5.]

> Now the question: If I notice such a case - how can I interrupt GDB? If I
> notice that the stepping would take a long time I'd rather interrupt GDB and
> set a breakpoint on the next line. CTRL-C does not work. And waiting hours
> or shutting down GDB is no acceptable.

Breakpoint 1, main () at loop.c:3
3         int a = 200000;
(gdb) s
4         for (; a; --a);
(gdb) n

Program received signal SIGINT, Interrupt.
0x000000000040043c in main () at loop.c:4
4         for (; a; --a);

CTRL-C works for me...

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


^ permalink raw reply	[flat|nested] 26+ messages in thread
* How to interrupt a stepping GDB ?
@ 2006-06-19  2:13 Sascha
  0 siblings, 0 replies; 26+ messages in thread
From: Sascha @ 2006-06-19  2:13 UTC (permalink / raw)
  To: gdb

Hello,

I've got a question about GDB and the "next/step" command.

Situation:
The debugger stopped at the C instruction:
"for (; a; --a);"

This is a simple loop counting down to zero.

If you "next", GDB will step through that loop until a == 0.

On a local, fast machine this might be okay. But on a (slow) remote target,
stepping a loop like this will take minutes or hours because GDB sends
thousands or even millions of step commands until a == 0;

Now the question: If I notice such a case - how can I interrupt GDB? If I
notice that the stepping would take a long time I'd rather interrupt GDB and
set a breakpoint on the next line. CTRL-C does not work. And waiting hours
or shutting down GDB is no acceptable.

Thanks

Sascha


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

end of thread, other threads:[~2006-07-03 19:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 12:24 How to interrupt a stepping GDB ? Daniel Jacobowitz
2006-07-03 18:28 ` Jim Blandy
2006-07-03 19:20   ` Mark Kettenis
  -- strict thread matches above, loose matches on Subject: below --
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha
2006-06-19  2:13 Sascha

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