extern char *mstrsave PARAMS ((void *, const char *));
-#ifdef _WIN32 /* FIXME; was long, but this causes compile errors in msvc if already defined */
+#ifdef _MSC_VER /* FIXME; was long, but this causes compile errors in msvc if already defined */
extern PTR xmmalloc PARAMS ((PTR, size_t));
extern PTR xmrealloc PARAMS ((PTR, PTR, size_t));
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
/* by Steve Chamberlain, sac@cygnus.com */
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
+#include <stdlib.h>
+
+#ifdef _MSC_VER
#include "windefs.h"
+#else /* other WIN32 compiler */
+#include <windows.h>
+#endif
+
#include "buildsym.h"
#include "symfile.h"
#include "objfiles.h"
int mask;
};
-
static const struct regmappings mappings[] =
{
#ifdef __PPC__
{(char *) &context.Fpr30, CONTEXT_FLOATING_POINT},
{(char *) &context.Fpr31, CONTEXT_FLOATING_POINT},
-
{(char *) &context.Iar, CONTEXT_CONTROL},
{(char *) &context.Msr, CONTEXT_CONTROL},
{(char *) &context.Cr, CONTEXT_INTEGER},
#endif
};
-
/* This vector maps the target's idea of an exception (extracted
from the DEBUG_EVENT structure) to GDB's idea. */
enum target_signal us;
};
-
static const struct xlate_exception
xlate[] =
{
{EXCEPTION_SINGLE_STEP, TARGET_SIGNAL_TRAP},
{-1, -1}};
-
static void
check (BOOL ok, const char *file, int line)
{
/* Wait for child to do something. Return pid of child, or -1 in case
of error; store status through argument pointer OURSTATUS. */
-
static int
handle_load_dll (char *eventp)
{
return 1;
}
}
-
context.ContextFlags = CONTEXT_FULL | CONTEXT_FLOATING_POINT;
GetThreadContext (current_thread, &context);
}
}
-
/* Attach to process PID, then initialize for debugging it. */
static void
if (!ok)
error ("Can't attach to process.");
-
exception_count = 0;
event_count = 0;
push_target (&child_ops);
}
-
static void
child_detach (args, from_tty)
char *args;
unpush_target (&child_ops);
}
-
/* Print status information about what we're accessing. */
static void
generic_mourn_inferior ();
}
-
/* Send a SIGINT to the process group. This acts just like the user typed a
^C on the controlling terminal. */