Page 1 of 1

-exec-jump support

Posted: Mon Nov 30, 2009 1:19 am
by ndk
Subj. Tested with gdb-7.0.50.20091128.

UPD: code needs rework

Re: -exec-jump support

Posted: Mon Nov 30, 2009 9:10 am
by eranif
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

Re: -exec-jump support

Posted: Mon Nov 30, 2009 10:43 am
by ndk
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

Re: -exec-jump support

Posted: Mon Nov 30, 2009 1:51 pm
by eranif
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

Re: -exec-jump support

Posted: Mon Nov 30, 2009 6:16 pm
by ndk
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

Re: -exec-jump support

Posted: Mon Nov 30, 2009 6:18 pm
by ndk

Re: -exec-jump support

Posted: Mon Nov 30, 2009 6:24 pm
by eranif
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