Solved

DDD GDB HELP needed

Posted on 2004-04-13
8
334 Views
Last Modified: 2010-04-15
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
Comment
Question by:lordiano
  • 3
  • 2
8 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10820779
What is the OS ? What version of gdb are you using ?
0
 
LVL 8

Expert Comment

by:ssnkumar
ID: 10820974
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
 

Author Comment

by:lordiano
ID: 10822133
Problem solved, its some settings in my .cshrc file..
i will award points to those who answered nontheless!
thanks again guys
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:lordiano
ID: 10822190
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
 

Author Comment

by:lordiano
ID: 10822236
source /usr/local/lib/master.cshrc

I think this parameter line is gonna be meaningless unless you are in USC heh
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 0 total points
ID: 10822254
Question PAQed and 125 points refunded

sunnycoder
Page Editor
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question