Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: gdb-h8-stub
@ 2002-07-22  2:29 Andrew Volkov
  0 siblings, 0 replies; 10+ messages in thread
From: Andrew Volkov @ 2002-07-22  2:29 UTC (permalink / raw)
  To: Alexei Minayev, Daniel Jacobowitz; +Cc: gdb

Hi Alexei,

Which target is set, when you are run gdb session?
(Be careful: auto=h8300)

Andrey


>-----Original Message-----
>From: Alexei Minayev [mailto:aminayev@yahoo.com]
>Sent: Saturday, July 20, 2002 8:25 PM
>To: Daniel Jacobowitz
>Cc: gdb@sources.redhat.com
>Subject: Re: gdb-h8-stub
>
>
>Hi Daniel,
>
>--- Daniel Jacobowitz <drow@mvista.com> wrote:
>> You have TARGET_ADDR_BIT set too small for your port.  You 
>are probably
>> confusing TARGET_PTR_BIT (the number of bits in a pointer, which can
>> have some separate space marker not included in this count) and
>> TARGET_ADDR_BIT (the number of bits to correctly identify an address
>> when dealing with the OS or stub).
>
>THERE, GOT IT!
>My TARGET_ADDR_BIT is defined as TARGET_INT_BIT, which is 16 
>bit, and my
>target uses 32 bit address space.
>Fixed that problem... that was the help I needed, since I 
>really didn't even
>know where to dig.
>
>THANKS A LOT!
>
>Regards -- Alexei
>> 
>> -- 
>> Daniel Jacobowitz                           Carnegie Mellon 
>University
>> MontaVista Software                         Debian GNU/Linux 
>Developer
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>


^ permalink raw reply	[flat|nested] 10+ messages in thread
* gdb-h8-stub
@ 2002-07-17 23:27 Alexei Minayev
  2002-07-18  7:26 ` gdb-h8-stub Peter Barada
  0 siblings, 1 reply; 10+ messages in thread
From: Alexei Minayev @ 2002-07-17 23:27 UTC (permalink / raw)
  To: gdb

Dear GDb knights,

I'm confused. My gdb stub does not support binary downloads, but the gdb acts
like it does.
It starts downloading the program as usual:
(gdb) set remotedebug 1
(gdb) load
Loading section .text, size 0x160 lma 0x200000
Sending packet: $X200000,0:#10...Ack
Packet received:
binary downloading NOT suppported by target

note here, the program starts at 0x200000, the gdb sends an 'X' packet with
that address, but receives nothing back. It concludes there, that since the
responce to 'X' is empty, binary download is not supported by target.


But then, it sends a bunch of 'M' commands, which have addresses relative to
the 0x200000 one. But the 0x200000 was sent to target with 'X', and the 'X'
failed...

Sending packet:
$M0,28:01006df60ff67a370000001401006fe0fffc01006fe1fff81aa201006fe2fff41aa28a0201006fe2#74...Ack
Packet received: OK
Sending packet:
$M28,28:fff01aa28a0501006fe2ffec01006f62fff401006f63fff00ab201006fe2ffec1a8088015e2000e4#54...Ack

The question is, am I supposed to support the 'X' command anyway, and
maintain a global "base" memory pointer, which would be set by the 'X'
command? Just curious...


Thanks
Regards -- Alexei

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


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

end of thread, other threads:[~2002-07-22  9:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-22  2:29 gdb-h8-stub Andrew Volkov
  -- strict thread matches above, loose matches on Subject: below --
2002-07-17 23:27 gdb-h8-stub Alexei Minayev
2002-07-18  7:26 ` gdb-h8-stub Peter Barada
2002-07-18  7:37   ` gdb-h8-stub Daniel Jacobowitz
2002-07-18 11:25     ` gdb-h8-stub Alexei Minayev
2002-07-18 13:05       ` gdb-h8-stub Daniel Jacobowitz
2002-07-18 23:00         ` gdb-h8-stub Alexei Minayev
2002-07-19  5:34           ` gdb-h8-stub Daniel Jacobowitz
2002-07-20 11:39             ` gdb-h8-stub Alexei Minayev
2002-07-19  7:23           ` gdb-h8-stub Peter Barada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox