phung@UbuntuHW15:~/Documents/fpga_overlay/xillybus-eval-xl-virtex7-2.0b_DATE/verilog/vivado/xillydemo.srcs/sources_1/imports/taylor$ g++ -g host.cpp -o host `pkg-config --cflags --libs opencv`
phung@UbuntuHW15:~/Documents/fpga_overlay/xillybus-eval-xl-virtex7-2.0b_DATE/verilog/vivado/xillydemo.srcs/sources_1/imports/taylor$ gdb
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) file host
Reading symbols from host...done.
(gdb) break 146
Breakpoint 1 at 0x401b9e: file host.cpp, line 146.
(gdb) run
Starting program: /home/phung/Documents/fpga_overlay/xillybus-eval-xl-virtex7-2.0b_DATE/verilog/vivado/xillydemo.srcs/sources_1/imports/taylor/host
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd7c5b700 (LWP 20787)]
[New Thread 0x7fffd545a700 (LWP 20788)]
[New Thread 0x7fffd2c59700 (LWP 20789)]
[New Thread 0x7fffd0458700 (LWP 20790)]
[New Thread 0x7fffcdc57700 (LWP 20791)]
[New Thread 0x7fffcb456700 (LWP 20792)]
[New Thread 0x7fffc8c55700 (LWP 20793)]
[New Thread 0x7fffc6454700 (LWP 20794)]
[New Thread 0x7fffc3c53700 (LWP 20795)]
[New Thread 0x7fffc1452700 (LWP 20796)]
[New Thread 0x7fffc0c51700 (LWP 20797)]
[New Thread 0x7fffb984b700 (LWP 20798)]
[New Thread 0x7fffb904a700 (LWP 20799)]
[New Thread 0x7fffb8849700 (LWP 20800)]
[Thread 0x7fffc0c51700 (LWP 20797) exited]
[Thread 0x7fffc1452700 (LWP 20796) exited]
[Thread 0x7fffc3c53700 (LWP 20795) exited]
[Thread 0x7fffc6454700 (LWP 20794) exited]
[Thread 0x7fffc8c55700 (LWP 20793) exited]
[Thread 0x7fffcb456700 (LWP 20792) exited]
[Thread 0x7fffcdc57700 (LWP 20791) exited]
[Thread 0x7fffd0458700 (LWP 20790) exited]
[Thread 0x7fffd2c59700 (LWP 20789) exited]
[Thread 0x7fffd545a700 (LWP 20788) exited]
[Thread 0x7fffd7c5b700 (LWP 20787) exited]
Thread 1 "host" hit Breakpoint 1, main (argc=1, argv=0x7fffffffd638) at host.cpp:146
146 tologic->G = *(rgbchannel[GREEN_CHNL].data);
(gdb) print tologic->R
$1 = 125 '}'
(gdb) print tologic[4]->R
$2 = 0 '\000'
(gdb) print tologic[3]->R
$3 = 0 '\000'
(gdb) print tologic[6]->R
$4 = 0 '\000'
(gdb) print tologic[0]->R
$5 = 125 '}'
(gdb) print tologic[1]->R
$6 = 0 '\000'
(gdb) print tologic[8]->R
$7 = 0 '\000'
(gdb) print tologic[8].R
$8 = 0 '\000'
(gdb) print tologic[7].R
$9 = 0 '\000'
(gdb) print tologic[0].R
$10 = 125 '}'
(gdb) print rgbchannel[0]
$11 = {flags = 1124024320, dims = 2, rows = 512, cols = 512,
data = 0x7ffff7e65040 "}}\205\200xt{|\177w~ylwxrlqyrmifmnqlbyoymgmjzp|h{tpuyy{yywtvztypybi\177mg[b\\TUY`Pb]RYW[Z\\XZ]XVXSSY\\YWYYVZWTX]V]WRTQVSY\\VX[\\XS]ZX_UaV[^_ZX]`^`]e_]hf]obef^c_[gZa[b\\]_Vj]_g[ne[a]f_ceh^f[fddd`faia\\ea\\ffehfdcaeg_d_h\\i"...,
datastart = 0x7ffff7e65040 "}}\205\200xt{|\177w~ylwxrlqyrmifmnqlbyoymgmjzp|h{tpuyy{yywtvztypybi\177mg[b\\TUY`Pb]RYW[Z\\XZ]XVXSSY\\YWYYVZWTX]V]WRTQVSY\\VX[\\XS]ZX_UaV[^_ZX]`^`]e_]hf]obef^c_[gZa[b\\]_Vj]_g[ne[a]f_ceh^f[fddd`faia\\ea\\ffehfdcaeg_d_h\\i"..., dataend = 0x7ffff7ea5040 "", datalimit = 0x7ffff7ea5040 "", allocator = 0x0, u = 0x73dba0, size = {p = 0x7fffffffd408}, step = {p = 0x7fffffffd450, buf = {512, 1}}}
(gdb) print rgbchannel[1]
$12 = {flags = 1124024320, dims = 2, rows = 512, cols = 512,
data = 0x7ffff7e24040 "\211\211\211\210\212\201\212\206\214\210\207\206\202\213\207\201\206\203\212\213\177\204\201\206\203\205\202}\202\201\177\203\177\206\200\207\205\220\207\216\217\216\217\226\224\232\231\225\225\225\217\232\221\216\207\205vx\177nbRVJ?A?=7CHBIEIJIIFNPLKIHPPNMKKLNNKNNONNIKIKOOYMQVZVNYY\\_\\Z\\[ea\\Y^hde`hb`bd_jlfgdd`ch[b_iebeafaaihig_faiffggcg`jfcfejdhgefdddhlghchcijeiiiem"...,
datastart = 0x7ffff7e24040 "\211\211\211\210\212\201\212\206\214\210\207\206\202\213\207\201\206\203\212\213\177\204\201\206\203\205\202}\202\201\177\203\177\206\200\207\205\220\207\216\217\216\217\226\224\232\231\225\225\225\217\232\221\216\207\205vx\177nbRVJ?A?=7CHBIEIJIIFNPLKIHPPNMKKLNNKNNONNIKIKOOYMQVZVNYY\\_\\Z\\[ea\\Y^hde`hb`bd_jlfgdd`ch[b_iebeafaaihig_faiffggcg`jfcfejdhgefdddhlghchcijeiiiem"..., dataend = 0x7ffff7e64040 "", datalimit = 0x7ffff7e64040 "",
allocator = 0x0, u = 0x73d790, size = {p = 0x7fffffffd468}, step = {p = 0x7fffffffd4b0, buf = {512, 1}}}
(gdb) print rgbchannel[1][30]
No symbol "operator[]" in current context.
(gdb) print image
$13 = {flags = 1124024336, dims = 2, rows = 512, cols = 512,
data = 0x7fffbc390040 "}\211\342}\211ⅉ߀\210\337x\212\342t\201\342{\212\344|\206\343\177\214\343w\210\341~\207\344y\206\341l\202\337w\213\342x\207\337r\201\335l\206\335q\203\335y\212\336r\213\336m\177\337i\204\337f\201\340m\206\335n\203\332q\205\335l\202\337b}\341y\202\335o\201\335y\177\334m\203\337g\177\341m\206\337j\200\342z\207\337p\205\341|\220\343h\207\345{\216\347t\217\347p\216\350u\217\346y\226\351y\224\352{\232\355y\231\351y\225\347w\225\355t\225\356v\217\352z\232\353t\221\352y\216\350p\207\351y\205\346bv\343ix\335\177\177\333mn\325gb\313[R\312bV\273\\J\256T?\251UA\246Y?"...,
datastart = 0x7fffbc390040 "}\211\342}\211ⅉ߀\210\337x\212\342t\201\342{\212\344|\206\343\177\214\343w\210\341~\207\344y\206\341l\202\337w\213\342x\207\337r\201\335l\206\335q\203\335y\212\336r\213\336m\177\337i\204\337f\201\340m\206\335n\203\332q\205\335l\202\337b}\341y\202\335o\201\335y\177\334m\203\337g\177\341m\206\337j\200\342z\207\337p\205\341|\220\343h\207\345{\216\347t\217\347p\216\350u\217\346y\226\351y\224\352{\232\355y\231\351y\225\347w\225\355t\225\356v\217\352z\232\353t\221\352y\216\350p\207\351y\205\346bv\343ix\335\177\177\333mn\325gb\313[R\312bV\273\\J\256T?\251UA\246Y?"..., dataend = 0x7fffbc450040 "", datalimit = 0x7fffbc450040 "", allocator = 0x0, u = 0x66fd10, size = {
p = 0x7fffffffd348}, step = {p = 0x7fffffffd390, buf = {1536, 3}}}
(gdb) print tologic[8].R
$14 = 0 '\000'
(gdb) print tologic[0].R
$15 = 125 '}'
(gdb) print tologic[0].G
$16 = 0 '\000'
(gdb) print tologic[0].B
$17 = 0 '\000'
(gdb) print tologic[5].B
$18 = 0 '\000'
(gdb) print tologic[5].G
$19 = 0 '\000'
(gdb) |