File eclipse-ptp-gcc15.patch of Package eclipse-ptp

--- a/core/org.eclipse.ptp.utils/include/list.h	2025-09-10 07:53:40.055014178 +0200
+++ b/core/org.eclipse.ptp.utils/include/list.h	2025-09-10 08:46:50.722989610 +0200
@@ -43,7 +43,7 @@
 extern void		InsertBefore(List *l, void *val, void *new_val);
 extern void		RemoveFromList(List *, void *);
 extern void *	RemoveFirst(List *);
-extern void		DestroyList(List *, void (*)());
+extern void		DestroyList(List *, void (*)(void *));
 extern void		SetList(List *);
 extern void *	GetListElement(List *);
 extern void *	GetFirstElement(List *);
--- a/core/org.eclipse.ptp.utils/src/list.c	2025-09-10 07:53:40.055557049 +0200
+++ b/core/org.eclipse.ptp.utils/src/list.c	2025-09-10 08:54:31.966900613 +0200
@@ -265,7 +265,7 @@
  * Destroy list and its contents
  */
 void		
-DestroyList(List *l, void (*destroy)())
+DestroyList(List *l, void (*destroy)(void *))
 {
 	ListElement *	ep;
 	ListElement *	en;
@@ -281,7 +281,7 @@
 	{
 		en = ep->l_next;
 
-		if ( destroy != (void (*)())NULL )
+		if ( destroy != (void (*)(void *))NULL )
 			destroy(ep->l_value);
 
 		free(ep);
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIDisassembly.c	2025-09-10 07:53:40.076780265 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIDisassembly.c	2025-09-10 08:41:22.488219026 +0200
@@ -81,7 +81,7 @@
 MIDataReadDisassemblyInfoFree(MIDataReadDisassemblyInfo *info)
 {
 	if (info->asm_insns != NULL)
-		MIListFree(info->asm_insns, MIDisassemblyInfoFree);
+		MIListFree(info->asm_insns, (void (*)(void *))MIDisassemblyInfoFree);
 	free(info);
 }
 
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIFrame.c	2025-09-10 07:53:40.076934880 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIFrame.c	2025-09-10 08:28:18.553919422 +0200
@@ -60,7 +60,7 @@
 	if (frame->file != NULL)
 		free(frame->file);
 	if (frame->args != NULL)
-		MIListFree(frame->args, MIArgFree);
+		MIListFree(frame->args, (void (*)(void *))MIArgFree);
 	free(frame);
 }
 
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIList.c	2025-09-10 07:53:40.077005212 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIList.c	2025-09-10 08:32:16.035859452 +0200
@@ -233,7 +233,7 @@
  * Destroy list and its contents
  */
 void		
-MIListFree(MIList *l, void (*destroy)())
+MIListFree(MIList *l, void (*destroy)(void *))
 {
 	MIListElement *	ep;
 	MIListElement *	en;
@@ -247,7 +247,7 @@
 	{
 		en = ep->l_next;
 
-		if ( destroy != (void (*)())NULL )
+		if ( destroy != (void (*)(void *))NULL )
 			destroy(ep->l_value);
 
 		free(ep);
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIList.h	2025-09-10 07:53:40.077043393 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIList.h	2025-09-10 07:54:09.668620455 +0200
@@ -43,7 +43,7 @@
 extern void		MIListInsertBefore(MIList *l, void *val, void *new_val);
 extern void		MIListRemove(MIList *, void *);
 extern void *	MIListRemoveFirst(MIList *);
-extern void		MIListFree(MIList *, void (*)());
+extern void		MIListFree(MIList *, void (*)(void *));
 extern void		MIListSet(MIList *);
 extern void *	MIListGet(MIList *);
 extern void *	MIListGetFirstElement(MIList *);
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIMemory.c	2025-09-10 07:53:40.077077980 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIMemory.c	2025-09-10 08:33:57.076612653 +0200
@@ -112,7 +112,7 @@
 	if (memoryInfo->addr != NULL)
 		free(memoryInfo->addr);
 	if (memoryInfo->memories != NULL)
-		MIListFree(memoryInfo->memories, MIMemoryFree);
+		MIListFree(memoryInfo->memories, (void (*)(void *))MIMemoryFree);
 	free(memoryInfo);
 }
 
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIOOBRecord.c	2025-09-10 07:53:40.077152045 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIOOBRecord.c	2025-09-10 08:35:43.077537923 +0200
@@ -99,7 +99,7 @@
 MIOOBRecordFree(MIOOBRecord *oob)
 {
 	if (oob->results != NULL)
-		MIListFree(oob->results, MIResultFree);
+		MIListFree(oob->results, (void (*)(void *))MIResultFree);
 	if (oob->class != NULL)
 		free(oob->class);
 	if (oob->cstring != NULL)
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIOutput.c	2025-09-10 07:53:40.077196155 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIOutput.c	2025-09-10 08:37:18.254290835 +0200
@@ -46,6 +46,6 @@
 	if (op->rr != NULL)
 		MIResultRecordFree(op->rr);
 	if (op->oobs != NULL)
-		MIListFree(op->oobs, MIOOBRecordFree);
+		MIListFree(op->oobs, (void (*)(void *))MIOOBRecordFree);
 	free(op);
 }
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIResultRecord.c	2025-09-10 07:53:40.077339772 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIResultRecord.c	2025-09-10 08:39:13.127088831 +0200
@@ -89,6 +89,6 @@
 MIResultRecordFree(MIResultRecord *rr)
 {
 	if (rr->results != NULL)
-		MIListFree(rr->results, MIResultFree);
+		MIListFree(rr->results, (void (*)(void *))MIResultFree);
 	free(rr);
 }
--- a/debug/org.eclipse.ptp.debug.sdm/libmi/MIValue.c	2025-09-10 07:53:40.077620490 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/libmi/MIValue.c	2025-09-10 08:44:15.753753417 +0200
@@ -157,8 +157,8 @@
 	if (v->cstring != NULL)
 		free(v->cstring);
 	if (v->results != NULL)
-		MIListFree(v->results, MIResultFree);
+		MIListFree(v->results, (void (*)(void *))MIResultFree);
 	if (v->values != NULL)
-		MIListFree(v->values, MIValueFree);
+		MIListFree(v->values, (void (*)(void *))MIValueFree);
 	free(v);
 }
--- a/debug/org.eclipse.ptp.debug.sdm/src/server/gdbmi_backend.c	2025-09-10 07:53:40.079137596 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/server/gdbmi_backend.c	2025-09-10 09:13:15.256463748 +0200
@@ -539,7 +539,7 @@
 	 */
 	if (isTemp) {
 		SaveEvent(NewDbgEvent(DBGEV_OK));
-		MIListFree(bpts, MIBreakpointFree);
+		MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 		return DBGRES_OK;
 	}
 
@@ -548,7 +548,7 @@
 	e->dbg_event_u.bpset_event.bp = ConvertMIBreakpoint(bpt);
 	SaveEvent(e);
 
-	MIListFree(bpts, MIBreakpointFree);
+	MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 	return DBGRES_OK;
 }
 
