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...
This commit is contained in:
Jim Ingham 1998-09-11 05:13:57 +00:00
parent 6a5c768569
commit d0757953c9
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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...
1998-09-02 Keith Seitz <keiths@cygnus.com>
* gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading --

View file

@ -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. */