comp.lang.ada
 help / color / mirror / Atom feed
From: agent@drrob1.com
Subject: Re: confusing string error
Date: Mon, 17 Feb 2014 07:57:56 -0500
Date: 2014-02-17T07:57:56-05:00	[thread overview]
Message-ID: <io14g9d9nks7aigblsf7lkbq03ja2oompk@4ax.com> (raw)
In-Reply-To: lyr4742prq.fsf@pushface.org

On Sat, 15 Feb 2014 18:29:29 +0000, Simon Wright <simon@pushface.org>
wrote:

>adambeneschan@gmail.com writes:
>
>> On Saturday, February 15, 2014 4:53:42 AM UTC-8, ag...@drrob1.com wrote:
>>> On Sat, 15 Feb 2014 09:33:25 +0000, Simon Wright wrote:
>>
>>> I guess this is a case of the error code does not match the error.  I
>>> kept getting an error message about the character appending line.
>>> 
>>> I tried GDB and stepped through, and seemed to get the same error.
>
>GNAT/GDB finds it correctly for me;
>
>   (gdb) catch exception
>   Catchpoint 1: all Ada exceptions
>   (gdb) run
>   Starting program: /Users/simon/tmp/testtokenizea 
>    Input line : 1+
>
>    Number of characters read is           2.  Value of s'last is         2561, token.state = DGT, sum=          1, DELIMCH= +, DELIMSTATE= OP
>
>   Catchpoint 1, ADA.STRINGS.INDEX_ERROR at 0x0000000100001cdb in tokenizea__getopcode (token=...) at tokenizea.adb:121
>   121	      CH2 := Element(Token.UStr,2);

I'll have to use the catch command in the future, now that you have
taught it to me.

Thanks
--rob


  reply	other threads:[~2014-02-17 12:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 12:38 confusing string error agent
2014-02-14 13:03 ` Jacob Sparre Andersen
2014-02-15  0:46   ` agent
2014-02-15  1:50     ` adambeneschan
2014-02-15  8:41       ` Simon Wright
2014-02-15  1:57     ` adambeneschan
2014-02-15  9:33     ` Simon Wright
2014-02-15 12:53       ` agent
2014-02-15 16:58         ` adambeneschan
2014-02-15 18:29           ` Simon Wright
2014-02-17 12:57             ` agent [this message]
2014-02-15 13:15       ` agent
2014-02-15 17:56         ` Jeffrey Carter
replies disabled

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