Re: [go-nuts] Any non-split 'print' functions available?
For this type of thing I'd recommend a debugger. -- Aram Hăvărneanu -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEAzY38F9C1%3DYM-xnvOo9h9%2Bn8SQqyO52im%2BYWdsU4mvhCUYJw%40mail.gmail.com.
Re: [go-nuts] Any non-split 'print' functions available?
On Thu, Oct 31, 2019 at 11:44 PM Xiangdong JI wrote: > > Thanks Ian, having difficulty figuring out how to print a pointer using > write1, could you please shed a light? Thanks. You have to do something like (untested) var buf [20]byte b := itoa(buf[:], uint64(uintptr(ptrToPrint))) write1(2, [0], len(b)) Ian > On Friday, November 1, 2019 at 2:00:04 PM UTC+8, Ian Lance Taylor wrote: >> >> On Thu, Oct 31, 2019 at 5:10 AM Xiangdong JI wrote: >> > >> > seeking utilities for diagnosing some 'nosplit' runtime functions. Thanks >> > a lot. >> >> b := []byte("my debug message\n") >> write1(2, [0], len(b)) >> >> Ian > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/d097f1f1-7127-49d3-834c-e22c8b7ecb26%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcX3LKNjAF6dmcW3tiDc4XzjyLvHF-fgHbU49QPvXY4Xdw%40mail.gmail.com.
Re: [go-nuts] Any non-split 'print' functions available?
Thanks Ian, having difficulty figuring out how to print a pointer using write1, could you please shed a light? Thanks. On Friday, November 1, 2019 at 2:00:04 PM UTC+8, Ian Lance Taylor wrote: > > On Thu, Oct 31, 2019 at 5:10 AM Xiangdong JI > wrote: > > > > seeking utilities for diagnosing some 'nosplit' runtime functions. > Thanks a lot. > > b := []byte("my debug message\n") > write1(2, [0], len(b)) > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d097f1f1-7127-49d3-834c-e22c8b7ecb26%40googlegroups.com.
Re: [go-nuts] Any non-split 'print' functions available?
On Thu, Oct 31, 2019 at 5:10 AM Xiangdong JI wrote: > > seeking utilities for diagnosing some 'nosplit' runtime functions. Thanks a > lot. b := []byte("my debug message\n") write1(2, [0], len(b)) Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVB983v7K3mfgb5GY4cojN0b9es6mXDdz6iZ8j15mts9Q%40mail.gmail.com.
[go-nuts] Any non-split 'print' functions available?
seeking utilities for diagnosing some 'nosplit' runtime functions. Thanks a lot. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/746e4708-fcdf-4e81-8b60-238e68f10572%40googlegroups.com.