This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I have a new question, how to remove the memory protection? I'm trying to find out this part in gdb, but I do not find anything!!
p -= (unsigned long)p % PAGE_SIZE; if(mprotect(p, PAGE_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC)) { perror("mprotect"); exit(1); }
let's see the default_memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache) in the mem-break.c first, the program "determine appropriate breakpoint contents and size for this address". I don't know, the sizeof the int3 is 1 byte, right? why need to detect the "appropriate" breakpoint size?
-- saffroy@gmail.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |