Skip to content

Commit 9e8359d

Browse files
committed
Merge branch 'maint'
2 parents 4466b8e + 5925df1 commit 9e8359d

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

erts/etc/unix/cerl.src

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
# -icount Run emulator compiled for instruction counting
4848
# -rr Run emulator under "rr record"
4949
# 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
5052
# -nox Unset the DISPLAY variable to disable us of X Windows
5153
#
5254
# FIXME For GDB you can also set the break point using "-break FUNCTION".
@@ -252,7 +254,7 @@ while [ $# -gt 0 ]; do
252254
cargs="$cargs -rr"
253255
run_rr=yes
254256
case "$1" in
255-
"replay"|"ps")
257+
"replay"|"eplay"|"ps")
256258
;;
257259
*)
258260
skip_erlexec=yes
@@ -399,15 +401,21 @@ if [ "x$GDB" = "x" ]; then
399401
exec $taskset1 valgrind $valgrind_xml $valgrind_log $vgflags $BINDIR/$EMU_NAME $sched_arg $emu_xargs "$@"
400402
fi
401403
elif [ $run_rr = yes ]; then
402-
if [ $1 = replay ]; then
404+
if [ $1 = replay ] || [ $1 = eplay ]; then
405+
rr_cmd=$1
403406
shift
404407
cmdfile="/tmp/.cerlgdb.$$"
405408
echo "set \$etp_beam_executable = \"$BINDIR/$EMU_NAME\"" > $cmdfile
406409
if [ "$1" = "-p" ]; then
407410
echo 'set $etp_rr_run_until_beam = 1' >> $cmdfile
408411
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
411419
elif [ $1 = ps ]; then
412420
shift
413421
rr ps $* | head -1

lib/crypto/c_src/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ $(OBJDIR)/ec$(TYPEMARKER).o: ec.c
211211

212212
$(OBJDIR)/%$(TYPEMARKER).o: %.c
213213
$(V_at)$(INSTALL_DIR) $(OBJDIR)
214-
$(V_CC) -c -o $@ $(ALL_CFLAGS) $<
214+
$(V_CC) -MMD -c -o $@ $(ALL_CFLAGS) $<
215215

216216
$(LIBDIR)/crypto$(TYPEMARKER).so: $(CRYPTO_OBJS)
217217
$(V_at)$(INSTALL_DIR) $(LIBDIR)
@@ -277,3 +277,4 @@ endif
277277

278278
release_docs_spec:
279279

280+
-include $(CRYPTO_OBJS:%.o=%.d)

0 commit comments

Comments
 (0)