Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: src/common/dwarf/dwarf2diehandler.cc

Issue 1605153004: unittests: fix -Wnarrowing build errors (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: convert to uint8_t Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 Google Inc. All Rights Reserved. 1 // Copyright (c) 2010 Google Inc. All Rights Reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 10 // copyright notice, this list of conditions and the following disclaimer
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 uint64 data) { 160 uint64 data) {
161 HandlerStack &current = die_handlers_.top(); 161 HandlerStack &current = die_handlers_.top();
162 // This had better be an attribute of the DIE we were meant to handle. 162 // This had better be an attribute of the DIE we were meant to handle.
163 assert(offset == current.offset_); 163 assert(offset == current.offset_);
164 current.handler_->ProcessAttributeReference(attr, form, data); 164 current.handler_->ProcessAttributeReference(attr, form, data);
165 } 165 }
166 166
167 void DIEDispatcher::ProcessAttributeBuffer(uint64 offset, 167 void DIEDispatcher::ProcessAttributeBuffer(uint64 offset,
168 enum DwarfAttribute attr, 168 enum DwarfAttribute attr,
169 enum DwarfForm form, 169 enum DwarfForm form,
170 const char* data, 170 const uint8_t *data,
171 uint64 len) { 171 uint64 len) {
172 HandlerStack &current = die_handlers_.top(); 172 HandlerStack &current = die_handlers_.top();
173 // This had better be an attribute of the DIE we were meant to handle. 173 // This had better be an attribute of the DIE we were meant to handle.
174 assert(offset == current.offset_); 174 assert(offset == current.offset_);
175 current.handler_->ProcessAttributeBuffer(attr, form, data, len); 175 current.handler_->ProcessAttributeBuffer(attr, form, data, len);
176 } 176 }
177 177
178 void DIEDispatcher::ProcessAttributeString(uint64 offset, 178 void DIEDispatcher::ProcessAttributeString(uint64 offset,
179 enum DwarfAttribute attr, 179 enum DwarfAttribute attr,
180 enum DwarfForm form, 180 enum DwarfForm form,
181 const string& data) { 181 const string& data) {
182 HandlerStack &current = die_handlers_.top(); 182 HandlerStack &current = die_handlers_.top();
183 // This had better be an attribute of the DIE we were meant to handle. 183 // This had better be an attribute of the DIE we were meant to handle.
184 assert(offset == current.offset_); 184 assert(offset == current.offset_);
185 current.handler_->ProcessAttributeString(attr, form, data); 185 current.handler_->ProcessAttributeString(attr, form, data);
186 } 186 }
187 187
188 void DIEDispatcher::ProcessAttributeSignature(uint64 offset, 188 void DIEDispatcher::ProcessAttributeSignature(uint64 offset,
189 enum DwarfAttribute attr, 189 enum DwarfAttribute attr,
190 enum DwarfForm form, 190 enum DwarfForm form,
191 uint64 signature) { 191 uint64 signature) {
192 HandlerStack &current = die_handlers_.top(); 192 HandlerStack &current = die_handlers_.top();
193 // This had better be an attribute of the DIE we were meant to handle. 193 // This had better be an attribute of the DIE we were meant to handle.
194 assert(offset == current.offset_); 194 assert(offset == current.offset_);
195 current.handler_->ProcessAttributeSignature(attr, form, signature); 195 current.handler_->ProcessAttributeSignature(attr, form, signature);
196 } 196 }
197 197
198 } // namespace dwarf2reader 198 } // namespace dwarf2reader
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698