From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9498 invoked by alias); 5 Aug 2003 03:54:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9491 invoked from network); 5 Aug 2003 03:54:33 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 5 Aug 2003 03:54:33 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5CABE2B7F; Mon, 4 Aug 2003 23:54:26 -0400 (EDT) Message-ID: <3F2F2A72.9020304@redhat.com> Date: Tue, 05 Aug 2003 03:54:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Snyder , gdb@sources.redhat.com Subject: set prompt-escape-character Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00051.txt.bz2 More -Wformat-nonliteral suprizes. In trying to understand the "top.c" warnings from: /* FIXME: how to protect GDB from crashing from bad user-supplied format string? */ sprintf (outp, fmt[0] == 0 ? default_fmt : fmt, tmp); I discovered a new feature: (top-gdb) set prompt-escape-char 0x25 (top-gdb) set prompt PC=0x%0x%$pc PC=0x1802f68 Perhaps it could be change do use the printf code vis: set prompt "0x%x ", $pc Anyway, Michael, was there any doco on this? I can't find anything. Andrew