Hi,
Firstly I'm new to MCUXpresso!...
I have built one of the demo SDK examples for the 'i.MX RT 1170' (https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1170-eva... and am able start and debug via a LinkServer Debug Configuration.
By default, the debugger stops at the first executable statement in main().
I would then like the debug session to execute a 'script', such as a .gdb file.
I tried creating a file for the 'GDB command file' under the 'GDB Debugger' tab of my Debug Configuration, but always fails with:
<edited>
Error in final launch sequence:
Failed to execute MI command:
source .gdb
Error message from debugger back end:
.gdb:2: Error in sourced command file:
The program is not being run.
So the .gdb file does get used, even for a LinkServer seesion
Thank you for help you can provide.
已解决! 转到解答。
Thank you TIC!
I have had a look at the User Guide but I don't think it provides much help for working with gdb.
In the end I believe this is simply that 'run' is not a valid command to use in a gdb script (i.e. .gdbinit).
'run' is achieved by unchecking 'Debug configurations -> Startup -> Run Commands -> Set breakpoint at:'
Regards.
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd recommend you try to refer to the MCUXpresso IDE User Guide.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Thank you TIC!
I have had a look at the User Guide but I don't think it provides much help for working with gdb.
In the end I believe this is simply that 'run' is not a valid command to use in a gdb script (i.e. .gdbinit).
'run' is achieved by unchecking 'Debug configurations -> Startup -> Run Commands -> Set breakpoint at:'
Regards.