Files
MaxScale/server/core
Johan Wikman d2f31aab0a MXS-2420 Add debug function for decoding response packet
When debugging you occasionally want to find out what a packet
contains (e.g. delivered to clientReply). Manually looking into
the packet works, but is tedious. With this function you when
the execution has been stopped in GDB examine a protocol packet.

E.g.

Thread 3 "maxscale" hit Breakpoint 6, RWSplitSession::clientReply (this=0x7fffe401ed20, writebuf=0x7fffe401e910, backend_dcb=0x7fffe401dbe0) at /home/wikman/MariaDB/MaxScale/server/modules/routing/readwritesplit/rwsplitsession.cc:567
567	    DCB* client_dcb = backend_dcb->session->client_dcb;
(gdb) p dbg_decode_response(writebuf)
$30 = 0x7ffff0d40d54 "Packet no: 1, Payload len: 44, Command : ERR, Code: 1146, Message : Table 'test.blahasdf' doesn't exist"
2019-04-04 16:05:16 +03:00
..
2019-03-29 11:31:35 +02:00
2019-03-11 12:29:56 +02:00
2019-03-21 09:26:06 +02:00
2019-03-11 12:29:56 +02:00
2018-08-10 07:50:18 +03:00
2018-09-09 22:26:19 +03:00
2018-09-09 22:26:19 +03:00
2019-03-22 12:52:56 +02:00
2018-09-09 22:26:19 +03:00
2019-01-21 14:07:47 +02:00
2018-06-25 10:07:52 +03:00
2018-09-09 22:26:19 +03:00
2019-04-02 14:21:54 +03:00
2019-03-27 13:15:14 +02:00
2019-03-28 15:33:09 +02:00
2018-09-09 22:26:19 +03:00
2019-01-14 15:07:33 +02:00
2019-03-28 16:34:12 +02:00