Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] mips-tdep.c: Fix inferior function call breakage
@ 2003-01-23  7:26 Kevin Buettner
  2003-01-23 17:00 ` Daniel Jacobowitz
  2003-01-23 21:00 ` Andrew Cagney
  0 siblings, 2 replies; 11+ messages in thread
From: Kevin Buettner @ 2003-01-23  7:26 UTC (permalink / raw)
  To: gdb-patches

Without the following patch in place, I've found that inferior function
calls are badly broken for the mips linux targets that I've been testing.
(The warning in heuristic_proc_start() is tripped and things degrade quickly
from there...)

Okay?

	* mips-tdep.c (find_proc_desc): Return early if in a dummy frame.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.160
diff -u -p -r1.160 mips-tdep.c
--- mips-tdep.c	19 Jan 2003 04:06:46 -0000	1.160
+++ mips-tdep.c	23 Jan 2003 07:20:26 -0000
@@ -2350,6 +2350,9 @@ find_proc_desc (CORE_ADDR pc, struct fra
   mips_extra_func_info_t proc_desc;
   CORE_ADDR startaddr = 0;
 
+  if (pc_in_dummy_frame (pc))
+    return NULL;
+
   proc_desc = non_heuristic_proc_desc (pc, &startaddr);
 
   if (proc_desc)


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

end of thread, other threads:[~2003-01-28 16:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23  7:26 [RFA] mips-tdep.c: Fix inferior function call breakage Kevin Buettner
2003-01-23 17:00 ` Daniel Jacobowitz
2003-01-23 21:00 ` Andrew Cagney
2003-01-23 22:42   ` Daniel Jacobowitz
2003-01-24  3:55   ` Kevin Buettner
2003-01-27 19:21     ` Andrew Cagney
2003-01-27 19:57       ` Kevin Buettner
2003-01-27 22:59         ` Andrew Cagney
2003-01-27 23:57           ` Kevin Buettner
2003-01-28 13:14             ` Andrew Cagney
2003-01-28 16:32               ` Kevin Buettner

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