Remove unnecessary cast in aix-thread.c:ptrace32.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7afaf46cc9b188f656292471d26c52b79ee395f0..52454aeb6778fc8fce3208d52e23aa26fb26ec38 100644 (file)
@@ -1,3 +1,312 @@
+2013-10-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * aix-thread.c (ptrace32): Remove cast to addr_ptr.
+
+2013-10-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * mi/mi-main.c (run_one_inferior): Add function description.
+       Make ARG a pointer to an integer whose value determines whether
+       we should "run" or "start" the program.
+       (mi_cmd_exec_run): Add handling of the "--start" option.
+       Reject all other command-line options.
+       * NEWS: Add entry for "-exec-run"'s new "--start" option.
+
+2013-10-04  Yao Qi  <yao@codesourcery.com>
+
+       * remote-notif.h (REMOTE_NOTIF_ID): New enum.
+       (struct notif_client) <pending_event>: Moved
+       to struct remote_notif_state.
+       <id>: New field.
+       (struct remote_notif_state) <pending_event>: New field.
+       (notif_event_xfree): Declare.
+       * remote-notif.c (handle_notification): Adjust.
+       (notif_event_xfree): New function.
+       (do_notif_event_xfree): Call notif_event_xfree.
+       (remote_notif_state_xfree): Call notif_event_xfree to free
+       each element in field pending_event.
+       * remote.c (discard_pending_stop_replies): Remove declaration.
+       (discard_pending_stop_replies_in_queue): Declare.
+       (remote_close): Call discard_pending_stop_replies_in_queue
+       instead of discard_pending_stop_replies.
+       (remote_start_remote): Adjust.
+       (stop_reply_xfree): Call notif_event_xfree.
+       (notif_client_stop): Adjust initialization.
+       (remote_notif_remove_all): Rename it to ...
+       (remove_stop_reply_for_inferior): ... this.  Update comments.
+       Don't check INF is NULL.
+       (discard_pending_stop_replies): Return early if notif_state is
+       NULL.  Adjust.  Don't check INF is NULL.
+       (remote_notif_get_pending_events): Adjust.
+       (discard_pending_stop_replies_in_queue): New function.
+       (remote_wait_ns): Likewise.
+
+2013-10-04  Yao Qi  <yao@codesourcery.com>
+
+       * remote-notif.c (DECLARE_QUEUE_P): Remove.
+       (notif_queue): Remove.
+       (remote_notif_process): Add one parameter 'notif_queue'.
+       Update comments.  Callers update.
+       (remote_async_get_pending_events_token): Remove.
+       (remote_notif_register_async_event_handler): Remove.
+       (remote_notif_unregister_async_event_handler): Remove.
+       (handle_notification): Add parameter 'notif_queue'.  Update
+       comments.  Callers update.
+       (notif_xfree): Remove.
+       (remote_notif_state_allocate): New function.
+       (remote_notif_state_xfree): New function.
+       (_initialize_notif): Remove code to allocate queue.
+       * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
+       (struct remote_notif_state): New.
+       (handle_notification): Update declaration.
+       (remote_notif_process): Likewise.
+       (remote_notif_register_async_event_handler): Remove.
+       (remote_notif_unregister_async_event_handler): Remove.
+       (remote_notif_state_allocate): Declare.
+       (remote_notif_state_xfree): Declare.
+       * remote.c (struct remote_state) <notif_state>: New field.
+       (remote_close): Don't call
+       remote_notif_unregister_async_event_handler.  Call
+       remote_notif_state_xfree.
+       (remote_open_1): Don't call
+       remote_notif_register_async_event_handler.  Call
+       remote_notif_state_allocate.
+
+2013-10-04  Yao Qi  <yao@codesourcery.com>
+
+       * varobj.c (create_child_with_value): Remove 'const' from the
+       type of parameter 'name'.
+       (varobj_add_child): Likewise.
+       (install_dynamic_child): Remove 'const' from the type of
+       parameter 'name'.
+       (varobj_add_child): Likewise.
+       (create_child_with_value): Likewise.  Update comments.  Don't
+       duplicate 'name'.
+       (update_dynamic_varobj_children): Duplicate 'name'
+       and pass it to install_dynamic_child.
+
+2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-value.c (convert_value_from_python): Move PyInt_Check
+       conversion logic to occur after PyLong_Check.  Comment on order
+       change significance.
+       * python/py-arch.c (archpy_disassemble): Comment on order of
+       conversion for integers and longs.
+
+2013-10-03  Pedro Alves  <palves@redhat.com>
+
+       * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
+       the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
+       functions.  Always test for PTRACE_O_TRACESYSGOOD even if
+       PTRACE_O_TRACEFORK is not supported.
+       (linux_test_for_tracesysgood): New function.
+       (linux_test_for_tracefork): New function, factored out from
+       linux_check_ptrace_features, and also don't kill child_pid here.
+
+2013-10-03  Tristan Gingold  <gingold@adacore.com>
+
+       * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
+       Remove verbose error reporting.  Use detected state to
+       thread_set_state call.
+       (i386_darwin_dr_get): Fix return type.  Remove verbose error
+       report.
+       Remove trailing spaces.
+
+2013-10-02  Pedro Alves  <palves@redhat.com>
+
+       * cp-valprint.c (cp_print_value_fields): Adjust calls to
+       val_print_optimized_out.
+       * jv-valprint.c (java_print_value_fields): Likewise.
+       * p-valprint.c (pascal_object_print_value_fields): Likewise.
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
+       <DWARF_VALUE_REGISTER>: If the register was not saved, return a
+       new optimized out value.
+       * findvar.c (address_from_register): Likewise.
+       * frame.c (put_frame_register): Tweak error string to say the
+       register was not saved, rather than optimized out.
+       * infcmd.c (default_print_one_register_info): Adjust call to
+       val_print_optimized_out.  Use value_of_register instead of
+       get_frame_register_value.
+       * mi/mi-main.c (output_register): Use value_of_register instead of
+       get_frame_register_value.
+       * valprint.c (valprint_check_validity): Likewise.
+       (val_print_optimized_out): New value parameter.  If the value is
+       lval_register, print <not saved> instead.
+       (value_check_printable, val_print_scalar_formatted): Adjust calls
+       to val_print_optimized_out.
+       * valprint.h (val_print_optimized_out): New value parameter.
+       * value.c (struct value) <optimized_out>: Extend comment.
+       (error_value_optimized_out): New function.
+       (require_not_optimized_out): Use it.  Use a different string for
+       lval_register values.
+       * value.h (error_value_optimized_out): New declaration.
+       * NEWS: Mention <not saved>.
+
+2013-10-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
+       strcmp to compare two symtab filenames.
+
+2013-10-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * symtab.c (search_symbols_equal): Delete.
+       (sort_search_symbols_remove_dups): Replace call to
+       search_symbols_equal by call to compare_search_syms,
+       adjusting as necessary.
+
+2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR python/15579
+
+       * python/python.c: Document gdb.execute command in Python help.
+
+2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-frame.c (frame_info_to_frame_object): Use
+       gdbpy_convert_exception. Clean up Python object on failure.
+
+2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/lib/gdb/command/frame_filters.py
+       (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
+       (ShowFrameFilterPriority.invoke): Ditto.
+
+2013-10-01  Keith Seitz  <keiths@redhat.com>
+
+       * linespec.c (struct ls_parser): Make 'saved_arg' const.
+       (parse_linespec): Make 'argptr' const.
+       Remove temporary cast of 'argptr' to const char **.
+       (decode_line_full): Pass const pointer to parse_linespec.
+       (decode_line_1): Likewise.
+       (decode_objc): Make local variable 'new_argptr' const.
+       (find_function_symbols): Remove temporary cast to char *
+       to find_imps.
+       * objc-lang.c (find_imps): Make argument 'method' const.
+       Return const.
+       * objc-lang.h (find_imps): Likewise.
+
+2013-10-01  Keith Seitz  <keiths@redhat.com>
+
+       * completer.c (skip_quoted_chars): Make all arguments const.
+       Return const.
+       (skip_quoted): Likewise.
+       * completer.h (skip_quoted_chars): Likewise.
+       (skip_quoted): Likewise.
+       * defs.h (skip_quoted): Remove duplicate declaration.
+       * jv-exp.y: Include completer.h.
+       (yylex): Remove unneccessary cast to char * fro skip_quoted.
+       * p-exp.y: Include completer.h.
+
+2013-10-01  Keith Seitz  <keiths@redhat.com>
+
+       * c-exp.y (parse_number): Make first argument const.
+       Make a copy of the input to manipulate.
+       (c_parse_escape): Make first argument const.
+       Make local variable 'tokptr' const.
+       (parse_string_or_char): Make first two arguments const.
+       (macro_original_text): Make const.
+       (lex_one_token): Make local variable 'tokstart' const.
+       Likewise for local variables named 'p'.
+       Cast away const for struct stoken (temporary).
+       * c-lang.h (c_parse_escpae): Make first argument const.
+       * cli/cli-cmds.c (echo_command): Make local variable 'p'
+       const.
+       * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
+       var_string case.
+       * f-exp.y (parse_number): Make first argument const.
+       (match_string_literal): Make local variable 'tokstart'
+       const.
+       (yylex): Make local variable 'p' const.
+       Cast away const for struct stoken (temporary).
+       * go-exp.y (parse_number): Make first argument const.
+       (parse_string_or_char): Likewise.
+       Make local variable 'tokstart' const.
+       (lex_one_token): Likewise for numerous locals called 'p'.
+       Cast away const for struct stoken (temporary).
+       * jv-exp.y (parse_number): Make first argument const.
+       Make local variables 'tokstart' and 'tokptr' const.
+       Cast away const for call to skip_quoted (temporary).
+       (yylex): Make local variable 'p' const.
+       Cast away const for struct stoken (temporary).
+       * m2-exp.y (parse_number): Make local variable 'p' const.
+       (yylex): Likewise for 'tokstart'.
+       Cast away const for struct stoken (temporary).
+       Make local variable 'p' const.
+       * macroexp.c (get_character_constant): Pass a const string
+       to c_parse_escape.
+       (get_string_literal): Likewise.
+       (macro_expand_next): Make first argument const.
+       Cast away const for init_shared_buffer.
+       * macroexp.h (macro_expand_next): Make first argument const.
+       * p-exp.y (yylex): Make a local copy of 'lexptr'.
+       Pass a const string to c_parse_escape.
+       Make local variables 'p' and 'namestart' const.
+       * parse.c (lexptr): Make const.
+       (prev_lexptr): Likewise.
+       (find_template_name_end): Return const.
+       Make argument const, too.
+       (parse_exp_in_context): Make first argument const.
+       Remove the entire const_hack.
+       (parse_exp_in_context_1): Make first argument const.
+       * parser-defs.h (find_template_name_end): Return const.
+       Make argument const, too.
+       (lexptr): Make const.
+       (prev_lexptr): Likewise.
+       * utils.c (parse_escape): Make second argument const.
+       * utils.h (parse_escape): Likewise.
+
+2013-10-01  Keith Seitz  <keiths@redhat.com>
+
+       * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
+       is now const.
+       (block_lookup): Make 'raw_name' and 'name' const.
+       * ada-lex.l (processString): Update for struct stoken.ptr.
+       * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
+       (operator_stoken): Likewise.
+       (lex_one_token): Remove temporary cast to char * for
+       'yylval.sval.ptr'.
+       * f-exp.y (yylex): Likewise.
+       * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
+       * gdbtypes.h (lookup_struct_elt_type): Likewisee.
+       * go-exp.y (lex_one_token): Remove temporary cast to char * for
+       'yylval.sval.ptr'.
+       * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
+       (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
+       * linespec.c (struct ls_parser): Make 'stream' const.
+       (find_parameter_list_end): Make argument 'input' and local
+       variable 'p' const.
+       (linespec_lexer_lex_string): Make local variables 'start' and
+       'p' const.
+       Use skip_spaces_const instead of skip_spaces.
+       (linespec_lexer_peek_token): Make local variable 'saved_stream'
+       const.
+       (parse_linespec): Temporarily cast 'argptr' to const for
+       'parser->lexer.stream'.
+       * m2-exp.y (yylex): Remove temporary cast to char * for
+       'yylval.sval.ptr'.
+       * objc-lang.c (add_msglist): Make local variable 'p' const.
+       * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
+       (exp : STRING): Make 'sp' const.
+       (parse_number): Make argument 'p' const.
+       * parser-defs.h (struct stoken): Make 'ptr' const.
+
+2013-10-01  Doug Evans  <dje@google.com>
+
+       * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
+
+2013-10-01  Yao Qi  <yao@codesourcery.com>
+
+       * varobj.c (c_value_of_root): Remove declaration.
+       (cplus_value_of_root, java_value_of_root): Likewise.
+       (ada_value_of_root): Likewise.
+       (struct language_specific) <value_of_root>: Remove.
+       (languages): Update initialization.
+       (check_scope): Move earlier.
+       (c_value_of_root): Move earlier and rename to ...
+       (value_of_root_1): ... this.
+       (value_of_root): Caller update.
+       (cplus_value_of_root, java_value_of_root): Remove.
+       (ada_value_of_root): Remove.
+
 2013-10-01  Yao Qi  <yao@codesourcery.com>
 
        * varobj.c (varobj_format_string): Remove "unknown".
This page took 0.02902 seconds and 4 git commands to generate.