comp.lang.ada
 help / color / mirror / Atom feed
* core Files with VADS 6.2.1(l)
@ 1996-02-22  0:00 David Kusuda
  0 siblings, 0 replies; 2+ messages in thread
From: David Kusuda @ 1996-02-22  0:00 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* core Files with VADS 6.2.1(l)
@ 1996-02-22  0:00 David Kusuda
  0 siblings, 0 replies; 2+ messages in thread
From: David Kusuda @ 1996-02-22  0:00 UTC (permalink / raw)







^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-02-22  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-02-22  0:00 core Files with VADS 6.2.1(l) David Kusuda
  -- strict thread matches above, loose matches on Subject: below --
1996-02-22  0:00 David Kusuda

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