Go to Post "Why yes, actually I AM a rocket scientist" - Gary Dillard [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-02-2010, 16:58
djdaugherty djdaugherty is offline
Mrs. D.
FRC #2053 (TigerTronics)
Team Role: Teacher
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Endicott
Posts: 40
djdaugherty is on a distinguished road
Wind River Debugging - No such sourcefile

The team is using Wind River with C++ for our software. We are able to download the software to cRIO and control some features. When trying to debug we are following the C/C++ Getting Started Guide and have setup the Target Server as required and see the target server entry populated with tasks. When we follow the debugging instructions we get the Debug Perspective and appear to be able to set a breakpoint. When we select "resume" we get the following error:

Error Message = No such source file position in current context...possibly caused by source not part of executable or wrong path mapping setup Back End ID=6.

Also, can someone point us to the referenced Wind River Workbench User's Guide? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2010, 18:46
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Wind River Debugging - No such sourcefile

I haven't tried the debugger, but the Windriver manual is http://first.wpi.edu/Images/CMS/Firs...sers_Guide.pdf and http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2010, 18:58
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Wind River Debugging - No such sourcefile

Quote:
Originally Posted by djdaugherty View Post
we get the Debug Perspective and appear to be able to set a breakpoint. When we select "resume" we get the following error:

Error Message = No such source file position in current context...possibly caused by source not part of executable or wrong path mapping setup Back End ID=6.
This means the source file you were looking at when you set the breakpoint is not the source file from which the running binary code was built.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2010, 11:26
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Quote:
Originally Posted by gvarndell View Post
This means the source file you were looking at when you set the breakpoint is not the source file from which the running binary code was built.
We had a feeling that this was what was happening. Does anyone have any ideas on what we are doing wrong, or how to fix this issue?
Thanks.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2010, 12:25
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Wind River Debugging - No such sourcefile

You could try rebuilding. Right click the project>rebuild and then Debug Kernel Task
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2010, 12:37
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Do we have to undeploy the robot code first, should the crio be in a certain mode? We have already cleaned, and built the code several times... Does rebuilding do something other than this?
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2010, 14:58
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Heres something else I've found. I deleted all the binary files and the build targets. Then i remade them. Now i am able to debug, but only if i use the step over/ step into commands.

If i press the resume button the process terminates and says <terminated, exit value: 0>tFRC_UserProgram_StartupLibraryInit : 0x1e92678

As a note, when i press the step over/into buttons, it shows only the assembly code.
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2010, 18:48
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Wind River Debugging - No such sourcefile

Quote:
Originally Posted by Trump View Post
Do we have to undeploy the robot code first, should the crio be in a certain mode? We have already cleaned, and built the code several times... Does rebuilding do something other than this?
no, at least not to my knowledge
did you configure the debug session? Page 12 of http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2010, 19:57
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Yes, we have set up everything the way tha the manual says to, but we still can't get it to work. We ended just giveing up on the debug, and we are now useing the printf over serial to debug. Not the best of situations, but we'll have to deal.

BTW: I am just now updateing labview and the driversconsole to the version released today (feb 15).

Also, I saw somewher that you need the driverstation connected to debug?? if so, how do you connect the DS and the proggramming computer at the same time?

Thanks
Reply With Quote
  #10   Spotlight this post!  
Unread 15-02-2010, 20:42
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Wind River Debugging - No such sourcefile

Quote:
Originally Posted by Trump View Post
Also, I saw somewher that you need the driverstation connected to debug?? if so, how do you connect the DS and the proggramming computer at the same time?

Thanks
If you can only connect one at a time, you have a problem somewhere. Why can't you connect both?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib

Last edited by byteit101 : 15-02-2010 at 20:46.
Reply With Quote
  #11   Spotlight this post!  
Unread 16-02-2010, 07:33
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Im so confused right now. Anyways, the reason we can't connect both is basically because I don't know how to go about connecting both. Do i just plug both into the crio with a Cat5 cable?? I think i set everything up according to the manuals, if not could someone point me to the right page? (i've seen all the manuals that people have already linked to, so If im missing something its because i didn't see it in there.)

Thanks Byteit and others that are helping.
Reply With Quote
  #12   Spotlight this post!  
Unread 16-02-2010, 09:14
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Wind River Debugging - No such sourcefile

Quote:
Originally Posted by Trump View Post
Im so confused right now. Anyways, the reason we can't connect both is basically because I don't know how to go about connecting both. Do i just plug both into the crio with a Cat5 cable?? I think i set everything up according to the manuals, if not could someone point me to the right page? (i've seen all the manuals that people have already linked to, so If im missing something its because i didn't see it in there.)

Thanks Byteit and others that are helping.
You were given a wireless router as part of your kit of parts. To connect the cRio and the developer PC and the Driver station at the same time, plug them all into the router. You can use the wireless gaming adapter for the robot and then you don't have to plug that in. I would plug in the cRio with a cable to the router first, however.
Reply With Quote
  #13   Spotlight this post!  
Unread 16-02-2010, 10:16
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Mike,
WOW, i totally forgot about the wireless . up until now, we have been doing everything wired... I'll try that at tonights meeting. I still have one question. When i debug the program, are the steps to click on the debug kernal task, then enable the robot from the DS? I finally feel like we're getting somewhere. We havn't really been able to get the code to work correctly without debug.
Reply With Quote
  #14   Spotlight this post!  
Unread 16-02-2010, 15:54
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Wind River Debugging - No such sourcefile

yes, you have to click enable on the DS just after the debug starts. I would set breakpoints beforehand, so you can skip to your code.

Entry point
start debug
underlying WPLIB code
DS enable
Your code

PS. Debug is not as easy as Visual studio's Debug
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #15   Spotlight this post!  
Unread 16-02-2010, 22:08
Trump Trump is offline
Registered User
FRC #2053
 
Join Date: Feb 2010
Location: New York
Posts: 18
Trump is an unknown quantity at this point
Re: Wind River Debugging - No such sourcefile

Still not working . When i press debug kernel task, and then press resume it terminates almost instantly. I don't have enough time to go to the DS and press enable code.

However, i can't press enable code on the DS before i press resume, because it says No Code.

I have the entry point set to Frc_User_library_init, Is this correct??

I really don't know what to do now, without debug we really can't get much done. I spent almost 6 hours today trying to find errors in the code with just printf's coming through the null modem cable, but it really isn't that helpful.

If i'm missing something, please tell me, i think i've seen all the manuals related to Debug, but i might be wrong. If anyone can think of anything No matter how obvious it might seem, please bring it to my attention

Thanks
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstall Wind River Lord_Jeremy C/C++ 0 15-01-2009 15:56
SVN wind river Mr.Macdonald C/C++ 3 13-01-2009 12:40
build in wind river Pneumaticsman C/C++ 3 12-01-2009 15:54
Wind River Help BenB Programming 3 02-01-2009 21:42
Open Wind River excel2474 Programming 12 31-12-2008 17:36


All times are GMT -5. The time now is 03:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi