This is the mail archive of the gdb-patches@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]

8.2 regression for invalid -data-directory [Re: [RESEND][PATCH 01/40] Convert struct target_ops to C++]


f6ac5f3d63e03a81c4ff3749aba234961cc9090e is the first bad commit
commit f6ac5f3d63e03a81c4ff3749aba234961cc9090e
Author: Pedro Alves <palves@redhat.com>
Date:   Thu May 3 00:37:22 2018 +0100
    Convert struct target_ops to C++
    
$ ./gdb -data-directory gdb
Segmentation fault

Program received signal SIGSEGV, Segmentation fault.
target_supports_terminal_ours () at target.c:590
590	  return current_top_target ()->supports_terminal_ours ();
(gdb) bt
#0  target_supports_terminal_ours () at target.c:590
#1  0x0000000000c0c0d0 in vwarning (string=0x14bc4ca "%s is not a directory.", args=0x7fffffffc8e0) at utils.c:173
#2  0x00000000005af49d in warning (fmt=0x14bc4ca "%s is not a directory.") at common/errors.c:31
#3  0x0000000000873848 in set_gdb_data_directory (new_datadir=0x7fffffffd1f4 "gdb") at main.c:121
#4  0x000000000087465a in captured_main_1 (context=0x7fffffffcce0) at main.c:763
#5  0x00000000008753e1 in captured_main (data=0x7fffffffcce0) at main.c:1163
#6  0x00000000008754bd in gdb_main (args=0x7fffffffcce0) at main.c:1189
#7  0x00000000004129dc in main (argc=3, argv=0x7fffffffcde8) at gdb.c:32
(gdb) _


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