This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb/gdbtk ChangeLog generic/gdbtk-cmds.c l ...
- From: hunt at sourceware dot cygnus dot com
- To: gdb-cvs at sourceware dot cygnus dot com
- Date: 19 Nov 2001 18:43:19 -0000
- Subject: src/gdb/gdbtk ChangeLog generic/gdbtk-cmds.c l ...
[Get raw message]
CVSROOT: /cvs/src
Module name: src
Changes by: hunt@sources.redhat.com 2001-11-19 10:43:19
Modified files:
gdb/gdbtk : ChangeLog
gdb/gdbtk/generic: gdbtk-cmds.c
gdb/gdbtk/library: interface.tcl memwin.itb memwin.ith util.tcl
Log message:
2001-11-08 Martin M. Hunt <hunt@redhat.com>
* generic/gdbtk-cmds.c (gdb_eval): Add an optional
format argument.
(hex2bin): Swap bytes around if target is little endian.
Fix loop count.
(gdb_incr_addr): New function to do address arithmetic.
Needed because some addresses are 64-bits and tcl can't
deal with them, except as strings.
* library/memwin.itb (MemWin::build_win): Add a label
to indicate the target endianess.
(MemWin::edit): Use gdb_incr_addr.
(MemWin::busy): The constructor calls gdbtk_busy which
calls this before the window has finished drawing, so
don't disable items that don't exist yet.
(MemWin::update_address): Set a flag, bad_expr, if the
expression does not evaluate. Call gdb_eval with 'x' flag
to force the result to be hex.
(MemWin::BadExpr): Set bad_expr.
(MemWin::incr_addr): Use gdb_incr_addr.
(MemWin::update_addr): Return is bad_expr is set. Use
gdb_incr_addr.
(MemWin::goto): Call update_address.
* library/memwin.itb: Declare private variable bad_expr.
* library/util.tcl (gdbtk_endian): New procedure. Returns
BIG or LITTLE to indicate target endianess.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/ChangeLog.diff?cvsroot=src&r1=1.160&r2=1.161
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk-cmds.c.diff?cvsroot=src&r1=1.43&r2=1.44
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/interface.tcl.diff?cvsroot=src&r1=1.31&r2=1.32
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/memwin.itb.diff?cvsroot=src&r1=1.11&r2=1.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/memwin.ith.diff?cvsroot=src&r1=1.6&r2=1.7
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/util.tcl.diff?cvsroot=src&r1=1.9&r2=1.10