mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-20 12:51:10 +08:00
gdb
* c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP. gdb/testsuite * gdb.base/charset.exp: Add regression test.
This commit is contained in:
10
gdb/c-lang.c
10
gdb/c-lang.c
@ -941,7 +941,15 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp,
|
||||
*pos += 2;
|
||||
|
||||
if (noside == EVAL_SKIP)
|
||||
return NULL;
|
||||
{
|
||||
/* Return a dummy value of the appropriate type. */
|
||||
if ((dest_type & C_CHAR) != 0)
|
||||
result = allocate_value (type);
|
||||
else
|
||||
result = value_typed_string ("", 0, type);
|
||||
do_cleanups (cleanup);
|
||||
return result;
|
||||
}
|
||||
|
||||
if ((dest_type & C_CHAR) != 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user