This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB *** [event-top.o] Error 1!!



There is a missing ifdef in there, I guess you must be one of the few
(the only one) triggering this. 

Could you try this patch?

Index: event-top.c
===================================================================
RCS file: /cvs/uberbaum/gdb/event-top.c,v
retrieving revision 1.20
diff -u -p -r1.20 event-top.c
--- event-top.c	27 Mar 2002 21:20:15 -0000	1.20
+++ event-top.c	20 Jun 2002 21:46:36 -0000
@@ -514,8 +514,10 @@ command_handler (char *command)
 	(struct continuation_arg *) xmalloc (sizeof (struct continuation_arg));
       arg1->next = arg2;
       arg2->next = NULL;
-      arg1->data.integer = time_at_cmd_start;
-      arg2->data.integer = space_at_cmd_start;
+      arg1->data.longint = time_at_cmd_start;
+#ifdef HAVE_SBRK
+      arg2->data.longint = space_at_cmd_start;
+#endif
       add_continuation (command_line_handler_continuation, arg1);
     }

As far as the other warnings, I am not seeing them, what type of system are
you compiling on?

Elena



Mike Cleary writes:
 > Hello
 > I'm trying to report this error and I'm not sure if anybody knows about 
 > this yet. Can somebody please tell me exactly what the error is.
 > I've pasted warnings below:
 > gcc -c -g -O2    -I. -I/home/buildsys/source/toolchain/gdb 
 > -I/home/buildsys/sour
 > ce/toolchain/gdb/config -DHAVE_CONFIG_H 
 > -I/home/buildsys/source/toolchain/gdb/..
 > /include/opcode -I/home/buildsys/source/toolchain/gdb/../readline/.. 
 > -I../bfd -I
 > /home/buildsys/source/toolchain/gdb/../bfd  
 > -I/home/buildsys/source/toolchain/gd
 > b/../include -I../intl -I/home/buildsys/source/toolchain/gdb/../intl  
 > -DMI_OUT=1
 >  -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs 
 > -Wformat -Wpa
 > rentheses -Wpointer-arith -Wuninitialized  
 > /home/buildsys/source/toolchain/gdb/e
 > vent-top.c
 > /home/buildsys/source/toolchain/gdb/event-top.c: In function 
 > `cli_command_loop':
 > /home/buildsys/source/toolchain/gdb/event-top.c:192: warning: implicit 
 > declarati
 > on of function `strcat'
 > /home/buildsys/source/toolchain/gdb/event-top.c: In function 
 > `command_handler':
 > /home/buildsys/source/toolchain/gdb/event-top.c:469: warning: implicit 
 > declarati
 > on of function `isatty'
 > /home/buildsys/source/toolchain/gdb/event-top.c:518: 
 > `space_at_cmd_start' undecl
 > ared (first use in this function)
 > /home/buildsys/source/toolchain/gdb/event-top.c:518: (Each undeclared 
 > identifier
 >  is reported only once
 > /home/buildsys/source/toolchain/gdb/event-top.c:518: for each function 
 > it appear
 > s in.)
 > /home/buildsys/source/toolchain/gdb/event-top.c: In function 
 > `command_line_handl
 > er':
 > /home/buildsys/source/toolchain/gdb/event-top.c:709: warning: implicit 
 > declarati
 > on of function `strncmp'
 > /home/buildsys/source/toolchain/gdb/event-top.c: In function 
 > `async_disconnect':
 > /home/buildsys/source/toolchain/gdb/event-top.c:1019: warning: implicit 
 > declarat
 > ion of function `getpid'
 > make[2]: *** [event-top.o] Error 1
 > make[2]: Leaving directory 
 > `/home/buildsys/build/intel1/basic/native/toolchain/g
 > db'
 > make[1]: *** [all-gdb] Error 2
 > make[1]: Leaving directory 
 > `/home/buildsys/build/intel1/basic/native/toolchain'
 > make: *** [bootstrap] Error 2
 > (END)
 > 
 > If anybody could hlep that'd be great.
 > Thanks
 > -Mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]