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]

How can I use shell variable at gdb


I would like to use shell variable at gdb.
How can I do that?

for example.

$) CURRENT_NO=5
$) export ABC

gdb) set $NAME = "TEST_$(CURRENT_NO)"

But, I got an error.

anybody knows?


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