Permalink
Browse files

print locally scoped functions also

For some reason when doing this initially I erroneously skipped static
functions.  Stop it.
  • Loading branch information...
richlowe committed Feb 19, 2012
1 parent 3e1f71c commit c39a5b5232a17436fd2d7291d0d11cd727324d38
Showing with 2 additions and 1 deletion.
  1. +2 −1 ctf2json.c
View
@@ -590,7 +590,8 @@ print_funcsym(ctf_file_t *fp, symtab_sym_t *ss, int firstp)
/* We only care about global functions */
if ((GELF_ST_TYPE(ss->ss_sym.st_info) != STT_FUNC) ||
- GELF_ST_BIND(ss->ss_sym.st_info) != STB_GLOBAL)
+ (GELF_ST_BIND(ss->ss_sym.st_info) != STB_GLOBAL &&
+ GELF_ST_BIND(ss->ss_sym.st_info) != STB_LOCAL))
return (0);
if (ctf_func_info(fp, ss->ss_indx, &finfo) == CTF_ERR) {

0 comments on commit c39a5b5

Please sign in to comment.