Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Chris Stankevitz <chris-01@stankevitz.com>
To: gdb@sources.redhat.com
Subject: Breaking exceptions before stack unwind
Date: Tue, 16 Nov 2004 21:10:00 -0000	[thread overview]
Message-ID: <419A5E71.8030304@stankevitz.com> (raw)


According to the GDB documentation, you can tell gdb to break on all 
exceptions with this command:
  break __raise_exception

This does not work for me (not defined).  Others suggested this:
  break __cp_push_exception

That doesn't work for me either (not defined).

I have two questions:

1. Why don't either of those two options work for me?

2. What can I use to break on exceptions before the stack is unwound?

Thanks so much!

Chris

PS:

[chris@c4isr temp]$ nm a.out
080497a0 A __bss_start
0804846c t call_gmon_start
080497a0 b completed.1
0804976c d __CTOR_END__
08049768 d __CTOR_LIST__
          U __cxa_begin_catch@@CXXABI_1.2
          U __cxa_end_catch@@CXXABI_1.2
          U __cxa_rethrow@@CXXABI_1.2
0804967c D __data_start
0804967c W data_start
080485c8 t __do_global_ctors_aux
08048490 t __do_global_dtors_aux
08049680 D __dso_handle
08049774 d __DTOR_END__
08049770 d __DTOR_LIST__
08049688 D _DYNAMIC
080497a0 A _edata
080497a4 A _end
080485ec T _fini
0804967c A __fini_array_end
0804967c A __fini_array_start
08048608 R _fp_hw
080484cc t frame_dummy
08048664 r __FRAME_END__
0804977c D _GLOBAL_OFFSET_TABLE_
          w __gmon_start__
          U __gxx_personality_v0@@CXXABI_1.2
080483d0 T _init
0804967c A __init_array_end
0804967c A __init_array_start
0804860c R _IO_stdin_used
08049778 d __JCR_END__
08049778 d __JCR_LIST__
          w _Jv_RegisterClasses
08048584 T __libc_csu_fini
0804853c T __libc_csu_init
          U __libc_start_main@@GLIBC_2.0
080484f8 T main
08049684 d p.0
0804967c A __preinit_array_end
0804967c A __preinit_array_start
08048448 T _start
          U _Unwind_Resume@@GCC_3.0


             reply	other threads:[~2004-11-16 20:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 21:10 Chris Stankevitz [this message]
2004-11-17 23:23 ` Daniel Jacobowitz
2004-11-18  9:25   ` Chris Stankevitz
2004-11-19  3:13     ` Daniel Jacobowitz
2004-11-23 16:24   ` Eli Zaretskii
2004-11-24  4:47     ` Daniel Jacobowitz
2004-11-24  6:53       ` Eli Zaretskii

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=419A5E71.8030304@stankevitz.com \
    --to=chris-01@stankevitz.com \
    --cc=gdb@sources.redhat.com \
    /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