I have an array of characters with about 100k entries. It seems like when in the function I
print *buffer it is getting cut off prematurely. is there anything I can do to lengthen the amount of characters gdb will print to console? If not, can I print this variable to file? I tried to use the dump commands, but couldnt seem to come up with the right thing.
I have an array of characters with about 100k entries. It seems like when
Share
If you want the ASCII character symbols printed as well, use
x/<size>c.BTW, I agree wholeheartedly with William Pursell’s comment under your question: “I find it much easier to define functions in the code that perform the data dump, and just call them from gdb. (Wrap the definitions in #ifdef DEBUG)”