Catalogue
Setting Up the Go Debugger gdb in Eclipse on MacOSX

Setting Up the Go Debugger gdb in Eclipse on MacOSX

🌐 日本語で読む

Overview

We will install GDB, the debugging module for Go.
However, due to security reasons on the Mac, using GDB
requires creating a certificate.

Environment

  • MacOSX 10.10.4 Yosemite
  • Go 1.4
  • Eclipse Mars Release (4.5.0)
  • gdb 7.9

Installing GDB

1
$ brew install homebrew/dupes/gdb

Checking the GDB Version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ gdb --version
GNU gdb (GDB) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin14.1.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

Creating the Certificate

Applying the gdb-cert Signature to gdb

1
2
$ codesign -s gdb-cert /usr/local/Cellar/gdb/7.9/bin/gdb        [master]
gdb-cert: ambiguous (matches "gdb-cert" and "gdb-cert" in /Library/Keychains/System.keychain)

Killing the taskgated Process

1
$ sudo killall taskgated

After restarting MacOSX, verify the following.

GDB Appears Under C/C++ as Shown Below

That’s all.

Setting Up the Go Debugger gdb in Eclipse on MacOSX

https://kenzo0107.github.io/en/2015/08/02/setting-for-gdb/

Author

Kenzo Tanaka

Posted on

2015-08-02

Licensed under