Skip to content

Commit 6a5f658

Browse files
committed
Add homebrew formula for GDB with Mips support
1 parent 6929290 commit 6a5f658

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class MipselNoneElfGdb < Formula
2+
desc "GDB: The GNU Project Debugger compiled for Mips"
3+
homepage "https://sourceware.org/gdb/"
4+
url "https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz"
5+
sha256 "2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772"
6+
7+
# inspired by https://github.com/orgs/Homebrew/discussions/1114#discussioncomment-8863715
8+
9+
depends_on "texinfo" => :build
10+
depends_on "gmp"
11+
depends_on "mpfr"
12+
depends_on "python@3.10"
13+
14+
def install
15+
mkdir "mipsel-none-elf-gdb-build" do
16+
system "../configure", "--target=mipsel-none-elf",
17+
"--prefix=#{prefix}",
18+
"--enable-tui=yes",
19+
"--without-isl",
20+
"--disable-werror"
21+
system "make"
22+
system "make", "install"
23+
end
24+
end
25+
26+
# not sure what to test...
27+
# test do
28+
# assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv")
29+
# end
30+
31+
end

0 commit comments

Comments
 (0)