From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19979 invoked by alias); 22 Jun 2004 22:14:38 -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 19972 invoked from network); 22 Jun 2004 22:14:37 -0000 Received: from unknown (HELO sark4.cc.gatech.edu) (130.207.7.19) by sourceware.org with SMTP; 22 Jun 2004 22:14:37 -0000 Received: from gaia.cc.gatech.edu (gaia.cc.gatech.edu [130.207.3.8]) by sark4.cc.gatech.edu (8.12.10/8.12.8) with ESMTP id i5MMDELn012637; Tue, 22 Jun 2004 18:13:16 -0400 (EDT) Received: from localhost (zhangtao@localhost) by gaia.cc.gatech.edu (8.12.10/8.12.8) with ESMTP id i5MMDDS8002281; Tue, 22 Jun 2004 18:13:13 -0400 (EDT) Date: Tue, 22 Jun 2004 22:14:00 -0000 From: Tao Zhang To: Andreas Schwab cc: Michael Elizabeth Chastain , gdb@sources.redhat.com Subject: Re: Debug code in data section in gdb In-Reply-To: Message-ID: References: <20040622181936.BF6E14B104@berman.michael-chastain.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-SW-Source: 2004-06/txt/msg00226.txt.bz2 "doesn't work" means the execution doens't stop at the break points... -Tao Zhang (zhangtao@cc.gatech.edu) On Tue, 22 Jun 2004, Andreas Schwab wrote: > Tao Zhang writes: > > > Hi, Michael > > > > I tried that many times, it doesn't work for me. I even played some tri= ck > > so that the code buffer is actually placed in code section now. It still > > doesn't work. I am very confused. The breakpoints work just fine for ot= her > > code. > > Please define "doesn't work". What are the symptoms? > > > So break *0x12344657 should work? > > Yes. GDB does not distinguish between "code" and "data" section when > placing a breakpoint, it's all just memory. > > Andreas. > > -- > Andreas Schwab, SuSE Labs, schwab@suse.de > SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany > Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." >