Handle OP_STRING in dump_subexp_body_standard
authorSimon Marchi <simon dot marchi at ericsson dot com>
Thu, 19 Jun 2014 14:45:33 +0000 (10:45 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 15 Jul 2014 15:18:04 +0000 (11:18 -0400)
commit2d40be181fad7aed4aeabafd36529f3684b8bcab
treeb7294c39f91cb1889ff4b915b3812c42d23a0e25
parentce9e3fe795c05bd7458a1466e14104f489f2b483
Handle OP_STRING in dump_subexp_body_standard

For some reason, OP_STRING is not handled in dump_subexp_body_standard.
This makes the output of "set debug expression 1" very bad when a string
is involved. Example:

(gdb) set debug expression 1
(gdb) print "hello"
... (random garbage, possibly segfault)

This commit handles OP_STRING and skips the appropriate number of exp
elements. The line corresponding to the string now looks like:

    0  OP_STRING             Language-specific string type: 0

gdb/ChangeLog:

2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>

* expprint.c (dump_subexp_body_standard): Handle OP_STRING.
gdb/ChangeLog
gdb/expprint.c
This page took 0.027501 seconds and 4 git commands to generate.