This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20758] 32-bit gdb on 64-bit kernel
- From: "pangbw at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 01 Nov 2016 21:59:39 +0000
- Subject: [Bug gdb/20758] 32-bit gdb on 64-bit kernel
- Auto-submitted: auto-generated
- References: <bug-20758-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20758
Baoshan <pangbw at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #3 from Baoshan <pangbw at gmail dot com> ---
And I find such code in kernel for
PPC(http://lxr.free-electrons.com/source/arch/powerpc/kernel/ptrace.c):
3080 case PTRACE_POKEUSR: {
3081 unsigned long index;
3082
3083 ret = -EIO;
3084 /* convert to index and check */
3085 #ifdef CONFIG_PPC32
3086 index = addr >> 2;
3087 if ((addr & 3) || (index > PT_FPSCR)
3088 || (child->thread.regs == NULL))
3089 #else
3090 index = addr >> 3;
3091 if ((addr & 7) || (index > PT_FPSCR))
3092 #endif
3093 break;
It clearly shows the kernel is not providing a 32-bit syscall when it is built
in 64-bit.
Do you think this is a bug in kernel?
--
You are receiving this mail because:
You are on the CC list for the bug.