This is the mail archive of the gdb-prs@sources.redhat.com 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/1181: can't read thread info in AIX5.1 core files


>Number:         1181
>Category:       threads
>Synopsis:       can't read thread info in AIX5.1 core files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 18 14:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     rutt at chezrutt dot com
>Release:        gdb-5.3
>Organization:
>Environment:
gcc-3.2.2 on AIX5.1
>Description:
Totalview and gbx can read the thread info in core dumps on AIX5.1, but dbx-5.3 fails to.  Follow the instrctions below.  Where is the thread info?

NOTE: thr.c explictly enables full core dumps and dbx knows about the threads.  So the problem is NOT with the core file per se.
>How-To-Repeat:
gcc -g -pthread thr.c
a.out
gdb a.out core
i threa
>Fix:

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

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1ZGUgPHB0aHJlYWQu
aD4KI2luY2x1ZGUgPHN5cy9zaWduYWwuaD4KCnN0YXRpYyB2b2lkCndfdGhyZWFkKHZvaWQgKmEp
CnsKICAgIGludCBpID0gKGludCkgYTsKICAgIHdoaWxlICgxKSB7CiAgICAgICAgcHJpbnRmKCJo
aSBmcm9tIHRocmVhZCBpZCAlZFxuIiwgcHRocmVhZF9zZWxmKCkpOwogICAgICAgIHNsZWVwKDMp
OwogICAgICAgIGlmIChpID09IDEpIHsKICAgICAgICAgICAgY2hhciAqcCA9ICZpOwogICAgICAg
ICAgICBmb3IgKDs7KQogICAgICAgICAgICAgICorK3AgPSAwOwogICAgICAgIH0KICAgIH0KfQoK
CgppbnQKbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpCnsKICAgIGludCAgICAgICAgICAgICBp
OwogICAgcHRocmVhZF90IHRpZDsKICAgIGludCAgICAgICAgICAgICByZXQ7CiAgICB0eXBlZGVm
IHZvaWQqICgqUFRfU1RBUlRfRk4pKHZvaWQqKTsKICAgIHB0aHJlYWRfYXR0cl90ICAgICAgYXR0
cnM7CgogICAgc3RydWN0IHNpZ2FjdGlvbiBhY3Q7CiAgICBhY3Quc2FfaGFuZGxlciA9IFNJR19E
Rkw7CiAgICBhY3Quc2FfZmxhZ3MgPSBTQV9GVUxMRFVNUDsKCiAgICBzaWdhY3Rpb24gKFNJR1NF
R1YsICZhY3QsIDApOwoKICAgIHB0aHJlYWRfYXR0cl9pbml0KCZhdHRycyk7CiAgICBwdGhyZWFk
X2F0dHJfc2V0ZGV0YWNoc3RhdGUoJmF0dHJzLCBQVEhSRUFEX0NSRUFURV9ERVRBQ0hFRCk7Cgog
ICAgcHJpbnRmKCJIZWxsbyB3b3JsZCFcbiIpOwoKICAgIGZvciAoaSA9IDA7IGkgPCAzOyBpKysp
CiAgICAgICAgcHRocmVhZF9jcmVhdGUoJnRpZCwgJmF0dHJzLCB3X3RocmVhZCwgKHZvaWQqKWkp
OwoKICAgIHNsZWVwKDEwMDAwMCk7CiAgICByZXR1cm4gMDsKfQo=


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