[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debugging C++ with GDB

On Sat, 1 May 1999, Martin Lucina wrote:

> Hi,
> Has anyone here successfuly used gdb to debug C++ code? On my AS200 running
> slink, gdb can't seem to find any useful symbols in the executable and then
> keeps talking about hitting heuristic-fence-post...

Make sure to compile your C++ program with -g, and don't strip(1) it before
you use gdb on it...

-- Bob

  "Those who would give up essential Liberty, to purchase a little 
       temporary Safety, deserve neither Liberty nor Safety."
                 -- Benjamin Franklin 

Bob McElrath (rsmcelrath@students.wisc.edu) Univ. of Wisconsin at Madison

Reply to: