-exec-jump support

Discussion about CodeLite development process and patches
ndk
CodeLite Enthusiast
Posts: 10
Joined: Sun Jun 14, 2009 6:58 pm
Contact:

-exec-jump support

Post by ndk » Mon Nov 30, 2009 1:19 am

Subj. Tested with gdb-7.0.50.20091128.

UPD: code needs rework
Last edited by ndk on Mon Nov 30, 2009 1:04 pm, edited 1 time in total.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: -exec-jump support

Post by eranif » Mon Nov 30, 2009 9:10 am

Hi,

Can you please provide some information on what this command does?
This is the first time I see it, and I could not find any documentation for it on the web.
In addition, it does not exist in gdb 6.8

Thanks,
Eran
Make sure you have read the HOW TO POST thread

ndk
CodeLite Enthusiast
Posts: 10
Joined: Sun Jun 14, 2009 6:58 pm
Contact:

Re: -exec-jump support

Post by ndk » Mon Nov 30, 2009 10:43 am

eranif wrote:Hi,

Can you please provide some information on what this command does?
This is the first time I see it, and I could not find any documentation for it on the web.
In addition, it does not exist in gdb 6.8

Thanks,
Eran
gdb >= 7.0 required
http://sourceware.org/gdb/current/onlin ... djump-1774
http://sourceware.org/ml/gdb-patches/20 ... 00138.html
http://sourceware.org/ml/gdb-patches/20 ... 00590.html

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: -exec-jump support

Post by eranif » Mon Nov 30, 2009 1:51 pm

On my machine with gdb7.0 it:
- several cases cause gdb crash
- in other cases, the program exited

In addition, many people are still using gdb 6.8 (mostly Linux users) - did u test it with gdb < 7.0?
I am also planing to add support for reverse debugging, but first I need to add mechanism to detect the gdb version, once this is created - you can use it to decide whether this feature should be enabled or not.

Also: You mentioned that you are using gdb 7.0.5, however at SF site, the latest build is 7.0.2, question: where can I get this gdb from?

Eran
Make sure you have read the HOW TO POST thread

ndk
CodeLite Enthusiast
Posts: 10
Joined: Sun Jun 14, 2009 6:58 pm
Contact:

Re: -exec-jump support

Post by ndk » Mon Nov 30, 2009 6:16 pm

eranif wrote:On my machine with gdb7.0 it:
- several cases cause gdb crash
- in other cases, the program exited
W7 x64 + codelite from trunk + tdm mingw 4.4.1 + gdb-7.0.50.20091128 - all ok
Where i can download your debugger for testing?
In addition, many people are still using gdb 6.8 (mostly Linux users) - did u test it with gdb < 7.0?
I am also planing to add support for reverse debugging, but first I need to add mechanism to detect the gdb version, once this is created - you can use it to decide whether this feature should be enabled or not.
it may be like this:
class IDebugger;
class IDebugger2: public IDebugger
class IDebugger3: public IDebugger2

static std::auto_ptr<IDebugger> GetDebugger();
static std::auto_ptr<IDebugger2> GetDebugger2();
static std::auto_ptr<IDebugger3> GetDebugger3();
Also: You mentioned that you are using gdb 7.0.5, however at SF site, the latest build is 7.0.2, question: where can I get this gdb from?
I build gdb itself with tdm mingw 4.4.1 + last msys. Nothing special:
./configure --prefix=/usr
make all install

ndk
CodeLite Enthusiast
Posts: 10
Joined: Sun Jun 14, 2009 6:58 pm
Contact:

Re: -exec-jump support

Post by ndk » Mon Nov 30, 2009 6:18 pm


User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: -exec-jump support

Post by eranif » Mon Nov 30, 2009 6:24 pm

This is the one I am using:

http://sourceforge.net/projects/mingw/f ... z/download

As a rule, I am always delivering official releases and not weekly / custom builds.

For this reason, codelite will come with gcc4.4.0 (oficial release) and gdb 7.0.2 (in the next release) - unless the MinGW team will release new content until I will release the next codelite version (in 2 weeks time or so)

The inheritance solution is not good, since codelite is the one who is using the interface, so there should be a method something like 'isFeatureEnabled()'

Eran
Make sure you have read the HOW TO POST thread

Post Reply