equal
deleted
inserted
replaced
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
24 * Use is subject to license terms. |
|
25 */ |
|
26 |
|
27 /* |
|
28 * Copyright (c) 2012 by Delphix. All rights reserved. |
25 */ |
29 */ |
26 |
30 |
27 #include <stdlib.h> |
31 #include <stdlib.h> |
28 #include <assert.h> |
32 #include <assert.h> |
29 #include <errno.h> |
33 #include <errno.h> |
479 /* |
483 /* |
480 * If the instruction was a single-byte breakpoint, there may be |
484 * If the instruction was a single-byte breakpoint, there may be |
481 * another debugger attached to this process. The original instruction |
485 * another debugger attached to this process. The original instruction |
482 * can't be recovered so this must fail. |
486 * can't be recovered so this must fail. |
483 */ |
487 */ |
484 if (x86dis.d86_len == 1 && instr[0] == FASTTRAP_INSTR) |
488 if (x86dis.d86_len == 1 && |
|
489 (uchar_t)x86dis.d86_bytes[0] == FASTTRAP_INSTR) |
485 return (-1); |
490 return (-1); |
486 |
491 |
487 return (x86dis.d86_len); |
492 return (x86dis.d86_len); |
488 } |
493 } |