This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Insight and mingw GUI-programs


Keith Seitz wrote:

On Mon, 2004-05-03 at 12:39, Zbynek Winkler wrote:


Hello, I am writing in response to http://sources.redhat.com/ml/insight/2004-q1/msg00078.html, because I am experiencing the same problem - cygwin version of insight cannot find source to a binary compiled with mingw. GDB finds the debug info and the output of "tk gdb_loc main" is "../util/test.cpp main ../util/test.cpp 13 0x0040ad9f 0x0040ad9f {}" which is not where the source is located.



What does "info func main" give (type in the console window)?


It is at the end of the email.

If it is not correct, you are experiencing a problem with gdb or with the
compiler.


It is not correct. It is not even consistent with itself - ie. if there is "File ../util/test.cpp:" for the main, there should be "File ../controller/MoveTest.cpp:" for the others instead of "File controller/MoveTest.cpp:".

Where is the source located if not in ../util/test.cpp?


The binary is located at "_build\controller\gcc\debug\arit-double\" and the source is at "util\test.cpp" and "controller\MoveTest.cpp" and others (paths relative to the root of my project). How do I know if it is the compiler or the debugger? Could it be related to the fact that "mingw/bin" directory is in my path? Maybe some version mismatch between cygwin gdb and mingw gdb? How does insight locate the debugger?

Zbynek

(gdb) info func main
All functions matching regular expression "main":

File controller/EsterSimul.cpp:
int EsterSimul::main();

File util/Thread.cpp:
int Main::main();

File ../util/test.cpp:
int main(int, char **);
static void _GLOBAL__D_main(void);
static void _GLOBAL__I_main(void);

File controller/MoveTest.cpp:
int Monitor::main();
int move::Async<num::AngleT<num::Double> >::main();
int move::Async<num::Dist>::main();

Non-debugging symbols:
0x00000000  _ZNSt12domain_errorD0Ev
0x00000000  _ZNSt12domain_errorD1Ev
0x00401000  _mingw32_init_mainargs
0x00401240  mainCRTStartup
0x5a04f31b  RtlEqualDomainName
0x5a04f31b  ntdll!RtlEqualDomainName
0x6fbc13f0  __main
0x77c1ee40  _wgetmainargs
0x77c1ee40  msvcrt!__wgetmainargs
0x77c34f06  _getmainargs
0x77c34f06  msvcrt!__getmainargs


-- http://zw.matfyz.cz/ http://robotika.cz/ Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]