Custom Query (245 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (43 - 45 of 245)

Ticket Resolution Summary Owner Reporter
#68 fixed libc: getopt prototype clashes (getopt.h/unistd.h) bird bird
Description

getopt() is prototyped in different ways in getopt.h and unistd.h because of the different header origins (GLIBC and FreeBSD). The blocker used in unistd.h should be used in getopt.h too.

#69 fixed libc: basename & dirname return incorrect results for paths with drive bird bird
Description

Tittle says it all. Created smoketest basename-dirname-1.c.

#70 fixed Demangle function names for omf debug info bird Yuri Dario
Description

This code is courtesy of froloff and slightly modified by me.

Index: emxomf.smak
===================================================================
--- emxomf.smak	(revision 2592)
+++ emxomf.smak	(working copy)
@@ -8,6 +8,7 @@
 .TSRC	:= $(addprefix src/emxomf/,emxomf.c stabshll.c grow.c)
 .TCF	:= $(CFLAGS.DEF.VERSION)
 .TDEP	:= @O@libomflib$A
+.TLDF	:= -liberty
 include mkexe.smak
 
 .TARGET	:= emxomfar.exe
Index: stabshll.c
===================================================================
--- stabshll.c	(revision 2592)
+++ stabshll.c	(working copy)
@@ -35,6 +35,7 @@
 #include "grow.h"
 #include "stabshll.h"
 
+#include <demangle.h>
 
 /*******************************************************************************
 *   Defined Constants And Macros                                               *
@@ -3325,8 +3326,18 @@
     abort ();
   n = p - str;
 
-  /** @todo name demangling */
-  name = strpool_addn (str_pool, str, n);
+  {
+     char mangled[1024];
+     char* demangled;
+     memcpy(mangled, str, n);
+     mangled[n]= '\0';
+     demangled = cplus_demangle (mangled, DMGL_ANSI | DMGL_PARAMS);
+     if (demangled != NULL)
+      name = strpool_addn (str_pool, demangled, strlen(demangled));
+    else
+      name = strpool_addn (str_pool, str, n);
+  }
+
   proc_start_addr = symbol->n_value;
 
   /* now let's see if there is a memfunc for this name. */

Note: See TracQuery for help on using queries.