This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=005e54bb792bc74f1168def16f35078be588871a

commit 005e54bb792bc74f1168def16f35078be588871a
Author: Doug Evans <xdje42@gmail.com>
Date:   Sun Jan 11 16:39:46 2015 -0800

    dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
    
    gdb/ChangeLog:
    
    	* dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.

Diff:
---
 gdb/ChangeLog    | 4 ++++
 gdb/dwarf2read.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 75b286c..d8c6a14 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2015-01-11  Doug Evans  <xdje42@gmail.com>
 
+	* dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
+
+2015-01-11  Doug Evans  <xdje42@gmail.com>
+
 	PR gdb/15830
 	* NEWS: The "maint demangle" command is renamed as "demangle".
 	* demangle.c: #include cli/cli-utils.h, language.h.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 86c3a73..96b2537 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7704,7 +7704,8 @@ compute_delayed_physnames (struct dwarf2_cu *cu)
       struct fn_fieldlist *fn_flp
 	= &TYPE_FN_FIELDLIST (mi->type, mi->fnfield_index);
       physname = dwarf2_physname (mi->name, mi->die, cu);
-      fn_flp->fn_fields[mi->index].physname = physname ? physname : "";
+      TYPE_FN_FIELD_PHYSNAME (fn_flp->fn_fields, mi->index)
+	= physname ? physname : "";
     }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]