Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754489Ab0A0Ajw (ORCPT ); Tue, 26 Jan 2010 19:39:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754361Ab0A0Aju (ORCPT ); Tue, 26 Jan 2010 19:39:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14263 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754301Ab0A0Ajs (ORCPT ); Tue, 26 Jan 2010 19:39:48 -0500 To: Tom Tromey Cc: Linus Torvalds , Stephen Rothwell , Kyle Moffett , Peter Zijlstra , Peter Zijlstra , Fr??d??ric Weisbecker , Oleg Nesterov , Steven Rostedt , LKML , Arnaldo Carvalho de Melo , linux-next@vger.kernel.org, "H. Peter Anvin" , utrace-devel@redhat.com, Thomas Gleixner Subject: Re: linux-next: add utrace tree References: <20100121013822.28781960.sfr@canb.auug.org.au> <20100122005147.GD22003@redhat.com> <20100121170541.7425ff10.akpm@linux-foundation.org> <20100122182827.GA13185@redhat.com> <20100122200129.GG22003@redhat.com> <20100122221348.GA4263@redhat.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 26 Jan 2010 19:38:45 -0500 In-Reply-To: (Tom Tromey's message of "Tue, 26 Jan 2010 16:20:22 -0700") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 21 tromey wrote: > [...] > In non-stop mode (where you can stop one thread but leave the others > running), gdb wants to have the breakpoints always inserted. So, > something must emulate the displaced instruction. This sounds like the sort of thing that kernel kprobes do, which the uprobes patch does for userspace. The gdbstub prototype can use uprobes for such "displaced" breakpoints, and single-step-out-of-line to execute them on a few platforms like x86-*. This is already prototyped / working. (gdbstub currently restricts itself to single-threaded programs only, but that's another todo.) - FChE -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/