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.
This commit is contained in:
parent
878ac6f63d
commit
5334e6ee4e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user