This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Reporting unsupported things.
- From: Daniel Jacobowitz <drow at false dot org>
- To: PAUL GILLIAM <pgilliam at us dot ibm dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 25 Apr 2006 15:34:08 -0400
- Subject: Re: Reporting unsupported things.
- References: <20060418152443.GA13825@nevyn.them.org> <44456356.8090706@redhat.com> <u4q0qx85u.fsf@gnu.org> <444680C3.1010007@redhat.com> <20060420134343.GC11710@nevyn.them.org> <4447DF7D.6070506@redhat.com> <20060420195047.GA22563@nevyn.them.org> <44481EF9.5010900@redhat.com> <20060424205536.GC27220@nevyn.them.org> <1145923244.18934.38.camel@dufur.beaverton.ibm.com>
On Mon, Apr 24, 2006 at 05:00:44PM -0700, PAUL GILLIAM wrote:
> On Mon, 2006-04-24 at 16:55 -0400, Daniel Jacobowitz wrote:
> > We want to say that reverse execution is not supported.
>
> I have been given a similar request. My users want to see a message
> like "a 32-bit ppc GDB can't debug a 64-bit ppc target program".
This is not at all the same problem. You could just refuse to create
one if GDB was configured inappropriately.
> In general, it would be nice if GDB could detect that it was being asked
> to do something it can't do as soon as it was asked.
The problem is "where does it become obvious that we can't do what the
user wants"? A powerpc-linux GDB can probably remote debug a 64-bit
binary. It's native debug that presents a problem.
> PS: In theory, a 32-bit GDB running on a 64-bit ppc host could debug a
> 64-bit target: "ptrace" allegedly supports this. The current ppc port,
> however, does not.
Richard Henderson posted patches for this months ago. They should be
looked at again. I've done similar for MIPS.
--
Daniel Jacobowitz
CodeSourcery