Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Discussion Groups

Discussion Groups | MSP430 | cspybat breakpoint deleted?

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

cspybat breakpoint deleted? - Mirko Viviani - Aug 6 2:36:36 2008


Suppose I have a function "foo" declaration and definition in sdutil.h (line
100). Such function is called many times.

I use the CSpyBat.exe utility using this macro

__var break_pr_ok;

execUserSetup()
{
break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
"logpr_ok()");
}

logpr_ok() { __message "logpr reached\r\n"; }

execUserExit() {__clearBreak(break_pr_ok);}

It seems that the breakpoint is reached only one times (the logpr_ok will
print only once the message.
Using the IDE everything is working correctly.

Any idea?

--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: cspybat breakpoint deleted? - bb_stefan - Aug 6 3:40:38 2008

I've never used c-spy macros so far...
... but what do you expect the line

execUserExit() {__clearBreak(break_pr_ok);}

to do, after the message is printed ?

I suppose the macro to print the message once when the breakpoint is
hit and then clearing the breakpoint, so it cannot be hit anymore!

--- In m...@yahoogroups.com, "Mirko Viviani" wrote:
>
> Suppose I have a function "foo" declaration and definition in
sdutil.h (line
> 100). Such function is called many times.
>
> I use the CSpyBat.exe utility using this macro
>
> __var break_pr_ok;
>
> execUserSetup()
> {
> break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
> "logpr_ok()");
> }
>
> logpr_ok() { __message "logpr reached\r\n"; }
>
> execUserExit() {__clearBreak(break_pr_ok);}
>
> It seems that the breakpoint is reached only one times (the logpr_ok
will
> print only once the message.
> Using the IDE everything is working correctly.
>
> Any idea?
>
> --
> -- Mirko Viviani --
> GPG-PGP Public Key: 0xE4E8FAB1
> Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> ***********************************************
> ""Machines take me by surprise with great frequency." A. Turing
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: cspybat breakpoint deleted? - Anders Lindgren - Aug 6 4:08:16 2008

Mirko Viviani wrote:
> Suppose I have a function "foo" declaration and definition in sdutil.h (line
> 100). Such function is called many times.
>
> I use the CSpyBat.exe utility using this macro
>
> __var break_pr_ok;
>
> execUserSetup()
> {
> break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
> "logpr_ok()");
> }
>
> logpr_ok() { __message "logpr reached\r\n"; }
>
> execUserExit() {__clearBreak(break_pr_ok);}
>
> It seems that the breakpoint is reached only one times (the logpr_ok will
> print only once the message.
> Using the IDE everything is working correctly.
>
> Any idea?

Hi Mirko!

Try calling the function "resume" at the end of your break-point macro.
It will tell cspybat to continue running.

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Re: cspybat breakpoint deleted? - Mirko Viviani - Aug 6 4:12:59 2008

the execUserExit macro (as excerpted from the official documentation)
"is called once when the debug session ends" ;)

2008/8/6 bb_stefan

