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]

[Bug gdb/20758] 32-bit gdb on 64-bit kernel


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.

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