Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DDD GDB HELP needed

Posted on 2004-04-13
8
Medium Priority
?
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

618 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