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] |
On 2016-02-05 09:51, Pedro Alves wrote:
Did you consider a convenience function to convert a value to string, instead? Then you'd write: (gdb) printf "Visiting node of type %s\n", $_as_string(node) And maybe do other things with it. Thanks, Pedro Alves
No, but I think it's a good idea.Do you see _as_string as applicable to any type, a bit like str() in Python, or just to some specific types that we chose and make sense (like enum)?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |