Fwd: Problem running executable in debugger on Mac OS Mavericks

Joel Sherrill joel.sherrill at oarcorp.com
Fri Mar 6 14:40:18 UTC 2015



On 3/6/2015 8:01 AM, Gedare Bloom wrote:
> Hi Cyrille,
>
>
> On Fri, Mar 6, 2015 at 12:10 AM, Cyrille Artho <c.artho at aist.go.jp> wrote:
>> Hi all,
>> I have tried to build rtems-builder and rtems following the "Quick Start"
>> instructions on the web page. It seems I can build executables as I can find
>> "ticker.exe". However, I cannot run it as shown.
>>
>> "tar sim" is not recognized; it seems the simulator is not built correctly.
>> Below is the output from gdb. What went wrong?
>> I also don't have a binary called "i386-rtems4.11-run", which is mentioned
>> on the quick start guide as well.
>>
> You made the logical but invalid assumption that every toolchain works
> the same. The "run" command is only available for some of the targets
> for which RTEMS is cross-compiled. In particular, sparc-sis can be
> executed by a simulator in gdb, which is what sparc-rtems4.11-run
> wraps. 'tar sim' is available only when the gdb simulator support
> exists.
>
> For i386 the recommended simulator to use is Qemu.
FWIW sparc/sis with the simulator built into gdb is much easier to use
if it has the capabilities you need.

--joel
> Gedare
>
>> i386-rtems4.11-gdb ./ticker.exe
>> GNU gdb (GDB) 7.8.2
>> Copyright (C) 2014 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later
>> <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "--host=x86_64-apple-darwin13.3.0
>> --target=i386-rtems4.11".
>> Type "show configuration" for configuration details.
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>.
>> Find the GDB manual and other documentation resources online at:
>> <http://www.gnu.org/software/gdb/documentation/>.
>> For help, type "help".
>> Type "apropos word" to search for commands related to "word"...
>> Reading symbols from ./ticker.exe...done.
>> (gdb) tar sim
>> Undefined target command: "sim".  Try "help target".
>> (gdb) help target
>> Connect to a target machine or process.
>> The first argument is the type or protocol of the target machine.
>> Remaining arguments are interpreted by the target protocol.  For more
>> information on the arguments for a particular protocol, type
>> `help target ' followed by the protocol name.
>>
>> List of target subcommands:
>>
>> target core -- Use a core file as a target
>> target exec -- Use an executable file as a target
>> target extended-remote -- Use a remote computer via a serial line
>> target record -- Log program while executing and replay execution from log
>> target record-btrace -- Collect control-flow trace and provide the execution
>> history
>> target record-core -- Log program while executing and replay execution from
>> log
>> target record-full -- Log program while executing and replay execution from
>> log
>> target remote -- Use a remote computer via a serial line
>> target tfile -- Use a trace file as a target
>>
>> Type "help target" followed by target subcommand name for full
>> documentation.
>> Type "apropos word" to search for commands related to "word".
>> Command name abbreviations are allowed if unambiguous.
>> --
>> Regards,
>> Cyrille Artho - http://artho.com/
>> War is like love, it always finds a way.
>>                 -- Bertolt Brecht, "Mother Courage"
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list