<?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 Re: Using the debugger in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042527#M94068</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;_DUPLICATE_ _POST_ _OF_ :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 24 Jul 2007 08:22:23 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-07-24T08:22:23Z</dc:date>
    <item>
      <title>Using the debugger</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042526#M94067</link>
      <description>Hi ,&lt;BR /&gt; &lt;BR /&gt;   I have the following questions. Please suggest the solution for them. &lt;BR /&gt;  &lt;BR /&gt;    1) Can I use the WDB debugger with the aCC compiler in HP-UX 11i machine or should i use DDE only. &lt;BR /&gt;    &lt;BR /&gt;    2) Can I use "-g" Flag to compile the source code so that i can open the executable &lt;BR /&gt;&lt;BR /&gt;    3) Can I open the Core dump (core File) in the debuggers ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks in advance &lt;BR /&gt;Vikram&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042526#M94067</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-07-24T06:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the debugger</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042527#M94068</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;_DUPLICATE_ _POST_ _OF_ :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Jul 2007 08:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042527#M94068</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-24T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the debugger</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042528#M94069</link>
      <description>1) I actually prefer to use gdb since wdb is simply a GUI front-end for gdb but wither can be used.&lt;BR /&gt;&lt;BR /&gt;2) The -g flag is not strictly necessary for debugging but it does make life easier because this options includes debugger data in the object file(s). The most common debugger operation is a stack trace. Without -g, you will see the machine instructions that preceded the aborted but with -g you will see the source file and line number.&lt;BR /&gt;&lt;BR /&gt;3) Yes, &lt;BR /&gt;gdb myexe core&lt;BR /&gt;&lt;BR /&gt;If compiling with -g you can also add -d options to tell the debugger where the source files are located.&lt;BR /&gt;&lt;BR /&gt;The bad news is that if you have to ask this kind of stuff, you probably aren't the person that needs to be doing this. &lt;BR /&gt;&lt;BR /&gt;Rather than trying to debug a complex program, I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g. Allow it to die and produce a core file and debug it first. You can also run an executable under the debugger. Man gdb for details.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 08:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042528#M94069</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-24T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using the debugger</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042529#M94070</link>
      <description>Why would you want to use the obsolete and unsupported DDE?&lt;BR /&gt;If you want a GUI, there is wdb, if you want a command line, there is gdb.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) Can I use "-g" Flag to compile the source code so that i can open the executable&lt;BR /&gt;&lt;BR /&gt;(On Unix, you don't (windows) "open" executables, you run or debug them.)&lt;BR /&gt;&lt;BR /&gt;As Clay says, using -g will help tremendously in the debugger.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: Without -g, you will see the machine instructions that preceded the aborted&lt;BR /&gt;&lt;BR /&gt;On IPF, you'll also see the source and line info, even if you don't use -g.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If compiling with -g you can also add -d options&lt;BR /&gt;&lt;BR /&gt;You can also use the "dir" command to do this.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The bad news is that if you have to ask this kind of stuff,&lt;BR /&gt;&lt;BR /&gt;There is all sorts of documentation on the wdb web site:&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g.&lt;BR /&gt;&lt;BR /&gt;You can also debug this with IPF's +check=bounds.</description>
      <pubDate>Tue, 24 Jul 2007 23:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-the-debugger/m-p/4042529#M94070</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-07-24T23:02:16Z</dc:date>
    </item>
  </channel>
</rss>

