Hi guys
I still have some problems with debugging:
I did:
../mysql-6.../sql$ gdb ./mysqld
in GDB:
(gdb): b mysql_select
(gdb): r
Then I started the mysql client:
/usr/local/mysql$ bin/mysql
in Mysql:
mysql> show databases;
In GDB it successfully got to the defined breakpoint. I can also do backtrace...
But my problem is I can not examine the values of the variables:
By entering:
(gdb) p thd->query
it gave me:
No symbol "thd" in current context.
Or:
(gdb) b JOIN::exec
Can't find member of namespace, class, struct, or union named "JOIN::exec"
Hint: try 'JOIN::exec<TAB> or 'JOIN::exec<ESC-?>
(Note leading single quote.)
Can someone help?
Thanks a lot!
Patrick