From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10473 invoked by alias); 10 Jan 2009 23:26:49 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 10360 invoked by uid 9674); 10 Jan 2009 23:26:47 -0000 Date: Sat, 10 Jan 2009 23:26:00 -0000 Message-ID: <20090110232647.10345.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-misc: Merge commit 'origin/master' into archer-jankratochvil-misc X-Git-Refname: refs/heads/archer-jankratochvil-misc X-Git-Reftype: branch X-Git-Oldrev: 997d730f46e591a2d45676013ebf857b0339ca04 X-Git-Newrev: f034fb1c82c05bb53d2dd39dee1afd02e9cd5696 X-SW-Source: 2009-q1/txt/msg00027.txt.bz2 List-Id: The branch, archer-jankratochvil-misc has been updated via f034fb1c82c05bb53d2dd39dee1afd02e9cd5696 (commit) via 69f6bc73a02f2a4d2f1125082dbcf3f5774539f7 (commit) via b3b0cb4d915852276dbc8ace1556565d19d48a87 (commit) via 7a56a2c458cc543b6afc9db2dc3aefceedfbc51c (commit) via dda21c0c8bc20cbaa85e2b24a7dfd7c4c0ce394e (commit) via 2e95d670cb8ca9b13c88fa6adbc7baef9239d0ea (commit) via 7cf22d1d6c85d9b75935dc65af7e12a609209424 (commit) via 51e678e7efcbe1e933d970491c733d84becb6768 (commit) via 58f8992d79a305a8427d5f592d0ccad451810d87 (commit) via 5ff7044261fce3ced393828fe0ed3cf66cf99651 (commit) via 9ae07e44039acecbd6047f49907b47131ebae43e (commit) via 784c173fcf9c84e1963a573a951291ef83054009 (commit) via 91394ed36ab2a6859c9be169f0eb5fccf0e95559 (commit) via 5f86b229221212b4c1c52869539798a25cc09455 (commit) via 7540d7a5126e83863832aaf8dfb88acdd77775ed (commit) via 1e70e6d6733c989b0f62aa4b90e9ca3e31fd601c (commit) via 91b400cbb0793ce12e724d0a74c20b2b69ba886a (commit) via f53d9973143fcc59408221cff3695913a733c9d8 (commit) via dfa92f2938a8a455558975906ac4fc6fab1994a9 (commit) via 113dc1139de965378886f0cda76aadcac0fc700c (commit) via 73b561a36d0072895e39cc25b599180f64bb8358 (commit) via 5e5bd1d1aaec8c5dc2d017559310c5d3b1f7e941 (commit) via 251821d85bf51b64556ffa53496f8d5b717d1b28 (commit) via fc7825b81de334217f74fb3206bfc793cfa6d426 (commit) via 72e31e9dbd9ef0b29f4c217d0e4ec62a8240ed68 (commit) via 036999d0a933897c90eedebb8561fd61fe53b9e9 (commit) via 7002b113b9e2afed981d3eb9d4157c98a3a3c447 (commit) via 8ee6a98bd6643233f00f0c91693ea6a571d54182 (commit) via 21f684e3486b49b52365d0e6e012067f75c53a04 (commit) via a296a0ecadd622bf0f1484bd0027196dea637915 (commit) via f1aba448dbe81323a66229bee669b96c1975c092 (commit) via 427836f3214de2556bf2058fcbc34406ff8ce095 (commit) via 0859dc381bc745337a127755d33638f183e3f75d (commit) via 60e49fc0d2c1cb723806c540588a9fc9dc45f779 (commit) via 81592205b450e76260e628188cc24720d9d33a9d (commit) via dcc61fc257100b0742340b450af4f958b138673d (commit) via befd85e74b156e716882e75fdbd68ec5b07db36a (commit) via a32f5f7e42cd949873aeb19f97e5308c8cb11a24 (commit) via 127bbf3a1da05460653cdc725da8b835cb3e4b28 (commit) via e90465bc2f297fd8ad13589444565e33bc523ee5 (commit) via c401d0f0d9ecf583e1ba7f3615843e6b990af2ee (commit) via db684da85b5b658f953ed0bfa8a0dbd6b94b6222 (commit) via edaa5febe3edb1e9cddeb2ac7600849553d5eb8f (commit) via 52e43ba70a07811d551d2c688fd75ce8fd5f8f51 (commit) via 10871c6b8a336f2b146936bdb760e5c60974638d (commit) via 03738d56d907cc637dc5d598fd733fe9dff3a8d1 (commit) via a5061bc7b92b8e0047c1c8b8c22fb5446b859a1b (commit) via 4b91d20df87a5bbdf4d0921548e43a3a9d859fde (commit) via 7515bba947f7024128d2e7781ade7103f3e06ef8 (commit) via f3c58c5f3e59ede0c7dcc1a0e6679357a3ffee3f (commit) from 997d730f46e591a2d45676013ebf857b0339ca04 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit f034fb1c82c05bb53d2dd39dee1afd02e9cd5696 Merge: 997d730f46e591a2d45676013ebf857b0339ca04 69f6bc73a02f2a4d2f1125082dbcf3f5774539f7 Author: Jan Kratochvil Date: Sun Jan 11 00:20:26 2009 +0100 Merge commit 'origin/master' into archer-jankratochvil-misc ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 9 + bfd/elf32-cris.c | 10 +- bfd/version.h | 2 +- gdb/CONTRIBUTE | 3 +- gdb/ChangeLog | 171 + gdb/MAINTAINERS | 2 + gdb/Makefile.in | 4 +- gdb/arch-utils.c | 8 +- gdb/breakpoint.c | 151 +- gdb/cli/cli-cmds.c | 2 +- gdb/coff-pe-read.c | 25 +- gdb/config/pa/linux.mh | 1 - gdb/corefile.c | 5 +- gdb/defs.h | 2 - gdb/doc/ChangeLog | 14 + gdb/doc/gdb.texinfo | 35 +- gdb/doc/gdbint.texinfo | 14 +- gdb/event-top.c | 4 +- gdb/exec.c | 11 +- gdb/f-typeprint.c | 3 +- gdb/gdbarch.c | 318 +- gdb/gdbarch.sh | 26 +- gdb/gdbtypes.c | 7 +- gdb/infrun.c | 1 - gdb/interps.c | 1 - gdb/remote-sim.c | 17 +- gdb/ser-mingw.c | 2 +- gdb/symfile.c | 1 + gdb/testsuite/ChangeLog | 9 + gdb/testsuite/gdb.fortran/derived-type.exp | 61 +- gdb/testsuite/gdb.fortran/subarray.exp | 58 +- gdb/top.c | 8 - gdb/utils.c | 11 +- gdb/value.c | 2 +- gdb/varobj.c | 2 +- gdb/version.in | 2 +- gdb/win32-nat.c | 81 +- include/gdb/ChangeLog | 5 + include/gdb/callback.h | 6 +- include/opcode/ChangeLog | 5 + include/opcode/ppc.h | 8 +- libiberty/ChangeLog | 9 + libiberty/cp-demangle.c | 17 +- opcodes/ChangeLog | 54 + opcodes/i386-gen.c | 89 +- opcodes/i386-init.h | 106 +- opcodes/i386-opc.h | 22 +- opcodes/i386-opc.tbl | 17 +- opcodes/i386-tbl.h | 3558 ++++++++-------- opcodes/ppc-opc.c | 6202 ++++++++++++++-------------- sim/ChangeLog | 17 + sim/common/ChangeLog | 11 + sim/common/callback.c | 6 +- sim/common/cgen-ops.h | 42 +- sim/common/sim-io.h | 4 +- sim/cris/traps.c | 75 +- sim/frv/ChangeLog | 4 + sim/frv/sem.c | 108 +- sim/testsuite/ChangeLog | 5 + sim/testsuite/sim/cris/c/hellodyn3.c | 9 + sim/testsuite/sim/cris/c/mmap5.c | 91 + sim/testsuite/sim/cris/c/mmap6.c | 8 + sim/testsuite/sim/cris/c/mmap7.c | 14 + sim/testsuite/sim/cris/c/mmap8.c | 9 + 64 files changed, 6067 insertions(+), 5517 deletions(-) create mode 100644 sim/testsuite/sim/cris/c/hellodyn3.c create mode 100644 sim/testsuite/sim/cris/c/mmap5.c create mode 100644 sim/testsuite/sim/cris/c/mmap6.c create mode 100644 sim/testsuite/sim/cris/c/mmap7.c create mode 100644 sim/testsuite/sim/cris/c/mmap8.c First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c114076..da237ce 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2009-01-07 Hans-Peter Nilsson + + * elf32-cris.c (cris_elf_relocate_section) + : For a symbol defined in + the program, the known offset starts at the negative size of the + TLS section. + : + Similar. + 2009-01-05 Joel Sherrill * config.bfd: Add lm32-*-rtems*. diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index ea268fc..dbc00ba 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -1721,8 +1721,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, bfd_vma off; /* The symbol is defined in the program, so just write - (1, known_tpoffset) into the GOT. */ + (1, -prog_tls_size+known_tpoffset) into the GOT. */ relocation -= elf_hash_table (info)->tls_sec->vma; + relocation -= elf_hash_table (info)->tls_sec->size; if (h != NULL) { @@ -1872,8 +1873,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, bfd_vma off; /* The symbol is defined in the program, so just write - the known_tpoffset into the GOT. */ + the -prog_tls_size+known_tpoffset into the GOT. */ relocation -= elf_hash_table (info)->tls_sec->vma; + relocation -= elf_hash_table (info)->tls_sec->size; if (h != NULL) off = h->got.offset; @@ -2001,7 +2003,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, /* NULL if we had an error. */ relocation -= elf_hash_table (info)->tls_sec == NULL - ? 0 : elf_hash_table (info)->tls_sec->vma; + ? 0 + : (elf_hash_table (info)->tls_sec->vma + + elf_hash_table (info)->tls_sec->size); /* The TLS-relative offset is the relocation. */ break; diff --git a/bfd/version.h b/bfd/version.h index 65dbb42..2bde24f 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20090106 +#define BFD_VERSION_DATE 20090110 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/gdb/CONTRIBUTE b/gdb/CONTRIBUTE index 67a2ed4..75b6ddf 100644 --- a/gdb/CONTRIBUTE +++ b/gdb/CONTRIBUTE @@ -49,7 +49,8 @@ o Copyright Assignment taking care of your contributions) to obtain the relevant forms. - Small changes can be accepted without a copyright assignment form on file. + Small changes can be accepted without a copyright assignment form + on file. Ref: http://www.gnu.org/prep/maintain.html#SEC6 diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c93b4a..9ceec2b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,174 @@ +2009-01-09 Andreas Schwab + + * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. + +2009-01-09 Daniel Jacobowitz + + * gdbtypes.c (append_composite_type_field): Correct the location of + appended fields. + +2009-01-09 Pedro Alves + + * defs.h (deprecated_error_hook): Delete declaration. + * interps.c (clear_interpreter_hooks): Adjust. + * remote-sim.c (gdb_os_error): Don't try to call + deprecated_error_hook. No need to call exit anymore. + * top.c (deprecated_error_hook): Delete. + +2009-01-09 Joel Brobecker + + * arch-utils.c (gdbarch_update_p): Use host_address_to_string + to print the address of the gdbarch pointer. + +2009-01-09 Joel Brobecker + + * gdbarch.sh: Fix all the compilation errors on amd64-windows + due to casting a pointer to a long when printing a function + address. Instead, use host_address_to_string to convert our + address to a string. + * gdbarch.c: Regenerate. + +2009-01-09 Joel Brobecker + + * event-top.c (async_disconnect, async_stop_sig): use "raise" + instead of "kill" to raise a signal. + +2009-01-09 Joel Brobecker + + * win32-nat.c (get_module_name): Change the type of parameter + "base_address" to LPVOID. Remove unnecessary cast. + (struct lm_info): Change type of load_addr to LPVOID. + (win32_make_so): Change the type of parameter "load_addr" + to LPVOID. Remove some unnecessary casts. + (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. + (win32_xfer_shared_libraries): Add missing cast. + +2009-01-09 Joel Brobecker + + * win32-nat.c (has_detach_ability, set_process_privilege): + Cast the result of GetProcAddress to (void *) to avoid + a compilation warning. + +2009-01-09 Joel Brobecker + + * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not + already defined. + +2009-01-09 Joel Brobecker + + * win32-nat.c (get_image_name, win32_xfer_memory): Fix type + definition of local variable "done". + (info_w32_command, handle_exception): Remove unnecessary cast. + +2009-01-09 Joel Brobecker + + * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames + DebugSetProcessKillOnExit. Update all uses in this file. + (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. + Update all uses in this file. + +2009-01-09 Joel Brobecker + + * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, + and use it when pushing the target. + (win32_attach, win32_create_inferior): Update call to + do_initial_win32_stuff. + (win32_detach, win32_mourn_inferior): Use our ops parameter + instead of the global win32_ops to unpush the target. + +2009-01-09 Joel Brobecker + + * ser-mingw.c (ser_windows_open): Use proper type when casting + in call to _open_osfhandle. + +2009-01-09 Kai Tietz + + * coff-pe-read.c (read_pe_exported_syms): Fix typo. + +2009-01-09 Joel Brobecker + + * CONTRIBUTE: Minor reformatting. + +2009-01-08 Kai Tietz + + * MAINTAINERS: Add myself to Write After Approval. + * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ + export directory. + +2009-01-08 Nathan Froyd + + * remote-sim.c (gdb_os_error): Mark as a noreturn function. + Call exit to make it obvious to GCC. + +2009-01-08 Tom Tromey + + PR breakpoints/9350: + * varobj.c (varobj_invalidate): Unconditionally free + all_rootvarobj. + * symfile.c (syms_from_objfile): Free local_addr when returning + normally. + * exec.c (exec_file_attach): Do cleanups before returning. + (exec_file_command): Likewise. + * corefile.c (reopen_exec_file): Do cleanups before returning. + * breakpoint.c (insert_breakpoint_locations): Do cleanups before + returning. + (do_vec_free): New function. + (update_global_location_list): Make a cleanup for old_locations. + Do cleanups before returning. Remove unused variable 'e'. + (find_condition_and_thread): Free result of parsing the + expression. + (print_it_typical): Do cleanups before returning. + (breakpoint_re_set_one): Always free sals.sals. + +2009-01-08 Joel Brobecker + Emi Suzuki + + * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for + watchpoints. + +2009-01-07 Doug Evans + + * top.c (gdb_prompt_string): Delete, unused. + +2009-01-07 Pedro Alves + + Delete ONE_PROCESS_WRITETEXT leftovers. + + * breakpoint.c (insert_bp_location): Delete process_warning + argument. Adjust. + (insert_breakpoint_locations): Adjust. + (reattach_breakpoints): Adjust. + * infrun.c (normal_stop): Drop "It might be running in another + process" notice. + +2009-01-07 Stan Shebs + + * config/pa/linux.mh (XDEPFILES): Remove. + +2009-01-07 Doug Evans + + * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. + +2009-01-07 Jan Kratochvil + + * f-typeprint.c (f_type_print_base ): Fix output + spacing, a regression from 2008-04-22. + +2009-01-07 Joel Brobecker + + * utils.c (gdb_print_host_address): Adjust implementation to + reuse host_address_to_string. Move comment explaining the conversion + from host address to string from here... + (host_address_to_string): ... to there. + +2009-01-07 Emi Suzuki + + * MAINTAINERS: Add myself for write after approval privileges. + +2009-01-06 Tom Tromey + + * value.c (set_internalvar): Use value_free, not xfree. + 2009-01-06 Jim Blandy Check return values of functions declared with warn_unused_result diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index d599826..672d5f7 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -580,10 +580,12 @@ Jackie Smith Cashion jsmith@redhat.com Michael Snyder msnyder@vmware.com Petr Sorfa petrs@caldera.com Andrew Stubbs ams@codesourcery.com +Emi Suzuki emi-suzuki@tjsys.co.jp Ian Lance Taylor ian@airs.com Gary Thomas gthomas@redhat.com Jason Thorpe thorpej@netbsd.org Caroline Tice ctice@apple.com +Kai Tietz kai.tietz@onevision.com Tom Tromey tromey@redhat.com David Ung davidu@mips.com D Venkatasubramanian dvenkat@noida.hcltech.com diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 14eaa37..2fe2d7a 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1011,8 +1011,8 @@ init.c: $(INIT_FILES) @rm -f init.c-tmp init.l-tmp @touch init.c-tmp @echo gdbtypes > init.l-tmp - @-LANG=c ; export LANG ; \ - LC_ALL=c ; export LC_ALL ; \ + @-LANG=C ; export LANG ; \ + LC_ALL=C ; export LC_ALL ; \ echo $(INIT_FILES) | \ tr ' ' '\012' | \ sed \ diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 41c4933..c1ea9da 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -495,8 +495,8 @@ gdbarch_update_p (struct gdbarch_info info) { if (gdbarch_debug) fprintf_unfiltered (gdb_stdlog, "gdbarch_update_p: " - "Architecture 0x%08lx (%s) unchanged\n", - (long) new_gdbarch, + "Architecture %s (%s) unchanged\n", + host_address_to_string (new_gdbarch), gdbarch_bfd_arch_info (new_gdbarch)->printable_name); return 1; } @@ -504,8 +504,8 @@ gdbarch_update_p (struct gdbarch_info info) /* It's a new architecture, swap it in. */ if (gdbarch_debug) fprintf_unfiltered (gdb_stdlog, "gdbarch_update_p: " - "New architecture 0x%08lx (%s) selected\n", - (long) new_gdbarch, + "New architecture %s (%s) selected\n", + host_address_to_string (new_gdbarch), gdbarch_bfd_arch_info (new_gdbarch)->printable_name); deprecated_current_gdbarch_select_hack (new_gdbarch); diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 74612b2..9705ede 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1029,14 +1029,14 @@ should_be_inserted (struct bp_location *bpt) /* Insert a low-level "breakpoint" of some type. BPT is the breakpoint. Any error messages are printed to TMP_ERROR_STREAM; and DISABLED_BREAKS, - PROCESS_WARNING, and HW_BREAKPOINT_ERROR are used to report problems. + and HW_BREAKPOINT_ERROR are used to report problems. NOTE drow/2003-09-09: This routine could be broken down to an object-style method for each breakpoint or catchpoint type. */ static int insert_bp_location (struct bp_location *bpt, struct ui_file *tmp_error_stream, - int *disabled_breaks, int *process_warning, + int *disabled_breaks, int *hw_breakpoint_error) { int val = 0; @@ -1179,9 +1179,6 @@ Note: automatically using hardware breakpoints for read-only addresses.\n")); } else { -#ifdef ONE_PROCESS_WRITETEXT - *process_warning = 1; -#endif if (bpt->loc_type == bp_loc_hardware_breakpoint) { *hw_breakpoint_error = 1; @@ -1279,10 +1276,9 @@ insert_breakpoint_locations (void) int val = 0; int disabled_breaks = 0; int hw_breakpoint_error = 0; - int process_warning = 0; struct ui_file *tmp_error_stream = mem_fileopen (); - make_cleanup_ui_file_delete (tmp_error_stream); + struct cleanup *cleanups = make_cleanup_ui_file_delete (tmp_error_stream); /* Explicitly mark the warning -- this will only be printed if there was an error. */ @@ -1300,7 +1296,7 @@ insert_breakpoint_locations (void) continue; val = insert_bp_location (b, tmp_error_stream, - &disabled_breaks, &process_warning, + &disabled_breaks, &hw_breakpoint_error); if (val) error = val; @@ -1352,14 +1348,11 @@ insert_breakpoint_locations (void) "Could not insert hardware breakpoints:\n\ You may have requested too many hardware breakpoints/watchpoints.\n"); } -#ifdef ONE_PROCESS_WRITETEXT - if (process_warning) - fprintf_unfiltered (tmp_error_stream, - "The same program may be running in another process."); -#endif target_terminal_ours_for_output (); error_stream (tmp_error_stream); } + + do_cleanups (cleanups); } int @@ -1405,7 +1398,7 @@ reattach_breakpoints (int pid) int val; struct cleanup *old_chain = save_inferior_ptid (); struct ui_file *tmp_error_stream = mem_fileopen (); - int dummy1 = 0, dummy2 = 0, dummy3 = 0; + int dummy1 = 0, dummy2 = 0; make_cleanup_ui_file_delete (tmp_error_stream); @@ -1416,7 +1409,7 @@ reattach_breakpoints (int pid) { b->inserted = 0; val = insert_bp_location (b, tmp_error_stream, - &dummy1, &dummy2, &dummy3); + &dummy1, &dummy2); if (val != 0) { do_cleanups (old_chain); @@ -2241,13 +2234,13 @@ watchpoint_value_print (struct value *val, struct ui_file *stream) static enum print_stop_action print_it_typical (bpstat bs) { - struct cleanup *old_chain, *ui_out_chain; + struct cleanup *old_chain; struct breakpoint *b; const struct bp_location *bl; struct ui_stream *stb; - int bp_temp = 0; - stb = ui_out_stream_new (uiout); - old_chain = make_cleanup_ui_out_stream_delete (stb); + int bp_temp = 0; + enum print_stop_action result; + /* bs->breakpoint_at can be NULL if it was a momentary breakpoint which has since been deleted. */ if (bs->breakpoint_at == NULL) @@ -2255,6 +2248,9 @@ print_it_typical (bpstat bs) bl = bs->breakpoint_at; b = bl->owner; + stb = ui_out_stream_new (uiout); + old_chain = make_cleanup_ui_out_stream_delete (stb); + switch (b->type) { case bp_breakpoint: @@ -2277,7 +2273,7 @@ print_it_typical (bpstat bs) } ui_out_field_int (uiout, "bkptno", b->number); ui_out_text (uiout, ", "); - return PRINT_SRC_AND_LOC; + result = PRINT_SRC_AND_LOC; break; case bp_shlib_event: @@ -2285,20 +2281,20 @@ print_it_typical (bpstat bs) variable? (If so, we report this as a generic, "Stopped due to shlib event" message.) */ printf_filtered (_("Stopped due to shared library event\n")); - return PRINT_NOTHING; + result = PRINT_NOTHING; break; case bp_thread_event: /* Not sure how we will get here. GDB should not stop for these breakpoints. */ printf_filtered (_("Thread Event Breakpoint: gdb should not stop!\n")); - return PRINT_NOTHING; + result = PRINT_NOTHING; break; case bp_overlay_event: /* By analogy with the thread event, GDB should not stop for these. */ printf_filtered (_("Overlay Event Breakpoint: gdb should not stop!\n")); - return PRINT_NOTHING; + result = PRINT_NOTHING; break; case bp_watchpoint: @@ -2309,17 +2305,16 @@ print_it_typical (bpstat bs) (uiout, "reason", async_reason_lookup (EXEC_ASYNC_WATCHPOINT_TRIGGER)); mention (b); - ui_out_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "value"); + make_cleanup_ui_out_tuple_begin_end (uiout, "value"); ui_out_text (uiout, "\nOld value = "); watchpoint_value_print (bs->old_val, stb->stream); ui_out_field_stream (uiout, "old", stb); ui_out_text (uiout, "\nNew value = "); watchpoint_value_print (b->val, stb->stream); ui_out_field_stream (uiout, "new", stb); - do_cleanups (ui_out_chain); ui_out_text (uiout, "\n"); /* More than one watchpoint may have been triggered. */ - return PRINT_UNKNOWN; + result = PRINT_UNKNOWN; break; case bp_read_watchpoint: @@ -2328,13 +2323,12 @@ print_it_typical (bpstat bs) (uiout, "reason", async_reason_lookup (EXEC_ASYNC_READ_WATCHPOINT_TRIGGER)); mention (b); - ui_out_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "value"); + make_cleanup_ui_out_tuple_begin_end (uiout, "value"); ui_out_text (uiout, "\nValue = "); watchpoint_value_print (b->val, stb->stream); ui_out_field_stream (uiout, "value", stb); - do_cleanups (ui_out_chain); ui_out_text (uiout, "\n"); - return PRINT_UNKNOWN; + result = PRINT_UNKNOWN; break; case bp_access_watchpoint: @@ -2346,7 +2340,7 @@ print_it_typical (bpstat bs) hooks/post-receive -- Repository for Project Archer.