From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25496 invoked by alias); 21 Feb 2010 18:40:27 -0000 Received: (qmail 25479 invoked by uid 22791); 21 Feb 2010 18:40:26 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 21 Feb 2010 18:40:22 +0000 Received: by yxe5 with SMTP id 5so2446506yxe.24 for ; Sun, 21 Feb 2010 10:40:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.183.4 with SMTP id k4mr4652785anp.39.1266777620098; Sun, 21 Feb 2010 10:40:20 -0800 (PST) In-Reply-To: <4B817B40.7050902@redhat.com> References: <4B8171D2.3050802@gmail.com> <4B817B40.7050902@redhat.com> From: Bruce Korb Date: Sun, 21 Feb 2010 19:09:00 -0000 Message-ID: <668c430c1002211040t2c186e52o66a87ad4cd1f7f25@mail.gmail.com> Subject: Re: breakpoint setting bug To: Keith Seitz Cc: insight@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00025.txt.bz2 Hi Keith, On Sun, Feb 21, 2010 at 10:28 AM, Keith Seitz wrote: > Yeah, this is definitely not enough information to appropriately assess the Figured. > bug. I used your example code to try to build a test case, but I could not > reproduce the bug. Figured. :( >> In the following code fragment, I set a breakpoint at "emit_file_text" >> only to have insight/gdb to set it on line 1227 instead of 1219 or 1222. >> Oops. > Was this application compiled with optimization? sharutils compiles thus: > gcc -DLOCALEDIR=\"/old-home/gnu/proj/sharutils-inst/share/locale\" \ > -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../lib -I../intl -g -Wall -MT shar.o \ > -MD -MP -MF .deps/shar.Tpo -c -o shar.o shar.c though I had the same symptom when adding "-O0" to the command. > How did you set the breakpoint? In the command window: > gdb> b emit_file_text > What version of gdb/insight? $ insight --version GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu" > What host and target? host == target > If you could pare this down to a small test case, that would be of > considerable help. I'm sure. That's the part that will take me a little time to get to.... Sorry to just tease you. ;) If nothing pops up as obvious, I'll try to get to it in a week or so. Thank you! Regards, Bruce