X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fregformats%2Fregdat.sh;h=1839a881213c0603fb88a3e54bd7139a2777fb78;hb=6e2118f588c6f33a741a706725f8e23db57251b3;hp=8c6e191596350fb4e983f8736985d9832f41e2d3;hpb=82ec9bc7055ca76f1f7dd344f3f58bf6aecec7c8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh index 8c6e191596..1839a88121 100755 --- a/gdb/regformats/regdat.sh +++ b/gdb/regformats/regdat.sh @@ -1,7 +1,7 @@ #!/bin/sh -u # Register protocol definitions for GDB, the GNU debugger. -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is part of GDB. # @@ -118,6 +118,7 @@ xmltarget=x xmlarch=x xmlosabi=x expedite=x +feature=x exec < $1 while do_read do @@ -145,6 +146,9 @@ do elif test "${type}" = "expedite"; then expedite="${entry}" continue + elif test "${type}" = "feature"; then + feature="${entry}" + continue elif test "${name}" = x; then echo "$0: $1 does not specify \`\`name''." 1>&2 exit 1 @@ -159,7 +163,11 @@ done echo echo "static const char *expedite_regs_${name}[] = { \"`echo ${expedite} | sed 's/,/", "/g'`\", 0 };" -if test "${xmltarget}" = x; then + +echo "#ifndef IN_PROCESS_AGENT" +if test "${feature}" != x; then + echo "static const char *xmltarget_${name} = 0;" +elif test "${xmltarget}" = x; then if test "${xmlarch}" = x && test "${xmlosabi}" = x; then echo "static const char *xmltarget_${name} = 0;" else @@ -178,12 +186,10 @@ fi echo cat <expedite_regs = expedite_regs_${name}; result->xmltarget = xmltarget_${name}; #endif - init_target_desc (result); + init_target_desc (result, expedite_regs_${name}); tdesc_${name} = result; }