Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: John Clayton <johnc@osiris.ce.gatech.edu>
To: axp-list@redhat.com
Subject: xxgdb and C
Date: Fri, 4 Feb 2000 10:42:36 -0500 (EST)	[thread overview]
Message-ID: <Pine.SOL.3.92.1000204102528.1876B-100000@osiris> (raw)
In-Reply-To: <389AD6FA.3891B154@dcginc.com>

I'm having trouble getting xxgdb to work well with C.  If there are
solutions to these problems, I'm sure many of you have come across them
before.

One problem is that xxgdb won't recognize many simple library functions,
such as printf, sqrt, and pow.  It will execute these functions
correctly as long as I don't step to or break in lines that contain
these functions, but if I do step through lines with these functions
xxgdb says that the function is not defined (or something like that).  Is
there a problem with where it's looking for the libraries, such as in
some configuration file?  If so, how can I fix it?

Another problem is that I can't get xxgdb to recognize global macro
definitions included from other files.  Say I were to have the line

#define NUMBER 3

in a file that is included at the head of another file.  When I list a
function in the second file and request the value of anything that refers
to NUMBER, such as an array element y[NUMBER], the debugger says that
NUMBER is not in the current context.  How can I fix this?

Your suggestions are appreciated.

John M. Clayton
EPA STAR Graduate Research Fellow
Former NSF Graduate Research Fellow

------------------------------------------------------------------
Environmental Engineering  		Phone (404) 894-9725
Georgia Institute of Technology		Fax (404) 894-9724
email: johnc@osiris.ce.gatech.edu

Home Phone (404) 355-2594

Home Pages:
	AEES: 		http://osiris.ce.gatech.edu/~aees/
        Personal:	http://osiris.ce.gatech.edu/~johnc/
-------------------------------------------------------------------
Go Tigers!


  reply	other threads:[~2000-02-04 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-04 13:41 AXP KICKSTART Succeeded Kevin Wood
2000-02-04 15:42 ` John Clayton [this message]
2000-02-04 17:11   ` xxgdb and C Dr. David Gilbert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox