Subject: Re: gdb over ktrace
To: SAITOH Masanobu <masanobu@iij.ad.jp>
From: Bill Studenmund <wrstuden@zembu.com>
List: tech-kern
Date: 04/13/2000 11:55:25
On Fri, 14 Apr 2000, SAITOH Masanobu wrote:
> > works fine for me. i386, egcs-2.91.66 19990314, 1.4X, gdb 4.17
> > Maybe it isn't just any application?
>
> Really?
>
> ------------------- cut here -----------------
> #include <stdio.h>
>
> int
> f()
> {
> int *p;
>
> p = 0;
??? Aren't you supposed to malloc space, rather than just arbitrarily
start accessing it? You're stepping on whatever is in page 0...
> *p = 100;
>
> return *p;
> }
Take care,
Bill