Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: fix start_subfile, start_symtab argument descriptions
@ 2007-11-14 21:53 Douglas Evans
  2007-11-14 22:52 ` Jim Blandy
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Evans @ 2007-11-14 21:53 UTC (permalink / raw)
  To: gdb-patches

On the gdb list I wrote:
> 1) [...] then comp_dir should not be
> passed as the dirname argument to start_subfile in dwarf2read.c

I did some more reading and understand things better now.

Ok to check in?  This just fixes the description of the DIRNAME
argument to start_subfile and adds descriptions of the arguments to
start_symtab.

I didn't include a ChangeLog entry in this particular case since it's
just comment fixes.  I can certainly provide one if you want it
checked in with one.

Index: buildsym.c
===================================================================
RCS file: /cvs/src/src/gdb/buildsym.c,v
retrieving revision 1.55
diff -u -p -r1.55 buildsym.c
--- buildsym.c  5 Nov 2007 18:06:10 -0000       1.55
+++ buildsym.c  14 Nov 2007 21:45:45 -0000
@@ -507,7 +507,7 @@ make_blockvector (struct objfile *objfil
 /* Start recording information about source code that came from an
    included (or otherwise merged-in) source file with a different
    name.  NAME is the name of the file (cannot be NULL), DIRNAME is
-   the directory in which it resides (or NULL if not known).  */
+   the directory in which the file was compiled (or NULL if not known).  */

 void
 start_subfile (char *name, char *dirname)
@@ -778,12 +778,15 @@ compare_line_numbers (const void *ln1p,
 /* Start a new symtab for a new source file.  Called, for example,
    when a stabs symbol of type N_SO is seen, or when a DWARF
    TAG_compile_unit DIE is seen.  It indicates the start of data for
-   one original source file.  */
+   one original source file.
+
+   NAME is the name of the file (cannot be NULL).  DIRNAME is the directory in
+   which the file was compiled (or NULL if not known).  START_ADDR is the
+   lowest address of objects in the file (or 0 if not known).  */

 void
 start_symtab (char *name, char *dirname, CORE_ADDR start_addr)
 {
-
   last_source_file = name;
   last_source_start_addr = start_addr;
   file_symbols = NULL;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFA: fix start_subfile, start_symtab argument descriptions
  2007-11-14 21:53 RFA: fix start_subfile, start_symtab argument descriptions Douglas Evans
@ 2007-11-14 22:52 ` Jim Blandy
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Blandy @ 2007-11-14 22:52 UTC (permalink / raw)
  To: Douglas Evans; +Cc: gdb-patches


"Douglas Evans" <dje at google.com> writes:
> Ok to check in?  This just fixes the description of the DIRNAME
> argument to start_subfile and adds descriptions of the arguments to
> start_symtab.
>
> I didn't include a ChangeLog entry in this particular case since it's
> just comment fixes.  I can certainly provide one if you want it
> checked in with one.

Yes, please commit.  The ChangeLog entry for such changes can simply
be something like:

        * buildsym.c (start_subfile): Doc fixes.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-14 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 21:53 RFA: fix start_subfile, start_symtab argument descriptions Douglas Evans
2007-11-14 22:52 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox