Lines Matching defs:bs

137 static enum print_stop_action print_bp_stop_message (bpstat bs);
1895 bpstat_copy (bpstat bs)
1901 if (bs == NULL)
1902 return bs;
1904 for (; bs != NULL; bs = bs->next)
1907 memcpy (tmp, bs, sizeof (*tmp));
1908 if (bs->commands != NULL)
1909 tmp->commands = copy_command_lines (bs->commands);
1910 if (bs->old_val != NULL)
1911 tmp->old_val = value_copy (bs->old_val);
1998 bpstat_clear_actions (bpstat bs)
2000 for (; bs != NULL; bs = bs->next)
2002 free_command_lines (&bs->commands);
2003 if (bs->old_val != NULL)
2005 value_free (bs->old_val);
2006 bs->old_val = NULL;
2026 bpstat bs;
2030 in bs->commands. */
2047 bs = *bsp;
2050 for (; bs != NULL; bs = bs->next)
2065 cmd = bs->commands;
2066 bs->commands = 0;
2114 print_it_typical (bpstat bs)
2120 /* bs->breakpoint_at can be NULL if it was a momentary breakpoint
2122 if (bs->breakpoint_at == NULL)
2125 switch (bs->breakpoint_at->type)
2129 if (bs->breakpoint_at->loc->address != bs->breakpoint_at->loc->requested_address)
2130 breakpoint_adjustment_warning (bs->breakpoint_at->loc->requested_address,
2131 bs->breakpoint_at->loc->address,
2132 bs->breakpoint_at->number, 1);
2133 annotate_breakpoint (bs->breakpoint_at->number);
2137 ui_out_field_int (uiout, "bkptno", bs->breakpoint_at->number);
2164 annotate_catchpoint (bs->breakpoint_at->number);
2165 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2167 printf_filtered (" %s), ", bs->breakpoint_at->triggered_dll_pathname);
2172 annotate_catchpoint (bs->breakpoint_at->number);
2173 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2175 printf_filtered (" %s), ", bs->breakpoint_at->triggered_dll_pathname);
2180 annotate_catchpoint (bs->breakpoint_at->number);
2181 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2184 bs->breakpoint_at->forked_inferior_pid);
2189 annotate_catchpoint (bs->breakpoint_at->number);
2190 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2193 bs->breakpoint_at->forked_inferior_pid);
2198 annotate_catchpoint (bs->breakpoint_at->number);
2200 bs->breakpoint_at->number,
2201 bs->breakpoint_at->exec_pathname);
2209 annotate_catchpoint (bs->breakpoint_at->number);
2211 bs->breakpoint_at->number);
2243 annotate_catchpoint (bs->breakpoint_at->number);
2245 bs->breakpoint_at->number);
2275 if (bs->old_val != NULL)
2277 annotate_watchpoint (bs->breakpoint_at->number);
2280 mention (bs->breakpoint_at);
2283 value_print (bs->old_val, stb->stream, 0, Val_pretty_default);
2286 value_print (bs->breakpoint_at->val, stb->stream, 0, Val_pretty_default);
2290 value_free (bs->old_val);
2291 bs->old_val = NULL;
2300 mention (bs->breakpoint_at);
2303 value_print (bs->breakpoint_at->val, stb->stream, 0, Val_pretty_default);
2311 if (bs->old_val != NULL)
2313 annotate_watchpoint (bs->breakpoint_at->number);
2316 mention (bs->breakpoint_at);
2319 value_print (bs->old_val, stb->stream, 0, Val_pretty_default);
2321 value_free (bs->old_val);
2322 bs->old_val = NULL;
2327 mention (bs->breakpoint_at);
2333 value_print (bs->breakpoint_at->val, stb->stream, 0,Val_pretty_default);
2374 print_bp_stop_message (bpstat bs)
2376 switch (bs->print_it)
2392 if (bs->breakpoint_at != NULL && bs->breakpoint_at->ops != NULL
2393 && bs->breakpoint_at->ops->print_it != NULL)
2394 return bs->breakpoint_at->ops->print_it (bs->breakpoint_at);
2396 return print_it_typical (bs);
2427 bpstat_print (bpstat bs)
2435 for (; bs; bs = bs->next)
2437 val = print_bp_stop_message (bs);
2466 bpstat_alloc (struct breakpoint *b, bpstat cbs /* Current "bs" value */ )
2468 bpstat bs;
2470 bs = (bpstat) xmalloc (sizeof (*bs));
2471 cbs->next = bs;
2472 bs->breakpoint_at = b;
2474 bs->commands = NULL;
2475 bs->old_val = NULL;
2476 bs->print_it = print_it_normal;
2477 return bs;
2498 bpstat bs = (bpstat) p;
2503 b = bs->breakpoint_at;
2543 struct value *new_val = evaluate_expression (bs->breakpoint_at->exp);
2548 bs->old_val = b->val;
2578 ui_out_field_int (uiout, "wpnum", bs->breakpoint_at->number);
2616 bpstat bs = root_bs;
2700 bs = bpstat_alloc (b, bs); /* Alloc a bpstat to explain stop */
2703 bs->stop = 1;
2704 bs->print = 1;
2712 int e = catch_errors (watchpoint_check, bs, message,
2722 bs->print_it = print_it_done;
2731 bs->print_it = print_it_noop;
2732 bs->stop = 0;
2744 bs->print_it = print_it_done;
2787 int e = catch_errors (watchpoint_check, bs, message,
2794 bs->print_it = print_it_done;
2803 bs->print_it = print_it_noop;
2804 bs->stop = 0;
2822 bs->print_it = print_it_done;
2832 bs->print_it = print_it_noop;
2833 bs->stop = 0;
2848 bs->stop = 0;
2867 bs->stop = 0;
2873 bs->stop = 0;
2881 bs->stop = 0;
2889 bs->print = 0;
2890 bs->commands = b->commands;
2891 if (bs->commands &&
2892 (strcmp ("silent", bs->commands->line) == 0
2893 || (xdb_commands && strcmp ("Q", bs->commands->line) == 0)))
2895 bs->commands = bs->commands->next;
2896 bs->print = 0;
2898 bs->commands = copy_command_lines (bs->commands);
2902 if (bs->stop == 0 || bs->print == 0)
2903 bs->print_it = print_it_noop;
2906 bs->next = NULL; /* Terminate the chain */
2907 bs = root_bs->next; /* Re-grab the head of the chain */
2911 if (bs && !bs->stop &&
2912 (bs->breakpoint_at->type == bp_hardware_watchpoint ||
2913 bs->breakpoint_at->type == bp_read_watchpoint ||
2914 bs->breakpoint_at->type == bp_access_watchpoint))
2919 return bs;
2925 bpstat_what (bpstat bs)
3078 for (; bs != NULL; bs = bs->next)
3081 if (bs->breakpoint_at == NULL)
3085 switch (bs->breakpoint_at->type)
3094 if (bs->stop)
3096 if (bs->print)
3108 if (bs->stop)
3110 if (bs->print)
3127 if (bs->stop)
3153 if (bs->stop)
3161 if (bs->stop)
3163 if (bs->print)
3174 if (!bs->stop || CURRENT_EXCEPTION_KIND != EX_EVENT_CATCH)
3176 else if (bs->stop)
3177 bs_class = bs->print ? bp_noisy : bp_silent;
3180 if (!bs->stop || CURRENT_EXCEPTION_KIND != EX_EVENT_THROW)
3182 else if (bs->stop)
3183 bs_class = bs->print ? bp_noisy : bp_silent;
3234 bpstat bs = root_bs;
3255 bs = bpstat_alloc (ep, bs);
3256 *bs = *ep_list;
3257 bs->next = NULL;
3258 bs = root_bs->next;
3287 *cp_list = bs;
6837 breakpoint_auto_delete (bpstat bs)
6841 for (; bs; bs = bs->next)
6842 if (bs->breakpoint_at && bs->breakpoint_at->disposition == disp_del
6843 && bs->stop)
6844 delete_breakpoint (bs->breakpoint_at);
6860 bpstat bs;
7025 for (bs = stop_bpstat; bs; bs = bs->next)
7026 if (bs->breakpoint_at == bpt)
7028 bs->breakpoint_at = NULL;
7029 bs->old_val = NULL;
7030 /* bs->commands will be freed later. */