tags:

views:

80

answers:

2

When I step through a debugging session with gdb, it prints out some information for me. How do I stop this. Here's an example:

Breakpoint 1, 0x100000d4 in ?? ()
(gdb) si
0x100000d8 in ?? ()
(gdb) si
0x100000dc in ?? ()
(gdb)

Here I want to remove the lines that say 0x100000d8 in ?? (). I can't find anything in the documentation about suppressing this output. Any ideas?

Thanks Tim

+1  A: 

you can suppress printing the 0x100000d8 with set print address off. looking at the source (search for static void print_frame (...)), i don't think that suppressing the rest possible.

ax
A: 

A bit arcane solution is to define a function that turns on "logging redirect", then steps the instruction and lastly, turns off logging. Example:

define stepix
   set logging redirect on
   set logging file /tmp/whatever
   set logging on
   si
   set logging off
end

but that solution will suppress all output, not just the 0x100000d8 in ?? (). Might not fit your need/taste. I don't think suppressing that output is possible.

Olof