1 Mar 2009 15:32
[python] [commit] Workaroud Fedora 10 gcc-4.3.2-7 false warning.
commit 3d0c4bcb05d5112ca43433e3c0fd5185c9ea945e
* python/python-frame.c (frapy_read_var_value): Initialize `var'.
---
gdb/python/python-frame.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/python/python-frame.c b/gdb/python/python-frame.c
index ef1c178..1f152b8 100644
--- a/gdb/python/python-frame.c
+++ b/gdb/python/python-frame.c
<at> <at> -401,7 +401,7 <at> <at> frapy_read_var_value (PyObject *self, PyObject *args)
{
struct frame_info *frame;
PyObject *sym_obj;
- struct symbol *var;
+ struct symbol *var = NULL; /* gcc-4.3.2 false warning. */
struct value *val = NULL;
volatile struct gdb_exception except;
--
--
1.6.0.6
> Thanks for the pointers. I have made the changes and committed the patch.
c7c96c12054b0089c813555d72c60e8cdaa56946 looks OK to me, thanks.
> I will update if there are no regressions now.
I already had to update it in archer-jankratochvil-expr. Just there was some
conflict in dwarf2_build_psymtabs_hard due to
e56b9f4bab7f78c2749bc115cc2aa5bdd7375e8c which I resolved there wrong
regarding CU PC ranges determination. IMO that
e56b9f4bab7f78c2749bc115cc2aa5bdd7375e8c should be reverted if possible.
Regards,
Jan
RSS Feed