This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add fullname field for MI -break-info command


Bob Rossi wrote:

> On Tue, Jan 24, 2006 at 07:32:15PM +0300, Vladimir Prus wrote:
>> 
>> Hello!
>> 
>> The attached patch adds the "fullname" field to the output of MI
>> -break-info command.
> 
> The patch seems good to me at first glance. However, you should also
> update the testsuite, and send in the patch for that as well.

I'm looking into this right now, and have a question. Inside the test, I
need to get the absolute path to the source file. If I use:

   "${srcdir}/${subdir}/${srcfile}"

the result is:

   "../.././gdb/testsuite/gdb.mi/basics.c"

while output of gdb has absolute path name. So: how do I convert relative
path to an absolute one inside a test? (I don't know anything about Tcl, so
it's not obvious for me).

BTW, it would be nice in gdbint explicitly said how one can run a specific
test from testsuite.

> Also, don't forget about the documentation.

Well, at the moment the -break-info command is not documented at all, so
there's no place where I can add the extra "fullname" field.

- Volodya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]