Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

gdb plugin, architecture dependency?

(1/1)

cbexaminr:
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: ---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 ([^;]*)"));

--- End code ---

oBFusCATed:
Probably it would break on other targets...
If someone reports it as a problem it will be fixed...

Navigation

[0] Message Index

Go to full version