[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

DDD GDB HELP needed

Hi, I am trying to debug my program using gdb, but I am getting this error for some reason:

(gdb) run test1.init /dev/null
Starting program: /auto/home-scf-27/chunchen/csci565/Lab3/test /dev/null

Program exited normally.
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
You can't do that without a process to debug
(gdb)

I know the warning should not matter to my program but I am not sure why it says you can't do that without a process to debug.

The program i am loading is simply a program that prints 0 to 9.
I just wanted to test whether i can see the output in gdb or not.
As you can see, it does not print the output for some reason..

I did compile with -g flag.

Any help would be appreciated ..
thanks
0
lordiano
Asked:
lordiano
  • 3
  • 2
1 Solution
 
sunnycoderCommented:
What is the OS ? What version of gdb are you using ?
0
 
ssnkumarCommented:
I think the reason I is that the (dynamic) library you are using is stripped. Try a "nm /lib/libc.so.0" and if it doesn't display
any symbols you need to get a non-stripped version.

Mandrake 7.1 was shipped with some stripped libraries.
Hope you are not using that OS.

-ssnkumar
0
 
lordianoAuthor Commented:
Problem solved, its some settings in my .cshrc file..
i will award points to those who answered nontheless!
thanks again guys
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
lordianoAuthor Commented:
sunnycoder, the problem was that i was soucing a non-default set of parameters in my .cshrc  
its actually kinda irrevelent to ddd or gdb... but rather environment setting issues.
0
 
lordianoAuthor Commented:
source /usr/local/lib/master.cshrc

I think this parameter line is gonna be meaningless unless you are in USC heh
0
 
sunnycoderCommented:
Question PAQed and 125 points refunded

sunnycoder
Page Editor
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now