Andes Workshop
http://forum.andestech.com/

print hex value in gdb 7.3
http://forum.andestech.com/viewtopic.php?f=16&t=632
Page 1 of 1

Author:  cindy [ Tue Oct 16, 2012 6:53 pm ]
Post subject:  print hex value in gdb 7.3

Hexdump in gdb

list by word
x/10xw 0x0
0x0 <exception_vector>: 0xd7000048 0x09000040 0x09000040 0x09000040
0x10 <exception_vector+16>: 0x00480184 0x0092bf00 0x09000040 0x09000040
0x20 <exception_vector+32>: 0x00480284 0x0092b700

list by byte

x/10xb 0x0
0x0 <exception_vector>: 0x48 0x00 0x00 0xd7 0x40 0x00 0x00 0x09
0x8 <exception_vector+8>: 0x40 0x00

list in decimal
x/10dw 0x0
0x0 <exception_vector>: -687865784 150995008 150995008 150995008
0x10 <exception_vector+16>: 4718980 9617152 150995008 150995008
0x20 <exception_vector+32>: 4719236 9615104

reference link: http://borkware.com/quickies/one?topic=gdb

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/