Re: Detecting Reads of Global Uninitialized Variables



"Jack Klein" <jackklein@xxxxxxxxxxx> wrote in message
news:66apj19nquhm3goov2833p0i40viitkj78@xxxxxxxxxx
> On Fri, 30 Sep 2005 03:53:22 +0400, "Alexei A. Frounze"
> <alexfru@xxxxxxx> wrote in comp.lang.c:
> > > <jyu.james@xxxxxxxxx> wrote in message
> > > news:1128034028.587595.231600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > > > I'm trying to detect reads of uninitialized global variables (that
are
> > > > declared in one file, and used in another as an extern).
> > > > Is there a tool out there that can do this? Or is there a
particular
> > > > technique that can be used to automate this?
> > >
> > If these variables are grouped into a special section, it might be
possible
> > to trap on each and every access to the pages in which the section lies.
It
> > may not be easy to do, though, or not easy to find everything if you
have
> > many variables in there and need to stop every time... Just an idea...
>
> To quote "Alexei A. Frounze" <alexfru@xxxxxxx> in comp.lang.c:
> > This is off topic for comp.lang.c.
> > Alex
>
> I'm having trouble implementing your suggestion on a C program running
> on an 8051.
>
> And what does your answer have to do with standard C, which knows
> nothing of 'special sections' or 'pages'?

Thank you, Jack.
Alex


.



Relevant Pages

  • Re: [OT] Stargate SG-1 - "Beachhead"
    ... >>>preceeded by spoiler space. ... >> Hence calling him Jack. ... Wow, how many times this month are you going to be wrong, Alex? ... Prev by Date: ...
    (uk.media.tv.sf.startrek)
  • Re: close a form by pressing ESC
    ... you can Trap any key and process the request ... "Alex K." ... Somehow, the button spoiled the process: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Ci hanno gia` fregati tutti
    ... pippo2@xxxxxxxxxx (Jack)! ... >> Io conosco persone. ... Alex ... Prev by Date: ...
    (it.comp.macintosh)
  • Re: Wol question?
    ... "Alex" wrote in message ... "Jack." ... Unfortunately the remote computer did not start. ... each one includes in pure text the line "mc-wol Mac address" with the appropriate data. ...
    (microsoft.public.windowsxp.network_web)
  • kmail / Kontact: Mail bearbeiten
    ... Unter Lotus Notes / MS Outlook gibt es diese Moeglichkeit. ... Danke! ... Alex ... Prev by Date: ...
    (de.comp.os.unix.apps.kde)