From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5550 invoked by alias); 28 Oct 2008 19:02:54 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 5507 invoked by uid 306); 28 Oct 2008 19:02:53 -0000 Date: Tue, 28 Oct 2008 19:02:00 -0000 Message-ID: <20081028190253.5492.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: gdb X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: da587f7b1f970acf8fe75fb497587242cf050d37 X-Git-Newrev: b4584fb7df1e4142b62d2cba5fa51181d32f29a4 X-SW-Source: 2008-q4/txt/msg00050.txt.bz2 List-Id: The branch, master has been updated via b4584fb7df1e4142b62d2cba5fa51181d32f29a4 (commit) via d078c7b7e00ebbc6ada4a0cd43fc3f901ed0923f (commit) via c0fc6c1a94ebf1531c1180c53a177b84c99be83d (commit) via 8326a9af68a15df0ff73a6ea1aa7d695cad1a149 (commit) via f40da5290dc8ee587090642ec9dc3df1dfb642c3 (commit) via 7c43910da1126fe1cbc5854d0414d8ac6a2f044f (commit) via 23aaf67c9ef689b684b26f0760bf5978cf1aff35 (commit) via f3b64a8ca47559849da00c7be866c9495bbed1c6 (commit) via e96494c34c32d599cbd29d539255dd3a561d93dd (commit) via 8a665f3319c25f3228d650ea15a07b68a9a0dc55 (commit) via dbe2b5f4fe37616ec7bb987c693a9b8457be4db2 (commit) via 644ad83038090cbb237c7aa6da0a23147fbffa9c (commit) via 5c1707d40f02468b91c5f374317e36e30616e405 (commit) via ff3adc38280fb83170e3cfabd923bc332b1f4547 (commit) via 447c8e31c318eeb26f3a4b3f5a958ae0eb199d78 (commit) via 91f1667f56f1a0a6f7ddcfe3161717f1cd626366 (commit) via 91249d4314c9ab6eab5e5d54e321071049f07ed9 (commit) via bf71bdecb940f8641801d3c247de9ddcf5cb117d (commit) from da587f7b1f970acf8fe75fb497587242cf050d37 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit b4584fb7df1e4142b62d2cba5fa51181d32f29a4 Author: Tom Tromey Date: Tue Oct 28 17:19:53 2008 +0000 gdb * varobj.c (value_get_print_value): Include valprint.h. (value_get_print_value): Use get_formatted_print_options. * value.h (struct value_print_options): Declare. (value_print, val_print, common_val_print, val_print_string): Update. * value.c: Include valprint.h. (show_values): Use get_user_print_options. (show_convenience): Likewise. * valprint.h (prettyprint_arrays, prettyprint_structs): Don't declare. (struct value_print_options): New type. (vtblprint, unionprint, addressprint, objectprint, print_max, inspect_it, repeat_count_threshold, output_format, stop_print_at_null): Don't declare. (user_print_options, get_user_print_options, get_raw_print_options, get_formatted_print_options): Declare. (print_array_indexes_p): Don't declare. (maybe_print_array_index, val_print_array_elements): Update. * valprint.c (print_max): Remove. (user_print_options): New global. (get_user_print_options, get_raw_print_options, get_formatted_print_options): New functions. (print_array_indexes, repeat_count_threshold, stop_print_at_null, prettyprint_structs, prettyprint_arrays, unionprint, addressprint): Remove. (val_print): Remove format, deref_ref, pretty arguments; add options. Update. (common_val_print): Likewise. (print_array_indexes_p): Remove. (maybe_print_array_index): Remove format, pretty arguments; add options. Update. (val_print_array_elements): Remove format, deref_ref, pretty arguments; add options. Update. (val_print_string): Add options argument. Update. (_initialize_valprint): Use user_print_options. (output_format): Remove. (set_output_radix_1): Use user_print_options. * typeprint.c: Include valprint.h. (objectprint): Don't declare. (whatis_exp): Use get_user_print_options. * tui/tui-regs.c: Include valprint.h. (tui_register_format): Use get_formatted_print_options. * tracepoint.c: Include valprint.h. (addressprint): Don't declare. (trace_mention): Use get_user_print_options. (tracepoints_info): Likewise. * stack.c (print_frame_args): Use get_raw_print_options. (print_frame_info): Use get_user_print_options. (print_frame): Likewise. * sh64-tdep.c: Include valprint.h (sh64_do_register): Use get_formatted_print_options. * scm-valprint.c (scm_inferior_print): Remove format, deref_ref, pretty arguments; add options. (scm_scmlist_print): Likewise. Update. (scm_scmval_print): Likewise. (scm_val_print): Likewise. (scm_value_print): Remove format, pretty arguments; add options. Update. * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print): Update. * scm-lang.c (scm_printstr): Add options argument. * python/python-value.c: Include valprint.h. (valpy_str): Use get_user_print_options. * printcmd.c: Include valprint.h. (addressprint): Don't declare. (inspect_it): Remove. (print_formatted): Remove format option; add options. Update. (print_scalar_formatted): Likewise. (print_address_demangle): Use get_user_print_options. (do_examine): Use get_formatted_print_options. (print_command_1): Likewise. (output_command): Use get_formatted_print_options. (do_one_display): Likewise. (print_variable_value): Use get_user_print_options. * p-valprint.c (pascal_val_print): Remove format, deref_ref, pretty arguments; add options. Update. (pascal_value_print): Remove format, pretty arguments; add options. Update. (vtblprint, objectprint): Don't declare. (pascal_static_field_print): Remove. (pascal_object_print_value_fields): Remove format, pretty arguments; add options. Update. (pascal_object_print_static_field): Likewise. (_initialize_pascal_valprint): Use user_print_options. Update. * p-lang.h (pascal_val_print, pascal_value_print, pascal_printstr, pascal_object_print_value_fields): Update. (vtblprint, static_field_print): Don't declare. * p-lang.c (pascal_printstr): Add options argument. Update. * objc-lang.c (objc_printstr): Add options argument. Update. * mt-tdep.c: Include valprint.h. (mt_registers_info): Use get_raw_print_options. * mips-tdep.c: Include valprint.h. (mips_print_fp_register): Use get_formatted_print_options. (mips_print_register): Likewise. * mi/mi-main.c: Include valprint.h. (get_register): Use get_user_print_options. (mi_cmd_data_evaluate_expression): Likewise. (mi_cmd_data_read_memory): Use get_formatted_print_options. * mi/mi-cmd-stack.c: Include valprint.h. (list_args_or_locals): Use get_raw_print_options. * m2-valprint.c (print_function_pointer_address): Add addressprint argument. (m2_print_long_set): Remove format, pretty arguments. (m2_print_unbounded_array): Remove format, deref_ref, pretty arguments; add options. Update. (print_unpacked_pointer): Remove format argument; add options. Now static. Update. (print_variable_at_address): Remove format, deref_ref, pretty arguments; add options. Update. (m2_print_array_contents): Likewise. (m2_val_print): Likewise. * m2-lang.h (m2_val_print): Update. * m2-lang.c (m2_printstr): Add options argument. Update. * language.h (struct value_print_options): Declare. (struct language_defn) : Add options argument. : Remove format, deref_ref, pretty argument; add options. : Remove format, pretty arguments; add options. : Likewise. (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING, LA_PRINT_ARRAY_INDEX): Update. (default_print_array_index): Update. * language.c (default_print_array_index): Remove format, pretty arguments; add options. Update. (unk_lang_printstr): Add options argument. (unk_lang_val_print): Remove format, deref_ref, pretty arguments; add options. (unk_lang_value_print): Remove format, pretty arguments; add options. * jv-valprint.c (java_value_print): Remove format, pretty arguments; add options. Update. (java_print_value_fields): Likewise. (java_val_print): Remove format, deref_ref, pretty arguments; add options. Update. * jv-lang.h (java_val_print, java_value_print): Declare. * infcmd.c: Include valprint.h. (print_return_value): Use get_raw_print_options. (default_print_registers_info): Use get_user_print_options, get_formatted_print_options. (registers_info): Use get_formatted_print_options. * gdbtypes.h (struct value_print_options): Declare. (print_scalar_formatted): Update. * f-valprint.c (f77_print_array_1): Remove format, deref_ref, pretty arguments; add options. Update. (f77_print_array): Likewise. (f_val_print): Likewise. * f-lang.h (f_val_print): Update. * f-lang.c (f_printstr): Add options argument. Update. (c_value_print): Update declaration. * expprint.c: Include valprint.h. (print_subexp_standard): Use get_raw_print_options, get_user_print_options. * eval.c: Include valprint.h. (objectprint): Don't declare. (evaluate_subexp_standard): Use get_user_print_options. * cp-valprint.c (vtblprint, objectprint, static_field_print): Remove. (cp_print_value_fields): Remove format, pretty arguments; add options. Update. (cp_print_value): Likewise. (cp_print_static_field): Likewise. (_initialize_cp_valprint): Use user_print_options. Update. * c-valprint.c (print_function_pointer_address): Add addressprint argument. (c_val_print): Remove format, deref_ref, pretty arguments; add options. Update. (c_value_print): Add options argument. Update. * c-lang.h (c_val_print, c_value_print, c_printstr): Update. (vtblprint, static_field_print): Don't declare. (cp_print_value_fields): Update. * c-lang.c (c_printstr): Add options argument. Update. * breakpoint.c: Include valprint.h. (addressprint): Don't declare. (watchpoint_value_print): Use get_user_print_options. (print_one_breakpoint_location): Likewise. (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention, print_exception_catchpoint): Likewise. * auxv.c (fprint_target_auxv): Don't declare addressprint. Use get_user_print_options. * ada-valprint.c (struct ada_val_print_args): Remove format, deref_ref, and pretty; add options. (print_optional_low_bound): Add options argument. (val_print_packed_array_elements): Remove format and pretty arguments; add options. Update. (printstr): Add options argument. Update. (ada_printstr): Likewise. (ada_val_print): Remove format, deref_ref, pretty arguments; add options argument. Update. (ada_val_print_stub): Update. (ada_val_print_array): Remove format, deref_ref, pretty arguments; add options. Update. (ada_val_print_1): Likewise. (print_variant_part): Likewise. (ada_value_print): Remove format, pretty arguments; add options. Update. (print_record): Likewise. (print_field_values): Likewise. * ada-lang.h (ada_val_print, ada_value_print, ada_printstr): Update. * ada-lang.c (ada_print_array_index): Add options argument; remove format and pretty arguments. (print_one_exception): Use get_user_print_options. gdb/testsuite * gdb.base/exprs.exp (test_expr): Add enum formatting tests. commit d078c7b7e00ebbc6ada4a0cd43fc3f901ed0923f Author: Tom Tromey Date: Tue Oct 28 15:22:11 2008 +0000 * cli/cli-script.c (do_fclose_cleanup): Remove. (script_from_file): Use make_cleanup_fclose. * xml-tdesc.c (do_cleanup_fclose): Remove. (fetch_xml_from_file): Use make_cleanup_fclose. * tracepoint.c (tracepoint_save_command): Use make_cleanup_fclose. Always free pathname. * source.c (print_source_lines_base): Use make_cleanup_fclose. * remote.c (fclose_cleanup): Remove. (remote_file_put): Use make_cleanup_fclose. (remote_file_get): Likewise. * linux-nat.c (linux_nat_find_memory_regions): Use make_cleanup_fclose. (linux_nat_info_proc_cmd): Likewise. (linux_proc_pending_signals): Likewise. * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose. Free file name. * cli/cli-dump.c (do_fclose_cleanup): Remove. (make_cleanup_fclose): Remove. * defs.h (make_cleanup_fclose): Declare. * utils.c (do_fclose_cleanup): New function. (make_cleanup_fclose): Likewise. commit c0fc6c1a94ebf1531c1180c53a177b84c99be83d Author: Alan Modra Date: Tue Oct 28 00:00:04 2008 +0000 daily update commit 8326a9af68a15df0ff73a6ea1aa7d695cad1a149 Author: gdbadmin Date: Tue Oct 28 00:00:02 2008 +0000 *** empty log message *** commit f40da5290dc8ee587090642ec9dc3df1dfb642c3 Author: Pedro Alves Date: Mon Oct 27 22:37:19 2008 +0000 * inflow.c (kill_command): If the target claims there is still execution, don't clear the thread list. commit 7c43910da1126fe1cbc5854d0414d8ac6a2f044f Author: Pedro Alves Date: Mon Oct 27 19:28:50 2008 +0000 * cp-name-parser.y: Include defs.h instead of config.h. (parse_escape): Rename to ... (cp_parse_escape): ... this. (yylex): Update. (xfree) [TEST_CPNAMES]: New. commit 23aaf67c9ef689b684b26f0760bf5978cf1aff35 Author: DJ Delorie Date: Mon Oct 27 18:25:21 2008 +0000 merge from gcc commit f3b64a8ca47559849da00c7be866c9495bbed1c6 Author: Pedro Alves Date: Mon Oct 27 17:41:57 2008 +0000 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of 2.13 and configure.in. commit e96494c34c32d599cbd29d539255dd3a561d93dd Author: Pedro Alves Date: Mon Oct 27 12:43:23 2008 +0000 * target.h (struct target_ops) : New field. (target_supports_multi_process): New define. * target.c (update_current_target): Inherit and de_fault to_supports_multi_process. * infcmd.c (attach_command): Allow attaching to multiple processes if the target supports it. (detach_command): If the target claims there is still execution, don't clear the thread list. * remote.c (remote_supports_multi_process): New. (init_remote_ops): Register remote_supports_multi_process. commit 8a665f3319c25f3228d650ea15a07b68a9a0dc55 Author: Pedro Alves Date: Mon Oct 27 11:46:23 2008 +0000 * Makefile.in (.y.c, .l.c): sed free to xfree. commit dbe2b5f4fe37616ec7bb987c693a9b8457be4db2 Author: Pedro Alves Date: Mon Oct 27 11:37:39 2008 +0000 gdb/ * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to $(TM_CLIBS). (CDEPS): Remove reference to $(TM_CDEPS). gdb/doc/ * gdbint.texinfo (Adding a New Target): Don't mention TDEPFILES, .mt files, TM_CLIBS or TM_CDEPS. (x86 Watchpoints): Don't mention TDEPFILES. commit 644ad83038090cbb237c7aa6da0a23147fbffa9c Author: Michael Snyder Date: Mon Oct 27 04:53:05 2008 +0000 2008-10-26 Michael Snyder * infrun.c (handle_inferior_event): Handle dynamic symbol resolution in reverse. commit 5c1707d40f02468b91c5f374317e36e30616e405 Author: gdbadmin Date: Mon Oct 27 00:00:33 2008 +0000 *** empty log message *** commit ff3adc38280fb83170e3cfabd923bc332b1f4547 Author: Alan Modra Date: Mon Oct 27 00:00:08 2008 +0000 daily update commit 447c8e31c318eeb26f3a4b3f5a958ae0eb199d78 Author: gdbadmin Date: Sun Oct 26 00:00:32 2008 +0000 *** empty log message *** commit 91f1667f56f1a0a6f7ddcfe3161717f1cd626366 Author: Alan Modra Date: Sun Oct 26 00:00:05 2008 +0000 daily update commit 91249d4314c9ab6eab5e5d54e321071049f07ed9 Author: Joel Brobecker Date: Sat Oct 25 16:03:14 2008 +0000 * infrun.c: Minor comment reformatting. commit bf71bdecb940f8641801d3c247de9ddcf5cb117d Author: Jan Kratochvil Date: Sat Oct 25 15:44:22 2008 +0000 ChangeLog (2008-03-13): Fix a function name typo. ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- gdb/CONTRIBUTE | 6 +- gdb/ChangeLog | 284 +++++++++++++++++++++++++++++++++++++- gdb/Makefile.in | 10 +- gdb/ada-lang.c | 9 +- gdb/ada-lang.h | 11 +- gdb/ada-valprint.c | 218 +++++++++++++++-------------- gdb/auxv.c | 13 +- gdb/breakpoint.c | 49 +++++-- gdb/c-lang.c | 15 +- gdb/c-lang.h | 17 +-- gdb/c-valprint.c | 167 +++++++++++++---------- gdb/cli/cli-dump.c | 13 -- gdb/cli/cli-script.c | 8 +- gdb/cp-name-parser.y | 18 ++- gdb/cp-valprint.c | 78 +++++----- gdb/defs.h | 2 + gdb/doc/ChangeLog | 6 + gdb/doc/gdbint.texinfo | 13 +-- gdb/eval.c | 11 +- gdb/expprint.c | 67 ++++++--- gdb/f-lang.c | 19 ++-- gdb/f-lang.h | 4 +- gdb/f-valprint.c | 103 +++++++------- gdb/fbsd-nat.c | 5 +- gdb/gdbtypes.h | 6 +- gdb/infcmd.c | 38 ++++- gdb/inflow.c | 19 ++- gdb/infrun.c | 19 +++- gdb/jv-lang.h | 8 +- gdb/jv-valprint.c | 99 ++++++++------ gdb/language.c | 18 ++- gdb/language.h | 35 +++--- gdb/linux-nat.c | 21 ++- gdb/m2-lang.c | 15 +- gdb/m2-lang.h | 4 +- gdb/m2-valprint.c | 174 ++++++++++++------------ gdb/mi/mi-cmd-stack.c | 23 ++- gdb/mi/mi-main.c | 17 ++- gdb/mips-tdep.c | 16 ++- gdb/mt-tdep.c | 6 +- gdb/objc-lang.c | 15 +- gdb/p-lang.c | 15 +- gdb/p-lang.h | 19 +-- gdb/p-valprint.c | 203 ++++++++++++++------------- gdb/printcmd.c | 104 ++++++++------- gdb/python/python-value.c | 9 +- gdb/remote.c | 18 ++- gdb/scm-lang.c | 3 +- gdb/scm-lang.h | 10 +- gdb/scm-valprint.c | 71 +++++----- gdb/sh64-tdep.c | 12 ++- gdb/source.c | 4 +- gdb/stack.c | 19 ++- gdb/target.c | 4 + gdb/target.h | 10 ++ gdb/testsuite/ChangeLog | 4 + gdb/testsuite/gdb.base/exprs.exp | 7 + gdb/tracepoint.c | 22 ++-- gdb/tui/tui-regs.c | 5 +- gdb/typeprint.c | 9 +- gdb/utils.c | 17 +++ gdb/valprint.c | 197 ++++++++++++++------------ gdb/valprint.h | 103 +++++++++++---- gdb/value.c | 9 +- gdb/value.h | 18 ++-- gdb/varobj.c | 7 +- gdb/version.in | 2 +- gdb/xml-tdesc.c | 10 +-- libdecnumber/ChangeLog | 12 ++ libdecnumber/decBasic.c | 12 +- libdecnumber/decDouble.h | 6 +- libdecnumber/decNumberLocal.h | 12 +- libdecnumber/decQuad.h | 6 +- libdecnumber/decSingle.h | 6 +- 75 files changed, 1635 insertions(+), 1011 deletions(-) First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index 8935185..fbccae5 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20081025 +#define BFD_VERSION_DATE 20081028 #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 f1f3cb0..67a2ed4 100644 --- a/gdb/CONTRIBUTE +++ b/gdb/CONTRIBUTE @@ -115,19 +115,19 @@ o Please read your patch before submitting it. to re-formatting / split it. -o If ``gdb/configure.in'' is modified then you don't +o If ``gdb/configure.ac'' is modified then you don't need to include patches to the regenerated file ``configure''. The maintainer will re-generate those files - using autoconf (2.13 as of 2000-02-29). + using autoconf (2.59 as of 2005-01-07). o If ``gdb/gdbarch.sh'' is modified, you don't need to include patches to the generated files ``gdbarch.h'' and ``gdbarch.c''. - See ``gdb/configure.in'' above. + See ``gdb/configure.ac'' above. o When submitting a patch that fixes a bug diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c30272b..b2fa68f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,283 @@ +2008-10-28 Tom Tromey + + * varobj.c (value_get_print_value): Include valprint.h. + (value_get_print_value): Use get_formatted_print_options. + * value.h (struct value_print_options): Declare. + (value_print, val_print, common_val_print, val_print_string): + Update. + * value.c: Include valprint.h. + (show_values): Use get_user_print_options. + (show_convenience): Likewise. + * valprint.h (prettyprint_arrays, prettyprint_structs): Don't + declare. + (struct value_print_options): New type. + (vtblprint, unionprint, addressprint, objectprint, print_max, + inspect_it, repeat_count_threshold, output_format, + stop_print_at_null): Don't declare. + (user_print_options, get_user_print_options, + get_raw_print_options, get_formatted_print_options): Declare. + (print_array_indexes_p): Don't declare. + (maybe_print_array_index, val_print_array_elements): Update. + * valprint.c (print_max): Remove. + (user_print_options): New global. + (get_user_print_options, get_raw_print_options, + get_formatted_print_options): New functions. + (print_array_indexes, repeat_count_threshold, stop_print_at_null, + prettyprint_structs, prettyprint_arrays, unionprint, + addressprint): Remove. + (val_print): Remove format, deref_ref, pretty arguments; add + options. Update. + (common_val_print): Likewise. + (print_array_indexes_p): Remove. + (maybe_print_array_index): Remove format, pretty arguments; add + options. Update. + (val_print_array_elements): Remove format, deref_ref, pretty + arguments; add options. Update. + (val_print_string): Add options argument. Update. + (_initialize_valprint): Use user_print_options. + (output_format): Remove. + (set_output_radix_1): Use user_print_options. + * typeprint.c: Include valprint.h. + (objectprint): Don't declare. + (whatis_exp): Use get_user_print_options. + * tui/tui-regs.c: Include valprint.h. + (tui_register_format): Use get_formatted_print_options. + * tracepoint.c: Include valprint.h. + (addressprint): Don't declare. + (trace_mention): Use get_user_print_options. + (tracepoints_info): Likewise. + * stack.c (print_frame_args): Use get_raw_print_options. + (print_frame_info): Use get_user_print_options. + (print_frame): Likewise. + * sh64-tdep.c: Include valprint.h + (sh64_do_register): Use get_formatted_print_options. + * scm-valprint.c (scm_inferior_print): Remove format, deref_ref, + pretty arguments; add options. + (scm_scmlist_print): Likewise. Update. + (scm_scmval_print): Likewise. + (scm_val_print): Likewise. + (scm_value_print): Remove format, pretty arguments; add options. + Update. + * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print): + Update. + * scm-lang.c (scm_printstr): Add options argument. + * python/python-value.c: Include valprint.h. + (valpy_str): Use get_user_print_options. + * printcmd.c: Include valprint.h. + (addressprint): Don't declare. + (inspect_it): Remove. + (print_formatted): Remove format option; add options. Update. + (print_scalar_formatted): Likewise. + (print_address_demangle): Use get_user_print_options. + (do_examine): Use get_formatted_print_options. + (print_command_1): Likewise. + (output_command): Use get_formatted_print_options. + (do_one_display): Likewise. + (print_variable_value): Use get_user_print_options. + * p-valprint.c (pascal_val_print): Remove format, deref_ref, + pretty arguments; add options. Update. + (pascal_value_print): Remove format, pretty arguments; add + options. Update. + (vtblprint, objectprint): Don't declare. + (pascal_static_field_print): Remove. + (pascal_object_print_value_fields): Remove format, pretty + arguments; add options. Update. + (pascal_object_print_static_field): Likewise. + (_initialize_pascal_valprint): Use user_print_options. Update. + * p-lang.h (pascal_val_print, pascal_value_print, + pascal_printstr, pascal_object_print_value_fields): Update. + (vtblprint, static_field_print): Don't declare. + * p-lang.c (pascal_printstr): Add options argument. Update. + * objc-lang.c (objc_printstr): Add options argument. Update. + * mt-tdep.c: Include valprint.h. + (mt_registers_info): Use get_raw_print_options. + * mips-tdep.c: Include valprint.h. + (mips_print_fp_register): Use get_formatted_print_options. + (mips_print_register): Likewise. + * mi/mi-main.c: Include valprint.h. + (get_register): Use get_user_print_options. + (mi_cmd_data_evaluate_expression): Likewise. + (mi_cmd_data_read_memory): Use get_formatted_print_options. + * mi/mi-cmd-stack.c: Include valprint.h. + (list_args_or_locals): Use get_raw_print_options. + * m2-valprint.c (print_function_pointer_address): Add addressprint + argument. + (m2_print_long_set): Remove format, pretty arguments. + (m2_print_unbounded_array): Remove format, deref_ref, pretty + arguments; add options. Update. + (print_unpacked_pointer): Remove format argument; add options. + Now static. Update. + (print_variable_at_address): Remove format, deref_ref, pretty + arguments; add options. Update. + (m2_print_array_contents): Likewise. + (m2_val_print): Likewise. + * m2-lang.h (m2_val_print): Update. + * m2-lang.c (m2_printstr): Add options argument. Update. + * language.h (struct value_print_options): Declare. + (struct language_defn) : Add options argument. + : Remove format, deref_ref, pretty argument; add + options. + : Remove format, pretty arguments; add options. + : Likewise. + (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING, + LA_PRINT_ARRAY_INDEX): Update. + (default_print_array_index): Update. + * language.c (default_print_array_index): Remove format, pretty + arguments; add options. Update. + (unk_lang_printstr): Add options argument. + (unk_lang_val_print): Remove format, deref_ref, pretty arguments; + add options. + (unk_lang_value_print): Remove format, pretty arguments; add + options. + * jv-valprint.c (java_value_print): Remove format, pretty + arguments; add options. Update. + (java_print_value_fields): Likewise. + (java_val_print): Remove format, deref_ref, pretty arguments; add + options. Update. + * jv-lang.h (java_val_print, java_value_print): Declare. + * infcmd.c: Include valprint.h. + (print_return_value): Use get_raw_print_options. + (default_print_registers_info): Use get_user_print_options, + get_formatted_print_options. + (registers_info): Use get_formatted_print_options. + * gdbtypes.h (struct value_print_options): Declare. + (print_scalar_formatted): Update. + * f-valprint.c (f77_print_array_1): Remove format, deref_ref, + pretty arguments; add options. Update. + (f77_print_array): Likewise. + (f_val_print): Likewise. + * f-lang.h (f_val_print): Update. + * f-lang.c (f_printstr): Add options argument. Update. + (c_value_print): Update declaration. + * expprint.c: Include valprint.h. + (print_subexp_standard): Use get_raw_print_options, + get_user_print_options. + * eval.c: Include valprint.h. + (objectprint): Don't declare. + (evaluate_subexp_standard): Use get_user_print_options. + * cp-valprint.c (vtblprint, objectprint, static_field_print): + Remove. + (cp_print_value_fields): Remove format, pretty arguments; add + options. Update. + (cp_print_value): Likewise. + (cp_print_static_field): Likewise. + (_initialize_cp_valprint): Use user_print_options. Update. + * c-valprint.c (print_function_pointer_address): Add addressprint + argument. + (c_val_print): Remove format, deref_ref, pretty arguments; add + options. Update. + (c_value_print): Add options argument. Update. + * c-lang.h (c_val_print, c_value_print, c_printstr): Update. + (vtblprint, static_field_print): Don't declare. + (cp_print_value_fields): Update. + * c-lang.c (c_printstr): Add options argument. Update. + * breakpoint.c: Include valprint.h. + (addressprint): Don't declare. + (watchpoint_value_print): Use get_user_print_options. + (print_one_breakpoint_location): Likewise. + (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention, + print_exception_catchpoint): Likewise. + * auxv.c (fprint_target_auxv): Don't declare addressprint. Use + get_user_print_options. + * ada-valprint.c (struct ada_val_print_args): Remove format, + deref_ref, and pretty; add options. + (print_optional_low_bound): Add options argument. + (val_print_packed_array_elements): Remove format and pretty + arguments; add options. Update. + (printstr): Add options argument. Update. + (ada_printstr): Likewise. + (ada_val_print): Remove format, deref_ref, pretty arguments; add + options argument. Update. + (ada_val_print_stub): Update. + (ada_val_print_array): Remove format, deref_ref, pretty arguments; + add options. Update. + (ada_val_print_1): Likewise. + (print_variant_part): Likewise. + (ada_value_print): Remove format, pretty arguments; add options. + Update. + (print_record): Likewise. + (print_field_values): Likewise. + * ada-lang.h (ada_val_print, ada_value_print, ada_printstr): + Update. + * ada-lang.c (ada_print_array_index): Add options argument; remove + format and pretty arguments. + (print_one_exception): Use get_user_print_options. + +2008-10-28 Tom Tromey + + * cli/cli-script.c (do_fclose_cleanup): Remove. + (script_from_file): Use make_cleanup_fclose. + * xml-tdesc.c (do_cleanup_fclose): Remove. + (fetch_xml_from_file): Use make_cleanup_fclose. + * tracepoint.c (tracepoint_save_command): Use + make_cleanup_fclose. Always free pathname. + * source.c (print_source_lines_base): Use make_cleanup_fclose. + * remote.c (fclose_cleanup): Remove. + (remote_file_put): Use make_cleanup_fclose. + (remote_file_get): Likewise. + * linux-nat.c (linux_nat_find_memory_regions): Use + make_cleanup_fclose. + (linux_nat_info_proc_cmd): Likewise. + (linux_proc_pending_signals): Likewise. + * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose. + Free file name. + * cli/cli-dump.c (do_fclose_cleanup): Remove. + (make_cleanup_fclose): Remove. + * defs.h (make_cleanup_fclose): Declare. + * utils.c (do_fclose_cleanup): New function. + (make_cleanup_fclose): Likewise. + +2008-10-27 Pedro Alves + + * inflow.c (kill_command): If the target claims there is still + execution, don't clear the thread list. + +2008-10-27 Pedro Alves + + * cp-name-parser.y: Include defs.h instead of config.h. + (parse_escape): Rename to ... + (cp_parse_escape): ... this. + (yylex): Update. + (xfree) [TEST_CPNAMES]: New. + +2008-10-27 Pedro Alves + + * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of + 2.13 and configure.in. + +2008-10-27 Pedro Alves + + * target.h (struct target_ops) : New + field. + (target_supports_multi_process): New define. + * target.c (update_current_target): Inherit and de_fault + to_supports_multi_process. + * infcmd.c (attach_command): Allow attaching to multiple processes + if the target supports it. + (detach_command): If the target claims there is still execution, + don't clear the thread list. + * remote.c (remote_supports_multi_process): New. + (init_remote_ops): Register remote_supports_multi_process. + +2008-10-27 Pedro Alves + + * Makefile.in (.y.c, .l.c): sed free to xfree. + +2008-10-27 Pedro Alves + + * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to + $(TM_CLIBS). + (CDEPS): Remove reference to $(TM_CDEPS). + +2008-10-26 Michael Snyder + + * infrun.c (handle_inferior_event): Handle dynamic symbol + resolution in reverse. + +2008-10-25 Joel Brobecker + + * infrun.c: Minor comment reformatting. + 2008-10-25 Pedro Alves * ada-exp.y (write_object_renaming): Use malloc instead of @@ -8611,9 +8891,9 @@ * target.c (memory_xfer_partial): Call breakpoint_restore_shadows. (restore_show_memory_breakpoints) - (make_show_memory_beakpoints_cleanup): New. + (make_show_memory_breakpoints_cleanup): New. (show_memory_breakpoints): New. - * target.h (make_show_memory_beakpoints_cleanup): Declare. + * target.h (make_show_memory_breakpoints_cleanup): Declare. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make sure we see memory breakpoints when checking if breakpoint is still there. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 645d901..ec4b1d2 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -411,13 +411,13 @@ INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_ # If you have the Cygnus libraries installed, # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS=' INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty -ldecnumber \ - $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \ + $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \ -lintl -liberty $(LIBGNU) CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \ - $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \ + $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \ $(LIBICONV) $(LIBEXPAT) \ $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) -CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \ +CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \ $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) @@ -1470,6 +1470,8 @@ po/$(PACKAGE).pot: force -e '/include.*malloc.h/d' \ -e 's/\([^x]\)malloc/\1xmalloc/g' \ -e 's/\([^x]\)realloc/\1xrealloc/g' \ + -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ + -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ -e '/^#line.*y.tab.c/d' \ < $@.tmp > $@.new -rm $@.tmp @@ -1484,6 +1486,8 @@ po/$(PACKAGE).pot: force -e '/include.*malloc.h/d' \ -e 's/\([^x]\)malloc/\1xmalloc/g' \ -e 's/\([^x]\)realloc/\1xrealloc/g' \ + -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ + -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ -e 's/yy_flex_xrealloc/yyxrealloc/g' \ < $@ > $@.new && \ rm -f $@ && \ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index cce7da9..9fdd944 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -353,9 +353,9 @@ ada_get_gdb_completer_word_break_characters (void) static void ada_print_array_index (struct value *index_value, struct ui_file *stream, - int format, enum val_prettyprint pretty) + const struct value_print_options *options) { - LA_VALUE_PRINT (index_value, stream, format, pretty); + LA_VALUE_PRINT (index_value, stream, options); fprintf_filtered (stream, " => "); } @@ -10100,7 +10100,10 @@ static void print_one_exception (enum exception_catchpoint_kind ex, struct breakpoint *b, CORE_ADDR *last_addr) { - if (addressprint) + struct value_print_options opts; + + get_user_print_options (&opts); + if (opts.addressprint) { annotate_field (4); ui_out_field_core_addr (uiout, "addr", b->loc->address); diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index ce6be4b..562a867 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -249,11 +249,11 @@ extern void ada_print_type (struct type *, char *, struct ui_file *, int, int); extern int ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, - struct ui_file *, int, int, int, - enum val_prettyprint); + struct ui_file *, int, + const struct value_print_options *); -extern int ada_value_print (struct value *, struct ui_file *, int, - enum val_prettyprint); +extern int ada_value_print (struct value *, struct ui_file *, + const struct value_print_options *); /* Defined in ada-lang.c */ @@ -266,7 +266,8 @@ extern void ada_emit_char (int, struct ui_file *, int, int); extern void ada_printchar (int, struct ui_file *); extern void ada_printstr (struct ui_file *, const gdb_byte *, - unsigned int, int, int); + unsigned int, int, int, + const struct value_print_options *); struct value *ada_convert_actual (struct value *actual, struct type *formal_type0, diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index e2f7740..cc8352f 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -43,18 +43,17 @@ struct ada_val_print_args int embedded_offset; CORE_ADDR address; struct ui_file *stream; - int format; - int deref_ref; int recurse; - enum val_prettyprint pretty; + const struct value_print_options *options; }; static void print_record (struct type *, const gdb_byte *, struct ui_file *, - int, int, enum val_prettyprint); + int, const struct value_print_options *); static int print_field_values (struct type *, const gdb_byte *, - struct ui_file *, int, int, - enum val_prettyprint, int, struct type *, + struct ui_file *, int, + const struct value_print_options *, + int, struct type *, const gdb_byte *); static void adjust_type_signedness (struct type *); @@ -62,8 +61,8 @@ static void adjust_type_signedness (struct type *); static int ada_val_print_stub (void *args0); static int ada_val_print_1 (struct type *, const gdb_byte *, int, CORE_ADDR, - struct ui_file *, int, int, int, - enum val_prettyprint); + struct ui_file *, int, + const struct value_print_options *); /* Make TYPE unsigned if its range of values includes no negatives. */ @@ -81,13 +80,14 @@ adjust_type_signedness (struct type *type) otherwise 0. */ static int -print_optional_low_bound (struct ui_file *stream, struct type *type) +print_optional_low_bound (struct ui_file *stream, struct type *type, + const struct value_print_options *options) { struct type *index_type; long low_bound; long high_bound; - if (print_array_indexes_p ()) + if (options->print_array_indexes) return 0; if (!get_array_bounds (type, &low_bound, &high_bound)) @@ -137,16 +137,15 @@ print_optional_low_bound (struct ui_file *stream, struct type *type) /* Version of val_print_array_elements for GNAT-style packed arrays. Prints elements of packed array of type TYPE at bit offset - BITOFFSET from VALADDR on STREAM. Formats according to FORMAT and + BITOFFSET from VALADDR on STREAM. Formats according to OPTIONS and separates with commas. RECURSE is the recursion (nesting) level. - If PRETTY, uses "prettier" format. TYPE must have been decoded (as - by ada_coerce_to_simple_array). */ + TYPE must have been decoded (as by ada_coerce_to_simple_array). */ hooks/post-receive -- Repository for Project Archer.