@@ -69,10 +69,14 @@ <H2><A name="Show_Processor_Manual"></A><B>Processor Manual</B></H2>
6969 < P align ="center "> < A name ="Processor_Manual_Options "> </ A > < IMG src =
7070 "images/ProcessorManualOptions.png " border ="0 "> </ P >
7171
72+
73+ < BR >
74+ < BR >
75+
7276 < TABLE border ="1 ">
7377 < TBODY >
7478 < TR >
75- < TH width ="20 % "> Options Name</ TH >
79+ < TH width ="25 % "> Options Name</ TH >
7680
7781 < TH > Description</ TH >
7882 </ TR >
@@ -89,20 +93,190 @@ <H2><A name="Show_Processor_Manual"></A><B>Processor Manual</B></H2>
8993 < TR >
9094 < TD valign ="top "> Command Arguments</ TD >
9195
92- < TD > A space separated list of arguments that Ghidra will pass to the process listed
96+ < TD >
97+
98+ A space separated list of arguments that Ghidra will pass to the process listed
9399 above. If you need to include spaces as part of one of the arguments, then enclose the
94- argument in double quotes (e.g., "arg with space").</ TD >
100+ argument in double quotes (e.g., "arg with space").
101+ < BR > < BR >
102+ The arguments will be passed to the process with the url as the last argument. The
103+ exception to this is if you use the ${FILENAME} variable. In that case, the file path
104+ will be passed where you placed it in the list of arguments.
105+ < BR > < BR >
106+ Ghidra will process the following variables, if present:
107+ < UL >
108+ < LI >
109+ ${FILENAME} - this will be replaced with the file path.
110+ </ LI >
111+ < LI >
112+ ${PAGE} - this will be replaced with the page number for the current
113+ instruction.
114+ </ LI >
115+ </ UL >
116+ </ TD >
95117 </ TR >
96118
97119 < TR >
98120 < TD valign ="top "> File Format</ TD >
99121
100122 < TD > Ghidra will pass, by default, a URL to the given process. You may change this value
101- to signal to Ghidra that it should pass a filename instead.</ TD >
123+ to signal to Ghidra that it should pass a filename instead.
124+
125+ < UL >
126+ < LI >
127+ ${HTTP_URL} - an http url suitable for a web browser. This will be a url
128+ that points to temp page that itself points to a file and page number of the
129+ instruction.
130+ </ LI >
131+ < LI >
132+ ${FILE_URL} - a file url that includes the page number of the instruction.
133+ </ LI >
134+ < LI >
135+ ${FILENAME} - the file path without the leading 'file:' protocol.
136+ </ LI >
137+ </ UL >
138+
139+ </ TD >
102140 </ TR >
103141 </ TBODY >
104- </ TABLE > < BR >
142+ </ TABLE >
143+ < BR >
105144 < BR >
145+
146+ < H3 > Examples</ H3 >
147+ < BLOCKQUOTE >
148+ < TABLE border ="1 " width ="90% ">
149+ < TBODY >
150+ < TR >
151+ < TH width ="25% "> Options Name</ TH >
152+ < TH > Value</ TH >
153+ </ TR >
154+
155+ < TR >
156+ < TD valign ="top " align ="right "> Command String</ TD >
157+
158+ < TD >
159+ google-chrome
160+ </ TD >
161+ </ TR >
162+
163+ < TR >
164+ < TD valign ="top " align ="right "> Command Arguments</ TD >
165+
166+ < TD >
167+
168+ </ TD >
169+ </ TR >
170+
171+ < TR >
172+ < TD valign ="top " align ="right "> File Format</ TD >
173+
174+ < TD >
175+ ${FILE_URL}
176+ </ TD >
177+ </ TR >
178+ < TR >
179+ < TD valign ="top " align ="right "> < I > Result</ I > </ TD >
180+
181+ < TD >
182+ < CODE >
183+ google-chrome file:/usr/local/manuals/processor.pdf#page=717
184+ </ CODE >
185+ </ TD >
186+ </ TR >
187+ </ TBODY >
188+ </ TABLE >
189+
190+ < BR >
191+ < BR >
192+ < TABLE border ="1 " width ="90% ">
193+ < TBODY >
194+ < TR >
195+ < TH width ="25% "> Options Name</ TH >
196+ < TH > Value</ TH >
197+ </ TR >
198+
199+ < TR >
200+ < TD valign ="top " align ="right "> Command String</ TD >
201+
202+ < TD >
203+ cmd.exe
204+ </ TD >
205+ </ TR >
206+
207+ < TR >
208+ < TD valign ="top " align ="right "> Command Arguments</ TD >
209+ < TD >
210+ /c start
211+ </ TD >
212+ </ TR >
213+
214+ < TR >
215+ < TD valign ="top " align ="right "> File Format</ TD >
216+
217+ < TD >
218+ ${HTTP_URL}
219+ </ TD >
220+ </ TR >
221+ < TR >
222+ < TD valign ="top " align ="right "> < I > Result</ I > </ TD >
223+
224+ < TD >
225+ < CODE >
226+ cmd.exe /c start file:/tmp/user-ghidra/pdfView5915851125268369591.html
227+ </ CODE >
228+ </ TD >
229+ </ TR >
230+ </ TBODY >
231+ </ TABLE >
232+
233+
234+ < BR >
235+ < BR >
236+ < TABLE border ="1 " width ="90% ">
237+ < TBODY >
238+ < TR >
239+ < TH width ="25% "> Options Name</ TH >
240+ < TH > Value</ TH >
241+ </ TR >
242+
243+ < TR >
244+ < TD valign ="top " align ="right "> Command String</ TD >
245+
246+ < TD >
247+ C:\SumatraPDF.exe
248+ </ TD >
249+ </ TR >
250+
251+ < TR >
252+ < TD valign ="top " align ="right "> Command Arguments</ TD >
253+ < TD >
254+ -resuse-instance -page ${PAGE}
255+ </ TD >
256+ </ TR >
257+
258+ < TR >
259+ < TD valign ="top " align ="right "> File Format</ TD >
260+
261+ < TD >
262+ ${FILENAME}
263+ </ TD >
264+ </ TR >
265+ < TR >
266+ < TD valign ="top " align ="right "> < I > Result</ I > </ TD >
267+
268+ < TD >
269+ < CODE >
270+ C:\SumatraPDF.exe -resuse-instance -page 67 processor.pdf
271+ </ CODE >
272+ </ TD >
273+ </ TR >
274+ </ TBODY >
275+ </ TABLE >
276+
277+ < BR >
278+ < BR >
279+ </ BLOCKQUOTE >
106280 </ BLOCKQUOTE >
107281
108282 < H2 > < A name ="Show_Instruction_Info_Window "> </ A > < B > Instruction Info Window</ B > </ H2 >
0 commit comments