This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
analysing/debuging stap
- From: "Peter Teoh" <htmldeveloper at gmail dot com>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 17 Apr 2008 16:31:59 +0800
- Subject: analysing/debuging stap
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=jJvB3ZXnsFykmwZLEo3/ovfSy8rNz+UVaAxQFGrCsHM=; b=V9CfDZL7GVmKa4IO3PAiFsb9ff2F7UZ0g2iebHqYB72KPitCtZlbwkwfJ0gPkj1EypPls0m82d8zo77tKWKL8RNTUm+JKxsVR8omNR9leW/rm7qj3LDDCnEa1WjcvkIajuhtB0owDBnANDvYiNvLyx1dNErmRLtJsXeZq9p27I4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sotGch9xQSET1NJxIqlhW5KSnF5yUl7aBep7uQGD4F8Kn7Ro4HH6ABvW63Ai3m46jC9aloD4HW1gq9OsHgPoIm9AD6rJoIsDclXM9LnJbOCty9zd60Bcc2+TmOF3v0wbKEntx9tER0eBrPEnifFwFEZIMDCowFGXLVkWHiSgYek=
I noticed that stap make external calls to staprun and stapio. If it
is fork() based, in gdb I can use follow on fork, but for stapio it is
exec() based, so how do I continue the debugging - is there a way to
follow on exec in gdb? I check and there seemed to be a patch for
doing that, but command line help I cannot find way of doing that.
And my current gdb version is also later than the patch posted for gdb
to enable follow on exec.
Any clues???? Thank you very much.
--
Regards,
Peter Teoh