Tuesday, March 11, 2008

First GDB Script

Here I added my first GDB macro functions in the file $HOME/.gdbinit to dump the content of task array.
  1. define tasks
  2. x/210u *((unsigned int*) tobj+1)
  3. end
  4. document tasks
  5. Display content of tasks.
  6. end
The array is of 210 machine words long and it's easy to use awk to format the output neatly.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home