From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11028 invoked by alias); 12 Aug 2004 10:52:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11018 invoked from network); 12 Aug 2004 10:52:03 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 12 Aug 2004 10:52:03 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i7CAq2uL027911 for ; Thu, 12 Aug 2004 12:52:02 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Thu, 12 Aug 2004 12:51:39 +0200 Message-Id: <5.2.0.9.1.20040812124541.01d39a40@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Thu, 12 Aug 2004 10:52:00 -0000 To: From: Fabian Cenedese Subject: Re: Set BP immediately In-Reply-To: <000601c48056$4b741ca0$20ffffc0@sysc1300> References: <5.2.0.9.1.20040812111119.01d35768@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-08/txt/msg00197.txt.bz2 >> I'm trying to debug an embedded PPC board with gdb, that's why I'm >> writing a stub. When I set a breakpoint in gdb (b file:nr), gdb just records >> this internally and doesn't do anything with the target. Only upon step >> or cont it will set the breakpoint in the hardware. But we need the >> possibility to immediately set any breakpoint, even if it's for another >> not-halted thread. Is this possible with some gdb commands (like >> set PC) or would I need to change the code (break flush :) .. ok, better >> name it break apply... or set break apply 1) ? > >You could use a "monitor" command (abbrev. "mo") with an argument list any >kind you wish for that purpose I think. That's really useful to know. Funny that I couldn't find anything in the whole gdb manual about it (from 20040728). Is this also in the MI? I couldn't find a single hint. >You can see also a spec. for mine arm7tdmi jtag debugger which is available >here: http://www.sysmikro.com.pl/pliki/jtag-adapterII_um.pdf Nice document, seems like you're already on it for some time :) At the moment we create a "normal" debugger, but eventually a jtag debugger could also be made. I'll sure read this, thanks for the link. bye Fabi