This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1799: $fp is not a left value, would be useful to be


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]