From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3qun-0002GC-QJ for qemu-devel@nongnu.org; Mon, 19 Apr 2010 09:21:29 -0400 Received: from [140.186.70.92] (port=33000 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3qum-0001o9-2n for qemu-devel@nongnu.org; Mon, 19 Apr 2010 09:21:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3qgH-0002Wm-EB for qemu-devel@nongnu.org; Mon, 19 Apr 2010 09:06:30 -0400 Received: from mx20.gnu.org ([199.232.41.8]:42914) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3qgH-0002Wh-Bo for qemu-devel@nongnu.org; Mon, 19 Apr 2010 09:06:29 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1O3qgG-0003Oe-Rk for qemu-devel@nongnu.org; Mon, 19 Apr 2010 09:06:29 -0400 Date: Mon, 19 Apr 2010 06:06:25 -0700 From: Nathan Froyd Subject: Re: [Qemu-devel] Inserting Memory Watch points Message-ID: <20100419130625.GC18198@codesourcery.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Taimoor Mirza Cc: qemu-devel@nongnu.org On Mon, Apr 19, 2010 at 12:11:46PM +0600, Taimoor Mirza wrote: > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1208740160 (LWP 1912)] > gdb_set_stop_cpu (env=0x9ef36a0) at /usr/QEMU_Learning/QEMU_Src/qemu-0.12.3/gdbstub.c:2114 > 2114 gdbserver_state->c_cpu = env; > (gdb) p env > $1 = (struct CPUARMState *) 0x9ef36a0 > (gdb) p gdbserver_state->c_cpu > Cannot access memory at address 0x0 > > Can anybody tell me whats wrong with this? gdbserver_state is NULL. You need to start QEMU with the -gdb switch and connect to it via GDB for cpu_watchpoint_insert to work. -Nathan