wxWidgets and GDB (the GNU project debugger) Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Pier Simon Tilma
Earned a small fee
Earned a small fee
Posts: 11
Joined: Tue Mar 10, 2020 4:52 pm

wxWidgets and GDB (the GNU project debugger)

Post by Pier Simon Tilma »

Anjum, 26 september 2020,

Hello,

On my system GDB (The GNU Project Debugger) can
be launched from my wxWidgets application with wxExecute().

Now from that application I would like to do the following :
Type a GDB debugger command in a wxTextCtrl. On ENTER
this command should be processed by the GDB console application.

How can you do this ?

System : CodeBlocks, UBUNTU, GCC, wxWidgets, GDB

Regards Pier Simon Tilma
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWidgets and GDB (the GNU project debugger)

Post by doublemax »

In principle this should work using wxProcess::Redirect()
https://docs.wxwidgets.org/trunk/classw ... 8516c2c348

Check the "exec" sample that comes with wxWidgets.
Use the source, Luke!
Pier Simon Tilma
Earned a small fee
Earned a small fee
Posts: 11
Joined: Tue Mar 10, 2020 4:52 pm

Re: wxWidgets and GDB (the GNU project debugger)

Post by Pier Simon Tilma »

Anjum, 28 september 2020

Hello doublemax,

I checked the "exec" sample and found exactly what
I needed.

Thank you and regards
Pier Simon Tilma
Post Reply