File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 47
47
# -icount Run emulator compiled for instruction counting
48
48
# -rr Run emulator under "rr record"
49
49
# Can be combined with compile targets (like -debug) except valgrind.
50
+ # -rr replay|eplay [rr-replay-options]
51
+ # Run "rr replay" without or with emacs
50
52
# -nox Unset the DISPLAY variable to disable us of X Windows
51
53
#
52
54
# FIXME For GDB you can also set the break point using "-break FUNCTION".
@@ -252,7 +254,7 @@ while [ $# -gt 0 ]; do
252
254
cargs=" $cargs -rr"
253
255
run_rr=yes
254
256
case " $1 " in
255
- " replay" |" ps" )
257
+ " replay" |" eplay " | " ps" )
256
258
;;
257
259
* )
258
260
skip_erlexec=yes
@@ -399,15 +401,21 @@ if [ "x$GDB" = "x" ]; then
399
401
exec $taskset1 valgrind $valgrind_xml $valgrind_log $vgflags $BINDIR /$EMU_NAME $sched_arg $emu_xargs " $@ "
400
402
fi
401
403
elif [ $run_rr = yes ]; then
402
- if [ $1 = replay ]; then
404
+ if [ $1 = replay ] || [ $1 = eplay ]; then
405
+ rr_cmd=$1
403
406
shift
404
407
cmdfile=" /tmp/.cerlgdb.$$ "
405
408
echo " set \$ etp_beam_executable = \" $BINDIR /$EMU_NAME \" " > $cmdfile
406
409
if [ " $1 " = " -p" ]; then
407
410
echo ' set $etp_rr_run_until_beam = 1' >> $cmdfile
408
411
fi
409
- cat $ROOTDIR /erts/etc/unix/etp-commands >> $cmdfile
410
- exec rr replay -x $cmdfile $*
412
+ echo " source $ROOTDIR /erts/etc/unix/etp-commands" >> $cmdfile
413
+ if [ $rr_cmd = replay ]; then
414
+ exec rr replay -x $cmdfile $*
415
+ else
416
+ # eplay
417
+ exec emacs -eval " (progn (gdb \" rr replay -i=mi -x $cmdfile $* \" ))"
418
+ fi
411
419
elif [ $1 = ps ]; then
412
420
shift
413
421
rr ps $* | head -1
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ $(OBJDIR)/ec$(TYPEMARKER).o: ec.c
211
211
212
212
$(OBJDIR ) /% $(TYPEMARKER ) .o : % .c
213
213
$(V_at )$(INSTALL_DIR ) $(OBJDIR )
214
- $(V_CC ) -c -o $@ $(ALL_CFLAGS ) $<
214
+ $(V_CC ) -MMD - c -o $@ $(ALL_CFLAGS ) $<
215
215
216
216
$(LIBDIR ) /crypto$(TYPEMARKER ) .so : $(CRYPTO_OBJS )
217
217
$(V_at )$(INSTALL_DIR ) $(LIBDIR )
@@ -277,3 +277,4 @@ endif
277
277
278
278
release_docs_spec :
279
279
280
+ -include $(CRYPTO_OBJS :% .o=% .d)
You can’t perform that action at this time.
0 commit comments