From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16536 invoked by alias); 5 Aug 2008 12:48:02 -0000 Received: (qmail 16495 invoked by uid 71); 5 Aug 2008 12:48:01 -0000 Resent-Date: 5 Aug 2008 12:48:01 -0000 Resent-Message-ID: <20080805124801.16494.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com, apoenitz@trolltech.com Resent-Reply-To: gdb-gnats@sources.redhat.com, apoenitz@trolltech.com Received: (qmail 14194 invoked by uid 48); 5 Aug 2008 12:40:24 -0000 Message-Id: <20080805124024.14193.qmail@sourceware.org> Date: Tue, 05 Aug 2008 12:48:00 -0000 From: apoenitz@trolltech.com Reply-To: apoenitz@trolltech.com To: gdb-gnats@sources.redhat.com Cc: apoenitz@trolltech.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: apoenitz@trolltech.com Subject: c++/2492: gdb problem with 'malloc' in unnamed namespace Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00052.txt.bz2 >Number: 2492 >Category: c++ >Synopsis: gdb problem with 'malloc' in unnamed namespace >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Tue Aug 05 12:48:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: apoenitz@trolltech.com >Release: gdb-6.8 >Organization: >Environment: Linux >Description: [Second try, so this might be a duplicate...] Gdb loses its ability to use string literals in the CLI as soon as the inferior contains a function called 'malloc' in an anonymouse namespace. See the thread containing Message-ID: <20080805121248.GB16949@caradoc.them.org> for more details >How-To-Repeat: echo 'namespace { void malloc(int, int) {} } int main() {}' | g++ -xc++ -g - gdb -batch -ex 'b main' -ex 'r' -ex 'p "xxx"' ./a.out yields: [...] too few arguments in function call >Fix: >Release-Note: >Audit-Trail: >Unformatted: