From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmail1.sentex.ca (vmail1.sentex.ca [64.7.153.19]) by sourceware.org (Postfix) with ESMTPS id 60841385842A for ; Sat, 16 Mar 2024 14:50:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60841385842A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=riddermarkfarm.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=riddermarkfarm.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 60841385842A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=64.7.153.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710600633; cv=none; b=qs+DBb9BK7v1xwfl3LnBEPRe0UiY5lDhtvrvsUdmst685MNF4j+7tdct4BKzEWONONYt/7VIU/XBzneQmxlMjb1Plf5JJUy4n9qbJbQnmKYf3ZOMX04CuCVz5KoVgO7WxosixqeF3BzDlWtmGoAyzgKn59cs14NK7WTqkJAhShw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710600633; c=relaxed/simple; bh=WC6GUrY4lURp2Uhr/9N0stWBJRW7NI9CCcfLtGP0w5c=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=H8vxLr+vPTHBulZINX18uAUbEILDgWVfgpgbWXqXLphe24RX7+jBPDL6tSYfVG6ykboL7p5btSkC5MWN5PGgfn4oqNOHaQZrqma2Gq+4f5IvKOYhWAlr1yF6/xV3c/KlIp7GNc/nf0LWUXrKzMAnEmQG8F48eaV1e+DBt3vvVxI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: (Haraka outbound); Sat, 16 Mar 2024 10:50:29 -0400 Authentication-Results: vmail1.sentex.ca; auth=pass (plain) Received: from [10.0.1.25] (lan0.qip.iasl.com [206.210.100.144]) by vmail1.sentex.ca (Haraka/2.8.25) with ESMTPSA id 9304B1AA-2314-4D2E-A9C4-29FF850E3E39.1 envelope-from (authenticated bits=0) (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256); Sat, 16 Mar 2024 10:50:29 -0400 Message-ID: Date: Sat, 16 Mar 2024 10:50:29 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Reply-To: jog37@riddermarkfarm.ca Content-Language: en-CA To: gdb@sourceware.org From: john o goyo Subject: Unable to trace assembler in GDB 14.2 on Solaris 11.3/sparc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Haraka-GeoIP: NA, CA, ON, Puslinch, 22km X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00,BODY_8BITS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I am learning Sparc assembler (mostly through Paul's book and various tutorials).  I built GDB 14.2 on Solaris 11.3/sparc and can debug C code with no problem. Here is my test assembler code (hello.s): /*  *  Calling printf via assembler.  *  */         .section ".data" hello:  .asciz "Hello, World!\n"         .global main         .align 4 main:         save %sp,-96,%sp         set  hello,%o0         call printf         nop         mov  0,%i0         ret         restore Compiled and linked via "gcc -g hello.s", the resulting a.out executes as expected. Here is what happens in GDB: GNU gdb (GDB) 14.2 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparcv9-sun-solaris2.11". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at:     . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from a.out... (No debugging symbols found in a.out) (gdb) b main Function "main" not defined. Make breakpoint pending on future shared library load? (y or [n]) This is contradiction to what both Paul's book and tutorials state. They state that a breakpoint should be set at main. Assistance requested, thank you. Sincerely, john