<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6620</bug_id>
          
          <creation_ts>2014-08-08 11:37:08 +0000</creation_ts>
          <short_desc>Add a quick example about .gdbinit</short_desc>
          <delta_ts>2014-08-15 05:51:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>15 August 2014: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45042</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-08-08 11:37:08 +0000</bug_when>
    <thetext>The documentation here writes what to put into the .gdbinit file, but it does not actually let the reader know where to put that: 

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#platdev-gdb-remotedebug-launch-gdb

Sure, it would be possible to go to Google or the gdb manual for figuring out, but since it could be a one-liner extension to be self-contained without jumping to external sites, I would personally suggest to add this to the manual:

existing line: set sysroot /home/jzhang/sysroot_arm

addition: Add this content to ~/.gdbinit.

For that matter, I would probably also replace &quot;/home/jzhang&quot; with &quot;~&quot; to be more user-agnostic and more generic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45044</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-08-08 12:39:18 +0000</bug_when>
    <thetext>Hi,

I have specified the .gdbinit file in the preceding text as &quot;~/.gdbinit&quot; to reinforce the location of the file.  The text prior to the example did specify that the following example statement did need to be added to .gbdinit.  Adding &quot;~/&quot; to the filename will leave leave no questions about what the user needs to modify.  

I have also replaced /home/jzhang with ~ as suggested.

You can see the changes at http://www.yoctoproject.org/docs/1.7/dev-manual/dev-manual.html#create-the-gdb-initialization-file.

Marking status as IN PROGRESS REVIEW.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45045</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-08-08 13:29:34 +0000</bug_when>
    <thetext>Looks good, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45146</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-08-15 05:51:24 +0000</bug_when>
    <thetext>Thanks for the check.  Marking as RESOLVED and doc flag to &quot;Done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>