# Install i386-elf-gdb with Homebrew

GNU debugger for i386-elf cross development. Version 17.2 via Homebrew; verified 2026-05-10.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install i386-elf-gdb
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:i386-elf-gdb
- **Package manager:** Homebrew
- **Version:** 17.2
- **Source summary:** GNU debugger for i386-elf cross development
- **Homepage:** <https://www.gnu.org/software/gdb/>
- **Last updated:** 2026-05-10T20:39:27Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- i386-elf-gdb (alias)
- i386-elf-gdb-add-index (alias)
- i386-elf-gstack (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 17.2
## Project history and usage

i386-elf-gdb is Homebrew's target-prefixed build of the GNU Debugger for i386-elf cross development. The package matters because it gives bare-metal and operating-system developers a debugger whose executable name matches the target triple used by their cross compiler and binutils.

### Project history

GDB came from the early GNU system effort. GNU's January 1987 bulletin described GDB as a source-level C debugger written for GNU in 1986, and Richard Stallman's 1986 KTH lecture described it as a symbolic C debugger influenced by DBX.

The Sourceware documentation describes GDB as a debugger for seeing what happens inside a running program or at the moment it crashes, with support for stopping execution, examining state, and changing program behavior. The GDB news archive shows the long public release line, including GDB 4.18 in 1999, the 5.0 release cycle in 2000, and later 6.x releases.

### Adoption history

GDB became one of the standard GNU development tools alongside GCC and Binutils. Its adoption spread through Unix-like systems because it could debug native programs, remote targets, and simulator targets, and because GNU toolchains made source-level debugging part of the normal compile-link-debug loop.

The i386-elf-gdb formula is a narrower package-manager artifact: Homebrew labels it as the GNU debugger for i386-elf cross development and ships executables such as i386-elf-gdb. That target prefix is valuable for cross projects because it avoids mixing host debuggers with bare-metal toolchains.

### How it is used

Typical use is debugging i386-elf binaries produced by a matching cross compiler, often through a simulator, emulator, remote stub, or kernel-development workflow. The upstream GDB manual's core workflow is unchanged: load a program or symbols, run or connect to a target, set breakpoints, inspect registers and variables, and step through execution.

For package users, the significant detail is the executable prefix. Scripts, Makefiles, and OS-development tutorials can call i386-elf-gdb explicitly and stay separate from /usr/bin/gdb or an unprefixed Homebrew GDB.

### Why package nerds care

This is a classic cross-toolchain package: upstream GDB is broad and old, while the package name encodes the target ABI. Package nerds care because target-prefixed GNU tools make reproducible cross environments possible without replacing the host compiler or debugger.

### Timeline

- 1986: GDB entered distribution as a GNU source-level C debugger.
- 1987: GNU's bulletin listed GDB among GNU software available from the Free Software Foundation.
- 1999: GDB 4.18 release announced in the Sourceware news archive.
- 2000: GDB 5.0 released after a public branch and release cycle.
- 2026: Homebrew packaged i386-elf-gdb as a GDB build for i386-elf cross development.

### Related projects

- GDB shares the Sourceware binutils-gdb repository with GNU Binutils.
- It is commonly paired with GCC, GNU Binutils, QEMU, simulators, and remote debugging stubs in cross-development workflows.

### Sources

- <https://formulae.brew.sh/formula/i386-elf-gdb>
- <https://sourceware.org/gdb/documentation/>
- <https://www.gnu.org/bulletins/bull2.txt>
- <https://www.gnu.org/philosophy/stallman-kth.html>
- <https://www.gnu.org/software/gdb/>
- <https://www.sourceware.org/gdb/news/>


## Security Notes

escape, surveillance, or offensive capability signal.

- **Geiger risk:** red / medium
- escape, surveillance, or offensive capability signal


## Combined YAML source

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


## Sources

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