Type findfuncbucket shown from gdb

19 views
Skip to first unread message

Yuwei Ba

unread,
Aug 19, 2017, 4:16:35 PM8/19/17
to golang-nuts
Hey guys, sorry for bothering :D

Here I want to ask a small question about the Golang binary debug info.

The steps to reproduce my problem:

1. $ cat symtab.go

```
package main

import (
"fmt"
"net/http"
_ "net/http/pprof"
"os"
)

func main() {
fmt.Println(os.Getpid())
http.ListenAndServe(":9990", nil)
}
```

2. $ go build symtab.go
3. $ ./main`
4. $ gdb -pid $THE-PID
5. (gdb) i types findfuncbucket
All types matching regular expression "findfuncbucket":

Here I wonder the type `findfuncbucket` was defined in https://github.com/golang/go/blob/ff90f4af66c30a819532fda8754bf29e8ae6140e/src/runtime/symtab.go#L498. So I guess it should show up here like

```
(gdb) i types runtime.bucket
All types matching regular expression "runtime.bucket":

File go:
struct runtime.bucket;
typedef runtime.bucketType;
struct struct { F uintptr; p unsafe.Pointer; b *runtime.bucket };
```


So what did I miss here? :D

Thanks!
Reply all
Reply to author
Forward
0 new messages