From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9340 invoked by alias); 7 Jul 2014 17:20:16 -0000 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 Received: (qmail 9307 invoked by uid 48); 7 Jul 2014 17:20:15 -0000 From: "shprot at mail dot ua" To: gdb-prs@sourceware.org Subject: [Bug gdb/17123] New: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file Date: Mon, 07 Jul 2014 17:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: shprot at mail dot ua 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: 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: 2014-q3/txt/msg00011.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17123 Bug ID: 17123 Summary: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file Product: gdb Version: HEAD Status: NEW Severity: critical Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: shprot at mail dot ua I am write script for gdb for dumping needed regions of memory, and initialize the string variable for file name. Example script, that I launch when breaking on some breakpoint with "source" command: #[SCRIPT BEGIN] set $mycounter=1 set $rigeonfilename=(void*)malloc(256) call memset($rigeonfilename,0,256) call sprintf($rigeonfilename, "dumpfile%d.mem", $mycounter) printf "%s\n", $rigeonfilename dump binary memory $rigeonfilename $rsi $rsi+0x200 #[SCRIPT END] all executes fine, printf show's normal string that must be there "dumpfile1.mem", but line dump binary memory creates file on hard drive with name "$rigeonfilename", but it must be an "dumpfile1.mem", same as that variable. In gdb version for x86 was all fine! but x86_x64 it is fails. Target OS: SUSE 12.2 x86_x64(sure that it will same on all versions, include last), and gdb I was trying all versions include last. All have same bug. -- You are receiving this mail because: You are on the CC list for the bug.