Changeset View
Changeset View
Standalone View
Standalone View
src/kdbgwin/mingw_generator.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | void MingwGenerator::UnInit() | 58 | void MingwGenerator::UnInit() | ||
59 | { | 59 | { | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | void MingwGenerator::FrameChanged() | 62 | void MingwGenerator::FrameChanged() | ||
63 | { | 63 | { | ||
64 | QString modPath = GetModulePath(); | 64 | QString modPath = GetModulePath(); | ||
65 | bool existsSymbol = false; | 65 | bool existsSymbol = false; | ||
66 | TSymbolsMap::const_iterator i = m_symbolsMap.find(modPath); | 66 | TSymbolsMap::const_iterator i = m_symbolsMap.constFind(modPath); | ||
67 | if (i == m_symbolsMap.end()) | 67 | if (i == m_symbolsMap.cend()) | ||
68 | { | 68 | { | ||
69 | return; | 69 | return; | ||
70 | } | 70 | } | ||
71 | MyBFD dummy(modPath, NULL, NULL); | 71 | MyBFD dummy(modPath, NULL, NULL); | ||
72 | int pos = bfds.indexOf(dummy); | 72 | int pos = bfds.indexOf(dummy); | ||
73 | if (pos == -1) | 73 | if (pos == -1) | ||
74 | { | 74 | { | ||
75 | return; | 75 | return; | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 127 | { | |||
128 | QString symbolFile = module; | 128 | QString symbolFile = module; | ||
129 | symbolFile.truncate(symbolFile.length() - 4); | 129 | symbolFile.truncate(symbolFile.length() - 4); | ||
130 | symbolFile.append(QStringLiteral(".sym")); | 130 | symbolFile.append(QStringLiteral(".sym")); | ||
131 | 131 | | |||
132 | m_symbolsMap[module] = false; // default | 132 | m_symbolsMap[module] = false; // default | ||
133 | QString symbolType; | 133 | QString symbolType; | ||
134 | do | 134 | do | ||
135 | { | 135 | { | ||
136 | bfd* abfd = bfd_openr(symbolFile.toLatin1(), NULL); | 136 | bfd* abfd = bfd_openr(symbolFile.toLatin1().data(), NULL); | ||
137 | if (abfd == NULL) | 137 | if (abfd == NULL) | ||
138 | { | 138 | { | ||
139 | symbolType = QString::fromLatin1("no symbols loaded"); | 139 | symbolType = QString::fromLatin1("no symbols loaded"); | ||
140 | break; | 140 | break; | ||
141 | } | 141 | } | ||
142 | bfd_check_format(abfd, bfd_object); | 142 | bfd_check_format(abfd, bfd_object); | ||
143 | unsigned storage_needed = bfd_get_symtab_upper_bound(abfd); | 143 | unsigned storage_needed = bfd_get_symtab_upper_bound(abfd); | ||
144 | assert(storage_needed > 4); | 144 | assert(storage_needed > 4); | ||
Show All 24 Lines |