Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Created December 18, 2014 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoku0825/a085719818ef507543ef to your computer and use it in GitHub Desktop.
Save yoku0825/a085719818ef507543ef to your computer and use it in GitHub Desktop.
mysql> SELECT 1;
## ここではほとんど見えない
Breakpoint 5, mysql_real_query (mysql=0xa56940, query=0xa64700 "SELECT 1", length=8) at /data/tmp/connector/sql-common/client.c:4794
4794 {
(gdb) p mysql->fabric_context
$1 = (struct st_fabric_context *) 0xa7b010
(gdb) p *mysql->fabric_context
$2 = {
m_sess = 0xa56940,
m_conn = 0xa86170
}
(gdb) c
Continuing.
## こっちだと見える(thisはmysql->fabric_contextを受け取っているのに)
Breakpoint 4, Fabric_context::pick_connection (this=0xa7b010, connect=true) at /data/tmp/connector/libmysql/fabric_commands.cc:769
769 {
(gdb) p this->m_mode
$3 = Fabric_context::NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment