aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c3
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);