From: David Carlton <carlton@math.stanford.edu>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com, Jim Blandy <jimb@redhat.com>,
Elena Zannoni <ezannoni@redhat.com>
Subject: Re: [rfa] block.{c,h}
Date: Wed, 19 Feb 2003 23:27:00 -0000 [thread overview]
Message-ID: <ro1ptpn7swy.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <3E541124.6010203@redhat.com>
On Wed, 19 Feb 2003 18:20:04 -0500, Andrew Cagney <ac131313@redhat.com> said:
> (symtabs problem but,) some anal things.
> The actual restructuring was previously ok'ed.
>> +/* Code dealing with blocks for GDB.
> ..., the GNU debugger.
Sure.
>> + Copyright 2003 Free Software Foundation, Inc.
>> +
>> + This file is part of GDB.
>> +
>> + This program is free software; you can redistribute it and/or modify
>> + it under the terms of the GNU General Public License as published by
>> + the Free Software Foundation; either version 2 of the License, or
>> + (at your option) any later version.
>> +
>> + This program is distributed in the hope that it will be useful,
>> + but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> + GNU General Public License for more details.
>> +
>> + You should have received a copy of the GNU General Public License
>> + along with this program; if not, write to the Free Software
>> + Foundation, Inc., 59 Temple Place - Suite 330,
>> + Boston, MA 02111-1307, USA. */
>> +
> #ifndef BLOCK_H
> #define BLOCK_H
Ack! I'm a dolt.
> ....
> * Makefile.in (SFILES): block.c
> ``Add "block.c".''
> Complete sentence, leading capital, end in fullstop. Same for
> others.
Sure.
>> * blockframe.c: Move blockvector_for_pc_sect, blockvector_for_pc,
>> block_for_pc_sect, block_for_pc to block.c.
> Use with the correct changelog format, function names and the like in
> paren vis:
> (blockvector_for_pc_sect): Moved to "block.c".
Okay.
>> * frame.h: Move block_for_pc and block_for_pc_sect declarations to
>> block.h. Add opaque declaration for struct block.
>> * symtab.h: Move block-related stuff to block.h. Add opaque
>> declarations for struct block, struct blockvector.
> List them.
Okay.
> Squishing the changelog a little wouldn't hurt :-)
All right, all right, how's this? Same as before, with the two
changes to block.h mentioned at the top of the file, and this entry
for the toplevel ChangeLog:
2003-02-19 David Carlton <carlton@math.stanford.edu>
* Makefile.in (SFILES): Add block.c.
(block_h): New.
(COMMON_OBS): Add block.o.
(block.o): New.
(x86-64-tdep.o): Add $(block_h).
(values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o,
stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o,
objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o,
m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o,
f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o,
c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o,
alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
* value.h: Add opaque declaration for struct block.
* parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h,
ada-lang.h: Ditto.
* x86-64-tdep.c: #include "block.h"
* values.c, valops.c, tracepoint.c, symtab.c, symmisc.c,
symfile.c, stack.c, printcmd.c, p-exp.y, parse.c, objfiles.c,
objc-exp.y, objc-lang.c, nlmread.c, mips-tdep.c, mdebugread.c,
m2-exp.y, linespec.c, jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c,
findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y, buildsym.c,
breakpoint.c, blockframe.c, ax-gdb.c, alpha-tdep.c, ada-lang.c,
ada-exp.y: Ditto.
* blockframe.c (blockvector_for_pc_sect): Move to "block.c".
(blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
* symtab.c (block_function): Ditto.
(contained_in): Ditto.
* frame.h: Move block_for_pc and block_for_pc_sect declarations to
block.h. Add opaque declaration for struct block.
* symtab.h: Move block_function and contained_in declarations to
block.h. Add opaque declarations for struct block, struct
blockvector.
(struct block): Move to block.h.
(struct blockvector): Ditto.
(BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK,
BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS,
BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
Ditto.
* block.c: New file.
* block.h: New file.
David Carlton
carlton@math.stanford.edu
next prev parent reply other threads:[~2003-02-19 23:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-19 22:59 David Carlton
2003-02-19 23:15 ` Andrew Cagney
2003-02-19 23:27 ` David Carlton [this message]
2003-02-19 23:40 ` Andrew Cagney
2003-02-19 23:49 ` David Carlton
2003-02-19 23:56 ` Andrew Cagney
2003-02-20 0:01 ` David Carlton
2003-02-19 23:36 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ro1ptpn7swy.fsf@jackfruit.Stanford.EDU \
--to=carlton@math.stanford.edu \
--cc=ac131313@redhat.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox