Ramagudi Naziir wrote:
> On 12/19/07, Jason Wessel <[EMAIL PROTECTED]> wrote:
>
>> What module parameters did you pass to kgdboe and what kernel are you
>> using and are you using the kgdb source forge patches?
>>
>
> I am running the kgdb_2.6.23 branch of your kgdb git tree
> (git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git).
>
> my kgdb parameter is "[EMAIL PROTECTED]/,[EMAIL PROTECTED]/",
> where 10.0.0.28 is my target and 10.0.0.11 is the host running gdb.
> I have to sniff gdb in order to find out the value of 32323...
>
The git tree is a push from the various branches in the Source Forge. I
booted the 2.6.23 from the git tree and it seems to work fine with:
# insmod /kgdboe.ko kgdboe=@/,@10.0.2.2/
kgdboe: local port 6443
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 10.0.2.2
kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff
kgdboe: local IP 10.0.2.15
### Here I went and connected to the debugger
### and then disconnected
# rmmod kgdboe
# insmod /kgdboe.ko [EMAIL PROTECTED]/,@10.0.2.2/
kgdboe: local port 6443
kgdboe: local IP 10.0.2.15
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 10.0.2.2
kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff
### Here I went and connected to the debugger
### and then disconnected
I even tried your line and that worked too. I am wondering if you have
different parameters set for your kernel .config or if the net poll api
is working differently.
I checked into net/core/netpoll.c and the code does not check the source
port at all as I mentioned.
>From netpoll.c:
if (ulen != len)
goto out;
if (checksum_udp(skb, uh, ulen, iph->saddr, iph->daddr))
goto out;
if (np->local_ip && np->local_ip != ntohl(iph->daddr))
goto out;
if (np->remote_ip && np->remote_ip != ntohl(iph->saddr))
goto out;
if (np->local_port && np->local_port != ntohs(uh->dest))
goto out;
np->rx_hook(np, ntohs(uh->source),
So it seems there is a bit of a mystery at hand if it really doesn't
work unless you have the correct port specified.
Jason.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport