This is the mail archive of the gdb-patches@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]

[PATCH c++ 2/6] mdebugread.c: Add cast


I spent some time looking at the code trying to understand what happens.
I'm still not totally sure, but if it's been there all that time it must
be ok.  If anybody wants to take a deeper look, please do.

gdb/ChangeLog:

	* mdebugread.c (parse_symbol): Add cast.
---
 gdb/mdebugread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 03c1ff8..af55823 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -651,7 +651,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
       s = new_symbol (name);
       SYMBOL_VALUE (s) = svalue;
       if (sh->sc == scRegister)
-	theclass = mdebug_register_index;
+	theclass = (enum address_class) mdebug_register_index;
       else
 	theclass = LOC_LOCAL;
 
-- 
2.6.1


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