]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/PROBLEMS
2004-03-19 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / PROBLEMS
CommitLineData
e2c9a72c 1
faae5abe 2 Known problems in GDB 6.1
e2c9a72c 3
36cc83a3 4 See also: http://www.gnu.org/software/gdb/bugs/
e2c9a72c 5
e6beb428
AC
6mips*-*-*
7powerpc*-*-*
8sparc*-*-*
9
10GDB's SPARC, MIPS and PowerPC targets, in 6.0, have not been updated
11to use the new frame mechanism.
12
13People encountering problems with these targets should consult GDB's
14web pages and mailing lists (http://www.gnu.org/software/gdb/) to see
15if there is an update.
16
ed47347a
MC
17*** Regressions since gdb 6.0
18
19gdb/826: variables in C++ namespaces have to be enclosed in quotes
20
21When referring to a variable in C++ code that is inside a
22namespace, you have to put it inside single quotes.
23
24gdb/931: GDB could be more generous when reading types C++ templates on input
25
26When the user types a template, GDB frequently requires the type to be
27typed in a certain way (e.g. "const char*" as opposed to "const char *"
28or "char const *" or "char const*").
29
30gdb/1505: [regression] gdb prints a bad backtrace for a thread
31
32When backtracing a thread, gdb doesn't stop until it hits garbage.
33This is sensitive to the operating system and thread library.
34
35gdb/1512: no canonical way to output names of C++ types
36
37We currently don't have any canonical way to output names of C++ types.
38E.g. "const char *" versus "char const *"; more subtleties arise when
39dealing with templates.
40
c6e06ede
MC
41gdb/1516: [regression] local classes, gcc 2.95.3, dwarf-2
42
43With gcc 2.95.3 and the dwarf-2 debugging format, classes which are
44defined locally to a function include the demangled name of the function
45as part of their name. For example, if a function "foobar" contains a
46local class definition "Local", gdb will say that the name of the class
47type is "foobar__Fi.0:Local".
48
49This applies only to classes where the class type is defined inside a
50function, not to variables defined with types that are defined somewhere
51outside any function (which most types are).
52
ed47347a
MC
53gdb/1560: Control-C does not always interrupt GDB.
54
55When GDB is busy processing a command which takes a long time to
56complete, hitting Control-C does not have the expected effect.
57The command execution is not aborted, and the "QUIT" message confirming
58the abortion is displayed only after the command has been completed.
59
60*** Regressions since gdb 5.3
61
e8ac10a6
MC
62gdb/1091: Constructor breakpoints ignored
63gdb/1193: g++ 3.3 creates multiple constructors: gdb 5.3 can't set breakpoints
e2c9a72c 64
e8ac10a6
MC
65When gcc 3.x compiles a C++ constructor or C++ destructor, it generates
662 or 3 different versions of the object code. These versions have
67unique mangled names (they have to, in order for linking to work), but
68they have identical source code names, which leads to a great deal of
69confusion. Specifically, if you set a breakpoint in a constructor or a
70destructor, gdb will put a breakpoint in one of the versions, but your
71program may execute the other version. This makes it impossible to set
72breakpoints reliably in constructors or destructors.
73
74gcc 3.x generates these multiple object code functions in order to
75implement virtual base classes. gcc 2.x generated just one object code
76function with a hidden parameter, but gcc 3.x conforms to a multi-vendor
77ABI for C++ which requires multiple object code functions.
589ca796 78