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]

threads/2256: gdbserver thread


>Number:         2256
>Category:       threads
>Synopsis:       gdbserver thread
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 20 14:08:01 BST 2007
>Closed-Date:
>Last-Modified:
>Originator:     Royal-ts@gmx.de
>Release:        gdb 6.6
>Organization:
>Environment:
uname -a : Linux Debian 2.6.8-3.386 # Wed Dec 6 00:38:53 UTC 2006 i686 GNU/Linux
gcc -v : gcc-Version 3.3.5 (Debian 1:3.3.5-13)
gdb: ..was configured as "i486-linux-gnu"
>Description:
I tried to debug a simple multithread program on a remote computer and i cant see the second thread. This second thread is still running.. i can see the "-" at the remote computer but "info threads" show only one thread.
If i run the server and the gdb at the same machine everything works great.
I also tried other combinations like a Windows (Eclipse) pc for debugging and the debian as gdbserver... and the other remote pc as gdb server and the debian for debugging a suse gdbserver.. evertyhing with the same result: 
When i debug over the network i cant see my both threads..

I attached my program, dont blame me for the many unused includes, this is the very small version of an existing program... ;) 
>How-To-Repeat:
client:
gdbserver all:10000 ./master1
 
Server:
gdb ./master1
-> target remote 192.168.100.xxx:10000 ./master1
-> break 21
-> continue
-> continue
-> info threads
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="master1.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="master1.c"

I2luY2x1ZGUgPHB0aHJlYWQuaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0cmlu
Zy5oPg0KI2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGN0eXBlLmg+DQojaW5jbHVkZSA8
c3lzL2lwYy5oPg0KI2luY2x1ZGUgPHN5cy9tc2cuaD4NCiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4N
CiNpbmNsdWRlIDxzeXMvc29ja2V0Lmg+DQojaW5jbHVkZSA8bmV0aW5ldC9pbi5oPg0KI2luY2x1
ZGUgPGFycGEvaW5ldC5oPg0KI2luY2x1ZGUgPHVuaXN0ZC5oPg0KDQojZGVmaW5lIEJVRl9TSVog
NDA5Ng0KDQp2b2lkICpjbGllbnQgKHZvaWQgKm5vdHVzZWQpDQp7DQogICAgd2hpbGUgKDEpICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAg
IHsNCiAgICAgICAgcHJpbnRmICgiLSIpOw0KICAgICAgICBmZmx1c2goc3Rkb3V0KTsgDQogICAg
ICAgIHVzbGVlcCAoMTAwMCk7IA0KICAgIH0vL2VuZHdoaWxlDQogICAgcmV0dXJuIDA7DQp9DQoN
CmludCBtYWluICggdm9pZCkNCnsNCiAgICBpbnQgcnVubmluZzsNCiAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICBwdGhy
ZWFkX3QgdGhyZWFkX2lkOw0KICAgIHB0aHJlYWRfY3JlYXRlKCZ0aHJlYWRfaWQsIE5VTEwsICZj
bGllbnQsIE5VTEwpOw0KDQogICAgcnVubmluZyA9IDE7ICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgDQogICAgd2hpbGUgKHJ1bm5pbmcpDQog
ICAgew0KICAgICAgICBwcmludGYgKCIqIik7DQogICAgICAgIGZmbHVzaChzdGRvdXQpOyANCiAg
ICAgICAgdXNsZWVwICgxMDAwKTsgDQogICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgIHJldHVybiAwOw0KfQ0KDQoNCg==


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