Re: [RFA 2/5] New patches to support --enable-targets=all for mingw64

Tom Tromey
2010-09-10T15:43:07Z

>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:

Pierre> 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>

Pierre> * alpha-mdebug-tdep.c (find_proc_desc): Cast SYMBOL_VALUE result to
Pierre> uintptr_t before cast to pointer to avoid warning.

I think it is better to use SYMBOL_VALUE_BYTES here.
See how this field is set in mdebugread.c:

e = ((struct mdebug_extra_func_info *)
obstack_alloc (&current_objfile->objfile_obstack,
sizeof (struct mdebug_extra_func_info)));
memset (e, 0, sizeof (struct mdebug_extra_func_info));
SYMBOL_VALUE_BYTES (s) = (gdb_byte *) e;

This is ok with that change.

Tom