aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2006-02-24 23:52:04 +0000
committerRandolph Chung <tausq@debian.org>2006-02-24 23:52:04 +0000
commit9846e5417d7a4dfcf264c22d3f11a8ee5ea1544b (patch)
treed39608a0465b204942d7d83211f7d8a34e6b7a39 /gdb
parent04f1267984a9563fd5e864246087b57f9e1ea393 (diff)
downloadgdb-9846e5417d7a4dfcf264c22d3f11a8ee5ea1544b.zip
gdb-9846e5417d7a4dfcf264c22d3f11a8ee5ea1544b.tar.gz
gdb-9846e5417d7a4dfcf264c22d3f11a8ee5ea1544b.tar.bz2
2006-02-24 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize argreg. * solib-som.c (som_solib_remove_inferior_hook): Remove unused function.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/hppa-hpux-tdep.c2
-rw-r--r--gdb/solib-som.c44
3 files changed, 8 insertions, 45 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3c14515..89c58ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-24 Randolph Chung <tausq@debian.org>
+
+ * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
+ argreg.
+ * solib-som.c (som_solib_remove_inferior_hook): Remove unused
+ function.
+
2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
* f-exp.y: Symbol '%' is not used as the modulus operator in
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c
index 2448a5a..4126fec 100644
--- a/gdb/hppa-hpux-tdep.c
+++ b/gdb/hppa-hpux-tdep.c
@@ -1659,7 +1659,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
CORE_ADDR *real_pc, CORE_ADDR *bp_addr)
{
CORE_ADDR pc, stubaddr;
- int argreg;
+ int argreg = 0;
pc = read_pc ();
diff --git a/gdb/solib-som.c b/gdb/solib-som.c
index 3e7a14e..3d027cc 100644
--- a/gdb/solib-som.c
+++ b/gdb/solib-som.c
@@ -313,50 +313,6 @@ keep_going:
clear_symtab_users ();
}
-/* This operation removes the "hook" between GDB and the dynamic linker,
- which causes the dld to notify GDB of shared library events.
-
- After this operation completes, the dld will no longer notify GDB of
- shared library events. To resume notifications, GDB must call
- som_solib_create_inferior_hook.
-
- This operation does not remove any knowledge of shared libraries
- of which GDB may already have been notified.
- */
-static void
-som_solib_remove_inferior_hook (int pid)
-{
- CORE_ADDR addr;
- struct minimal_symbol *msymbol;
- int status;
- char dld_flags_buffer[4];
- unsigned int dld_flags_value;
- struct cleanup *old_cleanups = save_inferior_ptid ();
-
- /* Ensure that we're really operating on the specified process. */
- inferior_ptid = pid_to_ptid (pid);
-
- /* We won't bother to remove the solib breakpoints from this process.
-
- In fact, on PA64 the breakpoint is hard-coded into the dld callback,
- and thus we're not supposed to remove it.
-
- Rather, we'll merely clear the dld_flags bit that enables callbacks.
- */
- msymbol = lookup_minimal_symbol ("__dld_flags", NULL, NULL);
-
- addr = SYMBOL_VALUE_ADDRESS (msymbol);
- status = target_read_memory (addr, dld_flags_buffer, 4);
-
- dld_flags_value = extract_unsigned_integer (dld_flags_buffer, 4);
-
- dld_flags_value &= ~DLD_FLAGS_HOOKVALID;
- store_unsigned_integer (dld_flags_buffer, 4, dld_flags_value);
- status = target_write_memory (addr, dld_flags_buffer, 4);
-
- do_cleanups (old_cleanups);
-}
-
static void
som_special_symbol_handling (void)
{