Skip to contentSkip to conversation

gdbserver, find_extend_vma(), and VM_GROWSDOWN

DISCUSSION Kent Borg 2 participants 2 messages Jul 7, 2003

lore
Share & tools
lore

Kent Borg

author
#0 lore raw

I am having gdbserver problems. I can run gdbserver and attach to it with gdb, but the peeks into the application space are failing.

For example, in debugging the peek for the first instruction of my application, there is a call to find_extend_vma() (in mm/mmap.c). The test for:

vma->vm_start <= addr

fails, and as this vms is VM_GROWSUP (and not VM_GROWSDOWN), the next if-statement returns a NULL. That percolates up until ptrace returns zero.

This application code runs pretty well without gdbserver, what should I look for next? Is it indeed perverse for the addr to be below the start? Who is likely to blame for that? Where should I look next? Do I start grepping for every instance of PT_PTRACED in arch/ppc?

Thanks,

-kb, the Kent whose gdbserver Makefile says it is 4.12.3, and whose kernel is quite close to 2.4.21.rc1.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I am having gdbserver problems. I can run gdbserver and attach to it with gdb, but the peeks into the application space are failing.

Where did you get your (Cross-) GDB and gdbserver from, and which versions are these?

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] We have phasers, I vote we blast 'em!
-- Bailey, "The Corbomite Maneuver", stardate 1514.2

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/