db_expr.c (189581) | db_expr.c (195699) |
---|---|
1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 15 unchanged lines hidden (view full) --- 24 * rights to redistribute these changes. 25 */ 26/* 27 * Author: David B. Golub, Carnegie Mellon University 28 * Date: 7/90 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 15 unchanged lines hidden (view full) --- 24 * rights to redistribute these changes. 25 */ 26/* 27 * Author: David B. Golub, Carnegie Mellon University 28 * Date: 7/90 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/ddb/db_expr.c 189581 2009-03-09 13:32:19Z imp $"); | 32__FBSDID("$FreeBSD: head/sys/ddb/db_expr.c 195699 2009-07-14 22:48:30Z rwatson $"); |
33 34#include <sys/param.h> 35 36#include <ddb/ddb.h> 37#include <ddb/db_lex.h> 38#include <ddb/db_access.h> 39#include <ddb/db_command.h> 40 --- 5 unchanged lines hidden (view full) --- 46 47static boolean_t 48db_term(db_expr_t *valuep) 49{ 50 int t; 51 52 t = db_read_token(); 53 if (t == tIDENT) { | 33 34#include <sys/param.h> 35 36#include <ddb/ddb.h> 37#include <ddb/db_lex.h> 38#include <ddb/db_access.h> 39#include <ddb/db_command.h> 40 --- 5 unchanged lines hidden (view full) --- 46 47static boolean_t 48db_term(db_expr_t *valuep) 49{ 50 int t; 51 52 t = db_read_token(); 53 if (t == tIDENT) { |
54 if (!db_value_of_name(db_tok_string, valuep)) { | 54 if (!db_value_of_name(db_tok_string, valuep) && 55 !db_value_of_name_pcpu(db_tok_string, valuep) && 56 !db_value_of_name_vnet(db_tok_string, valuep)) { |
55 db_error("Symbol not found\n"); 56 /*NOTREACHED*/ 57 } 58 return (TRUE); 59 } 60 if (t == tNUMBER) { 61 *valuep = (db_expr_t)db_tok_number; 62 return (TRUE); --- 164 unchanged lines hidden --- | 57 db_error("Symbol not found\n"); 58 /*NOTREACHED*/ 59 } 60 return (TRUE); 61 } 62 if (t == tNUMBER) { 63 *valuep = (db_expr_t)db_tok_number; 64 return (TRUE); --- 164 unchanged lines hidden --- |