Lines Matching defs:bs

140 static enum print_stop_action print_bp_stop_message (bpstat bs);
1874 bpstat_copy (bpstat bs)
1880 if (bs == NULL)
1881 return bs;
1883 for (; bs != NULL; bs = bs->next)
1886 memcpy (tmp, bs, sizeof (*tmp));
1887 if (bs->commands != NULL)
1888 tmp->commands = copy_command_lines (bs->commands);
1889 if (bs->old_val != NULL)
1890 tmp->old_val = value_copy (bs->old_val);
1977 bpstat_clear_actions (bpstat bs)
1979 for (; bs != NULL; bs = bs->next)
1981 free_command_lines (&bs->commands);
1982 if (bs->old_val != NULL)
1984 value_free (bs->old_val);
1985 bs->old_val = NULL;
2005 bpstat bs;
2009 in bs->commands. */
2026 bs = *bsp;
2029 for (; bs != NULL; bs = bs->next)
2044 cmd = bs->commands;
2045 bs->commands = 0;
2093 print_it_typical (bpstat bs)
2099 /* bs->breakpoint_at can be NULL if it was a momentary breakpoint
2101 if (bs->breakpoint_at == NULL)
2104 switch (bs->breakpoint_at->type)
2108 if (bs->breakpoint_at->loc->address != bs->breakpoint_at->loc->requested_address)
2109 breakpoint_adjustment_warning (bs->breakpoint_at->loc->requested_address,
2110 bs->breakpoint_at->loc->address,
2111 bs->breakpoint_at->number, 1);
2112 annotate_breakpoint (bs->breakpoint_at->number);
2116 ui_out_field_int (uiout, "bkptno", bs->breakpoint_at->number);
2143 annotate_catchpoint (bs->breakpoint_at->number);
2144 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2146 printf_filtered (" %s), ", bs->breakpoint_at->triggered_dll_pathname);
2151 annotate_catchpoint (bs->breakpoint_at->number);
2152 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2154 printf_filtered (" %s), ", bs->breakpoint_at->triggered_dll_pathname);
2159 annotate_catchpoint (bs->breakpoint_at->number);
2160 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2163 bs->breakpoint_at->forked_inferior_pid);
2168 annotate_catchpoint (bs->breakpoint_at->number);
2169 printf_filtered ("\nCatchpoint %d (", bs->breakpoint_at->number);
2172 bs->breakpoint_at->forked_inferior_pid);
2177 annotate_catchpoint (bs->breakpoint_at->number);
2179 bs->breakpoint_at->number,
2180 bs->breakpoint_at->exec_pathname);
2188 annotate_catchpoint (bs->breakpoint_at->number);
2190 bs->breakpoint_at->number);
2222 annotate_catchpoint (bs->breakpoint_at->number);
2224 bs->breakpoint_at->number);
2254 if (bs->old_val != NULL)
2256 annotate_watchpoint (bs->breakpoint_at->number);
2259 mention (bs->breakpoint_at);
2262 value_print (bs->old_val, stb->stream, 0, Val_pretty_default);
2265 value_print (bs->breakpoint_at->val, stb->stream, 0, Val_pretty_default);
2269 value_free (bs->old_val);
2270 bs->old_val = NULL;
2279 mention (bs->breakpoint_at);
2282 value_print (bs->breakpoint_at->val, stb->stream, 0, Val_pretty_default);
2290 if (bs->old_val != NULL)
2292 annotate_watchpoint (bs->breakpoint_at->number);
2295 mention (bs->breakpoint_at);
2298 value_print (bs->old_val, stb->stream, 0, Val_pretty_default);
2300 value_free (bs->old_val);
2301 bs->old_val = NULL;
2306 mention (bs->breakpoint_at);
2312 value_print (bs->breakpoint_at->val, stb->stream, 0,Val_pretty_default);
2353 print_bp_stop_message (bpstat bs)
2355 switch (bs->print_it)
2371 if (bs->breakpoint_at != NULL && bs->breakpoint_at->ops != NULL
2372 && bs->breakpoint_at->ops->print_it != NULL)
2373 return bs->breakpoint_at->ops->print_it (bs->breakpoint_at);
2375 return print_it_typical (bs);
2406 bpstat_print (bpstat bs)
2414 for (; bs; bs = bs->next)
2416 val = print_bp_stop_message (bs);
2445 bpstat_alloc (struct breakpoint *b, bpstat cbs /* Current "bs" value */ )
2447 bpstat bs;
2449 bs = (bpstat) xmalloc (sizeof (*bs));
2450 cbs->next = bs;
2451 bs->breakpoint_at = b;
2453 bs->commands = NULL;
2454 bs->old_val = NULL;
2455 bs->print_it = print_it_normal;
2456 return bs;
2477 bpstat bs = (bpstat) p;
2482 b = bs->breakpoint_at;
2522 struct value *new_val = evaluate_expression (bs->breakpoint_at->exp);
2527 bs->old_val = b->val;
2557 ui_out_field_int (uiout, "wpnum", bs->breakpoint_at->number);
2597 bpstat bs = root_bs;
2693 bs = bpstat_alloc (b, bs); /* Alloc a bpstat to explain stop */
2696 bs->stop = 1;
2697 bs->print = 1;
2705 int e = catch_errors (watchpoint_check, bs, message,
2715 bs->print_it = print_it_done;
2724 bs->print_it = print_it_noop;
2725 bs->stop = 0;
2737 bs->print_it = print_it_done;
2779 int e = catch_errors (watchpoint_check, bs, message,
2786 bs->print_it = print_it_done;
2795 bs->print_it = print_it_noop;
2796 bs->stop = 0;
2814 bs->print_it = print_it_done;
2824 bs->print_it = print_it_noop;
2825 bs->stop = 0;
2840 bs->stop = 0;
2859 bs->stop = 0;
2865 bs->stop = 0;
2873 bs->stop = 0;
2881 bs->print = 0;
2882 bs->commands = b->commands;
2883 if (bs->commands &&
2884 (strcmp ("silent", bs->commands->line) == 0
2885 || (xdb_commands && strcmp ("Q", bs->commands->line) == 0)))
2887 bs->commands = bs->commands->next;
2888 bs->print = 0;
2890 bs->commands = copy_command_lines (bs->commands);
2894 if (bs->stop == 0 || bs->print == 0)
2895 bs->print_it = print_it_noop;
2898 bs->next = NULL; /* Terminate the chain */
2899 bs = root_bs->next; /* Re-grab the head of the chain */
2903 if (bs && !bs->stop &&
2904 (bs->breakpoint_at->type == bp_hardware_watchpoint ||
2905 bs->breakpoint_at->type == bp_read_watchpoint ||
2906 bs->breakpoint_at->type == bp_access_watchpoint))
2911 return bs;
2917 bpstat_what (bpstat bs)
3070 for (; bs != NULL; bs = bs->next)
3073 if (bs->breakpoint_at == NULL)
3077 switch (bs->breakpoint_at->type)
3086 if (bs->stop)
3088 if (bs->print)
3100 if (bs->stop)
3102 if (bs->print)
3119 if (bs->stop)
3145 if (bs->stop)
3153 if (bs->stop)
3155 if (bs->print)
3166 if (!bs->stop || CURRENT_EXCEPTION_KIND != EX_EVENT_CATCH)
3168 else if (bs->stop)
3169 bs_class = bs->print ? bp_noisy : bp_silent;
3172 if (!bs->stop || CURRENT_EXCEPTION_KIND != EX_EVENT_THROW)
3174 else if (bs->stop)
3175 bs_class = bs->print ? bp_noisy : bp_silent;
3226 bpstat bs = root_bs;
3247 bs = bpstat_alloc (ep, bs);
3248 *bs = *ep_list;
3249 bs->next = NULL;
3250 bs = root_bs->next;
3279 *cp_list = bs;
6881 breakpoint_auto_delete (bpstat bs)
6885 for (; bs; bs = bs->next)
6886 if (bs->breakpoint_at && bs->breakpoint_at->disposition == disp_del
6887 && bs->stop)
6888 delete_breakpoint (bs->breakpoint_at);
6904 bpstat bs;
7071 for (bs = stop_bpstat; bs; bs = bs->next)
7072 if (bs->breakpoint_at == bpt)
7074 bs->breakpoint_at = NULL;
7075 bs->old_val = NULL;
7076 /* bs->commands will be freed later. */