Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread Bishop, John E
> Maybe DWARF needs a DW_FORM_data16. Rather than one-plus to get data16 (soon we'd need data32, etc), I think you should use DW_FORM_block1. If consumers make invalid assumptions, we shouldn't change DWARF to compensate for that. I first thought of suggesting that we add words to the effect t

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread Jakub Jelinek
On Mon, Sep 17, 2012 at 05:39:38PM +, Bishop, John E wrote: > > Maybe DWARF needs a DW_FORM_data16. > > Rather than one-plus to get data16 (soon we'd need data32, etc), I think > you should use DW_FORM_block1. If consumers make invalid assumptions, we > shouldn't change DWARF to compensate fo

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread John DelSignore
In Fortran if you declare a variable as a "parameter", the compiler creates a named constant. The language allows named constants of any intrinsic type, that is, a numeric (integer, real, or complex) value, a character value (including strings), or a logical value. Given that strings are allowed

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread Michael Eager
Sounds like time to submit a proposal. On 09/17/2012 12:42 PM, John DelSignore wrote: In Fortran if you declare a variable as a "parameter", the compiler creates a named constant. The language allows named constants of any intrinsic type, that is, a numeric (integer, real, or complex) value, a

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread Cary Coutant
> Other debug formats that I've seen represented large constant values by > encoding the constant value a sequence of bytes, in the target platform's > byte order. The number of bytes in the constant value is (at least) as long > as the length of the type of the named constant. This is very conv

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread Cary Coutant
Sorry, forgot to reply-all... -- Forwarded message -- From: Cary Coutant Date: Mon, Sep 17, 2012 at 1:36 PM Subject: Re: [Dwarf-Discuss] Resend Encoding large constant values To: Tommy Hoffner > Giving me a 16 byte conhstant. My attempt on encoding this was > > < 6>< 69> DW_TA

Re: [Dwarf-Discuss] Resend Encoding large constant values

2012-09-17 Thread John DelSignore
Hi Cary, In a previous message, you asked: > Isn't DW_FORM_block* the form you're looking for? And in the message below, you identified that the standard already allows the block forms for constants, and the values are represented in "target architecture" format. So yes, this is exactly what I