This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Expand LEN parameter of value_*string functions


>>>>> "Siddhesh" == Siddhesh Poyarekar <siddhesh@redhat.com> writes:

Siddhesh> The value_string and value_cstring functions take string
Siddhesh> lengths as parameters and that ought to be at least ssize_t.

Siddhesh> 	* gdbtypes.c (lookup_array_range_type): Expand parameters
Siddhesh> 	LOW_BOUND and HIGH_BOUND to LONGEST.
Siddhesh> 	(lookup_string_range_type): Likewise.
Siddhesh> 	* gdbtypes.h (lookup_array_range_type): Likewise.
Siddhesh> 	(lookup_string_range_type): Likewise.
Siddhesh> 	* valops.c (value_cstring): Expand parameter LEN to ssize_t.
Siddhesh> 	Expand HIGHBOUND to ssize_t.
Siddhesh> 	(value_string): Likewise.
Siddhesh> 	* value.h (value_cstring): Expand parameter LEN to ssize_t.
Siddhesh> 	(value_string): Likewise.

Ok.  Thanks.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]