Re: Graphical debugger for C/C++ ?

2018-10-22 Thread Kevin Chadwick

On 10/21/18 4:49 PM, Edgar Pettijohn III wrote:

I wanted to give cgdb a shot. How do I make sure its using egdb?


cgdb --help
cgdb -d egdb



Re: Graphical debugger for C/C++ ?

2018-10-21 Thread Edgar Pettijohn III



On 10/11/18 10:40 AM, Kevin Chadwick wrote:

On Thu, 11 Oct 2018 12:32:06 +0200



The gdb from packages is then called egdb.

Make sure cgdb is using egdb, if you use cgdb too.

I wanted to give cgdb a shot. How do I make sure its using egdb?


Documentation is required for gdb unlike eclipse and could be better but
once you find the commands you need it is actually more capable than
eclipse.





Re: Graphical debugger for C/C++ ?

2018-10-12 Thread Rafael Sadowski
On Thu Oct 11, 2018 at 10:44:41AM +0100, Peter Kay wrote:
> Just looking at writing a small enhancement to dhcpd, and starting to use
> gdb properly for the first time. OK, it is functional, but it's a bit
> awkward compared to graphical alternatives. 
> What does everyone use? I can see ddd and eclipse exist at least.
> Typically I've used windbg on Windows (and historically various others
> such as Watcom).
> I don't have an issue typing in commands, but a constant display of
> source and local/global variables would be terribly useful. Ideally plus
> an arbitrary memory display, and some understanding of C/C++ structures. 
> PK

I use devel/qt-creator[1] as a GUI GDB-interface and it works quit well.

[1]: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/qt-creator/



Re: Graphical debugger for C/C++ ?

2018-10-11 Thread Kevin Chadwick
On Thu, 11 Oct 2018 12:32:06 +0200


> The gdb from packages is then called egdb.

Make sure cgdb is using egdb, if you use cgdb too.

Documentation is required for gdb unlike eclipse and could be better but
once you find the commands you need it is actually more capable than
eclipse.



Re: Graphical debugger for C/C++ ?

2018-10-11 Thread Simon Mages
Hi,

2018-10-11 11:44 GMT+02:00, Peter Kay :
> Just looking at writing a small enhancement to dhcpd, and starting to use
> gdb properly for the first time. OK, it is functional, but it's a bit
> awkward compared to graphical alternatives.
> What does everyone use? I can see ddd and eclipse exist at least.
> Typically I've used windbg on Windows (and historically various others
> such as Watcom).
> I don't have an issue typing in commands, but a constant display of
> source and local/global variables would be terribly useful. Ideally plus
> an arbitrary memory display, and some understanding of C/C++ structures.
> PK
>

For normal programming stuff i really like the gdb interface
integrated in emacs. It really works well. But for deep dives i like
to have more control, for that i use pure gdb + voltron [0]. And gdb
has an understanding of structs and the local stack as long as nothing
is thrashed to much. Look at the print command. But on OpenBSD you
might want to install the gdb from the packages, because the gdb in
base lacks a lot of features when it comes to convenience and hand
holding. The gdb from packages is then called egdb.

[0] https://github.com/snare/voltron

BR



Re: Graphical debugger for C/C++ ?

2018-10-11 Thread Antal Ispanovity
cgdb

2018-10-11 12:16 GMT+02:00, Edgar Pettijohn :
> gdb -tui
>
> On Oct 11, 2018 4:44 AM, Peter Kay  wrote:
>>
>> Just looking at writing a small enhancement to dhcpd, and starting to use
>> gdb properly for the first time. OK, it is functional, but it's a bit
>> awkward compared to graphical alternatives.
>> What does everyone use? I can see ddd and eclipse exist at least.
>> Typically I've used windbg on Windows (and historically various others
>> such as Watcom).
>> I don't have an issue typing in commands, but a constant display of
>> source and local/global variables would be terribly useful. Ideally plus
>> an arbitrary memory display, and some understanding of C/C++ structures.
>> PK
>
>



Re: Graphical debugger for C/C++ ?

2018-10-11 Thread Edgar Pettijohn
gdb -tui

On Oct 11, 2018 4:44 AM, Peter Kay  wrote:
>
> Just looking at writing a small enhancement to dhcpd, and starting to use
> gdb properly for the first time. OK, it is functional, but it's a bit
> awkward compared to graphical alternatives. 
> What does everyone use? I can see ddd and eclipse exist at least.
> Typically I've used windbg on Windows (and historically various others
> such as Watcom).
> I don't have an issue typing in commands, but a constant display of
> source and local/global variables would be terribly useful. Ideally plus
> an arbitrary memory display, and some understanding of C/C++ structures. 
> PK



Graphical debugger for C/C++ ?

2018-10-11 Thread Peter Kay
Just looking at writing a small enhancement to dhcpd, and starting to use
gdb properly for the first time. OK, it is functional, but it's a bit
awkward compared to graphical alternatives. 
What does everyone use? I can see ddd and eclipse exist at least.
Typically I've used windbg on Windows (and historically various others
such as Watcom).
I don't have an issue typing in commands, but a constant display of
source and local/global variables would be terribly useful. Ideally plus
an arbitrary memory display, and some understanding of C/C++ structures. 
PK