<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
The question is, can they be well represented within gcc's usual trees/types/debug-info<br>for good experience in stock gdb.<br>Enums for example -- yes, I had them working.<br><br>Subranges -- what should the experience be?<br>For example, when I use debuggers, I use expression evaluation involving assignment<br>to set values. Should the debugger catch attempts to assign out of range values?<br>Or are subranges just integers with a certain number of bits and that is it and that suffices?<br>I understand the runtime does more precise checks than just bit-width.<br><br>sets -- I can see this being....are they just an integer or an array of integers?<br>Or higher level? I can see this being poor...unless unless.. gcc maybe already<br>had good support for Pascal? Maybe Ada has a similar feature?<br>Ada does actually look like Modula-3 to a large extent!<br><br>Consider also that on Darwin, none of this stuff works at all.<br>So even sets as integers or arrays of integers would be much better than current.<br><br>One has to read some of the gcc documentation, browse tree.h, tree.def, etc.,<br>learn what is well representable.<br><br>One shouldn't just completely ignore the significant infrastructure and just<br>tunnel all the information through in a custom way that stock gdb is completely ignorant of.<br><br><br> - Jay<br><br>> To: jay.krell@cornell.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] m3gdb broken <br>> Date: Fri, 1 Apr 2011 19:42:33 -0700<br>> From: mika@async.caltech.edu<br>> <br>> Jay K writes:<br>> ...<br>> >But that "custom information" is largely just basic type information=2C tha=<br>> >t any decent<br>> >C compiler/debug-info/debugger can handle.<br>> >Someone should investigate if we really pass stuff through that can't be we=<br>> >ll represented<br>> >in gcc's type information.<br>> >For example: sub ranges? sets? enums? packed?<br>> <br>> Subranges, sets, and enums certainly used to be shown in a "friendly" way<br>> by m3gdb.<br>> <br>> Mika<br> </body>
</html>