patch: solib_break from _r_debug.r_brk

Aleksandar Ristovski aristovski@qnx.com
Mon Oct 3 20:40:00 GMT 2011


On 11-10-03 04:12 PM, Tom Tromey wrote:
>>>>>> "Aleksandar" == Aleksandar Ristovski<aristovski@qnx.com>  writes:
>
> Aleksandar>  +  const unsigned ptrsz
> Aleksandar>  +    = builtin_type (target_gdbarch)->builtin_func_ptr->length;
>
> You should use TYPE_LENGTH here, not ->length.
>
> Aleksandar>  <date>   Aleksandar Ristovski<aristovski@qnx.com>
> Aleksandar>          * solib-svr4.c (svr4_fetch_solib_break_from_r_debug): New.
> Aleksandar>          (enable_break): Use new function.
>
> I don't really know much about this area; I think it would be better for
> someone else to review the patch.  Be sure to ping it weekly.  After a
> decent interval without replies I will take a stab at it.
>


Tom, thanks for looking into this, but I have meanwhile done further 
testing on gnu/linux and uncovered that it is not worth pursuing. While 
it works for us, it doesn't on gnu/linux and I am not sure it can be 
made generic enough to defend it: 
http://sourceware.org/ml/gdb-patches/2011-10/msg00043.html

Sorry about that.

---
Aleksandar




More information about the Gdb-patches mailing list