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