🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #887

Re: a question on gdb on NeXT

#887
From: Ricardo Parada
Date: Thu, 05 Nov 1992 16:24
53 lines
1858 bytes
In article <1992Nov3.205612.12989@parsifal.umkc.edu> dmedhi@.cstp.umkc.edu  
writes:
> 
> "file source.c" in DBX (in dec, sun, ...) activates source
> file  source.c where upon you can put breakpoint using stop etc for 
> debugging. Is there an equivalent command in gdb on NeXT? I have tried
> file, edit, view without any success.  Do I need to set something
> somewhere?
> 
> Another observation I have made is that once I am inside gdb and do 
> listing, I get 
>    (gdb) list
>       crt0.s: No such file or directory.
> 
>       However, if once I invoke gdb and do (right away) run, and list 
>       afterward as shown below:
>    (gdb) run
>       ...
>       ...
>       Program exited normally.
>    (gdb) list
>       #include <stdio.h>
>       ...
>       ...
> 
> then it gives listing and the source file happens to be the 
> first source file in my makefile. Any clue what's going on?
> 
> 
> (BTW, I am using NS 2.1)
> 
> Thanks.
> 
> Deep Medhi
> 
> dmedhi@aazoli.cstp.umkc.edu (NeXTmail okay)

Try setting a breakpoint at main() and then run the program.  For example:
   (gdb) b main
   (gdb) r
   stopped at main: ... blah, blah!
   (gdb) l
    1: #include <stdio.h>
    2: void main()
    3: {
         ...
   10:
   (gdb) _

That normally works for me, even under 2.1.  Hope it helps!

--
+ Ricardo J. Parada
Technical Details
Message-ID: <1992Nov5.162427.3619@pencom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!natinst.com!news.dell.com!dellunix!uudell!pensoft!usenet
References: <1992Nov3.205612.12989@parsifal.umkc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!natinst.com!news.dell.com!dellunix!uudell!pensoft!usenet
From: ricardo@chuy (Ricardo Parada)
Newsgroups: comp.sys.next.software
Subject: Re: a question on gdb on NeXT
Message-ID: <1992Nov5.162427.3619@pencom.com>
Date: 5 Nov 92 16:24:27 GMT
References: <1992Nov3.205612.12989@parsifal.umkc.edu>
Sender: usenet@pencom.com (Usenet Pseudo User)
Organization: Pencom Software
Lines: 53