/* Builtin frame register, for GDB, the GNU debugger.
- Copyright 2002, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005 Free Software Foundation, Inc.
Contributed by Red Hat.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
#include "defs.h"
#include "user-regs.h"
value_of_builtin_frame_reg (struct frame_info *frame)
{
struct value *val;
- char *buf;
+ gdb_byte *buf;
build_builtin_type_frame_reg ();
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,
else
{
struct value *val = allocate_value (builtin_type_void_data_ptr);
- char *buf = value_contents_raw (val);
+ gdb_byte *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));
else
{
struct value *val = allocate_value (builtin_type_void_data_ptr);
- char *buf = value_contents_raw (val);
+ gdb_byte *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));
if (SP_REGNUM >= 0)
return value_of_register (SP_REGNUM, frame);
#endif
- error ("Standard register ``$sp'' is not available for this target");
+ error (_("Standard register ``$sp'' is not available for this target"));
}
static struct value *
if (PS_REGNUM >= 0)
return value_of_register (PS_REGNUM, frame);
#endif
- error ("Standard register ``$ps'' is not available for this target");
+ error (_("Standard register ``$ps'' is not available for this target"));
}
extern initialize_file_ftype _initialize_frame_reg; /* -Wmissing-prototypes */