This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: breakpoint setting bug
- From: Bruce Korb <bruce dot korb at gmail dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: insight at sourceware dot org
- Date: Sun, 21 Feb 2010 10:40:00 -0800
- Subject: Re: breakpoint setting bug
- References: <4B8171D2.3050802@gmail.com> <4B817B40.7050902@redhat.com>
Hi Keith,
On Sun, Feb 21, 2010 at 10:28 AM, Keith Seitz <keiths@redhat.com> 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 <http://gnu.org/licenses/gpl.html>
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