Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 18, 2011 18:26
Show Gist options
  • Select an option

  • Save dileks/925869 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/925869 to your computer and use it in GitHub Desktop.
[20:05:49] <pipacs> dileks, can you do x/8i 0xc11bee47 ?
$ LANG=C gdb vmlinux
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sd/src/lll-project/test-qemu/vmlinux...done.
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
0xc103747f in panic (fmt=<value optimized out>) at kernel/panic.c:149
149 i += panic_blink(state ^= 1);
(gdb) x/8i 0xc11bee47
0xc11bee47 <memcpy+23>: rep movsl %ds:(%esi),%es:(%edi)
0xc11bee49 <memcpy+25>: mov (%esp),%ecx
0xc11bee4c <memcpy+28>: and $0x3,%ecx
0xc11bee4f <memcpy+31>: je 0xc11bee53 <memcpy+35>
0xc11bee51 <memcpy+33>: rep movsb %ds:(%esi),%es:(%edi)
0xc11bee53 <memcpy+35>: add $0x4,%esp
0xc11bee56 <memcpy+38>: pop %esi
0xc11bee57 <memcpy+39>: pop %edi
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment