User forums > Using Code::Blocks

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

<< < (4/5) > >>

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.

--- Code: ---if 1
disassemble 0x00401650
info frame
end
--- End code ---

--- End quote ---

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


--- Code: --- 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)

--- End code ---

EDIT: can you test this patch on Linux system?

oBFusCATed:
Yes, I can... please remind me in a few days if I don't answer...

ollydbg:

--- Quote from: oBFusCATed on January 13, 2019, 06:48:37 pm ---Yes, I can... please remind me in a few days if I don't answer...

--- End quote ---
Ping.  ;)

oBFusCATed:
Seems to work...

ollydbg:

--- Quote from: oBFusCATed on January 23, 2019, 08:31:08 am ---Seems to work...

--- End quote ---
Thanks!
I will commit this asap.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version