🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.software
2 messages
2 total messages Started by dmedhi Tue, 03 Nov 1992 20:56
a question on gdb on NeXT
#134
Author: dmedhi
Date: Tue, 03 Nov 1992 20:56
34 lines
1432 bytes
"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)
Re: a question on gdb on NeXT
#887
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads