GNU Binutils with patches for OS216
Revisión | 9846e5417d7a4dfcf264c22d3f11a8ee5ea1544b (tree) |
---|---|
Tiempo | 2006-02-25 08:52:04 |
Autor | Randolph Chung <tausq@debi...> |
Commiter | Randolph Chung |
2006-02-24 Randolph Chung <tausq@debian.org>
argreg.
function.
@@ -1,3 +1,10 @@ | ||
1 | +2006-02-24 Randolph Chung <tausq@debian.org> | |
2 | + | |
3 | + * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize | |
4 | + argreg. | |
5 | + * solib-som.c (som_solib_remove_inferior_hook): Remove unused | |
6 | + function. | |
7 | + | |
1 | 8 | 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com> |
2 | 9 | |
3 | 10 | * f-exp.y: Symbol '%' is not used as the modulus operator in |
@@ -1659,7 +1659,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp, | ||
1659 | 1659 | CORE_ADDR *real_pc, CORE_ADDR *bp_addr) |
1660 | 1660 | { |
1661 | 1661 | CORE_ADDR pc, stubaddr; |
1662 | - int argreg; | |
1662 | + int argreg = 0; | |
1663 | 1663 | |
1664 | 1664 | pc = read_pc (); |
1665 | 1665 |
@@ -313,50 +313,6 @@ keep_going: | ||
313 | 313 | clear_symtab_users (); |
314 | 314 | } |
315 | 315 | |
316 | -/* This operation removes the "hook" between GDB and the dynamic linker, | |
317 | - which causes the dld to notify GDB of shared library events. | |
318 | - | |
319 | - After this operation completes, the dld will no longer notify GDB of | |
320 | - shared library events. To resume notifications, GDB must call | |
321 | - som_solib_create_inferior_hook. | |
322 | - | |
323 | - This operation does not remove any knowledge of shared libraries | |
324 | - of which GDB may already have been notified. | |
325 | - */ | |
326 | -static void | |
327 | -som_solib_remove_inferior_hook (int pid) | |
328 | -{ | |
329 | - CORE_ADDR addr; | |
330 | - struct minimal_symbol *msymbol; | |
331 | - int status; | |
332 | - char dld_flags_buffer[4]; | |
333 | - unsigned int dld_flags_value; | |
334 | - struct cleanup *old_cleanups = save_inferior_ptid (); | |
335 | - | |
336 | - /* Ensure that we're really operating on the specified process. */ | |
337 | - inferior_ptid = pid_to_ptid (pid); | |
338 | - | |
339 | - /* We won't bother to remove the solib breakpoints from this process. | |
340 | - | |
341 | - In fact, on PA64 the breakpoint is hard-coded into the dld callback, | |
342 | - and thus we're not supposed to remove it. | |
343 | - | |
344 | - Rather, we'll merely clear the dld_flags bit that enables callbacks. | |
345 | - */ | |
346 | - msymbol = lookup_minimal_symbol ("__dld_flags", NULL, NULL); | |
347 | - | |
348 | - addr = SYMBOL_VALUE_ADDRESS (msymbol); | |
349 | - status = target_read_memory (addr, dld_flags_buffer, 4); | |
350 | - | |
351 | - dld_flags_value = extract_unsigned_integer (dld_flags_buffer, 4); | |
352 | - | |
353 | - dld_flags_value &= ~DLD_FLAGS_HOOKVALID; | |
354 | - store_unsigned_integer (dld_flags_buffer, 4, dld_flags_value); | |
355 | - status = target_write_memory (addr, dld_flags_buffer, 4); | |
356 | - | |
357 | - do_cleanups (old_cleanups); | |
358 | -} | |
359 | - | |
360 | 316 | static void |
361 | 317 | som_special_symbol_handling (void) |
362 | 318 | { |