Skip to content

Instantly share code, notes, and snippets.

View scottcarr's full-sized avatar

Scott Carr scottcarr

  • Detroit, MI
View GitHub Profile
#lang racket
(define GDB-PROMPT #"(gdb) \n")
(define NEWLINE 10)
(define-values (proc o i e) (subprocess #f #f #f "/usr/bin/gdb" "--interpreter=mi2"))
(file-stream-buffer-mode o 'none)
(file-stream-buffer-mode i 'none)
(file-stream-buffer-mode e 'none)
This file has been truncated, but you can view the full file.
Debugging is enabled.
Loading Standard Definitions file: /usr/local/lib/python2.7/dist-packages/mcsema_disass-2.0-py2.7.egg/mcsema_disass/defs/windows.txt
Not treating _initterm as external, it is defined at 6ff5c151
Not treating _initterm_e as external, it is defined at 6ff61d9d
Not treating _amsg_exit as external, it is defined at 6ffbb30f
Not treating _XcptFilter as external, it is defined at 6ff7dc75
Not treating __getmainargs as external, it is defined at 6ff62bc0
Not treating __wgetmainargs as external, it is defined at 6ff64e7c
Not treating _exit as external, it is defined at 6ffbb2e0
Not treating exit as external, it is defined at 6ff636aa
$ ./mach run
0:00.11 /usr/home/scott/research/HexVASan/firefox/firefox-49.0.2/obj-x86_64-unknown-freebsd11.0/dist/bin/firefox -no-remote -profile /usr/home/scott/research/HexVASan/firefox/firefox-49.0.2/obj-x86_64-unknown-freebsd11.0/tmp/scratch_user
XPCOMGlueLoad error for file /usr/home/scott/research/HexVASan/firefox/firefox-49.0.2/obj-x86_64-unknown-freebsd11.0/dist/bin/libxul.so:
Shared object "libnss3.so" not found, required by "libxul.so"
Couldn't load XPCOM.
// Generated by llvm2cpp - DO NOT MODIFY!
#include <llvm/Pass.h>
#include <llvm/ADT/SmallVector.h>
#include <llvm/Analysis/Verifier.h>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/CallingConv.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/DerivedTypes.h>
#include <llvm/IR/Function.h>
# Size of the data corpus, either ref (reference data set), or test. Use ref data set to report, test to test.
size = ref
# 3 iterations are used for reportable run, use 1 for testing
iterations = 1
#use_submit_for_speed = 1
# Action to execute; build: only build benchmarks, run: build and run benchmarks
action = run
# C: 400 401 403 429 445 456 458 462 464 433 470 482
# C++: 471 473 483 444 447 450 453
# C/Fortran: 435 436 454 481
/* Language-independent node constructors for parse phase of GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
; Function Attrs: uwtable
define internal void @_GLOBAL__sub_I_test.cpp() #0 section ".text.startup" {
call void @__cxx_global_var_init()
ret void
}
; Function Attrs: uwtable
define internal void @_GLOBAL__sub_I_test.cpp() #0 section ".text.startup" {
call void @__cxx_global_var_init()
call void @__cxx_global_var_init.1()
ret void
}
#include <iostream>
using namespace std;
class Foo {
public:
ostream* std_out;
Foo() : std_out(&cerr) {
std_out->setf(ios::showpoint | ios::left);
}
void print() {
*std_out << 4.5f << endl;
00000000004001e0 <main>:
4001e0: 55 push %rbp
4001e1: 48 89 e5 mov %rsp,%rbp
4001e4: 48 83 ec 10 sub $0x10,%rsp
4001e8: 48 bf f8 31 40 00 00 movabs $0x4031f8,%rdi
4001ef: 00 00 00
4001f2: f2 0f 10 04 25 f0 31 movsd 0x4031f0,%xmm0
4001f9: 40 00
4001fb: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
400202: b0 01 mov $0x1,%al