Article View: comp.lang.modula2
Article #3124Re: Debugging Mocka programs
From: Holger Hopp
Date: Fri, 12 Jan 1996 10:36
Date: Fri, 12 Jan 1996 10:36
41 lines
2183 bytes
2183 bytes
In article <4ciqma$mm9@floyd.informatik.uni-kiel.de> rb@informatik.uni-kiel.d400.de (Ralf Behnke) writes: > >: we use the Mocka Modula-2 compiler in an advance > >: software laboratory course and wonder how > >: to debug the programs...gdb seems not to > >: understand the code. > > It seems that it depends on the version of the compiler and the operating > system: > > On Solaris I am not able to debug MOCKA-programs: gdb is not able to read > the symbols from the executable. In the newest MOCKA-Solaris version (since Nov 95) debugging with gdb is possible. > On Linux it is different: > > using a very old linux system I was able to debug the programs > on a newer system gdb can read the symbols, but "info functions" > ends with a segmentation fault. > > BTW: Does somebody know the reason for this latter behaviour? Is > this a problem of gdb or of the MOCKA-System? I can see no problem with gdb 4.13 (old slackware) as well as with gdb 4.14 (new slackware-ELF). The newest gdb 4.15.1 cannot understand enumeration types any longer, it ends with a segmentation fault (detected on SunOS 4.1 and Solaris, but I think as well on Linux). (Every MOCKA program contains a enum type BOOLEAN in the standard stabs entries.) I reported this bug to bug-gdb@prep.ai.mit.edu. So please wait for a newer gdb or use gdb 4.14. -- Holger Hopp <hopp@ira.uka.de> Institut fuer Programmstrukturen und Datenorganisation Fakultaet fuer Informatik, Universitaet Karlsruhe, D-76128 Karlsruhe (Germany)
Technical Details
Message-ID:
<HOPP.96Jan12113624@i41s25.ira.uka.de>Path:
arc1-ca.pugleaf.net!news.rz.uni-karlsruhe.de!hoppReferences:
<30D176E2.7C90@fernuni-hagen.de> <DJwHp8.3ID@cocolab.sub.com> <4ciqma$mm9@floyd.informatik.uni-kiel.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.rz.uni-karlsruhe.de!hopp From: hopp@ira.uka.de (Holger Hopp) Newsgroups: comp.lang.modula2 Subject: Re: Debugging Mocka programs Date: 12 Jan 1996 10:36:24 GMT Organization: University of Karlsruhe, Germany Distribution: ifi Message-ID: <HOPP.96Jan12113624@i41s25.ira.uka.de> References: <30D176E2.7C90@fernuni-hagen.de> <DJwHp8.3ID@cocolab.sub.com> <4ciqma$mm9@floyd.informatik.uni-kiel.de> NNTP-Posting-Host: i41s25.ira.uka.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: rb@informatik.uni-kiel.d400.de's message of 5 Jan 1996 10:23:22 +0100