This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
gdb and ioctl(sd, SIOCIFCREATE, &ifreq)
- From: "Morris Walton" <mwalton at telesyn dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 1 Nov 2004 20:39:17 -0500
- Subject: [ECOS] gdb and ioctl(sd, SIOCIFCREATE, &ifreq)
Hi,
My gdb session to my ppc 8xxx target (using Ethernet - target remote
<ip>:9000) appears to be hung after the code running on the target issues
the SIOCIFCREATE io command:
int
if_dev_create(char *name)
{
struct ifreq ifreq;
int sd = socket(AF_INET, SOCK_DGRAM, 0);
strcpy(ifreq.ifr_name, name);
if (ioctl(sd, SIOCIFCREATE, &ifreq) == -1)
<no longer stepping, gdb unresponsive>
Anyone had luck or have suggestions with using the SIOCIFCREATE? This looks
like it amounts to a call to if_clone_create.
Thanks for any help,
Morris
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss