~fboudra/qemu-linaro/new-upstream-release-1.2.0-2012.09-0ubuntu1

« back to all changes in this revision

Viewing changes to gdbstub.h

  • Committer: Fathi Boudra
  • Author(s): Fathi Boudra
  • Date: 2012-08-21 06:47:11 UTC
  • mfrom: (0.1.16)
  • Revision ID: fathi.boudra@linaro.org-20120821064711-7yxmubp2v8a44xce
Tags: 1.1.50-2012.08-0ubuntu1
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control: 
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#define GDB_WATCHPOINT_ACCESS    4
12
12
 
13
13
#ifdef NEED_CPU_H
14
 
typedef void (*gdb_syscall_complete_cb)(CPUState *env,
 
14
typedef void (*gdb_syscall_complete_cb)(CPUArchState *env,
15
15
                                        target_ulong ret, target_ulong err);
16
16
 
17
17
void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...);
18
18
int use_gdb_syscalls(void);
19
 
void gdb_set_stop_cpu(CPUState *env);
20
 
void gdb_exit(CPUState *, int);
 
19
void gdb_set_stop_cpu(CPUArchState *env);
 
20
void gdb_exit(CPUArchState *, int);
21
21
#ifdef CONFIG_USER_ONLY
22
22
int gdb_queuesig (void);
23
 
int gdb_handlesig (CPUState *, int);
24
 
void gdb_signalled(CPUState *, int);
25
 
void gdbserver_fork(CPUState *);
 
23
int gdb_handlesig (CPUArchState *, int);
 
24
void gdb_signalled(CPUArchState *, int);
 
25
void gdbserver_fork(CPUArchState *);
26
26
#endif
27
27
/* Get or set a register.  Returns the size of the register.  */
28
 
typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
29
 
void gdb_register_coprocessor(CPUState *env,
 
28
typedef int (*gdb_reg_cb)(CPUArchState *env, uint8_t *buf, int reg);
 
29
void gdb_register_coprocessor(CPUArchState *env,
30
30
                              gdb_reg_cb get_reg, gdb_reg_cb set_reg,
31
31
                              int num_regs, const char *xml, int g_pos);
32
32
 
 
33
static inline int cpu_index(CPUArchState *env)
 
34
{
 
35
#if defined(CONFIG_USER_ONLY) && defined(CONFIG_USE_NPTL)
 
36
    return env->host_tid;
 
37
#else
 
38
    return env->cpu_index + 1;
 
39
#endif
 
40
}
 
41
 
33
42
#endif
34
43
 
35
44
#ifdef CONFIG_USER_ONLY