0001-breakpad-temporarily-disable-it.patch 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563
  1. From 5a5ea15181d5e18528a2c4486454c9dcf244c87e Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Tue, 5 Apr 2022 02:25:00 +0000
  4. Subject: [PATCH] breakpad: temporarily disable it
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. BUILD.gn | 38 +-
  8. chrome/BUILD.gn | 5 -
  9. chrome/test/BUILD.gn | 4 -
  10. components/crash/content/browser/BUILD.gn | 9 -
  11. components/crash/core/app/BUILD.gn | 14 -
  12. components/crash/core/common/BUILD.gn | 11 -
  13. components/nacl/broker/BUILD.gn | 1 -
  14. content/shell/BUILD.gn | 11 -
  15. remoting/base/BUILD.gn | 1 -
  16. remoting/host/setup/BUILD.gn | 1 -
  17. third_party/breakpad/BUILD.gn | 1146 --------------------
  18. tools/perf/chrome_telemetry_build/BUILD.gn | 17 -
  19. 12 files changed, 1 insertion(+), 1257 deletions(-)
  20. delete mode 100644 third_party/breakpad/BUILD.gn
  21. diff --git a/BUILD.gn b/BUILD.gn
  22. index d480858dff71a..e31a9006e2eff 100644
  23. --- a/BUILD.gn
  24. +++ b/BUILD.gn
  25. @@ -449,10 +449,6 @@ group("gn_all") {
  26. if (is_linux || is_chromeos || is_android) {
  27. deps += [
  28. - "//third_party/breakpad:breakpad_unittests",
  29. - "//third_party/breakpad:core-2-minidump",
  30. - "//third_party/breakpad:generate_test_dump",
  31. - "//third_party/breakpad:minidump-2-core",
  32. "//tools/dump_process_memory:dump_process",
  33. "//tools/memory/partition_allocator:all",
  34. ]
  35. @@ -618,10 +614,6 @@ group("gn_all") {
  36. "//mojo:mojo_perftests",
  37. "//services/service_manager/public/cpp",
  38. "//testing/gmock:gmock_main",
  39. - "//third_party/breakpad:dump_syms($host_toolchain)",
  40. - "//third_party/breakpad:microdump_stackwalk($host_toolchain)",
  41. - "//third_party/breakpad:minidump_dump($host_toolchain)",
  42. - "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
  43. ]
  44. if (!is_android) {
  45. @@ -647,9 +639,6 @@ group("gn_all") {
  46. if (is_mac) {
  47. deps += [
  48. - "//third_party/breakpad:crash_inspector",
  49. - "//third_party/breakpad:dump_syms",
  50. -
  51. # The following are accessibility API tools.
  52. "//tools/accessibility/inspect:ax_dump_events",
  53. "//tools/accessibility/inspect:ax_dump_tree",
  54. @@ -693,8 +682,6 @@ group("gn_all") {
  55. host_os == "win") {
  56. deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
  57. }
  58. - } else if (!is_android && !is_ios && !is_fuchsia) {
  59. - deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
  60. }
  61. if (is_chromecast) {
  62. @@ -966,7 +953,6 @@ if (is_win) {
  63. "//net:net_unittests",
  64. "//printing:printing_unittests",
  65. "//sql:sql_unittests",
  66. - "//third_party/breakpad:symupload($host_toolchain)",
  67. "//ui/base:ui_base_unittests",
  68. "//ui/gfx:gfx_unittests",
  69. "//ui/touch_selection:ui_touch_selection_unittests",
  70. @@ -993,7 +979,6 @@ if (is_chromeos_ash) {
  71. "//ppapi/examples/video_decode",
  72. "//sandbox/linux:chrome_sandbox",
  73. "//sandbox/linux:sandbox_linux_unittests",
  74. - "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
  75. "//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
  76. "//third_party/dawn/src/dawn/tests:dawn_unittests",
  77. @@ -1138,31 +1123,12 @@ if (!is_ios) {
  78. if (is_android) {
  79. data_deps += [
  80. - "//third_party/breakpad:breakpad_unittests",
  81. - "//third_party/breakpad:dump_syms",
  82. - "//third_party/breakpad:microdump_stackwalk",
  83. - "//third_party/breakpad:minidump_dump",
  84. - "//third_party/breakpad:minidump_stackwalk",
  85. - "//third_party/breakpad:symupload",
  86. "//tools/android/forwarder2",
  87. ]
  88. } else {
  89. data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
  90. }
  91. - if (!is_win && !is_android) {
  92. - data_deps +=
  93. - [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
  94. - }
  95. -
  96. - if (is_mac) {
  97. - data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
  98. - }
  99. -
  100. - if (is_linux || is_chromeos) {
  101. - data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
  102. - }
  103. -
  104. if (is_fuchsia) {
  105. data_deps += [
  106. "//build/config/fuchsia:deployment_resources",
  107. @@ -1548,10 +1514,8 @@ group("chromium_builder_perf") {
  108. if (is_win) {
  109. data_deps += [ "//chrome/installer/mini_installer:mini_installer" ]
  110. - } else {
  111. - data_deps +=
  112. - [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
  113. }
  114. +
  115. if (is_win || is_android) {
  116. data_deps += [
  117. "//components:components_perftests",
  118. diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
  119. index 6b8f8778d1700..d750cbd7a4402 100644
  120. --- a/chrome/BUILD.gn
  121. +++ b/chrome/BUILD.gn
  122. @@ -202,8 +202,6 @@ if (!is_android && !is_mac) {
  123. "//sandbox",
  124. "//sandbox/policy",
  125. "//sandbox/policy/mojom",
  126. - "//third_party/breakpad:breakpad_handler",
  127. - "//third_party/breakpad:breakpad_sender",
  128. "//third_party/crashpad/crashpad/util",
  129. "//ui/gl",
  130. ]
  131. @@ -440,7 +438,6 @@ if (is_win) {
  132. tweak_info_plist("chrome_app_plist") {
  133. info_plist = "app/app-Info.plist"
  134. args = [
  135. - "--breakpad=0",
  136. "--scm=1",
  137. "--bundle_id=$chrome_mac_bundle_id",
  138. ]
  139. @@ -668,7 +665,6 @@ if (is_win) {
  140. tweak_info_plist("chrome_helper_plist") {
  141. info_plist = "app/helper-Info.plist"
  142. args = [
  143. - "--breakpad=0",
  144. "--keystone=0",
  145. "--scm=0",
  146. ]
  147. @@ -1076,7 +1072,6 @@ if (is_win) {
  148. tweak_info_plist("chrome_framework_plist") {
  149. info_plist = "app/framework-Info.plist"
  150. args = [
  151. - "--breakpad=0",
  152. "--keystone=0",
  153. "--scm=1",
  154. "--branding",
  155. diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
  156. index acde6777c6bc6..fac0628eb5a17 100644
  157. --- a/chrome/test/BUILD.gn
  158. +++ b/chrome/test/BUILD.gn
  159. @@ -404,7 +404,6 @@ static_library("test_support") {
  160. ]
  161. public_deps += [
  162. "//components/crash/core/app",
  163. - "//third_party/breakpad",
  164. ]
  165. }
  166. @@ -9435,9 +9434,6 @@ test("chrome_app_unittests") {
  167. "//components/heap_profiling/in_process",
  168. "//components/safe_browsing:buildflags",
  169. ]
  170. - if (!is_fuchsia) {
  171. - deps += [ "//third_party/breakpad:client" ]
  172. - }
  173. if (enable_gwp_asan) {
  174. deps += [ "//components/gwp_asan/client" ]
  175. }
  176. diff --git a/components/crash/content/browser/BUILD.gn b/components/crash/content/browser/BUILD.gn
  177. index b2b08636e4020..96f24166dd17a 100644
  178. --- a/components/crash/content/browser/BUILD.gn
  179. +++ b/components/crash/content/browser/BUILD.gn
  180. @@ -35,13 +35,6 @@ source_set("browser") {
  181. deps += [ "//third_party/crashpad/crashpad/client" ]
  182. }
  183. - # This is not in the GYP build but this target includes breakpad client
  184. - # headers, so add the dependency here.
  185. - if ((is_posix && !is_ios) || is_fuchsia) {
  186. - configs += [ "//third_party/breakpad:client_config" ]
  187. - public_configs = [ "//third_party/breakpad:client_config" ]
  188. - }
  189. -
  190. if (is_android) {
  191. sources += [
  192. "child_exit_observer_android.cc",
  193. @@ -59,8 +52,6 @@ source_set("browser") {
  194. "//components/crash/android:jni_headers",
  195. "//mojo/public/cpp/bindings",
  196. ]
  197. - } else {
  198. - deps += [ "//third_party/breakpad:client" ]
  199. }
  200. }
  201. diff --git a/components/crash/core/app/BUILD.gn b/components/crash/core/app/BUILD.gn
  202. index 7a5e5244cfdcc..fe66ed5022c99 100644
  203. --- a/components/crash/core/app/BUILD.gn
  204. +++ b/components/crash/core/app/BUILD.gn
  205. @@ -52,15 +52,6 @@ static_library("app") {
  206. "crashpad.h",
  207. ]
  208. - if (is_linux || is_chromeos) {
  209. - sources += [
  210. - "breakpad_linux.cc",
  211. - "breakpad_linux.h",
  212. - "breakpad_linux_impl.h",
  213. - "crashpad_linux.cc",
  214. - ]
  215. - }
  216. -
  217. defines = [ "CRASH_IMPLEMENTATION" ]
  218. public_deps = [ ":lib" ]
  219. @@ -96,10 +87,6 @@ static_library("app") {
  220. ]
  221. }
  222. - if (is_linux || is_chromeos) {
  223. - deps += [ "//third_party/breakpad:client" ]
  224. - }
  225. -
  226. if (is_win) {
  227. sources += [
  228. "crashpad_win.cc",
  229. @@ -287,7 +274,6 @@ source_set("unit_tests") {
  230. ]
  231. deps += [
  232. ":run_as_crashpad_handler",
  233. - "//third_party/breakpad:client",
  234. "//third_party/crashpad/crashpad/client:client",
  235. "//third_party/crashpad/crashpad/snapshot:snapshot",
  236. "//third_party/crashpad/crashpad/util",
  237. diff --git a/components/crash/core/common/BUILD.gn b/components/crash/core/common/BUILD.gn
  238. index 81460a6cd795b..854828fd627ab 100644
  239. --- a/components/crash/core/common/BUILD.gn
  240. +++ b/components/crash/core/common/BUILD.gn
  241. @@ -97,8 +97,6 @@ target(crash_key_target_type, "crash_key_lib") {
  242. sources += [ "crash_key_crashpad.cc" ]
  243. deps += [ "//third_party/crashpad/crashpad/client" ]
  244. } else {
  245. - include_dirs = [ "//third_party/breakpad/breakpad/src" ]
  246. -
  247. if (is_ios) {
  248. sources += [ "crash_key_breakpad_ios.mm" ]
  249. deps += [
  250. @@ -107,14 +105,8 @@ target(crash_key_target_type, "crash_key_lib") {
  251. ]
  252. configs += [ "//build/config/compiler:enable_arc" ]
  253. - } else {
  254. - sources += [
  255. - "crash_key_breakpad.cc",
  256. - "crash_key_internal.h",
  257. - ]
  258. }
  259. - deps += [ "//third_party/breakpad:client" ]
  260. if (use_combined_annotations) {
  261. public_deps += [ "//third_party/crashpad/crashpad/client" ]
  262. }
  263. @@ -190,9 +182,6 @@ source_set("unit_tests") {
  264. sources += [ "crash_key_breakpad_ios_unittest.cc" ]
  265. deps += [ "//third_party/breakpad:client" ]
  266. include_dirs = [ "//third_party/breakpad/breakpad/src/" ]
  267. - } else if (!is_mac && !is_win && !is_fuchsia && !is_android) {
  268. - include_dirs = [ "//third_party/breakpad/breakpad/src/" ]
  269. - sources += [ "crash_key_breakpad_unittest.cc" ]
  270. }
  271. # TODO(crbug.com/1186718): Enable when crash keys are supported on Fuchsia.
  272. diff --git a/components/nacl/broker/BUILD.gn b/components/nacl/broker/BUILD.gn
  273. index 31a7822c7ee9a..7de416b4ec498 100644
  274. --- a/components/nacl/broker/BUILD.gn
  275. +++ b/components/nacl/broker/BUILD.gn
  276. @@ -108,7 +108,6 @@ if (current_cpu == "x86") {
  277. "//content/public/common:static_switches",
  278. "//ppapi/proxy:ipc",
  279. "//sandbox",
  280. - "//third_party/breakpad:breakpad_handler",
  281. ]
  282. }
  283. diff --git a/content/shell/BUILD.gn b/content/shell/BUILD.gn
  284. index 603832550746d..0aacdf8bc6389 100644
  285. --- a/content/shell/BUILD.gn
  286. +++ b/content/shell/BUILD.gn
  287. @@ -653,7 +653,6 @@ if (is_mac) {
  288. testonly = true
  289. info_plist = "app/framework-Info.plist"
  290. args = [
  291. - "--breakpad=0",
  292. "--keystone=0",
  293. "--scm=1",
  294. "--version",
  295. @@ -727,7 +726,6 @@ if (is_mac) {
  296. testonly = true
  297. info_plist = "app/helper-Info.plist"
  298. args = [
  299. - "--breakpad=0",
  300. "--keystone=0",
  301. "--scm=0",
  302. "--version",
  303. @@ -886,19 +884,10 @@ group("content_shell_crash_test") {
  304. if (is_win) {
  305. data_deps += [ "//build/win:copy_cdb_to_output" ]
  306. }
  307. - if (is_posix) {
  308. - data_deps += [
  309. - "//third_party/breakpad:dump_syms",
  310. - "//third_party/breakpad:minidump_stackwalk",
  311. - ]
  312. - }
  313. if (is_android) {
  314. data_deps += [
  315. "//build/android:devil_chromium_py",
  316. "//build/android:test_runner_py",
  317. - "//third_party/breakpad:microdump_stackwalk",
  318. - "//third_party/breakpad:minidump_dump",
  319. - "//third_party/breakpad:symupload",
  320. "//tools/android/forwarder2",
  321. ]
  322. }
  323. diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn
  324. index 9e43e4274c873..38deff3d6d751 100644
  325. --- a/remoting/base/BUILD.gn
  326. +++ b/remoting/base/BUILD.gn
  327. @@ -256,7 +256,6 @@ static_library("test_support") {
  328. public_deps = [
  329. ":authorization",
  330. ":base",
  331. - ":breakpad",
  332. "//base",
  333. "//testing/gmock",
  334. "//testing/gtest",
  335. diff --git a/remoting/host/setup/BUILD.gn b/remoting/host/setup/BUILD.gn
  336. index 14da0a2b67c96..4abcfd75918d8 100644
  337. --- a/remoting/host/setup/BUILD.gn
  338. +++ b/remoting/host/setup/BUILD.gn
  339. @@ -141,7 +141,6 @@ source_set("native_messaging_host_main") {
  340. "//net",
  341. "//remoting/base",
  342. "//remoting/base:authorization",
  343. - "//remoting/base:breakpad",
  344. "//remoting/host",
  345. "//remoting/host:common",
  346. "//remoting/host/base",
  347. diff --git a/third_party/breakpad/BUILD.gn b/third_party/breakpad/BUILD.gn
  348. deleted file mode 100644
  349. index 48defa6ef092c..0000000000000
  350. --- a/third_party/breakpad/BUILD.gn
  351. +++ /dev/null
  352. @@ -1,1146 +0,0 @@
  353. -# Copyright 2014 The Chromium Authors. All rights reserved.
  354. -# Use of this source code is governed by a BSD-style license that can be
  355. -# found in the LICENSE file.
  356. -
  357. -import("//build/config/chromeos/ui_mode.gni")
  358. -import("//build/symlink.gni")
  359. -import("//testing/libfuzzer/fuzzer_test.gni")
  360. -import("//testing/test.gni")
  361. -
  362. -if (is_win) {
  363. - import("//build/config/win/visual_studio_version.gni")
  364. -}
  365. -
  366. -config("tools_config") {
  367. - include_dirs = [
  368. - "breakpad/src",
  369. - "breakpad/src/third_party",
  370. - ]
  371. - if (is_android) {
  372. - defines = [ "__ANDROID__" ]
  373. - }
  374. - if (is_clang) {
  375. - cflags = [ "-Wno-tautological-constant-out-of-range-compare" ]
  376. - }
  377. -}
  378. -
  379. -config("internal_config") {
  380. - include_dirs = [ "breakpad/src" ]
  381. - defines = []
  382. - if (is_debug) {
  383. - # This is needed for GTMLogger to work correctly.
  384. - defines += [ "DEBUG" ]
  385. - }
  386. - if (is_android) {
  387. - defines += [ "__ANDROID__" ]
  388. - }
  389. -}
  390. -
  391. -config("client_config") {
  392. - include_dirs = [ "breakpad/src" ]
  393. - if (is_android) {
  394. - include_dirs += [ "breakpad/src/common/android/include" ]
  395. - }
  396. - if (is_chromeos_ash) {
  397. - defines = [ "__CHROMEOS__" ]
  398. - }
  399. -}
  400. -
  401. -config("handler_config") {
  402. - include_dirs = [ "breakpad/src" ]
  403. -}
  404. -
  405. -config("sender_config") {
  406. - include_dirs = [ "breakpad/src" ]
  407. -}
  408. -
  409. -config("breakpad_unittest_config") {
  410. - # One of the breakpad unit tests test that we can detect the proper build-id.
  411. - # We must override the build-id for this one target.
  412. - ldflags = [ "-Wl,--build-id=0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" ]
  413. -}
  414. -
  415. -config("default_logging_severity_config") {
  416. - defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
  417. -}
  418. -
  419. -config("fuzzing_logging_severity_config") {
  420. - defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_CRITICAL" ]
  421. -}
  422. -
  423. -default_breakpad_configs = [ ":tools_config" ]
  424. -
  425. -if (use_fuzzing_engine) {
  426. - default_breakpad_configs += [ ":fuzzing_logging_severity_config" ]
  427. -} else {
  428. - default_breakpad_configs += [ ":default_logging_severity_config" ]
  429. -}
  430. -
  431. -# {micro,mini}dump_stackwalk and minidump_dump are tool-type executables
  432. -# that do not build on Windows.
  433. -if (!is_win) {
  434. - if (current_toolchain == host_toolchain || target_os == "mac") {
  435. - # Contains the code shared by both {micro,mini}dump_stackwalk.
  436. - static_library("stackwalk_common") {
  437. - sources = [
  438. - "breakpad/src/common/path_helper.cc",
  439. - "breakpad/src/common/path_helper.h",
  440. - "breakpad/src/common/scoped_ptr.h",
  441. - "breakpad/src/processor/basic_code_module.h",
  442. - "breakpad/src/processor/basic_code_modules.cc",
  443. - "breakpad/src/processor/basic_code_modules.h",
  444. - "breakpad/src/processor/basic_source_line_resolver.cc",
  445. - "breakpad/src/processor/call_stack.cc",
  446. - "breakpad/src/processor/cfi_frame_info.cc",
  447. - "breakpad/src/processor/cfi_frame_info.h",
  448. - "breakpad/src/processor/convert_old_arm64_context.cc",
  449. - "breakpad/src/processor/convert_old_arm64_context.h",
  450. - "breakpad/src/processor/disassembler_x86.cc",
  451. - "breakpad/src/processor/disassembler_x86.h",
  452. - "breakpad/src/processor/dump_context.cc",
  453. - "breakpad/src/processor/dump_object.cc",
  454. - "breakpad/src/processor/logging.cc",
  455. - "breakpad/src/processor/logging.h",
  456. - "breakpad/src/processor/pathname_stripper.cc",
  457. - "breakpad/src/processor/pathname_stripper.h",
  458. - "breakpad/src/processor/proc_maps_linux.cc",
  459. - "breakpad/src/processor/process_state.cc",
  460. - "breakpad/src/processor/simple_symbol_supplier.cc",
  461. - "breakpad/src/processor/simple_symbol_supplier.h",
  462. - "breakpad/src/processor/source_line_resolver_base.cc",
  463. - "breakpad/src/processor/stack_frame_cpu.cc",
  464. - "breakpad/src/processor/stack_frame_symbolizer.cc",
  465. - "breakpad/src/processor/stackwalk_common.cc",
  466. - "breakpad/src/processor/stackwalker.cc",
  467. - "breakpad/src/processor/stackwalker_amd64.cc",
  468. - "breakpad/src/processor/stackwalker_amd64.h",
  469. - "breakpad/src/processor/stackwalker_arm.cc",
  470. - "breakpad/src/processor/stackwalker_arm.h",
  471. - "breakpad/src/processor/stackwalker_arm64.cc",
  472. - "breakpad/src/processor/stackwalker_arm64.h",
  473. - "breakpad/src/processor/stackwalker_mips.cc",
  474. - "breakpad/src/processor/stackwalker_mips.h",
  475. - "breakpad/src/processor/stackwalker_ppc.cc",
  476. - "breakpad/src/processor/stackwalker_ppc.h",
  477. - "breakpad/src/processor/stackwalker_ppc64.cc",
  478. - "breakpad/src/processor/stackwalker_ppc64.h",
  479. - "breakpad/src/processor/stackwalker_sparc.cc",
  480. - "breakpad/src/processor/stackwalker_sparc.h",
  481. - "breakpad/src/processor/stackwalker_x86.cc",
  482. - "breakpad/src/processor/stackwalker_x86.h",
  483. - "breakpad/src/processor/tokenize.cc",
  484. - "breakpad/src/processor/tokenize.h",
  485. -
  486. - # libdisasm
  487. - "breakpad/src/third_party/libdisasm/ia32_implicit.c",
  488. - "breakpad/src/third_party/libdisasm/ia32_implicit.h",
  489. - "breakpad/src/third_party/libdisasm/ia32_insn.c",
  490. - "breakpad/src/third_party/libdisasm/ia32_insn.h",
  491. - "breakpad/src/third_party/libdisasm/ia32_invariant.c",
  492. - "breakpad/src/third_party/libdisasm/ia32_invariant.h",
  493. - "breakpad/src/third_party/libdisasm/ia32_modrm.c",
  494. - "breakpad/src/third_party/libdisasm/ia32_modrm.h",
  495. - "breakpad/src/third_party/libdisasm/ia32_opcode_tables.c",
  496. - "breakpad/src/third_party/libdisasm/ia32_opcode_tables.h",
  497. - "breakpad/src/third_party/libdisasm/ia32_operand.c",
  498. - "breakpad/src/third_party/libdisasm/ia32_operand.h",
  499. - "breakpad/src/third_party/libdisasm/ia32_reg.c",
  500. - "breakpad/src/third_party/libdisasm/ia32_reg.h",
  501. - "breakpad/src/third_party/libdisasm/ia32_settings.c",
  502. - "breakpad/src/third_party/libdisasm/ia32_settings.h",
  503. - "breakpad/src/third_party/libdisasm/libdis.h",
  504. - "breakpad/src/third_party/libdisasm/qword.h",
  505. - "breakpad/src/third_party/libdisasm/x86_disasm.c",
  506. - "breakpad/src/third_party/libdisasm/x86_format.c",
  507. - "breakpad/src/third_party/libdisasm/x86_imm.c",
  508. - "breakpad/src/third_party/libdisasm/x86_imm.h",
  509. - "breakpad/src/third_party/libdisasm/x86_insn.c",
  510. - "breakpad/src/third_party/libdisasm/x86_misc.c",
  511. - "breakpad/src/third_party/libdisasm/x86_operand_list.c",
  512. - "breakpad/src/third_party/libdisasm/x86_operand_list.h",
  513. - ]
  514. -
  515. - configs -= [ "//build/config/compiler:chromium_code" ]
  516. - configs += [ "//build/config/compiler:no_chromium_code" ]
  517. - configs += default_breakpad_configs
  518. - }
  519. -
  520. - fuzzer_test("minidump_fuzzer") {
  521. - sources = [
  522. - "breakpad/src/processor/exploitability.cc",
  523. - "breakpad/src/processor/minidump.cc",
  524. - "breakpad/src/processor/minidump_processor.cc",
  525. - "minidump_fuzzer.cc",
  526. - ]
  527. -
  528. - deps = [
  529. - ":stackwalk_common",
  530. - "//base",
  531. - ]
  532. -
  533. - additional_configs = [ ":fuzzing_logging_severity_config" ]
  534. - include_dirs = [ "breakpad/src" ]
  535. -
  536. - libfuzzer_options = [
  537. - # Suppress stdout from stackwalk_common, as it uses printf() directly.
  538. - "close_fd_mask=1",
  539. - "max_len=128000",
  540. - ]
  541. -
  542. - sources += [
  543. - "breakpad/src/processor/exploitability_linux.cc",
  544. - "breakpad/src/processor/exploitability_linux.h",
  545. - "breakpad/src/processor/exploitability_win.cc",
  546. - "breakpad/src/processor/exploitability_win.h",
  547. - "breakpad/src/processor/symbolic_constants_win.cc",
  548. - "breakpad/src/processor/symbolic_constants_win.h",
  549. - ]
  550. - }
  551. -
  552. - executable("microdump_stackwalk") {
  553. - sources = [
  554. - "breakpad/src/processor/microdump.cc",
  555. - "breakpad/src/processor/microdump_processor.cc",
  556. - "breakpad/src/processor/microdump_stackwalk.cc",
  557. - ]
  558. -
  559. - deps = [ ":stackwalk_common" ]
  560. -
  561. - configs -= [ "//build/config/compiler:chromium_code" ]
  562. - configs += [ "//build/config/compiler:no_chromium_code" ]
  563. - configs += default_breakpad_configs
  564. - }
  565. -
  566. - executable("minidump_stackwalk") {
  567. - sources = [
  568. - "breakpad/src/processor/exploitability.cc",
  569. - "breakpad/src/processor/minidump.cc",
  570. - "breakpad/src/processor/minidump_processor.cc",
  571. - "breakpad/src/processor/minidump_stackwalk.cc",
  572. - ]
  573. -
  574. - deps = [ ":stackwalk_common" ]
  575. -
  576. - configs -= [ "//build/config/compiler:chromium_code" ]
  577. - configs += [ "//build/config/compiler:no_chromium_code" ]
  578. - configs += default_breakpad_configs
  579. -
  580. - sources += [
  581. - "breakpad/src/processor/exploitability_linux.cc",
  582. - "breakpad/src/processor/exploitability_linux.h",
  583. - "breakpad/src/processor/exploitability_win.cc",
  584. - "breakpad/src/processor/exploitability_win.h",
  585. - "breakpad/src/processor/symbolic_constants_win.cc",
  586. - "breakpad/src/processor/symbolic_constants_win.h",
  587. - ]
  588. - }
  589. -
  590. - executable("minidump_dump") {
  591. - sources = [
  592. - "breakpad/src/common/path_helper.cc",
  593. - "breakpad/src/common/path_helper.h",
  594. - "breakpad/src/common/scoped_ptr.h",
  595. - "breakpad/src/processor/basic_code_module.h",
  596. - "breakpad/src/processor/basic_code_modules.cc",
  597. - "breakpad/src/processor/basic_code_modules.h",
  598. - "breakpad/src/processor/convert_old_arm64_context.cc",
  599. - "breakpad/src/processor/convert_old_arm64_context.h",
  600. - "breakpad/src/processor/dump_context.cc",
  601. - "breakpad/src/processor/dump_object.cc",
  602. - "breakpad/src/processor/logging.cc",
  603. - "breakpad/src/processor/logging.h",
  604. - "breakpad/src/processor/minidump.cc",
  605. - "breakpad/src/processor/minidump_dump.cc",
  606. - "breakpad/src/processor/pathname_stripper.cc",
  607. - "breakpad/src/processor/pathname_stripper.h",
  608. - "breakpad/src/processor/proc_maps_linux.cc",
  609. - ]
  610. -
  611. - configs += [ ":tools_config" ]
  612. -
  613. - # There are some warnings in this code.
  614. - configs -= [ "//build/config/compiler:chromium_code" ]
  615. - configs += [ "//build/config/compiler:no_chromium_code" ]
  616. - }
  617. - } else {
  618. - # Aliases for convenience.
  619. - binary_symlink("microdump_stackwalk") {
  620. - binary_label = ":$target_name($host_toolchain)"
  621. - }
  622. - binary_symlink("minidump_stackwalk") {
  623. - binary_label = ":$target_name($host_toolchain)"
  624. - }
  625. - binary_symlink("minidump_dump") {
  626. - binary_label = ":$target_name($host_toolchain)"
  627. - }
  628. - }
  629. -}
  630. -
  631. -# Mac --------------------------------------------------------------------------
  632. -
  633. -if (is_mac) {
  634. - if (current_toolchain == host_toolchain || target_os != "ios") {
  635. - source_set("common") {
  636. - sources = [
  637. - "breakpad/src/common/dwarf/bytereader.cc",
  638. - "breakpad/src/common/dwarf/dwarf2diehandler.cc",
  639. - "breakpad/src/common/dwarf/dwarf2reader.cc",
  640. - "breakpad/src/common/dwarf/elf_reader.cc",
  641. - "breakpad/src/common/dwarf/elf_reader.h",
  642. - "breakpad/src/common/dwarf_cfi_to_module.cc",
  643. - "breakpad/src/common/dwarf_cu_to_module.cc",
  644. - "breakpad/src/common/dwarf_line_to_module.cc",
  645. - "breakpad/src/common/dwarf_range_list_handler.cc",
  646. - "breakpad/src/common/dwarf_range_list_handler.h",
  647. - "breakpad/src/common/language.cc",
  648. - "breakpad/src/common/mac/arch_utilities.cc",
  649. - "breakpad/src/common/mac/arch_utilities.h",
  650. - "breakpad/src/common/mac/dump_syms.cc",
  651. - "breakpad/src/common/mac/file_id.cc",
  652. - "breakpad/src/common/mac/macho_id.cc",
  653. - "breakpad/src/common/mac/macho_reader.cc",
  654. - "breakpad/src/common/mac/macho_utilities.cc",
  655. - "breakpad/src/common/mac/macho_walker.cc",
  656. - "breakpad/src/common/md5.cc",
  657. - "breakpad/src/common/memory_range.h",
  658. - "breakpad/src/common/module.cc",
  659. - "breakpad/src/common/path_helper.cc",
  660. - "breakpad/src/common/path_helper.h",
  661. - "breakpad/src/common/scoped_ptr.h",
  662. - "breakpad/src/common/stabs_reader.cc",
  663. - "breakpad/src/common/stabs_to_module.cc",
  664. - ]
  665. - include_dirs = [ "breakpad/src/common/mac" ]
  666. -
  667. - configs += [ ":internal_config" ]
  668. -
  669. - # The DWARF utilities require -funsigned-char.
  670. - cflags = [ "-funsigned-char" ]
  671. -
  672. - # dwarf2reader.cc uses dynamic_cast.
  673. - configs -= [ "//build/config/compiler:no_rtti" ]
  674. - configs += [ "//build/config/compiler:rtti" ]
  675. -
  676. - configs -= [ "//build/config/compiler:chromium_code" ]
  677. - configs += [ "//build/config/compiler:no_chromium_code" ]
  678. -
  679. - # For breakpad/src/common/stabs_reader.h.
  680. - defines = [ "HAVE_MACH_O_NLIST_H" ]
  681. - }
  682. -
  683. - executable("dump_syms") {
  684. - sources = [ "breakpad/src/tools/mac/dump_syms/dump_syms_tool.cc" ]
  685. - configs -= [ "//build/config/compiler:chromium_code" ]
  686. - configs += [ "//build/config/compiler:no_chromium_code" ]
  687. -
  688. - configs += [ ":internal_config" ]
  689. -
  690. - frameworks = [ "Foundation.framework" ]
  691. -
  692. - if (!is_debug) {
  693. - # dump_syms crashes when built at -O1, -O2, and -O3. It does
  694. - # not crash at -Os. To play it safe, dump_syms is always built
  695. - # at -O0 until this can be sorted out.
  696. - # https://crbug.com/google-breakpad/329
  697. - configs -= [ "//build/config/compiler:default_optimization" ]
  698. - cflags = [ "-O0" ]
  699. - }
  700. -
  701. - deps = [ ":common" ]
  702. - }
  703. -
  704. - executable("symupload") {
  705. - sources = [
  706. - "breakpad/src/common/mac/HTTPGetRequest.m",
  707. - "breakpad/src/common/mac/HTTPMultipartUpload.m",
  708. - "breakpad/src/common/mac/HTTPPutRequest.m",
  709. - "breakpad/src/common/mac/HTTPRequest.m",
  710. - "breakpad/src/common/mac/HTTPSimplePostRequest.m",
  711. - "breakpad/src/common/mac/SymbolCollectorClient.m",
  712. - "breakpad/src/common/mac/encoding_util.m",
  713. - "breakpad/src/tools/mac/symupload/symupload.mm",
  714. - ]
  715. -
  716. - include_dirs = [ "breakpad/src/common/mac" ]
  717. -
  718. - configs += [ ":internal_config" ]
  719. -
  720. - frameworks = [ "Foundation.framework" ]
  721. -
  722. - configs -= [ "//build/config/compiler:chromium_code" ]
  723. - configs += [ "//build/config/compiler:no_chromium_code" ]
  724. -
  725. - deps = [ ":common" ]
  726. - }
  727. - } else {
  728. - binary_symlink("dump_syms") {
  729. - binary_label = ":$target_name($host_toolchain)"
  730. - }
  731. - binary_symlink("symupload") {
  732. - binary_label = ":$target_name($host_toolchain)"
  733. - }
  734. - }
  735. -}
  736. -
  737. -if (is_ios) {
  738. - binary_symlink("dump_syms") {
  739. - binary_label = ":$target_name($host_toolchain)"
  740. - }
  741. - binary_symlink("symupload") {
  742. - binary_label = ":$target_name($host_toolchain)"
  743. - }
  744. -}
  745. -
  746. -if (is_mac) {
  747. - static_library("utilities") {
  748. - sources = [
  749. - "breakpad/src/client/mac/crash_generation/ConfigFile.mm",
  750. - "breakpad/src/client/mac/handler/breakpad_nlist_64.cc",
  751. - "breakpad/src/client/mac/handler/dynamic_images.cc",
  752. - "breakpad/src/client/mac/handler/minidump_generator.cc",
  753. - "breakpad/src/client/minidump_file_writer.cc",
  754. - "breakpad/src/common/convert_UTF.cc",
  755. - "breakpad/src/common/mac/MachIPC.mm",
  756. - "breakpad/src/common/mac/arch_utilities.cc",
  757. - "breakpad/src/common/mac/arch_utilities.h",
  758. - "breakpad/src/common/mac/bootstrap_compat.cc",
  759. - "breakpad/src/common/mac/file_id.cc",
  760. - "breakpad/src/common/mac/launch_reporter.cc",
  761. - "breakpad/src/common/mac/macho_id.cc",
  762. - "breakpad/src/common/mac/macho_utilities.cc",
  763. - "breakpad/src/common/mac/macho_walker.cc",
  764. - "breakpad/src/common/mac/string_utilities.cc",
  765. - "breakpad/src/common/md5.cc",
  766. - "breakpad/src/common/scoped_ptr.h",
  767. - "breakpad/src/common/simple_string_dictionary.cc",
  768. - "breakpad/src/common/string_conversion.cc",
  769. - ]
  770. -
  771. - configs += [ ":internal_config" ]
  772. -
  773. - # There are some warnings in this code.
  774. - configs -= [ "//build/config/compiler:chromium_code" ]
  775. - configs += [ "//build/config/compiler:no_chromium_code" ]
  776. - }
  777. -
  778. - executable("crash_inspector") {
  779. - sources = [
  780. - "breakpad/src/client/mac/crash_generation/Inspector.mm",
  781. - "breakpad/src/client/mac/crash_generation/InspectorMain.mm",
  782. - ]
  783. -
  784. - # TODO(GYP): 'mac_real_dsym': 1,
  785. -
  786. - include_dirs = [
  787. - "breakpad/src/client/apple/Framework",
  788. - "breakpad/src/common/mac",
  789. - "breakpad/src",
  790. - ]
  791. - frameworks = [
  792. - "CoreServices.framework",
  793. - "Foundation.framework",
  794. - ]
  795. -
  796. - deps = [ ":utilities" ]
  797. - }
  798. -
  799. - # TODO(GYP) this target has some mac_bundle_resources stuff.
  800. - # executable("crash_report_sender") {
  801. - # }
  802. - group("crash_report_sender") {
  803. - }
  804. -
  805. - config("breakpad_config") {
  806. - include_dirs = [ "breakpad/src/client/apple/Framework" ]
  807. - }
  808. -
  809. - static_library("breakpad") {
  810. - sources = [
  811. - "breakpad/src/client/mac/Framework/Breakpad.mm",
  812. - "breakpad/src/client/mac/Framework/OnDemandServer.mm",
  813. - "breakpad/src/client/mac/crash_generation/crash_generation_client.cc",
  814. - "breakpad/src/client/mac/crash_generation/crash_generation_client.h",
  815. - "breakpad/src/client/mac/handler/exception_handler.cc",
  816. - "breakpad/src/client/mac/handler/protected_memory_allocator.cc",
  817. - ]
  818. -
  819. - configs += [ ":internal_config" ]
  820. - public_configs = [ ":breakpad_config" ]
  821. -
  822. - defines = [ "USE_PROTECTED_ALLOCATIONS=1" ]
  823. - include_dirs = [ "breakpad/src/client/apple/Framework" ]
  824. -
  825. - # TODO(crbug.com/841631): Breakpad uses bootstrap_subset() and
  826. - # bootstrap_create_server(), both of which are deprecated starting in 10.10.
  827. - cflags = [ "-Wno-deprecated-declarations" ]
  828. -
  829. - deps = [
  830. - ":crash_inspector",
  831. - ":crash_report_sender",
  832. - ":utilities",
  833. - ]
  834. - }
  835. -
  836. - group("client") {
  837. - public_configs = [ ":client_config" ]
  838. - }
  839. -}
  840. -
  841. -if (is_linux || is_chromeos || is_android) {
  842. - if (current_toolchain == host_toolchain) {
  843. - executable("symupload") {
  844. - sources = [
  845. - "breakpad/src/common/linux/http_upload.cc",
  846. - "breakpad/src/common/linux/http_upload.h",
  847. - "breakpad/src/common/linux/libcurl_wrapper.cc",
  848. - "breakpad/src/common/linux/libcurl_wrapper.h",
  849. - "breakpad/src/common/linux/symbol_collector_client.cc",
  850. - "breakpad/src/common/linux/symbol_collector_client.h",
  851. - "breakpad/src/common/linux/symbol_upload.cc",
  852. - "breakpad/src/common/linux/symbol_upload.h",
  853. - "breakpad/src/common/path_helper.cc",
  854. - "breakpad/src/common/path_helper.h",
  855. - "breakpad/src/common/scoped_ptr.h",
  856. - "breakpad/src/tools/linux/symupload/sym_upload.cc",
  857. - ]
  858. -
  859. - include_dirs = [
  860. - "breakpad/src",
  861. - "breakpad/src/third_party",
  862. - ]
  863. -
  864. - configs += [ ":tools_config" ]
  865. -
  866. - libs = [ "dl" ]
  867. - }
  868. -
  869. - # dump_syms is a host tool, so only compile it for the host system.
  870. - executable("dump_syms") {
  871. - sources = [
  872. - "breakpad/src/common/dwarf/bytereader.cc",
  873. - "breakpad/src/common/dwarf/dwarf2diehandler.cc",
  874. - "breakpad/src/common/dwarf/dwarf2reader.cc",
  875. - "breakpad/src/common/dwarf/elf_reader.cc",
  876. - "breakpad/src/common/dwarf/elf_reader.h",
  877. - "breakpad/src/common/dwarf_cfi_to_module.cc",
  878. - "breakpad/src/common/dwarf_cfi_to_module.h",
  879. - "breakpad/src/common/dwarf_cu_to_module.cc",
  880. - "breakpad/src/common/dwarf_cu_to_module.h",
  881. - "breakpad/src/common/dwarf_line_to_module.cc",
  882. - "breakpad/src/common/dwarf_line_to_module.h",
  883. - "breakpad/src/common/dwarf_range_list_handler.cc",
  884. - "breakpad/src/common/dwarf_range_list_handler.h",
  885. - "breakpad/src/common/language.cc",
  886. - "breakpad/src/common/language.h",
  887. - "breakpad/src/common/linux/crc32.cc",
  888. - "breakpad/src/common/linux/crc32.h",
  889. - "breakpad/src/common/linux/dump_symbols.cc",
  890. - "breakpad/src/common/linux/dump_symbols.h",
  891. - "breakpad/src/common/linux/elf_symbols_to_module.cc",
  892. - "breakpad/src/common/linux/elf_symbols_to_module.h",
  893. - "breakpad/src/common/linux/elfutils.cc",
  894. - "breakpad/src/common/linux/elfutils.h",
  895. - "breakpad/src/common/linux/file_id.cc",
  896. - "breakpad/src/common/linux/file_id.h",
  897. - "breakpad/src/common/linux/guid_creator.h",
  898. - "breakpad/src/common/linux/linux_libc_support.cc",
  899. - "breakpad/src/common/linux/linux_libc_support.h",
  900. - "breakpad/src/common/linux/memory_mapped_file.cc",
  901. - "breakpad/src/common/linux/memory_mapped_file.h",
  902. - "breakpad/src/common/memory_allocator.h",
  903. - "breakpad/src/common/memory_range.h",
  904. - "breakpad/src/common/module.cc",
  905. - "breakpad/src/common/module.h",
  906. - "breakpad/src/common/path_helper.cc",
  907. - "breakpad/src/common/path_helper.h",
  908. - "breakpad/src/common/scoped_ptr.h",
  909. - "breakpad/src/common/stabs_reader.cc",
  910. - "breakpad/src/common/stabs_reader.h",
  911. - "breakpad/src/common/stabs_to_module.cc",
  912. - "breakpad/src/common/stabs_to_module.h",
  913. - "breakpad/src/tools/linux/dump_syms/dump_syms.cc",
  914. - ]
  915. -
  916. - # There are some warnings in this code.
  917. - configs -= [ "//build/config/compiler:chromium_code" ]
  918. - configs += [ "//build/config/compiler:no_chromium_code" ]
  919. -
  920. - # dwarf2reader.cc uses dynamic_cast. Because we don't typically
  921. - # don't support RTTI, we enable it for this single target. Since
  922. - # dump_syms doesn't share any object files with anything else,
  923. - # this doesn't end up polluting Chrome itself.
  924. - configs -= [ "//build/config/compiler:no_rtti" ]
  925. - configs += [ "//build/config/compiler:rtti" ]
  926. -
  927. - # Breakpad rev 583 introduced this flag.
  928. - # Using this define, stabs_reader.h will include a.out.h to
  929. - # build on Linux.
  930. - defines = [ "HAVE_A_OUT_H" ]
  931. -
  932. - include_dirs = [ "breakpad/src" ]
  933. - }
  934. - } else {
  935. - # Aliases for convenience.
  936. - binary_symlink("dump_syms") {
  937. - binary_label = ":dump_syms($host_toolchain)"
  938. - }
  939. - binary_symlink("symupload") {
  940. - binary_label = ":symupload($host_toolchain)"
  941. - }
  942. - }
  943. -
  944. - static_library("client") {
  945. - sources = [
  946. - "breakpad/src/client/linux/crash_generation/crash_generation_client.cc",
  947. - "breakpad/src/client/linux/crash_generation/crash_generation_client.h",
  948. - "breakpad/src/client/linux/dump_writer_common/mapping_info.h",
  949. - "breakpad/src/client/linux/dump_writer_common/thread_info.cc",
  950. - "breakpad/src/client/linux/dump_writer_common/thread_info.h",
  951. - "breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc",
  952. - "breakpad/src/client/linux/dump_writer_common/ucontext_reader.h",
  953. - "breakpad/src/client/linux/handler/exception_handler.cc",
  954. - "breakpad/src/client/linux/handler/exception_handler.h",
  955. - "breakpad/src/client/linux/handler/minidump_descriptor.cc",
  956. - "breakpad/src/client/linux/handler/minidump_descriptor.h",
  957. - "breakpad/src/client/linux/log/log.cc",
  958. - "breakpad/src/client/linux/log/log.h",
  959. - "breakpad/src/client/linux/microdump_writer/microdump_writer.cc",
  960. - "breakpad/src/client/linux/microdump_writer/microdump_writer.h",
  961. - "breakpad/src/client/linux/minidump_writer/cpu_set.h",
  962. - "breakpad/src/client/linux/minidump_writer/directory_reader.h",
  963. - "breakpad/src/client/linux/minidump_writer/line_reader.h",
  964. - "breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc",
  965. - "breakpad/src/client/linux/minidump_writer/linux_core_dumper.h",
  966. - "breakpad/src/client/linux/minidump_writer/linux_dumper.cc",
  967. - "breakpad/src/client/linux/minidump_writer/linux_dumper.h",
  968. - "breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc",
  969. - "breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.h",
  970. - "breakpad/src/client/linux/minidump_writer/minidump_writer.cc",
  971. - "breakpad/src/client/linux/minidump_writer/minidump_writer.h",
  972. - "breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader.h",
  973. - "breakpad/src/client/minidump_file_writer-inl.h",
  974. - "breakpad/src/client/minidump_file_writer.cc",
  975. - "breakpad/src/client/minidump_file_writer.h",
  976. - "breakpad/src/common/convert_UTF.cc",
  977. - "breakpad/src/common/convert_UTF.h",
  978. - "breakpad/src/common/linux/breakpad_getcontext.S",
  979. - "breakpad/src/common/linux/elf_core_dump.cc",
  980. - "breakpad/src/common/linux/elf_core_dump.h",
  981. - "breakpad/src/common/linux/elfutils.cc",
  982. - "breakpad/src/common/linux/elfutils.h",
  983. - "breakpad/src/common/linux/file_id.cc",
  984. - "breakpad/src/common/linux/file_id.h",
  985. - "breakpad/src/common/linux/google_crashdump_uploader.cc",
  986. - "breakpad/src/common/linux/google_crashdump_uploader.h",
  987. - "breakpad/src/common/linux/guid_creator.cc",
  988. - "breakpad/src/common/linux/guid_creator.h",
  989. - "breakpad/src/common/linux/libcurl_wrapper.cc",
  990. - "breakpad/src/common/linux/libcurl_wrapper.h",
  991. - "breakpad/src/common/linux/linux_libc_support.cc",
  992. - "breakpad/src/common/linux/linux_libc_support.h",
  993. - "breakpad/src/common/linux/memory_mapped_file.cc",
  994. - "breakpad/src/common/linux/memory_mapped_file.h",
  995. - "breakpad/src/common/linux/safe_readlink.cc",
  996. - "breakpad/src/common/linux/safe_readlink.h",
  997. - "breakpad/src/common/memory_allocator.h",
  998. - "breakpad/src/common/memory_range.h",
  999. - "breakpad/src/common/scoped_ptr.h",
  1000. - "breakpad/src/common/simple_string_dictionary.cc",
  1001. - "breakpad/src/common/simple_string_dictionary.h",
  1002. - "breakpad/src/common/string_conversion.cc",
  1003. - "breakpad/src/common/string_conversion.h",
  1004. - ]
  1005. -
  1006. - configs -= [ "//build/config/compiler:chromium_code" ]
  1007. - configs += [ "//build/config/compiler:no_chromium_code" ]
  1008. - public_configs = [ ":client_config" ]
  1009. -
  1010. - if (current_cpu == "arm" && is_chromeos_ash) {
  1011. - # Avoid running out of registers in
  1012. - # linux_syscall_support.h:sys_clone()'s inline assembly.
  1013. - cflags = [ "-marm" ]
  1014. - }
  1015. -
  1016. - libs = [ "dl" ]
  1017. -
  1018. - include_dirs = [
  1019. - ".",
  1020. - "breakpad/src",
  1021. - "breakpad/src/client",
  1022. - "breakpad/src/third_party/linux/include",
  1023. - ]
  1024. - }
  1025. -
  1026. - static_library("processor_support") {
  1027. - sources = [
  1028. - "breakpad/src/common/scoped_ptr.h",
  1029. - "breakpad/src/processor/basic_code_module.h",
  1030. - "breakpad/src/processor/basic_code_modules.cc",
  1031. - "breakpad/src/processor/basic_code_modules.h",
  1032. - "breakpad/src/processor/convert_old_arm64_context.cc",
  1033. - "breakpad/src/processor/convert_old_arm64_context.h",
  1034. - "breakpad/src/processor/dump_context.cc",
  1035. - "breakpad/src/processor/dump_object.cc",
  1036. - "breakpad/src/processor/logging.cc",
  1037. - "breakpad/src/processor/logging.h",
  1038. - "breakpad/src/processor/minidump.cc",
  1039. - "breakpad/src/processor/pathname_stripper.cc",
  1040. - "breakpad/src/processor/pathname_stripper.h",
  1041. - "breakpad/src/processor/proc_maps_linux.cc",
  1042. - ]
  1043. -
  1044. - include_dirs = [
  1045. - "breakpad/src",
  1046. - "breakpad/src/client",
  1047. - "breakpad/src/third_party/linux/include",
  1048. - ".",
  1049. - ]
  1050. -
  1051. - # There are some warnings in this code.
  1052. - configs -= [ "//build/config/compiler:chromium_code" ]
  1053. - configs += [ "//build/config/compiler:no_chromium_code" ]
  1054. - }
  1055. -
  1056. - test("breakpad_unittests") {
  1057. - sources = [
  1058. - "breakpad/src/client/linux/handler/exception_handler_unittest.cc",
  1059. - "breakpad/src/client/linux/minidump_writer/cpu_set_unittest.cc",
  1060. - "breakpad/src/client/linux/minidump_writer/directory_reader_unittest.cc",
  1061. - "breakpad/src/client/linux/minidump_writer/line_reader_unittest.cc",
  1062. - "breakpad/src/client/linux/minidump_writer/linux_core_dumper_unittest.cc",
  1063. - "breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc",
  1064. - "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc",
  1065. - "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc",
  1066. - "breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc",
  1067. - "breakpad/src/common/linux/breakpad_getcontext_unittest.cc",
  1068. - "breakpad/src/common/linux/elf_core_dump_unittest.cc",
  1069. - "breakpad/src/common/linux/file_id_unittest.cc",
  1070. - "breakpad/src/common/linux/linux_libc_support_unittest.cc",
  1071. - "breakpad/src/common/linux/synth_elf.cc",
  1072. - "breakpad/src/common/linux/tests/auto_testfile.h",
  1073. - "breakpad/src/common/linux/tests/crash_generator.cc",
  1074. - "breakpad/src/common/linux/tests/crash_generator.h",
  1075. - "breakpad/src/common/memory_allocator_unittest.cc",
  1076. - "breakpad/src/common/memory_range.h",
  1077. - "breakpad/src/common/simple_string_dictionary_unittest.cc",
  1078. - "breakpad/src/common/test_assembler.cc",
  1079. - "breakpad/src/common/tests/file_utils.cc",
  1080. - "breakpad/src/common/tests/file_utils.h",
  1081. - "breakpad/src/tools/linux/md2core/minidump_memory_range.h",
  1082. - "breakpad/src/tools/linux/md2core/minidump_memory_range_unittest.cc",
  1083. - "linux/breakpad_googletest_includes.h",
  1084. - ]
  1085. -
  1086. - deps = [
  1087. - ":client",
  1088. - ":processor_support",
  1089. - "//testing/gmock",
  1090. - "//testing/gtest",
  1091. - "//testing/gtest:gtest_main",
  1092. - ]
  1093. -
  1094. - data_deps = [
  1095. - ":linux_dumper_unittest_helper",
  1096. - "//testing/buildbot/filters:breakpad_unittests_filters",
  1097. - ]
  1098. -
  1099. - include_dirs = [
  1100. - "linux", # Use our copy of breakpad_googletest_includes.h
  1101. - ".",
  1102. - ]
  1103. -
  1104. - # There are some warnings in this code.
  1105. - configs -= [ "//build/config/compiler:chromium_code" ]
  1106. - configs += [
  1107. - ":client_config",
  1108. - "//build/config/compiler:no_chromium_code",
  1109. - ]
  1110. -
  1111. - if (is_clang) {
  1112. - # See https://crbug.com/138571#c18
  1113. - cflags = [ "-Wno-unused-value" ]
  1114. - }
  1115. -
  1116. - if (is_android) {
  1117. - use_raw_android_executable = true
  1118. - libs = [ "log" ]
  1119. - extra_dist_files = [ "$root_out_dir/linux_dumper_unittest_helper" ]
  1120. - }
  1121. -
  1122. - # Add the breakpad unittest config at the end to override all configs.
  1123. - configs += [ ":breakpad_unittest_config" ]
  1124. - }
  1125. -
  1126. - executable("linux_dumper_unittest_helper") {
  1127. - testonly = true
  1128. - sources = [ "breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc" ]
  1129. - deps = [ ":processor_support" ]
  1130. -
  1131. - configs += [ ":client_config" ]
  1132. -
  1133. - if (is_component_build) {
  1134. - ldflags = [ "-Wl,-rpath,\$ORIGIN" ]
  1135. - }
  1136. - }
  1137. -
  1138. - executable("generate_test_dump") {
  1139. - testonly = true
  1140. - sources = [ "linux/generate-test-dump.cc" ]
  1141. -
  1142. - # This file has an unused variable warning.
  1143. - configs -= [ "//build/config/compiler:chromium_code" ]
  1144. - configs += [
  1145. - ":client_config",
  1146. - "//build/config/compiler:no_chromium_code",
  1147. - ]
  1148. -
  1149. - deps = [ ":client" ]
  1150. -
  1151. - if (is_android) {
  1152. - libs = [ "log" ]
  1153. - }
  1154. - }
  1155. -
  1156. - executable("minidump-2-core") {
  1157. - sources = [
  1158. - "breakpad/src/common/path_helper.cc",
  1159. - "breakpad/src/common/path_helper.h",
  1160. - "breakpad/src/tools/linux/md2core/minidump-2-core.cc",
  1161. - "breakpad/src/tools/linux/md2core/minidump_memory_range.h",
  1162. - ]
  1163. -
  1164. - include_dirs = [ "breakpad/src" ]
  1165. -
  1166. - deps = [ ":client" ]
  1167. - }
  1168. -
  1169. - executable("core-2-minidump") {
  1170. - sources = [
  1171. - "breakpad/src/common/path_helper.cc",
  1172. - "breakpad/src/common/path_helper.h",
  1173. - "breakpad/src/tools/linux/core2md/core2md.cc",
  1174. - ]
  1175. -
  1176. - deps = [ ":client" ]
  1177. -
  1178. - include_dirs = [ "breakpad/src" ]
  1179. - }
  1180. -}
  1181. -
  1182. -if (is_win) {
  1183. - # Force a native symupload, since Chrome tries to be "helpful" and not really
  1184. - # differentiate target vs. host for x86/x64 builds.
  1185. - #
  1186. - # Normally, this would just use the (current_toolchain == host_toolchain)
  1187. - # condition, which would cause these targets to only be compiled for the host
  1188. - # CPU (i.e. to only build "native" binaries), but the Chrome Windows build
  1189. - # will "always use the target CPU for host builds for x86/x64":
  1190. - # https://crrev.com/3258ed4d9d755a3564d98bef8707bbdb5f8a7974/config/BUILDCONFIG.gn#199
  1191. - # This means that host_toolchain will be x86 (32-bit) if the target is x86,
  1192. - # even when the host is actually x64 (64-bit), which causes this to create
  1193. - # 32-bit binaries, despite wanting native, 64-bit binaries.
  1194. - #
  1195. - # Adding the second condition enables this block for the "true" host
  1196. - # toolchain as well, which allows creating 64-bit binaries even when the host
  1197. - # toolchain is redefined to a 32-bit target.
  1198. - if (is_clang) {
  1199. - symupload_toolchain = "//build/toolchain/win:win_clang_$host_cpu"
  1200. - } else {
  1201. - symupload_toolchain = "//build/toolchain/win:$host_cpu"
  1202. - }
  1203. - if (current_toolchain == host_toolchain ||
  1204. - current_toolchain == symupload_toolchain) {
  1205. - static_library("common_windows") {
  1206. - include_dirs = [
  1207. - "$visual_studio_path/DIA SDK/include",
  1208. - "breakpad/src",
  1209. - ]
  1210. - sources = [
  1211. - "breakpad/src/common/windows/dia_util.cc",
  1212. - "breakpad/src/common/windows/dia_util.h",
  1213. - "breakpad/src/common/windows/guid_string.cc",
  1214. - "breakpad/src/common/windows/guid_string.h",
  1215. - "breakpad/src/common/windows/http_upload.cc",
  1216. - "breakpad/src/common/windows/http_upload.h",
  1217. - "breakpad/src/common/windows/module_info.h",
  1218. - "breakpad/src/common/windows/omap.cc",
  1219. - "breakpad/src/common/windows/omap.h",
  1220. - "breakpad/src/common/windows/omap_internal.h",
  1221. - "breakpad/src/common/windows/pdb_source_line_writer.cc",
  1222. - "breakpad/src/common/windows/pdb_source_line_writer.h",
  1223. - "breakpad/src/common/windows/pe_source_line_writer.cc",
  1224. - "breakpad/src/common/windows/pe_source_line_writer.h",
  1225. - "breakpad/src/common/windows/pe_util.cc",
  1226. - "breakpad/src/common/windows/pe_util.h",
  1227. - "breakpad/src/common/windows/string_utils-inl.h",
  1228. - "breakpad/src/common/windows/string_utils.cc",
  1229. - "breakpad/src/common/windows/symbol_collector_client.cc",
  1230. - "breakpad/src/common/windows/symbol_collector_client.h",
  1231. - ]
  1232. - }
  1233. -
  1234. - static_library("ms_symbol_server_converter") {
  1235. - include_dirs = [
  1236. - "$visual_studio_path/DIA SDK/include",
  1237. - "breakpad/src",
  1238. - ]
  1239. -
  1240. - sources = [
  1241. - "breakpad/src/tools/windows/converter/ms_symbol_server_converter.cc",
  1242. - ]
  1243. -
  1244. - deps = [ "//third_party/breakpad:common_windows" ]
  1245. -
  1246. - libs = [ "Pathcch.lib" ]
  1247. - }
  1248. -
  1249. - executable("dump_syms") {
  1250. - # TODO(scottmg) using this with VS2015 may break the crash server.
  1251. - # https://crbug.com/696671
  1252. - include_dirs = [
  1253. - "$visual_studio_path/DIA SDK/include",
  1254. - "breakpad/src",
  1255. - ]
  1256. -
  1257. - sources = [ "breakpad/src/tools/windows/dump_syms/dump_syms.cc" ]
  1258. -
  1259. - deps = [ "//third_party/breakpad:common_windows" ]
  1260. -
  1261. - lib_dirs = []
  1262. - if (current_cpu == "x64") {
  1263. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib/amd64" ]
  1264. - } else {
  1265. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib" ]
  1266. - }
  1267. -
  1268. - libs = [
  1269. - "diaguids.lib",
  1270. - "imagehlp.lib",
  1271. - ]
  1272. -
  1273. - if (is_clang) {
  1274. - # clang complains about microsoft-specific goto extensions. Instead of
  1275. - # rewriting decade-old, goto-ridden code, disable the warning.
  1276. - cflags = [ "-Wno-microsoft-goto" ]
  1277. - }
  1278. - }
  1279. -
  1280. - group("symupload") {
  1281. - deps = [ ":symupload_win($symupload_toolchain)" ]
  1282. - }
  1283. - executable("symupload_win") {
  1284. - include_dirs = [
  1285. - "$visual_studio_path/DIA SDK/include",
  1286. - "breakpad/src",
  1287. - ]
  1288. - output_name = "symupload"
  1289. -
  1290. - # Invert the normal logic which puts binaries built with the default
  1291. - # (target) toolchain into the root output directory, and other toolchain
  1292. - # binaries into subdirs. This gives preference to the native symupload,
  1293. - # which is what's wanted in most situations. The cross-compiled binary
  1294. - # can still be created (by building "symupload_win" instead of
  1295. - # "symupload") and found in the corresponding toolchain subdir (e.g.
  1296. - # //out/Release/win_clang_x86/ when cross-compiling to x86).
  1297. - if (current_toolchain == symupload_toolchain) {
  1298. - output_dir = "$root_build_dir"
  1299. - } else {
  1300. - output_name = "symupload_$target_cpu"
  1301. - toolchain_parts =
  1302. - string_split(get_path_info(current_toolchain, "name"), ":")
  1303. - output_dir = "$root_out_dir/" + toolchain_parts[1]
  1304. - }
  1305. -
  1306. - sources = [ "breakpad/src/tools/windows/symupload/symupload.cc" ]
  1307. -
  1308. - deps = [ "//third_party/breakpad:common_windows" ]
  1309. -
  1310. - ldflags = [ "/LARGEADDRESSAWARE" ]
  1311. -
  1312. - lib_dirs = []
  1313. - if (current_cpu == "x64") {
  1314. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib/amd64" ]
  1315. - } else {
  1316. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib" ]
  1317. - }
  1318. -
  1319. - libs = [
  1320. - "diaguids.lib",
  1321. - "imagehlp.lib",
  1322. - ]
  1323. -
  1324. - if (is_clang) {
  1325. - # clang complains about microsoft-specific goto extensions. Instead of
  1326. - # rewriting decade-old, goto-ridden code, disable the warning.
  1327. - cflags = [ "-Wno-microsoft-goto" ]
  1328. - }
  1329. - }
  1330. -
  1331. - executable("google_converter") {
  1332. - include_dirs = [
  1333. - "$visual_studio_path/DIA SDK/include",
  1334. - "breakpad/src",
  1335. - ]
  1336. -
  1337. - sources = [
  1338. - "breakpad/src/tools/windows/converter_exe/converter.cc",
  1339. - "breakpad/src/tools/windows/converter_exe/escaping.cc",
  1340. - "breakpad/src/tools/windows/converter_exe/escaping.h",
  1341. - "breakpad/src/tools/windows/converter_exe/http_download.cc",
  1342. - "breakpad/src/tools/windows/converter_exe/tokenizer.cc",
  1343. - "breakpad/src/tools/windows/converter_exe/winhttp_client.cc",
  1344. - "breakpad/src/tools/windows/converter_exe/wininet_client.cc",
  1345. - ]
  1346. -
  1347. - deps = [
  1348. - "//third_party/breakpad:common_windows",
  1349. - "//third_party/breakpad:ms_symbol_server_converter",
  1350. - ]
  1351. -
  1352. - ldflags = [
  1353. - "/DELAYLOAD:dbghelp.dll",
  1354. - "/DELAYLOAD:dwmapi.dll",
  1355. - "/DELAYLOAD:uxtheme.dll",
  1356. - ]
  1357. -
  1358. - lib_dirs = []
  1359. - if (current_cpu == "x64") {
  1360. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib/amd64" ]
  1361. - } else {
  1362. - lib_dirs += [ "$visual_studio_path/DIA SDK/lib" ]
  1363. - }
  1364. -
  1365. - libs = [
  1366. - "diaguids.lib",
  1367. - "imagehlp.lib",
  1368. - ]
  1369. -
  1370. - if (is_clang) {
  1371. - # clang complains about microsoft-specific goto extensions. Instead of
  1372. - # rewriting decade-old, goto-ridden code, disable the warning.
  1373. - cflags = [ "-Wno-microsoft-goto" ]
  1374. - }
  1375. - }
  1376. - } else {
  1377. - # handle dump_syms appropriately for Windows cross build when necessary,
  1378. - # such as symlinking.
  1379. - }
  1380. -}
  1381. -
  1382. -if (is_ios) {
  1383. - static_library("client") {
  1384. - sources = [
  1385. - "breakpad/src/client/ios/Breakpad.h",
  1386. - "breakpad/src/client/ios/Breakpad.mm",
  1387. - "breakpad/src/client/ios/BreakpadController.h",
  1388. - "breakpad/src/client/ios/BreakpadController.mm",
  1389. - "breakpad/src/client/ios/handler/ios_exception_minidump_generator.h",
  1390. - "breakpad/src/client/ios/handler/ios_exception_minidump_generator.mm",
  1391. - "breakpad/src/client/mac/crash_generation/ConfigFile.h",
  1392. - "breakpad/src/client/mac/crash_generation/ConfigFile.mm",
  1393. - "breakpad/src/client/mac/handler/breakpad_nlist_64.cc",
  1394. - "breakpad/src/client/mac/handler/breakpad_nlist_64.h",
  1395. - "breakpad/src/client/mac/handler/dynamic_images.cc",
  1396. - "breakpad/src/client/mac/handler/dynamic_images.h",
  1397. - "breakpad/src/client/mac/handler/exception_handler.cc",
  1398. - "breakpad/src/client/mac/handler/exception_handler.h",
  1399. - "breakpad/src/client/mac/handler/minidump_generator.cc",
  1400. - "breakpad/src/client/mac/handler/minidump_generator.h",
  1401. - "breakpad/src/client/mac/handler/protected_memory_allocator.cc",
  1402. - "breakpad/src/client/mac/handler/protected_memory_allocator.h",
  1403. - "breakpad/src/client/mac/sender/uploader.h",
  1404. - "breakpad/src/client/mac/sender/uploader.mm",
  1405. - "breakpad/src/client/minidump_file_writer-inl.h",
  1406. - "breakpad/src/client/minidump_file_writer.cc",
  1407. - "breakpad/src/client/minidump_file_writer.h",
  1408. - "breakpad/src/common/convert_UTF.cc",
  1409. - "breakpad/src/common/convert_UTF.h",
  1410. - "breakpad/src/common/long_string_dictionary.cc",
  1411. - "breakpad/src/common/mac/HTTPMultipartUpload.m",
  1412. - "breakpad/src/common/mac/HTTPRequest.m",
  1413. - "breakpad/src/common/mac/encoding_util.m",
  1414. - "breakpad/src/common/mac/file_id.cc",
  1415. - "breakpad/src/common/mac/file_id.h",
  1416. - "breakpad/src/common/mac/macho_id.cc",
  1417. - "breakpad/src/common/mac/macho_id.h",
  1418. - "breakpad/src/common/mac/macho_utilities.cc",
  1419. - "breakpad/src/common/mac/macho_utilities.h",
  1420. - "breakpad/src/common/mac/macho_walker.cc",
  1421. - "breakpad/src/common/mac/macho_walker.h",
  1422. - "breakpad/src/common/mac/string_utilities.cc",
  1423. - "breakpad/src/common/mac/string_utilities.h",
  1424. - "breakpad/src/common/md5.cc",
  1425. - "breakpad/src/common/md5.h",
  1426. - "breakpad/src/common/simple_string_dictionary.cc",
  1427. - "breakpad/src/common/simple_string_dictionary.h",
  1428. - "breakpad/src/common/string_conversion.cc",
  1429. - "breakpad/src/common/string_conversion.h",
  1430. - "breakpad/src/google_breakpad/common/minidump_format.h",
  1431. - ]
  1432. -
  1433. - include_dirs = [
  1434. - "breakpad/src",
  1435. - "breakpad/src/client/mac/Framework",
  1436. - "breakpad/src/common/mac",
  1437. - ]
  1438. -
  1439. - public_configs = [ ":client_config" ]
  1440. -
  1441. - if (is_clang) {
  1442. - # See https://crbug.com/google-breakpad/675.
  1443. - cflags = [ "-Wno-deprecated-declarations" ]
  1444. - }
  1445. - }
  1446. -}
  1447. -
  1448. -if (is_win) {
  1449. - group("client") {
  1450. - public_configs = [ ":client_config" ]
  1451. - }
  1452. -
  1453. - config("breakpad_handler_warnings") {
  1454. - if (is_clang) {
  1455. - # See https://crbug.com/google-breakpad/658.
  1456. - cflags = [ "-Wno-reorder" ]
  1457. - }
  1458. - }
  1459. -
  1460. - static_library("breakpad_handler") {
  1461. - configs += [ ":handler_config" ]
  1462. - if (is_win) {
  1463. - public_configs = [ ":handler_config" ]
  1464. - }
  1465. -
  1466. - defines = [ "BREAKPAD_NO_TERMINATE_THREAD" ]
  1467. -
  1468. - sources = [
  1469. - "breakpad/src/client/windows/crash_generation/client_info.cc",
  1470. - "breakpad/src/client/windows/crash_generation/client_info.h",
  1471. - "breakpad/src/client/windows/crash_generation/crash_generation_client.cc",
  1472. - "breakpad/src/client/windows/crash_generation/crash_generation_client.h",
  1473. - "breakpad/src/client/windows/crash_generation/crash_generation_server.cc",
  1474. - "breakpad/src/client/windows/crash_generation/crash_generation_server.h",
  1475. - "breakpad/src/client/windows/crash_generation/minidump_generator.cc",
  1476. - "breakpad/src/client/windows/crash_generation/minidump_generator.h",
  1477. - "breakpad/src/client/windows/handler/exception_handler.cc",
  1478. - "breakpad/src/client/windows/handler/exception_handler.h",
  1479. - "breakpad/src/common/windows/guid_string.cc",
  1480. - "breakpad/src/common/windows/guid_string.h",
  1481. - "breakpad/src/common/windows/string_utils-inl.h",
  1482. - "breakpad/src/google_breakpad/common/minidump_format.h",
  1483. - ]
  1484. - configs += [ ":breakpad_handler_warnings" ]
  1485. - }
  1486. -
  1487. - source_set("breakpad_sender") {
  1488. - sources = [
  1489. - "breakpad/src/client/windows/sender/crash_report_sender.cc",
  1490. - "breakpad/src/client/windows/sender/crash_report_sender.h",
  1491. - "breakpad/src/common/windows/http_upload.cc",
  1492. - "breakpad/src/common/windows/http_upload.h",
  1493. - "breakpad/src/common/windows/string_utils-inl.h",
  1494. - ]
  1495. - configs += [ ":sender_config" ]
  1496. - public_configs = [ ":sender_config" ]
  1497. - }
  1498. -}
  1499. diff --git a/tools/perf/chrome_telemetry_build/BUILD.gn b/tools/perf/chrome_telemetry_build/BUILD.gn
  1500. index 2d6c25ea2d0bb..1aaf0b2ce3d66 100644
  1501. --- a/tools/perf/chrome_telemetry_build/BUILD.gn
  1502. +++ b/tools/perf/chrome_telemetry_build/BUILD.gn
  1503. @@ -46,8 +46,6 @@ group("telemetry_chrome_test") {
  1504. }
  1505. if (is_linux || is_chromeos) {
  1506. - data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
  1507. -
  1508. # CrOS currently has issues with the locally compiled version of
  1509. # crashpad_database_util, so only include it on traditional Linux
  1510. # platforms.
  1511. @@ -61,7 +59,6 @@ group("telemetry_chrome_test") {
  1512. data_deps += [
  1513. "//chrome:chrome_framework",
  1514. "//chrome:chrome_helper_app_default",
  1515. - "//third_party/breakpad:dump_syms",
  1516. "//third_party/crashpad/crashpad/tools:crashpad_database_util",
  1517. ]
  1518. }
  1519. @@ -211,20 +208,6 @@ group("telemetry_chrome_test_without_chrome") {
  1520. "//tools/metrics:metrics_python_tests",
  1521. ]
  1522. - # Cr-Fuchsia doesn't support breakpad.
  1523. - if (!is_win && !is_fuchsia) {
  1524. - data_deps += [
  1525. - # This is defined for Windows, but is unused by Telemetry on
  1526. - # Windows, and including it can have issues when cross-compiling
  1527. - # for Arm-based Windows.
  1528. - "//third_party/breakpad:dump_syms",
  1529. -
  1530. - # These explicitly not defined for Windows builds in Breakpad.
  1531. - "//third_party/breakpad:minidump_dump",
  1532. - "//third_party/breakpad:minidump_stackwalk",
  1533. - ]
  1534. - }
  1535. -
  1536. if (is_mac) {
  1537. data += [
  1538. # Required for the hermetic otool binary, which is required for
  1539. --
  1540. 2.25.1