This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

macros/2564: 'p siginfo->si_addr' doesn't work anymore


>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]