List:Internals« Previous MessageNext Message »
From:Patrick Lau Date:October 31 2008 4:04pm
Subject:MYSQL & GDB - Newbie question
View as plain text  
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
Thread
MYSQL & GDB - Newbie questionPatrick Lau31 Oct
  • Re: MYSQL & GDB - Newbie questionSergei Golubchik1 Nov
    • Re: MYSQL & GDB - Newbie questionAmit K. Saha- Sun Microsystems10 Nov
      • Re: MYSQL & GDB - Newbie questionGuilhem Bichot10 Nov
        • Re: MYSQL & GDB - Newbie questionAmit K. Saha- Sun Microsystems10 Nov
          • Re: MYSQL & GDB - Newbie questionGuilhem Bichot10 Nov
            • Re: MYSQL & GDB - Newbie questionAmit K. Saha- Sun Microsystems12 Nov