This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/19461] strange "info thread" behavior in non-stop
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 14 Jan 2016 18:05:28 +0000
- Subject: [Bug threads/19461] strange "info thread" behavior in non-stop
- Auto-submitted: auto-generated
- References: <bug-19461-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19461
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
The backtrace isn't very interesting. It's appended.
If you want an infrun log, I can provide it, though it will be
pretty voluminous I think.
Here's the thread_info for the thread issuing the error:
(gdb) p *$
$3 = {
next = 0x9044d50,
ptid = {
pid = 11834,
lwp = 11834,
tid = 0
},
num = 83,
name = 0x0,
executing = 1,
resumed = 1,
state = THREAD_STOPPED,
refcount = 0,
control = {
step_resume_breakpoint = 0x0,
exception_resume_breakpoint = 0x0,
single_step_breakpoints = 0x0,
step_range_start = 0,
step_range_end = 0,
step_start_function = 0x0,
may_range_step = 0,
step_frame_id = {
stack_addr = 0,
code_addr = 0,
special_addr = 0,
stack_status = FID_STACK_INVALID,
code_addr_p = 0,
special_addr_p = 0,
artificial_depth = 0
},
step_stack_frame_id = {
stack_addr = 0,
code_addr = 0,
special_addr = 0,
stack_status = FID_STACK_INVALID,
code_addr_p = 0,
special_addr_p = 0,
artificial_depth = 0
},
trap_expected = 0,
proceed_to_finish = 0,
in_infcall = 0,
step_over_calls = STEP_OVER_NONE,
stop_step = 0,
stop_bpstat = 0x0,
command_interp = 0x0,
stepping_command = 0
},
suspend = {
stop_signal = GDB_SIGNAL_0,
stop_reason = TARGET_STOPPED_BY_NO_REASON,
waitstatus = {
kind = TARGET_WAITKIND_IGNORE,
value = {
integer = 0,
sig = GDB_SIGNAL_0,
related_pid = {
pid = 0,
lwp = 0,
tid = 0
},
execd_pathname = 0x0,
syscall_number = 0
}
},
waitstatus_pending_p = 0,
stop_pc = 0
},
current_line = 0,
current_symtab = 0x0,
prev_pc = 140737351976166,
stepped_breakpoint = 0,
stepping_over_breakpoint = 0,
stepping_over_watchpoint = 0,
step_after_step_resume_breakpoint = 0,
thread_fsm = 0x0,
pending_follow = {
kind = TARGET_WAITKIND_SPURIOUS,
value = {
integer = 0,
sig = GDB_SIGNAL_0,
related_pid = {
pid = 0,
lwp = 0,
tid = 0
},
execd_pathname = 0x0,
syscall_number = 0
}
},
stop_requested = 0,
initiating_frame = {
stack_addr = 0,
code_addr = 0,
special_addr = 0,
stack_status = FID_STACK_INVALID,
code_addr_p = 0,
special_addr_p = 0,
artificial_depth = 0
},
priv = 0xf9734a0,
private_dtor = 0x0,
btrace = {
target = 0x0,
data = {
format = BTRACE_FORMAT_NONE,
variant = {
bts = {
blocks = 0x0
},
pt = {
config = {
cpu = {
vendor = CV_UNKNOWN,
family = 0,
model = 0 '\000',
stepping = 0 '\000'
}
},
data = 0x0,
size = 0
}
}
},
begin = 0x0,
end = 0x0,
level = 0,
ngaps = 0,
flags = 0,
insn_history = 0x0,
call_history = 0x0,
replay = 0x0,
stop_reason = TARGET_STOPPED_BY_NO_REASON,
maint = {
variant = {
bts = {
packet_history = {
begin = 0,
end = 0
}
}
}
}
},
stack_temporaries_enabled = 0,
stack_temporaries = 0x0,
step_over_prev = 0x0,
step_over_next = 0x0
}
(gdb) bt
#0 error (fmt=0x94160a "Target is executing.") at
../../binutils-gdb/gdb/common/errors.c:42
#1 0x0000000000754ff1 in get_current_frame () at
../../binutils-gdb/gdb/frame.c:1482
#2 0x000000000075515c in get_selected_frame (message=0x0) at
../../binutils-gdb/gdb/frame.c:1544
#3 0x0000000000627203 in print_thread_info (uiout=0x2c0c050,
requested_threads=0x0, pid=-1) at ../../binutils-gdb/gdb/thread.c:1264
#4 0x0000000000627469 in info_threads_command (arg=0x0, from_tty=1) at
../../binutils-gdb/gdb/thread.c:1321
#5 0x00000000005038dc in do_cfunc (c=0x2a7af50, args=0x0, from_tty=1) at
../../binutils-gdb/gdb/cli/cli-decode.c:105
#6 0x0000000000506879 in cmd_func (cmd=0x2a7af50, args=0x0, from_tty=1) at
../../binutils-gdb/gdb/cli/cli-decode.c:1885
#7 0x000000000074942a in execute_command (p=0x29c81ab "", from_tty=1) at
../../binutils-gdb/gdb/top.c:475
#8 0x0000000000635f18 in command_handler (command=0x29c81a0 "info thread") at
../../binutils-gdb/gdb/event-top.c:491
#9 0x00000000006364d1 in command_line_handler (rl=0x31a98d0 "\250\213
M\"\177") at ../../binutils-gdb/gdb/event-top.c:690
#10 0x00000000007b2463 in rl_callback_read_char () at
../../binutils-gdb/readline/callback.c:220
#11 0x00000000006359e0 in rl_callback_read_char_wrapper (client_data=0x0) at
../../binutils-gdb/gdb/event-top.c:171
#12 0x0000000000635e45 in stdin_event_handler (error=0, client_data=0x0) at
../../binutils-gdb/gdb/event-top.c:430
#13 0x0000000000634a70 in handle_file_event (file_ptr=0x1124c4b0, ready_mask=1)
at ../../binutils-gdb/gdb/event-loop.c:708
#14 0x0000000000635013 in gdb_wait_for_event (block=1) at
../../binutils-gdb/gdb/event-loop.c:834
#15 0x0000000000633f6d in gdb_do_one_event () at
../../binutils-gdb/gdb/event-loop.c:323
#16 0x0000000000633faf in start_event_loop () at
../../binutils-gdb/gdb/event-loop.c:347
#17 0x0000000000635a13 in cli_command_loop (data=0x0) at
../../binutils-gdb/gdb/event-top.c:186
#18 0x000000000062c377 in current_interp_command_loop () at
../../binutils-gdb/gdb/interps.c:317
#19 0x000000000062d55b in captured_command_loop (data=0x0) at
../../binutils-gdb/gdb/main.c:318
#20 0x0000000000629182 in catch_errors (func=0x62d540 <captured_command_loop>,
func_args=0x0, errstring=0x8f9811 "", mask=RETURN_MASK_ALL) at
../../binutils-gdb/gdb/exceptions.c:240
#21 0x000000000062ea4a in captured_main (data=0x7ffd247931c0) at
../../binutils-gdb/gdb/main.c:1157
#22 0x0000000000629182 in catch_errors (func=0x62d972 <captured_main>,
func_args=0x7ffd247931c0, errstring=0x8f9811 "", mask=RETURN_MASK_ALL) at
../../binutils-gdb/gdb/exceptions.c:240
#23 0x000000000062ea73 in gdb_main (args=0x7ffd247931c0) at
../../binutils-gdb/gdb/main.c:1165
#24 0x000000000046479d in main (argc=6, argv=0x7ffd247932c8) at
../../binutils-gdb/gdb/gdb.c:32
--
You are receiving this mail because:
You are on the CC list for the bug.