Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Running a gdb command on existing gdb process
Running a gdb command on existing gdb process [message #1817618] Tue, 26 November 2019 19:37 Go to next message
Eli Kakoun is currently offline Eli KakounFriend
Messages: 16
Registered: November 2018
Junior Member
Hi,

I have a debugger plugin for debugging c code over eclipse.
I want to run a gdb command to run upon a specific trigger.

How can I do that?

This is the code I use to create the gdb process:

ILaunchConfigurationWorkingCopy wc = CSELaunchManager.createDebugLaunchConfiguration(pm, projectName,
resource, port, gdbPath);

try {
this.next("Saving process configuration");
wc.doSave();
this.next("Attaching to process on port '" + port + "'");
wc.launch(ILaunchManager.DEBUG_MODE, null);
debugSessions.add(wc);
}
Re: Running a gdb command on existing gdb process [message #1817629 is a reply to message #1817618] Wed, 27 November 2019 01:57 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
The GDB interface that comes with 2019-09 can perform actions at a breakpoint
One of which is to execute a GDB command.
You can also make them conditional.

Are you writing your own debugger interface?
If you are, why not look at the code that comes with CDT?
Previous Topic:Eclipse Can't Find Clang
Next Topic:Preventing GDB from loading ELF
Goto Forum:
  


Current Time: Fri Apr 26 01:17:46 GMT 2024

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

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

Back to the top