This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoint setting bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]