aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-07-18 00:00:24 +0000
committerStu Grossman <grossman@cygnus>1992-07-18 00:00:24 +0000
commit509c1804ca3b593c3f513b0ab195cf193820040d (patch)
treecc00fadcc181effaefd65df4f151d278474c8a6b
parentf8e32b6ee572b534fd7a99ccc6f8328b1b478fa9 (diff)
downloadgdb-509c1804ca3b593c3f513b0ab195cf193820040d.zip
gdb-509c1804ca3b593c3f513b0ab195cf193820040d.tar.gz
gdb-509c1804ca3b593c3f513b0ab195cf193820040d.tar.bz2
* energize.c: Relativize pathnames in #include statements.
* (kernel_dispatch): Better error messages for unknown protocol messages. * (kernel_dispatch): First cut at DynamicLoad message handling.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/energize.c28
2 files changed, 26 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9899d0e..f022039 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
+ * energize.c: Relativize pathnames in #include statements.
+ * (kernel_dispatch): Better error messages for unknown protocol
+ messages.
+ * (kernel_dispatch): First cut at DynamicLoad message handling.
+
* Makefile.in: Remove -I../readline from all compilations,
include a special case for main.o instead.
diff --git a/gdb/energize.c b/gdb/energize.c
index 80048d4..33ee5a8 100644
--- a/gdb/energize.c
+++ b/gdb/energize.c
@@ -27,11 +27,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
-#include <connection.h>
-#include <genericreq.h>
-#include <debuggerreq.h>
-#include <debuggerconn.h>
-#include <ttyconn.h>
+#include "energize/connection.h"
+#include "energize/genericreq.h"
+#include "energize/debuggerreq.h"
+#include "energize/debuggerconn.h"
+#include "energize/ttyconn.h"
#include <varargs.h>
#include <sys/stat.h>
#ifdef USG
@@ -873,7 +873,7 @@ kernel_dispatch(queue)
}
break;
default:
- fprintf(stderr, "Unknown request type = %d\n",
+ fprintf(stderr, "Unknown Tty request type = %d\n",
req->head.reqType);
break;
}
@@ -1148,8 +1148,22 @@ kernel_dispatch(queue)
req->setValue.value.text);
}
break;
+ case DynamicLoadRType:
+ switch (req->dynamicLoad.request->action)
+ {
+ case CDynamicLoadUpdateSymtab:
+ printf_filtered("CDynamicLoadUpdateSymtab, filename=%s\n",
+ req->dynamicLoad.filenames.text);
+ break;
+ default:
+ printf_filtered("DynamicLoadRType: unknown action=%d, filename=%s\n",
+ req->dynamicLoad.request->action,
+ req->dynamicLoad.filenames.text);
+ break;
+ }
+ break;
default:
- fprintf(stderr, "Unknown request type = %d\n",
+ fprintf(stderr, "Unknown Debugger request type = %d\n",
req->head.request->reqType);
break;
}