You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.7 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages gdb)
  19. #:use-module (gnu packages)
  20. #:use-module (gnu packages ncurses)
  21. #:use-module (gnu packages readline)
  22. #:use-module (gnu packages dejagnu)
  23. #:use-module (gnu packages texinfo)
  24. #:use-module (gnu packages multiprecision)
  25. #:use-module (gnu packages xml)
  26. #:use-module (gnu packages python)
  27. #:use-module ((guix licenses) #:select (gpl3+))
  28. #:use-module (guix packages)
  29. #:use-module (guix download)
  30. #:use-module (guix build-system gnu))
  31. (define-public gdb
  32. (package
  33. (name "gdb")
  34. (version "7.6.1")
  35. (source (origin
  36. (method url-fetch)
  37. (uri (string-append "mirror://gnu/gdb/gdb-"
  38. version ".tar.bz2"))
  39. (sha256
  40. (base32
  41. "1r32s6vqgskw6pz9pmp41b8injd51c4bbxr6ifdpyid52j5a7pz3"))
  42. (patches (list (search-patch "gdb-loongson-madd-fix.patch")))))
  43. (build-system gnu-build-system)
  44. (arguments
  45. '(#:phases (alist-cons-after
  46. 'configure 'post-configure
  47. (lambda _
  48. (for-each patch-makefile-SHELL
  49. (find-files "." "Makefile\\.in")))
  50. %standard-phases)))
  51. (inputs
  52. `(("expat" ,expat)
  53. ("mpfr" ,mpfr)
  54. ("gmp" ,gmp)
  55. ("readline" ,readline)
  56. ("ncurses" ,ncurses)
  57. ("python" ,python-wrapper)
  58. ("texinfo" ,texinfo)
  59. ("dejagnu" ,dejagnu)))
  60. (home-page "http://www.gnu.org/software/gdb/")
  61. (synopsis "The GNU debugger")
  62. (description
  63. "GDB is the GNU debugger. With it, you can monitor what a program is
  64. doing while it runs or what it was doing just before a crash. It allows you
  65. to specify the runtime conditions, to define breakpoints, and to change how
  66. the program is running to try to fix bugs. It can be used to debug programs
  67. written in C, C++, Ada, Objective-C, Pascal and more.")
  68. (license gpl3+)))