symtab.cc (6214:1ec0ec8933ae) symtab.cc (6227:a17798f2a52c)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 66 unchanged lines hidden (view full) ---

75 if (!file)
76 fatal("file error: Can't open symbol table file %s\n", filename);
77
78 while (!file.eof()) {
79 getline(file, buffer);
80 if (buffer.empty())
81 continue;
82
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 66 unchanged lines hidden (view full) ---

75 if (!file)
76 fatal("file error: Can't open symbol table file %s\n", filename);
77
78 while (!file.eof()) {
79 getline(file, buffer);
80 if (buffer.empty())
81 continue;
82
83 int idx = buffer.find(',');
83 string::size_type idx = buffer.find(',');
84 if (idx == string::npos)
85 return false;
86
87 string address = buffer.substr(0, idx);
88 eat_white(address);
89 if (address.empty())
90 return false;
91

--- 48 unchanged lines hidden ---
84 if (idx == string::npos)
85 return false;
86
87 string address = buffer.substr(0, idx);
88 eat_white(address);
89 if (address.empty())
90 return false;
91

--- 48 unchanged lines hidden ---