From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6218608784788738079==" MIME-Version: 1.0 From: buddhika chamith To: elfutils-devel@lists.fedorahosted.org Subject: Libdw sample for reading function names and addresses Date: Sat, 08 Nov 2014 22:00:30 -0500 Message-ID: --===============6218608784788738079== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Devs, Not entirely sure if this is the correct forum. But any help is greatly appreciated. I have a requirement to read off function names and addresses from an ELF binary debug symbols. Is there any such piece of code that's already there that you have written? I had a look at some elfutils codes (e.g: nm.c) in the hope of adapting them to my requirement. But the libdw API is seems bit intimidating to me given that I have little knowledge on Dwarf format. Thanks in advance Bud --===============6218608784788738079== Content-Type: text/html MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" PGRpdiBkaXI9Imx0ciI+PGRpdj48ZGl2PkhpIERldnMsPGJyPjxicj48L2Rpdj5Ob3QgZW50aXJl bHkgc3VyZSBpZiB0aGlzIGlzIHRoZSBjb3JyZWN0CiBmb3J1bS4gQnV0IGFueSBoZWxwIGlzIGdy ZWF0bHkgYXBwcmVjaWF0ZWQuIEkgaGF2ZSBhIHJlcXVpcmVtZW50IHRvIApyZWFkIG9mZiBmdW5j dGlvbiBuYW1lcyBhbmQgYWRkcmVzc2VzIGZyb20gYW4gRUxGIGJpbmFyeSBkZWJ1ZyBzeW1ib2xz LiAKSXMgdGhlcmUgYW55IHN1Y2ggcGllY2Ugb2YgY29kZSB0aGF0JiMzOTtzIGFscmVhZHkgdGhl cmUgdGhhdCB5b3UgaGF2ZSAKd3JpdHRlbj8gSSBoYWQgYSBsb29rIGF0IHNvbWUgZWxmdXRpbHMg Y29kZXMgKGUuZzogbm0uYykgaW4gdGhlIGhvcGUgb2YgCmFkYXB0aW5nIHRoZW0gdG8gbXkgcmVx dWlyZW1lbnQuIEJ1dCB0aGUgbGliZHcgQVBJIGlzIHNlZW1zIGJpdCAKaW50aW1pZGF0aW5nIHRv IG1lIGdpdmVuIHRoYXQgSSBoYXZlIGxpdHRsZSBrbm93bGVkZ2Ugb24gRHdhcmYgZm9ybWF0Ljxi cj48YnI+PC9kaXY+PGRpdj5UaGFua3MgaW4gYWR2YW5jZTxicj48L2Rpdj5CdWQ8L2Rpdj4K --===============6218608784788738079==--