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 gdb/22619] New: repeat count is forgotten by newline to extend previous 'x' command (examine memory)


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

            Bug ID: 22619
           Summary: repeat count is forgotten by newline to extend
                    previous 'x' command (examine memory)
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jreiser at BitWagon dot com
  Target Milestone: ---

The command sequence
  (gdb) x/12xw $sp
  (gdb)     ## newline to show the next 12 words
forgets the repeat count "12"; it displays only one word instead of the
expected 12.

Example:
$ gdb hello
GNU gdb (GNU gdb (GDB) 8.0.50.20171216-git
  <<snip>>
(gdb) b main
(gdb) run
Breakpoint 1, main (argc=0x1, argv=0xbefff454) at hello.c:5

(gdb) x/12xw $sp
0xbefff2e8:     0x00010460      0x00000000      0xbefff454      0x00000001
0xbefff2f8:     0x00000000      0x00000000      0x00000000      0xb6e63c40
0xbefff308:     0xb6fb5000      0xbefff454      0x00000001      0x00010404
(gdb)    ## type <Enter> or <Return> to ask for the next 12 words
0xbefff318:     0x9fea1ea9   ## only one (1) word shown instead of twelve (12)
(gdb)

gdb was built from git tip:
commit 09da3ecf04d75084ea7d9c43e3cc0b18b2443ea3 (HEAD -> master, origin/master,
origin/HEAD)
Author: GDB Administrator <gdbadmin@sourceware.org>
Date:   Sat Dec 16 00:00:33 2017 +0000

    Automatic date update in version.in

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