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.6 required=5.0 tests=BAYES_05,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4fdb48d8039f6c98,start X-Google-Attributes: gid103376,public From: Rich Maggio Subject: Debugging Generics with GNAT 3.07 Date: 1997/04/16 Message-ID: #1/1 X-Deja-AN: 235090718 X-Nntp-Posting-Host: i123.113.world2u.com X-Nntp-Posting-User: (Unauthenticated) X-Trace: 861159084/19452 Organization: Rich Maggio Reply-To: maggior@world2u.com Newsgroups: comp.lang.ada Date: 1997-04-16T00:00:00+00:00 List-Id: I hope some kind soul can help me out here... I am having problems debugging generic packages using the GNAT distribution for DOS. I first started with GNAT 3.04 and encountered the same difficulty. I am now using 3.07 and am still having trouble. I have a generic package called queuel. It lives in a set of files called queuel.ads and queuel.adb. There is a "public" function in this package called clearqueue(). When I am at a GDB prompt, and I type in break queuel.clearqueue, it behaves as though I have asked it to set a breakpiont on a function that does not exist. I know the issue is not packages because if I use the same syntax with the name of a function in a non-generic package, it works fine. I have also tried the approach of breaking the main program and stepping into the generic package, but this does not work either. The function is executed in its entirety. It won't let me step into the function contained in the generic package. Could someone please help me? I have asked this question before and I was told that it should just work. Maybe I am missing something obvious, but I cannot figure it out. Nothing in the Ada specific documentation for GDB talks about debugging a generic package. Additionally, of what use if the program ad.exe? As far as I can tell, all it does is fire up GDB and runs the program. I cannot find any documentation on this either. In one of the readme files, it is described as a DOS UI on top of GDB. What's the magic? Any and all help is much appreciated. If it would be more appropriate to post this question elsewhere, please let me know where I should go. Programming without a debugger is like trying to change a tire with only a set of pliers - it can be damn frustrating, though you eventually get the job done. Thanks, Rich Maggio