opnsense-src/sys/ddb
Bruce Evans 82b93348db Fix right shifts on arches with db_expr_t larger than u_int (LP64 arches
in practice).

db_expr_t is a signed type, but right shifts are fudged to evaluate
them in an unsigned type, and the unsigned type was broken by hard-
coding it as 'unsigned', so casting to it lost the top bits on arches
with db_expr_t larger than u_int.

The unsigned type with the same size as db_expr_t is not declared;
assume that db_addr_t gives it.  Fixing this properly is less important
than using the correct type for db_expr_t (originally always long for
C90, but always intmax_t since C99).
2017-03-18 07:01:18 +00:00
..
db_access.c
db_access.h
db_break.c
db_break.h
db_capture.c
db_command.c
db_command.h
db_examine.c
db_expr.c Fix right shifts on arches with db_expr_t larger than u_int (LP64 arches 2017-03-18 07:01:18 +00:00
db_input.c Revert r311952. 2017-01-14 22:06:25 +00:00
db_lex.c
db_lex.h
db_main.c
db_output.c
db_output.h
db_print.c
db_ps.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
db_run.c
db_script.c
db_sym.c Use casts to force an unsigned comparison in db_search_symbol(). 2016-12-14 00:18:12 +00:00
db_sym.h
db_textdump.c
db_thread.c
db_variables.c
db_variables.h
db_watch.c
db_watch.h
db_write_cmd.c
ddb.h Revert crap accidentally committed 2017-01-28 16:31:23 +00:00