🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #24851

Re: How does one debug a server using dbx/gdb?

#24851
From: Al Amaral - SunSelect
Date: Tue, 12 Jan 1993 19:55
19 lines
1455 bytes
In article <7326@ucsbcsl.ucsb.edu> doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) writes:
>Is there a special trick to debug an X server binary using gdb or dbx?  That
>is, how can you start it up and have the debugger be able to follow the
>progress from the beginning, given that the server is normally started via
>xinit?  I know that I can start it normally and then attach to the process,
>but how would I debug it from the very beginning?
>Douglas Scott                              (805)893-8352

No special tricks.  The server does not have to be started up via xinit.
All you have to do is start the server inside of dbx, then manually start
an xterm (or a window manager) from a shell.  Naturally it helps if you 
have another workstation to use for debugging the server, but in a pinch 
a good ol trusty ascii terminal will do just fine.

--al--

-- 
--------------------------------------------------------------
Al Amaral				Al.Amaral@East.Sun.COM
Technical Details
Message-ID: <1iv7ocINNogl@seven-up.East.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!marley!ama
References: <7326@ucsbcsl.ucsb.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!marley!ama
From: ama@marley.East.Sun.COM (Al Amaral - SunSelect)
Newsgroups: comp.windows.x
Subject: Re: How does one debug a server using dbx/gdb?
Date: 12 Jan 1993 19:55:55 GMT
Organization: Sun Microsystems Inc. - BDC
Lines: 19
Message-ID: <1iv7ocINNogl@seven-up.East.Sun.COM>
References: <7326@ucsbcsl.ucsb.edu>
NNTP-Posting-Host: marley.east.sun.com