logo       

Re: SIGSEGV on disable/delete a breakpoint for non-i386 sytems.: msg#00010

linux.kernel.debugging.kgdb.bugs

Subject: Re: SIGSEGV on disable/delete a breakpoint for non-i386 sytems.

Because of some problem with my interdiff I am not able to generate it.

I have added following few lines to arch/x86_64/kernel/kgdb.c

+int kgdb_skipexception(int exception, struct pt_regs *regs)
+{
+ if (exception == 3 && kgdb_isremovedbreak(regs->rip - 1)) {
+ regs->rip -= 1;
+ return 1;
+ }
+ return 0;
+}

So I think it will be more easy to manually patch it than using
interdiff. :-)

On Tue, 2006-01-03 at 09:57 -0700, Tom Rini wrote:
> On Mon, Dec 26, 2005 at 08:57:48PM +0530, Milind Dumbare wrote:
>
> > If we disable or delete a breakpoint with present KGDB code,
> > it results in a panic on smp systems for non-i386 systems.
> >
> > Previously we fixed this problem for i386. Patch attached
> > below fixes it for x86_64.
>
> Can you please put up the interdiff (ie just what actually fixed this) ?
> I'd be ppc64 will need this as well. And possibly ia64.
>
--
...Miline
LinSysSoft Technologies
Ask me about KGDB Pro
http://www.linsyssoft.com/Kgdbpro.html



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise