aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-08-13 00:01:37 +0000
committerStu Grossman <grossman@cygnus>1996-08-13 00:01:37 +0000
commit8501c7427079ac2d8668e5e36408fa5af2d59bbe (patch)
treebb991670ad6baa812543c86951fa94bce7e008ed /gdb/language.c
parent817e4f757fcffa848e18e8d49b4aafb9ee101f08 (diff)
downloadgdb-8501c7427079ac2d8668e5e36408fa5af2d59bbe.zip
gdb-8501c7427079ac2d8668e5e36408fa5af2d59bbe.tar.gz
gdb-8501c7427079ac2d8668e5e36408fa5af2d59bbe.tar.bz2
* defs.h: Define CONST_PTR as blank if compiling with Microsoft
C, else it's `const'. * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR macro instead. * configure configure.in defs.h: Use AC_C_CONST to figure out if the compiler supports const. Gets rid of some cruft in defs.h. * dwarf2read.c: <string.h> -> "gdb_string.h" * remote-sim.c: Add prototypes. Fix call to gdbsim_kill. * sparcl-tdep.c (download): Add prototypes to write_routine and start_routine args. * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get rid of varargs.h Include string.h. * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f update): Fix prototypes, fix calls. * (update): Return value for catch_errors. * (run_execute_command togdb_command_from_tty togdb_command): Cleanup catching of errors from calls to execute_command. Also, dup command string to avoid modifying const strings. * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead of NULL when see if b->address isn't set. * (bi_disable_bpt bi_enable_bpt bi_delete_all bi_delete_breakpoint): Add arg to calls to update. * (gui_command): Add prototype. * (mswin_query): Fix prototype. * (_initialize_gdbwin): Dup string to avoid modifying const. * (info_path togdb_get_info_path): Remove const from decls cuz this can't be const (it points at malloc'ed memory). * (togdb_searchpath): Remove const from path. Dup string to avoid modifying const strings. * rindex -> strrchr. * (gdbwin_list_symbols): Regexp param is const. * Fix lots of refs to psymtabs to deref correct pointers. * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal, not &sal. * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path toget_set_info_path): Fix prototypes to match reality. * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines with proper prototypes. * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args. * mswin/ser-win32s.c: Fix defs of min and max. * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be USHORT. * (WriteComm16): Change lpBug from LPVOID to LPCSTR. * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 61a95d8..17ab815 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1274,7 +1274,7 @@ unk_lang_value_print (val, stream, format, pretty)
error ("internal error - unimplemented function unk_lang_value_print called.");
}
-static struct type ** const (unknown_builtin_types[]) = { 0 };
+static struct type ** CONST_PTR (unknown_builtin_types[]) = { 0 };
static const struct op_print unk_op_print_tab[] = {
{NULL, OP_NULL, PREC_NULL, 0}
};