-
Notifications
You must be signed in to change notification settings - Fork 347
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
Print more information on non fatal warnings #1578
base: master
Are you sure you want to change the base?
Conversation
Make non fatal warnings print the same one line of context that fatal ones do, eg: ../../src/ieee2008/numeric_std-body.vhdl:3036:7:@1102465ns:(assertion warning): NUMERIC_STD.TO_INTEGER: metavalue detected, returning 0 in process .core_tb(behave).soc0@soc(behaviour).processor@core(behave).icache_0@icache(rtl).itlb_update
I basically copied what the fatal error path does, I guess it should go into a common function. |
Isn't similar to the existing --backtrace-severity=LEVEL option ? Maybe it should be more advertized!
|
I did stumble over that option, but it gives me no output. I wonder if the backtracing isn't working:
but the assert path gives me a line of useful info:
I've tried the Fedora 33 version of ghdl as well as the |
@antonblanchard would you mind providing a minimal reproducer that illustrates the feature? Then, I'll test it on multiple distros (Debian, Ubuntu and Fedora). |
@eine this shows the issue I'm hitting: backtrace-test.tar.gz I try to use
My patch in this bug gives us one line of context, enough in this case to sort out what is going on:
|
@antonblanchard, I bet you did all your tests with LLVM backend. Running the tests with the three backends (Debian and Fedora) shows that According to |
Are there any comprehensible reasons to not use ˋ--with-backtraceˋ in container builds? Would be useful also ther, I think. |
Honestly, until today I was not aware that we were missing that feature. I knew libbacktrace was not used, but I thought it was only useful for debugging crashes. So, I agree, it'd be nice to add it. We need to find the package name and the location in each container, though. |
Make non fatal warnings print the same one line of context
that fatal ones do, eg: