-
Notifications
You must be signed in to change notification settings - Fork 12
Resolve filenames in backtrace command
#54
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
Conversation
Save mapping when doing "load" command resolve filename in "backtrace" command
|
I should add a test case for this. |
jansorg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rocky Thank you very much!
This PR works well for my first use-case.
I may be too picky with quotes, but I've added a few code suggestions for quoting. Some were already in the code, I think.
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Co-authored-by: Joachim Ansorg <github@ja-dev.eu>
Good to hear! Thanks for the confirmation.
I appreciate the corrections. Let's get this as good as we can. |
* Make -S --style option work... And bump copyright * Resolve filenames in `backtrace` command (#54) * Resolve file paths in "backtrace" * Save mapping when doing the "load" command; resolve the filename in the "backtrace" command * Add a test for the "load" command --------- Co-authored-by: Joachim Ansorg <github@ja-dev.eu> * Save more file information from initial call... In particular, resolve the initial source directory and store that as _Dbg_init_dir. Resolve the name of main bash program and add that to canonicalized filenames. * Update bashdb.in Co-authored-by: Joachim Ansorg <github@ja-dev.eu> * Update lib/hook.sh Co-authored-by: Joachim Ansorg <github@ja-dev.eu> * Update bashdb.in Co-authored-by: Joachim Ansorg <github@ja-dev.eu> * Add more places we resolve/expand files In some cases though automatic file loading no longer happens. In particular, on "list" and "break" commands. * One more quoted statement. --------- Co-authored-by: rocky <rb@dustyfeet.com> Co-authored-by: R. Bernstein <rocky@users.noreply.github.com>
Save relative to absolute file name mapping when doing "load" command, and in the debugger callback hook .
Resolve file paths in "backtrace" command.