This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: pathmap or dir command on drugs
- To: Stephane Carrez <Stephane dot Carrez at france dot sun dot com>
- Subject: Re: pathmap or dir command on drugs
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 07 Nov 2000 12:59:54 +0000
- CC: gdb at sourceware dot cygnus dot com
- Organization: Red Hat Canada Ltd. - Toronto
- References: <200011071111.MAA06856@sunchorus.France.Sun.COM>
Stephane Carrez wrote:
>
> David Taylor wrote:
> > The other camp is
> >
> > pathmap add <from-prefix> <to-prefix>
> > pathmap list <optional-list>
> > pathmap delete <optional-list>
>
> Looks good,
>
> As for dbx, I suggest to give numbers to each pathmap so that deletion is
> made on the index rather than on some path.
>
Yes, the idea is that you can have
pathmap delete 3
pathmap delete 4-6
pathmap delete all
Deletions on the path are not very practical.
> I guess we need some optional argument to 'add' to tell the position of
> the new pathmap in the list. After that, the old pathmaps after the new
> one, will have their index incremented. Well, like dbx :-)
>
I suggest an "insert" subcommand:
pathmap insert <index> <from> <to>
It is like add but it lets the user specify after which entry it
should be added.
This way there will be no parsing madness trying to decide if something
is a path or a number.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9