This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdbtui: how to always show function arguments?
- From: Pedro Alves <palves at redhat dot com>
- To: Dedeco Balaco Baco <dedeco dot balaco at yahoo dot com>, gdb at sourceware dot org
- Date: Wed, 15 Nov 2017 14:28:16 +0000
- Subject: Re: gdbtui: how to always show function arguments?
- Authentication-results: sourceware.org; auth=none
- References: <1249022528.4098519.1509045089450.ref@mail.yahoo.com> <1249022528.4098519.1509045089450@mail.yahoo.com>
(Ignoring "Reply-To:" and staying on list.)
On 10/26/2017 08:11 PM, Dedeco Balaco Baco via gdb wrote:
> Hello
>
> I use gdbtui to debug many programs. I wish it had more features for some fairly simple situations: always show function arguments, or even 'display' them while we are inside it, without needing to 'print' or 'display' each one.
>
> Do you know how to make gdbtui do that? Maybe there is an option to always show things in each part of the previous line. I say previous line because I want to know the values of things that were used as arguments, the final result of a complex expression, and so on.
>
> I am *not* asking about 'print' and 'display' gdb commands, I know they exist. I want to make them automatically, and possibly changing what is shown as we navigate through the program.
>
AFAIK, there's a way to do that today. The TUI is missing
"locals" / "display" windows. I agree, it'd be a really nice
feature to have. It just needs someone willing to work on
it. :-)
> I want to also be able to use the solution remotely via ssh (no, no ssh -X) like I do with gdbtui command (usually redirecting program output to another window in a second remote connection).
Interesting, thanks for sharing your use case.
Thanks,
Pedro Alves