This is the mail archive of the gdb-patches@sources.redhat.com 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]

pathmap (again)


Okay, I don't think there was complete agreement on the syntax and the
semantics, but here's a stab at what I think was agreeable to most...

Proposed Interface:

    pathmap add <from> <to>

	append a mapping from directory <from> to directory <to>
	to the current list of mappings.

    pathmap delete <optional-list>

	delete the mappings indexed by <optional-list> from the
	list of known mappings.  All subsequent mappings move up
	the list.  (For example, if you delete mapping 2, then mapping
	3 becomes mapping 2, mapping 4 becomes mapping 3, and so on.)

    pathmap list <optional-list>

	list the specified mappings.  If no list is given, all
	mappings are listed.

and potentially:

    pathmap insert <index> <from> <to>

	As for 'pathmap add', but insert the mapping immediately after
	mapping <index>.  All subsequent mappings move down the list.
	If <index> is zero, then the mapping is inserted before the
	first mapping.

Where:

    <from> and <to> are directory path prefixes 

    <optional-list> is a list in the same format as for the
		breakpoint commands

    <index> is a non negative integer

And the mappings are not regular expressions -- that is left as a
potential enhancement for the future.  Also, I'm unconvinced of the
need for the "pathmap insert" functionality.

Comments?

David
--
David Taylor
taylor@redhat.com, taylor@cygnus.com

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