From: paawan oza <paawan1982@yahoo.com>
To: gdb@sourceware.org
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>
Subject: Re: reversible debugging, enhancements, proposals
Date: Sat, 16 Oct 2010 08:03:00 -0000 [thread overview]
Message-ID: <119299.2461.qm@web112520.mail.gq1.yahoo.com> (raw)
Hi,
The conversation regarding following example and including such feature in gdb
solely depends on how much gdb community and users assess its importance.
yes there are round about ways of doing it as mentioned in replies, but this
will add more usability.
it depends on the need and importance I can go ahead working on patch and invest
some time,
if it is not important then I can continue with reersible debugging on arm as of
now : )
Regards,
Oza.
----- Original Message ----
From: paawan oza <paawan1982@yahoo.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Sent: Fri, October 15, 2010 11:12:49 PM
Subject: Re: reversible debugging, enhancements, proposals
Hi,
let me attempt to explain with example.
struct _A
{
int fl1;
struct _A *next;
}
struct _X
{
int no1;
struct _A *a;
struct _X *next;
}
if commands are provided something like below, rather than having people edit
the .gdbinit file, script, 'source' command
gdb> load_link _X 500 (indicates load 500 nodes)
gdb> pview fl1 (print all fl1 values of all nodes)
now this was just an example, it could be supporting any level of nesting, and
any level of data structure.
the advantage is, user just have to load relevant structure online on gdn prompt
and ready to view any data any time in any node... rather than playing with
script and running them and editing them.
In conclusion, I think direct command line interface for such facility is
convenient and easy to use.
Regards,
Oza.
----- Original Message ----
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: paawan oza <paawan1982@yahoo.com>
Cc: gdb@sourceware.org
Sent: Fri, October 15, 2010 8:48:03 PM
Subject: Re: reversible debugging, enhancements, proposals
On Fri, 15 Oct 2010 15:48:57 +0200, paawan oza wrote:
> but my point is: it becomes cumbesome for user to go and modify the
> file/.gdbinit macro or script.
Projects provide their own .gdbinit files (gcc/gdbinit.in, emacs/src/.gdbinit)
for examining the project's specific data structures.
For example for GList (Gnome glib) it cannot work fully automatically as its
->data is void *.
> you have losts of data streuctures like linked list, complex tree, btree
>etc....
> and most of the user is not predetermined to se where he wants to look....it
Maybe a pretty printer could have a hint if one wants to print just a single
element or the whole list?
Or if printing a pointer (and not curretly implemented *pointer) it could
print the whole list? That may be confusing, though.
Thanks,
Jan
next reply other threads:[~2010-10-16 8:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-16 8:03 paawan oza [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-15 9:31 paawan oza
2010-10-15 13:15 ` Jan Kratochvil
2010-10-15 13:49 ` paawan oza
2010-10-15 15:18 ` Jan Kratochvil
2010-10-15 17:43 ` paawan oza
2010-10-15 18:22 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=119299.2461.qm@web112520.mail.gq1.yahoo.com \
--to=paawan1982@yahoo.com \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox