public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18226] New: completion of extended-identifiers
@ 2015-04-09 18:13 ratmice at gmail dot com
  0 siblings, 0 replies; only message in thread
From: ratmice at gmail dot com @ 2015-04-09 18:13 UTC (permalink / raw)
  To: gdb-prs

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.
>From gdb-prs-return-17846-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Apr 09 18:44:51 2015
Return-Path: <gdb-prs-return-17846-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 67506 invoked by alias); 9 Apr 2015 18:44:50 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 67483 invoked by uid 48); 9 Apr 2015 18:44:50 -0000
From: "ratmice at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/18226] completion of extended-identifiers
Date: Thu, 09 Apr 2015 18:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: gdb
X-Bugzilla-Version: HEAD
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: ratmice at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-18226-4717-Zrs4YWSfKk@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18226-4717@http.sourceware.org/bugzilla/>
References: <bug-18226-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q2/txt/msg00040.txt.bz2
Content-length: 642

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

--- Comment #1 from matt rice <ratmice at gmail dot com> ---
The same thing happens with filenames when using the break completer,to
complete filenames, but works OK for the 'file' completer.

echo "void main(){}" >fooༀ.c; gcc -g --std c99 -fextended-identifiers -x c
fooༀ.c; gdb -quiet  ./a.out -batch -ex 'complete file fooༀ' -ex 'complete break
fooༀ'
file fooༀ.c
break fooༀ.c
break fooༀ_DYNAMIC
break fooༀ_GLOBAL_OFFSET_TABLE_
<snip>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-17847-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Apr 09 20:04:17 2015
Return-Path: <gdb-prs-return-17847-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 71138 invoked by alias); 9 Apr 2015 20:04:16 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 71109 invoked by uid 48); 9 Apr 2015 20:04:16 -0000
From: "xdje42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug corefiles/18227] New: can't modify memory in core file, even
 with --write
Date: Thu, 09 Apr 2015 20:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: corefiles
X-Bugzilla-Version: HEAD
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xdje42 at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
 bug_severity priority component assigned_to reporter
Message-ID: <bug-18227-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q2/txt/msg00041.txt.bz2
Content-length: 823

https://sourceware.org/bugzilla/show_bug.cgi?id\x18227

            Bug ID: 18227
           Summary: can't modify memory in core file, even with --write
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: corefiles
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

bash$ gdb segv.x64 core.12925
(gdb) set {int} $rsp = 1
Cannot access memory at address 0x7fffd66f9cd0

So far so good.

bash$ gdb --write segv.x64 core.12925
(gdb) p {int} $rsp
$1 = 0
(gdb) set {int} $rsp = 1
(gdb) p {int} $rsp
$2 = 0
(gdb)

Oops.
[If there's still a reason to reject the write
gdb should at least not be silent about it.]

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-09 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 18:13 [Bug gdb/18226] New: completion of extended-identifiers ratmice at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).