From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25367 invoked by alias); 22 Jun 2004 18:19:15 -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 25359 invoked from network); 22 Jun 2004 18:19:15 -0000 Received: from unknown (HELO smtp6.mindspring.com) (207.69.200.110) by sourceware.org with SMTP; 22 Jun 2004 18:19:15 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by smtp6.mindspring.com with esmtp (Exim 3.33 #1) id 1BcprW-00062A-00; Tue, 22 Jun 2004 14:19:14 -0400 Received: by berman.michael-chastain.com (Postfix, from userid 502) id BF6E14B104; Tue, 22 Jun 2004 14:19:36 -0400 (EDT) To: gdb@sources.redhat.com, zhangtao@cc.gatech.edu Subject: Re: Debug code in data section in gdb Message-Id: <20040622181936.BF6E14B104@berman.michael-chastain.com> Date: Tue, 22 Jun 2004 18:19:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-06/txt/msg00222.txt.bz2 > Is there a way to ask gdb to set break points at data section? > Or is there some other work around? If you know the exact address where you want to set the breakpoint, you can do: (gdb) break *0x12345678 Be sure to do this after you've copied your code into the data section, not before. Michael C