diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-14 01:08:22 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-14 01:08:22 +0000 |
commit | 55fea07b5521471b905a0695f0541cf4ddc130e7 (patch) | |
tree | 7d7aac022ad5bf8505d6caaaa45ddab444d4d1ee /gdb/remote-utils.c | |
parent | 02ff0cd370fe5cfab21428324cf311088e91fb6c (diff) | |
download | gdb-55fea07b5521471b905a0695f0541cf4ddc130e7.zip gdb-55fea07b5521471b905a0695f0541cf4ddc130e7.tar.gz gdb-55fea07b5521471b905a0695f0541cf4ddc130e7.tar.bz2 |
* remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
hack so this file compiles again.
* remote-utils.c (gr_multi_scan): Cast return value from alloca.
(gr_multi_scan): #if 0 never-reached return(-1).
Diffstat (limited to 'gdb/remote-utils.c')
-rw-r--r-- | gdb/remote-utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index 0b570fd..290e73f 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -535,7 +535,7 @@ gr_multi_scan (list, passthrough) swallowed_p = swallowed = alloca(max_length << 1); /* and a list of pointers to current scan points. */ - plist = alloca(string_count * sizeof(*plist)); + plist = (char **) alloca (string_count * sizeof(*plist)); /* and initialize */ for (i = 0; i < string_count; ++i) @@ -579,8 +579,10 @@ gr_multi_scan (list, passthrough) swallowed_p = swallowed; } } - +#if 0 + /* Never reached. */ return(-1); +#endif } /* Get ready to modify the registers array. On machines which store |