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 <mengzh...@gmail.com > <javascript:>> 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.