[Bug tui/24429] New: "info function" flags don't work

djnakst2 at gmail dot com sourceware-bugzilla@sourceware.org
Tue Apr 9 09:19:00 GMT 2019


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

            Bug ID: 24429
           Summary: "info function" flags don't work
           Product: gdb
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: djnakst2 at gmail dot com
  Target Milestone: ---

Overview:
>From the documentation page
https://sourceware.org/gdb/onlinedocs/gdb/Symbols.html, "Thus, ‘info fun -t
'^int ('’ finds the functions that return an integer". When running the command
"info fun -t '^int ('" on gdb (with a executable loaded that contains functions
returning integers), it prints
"(gdb) info fun -t '^int ('
All functions matching regular expression "-t '^int ('":" It appears to be
incorrectly parsing the flag as part of the regular expression.

Steps to Reproduce:
echo "int main(int argc, char **argv) {return 0;}" > test.c
gcc -o test test.c -g
gdb test
info fun -t '^int ('

Actual Results:
(gdb) info fun -t '^int ('
All functions matching regular expression "-t '^int ('":
(gdb) 

Expected Results:
(gdb) info fun -t '^int ('
int main(int, char **);
(gdb) 

Build Date & Hardware:
GNU gdb (GDB) 8.2.1
running on arch linux

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


More information about the Gdb-prs mailing list