[patch] Initialize 'gprof' in BoardCfg ()
Dave Brolley <[email protected]>
| Newsgroups | gmane.comp.emulators.sid.devel |
|---|---|
| Organization | Red Hat Canada, Ltd |
| Message-ID | <[email protected]> |
I've committed the attached patch which initializes the 'gprof' member of BoardCfg. This fixes a Segmentation Fault in code which assumes it has been initialized if not NULL. Dave
sid-main.patch.txt
(text/plain, 534 B)
Index: commonCfg.cxx
===================================================================
RCS file: /cvs/src/src/sid/main/dynamic/commonCfg.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -c -p -r1.5 -r1.6
*** commonCfg.cxx 21 Oct 2003 21:39:04 -0000 1.5
--- commonCfg.cxx 27 Oct 2003 18:55:34 -0000 1.6
*************** BoardCfg::BoardCfg (const string name,
*** 869,874 ****
--- 869,875 ----
cpu (NULL),
gdb (NULL),
gloss (NULL),
+ gprof (NULL),
main_mapper (NULL),
icache (NULL),
dcache (NULL),