This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

capturing command output to a variable


I understand that turning on logging will allow me to save command
output to a file. But what if I want to save the output in a
convenience variable??

e.g. How can I do something like the following where I capture the out
of the "where" command.

set $x = `where 1`
echo $x

Mathew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]