aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-lang.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-05-06 18:53:21 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-09-19 09:42:38 +0100
commit8c37706a511209f6a92d887812c14e860c3bd0a0 (patch)
tree62b9b1a9f84ef196e179e582f4a53493621dd612 /gdb/f-lang.c
parent14f9473ca225290680c8b21240cdca49f8d3b332 (diff)
downloadbinutils-8c37706a511209f6a92d887812c14e860c3bd0a0.zip
binutils-8c37706a511209f6a92d887812c14e860c3bd0a0.tar.gz
binutils-8c37706a511209f6a92d887812c14e860c3bd0a0.tar.bz2
gdb/fortran: Clean up array/string expression evaluation
This commit is a refactor of part of the Fortran array and string handling code. The current code is split into two blocks, linked, weirdly, with a goto. After this commit all the code is moved to its own function, and arrays and strings are now handled using the same code; this will be useful later when I want to add array stride support where strings will want to be treated just like arrays, but is a good clean up even without the array stride work, which is why I'm merging it now. For now the new function is added as a static within eval.c, even though the function is Fortran only. A following commit will remove some of the Fortran specific code from eval.c into one of the Fortran specific files, including this new function. There should be no user visible changes after this commit. gdb/ChangeLog: * eval.c (fortran_value_subarray): New function, content is taken from... (evaluate_subexp_standard): ...here, in two places. Now arrays and strings both call the new function. (calc_f77_array_dims): Add header comment, handle strings.
Diffstat (limited to 'gdb/f-lang.c')
0 files changed, 0 insertions, 0 deletions