LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2007, 03:47 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
"No symbol table is loaded." when ddd is remote debugging with gdbserver


I want to use ddd for remote debugging with gdbserver.

I compile the program uintstr.cpp with "-g" option.

I start the program on the target.
$ gdbserver 172.20.11.211:10000 uintstr
Process uintstr created; pid = 8241


Then I start ddd on the host at the directory which has the source files.
$ ddd
(gdb) target remote 172.20.11.101:10000 uintstr

target display this message on the shell which mean the debug session is setup properly:
Remote debugging using 172.20.11.211:10000

At the host, I do:
(gdb) b main
(gdb) No symbol table is loaded. Use the "file" command.

Why "No symbol table is loaded"?
My PATH environment variable contains the current directory.

(gdb) cont
Program exited normally.

target display this message:
Killing inferior

$ gdbserver 172.20.11.211:10000 uintstr_pause
Process uintstr_pause created; pid = 8223
Remote debugging using 172.20.11.211:10000
sn 9001004 str 9001004
...

Child exited with retcode = 0

Child exited with status 0
GDBserver exiting


ddd version is 3.3.1 and gdb is 5.0rh-15.

Last edited by powah; 01-12-2007 at 03:54 PM.
 
Old 01-18-2008, 10:54 AM   #2
zeronio
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 1
I came across the same problem...
First you have to load the symbols with:
(gdb) file uintstr


Good luck!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DDD and "/sysdeps/i386/elf/start.S no such file..." problem vegetta Programming 3 03-25-2010 09:48 AM
Symbol-table for debugging while using make? JZL240I-U Programming 2 04-27-2006 05:17 AM
avgscan "relocation error" "undefined symbol: __dynamic_cast_2" Monster_user Linux - Software 0 02-22-2006 12:57 PM
gdbserver problem: no symbol table whepin Linux - Laptop and Netbook 0 06-24-2005 10:48 PM
what 's the difference between gdbserver and debugging stub? linuxpion Linux - General 0 03-07-2004 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration