summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-07-17 18:58:32 +0000
committerjdp <jdp@FreeBSD.org>1999-07-17 18:58:32 +0000
commit05b2f4263f6f1b390e22c470eff21c54475d7808 (patch)
tree8435515a637e9870b3f8d8622e6887fe4baa2ea7 /usr.bin/gcore
parent6c373ff516a4d81fb7ff42fa2e5f83336c689d02 (diff)
downloadFreeBSD-src-05b2f4263f6f1b390e22c470eff21c54475d7808.zip
FreeBSD-src-05b2f4263f6f1b390e22c470eff21c54475d7808.tar.gz
Make gcore work again. It was broken by a format change in the
procfs map file when object IDs were eliminated in the mega-commit that included procfs_map.c revision 1.19. The map file is a terrible hodge-podge. The fields that are used mainly for kernel debugging should be moved out of it into a separate file, so that the interface presented by the map file to applications can remain stable in the face of VM system changes.
Diffstat (limited to 'usr.bin/gcore')
-rw-r--r--usr.bin/gcore/elfcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c
index af199ca..f612232 100644
--- a/usr.bin/gcore/elfcore.c
+++ b/usr.bin/gcore/elfcore.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: elfcore.c,v 1.1 1998/10/19 19:42:18 jdp Exp $
+ * $Id: elfcore.c,v 1.2 1998/11/01 06:35:36 jdp Exp $
*/
#include <sys/param.h>
@@ -484,7 +484,7 @@ readmap(pid_t pid)
int len;
len = 0;
- n = sscanf(mapbuf + pos, "%x %x %*d %*d %*d %3[-rwx]"
+ n = sscanf(mapbuf + pos, "%x %x %*d %*d %*x %3[-rwx]"
" %*d %*d %*x %*s %*s %16s%*[\n]%n",
&start, &end, prot, type, &len);
if (n != 4)
OpenPOWER on IntegriCloud