unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* <Help> can't do 'gdb emacs'
@ 2002-06-10 18:20 D. Goel
  2002-06-10 19:06 ` Eli Zaretskii
  2002-06-11 19:25 ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: D. Goel @ 2002-06-10 18:20 UTC (permalink / raw)


On my primary work-machine (not a umd.edu machine), i cannot run gdb
emacs successfully.. If someone knows offhand what i am doing wrong
below, that would be very helpful.  Thanks.

====================================================
;; 2002-06-10 T14:04:10-0400 (Monday)    Deepak Goel	
Below is a session for emacs-21.2.90, run on a machine-->
~/emacs $ uname -snvrmapi
SunOS nickel 5.7 Generic sun4u sparc SUNW,UltraSPARC-IIi-Engine

i was careful to cd to the source-directory of emacs-21.2.90 (and not
some other emacs).    Om this machine, the same behavior occurred for
emacs-21.1.1 when i ran gdb from *its* source-directory. 

This failure to start emacs seems to be specific to this machine.. for
instance, On all the umd.edu machines, be they alpha's or sunOs's, i
can start emacs-21.1 under gdb-4.18 (after the breakpoints) just fine.

+----
| dgoel :/home/dgoel > 
| dgoel :/home/dgoel > 
| dgoel :/home/dgoel > 
| dgoel :/home/dgoel > cd emacs/src/src
| dgoel :/home/dgoel/emacs/src/src > 
| dgoel :/home/dgoel/emacs/src/src > 
| dgoel :/home/dgoel/emacs/src/src > 
| dgoel :/home/dgoel/emacs/src/src > 
| dgoel :/home/dgoel/emacs/src/src > gdb -v
| GNU gdb 5.2
| Copyright 2002 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 "sparc-sun-solaris2.7".
| dgoel :/home/dgoel/emacs/src/src > gdb /home/dgoel/pub/usr/local/bin/emacs-21.2.90 
| GNU gdb 5.2
| Copyright 2002 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 "sparc-sun-solaris2.7"...
| DISPLAY = :0.0
| TERM = dumb
| Breakpoint 1 at 0xe8798: file emacs.c, line 387.
| Breakpoint 2 at 0xcd34c: file xterm.c, line 12005.
| (gdb) set args -q -nw -no-site-file
| (gdb) run
| Starting program: /home/dgoel/pub/usr/local/bin/emacs-21.2.90 -q -nw -no-site-file
| procfs: init_inferior, get_traced_signals line 4745, /proc/24209: Value too large for defined data type.
| (gdb) c
| Continuing.
| procfs: fetch_registers, get_gregs line 3672, /proc/24209: Value too large for defined data type.
| (gdb) c
| Continuing.
| procfs: fetch_registers, get_gregs line 3672, /proc/24209: Value too large for defined data type.
| (gdb) c
| Continuing.
| procfs: fetch_registers, get_gregs line 3672, /proc/24209: Value too large for defined data type.
| (gdb) q
| The program is running.  Exit anyway? (y or n) y
| dgoel :/home/dgoel/emacs/src/src > 
| dgoel :/home/dgoel/emacs/src/src > 
+----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <Help> can't do 'gdb emacs'
  2002-06-10 18:20 <Help> can't do 'gdb emacs' D. Goel
@ 2002-06-10 19:06 ` Eli Zaretskii
  2002-06-11 18:51   ` D. Goel
  2002-06-11 19:25 ` Richard Stallman
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2002-06-10 19:06 UTC (permalink / raw)
  Cc: emacs-devel

> From: "D. Goel" <deego@glue.umd.edu>
> Date: 10 Jun 2002 14:20:26 -0400
> 
> | (gdb) set args -q -nw -no-site-file
> | (gdb) run
> | Starting program: /home/dgoel/pub/usr/local/bin/emacs-21.2.90 -q -nw -no-site-file
> | procfs: init_inferior, get_traced_signals line 4745, /proc/24209: Value too large for defined data type.

