Re: H8300 Patch - Fix GDB crash problem when object file of different H8 cpu is loaded

Michael Snyder
2003-12-16T23:56:35Z

Dhananjay R. Deshpande wrote:
> Thanks.
>
> Commited.

I'm afraid you need to un-commit it. This breaks gdb.
It no longer works with the simulator for h8s, h8h, or h8sx.

As I mentioned earlier in this thread, these global variables
that you've replaced are shared between gdb and the sim. The
sim depends on them. You've split them into essentially
gdb's copy and the sim's copy, but now the sim's copy is
never getting initialized, becuase it was gdb that
initialized the shared ones. That's why they were shared.

To complete this job, you need to work out an interface
that will allow the sim to get this information from gdb.

>
> -Dhannajay
>
>
>>-----Original Message-----
>>From: Andrew Cagney [mailto:cagney@gnu.org]
>>Sent: Wednesday, December 10, 2003 10:41 PM
>>To: Dhananjay R. Deshpande; Michael Snyder
>>Cc: Andrew Cagney; gdb-patches@sources.redhat.com
>>Subject: Re: H8300 Patch - Fix GDB crash problem when object file of
>>different H8 cpu is loaded
>>
>>
>>
>>>Hi,
>>>
>>>If you can, please check in the patch. My CVS access
>>
>>problem is not yet solved. I had put a request to update my
>>public key to overseers but its not done.
>>http://sources.redhat.com/ml/overseers/2003-q4/msg00240.html
>>
>>Michael, can you please handle this.
>>
>>Andrew
>>
>>
>
>
>