Closed Bug 875126 Opened 7 years ago Closed 6 years ago

Make cgdb an option for mach --debugger

Categories

(Firefox Build System :: General, enhancement)

x86_64
Linux
enhancement
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: grobinson, Assigned: grobinson)

Details

Attachments

(1 file)

mach --debugger makes debugging mochitests extremely convenient. Unfortunately the list of accepted debuggers (DEBUGGER_INFO in build/automationutils.py) does not include cgdb, an excellent frontend to gdb with completely compatible arguments. cgdb is especially useful on Mac OS X, where the GDB provided by the system is not built with the helpful TUI interface.
Assignee: nobody → grobinson
Status: NEW → ASSIGNED
Attached patch Patch 1Splinter Review
Adds an entry for cgdb to DEBUGGER_INFO. Now you can run mochitests with cgdb attached with

    mach mochitest-x --debugger=cgdb /patch/to/mochitest
Attachment #753013 - Flags: review?(gps)
Comment on attachment 753013 [details] [diff] [review]
Patch 1

This belongs in the land of automation. This looks sane to me, but I'm not familiar with the impact of modifying this file. Should be a quick rubber stamp by Ted.

And sorry for the high latency - I was on vacation for 2 weeks!
Attachment #753013 - Flags: review?(gps) → review?(ted)
Attachment #753013 - Flags: review?(ted) → review+
No worries, gps! Thanks for the r+, Ted.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/a4d5dc4a4c36
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.