Re: Unable to trace assembler in GDB 14.2 on Solaris 11.3/sparc [SOLVED]
john o goyo <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings, Tom.
On 2024-03-21 12:29, Tom Tromey wrote:
> I didn't want to let this go unanswered, but I was hoping someone more
> familiar with Solaris would reply.
>
>> 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.
>> .section ".data"
>> hello: .asciz "Hello, World!\n"
>> .global main
>> .align 4
>> main:
> Does main end up in .data here? If so that could be the issue.
Yes -- that was exactly my mistake. I added .section ".text" before the
.global main and now main shows up as it should.
Thank you very much!
john
>
> Normally this kind of thing should work ok, as far as I know.
>
> Maybe dumping the minimal symbols ("maint print msymbols") would be
> informative.
>
> Tom