simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] Still some gdb display issues


From: ken restivo
Subject: [Simulavr-devel] Still some gdb display issues
Date: Thu, 31 Jan 2002 16:22:55 -0800
User-agent: Mutt/1.3.25i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hmm. I noticed one more bit of strangeness:

41              calledFunc(ith, 0, idler, 0);
2: /x $PC = 0x86
1: /x $SP = 0x25f
(gdb) p ith
$1 = (struct teststruct *) 0x67
(gdb) p idler
$2 = {void ()} 0x56 <idler>
(gdb) s
calledFunc (thr=0x63, pri=0, address@hidden: 0x56 <idler>, stackSize=0)

Basically, ith is really at 0x63, but shows up wrong in the caller! Once it 
gets into the called func, it is correctly reported as 0x63. Bizarre.

Also, in my real program, the bug is still there just as much as ever: lots of 
garbage data in passed params. The fix seems not to have fixed it at all, 
actually. The test program looks fine except for the 0x67 != 0x63 anomaly.

Sorry about that. Anyway, I am right now debugging my real program with disp, 
counting bytes in the SRAM display and looking at registers. A useful exercise, 
but pretty slow going. disp kicks ass, but gdb really would be even better ;-).

- -ken

- -- 
- ------------------
One world. Many gods. Plenty for everyone.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Wd/Ze8HF+6xeOIcRAhU9AJ0SQPppmreuqUGrVsQAUx3gU/9qVACfbcXj
3fBW9h48QTQKuPQ1dCbjM3U=
=NabM
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]