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] |
Pedro> Then again, I don't think it's likely that programs map Pedro> strings at 0 (I think it's more like interrupt vectors), so for %s, Pedro> it's likely that nobody would miss printing 0 as a string. Another option would be to do a try-catch and only print "(null)" on failure, if the pointer is 0. Tom
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |