Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2010 19:08:44 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r204598 - stable/7/gnu/usr.bin/gdb/kgdb
Message-ID:  <201003021908.o22J8iB1017029@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Mar  2 19:08:44 2010
New Revision: 204598
URL: http://svn.freebsd.org/changeset/base/204598

Log:
  MFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist

Modified:
  stable/7/gnu/usr.bin/gdb/kgdb/kthr.c
Directory Properties:
  stable/7/gnu/usr.bin/gdb/kgdb/   (props changed)

Modified: stable/7/gnu/usr.bin/gdb/kgdb/kthr.c
==============================================================================
--- stable/7/gnu/usr.bin/gdb/kgdb/kthr.c	Tue Mar  2 19:04:07 2010	(r204597)
+++ stable/7/gnu/usr.bin/gdb/kgdb/kthr.c	Tue Mar  2 19:08:44 2010	(r204598)
@@ -58,6 +58,7 @@ kgdb_lookup(const char *sym)
 {
 	struct nlist nl[2];
 
+	nl[0].n_type = N_UNDF;
 	nl[0].n_name = (char *)(uintptr_t)sym;
 	nl[1].n_name = NULL;
 	if (kvm_nlist(kvm, nl) != 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003021908.o22J8iB1017029>