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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4665b6dcecb449c,start X-Google-Attributes: gid103376,public From: spear@wam.umd.edu (Eric Anthony Spear) Subject: help: gnat + gdb, can't find bug Date: 1996/11/04 Message-ID: <55kjn8$jjc@dailyplanet.wam.umd.edu>#1/1 X-Deja-AN: 194289787 organization: University of Maryland, College Park, MD newsgroups: comp.lang.ada Date: 1996-11-04T00:00:00+00:00 List-Id: I'm opening a few files as direct i/o and sequential i/o and for one of them I get a status_error. This occurs (as best I can figure out) when the passed file pointer is non-null (so it assumes the file pointer refers to an already open file). I used gdb to trace this problem, and presto! The error goes away. So, my program runs fine in gdb (I just enter the debugger and type "run.") But running normally, it always gets that exception raised. Are there any suggestions on how I can 1) duplicate the error in gdb so as to find out why this exception is being raised, 2) eliminate this error all together? Thanks in advance.