Recent

Author Topic: gdbserver and parameters  (Read 2688 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 1449
gdbserver and parameters
« on: August 16, 2020, 12:33:26 pm »
When using gdbserver, which parameters should take precedence: those entered in the IDE or those given on the command line?

At least under Linux, it appears necessary to enter them on the command line and the ones in the IDE are ignored.

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6711
  • Debugger - SynEdit - and more
    • wiki
Re: gdbserver and parameters
« Reply #1 on: August 16, 2020, 12:44:33 pm »
You mean parameter/arguments to your app? "project1 -v - foo"?

With gdbserver the IDE never starts your project. So it can not pass on any args.

IIRC, when you do
gdbserver host port project1

gdbserver will already start your app, and pause it on the first instruction. So at the time the IDE gets to connect to it, it is already to late.

MarkMLl

  • Hero Member
  • *****
  • Posts: 1449
Re: gdbserver and parameters
« Reply #2 on: August 16, 2020, 12:58:14 pm »
OK. As distinct from ordinary gdb, which wants an explicit command to set up the debugee's parameters.

A warning from the IDE that the parameters it had been told to apply would be very useful.

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6711
  • Debugger - SynEdit - and more
    • wiki
Re: gdbserver and parameters
« Reply #3 on: August 16, 2020, 01:17:55 pm »
Agreed, please add a feature request on the bugtracker

MarkMLl

  • Hero Member
  • *****
  • Posts: 1449
Re: gdbserver and parameters
« Reply #4 on: August 16, 2020, 03:36:04 pm »
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

 

TinyPortal © 2005-2018