
I'm sorry, due to inattention I did send my last Email only to Gail.
Gail Banaszkiewicz wrote: The thing I had the hardest time with was debugging because I could not get gdb to load the symbol file. Having the symbols directly in the exe solved that. What did you do to get it to work? (Alternatives are always good for the Wiki page.)
I'm very far to bring it to work, yet :-(. But if I, then I will documented it for the community.
To build, you can just have btool run inside eclipse. The console will capture the output. However, you cannot click the error and go to that place in the source. So you don't gain much as opposed to building on the command line. It's just a bit more automated. Did you manage to build on the command line?
Yes, I have build on the command line. The project handling in eclipse looks very strange for me. I don't know how I can integrating btool into eclipse. But the command line build work fine, so I can live with it. My goal is that I can debug inkscape with full source code support.
Later in your email you said that you did manage to build... so for debugging, add -g for the flags, and change strip=true to strip=false...
I have change strip=true to strip=false in the build.xml. Now the size of inkscape.exe is 212.158.983Byte. The debugger run and stop at src\main.cpp:388. So far, so good. But where is the source code? The "Disassembly" window show only this:
<source line is not available> 0x00403f90 <main>: lea 0x4(%esp),%ecx 0x00403f94 <main+4>: and $0xfffffff0,%esp 0x00403f97 <main+7>: pushl 0xfffffffc(%ecx) 0x00403f9a <main+10>: push %ebp 0x00403f9b <main+11>: mov %esp,%ebp 0x00403f9d <main+13>: push %edi . . . Why "<source line is not available>"?????? And where is the source code editor? Damn it! Sorry, it's very frustrating for me and it's 01:30 in the night. I think, it's time to go sleep.
Gail Banaszkiewicz wrote: A message for when you wake up then :) (Also, I had a HECK of a time getting it all to work too, so I feel your pain - sorry I wasn't able to save you from it.)
Oh, you give me the feeling that I'm not alone. That is very nice. I must thank you. Your hints were helpfully for me.
Ok, so I think your problem probably has to do with setting up "search paths." In the debug configuration window (I'm using "C/C++ Local Application"), go to the "Source" tab. Add the inkscape\src folder. Hopefully that should do it.
Yes,I think too. I have try it. But if I enter e.g. R:\a\svn\inkscape\src I couldn't believe my eyes, Eclipse write out: --8<------------------------- Warning: /a/svn/eclipse/InkscapeDbg;R: No such file or directory. Warning: /a/svn/inkscape/src;R: No such file or directory. Warning: R:\svn\eclipse\InkscapeDbg/R: No such file or directory. --8<------------------------- Crazy, isn't it? "R:\a\svn\eclipse" is my workspace and "InkscapeDbg" the project name.
Sounds like I should write that Wiki page sooner rather than later :) Just have to get past crunch time since classes are over next week and there's lots to do.
I wish you a successful next week. Don't let me keep you. It's springtime and in my garden wait a great pile of work for me.
See you later Bernd