This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

breakpoints/1997: gdb fails when a break point is placed inside a library.


>Number:         1997
>Category:       breakpoints
>Synopsis:       gdb fails when a break point is placed inside a library.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 25 01:38:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     gilboada@netvision.net.il
>Release:        gdb-6.3.0.0-1.21.x86_64.rpm
>Organization:
>Environment:
Fedora Core 4, x86-64.
kernel-smp-2.6.12-1.1398_FC4
gcc-4.0.1-4.fc4
>Description:
Description of problem:
GDB dies when a break point is set inside a yet-to-be-loaded library (see attached test-case.)
Instead of stopping at the breakpoint (once the break-point is first called) the execution continues as if there was no breakpoint, and once the execution completes, gdb dies.
Same test-case runs fine on older gdb. (FC3's gdb, both 32bit and 64bit)
>How-To-Repeat:
1. Download and untar gdb_test_case.tgz.
2. make
3. export LD_LIBRARY_PATH=.
4. gdb ./test
5. b TestFunc
Function "TestFunc" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (TestFunc) pending.
6. r(un)
7. Program will count from 0 to 99. gdb does not break at TestFunc.
8. gdb crash.
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gzip; name="gdb_test_case.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb_test_case.tgz"

H4sIAEQfDUMAA+2WbW/aMBDHeYs/xYl1EqwNyhOZFIY0qNquEy1SQZqmbaqCY8BamiAnVNOmffc5
sSGBjXVvoJp0vzfkzne+P05sX8Sn9xlLszatHQxT4rlu/mu5rlnYlrJN9ezVLNPueE7Hcm05btnW
a68G5uEklazSLBAAtTmPpknwtzgm0mMIOi4veEyjVcigkWZhxKftRYNs+XiSuySPCQ9hIj+Vy1VM
mzzOgJ8nqzhrkR+kvhTSMWs2Ck/vZfg5bpzp4S75SZ77XyL7uAm+shmP2CFrPLH/Lcd21vvfNm1P
7n/L83D/H4XB9W3/7mMvvwLI8Hpwf9u/uejJc6C4E9Kk8I3fje4mZcho8P7ifDLOo9TVoaLOL4f9
q3HPmM/DqQMGBSNdBIKFYMyWXFojE4wPQRQVwcPt4D9HghEts4VggRyJREaIFKsEFlpya61F68hd
v+so56NQhOxU31MPjGFbPpw0N2vQksegjPPhpLmWkrtUcR/UPUrqb+eUakNHKk0tMBLQSkm5ej5s
ntfJpQNU+coElWUnNGJB7Msk8SAXrypL51Wf9Vq1dNjaJKQS6u/EyqkZXSTV2bRE5RlqXTsVjO0M
UhHm7yjbkrKppj7Lslb51nZzVK3q63juLfVfcejeL+ep/s+u9H+Ol/d/ltNx8fw/BuxbxkQMe5u7
bt765fZDwGM10BdzegZUHtnwKv0urcdPX4omsEyTWfVZIqCpTOiB2dVD8AYss7ROT+Umr5eVN1Xr
gmUrqczE/hFBEARBEARBEARBEARBEARBEARB/pVfaNs05gAoAAA=


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