- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Finding Source file name from object or execut...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 02:32 AM
тАО09-11-2007 02:32 AM
Finding Source file name from object or executable
Amit
- Tags:
- debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 02:39 AM
тАО09-11-2007 02:39 AM
Re: Finding Source file name from object or executable
You could try:
# what filename
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 02:41 AM
тАО09-11-2007 02:41 AM
Re: Finding Source file name from object or executable
Another useful view would be provided by:
# nm filename
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 02:42 AM
тАО09-11-2007 02:42 AM
Re: Finding Source file name from object or executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 03:01 AM
тАО09-11-2007 03:01 AM
Re: Finding Source file name from object or executable
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 03:09 AM
тАО09-11-2007 03:09 AM
Re: Finding Source file name from object or executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2007 01:28 PM - edited тАО09-24-2011 06:18 PM
тАО09-11-2007 01:28 PM - edited тАО09-24-2011 06:18 PM
Re: Finding Source file name from object or executable
See my answer to your question in your other thread:
>The code doesn't have debug information so gdb also did not work.
If you are on IPF, you can usually get this info, even if -g isn't used. Unless the executable is stripped.
>Clay: As a general rule, no. That's the kind of information that compiling with -g does provide.
This info is available with commands mentioned in the link above.
Compiler option summary is available with footprints(1).
>nm also only works when the compilation is done by using -g option.
-g has nothing to do with nm(1), it doesn't look at debug info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2007 07:43 PM
тАО09-12-2007 07:43 PM
Re: Finding Source file name from object or executable
Regards,
Amit
- Tags:
- odump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2007 07:00 AM
тАО09-13-2007 07:00 AM
Re: Finding Source file name from object or executable
Sure it does. You just have to glue the base name to the CWD on the next line.
>the elfdump -dc option does not work
Sure it does. ;-)
elfdump works on ELF files (IPF and PA64). odump works on SOM files, PA32.
- Tags:
- elfdump