* [RFA] Delete struct source, struct sourcevector from symtab.h
@ 2002-10-18 16:15 David Carlton
2002-10-18 16:41 ` Elena Zannoni
0 siblings, 1 reply; 3+ messages in thread
From: David Carlton @ 2002-10-18 16:15 UTC (permalink / raw)
To: gdb-patches
symtab.h contains definitions for 'struct source' and 'struct
sourcevector', but nobody ever refers to them. If you look through
ChangeLog-1999, you see the comment:
* symtab.h: Remove struct sourcevector and struct source. Definately
not needed.
But, despite that, they haven't actually been removed. Oops.
Here's a patch; I've compiled and checked, and they really aren't
referred to anywhere. OK?
David Carlton
carlton@math.stanford.edu
2002-10-18 David Carlton <carlton@math.stanford.edu>
* symtab.h: Delete 'struct source' and 'struct sourcevector'.
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.43
diff -u -p -r1.43 symtab.h
--- symtab.h 15 Oct 2002 02:50:56 -0000 1.43
+++ symtab.h 18 Oct 2002 22:11:11 -0000
@@ -750,15 +750,6 @@ struct partial_symbol
#define PSYMBOL_CLASS(psymbol) (psymbol)->aclass
\f
-/* Source-file information. This describes the relation between source files,
- line numbers and addresses in the program text. */
-
-struct sourcevector
-{
- int length; /* Number of source files described */
- struct source *source[1]; /* Descriptions of the files */
-};
-
/* Each item represents a line-->pc (or the reverse) mapping. This is
somewhat more wasteful of space than one might wish, but since only
the files which are actually debugged are read in to core, we don't
@@ -795,14 +786,6 @@ struct linetable
`struct hack', you can shove it up your ANSI (seriously, if the
committee tells us how to do it, we can probably go along). */
struct linetable_entry item[1];
-};
-
-/* All the information on one source file. */
-
-struct source
-{
- char *name; /* Name of file */
- struct linetable contents;
};
/* How to relocate the symbols from each section in a symbol file.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] Delete struct source, struct sourcevector from symtab.h
2002-10-18 16:15 [RFA] Delete struct source, struct sourcevector from symtab.h David Carlton
@ 2002-10-18 16:41 ` Elena Zannoni
2002-10-18 16:49 ` David Carlton
0 siblings, 1 reply; 3+ messages in thread
From: Elena Zannoni @ 2002-10-18 16:41 UTC (permalink / raw)
To: David Carlton; +Cc: gdb-patches
David Carlton writes:
> symtab.h contains definitions for 'struct source' and 'struct
> sourcevector', but nobody ever refers to them. If you look through
> ChangeLog-1999, you see the comment:
>
> * symtab.h: Remove struct sourcevector and struct source. Definately
> not needed.
>
> But, despite that, they haven't actually been removed. Oops.
>
Are those the only references? Wow.
> Here's a patch; I've compiled and checked, and they really aren't
> referred to anywhere. OK?
>
Cool, yes, thanks.
Elena
> David Carlton
> carlton@math.stanford.edu
>
> 2002-10-18 David Carlton <carlton@math.stanford.edu>
>
> * symtab.h: Delete 'struct source' and 'struct sourcevector'.
>
> Index: symtab.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/symtab.h,v
> retrieving revision 1.43
> diff -u -p -r1.43 symtab.h
> --- symtab.h 15 Oct 2002 02:50:56 -0000 1.43
> +++ symtab.h 18 Oct 2002 22:11:11 -0000
> @@ -750,15 +750,6 @@ struct partial_symbol
> #define PSYMBOL_CLASS(psymbol) (psymbol)->aclass
> \f
>
> -/* Source-file information. This describes the relation between source files,
> - line numbers and addresses in the program text. */
> -
> -struct sourcevector
> -{
> - int length; /* Number of source files described */
> - struct source *source[1]; /* Descriptions of the files */
> -};
> -
> /* Each item represents a line-->pc (or the reverse) mapping. This is
> somewhat more wasteful of space than one might wish, but since only
> the files which are actually debugged are read in to core, we don't
> @@ -795,14 +786,6 @@ struct linetable
> `struct hack', you can shove it up your ANSI (seriously, if the
> committee tells us how to do it, we can probably go along). */
> struct linetable_entry item[1];
> -};
> -
> -/* All the information on one source file. */
> -
> -struct source
> -{
> - char *name; /* Name of file */
> - struct linetable contents;
> };
>
> /* How to relocate the symbols from each section in a symbol file.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] Delete struct source, struct sourcevector from symtab.h
2002-10-18 16:41 ` Elena Zannoni
@ 2002-10-18 16:49 ` David Carlton
0 siblings, 0 replies; 3+ messages in thread
From: David Carlton @ 2002-10-18 16:49 UTC (permalink / raw)
To: Elena Zannoni; +Cc: gdb-patches
On Fri, 18 Oct 2002 19:38:58 -0400, Elena Zannoni <ezannoni@redhat.com> said:
> David Carlton writes:
>> Here's a patch; I've compiled and checked, and they really aren't
>> referred to anywhere. OK?
> Cool, yes, thanks.
Committed.
David Carlton
carlton@math.stanford.edu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-18 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18 16:15 [RFA] Delete struct source, struct sourcevector from symtab.h David Carlton
2002-10-18 16:41 ` Elena Zannoni
2002-10-18 16:49 ` David Carlton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox