From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52B193833027; Tue, 27 Apr 2021 07:28:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52B193833027 From: "wenyan.xin at windriver dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/27780] not report warning when set a breakpoint at invalid address for arm64 Date: Tue, 27 Apr 2021 07:28:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: wenyan.xin at windriver dot com 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2021 07:28:56 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27780 --- Comment #2 from wenyan.xin at windriver dot com --- in this case, if the function insert_bp_location() in file breakpoint.c ret= urn -1 at line 2747 as following, the Warning: Cannot insert breakpoint 2 can b= een output, and this issue gone. 2724 if (bp_excpt.reason =3D=3D RETURN_ERROR 2725 && (bp_excpt.error =3D=3D GENERIC_ERROR 2726 || bp_excpt.error =3D=3D MEMORY_ERROR) 2727 && bl->loc_type =3D=3D bp_loc_software_breakpoint 2728 && (solib_name_from_address (bl->pspace, bl->address) 2729 || shared_objfile_contains_address_p (bl->pspace, 2730 bl->address))) 2731 { 2732 /* See also: disable_breakpoints_in_shlibs. */ 2733 bl->shlib_disabled =3D 1; 2734 gdb::observers::breakpoint_modified.notify (bl->owner); 2735 if (!*disabled_breaks) 2736 { 2737 fprintf_unfiltered (tmp_error_stream, 2738 "Cannot insert breakpoint %d.\n= ", 2739 bl->owner->number); 2740 fprintf_unfiltered (tmp_error_stream, 2741 "Temporarily disabling shared " 2742 "library breakpoints:\n"); 2743 } 2744 *disabled_breaks =3D 1; 2745 fprintf_unfiltered (tmp_error_stream, 2746 "breakpoint #%d\n", bl->owner->numb= er); 2747 return 0; 2748 } 2749 else thanks very much. --=20 You are receiving this mail because: You are on the CC list for the bug.=