Binutils with MCST patches
Go to file
Joel Brobecker 8f205f9c40 [Windows] run program with space in path to exe.
The following works...

    % gdb c:\path to exe\foo.exe
    (gdb) start

... unless a file or directory called "c:\path" or "c:\path to" exist.
This is what happens in the latter case:

    (gdb) start
    [...]
    Error creating process C:\path to exe\foo.exe (error 193).

This is because we are calling CreateProcess (et al) without specifying
the lpApplicationName, so Windows determines the name of the executable
using the second argument, which is the entire command line.  This
command line is a space-separated list of tokens, so the space in
the path to the executable which potentially creates an ambiguity.
The ambiguity is automatically resolved unless we're in the situation
above.

The solution, as suggested by the MSDN documentation for CreateProcess
is to quote the executable name.

gdb/ChangeLog:

        * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
        New local variable args_len.
        Quote the name of the executable when computing the command line.
2012-10-24 13:40:16 +00:00
bfd daily update 2012-10-23 23:00:04 +00:00
binutils Don't set bfdtest1 with findfile 2012-10-24 12:28:54 +00:00
config Sync config with GCC 2012-09-29 15:22:16 +00:00
cpu cpu/ 2012-02-27 06:57:57 +00:00
elfcpp Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
etc
gas opcodes/ 2012-10-22 16:04:28 +00:00
gdb [Windows] run program with space in path to exe. 2012-10-24 13:40:16 +00:00
gold gold/ 2012-10-24 02:32:15 +00:00
gprof * corefile.c (core_sym_class): Allow for ".constprop.N" cloned 2012-09-20 13:15:48 +00:00
include Move disable_target_specific_optimizations to bfd_link_info 2012-10-24 11:09:28 +00:00
intl
ld Move disable_target_specific_optimizations to bfd_link_info 2012-10-24 11:09:28 +00:00
libdecnumber config/: 2011-12-20 17:01:30 +00:00
libiberty merge from gcc 2012-10-10 03:11:33 +00:00
opcodes opcodes/ 2012-10-22 16:04:28 +00:00
readline Remove some extraneous changes in readline/terminal.c 2012-10-18 18:55:41 +00:00
sim 2012-10-04 Chao-ying Fu <fu@mips.com> 2012-10-03 21:11:46 +00:00
texinfo
.cvsignore
.gitignore
COPYING
COPYING.LIB
COPYING.LIBGLOSS 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:31:34 +00:00
COPYING.NEWLIB 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:31:34 +00:00
COPYING3
COPYING3.LIB
ChangeLog PR bootstrap/54820 2012-10-23 23:02:33 +00:00
MAINTAINERS MAINTAINERS: clarify policy with config/ (and other top level files) 2012-05-12 03:10:17 +00:00
Makefile.def Sync toplevel files with GCC tree 2012-09-29 15:35:53 +00:00
Makefile.in PR bootstrap/54820 2012-10-22 07:32:04 +00:00
Makefile.tpl PR bootstrap/54820 2012-10-22 07:32:04 +00:00
README
README-maintainer-mode
compile
config-ml.in
config.guess config.{guess,sub}: update from upstream config-patches repo 2012-10-11 16:04:17 +00:00
config.rpath
config.sub config.{guess,sub}: update from upstream config-patches repo 2012-10-11 16:04:17 +00:00
configure PR bootstrap/54820 2012-10-23 23:02:33 +00:00
configure.ac PR bootstrap/54820 2012-10-23 23:02:33 +00:00
depcomp
djunpack.bat
install-sh
libtool.m4 PR target/38607 2012-09-14 23:55:22 +00:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
setup.com
src-release Include the <root>/cpu/ dir in GDB releases 2011-08-19 15:48:36 +00:00
symlink-tree
ylwrap

README

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.