public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: ptrace on i386
@ 2001-12-01 10:46 Manfred Spraul
  0 siblings, 0 replies; 3+ messages in thread
From: Manfred Spraul @ 2001-12-01 10:46 UTC (permalink / raw)
  To: Frank Cornelis; +Cc: linux-kernel

>
> In linux/arch/i386/kernel/ptrace.c next code is being used in the xxxreg
> functions:
> 	if (regno > GS*4)
> 		regno -= 2*4;
> Why this discontinuity? 

Backward compatibility. The syscall entry point changed between 2.0 and 2.2, but
that change must remain invisible to user space apps. the "-= 2*4" converts old offsets
to new offsets (or the other way around)

--
    Manfred


^ permalink raw reply	[flat|nested] 3+ messages in thread
* ptrace on i386
@ 2001-12-01 10:17 Frank Cornelis
  2001-12-01 13:56 ` Brian Gerst
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Cornelis @ 2001-12-01 10:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Frank.Cornelis

Hi,

In linux/arch/i386/kernel/ptrace.c next code is being used in the xxxreg
functions:
	if (regno > GS*4)
		regno -= 2*4;
Why this discontinuity? It doesn't prevent ORIG_EAX and EIP from being
written and makes the defines CS, EIF, ... from linux/include/asm/ptrace.h
useless. BTW: regno should really call reg_offset since it's no register
number but an offset.

Please CC me,

Frank.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-01 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-01 10:46 ptrace on i386 Manfred Spraul
  -- strict thread matches above, loose matches on Subject: below --
2001-12-01 10:17 Frank Cornelis
2001-12-01 13:56 ` Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox