News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

gdb tutorials

Started by grv575, August 16, 2005, 06:36:53 AM

Previous topic - Next topic

grv575

Know of any good links to get started with gdb?  Tutorials, quickrefs,...

rickg22

your friends:

gdb> run

(oooh a crash!)

gdb> bt

gdb> frame 1
(switches to stack frame #1)

gdb> print mylocalvar

(shows you some pointer to an object, to say an example)

gdb> print mylocalvar->something()

I don't know how to set breakpoints.. yet :P



Funto

There is a nice GDB tutorial provided with Dev-C++ (:roll:), made by Richard Stallman himself ^^

rickg22

why not ask him to refurbish it? :P "Code::Blocks. No proprietary compilers required" lol

Funto

Hmm about debugging in C::B...
Is it possible to debug and watch variables as we can do with VC++? I mean, without having to add manually the variable name in the "Watch" tab...

mandrav

Quote from: Funto on August 17, 2005, 10:42:33 AM
Hmm about debugging in C::B...
Is it possible to debug and watch variables as we can do with VC++? I mean, without having to add manually the variable name in the "Watch" tab...

You can place the editor caret over the variable's name you want to watch and [right-click->Watch 'your var'].
Or you can provide more info on what you 'd like to do...

Yiannis.
Be patient!
This bug will be fixed soon...