From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99A453858C56; Wed, 28 Sep 2022 11:29:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99A453858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664364562; bh=RaO72hTlWPbAYo08k6MyanY/IWnHIwVf3CISlHnjiqI=; h=From:To:Subject:Date:From; b=KjgurNVP8x2i7WsJvlDrC/NimPoz3aWaluWb8PFGwlSMuk7gU7j/VRA1YCFWySKzs 3CJc+0SD3rJUeV+YPuqECXiwhty9yGKK+EwG6VFEiEGKmTCDbZ9H778yDbrlyygkfD ggTIjEk4wRt5jHIdBOgYhZokn0lfhCdUTikPgc1k= From: "mengda2020 at iscas dot ac.cn" To: gdb-prs@sourceware.org Subject: [Bug gdb/29625] New: The help document of gdb misses some options Date: Wed, 28 Sep 2022 11:29:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mengda2020 at iscas dot ac.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29625 Bug ID: 29625 Summary: The help document of gdb misses some options Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: mengda2020 at iscas dot ac.cn Target Milestone: --- For version GNU gdb (GDB) 13.0.50.20220805-git, the "--help" option of gdb misses the option "annotate" , "eix", "eiex" , "z", "y" and "statistics".=20 1=EF=BC=89 For the option "annotate", the following code appears during opt= ion parsing and modifies the annotation_level in gdb/main.c:856-858 for version GNU gdb (GDB) 13.0.50.20220805-git. /* FIXME: what if the syntax is wrong (e.g. not digits)? */ annotation_level =3D atoi (optarg); break; 2) For the option "eix", the following code appears during option parsing a= nd calls cmdarg_vec.emplace_back (CMDARG_EARLYINIT_FILE, optarg)in gdb/main.c:912-913 for version GNU gdb (GDB) 13.0.50.20220805-git.=20 cmdarg_vec.emplace_back (CMDARG_EARLYINIT_FILE, optarg); break; 3) For the option "eiex", the following code appears during option parsing = and calls cmdarg_vec.emplace_back (CMDARG_EARLYINIT_COMMAND, optarg) in gdb/main.c:915-916 for version GNU gdb (GDB) 13.0.50.20220805-git.=20 cmdarg_vec.emplace_back (CMDARG_EARLYINIT_COMMAND, optarg); break; 4) For the option "z", the following code appears during option parsing and prints some error information in gdb/main.c:930-935 for version GNU gdb (GD= B) 13.0.50.20220805-git.=20 { if (!gdbtk_test (optarg)) error (_("%s: unable to load tclcommand file \"%s\""), gdb_program_name, optarg); break; } 5) For the option "y", the following code appears during option parsing in gdb/main.c:937-938 for version GNU gdb (GDB) 13.0.50.20220805-git.=20 /* Backwards compatibility only. */ break; Although it has no actual function, it is still possible forget to modify t= he help document after adding the function in a subsequent update. 6) For the option "statistics", the following code appears during option parsing and calls set_per_command_time and set_per_command_space in gdb/main.c:860-863 for version GNU gdb (GDB) 13.0.50.20220805-git.=20 /* Enable the display of both time and space usage. */ set_per_command_time (1); set_per_command_space (1); break; But they do not appear in the document provided by "-h". It may prevent users from using the relevant function. --=20 You are receiving this mail because: You are on the CC list for the bug.=