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

Side by Side Diff: base/third_party/symbolize/symbolize.h

Issue 16770006: Implement basic stack traces on Android and reenable unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor symbolize Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 #endif 121 #endif
122 122
123 _START_GOOGLE_NAMESPACE_ 123 _START_GOOGLE_NAMESPACE_
124 124
125 // Symbolizes a program counter. On success, returns true and write the 125 // Symbolizes a program counter. On success, returns true and write the
126 // symbol name to "out". The symbol name is demangled if possible 126 // symbol name to "out". The symbol name is demangled if possible
127 // (supports symbols generated by GCC 3.x or newer). Otherwise, 127 // (supports symbols generated by GCC 3.x or newer). Otherwise,
128 // returns false. 128 // returns false.
129 bool Symbolize(void *pc, char *out, int out_size); 129 bool Symbolize(void *pc, char *out, int out_size);
130 130
131 // Search for the object file (from /proc/self/maps) that contains
132 // the specified pc. If found, copy the path name to "out" and parsed starting
satorux1 2013/06/13 01:58:10 fpath name -> file name, to be consistent with the
scherkus (not reviewing) 2013/06/13 02:20:46 Done.
133 // address of where the object file is mapped to in memory and return true.
134 // Otherwise, return false.
135 //
136 // NOTE: "start_address" is the value directly from /proc/self/maps and may not
137 // be correct for prelinked shared libraries.
138 bool FindObjectFileNameContainingPcAndGetStartAddress(
139 void *pc, char *out, int out_size, uint64_t *start_address);
140
131 _END_GOOGLE_NAMESPACE_ 141 _END_GOOGLE_NAMESPACE_
132 142
133 #endif // BASE_SYMBOLIZE_H_ 143 #endif // BASE_SYMBOLIZE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698