News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

gdb plugin, architecture dependency?

Started by cbexaminr, October 15, 2010, 03:02:12 AM

Previous topic - Next topic

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:

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



oBFusCATed

Probably it would break on other targets...
If someone reports it as a problem it will be fixed...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]