| OLD | NEW |
| 1 /* Target-dependent code for OpenBSD/i386. | 1 /* Target-dependent code for OpenBSD/i386. |
| 2 | 2 |
| 3 Copyright (C) 1988-1989, 1991-1992, 1994, 1996, 2000-2012 Free | 3 Copyright (C) 1988-1989, 1991-1992, 1994, 1996, 2000-2012 Free |
| 4 Software Foundation, Inc. | 4 Software Foundation, Inc. |
| 5 | 5 |
| 6 This file is part of GDB. | 6 This file is part of GDB. |
| 7 | 7 |
| 8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
| 9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
| 10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 /* The call sequence invoking sigreturn(2). */ | 74 /* The call sequence invoking sigreturn(2). */ |
| 75 const gdb_byte sigreturn[] = | 75 const gdb_byte sigreturn[] = |
| 76 { | 76 { |
| 77 0xb8, | 77 0xb8, |
| 78 0x67, 0x00, 0x00, 0x00, /* movl $SYS_sigreturn, %eax */ | 78 0x67, 0x00, 0x00, 0x00, /* movl $SYS_sigreturn, %eax */ |
| 79 0xcd, 0x80 /* int $0x80 */ | 79 0xcd, 0x80 /* int $0x80 */ |
| 80 }; | 80 }; |
| 81 size_t buflen = sizeof sigreturn; | 81 size_t buflen = sizeof sigreturn; |
| 82 const int *offset; | 82 const int *offset; |
| 83 gdb_byte *buf; | 83 gdb_byte *buf; |
| 84 char *name; | 84 const char *name; |
| 85 | 85 |
| 86 /* If the function has a valid symbol name, it isn't a | 86 /* If the function has a valid symbol name, it isn't a |
| 87 trampoline. */ | 87 trampoline. */ |
| 88 find_pc_partial_function (pc, &name, NULL, NULL); | 88 find_pc_partial_function (pc, &name, NULL, NULL); |
| 89 if (name != NULL) | 89 if (name != NULL) |
| 90 return 0; | 90 return 0; |
| 91 | 91 |
| 92 /* If the function lives in a valid section (even without a starting | 92 /* If the function lives in a valid section (even without a starting |
| 93 point) it isn't a trampoline. */ | 93 point) it isn't a trampoline. */ |
| 94 if (find_pc_section (pc) != NULL) | 94 if (find_pc_section (pc) != NULL) |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 14 * 4, /* %cs */ | 338 14 * 4, /* %cs */ |
| 339 -1, /* %ss */ | 339 -1, /* %ss */ |
| 340 3 * 4, /* %ds */ | 340 3 * 4, /* %ds */ |
| 341 2 * 4, /* %es */ | 341 2 * 4, /* %es */ |
| 342 0 * 4, /* %fs */ | 342 0 * 4, /* %fs */ |
| 343 1 * 4 /* %gs */ | 343 1 * 4 /* %gs */ |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 static struct trad_frame_cache * | 346 static struct trad_frame_cache * |
| 347 i386obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) | 347 i386obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) |
error: old chunk mismatch |
None
| OLD | NEW |