Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote debugging automatically starts server(How to change it)
Remote debugging automatically starts server [message #1698419] Mon, 15 June 2015 09:04 Go to next message
Eclipse UserFriend
Hi,

I want to use eclipse to connect with qemu`s gdb server. All works fine but I want to step code (in my case u-boot) from it`s very first instruction.
Eclipse automatically send run command to gdb server, it is possible to do it so that it will stop at firs instruction?
Re: Remote debugging automatically starts server [message #1698603 is a reply to message #1698419] Tue, 16 June 2015 11:36 Go to previous message
Eclipse UserFriend
I think what you'll need to do is set a breakpoint earlier than 'main'. You can maybe use the function name '_start' (no quotes) to set a really early breakpoint.
You can set that breakpoint in two ways:

1- You can modify the first breakpoint used by Eclipse/CDT using the preference described here:
https://wiki.eclipse.org/CDT/User/FAQ#How_do_I_prevent_the_debugger_from_stopping_on_the_first_line.3F
Just replace "main" with "_start"

2- You can set a function breakpoint by going to the Breakpoints view menu and choosing "Add Function Breakpoint (C/C++)...", and typing "_start" as the function name.

I've tried this with remote debugging and it worked for me.

Marc
Previous Topic:Breakpoints removed by Eclipse Luna
Next Topic:HelloWorld not running
Goto Forum:
  


Current Time: Sun Jul 13 18:57:35 EDT 2025

Powered by FUDForum. Page generated in 0.04165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top