diff options
author | Andreas Schneider <asn@samba.org> | 2013-03-14 11:19:51 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-03-15 13:51:51 +0100 |
commit | fa6992eae51fb1456f345b99926717254eae8de3 (patch) | |
tree | a3fa31c205a68d8837c5a09ab3826c2e958ea230 | |
parent | 56328c0ccbb8b9ff7726d0ff2262841a1ba8e0d3 (diff) | |
download | samba-fa6992eae51fb1456f345b99926717254eae8de3.tar.gz samba-fa6992eae51fb1456f345b99926717254eae8de3.tar.bz2 samba-fa6992eae51fb1456f345b99926717254eae8de3.zip |
torture: Update ndr README.
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Mar 15 13:51:51 CET 2013 on sn-devel-104
-rw-r--r-- | source4/torture/ndr/README | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/torture/ndr/README b/source4/torture/ndr/README index 88123eae92..c7c127d8f6 100644 --- a/source4/torture/ndr/README +++ b/source4/torture/ndr/README @@ -2,3 +2,20 @@ use hexdump -v -e '12/1 "0x%02x, " "\n"' infile|outfile to import ndr dumps + + +Or use gdb: + +(gdb) b dump_printer +Breakpoint 1 at 0x49c92f: file ../source3/utils/net_printing.c, line 158. +(gdb) cond 1 strcmp(key_name, "s0bc") == 0 +(gdb) run +Breakpoint 1, dump_printer (mem_ctx=0x700a20, key_name=0x11fb8f9 "s0bc", data=0x18f93d0 "H\032", length=1284, do_string_conversion=true) at ../source3/utils/net_printing.c:158 +158 printf("found printer: %s\n", key_name); + +-> Now use x/<length in byte>bx + +(gdb) x/1284bx data + +This prints data as hex values. 1284 is the length in byte (see the length +argument of the function). The b indicates byte. |