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:
parent
6a5c768569
commit
d0757953c9
2 changed files with 6 additions and 1 deletions
|
@ -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 --
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue