aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-10-14 13:57:01 +1030
committerAlan Modra <amodra@gmail.com>2019-10-14 16:47:13 +1030
commit3d9ee7d24be691e8b89cb5ebf0db744be279d8db (patch)
tree147e7737f9ad5aece81d86128dd57becec88730d /gdb/python
parent08dec09d8a26c115921b17110da1e07cb233c494 (diff)
downloadgdb-3d9ee7d24be691e8b89cb5ebf0db744be279d8db.zip
gdb-3d9ee7d24be691e8b89cb5ebf0db744be279d8db.tar.gz
gdb-3d9ee7d24be691e8b89cb5ebf0db744be279d8db.tar.bz2
qsort: ldctor.c CONSTRUCTORS
ctor_cmp had an ineffective comparison of addresses in an attempt to ensure sort stability. Comparing the addresses passed to the comparison function can't work since those addresses may be from an array that is already perturbed by qsort. * ldctor.h (struct set_element): Make next field a union, adding idx field. * ldctor.c (ctor_cmp): Dereference pointer and lose unnecessary const. Replace final sort on pointer value with final sort on idx. (ldctor_add_set_entry): Adjust next field access. (ldctor_build_sets): Likewise. Set u.idx field for sort.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions