🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8818

gdb and the new operator

#8818
From: Justin Seiferth
Date: Fri, 23 Oct 1992 23:42
17 lines
1088 bytes
I am using gdb 4.6 and gcc 2.2.1.  When I attempt a:

int *foo = new int[size];

gdb bombs (exited abnormally)

If I use:

int *foo = malloc(sizeof(int)*size);

well everything works peachy and I can continue stepping through the
program. Is this typical for gdb?  Is there something I can do about
it?  I tried compiling with CC, same result.  If it matters, I'm using
SunOS4.1 and xxgdb as an interface to gdb.

Thanks...
seiferth@rufous.cs.unm.edu
Technical Details
Message-ID: <BwLLv9.9Gr@boa.cs.unm.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!boa.cs.unm.edu!seiferth

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,eb375098861f32a3,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-10-24 06:28:19 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!boa.cs.unm.edu!seiferth
From: seiferth@boa.cs.unm.edu (Justin Seiferth)
Subject: gdb and the new operator
Message-ID: <BwLLv9.9Gr@boa.cs.unm.edu>
Sender: gnulists@ai.mit.edu
Organization: Computer Science Department, University of New Mexico
Distribution: gnu
Date: Fri, 23 Oct 1992 23:42:56 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 20