Thread View: gnu.gdb.bug
3 messages
3 total messages
Started by Marty Leisner
Thu, 19 Nov 1992 14:38
Attaching to a process
Author: Marty Leisner
Date: Thu, 19 Nov 1992 14:38
Date: Thu, 19 Nov 1992 14:38
34 lines
1496 bytes
1496 bytes
I'm using gdb-4.7 on sunOS 4.1.2.
When I do gdb +help, it says:
This is GDB, the GNU debugger. Use the command
gdb [options] [executable [core-file]]
to enter the debugger.
It would be nice if there was a version there.
The arguments to gdb don't include a PID.
I did this:
ps | fgrep tin
7116 p7 S 0:01 xterm -title tin-debug -e bash
7122 p8 S 0:01 xterm -title tin -e tin
7187 p8 S 0:00 fgrep tin
7123 p9 IW 0:01 tin
leisner@annapurna$ gdb /usr/marty/bin/tin 7123
GDB is free software and you are welcome to 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.
GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
/files3/leisner/src/tin-1.17/7123: No such file or directory.
Can't attach to a process on this machine.
How do I attach to a process?
--
marty
leisner.henr801c@xerox.com leisner@eso.mc.xerox.com
Member of the League for Programming Freedom
Re: Attaching to a process
Author: jeremy bettis
Date: Fri, 20 Nov 1992 21:04
Date: Fri, 20 Nov 1992 21:04
23 lines
1323 bytes
1323 bytes
leisner@wrc.xerox.COM ( Marty Leisner) writes: >I'm using gdb-4.7 on sunOS 4.1.2. >When I do gdb +help, it says: >This is GDB, the GNU debugger. Use the command > gdb [options] [executable [core-file]] >to enter the debugger. > leisner@annapurna$ gdb /usr/marty/bin/tin 7123 >How do I attach to a process? I think what you need to do it type gdb /usr/marty/bin/tin and then when it prompts you gdb> type help running. This ought to give the command to link to an existing process. I have never tried it. Usually I just type gdb filename gdb> run -options arguments then begin the debugging. -- Jeremy Bettis -*- Jerbo Jehoshaphat -*- University of Nebraska INET: jbettis@cse.unl.edu "Those who stand in the middle of the bt757@Cleveland.Freenet.Edu road are often hit by passing cars." BBS: The Dew Drop Inn (402)476-8807 3/12/24
Re: Attaching to a process
Author: Marty Leisner
Date: Sat, 21 Nov 1992 22:20
Date: Sat, 21 Nov 1992 22:20
31 lines
1488 bytes
1488 bytes
In order to attach to a process on sparc I need:
> #include "nm.h" /* added -- marty leisner */
in inftarg.c...
(John Gilmore caught this...)
Now, how do I update the version information on gdb (so I know I'm using
4.7.1...
Using mkid (wonderful tool, get it)...I saw:
symtab.h:8: the Free Software Foundation; either version 2 of the License, or
symtab.h:9: (at your option) any later version.
symtab.h:386: /* String of version information. May be zero. */
symtab.h:387: char *version;
main.c:178: extern char *version;
main.c:630: -quiet Do not print version number on startup.\n\
main.c:1897: version);
main.c:2491: add_cmd ("version", no_class, show_version,
main.c:2492: "Show what version of GDB this is.", &showlist);
but never see where version gets set to 4.7....(I grepped on 4.7 with no luck
in the gdb directory...)
??????
--
marty
leisner.henr801c@xerox.com leisner@eso.mc.xerox.com
Member of the League for Programming Freedom
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads