meson.build (cab35c73be9d579db105ef73fa8a60728a890098) meson.build (1f2146f7ca0f04afc62c4a170ec78bd030f3e72f)
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
7# We need to build the core gdb code via a library to be able to tweak
8# cflags so:
9
10gdb_user_ss = ss.source_set()
11gdb_system_ss = ss.source_set()
12
13# We build two versions of gdbstub, one for each mode
14gdb_user_ss.add(files('gdbstub.c', 'user.c'))
15gdb_system_ss.add(files('gdbstub.c', 'softmmu.c'))
16
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
7# We need to build the core gdb code via a library to be able to tweak
8# cflags so:
9
10gdb_user_ss = ss.source_set()
11gdb_system_ss = ss.source_set()
12
13# We build two versions of gdbstub, one for each mode
14gdb_user_ss.add(files('gdbstub.c', 'user.c'))
15gdb_system_ss.add(files('gdbstub.c', 'softmmu.c'))
16
17gdb_user_ss = gdb_user_ss.apply(config_host, strict: false)
18gdb_system_ss = gdb_system_ss.apply(config_host, strict: false)
17gdb_user_ss = gdb_user_ss.apply(config_targetos, strict: false)
18gdb_system_ss = gdb_system_ss.apply(config_targetos, strict: false)
19
20libgdb_user = static_library('gdb_user',
21 gdb_user_ss.sources() + genh,
22 name_suffix: 'fa',
23 c_args: '-DCONFIG_USER_ONLY',
24 build_by_default: have_user)
25
26libgdb_softmmu = static_library('gdb_softmmu',

--- 13 unchanged lines hidden ---
19
20libgdb_user = static_library('gdb_user',
21 gdb_user_ss.sources() + genh,
22 name_suffix: 'fa',
23 c_args: '-DCONFIG_USER_ONLY',
24 build_by_default: have_user)
25
26libgdb_softmmu = static_library('gdb_softmmu',

--- 13 unchanged lines hidden ---