summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarl Love <cel@linux.ibm.com>2023-11-20 11:13:22 -0500
committerCarl Love <cel@linux.ibm.com>2023-11-20 11:13:22 -0500
commitd50480b5afc528c3a7aaa4fd82a675df0dcaff69 (patch)
treed655be18cec7f670f9e9da9255c247b90425c6b9 /include
parentfdb4c2e02e6600b51f38a60cd70882887007cbdf (diff)
PowerPC: Fix test gdb.ada/finish-large.exp
Function Create_large returns a large data structure. On PowerPC, register r3 contains the address of where the data structure to be returned is to be stored. However, on exit the ABI does not guarantee that r3 has not been changed. The GDB finish command prints the return value of the function at the end of the function. GDB needs to use the DW_TAG_call_site information to determine the value of r3 on entry to the function to correctly print the return value at the end of the function. The test must be compiled with -fvar-tracking for the DW_TAG_call_site information to be included in the executable file. This patch adds the -fvar-tracking option to the compile line if the option is supported. The patch fixes the one regression error for the test on PowerPC. The patch has been tested on Power 10 and X86-64 with no regressions.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions