- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- How to get the source code from executable using g...
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
How to get the source code from executable using gdb??
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-26-2005 10:47 PM
01-26-2005 10:47 PM
How to get the source code from executable using gdb??
Can anyone explain me with simple c program?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-27-2005 01:04 AM
01-27-2005 01:04 AM
Re: How to get the source code from executable using gdb??
Re: How to get the source code from executable using gdb??
Ciao
Claudio
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-27-2005 06:19 PM
01-27-2005 06:19 PM
Re: How to get the source code from executable using gdb??
Re: How to get the source code from executable using gdb??
second, if you want to debug an application/tool that was included in your linux distro, you can almost always download the source code and look at it, or compile it yourself this time including the debug option.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-28-2005 06:09 AM
01-28-2005 06:09 AM
Solution* Whiile debugging, the source files need to be avaliable for access by gdb.
* You can use "list" command to list a source file inside gdb.
* "Disassemble" command will show the assembly and source code interspersed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-2005 10:31 PM
02-08-2005 10:31 PM
Re: How to get the source code from executable using gdb??
Re: How to get the source code from executable using gdb??
-- exmaple program ---
//test.c
#include
main() {
printf("Hello World!!\n");
}
--Compilation--
cc -ggdb3 -o test test.c
where -ggdb3 will have all debugging symbols
--Debugging--
gdb -q test
(gdb) li
1 #include
2
3 main() {
4
5 printf("Hello World!!\n");
6 }
(gdb)q
That is all.
HTH.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP