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