If it does not match, it increases the error counter. In a similar way I set up a variable to read the ‘reg’ variable of my application and store it into ‘test_val’:Ī one-liner compares the actual value with the expected value. For this I set up a scripting variable ‘test_expected’ and initialize it with a value of 0x40000 (the expected LED port value): To count the number of errors in my test script, I use an error counter: Alternatively, how do setup a script which - as first stage - sets up the environment, and eventually invokes the Eclipse CDT debugger. Next, I’m going to step over that line 9: Alpine Linux is much smaller than most distribution base images (5MB), and thus leads to much slimmer images in general. My question is simply how to do it, so that eventually, I'll be able to invoke the debugger (GDB) where all environment variables are set by some pre-running shell script. Reg = (GPIO1_GetPortValue(NULL)&GPIO1_LED_R_MASK) /* get raw register value */ Then let’s run the application and hit that breakpoint: I’m using an ‘automatic’ break point (see Software and Hardware Breakpoints) on line 9, column 1: > Does yourmake have /bin/bash at the top This is another instruction for a Unix shell. Eclipse is just a messenger here using Win XP to execute programs. Last Updated on Friday, Ap13:32 by Albert Tregnaghi. Try to run your script from Windows Command Prompt - it won't run either. This plugin is a bash script editor Features: Integrated bash debugger Run bash scripts from IDE by configurable parameters, environment variables etc. Next I set a breakpoint in my test program. mymake is a script which by definition is a set of commands for a shell. The first thing is to start the debugger:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |