Deleted Added
sdiff udiff text old ( 137993 ) new ( 142151 )
full compact
1/*
2 * Copyright (c) 2004 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/main.c 137993 2004-11-22 16:08:19Z joerg $");
29
30#include <sys/param.h>
31#include <sys/stat.h>
32#include <sys/types.h>
33#include <sys/ioctl.h>
34#include <sys/resource.h>
35#include <sys/select.h>
36#include <sys/time.h>

--- 14 unchanged lines hidden (view full) ---

51#include <defs.h>
52#include <frame.h>
53#include <inferior.h>
54#include <interps.h>
55#include <cli-out.h>
56#include <main.h>
57#include <target.h>
58#include <top.h>
59
60extern void (*init_ui_hook)(char *);
61
62extern void symbol_file_add_main (char *args, int from_tty);
63
64#include "kgdb.h"
65
66kvm_t *kvm;

--- 94 unchanged lines hidden (view full) ---

161
162out:
163#endif
164 if (kgdb_new_objfile_chain != NULL)
165 kgdb_new_objfile_chain(objfile);
166}
167
168static void
169kgdb_interp_command_loop(void *data)
170{
171 static int once = 0;
172
173 if (!once) {
174 once = 1;
175 symbol_file_add_main (kernel, 0);
176 if (remote)
177 push_remote_target (remote, 0);
178 else
179 kgdb_target();
180 print_stack_frame(get_current_frame(), -1, 0);
181 }
182 command_loop();
183}
184
185static void
186kgdb_init(char *argv0 __unused)
187{
188 static struct interp_procs procs = {

--- 180 unchanged lines hidden ---