This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]