aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk-cmds.c
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>1998-09-11 05:13:57 +0000
committerJim Ingham <jingham@apple.com>1998-09-11 05:13:57 +0000
commitd0757953c9aacbbe291e3e86b71d9be33205d0db (patch)
tree12171b7d31df2824b7f112f97a86e9c6072f9829 /gdb/gdbtk-cmds.c
parent6a5c768569976c96569acdf59fa4bcbf3eef1d02 (diff)
downloadgdb-d0757953c9aacbbe291e3e86b71d9be33205d0db.zip
gdb-d0757953c9aacbbe291e3e86b71d9be33205d0db.tar.gz
gdb-d0757953c9aacbbe291e3e86b71d9be33205d0db.tar.bz2
Thu Sep 10 22:10:29 1998 Jim Ingham <jingham@cygnus.com>
*gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not null before trying to use it...
Diffstat (limited to 'gdb/gdbtk-cmds.c')
-rw-r--r--gdb/gdbtk-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtk-cmds.c b/gdb/gdbtk-cmds.c
index 26b9721..c2eabdb 100644
--- a/gdb/gdbtk-cmds.c
+++ b/gdb/gdbtk-cmds.c
@@ -2106,7 +2106,7 @@ gdb_disassemble (clientData, interp, objc, objv)
symtab = find_pc_symtab (low); /* Assume symtab is valid for whole PC range */
- if (!symtab)
+ if (!symtab || !symtab->linetable)
goto assembly_only;
/* First, convert the linetable to a bunch of my_line_entry's. */