Re: [patch] Allow gdbserver to dynamically lookup libthread_db.so.1

Pedro Alves
2009-10-13T13:53:32Z

On Monday 05 October 2009 04:03:27, Pedro Alves wrote:
> > and B) contradicts current usage (before the patch):
> >
> > grep current_process thread-db.c
> > ? struct process_info_private *proc = current_process()->private;
> > ? struct process_info_private *proc = current_process()->private;
> > ? struct process_info_private *proc = current_process()->private;
> > ? struct process_info *proc = current_process ();
>
> Probably a typo followed by copy-paste, and I'm probably to blame
> for those. ?It there are any after your patch goes in, I'll take
> care of fixing them.

'grep -rn "[a-zA-Z0-9_]()->" *' found only these left.

Applied.

--
Pedro Alves

2009-10-13 Pedro Alves <pedro@codesourcery.com>

gdb/
* infcall.c (call_function_by_hand): Formatting.

2009-10-13 Pedro Alves <pedro@codesourcery.com>

gdb/gdbserver/
* proc-service.c (ps_lgetregs): Formatting.

---
gdb/gdbserver/proc-service.c | 2 +-
gdb/infcall.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Index: src/gdb/gdbserver/proc-service.c
===================================================================
--- src.orig/gdb/gdbserver/proc-service.c 2009-10-12 12:37:03.000000000 +0100
+++ src/gdb/gdbserver/proc-service.c 2009-10-12 12:37:22.000000000 +0100
@@ -111,7 +111,7 @@ ps_lgetregs (gdb_ps_prochandle_t ph, lwp
current_inferior = reg_inferior;

the_target->fetch_registers (-1);
- gregset_info()->fill_function (gregset);
+ gregset_info ()->fill_function (gregset);

current_inferior = save_inferior;
return PS_OK;
Index: src/gdb/infcall.c
===================================================================
--- src.orig/gdb/infcall.c 2009-10-12 12:37:03.000000000 +0100
+++ src/gdb/infcall.c 2009-10-12 12:37:36.000000000 +0100
@@ -940,7 +940,7 @@ When the function is done executing, GDB
user. */

if (terminate_bp != NULL
- && (inferior_thread()->stop_bpstat->breakpoint_at->address
+ && (inferior_thread ()->stop_bpstat->breakpoint_at->address
== terminate_bp->loc->address))
{
/* We must get back to the frame we were before the