User forums > Help

Debugger Help-stepping through a program without going into other files.

<< < (2/3) > >>

Jenna:

--- Quote from: verthex on July 15, 2011, 01:46:02 am ---So basically there is no way to turn it off?

--- End quote ---

--- Quote from: jens on July 14, 2011, 07:37:20 pm ---This can happen, if you use "Step into" instead of "Next line".

--- End quote ---

If you really do that, this is the expected behaviour.
"Step into" means step into the function you call (if possible) and a constructor is a function (obviously), the same would happen for all function with a "reachable" implemantation (e.g. most likely inline-functions).
So you should use "Next line" in most cases (if you don't want to debug the called functions).

And as oBFusCATed wrote:

--- Quote from: oBFusCATed on July 14, 2011, 06:11:07 pm ---And as far as I know there is no way to black list functions for the step into command in GDB.

--- End quote ---

verthex:

--- Quote ---So you should use "Next line" in most cases (if you don't want to debug the called functions).
--- End quote ---

By pressing F7 which is what I explained above and that's the problem I'm having.

ollydbg:

--- Quote from: verthex on July 15, 2011, 08:05:24 am ---
--- Quote ---So you should use "Next line" in most cases (if you don't want to debug the called functions).
--- End quote ---

By pressing F7 which is what I explained above and that's the problem I'm having.

--- End quote ---
In you menu->Debug
F7 is assigned to "Next Line" or "Step into"?

verthex:

--- Quote ---In you menu->Debug
F7 is assigned to "Next Line" or "Step into"?
--- End quote ---

F7 - Next Line.
Shift-F7 Step into.

My gdb version is 6.8.

ollydbg:

--- Quote from: verthex on July 15, 2011, 08:22:54 am ---
--- Quote ---In you menu->Debug
F7 is assigned to "Next Line" or "Step into"?
--- End quote ---

F7 - Next Line.
Shift-F7 Step into.

My gdb version is 6.8.

--- End quote ---
Your code works fine on my PC (mingw 4,5, gdb 7.2)

I guess mostly your gcc or gdb has some problem, so, you should try a recent ones.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version