Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
Subject: Re: [2/2] RFA: implement 'set print symbol'
Date: Mon, 14 May 2012 19:39:00 -0000	[thread overview]
Message-ID: <87likuwo0a.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20120410081843.GA27643@host2.jankratochvil.net> (Jan	Kratochvil's message of "Tue, 10 Apr 2012 10:18:43 +0200")

>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> I have checked some (the first) FAIL cases of the testsuite and it does not
Jan> seem to be acceptable to be printed by default in its current form:

Jan> Breakpoint 7, marker3 (a=0x400918 <__dso_handle+48> "stack", b=0x400912 <__dso_handle+42> "trace") at ./gdb.base/break1.c:48^M

Jan> __dso_handle is a false resolution.

Jan> So if it should be default there should be at least restriction to ignore
Jan> size-less objects.

I made it ignore size-less data symbols.
It turns out that we can't ignore size-less text symbols --
asm-source.exp checks this case.

Jan> But even with size-ful objects the default on is not great:
Jan> (gdb) p t_structs_a(struct_val1)
Jan> $92 = <buf.2559>"foo"

In the new series (to be posted shortly) I fixed the obvious formatting
bug here.

Jan> Such local symbols just make no sense to display IMO.  Maybe there
Jan> could be GDB hack to suppress the \.\d+$ symbols from GCC?  Or even
Jan> GCC suppressing them?

I left it as-is.

I did notice that we have no way to look up a generic symbol by address.
In gdb currently, you can look up any minimal symbol by address, but
for full symbols you can only look up functions.

Jan> There is still an open issue of updating the whole testsuite if the
Jan> default is changed.

I did this.  It revealed some other oddities.

Tom


  parent reply	other threads:[~2012-05-14 19:39 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05 18:03 Tom Tromey
2012-04-05 21:13 ` Eli Zaretskii
2012-04-09 14:32   ` Tom Tromey
2012-04-09 16:31     ` Eli Zaretskii
2012-04-09 17:44       ` Tom Tromey
2012-04-09 17:55         ` Eli Zaretskii
2012-04-09 18:00           ` Tom Tromey
2012-04-09 19:14 ` Jan Kratochvil
2012-04-09 19:21   ` Tom Tromey
2012-04-09 19:36     ` Jan Kratochvil
2012-04-09 20:45     ` Eli Zaretskii
2012-04-09 21:04       ` Tom Tromey
2012-04-10  6:17         ` Eli Zaretskii
2012-04-10  6:56           ` Jan Kratochvil
2012-04-10  7:50             ` Eli Zaretskii
2012-04-10  8:19               ` Jan Kratochvil
2012-04-16 21:14                 ` Tom Tromey
2012-05-14 19:39                 ` Tom Tromey [this message]
2012-04-17  0:54               ` Doug Evans
2012-04-17 11:43                 ` 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=87likuwo0a.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@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