Mail Archives: djgpp/2002/01/04/11:44:07
> From: "Alex Oleynikov" <alex AT compuweigh DOT com>
> Date: Fri, 4 Jan 2002 09:35:10 -0500
>
> >Is it possible that you have a global symbol (a variable or a
> >function) by the same name in that program, or in some library the
> >program calls? What does the following GDB command print?
> >
> > (gdb) info address search_cond
> >
> >Also, if you type "info variables" at GDB's prompt, does it mention
> >search_cond in the list it prints?
>
> No variable named search_cond is present in the namespace of the debugger. I
> also searched all third-party libraries that I use in my program and didn't
> find anything either.
Are you _absolutely_ sure? Did you try the GDB command I suggested
above?
> >Also, what debug switch did you use to compile? Was it -g, -gstabs,
> >or something else?
>
> I use -g3 and -ggdb3 switches
If this is GCC 3.0.2 or later, -ggdb3 means the debug info is in the
DWARF2 format. It's possible that your version of RHIDE doesn't yet
support DWARF2 debug info very well. So I suggest to rebuild with
the -gstabs+ option instead of -ggdb3, and see if that helps.
> >If the program is a C++ program, it's possible that the offending
> >symbol comes from some C++ class.
>
> I have both .C and .CPP files in the project, but the problems occurrs in
> any of them if define a function with such argument.
What, you mean you can post a short test C program which could be
compiled and used to reproduce the problem? If so, please post such
a program here.
- Raw text -