Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Li Hua via Gdb <gdb@sourceware.org>
To: "bug-gdb@gnu.org" <bug-gdb@gnu.org>
Subject: bugs happen when building in darwin
Date: Sat, 1 Feb 2025 00:29:50 +0000	[thread overview]
Message-ID: <SI2PR02MB461726880CACB3861F7A0E0AA3E82@SI2PR02MB4617.apcprd02.prod.outlook.com> (raw)

1:GDB VERSION: GNU gdb (GDB) 16.1 (the latest release downloaded from https://ftp.gnu.org/gnu/gdb/)
2:Configure SETTING:
   configure --host=x86_64-apple-darwin19.6.0 --target=x86_64-apple-darwin19.6.0
    --with-auto-load-dir=:${prefix}/share/auto-load
    --with-auto-load-safe-path=:${prefix}/share/auto-load
    --with-expat
    --with-gdb-datadir=/usr/local/Cellar/gdb/share/gdb (relocatable)
    --with-jit-reader-dir=/usr/local/Cellar/gdb/lib/gdb (relocatable)
    --without-libunwind-ia64
    --without-lzma
    --without-babeltrace
    --without-intel-pt
    --without-xxhash
    --without-python
    --without-python-libdir
    --without-debuginfod
    --with-curses
    --with-guile
    --without-amd-dbgapi
    --enable-source-highlight
    --enable-threading
    --enable-tui
    --without-system-readline
    --with-separate-debug-dir=/usr/local/Cellar/gdb/lib/debug (relocatable)

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)

GNU Readline library version: 8.2 (internal)

3:Error(happen when do the 'make' processs):
darwin-nat.c:1949:21: error: use of undeclared identifier 'command_style'
                   styled_string (command_style.style (), "run"),
                                  ^
darwin-nat.c:1950:21: error: use of undeclared identifier 'command_style'
                   styled_string (command_style.style (),
                                  ^
darwin-nat.c:1959:20: error: use of undeclared identifier 'command_style'
                  styled_string (command_style.style (), "run"),


To this problem, I have personally tried to fix it. And I found the reason causing this error is that the header file "cli/cli-style.h" doesn't been included in "darwin-nat.c". When I add the line '#include "cli/cli-style.h"'
, the error disappears.

Thank you for reading this. Looking forward your reply.


             reply	other threads:[~2025-02-01  1:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-01  0:29 Li Hua via Gdb [this message]
2025-02-01  1:53 ` Thiago Jung Bauermann via Gdb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SI2PR02MB461726880CACB3861F7A0E0AA3E82@SI2PR02MB4617.apcprd02.prod.outlook.com \
    --to=gdb@sourceware.org \
    --cc=boredcola@outlook.com \
    --cc=bug-gdb@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox