2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00
Commit Graph

1213 Commits

Author SHA1 Message Date
Steven Watanabe
c7b2c57e79 Start testing mi. 2016-03-10 12:49:57 -07:00
Kohei Takahashi
8b9dbbe418 Add support for FreeBSD 10 or later.
Since FreeBSD 10, it uses clang as a system default compiler.
freebsd-version is used to detect FreeBSD version.
2016-03-10 09:30:04 +03:00
Michał Górny
de9a600167 Do not pass -Ofast to pathscale toolset
Do not pass -Ofast when using the pathscale toolset. It enables insecure
optimizations, and that is probably why no other toolset uses this
option. It also causes internal compiler problems with current pathcc
versions.
2016-03-09 09:55:40 +03:00
Steven Watanabe
aaeedea9cc Fix a leak and a missing copy when building with the global string table disabled. 2016-03-04 12:28:42 -07:00
Steven Watanabe
b015a40847 Don't close the file automatically in yyline. We need yylval.file to survive until the parser is really done. 2016-03-04 11:38:50 -07:00
Steven Watanabe
f00b27cf5a NDEBUG disables OBJECT_MAGIC. 2016-03-04 11:11:40 -07:00
Steven Watanabe
8f39cdebc9 Fix two memory leaks and a double free. 2016-03-04 11:08:28 -07:00
Steven Watanabe
f5e005e8f3 Fix memory leak on cygwin and vms. path_copy initializes a new string. It should never be used on a string that is already initialized. 2016-03-01 11:32:34 -07:00
Steven Watanabe
9da5a06af8 Add missing header. Without this OS_CYGWIN is not defined which causes the :W modifier to fail. 2016-03-01 11:22:20 -07:00
Steven Watanabe
0da0a8ccf4 Unbreak msvc build. 2016-02-23 14:39:04 -07:00
Steven Watanabe
340756c61e Add clear to help 2016-02-23 09:53:50 -07:00
Steven Watanabe
7d7de34346 More testing. Fix some issues exposed by the new tests. 2016-02-20 18:30:55 -07:00
Steven Watanabe
e9db80896f Merge remote-tracking branch 'origin/develop' into debug
Conflicts:
	src/engine/builtins.c
	src/engine/builtins.h
	src/engine/function.c
	src/engine/jam.c
2016-02-19 12:02:22 -07:00
Steven Watanabe
2a5032261f Get backtrace working and add some more tests. 2016-02-17 10:30:48 -07:00
Vladimir Prus
2f8e4ae868 Do not use 'mingw' as bootstrap toolchain name.
Instead, use gcc everywhere and detect the target to decide whether we need
to use POSIX or Windows runtime.
2016-02-17 16:27:28 +03:00
Steven Watanabe
5424ef24d4 Add tests and get break output to work in console mode. 2016-02-16 14:35:31 -07:00
Steven Watanabe
7a46ea5202 Get print+breakpoints+stepping to work with both console and mi. 2016-02-11 11:14:17 -07:00
Steven Watanabe
b263f1aae0 Work on un-mixing stdout and debugger internal comunication. 2016-01-11 12:27:23 -07:00
Steven Watanabe
0704b0f0af Create a flag for running the debugger. Also start splitting the text interface from the gdm/mi interface. 2015-12-14 13:33:55 -07:00
Vladimir Prus
4a5cf7f909 OpenVMS support.
See https://github.com/boostorg/build/pull/100
2015-12-14 02:46:44 -05:00
Aaron Boman
55593971a8 Provide error message and stacktrace with bad parameter to bjam.call() 2015-12-14 02:15:32 -05:00
wmarquesr
0cb7b16543 Refactoring conditional directives for incomplete if conditions. 2015-12-14 02:05:55 -05:00
Steven Watanabe
c0ef46eeab Add support for clearing breakpoints. 2015-12-11 13:34:11 -07:00
Steven Watanabe
31692f06f9 Check for a child when printing the stack. 2015-12-11 13:02:37 -07:00
Steven Watanabe
7c8de02c3f Really commit the code that I intended to add in the last commit. Also add support for viewing the stack. 2015-12-10 19:48:01 -07:00
Steven Watanabe
daa67700ed Implement printing values for MI. 2015-12-10 17:16:13 -07:00
Artur Shepilko
63021f6d64 Add GLOB_ARCHIVE builtin. 2015-10-24 12:21:31 -05:00
Artur Shepilko
c696419e2a Add bootstrap on VMS, use POSIX-style path handling. 2015-10-24 12:21:31 -05:00
Artur Shepilko
4cf86b31ca Exit program with a consistent error status. 2015-10-24 12:21:30 -05:00
Aaron Boman
b04bfcf171 Add type checking to help ease porting.
- Adds python optimization by default with a "-z" disable flag.
- Add type checking to bjam_signature and type checking asserts.
- Fix a type assertion in testing.
2015-09-17 09:54:46 +03:00
Artur Shepilko
04553d1ed4 Add missing defines to enable bootstrapping with vc8 toolset. 2015-09-03 14:16:29 +03:00
Vladimir Prus
bd97806025 Report Python paths used for build. 2015-08-19 11:16:23 +03:00
Vladimir Prus
688607d5db Split bjam_call into smaller functions. 2015-08-19 11:13:51 +03:00
Matthaus Owens
eefd58579e Use test_path instead of which
which was used to detect icc, but on some platforms such as solaris 10
which always returns 0, even when the command is not found on the path.
This commit updates the invocation to use the test_path function
instead, which does return non-zero on solaris 10 in the failure case.
2015-08-10 12:38:20 -07:00
Matthaus Owens
bcdb695438 Use sh compliant subshells
In commit d21102f2a1, the icc detection
was updated to use bash style subshells, which breaks on systems that
have just sh, such as solaris 10. This commit updates the detection to
use `` style subshells instead of $().
2015-08-10 12:38:20 -07:00
Rene Rivera
f191b3cc7e Merge pull request #82 from camorton2/xlcpp-toolset-build
Xlcpp toolset build
2015-07-22 11:19:23 -06:00
Jürgen Hunold
0956e85395 Bump version number to 2015.07
And change -svn to -git
2015-07-18 10:40:22 +02:00
Catherine Morton
1f61ae4edb fix permissions 2015-06-02 15:29:22 -04:00
Catherine Morton
78c2632878 adding toolset for xlcpp 2015-06-02 12:58:39 -04:00
Steven Watanabe
ae1183ee2d Return really returns now. Also implement break/continue. 2015-04-18 14:30:43 -06:00
Rene Rivera
5f22da72aa Reporpous "-o" option to mirror all BB output to the specified file.
Useful for script control and for users to obtain a log in an easier
cross-platform manner.
2015-04-10 09:07:56 -05:00
Steven Watanabe
48aca139d5 Start implementing GDB/MI. Basic commands for running work
in Emacs GDB mode.

