Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-12

remote debugging using gdbserver

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I'm trying to use gdbserver to remotely debug a program written in fpc using the following parameters:
$ ppcrossarm -dDEBUG -godwarfsets -godwarfmethodclassprefix -gw2 -gw3 -gl -g -gs -O- -gostabsabsincludes -godwarfmethodclassprefix hello.pas

When I debug it internally on the device, gdb gives me a backtrace properly and few other functions, however when i use gdbserver like so: $ gdbserver 192.168.0.202:2222 ./hello

And try to debug it using:

gdb# targer remote 192.168.0.202:2222 ./hello

The connection is closed.

What am I doing wrong ?

Thanks,
Ido
http://ik.homelinux.org/

Jonas Maebe
to ik
ik wrote 11 lines
When I debug it internally on the device, gdb gives me a backtrace properly and few other functions, however when i use gdbserver like so: $ gdbserver 192.168.0.202:2222 ./hello And try to debug it using: gdb# targer remote 192.168.0.202:2222 ./hello The connection is closed. What am I doing wrong ?

I think you better ask that on the gdb list, or on a list/site from the people that built the toolchain you are using. Make sure to at the very least mention the version of gdb that you are using (and keep in mind that the gdb server and client versions and (cross-)architectures have to match, you can't just connect with a random gdb to a random gdb server).

Jonas