FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 04-12-2012, 09:02 PM
Petr Tesarik
 
Default bt -g not working since 5.1.9?

Hi,

I noticed that the "-g" option to "bt" seems to have no effect in recent crash
versions. And indeed, 5.1.8-to-5.1.9.patch contains the following chunk:

--- crash-5.1.8/kernel.c 2011-10-17 14:06:31.000000000 -0400
+++ crash-5.1.9/kernel.c 2011-09-28 15:31:00.000000000 -0400
@@ -1876,10 +1896,10 @@ cmd_bt(void)
break;

case 'g':
-#if defined(GDB_6_0) || defined(GDB_6_1) || defined(GDB_7_0)
- bt->flags |= BT_THREAD_GROUP;
-#else
+#ifdef GDB_5_3
bt->flags |= BT_USE_GDB;
+else
+ bt->flags |= BT_THREAD_GROUP;
#endif
break;

Note that the hash sign is missing, so the pre-processor only leaves the
"break" statement... The following patch seems to help.

Signed-off-by: Petr Tesarik <ptesarik@suse.cz>

--- a/kernel.c
+++ b/kernel.c
@@ -1922,7 +1922,7 @@ cmd_bt(void)
case 'g':
#ifdef GDB_5_3
bt->flags |= BT_USE_GDB;
-else
+#else
bt->flags |= BT_THREAD_GROUP;
#endif
break;

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 04-12-2012, 09:25 PM
Dave Anderson
 
Default bt -g not working since 5.1.9?

----- Original Message -----
> Hi,
>
> I noticed that the "-g" option to "bt" seems to have no effect in recent crash
> versions. And indeed, 5.1.8-to-5.1.9.patch contains the following chunk:
>
> --- crash-5.1.8/kernel.c 2011-10-17 14:06:31.000000000 -0400
> +++ crash-5.1.9/kernel.c 2011-09-28 15:31:00.000000000 -0400
> @@ -1876,10 +1896,10 @@ cmd_bt(void)
> break;
>
> case 'g':
> -#if defined(GDB_6_0) || defined(GDB_6_1) || defined(GDB_7_0)
> - bt->flags |= BT_THREAD_GROUP;
> -#else
> +#ifdef GDB_5_3
> bt->flags |= BT_USE_GDB;
> +else
> + bt->flags |= BT_THREAD_GROUP;
> #endif
> break;
>
> Note that the hash sign is missing, so the pre-processor only leaves the
> "break" statement... The following patch seems to help.
>
> Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
>
> --- a/kernel.c
> +++ b/kernel.c
> @@ -1922,7 +1922,7 @@ cmd_bt(void)
> case 'g':
> #ifdef GDB_5_3
> bt->flags |= BT_USE_GDB;
> -else
> +#else
> bt->flags |= BT_THREAD_GROUP;
> #endif
> break;
>

Petr,

Good catch -- queued for crash-6.0.6.

Thanks,
Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 02:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org