474 static ExtendedPC fetch_frame_from_context(void* ucVoid, intptr_t** sp, intptr_t** fp); |
474 static ExtendedPC fetch_frame_from_context(void* ucVoid, intptr_t** sp, intptr_t** fp); |
475 static frame fetch_frame_from_context(void* ucVoid); |
475 static frame fetch_frame_from_context(void* ucVoid); |
476 |
476 |
477 static ExtendedPC get_thread_pc(Thread *thread); |
477 static ExtendedPC get_thread_pc(Thread *thread); |
478 static void breakpoint(); |
478 static void breakpoint(); |
|
479 static bool start_debugging(char *buf, int buflen); |
479 |
480 |
480 static address current_stack_pointer(); |
481 static address current_stack_pointer(); |
481 static address current_stack_base(); |
482 static address current_stack_base(); |
482 static size_t current_stack_size(); |
483 static size_t current_stack_size(); |
483 |
484 |
484 static void verify_stack_alignment() PRODUCT_RETURN; |
485 static void verify_stack_alignment() PRODUCT_RETURN; |
485 |
486 |
486 static int message_box(const char* title, const char* message); |
487 static bool message_box(const char* title, const char* message); |
487 static char* do_you_want_to_debug(const char* message); |
488 static char* do_you_want_to_debug(const char* message); |
488 |
489 |
489 // run cmd in a separate process and return its exit code; or -1 on failures |
490 // run cmd in a separate process and return its exit code; or -1 on failures |
490 static int fork_and_exec(char *cmd); |
491 static int fork_and_exec(char *cmd); |
491 |
492 |