From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: gdb-patches@sources.redhat.com
Subject: [rfa/testsuite] gdb1250.exp: Handle pending breakpoint in shared library
Date: Fri, 19 Mar 2004 00:09:00 -0000 [thread overview]
Message-ID: <20040311012236.ABDC44B104@berman.michael-chastain.com> (raw)
Here is another attempt to fix gdb1250.exp so that it works with
the new 'pending breakpoint' feature.
I would like to get this fixed so that I can take it off my list
of regressions for binutils binutils-2_15-branch versus binutils 2.14.
Tested on: native i686-pc-linux-gnu, gcc 2.95.3 3.3.3 HEAD,
binutils 2.14 binutils-2_15-branch HEAD, dwarf-2 stabs+.
I'm not sure that "run" is the right command to issue to start
running the inferior. If it's not the right command, I would be
happy to change it.
Okay to commit?
Michael C
2004-03-10 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/gdb1250.exp: Accommodate a pending breakpoint in
a shared library.
Index: gdb1250.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1250.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 gdb1250.exp
*** gdb1250.exp 15 Jul 2003 16:28:21 -0000 1.1
--- gdb1250.exp 11 Mar 2004 01:17:07 -0000
***************
*** 1,4 ****
! # Copyright 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
--- 1,4 ----
! # Copyright 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
*************** gdb_start
*** 42,51 ****
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
! if ![runto abort] then {
! perror "couldn't run to breakpoint"
! continue
}
# See http://sources.redhat.com/gdb/bugs/1250
#
--- 42,62 ----
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
! # Run on 'abort'. 'abort' is special because gcc knows that it is a
! # no-return function, so gcc does a special optimization in every
! # caller of 'abort'.
!
! set name "break abort"
! gdb_test_multiple "break abort" $name {
! -re "Function \"abort\" not defined\.\r\nMake breakpoint pending on future shared library load\\? \\(y or \\\[n\\\]\\) $" {
! gdb_test "y" "" $name
! }
! -re "Breakpoint $decimal at .*\r\n$gdb_prompt $" {
! pass $name
! }
}
+
+ gdb_test "run" "Breakpoint $decimal.*abort.*" "run to abort"
# See http://sources.redhat.com/gdb/bugs/1250
#
WARNING: multiple messages have this Message-ID
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: gdb-patches@sources.redhat.com
Subject: [rfa/testsuite] gdb1250.exp: Handle pending breakpoint in shared library
Date: Thu, 11 Mar 2004 01:22:00 -0000 [thread overview]
Message-ID: <20040311012236.ABDC44B104@berman.michael-chastain.com> (raw)
Message-ID: <20040311012200.ckk95AL8SeANMgElab2EEE63ON83HqmIVGpt-xh-AlI@z> (raw)
Here is another attempt to fix gdb1250.exp so that it works with
the new 'pending breakpoint' feature.
I would like to get this fixed so that I can take it off my list
of regressions for binutils binutils-2_15-branch versus binutils 2.14.
Tested on: native i686-pc-linux-gnu, gcc 2.95.3 3.3.3 HEAD,
binutils 2.14 binutils-2_15-branch HEAD, dwarf-2 stabs+.
I'm not sure that "run" is the right command to issue to start
running the inferior. If it's not the right command, I would be
happy to change it.
Okay to commit?
Michael C
2004-03-10 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/gdb1250.exp: Accommodate a pending breakpoint in
a shared library.
Index: gdb1250.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1250.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 gdb1250.exp
*** gdb1250.exp 15 Jul 2003 16:28:21 -0000 1.1
--- gdb1250.exp 11 Mar 2004 01:17:07 -0000
***************
*** 1,4 ****
! # Copyright 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
--- 1,4 ----
! # Copyright 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
*************** gdb_start
*** 42,51 ****
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
! if ![runto abort] then {
! perror "couldn't run to breakpoint"
! continue
}
# See http://sources.redhat.com/gdb/bugs/1250
#
--- 42,62 ----
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
! # Run on 'abort'. 'abort' is special because gcc knows that it is a
! # no-return function, so gcc does a special optimization in every
! # caller of 'abort'.
!
! set name "break abort"
! gdb_test_multiple "break abort" $name {
! -re "Function \"abort\" not defined\.\r\nMake breakpoint pending on future shared library load\\? \\(y or \\\[n\\\]\\) $" {
! gdb_test "y" "" $name
! }
! -re "Breakpoint $decimal at .*\r\n$gdb_prompt $" {
! pass $name
! }
}
+
+ gdb_test "run" "Breakpoint $decimal.*abort.*" "run to abort"
# See http://sources.redhat.com/gdb/bugs/1250
#
next reply other threads:[~2004-03-11 1:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-19 0:09 Michael Elizabeth Chastain [this message]
2004-03-11 1:22 ` Michael Elizabeth Chastain
2004-03-11 1:52 ` Daniel Jacobowitz
2004-03-19 0:09 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2004-03-24 18:25 Michael Elizabeth Chastain
2004-03-24 18:42 ` Daniel Jacobowitz
2004-03-11 1:55 Michael Elizabeth Chastain
2004-03-19 0:09 ` Michael Elizabeth Chastain
2004-03-23 23:06 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040311012236.ABDC44B104@berman.michael-chastain.com \
--to=mec.gnu@mindspring.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox