This is the mail archive of the gdb@sources.redhat.com 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] |
In many places GDB needs to pass along and pick apart blobs of memory. In many cases, GDB does this using `char *' pointers. Small blobs of memory are often allocated on the stack as `char[]' or `unsigned char[]'.
These are byte-oriented buffers, so using a type where we can perform byte-oriented arithmetic without superfluous casts seems like a good choice to me. Converting to void * (and not using the GCC extension which allows arithmetic on void *) would be a painful process.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |