open-src/xserver/xorg/sun-src/os/solaris/mdb/scripts/list_Xserver_servergrab_client
changeset 1088 1c99106ccbe0
parent 943 294f64612d23
--- a/open-src/xserver/xorg/sun-src/os/solaris/mdb/scripts/list_Xserver_servergrab_client	Wed Mar 09 16:02:37 2011 -0800
+++ b/open-src/xserver/xorg/sun-src/os/solaris/mdb/scripts/list_Xserver_servergrab_client	Mon Mar 14 15:37:30 2011 -0700
@@ -1,6 +1,6 @@
 #!/usr/bin/ksh93
 #
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the "Software"),
@@ -39,7 +39,8 @@
 
 mdb "$@" > ${MDBOUT} <<__EOF__
 GrabInProgress/D
-*clients+((*GrabInProgress)*4) ::client_pids
+::sizeof void* | ::typeset psize
+clients + ((*GrabInProgress) * <psize) ::client_pids
 __EOF__
 
 cat ${MDBOUT}