This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20760] Crash when casting variable to char[][] type
- From: "weimin.pan at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 15 Nov 2017 23:38:08 +0000
- Subject: [Bug gdb/20760] Crash when casting variable to char[][] type
- Auto-submitted: auto-generated
- References: <bug-20760-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20760
weimin.pan at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |weimin.pan at oracle dot com
--- Comment #1 from weimin.pan at oracle dot com ---
Upstream gdb can now handle the "print" command correctly:
(gdb) break main
Breakpoint 1 at 0x100570: file cast-crash.c, line 3.
(gdb) run
Starting program: /tmp/20760/a.out
Breakpoint 1, main (argc=1, argv=0x7fefffff508) at cast-crash.c:3
3 return 0;
(gdb) print (char[][]) argc
$1 = {"", "", "", "\001"}
--
You are receiving this mail because:
You are on the CC list for the bug.