From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9700 invoked by alias); 10 Dec 2008 15:48:05 -0000 Received: (qmail 9679 invoked by uid 71); 10 Dec 2008 15:48:04 -0000 Resent-Date: 10 Dec 2008 15:48:04 -0000 Resent-Message-ID: <20081210154804.9678.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com, pedro@codesourcery.com Resent-Reply-To: gdb-gnats@sources.redhat.com, pedro@codesourcery.com Received: (qmail 6945 invoked by uid 48); 10 Dec 2008 15:43:24 -0000 Message-Id: <20081210154324.6944.qmail@sourceware.org> Date: Wed, 10 Dec 2008 15:48:00 -0000 From: pedro@codesourcery.com Reply-To: pedro@codesourcery.com To: gdb-gnats@sources.redhat.com Cc: pedro@codesourcery.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: pedro@codesourcery.com Subject: macros/2564: 'p siginfo->si_addr' doesn't work anymore Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q4/txt/msg00070.txt.bz2 >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=