public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: pedro@codesourcery.com
To: gdb-gnats@sources.redhat.com
Cc: pedro@codesourcery.com
Subject: macros/2564: 'p siginfo->si_addr' doesn't work anymore
Date: Wed, 10 Dec 2008 15:48:00 -0000	[thread overview]
Message-ID: <20081210154324.6944.qmail@sourceware.org> (raw)


>Number:         2564
>Category:       macros
>Synopsis:       'p siginfo->si_addr' doesn't work anymore
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 10 15:48:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     pedro@codesourcery.com
>Release:        gdb HEAD 20081210
>Organization:
>Environment:
Linux orlando 2.6.24-21-generic #1 SMP Tue Oct 21 23:09:30 UTC 2008 x86_64 GNU/Linux
>Description:
Trying to 'print siginfo_p->si_addr' in the attached test fails with:

 (gdb) p siginfo_p->si_addr
 There is no member named .

Although si_addr is a macro defined as:
#define si_addr _sifields._sigfault.si_addr

This worked on 6.8.

And struct siginfo does have those members.
>How-To-Repeat:
Build with gcc -g3 for the extra macro info.

b main; run; next;

 (gdb) p siginfo_p->si_addr
 There is no member named .
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="siginfo_exp.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="siginfo_exp.c"

I2luY2x1ZGUgPHNpZ25hbC5oPgojaW5jbHVkZSA8c3RyaW5nLmg+CgppbnQKbWFpbiAoaW50IGFy
Z2MsIGNoYXIgKiphcmd2KQp7CiAgc3RydWN0IHNpZ2luZm8gaW5mbzsgLyogbWFrZSBzdXJlIGl0
J3Mgbm90IHJlbGF0ZWQgdG8gdmFyIG5hbWUgZXF1YWwgdHlwZSBuYW1lLiAgKi8KICBzdHJ1Y3Qg
c2lnaW5mbyBzaWdpbmZvOyAvKiB2YXIgdnMgLi4uICovCiAgc3RydWN0IHNpZ2luZm8gKnNpZ2lu
Zm9fcCA9ICZzaWdpbmZvOyAvKiAuLi4gcG9pbnRlciAqLwoKICByZXR1cm4gMDsKfQo=


             reply	other threads:[~2008-12-10 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 15:48 pedro [this message]
2008-12-10 15:58 ` pending/2565: " Pedro Alves
2008-12-10 16:58 macros/2564: " Pedro Alves
2008-12-10 19:28 Tom Tromey
2008-12-10 21:18 Pedro Alves
2008-12-11  1:14 tromey
2008-12-11 18:31 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=20081210154324.6944.qmail@sourceware.org \
    --to=pedro@codesourcery.com \
    --cc=gdb-gnats@sources.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).