File: avr-run.1

package info (click to toggle)
gdb-avr 12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80 kB
  • sloc: makefile: 70; sh: 2
file content (262 lines) | stat: -rw-r--r-- 6,749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
.TH SIMULATOR "1" "September 2022" "GNU simulator (SIM) 12.1" "User Commands"
.SH NAME
simulator \- manual page for simulator (SIM) 12.1
.SH SYNOPSIS
.B avr-run
[\fI\,options\/\fR] [\fI\,VAR=VAL|--\/\fR] \fI\,program \/\fR[\fI\,program args\/\fR]
.SH OPTIONS
.TP
\fB\-t[on\fR|off], \fB\-\-trace[\fR=\fI\,on\/\fR|off]
Trace useful things
.TP
\fB\-\-trace\-insn[\fR=\fI\,on\/\fR|off]
Perform instruction tracing
.TP
\fB\-\-trace\-disasm[\fR=\fI\,on\/\fR|off]
Disassemble instructions (slower, but more
accurate)
.TP
\fB\-\-trace\-decode[\fR=\fI\,on\/\fR|off]
Trace instruction decoding
.TP
\fB\-\-trace\-extract[\fR=\fI\,on\/\fR|off]
Trace instruction extraction
.TP
\fB\-\-trace\-linenum[\fR=\fI\,on\/\fR|off]
Perform line number tracing (implies
\fB\-\-trace\-insn\fR)
.TP
\fB\-\-trace\-memory[\fR=\fI\,on\/\fR|off]
Trace memory operations
.TP
\fB\-\-trace\-alu[\fR=\fI\,on\/\fR|off]
Trace ALU (Arithmetic Logic Unit) operations
.TP
\fB\-\-trace\-fpu[\fR=\fI\,on\/\fR|off]
Trace FPU (Floating Point Unit) operations
.TP
\fB\-\-trace\-vpu[\fR=\fI\,on\/\fR|off]
Trace VPU (Vector Processing Unit) operations
.TP
\fB\-\-trace\-branch[\fR=\fI\,on\/\fR|off]
Trace branching
.TP
\fB\-\-trace\-semantics[\fR=\fI\,on\/\fR|off]
Perform ALU, FPU, VPU, MEMORY, and BRANCH tracing
.TP
\fB\-\-trace\-model[\fR=\fI\,on\/\fR|off]
Include model performance data
.TP
\fB\-\-trace\-core[\fR=\fI\,on\/\fR|off]
Trace core operations
.TP
\fB\-\-trace\-events[\fR=\fI\,on\/\fR|off]
Trace events
.TP
\fB\-\-trace\-syscall[\fR=\fI\,on\/\fR|off]
Trace system calls
.TP
\fB\-\-trace\-register[\fR=\fI\,on\/\fR|off]
Trace cpu register accesses
.TP
\fB\-\-trace\-debug[\fR=\fI\,on\/\fR|off]
Add information useful for debugging the
simulator to the tracing output
.TP
\fB\-\-trace\-file\fR FILE NAME
Specify tracing output file
.TP
\fB\-p[on\fR|off], \fB\-\-profile[\fR=\fI\,on\/\fR|off]
Perform profiling
.TP
\fB\-\-profile\-insn[\fR=\fI\,on\/\fR|off]
Perform instruction profiling
.TP
\fB\-\-profile\-memory[\fR=\fI\,on\/\fR|off]
Perform memory profiling
.TP
\fB\-\-profile\-core[\fR=\fI\,on\/\fR|off]
Perform CORE profiling
.TP
\fB\-\-profile\-model[\fR=\fI\,on\/\fR|off]
Perform model profiling
.TP
\fB\-\-profile\-cpu\-frequency\fR CPU FREQUENCY
Specify the speed of the simulated cpu clock
.TP
\fB\-\-profile\-file\fR FILE NAME
Specify profile output file
.TP
\fB\-\-profile\-pc[\fR=\fI\,on\/\fR|off]
Perform PC profiling
.TP
\fB\-F\fR PC PROFILE FREQUENCY, \fB\-\-profile\-pc\-frequency\fR PC PROFILE FREQUENCY
Specified PC profiling frequency
.TP
\fB\-S\fR PC PROFILE SIZE, \fB\-\-profile\-pc\-size\fR PC PROFILE SIZE
Specify PC profiling size
.TP
\fB\-\-profile\-pc\-granularity\fR PC PROFILE GRANULARITY
Specify PC profiling sample coverage
.TP
\fB\-\-profile\-pc\-range\fR BASE,BOUND
Specify PC profiling address range
.TP
\fB\-\-hw\-info\fR, \fB\-\-info\-hw\fR
List configurable hw regions
.TP
\fB\-\-hw\-trace[\fR=\fI\,on\/\fR|off], \fB\-\-trace\-hw\fR
Trace all hardware devices
.TP
\fB\-\-hw\-device\fR DEVICE
Add the specified device
.TP
\fB\-\-hw\-list\fR
List the device tree
.TP
\fB\-\-hw\-file\fR FILE
Add the devices listed in the file
.TP
\fB\-\-sockser\-addr\fR SOCKET ADDRESS
Set serial emulation socket address
.TP
\fB\-\-watch\-cycles\-ACTION\fR [+]COUNT
Watch the simulator, take ACTION in COUNT cycles
(`+' for every COUNT cycles), ACTION is int
breakpoint
.TP
\fB\-\-watch\-pc\-ACTION\fR [!]ADDRESS
Watch the PC, take ACTION when matches ADDRESS
(in range ADDRESS,ADDRESS), `!' negates test
.TP
\fB\-\-watch\-clock\-ACTION\fR [+]MILLISECONDS
Watch the clock, take ACTION after MILLISECONDS
(`+' for every MILLISECONDS)
.TP
\fB\-\-watch\-delete\fR IDENT|all|pc|cycles|clock
Delete a watchpoint
.TP
\fB\-\-watch\-info\fR
List scheduled watchpoints
.TP
\fB\-\-memory\-delete\fR ADDRESS|all, \fB\-\-delete\-memory\fR ADDRESS
Delete memory at ADDRESS (all addresses)
.TP
\fB\-\-memory\-region\fR ADDRESS,SIZE[,MODULO]
Add a memory region
.TP
\fB\-\-memory\-alias\fR ADDRESS,SIZE{,ADDRESS}
Add memory shadow
.TP
\fB\-\-memory\-size\fR <size>[in bytes, Kb (k suffix), Mb (m suffix) or Gb (g suffix)]
Add memory at address zero
.TP
\fB\-\-memory\-fill\fR VALUE
Fill subsequently added memory regions
.TP
\fB\-\-memory\-clear\fR
Clear subsequently added memory regions
.TP
\fB\-\-memory\-mapfile\fR FILE
Memory\-map next memory region from file
.TP
\fB\-\-memory\-info\fR, \fB\-\-info\-memory\fR
List configurable memory regions
.TP
\fB\-\-map\-info\fR
List mapped regions
.TP
\fB\-\-model\fR MODEL
Specify model to simulate
.TP
\fB\-\-model\-info\fR, \fB\-\-info\-model\fR
List selectable models
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Verbose output
.TP
\fB\-E\fR B|big|L|little, \fB\-\-endian\fR B|big|L|little
Set endianness
.TP
\fB\-\-environment\fR user|virtual|operating
Set running environment
.TP
\fB\-\-alignment\fR strict|nonstrict|forced
Set memory access alignment
.TP
\fB\-D\fR, \fB\-\-debug\fR
Print debugging messages
.TP
\fB\-\-debug\-insn\fR
Print instruction debugging messages
.TP
\fB\-\-debug\-file\fR FILE NAME
Specify debugging output file
.HP
\fB\-\-do\-command\fR COMMAND
.TP
\fB\-h\fR, \fB\-\-help\fR
Print help information
.TP
\fB\-\-version\fR
Print version information
.TP
\fB\-\-architecture\fR MACHINE
Specify the architecture to use
.TP
\fB\-\-architecture\-info\fR, \fB\-\-info\-architecture\fR
List supported architectures
.TP
\fB\-\-target\fR BFDNAME
Specify the object\-code format for the object
files
.TP
\fB\-\-target\-info\fR, \fB\-\-info\-target\fR
List supported targets
.TP
\fB\-\-load\-\fR{lma,vma}
Use VMA or LMA addresses when loading image
(default LMA)
.TP
\fB\-\-sysroot\fR SYSROOT
Root for system calls with absolute file\-names
and cwd at start
.TP
\fB\-\-argv0\fR ARGV0
Set argv[0] to the specified string
.TP
\fB\-\-env\-set\fR VAR=VAL
Set the variable in the program's environment
.TP
\fB\-\-env\-unset\fR VAR
Unset the variable in the program's environment
.TP
\fB\-\-env\-clear\fR
Clear the program's environment
.PP
Note: Depending on the simulator configuration some options
.IP
may not be applicable
.PP
VAR=VAL         Environment variables to set.  Ignored if \fB\-\-\fR is used.
program args    Arguments to pass to simulated program.
.IP
Note: Very few simulators support this.
.SH COPYRIGHT
Copyright \(co 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
The full documentation for
.B simulator
is maintained as a Texinfo manual.  If the
.B info
and
.B simulator
programs are properly installed at your site, the command
.IP
.B info simulator
.PP
should give you access to the complete manual.