mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-03 21:24:43 +01:00
Use stdint types everywhere
R=mark at https://breakpad.appspot.com/535002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1121 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
c02002a581
commit
aeffe1056f
117 changed files with 1385 additions and 1379 deletions
|
|
@ -166,14 +166,14 @@ class Stream: public Section {
|
|||
public:
|
||||
// Create a stream of type TYPE. You can append whatever contents
|
||||
// you like to this stream using the test_assembler::Section methods.
|
||||
Stream(const Dump &dump, u_int32_t type) : Section(dump), type_(type) { }
|
||||
Stream(const Dump &dump, uint32_t type) : Section(dump), type_(type) { }
|
||||
|
||||
// Append an MDRawDirectory referring to this stream to SECTION.
|
||||
void CiteStreamIn(test_assembler::Section *section) const;
|
||||
|
||||
private:
|
||||
// The type of this stream.
|
||||
u_int32_t type_;
|
||||
uint32_t type_;
|
||||
};
|
||||
|
||||
class SystemInfo: public Stream {
|
||||
|
|
@ -211,7 +211,7 @@ class String: public Section {
|
|||
// to memory addresses.
|
||||
class Memory: public Section {
|
||||
public:
|
||||
Memory(const Dump &dump, u_int64_t address)
|
||||
Memory(const Dump &dump, uint64_t address)
|
||||
: Section(dump), address_(address) { start() = address; }
|
||||
|
||||
// Append an MDMemoryDescriptor referring to this memory range to SECTION.
|
||||
|
|
@ -220,7 +220,7 @@ class Memory: public Section {
|
|||
private:
|
||||
// The process address from which these memory contents were taken.
|
||||
// Shouldn't this be a Label?
|
||||
u_int64_t address_;
|
||||
uint64_t address_;
|
||||
};
|
||||
|
||||
class Context: public Section {
|
||||
|
|
@ -238,13 +238,13 @@ class Thread: public Section {
|
|||
// Create a thread belonging to DUMP with the given values, citing
|
||||
// STACK and CONTEXT (which you must Add to the dump separately).
|
||||
Thread(const Dump &dump,
|
||||
u_int32_t thread_id,
|
||||
uint32_t thread_id,
|
||||
const Memory &stack,
|
||||
const Context &context,
|
||||
u_int32_t suspend_count = 0,
|
||||
u_int32_t priority_class = 0,
|
||||
u_int32_t priority = 0,
|
||||
u_int64_t teb = 0);
|
||||
uint32_t suspend_count = 0,
|
||||
uint32_t priority_class = 0,
|
||||
uint32_t priority = 0,
|
||||
uint64_t teb = 0);
|
||||
};
|
||||
|
||||
class Module: public Section {
|
||||
|
|
@ -253,11 +253,11 @@ class Module: public Section {
|
|||
// MISC_RECORD can be NULL, in which case the corresponding location
|
||||
// descriptior in the minidump will have a length of zero.
|
||||
Module(const Dump &dump,
|
||||
u_int64_t base_of_image,
|
||||
u_int32_t size_of_image,
|
||||
uint64_t base_of_image,
|
||||
uint32_t size_of_image,
|
||||
const String &name,
|
||||
u_int32_t time_date_stamp = 1262805309,
|
||||
u_int32_t checksum = 0,
|
||||
uint32_t time_date_stamp = 1262805309,
|
||||
uint32_t checksum = 0,
|
||||
const MDVSFixedFileInfo &version_info = Module::stock_version_info,
|
||||
const Section *cv_record = NULL,
|
||||
const Section *misc_record = NULL);
|
||||
|
|
@ -273,10 +273,10 @@ class Exception : public Stream {
|
|||
public:
|
||||
Exception(const Dump &dump,
|
||||
const Context &context,
|
||||
u_int32_t thread_id = 0,
|
||||
u_int32_t exception_code = 0,
|
||||
u_int32_t exception_flags = 0,
|
||||
u_int64_t exception_address = 0);
|
||||
uint32_t thread_id = 0,
|
||||
uint32_t exception_code = 0,
|
||||
uint32_t exception_flags = 0,
|
||||
uint64_t exception_address = 0);
|
||||
};
|
||||
|
||||
// A list of entries starting with a 32-bit count, like a memory list
|
||||
|
|
@ -284,7 +284,7 @@ public:
|
|||
template<typename Element>
|
||||
class List: public Stream {
|
||||
public:
|
||||
List(const Dump &dump, u_int32_t type) : Stream(dump, type), count_(0) {
|
||||
List(const Dump &dump, uint32_t type) : Stream(dump, type), count_(0) {
|
||||
D32(count_label_);
|
||||
}
|
||||
|
||||
|
|
@ -317,10 +317,10 @@ class Dump: public test_assembler::Section {
|
|||
// header uses the given values. ENDIANNESS determines the
|
||||
// endianness of the signature; we set this section's default
|
||||
// endianness by this.
|
||||
Dump(u_int64_t flags,
|
||||
Dump(uint64_t flags,
|
||||
Endianness endianness = kLittleEndian,
|
||||
u_int32_t version = MD_HEADER_VERSION,
|
||||
u_int32_t date_time_stamp = 1262805309);
|
||||
uint32_t version = MD_HEADER_VERSION,
|
||||
uint32_t date_time_stamp = 1262805309);
|
||||
|
||||
// The following functions call OBJECT->Finish(), and append the
|
||||
// contents of OBJECT to this minidump. They also record OBJECT in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue