Replies: 7 comments 5 replies
-
OK, I think I might have finally been able to figure out my problem. You do indeed need to map that image000... to the exe. And you'll also need to manually place a breakpoint at the start of the program's execution. And lastly, after you start the execution, you have to go back to that breakpoint and double click it to turn it on, since every single time you run it, it starts off in a disabled state. A bit of a mess but hopefully this helps someone else.. |
Beta Was this translation helpful? Give feedback.
-
OK, a follow up question - while it's now stepping through fine, I'm unable to see the values of the majority of variables, as they're throwing IllegalArgumentExceptions: Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
I think this might be one for @nsadeveloper789 - he designed this feature and was fixing related issues recently. @smerriman - what version of Ghidra are you running? I ask as I'm not seeing this behavior in master - will check 10.3.2, but am pretty sure there's already a fix in for this. |
Beta Was this translation helpful? Give feedback.
-
I've got some questions too about this whole debugging stuff Ghidra can do. Excuse me, but what do you think of this error message? The context: I'm exploring the possible debugging scenarios in my Windows Ghidra 10.3.2 and the first one is the I enter my MinGW gdb path there and get this useless error message. Then I replace |
Beta Was this translation helpful? Give feedback.
-
@Nemoumbra Hitting that "Details >>>" button and sending us the stack trace would be very very helpful. |
Beta Was this translation helpful? Give feedback.
-
Wow, ok - that is spectacularly uninformative. :) The immediate thing that confuses me is the JNA error, given our implementation of the gdb agent doesn't use JNA directly. Any chance you could walk me through the exact steps you took? I.e. did Targets->Connect throw this error immediately? One thing to try for sure - try using double-slashes in your path (Java is not a fan of the backslash). |
Beta Was this translation helpful? Give feedback.
-
@smerriman OK, spoke with @nsadeveloper789 - he confirmed this is a know issue. Basically, the fact that you're running a WOW target means that 32-bit registers are not being identified correctly in a 64-bit space. We have a ticket in to fix it - will keep you posted. |
Beta Was this translation helpful? Give feedback.
-
I am working through the termmines tutorial in Ghidra's documentation and cannot get the debugger to work no matter what I try.
After creating a project and importing termmines.exe, I open the debugger, analyze the file (this shows me the static listing and decompiled code fine), and then connect to dbgeng locally IM-VM. I first get an error about the mapping not existing:
Have hunted through some past threads on this and saw recommendations about finding the process in the modules window, but there's only one thing in there and if I try mapping it, it doesn't help:
If I instead hit f5 / press the resume button in the Objects window, more things appear in the interpreter:
And then f5 again, a lot more:
Only now does termmines.exe open in a separate command prompt. While I can play the game, the resume / step into etc buttons are now all greyed out in the Objects window, and the dynamic window is showing some contents of ntdll.dll, so I can't use the debugger at all to see what's going on in the program itself.
Still nothing that looks like termmines.exe in the modules window either:
I feel like I must be missing something fundamental, and have been going through all past support threads, but haven't been able to find anything that has helped.
Beta Was this translation helpful? Give feedback.
All reactions