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 python/23669] New: gdb.execute("show commands") doesn't work


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

            Bug ID: 23669
           Summary: gdb.execute("show commands") doesn't work
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com
  Target Milestone: ---

With gdb 8.2:

This command:

(gdb) show commands
   32  commands
   33  commands
   34  python gdb.execute("show commands")
   35  python gdb.execute("show version")
   36  python gdb.execute("show version")
   37  python gdb.execute("show commands")
   38  python gdb.execute("show commands")
   39  help
   40  show commands
   41  show commands

When executed with gdb.execute, doesn't work:

(gdb) python gdb.execute("show commands")
warning: bad breakpoint number at or near '0'

GDB appears to try to run the "commands" command and complain about the lack of
breakpoint number.  With GDB master, it still tries to invoke the "commands"
command, but the output is silent.

-- 
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]