This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/704: Rewrite (or eliminate?) mips_get_saved_register()
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 13 Sep 2002 23:51:50 -0000
- Subject: gdb/704: Rewrite (or eliminate?) mips_get_saved_register()
- Reply-to: ac131313 at redhat dot com
>Number: 704
>Category: gdb
>Synopsis: Rewrite (or eliminate?) mips_get_saved_register()
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Sep 13 16:58:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
>How-To-Repeat:
It contains the code:
/* FIXME: cagney/2002-09-13: This is just so bad. The MIPS should
have a pseudo register range that correspons to the ABI's, rather
than the ISA's, view of registers. These registers would then
implicitly describe their size and hence could be used without
the below munging. */
if ((*lvalp) == lval_memory)
{
if (raw_buffer != NULL)
{
if (regnum < 32)
{
/* Only MIPS_SAVED_REGSIZE bytes of GP registers are
saved. */
LONGEST val = read_memory_integer ((*addrp), MIPS_SAVED_REGSIZE);
store_address (raw_buffer, REGISTER_RAW_SIZE (regnum), val);
}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: