node/lib/metasm/metasm/gui/dasm_main.rb
# change the format of displayed data under addr (byte, word, dword, qword)
# currently this is done using a fake empty xref
change the format of displayed data under addr (byte, word, dword, qword)
currently this is done using a fake empty xref
change the format of displayed data under addr ( byte word dword qword ) currently this is done using a fake empty xref
def toggle_data(addr)
		session_append "toggle_data(#{addr.inspect})"
		return if @dasm.decoded[addr] or not @dasm.get_section_at(addr)
		@dasm.add_xref(addr, Xref.new(nil, nil, 1)) if not @dasm.xrefs[addr]
		@dasm.each_xref(addr) { |x|
			x.len = {1 => 2, 2 => 4, 4 => 8}[x.len] || 1
			break
		}
		gui_update
	end
def toggle_data ( addr ) session_append "toggle_data(#{addr.inspect})" return if @dasm . decoded [ addr ] or not @dasm . get_section_at ( addr ) @dasm . add_xref ( addr , Xref . new ( nil , nil , 1 ) ) if not @dasm . xrefs [ addr ] @dasm . each_xref ( addr ) { | x | x . len = { 1 => 2 , 2 => 4 , 4 => 8 } [ x . len ] || 1 break } gui_update end
change the format of displayed data under addr (byte, word, dword, qword)
currently this is done using a fake empty xref
change the format of displayed data under addr ( byte word dword qword ) currently this is done using a fake empty xref
addr