logo       

threads/2256: gdbserver thread: msg#00029

Subject: 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@xxxxxx
>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==



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe