Package Details: msp430-elf-gdb 13.1-1

Git Clone URL: (read-only, click to copy)
Package Base: msp430-elf-gdb
Description: The GNU Debugger for the msp430-elf target.
Upstream URL:
Licenses: GPL
Groups: devel
Submitter: vonPalitroque
Maintainer: vonPalitroque
Last Packager: vonPalitroque
Votes: 10
Popularity: 0.043537
First Submitted: 2015-09-28 13:49 (UTC)
Last Updated: 2023-03-05 17:38 (UTC)

Latest Comments

Pezo commented on 2022-12-15 21:11 (UTC)

This doesn't build with readline 8.2 currently:

smallAndSimple commented on 2020-03-16 20:35 (UTC)

Oh, adding tui adds a dependency on ncurses. Still though, would something like a seperate package be an option? Or just adding ncurses as a dependency?

smallAndSimple commented on 2020-03-16 20:31 (UTC)

Hi there,

Can you enable tui by default (change --disable-tui to --enable-tui)? It does not seem to have disadvantages to me and I like tui a lot.

vonPalitroque commented on 2018-08-13 20:22 (UTC)


@Falkenber9, thank you very much for this. Yes, I recall this hitting the mailing list. I forgot to test whether it affected the GDB build. Thanks for reminding me. Also, thanks for reminding me I had to update the PKGBUILD to GDB 8.1.1; it was released 13 days ago [at the time of writing]. Luckily for us, the issue was fixed for the 8.1.1 release so the patch is no longer needed [1]. I have updated the PKGBUILD accordingly.

Still, thanks for the reminder and for the patch.




Falkenber9 commented on 2018-08-13 20:00 (UTC) (edited on 2018-08-13 20:06 (UTC) by Falkenber9)

Maybe it is helpful for someone else:

As a consequence of this bug I had to patch the source by the following patch:

index c29e7d7a6b..89443aee25 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1667,6 +1667,14 @@ finalize_python (void *ignore)
   restore_active_ext_lang (previous_active);

+#ifdef IS_PY3K
+PyInit__gdb (void)
+  return PyModule_Create (&python_GdbModuleDef);
 static bool
 do_start_initialization ()
@@ -1707,6 +1715,9 @@ do_start_initialization ()
      remain alive for the duration of the program's execution, so
      it is not freed after this call.  */
   Py_SetProgramName (progname_copy);
+  /* Define _gdb as a built-in module.  */
+  PyImport_AppendInittab ("_gdb", PyInit__gdb);
   Py_SetProgramName (progname.release ());
@@ -1716,9 +1727,7 @@ do_start_initialization ()
   PyEval_InitThreads ();

 #ifdef IS_PY3K
-  gdb_module = PyModule_Create (&python_GdbModuleDef);
-  /* Add _gdb module to the list of known built-in modules.  */
-  _PyImport_FixupBuiltin (gdb_module, "_gdb");
+  gdb_module = PyImport_ImportModule ("_gdb");
   gdb_module = Py_InitModule ("_gdb", python_GdbMethods);

Integrated into PKGBUILD:

# Maintainer: Orlando Arias <orlandoarias at gmail <dot> com>

pkgdesc="The GNU Debugger for the ${_target} target."
arch=('x86_64' 'x86')
depends=("python" "readline")

prepare() {
  cd "$srcdir/gdb-$pkgver"
  [[ -d gdb-build ]] && rm -rf gdb-build
  mkdir gdb-build

  cd "$srcdir/gdb-$pkgver"
  patch -p1 < ../../python.patch

  # fix libiberty
  # sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure


build() {
  unset LDFLAGS 
  export CFLAGS="-O2 -pipe"
  export CXXFLAGS="-O2 -pipe"
  export CPPFLAGS="-O2 -pipe"

  cd "$srcdir/gdb-$pkgver/gdb-build"

  # build gdb
  ../configure \
    --prefix=/usr \
    --without-guile \
    --target=${_target} \
    --host=${CHOST} \
    --build=${CHOST} \
    --with-sysroot=/usr/${_target} \
    --disable-nls \
    --with-python=/usr/bin/python \
    --with-system-readline \
    --disable-werror \


package() {
  cd "$srcdir/gdb-$pkgver/gdb-build"
  make DESTDIR="$pkgdir" install

  # fix conflicts
  # rm -f ${pkgdir}/usr/lib/libiberty.a
  rm -r ${pkgdir}/usr/share/info
  # rm -r ${pkgdir}/usr/{info,man}

  rm -r ${pkgdir}/usr/share/man
  rm -r ${pkgdir}/usr/share/gdb/
  rm -r ${pkgdir}/usr/include/gdb

# vim:set ts=2 sw=2 et:

andrewchen commented on 2015-11-28 10:12 (UTC)

Why is strip enforced?