Author Topic: gdb plugin, architecture dependency?  (Read 3710 times)

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
gdb plugin, architecture dependency?
« 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 ([^;]*)"));

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13005
    • Travis build status
Re: gdb plugin, architecture dependency?
« Reply #1 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...
(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!]