public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* break instruction in mips32
@ 2004-08-06 10:01 Monika Chaddha
  2004-08-06 17:15 ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: Monika Chaddha @ 2004-08-06 10:01 UTC (permalink / raw)
  To: gdb

Hi All

As per specification of mips32, 'break' instruction should raise the
Breakpoint Exception but gdb6.0 does not raise any break point
exception.

As my understanding in GDB, Breakpoint implementation is done with the
help of break instruction. Whenever user puts any breakpoint the actual
instruction at that point is replaced by break instruction and the
actual instruction is maintained in other list.

If I use break instruction in user program it does not raise any
exception. Does mips32 not support 'BREAK' instruction in GDB.

Thanks & Regards
Monika

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: break instruction in mips32
  2004-08-06 10:01 break instruction in mips32 Monika Chaddha
@ 2004-08-06 17:15 ` David Daney
  2004-08-09  8:58   ` Monika Chaddha
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2004-08-06 17:15 UTC (permalink / raw)
  To: Monika Chaddha; +Cc: gdb

Monika Chaddha wrote:
> Hi All
> 
> As per specification of mips32, 'break' instruction should raise the
> Breakpoint Exception but gdb6.0 does not raise any break point
> exception.
> 
> As my understanding in GDB, Breakpoint implementation is done with the
> help of break instruction. Whenever user puts any breakpoint the actual
> instruction at that point is replaced by break instruction and the
> actual instruction is maintained in other list.
> 
> If I use break instruction in user program it does not raise any
> exception. Does mips32 not support 'BREAK' instruction in GDB.
> 
> Thanks & Regards
> Monika
> 

I am not sure what problems you are having with break, but recent
official versions of binutils and linux kernel had some "issues" WRT
break and the mips32 target.  I don't know how these effect GDB.

The problem is that "break 7" should be converted to SIGFPE, and other
break codes should result in SIGTRAP.  The problem I mention causes the
break 7 to incorrectly SIGTRAP.

This may be of no help, but I thought I would mention it anyhow.

David Daney.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: break instruction in mips32
  2004-08-06 17:15 ` David Daney
@ 2004-08-09  8:58   ` Monika Chaddha
  0 siblings, 0 replies; 3+ messages in thread
From: Monika Chaddha @ 2004-08-09  8:58 UTC (permalink / raw)
  To: 'David Daney'; +Cc: gdb

Thanks for the reply .I would like to repeat my question.

Can I use break instruction in user program? How GDB will interpret the
difference in break instruction in the user program (asm file) and break
instruction inserted for break points inserted by GDB...

When I use break instruction in my program for mips32 target. It does
not raise break point exception.

Regards
Monika

>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of David Daney
>Sent: Friday, August 06, 2004 10:44 PM
>To: Monika Chaddha
>Cc: gdb@sources.redhat.com
>Subject: Re: break instruction in mips32
>
>Monika Chaddha wrote:
>> Hi All
>>
>> As per specification of mips32, 'break' instruction should raise the
>> Breakpoint Exception but gdb6.0 does not raise any break point
>> exception.
>>
>> As my understanding in GDB, Breakpoint implementation is done with
the
>> help of break instruction. Whenever user puts any breakpoint the
actual
>> instruction at that point is replaced by break instruction and the
>> actual instruction is maintained in other list.
>>
>> If I use break instruction in user program it does not raise any
>> exception. Does mips32 not support 'BREAK' instruction in GDB.
>>
>> Thanks & Regards
>> Monika
>>
>
>I am not sure what problems you are having with break, but recent
>official versions of binutils and linux kernel had some "issues" WRT
>break and the mips32 target.  I don't know how these effect GDB.
>
>The problem is that "break 7" should be converted to SIGFPE, and other
>break codes should result in SIGTRAP.  The problem I mention causes the
>break 7 to incorrectly SIGTRAP.
>
>This may be of no help, but I thought I would mention it anyhow.
>
>David Daney.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-09  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 10:01 break instruction in mips32 Monika Chaddha
2004-08-06 17:15 ` David Daney
2004-08-09  8:58   ` Monika Chaddha

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).