Add operator< and operator== to linetable_entry
authorTom Tromey <tom@tromey.com>
Wed, 8 Mar 2023 01:24:14 +0000 (18:24 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 11 Mar 2023 15:39:51 +0000 (08:39 -0700)
commit6e6ac32dde61fd3019b05adaeec372eb16c12bff
treee2d571fa24a342eeaac29d8eec2600535d7b2248
parent1afdbb1e986157a73a7bf1cf4fa03b9426e824e8
Add operator< and operator== to linetable_entry

This adds a couple of comparison operators to linetable_entry, and
simplifies both the calls to sort and one other spot that checks for
equality.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/buildsym.c
gdb/disasm.c
gdb/symtab.h
gdb/xcoffread.c