This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow spaces in filenames to load command
- From: Jim Blandy <jimb at red-bean dot com>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 5 Dec 2005 12:50:47 -0800
- Subject: Re: [PATCH] Allow spaces in filenames to load command
- References: <43949300.1040203@st.com>
On 12/5/05, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> 2005-12-05 Andrew Stubbs <andrew.stubbs@st.com>
>
> * symfile.c (generic_load): Use buildargv and tilde_expand
> to parse file names with quoting, spaces and tildes properly.
Hi, Andrew. I like the idea of using buildargv and tilde_expand.
> + /* Do we have args from the user or from the default? */
> + if (exec_bfd && args == get_exec_file (1))
> + /* The string is ONLY the file name. */
> + filename = args;
What is this about? This seems very fragile.