- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to get the source code from executable using g...
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
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
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
тАО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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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??
Ciao
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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??
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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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??
-- 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.