Re: [go-nuts] How to debug internal package by gdb?
I've figured that out Turns out it's path is starts with vendor, not internal (gdb) info functions to show internal package file path File /root/godev/src/vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20/chacha_arm64.s: void vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20.block(void); void vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20.block4(void); (gdb) b vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20.block4 Breakpoint 1 at 0xe0840 @Ian Thanks for helping 在 2018年4月17日星期二 UTC+8下午8:54:25,Ian Lance Taylor写道: > > On Tue, Apr 17, 2018 at 1:20 AM, Zhuo Meng> wrote: > > > > I'm trying to write some internal package , but when I try to follow the > > code line by line using gdb. > > I found all the internal package are missing from breakpoint setting. > > > > How can I break on internal package? > > There is nothing special about internal packages with regard to > debugging. Are you completely sure that the package was imported by > your program? Are you sure that the functions on which you are trying > to set a breakpoint are called? > > 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. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] How to debug internal package by gdb?
I'm sure it's imported and called. here is the recording. https://asciinema.org/a/176733 Best regard Meng Zhuo 2018-04-17 20:53 GMT+08:00 Ian Lance Taylor: > On Tue, Apr 17, 2018 at 1:20 AM, Zhuo Meng wrote: > > > > I'm trying to write some internal package , but when I try to follow the > > code line by line using gdb. > > I found all the internal package are missing from breakpoint setting. > > > > How can I break on internal package? > > There is nothing special about internal packages with regard to > debugging. Are you completely sure that the package was imported by > your program? Are you sure that the functions on which you are trying > to set a breakpoint are called? > > 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. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] How to debug internal package by gdb?
On Tue, Apr 17, 2018 at 1:20 AM, Zhuo Mengwrote: > > I'm trying to write some internal package , but when I try to follow the > code line by line using gdb. > I found all the internal package are missing from breakpoint setting. > > How can I break on internal package? There is nothing special about internal packages with regard to debugging. Are you completely sure that the package was imported by your program? Are you sure that the functions on which you are trying to set a breakpoint are called? 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. For more options, visit https://groups.google.com/d/optout.
[go-nuts] How to debug internal package by gdb?
Hi, everyone I'm trying to write some internal package , but when I try to follow the code line by line using gdb. I found all the internal package are missing from breakpoint setting. How can I break on internal package? -- 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. For more options, visit https://groups.google.com/d/optout.