Sounds like some incompatibility between Emacs and GDB.  For example,
can it be that GDB doesn't support 64-bit executables, while Emacs
was built as a 64-bit program?

In any case, there's nothing wrong with the commands you typed,
AFAICS.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <Help> can't do 'gdb emacs'
  2002-06-10 19:06 ` Eli Zaretskii
@ 2002-06-11 18:51   ` D. Goel
  0 siblings, 0 replies; 6+ messages in thread
From: D. Goel @ 2002-06-11 18:51 UTC (permalink / raw)
  Cc: emacs-devel


>>>>> <gdb emacs breaks with the foll. error> <<<<

> > From: "D. Goel" <deego@glue.umd.edu>
> > Date: 10 Jun 2002 14:20:26 -0400
> > 
> > | (gdb) set args -q -nw -no-site-file
> > | (gdb) run
> > | Starting program: /home/dgoel/pub/usr/local/bin/emacs-21.2.90 -q -nw -no-site-file
> > | procfs: init_inferior, get_traced_signals line 4745, /proc/24209: Value too large for defined data type.

Eli suggested 

> 
> Sounds like some incompatibility between Emacs and GDB.  For example,
> can it be that GDB doesn't support 64-bit executables, while Emacs
> was built as a 64-bit program?

I just learnt about the 'file' command and did a 'file' on both gdb
and emacs-21.2.90.

they both result in:

 ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not
 stripped


(this is on a SunOS 5.7 Generic sun4u sparc SUNW,
UltraSPARC-IIi-Engine)


any more hints?   

Thanks

DG				   <http://www.glue.umd.edu/~deego/>
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <Help> can't do 'gdb emacs'
  2002-06-10 18:20 <Help> can't do 'gdb emacs' D. Goel
  2002-06-10 19:06 ` Eli Zaretskii
@ 2002-06-11 19:25 ` Richard Stallman
  2002-06-12  0:46   ` D. Goel
  2002-06-12  5:41   ` Eli Zaretskii
  1 sibling, 2 replies; 6+ messages in thread
From: Richard Stallman @ 2002-06-11 19:25 UTC (permalink / raw)
  Cc: emacs-devel

This is either a GDB bug, or a situation GDB does not try to handle
(as Eli suggested).  It can't be due to an Emacs bug per se.

So I suggest you file a GDB bug report.

I do not know whether any of the GDB developers uses or cares about
Solaris.  You may need to debug the GDB problem yourself.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <Help> can't do 'gdb emacs'
  2002-06-11 19:25 ` Richard Stallman
@ 2002-06-12  0:46   ` D. Goel
  2002-06-12  5:41   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: D. Goel @ 2002-06-12  0:46 UTC (permalink / raw)
  Cc: emacs-devel


> This is either a GDB bug, or a situation GDB does not try to handle
> (as Eli suggested).  It can't be due to an Emacs bug per se.
> 
> So I suggest you file a GDB bug report.

Thanks, submitted.

(i will also try to rebuild gdb forcing it to use gcc rather than
solaris' cc..  i think emacs was built using gcc..)


DG				   <http://www.glue.umd.edu/~deego/>
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <Help> can't do 'gdb emacs'
  2002-06-11 19:25 ` Richard Stallman
  2002-06-12  0:46   ` D. Goel
@ 2002-06-12  5:41   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2002-06-12  5:41 UTC (permalink / raw)
  Cc: deego, emacs-devel


On Tue, 11 Jun 2002, Richard Stallman wrote:

> I do not know whether any of the GDB developers uses or cares about
> Solaris.  You may need to debug the GDB problem yourself.

FWIW, GDB works for me on Solaris 5.8.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-12  5:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-10 18:20 <Help> can't do 'gdb emacs' D. Goel
2002-06-10 19:06 ` Eli Zaretskii
2002-06-11 18:51   ` D. Goel
2002-06-11 19:25 ` Richard Stallman
2002-06-12  0:46   ` D. Goel
2002-06-12  5:41   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).