lncg / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Not all plugins are loading #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Windows XP (where I build and test EDB) everything works fine but when 
trying EDB on Windows 7 it doesn't load all the plugins.
The 32-bit version loads all plugins but CheckVersion. I thought it's some bug 
with that particular plugin but I had no idea what that could be.
Then I checked the 64-bit build and realized that it doesn't load ANY plugin 
but debugger core and session manger.

So I dug ount an older x64 build and found some interesting results:
- the old x64 is like the current x86 build (all but CheckVersion are loaded)
- new plugins + old exe = crash (must be a certain plugin using changed class 
layout)
- old plugins + new exe = crash (s.a.)
- old exe/plugins, replacing single working plugins with new ones = don't load 
anymore
- new exe/plugins, replacing single non-working plugins with old ones = no 
change

I can't really make any sense of this to be honest. The only angle I have is 
that just replacing old ones makes them disappear. But as far as how or why 
goes, no idea...

I prefer not to do debugging stuff on my normal machine, so before digging into 
this: Have you seen this before? I saw the plugin business is somewhat Qt area 
so maybe it's something with that. Or it's some funky Windows 7 UAC business I 
couldn't make up even if I wanted to.

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:22

GoogleCodeExporter commented 9 years ago
K, it was an error on my side.
For some reason the plugins needed a full rebuild, some of them imported 
non-existing imports from edb.exe
Why they would do that is beyond me, none of these functions were changed, and 
others didn't even exist in edb.exe at all.
Anyway, a full rebuild did it.

Oh, and on x86 it was a missing QtNetwork dll for CheckVersion :p

Original comment by evan.teran on 3 Oct 2012 at 5:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yea, I made a few minor changes to the plugin API. Specifically, I got rid of 
the "FunctionDB" plugin entirely, and replaced it with an XML file (currently 
in a resource) which gets loaded at startup. Eventually, I'll make it so an 
external XML file can be loaded too.

Bottom line is that some functions were removed. I am surprised that it caused 
other plugins to fail, but in the end, as you found out. A complete rebuild 
fixes the issue.

Thanks.

Original comment by evan.teran on 3 Oct 2012 at 5:15