🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #540

gdb attach bug

#540
From: Chris Dodd
Date: Tue, 22 Dec 1992 02:09
21 lines
923 bytes
I discovered that the `attach' command in gdb 4.7 doesn't work (at least on
sun4) -- it always gives an `attach not supported on this machine' error.
Simple patch to fix it:


*** inftarg.c.orig	Tue Dec 22 09:54:09 1992
--- inftarg.c	Tue Dec 22 09:58:19 1992
***************
*** 25,30 ****
--- 25,31 ----
  #include "wait.h"
  #include "gdbcore.h"
  #include "terminal.h"		/* For #ifdef TIOCGPGRP and new_tty */
+ #include "nm.h"			/* for ATTACH_DETACH */
  
  #include <signal.h>
  
-----------------------------

Chris Dodd
dodd@csl.sri.com
Technical Details
Message-ID: <9212221809.AA28620@pekoe.csl.sri.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csl.sri.com!dodd

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csl.sri.com!dodd
From: dodd@csl.sri.com (Chris Dodd)
Subject: gdb attach bug
Message-ID: <9212221809.AA28620@pekoe.csl.sri.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 22 Dec 1992 02:09:52 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 22