2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@GNU
/gdb
16 PKG_HASH
:=f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:gdb
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/gdb
/Default
28 DEPENDS
:=+!USE_MUSL
:libthread-db
+zlib
29 URL
:=https
://www.gnu.org
/software
/gdb
/
33 $(call Package
/gdb
/Default
)
35 DEPENDS
+=+libreadline
+libncurses
+zlib
38 define Package
/gdb
/description
39 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
40 another program while it executes -- or what another program was doing at the
44 define Package/gdbserver
45 $(call Package/gdb/Default)
46 TITLE:=Remote server for GNU Debugger
50 define Package/gdbserver/description
51 GDBSERVER is a program that allows you to run GDB on a different machine than the
52 one which is running the program being debugged.
55 # XXX: add --disable-werror to prevent build failure with arm
57 --with-system-readline \
61 --disable-unit-tests \
65 --disable-source-highlight
68 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
75 $(MAKE) -C $(PKG_BUILD_DIR) \
76 DESTDIR="$(PKG_INSTALL_DIR)" \
77 CPPFLAGS="$(TARGET_CPPFLAGS)" \
78 install-gdb install-gdbserver
81 define Package/gdb/install
82 $(INSTALL_DIR) $(1)/usr/bin
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
86 define Package/gdbserver/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
91 $(eval $(call BuildPackage,gdb))
92 $(eval $(call BuildPackage,gdbserver))