Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc] Remove dead code in gdbtk/generic/gdbtk-stack.c
@ 2007-06-22  7:53 Markus Deuling
  2007-07-01 22:33 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2007-06-22  7:53 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

Hi,

in gdbtk/generic/gdbtk-stack.c is an occurence of macro PC_LOAD_SEGMENT which was deleted a long time
ago. I guess the code inside the if #define/#endif is dead code. This patch removes it. I'm not sure how to 
test it :-)


ChangeLog:

	* gdbtk/generic/gdbtk-stack.c (get_frame_name): Remove dead code
	(PC_LOAD_SEGMENT).

Is this ok to commit?

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com


[-- Attachment #2: diff-PC_LOAD_SEGMENT --]
[-- Type: text/plain, Size: 746 bytes --]

diff -urN src/gdb/gdbtk/generic/gdbtk-stack.c dev/gdb/gdbtk/generic/gdbtk-stack.c
--- src/gdb/gdbtk/generic/gdbtk-stack.c	2007-05-23 05:30:04.000000000 +0200
+++ dev/gdb/gdbtk/generic/gdbtk-stack.c	2007-06-22 09:48:32.000000000 +0200
@@ -601,16 +601,6 @@
 			      DMGL_ANSI);
 #endif
       objv[0] = Tcl_NewStringObj (funname != NULL ? funname : "??", -1);
-#ifdef PC_LOAD_SEGMENT
-      /* If we couldn't print out function name but if can figure out what
-         load segment this pc value is from, at least print out some info
-         about its load segment. */
-      if (!funname)
-	{
-	  Tcl_AppendStringsToObj (objv[0], " from ", PC_LOAD_SEGMENT (fi->pc),
-				  (char *) NULL);
-	}
-#endif
 #ifdef PC_SOLIB
       if (!funname)
 	{

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-02 18:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22  7:53 [rfc] Remove dead code in gdbtk/generic/gdbtk-stack.c Markus Deuling
2007-07-01 22:33 ` Daniel Jacobowitz
2007-07-02 18:37   ` Ulrich Weigand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox