This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
breakpoints/1686: no hardware watchpoints for multithreaded programs
- From: m dot mueller99 at kay-mueller dot de
- To: gdb-gnats at sources dot redhat dot com
- Date: 23 Jun 2004 15:31:41 -0000
- Subject: breakpoints/1686: no hardware watchpoints for multithreaded programs
- Reply-to: m dot mueller99 at kay-mueller dot de
>Number: 1686
>Category: breakpoints
>Synopsis: no hardware watchpoints for multithreaded programs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 23 15:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: m.mueller99@kay-mueller.de
>Release: gdb 6.1.1
>Organization:
>Environment:
Solaris SPARC
cc -g -xs p7.c -o p7 -lpthread
gcc -g p7.c -o p7 -lpthread
>Description:
When debugging a multithreaded program on Solaris/SPARC
I always get software watchpoints which are very slow.
>How-To-Repeat:
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) b main
Breakpoint 1 at 0x1068c: file p7.c, line 10.
(gdb) run
Starting program: /export/home/michaelm/gdb/tst/p7
[New LWP 1]
[New LWP 2]
[New LWP 3]
Breakpoint 1, main () at p7.c:10
10 int n = 7;
(gdb) watch n
Watchpoint 2: n
# Should be: Hardware watchpoint 2: n
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="p7.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="p7.c"
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQKbWFpbigpCnsKCglpbnQgbiA9IDc7CgoJcHJpbnRmKCJh
Y2Nlc3NpbmcgbiEiKTsKCSsrbjsKCXByaW50ZigiZG9uZSEiKTsKCXJldHVybiAwOwp9Cg==