Recent

Author Topic: GDBserver works incorrectly  (Read 5923 times)

egdb

  • Newbie
  • Posts: 2
GDBserver works incorrectly
« on: April 15, 2015, 04:25:03 am »
Hi.

I built Cross-compile(and debugging) environment.(Host=linux32(ubuntu14.04) target=raspbian(Rpi2))

Cross-compile works well but cross-debugging doesn't.

I set debugging option as image.

And i set my target GDBserver as : root@raspberrypi:~# gdbserver --remote-debug --multi 192.168.0.8:2345

And then, i request Debugging (press F9) in IDE,

I got result on target :

Listening on port 2345

Remote debugging from host 192.168.0.8

[getpkt: discarding char '+']

getpkt ("qSupported:multiprocess+;qRelocInsn+");  [sending ack]

[sent ack]

putpkt ("$PacketSize=3fff;QPassSignals+;QProgramSignals+;qXfer:libraries-svr4:read+;augmented-libraries-svr4-read+;qXfer:auxv:read+;qXfer:spu:read+;qXfer:spu:write+;qXfer:siginfo:read+;qXfer:siginfo:write+;qXfer:features:read+;QStartNoAckMode+;qXfer:osdata:read+;multiprocess+;QNonStop+;QDisableRandomization+;qXfer:threads:read+;ConditionalBreakpoints+;BreakpointCommands+;QAgent+#4f"); [looking for ack]

[received '+' (0x2b)]

getpkt ("QStartNoAckMode");  [sending ack]

[sent ack]

[noack mode enabled]

putpkt ("$OK#9a"); [noack mode]

[getpkt: discarding char '+']

getpkt ("QProgramSignals:0;1;3;4;6;7;8;9;a;b;c;d;e;f;10;11;12;13;14;15;16;17;18;19;1a;1b;1c;1d;1e;1f;20;21;22;23;24;25;26;27;28;29;2a;2b;2c;2d;2e;2f;30;31;32;33;34;35;36;37;38;39;3a;3b;3c;3d;3e;3f;40;41;42;43;44;45;46;47;48;49;4a;4b;4c;4d;4e;4f;50;51;52;53;54;55;56;57;58;59;5a;5b;5c;5d;5e;5f;60;61;62;63;64;65;66;67;68;69;6a;6b;6c;6d;6e;6f;70;71;72;73;74;75;76;77;78;79;7a;7b;7c;7d;7e;7f;80;81;82;83;84;85;86;87;88;89;8a;8b;8c;8d;8e;8f;90;91;92;93;94;95;96;");  [no ack sent]

putpkt ("$OK#9a"); [noack mode]

getpkt ("Hgp0.0");  [no ack sent]

putpkt ("$E01#a6"); [noack mode]

getpkt ("qXfer:features:read:target.xml:0,fff");  [no ack sent]

putpkt ("$E01#a6"); [noack mode]

getpkt ("qXfer:auxv:read::0,1000");  [no ack sent]

putpkt ("$E01#a6"); [noack mode]

getpkt ("QNonStop:0");  [no ack sent]

[all-stop mode enabled]

putpkt ("$OK#9a"); [noack mode]

getpkt ("qTStatus");  [no ack sent]

putpkt ("$#00"); [noack mode]

getpkt ("?");  [no ack sent]

putpkt ("$W00#b7"); [noack mode]

readchar: Got EOF

[getpkt: discarding char ' ']

Remote side has terminated connection.  GDBserver will reopen the connection.

Listening on port 2345

how can i this problem?

should i change option for "remote debugging" anything else?

« Last Edit: April 15, 2015, 08:22:26 am by egdb »

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: GDBserver works incorrectly
« Reply #1 on: April 15, 2015, 08:01:29 am »
It seems that you are running Windows version of CodeTyphoon. Use native version of CodeTyphoon in your host.

egdb

  • Newbie
  • Posts: 2
Re: GDBserver works incorrectly
« Reply #2 on: April 15, 2015, 08:21:42 am »
sorry, image is wrong. i updated new image.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: GDBserver works incorrectly
« Reply #3 on: April 15, 2015, 03:20:15 pm »
THe options in the screenshot look fine.

What. if any, are the errors on the linux box?
Does the IDE show any error?

What is in "debug output", and can you supply a log file (see link)?
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

What version of gdb is on the host, what version of gdb server is on the raspi?

What are the debug settings on your project? Stab/Dwarf,  external dbg info?

Also see http://wiki.lazarus.freepascal.org/Debugger_Setup


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: GDBserver works incorrectly
« Reply #4 on: April 15, 2015, 03:30:10 pm »
Code: [Select]
And i set my target GDBserver as : root@raspberrypi:~# gdbserver --remote-debug --multi 192.168.0.8:2345
Try

gdbserver 192.168.0.8:2345 ./Myapp

It should say that the process was created.

You must specify the app on the remote, as the IDE does not know where it is located.

---
If possible still tell me the gdb(server) versions

 

TinyPortal © 2005-2018