Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] gdbserver regcache fetch all regs
@ 2009-06-17  1:30 Aleksandar Ristovski
  2009-06-19 15:35 ` Doug Evans
  0 siblings, 1 reply; 7+ messages in thread
From: Aleksandar Ristovski @ 2009-06-17  1:30 UTC (permalink / raw)
  To: gdb-patches

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

Hello,

I believe this is a bug in gdbserver/regcache.c

Current code fetches regno 0 and marks regcache valid. I 
believe correct should be: fetch all regs, and mark regache 
valid.

Thanks,

-- 
Aleksandar Ristovski
QNX Software Systems


ChangeLog:


* regcache.c (get_regcache): Fetch all registers instead of
regno 0 only.

[-- Attachment #2: gdbserver-regcache.c-fetchallregs-20090616.diff --]
[-- Type: text/x-patch, Size: 556 bytes --]

Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/regcache.c,v
retrieving revision 1.19
diff -u -p -r1.19 regcache.c
--- regcache.c	22 Mar 2009 23:57:10 -0000	1.19
+++ regcache.c	17 Jun 2009 01:21:03 -0000
@@ -53,7 +53,7 @@ get_regcache (struct thread_info *inf, i
   /* FIXME - fetch registers for INF */
   if (fetch && regcache->registers_valid == 0)
     {
-      fetch_inferior_registers (0);
+      fetch_inferior_registers (-1);
       regcache->registers_valid = 1;
     }
 

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

end of thread, other threads:[~2009-06-22 19:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17  1:30 [patch] gdbserver regcache fetch all regs Aleksandar Ristovski
2009-06-19 15:35 ` Doug Evans
2009-06-19 15:52   ` Aleksandar Ristovski
2009-06-19 15:55   ` Daniel Jacobowitz
2009-06-19 16:09     ` Aleksandar Ristovski
2009-06-20 16:10       ` Pedro Alves
2009-06-22 19:35         ` Aleksandar Ristovski

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