GDB (xrefs)
Loading...
Searching...
No Matches
x86-linux.c
Go to the documentation of this file.
1/* Native-dependent code for GNU/Linux x86 (i386 and x86-64).
2
3 Copyright (C) 1999-2023 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#include "gdbsupport/common-defs.h"
21#include "x86-linux.h"
22#include "x86-linux-dregs.h"
23
24/* Per-thread arch-specific data we want to keep. */
25
26struct arch_lwp_info
27{
28 /* Non-zero if our copy differs from what's recorded in the
29 thread. */
31};
32
33/* See nat/x86-linux.h. */
34
35void
43
44/* See nat/x86-linux.h. */
45
46int
48{
49 struct arch_lwp_info *info = lwp_arch_private_info (lwp);
50
51 /* NULL means either that this is the main thread still going
52 through the shell, or that no watchpoint has been set yet.
53 The debug registers are unchanged in either case. */
54 if (info == NULL)
55 return 0;
56
57 return info->debug_registers_changed;
58}
59
60/* See nat/x86-linux.h. */
61
62void
67
68/* See nat/x86-linux.h. */
69
70void
72{
73 xfree (arch_lwp);
74}
75
76/* See nat/x86-linux.h. */
77
78void
void xfree(void *)
void lwp_set_arch_private_info(struct lwp_info *lwp, struct arch_lwp_info *info)
Definition linux-nat.c:285
struct arch_lwp_info * lwp_arch_private_info(struct lwp_info *lwp)
Definition linux-nat.c:294
int value
Definition py-param.c:79
int debug_registers_changed
Definition x86-linux.c:30
Definition value.h:130
void x86_linux_update_debug_registers(struct lwp_info *lwp)
void x86_linux_new_thread(struct lwp_info *lwp)
Definition x86-linux.c:63
void lwp_set_debug_registers_changed(struct lwp_info *lwp, int value)
Definition x86-linux.c:36
void x86_linux_delete_thread(struct arch_lwp_info *arch_lwp)
Definition x86-linux.c:71
void x86_linux_prepare_to_resume(struct lwp_info *lwp)
Definition x86-linux.c:79
int lwp_debug_registers_changed(struct lwp_info *lwp)
Definition x86-linux.c:47