[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] Re: AT43USB devices
From: |
Theodore A. Roth |
Subject: |
Re: [Simulavr-devel] Re: AT43USB devices |
Date: |
Wed, 8 Oct 2003 11:36:34 -0700 (PDT) |
On Mon, 6 Oct 2003, Theodore A. Roth wrote:
> > Also, as a gdb expert... Is there a way to force interrupts in gdb? I
> > haven't found any.
>
> Someone else requested this a while back and I came up with a fairly
> simple hack. Basically, since the avr targets don't understand signals
> in the same sense as gdb (gdb uses the unix/posix point of view for
> signals), I used gdb's 'signal' command to send a signal to the
> target. This only requires a few minor changes to on the simulavr side
> and no changes to gdb. To make things easier on the gdb side, the user
> can define user commands in their .gdbinit file which give symbolic
> names to the signal numbers. For example:
>
> -- begin example .gdbinit --
> define reset
> signal SIGHUP
> end
>
> define avr-irq-0
> signal 96+12
> end
> -- end example --
>
> Don't take the 12 seriously, I pulled it out of the air. ;-)
>
> Attached is the patch if anyone cares to test it. Whoever asked for it
> originally never responded back so I let it slide. The patch might
> need some tweaking to work with the current cvs though.
Sorry, looks like I forgot to attach the patch. Silly fingers...
Ted Roth
sim-irq-raise.diff
Description: Text document
- [Simulavr-devel] Re: AT43USB devices, Theodore A. Roth, 2003/10/06
- [Simulavr-devel] Re: AT43USB devices, Keith Gudger, 2003/10/08
- [Simulavr-devel] Re: AT43USB devices, Keith Gudger, 2003/10/08
- [Simulavr-devel] Re: AT43USB devices, Keith Gudger, 2003/10/08
- [Simulavr-devel] Re: AT43USB devices, Keith Gudger, 2003/10/08
- Re: [Simulavr-devel] Re: AT43USB devices,
Theodore A. Roth <=
- [Simulavr-devel] Re: AT43USB devices, Keith Gudger, 2003/10/09
- [Simulavr-devel] raising signals from gdb, Theodore A. Roth, 2003/10/09
- [Simulavr-devel] Re: raising signals from gdb, Theodore A. Roth, 2003/10/09
- [Simulavr-devel] Re: raising signals from gdb, Keith Gudger, 2003/10/09
- [Simulavr-devel] Re: raising signals from gdb, Theodore A. Roth, 2003/10/09
- [Simulavr-devel] Re: raising signals from gdb, Keith Gudger, 2003/10/10
- Re: [Simulavr-devel] Re: raising signals from gdb, Theodore A. Roth, 2003/10/10
- Re: [Simulavr-devel] Re: raising signals from gdb, Keith Gudger, 2003/10/10
- Re: [Simulavr-devel] Re: raising signals from gdb, Theodore A. Roth, 2003/10/10