public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18490] New: If the remote target don’t return ISA bit in T packet GDB will stop at the wrong line
@ 2015-06-05 7:30 ggs334 at 163 dot com
0 siblings, 0 replies; only message in thread
From: ggs334 at 163 dot com @ 2015-06-05 7:30 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18490
Bug ID: 18490
Summary: If the remote target don’t return ISA bit in T packet
GDB will stop at the wrong line
Product: gdb
Version: 7.9
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: ggs334 at 163 dot com
Target Milestone: ---
I found that this commit will cause some issue on embed system:
====================================
3e29f34a4eef29f5b159749ccb1efb8867b2e651
MIPS: Keep the ISA bit in compressed code addresses
====================================
If the remote target don’t return mode bit in T packet
GDB will stop at the wrong line:
Sending packet: $vCont;c#a8...Packet received: T0525:80001152;1d:800fffa0;
Sending packet: $qL1200000000000000000#50...Packet received:
Sending packet: $z0,80001152,2#c5...Packet received: OK
Sending packet: $z0,800011ba,2#21...Packet received: OK
Sending packet: $z0,8000127e,2#fb...Packet received: OK
fun () at
/home/guosheng_gao/repo/debugger/gdb-7.9/gdb/testsuite/gdb.base/call-sc.c:40
40 {
(gdb) FAIL: gdb.base/call-sc.exp: advance to fun for return; return call-sc-tc
p/c L
Sending packet: $m8000347c,1#93...Packet received: 5a
$3 = 90 'Z'
(gdb) PASS: gdb.base/call-sc.exp: zed L for return; return call-sc-tc
return foo
in fact we must stop at line 41
Dump of assembler code for function fun:
40 {
0x8000114d <+11>: addiu sp,-8
0x8000114f <+1>: sw s1,4(sp)
0x80001151 <+3>: move s1,sp
41 return foo;
0x80001153 <+5>: lw v0,0x8000116c <fun+31>
0x80001155 <+7>: move t8,v0
0x80001157 <+9>: move v0,t8
0x80001159 <+11>: lb v0,0(v0)
0x8000115b <+13>: move t8,v0
0x8000115d <+15>: move v0,t8
0x8000115f <+17>: move t8,v0
42 }
0x80001161 <+19>: move v0,t8
0x80001163 <+21>: move sp,s1
0x80001165 <+23>: lw s1,4(sp)
0x80001167 <+25>: addiu sp,8
0x80001169 <+27>: jr ra
0x8000116b <+29>: nop
0x8000116d <+31>: lb s0,0(s0)
0x8000116f <+33>: sll a0,v1,4
End of assembler dump.
--
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18193-listarch-gdb-prs=sources.redhat.com@sourceware.org Fri Jun 05 11:27:00 2015
Return-Path: <gdb-prs-return-18193-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 47475 invoked by alias); 5 Jun 2015 11:27:00 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 47434 invoked by uid 48); 5 Jun 2015 11:26:58 -0000
From: "gbenson at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/17626] attach, detach, attach did not work
Date: Fri, 05 Jun 2015 11:27:00 -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: HEAD
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gbenson at redhat dot com
X-Bugzilla-Status: REOPENED
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: cc
Message-ID: <bug-17626-4717-Wyzu8jXTAq@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17626-4717@http.sourceware.org/bugzilla/>
References: <bug-17626-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q2/txt/msg00387.txt.bz2
Content-length: 540
https://sourceware.org/bugzilla/show_bug.cgi?id\x17626
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gbenson at redhat dot com
--- Comment #4 from Gary Benson <gbenson at redhat dot com> ---
Version 2 patch here:
https://sourceware.org/ml/gdb-patches/2015-06/msg00080.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-05 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05 7:30 [Bug gdb/18490] New: If the remote target don’t return ISA bit in T packet GDB will stop at the wrong line ggs334 at 163 dot com
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).