Xref: utzoo comp.unix.aix:169 comp.unix.questions:17074 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!gatech!emcard!wa4mei!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.unix.aix,comp.unix.questions Subject: dbx thinks pointer is int Message-ID: <1161@msa3b.UUCP> Date: 19 Oct 89 18:51:47 GMT Followup-To: comp.unix.questions Organization: Management Science America, Inc., Atlanta, GA Lines: 20 I am running dbx on a large program. I have clearly defined "int *kpk;". However, when I tell dbx to "p kpk" it displays an integer, and when I tell it to "p *kpk" it tells me '"kpk" is not a pointer'. If I move the declaration inside the "main" function, dbx behaves normally. I have written a stub program int *kpk; void main (void) { } and dbx behaves properly on this program. Also, when I ask dbx "whereis kpk", it tells me ".kpk", so it looks like there is only one variable with this name. This is all under AIX PS/2 v1.1. Am I confused, or is dbx? -- Kevin Kleinfelter @ Management Science America, Inc (404) 239-2347 gatech!nanovx!msa3b!kevin