diff options
author | Anthony Green <green@redhat.com> | 2005-03-25 20:40:02 +0000 |
---|---|---|
committer | Anthony Green <green@redhat.com> | 2005-03-25 20:40:02 +0000 |
commit | 170cd118a9e2169798247e70160f5a638b516661 (patch) | |
tree | 436ad208cacaf0e2adb115e8533b3ea36cd71590 /gdb/std-regs.c | |
parent | 7e813ac51f6ea5e3d9ffd1597db564ea23c49d27 (diff) | |
download | gdb-170cd118a9e2169798247e70160f5a638b516661.zip gdb-170cd118a9e2169798247e70160f5a638b516661.tar.gz gdb-170cd118a9e2169798247e70160f5a638b516661.tar.bz2 |
Fix memset thinkos.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r-- | gdb/std-regs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c index eaa6d26..5cb38b7 100644 --- a/gdb/std-regs.c +++ b/gdb/std-regs.c @@ -61,7 +61,7 @@ value_of_builtin_frame_reg (struct frame_info *frame) val = allocate_value (builtin_type_frame_reg); VALUE_LVAL (val) = not_lval; buf = value_contents_raw (val); - memset (buf, TYPE_LENGTH (value_type (val)), 0); + memset (buf, 0, TYPE_LENGTH (value_type (val))); /* frame.base. */ if (frame != NULL) ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, @@ -87,7 +87,7 @@ value_of_builtin_frame_fp_reg (struct frame_info *frame) struct value *val = allocate_value (builtin_type_void_data_ptr); char *buf = value_contents_raw (val); if (frame == NULL) - memset (buf, TYPE_LENGTH (value_type (val)), 0); + memset (buf, 0, TYPE_LENGTH (value_type (val))); else ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, get_frame_base_address (frame)); @@ -105,7 +105,7 @@ value_of_builtin_frame_pc_reg (struct frame_info *frame) struct value *val = allocate_value (builtin_type_void_data_ptr); char *buf = value_contents_raw (val); if (frame == NULL) - memset (buf, TYPE_LENGTH (value_type (val)), 0); + memset (buf, 0, TYPE_LENGTH (value_type (val))); else ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, get_frame_pc (frame)); |