You can use "adb forward tcp:1234 tcp:1234" to forward the local port on your development machine to the local port 1234 on the device/emulator. After that, you can do "target remote localhost:1234" in gdb to connect to your target through gdbserver.
On Tue, Feb 24, 2009 at 2:18 AM, Maxwell Li <[email protected]> wrote: > > Hi all, > I want to debug c programs by gdbserver. But I do not know how > to > setup IP address to G1 device. So I could not connect gdb to gdbserver > which > is running on G1 device. Could you help me? Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
