JRM 107 Practically a Master Poster

This is a great group!

My next hassle is the care and feeding of gdb-or at least to get it to work right.

I have a program that has a custom header which contains a bug. The program is either running wild or locking up. there is no output. I know this only by having to resort to CTRL-c
and gdb always reports stopping at the same function.
Otherwise no helpful output from gdb. the next and step commands do nothing.

I compiled the program using debug options
g++ -go mycode mycode.cpp

then: gdb ./mycode

break mycode_badfunction()

run


Tthis doesn't get me anywhere either!
still locks up.

Anyone know what I'm doing wrong?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.