Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* bug in gdb.mi/mi-file.exp (or maybe in GDB)
@ 2003-04-09 20:01 David Carlton
  2003-04-09 20:30 ` Bob Rossi
  2003-04-09 20:54 ` Elena Zannoni
  0 siblings, 2 replies; 7+ messages in thread
From: David Carlton @ 2003-04-09 20:01 UTC (permalink / raw)
  To: gdb; +Cc: bob_rossi, Andrew Cagney, Elena Zannoni

When I run gdb.mi/mi-file.exp, I get this failure:

FAIL: gdb.mi/mi-file.exp: request path info of current source file (basics.c)

Presumably nobody else is seeing this because I'm the only weirdo who
builds in source.  I think it's probably a testsuite bug instead of a
GDB bug, but I don't know exactly what the relevant MI command is
supposed to do, so I'll just show you what I'm seeing: gdb.log says:

  111^done,line="23",file="gdb.mi/basics.c",fullname="/extra/gdb/mirror/src/gdb/testsuite/gdb.mi/basics.c"

whereas mi-file.exp is looking for:

  "111\\\^done,line=\"23\",file=\"${srcfilepath}\",fullname=\"/.*/${srcfile}\""

where ${srcfilepath} is defined by:

  set srcfilepath [string_to_regexp ${srcdir}/${subdir}/${srcfile}]

So the test seems to expect 'file' to be the fully qualified path and
for 'fullname' to be anything random that starts with a slash and ends
right.  Whereas I'm not getting a fully qualified path for 'file'.

So: is 'file' really supposed to be a fully qualified path?  If so,
what's the difference between 'file' and 'fullname'?  (Judging from
the manual, I don't see why 'file' should be an absolute path, but
maybe I'm missing something.)  Should 'file' match .*${srcfile}
(without any slashes) and 'fullname' match ${srcfilepath}?

Also, should gdb.mi have its own ChangeLog?  It's being used
inconsistently, since most of the recent entries got put in
testsuite/ChangeLog.

David Carlton
carlton@math.stanford.edu


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

end of thread, other threads:[~2003-04-09 22:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 20:01 bug in gdb.mi/mi-file.exp (or maybe in GDB) David Carlton
2003-04-09 20:30 ` Bob Rossi
2003-04-09 20:38   ` David Carlton
2003-04-09 21:21     ` Elena Zannoni
2003-04-09 21:28       ` Bob Rossi
2003-04-09 22:09         ` Elena Zannoni
2003-04-09 20:54 ` Elena Zannoni

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