* AXP KICKSTART Succeeded
@ 2000-02-04 13:41 Kevin Wood
2000-02-04 15:42 ` xxgdb and C John Clayton
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wood @ 2000-02-04 13:41 UTC (permalink / raw)
To: axp-list
On correction to the last line of that e-mail:
To boot the system with the kickstart disk, use the following command
boot dva0-file vmlinux.gz -flags "root=/dev/fd0 load_ramdisk=1
ks=floppy"
Now all should work.
Sorry about that.
--
Kevin Wood Contact Us about our BTO
klwood@dcginc.com Alphas
DCG Computers, Inc. Suns
850 East Industrial Park Dr. Suite 8 Intel
Manchester, NH 03109 AMD (New!!!)
(603)622-7171 x 15 Systems
^ permalink raw reply [flat|nested] 3+ messages in thread
* xxgdb and C
2000-02-04 13:41 AXP KICKSTART Succeeded Kevin Wood
@ 2000-02-04 15:42 ` John Clayton
2000-02-04 17:11 ` Dr. David Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: John Clayton @ 2000-02-04 15:42 UTC (permalink / raw)
To: axp-list
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!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: xxgdb and C
2000-02-04 15:42 ` xxgdb and C John Clayton
@ 2000-02-04 17:11 ` Dr. David Gilbert
0 siblings, 0 replies; 3+ messages in thread
From: Dr. David Gilbert @ 2000-02-04 17:11 UTC (permalink / raw)
To: axp-list
On Fri, 4 Feb 2000, John Clayton wrote:
> 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?
You can't look inside these functions normally because you don't have the
source.
> 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?
Correct - NUMBER doesn't make it as far as the C compiler; the
preprocessor will replace all NUMBERs by 3; so their is no way the
debugger can see it.
A simple answer is to stop using #define's for constants and use const's:
const int Number=3;
Dave
/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@px.uk.com +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org http://www.treblig.clara.net |
\------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-04 17:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-04 13:41 AXP KICKSTART Succeeded Kevin Wood
2000-02-04 15:42 ` xxgdb and C John Clayton
2000-02-04 17:11 ` Dr. David Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox