public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17123] New: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file
@ 2014-07-07 17:20 shprot at mail dot ua
  2014-07-08 10:50 ` [Bug gdb/17123] " shprot at mail dot ua
  2014-07-22  8:36 ` jan.kratochvil at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: shprot at mail dot ua @ 2014-07-07 17:20 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gdb/17123] x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file
  2014-07-07 17:20 [Bug gdb/17123] New: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file shprot at mail dot ua
@ 2014-07-08 10:50 ` shprot at mail dot ua
  2014-07-22  8:36 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: shprot at mail dot ua @ 2014-07-08 10:50 UTC (permalink / raw)
  To: gdb-prs

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

shprotua <shprot at mail dot ua> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shprot at mail dot ua

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gdb/17123] x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file
  2014-07-07 17:20 [Bug gdb/17123] New: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file shprot at mail dot ua
  2014-07-08 10:50 ` [Bug gdb/17123] " shprot at mail dot ua
@ 2014-07-22  8:36 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-07-22  8:36 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jan.kratochvil at redhat dot com
         Resolution|---                         |INVALID

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
eval "dump binary memory dumpfile%d.mem 0x%lx 0x%lx", $mycounter, $rsi,
$rsi+0x200

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-22  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-07 17:20 [Bug gdb/17123] New: x86_x64 gdb "dump binary memory" does not want to use script-based name for dump-file shprot at mail dot ua
2014-07-08 10:50 ` [Bug gdb/17123] " shprot at mail dot ua
2014-07-22  8:36 ` jan.kratochvil at redhat 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).