Article View: comp.windows.x
Article #38382Help in developing a X-Windows interface for GDB
From: Deepak Mulchandani
Date: Wed, 28 Apr 1993 03:10
Date: Wed, 28 Apr 1993 03:10
38 lines
2115 bytes
2115 bytes
Hi,
I am trying to write an X-windows based interface that runs on top of GDB. Could
anyone help me in understanding the way we are supposed to "fork" GDB off as a
subprocess ?? I currently use pipes but when I try and debug this program, the
following happens :
PROGRAM :
main()
{
int x;
printf("enter x : ");
scanf("%d", &x);
printf("x = .%d.\n", x );
}
OUTPUT :
The program hangs without returning the output of the printf statement. When I type
in a value (like 5), then all the printf's output comes out at one time.
Is there any other way, besides using PIPES to do this i.e., like ioctl or something else ??
Thanks,
Deepak
--------------------------------------------------------------------------------------------
Deepak Mulchandani
Advanced Products Research and Development Laboratory
Motorola, Semiconductor Products Sector
Austin, TX
(512) 928-7642 deepak@inxs.sps.mot.com
Technical Details
Message-ID:
<C66BGy.96s@mentor.cc.purdue.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!enterpoop.mit.edu!ai-lab!prep.ai.mit.edu!gnulistsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,12138b52b30e34d4,start X-Google-Attributes: gidf5053,public X-Google-Thread: 103734,12138b52b30e34d4,start X-Google-Attributes: gid103734,public X-Google-Thread: 10b6ac,12138b52b30e34d4,start X-Google-Attributes: gid10b6ac,public X-Google-Thread: 1076d4,12138b52b30e34d4,start X-Google-Attributes: gid1076d4,public X-Google-Thread: 11038b,12138b52b30e34d4,start X-Google-Attributes: gid11038b,public X-Google-ArrivalTime: 1993-04-27 23:42:15 PST To: gnu-gdb-bug@gatech.edu Distribution: world Approved: info-gnu@prep.ai.mit.edu Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!enterpoop.mit.edu!ai-lab!prep.ai.mit.edu!gnulists Followup-To: poster Newsgroups: comp.windows.x,comp.windows.misc,comp.windows.x.intrinsics,comp.windows.x.motif,gnu.gdb.bug From: deepak@expert.cc.purdue.edu (Deepak Mulchandani) Subject: Help in developing a X-Windows interface for GDB Message-ID: <C66BGy.96s@mentor.cc.purdue.edu> Organization: Motorola, Semiconductor Products Sector Date: Wed, 28 Apr 1993 03:10:07 GMT Lines: 39