pbdbg -text -- command line navigation

Hello,

I’m a pgdbg newbie. I’m using the text option because my code runs on a remote machine that I log into with ssh.

I can’t seem to find any information about navigating the command line as in a shell (up arrow or c-p for previous command, m-f and m-b to jump one word, c-a and c-e for beginning and end of line, etc.).

Does anything like this exist within pgdbg -text?

Thanks,
Tim

Hi Tim,

Does anything like this exist within pgdbg -text?

No, at least not these shell commands. Though, it does support history and the history substitution (!, ^) which may help.

  • Mat
pgdbg> help

PROCESS INIT
  args       attach     catch      debug      detach     ignore
  load       setargs
PROCESS CONTROL
  cont       halt       next       nexti      run        step 
  stepi      stepout    sync       synci      wait
PROCESS/THREAD SELECT
  proc       procs      thread     threads
PROCESS/THREAD SETS
  p/t-set    focus      defset     undefset   viewset    whichsets
EVENTS
  break      breaki     breaks     delete     disable    do         doi
  enable     hwatch     hwatchread hwatchboth status     track      tracki
  unbreak    unbreaki   watch      watchi     
PROGRAM LOCATIONS
  arrive     cd         disasm     edit       lines      list       pwd
  stacktrace stackdump  where      /          ?
PRINTING
  ascii      bin        dec        display    hex        print      printf
  oct        string     undisplay
SYMBOLS AND EXPRESSIONS
  assign     call       decl       entry      lval       rval       set
  sizeof     type       whatis
SCOPE
  class      classes    decls      down       enter      file       files
  global     names      scope      up         whereis
REGISTER ACCESS
  fp         pc         regs       retaddr    sp
MEMORY ACCESS
  cread      dread      dump       fread      lread      iread     sread
  mqdump
CONVERSIONS
  addr       function   line
MISCELLANEOUS
  alias      pgienv     directory  help       history    language   log
  nop        repeat     script     setenv     shell      sleep      unalias
  !          ^          quit
TARGET
  connect    disconnect            native
pgdbg> help history 
[hi]story  History command
history			- List the most previously executed commands
history <num>		- Resize the history list to hold <num> commands

pgdbg> help !
[!]  History command substitution
!!<modifier>		- Execute the previous command
!<num><modifier>	- Execute command number <num>
!-<num><modifier>	- Execute command <-num> from most current command
!<str><modifier>	- Execute most recent command starting with <str>
!?<str>?<modifier>	- Execute most recent command containing <str>

Modifiers:
:s/<l>/<r>/		- Substitute modifier: Substitute <r> for <l>
:p			- Print modifier: Print (but do not execute) the command