summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-19 03:06:51 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-19 03:06:51 +0000
commitd799a62969010c98bc73069756aff0ef930c3693 (patch)
tree5b8eec255bd29b8f66c2de2a5c97d8e6f4bc684e /gcc/dwarf2out.c
parentd3d1d245c4e69600953be50559dc99d9dcb69284 (diff)
downloadgcc-d799a62969010c98bc73069756aff0ef930c3693.tar.gz
Fix problem that caused compiled java code to trigger an internal gdb error.
PR c++/19769 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract origin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96715 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 5157ae358bc..cc3c9f47a5b 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -12557,6 +12557,12 @@ declare_in_namespace (tree thing, dw_die_ref context_die)
if (debug_info_level <= DINFO_LEVEL_TERSE)
return;
+ /* If this decl is from an inlined function, then don't try to emit it in its
+ namespace, as we will get confused. It would have already been emitted
+ when the abstract instance of the inline function was emitted anyways. */
+ if (DECL_P (thing) && DECL_ABSTRACT_ORIGIN (thing))
+ return;
+
ns_context = setup_namespace_context (thing, context_die);
if (ns_context != context_die)