util/debug: Cleanup/improve debug_symbol_name_dbghelp. 19/7119/1
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 24 Jun 2013 12:35:53 +0000 (13:35 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 25 Jun 2013 17:41:59 +0000 (18:41 +0100)
commit464c6949cb2998b80f4a2d70add99e6a7cf8c67d
tree4aae8d9206386c910740ef99ca8212dc97ede778
parenta26f834a39063b68466db62b154c6fe817f06008
util/debug: Cleanup/improve debug_symbol_name_dbghelp.

- use mgwhelp -- the successor for bfdhelp which does not have a hard
  dependency on BFD, and works on 64bits.
- use a macro instead of hand-typing to dispatch DbgHelp functions
- dump line numbers
- dump module names when symbols are not available
- support 64bits.
- add comments

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug_symbol.c