Skip to content

Commit 10cfc45

Browse files
committed
mmt: update to 3.11
1 parent 5bc31af commit 10cfc45

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

mmt/mmt_instrument.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,9 @@ static void add_trace_store(IRSB *bbOut, IRExpr *destAddr, Addr inst_addr,
715715

716716
IRSB *mmt_instrument(VgCallbackClosure *closure,
717717
IRSB *bbIn,
718-
VexGuestLayout *layout,
719-
VexGuestExtents *vge,
720-
VexArchInfo* archinfo_host,
718+
const VexGuestLayout *layout,
719+
const VexGuestExtents *vge,
720+
const VexArchInfo* archinfo_host,
721721
IRType gWordTy, IRType hWordTy)
722722
{
723723
IRSB *bbOut;

mmt/mmt_instrument.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
IRSB *mmt_instrument(VgCallbackClosure *closure,
88
IRSB *bbIn,
9-
VexGuestLayout *layout,
10-
VexGuestExtents *vge,
11-
VexArchInfo* archinfo_host,
9+
const VexGuestLayout *layout,
10+
const VexGuestExtents *vge,
11+
const VexArchInfo* archinfo_host,
1212
IRType gWordTy, IRType hWordTy);
1313

1414
#endif /* MMT_INSTRUMENT_H_ */

mmt/mmt_trace_bin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
static void mydescribe(Addr inst_addr, char *namestr, int len)
3131
{
32-
char filename[100];
32+
const char* filename;
3333
UInt line = 0;
3434

35-
if (VG_(get_filename)(inst_addr, filename, 100))
35+
if (VG_(get_filename)(inst_addr, &filename))
3636
{
3737
VG_(get_linenum)(inst_addr, &line);
3838
VG_(snprintf) (namestr, len, "@%08lx (%s:%d)", inst_addr, filename, line);

0 commit comments

Comments
 (0)