source: trunk/src/binutils/gas/debug.c@ 29

Last change on this file since 29 was 10, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.6 KB
Line 
1/* This file is debug.c
2 Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000
3 Free Software Foundation, Inc.
4
5 This file is part of GAS, the GNU Assembler.
6
7 GAS 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, or (at your option)
10 any later version.
11
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20
21/* Routines for debug use only. */
22
23#include "as.h"
24#include "subsegs.h"
25
26dmp_frags ()
27{
28 frchainS *chp;
29 char *p;
30
31 for (chp = frchain_root; chp; chp = chp->frch_next)
32 {
33 switch (chp->frch_seg)
34 {
35 case SEG_DATA:
36 p = "Data";
37 break;
38 case SEG_TEXT:
39 p = "Text";
40 break;
41 default:
42 p = "???";
43 break;
44 }