Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: cbexaminr on October 15, 2010, 03:02:12 am

Title: gdb plugin, architecture dependency?
Post by: cbexaminr on October 15, 2010, 03:02:12 am
with regard to the wxpropgrid_debugger branch... (but the patterns below also appear to be in current trunk)...

I think eip/rip references are x86 architecture dependent.  Isn't this going to cause problems, failing to function properly on other architectures?

In src/plugins/debuggergdb/gdb_commands.h, the following patterns reference those registers:
Code: [Select]
static wxRegEx reDisassemblyInitSymbol(_T("[ \t]*[er]ip[ \t]+=[ \t]+0x[0-9a-f]+[ \t]+in[ \t]+(.+)\\((.+):[0-9]+\\);"));
//TBD: Is 'rip'/'eip' portable?
static wxRegEx reDisassemblyInitFunc(_T("eip = (0x[A-Fa-f0-9]+) in ([^;]*)"));

Title: Re: gdb plugin, architecture dependency?
Post by: oBFusCATed on October 15, 2010, 12:37:14 pm
Probably it would break on other targets...
If someone reports it as a problem it will be fixed...