]>
Commit | Line | Data |
---|---|---|
ae7467b1 AB |
1 | # |
2 | # The main gdbstub still relies on per-build definitions of various | |
3 | # types. The bits pushed to softmmu/user.c try to use guest agnostic | |
4 | # types such as hwaddr. | |
5 | # | |
6 | ||
61b2e136 AB |
7 | # We need to build the core gdb code via a library to be able to tweak |
8 | # cflags so: | |
9 | ||
10 | gdb_user_ss = ss.source_set() | |
de6cd759 | 11 | gdb_system_ss = ss.source_set() |
61b2e136 AB |
12 | |
13 | # We build two versions of gdbstub, one for each mode | |
14 | gdb_user_ss.add(files('gdbstub.c', 'user.c')) | |
de6cd759 | 15 | gdb_system_ss.add(files('gdbstub.c', 'softmmu.c')) |
61b2e136 AB |
16 | |
17 | gdb_user_ss = gdb_user_ss.apply(config_host, strict: false) | |
de6cd759 | 18 | gdb_system_ss = gdb_system_ss.apply(config_host, strict: false) |
61b2e136 AB |
19 | |
20 | libgdb_user = static_library('gdb_user', | |
21 | gdb_user_ss.sources() + genh, | |
22 | name_suffix: 'fa', | |
b846ad62 PMD |
23 | c_args: '-DCONFIG_USER_ONLY', |
24 | build_by_default: have_user) | |
61b2e136 AB |
25 | |
26 | libgdb_softmmu = static_library('gdb_softmmu', | |
de6cd759 | 27 | gdb_system_ss.sources() + genh, |
b846ad62 PMD |
28 | name_suffix: 'fa', |
29 | build_by_default: have_system) | |
61b2e136 AB |
30 | |
31 | gdb_user = declare_dependency(link_whole: libgdb_user) | |
32 | user_ss.add(gdb_user) | |
33 | gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu) | |
de6cd759 | 34 | system_ss.add(gdb_softmmu) |
c566080c | 35 | |
2d3d2517 | 36 | common_ss.add(files('syscalls.c')) |
c566080c | 37 | |
d96bf49b AB |
38 | # The user-target is specialised by the guest |
39 | specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c')) |