From: Kim Lux <lux@diesel-research.com>
To: gdb@sources.redhat.com
Subject: How does one change the data size of write parameters in a gdb stub ?
Date: Thu, 20 Jan 2005 18:37:00 -0000 [thread overview]
Message-ID: <1106246220.7335.19.camel@localhost.localdomain> (raw)
In-Reply-To: <1106244781.5846.ezmlm@sources.redhat.com>
I'm writing a "stub" for gdb-68hc11-elf using Motorola's dbug12 as the
target. I am using the bdm12 stub as an example.
Everything is going well, except that I need to change the size of the
memory writes. The 68hc11 family how includes 68hc12 devices and
specifically the 68HC9S12DP256, which has a 256K flash module. The
example I am following only supports 64K devices due to the use of ints
as parameters in the write routine.
Specifically, the following appears in remote-dbug12.c (also in remote-
bdm12.c):
gdbdbug12_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int
len,int write, struct mem_attrib *attrib ATTRIBUTE_UNUSED,
struct target_ops *target ATTRIBUTE_UNUSED)
The problem with this is that it uses ints which restrict the memory
size to 64K, whereas we will need longs to support the 256K of the
'DP256 device.
How does one change the ints to longs ? I am unsure how this routine
interfaces to the rest of gdb. Can I just arbitrarily make a change
here or do I have to change something elsewhere ? I think the CORE_ADDR
definition is an int as well.
BTW: this might be a naive question, but why weren't these unsigned
ints ?
Thanks in advance.
--
Kim Lux, Diesel Research Inc.
parent reply other threads:[~2005-01-20 18:37 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1106244781.5846.ezmlm@sources.redhat.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1106246220.7335.19.camel@localhost.localdomain \
--to=lux@diesel-research.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox