From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3391 invoked by alias); 15 May 2003 17:29:58 -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 3334 invoked from network); 15 May 2003 17:29:58 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 15 May 2003 17:29:58 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id DE3612B2F; Thu, 15 May 2003 13:29:44 -0400 (EDT) Message-ID: <3EC3CE88.1040100@redhat.com> Date: Thu, 15 May 2003 17:29:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Theodore A. Roth" Cc: gdb@sources.redhat.com Subject: Re: breakpoint for avr? References: <3EC26895.4090407@redhat.com> <3EC3BDF7.3060304@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00235.txt.bz2 > On Thu, 15 May 2003, Andrew Cagney wrote: > > :) > :) > Ok, I added the BREAKPOINT_FROM_PC method for the avr and as I > :) > suspected it doesn't interfere with remote targets (unless I am over > :) > looking something): > :) > :) Right. If the remote target doesn't support the Z packet, GDB will use > :) BREAKPOINT_FROM_PC and then insert breakpoints in memory. Try > :) > (gdb) b main > :) > Breakpoint 1 at 0x104: file tst.c, line 34. > :) > :) Do a: > :) > :) (gdb) set remote Z-packet off > :) > :) here. You'll then see GDB doing memory writes. > > Ok. Thanks for the explanation. I assume that "remote Z-packet" is on > by default. Strictly speaking it should start out with ``auto-detect'' mode. It probes the target to see if Z works. The above is an override. > Ok. I'll verify that and then commit my patch. Thanks! Andrew