RE: Variable Length Arrays (VLA) proposal

Chris January <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <1372956951.2796.48.camel@gumtree>
On Thu, 2013-07-04 at 11:49 +0000, Agovic, Sanimir wrote:
> Afaik gdb does a combination of:
> 
> const char * exp = [...]
> struct expression *expr = parse_expression (exp);
> struct value *val = evaluate_type (expr);
> [...]
> 
> for whatis/ptype therefore we should be fine as we have a value in place.

1. The value is not passed through to f_print_type.
2. evaluate_type evaluates expr with no side effects and no memory reads
- but for VLA the type depends on the actual value so you do not to
evaluate with side effects. 

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.