@@ -765,7 +765,7 @@
 	e->dbg_event_u.bpset_event.bp = bp;
 	SaveEvent(e);
 
-	MIListFree(bpts, MIBreakpointFree);
+	MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 
 	return DBGRES_OK;
 }
@@ -981,7 +981,7 @@
 		AddToList(e->dbg_event_u.list, (void *)strdup(arg->name));
 	}
 
-	MIListFree(args, MIArgFree);
+	MIListFree(args, (void (*)(void *))MIArgFree);
 
 	SaveEvent(e);
 
@@ -1036,7 +1036,7 @@
 		}
 #endif /* GDB_BUG_2188 */
 	}
-	MIListFree(frames, MIFrameFree);
+	MIListFree(frames, (void (*)(void *))MIFrameFree);
 	SaveEvent(e);
 
 	return DBGRES_OK;
@@ -1276,7 +1276,7 @@
 		AddToList(e->dbg_event_u.list, s);
 	}
 	SaveEvent(e);
-	MIListFree(signals, MISignalInfoFree);
+	MIListFree(signals, (void (*)(void *))MISignalInfoFree);
 
 	return DBGRES_OK;
 }
--- a/debug/org.eclipse.ptp.debug.sdm/src/utils/event.c	2025-09-10 07:53:40.079522716 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/utils/event.c	2025-09-10 08:51:22.901344138 +0200
@@ -446,7 +446,7 @@
 
 	for (i = 0; i < count; i++) {
 		if (dbg_str_to_stackframe(args, nargs, &sf) < 0) {
-			DestroyList(*lst, FreeStackframe);
+			DestroyList(*lst, (void (*)(void *))FreeStackframe);
 			return -1;
 		}
 		AddToList(*lst, (void *)sf);
@@ -469,7 +469,7 @@
 
 	for (i = 0; i < count; i++) {
 		if (dbg_str_to_signalinfo(args, nargs, &sig) < 0) {
-			DestroyList(*lst, FreeMemory);
+			DestroyList(*lst, (void (*)(void *))FreeMemory);
 			return -1;
 		}
 		AddToList(*lst, (void *)sig);
@@ -567,7 +567,7 @@
 		if (dbg_copy_str(args, nargs, &m->addr) < 0 ||
 			dbg_copy_str(args, nargs, &m->ascii) < 0 ||
 			dbg_str_to_memory_data(args, nargs, &m->data) < 0) {
-				DestroyList(*lst, FreeMemory);
+				DestroyList(*lst, (void (*)(void *))FreeMemory);
 				return -1;
 		}
 		AddToList(*lst, (void *)m);
@@ -808,7 +808,7 @@
 
 	case DBGEV_FRAMES:
 		if (e->dbg_event_u.list != NULL) {
-			DestroyList(e->dbg_event_u.list, FreeStackframe);
+			DestroyList(e->dbg_event_u.list, (void (*)(void *))FreeStackframe);
 		}
 		break;
 
@@ -857,7 +857,7 @@
 
 	case DBGEV_SIGNALS:
 		if (e->dbg_event_u.list != NULL) {
-			DestroyList(e->dbg_event_u.list, FreeSignalInfo);
+			DestroyList(e->dbg_event_u.list, (void (*)(void *))FreeSignalInfo);
 		}
 		break;
 
--- a/debug/org.eclipse.ptp.debug.sdm/src/utils/gdb_mi.c	2025-09-10 07:53:40.079589146 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/utils/gdb_mi.c	2025-09-10 09:00:28.041585390 +0200
@@ -193,7 +193,7 @@
 			DeleteMIVar(session, var->name);
 		}
 	}
-	MIListFree(changes, MIVarChangeFree);
+	MIListFree(changes, (void (*)(void *))MIVarChangeFree);
 	return changedVars;
 }
 
@@ -262,7 +262,7 @@
 	for (MIListSet(frames); (f = (MIFrame *)MIListGet(frames)) != NULL; ) {
 		AddToList(*flist, (void *)ConvertMIFrame(f));
 	}
-	MIListFree(frames, MIFrameFree);
+	MIListFree(frames, (void (*)(void *))MIFrameFree);
 	return DBGRES_OK;
 }
 
--- a/debug/org.eclipse.ptp.debug.sdm/src/utils/memoryinfo.c	2025-09-10 07:53:40.079641666 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/utils/memoryinfo.c	2025-09-10 08:56:39.447825744 +0200
@@ -47,7 +47,7 @@
 	if (meminfo->addr != NULL)
 		free(meminfo->addr);
 	if (meminfo->memories != NULL)
-		DestroyList(meminfo->memories, FreeMemory);
+		DestroyList(meminfo->memories, (void (*)(void *))FreeMemory);
 	free(meminfo);
 }
 
--- a/debug/org.eclipse.ptp.debug.sdm/src/utils/threadmap.c	2025-09-10 07:53:40.079712085 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/utils/threadmap.c	2025-09-10 08:48:01.884546188 +0200
@@ -110,7 +110,7 @@
 			map->step_nop = 0;
 			if (NULL == map->stackframes)
 			{
-				DestroyList(map->stackframes, FreeStackframe);
+				DestroyList(map->stackframes, (void (*)(void *))FreeStackframe);
 				map->stackframes = NULL;
 			}
 			_thread_map.nels--;
@@ -159,7 +159,7 @@
 		map->step_nop = 0;
 		if (NULL == map->stackframes)
 		{
-			DestroyList(map->stackframes, FreeStackframe);
+			DestroyList(map->stackframes, (void (*)(void *))FreeStackframe);
 			map->stackframes = NULL;
 		}
 		_thread_map.nels--;
--- a/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_gdbmi_backend.c	2025-09-10 07:53:40.079879524 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_gdbmi_backend.c	2025-09-10 09:05:54.189831279 +0200
@@ -297,7 +297,7 @@
 		AddBPMap(bpt->number, remoteID, isTemp);
 	}
 
-	MIListFree(bpts, MIBreakpointFree);
+	MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 
 	return DBGRES_OK;
 }
@@ -845,7 +845,7 @@
 	 */
 	if (isTemp) {
 		SaveEvent(NewDbgEvent(DBGEV_OK));
-		MIListFree(bpts, MIBreakpointFree);
+		MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 		return DBGRES_OK;
 	}
 
@@ -854,7 +854,7 @@
 	e->dbg_event_u.bpset_event.bp = ConvertMIBreakpoint(bpt);
 	SaveEvent(e);
 
-	MIListFree(bpts, MIBreakpointFree);
+	MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 	return DBGRES_OK;
 }
 
@@ -1071,7 +1071,7 @@
 	e->dbg_event_u.bpset_event.bp = bp;
 	SaveEvent(e);
 
-	MIListFree(bpts, MIBreakpointFree);
+	MIListFree(bpts, (void (*)(void *))MIBreakpointFree);
 
 	return DBGRES_OK;
 }
@@ -1207,15 +1207,15 @@
 
 	//If no mapping is found within all frames, then add them all.
 	if(mappingFound == 0) {
-		DestroyList(*flist, FreeStackframe);
+		DestroyList(*flist, (void (*)(void *))FreeStackframe);
 		*flist = tmpList;
 	}
 	else {
-		DestroyList(tmpList, FreeStackframe);
+		DestroyList(tmpList, (void (*)(void *))FreeStackframe);
 	}
 	
 		
-	MIListFree(frames, MIFrameFree);
+	MIListFree(frames, (void (*)(void *))MIFrameFree);
 
 	//We need to update the level properly since some of the stack frames are filtered out.
 	i = 0;
@@ -1665,7 +1665,7 @@
 		if (NULL != thisThreadEntry) {
 			if (threadID != Current_Thread_id && NULL != thisThreadEntry->stackframes) {
 				//the stack information is not valid any more.
-				DestroyList(thisThreadEntry->stackframes, FreeStackframe);
+				DestroyList(thisThreadEntry->stackframes, (void (*)(void *))FreeStackframe);
 				thisThreadEntry->stackframes = NULL;
 			}
 		}
@@ -1888,7 +1888,7 @@
 		AddToList(e->dbg_event_u.list, s);
 	}
 	SaveEvent(e);
-	MIListFree(signals, MISignalInfoFree);
+	MIListFree(signals, (void (*)(void *))MISignalInfoFree);
 
 	return DBGRES_OK;
 }
@@ -1962,7 +1962,7 @@
 	if (NULL != currentThreadEntry) {
 		//Update the stack of this thread entry with the new value.
 		if (NULL != currentThreadEntry->stackframes) {
-			DestroyList(currentThreadEntry->stackframes, FreeStackframe);
+			DestroyList(currentThreadEntry->stackframes, (void (*)(void *))FreeStackframe);
 		}
 		currentThreadEntry->stackframes = stackframes;
 	}
@@ -2171,7 +2171,7 @@
 		DisassemblyInfo *assemble = (DisassemblyInfo *)GetListElement(assembles);
 		if (0 == strcmp(assemble->inst, "nop")) {
 			//this is the nop instruction we are stopping.  Need to issue a -exec-step-instruction
-			DestroyList(assembles, FreeDisassemblyInfo);
+			DestroyList(assembles, (void (*)(void *))FreeDisassemblyInfo);
 			if (NULL != threadEntry) {
 				threadEntry->step_nop = 1;
 			}
@@ -2180,7 +2180,7 @@
 			}
 			return internalStepInstruction();
 		}
-		DestroyList(assembles, FreeDisassemblyInfo);
+		DestroyList(assembles, (void (*)(void *))FreeDisassemblyInfo);
 		
 		if (evt->frame != NULL) {
 			frame = X10ConvertMIFrameToStackframe(evt->frame, NULL);
--- a/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_metadebug_info_map.c	2025-09-10 07:53:40.079929435 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_metadebug_info_map.c	2025-09-10 09:09:56.919502747 +0200
@@ -1848,7 +1848,7 @@
  */
 void ClearMetaDebugInfoMaps()
 {
-	DestroyList(X10_MetaDebugInfoList, freeMetaDebugInfoMap);
+	DestroyList(X10_MetaDebugInfoList, (void (*)(void *))freeMetaDebugInfoMap);
 }
 
 
--- a/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_var.c	2025-09-10 07:53:40.079981677 +0200
+++ b/debug/org.eclipse.ptp.debug.sdm/src/x10/x10_var.c	2025-09-10 09:07:39.165554162 +0200
@@ -43,7 +43,7 @@
 	}
 
 	if (NULL != var->children) {
-		DestroyList(var->children, X10VarFree);
+		DestroyList(var->children, (void (*)(void *))X10VarFree);
 	}
 	
 	free(var);
openSUSE Build Service is sponsored by