Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc: debug.sh with custom command & argv? #511

Closed
DanielTimLee opened this issue Sep 18, 2018 · 0 comments
Closed

Misc: debug.sh with custom command & argv? #511

DanielTimLee opened this issue Sep 18, 2018 · 0 comments

Comments

@DanielTimLee
Copy link
Contributor

Current debug.sh runs gdb by using debug-mcount.cmd, and it only opens tests/t-abc command which is hardcoded.

debug-mcount.cmd

r record -L. -d xxx --keep-pid --force tests/t-abc

How about enhancing debug.sh by allowing custom commands and arguments?

(pre) sh misc/debug.sh
(post) sh misc/debug.sh tests/t-fibonacci 5

DanielTimLee added a commit to DanielTimLee/uftrace that referenced this issue Sep 19, 2018
This commit allows using custom command & argv with debug.sh

Example:
    sh misc/debug.sh tests/t-fibonacci 5

If no arguments are passed to debug.sh, it defaults to tests/t-abc.

Fixed: namhyung#511

Signed-off-by: Daniel T. Lee <[email protected]>
namhyung pushed a commit that referenced this issue Sep 19, 2018
This commit allows using custom command & argv with debug.sh

Example:
    sh misc/debug.sh tests/t-fibonacci 5

If no arguments are passed to debug.sh, it defaults to tests/t-abc.

Fixed: #511

Signed-off-by: Daniel T. Lee <[email protected]>
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

No branches or pull requests

1 participant