This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1799: $fp is not a left value, would be useful to be
- From: samuel dot thibault at ens-lyon dot org
- To: gdb-gnats at sources dot redhat dot com
- Date: 27 Oct 2004 12:16:40 -0000
- Subject: gdb/1799: $fp is not a left value, would be useful to be
- Reply-to: samuel dot thibault at ens-lyon dot org
>Number: 1799
>Category: gdb
>Synopsis: $fp is not a left value, would be useful to be
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 27 12:18:02 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: samuel.thibault@ens-lyon.org
>Release: GNU gdb 6.1-debian
>Organization:
>Environment:
debian testing (same in sid)
>Description:
Hi,
I'm writing some context-switching functions, and can't get a way to arch-independantly write in $fp register:
$ gdb ./testo
GNU gdb 6.1-debian
<..>
(gdb) b main
Breakpoint 1 at 0x8048394: file testo.c, line 3.
(gdb) r
Starting program: /home/thibault/testo
Breakpoint 1, main () at testo.c:3
3 printf("%d\n",0347);
(gdb) set $fp = 0x12345
Left operand of assignment is not an lvalue.
(gdb)
$ebp works on x86 of course, but this is not arch-independant...
Regards,
Samuel Thibault
>How-To-Repeat:
compile some program foo
$ gdb ./foo
(gdb) b main
(gdb) r
(gdb) set $fp=0x1234
Left operand of assignment is not an lvalue.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: