From: "Bennett F. Dill" <bdill@linux.dillfamily.org>
To: Markus Werle <numerical.simulation@web.de>
Cc: gdb@sources.redhat.com
Subject: Re: catch throw -how?
Date: Tue, 28 Jan 2003 15:47:00 -0000 [thread overview]
Message-ID: <20030128154812.GA13362@linux.dillfamily.org> (raw)
In-Reply-To: <3E36A332.9648D75E@web.de>
On Tue, Jan 28, 2003 at 04:35:14PM +0100, Markus Werle wrote:
> Hi!
>
> Using gdb-5.1.1 I wanted to use the "catch" feature for C++ exceptions like this
>
> # gdb ./myprogram
> GNU gdb 5.1.1
> 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 "i686-pc-linux-gnu"...
> (gdb) catch throw
> You can't do that without a process to debug.
> (gdb)
>
> 1. I do not understand the error message, please explain
> 2. Is this a bug resolved in gdb-5.3 or am I missing some information?
>
>
> best regards,
>
>
> Markus
>
Markus,
I'm not sure, but i think you may need to specify a core file at
startup, or attach to a process that you want to debug...
process id of program to debug = 4128
user@host:~$ gdb
(gdb) attach 4128
Attaching to process 4128
Reading symbols from /usr/lib/libcurses.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1... (no debugging symbols found)...done.
Symbols already loaded for /usr/lib/libcurses.so.1
Symbols already loaded for /usr/lib/libc.so.1
Symbols already loaded for /usr/lib/libdl.so.1
Symbols already loaded for /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
0xff319ad4 in syscall () from /usr/lib/libc.so.1
(gdb)
now try your catch... I'm not sure if that helps or not, but good luck
:-)
Ben
prev parent reply other threads:[~2003-01-28 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-28 15:35 Markus Werle
2003-01-28 15:42 ` Daniel Jacobowitz
2003-01-28 16:58 ` Markus Werle
2003-01-28 15:47 ` Bennett F. Dill [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030128154812.GA13362@linux.dillfamily.org \
--to=bdill@linux.dillfamily.org \
--cc=gdb@sources.redhat.com \
--cc=numerical.simulation@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox