This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/8037] GDB is not able to show parameters of catch block


------- Additional Comments From tromey at redhat dot com  2009-03-11 17:46 -------
The proposed patch to dwarf2read.c appears to have been in gdb for
some time.
I suspect this bug is fixed but I can't test it myself.
Could you try it and see?
------- Additional Comments From steve dot merritt at intel dot com  2009-03-11 20:24 -------
Miwako forwarded the request to me.  I have verified the issue is resolved.

> gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b 16
Breakpoint 1 at 0x8048a0f: file eh_02.cpp, line 16.
(gdb) r
Starting program: gdb-bug/a.out

Breakpoint 1, main () at eh_02.cpp:16
16              cout << "Exception raised: " << str << '\n';
(gdb) p str
$1 = 0x8048bc0 "Test Memory allocation failure!"
(gdb)
------- Additional Comments From steve dot merritt at intel dot com  2009-03-11 20:25 -------
Miwako forwarded the request to me.  I have verified that gdb can now 
correctly print "str".

> gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b 16
Breakpoint 1 at 0x8048a0f: file eh_02.cpp, line 16.
(gdb) r
Starting program: gdb-bug/a.out

Breakpoint 1, main () at eh_02.cpp:16
16              cout << "Exception raised: " << str << '\n';
(gdb) p str
$1 = 0x8048bc0 "Test Memory allocation failure!"
(gdb)

------- Additional Comments From steve dot merritt at intel dot com  2009-03-11 20:28 -------
Miwako forwarded the request on to me.  I have verified that gdb can now 
currectly print "str".

> gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b 16
Breakpoint 1 at 0x8048a0f: file eh_02.cpp, line 16.
(gdb) r
Starting program: gdb-bug/a.out

Breakpoint 1, main () at eh_02.cpp:16
16              cout << "Exception raised: " << str << '\n';
(gdb) p str
$1 = 0x8048bc0 "Test Memory allocation failure!"
(gdb)

------- Additional Comments From steve dot merritt at intel dot com  2009-03-11 20:35 -------
Miwako forwarded the request on to me.  I have verified that gsb can now 
print "str".

$ gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b 16
Breakpoint 1 at 0x8048a0f: file eh_02.cpp, line 16.
(gdb) r
Starting program: gdb-bug/a.out

Breakpoint 1, main () at eh_02.cpp:16
16              cout << "Exception raised: " << str << '\n';
(gdb) p str
$1 = 0x8048bc0 "Test Memory allocation failure!"
(gdb)

------- Additional Comments From steve dot merritt at intel dot com  2009-03-12 17:29 -------
Miwako forwarded the request on to me.  I tried a gdb 6.3 and the issue does 
seem to be resolved.

$ gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b 16
Breakpoint 1 at 0x8048a0f: file eh_02.cpp, line 16.
(gdb) r
Starting program: gdb-bug/a.out

Breakpoint 1, main () at eh_02.cpp:16
16              cout << "Exception raised: " << str << '\n';
(gdb) p str
$1 = 0x8048bc0 "Test Memory allocation failure!"
(gdb)

------- Additional Comments From steve dot merritt at intel dot com  2009-03-12 17:34 -------
Sorry for all the repeated comments.  I was getting an error and thought the 
postings failed.
------- Additional Comments From tromey at redhat dot com  2009-05-20 21:09 -------
Reported as fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |6.8


http://sourceware.org/bugzilla/show_bug.cgi?id=8037

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]