Skip to content

Add config option to pass arguments to GDB#87

Merged
WebFreak001 merged 3 commits intoWebFreak001:masterfrom
Mrmaxmeier:add-gdbargs-config-option
Dec 11, 2016
Merged

Add config option to pass arguments to GDB#87
WebFreak001 merged 3 commits intoWebFreak001:masterfrom
Mrmaxmeier:add-gdbargs-config-option

Conversation

@Mrmaxmeier
Copy link
Copy Markdown
Contributor

Hey,
this PR adds a config option that can be used to pass arguments to GDB.
I'm using it to disable my .gdbinit file by setting gdbargs to ["-nx", "-x ~/.custom_gdbinit"] because my .gdbinit expects a real tty.
If you think a generic debugger_args option shared between all backends would be better though I'm open to push changes.

Copy link
Copy Markdown
Owner

@WebFreak001 WebFreak001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but having a more generic name like debugger_args as you suggested would have been better. Also please add that option to lldb and mago-mi too, its exactly the same as for gdb

@Mrmaxmeier Mrmaxmeier force-pushed the add-gdbargs-config-option branch from 2a55b56 to 5158fbe Compare December 11, 2016 20:27
@Mrmaxmeier Mrmaxmeier force-pushed the add-gdbargs-config-option branch from 5158fbe to c53c85e Compare December 11, 2016 20:39
Comment thread src/backend/mi2/mi2.ts

export class MI2 extends EventEmitter implements IBackend {
constructor(public application: string, public preargs: string[]) {
constructor(public application: string, public preargs: string[], public extraargs: string[]) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WebFreak001 I've updated MI2 to accept the additional arguments.

@WebFreak001
Copy link
Copy Markdown
Owner

ok thanks for the addition. Also thanks for fixing the travis build issue, I wasn't sure what was causing it when I upgraded typescript and wanted to fix it only later because I thought it was a problem with travis.

@WebFreak001 WebFreak001 merged commit d254399 into WebFreak001:master Dec 11, 2016
@Mrmaxmeier Mrmaxmeier deleted the add-gdbargs-config-option branch December 11, 2016 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants