a2065: compilation fix

(using DECLARE_MEMORY_FUNCTIONS, added _lgeti, _wgeti prototypes)
Ah, thanks :) Turns out I had actually #ifdefed out the xfree in the source code, probably long ago before the debugger was even usable in FS-UAE.

The problem is that GCC don't like assigning const char* to char* (=error) unless -fpermissive is given, which is not a desirable option to use. Of course, one can cast to (char *) to override on a per-case basis, but in this case I think it is better to have it as const char * in the struct, and cast it *once* to (char*) when freeing:
		xfree ((char*) ms->newbank.name);

Still hackish of course, but better than many alternatives :)

I guess the proper way would be something like this:

diff --git a/fs-uae/src/debug.cpp b/fs-uae/src/debug.cpp
index 7898890..2b42201 100644
--- a/fs-uae/src/debug.cpp
+++ b/fs-uae/src/debug.cpp
@@ -2421,11 +2421,8 @@ static void memwatch_reset (void)
        }
        for (int i = 0; membank_stores[i].addr; i++) {
                struct membank_store *ms = &membank_stores[i];
-               xfree (ms->newbank.name);
+               uae_assert (ms->newbank.malloced_name != NULL);
+               xfree (ms->newbank.malloced_name);
                memset (ms, 0, sizeof (struct membank_store));
                ms->addr = NULL;
        }
@@ -2473,7 +2470,8 @@ static void memwatch_remap (uaecptr addr)
                newbank->xlateaddr = debug_xlate;
                newbank->wgeti = mode ? mmu_wgeti : debug_wgeti;
                newbank->lgeti = mode ? mmu_lgeti : debug_lgeti;
-               newbank->name = my_strdup (tmp);
+               newbank->malloced_name = my_strdup (tmp);
+               newbank->name = newbank->malloced_name;
                if (!newbank->mask)
                        newbank->mask = -1;
        }
diff --git a/fs-uae/src/include/memory.h b/fs-uae/src/include/memory.h
index 34b87d8..d821611 100644
--- a/fs-uae/src/include/memory.h
+++ b/fs-uae/src/include/memory.h
@@ -97,6 +97,8 @@ typedef struct {
        uae_u32 startmask;
        uae_u32 start;
        uae_u32 allocated;
+       TCHAR *malloced_name;
 } addrbank;