public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug build/26365] [build, arm-elf] Compilation error in sim/arm/wrapper.c Date: Mon, 10 Aug 2020 16:15:55 +0000 [thread overview] Message-ID: <bug-26365-4717-0tPSLDwb32@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26365-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26365 --- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> --- So we have argv: ... SIM_DESC sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char * const *argv) { ... and then argv is used in this call: ... sim_target_parse_arg_array (argv); ... with prototype: ... sim_target_parse_arg_array (char ** argv) ... Looking down further in the implementation in sim_target_parse_command_line: ... /* Remove this option from the argv array. */ for (arg = i; arg < argc; arg ++) argv[arg] = argv[arg + 1]; ... we seem to modifying argv. OTOH, the sim_open def matches the decl in include/gdb/remote-sim.h: ... SIM_DESC sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback, struct bfd *abfd, char * const *argv); ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-08-10 16:15 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-10 15:49 [Bug build/26365] New: " vries at gcc dot gnu.org 2020-08-10 16:15 ` vries at gcc dot gnu.org [this message] 2020-08-10 22:02 ` [Bug build/26365] " vries at gcc dot gnu.org 2020-08-11 7:55 ` alahay01 at gcc dot gnu.org 2020-08-11 12:10 ` luis.machado at linaro dot org 2020-08-11 12:10 ` luis.machado at linaro dot org 2020-08-11 12:10 ` luis.machado at linaro dot org 2020-08-11 12:10 ` luis.machado at linaro dot org 2020-08-11 13:26 ` luis.machado at linaro dot org 2020-08-11 18:47 ` [Bug sim/26365] " luis.machado at linaro dot org 2020-08-13 13:33 ` cvs-commit at gcc dot gnu.org 2020-08-13 13:33 ` luis.machado at linaro dot org
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=bug-26365-4717-0tPSLDwb32@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).