MAN page from OpenSuSE cross-avr-gdb-7.9.1-3.1.x86_64.rpm
Section: GNU Tools (1)
Use `run program' to execute a binary by interpreting machine instructions on yourhost computer.
runis the same emulator used by GDB's `target sim' command. You can run it directly by executingrunif you just want to see your program execute, and do not need anydebugger functionality. You can also userunto generate profiling information for analysis withgprof.
- Verbose output. Display the name of the program to run beforeexecution; after execution, display the number of instructionsexecuted, the number of machine cycles emulated, the number ofpipeline stalls, the real time taken, the emulated execution timetaken, and a summary of how much profiling information was generated.
- -p freq
- Generate profile information (for use withgprof).freqis the profiling frequency. Write the profiling information to a file calledgmon.out.
- -m memory
- Set the memory size for the emulated machine to two to the powermemory.The default value is 19, emulating a board with 524288 bytes of memory.
- --sysroot filepath
- Prependfilepathto all simulator system calls that pass absolute file paths.Change working directory tofilepathat program start. Not all simulators support this option; thosethat don't, will ignore it.
;Using GDB: A Guide to the GNU Source-Level Debugger
, Richard M. Stallman and Roland H. Pesch.
Copyright (c) 1993-2015 Free Software Foundation, Inc.
This document is distributed under the terms of the GNU FreeDocumentation License, version 1.1. That license is described in thesources for this manual page, but it is not displayed here in order tomake this manual more consise. Copies of this license can also beobtained from: http://www.gnu.org/copyleft/.
- SEE ALSO
This document was created byman2html,using the manual pages.