From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7199 invoked by alias); 26 Jul 2010 09:37:13 -0000 Received: (qmail 7185 invoked by uid 48); 26 Jul 2010 09:37:13 -0000 Date: Mon, 26 Jul 2010 09:37:00 -0000 From: "jan dot kratochvil at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20100726093712.11842.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/11842] New: compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong X-Bugzilla-Reason: CC 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: 2010-q3/txt/msg00097.txt.bz2 Only biarch gdb is affected. #include #include #include #define tgkill(tgid, tid, sig) syscall (__NR_tgkill, tgid, tid, sig) int main (void) { return tgkill (getpid (), getpid (), SIGUSR1); } gcc -o 1 1.c -Wall -g -m32 GNU gdb (GDB) 7.2.50.20100726-cvs This GDB was configured as "x86_64-unknown-linux-gnu". gcc-4.4.4-10.fc13.x86_64 kernel-2.6.33.6-147.fc13.x86_64 ./gdb -nx -ex start -ex 'p getpid ()' -ex c -ex 'p $_siginfo._sifields._kill.si_pid' ./1 [...] $1 = 23172 Continuing. Program received signal SIGUSR1, User defined signal 1. 0x00110430 in __kernel_vsyscall () $2 = 0 $1 and $2 are the same for native x86_64 and for native i686. $1 and $2 SHOULD be the same even for i686 on x86_64 debugger. compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong in: gdb/gdbserver/linux-x86-low.c gdb/amd64-linux-nat.c -- Summary: compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong Product: gdb Version: unknown Status: UNCONFIRMED Severity: minor Priority: P2 Component: gdb AssignedTo: unassigned at sourceware dot org ReportedBy: jan dot kratochvil at redhat dot com CC: gdb-prs at sourceware dot org GCC target triplet: x86_64-fedora13-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11842 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.