aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>2001-02-10 12:01:11 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>2001-02-10 12:01:11 +0000
commita8079a9b4cb31cbff90e4c6aba803dc7e9a1c2d0 (patch)
treee316a773ab921de4faafcb5596c58c189171c826 /gdb/config
parent4b2e486790b383f1c11a60c97deb2c23456d083a (diff)
downloadfsf-binutils-gdb-a8079a9b4cb31cbff90e4c6aba803dc7e9a1c2d0.zip
fsf-binutils-gdb-a8079a9b4cb31cbff90e4c6aba803dc7e9a1c2d0.tar.gz
fsf-binutils-gdb-a8079a9b4cb31cbff90e4c6aba803dc7e9a1c2d0.tar.bz2
Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
* xcoffsolib.c (xcoff_solib_address): Renamed from pc_load_segment_name. Return NULL if address is not in a shared library. Cleanup shared library name construction, using xasprintf. Format shared library member names consistent with format in exec.c. (solib_info): Format shared library member names consistent with format in exec.c. * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB, using xcoff_solib_address for PC_SOLIB definition. * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer needed.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/rs6000/nm-rs6000.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/config/rs6000/nm-rs6000.h b/gdb/config/rs6000/nm-rs6000.h
index d405aec..573723a 100644
--- a/gdb/config/rs6000/nm-rs6000.h
+++ b/gdb/config/rs6000/nm-rs6000.h
@@ -1,5 +1,6 @@
/* IBM RS/6000 native-dependent macros for GDB, the GNU debugger.
- Copyright 1986, 1987, 1989, 1991, 1992, 1994 Free Software Foundation, Inc.
+ Copyright 1986, 1987, 1989, 1991, 1992, 1994, 2001
+ Free Software Foundation, Inc.
This file is part of GDB.
@@ -57,10 +58,10 @@ extern void xcoff_relocate_symtab (unsigned int);
struct target_ops;
extern void xcoff_relocate_core (struct target_ops *);
-/* Load segment of a given pc value. */
+/* If ADDR lies in a shared library, return its name. */
-#define PC_LOAD_SEGMENT(PC) pc_load_segment_name(PC)
-extern char *pc_load_segment_name (CORE_ADDR);
+#define PC_SOLIB(PC) xcoff_solib_address(PC)
+extern char *xcoff_solib_address (CORE_ADDR);
/* Return sizeof user struct to callers in less machine dependent routines */