kdb
[Top] [All Lists]

32-bit application on x86_64

To: kdb@xxxxxxxxxxx
Subject: 32-bit application on x86_64
From: Chandru <chandru@xxxxxxxxxx>
Date: 29 Nov 2005 19:36:21 +0600
In-reply-to: <1133270880.10678.19.camel@chandru.in.ibm.com>
Organization:
References: <1133270880.10678.19.camel@chandru.in.ibm.com>
Sender: kdb-bounce@xxxxxxxxxxx
I have a 2-way x86_64 , a 32-bit application and SLES9-2.6.5-7.233. A
breakpoint has been set in the kernel to debug the application. When the
breakpoint is hit the system drops in to kdb, and after a 'go', the
32-bit application dies with 'Trace/breakpoint trap'.  

The problem does not occur on the vanilla kernel 'linux-2.6.14.2.tar.gz'
and kdb patches 'kdb-v4.4-2.6.14-rc2-common-1' and
'kdb-v4.4-2.6.14-rc2-x86_64-1'. 

A one line in kdbasupport.c helps solve the problem with
SLES9-2.6.5-7.233. 

----------------------------
--- kdbasupport.c.orig  2005-11-25 23:33:34.000000000 +0530
+++ kdbasupport.c       2005-11-30 00:57:13.000000000 +0530
@@ -1027,6 +1027,8 @@ kdba_clearsinglestep(struct pt_regs *reg
                regs->eflags |= EF_IE;
        else
                regs->eflags &= ~EF_IE;
+
+       clear_tsk_thread_flag(current,TIF_SINGLESTEP);
 }
---------------------------

Is there a patch that has gone in to kdb to solve the problem, pls let
me know. 

Thanks,
-- 
Chandru S


---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>
  • 32-bit application on x86_64, Chandru <=