diff options
author | Ron Unrau <runrau@cygnus> | 1998-06-21 15:31:09 +0000 |
---|---|---|
committer | Ron Unrau <runrau@cygnus> | 1998-06-21 15:31:09 +0000 |
commit | 36841840ec1d524ac770ea75667dc49318548616 (patch) | |
tree | 87271a4c0d944378f5bc1abaeb607c906b45e583 /gdb | |
parent | ec85f6bc516255d00dca68310791bf78d5b6b51d (diff) | |
download | gdb-36841840ec1d524ac770ea75667dc49318548616.zip gdb-36841840ec1d524ac770ea75667dc49318548616.tar.gz gdb-36841840ec1d524ac770ea75667dc49318548616.tar.bz2 |
* symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
Changed to pass PC as arg and return 1 if valid (0 otherwise).
symtab.h: change prototype to match
symtab.c (find_line_pc_range): use new interface
breakpoint.c (resolve_sal_pc): ditto
gdbtk.c (gdb_set_bp): ditto
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbtk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index b1da0ee..cf4dc49 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -3528,8 +3528,7 @@ gdb_set_bp (clientData, interp, objc, objv) return TCL_ERROR; sal.line = line; - sal.pc = find_line_pc (sal.symtab, sal.line); - if (sal.pc == 0) + if (!find_line_pc (sal.symtab, sal.line, &sal.pc)) return TCL_ERROR; sal.section = find_pc_overlay (sal.pc); |