View | Details | Raw Unified | Return to bug 9635
Collapse All | Expand All

(-)src.orig/gdb/proc-service.c (-3 / +16 lines)
Lines 25-31 Link Here
25
#include "symtab.h"
25
#include "symtab.h"
26
#include "target.h"
26
#include "target.h"
27
#include "regcache.h"
27
#include "regcache.h"
28
28
#include "objfiles.h"
29
#include "filenames.h"
29
#include "gdb_proc_service.h"
30
#include "gdb_proc_service.h"
30
31
31
#include <sys/procfs.h>
32
#include <sys/procfs.h>
Lines 201-209 ps_pglobal_lookup (gdb_ps_prochandle_t p Link Here
201
		   const char *name, psaddr_t *sym_addr)
202
		   const char *name, psaddr_t *sym_addr)
202
{
203
{
203
  struct minimal_symbol *ms;
204
  struct minimal_symbol *ms;
205
  struct objfile *objfile;
206
207
  ALL_OBJFILES (objfile)
208
    {
209
      const char *base;
210
211
      base = lbasename (objfile->name);
212
      if (filename_cmp (base, obj) == 0)
213
	break;
214
    }
215
216
  if (objfile == NULL)
217
    return PS_NOSYM;
204
218
205
  /* FIXME: kettenis/2000-09-03: What should we do with OBJ?  */
219
  ms = lookup_minimal_symbol (name, NULL, objfile);
206
  ms = lookup_minimal_symbol (name, NULL, NULL);
207
  if (ms == NULL)
220
  if (ms == NULL)
208
    return PS_NOSYM;
221
    return PS_NOSYM;
209
222

Return to bug 9635