Closed Bug 993243 Opened 12 years ago Closed 11 years ago

Add a parameter to "mach debug" to specify the debugger to launch

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla31

People

(Reporter: roc, Assigned: roc)

References

Details

Attachments

(1 file)

This will make rr a bit easier to use with mach.
Attached patch fixSplinter Review
I don't understand why "mach debug" takes parameters of the form "+foobar" while other commands take parameters of the form "--foobar".
Attachment #8403049 - Flags: review?(gps)
Comment on attachment 8403049 [details] [diff] [review] fix Review of attachment 8403049 [details] [diff] [review]: ----------------------------------------------------------------- The +args are because of some interaction between the Python argument parsing trying to interpret the arguments passed to Firefox e.g. -no-remote. I /think/ there is a better way to handle it. It might also be a mach issue. Patches welcome.
Attachment #8403049 - Flags: review?(gps) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Comment on attachment 8403049 [details] [diff] [review] fix Review of attachment 8403049 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/mach_commands.py @@ +847,5 @@ > > + if use_gdb: > + args.append('--args') > + elif use_lldb: > + args.append('--') If both gdb and lldb are installed on the system, user might want to pass either +debugger gdb or +debugger lldb. In this way, args will not be set properly.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: