Recent

Author Topic: gdbserver and parameters  (Read 3477 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • 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: 6676
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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • 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: 6676
Re: gdbserver and parameters
« Reply #4 on: August 16, 2020, 03:36:04 pm »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018