CS452 - Real-Time Programming - Fall 2010

Lecture 11 - Debugging

Pubilic Service Announcements

  1. Send/Receive/Reply

Why is debugging hard?

Terminal

What's good

What's bad

RedBoot

What's good

What's bad

Busy-wait IO

Good for early-stage debugging

Bad when the real-world comes into the computation

Stack Trace

In single-threaded programs this is often the most useful tool.

What is the equivalent of a stack trace in a multi-tasking environment?

Breakpoint

What does it do?

How do you get it started?

Breakpoint is a special case of a particular sort of tool that is very common.

Getting information closer to real-time.

Gossip

Circular buffer somewhere

How do you read it?

  1. Write it in English
  2. Write it in code

What are the advantages and disadvantages of each?

Use Bits

Fast Interrupts


Return to: