Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: tests/debug_stub/debugger_test.c

Issue 11194045: Change BKPT and UDF encodings on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Update copyright. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/validator_arm/validator_small_tests.cc ('k') | tests/dynamic_code_loading/dynamic_load_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/debug_stub/debugger_test.c
diff --git a/tests/debug_stub/debugger_test.c b/tests/debug_stub/debugger_test.c
index 16b7fe6e4e2c572a59a1948cb162febe3245ccd8..2c9c03cc24fcf72f102f45768916315b335da163 100644
--- a/tests/debug_stub/debugger_test.c
+++ b/tests/debug_stub/debugger_test.c
@@ -9,6 +9,8 @@
#include <stdlib.h>
#include <string.h>
+#include "native_client/src/include/arm_sandbox.h"
+#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/include/nacl_assert.h"
#include "native_client/tests/common/register_set.h"
@@ -33,7 +35,7 @@ __asm__(".pushsection .text, \"ax\", @progbits\n"
#elif defined(__arm__)
__asm__(".pushsection .text, \"ax\", %progbits\n"
"fault_addr:\n"
- "bkpt 0x7777\n"
+ ".word " NACL_TO_STRING(NACL_INSTR_ABORT_NOW) "\n"
".popsection\n");
#else
# error Update fault_addr for other architectures
@@ -187,7 +189,7 @@ void breakpoint(void) {
* because BKPTs guard data literals in the ARM sandbox.
*/
__asm__(".p2align 4\n"
- "bkpt 0x7777\n"
+ ".word " NACL_TO_STRING(NACL_INSTR_BREAKPOINT) "\n"
".p2align 4\n");
#else
# error Unsupported architecture
« no previous file with comments | « src/trusted/validator_arm/validator_small_tests.cc ('k') | tests/dynamic_code_loading/dynamic_load_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698