LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2010, 01:23 PM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
gdbserver errors


Hi all,
I've started gdbserver on a remote boards,gdbserver 192.168.0.7:222 test.
This all starts up OK.
On my PC I start off the other end with

arm-linux-gdb test

this gives

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibc"...


now I try to connect with

target remote 192.168.0.9:2222

this gives

Remote debugging using 192.168.0.9:2222
[New Thread 271]
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x400008c0 in ?? ()



It seems to connect however I get warnings about dynamic linker breakpoint functions. When I try to run with run

I get

The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: test
Don't know how to run. Try "help target".


on the arm board side gdbserver is dropped with killing inferior

Can anyone advise how I get the debugger to run? Thanks
 
Old 10-18-2010, 02:26 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by knobby67 View Post
Code:
target remote 192.168.0.9:2222
Don't you want "target remote 192.168.0.9:222"?

Regarding the following problem:
Code:
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x400008c0 in ?? ()
To save yourself a lot of typing, create a gdbinit file in the directory where you start arm-linux-gdb and put this in it
Code:
define sigs
    handle SIG32 nostop noprint pass
    handle SIG33 nostop noprint pass
end

define connect
    sigs
    set solib-absolute-prefix <path-to-your-ARM-shared-libraries-root>
    target remote 192.168.0.9:222
end
Then you can just type "connect" and [Enter] after you start GDB.
 
1 members found this post helpful.
Old 10-19-2010, 02:59 AM   #3
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Thanks.

Sorry typo by me, I was using 2222.

Found my problem, I can't use run on debugger, need to use continue.

Thanks for the init file tip

Last edited by knobby67; 10-19-2010 at 03:24 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using gdb/gdbserver with threads Hachaso Programming 0 06-25-2009 09:37 AM
Trying to get gdbserver to connect rahulthewall3000 Linux - Networking 2 08-20-2008 04:45 AM
need source code for gdbserver sekhar Linux - Software 1 06-06-2007 01:20 AM
gdbserver problem - multithread tashtego Programming 2 03-26-2007 07:27 AM
any gdbserver tutorial or documents? George2 Programming 0 07-18-2006 05:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration