I dont know the answer, sa I do not have that scenario myself.

It would help, if you can specify which commands, to send to gdb, if you run gdb outside lazarus.

In Lazarus, There is also Menu: "Run" > "Run Parameter" which allaws to set the "Host application". That is the exe gdb should debug, e.g. if your project is a library, and you nneed to specify an exe that loads the library.

-----------------
No idea about "monitor".
But the IDE has 2 "developer" modes.(They are for developing the gdb integration. They allow directly sending commands to GDB, without checking them. However sending the wrong command, and your IDE/GDB communication breaks, and you loose the debug session.
Sending commands only works, when the app is paused.

You need to define
DBG_WITH_DEBUGGER_DEBUG
DBG_WITH_GDB_WATCHES
and then recompile the IDE

DBG_WITH_DEBUGGER_DEBUG
There will be an TEdit at the bottom of the "Debug Output" Window. It can be used to send command

DBG_WITH_GDB_WATCHES
You can enter special watches, that will execute. They must start with a ">" (You can use the eval/modify window)
>ptype ToOo


Warning: In both cases, sending any command that performs running/stepping, and the IDE willloose the session.



On 21/05/2014 11:21, Koenraad Lelong wrote:
Hi,

I'm trying to use lazarus as a debugging-frontend for arm-embedded.
I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor.
My next step is to configure lazarus to debug the code.
When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port 3333. Which is the port openocd uses to let the debugger have control.

I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine.

P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip.

Thanks,

Koenraad..

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to