Berkeley CSUA MOTD:Entry 14057
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/06 [General] UID:1000 Activity:popular
4/6     

1998/5/6-8 [Computer/SW/OS/Misc, Computer/SW/Compilers] UID:14057 Activity:kinda low
5/6     Can I use gdb on one host to debug a process running on a remote
        host via the network (not serial line)?
        \_ telnet to the host and start gdb. no, of course not, what is
           the point? you do this over serial for kernel debugging
           because it's necessary. why do you want to do this? why can't
           you log into the host? how would this work? i mean something
           has to sit on the host and interpret your commands and apply
           them to the harnessed process -- why can't that be a shell and
           gdb? i'm completely boggled by your POV. --aaron
        \_.. yes. (Now we wait in suspense for you to ask how) --daveh
        \_ i still think this is a "let me give you some artificial constraints
           without telling you enough about the problem to make useful
           suggestions" type of post. maybe if you gave us more info. --aaron
           \_ Nobody said the remote host was running telnetd or even unix.
              Debugging via tcp/netbios/ipx is very useful.  To answer the
              original question, no.  Cygnus might have some custom shme
              but all the gdb tethering I've seen so far is serial. --pld
        \_ That is standard procedure in most Real Time OS like PSoS or
           VxWorks/Tornado.  You run the debugger on one host and connected
           it via network or serial line to a target processor.  What OS is
           running on the target?  And if this is work-related, shouldn't
           you be asking your project leader?
           \_ Fear.  Maybe he *is* the project leader?!
           \_ He did say "process", not "OS"...