This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/18490] New: If the remote target donât return ISA bit in T packet GDB will stop at the wrong line
- From: "ggs334 at 163 dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 05 Jun 2015 07:30:11 +0000
- Subject: [Bug gdb/18490] New: If the remote target donât return ISA bit in T packet GDB will stop at the wrong line
- Auto-submitted: auto-generated
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.