Patches to 19991116 snapshot for vendor compilers on AIX and OSF1 4.0
Brown, Rodney
rodneybrown@pmsc.com
Tue Nov 30 18:40:00 GMT 1999
Title: Patches to 19991116 snapshot for vendor compilers on AIX and OSF1 4.0
IBM xlc errors on trailing commas in enums
Digital (Compaq) errors comparing a function pointer with another with
different prototype cast to void *.
Patch enclosed.
cc -std -c -gÃÂ ÃÂ ÃÂ -I. -I../../gdb-19991116/gdb -I../../gdb-19991116/gdb/config -DHAVE_CONFIG_H -I../../gdb-19991116/gdb/../include/opcode -I../../gdb-19991116/gdb/../readline/.. -I../bfd -I../../gdb-19991116/gdb/../bfdÃÂ -I../../gdb-19991116/gdb/../include -I../intl -I../../gdb-19991116/gdb/../intl -I../../gdb-19991116/gdb/tuiÃÂ ÃÂ ÃÂ ../../gdb-19991116/gdb/target.c
cc: Info: ../../gdb-19991116/gdb/command.h, line 37: Trailing comma found in enumerator list. (trailcomma)
};
^
cc: Info: ../../gdb-19991116/gdb/defs.h, line 1140: In this declaration, type long double has the same representation as type double on this platform. (longdoublenyi)
typedef long double DOUBLEST;
--------^
cc: Error: ../../gdb-19991116/gdb/target.c, line 2840: In this statement, "current_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)
ÃÂ if ((current_target.to_rcmd == (void*) tcomplain)
-------^
cc: Error: ../../gdb-19991116/gdb/target.c, line 2842: In this statement, "debug_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ && (debug_target.to_rcmd == (void*) tcomplain)))
--------------^
make[1]: *** [target.o] Error 1
make[1]: Leaving directory `/user/rand/rdb/src/gdb-19991116.obj.v/gdb'
--- ChangeLog.origÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Wed Nov 17 12:38:44 1999
+++ ChangeLogÃÂ ÃÂ Wed DecÃÂ 1 09:35:58 1999
@@ -1,3 +1,10 @@
+1999-12-01ÃÂ Rodney BrownÃÂ <RodneyBrown@pmsc.com>
+
+ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ * commands.h (enum command_class): remove trailing comma (IBM xlc)
+ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ * target.c (do_monitor_command): compare function pointers as void*
+ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ (Digital OSF1 4.0e compiler disallows comparison of function pointer
+ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ to void*)
+
ÃÂ 1999-11-16ÃÂ Mark SalterÃÂ <msalter@cygnus.com>
ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ * monitor.c (monitor_supply_register): Initialize value to zero.
--- command.h.origÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Sat Sep 25 17:59:38 1999
+++ command.hÃÂ ÃÂ Wed DecÃÂ 1 13:30:42 1999
@@ -33,7 +33,7 @@
ÃÂ ÃÂ no_class = -1, class_run = 0, class_vars, class_stack,
ÃÂ ÃÂ class_files, class_support, class_info, class_breakpoint, class_trace,
ÃÂ ÃÂ class_alias, class_obscure, class_user, class_maintenance,
-ÃÂ class_pseudo, class_tui, class_xdb,
+ÃÂ class_pseudo, class_tui, class_xdb
ÃÂ };
ÃÂ
ÃÂ /* Not a set/show command.ÃÂ Note that some commands which begin with
--- target.c.origÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Wed DecÃÂ 1 09:27:50 1999
+++ target.cÃÂ ÃÂ ÃÂ Mon Nov 29 16:15:39 1999
@@ -2837,9 +2837,9 @@
ÃÂ do_monitor_command (char *cmd,
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ int from_tty)
ÃÂ {
-ÃÂ if ((current_target.to_rcmd == (void*) tcomplain)
+ÃÂ if (((void*) current_target.to_rcmd == (void*) tcomplain)
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ || (current_target.to_rcmd == debug_to_rcmd
-ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ && (debug_target.to_rcmd == (void*) tcomplain)))
+ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ && ((void*) debug_target.to_rcmd == (void*) tcomplain)))
ÃÂ ÃÂ ÃÂ ÃÂ {
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ error ("\"monitor\" command not supported by this target.\n");
ÃÂ ÃÂ ÃÂ ÃÂ }
More information about the Gdb-patches
mailing list