* symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
authorRon Unrau <runrau@cygnus>
Sun, 21 Jun 1998 15:31:09 +0000 (15:31 +0000)
committerRon Unrau <runrau@cygnus>
Sun, 21 Jun 1998 15:31:09 +0000 (15:31 +0000)
          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

gdb/gdbtk.c

index b1da0eedbac9121ab75f56b2841ebc1511b69de4..cf4dc49269523064e385bee429aba4f9c61efe24 100644 (file)
@@ -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);