diff options
Diffstat (limited to 'gdb/cxux-nat.c')
-rw-r--r-- | gdb/cxux-nat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/cxux-nat.c b/gdb/cxux-nat.c index 9db528a06b9..93ed232770c 100644 --- a/gdb/cxux-nat.c +++ b/gdb/cxux-nat.c @@ -281,6 +281,9 @@ m88k_register_u_addr (blockend, regnum) #include <sys/procfs.h> +/* Prototypes for supply_gregset etc. */ +#include "gregset.h" + /* Given a pointer to a general register set in /proc format (gregset_t *), unpack the register contents and supply them as gdb's idea of the current register values. */ @@ -386,7 +389,8 @@ add_shared_symbol_files () { struct section_addr_info section_addrs; memset (§ion_addrs, 0, sizeof (section_addrs)); - section_addrs.text_addr = lms.l_addr; + section_addrs.other[0].addr = lms.l_addr; + section_addrs.other[0].name = ".text"; symbol_file_add (path_name, 1, §ion_addrs, 0, 0); free (path_name); } |