
D-50
Motorola DSP56000 Family Optimizing C Compiler User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola
Options and Arguments for GDB
D.14 Options and Arguments for GDB
When you invoke GDB, you can specify arguments telling it what files to operate on and
what other things to do.
D.14.1 Mode Options
Table D-25 lists possible Mode Optionts:
Table D-24. Controlled Output Commands
Command
Description
echo text
Print text. Non-printing characters can be included in text using C
escape sequences, such as ‘\n’ to print a newline. No newline will be
printed unless you specify one. In addition to the standard C escape
sequences a backslash followed by a space stands for a space. This
is useful for outputting a string with spaces at the beginning or the
end, since leading and trailing spaces are trimmed from all arguments.
Thus, to print “and foo = ‘’ , use the command ‘‘echo \ and foo = \ ‘’
A backslash at the end of text can be used, as in C, to continue the
command onto subsequent lines.
echo This is some text\n\
which is continued\n\
onto several lines.\n
produces the same output as
echo This is some text\n echo which is continued\n
echo onto several lines.\n
output expression
Print the value of expression and nothing but that value: no newlines,
no ‘$nn = ‘. The value is not entered in the value history either. See
section Expressions for more information on expressions.
output/fmt expression
Print the value of expression in format fmt. See section Output
formats, for more information.
printf string, expressions...
Print the values of the expressions under the control of string. The
expressions are separated by commas and may be either numbers or
pointers. Their values are printed as specified by string, exactly as if
the program were to execute
printf (string, expressions...);
For example, you can print two values in hex like this:
printf “foo, bar-foo = 0x%x, 0x%x\n”, foo,
bar-foo
only backslash-escape sequences that you can use in the string are
the simple ones that consist of backslash followed by a letter.
F
Freescale Semiconductor, Inc.
n
.