Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Question about gdb install
@ 2023-11-21 12:47 wj w via Gdb
  2023-11-21 12:52 ` Luis Machado via Gdb
  0 siblings, 1 reply; 6+ messages in thread
From: wj w via Gdb @ 2023-11-21 12:47 UTC (permalink / raw)
  To: gdb

My computer is Mac with m2 pro. I have installed the Homebrew. However,
when I used “brew install gdb” to install gdb, it will show error. The
error message is follow:
gdb: The x86_64 architecture is required for this software.
Error: gdb: An unsatisfied requirement failed this build.


I want to know how to deal with this error an install gdb.

Thanks very much

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about gdb install
  2023-11-21 12:47 Question about gdb install wj w via Gdb
@ 2023-11-21 12:52 ` Luis Machado via Gdb
       [not found]   ` <1700571686057.kpc5cok1i1xcesy5qwyd1ff0@android.mail.163.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Luis Machado via Gdb @ 2023-11-21 12:52 UTC (permalink / raw)
  To: wj w, gdb

On 11/21/23 12:47, wj w via Gdb wrote:
> My computer is Mac with m2 pro. I have installed the Homebrew. However,
> when I used “brew install gdb” to install gdb, it will show error. The
> error message is follow:
> gdb: The x86_64 architecture is required for this software.
> Error: gdb: An unsatisfied requirement failed this build.
> 
> 
> I want to know how to deal with this error an install gdb.
> 
> Thanks very much

Unfortunately gdb is not yet supported on Apple Arm-based hardware. It is supported for
x86-64-based hardware though.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about gdb install
       [not found]   ` <1700571686057.kpc5cok1i1xcesy5qwyd1ff0@android.mail.163.com>
@ 2023-11-21 13:08     ` Luis Machado via Gdb
  2023-11-21 13:21       ` wangwj55112--- via Gdb
  0 siblings, 1 reply; 6+ messages in thread
From: Luis Machado via Gdb @ 2023-11-21 13:08 UTC (permalink / raw)
  To: wangwj55112; +Cc: gdb

On 11/21/23 13:01, wangwj55112@gmail.com wrote:
> Will it support for apple arm architecture?
> 

It might in the future, but volunteers need to send in patches to enable that.

Although we've had a few interested volunteers over the years, it hasn't materialized
yet.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about gdb install
  2023-11-21 13:08     ` Luis Machado via Gdb
@ 2023-11-21 13:21       ` wangwj55112--- via Gdb
  2023-11-21 13:27         ` Luis Machado via Gdb
  0 siblings, 1 reply; 6+ messages in thread
From: wangwj55112--- via Gdb @ 2023-11-21 13:21 UTC (permalink / raw)
  To: luis.machado; +Cc: gdb

Thanks for your answer. By the way, if I want to debug fortran code on the Mac arm, what software can I use?<br/><br/><br/><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px" >
    <div style=" margin-top: 20px; margin-bottom: 12px; font-size: 14px; line-height: 1.25; color: #89898c; " >---- Replied Message ----</div>
    <div style=" margin-bottom: 12px; font-size: 13px; line-height: 1.25; color: #2c2c2e; padding: 2px; border-radius: 8px; background-color: #f0f0f0; " >
        <table width="100%" cellpadding="0" cellspacing="10" border="0">
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; " >From</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-from" style="color: #1c83eb; text-decoration: none" href="mailto:luis.machado@arm.com" >Luis Machado&lt;luis.machado@arm.com&gt;</a></td>
            </tr>
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; " >Date</td>
                <td class="mail-date" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " >11/21/2023 21:08</td>
            </tr>
            <tr style="">
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >To</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-to" style="color: #1c83eb; text-decoration: none" href="mailto:wangwj55112@gmail.com" >wangwj55112@gmail.com</a></td>
            </tr>
            <tr style="">
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >Cc</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " ><a class="mail-cc" style="color: #1c83eb; text-decoration: none" href="mailto:gdb@sourceware.org" >gdb&lt;gdb@sourceware.org&gt;</a></td>
            </tr>
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; " >Subject</td>
                <td class="mail-subject" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; " >Re: Question about gdb install</td>
            </tr>
        </table>
    </div>
    <div>On 11/21/23 13:01, wangwj55112@gmail.com wrote:\r<br/>&gt; Will it support for apple arm architecture?\r<br/>&gt; \r<br/>\r<br/>It might in the future, but volunteers need to send in patches to enable that.\r<br/>\r<br/>Although we've had a few interested volunteers over the years, it hasn't materialized\r<br/>yet.\r<br/></div>
</div>
</body>
</html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about gdb install
  2023-11-21 13:21       ` wangwj55112--- via Gdb
@ 2023-11-21 13:27         ` Luis Machado via Gdb
  2024-05-01 12:58           ` Matthias Schroeder via Gdb
  0 siblings, 1 reply; 6+ messages in thread
From: Luis Machado via Gdb @ 2023-11-21 13:27 UTC (permalink / raw)
  To: wangwj55112; +Cc: gdb

On 11/21/23 13:21, wangwj55112@gmail.com wrote:
> Thanks for your answer. By the way, if I want to debug fortran code on the Mac arm, what software can I use?

I'm not sure how much fortran LLDB supports, but I'd recommend trying LLDB, as it should be supported for Mac/Arm.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about gdb install
  2023-11-21 13:27         ` Luis Machado via Gdb
@ 2024-05-01 12:58           ` Matthias Schroeder via Gdb
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Schroeder via Gdb @ 2024-05-01 12:58 UTC (permalink / raw)
  To: Luis Machado; +Cc: wangwj55112, gdb


> On 21 Nov 2023, at 14:27, Luis Machado <luis.machado@arm.com> wrote:
> 
> On 11/21/23 13:21, wangwj55112@gmail.com wrote:
>> Thanks for your answer. By the way, if I want to debug fortran code on the Mac arm, what software can I use?
> 
> I'm not sure how much fortran LLDB supports, but I'd recommend trying LLDB, as it should be supported for Mac/Arm.
> 

LLDB does support a bit of fortran code, you can look up the code, set breakpoints, step through, but it can not show you the value of variables. So it is of VERY limited use for debugging fortran code on Apple Silicon.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-01 12:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 12:47 Question about gdb install wj w via Gdb
2023-11-21 12:52 ` Luis Machado via Gdb
     [not found]   ` <1700571686057.kpc5cok1i1xcesy5qwyd1ff0@android.mail.163.com>
2023-11-21 13:08     ` Luis Machado via Gdb
2023-11-21 13:21       ` wangwj55112--- via Gdb
2023-11-21 13:27         ` Luis Machado via Gdb
2024-05-01 12:58           ` Matthias Schroeder via Gdb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox