Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* gdb.base/break.exp fix
@ 2001-12-19 12:41 law
  2001-12-19 12:48 ` Fernando Nasser
  0 siblings, 1 reply; 2+ messages in thread
From: law @ 2001-12-19 12:41 UTC (permalink / raw)
  To: gdb-patches


Inferior calls on HP's typically go through some trampoline code (sr4export)
in the inferior before reaching the target function.

These trampolines will show up in a backtrace if we're in a called function.

break.exp knows about these trampolines, but apparently some minor tweaks
have been made to the frame output code when doing a backtrace.  While
most of the code in break.exp was suitably updated, there is one case for
HPs that wasn't updated.

Basically this replaces "$hex in marker2" with
                         ($hex in )?


	* gdb.base/break.exp: Fix HP specific search string when testing
	backtracing in a called function.

Index: break.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v
retrieving revision 1.62
diff -c -3 -p -r1.62 break.exp
*** break.exp	2001/03/26 19:55:23	1.62
--- break.exp	2001/12/19 20:33:24
*************** gdb_expect {
*** 592,598 ****
  #
  send_gdb "bt\n"
  gdb_expect {
!     -re "#0\[ \t\]*$hex in marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_prompt 
$"\
              {pass "backtrace while in called function"}
      -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from 
gdb.*$gdb_prompt $"\
  	    {pass "backtrace while in called function"}
--- 592,598 ----
  #
  send_gdb "bt\n"
  gdb_expect {
!     -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_promp
t $"\
              {pass "backtrace while in called function"}
      -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from 
gdb.*$gdb_prompt $"\
  	    {pass "backtrace while in called function"}





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

* Re: gdb.base/break.exp fix
  2001-12-19 12:41 gdb.base/break.exp fix law
@ 2001-12-19 12:48 ` Fernando Nasser
  0 siblings, 0 replies; 2+ messages in thread
From: Fernando Nasser @ 2001-12-19 12:48 UTC (permalink / raw)
  To: law; +Cc: gdb-patches

This one is clearly omitted in the previous changes.

You can check it in as an obvious fix.

Regards,
Fernando

law@redhat.com wrote:
> 
> Inferior calls on HP's typically go through some trampoline code (sr4export)
> in the inferior before reaching the target function.
> 
> These trampolines will show up in a backtrace if we're in a called function.
> 
> break.exp knows about these trampolines, but apparently some minor tweaks
> have been made to the frame output code when doing a backtrace.  While
> most of the code in break.exp was suitably updated, there is one case for
> HPs that wasn't updated.
> 
> Basically this replaces "$hex in marker2" with
>                          ($hex in )?
> 
>         * gdb.base/break.exp: Fix HP specific search string when testing
>         backtracing in a called function.
> 
> Index: break.exp
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v
> retrieving revision 1.62
> diff -c -3 -p -r1.62 break.exp
> *** break.exp   2001/03/26 19:55:23     1.62
> --- break.exp   2001/12/19 20:33:24
> *************** gdb_expect {
> *** 592,598 ****
>   #
>   send_gdb "bt\n"
>   gdb_expect {
> !     -re "#0\[ \t\]*$hex in marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_prompt
> $"\
>               {pass "backtrace while in called function"}
>       -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from
> gdb.*$gdb_prompt $"\
>             {pass "backtrace while in called function"}
> --- 592,598 ----
>   #
>   send_gdb "bt\n"
>   gdb_expect {
> !     -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_promp
> t $"\
>               {pass "backtrace while in called function"}
>       -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from
> gdb.*$gdb_prompt $"\
>             {pass "backtrace while in called function"}

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


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

end of thread, other threads:[~2001-12-19 20:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 12:41 gdb.base/break.exp fix law
2001-12-19 12:48 ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox