This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
IMHO, a better way of fixing this would be to change tui_line_or_address to be a struct as follows:
/* Structure describing source line or line address */ struct tui_line_or_address { unsigned char what union { int line_no; CORE_ADDR addr; } u; };
and then fill the `what' member as appropriate and use the right part of the union in the comparison.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |