[Bug gdb/18226] New: completion of extended-identifiers

ratmice at gmail dot com sourceware-bugzilla@sourceware.org
Thu Apr 9 18:13:00 GMT 2015


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

            Bug ID: 18226
           Summary: completion of extended-identifiers
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: ratmice at gmail dot com

when using an input string containing a unicode character, tab completion and
the complete command complete to non-existent symbols

echo "void foo\u0f00(){} void main(){}" | gcc -g --std c99
-fextended-identifiers -x c -; gdb -quiet  ./a.out -batch -ex 'complete b foo'
-ex 'complete b fooༀ'

The first complete works fine (because the input contains no
extended-identifiers)
b fooༀ

the 2nd completion starts appending all symbols to the input string
b fooༀ_DYNAMIC
b fooༀ_GLOBAL_OFFSET_TABLE_
<snip>
b fooༀfooༀ

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


More information about the Gdb-prs mailing list