summaryrefslogtreecommitdiffstats
path: root/covoar/TraceReaderLogQEMU.cc
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2010-05-25 19:14:48 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2010-05-25 19:14:48 +0000
commite7bb58acb2bd0be85e7f65fdfc8b9e61134c9212 (patch)
tree9c8040f2d0b21a678317bea78a80ea111005826f /covoar/TraceReaderLogQEMU.cc
parent2010-05-25 Jennifer.Averett <Jennifer.Averett@OARcorp.com> (diff)
downloadrtems-testing-e7bb58acb2bd0be85e7f65fdfc8b9e61134c9212.tar.bz2
2010-05-25 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* DesiredSymbols.cc, Explanations.cc, ObjdumpProcessor.cc, TraceReaderLogQEMU.cc, app_common.cc, app_common.h: Added a inputBuffer to app_common and modified all fgets calls to use this buffer. This will allow for a size increase if necessary.
Diffstat (limited to 'covoar/TraceReaderLogQEMU.cc')
-rw-r--r--covoar/TraceReaderLogQEMU.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/covoar/TraceReaderLogQEMU.cc b/covoar/TraceReaderLogQEMU.cc
index 0864b05..d91c16b 100644
--- a/covoar/TraceReaderLogQEMU.cc
+++ b/covoar/TraceReaderLogQEMU.cc
@@ -59,7 +59,6 @@ namespace Trace {
int status;
FILE* logFile;
int result;
- char buffer[120];
//
// Verify that the log file has a non-zero size.
@@ -105,9 +104,9 @@ namespace Trace {
//
// Read First Start Address
//
- fgets(buffer, 120, logFile );
+ fgets(inputBuffer, MAX_LINE_LENGTH, logFile );
result = sscanf(
- buffer,
+ inputBuffer,
"0x%08lx: %s %s\n",
&first.address,
first.instruction,
@@ -125,9 +124,9 @@ namespace Trace {
// Read until we get to the last instruction in the block.
do {
- fgets(buffer, 120, logFile );
+ fgets(inputBuffer, MAX_LINE_LENGTH, logFile );
result = sscanf(
- buffer,
+ inputBuffer,
"0x%08lx: %s %s\n",
&last.address,
last.instruction,
@@ -141,9 +140,9 @@ namespace Trace {
done = true;
nextExecuted = last;
} else {
- fgets(buffer, 120, logFile );
+ fgets(inputBuffer, MAX_LINE_LENGTH, logFile );
result = sscanf(
- buffer,
+ inputBuffer,
"0x%08lx: %s %s\n",
&nextExecuted.address,
nextExecuted.instruction,