<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get the source code from executable using gdb?? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472387#M69601</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;How to get the source code from executable using gdb??&lt;BR /&gt;&lt;BR /&gt;Can anyone explain me with simple c program?</description>
    <pubDate>Thu, 27 Jan 2005 06:47:13 GMT</pubDate>
    <dc:creator>VEL_1</dc:creator>
    <dc:date>2005-01-27T06:47:13Z</dc:date>
    <item>
      <title>How to get the source code from executable using gdb??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472387#M69601</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;How to get the source code from executable using gdb??&lt;BR /&gt;&lt;BR /&gt;Can anyone explain me with simple c program?</description>
      <pubDate>Thu, 27 Jan 2005 06:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472387#M69601</guid>
      <dc:creator>VEL_1</dc:creator>
      <dc:date>2005-01-27T06:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the source code from executable using gdb??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472388#M69602</link>
      <description>binary executables doesn't contain the source code. They can be compiled including debug informations, so debuggers like gdb, ddd etc... could run step-by-step the executable while showing the source code, but you need the original source code file.&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Claudio</description>
      <pubDate>Thu, 27 Jan 2005 09:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472388#M69602</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2005-01-27T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the source code from executable using gdb??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472389#M69603</link>
      <description>first, for gdb to be able to work the binary needs to be compiled with the debuging option.&lt;BR /&gt;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.</description>
      <pubDate>Fri, 28 Jan 2005 02:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472389#M69603</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2005-01-28T02:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the source code from executable using gdb??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472390#M69604</link>
      <description>* You will first have to compile your executable using -g option. This will generate debug information in the binary and tell gdb where to look for source files and source and instruction correlations. &lt;BR /&gt;* Whiile debugging, the source files need to be avaliable for access by gdb.&lt;BR /&gt;* You can use "list" command to list a source file inside gdb.&lt;BR /&gt;* "Disassemble" command will show the assembly and source code interspersed.</description>
      <pubDate>Fri, 28 Jan 2005 14:09:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472390#M69604</guid>
      <dc:creator>Himabindu Vuppula</dc:creator>
      <dc:date>2005-01-28T14:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the source code from executable using gdb??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472391#M69605</link>
      <description>We can easily get source of a c program as,&lt;BR /&gt;&lt;BR /&gt;-- exmaple program ---&lt;BR /&gt;//test.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;main() {&lt;BR /&gt;&lt;BR /&gt;printf("Hello World!!\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;--Compilation--&lt;BR /&gt;cc -ggdb3 -o test test.c&lt;BR /&gt;where -ggdb3 will have all debugging symbols&lt;BR /&gt;&lt;BR /&gt;--Debugging--&lt;BR /&gt;gdb -q test&lt;BR /&gt;(gdb) li&lt;BR /&gt;1       #include &lt;STDIO.H&gt;&lt;BR /&gt;2&lt;BR /&gt;3       main() {&lt;BR /&gt;4&lt;BR /&gt;5       printf("Hello World!!\n");&lt;BR /&gt;6       }&lt;BR /&gt;(gdb)q&lt;BR /&gt;&lt;BR /&gt;That is all.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 09 Feb 2005 06:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-the-source-code-from-executable-using-gdb/m-p/3472391#M69605</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-02-09T06:31:58Z</dc:date>
    </item>
  </channel>
</rss>

