| OLD | NEW |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 } // namespace | 29 } // namespace |
| 30 | 30 |
| 31 int wmain(int argc, wchar_t* argv[]) { | 31 int wmain(int argc, wchar_t* argv[]) { |
| 32 CHECK_EQ(argc, 2); | 32 CHECK_EQ(argc, 2); |
| 33 | 33 |
| 34 crashpad::CrashpadClient client; | 34 crashpad::CrashpadClient client; |
| 35 CHECK(client.SetHandlerIPCPipe(argv[1])); | 35 CHECK(client.SetHandlerIPCPipe(argv[1])); |
| 36 | 36 |
| 37 HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); | 37 HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); |
| 38 PCHECK(out != INVALID_HANDLE_VALUE) << "GetStdHandle"; | 38 // GetStdHandle |
| 39 CHECK(out != INVALID_HANDLE_VALUE); |
| 39 crashpad::WinVMAddress break_address = CurrentAddress(); | 40 crashpad::WinVMAddress break_address = CurrentAddress(); |
| 40 crashpad::CheckedWriteFile(out, &break_address, sizeof(break_address)); | 41 crashpad::CheckedWriteFile(out, &break_address, sizeof(break_address)); |
| 41 | 42 |
| 42 __debugbreak(); | 43 __debugbreak(); |
| 43 | 44 |
| 44 return 0; | 45 return 0; |
| 45 } | 46 } |
| OLD | NEW |