[pacman-dev] [PATCH] use the default visibility attribute when debugging is enabled, i.e. all symbols will be visible
Barbu Paul - Gheorghe
barbu.paul.gheorghe at gmail.com
Wed Aug 1 14:34:16 EDT 2012
On 08/01/2012 09:03 PM, Dan McGee wrote:
> Why would we want to do this? This could lead to a situation where one
> makes a production build and breaks an application because a symbol
> that was available during development disappears.
Well, I tought that this would come in handy when debugging, because one can set
break points at the and in the "private" functions too (of course they aren't
private now that -fvisibility will be default if debugging is enabled).
I needed this when trying to understand how parts of libalpm worked and had to
break at a "public" function then carefully use "next" and "step" in gdb to
reach the desired point.
Concerning the release vs the development build ... the programmer coudl always
run the tests in order to see if something went wrong.
This is the reasoning behind the patch, sorry for my lack of communication, I'll
be careful in the future.
Have a nice day!
--
Barbu Paul - Gheorghe
Common sense is not so common - Voltaire
Visit My GitHub profile to see my open-source projects - https://github.com/paullik
More information about the pacman-dev
mailing list