From: Jim Ingham Date: Fri, 11 Sep 1998 05:13:57 +0000 (+0000) Subject: Thu Sep 10 22:10:29 1998 Jim Ingham X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0757953c9aacbbe291e3e86b71d9be33205d0db;p=binutils-gdb.git Thu Sep 10 22:10:29 1998 Jim Ingham *gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not null before trying to use it... --- diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 49f8f8fe50c..447c21bdb17 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,8 @@ +Thu Sep 10 22:10:29 1998 Jim Ingham + + *gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not + null before trying to use it... + 1998-09-02 Keith Seitz * gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading -- diff --git a/gdb/gdbtk-cmds.c b/gdb/gdbtk-cmds.c index 26b9721bc97..c2eabdb7aca 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. */