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

Side by Side Diff: breakpad/linux/minidump_writer.cc

Issue 147224: Add missing include, fix compile on Fedora 11. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009, Google Inc. 1 // Copyright (c) 2009, 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 28 matching lines...) Expand all
39 // * You may not call syscalls via the libc wrappers. This rule is a subset 39 // * You may not call syscalls via the libc wrappers. This rule is a subset
40 // of the first rule but it bears repeating. We have direct wrappers 40 // of the first rule but it bears repeating. We have direct wrappers
41 // around the system calls in linux_syscall_support.h. 41 // around the system calls in linux_syscall_support.h.
42 // * You may not malloc. There's an alternative allocator in memory.h and 42 // * You may not malloc. There's an alternative allocator in memory.h and
43 // a canonical instance in the LinuxDumper object. We use the placement 43 // a canonical instance in the LinuxDumper object. We use the placement
44 // new form to allocate objects and we don't delete them. 44 // new form to allocate objects and we don't delete them.
45 45
46 #include "breakpad/linux/minidump_writer.h" 46 #include "breakpad/linux/minidump_writer.h"
47 #include "client/minidump_file_writer-inl.h" 47 #include "client/minidump_file_writer-inl.h"
48 48
49 #include <errno.h>
50 #include <fcntl.h>
51 #include <stdio.h>
49 #include <unistd.h> 52 #include <unistd.h>
50 #include <fcntl.h>
51 #include <errno.h>
52 #include <sys/ucontext.h> 53 #include <sys/ucontext.h>
53 #include <sys/user.h> 54 #include <sys/user.h>
54 #include <sys/utsname.h> 55 #include <sys/utsname.h>
55 56
56 #include "client/minidump_file_writer.h" 57 #include "client/minidump_file_writer.h"
57 #include "google_breakpad/common/minidump_format.h" 58 #include "google_breakpad/common/minidump_format.h"
58 #include "google_breakpad/common/minidump_cpu_amd64.h" 59 #include "google_breakpad/common/minidump_cpu_amd64.h"
59 #include "google_breakpad/common/minidump_cpu_x86.h" 60 #include "google_breakpad/common/minidump_cpu_x86.h"
60 61
61 #include "breakpad/linux/exception_handler.h" 62 #include "breakpad/linux/exception_handler.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 return false; 846 return false;
846 const ExceptionHandler::CrashContext* context = 847 const ExceptionHandler::CrashContext* context =
847 reinterpret_cast<const ExceptionHandler::CrashContext*>(blob); 848 reinterpret_cast<const ExceptionHandler::CrashContext*>(blob);
848 MinidumpWriter writer(filename, crashing_process, context); 849 MinidumpWriter writer(filename, crashing_process, context);
849 if (!writer.Init()) 850 if (!writer.Init())
850 return false; 851 return false;
851 return writer.Dump(); 852 return writer.Dump();
852 } 853 }
853 854
854 } // namespace google_breakpad 855 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698