vim-unstack icon indicating copy to clipboard operation
vim-unstack copied to clipboard

Cannot deal inline frames in gdb

Open theidexisted opened this issue 6 years ago • 3 comments

HI, I have found another bug while unstack gdb call stacks, with this input:

#5  0x00007f2a68255269 in Lock (Section=..., this=<synthetic pointer>) at /var/lib/Section.h:49
#6  Job::Pausing (this=0x9f1cfbe0) at /var/libJob.cpp:3661
#7  0x00007f2a6e15dfc7 in Task::Run() () at /var/lib/nTask.cpp:218

Frame 6 will be omitted in the result.

theidexisted avatar Aug 20 '19 09:08 theidexisted

I will look into adding support for these patterns by default with Unstack, but in the meantime, you are welcome to fix this in your config by adding the following line to your vimrc:

let g:unstack_extractors = unstack#extractors#GetDefaults() + [unstack#extractors#Regex('\v^.* at ([^"]+):([0-9]+)$', '\1', '\2')]

Thanks for reporting!

mattboehm avatar Aug 20 '19 16:08 mattboehm

Thanks for so quick response, I have another question:

How to config vim-unstack to use quick-fix window only, I often have very deep call stacks and the default behavior have too many split windows, it's not easy on the eyes, so I don't want to see them.

theidexisted avatar Aug 21 '19 01:08 theidexisted

I have tried as you suggest, but it doesn't work. I have confirmed that your regex pattern \v^.* at ([^"]+):([0-9]+)$ is able to match the string, but it does not show in the result, it's so strange.

theidexisted avatar Aug 21 '19 02:08 theidexisted