Re: debugging
- From: "Bill Pursell" <bill.pursell@xxxxxxxxx>
- Date: 30 Oct 2006 12:04:46 -0800
Sheldon wrote:
I would like to view the contents of structure as part of a debugging<snip>
routine.
To summerize: I am wondering if there is a way to view a structure like
in python: print list and to comfirm my suspicion about the memcpy to
the pointer.
Write a function to print the structure. eg:
void pretty_print (struct foo *f)
{
printf("a=%d\t b=%d\nc=%d\tc=%d\n", f->a, f->b, f->c, f->c);
}
Now, in your debugger, make a call to the function.
--
Bill Pursell
.
- Follow-Ups:
- Re: debugging
- From: Sheldon
- Re: debugging
- References:
- debugging
- From: Sheldon
- debugging
- Prev by Date: debugging
- Next by Date: Re: Include path question
- Previous by thread: debugging
- Next by thread: Re: debugging
- Index(es):