From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pv50p00im-ztdg10021201.me.com (pv50p00im-ztdg10021201.me.com [17.58.6.45]) by sourceware.org (Postfix) with ESMTPS id 331E338618DC for ; Sun, 27 Jun 2021 22:44:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 331E338618DC Received: from smtpclient.apple (c-71-231-148-226.hsd1.wa.comcast.net [71.231.148.226]) by pv50p00im-ztdg10021201.me.com (Postfix) with ESMTPSA id 9A59FA402EB; Sun, 27 Jun 2021 22:44:45 +0000 (UTC) From: Sam Warner Message-Id: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: GDB and MacOS 11.4/BigSur Date: Sun, 27 Jun 2021 15:44:44 -0700 In-Reply-To: <56e03cb6-efd1-4ac0-a355-30fb77684641@polymtl.ca> Cc: gdb@sourceware.org To: Simon Marchi References: <9717BBC8-70FA-47DD-8C62-33018D746003@me.com> <5180de47-136f-bad7-9f83-78ac02a323c6@polymtl.ca> <460390D0-EBA2-4FDA-9C08-FB23FB59A59D@me.com> <56e03cb6-efd1-4ac0-a355-30fb77684641@polymtl.ca> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-27_04:2021-06-25, 2021-06-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106270170 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2021 22:44:49 -0000 Hi Simon, Thanks - yes - I=E2=80=99ll start with that patch first. I obtain = the same call stack My next two things to learn is how to get the equivalent of the = symbol-server working, and then to setup a developer-environment for = GDB. Any pointers would be great. Sam Thread 2 hit Breakpoint 1, 0x00000001007cbcac in internal_error(char = const*, int, char const*, ...) () (gdb) backtrace #0 0x00000001007cbcac in internal_error(char const*, int, char const*, = ...) () #1 0x0000000100397902 in inferior_thread() () #2 0x00000001002bdd41 in get_current_regcache() () #3 0x000000010033bc59 in darwin_solib_create_inferior_hook(int) () #4 0x000000010036555c in symbol_file_command(char const*, int) () #5 0x0000000100159047 in file_command(char const*, int) () #6 0x00000001000b4ec1 in cmd_func(cmd_list_element*, char const*, int) = () #7 0x00000001003a0ce9 in execute_command(char const*, int) () #8 0x0000000100156348 in command_handler(char const*) () #9 0x000000010015661e in = command_line_handler(std::__1::unique_ptr = >&&) () #10 0x0000000100155e1a in gdb_rl_callback_handler(char*) () #11 0x000000010040ec94 in rl_callback_read_char () #12 0x0000000100156d1d in gdb_rl_callback_read_char_wrapper_noexcept() = () #13 0x0000000100155b1c in gdb_rl_callback_read_char_wrapper(void*) () #14 0x000000010015623f in stdin_event_handler(int, void*) () #15 0x00000001007cc257 in gdb_wait_for_event(int) () #16 0x00000001007cbe37 in gdb_do_one_event() () #17 0x00000001001fe000 in captured_command_loop() () #18 0x00000001001fd0e5 in gdb_main(captured_main_args*) () #19 0x000000010000266c in main () (gdb)=20 > On Jun 27, 2021, at 3:27 PM, Simon Marchi = wrote: >=20 > Well, for the issue you reported specifically, please see the patch I > sent here, I think it fixes it: >=20 > https://sourceware.org/pipermail/gdb-patches/2021-June/180396.html >=20 > But there were other bugs reported on Bugzilla for macOS, they might > affect you as well. If you stumble on one of them, you could try to > write a fix for it and send a patch to the gdb-patches list, so that = it > gets reviewed and eventually merged. > Simon >=20 > On 2021-06-27 4:32 p.m., Sam Warner wrote: >> Hi Simon, >> Yeh, I=E2=80=99ve queued to do the actions for the first paragraph = based on your input that few are working on resolving issues for = GDB/MacOS. >>=20 >> When you mentioned " to get patches in a good state and send them = to the gdb-patches >> list for review.=E2=80=9D I thought, well, first order of business = would be this (as I saw an individual had an attempt in 10.1 to fix a = null-pointer). Should I first help here? >=20 >=20