comp.lang.ada
 help / color / mirror / Atom feed
From: dkusu@atc-1s.hac.com (David Kusuda)
Subject: core Files with VADS 6.2.1(l)
Date: 1996/02/22
Date: 1996-02-22T00:00:00+00:00	[thread overview]
Message-ID: <4ggdu5$60h@hacgate2.hac.com> (raw)


We're using VADS 6.2.1(l) running under HP-UX 9.05 and trying to use the VADS
V_I_Except package to generate core files for unhandled exceptions.  The problem
that we're encountering is that if the main procedure contains a generic
instantiation, the core file is useless...it just takes us to the end of the
main procedure.

For example:

  with Text_IO;
  with V_I_Except;

  procedure Test is

    package IIO is new Text_IO.Integer_IO (Integer);

  begin
    V_I_Except.Enable_Unhandled_Dump_Core;
    V_I_Except.Enable_Traceback_Regs;
    .
    .
    .
  end Test;

For the above code fragment, if we get an unhandled exception, the debugger
points to the "end Test;" line.  But if instead we had:

  with Text_IO;

  package Extra_Package is

    package IIO is new Text_IO.Integer_IO (Integer);

  end Extra_Package;

  with Extra_Package;
  with V_I_Except;

  procedure Test is

    package IIO renames Extra_Package.IIO;

  begin
    V_I_Except.Enable_Unhandled_Dump_Core;
    V_I_Except.Enable_Traceback_Regs;
    .
    .
    .
  end Test;

If we get an unhandled exception with this construct, the debugger takes us
right to the offending line.

We're trying to backfit the V_I_Except package into existing code so we really
don't want to have to create new packages, since it won't necessarily be as
trivial as the above examples.  Has anyone else experienced the same thing, and
if so, is there a different work-around?  Does this problem exist in later
releases?



Dave





             reply	other threads:[~1996-02-22  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-22  0:00 David Kusuda [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-02-22  0:00 core Files with VADS 6.2.1(l) David Kusuda
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox