# 使用 Homebrew 安装 aarch64-elf-gdb

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aarch64-elf-gdb
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:aarch64-elf-gdb
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/aarch64-elf-gdb>
- **版本:** 17.2
- **来源摘要:** GNU debugger for aarch64-elf cross development
- **主页:** <https://www.gnu.org/software/gdb/>
- **上游文档:** <https://www.gnu.org/software/gdb/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/gdb/gdb-17.2.tar.xz>
- **最后更新:** 2026-05-26T23:37:45-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- aarch64-elf-gdb (cli)
- aarch64-elf-gdb-add-index (cli)
- aarch64-elf-gstack (cli)
- aarch64-elf-gdb (别名)
- aarch64-elf-gdb-add-index (别名)
- aarch64-elf-gstack (别名)

## 依赖

- gmp
- mpfr
- ncurses
- python@3.14
- readline
- xz
- zstd

## 构建依赖

- pkgconf
- texinfo

## macOS 提供的库

- expat

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 17.2
- 管理器更新时间: 2026-05-26
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/gdb/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

aarch64-elf-gdb is Homebrew's target-prefixed packaging of GDB, the GNU Project debugger, for AArch64 ELF cross development. It provides aarch64-elf-gdb and related helper executables for debugging target programs rather than host-native programs.

### 项目历史

The official GDB download page identifies GDB as the GNU Project Debugger and says releases go back to the 2.4/2.8 timeframe in 1988. Sourceware hosts the current documentation, release schedule, and the combined binutils-gdb.git source repository.

The Sourceware git summary publishes the official HTTPS repository URL and describes the repository as gdb and binutils. The GDB schedule page tracks modern release history, including GDB 17.2 in 2026.

### 采用历史

GDB became the standard debugger companion for GNU compiler and Binutils toolchains, and package managers often publish target-prefixed GDB builds for embedded or cross-development workflows. Homebrew's formula is one of those target-specific packages for aarch64-elf.

Official Homebrew analytics show the formula is specialized but actively used, matching the narrower audience for cross-debugging compared with host-native debugging.

### 使用方式

Users install aarch64-elf-gdb to debug AArch64 ELF programs, often alongside aarch64-elf-gcc and aarch64-elf-binutils. In cross workflows it is commonly used with remote targets, simulators, emulators, or debug stubs rather than running the target binary directly on the host.

GDB reads early and general initialization files at startup. The official manual documents different home-directory locations for non-macOS and macOS hosts, plus a local .gdbinit loaded from the current working directory.

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

This package matters because debugger target triples are as important as compiler target triples: the wrong GDB can misunderstand registers, ABI details, executable formats, or remote target expectations.

For package nerds, aarch64-elf-gdb completes the familiar GNU cross-toolchain set: Binutils for object manipulation, GCC for compilation, and GDB for debug sessions.

### 时间线

- 1988: The official GDB download page says old releases go back to the 2.4/2.8 timeframe.
- 2025: The GDB schedule page lists the GDB 17 branch date as June 21, 2025.
- 2026: Sourceware git tags list GDB 17.2 as a release.
- 2026: Homebrew's aarch64-elf-gdb formula packages GDB 17.2 for aarch64-elf cross development.

### Related projects

- GNU Binutils shares the binutils-gdb.git repository and supplies lower-level binary utilities used in GNU toolchains.
- GCC is the compiler commonly paired with GDB for source-level debugging of GNU-built programs.
- The aarch64-elf-binutils and aarch64-elf-gcc Homebrew formulae are target-matched companions.

### 来源

- <https://formulae.brew.sh/api/formula/aarch64-elf-gdb.json>
- <https://sourceware.org/gdb/download/>
- <https://sourceware.org/gdb/schedule/>
- <https://sourceware.org/git/?p=binutils-gdb.git;a=summary>


## 安全说明

escape, surveillance, or offensive capability signal.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: $XDG_CONFIG_HOME/gdb/gdbearlyinit, ~/.config/gdb/gdbearlyinit, ~/.gdbearlyinit, $XDG_CONFIG_HOME/gdb/gdbinit, ~/.config/gdb/gdbinit, ~/.gdbinit, .gdbinit
- macOS: ~/Library/Preferences/gdb/gdbearlyinit, ~/.gdbearlyinit, ~/Library/Preferences/gdb/gdbinit, ~/.gdbinit, .gdbinit
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aarch64-elf-gdb
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [texinfo](https://pkg.so/zh-hans/brew/texinfo/) - Build dependency declared by Homebrew.
- [gdb](https://pkg.so/zh-hans/brew/gdb/) - Shares the same upstream homepage.
- [arm-none-eabi-gdb](https://pkg.so/zh-hans/brew/arm-none-eabi-gdb/) - Shares the same upstream homepage.
- [riscv64-elf-gdb](https://pkg.so/zh-hans/brew/riscv64-elf-gdb/) - Shares the same upstream homepage.
- [x86_64-elf-gdb](https://pkg.so/zh-hans/brew/x86-64-elf-gdb/) - Shares the same upstream homepage.
- [i386-elf-gdb](https://pkg.so/zh-hans/brew/i386-elf-gdb/) - Shares the same upstream homepage.
- [ddd](https://pkg.so/zh-hans/brew/ddd/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools, gdb.
- [cgdb](https://pkg.so/zh-hans/brew/cgdb/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools, gdb.
- [delve](https://pkg.so/zh-hans/brew/delve/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [mspdebug](https://pkg.so/zh-hans/brew/mspdebug/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [remake](https://pkg.so/zh-hans/brew/remake/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [oclgrind](https://pkg.so/zh-hans/brew/oclgrind/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [dwarfutils](https://pkg.so/zh-hans/brew/dwarfutils/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
