🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1217

gdb and shared libraries

#1217
From: Doug Abbott
Date: Mon, 01 May 2006 04:09
33 lines
2504 bytes
Hi,

I know this problem has been alluded to in the past, but I haven't seen 
a workable solution to the exact problem I'm seeing.  I'm running gdb 
6.3 under Red Hat 9 on a PC accessing an ARM9 target board through 
gdbserver.  Oh, and by the way, I refuse to work at the command line 
level so I'm running DDD on top of gdb.

In trying to debug a simple "Hello World" program, which appears to run 
correctly on the target outside of gdb, here's what I get.  When I 
connect to the remote target via TCP, I get:

    0x40001470 in ?? ()

This in itself is suspicious.  I don't recall ever seeing anything like 
this before using other remote targets.  Then when I execute next, I get:

    Cannot access memory at address 0x0
    Cannot find bounds of current function

Hmmm, that last one leads me to believe gdb isn't finding the 
appropriate shared libraries.  I tried executing the command:

    set solib-search-path <arm_library_path>

before connecting to the target.  Didn't work.

And why on earth should gdb be trying to access memory at address 0?  
Any thoughts???

Thanks,

Doug
Technical Details
Message-ID: <mailman.1167.1146456589.9609.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,1f1c7aba8aef3cb7,start
X-Google-Attributes: gidf5053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
From: Doug Abbott <doug@intellimetrix.us>
Newsgroups: gnu.gdb.bug
Subject: gdb and shared libraries
Date: Sun, 30 Apr 2006 22:09:31 -0600
Lines: 37
Approved: bug-gdb@gnu.org
Message-ID: <mailman.1167.1146456589.9609.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.Stanford.EDU 1146456590 14973 199.232.76.165 (1 May 2006 04:09:50 GMT)
X-Complaints-To: news@news.stanford.edu
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>