diff options
author | Pedro Alves <pedro@palves.net> | 2021-07-15 10:47:56 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2021-07-15 15:10:59 +0100 |
commit | 50991aaf22b03a9925ae37155f16bc8257f95242 (patch) | |
tree | db0d641ebab1211d0f79c5dc00062c0708ad5b60 /gdb/value.h | |
parent | 67ea24cb99efcd50d8acb6ce3e3ffbd8c97f0829 (diff) | |
download | binutils-users/palves/value_string.zip binutils-users/palves/value_string.tar.gz binutils-users/palves/value_string.tar.bz2 |
all languagesusers/palves/value_string
Change-Id: I79ef914087dbf85e1cbc19263843a6034383afe7
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h index 2439243..3313b9f 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -782,10 +782,12 @@ class scoped_value_mark const struct value *m_value; }; -/* Create a not_lval value with type TYPE_CODE_ARRAY. +/* Create not_lval value representing a NULL-terminated C string. The + resulting value has type TYPE_CODE_ARRAY. - PTR points to the string data; LEN is the length of the string including the - NULL terminator. */ + PTR points to the string data; LEN is number of characters (does + not include the NULL terminator). CHAR_TYPE is the character + type. */ extern struct value *value_cstring (const char *ptr, ssize_t len, struct type *char_type); |