I still have some problems with debugging:
../mysql-6.../sql$ gdb ./mysqld
(gdb): b mysql_select
Then I started the mysql client:
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:
(gdb) p thd->query
it gave me:
No symbol "thd" in current context.
(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!