mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Avoid some overflow cases:
* basic_blocks.h (bb_min_calls): Change to unsigned long. * call_graph.h (cg_tally): Change count parameter to unsigned long. * cg_arcs.h (Arc): Change count field to unsigned long. (arc_add): Change count parameter to unsigned long. * source.h (Source_File): Change ncalls field to unsigned long. * symtab.h (Sym): Change fields ncalls, bb_calls, and cg.self_calls to unsigned long. * Many files: Update accordingly.
This commit is contained in:
@ -9,7 +9,7 @@ typedef struct source_file
|
||||
{
|
||||
struct source_file *next;
|
||||
const char *name; /* name of source file */
|
||||
int ncalls; /* # of "calls" to this file */
|
||||
unsigned long ncalls; /* # of "calls" to this file */
|
||||
int num_lines; /* # of lines in file */
|
||||
int nalloced; /* number of lines allocated */
|
||||
void **line; /* usage-dependent per-line data */
|
||||
|
Reference in New Issue
Block a user