What is the role of runtime-gdb.py in Go?

I just created my first Go World Hello World program , built it, and created a binary. After checking the binary, I found a link to this python script inside the binary.

The description of this script reads

This script is loaded by GDB when it finds the .debug_gdb_scripts section in compiled binary format. [68] l Linkers emit this using the path to this file based on the path to the execution package.

I do not understand the meaning of this clearly. So what is runtime-gdb.py and how is this related to the Go language?

+4
source share
2 answers

gdb , script Go, ( , ) goroutines ( ). gdb Python .

+6

gdb python. script golang.

+2

Source: https://habr.com/ru/post/1683355/


All Articles