News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Debugger plugin issue when I click the "Setp into instruction"

Started by ollydbg, January 12, 2019, 02:26:31 AM

Previous topic - Next topic

ollydbg

Quote from: ollydbg on January 13, 2019, 05:36:39 PM
...

So, for our old way, we only need an ending "\n" char? I haven't tested yet.
if 1
disassemble 0x00401650
info frame
end


Oh, this also works, so a tiny patch can fix a big bug,  :)

src/plugins/debuggergdb/gdb_commands.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/debuggergdb/gdb_commands.h b/src/plugins/debuggergdb/gdb_commands.h
index 65bc040e..cbcbb5c6 100644
--- a/src/plugins/debuggergdb/gdb_commands.h
+++ b/src/plugins/debuggergdb/gdb_commands.h
@@ -1510,7 +1510,7 @@ class GdbCmd_DisassemblyInit : public DebuggerCmd
             else
                 m_Cmd << _T("disassemble ") << m_hexAddrStr << _T("\n") ;

-            m_Cmd << _T("info frame\n") << _T("end");
+            m_Cmd << _T("info frame\n") << _T("end\n");
         };

         void ParseOutput(const wxString& p_output)


EDIT: can you test this patch on Linux system?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

Yes, I can... please remind me in a few days if I don't answer...
(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!]

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

(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!]

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.