diff options
author | Tom Tromey <tromey@redhat.com> | 2011-11-22 21:25:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-11-22 21:25:19 +0000 |
commit | 36dfb11c8b13be20baf34ea4ba772255c605e0ed (patch) | |
tree | 3ceaaac3e36cd7c63643651e043b533227305d3d /gdb/infrun.c | |
parent | 5bd6aa835706da4799d994bfee65f205ce2d5304 (diff) | |
download | gdb-36dfb11c8b13be20baf34ea4ba772255c605e0ed.zip gdb-36dfb11c8b13be20baf34ea4ba772255c605e0ed.tar.gz gdb-36dfb11c8b13be20baf34ea4ba772255c605e0ed.tar.bz2 |
gdb
PR mi/8444:
* mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
(EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
(EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
* mi/mi-common.c (async_reason_string_lookup): Add new reasons.
* breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
(print_it_catch_syscall, print_it_catch_exec)
(internal_bkpt_print_it): Use ui_out. Emit stop reason.
(bpstat_print): Add 'kind' argument. Handle
TARGET_WAITKIND_LOADED.
* infrun.c (normal_stop): Update for bpstat_print change. Don't
handle TARGET_WAITKIND_LOADED here.
* breakpoint.h (bpstat_print): Update.
gdb/testsuite
* lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd.
Add "use_mi_command" argument.
(mi_run_cmd, mi_run_with_cli): New procs.
* gdb.mi/solib-lib.c: New file.
* gdb.mi/solib-main.c: New file.
* gdb.mi/mi-solib.exp: New file.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document new *stopped
reasons.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 3361926..5a0f1d2 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5971,22 +5971,10 @@ normal_stop (void) int do_frame_printing = 1; struct thread_info *tp = inferior_thread (); - bpstat_ret = bpstat_print (tp->control.stop_bpstat); + bpstat_ret = bpstat_print (tp->control.stop_bpstat, last.kind); switch (bpstat_ret) { case PRINT_UNKNOWN: - /* If we had hit a shared library event breakpoint, - bpstat_print would print out this message. If we hit - an OS-level shared library event, do the same - thing. */ - if (last.kind == TARGET_WAITKIND_LOADED) - { - printf_filtered (_("Stopped due to shared library event\n")); - source_flag = SRC_LINE; /* something bogus */ - do_frame_printing = 0; - break; - } - /* FIXME: cagney/2002-12-01: Given that a frame ID does (or should) carry around the function and does (or should) use that when doing a frame comparison. */ |