|
From: | Devaughn, Hans |
Subject: | Gdb bug? |
Date: | Mon, 29 Sep 2003 13:34:25 -0700 |
I am running the GNU toolset. My target procesor is MIPS. I am invoking the simulator from gdb. The problem is that the image that is read in only creates memory regions for the text and data section. I am using VxWorks and VxWorks uses the space between the end of data and an address I have specified for the heap. If I try to run and VxWorks references that memory I get a fault.
My question/problem is that I am trying to use the following command to create the meory region for this space
Sim memory-region $start,$area
The command is not accepted by sim. Howerver, if I print out $start and $area the command is accepted and works correctly.
The following is the output
(gdb) p $start
$3 = 0x8038395d
(gdb) p $area
$4 = 0x1c7c6a3
(gdb) sim memory-region $start,$area
Missing size for memory-region
End of output
The variable $start is the first location after the end of data. I have created this variable as follows
Set variable $start=_end
The variable $area=0x80400000-$start
Could someone shed light on my problem or is there a limitation on passing variable data from gdb to sim?
Thanks for your help in advance.
Hans DeVaughn
[Prev in Thread] | Current Thread | [Next in Thread] |