From f0fce3b80b0f045dc926074f3378c7418e64757e Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Sat, 11 Apr 1998 05:43:33 +0000 Subject: Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) Update support for x86 Solaris 2. * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration files for x86 Solaris 2. * config/i386/i386sol2.mt, i386sol2.mh: Use them. * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract carry flag from a given regset. (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name is a SunPro transformed name. * i386-tdep.c (sunpro_static_transform_name): New function to extract the source name from a SunPro transformed name. * inferior.h (procfs_first_available, procfs_get_pid_fd): Add prototypes. * infrun.c (wait_for_inferior): Handle breakpoint hit in signal handler without intervening stop in sigtramp. * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY instead of direct access to the status register. (procfs_get_pid_fd): New function, returns procfs fd for a given pid. * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given lwpid. (sol_find_new_threads): Handle failed libthread_db initialization gracefully. * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME to check for a SunPro transformed symbol name. --- gdb/stabsread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/stabsread.c') diff --git a/gdb/stabsread.c b/gdb/stabsread.c index ac848b928fe..bfbcc016c38 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1878,7 +1878,7 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_CLASS (sym) = LOC_STATIC; SYMBOL_VALUE_ADDRESS (sym) = valu; #ifdef STATIC_TRANSFORM_NAME - if (SYMBOL_NAME (sym)[0] == '$') + if (IS_STATIC_TRANSFORM_NAME (SYMBOL_NAME (sym))) { struct minimal_symbol *msym; msym = lookup_minimal_symbol (SYMBOL_NAME (sym), NULL, objfile); @@ -2006,7 +2006,7 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_CLASS (sym) = LOC_STATIC; SYMBOL_VALUE_ADDRESS (sym) = valu; #ifdef STATIC_TRANSFORM_NAME - if (SYMBOL_NAME (sym)[0] == '$') + if (IS_STATIC_TRANSFORM_NAME (SYMBOL_NAME (sym))) { struct minimal_symbol *msym; msym = lookup_minimal_symbol (SYMBOL_NAME (sym), NULL, objfile); -- cgit v1.2.1