Tag: gdb

  • GDB backtrace For chromium hangup

    (gdb) bt #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007fb512be9443 in ?? () #2 0x00007fb512bc9d0d in ?? () #3 0x00007fb512bacb0f in ?? () #4 0x00007fb512bbc7d1 in ?? () #5 0x00007fb512baa03a in ?? () #6 0x00007fb51537aea8 in ?? () #7 0x00007fb512b7d045 in ?? () #8 0x00007fb512b7de1e in ?? () #9 0x00007fb512b7cc30 in ?? () #10 0x00007fb512569698 in […]

  • GNU grep Debug

    commandline session $gdb grep GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 […]

  • Binary Tree Debug

    commandline session $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 […]

  • cairo 1.1 working internal

    screenshots of tinkering (gdb) bt #0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:84 #1 0x00007ffff509db24 in do_clone (pd=0x7ffff03bd710, attr=0x7ffff50a7f20, stackaddr=0x7ffff03bd9e0, stopped=1, fct=, clone_flags=) at ../nptl/sysdeps/pthread/createthread.c:75 #2 0x00007ffff509e0d2 in create_thread (newthread=, attr=, start_routine=, arg=) at ../nptl/sysdeps/pthread/createthread.c:205 #3 __pthread_create_2_1 (newthread=, attr=, start_routine=, arg=) at pthread_create.c:561 #4 0x0000000000401a82 in timer_exe (window=0x638400) at cairoanimation.c:138 (gdb) frame 4 #4 0x0000000000401a82 in timer_exe (window=0x638400) […]

  • operating system auxiliary vector

    GDB show’s Auxiliary Vector (gdb) info auxv 33 AT_SYSINFO_EHDR System-supplied DSO’s ELF header 0x7fff68bdf000 16 AT_HWCAP Machine-dependent CPU capability hints 0x78bfbff 6 AT_PAGESZ System page size 4096 17 AT_CLKTCK Frequency of times() 100 3 AT_PHDR Program headers for program 0x400040 4 AT_PHENT Size of program header entry 56 5 AT_PHNUM Number of program headers 8 […]

  • negate instruction NEG

    GDB shows “neg” instruction or $0xffffffffffffffff,%eax jmp 0x7f94f7fce0d0 mov 0x296e5f(%rip),%rax # 0x7f94f8264f98 neg %edx mov %edx,%fs:(%rax) or $0xffffffffffffffff,%eax jmp 0x7f94f7fce10f End of assembler dump. (gdb) 0x00007f94f7fce139 : neg %edx Process Involved software : gnome-panel. The launcher and docking facility for GNOME Explanation The neg (negate) instruction takes the two’s complement of a byte or word. […]

  • exclusive OR Instruction :-

    GDB shows XOR Instruction (gdb) disassemble 0x00007f16db50b647 Dump of assembler code for function gtk_main: 0x00007f16db50b5a0 : push %r15 0x00007f16db50b5a2 : xor %edi,%edi 0x00007f16db50b5a4 : mov $0x1,%esi 0x00007f16db50b5a9 : push %r14 0x00007f16db50b5ab : push %r13 0x00007f16db50b5ad : push %r12 0x00007f16db50b5af : push %rbp 0x00007f16db50b5b0 : push %rbx 0x00007f16db50b5b1 : sub $0x38,%rsp 0x00007f16db50b5b5 : addl $0x1,0x4e2af4(%rip) # […]

  • test instruction +

    | GDB shows TEST instruction | Dump of assembler code for function *__GI___poll: 0x00007f73ec2120b0 : sub $0x28,%rsp 0x00007f73ec2120b4 : mov 0x29c52e(%rip),%eax # 0x7f73ec4ae5e8 0x00007f73ec2120ba : test %eax,%eax 0x00007f73ec2120bc : jne 0x7f73ec2120d5 0x00007f73ec2120be : movslq %edx,%rdx 0x00007f73ec2120c1 : mov $0x7,%eax 0x00007f73ec2120c6 : syscall 0x00007f73ec2120c8 : cmp $0xfffffffffffff000,%rax 0x00007f73ec2120ce : ja 0x7f73ec212121 0x00007f73ec2120d0 : add $0x28,%rsp 0x00007f73ec2120d4 […]

  • jmp instruction .

    JMP instruction (gdb) disass Dump of assembler code for function __kernel_vsyscall: 0xb77bd414 : push %ecx 0xb77bd415 : push %edx 0xb77bd416 : push %ebp 0xb77bd417 : mov %esp,%ebp 0xb77bd419 : sysenter 0xb77bd41b : nop 0xb77bd41c : nop 0xb77bd41d : nop 0xb77bd41e : nop 0xb77bd41f : nop 0xb77bd420 : nop 0xb77bd421 : nop 0xb77bd422 : jmp 0xb77bd417 […]

  • JAE instruction .

    | GDB shows JAE Instruction | (gdb) disass Dump of assembler code for function __select_nocancel: 0x00007f31a021e889 : mov %rcx,%r10 0x00007f31a021e88c : mov $0x17,%eax 0x00007f31a021e891 : syscall => 0x00007f31a021e893 : cmp $0xfffffffffffff001,%rax 0x00007f31a021e899 : jae 0x7f31a021e8cf 0x00007f31a021e89b : retq End of assembler dump. Process Involved $wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2 –2010-07-24 01:33:15– http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2 Resolving www.kernel.org… 149.20.20.133, 199.6.1.164, 204.152.191.37, … […]