aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-11-12 22:20:02 +0000
committerPer Bothner <per@bothner.com>1991-11-12 22:20:02 +0000
commit0e2a896cf5a7231fe300fe0918a38f87bc9ee0ec (patch)
tree3ba6589b103df25eeaab1de54754fbe0f5cbea36 /gdb/buildsym.c
parent5f12485297f7f829c0c035657197ce1de09a10cd (diff)
downloadgdb-0e2a896cf5a7231fe300fe0918a38f87bc9ee0ec.zip
gdb-0e2a896cf5a7231fe300fe0918a38f87bc9ee0ec.tar.gz
gdb-0e2a896cf5a7231fe300fe0918a38f87bc9ee0ec.tar.bz2
Fixes related to handling of C++ methods (handle destructors
and parameters that are functions).
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 3e573f1..1c55a68 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -2383,20 +2383,10 @@ read_struct_type (pp, type)
{
*pp += 1;
- if (**pp == '=')
+ if (**pp == '=' || **pp == '+' || **pp == '-')
{
- TYPE_FLAGS (type)
- |= TYPE_FLAG_HAS_CONSTRUCTOR | TYPE_FLAG_HAS_DESTRUCTOR;
- *pp += 1;
- }
- else if (**pp == '+')
- {
- TYPE_FLAGS (type) |= TYPE_FLAG_HAS_CONSTRUCTOR;
- *pp += 1;
- }
- else if (**pp == '-')
- {
- TYPE_FLAGS (type) |= TYPE_FLAG_HAS_DESTRUCTOR;
+ /* Obsolete flags that used to indicate the presence
+ of constructors and/or destructors. */
*pp += 1;
}