Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

[PATCH] GDB under Linux

(1/3) > >>

HillClimber:
Hi,

Berlios has locked out my account, and won't re-set it, so I'd appreciate if someone would submit the attached patch for me.

With the stock nightly builds, I was not at all able to use GDB to debug a multi-project application on Linux (Ubuntu/Edgy).  I had to make several fixes to the debuggergdb source to get it to work for me.  I hope the patch is useful.

Here is a list of what I fixed From svn revision 3466:

- Fixed bug which prevented setting breakpoints in sub-projects, by deleting
  code to make file paths relative, as suggested by CB developer.
- Added various comments to document my understanding of what some variables should represent.
- Added ASSERT statement and HasDriver routine to help track down intermittent crash
  due to unsafe use of GetDriver() return value.
- Modified Continue() to use appropriate GDB command (cont, run, or start) depending on program state.
  This allows use of "do not run" configuration feature.
- Fix for (non-)use of m_BreakOnEntry.
- Fixed "Stop" command so it can break the running program

Thanks!

-HC

[attachment deleted by admin]

killerbot:
see also here : http://forums.codeblocks.org/index.php?topic=4841.msg37904#msg37904

It seems it was not just commenting out the else branch, it ?should? be replaced with 3 other lines of code.

I have no much knowledge on how GDB works, so I can't judge if it is correct or not. Feel free to have a look at the other changes/suggestions made in the other thread.
I feel that with both these changes we might improve the debugging quality of CB ..... NICE :-) :-)

Let's hope Don Corleone finds some time to process the patches.

I will try to register your patch in berlios (first attempt failed, berlios seems to be down again).

Phatency:

--- Quote from: killerbot on January 09, 2007, 07:35:34 am ---I feel that with both these changes we might improve the debugging quality of CB ..... NICE :-) :-)

--- End quote ---
I've been able to debug ~5% of the time, because usually I'm writing libraries in my multiproject. Those changes would turn it to 100%. Calling that an "might be improvement" sounds a bit belittling to me (you know, debugging is quite annoying feature when you can't actually use it in your environment).

killerbot:
patch submitted to berlios (so not yet applied !)

mareq:
When will be this patch added to nightly build? I need it, too.

Navigation

[0] Message Index

[#] Next page

Go to full version