Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kris Warkentin <kewarken@qnx.com>
To: gdb-patches@sources.redhat.com
Subject: (patch) some updates for QNX Neutrino
Date: Fri, 12 Aug 2005 16:43:00 -0000	[thread overview]
Message-ID: <42FCCEF8.7050900@qnx.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Bringing things up to date.  I'll apply as obvious if no one has any 
objections.

cheers,

Kris

ChangeLog:

2005-08-12  Kris Warkentin  <kewarken@qnx.com>

    * i386-nto-tdep.c (i386nto_init_abi): Don't set gdbarch skip
    trampoline code hook.
    * nto-procfs.c (procfs_post_attach): Call solib_create_inferior_hook
    instead of  SOLIB_CREATE_INFERIOR_HOOK.
    (procfs_create_inferior): Ditto.
    * config/tm-nto.h: Don't define SKIP_TRAMPOLINE_CODE.


[-- Attachment #2: blah.diff --]
[-- Type: text/x-patch, Size: 2216 bytes --]

Index: i386-nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-nto-tdep.c,v
retrieving revision 1.18
diff -u -r1.18 i386-nto-tdep.c
--- i386-nto-tdep.c	24 Dec 2004 14:45:32 -0000	1.18
+++ i386-nto-tdep.c	11 Aug 2005 19:09:03 -0000
@@ -262,9 +262,6 @@
      default which is [unfortunately] to decrement the PC.  */
   set_gdbarch_decr_pc_after_break (gdbarch, 0);
 
-  /* NTO has shared libraries.  */
-  set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
-
   tdep->gregset_reg_offset = i386nto_gregset_reg_offset;
   tdep->gregset_num_regs = ARRAY_SIZE (i386nto_gregset_reg_offset);
   tdep->sizeof_gregset = NUM_GPREGS * 4;
Index: nto-procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-procfs.c,v
retrieving revision 1.14
diff -u -r1.14 nto-procfs.c
--- nto-procfs.c	6 Jul 2005 14:54:34 -0000	1.14
+++ nto-procfs.c	11 Aug 2005 19:09:03 -0000
@@ -545,10 +545,8 @@
 static void
 procfs_post_attach (pid_t pid)
 {
-#ifdef SOLIB_CREATE_INFERIOR_HOOK
   if (exec_bfd)
-    SOLIB_CREATE_INFERIOR_HOOK (pid);
-#endif
+    solib_create_inferior_hook ();
 }
 
 static ptid_t
@@ -1091,11 +1089,9 @@
   push_target (&procfs_ops);
   target_terminal_init ();
 
-#ifdef SOLIB_CREATE_INFERIOR_HOOK
   if (exec_bfd != NULL
       || (symfile_objfile != NULL && symfile_objfile->obfd != NULL))
-    SOLIB_CREATE_INFERIOR_HOOK (pid);
-#endif
+    solib_create_inferior_hook ();
   stop_soon = 0;
   proceed (-1, TARGET_SIGNAL_DEFAULT, 0);
 }
Index: config/tm-nto.h
===================================================================
RCS file: /cvs/src/src/gdb/config/tm-nto.h,v
retrieving revision 1.3
diff -u -r1.3 tm-nto.h
--- config/tm-nto.h	14 Nov 2004 02:56:34 -0000	1.3
+++ config/tm-nto.h	11 Aug 2005 19:09:04 -0000
@@ -26,11 +26,6 @@
 #ifndef _TM_QNXNTO_H
 #define _TM_QNXNTO_H
 
-/* If PC is in a shared library trampoline code, return the PC
-   where the function itself actually starts.  If not, return 0.  */
-
-#define SKIP_TRAMPOLINE_CODE(pc)  find_solib_trampoline_target (pc)
-
 /* Setup the valid realtime signal range.  */
 #define REALTIME_LO 41
 #define REALTIME_HI 56

             reply	other threads:[~2005-08-12 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-12 16:43 Kris Warkentin [this message]
2005-08-12 20:07 ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42FCCEF8.7050900@qnx.com \
    --to=kewarken@qnx.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox