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: Patch : gdbserver get_image_name on CE


Hi,

> Excellent news : I just figured out why gdbserver was failing on CE/x86
> where the same code worked for ARM.
> 
> The GetThreadContext call looked different between win32-i386-low.c and
> its ARM equivalent :
> 
>   th->context.ContextFlags =
>     CONTEXT_FULL |
>     CONTEXT_FLOATING_POINT |
>     CONTEXT_EXTENDED_REGISTERS |
>     CONTEXT_DEBUG_REGISTERS;
>   GetThreadContext (th->h, &th->context);
> 
> On ARM, only CONTEXT_FULL and CONTEXT_FLOATING_POINT were used. The
> call
> on x86 returned error 87 (ERROR_INVALID_PARAMETER) but MSDN doesn't
> contain clues as to what that means.

I have had this a few times also with other calls on CE, it seems you pass
an incorrect value that isn't supported.

Johnny



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