* pa-risc 1.1 and breakpoint
@ 2003-08-05 11:39 Lev Assinovsky
2003-09-03 22:50 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Lev Assinovsky @ 2003-08-05 11:39 UTC (permalink / raw)
To: gdb
Hello all!
Sometimes I need to insert breakpoint right in my gcc program code.
For Solaris x86 I use __asm__( "int $3" );
When I run the program with gdb it stops and I can debug and continue of course.
I tried __asm__( "break 4,8" ) for pa-risc 1.1 but unsuccessfully.
gdb stops but can't continue.
What must be the right instruction sequence for pa-risc 1.1?
Any help will be greatly appreciated!
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pa-risc 1.1 and breakpoint
2003-08-05 11:39 pa-risc 1.1 and breakpoint Lev Assinovsky
@ 2003-09-03 22:50 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2003-09-03 22:50 UTC (permalink / raw)
To: Lev Assinovsky; +Cc: gdb
> Hello all!
> Sometimes I need to insert breakpoint right in my gcc program code.
> For Solaris x86 I use __asm__( "int $3" );
> When I run the program with gdb it stops and I can debug and continue of course.
> I tried __asm__( "break 4,8" ) for pa-risc 1.1 but unsuccessfully.
> gdb stops but can't continue.
>
> What must be the right instruction sequence for pa-risc 1.1?
> Any help will be greatly appreciated!
I don't know that this is supported. However, you could investigate
permenant breakpoints.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: pa-risc 1.1 and breakpoint
@ 2003-09-04 9:13 Lev Assinovsky
0 siblings, 0 replies; 3+ messages in thread
From: Lev Assinovsky @ 2003-09-04 9:13 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
I found how work around.
Instead of "continue" I "jump"
to the line following "break".
Now I have mutch bigger problem!!
gdb doesn't see the shared libraries loaded explicitly!
I need help!!
Thanks,
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909
> -----Original Message-----
> From: Andrew Cagney [mailto:ac131313@redhat.com]
> Sent: Thursday, September 04, 2003 2:51 AM
> To: Lev Assinovsky
> Cc: gdb@sources.redhat.com
> Subject: Re: pa-risc 1.1 and breakpoint
>
>
> > Hello all!
> > Sometimes I need to insert breakpoint right in my gcc
> program code.
> > For Solaris x86 I use __asm__( "int $3" );
> > When I run the program with gdb it stops and I can debug
> and continue of course.
> > I tried __asm__( "break 4,8" ) for pa-risc 1.1 but unsuccessfully.
> > gdb stops but can't continue.
> >
> > What must be the right instruction sequence for pa-risc 1.1?
> > Any help will be greatly appreciated!
>
> I don't know that this is supported. However, you could investigate
> permenant breakpoints.
>
> Andrew
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-04 9:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05 11:39 pa-risc 1.1 and breakpoint Lev Assinovsky
2003-09-03 22:50 ` Andrew Cagney
2003-09-04 9:13 Lev Assinovsky
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).