stepping through atomic_dec_return

Michael Richardson mcr at sandelman.ottawa.on.ca
Sat Oct 8 03:46:42 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Michael" == Michael Richardson <mcr at sandelman.ottawa.on.ca> writes:
    Michael> I can see how setting through this code with the debugger
    Michael> could cause a problem, since there would be debug
    Michael> exceptions, and there would be other code in the debug
    Michael> stubs that could set the RESERVED=0.  It's hard to know,
    Michael> but it seems unlikely to me.

  Actually, I'm wrong. 
  I was trying to single step through the code, since much of the code
is inline, and doing "n" in the debugger won't set a break point after
that statement, it may well single step through.
  Setting a break point after the down() worked.

- -- 
]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson,    Xelerance Corporation, Ottawa, ON    |net architect[
] mcr at xelerance.com      http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBQ0a0f4qHRg3pndX9AQHs7AP+NVMj0Wy3aT9j1XW6t2hZqgjzVZZpAFuV
8b6hPtMVh/SYv6KbdWD4EmxQ7WMqB1rmx6oknxo6l7zTKHFwqmeW3Nod7X/xhNjy
SW4H8U/y7RjuI68i0rf1jkpUff6+3prKRvnVQ6dml7xH6IygBqDHjVP2hZlut++3
l30N1y5x1mU=
=d/sP
-----END PGP SIGNATURE-----



More information about the Linuxppc-embedded mailing list