From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Volkov To: Keith Seitz Cc: =?koi8-r?Q?Insight_=28=FC=CC=2E_=D0=CF=DE=D4=C1=29?= Subject: RE: [bug] Synchonization of registers window in h8300 Insight Date: Fri, 07 Dec 2001 11:07:00 -0000 Message-ID: <2E74F312D6980D459F3A05492BA40F8D56FF5F@clue.transas.com> X-SW-Source: 2001-q4/msg00404.html Content-type: multipart/mixed; boundary="----------=_1583534622-30623-4" Message-ID: <20011207110700.RZ9BEeJ3KxKDTIO5dUfyJG46AUTd3c3gOJ4QYWKJr28@z> This is a multi-part message in MIME format... ------------=_1583534622-30623-4 Content-length: 2733 Hi Keith, Sorry for previous bad reply. > > GNU gdb 5.1 > > Copyright 2001 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public > License, and you are > > welcome to change it and/or distribute copies of it under certain > > conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show > warranty" for details. > > This GDB was configured as "--host=i686-pc-cygwin > --target=h8300-hms". > > Can you send me two very simple executables to demonstrate > the problem? > (This prevents me from having to build compiler(s) and > figuring out how to > build them.) > > Please tell me the exact procedure you used to do this. Although I > think I can guess, it never hurts to be sure. During this, please be > explicit about what registers should appear when. > > For example, > > . load ex1.elf > . break in main > . run on simulator > . open register window > . notice registers foo, bar, baz > (and so on) I attach bzipped hello.out and hello.c (COFF with full gdb debug info). Now, whats I do: $h8300-hms-gdb (show regs. window) Ok, Insight show me regs for h8300 (16 bits regs: r0...r6, sp, ccr ...) Here started snapshot from console window -> ------------------------------------------------------ (gdb) show architecture The target architecture is set automatically (currently unknown) (gdb) file hello.out (gdb) ta si Connected to the simulator. (gdb) lo Loading section .text, size 0xfc vma 0x100 Loading section .data, size 0x298 vma 0x1fc Loading section .stack, size 0x4 vma 0x3fffc Start address 0x102 Transfer rate: 7360 bits in <1 sec. (gdb) show architecture The target architecture is set automatically (currently h8300s) (gdb) set architecture h8300s The target architecture is assumed to be h8300s (gdb) show architecture The target architecture is assumed to be h8300s (gdb) ------------------------------------------------------ But Registers widow still show h8300 registers :((, but must show: er0...er6, sp, ccr ... > > BTW, I think a workaround for your problem is to simply close > the register > window and re-open it, no? > > Keith It's not so good idea, because h8300 and h8300s have different number of hardware regs (it not implemented in current, but may will implement in future ver. of gdb), and if I forget close Regs. windows before changing architecture (through load or somehow else), then Insight (not gdb) will die when I will try close this window :(. Another warkaround, NETHER run gdb without args (ex. $h8300-hms-gdb hello.out). But, I think better way remain registers window blank (if it possible), or invisible while architecture is unknown. Andrey ------------=_1583534622-30623-4 Content-Type: application/x-bzip2; charset=binary; name="hello.tar.bz" Content-Disposition: inline; filename="hello.tar.bz" Content-Transfer-Encoding: base64 Content-Length: 2302 QlpoOTFBWSZTWTnJlZYABb9/////xH9+f//+f+ffs///3/t/kFDAFhFQMFIE gVDUARdN0AYD3CgGhbOJ0zrtTu7Q0RGkwqe0TTE2qfpNoNUabQj1PUBkZHqA 0BkAHqB6QNAaAAPUeoDTEGT9KBKKaaaaSeIyRpqYgPUNAGQBpoNAAAaBoaAA AaAAGgAAAJESE0VPNMqG9FNknoTxI2k2kbQmTTI9EPU9QNGgyBtJpoGgaeoA yYgDQABBpoYjJgRpgmmIwRpoNMAmJgIMExAwIyAxDCMCZMAAEwCSSaCnpTT9 T1Mmmk03qgPSeoDQMQAAAAAAAeoGQAAAB6gAGi0WXDA82/Vautr2QGx1uaOq lkGkwMx0FIPMQK2xjV9lswhLIDZl8n7I0TnGGGWdulO4myII1mgHwPCABM6b NimuAsVSM3eqb0M7YR/qY0KeVJIg7eBSr6fFNjGBUZphK5g5wQFJwzIipLA8 ruQKO/lgZoQs+XGeCSoYQVWEKJjNs+AdRnyNyg8ZoAxMBNrasvvJVZBA8Rzv g8ylpaY8otHNMd7ccTBRAsL7Xk0wWXbRUlEuBThzrQNLFHp7nTwca9X1mBo4 CADLcVIRCCGfMwSW+F6kJCzWjDtISSzOeQouxDQ2CMqqnX3/S59kt1TZVV1u rvrFi1d1peU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