This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Huge pages and gdb
- From: Erez Zilber <erezzi dot list at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 23 Mar 2011 10:44:59 +0200
- Subject: Huge pages and gdb
Hi,
My application (running on RHEL 6) calls mmap() to map huge pages.
After it crashed, I opened gdb with the core file and tried to take a
look in the huge-pages buffer that was mmapped. I got the following
error:
gdb) p pool->mem
$2 = 0x7f3201400000 <Address 0x7f3201400000 out of bounds>
(gdb) p pool->mem[0]
Cannot access memory at address 0x7f3201400000
How can I solve this so I will be able to view the contents of the buffer?
Thanks,
Erez