* how to pass paramter to openocd or shell by gdb macro
@ 2015-04-15 13:29 loody
0 siblings, 0 replies; only message in thread
From: loody @ 2015-04-15 13:29 UTC (permalink / raw)
To: gdb
hi all:
I try to use below macro in gdb for dumping memory
define test
set $start = log_buf
set $length = log_buf_len
mon dump_image dmesg.bin $start $length
end
But the gdb told me the $start doesn't exist.
The symbols, log_buf and log_buf_len did have values.
Is there any other way to pass parameter in macro to openocd, low
level ice debug?
Appreciate your kind help in advance,
PS:below is my output:
(gdb) test
can't read "start": no such variable
(gdb) p/x log_buf
$3 = 0xc08516e0
(gdb) p/x log_buf_len
$4 = 0x20000
(gdb)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-15 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 13:29 how to pass paramter to openocd or shell by gdb macro loody
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).