[patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles
Doug Evans
dje@google.com
Sun Jan 6 21:07:00 GMT 2008
On Jan 6, 2008 12:17 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > How would this option work in practice?
>
> How about
>
> (gdb) set filename-style (dos|unix)
>
> ?
Apologies. The question on how it would work in practice and the
comment on being cumbersome weren't intended to be treated in
isolation.
> > If one ever wanted to set it to the non-default value it'd be
> > rather cumbersome to have to set it and then reset it for one-off
> > uses of "the other" path kind.
>
> No more cumbersome than any other similar option, like "set
> demangle-style", for example.
I haven't used demangle-style enough to know if the use-cases are similar.
What would the option apply to? How would the user know when and when
not to use it?
One thing that occurs to me is what if I do "bash$ gdb
/prog/with/other/path/format"? Will gdb need to know the format
before the user gets a chance to specify the format? [Now we're not
just adding an option but a command line parameter too.]
Another thing that occurs to me is that I vaguely remember building
libraries in one environment and then using the library in another. I
could be mistaken, it's been awhile. Can one have a case where both
path formats are in use simultaneously?
I don't mean to belabor the issue. It's just that an option seems
problematic at best. I could be wrong of course.
More information about the Gdb-patches
mailing list