This is an extraction from Alain
mail:
"Althought -data-write-memory is not documented in
the texinfo manual it is implemented and well documented in the
code(gdb-5.2.1/gdb/mi/mi-main.c). "mi_cmd_data_write_memory: Usage: [-o
COLUMN_OFFSET] ADDR FORMAT WORD-SIZE VALUE.");"
The 'MIDataWriteMemory' class implements this
command in CDT.
The GUI support for this has not implemented yet
but will be there in the next couple of days.
Mikhail
----- Original Message -----
Sent: Wednesday, October 30, 2002 9:58
AM
Subject: Re: [cdt-debug-dev] About
working with memory in debugger
Thanks, Thomas!
I just wanted to ask what command
of GDB/MI or CLI would use CDT Debugger in order to change memory in specified
address. Be exactly - what command CDT Debugger will send to gdb when I
would want to change memory?
Thanks again,
Igor S.
Zamyatin
Interstron Ltd.
| Thomas Fletcher <thomasf@xxxxxxx>
Sent by:
cdt-debug-dev-admin@xxxxxxxxxxx
30.10.2002 16:17 Please respond to cdt-debug-dev
| To:
cdt-debug-dev@xxxxxxxxxxx cc:
Subject: Re: [cdt-debug-dev] About
working with memory in debugger |
On Wed, 30 Oct 2002, Igor S Zamjatin
wrote:
> I'm really sorry but I can't find any mentions about that
"undocumented > commands". > > Could you please post here
some information about that commands or about > where can I find
it
Igor,
Not exactly sure what you mean you can't find any
mention of undocumented commands, but what I was saying about gdb
last time I just verified. You can set any memory address
by:
(gdb) c Continuing. Breakpoint 1, main (argc=1,
argv=0x8047af4) at /home/thomasf/cvs/utils/f/fdisk/fdisk.c:213 warning:
Source file is more recent than executable. 213
disk = NULL; (gdb) p argc $1 = 1 (gdb) p
&argc $2 = (int *) 0x8047adc (gdb) set *(int *)0x8047adc =
12 (gdb) p argc $3 = 12 (gdb)
so all you need to do is
construct the right address to pass to the memory "set" MI
command.
As far as the work in the IDE with respect to the memory
view, you just need to look at the checkins that Mikhail Khodjaiants has
been making. Specificially the Java code is
at:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/?cvsroot=Tools_Project
Does
this help in any way?
Thanks,
Thomas ------------------------------------------------------------- Thomas
(toe-mah) Fletcher QNX Software
Systems thomasf@xxxxxxx
OS Technology Developer (613)-591-0931
http://www.qnx.com/
_______________________________________________ cdt-debug-dev
mailing
list cdt-debug-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
|