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 gdb/20760] Crash when casting variable to char[][] type


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.

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