Skip to content

Commit

Permalink
[MIPS] Add DEBUG_BREAK() for MIPS architecture.
Browse files Browse the repository at this point in the history
Small change to add correct asm break instruction for MIPS architecture.

BUG= https://code.google.com/p/chromium/issues/detail?id=130022
TEST=make chrome

Review URL: https://chromiumcodereview.appspot.com/10834234

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150789 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
petarj@mips.com committed Aug 9, 2012
1 parent 4aadc39 commit fc2ed2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/debug/debugger_posix.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ bool BeingDebugged() {
// ARM && !ANDROID
#define DEBUG_BREAK() asm("bkpt 0")
#endif
#elif defined(ARCH_CPU_MIPS_FAMILY)
#define DEBUG_BREAK() asm("break 2")
#else
#define DEBUG_BREAK() asm("int3")
#endif
Expand Down

0 comments on commit fc2ed2c

Please sign in to comment.