[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/6] ddb: use db_thread_stat to format the flags
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 3/6] ddb: use db_thread_stat to format the flags |
Date: |
Wed, 11 Jun 2014 09:47:58 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 09 Jun 2014 18:38:32 +0200, a écrit :
> * ddb/db_print.c (db_print_thread): Use db_thread_stat to format the
> flags.
Ack.
> ---
> ddb/db_print.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/ddb/db_print.c b/ddb/db_print.c
> index 1cbff64..e711ab6 100644
> --- a/ddb/db_print.c
> +++ b/ddb/db_print.c
> @@ -194,12 +194,8 @@ db_print_thread(
> 2*sizeof(vm_offset_t), thread);
> else
> db_printf("(%0*X) ", 2*sizeof(vm_offset_t), thread);
> - db_printf("%c%c%c%c%c",
> - (thread->state & TH_RUN) ? 'R' : ' ',
> - (thread->state & TH_WAIT) ? 'W' : ' ',
> - (thread->state & TH_SUSP) ? 'S' : ' ',
> - (thread->state & TH_UNINT)? 'N' : ' ',
> - db_thread_fp_used(thread) ? 'F' : ' ');
> + char status[8];
> + db_printf("%s", db_thread_stat(thread, status));
> if (thread->state & TH_SWAPPED) {
> if (thread->swap_func) {
> db_printf("(");
> --
> 2.0.0
>
>
--
Samuel
"How should I know if it works? That's what beta testers are for. I only
coded it."
(Attributed to Linus Torvalds, somewhere in a posting)
- [PATCH 1/6] kern: set the name of the kernel task to 'gnumach', Justus Winter, 2014/06/09
- [PATCH 2/6] ddb: print task names if available, Justus Winter, 2014/06/09
- [PATCH 3/6] ddb: use db_thread_stat to format the flags, Justus Winter, 2014/06/09
- Re: [PATCH 3/6] ddb: use db_thread_stat to format the flags,
Samuel Thibault <=
- [PATCH 4/6] i386: reformat the key map, Justus Winter, 2014/06/09
- [PATCH 5/6] i386: remap some keys, Justus Winter, 2014/06/09
- [PATCH 6/6] doc: explain the floating point flag in kdb output, Justus Winter, 2014/06/09
- Re: [PATCH 1/6] kern: set the name of the kernel task to 'gnumach', Samuel Thibault, 2014/06/11