You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, the informations located in the siginfo_t structure are not used by this handler.
The bad effect is that when g3log is compiled with some optimisation flags, those data are not available to be inspected with the debugger because they are drop away.
In some situation, it is good to know the si_code provided by the system or the faulty address.
Describe the solution you'd like
By printing some more information like info.si_code and info.si_errno in the backtrace's output, we can save time and be able to access the other siginfo_t informations with the debugger.
Describe alternatives you've considered
I consider the possibility to not use this signal handler and write a custom one.
The needed modifications to have signalHandler() provide these siginfo_t informations are really minors and IMHO those informations can be useful to someone else.
The text was updated successfully, but these errors were encountered:
By using some informations located in siginfo_t for tracing,
it remain accessible to be inspected by debugger even if the
code compiled with optimisation flags (typically -O2).
By using some informations located in siginfo_t for tracing,
it remain accessible to be inspected by debugger even if the
code compiled with optimisation flags (typically -O2).
Is your feature request related to a problem? Please describe.
Currently, the informations located in the
siginfo_t
structure are not used by this handler.The bad effect is that when g3log is compiled with some optimisation flags, those data are not available to be inspected with the debugger because they are drop away.
In some situation, it is good to know the si_code provided by the system or the faulty address.
Describe the solution you'd like
By printing some more information like
info.si_code
andinfo.si_errno
in the backtrace's output, we can save time and be able to access the othersiginfo_t
informations with the debugger.Describe alternatives you've considered
I consider the possibility to not use this signal handler and write a custom one.
The needed modifications to have
signalHandler()
provide thesesiginfo_t
informations are really minors and IMHO those informations can be useful to someone else.The text was updated successfully, but these errors were encountered: