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

Issue 7003049: Break into the debugger if we have a stack dump and are currently debugging. (Closed)

Created:
9 years, 6 months ago by Sheridan Rawlins
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Break into the debugger if we have a stack dump and are currently debugging. While debugging browser tests, I noticed a few stackdumps fly by without catching them. This code snippet breaks into the debugger only when it's being debugged. BUG=None TEST=kill -ABRT your process while debugging and see if you catch in the debugger. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88750

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M base/process_util_posix.cc View 2 chunks +4 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Sheridan Rawlins
Hi, here's a little improvement to be able to debug tests which get crashes by ...
9 years, 6 months ago (2011-06-08 02:58:20 UTC) #1
brettw
I'll defer to Evan on this (I'll say LGTM to make commit bot happy if ...
9 years, 6 months ago (2011-06-10 05:30:08 UTC) #2
Evan Martin
I don't really get why this doesn't happen implicitly if you're using a debugger, but ...
9 years, 6 months ago (2011-06-10 16:39:04 UTC) #3
Sheridan Rawlins
Doesn't hit debugger because this interrupt calls exit() (and I think debugger only catches unhandled ...
9 years, 6 months ago (2011-06-10 23:02:58 UTC) #4
commit-bot: I haz the power
9 years, 6 months ago (2011-06-11 00:46:11 UTC) #5
Change committed as 88750

Powered by Google App Engine
This is Rietveld 408576698