Re: [Openocd-development] (nor) flash broken

2009-12-07 Thread David Brownell
> > > > I thought I'd try "mem info" in GDB. Nothing. Why? > > > > The first thing I tried, by the way, was > > > > gdb_memory_map enable > > > > but that failed with extreme rudeness. :( > > How so? :) Immediate exit during startup. ___ Ope

Re: [Openocd-development] (nor) flash broken

2009-12-06 Thread Zach Welch
On Sun, 2009-12-06 at 20:34 -0800, David Brownell wrote: > On Sunday 06 December 2009, Zach Welch wrote: > > On Sun, 2009-12-06 at 18:05 -0800, David Brownell wrote: > > > I thought I'd try "mem info" in GDB. Nothing. Why? > > The first thing I tried, by the way, was > > gdb_memory_map en

Re: [Openocd-development] (nor) flash broken

2009-12-06 Thread Zach Welch
On Sun, 2009-12-06 at 19:55 -0800, Zach Welch wrote: > On Sun, 2009-12-06 at 18:05 -0800, David Brownell wrote: > > I thought I'd try "mem info" in GDB. Nothing. Why? > > > > Well, "flash banks" doesn't show anything any more. Why? > > > > Nothing calls flash_bank_add() ... handle_flash_bank_c

Re: [Openocd-development] (nor) flash broken

2009-12-06 Thread David Brownell
On Sunday 06 December 2009, Zach Welch wrote: > On Sun, 2009-12-06 at 18:05 -0800, David Brownell wrote: > > I thought I'd try "mem info" in GDB.  Nothing.  Why? The first thing I tried, by the way, was gdb_memory_map enable but that failed with extreme rudeness. :( > > Well, "flash b

Re: [Openocd-development] (nor) flash broken

2009-12-06 Thread Zach Welch
On Sun, 2009-12-06 at 18:05 -0800, David Brownell wrote: > I thought I'd try "mem info" in GDB. Nothing. Why? > > Well, "flash banks" doesn't show anything any more. Why? > > Nothing calls flash_bank_add() ... handle_flash_bank_command() > just leaks the structure it filled out. Whoops th

[Openocd-development] (nor) flash broken

2009-12-06 Thread David Brownell
I thought I'd try "mem info" in GDB. Nothing. Why? Well, "flash banks" doesn't show anything any more. Why? Nothing calls flash_bank_add() ... handle_flash_bank_command() just leaks the structure it filled out. So I add that missing call, and now I see the various flash commands again, and "f