From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12202 invoked by alias); 11 Jun 2007 20:21:40 -0000 Received: (qmail 12191 invoked by uid 22791); 11 Jun 2007 20:21:39 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 11 Jun 2007 20:21:33 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-38-110.inter.net.il [80.230.38.110]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GYN36332 (AUTH halo1); Mon, 11 Jun 2007 23:21:34 +0300 (IDT) Date: Mon, 11 Jun 2007 20:21:00 -0000 Message-Id: From: Eli Zaretskii To: Jim Blandy CC: kdsfinger@gmail.com, gdb@sourceware.org In-reply-to: (message from Jim Blandy on Mon, 11 Jun 2007 10:36:04 -0700) Subject: Re: gdb breakpoint problem Reply-to: Eli Zaretskii References: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00084.txt.bz2 > Cc: gdb@sourceware.org > From: Jim Blandy > Date: Mon, 11 Jun 2007 10:36:04 -0700 > > What's probably going on is that there is no machine code generated > for lines 24 and 25. They're just declarations. The first actual > machine instruction in main is for line 26, so the 'addresses' of lines > 24, 25, and 26 are probably all the same. > > You can try setting three breakpoints on lines 24, 25, and 26, and > then comparing the addresses printed for each to see if this is the > case. Or just use the "info line" command to tell you directly what addresses does each line compile to.