TODO:
* Pipe command output in the child through the debugger rather
  than sending it straight to stdout.
* Redirect stdin/stdout/stderr as needed and format the output.
* Add a proper switch between console and mi.
* Finish implementing the stub functions.
* Get Emacs commands for viewing data and the stack working.
2015-03-31 13:23:54 -06:00
Steven Watanabe
2585b08e7e Remove unused variables from TARGET and shuffle some of its other members so they pack more efficiently. 2015-03-24 11:44:40 -06:00
Steven Watanabe
d0594ad5d5 Cleanup.
* Commands are no longer capped at 8 tokens
* Mark functions as static
* Add declaration of debugger( void ) in debugger.h
* Use f ( void ) instead of f ( )
2015-03-23 17:23:58 -06:00
Steven Watanabe
e611b28a20 Normalize paths when setting breakpoints, so it isn't necessary to match the exact name used to load the file. Also allow setting a breakpoint with just a filename, i.e. gcc.jam:73. 2015-03-23 16:57:21 -06:00
Steven Watanabe
78d045e0df Make sure that finish stops when returning from a tail call. 2015-03-23 11:45:47 -06:00
Steven Watanabe
eb1e353840 Fix $(ARGV[1]) on *nix. 2015-03-23 11:37:27 -06:00
Steven Watanabe
ed8bf16ecc Improve test to decide whether a breakpoint is the name of a function or a file+line. Rule names can contain ':' when the module name includes an absolute path on Windows. e.g. Jamfile<C:\boost>.tag. 2015-03-23 11:05:20 -06:00
Steven Watanabe
3721fec260 Initial implementation of a debugger for Jam.
The interface is a subset of gdb.

TODO:
* Put this behind flag, so it's possible to run b2 without the debugger.
  Perhaps -db?
* Keep a command history and allow it to be accessed.
* Abbreviate long arguments in the backtrace, and wrap
  long lines better.
* Implement more commands.  I'm thinking of watch, condition, and ignore in
  particular.
* Test the runtime cost.  If it doesn't have any noticable penalty
  when it's off, then it's safe to integrate this functionality
  into the primary b2 executable.
* Write documentation.
* IDE integration.  I'm hoping that I can hijack gdb support for any
  editor that has built in support for gdb.
2015-03-21 17:21:36 -06:00
Steven Watanabe
1a87fc9da1 Adjust the alignment check to account for platforms with lower alignment requirements for pointers. Fixes #8993. 2015-03-13 20:13:27 -06:00