Ben Burdette
f9cdb6af8d
Merge branch 'debug-exploratory-PR' into debuggerHook-eval-arg
2022-05-19 11:07:18 -06:00
Ben Burdette
357fb84dba
use an expr->StaticEnv table in evalState
2022-05-19 10:48:10 -06:00
Ben Burdette
667074b586
first whack at passing evalState as an arg to debuggerHook.
2022-05-16 09:20:51 -06:00
Ben Burdette
6faa56ea1f
remove extra argument
2022-05-15 12:05:34 -06:00
Eelco Dolstra
dd8b91eebc
Style fixes
...
In particular, use std::make_shared and enumerate(). Also renamed some
fields to fit naming conventions.
2022-05-05 17:17:03 +02:00
Ben Burdette
172a83d22a
line endings
2022-04-29 11:24:54 -06:00
Ben Burdette
2a5632c70d
incorporate PosIdx changes, symbol changes.
2022-04-29 10:02:17 -06:00
Ben Burdette
6e19947993
Merge branch 'master' into debug-merge-master
2022-04-28 12:32:57 -06:00
pennae
39df15fb8e
don't use full Pos for findPackageFilename/editorFor
...
only file and line of the returned position were ever used, it wasn't actually
used a position. as such we may as well use a path+int pair for only those two
values and remove a use of Pos that would not work well with a position table.
2022-04-21 21:25:18 +02:00
Ben Burdette
a86c2a8481
remove 'debugError', dead code
2022-04-08 13:30:18 -06:00
Ben Burdette
1a93ac8133
Merge remote-tracking branch 'upstream/master' into upstream-merge
2022-04-07 13:42:01 -06:00
Ben Burdette
f37562187f
free valmap on exit
2022-04-07 11:17:31 -06:00
Ben Burdette
5cfd038bd8
show expr pos if DebugTrace one is noPos
2022-04-06 19:08:29 -06:00
Ben Burdette
1bec3fb337
add DebugTrace for error
2022-03-25 18:15:31 -06:00
Hideaki Kawai
3b776cb0a7
nix edit: support kakoune
2022-03-22 23:18:02 +09:00
Ben Burdette
88a54108eb
formatting
2022-03-16 12:09:47 -06:00
Ben Burdette
3dfab6e534
have only one debuggerHook declaration
2022-03-14 11:58:11 -06:00
Eelco Dolstra
54888b92de
Move installables-related operations
2022-03-02 19:19:51 +01:00
Ben Burdette
dbe3fd3735
Merge branch 'master' into debug-step
2022-02-04 15:09:40 -07:00
Ben Burdette
3ddf864e1b
print value in break
2022-02-04 14:50:25 -07:00
Eelco Dolstra
4dda1f92aa
Add command 'nix store copy-log'
...
Fixes #5222 .
2022-01-18 14:08:49 +01:00
Eelco Dolstra
6448ea84ab
Factor out --from / --to logic
2022-01-18 14:08:49 +01:00
Ben Burdette
990bec78d3
clear screen and show top debug trace
2022-01-08 15:43:04 -07:00
Ben Burdette
a963674d88
optinoal error; compiles
2022-01-08 11:03:48 -07:00
Ben Burdette
c669108981
merge cleanup
2022-01-03 18:13:16 -07:00
Ben Burdette
a47de1ac37
Merge branch 'master' into debug-exploratory-PR
2022-01-03 16:08:28 -07:00
Ben Burdette
5954cbf3e9
more cleanup
2021-12-27 18:29:55 -07:00
Ben Burdette
4610e02d04
remove debug code
2021-12-27 18:12:46 -07:00
Ben Burdette
9760fa8661
add DebugTrace for the current error
2021-12-27 17:35:27 -07:00
Ben Burdette
e5eebda194
DebugTrace
2021-12-23 13:36:39 -07:00
Ben Burdette
b4a59a5eec
DebugStackTracker class in one place
2021-12-22 15:38:49 -07:00
Ben Burdette
f317019edd
:d error
2021-12-20 12:32:21 -07:00
Yorick van Pelt
33e96820d5
EvalCommand::getEvalState: use gc tracable allocator for EvalState
2021-12-11 16:02:08 +01:00
Ben Burdette
e82aec4efc
fix merge issues
2021-11-30 14:15:02 -07:00
Ben Burdette
64c4ba8f66
Merge branch 'master' into debug-merge
2021-11-25 08:53:59 -07:00
Ben Burdette
69e26c5c4b
more cleanup
2021-11-25 08:23:07 -07:00
Ben Burdette
e54f17eb46
remove more debug code
2021-10-22 14:27:04 -06:00
Ben Burdette
cbc2f0fe31
remove dead code
2021-10-22 14:02:47 -06:00
Ben Burdette
383ab600ee
show expr on error
2021-10-22 13:41:04 -06:00
Ben Burdette
98eb13691a
print staticenv bindings
2021-10-11 16:32:43 -06:00
Ben Burdette
2ee1fa4afd
add nullable Expr argument
2021-10-11 14:42:29 -06:00
John Ericson
242f9bf3dc
std::visit
by reference
...
I had started the trend of doing `std::visit` by value (because a type
error once mislead me into thinking that was the only form that
existed). While the optomizer in principle should be able to deal with
extra coppying or extra indirection once the lambdas inlined, sticking
with by reference is the conventional default. I hope this might even
improve performance.
2021-09-30 21:35:09 +00:00
Eelco Dolstra
4b2b151131
nix path-info -r: Don't duplicate the root paths
...
This fixes
$ nix path-info -r $(type -P ls)
/nix/store/vfilzcp8a467w3p0mp54ybq6bdzb8w49-coreutils-8.32
/nix/store/5d821pjgzb90lw4zbg6xwxs7llm335wr-libunistring-0.9.10
...
/nix/store/mrv4y369nw6hg4pw8d9p9bfdxj9pjw0x-acl-2.3.0
/nix/store/vfilzcp8a467w3p0mp54ybq6bdzb8w49-coreutils-8.32
Also, output the paths in topologically sorted order like we used to.
2021-09-27 12:47:39 +02:00
Eelco Dolstra
a15e65eef0
run(): Move
2021-09-27 11:12:06 +02:00
Ben Burdette
cd8c232b55
add cout debugging
2021-09-15 16:16:53 -06:00
Ben Burdette
176911102c
printEnvPosChain
2021-09-13 11:57:25 -06:00
Ben Burdette
d8a977a22e
adding all the value names from env.values[0]
2021-08-25 11:19:09 -06:00
Ben Burdette
bd3b5329f9
print env bindings
2021-08-24 16:32:54 -06:00
Ben Burdette
4b5f9b35f0
env to bindings
2021-08-18 21:25:26 -06:00
Ben Burdette
b6eb38016b
moving towards env in exceptions
2021-08-17 14:39:50 -06:00