diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2011-08-06 17:49:21 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2011-08-06 17:49:21 +0000 |
| commit | 21a305d4af4491e445fa677f04e602c5d834f079 (patch) | |
| tree | c426c6835fd3440c3c016f0bc15463ce80d02e4d /lib/libthread_db | |
| parent | e31fe879a8116d48f59e51c7be8f4efcc601521d (diff) | |
Notes
Diffstat (limited to 'lib/libthread_db')
| -rw-r--r-- | lib/libthread_db/arch/amd64/libpthread_md.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libthread_db/arch/amd64/libpthread_md.c b/lib/libthread_db/arch/amd64/libpthread_md.c index 646d36d564fef..624e650cacf0f 100644 --- a/lib/libthread_db/arch/amd64/libpthread_md.c +++ b/lib/libthread_db/arch/amd64/libpthread_md.c @@ -92,18 +92,21 @@ pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) void pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) { - memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(r)); + + memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(*r)); } void pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) { - memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(r)); + + memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(*r)); } void pt_md_init(void) { + /* Nothing to do */ } |
