11238 librtld_db demos should work with gcc 7
@@ -328,11 +328,11 @@ return (PS_ERR); if (read(lwpfd, &lwpstatus, sizeof (lwpstatus)) == -1) return (PS_ERR); - gregset = lwpstatus.pr_reg; + memcpy(gregset, lwpstatus.pr_reg, sizeof (*gregset)); (void) close(lwpfd); return (PS_OK); }