This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH c++ 2/6] mdebugread.c: Add cast
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Thu, 29 Oct 2015 09:02:43 -0400
- Subject: [PATCH c++ 2/6] mdebugread.c: Add cast
- Authentication-results: sourceware.org; auth=none
- References: <1446123767-25046-1-git-send-email-simon dot marchi at polymtl dot ca>
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