File: README.Debian

package info (click to toggle)
gnat-gdb 5.3.gnat.0.0.20030225-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 75,144 kB
  • ctags: 101,348
  • sloc: ansic: 873,511; exp: 46,950; sh: 16,123; makefile: 11,757; yacc: 6,092; asm: 5,027; cpp: 4,044; perl: 2,624; lex: 877; sed: 550; lisp: 394; awk: 170; pascal: 57; java: 7; fortran: 5
file content (32 lines) | stat: -rw-r--r-- 1,362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
The package gnat-gdb contains GDB 5.3 with patches from Ada Core
Technologies.  These patches make GDB Ada-aware, in addition to the
other languages already supported by GDB.  The user's guide (in
package gnat-gdb-doc) provides details on this support for Ada.

It is also possible to use the regular GDB to debug Ada programs; the
Ada-aware GDB only provides some additional support.

Starting with GCC 3.4, the default format for debugging information
changed from STABS to DWARF2.  This implies that Ada programs compiled
with gnat-3.4 will use DWARF2 by default.  GDB 5.3 does not support
this format; if you want to use it to debug Ada programs compiled with
gnat-3.4, you must pass the option -gstabs+ to gcc when compiling.
This causes GCC to use the older format for debugging information.
For example:

$ gnatmake -g -gstabs+ program
$ gnatgdb program

The Ada compilers in packages gnat, gnat-3.2 and gnat-3.3 work out of
the box without the need for -gstabs+.

GDB 5.3 also does not support the New POSIX Thread Library (NPTL),
which is enabled by default on linux >= 2.6 and glibc >= 2.3.  If you
have such a system, you must disable NPTL by setting the environment
variable LD_ASSUME_KERNEL to a value such as 2.4.1.  For example:

$ gnatmake -g program
$ LD_ASSUME_KERNEL=2.4.1 gnatgdb program

-- 
Ludovic Brenta, Sun,  3 Oct 2004 19:37:27 +0200.