From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20014 invoked by alias); 15 May 2003 16:45:19 -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 19964 invoked from network); 15 May 2003 16:45:18 -0000 Received: from unknown (HELO planck.amplepower.com) (216.39.162.139) by sources.redhat.com with SMTP; 15 May 2003 16:45:18 -0000 Received: from [192.168.8.30] (helo=knuth.amplepower.com ident=roth) by planck.amplepower.com with esmtp (Exim 3.36 #1 (Debian)) id 19GLlW-0005oc-00; Thu, 15 May 2003 09:39:34 -0700 Date: Thu, 15 May 2003 16:45:00 -0000 From: "Theodore A. Roth" X-X-Sender: roth@knuth.amplepower.com To: Andrew Cagney cc: gdb@sources.redhat.com Subject: Re: breakpoint for avr? In-Reply-To: <3EC3BDF7.3060304@redhat.com> Message-ID: References: <3EC26895.4090407@redhat.com> <3EC3BDF7.3060304@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-05/txt/msg00233.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. I tried setting it off and found that I had the bytes swapped on the break insn. After fixing that, my simulator worked fine: (gdb) set remote Z-packet off (gdb) b main Breakpoint 1 at 0x104: file tst.c, line 34. (gdb) c Continuing. Sending packet: $m104,2#60...Ack Packet received: 0e94 Sending packet: $M104,2:9895#59...Ack Packet received: OK Sending packet: $Hc0#db...Ack Packet received: Sending packet: $c#63...Ack Packet received: T0520:02;21:ff10;22:04010000; Sending packet: $g#67...Ack Packet received: 00000000000000000000000000000000000100000000000000000001ff100a0102ff1004010000 Sending packet: $mfc,8#9a...Ack Packet received: cfefd0e1debfcdbf Sending packet: $M104,2:0e94#7c...Ack Packet received: OK Breakpoint 1, main () at tst.c:34 (gdb) :) > Andrew, does the attached patch help things with your patch? If so, :) > I'll go ahead and commit it. :) :) Yes, it will avoid the problem. My patch is at: :) http://sources.redhat.com/ml/gdb-patches/2003-05/msg00211.html Ok. I'll verify that and then commit my patch. Thanks. Ted Roth