wrstabs.c (78828) | wrstabs.c (89857) |
---|---|
1/* wrstabs.c -- Output stabs debugging information | 1/* wrstabs.c -- Output stabs debugging information |
2 Copyright 1996, 1997, 1998, 2000 Free Software Foundation, Inc. | 2 Copyright 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. |
3 Written by Ian Lance Taylor <ian@cygnus.com>. 4 5 This file is part of GNU Binutils. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. --- 7 unchanged lines hidden (view full) --- 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 02111-1307, USA. */ 21 22/* This file contains code which writes out stabs debugging 23 information. */ 24 25#include <stdio.h> | 3 Written by Ian Lance Taylor <ian@cygnus.com>. 4 5 This file is part of GNU Binutils. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. --- 7 unchanged lines hidden (view full) --- 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 02111-1307, USA. */ 21 22/* This file contains code which writes out stabs debugging 23 information. */ 24 25#include <stdio.h> |
26#include <ctype.h> | |
27#include <assert.h> 28 29#include "bfd.h" 30#include "bucomm.h" 31#include "libiberty.h" | 26#include <assert.h> 27 28#include "bfd.h" 29#include "bucomm.h" 30#include "libiberty.h" |
31#include "safe-ctype.h" |
|
32#include "debug.h" 33#include "budbg.h" 34 35/* Meaningless definition needs by aout64.h. FIXME. */ 36#define BYTES_IN_WORD 4 37 38#include "aout/aout64.h" 39#include "aout/stab_gnu.h" --- 2127 unchanged lines hidden (view full) --- 2167 kindstr = "V"; 2168 break; 2169 2170 case DEBUG_LOCAL: 2171 stab_type = N_LSYM; 2172 kindstr = ""; 2173 2174 /* Make sure that this is a type reference or definition. */ | 32#include "debug.h" 33#include "budbg.h" 34 35/* Meaningless definition needs by aout64.h. FIXME. */ 36#define BYTES_IN_WORD 4 37 38#include "aout/aout64.h" 39#include "aout/stab_gnu.h" --- 2127 unchanged lines hidden (view full) --- 2167 kindstr = "V"; 2168 break; 2169 2170 case DEBUG_LOCAL: 2171 stab_type = N_LSYM; 2172 kindstr = ""; 2173 2174 /* Make sure that this is a type reference or definition. */ |
2175 if (! isdigit ((unsigned char) *s)) | 2175 if (! ISDIGIT (*s)) |
2176 { 2177 char *n; 2178 long index; 2179 2180 index = info->type_index; 2181 ++info->type_index; 2182 n = (char *) xmalloc (strlen (s) + 20); 2183 sprintf (n, "%ld=%s", index, s); --- 232 unchanged lines hidden --- | 2176 { 2177 char *n; 2178 long index; 2179 2180 index = info->type_index; 2181 ++info->type_index; 2182 n = (char *) xmalloc (strlen (s) + 20); 2183 sprintf (n, "%ld=%s", index, s); --- 232 unchanged lines hidden --- |