Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] Requirements for mapToSource Command

Hi!

It took me rather long to get there but I think I am pretty close to visualize the hit of a breakpoint for the first time pretty soon. The thing is that I'm right now a little stuck. At the end of this message you can find the TCF Trace output I got so far.

The first question I got is how the agant evaluates if my breakpoint is hard- or software? As you can see all breakpoints found are declared as "Hardware" which is actually wrong.

My actual problem is that address_to_line() does not get called so far and I am not quite sure why.

One of the last messages I receive is:

426.982 Inp: E RunControl contextSuspended "P40.1" 49358 "Cannot resume. At col 4: Undefined identifier main. Invalid expression" {}

And yet I could not tell what it exactly means, if it actually hints to the exact problem or whether it comes from.

In line_to_address() I've been setting hard-coded breakpoints like this:

    int err = 0;

    CodeArea area;
    memset(&area, 0, sizeof(area));

    area.file = "c:\\users\\falkstef\\runtime-eclipseapplication\\sdccprog\\main.c";
    area.start_line = 46;
    area.start_address = 0xC0C5;
    area.end_line = 49;
    area.end_address = 0xC0CE;
    callback(&area, user_args);

since I don't have access to this information at runtime yet but those values are correct.

Could anybody help me on this? If you need any source-code let me know and I will send it to you.

Best regards,
Stefan


The TCF Trace Output:

412.980 Out: C 575 Memory getChildren null
412.980 Out: C 576 RunControl getChildren null
423.584 Inp: R 573 null
423.584 Inp: R 574 null "C:\Users\falkstef\runtime-EclipseApplication\sdccprog\Debug\sdccprog.hex"
423.584 Inp: R 575 null []
423.584 Inp: R 576 null []
423.584 Inp: E RunControl contextAdded [{IsContainer:true,SymbolsGroup:"P40",CanResume:1,CPUGroup:"CPU",ProcessID:"P40",RCGroup:"P40",CanSuspend:true,BigEndian:true,CanDetach:true,WordSize:1,CanTerminate:true,ID:"P40",BPGroup:"P40"}]
423.584 Inp: E Memory contextAdded [{BigEndian:true,AccessTypes:["instruction"],ID:"P40",AddressSize:1,ProcessID:"P40"}]
423.584 Inp: E Breakpoints status "file:/C:/Users/falkstef/runtime-EclipseApplication/tcfdebug/main.c:4815" {Instances:[{LocationContext:"P40",HitCount:0,Address:27196680,BreakpointType:"Hardware",Register:"dr0",Size:1}]}
423.584 Inp: E Breakpoints status "file:/C:/Users/falkstef/runtime-EclipseApplication/tcfdebug/main.c:4783" {Instances:[{LocationContext:"P40",HitCount:0,Address:27196680,BreakpointType:"Hardware",Register:"dr0",Size:1}]}
423.584 Inp: E Breakpoints status "file:/C:/Users/falkstef/runtime-EclipseApplication/sdccprog/main.c:4836" {Instances:[{LocationContext:"P40",HitCount:0,Address:49349,BreakpointType:"Hardware",Register:"dr0",Size:1}]}
423.584 Inp: E Breakpoints status "file:/C:/Users/falkstef/runtime-EclipseApplication/sdccprog/main.c:4837" {Instances:[{LocationContext:"P40",HitCount:0,Address:27196680,BreakpointType:"Hardware",Register:"dr0",Size:1}]}
423.587 Out: C 577 SIBInterface start
423.590 Out: C 579 Memory getChildren null
423.590 Out: C 580 RunControl getChildren null
423.591 Inp: R 577 null
426.981 Inp: E RunControl contextAdded [{WordSize:1,SymbolsGroup:"P40",BPGroup:"P40",ID:"P40.1",CanResume:8213,CPUGroup:"CPU",HasState:true,RCGroup:"P40.1",ProcessID:"P40",ParentID:"P40",CanSuspend:true}]
426.982 Inp: E RunControl contextChanged [{IsContainer:true,SymbolsGroup:"P40",CanResume:1,CPUGroup:"CPU",ProcessID:"P40",RCGroup:"P40",CanSuspend:true,BigEndian:true,CanDetach:true,WordSize:1,CanTerminate:true,ID:"P40",BPGroup:"P40"}]
426.982 Inp: E Memory contextChanged [{BigEndian:true,AccessTypes:["instruction"],ID:"P40",AddressSize:1,ProcessID:"P40"}]
426.982 Inp: E RunControl contextChanged [{WordSize:1,SymbolsGroup:"P40",BPGroup:"P40",ID:"P40.1",CanResume:8213,CPUGroup:"CPU",HasState:true,RCGroup:"P40.1",ProcessID:"P40",ParentID:"P40",CanSuspend:true}]
426.982 Inp: E RunControl contextSuspended "P40.1" 49358 "Cannot resume. At col 4: Undefined identifier main. Invalid expression" {}
426.982 Out: C 582 Memory getChildren "P40"
426.983 Out: C 583 RunControl getChildren "P40"
426.983 Out: C 584 StackTrace getChildrenRange "P40.1" 0 10



--
Stefan Falk

Infineon Technologies Austria AG
Trainee
Automotive Sense and Control
Component Verification

Tel:  +43 (0)5 / 1777 - 5439
Email: stefan.falk@xxxxxxxxxxxx<mailto:stefan.falk@xxxxxxxxxxxx>

"Aim above the mark to hit the mark." - Ralph Waldo Emerson





Back to the top