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] |
For some stubs these would be useful; for the stubs I deal with, which sit in user space on normal OS's, rather less so. The stub would end up calling malloc anyway.
Personally, I'm of the opinion that we should solve this problem by changing the definitions: mark strings as ephemeral and let the user call malloc or strdup directly if they want something to last.
Or make it a set option. I'm not sure how popular that idea would be; anyone else have a comment?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |