]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-ia64-info-frame-fix-20050725.patch
- obsolete file
[packages/gdb.git] / gdb-6.3-ia64-info-frame-fix-20050725.patch
1 2005-07-25  Jeff Johnstno  <jjohnstn@redhat.com>
2
3         * libunwind-frame.c (libunwind_frame_prev_register): Check valuep
4         is not NULL before copying cursor address into it.
5         
6 testsuite:
7 2005-07-25  Jeff Johnstno  <jjohnstn@redhat.com>
8
9         * gdb.arch/ia64-sigtramp.exp: New test.
10         * gdb.arch/ia64-sigtramp.c: Ditto.
11
12 2008-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
13
14         Port to GDB-6.8pre.  (Only the testcase has remained.)
15
16 --- gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.c.fix  2005-07-25 16:42:46.000000000 -0400
17 +++ gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.c      2005-07-25 16:42:08.000000000 -0400
18 @@ -0,0 +1,23 @@
19 +#include <stdio.h>
20 +#include <signal.h>
21 +
22 +int *l;
23 +
24 +void x (int sig)
25 +{
26 +  printf ("in signal handler for signal %d\n", sig);
27 +}
28 +
29 +int main()
30 +{
31 +  int k;
32 +
33 +  signal (SIGSEGV, &x);
34 +
35 +  k = *l;
36 +
37 +  printf ("k is %d\n", k);
38
39 +  return 0;
40 +}
41 +
42 --- gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp.fix        2005-07-25 16:42:50.000000000 -0400
43 +++ gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp    2005-07-25 16:42:01.000000000 -0400
44 @@ -0,0 +1,66 @@
45 +#   Copyright 2005 Free Software Foundation, Inc.
46 +
47 +# This program is free software; you can redistribute it and/or modify
48 +# it under the terms of the GNU General Public License as published by
49 +# the Free Software Foundation; either version 2 of the License, or
50 +# (at your option) any later version.
51 +# 
52 +# This program is distributed in the hope that it will be useful,
53 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
54 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
55 +# GNU General Public License for more details.
56 +# 
57 +# You should have received a copy of the GNU General Public License
58 +# along with this program; if not, write to the Free Software
59 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
60 +
61 +# Please email any bugs, comments, and/or additions to this file to:
62 +# bug-gdb@prep.ai.mit.edu
63 +
64 +# This file was written by Jeff Johnston (jjohnstn@redhat.com)
65 +
66 +if $tracelevel then {
67 +    strace $tracelevel
68 +}
69 +
70 +#
71 +# test running programs
72 +#
73 +set prms_id 0
74 +set bug_id 0
75 +
76 +if ![istarget "ia64-*-*"] then {
77 +    return
78 +}
79 +
80 +set testfile "ia64-sigtramp"
81 +set srcfile ${testfile}.c
82 +set binfile ${objdir}/${subdir}/${testfile}
83 +
84 +if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
85 +    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
86 +}
87 +
88 +if [get_compiler_info ${binfile}] {
89 +    return -1
90 +}
91 +
92 +gdb_exit
93 +gdb_start
94 +gdb_reinitialize_dir $srcdir/$subdir
95 +gdb_load ${binfile}
96 +
97 +if ![runto_main] then {
98 +    fail "Can't run to main"
99 +    return 0
100 +}
101 +
102 +gdb_test "handle SIGSEGV" "SIGSEGV.*Yes.*Yes.*Yes.*Segmentation fault"
103 +gdb_test "next" "" "first next"
104 +gdb_test "next" "Program received signal SIGSEGV.*" "getting SIGSEGV"
105 +gdb_breakpoint "x"
106 +gdb_test "continue" "Breakpoint.*x.*" "continue to x"
107 +
108 +gdb_test "f 1" ".*signal handler called.*" "frame 1"
109 +gdb_test "info frame" "Stack level 1.*p63 at .*" "info sigtramp frame"
110
This page took 0.04318 seconds and 3 git commands to generate.