(S) RFR: 8077648: ARM: BREAKPOINT is wrong for thumb

Dean Long dean.long at oracle.com
Tue Jan 12 05:31:37 UTC 2016


How about moving it to "globalDefinitions_arm.hpp"?  You would just need 
to do #undef BREAKPOINT first.

dl

On 1/11/2016 7:16 PM, David Holmes wrote:
> Bug is non-public:
>
> https://bugs.openjdk.java.net/browse/JDK-8077648
>
> In globalDefinitions_gcc.hpp we do
>
> #ifdef ARM32
> #ifdef SOLARIS
> #define BREAKPOINT __asm__ volatile (".long 0xe1200070")
> #else
> #define BREAKPOINT __asm__ volatile (".long 0xe7f001f0")
> #endif
> #else
>
> The SOLARIS part of this is puzzling to say the least and is being 
> deleted. :)
>
> Otherwise the value used in not correct if compiling for Thumb 
> instruction set.
>
> Solution is to just use:
>
> #define BREAKPOINT __asm__ volatile ("bkpt")
>
> webrev: http://cr.openjdk.java.net/~dholmes/8077648/webrev/
>
> Thanks,
> David



More information about the hotspot-runtime-dev mailing list