From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20122 invoked by alias); 14 Jun 2011 09:39:25 -0000 Received: (qmail 20112 invoked by uid 22791); 14 Jun 2011 09:39:24 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jun 2011 09:39:07 +0000 Received: by vxk20 with SMTP id 20so5623905vxk.0 for ; Tue, 14 Jun 2011 02:39:07 -0700 (PDT) Received: by 10.220.37.194 with SMTP id y2mr2023783vcd.34.1308044347085; Tue, 14 Jun 2011 02:39:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.185.196 with HTTP; Tue, 14 Jun 2011 02:38:47 -0700 (PDT) In-Reply-To: <4DF642D0.9050200@earthlink.net> References: <4DF6337F.1040203@earthlink.net> <4DF642D0.9050200@earthlink.net> From: Kevin Pouget Date: Tue, 14 Jun 2011 09:39:00 -0000 Message-ID: Subject: Re: [PATCH 0/2] Global breakpoints, introduction To: Stan Shebs Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00187.txt.bz2 Hello, the idea is very interesting, I'll certainly have to use it soon! > fprintf_unfiltered (gdb_stdlog, "target_to_define_global_breakpoint (0x%= x, %s, %s, %d) =3D %d\n", > (int) abfd, paddress (target_gdbarch, addr), > (uname ? uname : ""), flags, rslt); target.c:4200: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-cast] and in the README, you mention the file "/proc/drivers/breakpoints" whereas it's certainly /proc/driver/breakpoint cordially, Kevin On Mon, Jun 13, 2011 at 7:03 PM, Stan Shebs wrote: > > On 6/13/11 9:39 AM, Frank Ch. Eigler wrote: >> >> Hi, Stan - >> >> stanshebs wrote: >> >>> This pair of patches plus Linux kernel module adds global breakpoints >>> to GDB. =A0[...] >> >> Interesting approach. =A0Have you been planning to post it to LKML for >> review/consideration? >> > > Yes, I've just been waiting for all the debugger-haters there to retire a= nd/or die first. :-) > >> You may want to rebase your code to the LKML uprobes implementation >> already under review, so you don't have to duplicate the rather >> intricate logic required to safely manage breakpoints in userspace by >> the kernel. > > That's a good idea! =A0I haven't updated myself on uprobes state in the p= ast several months, but you're right, it would be good to have a single ver= sion of that. > > Stan >