aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorSanimir Agovic <sanimir.agovic@intel.com>2013-11-14 09:55:52 +0000
committerSanimir Agovic <sanimir.agovic@intel.com>2014-04-11 13:43:52 +0100
commitb86138fb0484f42db6cb83abed1e3d0ad2ec4eac (patch)
tree76a5f389812d8050b933a59cb0a0c73c7f27c1cc /gdb/eval.c
parentbcd629a44fff61527430f353cf77e20fe3afc395 (diff)
downloadgdb-b86138fb0484f42db6cb83abed1e3d0ad2ec4eac.zip
gdb-b86138fb0484f42db6cb83abed1e3d0ad2ec4eac.tar.gz
gdb-b86138fb0484f42db6cb83abed1e3d0ad2ec4eac.tar.bz2
vla: print "variable length" for unresolved dynamic bounds
1| void foo (size_t n) { 2| int vla[n]; 3| } Given the following expression (gdb) ptype &vla Gdb evaluates the expression with EVAL_AVOID_SIDE_EFFECTS and thus does not resolve the bounds information and misinterprets the high bound as a constant. The current output is: type = int (*)[1289346] this patch deals with this case and prints: type = int (*)[variable length] instead. * c-typeprint.c (c_type_print_varspec_suffix): Added check for not yet resolved high bound. If unresolved, print "variable length" string to the console instead of random length.
Diffstat (limited to 'gdb/eval.c')
0 files changed, 0 insertions, 0 deletions