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

Viewed 412

I just created my first "Hello World" program in Go language, built it and created the binary file. Upon inspecting the binary, I came across reference to this python script inside the binary file.

The description of this script reads

This script is loaded by GDB when it finds a .debug_gdb_scripts section in the compiled binary. The [68]l linkers emit this with a path to this file based on the path to the runtime package.

I don't understand the meaning of this clearly. So, what is runtime-gdb.py and how is it related to Go language?

2 Answers
Related