sim: callback: add human readable strings for debugging to maps
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Jun 2015 13:32:16 +0000 (19:17 +0545)
committerMike Frysinger <vapier@gentoo.org>
Wed, 17 Jun 2015 17:19:51 +0000 (13:19 -0400)
commit6362a3f8757bfce133b724df2077573433823ad4
tree681f10063e77d5ed43b862eb7be12d4c860e790e
parent920467912a594a3e5af1d779487ffe3e5c550aef
sim: callback: add human readable strings for debugging to maps

When tracing, we often want to display the human readable name for the
various syscall/errno values.  Rather than make each target duplicate
the lookup, extend the existing maps to include the string directly,
and add helper functions to look up the constants.

While most targets are autogenerated (from libgloss), the bfin/cris
targets have custom maps for the Linux ABI which need to be updated
by hand.
include/gdb/ChangeLog
include/gdb/callback.h
sim/bfin/ChangeLog
sim/bfin/linux-targ-map.h
sim/common/ChangeLog
sim/common/callback.c
sim/common/gentmap.c
sim/cris/ChangeLog
sim/cris/traps.c