|
|
|
Re: precise debugging of inline asm | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
lynx.abraxas@xxxxxxxxxx wrote:
Hello! The mentioning of gdb in this mailinglist gave me the idea to ask my unresolved question here as well: Trying to port cpt2 to linux I have an inline assembly part of about 100 lines that causes a segmentation fault while juggling around with memory. When I use gdb for debugging it sadly only points me to the line where the inline asm starts. I haven't been able to figure out how to get a more precise info in what line the actual segmentation fault comes from. Does anybody here know if that is at all possible and if so, how? Would labels to each line help? Thanks for any help or hints. Lynx
On x86, try for example (gdb) disassemble $eip $eip+20 Also see (gdb) info registers Cld -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Kernel Newbies] [Security] [Linux C Programming] [Linux for Hams] [DCCP] [Netfilter] [Bugtraq] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux]
![]() |