From 139e2c0f92e06fcca01a815614c46a53e93a2f55 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 24 Oct 1996 17:31:45 +0000 Subject: * dbxread.c: Don't swap symbols in place, since internal and external forms may have different sizes. Don't assume that an internal_nlist has the same layout as an external_nlist. Create symbol for n_strx element so to hide specifics of nlist from partial-stab.h. * partial-stab.h: Don't reference dbxread symbols directly. Use CUR_SYMBOL_STRX instead. * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP. * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for MSVC builds. * mswin/gdbwin.c (reg_order): Define register order for V850. * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for V850. * mswin/regdoc.h: Define MAXREGS for V850. --- gdb/partial-stab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/partial-stab.h') diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 551ee71..24ff492 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -145,7 +145,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ case N_UNDF: #ifdef DBXREAD_ONLY - if (processing_acc_compilation && bufp->n_strx == 1) { + if (processing_acc_compilation && CUR_SYMBOL_STRX == 1) { /* Deal with relative offsets in the string table used in ELF+STAB under Solaris. If we want to use the n_strx field, which contains the name of the file, @@ -154,7 +154,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ past_first_source_file = 1; file_string_table_offset = next_file_string_table_offset; next_file_string_table_offset = - file_string_table_offset + bufp->n_value; + file_string_table_offset + CUR_SYMBOL_VALUE; if (next_file_string_table_offset < file_string_table_offset) error ("string table offset backs up at %d", symnum); /* FIXME -- replace error() with complaint. */ -- cgit v1.1