summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-01-14 10:39:32 +0000
committerqiyao <qiyao>2013-01-14 10:39:32 +0000
commit2e7df164cdcf3407e7a007922c9d63bba558bc5e (patch)
treed4c4f3306a57caac3f3cd7a8d060189d52a6bf21 /gdb/mdebugread.c
parent44741c7562e3ea66a70b21d016a563060ec5f673 (diff)
downloadgdb-2e7df164cdcf3407e7a007922c9d63bba558bc5e.tar.gz
gdb/
2013-01-14 Yao Qi <yao@codesourcery.com> * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL. (dbx_psymtab_to_symtab): Likewise. * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise. * mdebugread.c (mdebug_psymtab_to_symtab): Likewise. * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 856ca9d7f42..2eb0536696f 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -273,14 +273,11 @@ static char *mdebug_next_symbol_text (struct objfile *);
/* Exported procedure: Builds a symtab from the PST partial one.
Restores the environment in effect when PST was created, delegates
most of the work to an ancillary procedure, and sorts
- and reorders the symtab list at the end. */
+ and reorders the symtab list at the end. PST is not NULL. */
static void
mdebug_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst)
{
- if (!pst)
- return;
-
if (info_verbose)
{
printf_filtered (_("Reading in symbols for %s..."), pst->filename);