Commit Graph

15227 Commits

Author SHA1 Message Date
Friedemann Kleint
d1c08e68cc Debugger: Move some Windows functionality around.
Preparing the introduction of the new CDB engine.
2010-11-17 17:01:51 +01:00
Christian Kamm
740eb6a987 QmlJS: Implement context help and tooltips for properties. 2010-11-17 14:50:14 +01:00
Christian Kamm
aa2d9e6dd6 QmlJS: Return owning object from lookupMember. 2010-11-17 14:50:13 +01:00
Oswald Buddenhagen
4d5cdb3ed8 provide upgrade path for various user file changes
- command argument quoting changes
- environment expansion changes
- substitution of ${SOURCE,BUILD}DIR with %{{source,build}Dir}
- VariableManger syntax change ${} => %{}
2010-11-17 13:19:08 +01:00
Oswald Buddenhagen
79be54ed8c replace env variable injection with pervasive expando support
do not inject SOURCEDIR and BUILDDIR into the environment of
build steps and run configurations any more.
instead, all custom executable paths, argument lists and working
directories now support the %{sourceDir} and %{buildDir} macros.
this approach is more elegant and more scalable.
2010-11-17 13:19:08 +01:00
Oswald Buddenhagen
1e362b0f8b overhaul process argument handling
get away from argument stringlists. instead, use native shell command
lines which support quoting/splitting, environment variable expansion
and redirections with well-understood semantics.

Task-number: QTCREATORBUG-542
Task-number: QTCREATORBUG-1564
2010-11-17 13:19:07 +01:00
Oswald Buddenhagen
531c70f05b add Utils::QtcProcess
this is a wrapper around QProcess with these features:
- setEnvironment() takes a Utils::Environment instead of a QStringList
- instead of taking a stringlist with arguments, take a single shell
  command string which is fully compatible with the system's native
  shell (the bourne shell on unix and cmd.exe on windows) - with support
  for environment variable expansion, and subject to the shell's
  splitting and quoting rules. if the command is too complex (e.g.,
  contains redirections), it is transparently executed through a real
  shell.
- additionally, the class contains a set of helper functions for
  manipulating (constructing, splitting, etc.) shell command lines.
  in particular, it contains a shell-safe macro expander and the nested
  class ArgIterator which can be used for inspecting and manipulating a
  shell command line without going through the stringlist indirection
  (which is potentially lossy).

some of this is based on KDE code (KShell and KMacroExpander) which i
have written myself.
2010-11-17 13:19:07 +01:00
Oswald Buddenhagen
dc3ab5bf85 refactor VariableManager
make it provide a macroExpander() instead of a resolve() function.
this detaches the actual variable management from the string
manipulation.
2010-11-17 13:19:06 +01:00
Oswald Buddenhagen
9bd95ade08 add generic macro expansion classes & functions to Utils
AbstractMacroExpander (any macros), AbstractQtcMacroExpander (%{var}
style macros, which is a hybrid of printf format specifiers and unix
environment expansions) and expandMacros() for the actual string
manipulation.
2010-11-17 13:19:06 +01:00
Oswald Buddenhagen
a2b6391b31 change variable manager expansion style from ${} to %{}
this is less confusing, because it doesn't look like an environment
variable expansion under unix.
the syntax is a hybrid of printf format specifiers and braced unix
variable expansions.
2010-11-17 13:19:06 +01:00
Oswald Buddenhagen
0641ed0eaa change Environment::expandVariables() semantics
instead of being os-agnostic, interpret the os-native expansion style,
so it is consistent with proper (shell) command lines.

don't interpret quotes, as this function is meant for expanding isolated
filepaths, where nobody would expect quoting. instead, use the windows
style of simply not doing an expansion if a referenced variable is not
found, which should be good enough - it's rather unlikely that something
which happens to be an expansion of an existing variable is actually not
meant to be one.
2010-11-17 13:19:06 +01:00
Arvid Ephraim Picciani
fb47cfda11 Fix compilation 2010-11-17 12:12:13 +01:00
Christian Kandeler
1166dc39da Maemo: Use current build environment for packaging.
(Instead of the initial system environment.)

Reviewed-by: kh1
2010-11-17 11:10:37 +01:00
Friedemann Kleint
9235e9360b Debugger: Compile CDB 2010-11-17 08:28:35 +01:00
Rhys Weatherley
a666c48cf5 Variable and parameter declarations for GLSL 2010-11-17 15:23:13 +10:00
Rhys Weatherley
7e4ef22cbd Add extra variant flags for GLSL keywords 2010-11-17 10:53:32 +10:00
Alessandro Portale
f096b53b46 Fixing the generation of Qt Quick examples 2010-11-16 20:57:22 +01:00
Alessandro Portale
8eb60c6598 Filtering '-' out of generated projects
(In QtCreator the wizard would take care of that.)
2010-11-16 20:56:01 +01:00
hjk
adba4c954c debugger: remove breakpoint notification indirection through the engine 2010-11-16 18:20:52 +01:00
hjk
4e1452fd59 debugger: handle disabled breakpoints on debugger startup again 2010-11-16 18:14:44 +01:00
hjk
a9a9143b5d debugger: replace BreakpointPending state with a flag in BreakpointResponse
To keep the breakpoint state machinery simple
2010-11-16 18:14:44 +01:00
hjk
e1e680db01 debugger: fix cut&paste error in breakpoint states 2010-11-16 18:14:44 +01:00
Morten Engvoldsen
886a9736dc Updating QML examples list for deployment on device. 2010-11-16 18:03:06 +01:00
hjk
f9c585281e debugger: fix display of '"' chars
Task-number: QTCREATORBUG-3084
2010-11-16 17:09:56 +01:00
hjk
cb4e680424 debugger: add a few permitted breakpoint state transitions 2010-11-16 17:09:55 +01:00
hjk
fd8bf48b2b debugger: start tightening the breakpoint state machinery 2010-11-16 17:09:55 +01:00
Robert Loehning
0f813fdc33 debugger: Added comment about unexpected behavior 2010-11-16 16:28:21 +01:00
Christiaan Janssen
d992b223f6 QmlDebugger: Fixing QmlCppEngine for failed setup due to timed out connection 2010-11-16 16:23:50 +01:00
kh1
da84000313 Cannot reset font size for help when shown in side pane.
Task-number: QTCREATORBUG-2924
Reviewed-by: ck
2010-11-16 16:25:56 +01:00
kh1
0985f9c1c4 Fix ambiguity with help manager by renaming the file to match class.
Task-number: QTCREATORBUG-3090
Reviewed-by: ck
2010-11-16 16:25:55 +01:00
Christian Kamm
5f196cf5b8 QmlJS: Make follow symbol work with member properties.
A full evaluate() call resolves the property and continues to the
underlying type. If we use Evaluate::reference() instead, we only the
first step is done and we can get at the source location if a
ASTPropertyReference is returned.

Reviewed-by: Erik Verbruggen
2010-11-16 15:30:54 +01:00
Christian Kamm
7dfb2bd577 QmlJS: Add a filter for functions to the locator.
Task-number: QTCREATORBUG-2607
Reviewed-by: Erik Verbruggen
2010-11-16 15:27:26 +01:00
Christian Kamm
6c9f32ba60 QmlJS: Also bind FunctionExpressions.
Reviewed-by: Erik Verbruggen
2010-11-16 15:27:26 +01:00
Christian Kamm
a89ec50861 Locator: Use all matching filters, not just the highest priority one.
Reviewed-by: con
2010-11-16 15:27:26 +01:00
hjk
cbc1854f7b debugger: some simplification after engine objects are no more re-used 2010-11-16 12:52:02 +01:00
hjk
38428e5feb debugger: make the command timer a direct member of GdbEngine 2010-11-16 12:46:02 +01:00
hjk
d7a75dff9e debugger: breakpoint code cosmetics 2010-11-16 12:43:17 +01:00
Friedemann Kleint
78a560a6df Debugger: Stop in case of gdb crash in InferiorStop.
Reviewed-by: hjk
Task-number: QTCREATORBUG-3099
2010-11-16 12:39:24 +01:00
con
62285b48d9 Stupid editor adding tabs instead of spaces... 2010-11-16 12:33:04 +01:00
con
98077818fc Fix tool buttons in details widget on Mac with raster engine.
Task-number: QTBUG-15170
2010-11-16 12:31:09 +01:00
Friedemann Kleint
ac51d53587 Debugger: Fix useFullPath in gdb. 2010-11-16 12:17:00 +01:00
hjk
0a004097e1 debugger: remove intermediate BreakpointData stucture layer 2010-11-16 11:48:43 +01:00
Friedemann Kleint
3a7f7b6d4a Debugger/BreakpointDialog: Show only data applicable to type.
Clear controls that are not applicable to type, but save
and restore their value once the type is again choosen.
2010-11-16 11:42:20 +01:00
hjk
0ccba579f6 debugger: potentia;l cdb compile fix 2010-11-16 11:12:05 +01:00
hjk
694503cc76 debugger: looks like the BreakpointData layer is going to be unneeded. 2010-11-16 11:09:09 +01:00
hjk
3cf3f14d7f debugger: more breakpoint refactoring 2010-11-16 10:50:26 +01:00
hjk
62c7a110ab debugger: code cosmetics 2010-11-16 10:50:26 +01:00
hjk
76d2c58161 debugger: move marker filename and linenumber to BreakpointItem 2010-11-16 10:50:26 +01:00
Friedemann Kleint
29beabd5a4 Debugger: Handle throw/catch/main as BreakpointType enum values.
Remove BreakHandler::hasPendingBreakpoints, handle new types
in CDB and gdb. Start fixing Breakpoint-Dialog.
Add assignment of Breakpointresponse from BreakpointParameters.

Reviewed-by: hjk
2010-11-16 10:23:20 +01:00
Alessandro Portale
3f366ef54b Valid XML attempt 2010-11-15 22:28:58 +01:00