Comment 1 for bug 804407

Revision history for this message
Muhammad Omair Javaid (omair-javaid) wrote :

Steps to Reproduce:

test_fork.c is attached.

on an arm target (mine is a panda board): gcc -o test_fork test_fork.c

Build gdb 7.2 with following configurations on your host:
./configure --target=arm-linux-gnueabihf --with-expat --disable-nls --disable-sim --disable-install-libbfd --with-sysroot=remote:

copy test_fork build on your target to your host machine.

Run your newly built gdb: ./gdb/gdb test_fork

make sure a port is open from your host to target and you can have tcp communication going.

Build gdbserver on your host if you havnt already done it.

Run following command on your target: ./gdbserver :port test_fork

on host gdb run the following command: target remote target_remote_ip_or_hostname:port

break main

continue

catch fork

continue

you will get the following error message "warning: Error inserting catchpoint 1: Your system does not support this type
of catchpoint."