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]

Re: [COMMIT PATCH] More invalid pointer to pointer conversions.


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I think the ada_decode_symbol change is perhaps the one that could be
Pedro> surprising.

The obj_section removal series tripped over this too :)

Pedro> With that out of the way, I think the patch ends up being pretty
Pedro> obvious.

I agree, looks good to me.

Pedro> -      displacement = strtol (tmp, (char **) &tmp, 10);
Pedro> +      displacement = strtol (tmp, &endp, 10);
Pedro> +      tmp = endp;

I saw this in Keith's patch, too, and I was wondering if we should have
a strtol_const convenience function.

Tom


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