From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a59c0afeb6808e51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-07 11:52:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "Steven Deller" Newsgroups: comp.lang.ada Subject: RE: Howto debug seg-faulting Ada 95 code? Date: Sat, 7 Sep 2002 13:50:11 -0500 Organization: Smooth Sailing LLC Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1031424723 87437 137.194.161.2 (7 Sep 2002 18:52:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 7 Sep 2002 18:52:03 +0000 (UTC) Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 In-reply-to: <87wuq3wb7p.fsf@inf.enst.fr> Importance: Normal Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.12 Precedence: bulk X-Reply-To: List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:28782 Date: 2002-09-07T13:50:11-05:00 To be precise: text : is ANY read-only item, both code and data constants data : is read-write items with an initial value (on systems that permit code to modify itself, any code that is modified goes here with data) bss : is read-write without an initial value (it is NOT required to be initialized to zero, but is on many systems). ... > -----Original Message----- > From: comp.lang.ada-admin@ada.eu.org > [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Samuel Tardieu > Sent: Tuesday, September 03, 2002 6:43 AM > To: comp.lang.ada@ada.eu.org > Subject: Re: Howto debug seg-faulting Ada 95 code? > ... > Yup, exactly. In general, you have the following memory areas > when you execute a program: (the first three usually come > from the executable file if this has any sense in your environment) > > + text: contains executable code > + data: contains pre-initialized data > + bss: same as data, but content is initialized to zero > (convenient > to avoid storing those zeroes in the executable file) > + heap: where your global allocations come from > + stacks: not shared between thread of controls (each one may have > several stacks) - those stacks may be allocated > in the heap > or may be separate > > Sam >