This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug server/21980] New: Make "show args" show arguments passed through the CLI to gdbserver


https://sourceware.org/bugzilla/show_bug.cgi?id=21980

            Bug ID: 21980
           Summary: Make "show args" show arguments passed through the CLI
                    to gdbserver
           Product: gdb
           Version: 7.11
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: ciro.santilli at gmail dot com
  Target Milestone: ---

Current behavior is a bit confusing:

    gdbserver :1234 ./prog.out arg0 arg1
    gdb -ex 'target remote :1234' ./prog.out

Then:

    (gdb) b main
    (gdb) c
    (gdb) show args
    Argument list to give program being debugged when it is started is ""
    (gdb) print argc
    $1 = 3

Would require sending the arguments over the protocol I expect.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]