From: Andrew Cagney Date: Mon, 5 Jan 2004 19:53:08 +0000 (+0000) Subject: 2004-01-05 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5439edaaeadfbbcb50120c72dd9febfefb4e355f;p=binutils-gdb.git 2004-01-05 Andrew Cagney * libunwind-frame.h (struct frame_id): Add opaque declaration, move to start of file. * i386-tdep.h (struct regcache): Add opaque declaration. * config/ia64/nm-linux.h (struct target_ops): Add opaque declaration. * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__. (ia64_gdbarch_init): Use "GNU/Linux" in comment. * win32-nat.c (fake_create_process): Use ISO C style definition. * stabsread.c (define_symbol): Delete #ifndef DEPRECATED_USE_REGISTER_NOT_ARG wrapper around stabs_argument_has_addr call, macro never defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5550035b58a..4be6d623b9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2004-01-05 Andrew Cagney + + * libunwind-frame.h (struct frame_id): Add opaque declaration, + move to start of file. + * i386-tdep.h (struct regcache): Add opaque declaration. + * config/ia64/nm-linux.h (struct target_ops): Add opaque + declaration. + * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__. + (ia64_gdbarch_init): Use "GNU/Linux" in comment. + * win32-nat.c (fake_create_process): Use ISO C style definition. + * stabsread.c (define_symbol): Delete #ifndef + DEPRECATED_USE_REGISTER_NOT_ARG wrapper around + stabs_argument_has_addr call, macro never defined. + 2004-01-04 Michael Chastain * op50-rom.c: Delete. diff --git a/gdb/config/ia64/nm-linux.h b/gdb/config/ia64/nm-linux.h index 01c980748e2..5e9df60021c 100644 --- a/gdb/config/ia64/nm-linux.h +++ b/gdb/config/ia64/nm-linux.h @@ -22,6 +22,8 @@ #ifndef NM_LINUX_H #define NM_LINUX_H +struct target_ops; + #include "config/nm-linux.h" /* Note: It seems likely that we'll have to eventually define diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 02b60a18f2b..70f6b8fec24 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -27,6 +27,7 @@ struct frame_info; struct gdbarch; struct reggroup; struct regset; +struct regcache; /* GDB's i386 target supports both the 32-bit Intel Architecture (IA-32) and the 64-bit AMD x86-64 architecture. Internally it uses diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 88e0e20c072..760a17d1a4f 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2480,9 +2480,9 @@ ia64_find_proc_info_x (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, return -UNW_ENOINFO; if (gdbarch_debug >= 1) - fprintf_unfiltered (gdb_stdlog, "%s: %lx -> " + fprintf_unfiltered (gdb_stdlog, "ia64_find_proc_info_x: %lx -> " "(name=`%s',segbase=%lx,start=%lx,end=%lx,gp=%lx," - "length=%lu,data=%p)\n", __FUNCTION__, + "length=%lu,data=%p)\n", ip, (char *)di.u.ti.name_ptr, di.u.ti.segbase, di.start_ip, di.end_ip, di.gp, di.u.ti.table_len, di.u.ti.table_data); @@ -2494,9 +2494,9 @@ ia64_find_proc_info_x (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, return ret; if (gdbarch_debug >= 1) - fprintf_unfiltered (gdb_stdlog, "%s: %lx -> " + fprintf_unfiltered (gdb_stdlog, "ia64_find_proc_info_x: %lx -> " "(name=`%s',segbase=%lx,start=%lx,end=%lx,gp=%lx," - "length=%lu,data=%lx)\n", __FUNCTION__, + "length=%lu,data=%lx)\n", ip, (char *)di.u.rti.name_ptr, di.u.rti.segbase, di.start_ip, di.end_ip, di.gp, di.u.rti.table_len, di.u.rti.table_data); @@ -3356,12 +3356,14 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 0, "builtin_type_ia64_ext", NULL); TYPE_FLOATFORMAT (builtin_type_ia64_ext) = &floatformat_ia64_ext; - /* According to the ia64 specs, instructions that store long double floats - in memory use a long-double format different than that used in the floating - registers. The memory format matches the x86 extended float format which is - 80 bits. An OS may choose to use this format (e.g. Linux) or choose to use - a different format for storing long doubles (e.g. HPUX). In the latter case, - the setting of the format may be moved/overridden in an OS-specific tdep file. */ + /* According to the ia64 specs, instructions that store long double + floats in memory use a long-double format different than that + used in the floating registers. The memory format matches the + x86 extended float format which is 80 bits. An OS may choose to + use this format (e.g. GNU/Linux) or choose to use a different + format for storing long doubles (e.g. HPUX). In the latter case, + the setting of the format may be moved/overridden in an + OS-specific tdep file. */ set_gdbarch_long_double_format (gdbarch, &floatformat_i387_ext); set_gdbarch_short_bit (gdbarch, 16); diff --git a/gdb/libunwind-frame.h b/gdb/libunwind-frame.h index bacdf87a49a..e47a792cc98 100644 --- a/gdb/libunwind-frame.h +++ b/gdb/libunwind-frame.h @@ -23,13 +23,14 @@ #ifdef HAVE_LIBUNWIND_H +struct frame_info; +struct frame_id; + #ifndef LIBUNWIND_FRAME_H #define LIBUNWIND_FRAME_H 1 #include "libunwind.h" -struct frame_info; - struct libunwind_descr { int (*gdb2uw) (int); diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 2567b468ffe..d84d05e7305 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1118,13 +1118,8 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, if (local_symbols && local_symbols->nsyms > 0 -#ifndef DEPRECATED_USE_REGISTER_NOT_ARG - /* DEPRECATED_USE_REGISTER_NOT_ARG is only defined by - the SPARC. */ && gdbarch_stabs_argument_has_addr (current_gdbarch, - SYMBOL_TYPE (sym)) -#endif - ) + SYMBOL_TYPE (sym))) { struct symbol *prev_sym; prev_sym = local_symbols->symbol[local_symbols->nsyms - 1]; diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index c37c1a8ef06..8b26916e2b7 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1215,7 +1215,7 @@ child_continue (DWORD continue_status, int id) /* Called in pathological case where Windows fails to send a CREATE_PROCESS_DEBUG_EVENT after an attach. */ DWORD -fake_create_process () +fake_create_process (void) { current_process_handle = OpenProcess (PROCESS_ALL_ACCESS, FALSE, current_event.dwProcessId); diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index c37c1a8ef06..8b26916e2b7 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1215,7 +1215,7 @@ child_continue (DWORD continue_status, int id) /* Called in pathological case where Windows fails to send a CREATE_PROCESS_DEBUG_EVENT after an attach. */ DWORD -fake_create_process () +fake_create_process (void) { current_process_handle = OpenProcess (PROCESS_ALL_ACCESS, FALSE, current_event.dwProcessId);