diff options
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/language.c b/gdb/language.c index 0d1e384..2ee32a1 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -47,6 +47,7 @@ #include <algorithm> #include "gdbarch.h" #include "compile/compile-internal.h" +#include "arch-utils.h" static void set_range_case (void); @@ -976,6 +977,14 @@ language_string_char_type (const struct language_defn *la, return ld->arch_info[la->la_language].string_char_type (); } +struct value * +language_defn::value_string (struct gdbarch *gdbarch, + const char *ptr, ssize_t len) const +{ + struct type *type = language_string_char_type (this, gdbarch); + return value_cstring (ptr, len, type); +} + /* See language.h. */ struct type * |