public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* RFC: DW_TAG_try_block
@ 2003-05-26 19:46 H. J. Lu
  2003-05-26 19:59 ` Daniel Jacobowitz
  2003-05-27 14:46 ` Elena Zannoni
  0 siblings, 2 replies; 10+ messages in thread
From: H. J. Lu @ 2003-05-26 19:46 UTC (permalink / raw)
  To: GDB

Intel C++ compiler generates DW_TAG_try_block for

	try
	  {
	  ...
	  }

Gdb can't print any local variables declared inside the try block. This
patch seems to work for us. Is that correct?


H.J.
---
2003-05-26  H.J. Lu <hongjiu.lu@intel.com>

	* dwarf2read.c (process_die): Handle DW_TAG_try_block.

--- gdb/dwarf2read.c.try	2003-05-26 12:23:22.000000000 -0700
+++ gdb/dwarf2read.c	2003-05-26 12:37:08.000000000 -0700
@@ -1768,6 +1768,7 @@ process_die (struct die_info *die, struc
          of a function and make GDB `next' properly over inlined functions.  */
       break;
     case DW_TAG_lexical_block:
+    case DW_TAG_try_block:
       read_lexical_block_scope (die, objfile, cu_header);
       break;
     case DW_TAG_class_type:

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

end of thread, other threads:[~2003-05-28 16:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-26 19:46 RFC: DW_TAG_try_block H. J. Lu
2003-05-26 19:59 ` Daniel Jacobowitz
2003-05-26 20:16   ` H. J. Lu
2003-05-27 14:46 ` Elena Zannoni
2003-05-27 14:58   ` H. J. Lu
2003-05-27 15:05     ` Daniel Jacobowitz
2003-05-27 15:06     ` Elena Zannoni
2003-05-27 15:19       ` H. J. Lu
2003-05-28 16:47         ` David Carlton
2003-05-28 16:50           ` Daniel Jacobowitz

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).