Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb && Eclipse && Harvard cpu
@ 2007-12-25  9:00 Usachev M.
  2007-12-28 18:42 ` Weddington, Eric
  0 siblings, 1 reply; 3+ messages in thread
From: Usachev M. @ 2007-12-25  9:00 UTC (permalink / raw)
  To: gdb


I use avr-gdb 6.5 && simulavr (latest WinAVR package). When C-program
contains static variables, gdb works fine (requests locals and variables led
to generation packets like $m800060).
But if I use stack local variables, command "x my_var" led to the packet
like $m60 (not $m800060). 
And "x *&my_var" works fine - "$m800060").
why?

I use Eclipse (not command line) where disassemble and inspecting locals and
variables are automatic, so it is important for me to correct this problem.
-- 
View this message in context: http://www.nabble.com/gdb----Eclipse----Harvard-cpu-tp14493910p14493910.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


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

* RE: gdb && Eclipse && Harvard cpu
  2007-12-25  9:00 gdb && Eclipse && Harvard cpu Usachev M.
@ 2007-12-28 18:42 ` Weddington, Eric
  2007-12-29  7:06   ` Usachev M.
  0 siblings, 1 reply; 3+ messages in thread
From: Weddington, Eric @ 2007-12-28 18:42 UTC (permalink / raw)
  To: Usachev M., gdb

 

> -----Original Message-----
> From: Usachev M. [mailto:um.lan@mit.ru] 
> Sent: Tuesday, December 25, 2007 2:00 AM
> To: gdb@sourceware.org
> Subject: gdb && Eclipse && Harvard cpu
> 
> 
> I use avr-gdb 6.5 && simulavr (latest WinAVR package). When C-program
> contains static variables, gdb works fine (requests locals 
> and variables led
> to generation packets like $m800060).
> But if I use stack local variables, command "x my_var" led to 
> the packet
> like $m60 (not $m800060). 
> And "x *&my_var" works fine - "$m800060").
> why?
> 
> I use Eclipse (not command line) where disassemble and 
> inspecting locals and
> variables are automatic, so it is important for me to correct 
> this problem.

In talking to Joerg Wunsch (co-maintainer of the AVR toolchain, and who
at least uses GDB), he said:
"Sounds like a genuine bug to me.  Personally, I never used the "x"
command to print the contents of local variables, but rather the
"p[rint]" command instead."

I know that this may not be much help to you at the moment.

Please fill in a GDB bug report for this for the AVR target, and send me
the bug # so I can track it.

Thanks,
Eric Weddington
Product Manager
Atmel


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

* RE: gdb && Eclipse && Harvard cpu
  2007-12-28 18:42 ` Weddington, Eric
@ 2007-12-29  7:06   ` Usachev M.
  0 siblings, 0 replies; 3+ messages in thread
From: Usachev M. @ 2007-12-29  7:06 UTC (permalink / raw)
  To: gdb


This problem exists for version 6.5 avr-gdb and avr-insight, included into 
may2007 package of winavr. Yesterday I have tried december2007 release of 
winavr, in which gdb 6.6 is included - it works fine.

It seems the problem is solved.
-- 
View this message in context: http://www.nabble.com/gdb----Eclipse----Harvard-cpu-tp14493910p14535504.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


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

end of thread, other threads:[~2007-12-29  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-25  9:00 gdb && Eclipse && Harvard cpu Usachev M.
2007-12-28 18:42 ` Weddington, Eric
2007-12-29  7:06   ` Usachev M.

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