> I've never used c-spy macros so far...
> ... but what do you expect the line
> execUserExit() {__clearBreak(break_pr_ok);}
>
> to do, after the message is printed ?
>
> I suppose the macro to print the message once when the breakpoint is
> hit and then clearing the breakpoint, so it cannot be hit anymore!
> --- In m...@yahoogroups.com , "Mirko Viviani"
> wrote:
> >
> > Suppose I have a function "foo" declaration and definition in
> sdutil.h (line
> > 100). Such function is called many times.
> >
> > I use the CSpyBat.exe utility using this macro
> >
> > __var break_pr_ok;
> >
> > execUserSetup()
> > {
> > break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
> > "logpr_ok()");
> > }
> >
> > logpr_ok() { __message "logpr reached\r\n"; }
> >
> > execUserExit() {__clearBreak(break_pr_ok);}
> >
> > It seems that the breakpoint is reached only one times (the logpr_ok
> will
> > print only once the message.
> > Using the IDE everything is working correctly.
> >
> > Any idea?
> >
> > --
> > -- Mirko Viviani --
> > GPG-PGP Public Key: 0xE4E8FAB1
> > Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> > ***********************************************
> > ""Machines take me by surprise with great frequency." A. Turing
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: cspybat breakpoint deleted? - Mirko Viviani - Aug 6 4:20:48 2008

calling __resume, or resume, or resume(), or __resume() throw an error
"Error in cspybat.mac line ... Unknown or ambiguous symbol __resume"
OR "Error in cspybat.mac line ... Unknown or ambiguous symbol resume"
"Error in cspybat.mac line ... Unknown or ambiguous symbol __resume()"
"Error in cspybat.mac line ... Unknown or ambiguous symbol resume()"

:(

Error

2008/8/6 Anders Lindgren

> Mirko Viviani wrote:
> > Suppose I have a function "foo" declaration and definition in sdutil.h
> (line
> > 100). Such function is called many times.
> >
> > I use the CSpyBat.exe utility using this macro
> >
> > __var break_pr_ok;
> >
> > execUserSetup()
> > {
> > break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
> > "logpr_ok()");
> > }
> >
> > logpr_ok() { __message "logpr reached\r\n"; }
> >
> > execUserExit() {__clearBreak(break_pr_ok);}
> >
> > It seems that the breakpoint is reached only one times (the logpr_ok will
> > print only once the message.
> > Using the IDE everything is working correctly.
> >
> > Any idea?
>
> Hi Mirko!
>
> Try calling the function "resume" at the end of your break-point macro.
> It will tell cspybat to continue running.
>
> -- Anders Lindgren, IAR Systems
> --
> Disclaimer: Opinions expressed in this posting are strictly my own and
> not necessarily those of my employer.
>
>
>

--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: cspybat breakpoint deleted? - Mirko Viviani - Aug 7 2:36:22 2008

It seems that I haven't the "resume" function...
I'm running CSpyBat v.4.7.1

Thanks to everybody!

2008/8/6 Mirko Viviani

> calling __resume, or resume, or resume(), or __resume() throw an error
> "Error in cspybat.mac line ... Unknown or ambiguous symbol __resume"
> OR "Error in cspybat.mac line ... Unknown or ambiguous symbol resume"
> "Error in cspybat.mac line ... Unknown or ambiguous symbol __resume()"
> "Error in cspybat.mac line ... Unknown or ambiguous symbol resume()"
>
> :(
>
> Error
>
> 2008/8/6 Anders Lindgren Mirko Viviani wrote:
>> > Suppose I have a function "foo" declaration and definition in sdutil.h
>> (line
>> > 100). Such function is called many times.
>> >
>> > I use the CSpyBat.exe utility using this macro
>> >
>> > __var break_pr_ok;
>> >
>> > execUserSetup()
>> > {
>> > break_pr_ok = __setCodeBreak("{sdutil.h}.100.0", 0, "1", "TRUE",
>> > "logpr_ok()");
>> > }
>> >
>> > logpr_ok() { __message "logpr reached\r\n"; }
>> >
>> > execUserExit() {__clearBreak(break_pr_ok);}
>> >
>> > It seems that the breakpoint is reached only one times (the logpr_ok
>> will
>> > print only once the message.
>> > Using the IDE everything is working correctly.
>> >
>> > Any idea?
>>
>> Hi Mirko!
>>
>> Try calling the function "resume" at the end of your break-point macro.
>> It will tell cspybat to continue running.
>>
>> -- Anders Lindgren, IAR Systems
>> --
>> Disclaimer: Opinions expressed in this posting are strictly my own and
>> not necessarily those of my employer.
>>
>>
>> --
> -- Mirko Viviani --
> GPG-PGP Public Key: 0xE4E8FAB1
> Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> ***********************************************
> ""Machines take me by surprise with great frequency." A. Turing
>

--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )