| commit | d4afec775c14a49cba09ea0b67a41f90e88981e3 | [log] [tgz] |
|---|---|---|
| author | Jesse McKenna <jessemckenna@google.com> | Tue Nov 25 22:56:14 2025 |
| committer | Jesse McKenna <jessemckenna@google.com> | Wed Dec 10 21:29:01 2025 |
| tree | b43c8f38956171b8b4c6532bab6288226a432fff | |
| parent | 470771e32d0167c2654ecb9113dc56a3510b695f [diff] |
Update dump_syms to use C++20
This change updates the dump_syms Visual Studio project to support
C++20 [1]. This is needed for an upcoming CL that adds a use of
std::optional (part of C++17).
Breakpad requires C++20 as of earlier this year [2], so this CL makes
dump_syms' VS project match.
This change also removes option `/Gm` (minimal rebuild), which is
deprecated and causes the following warning (which becomes an error
under C++20):
"D9035: option 'Gm' has been deprecated and will be removed in a
future release"
[1] In Visual Studio settings, this corresponds to changing
"Properties > C/C++ > Language > C++ Language Standard"
from "Default (ISO C++14 Standard)"
to "ISO C++20 Standard (/std:c++20)"
[2] [6347230: increase C++ standard to 20](https://chromium-review.googlesource.com/c/breakpad/breakpad/+/6347230)
Change-Id: Ie19bc85d8148bd5004a60a9957be9d9cdb0b3ce6
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/7205053
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Breakpad is a set of client and server components which implement a crash-reporting system.
First, download depot_tools and ensure that they’re in your PATH.
Create a new directory for checking out the source code (it must be named breakpad).
mkdir breakpad && cd breakpad
Run the fetch tool from depot_tools to download all the source repos.
fetch breakpad
cd src
Build the source.
./configure && make
You can also cd to another directory and run configure from there to build outside the source tree.
This will build the processor tools (src/processor/minidump_stackwalk, src/processor/minidump_dump, etc), and when building on Linux it will also build the client libraries and some tools (src/tools/linux/dump_syms/dump_syms, src/tools/linux/md2core/minidump-2-core, etc).
Optionally, run tests.
make check
Optionally, install the built libraries
make install
If you need to reconfigure your build be sure to run make distclean first.
To update an existing checkout to a newer revision, you can git pull as usual, but then you should run gclient sync to ensure that the dependent repos are up-to-date.
Follow the steps above to get the source and build it.
Make changes. Build and test your changes. For core code like processor use methods above. For linux/mac/windows, there are test targets in each project file.
Commit your changes to your local repo and upload them to the server. http://dev.chromium.org/developers/contributing-code e.g. git commit ... && git cl upload ... You will be prompted for credential and a description.
At https://chromium-review.googlesource.com/ you'll find your issue listed; click on it, then “Add reviewer”, and enter in the code reviewer. Depending on your settings, you may not see an email, but the reviewer has been notified with google-breakpad-dev@googlegroups.com always CC’d.