This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Expand LEN parameter of value_*string functions
- From: Tom Tromey <tromey at redhat dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 26 Sep 2012 11:37:29 -0600
- Subject: Re: [PATCH] Expand LEN parameter of value_*string functions
- References: <20120925203940.591674f1@spoyarek>
>>>>> "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