Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* bitrot in buildsym.c:start_subfile
@ 2002-04-03 21:58 Doug Evans
  2002-04-04  5:51 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2002-04-03 21:58 UTC (permalink / raw)
  To: gdb

In buildsym.c there's this:

/* 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).  */

void
start_subfile (char *name, char *dirname)
{


`name' cannot be NULL.

However, there's this:

  subfile->name = (name == NULL) ? NULL : savestring (name, strlen (name));

and this:

  if (subfile->name)

Am I missing something?


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

end of thread, other threads:[~2002-04-04 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03 21:58 bitrot in buildsym.c:start_subfile Doug Evans
2002-04-04  5:51 ` Andrew Cagney
2002-04-04 10:08   ` Doug Evans

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