diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2024-08-01 11:34:08 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2024-08-01 11:34:08 -0700 |
commit | 67f39cdbc9d07ae5f14f988aedc887bb5bbae495 (patch) | |
tree | e4f1875abd8bef4764032e83254bd8ed1cb98fee /texinfo | |
parent | d56083b5047b8e7cc9eda2f867bd2b75724920a1 (diff) | |
download | gdb-67f39cdbc9d07ae5f14f988aedc887bb5bbae495.zip gdb-67f39cdbc9d07ae5f14f988aedc887bb5bbae495.tar.gz gdb-67f39cdbc9d07ae5f14f988aedc887bb5bbae495.tar.bz2 |
gas: ginsn: do not emit an unnecessary trailing comma in textual dump
For ginsns with less than 2 source operands or no destination operands,
the current textual dump contains a superfluous comma, like the relevant
testcases show.
Adjust the code a bit to not emit the lone trailing comma. Also, adjust
the aarch64 and x86_64 testcases.
gas/
* ginsn.c (ginsn_src_print): Do not use a trailing comma when
printing the src of ginsn.
(ginsn_print): Check the strlen and prefix a comma before the
src string.
gas/testsuite/
* gas/scfi/aarch64/ginsn-cofi-1.l: Adjust the expected textual
dump of the ginsn.
* gas/scfi/x86_64/ginsn-cofi-1.l: Likewise.
Diffstat (limited to 'texinfo')
0 files changed, 0 insertions, 0 deletions