# 使用 Homebrew 安装 x86_64-elf-gdb

查看 x86_64-elf-gdb 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:x86_64-elf-gdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install x86_64-elf-gdb
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:x86_64-elf-gdb
- **软件包管理器:** Homebrew
- **版本:** 17.2
- **来源摘要:** GNU debugger for x86_64-elf cross development
- **主页:** <https://www.gnu.org/software/gdb/>
- **最后更新:** 2026-05-10T20:39:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- x86_64-elf-gdb (别名)
- x86_64-elf-gdb-add-index (别名)
- x86_64-elf-gstack (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 17.2
## 项目历史与用法

GNU GDB is the GNU Project's portable source-level debugger. It is used to inspect a program while it runs, examine crashes, set breakpoints and watchpoints, inspect memory and registers, and change state during a debugging session.

The x86_64-elf variant packages GDB as a cross-debugger for bare-metal or freestanding x86-64 ELF targets rather than for the host operating system. That matters in OS development, firmware, kernels, and emulator workflows where the program being debugged cannot run a full debugger locally.

### 项目历史

GDB was first written by Richard Stallman in 1986 as part of the GNU system, after GNU Emacs had become reasonably stable. It was modeled after the dbx debugger from Berkeley Unix and released as free software under the GNU General Public License.

From 1990 to 1993 GDB was maintained by John Gilmore; it is now maintained by the GDB Steering Committee appointed by the Free Software Foundation. Development lives in the shared sourceware binutils-gdb repository, reflecting GDB's long technical relationship with BFD, object-file formats, assemblers, linkers, and the rest of the GNU toolchain.

### 采用历史

GDB became the standard debugger in much of the GNU, Unix-like, and embedded-toolchain world because it runs on common host systems while targeting many architectures and languages. Its command-line interface, machine interface, Python scripting, remote protocol, and IDE integrations made it useful both as a standalone tool and as plumbing underneath graphical debuggers and editors.

Remote debugging is central to its adoption outside ordinary user-space programs. The GDB manual describes remote debugging for systems that cannot run GDB normally, such as operating-system kernels and small systems without a general-purpose OS; OS development guides commonly pair GDB with QEMU, Bochs, serial stubs, or kernel stubs.

### 使用方式

Users install x86_64-elf-gdb when their target binary is an x86-64 ELF image independent of the host ABI. The target-prefixed executable keeps the debugger configured for cross-debugging and avoids accidentally treating a freestanding kernel, boot component, or emulator-loaded image as a native macOS or Linux process.

Typical sessions load symbols from a kernel or firmware ELF file, connect to a remote target with commands such as target remote localhost:1234, set breakpoints in early boot or kernel code, inspect registers and memory, and single-step code running under QEMU, Bochs, hardware stubs, or another simulator.

### 为什么软件包爱好者会关心

For package users, the important bit is the GNU target tuple in the executable name. x86_64-elf-gdb belongs with x86_64-elf-gcc and x86_64-elf-binutils in the classic bare-metal cross-toolchain stack used by OSDev tutorials and hobby kernels.

### 时间线

- 1986: Richard Stallman writes the first GDB as part of the GNU system.
- 1990-1993: John Gilmore maintains GDB.
- 2000s: GDB's remote debugging and machine-interface roles become core to embedded, IDE, and kernel workflows.
- 2020s: GDB continues in the sourceware binutils-gdb repository with active support for many languages, architectures, and remote targets.

### Related projects

- GNU Binutils supplies the object-file and disassembly ecosystem GDB depends on.
- GCC commonly emits the debug information that GDB consumes.
- QEMU and Bochs are common emulator partners for x86_64-elf remote debugging.

### 来源

- <https://en.wikipedia.org/wiki/GNU_Debugger>
- <https://sourceware.org/gdb/current/onlinedocs/gdb.html/Configure-Options.html>
- <https://sourceware.org/gdb/current/onlinedocs/gdb.html/Remote-Debugging.html>
- <https://wiki.osdev.org/GDB>
- <https://www.gnu.org/software/gdb/>


## 安全说明

escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- escape, surveillance, or offensive capability signal


## Combined YAML source

View the package source record on GitHub. [combined/x86_64-elf-gdb.yml](https://github.com/mxcl/pkgdb/blob/main/combined/x86_64-elf-gdb.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
