Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] tcf-dev Digest, Vol 60, Issue 6

Hi Eugene,

That solves my problem.

Thank you,
Sam

On 10/9/2015 7:00 PM, tcf-dev-request@xxxxxxxxxxx wrote:
Date: Thu, 8 Oct 2015 17:44:38 +0000
From: Eugene Tarassov <eugene.tarassov@xxxxxxxxxx>
To: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: Re: [tcf-dev] breakpoints / access types
Message-ID:
	<C6480A6E4DA645449BBE7C12AE291FC2B000C483@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
	
Content-Type: text/plain; charset="us-ascii"

Hi Samuel,

in context_plant_breakpoint() I need to know which breakpoint type
Use iterate_context_breakpoint_links() and get_breakpoint_attributes() to get all breakpoint attributes.

For example:

     iterate_context_breakpoint_links(ctx, cb, bp_link_cb, NULL);

static void bp_link_cb(BreakpointInfo * bi, void * x) {
     BreakpointAttribute * attrs = get_breakpoint_attributes(bi);
     while (attrs != NULL) {
         if (strcmp(attrs->name, BREAKPOINT_TYPE) == 0) {
             if (strcmp(attrs->value, "\"Hardware\"") == 0) hardware = 1;
             if (strcmp(attrs->value, "\"Software\"") == 0) software = 1;
         }
         attrs = attrs->next;
     }
}

Regards,
Eugene



Back to the top