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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c774f310a3b396 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-14 07:39:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!louie!tlk!not-for-mail Sender: lbrenta@lbrenta Newsgroups: comp.lang.ada Subject: Re: stacktrace on linux References: From: Ludovic Brenta Date: 14 Aug 2003 16:39:41 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 217.136.24.99 X-Trace: 1060871987 reader0.news.skynet.be 307 217.136.24.99:38678 X-Complaints-To: usenet-abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:41457 Date: 2003-08-14T16:39:41+02:00 List-Id: "Martin Moosbrucker" writes: > Hi, > > I'd like to get the stack trace of a program running on a RedHat 7.3 > operating system as I get it on a windows2000 os. > [...] > on RedHat I don't get any information of the lines in my sourcecode: [...] > I am using the following compile / bind and link switches on both ops: > > compiler: -O3 -gnatf -gnatwu -gnato -funwind-tables > binder: -f -E > linker: -g -i [...] I assume you're using the binary distribution of GNAT for GNU/Linux from ftp://ftp.cs.nyu.edu; it has support for symbolic stack traces. Most GNU/Linux distributions that include GNAT have this support disabled. I think you need to add -g to the compiler switches. You may combine it with -O3. You may also need to link against libaddr2line.a, which comes with GNAT, as I'm not sure whether or not the linker does it automatically for you. HTH -- Ludovic Brenta.