News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

how to support scanf of semihosting in the codeblocks?

Started by mmkider, June 19, 2009, 07:35:32 AM

Previous topic - Next topic

mmkider

In the codeblocks, printf of semihosting can be print to debugger(Debug) window.
I try to use  " send user command to debugger " to send some input into gdb.
But it's not success.

How to do this?
thank you.

ollydbg

Not fully understand.

What does "semihosting" means?
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.

mmkider

Quote from: ollydbg on June 19, 2009, 08:16:34 AM
Not fully understand.

What does "semihosting" means?

In the embedded development, codeblocks use remote gdb protocol to debug program in the arm board.
If user enable semihosting control, he can get printf and scanf capability.
Now I can get print message via semihosting control, but I don't have any idea to use scanf.



ollydbg

Oh, Thanks for explanation. But I'm totally new to "remote debug". :(

Maybe, you can dig into the debuggergdb plugin source, and locate the reason. :D
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.