OpenCores
no use no use 1/1 no use no use
How to dump memory from GDB
by dinsh on Nov 22, 2011
dinsh
Posts: 39
Joined: Nov 20, 2008
Last seen: Aug 2, 2014
Hi,
I have successfully run the OPRSOC platform with the help of Opencore Organization.

My question is how to dump the memory from GDB.
I use the command :
% dump binary memory mydump.bin 0x100 0x1000

But the result is :
% Cannot access memory at address 0x100

Why?? Actually i can run the program from 0x100. Pls help me. Thx a lot!
RE: How to dump memory from GDB
by jeremybennett on Nov 23, 2011
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi dinsh

Could you post the full trace of your gdb session, and the program you were debugging at the time.

Thanks

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: How to dump memory from GDB
by drmicrotiger on Sep 21, 2012
drmicrotiger
Posts: 1
Joined: Feb 4, 2009
Last seen: Jun 19, 2013
hi,I also have the problem. why can not access memory?
RE: How to dump memory from GDB
by jeremybennett on Sep 21, 2012
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019
hi,I also have the problem. why can not access memory?

Hi drmicrotiger

Please post a trace of your session. For example if you are debugging a program called "myprog", run GDB as follows to capture a trace in /tmp/log, and then attach /tmp/log to a message here.

    or32-elf-gdb myprog 2>1 | tee /tmp/log
    

I'll take a look and see if I can understand why you have a problem.

Best wishes,

Jeremy

RE: How to dump memory from GDB
by julius on Sep 21, 2012
julius
Posts: 363
Joined: Jul 1, 2008
Last seen: May 17, 2021
Can you even examine (read) memory with the following?

gdb> x 0x100

RE: How to dump memory from GDB
by marcus.erlandsson on Sep 21, 2012
marcus.erlandsson
Posts: 38
Joined: Nov 22, 2007
Last seen: Mar 7, 2013
Hi,
This problem/bug is only occurring when using the "or_debug_proxy". Using OpenOCD works fine, but installing OpenOCD on Ubuntu 12.04 was not accordingly to the installation guide (needed modifications).

/Marcus
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.