# 使用 Homebrew, MacPorts, pacman 安装 arm-none-eabi-gdb

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

## 安装

```sh
sudo av install brew:arm-none-eabi-gdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install arm-none-eabi-gdb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install arm-none-eabi-gdb
```

  证据: MacPorts ports tree: cross/arm-none-eabi-gdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S arm-none-eabi-gdb
```

  证据: Arch Linux sync databases: arm-none-eabi-gdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

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

## 可执行文件

- arm-none-eabi-gdb (别名)
- arm-none-eabi-gdb-add-index (别名)
- arm-none-eabi-gstack (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

arm-none-eabi-gdb is the Homebrew-packaged GNU Debugger built for the ARM bare-metal target tuple. The upstream project is GDB itself: the GNU Project debugger maintained at Sourceware in the shared binutils-gdb repository, with the formula name exposing the embedded cross-debugging target rather than a separate upstream project.

### 项目历史

GDB is one of the long-running GNU development tools. Sourceware's old-release archive lists GDB 2.0 in February 1987 and a long sequence of 2.x, 3.x, 4.x, and later releases, while the current manual is maintained by the Free Software Foundation and Sourceware. The project moved into the Sourceware-hosted binutils-gdb Git repository, where current sources, release branches, generated manuals, bug tracking, and release notes are published.

For package users, arm-none-eabi-gdb matters because GDB's target architecture support can be packaged separately from the host debugger. The `arm-none-eabi` tuple conventionally points at ARM embedded systems without an operating-system ABI, so this package sits next to cross GCC, binutils, OpenOCD, vendor board SDKs, and firmware build systems rather than ordinary host-native debugging.

### 采用历史

GDB became a default debugger in Unix-like development environments because it can debug native programs, remote targets, simulators, and many languages from a single CLI. Sourceware's project page explicitly describes native, remote, and simulator operation, which is exactly the capability embedded developers rely on when a workstation debugger talks to a microcontroller through a probe or debug server.

The cross-target package form reflects adoption by embedded toolchains and package managers: users install a target-specific binary named `arm-none-eabi-gdb` so scripts and IDE integrations can call the debugger that matches the rest of the ARM bare-metal toolchain.

### 使用方式

Typical use is command-line or IDE-driven debugging of firmware ELF files, often connecting to a remote target such as `gdbserver` or an embedded debug server. GDB startup reads early init files, system init files, home init files, local `.gdbinit`, command files, and command-line `-ex` or `-x` commands, which is why package users care about the exact init-file paths.

The package installs executables such as `arm-none-eabi-gdb`, `arm-none-eabi-gdb-add-index`, and `arm-none-eabi-gstack`, according to the supplied package facts.

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

This is a good example of a package name encoding a compiler target triple. The upstream repo is GDB, but the package identity is the cross-debugger binary name, so metadata needs to avoid inventing a separate `arm-none-eabi-gdb` upstream while still preserving the target-specific executable users actually install.

Its config story is unusually important for curation because GDB loads both global and per-directory initialization files, and local `.gdbinit` behavior is a common source of convenience, reproducibility, and security policy decisions.

### 时间线

- 1987: Sourceware's old-release archive lists gdb-2.0.
- 1999: Sourceware lists pre- and post-reformat GDB source snapshots.
- 2025: GDB 17.1 released with debugger adapter protocol, Python, Guile, and target-support changes.
- 2026: GDB 17.2 released as a corrective release.

### Related projects

- GNU Binutils shares the upstream binutils-gdb repository.
- GNU GCC and the `arm-none-eabi` cross toolchain are common companions.
- OpenOCD, pyOCD, and vendor debug servers commonly provide the remote target endpoint used by embedded GDB sessions.

### 来源

- <https://sourceware.org/gdb/>
- <https://sourceware.org/gdb/current/>
- <https://sourceware.org/gdb/current/onlinedocs/gdb.html/Startup.html>
- <https://sourceware.org/gdb/news/>
- <https://sourceware.org/pub/gdb/old-releases/>
- source_facts.description
- source_facts.executables


## 安全说明

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, system.gdbinit, system.gdbinit.d, $XDG_CONFIG_HOME/gdb/gdbinit, ~/.config/gdb/gdbinit, ~/.gdbinit, .gdbinit
- macOS: ~/Library/Preferences/gdb/gdbearlyinit, ~/.gdbearlyinit, system.gdbinit, system.gdbinit.d, ~/Library/Preferences/gdb/gdbinit, ~/.gdbinit, .gdbinit
## 其他软件包管理器记录

- pacman - arm-none-eabi-gdb - 17.2-1: normalized package name match | Arch Linux sync databases: arm-none-eabi-gdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The GNU Debugger for the ARM EABI (bare-metal) target | https://www.gnu.org/software/gdb/
- MacPorts - arm-none-eabi-gdb: normalized package name match | MacPorts ports tree: cross/arm-none-eabi-gdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
