Sign in Join

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

Mailing lists / lazarus / 2015-10

The GDB command: "-gdb-set confirm off" did not return any result

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

When I try to run a very small Console Application for testing Indy10 using the green arrow run button I get a pop-up message box saying: The GDB command: "-gdb-set confirm off" did not return any result

If I build the program instead and go to a terminal window to execute it, then it works as it should.

Environment:
------------
Platform: Raspberry Pi2 with ARM7 running Raspbian Jessie FPC 3.1.1 built from sources as root
Lazarus 1.5 SVN 50059 built inside the Pi home as user pi Test sources in Pi hme as well
TCPIP: Using Indy10 copied over from my PC using a samba share (so the files for Indy have Windows line endings)

What could cause the GDB problem? Line endings or what?

The active code apart from what Lazarus entered:

  { add your program here }
  Writeln('Creating TCP client');
  FComm := TIdTCPClient.Create;
  try
    Writeln('Connecting to www.mydomain.com on port 80');
    T1 := GetTickCount;
    FComm.Connect('www.mydomain.com', 80);
    T2 := GetTickCount;
    T2 := T2 - T1;
    Writeln('Connection succeeded in ' + IntToStr(T2) + ' ms, now
closing down');
  finally
    if FComm.Connected then
       FComm.Disconnect;
    FComm.Free;
  end;

BTW, Indy10 seems to work fine so far....

Bo Berglund Developer in Sweden

Reply by email

Mark Morgan Lloyd
to Bo Berglund
Bo Berglund wrote 17 lines
When I try to run a very small Console Application for testing Indy10 using the green arrow run button I get a pop-up message box saying: The GDB command: "-gdb-set confirm off" did not return any result If I build the program instead and go to a terminal window to execute it, then it works as it should. Environment: ------------ Platform: Raspberry Pi2 with ARM7 running Raspbian Jessie FPC 3.1.1 built from sources as root Lazarus 1.5 SVN 50059 built inside the Pi home as user pi Test sources in Pi hme as well TCPIP: Using Indy10 copied over from my PC using a samba share (so the files for Indy have Windows line endings) What could cause the GDB problem? Line endings or what?

What version of gdb i.e. use the gdb --version command.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Bo Berglund
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 7 lines
> using the green arrow run button I get a pop-up message box saying: > The GDB command: "-gdb-set confirm off" did not return any result > > What could cause the GDB problem? Line endings or what? What version of gdb i.e. use the gdb --version command.

GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote 11 lines
On Thu, 22 Oct 2015 09:29:26 +0000, Mark Morgan Lloyd wrote: >> using the green arrow run button I get a pop-up message box saying: >> The GDB command: "-gdb-set confirm off" did not return any result >> >> What could cause the GDB problem? Line endings or what? > >What version of gdb i.e. use the gdb --version command. > GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1

I have now shut down Lazarus, then used a utility to change line endings on all text files in the Indy10 directories. When I now start Lazarus and hit the Run button, absolutely nothing is shown, not even pop-up error....
So I made a Clean Build operation and this succeeded, so then I hit Run again and nothing happens.

What could cause this? Am I not supposed to see a terminal window or similar pop up?

Bo Berglund Developer in Sweden

Reply by email

Mark Morgan Lloyd
to Bo Berglund
Bo Berglund wrote 23 lines
On Thu, 22 Oct 2015 12:07:33 +0200, Bo Berglund wrote: > On Thu, 22 Oct 2015 09:29:26 +0000, Mark Morgan Lloyd > wrote: > >>> using the green arrow run button I get a pop-up message box saying: >>> The GDB command: "-gdb-set confirm off" did not return any result >>> >>> What could cause the GDB problem? Line endings or what? >> What version of gdb i.e. use the gdb --version command. >> > GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1 I have now shut down Lazarus, then used a utility to change line endings on all text files in the Indy10 directories. When I now start Lazarus and hit the Run button, absolutely nothing is shown, not even pop-up error.... So I made a Clean Build operation and this succeeded, so then I hit Run again and nothing happens. What could cause this? Am I not supposed to see a terminal window or similar pop up?

Terminal window as in controlling your program interactively (or at least seeing output) or as in showing you what GDB is doing?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Bo Berglund
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 6 lines
> What could cause this? Am I not supposed to see a terminal window or > similar pop up? Terminal window as in controlling your program interactively (or at least seeing output) or as in showing you what GDB is doing?

Regarding the GDB it seems like the problem disappeared when I changed the line endings on the files I had copied from my PC via the samba share and therefore had Windows line endings. I ran dos2unix on all of them (except the binary files of course) and then restarted Lazarus and tried again and now there was no GDB error message anymore.

What I really wonder about next is the fact that it is different from in Delphi when one starts a command line program while developing. In Delphi the black terminal window shows up and one can see the progress of the execution there. In this case there was nothing, not even a single message in the messages window. It was as if the program did not it might be intended to be like this on Linux, this is my first try really.

Bo Berglund Developer in Sweden

Reply by email

Martin Frb
to Bo Berglund
Bo Berglund wrote 7 lines
What I really wonder about next is the fact that it is different from in Delphi when one starts a command line program while developing. In Delphi the black terminal window shows up and one can see the progress of the execution there. In this case there was nothing, not even a single message in the messages window. It was as if the program did not it might be intended to be like this on Linux, this is my first try really.

On Windows you should get a terminal, if your app was compiled as console.

On linux the terminal is just a device /dev/pty, and the terminal in which the command is running does the display.

Lazarus on linux has a debug window (menu view) to show the console output

Reply by email

Bo Berglund
to Martin Frb
Martin Frb wrote
On linux the terminal is just a device /dev/pty, and the terminal in which the command is running does the display. Lazarus on linux has a debug window (menu view) to show the console output

Thanks!
I did not realize that, but now I found it. I will use that in the future!

Bo Berglund Developer in Sweden

Reply by email