Trepan-Debuggers / Trepan-Debuggers/remake
Can't start debugger if no targets are defined
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 850
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
I want to debug the following Makefile (the actual problem is irrelevant; the make-dirs call expands to nothing):
define _make-dir
$1/.dum: $(not-dir $1)/.dum
mkdir $(dir $@)
touch $(dir $@)/.dum
endef
# we dont try to create/depend on /.dum
define make-dir
$(if $(not-dir $1),$(call _make-dir,$1),)
endef
$(call make-dir,test/)
Running remake results in the following:
$ remake -X
Reading makefiles...
Updating makefiles...
remake: *** No targets. Stop.
As a workaround, a dummy target can be added, to get into the REPL, but it would be nice if this wasn't a problem when wanting to debug macro libraries or such.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the shown Makefile and remake -X, then trace the debugger startup path when GNU Make reports no targets. Done means a no-target Makefile can enter the debugger without a dummy target, with a regression test covering this case.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100