diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-01 01:59:22 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-01 01:59:22 +0000 |
commit | 8219b1e8f046438d8d32e280ce522950505b5e89 (patch) | |
tree | 2b1c73cba50313a7b880b867ba4a91a381d93704 /gdb/varobj.c | |
parent | 84abc003c24331f743854192587d4aeb801b75bf (diff) | |
download | gdb-8219b1e8f046438d8d32e280ce522950505b5e89.zip gdb-8219b1e8f046438d8d32e280ce522950505b5e89.tar.gz gdb-8219b1e8f046438d8d32e280ce522950505b5e89.tar.bz2 |
remove dead code in varobj.c:c_value_of_variable
gdb/ChangeLog:
* varobj.c (c_value_of_variable): Remove dead code.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 8855ce3..6186db0 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -3288,11 +3288,6 @@ c_value_of_variable (struct varobj *var, enum varobj_display_formats format) catch that case explicitly. */ struct type *type = get_type (var); - /* If we have a custom formatter, return whatever string it has - produced. */ - if (var->pretty_printer && var->print_value) - return xstrdup (var->print_value); - /* Strip top-level references. */ while (TYPE_CODE (type) == TYPE_CODE_REF) type = check_typedef (TYPE_TARGET_TYPE (type)); |