PR c++/15116:
[external/binutils.git] / gdb / ChangeLog
1 2013-03-15  Tom Tromey  <tromey@redhat.com>
2
3         PR c++/15116:
4         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
5
6 2013-03-14  Tom Tromey  <tromey@redhat.com>
7
8         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9         New fields.
10         (get_file_crc): Move from symfile.c.
11         (gdb_bfd_crc): New function.
12         * gdb_bfd.h (gdb_bfd_crc): Declare.
13         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
14         * symfile.c (get_file_crc): Move to gdb_bfd.c.
15         (separate_debug_file_exists): Use gdb_bfd_crc.
16
17 2013-03-14  Tom Tromey  <tromey@redhat.com>
18
19         * symfile.c (get_debug_link_info): Remove.
20         (find_separate_debug_file_by_debuglink): Use
21         bfd_get_debug_link_info.
22
23 2013-03-14  Tom Tromey  <tromey@redhat.com>
24
25         * symtab.c (error_in_psymtab_expansion): New function.
26         (lookup_symbol_aux_quick)
27         (basic_lookup_transparent_type_quick): Remove "last resort"
28         code.  Use error_in_psymtab_expansion.
29
30 2013-03-14  Doug Evans  <dje@google.com>
31             Jan Kratochvil  <jan.kratochvil@redhat.com>
32
33         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
34         any successful compare_filenames_for_search or FILENAME_CMP.
35         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
36         * symtab.c (iterate_over_some_symtabs): Likewise.
37
38 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
39
40         * source.c (print_source_lines_base): Make a local copy of
41         symtab_to_fullname.
42
43 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
44             Jan Kratochvil  <jan.kratochvil@redhat.com>
45
46         * source.c (print_source_lines_base): Suppress "file" for TUI.
47
48 2013-03-14  Keith Seitz  <keiths@redhat.com>
49             Alan Matsuoka  <alanm@redhat.com>
50
51         PR c++/15203
52         PR c++/15210
53         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
54         TYPE_CODE_METHOD.
55         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
56         symbols.
57
58 2013-03-14  Yao Qi  <yao@codesourcery.com>
59
60         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
61         status to tfile if trace is stopped by command 'tstop'.
62
63 2013-03-14  Yao Qi  <yao@codesourcery.com>
64
65         * tracepoint.c (tfile_write_status): Write trace notes and user
66         name into tfile if they are not NULL.
67
68 2013-03-14  Hui Zhu  <hui@codesourcery.com>
69             Yao Qi  <yao@codesourcery.com>
70
71         * Makefile.in (REMOTE_OBS): Add ctf.o.
72         (SFILES): Add ctf.c.
73         (HFILES_NO_SRCDIR): Add ctf.h.
74         * ctf.c, ctf.h: New files.
75         * tracepoint.c: Include 'ctf.h'.
76         (collect_pseudocommand): Remove static.
77         (trace_save_command): Parse option "-ctf".
78         Produce different trace file writers per option.
79         Adjust output message.
80         (trace_save_tfile, trace_save_ctf): New.
81         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
82         * mi/mi-main.c: Include 'ctf.h'.
83         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
84         trace_save_tfile or trace_save_ctf.
85         * NEWS: Mention these changes.
86
87 2013-03-14  Yao Qi  <yao@codesourcery.com>
88
89         * tracepoint.c (trace_file_writer_xfree): New.
90         (struct tfile_writer_data): New.
91         (tfile_dtor, tfile_can_target_save, tfile_start): New.
92         (tfile_write_header, tfile_write_regblock_type): New.
93         (tfile_write_status, tfile_write_uploaded_tsv): New.
94         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
95         (tfile_write_raw_data, (tfile_end): New.
96         (tfile_write_ops): New global variable.
97         (TRACE_WRITE_R_BLOCK): New macro.
98         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
99         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
100         (TRACE_WRITE_V_BLOCK): New macro.
101         (trace_save): Add extra one parameter WRITER.  Make it static.
102         Use WRITER to writer trace.
103         (tfile_trace_file_writer_new): New.
104         (trace_save_command): Caller update.
105         (trace_save_tfile): Write trace data in TFILE format.
106         * tracepoint.h (struct trace_frame_write_ops): New.
107         (struct trace_file_write_ops): New.
108         (struct trace_file_writer): New.
109         (trace_save): Remove its declaration.
110         (trace_save_tfile): Declare it.
111         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
112         instead of trace_save.
113
114 2013-03-13  Pedro Alves  <palves@redhat.com>
115
116         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
117
118 2013-03-13  Pedro Alves  <palves@redhat.com>
119
120         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
121         commented out code.
122         * demangle.c (current_demangling_style_string): Make it const.
123         (set_demangling_command): Assert the demangling style is known.
124         Remove all handling of unknown styles.  Set
125         'current_demangling_style_string' to an element of the
126         demangling_style_names array.
127         (set_demangling_style): Delete.
128         (_initialize_demangler): Set current_demangling_style_string to the
129         element of the demangling_style_names array that corresponds to
130         the default demangling style.  Remove FIXME note.  Don't call
131         set_demangling_style.
132         * gdb-demangle.h (set_demangling_style): Remove declaration.
133
134 2013-03-13  Pedro Alves  <palves@redhat.com>
135
136         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
137         fields const.
138         (ada_make_symbol_completion_list): Make "text0" parameter const.
139         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
140         * breakpoint.c (condition_completer): Make "text" and "word"
141         parameters const.  Adjust.
142         (check_tracepoint_command): Adjust to validate_actionline
143         prototype change.
144         (catch_syscall_completer): Make "text" and "word" parameters
145         const.
146         * cli/cli-cmds.c (show_user): Make "comname" local const.
147         (valid_command_p): Make "command" parameter const.
148         (alias_command): Make "alias_prefix" and "command_prefix" locals
149         const.
150         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
151         (add_alias_cmd): Make "name" and "oldname" parameters const.
152         Adjust.  No longer make copy of OLDNAME.
153         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
154         (add_setshow_cmd_full, add_setshow_enum_cmd)
155         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
156         (add_setshow_filename_cmd, add_setshow_string_cmd)
157         (add_setshow_string_noescape_cmd)
158         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
159         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
160         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
161         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
162         Make "name" parameter const.
163         (help_cmd): Rename "command" parameter to "arg".  New const local
164         "command".
165         (find_cmd): Make "command" parameter const.
166         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
167         deprecated_cmd_warning prototype change.
168         (undef_cmd_error): Make "cmdtype" parameter const.
169         (lookup_cmd): Make "line" parameter const.
170         (deprecated_cmd_warning): Change type of "text" parameter to
171         pointer to const char, from pointer to pointer to char.  Adjust.
172         (lookup_cmd_composition): Make "text" parameter const.
173         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
174         parameters const.
175         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
176         const.
177         * cli/cli-script.c (validate_comname): Make "tem" local const.
178         (define_command): New const local "tem_c".  Use it in calls to
179         lookup_cmd.
180         (document_command): Make "tem" and "comfull" locals const.
181         (show_user_1): Make "prefix" and "name" parameters const.
182         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
183         const.
184         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
185         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
186         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
187         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
188         (complete_on_enum, add_setshow_enum_cmd)
189         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
190         (add_setshow_filename_cmd, add_setshow_string_cmd)
191         (add_setshow_string_noescape_cmd)
192         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
193         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
194         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
195         Change prototypes, constifying strings.
196         * completer.c (noop_completer, filename_completer): Make "text"
197         and "prefix" parameters const.
198         (location_completer, expression_completer)
199         (complete_line_internal): Make "text" and "prefix" parameters
200         const and adjust.
201         (command_completer, signal_completer): Make "text" and "prefix"
202         parameters const.
203         * completer.h (noop_completer, filename_completer)
204         (expression_completer, location_completer, command_completer)
205         (signal_completer): Change prototypes.
206         * corefile.c (complete_set_gnutarget): Make "text" and "word"
207         parameters const.
208         * cp-abi.c (cp_abi_completer): Likewise.
209         * expression.h (parse_expression_for_completion): Change
210         prototype.
211         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
212         parameters const.
213         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
214         * infrun.c (handle_completer): Make "text" and "word" parameters
215         const.
216         * interps.c (interpreter_completer): Make "text" and "word"
217         parameters const.
218         * language.h (struct language_defn)
219         <la_make_symbol_completion_list>: Make "text" and "word"
220         parameters const.
221         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
222         (parse_exp_in_context): Rename to ...
223         (parse_exp_in_context_1): ... this.
224         (parse_exp_in_context): Reimplement, with const hack from
225         parse_exp_1.
226         (parse_expression_for_completion): Make "string" parameter const.
227         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
228         to pointer to const char.  Adjust.
229         (print_command_1): Make "exp" parameter const.
230         (output_command): Rename to ...
231         (output_command_const): ... this.  Make "exp" parameter const.
232         (output_command): Reimplement.
233         (x_command): Adjust.
234         (display_command): Rename "exp" parameter to "arg".  New "exp"
235         local, const version of "arg".
236         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
237         "cmd_name" local const.
238         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
239         call.
240         (cmdpy_completer): Make "text" and "word" parameters const.
241         (gdbpy_parse_command_name): Make "prefix_text2" local const.
242         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
243         const.
244         * remote.c (_initialize_remote): Make "cmd_name" local const.
245         * symtab.c (language_search_unquoted_string): Make "text" and "p"
246         parameters const.  Adjust.
247         (completion_list_add_fields): Make "sym_text", "text" and "word"
248         parameters const.
249         (struct add_name_data) <sym_text, text, word>: Make fields const.
250         (default_make_symbol_completion_list_break_on): Make "text" and
251         "word" parameters const.  Adjust locals.
252         (default_make_symbol_completion_list)
253         (make_symbol_completion_list, make_symbol_completion_type)
254         (make_symbol_completion_list_fn): Make "text" and "word"
255         parameters const.
256         (make_file_symbol_completion_list): Make "text", "word" and
257         "srcfile" parameters const.  Adjust locals.
258         (add_filename_to_list): Make "text" and "word" parameters const.
259         (struct add_partial_filename_data) <text, word>: Make fields
260         const.
261         (make_source_files_completion_list): Make "text" and "word"
262         parameters const.
263         * symtab.h (default_make_symbol_completion_list_break_on)
264         (default_make_symbol_completion_list, make_symbol_completion_list)
265         (make_symbol_completion_type enum type_code)
266         (make_symbol_completion_list_fn make_file_symbol_completion_list)
267         (make_source_files_completion_list): Change prototype.
268         * top.c (execute_command): Adjust to pass pointer to pointer to
269         const char to lookup_cmd, and to deprecated_cmd_warning prototype
270         change.
271         (set_verbose): Make "cmdname" local const.
272         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
273         and adjust.
274         (validate_actionline): Make "line" parameter a pointer to const
275         char, and adjust.
276         (encode_actions_1): Make "action_exp" local const, and adjust.
277         (encode_actions): Adjust.
278         (replace_comma): Delete.
279         (trace_dump_actions): Make "action_exp" and "next_comma" locals
280         const, and adjust.  Don't frob the action string while splitting
281         it at commas.  Instead, make a copy of each split substring in
282         turn.
283         (trace_dump_command): Adjust to validate_actionline prototype
284         change.
285         * tracepoint.h (decode_agent_options, decode_agent_options)
286         (encode_actions, validate_actionline): Change prototypes.
287         * valprint.h (output_command): Delete declaration.
288         (output_command_const): Declare.
289         * value.c (function_destroyer): Cast const away in xfree call.
290
291 2013-03-13  Pedro Alves  <palves@redhat.com>
292
293         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
294         rather than casting 'const char * const *' to 'const char **'.
295         * ada-lex.l (processInt): Make "trailer" local const.  Remove
296         'const char **' cast.
297         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
298         locals, and use those as strtol output pointer, instead than doing
299         invalid casts to from 'const char **' to 'char **'.
300         (_initialize_demangle): Remove cast.
301         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
302         locals, and use those as strtol output pointer, instead than doing
303         invalid casts to from 'const char **' to 'char **'.
304         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
305         casts.
306         * stap-probe.c (stap_parse_register_operand)
307         (stap_parse_single_operand): Likewise.
308
309 2013-03-13  Yao Qi  <yao@codesourcery.com>
310
311         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
312         the last matched 'V' blcok in trace frame.
313
314 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
315
316         * NEWS: Create a new section for the next release branch.
317         Rename the section of the current branch, now that it has
318         been cut.
319
320 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
321
322         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
323         * version.in: Bump version to 7.6.50.20130312-cvs.
324
325 2013-03-12  Keith Seitz  <keiths@redhat.com>
326
327         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
328         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
329         Remove temporary copy of input string.
330         (mi_execute_command_wrapper): Make "cmd" const.
331         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
332         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
333         Use const strings.
334         (mi_parse): Make "cmd" const.
335         Use const strings.
336         * mi/mi-parse.h (mi_parse): Make "cmd" const.
337
338 2013-03-12  Keith Seitz  <keiths@redhat.com>
339
340         * ada-lang.c (ada_read_renaming_var_value): Pass const
341         pointer to expression string to parse_exp_1.
342         (create_excep_cond_exprs): Likewise.
343         * ax-gdb.c (agent_eval_command_one): Likewise.
344         (maint_agent_printf_command): Likewise.
345         Constify much of the string handling/parsing.
346         * breakpoint.c (set_breakpoint_condition): Pass const
347         pointer to expression string to parse_exp_1.
348         (update_watchpoint): Likewise.
349         (parse_cmd_to_aexpr): Constify string handling.
350         Pass const pointer to parse_exp_1.
351         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
352         (find_condition_and_thread): Likewise.
353         Make TOK const.
354         (watch_command_1): Make "arg" const.
355         Constify string handling.
356         Copy the expression string instead of changing the input
357         string.
358         (update_breakpoint_location): Pass const pointer to
359         parse_exp_1.
360         * eval.c (parse_and_eval_address): Make "exp" const.
361         (parse_to_comma_and_eval): Make "expp" const.
362         (parse_and_eval): Make "exp" const.
363         * expression.h (parse_expression): Make argument const.
364         (parse_exp_1): Make first argument const.
365         * findcmd.c (parse_find_args): Treat "args" as const.
366         * linespec.c (parse_linespec): Pass const pointer to
367         linespec_expression_to_pc.
368         (linespec_expression_to_pc): Make "exp_ptr" const.
369         * parse.c (parse_exp_1): Make "stringptr" const.
370         Make a copy of the expression to pass to parse_exp_in_context until
371         this whole interface can be constified.
372         (parse_expression): Make "string" const.
373         * printcmd.c (ui_printf): Treat "arg" as const.
374         Handle const strings.
375         * tracepoint.c (validate_actionline): Pass const pointer to
376         all calls to parse_exp_1.
377         (encode_actions_1): Likewise.
378         * value.h (parse_to_comma_and_eval): Make argument const.
379         (parse_and_eval_address): Likewise.
380         (parse_and_eval): Likewise.
381         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
382         (varobj_set_value): Likewise.
383         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
384         constify string handling.
385         Pass const pointers to parse_and_eval_address and
386         parse_to_comman_and_eval.
387         * cli/cli-utils.c (skip_to_space): Rename to ...
388         (skip_to_space_const): ... this. Handle const strings.
389         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
390         skip_to_space_const.
391         (skip_to_space_const): Declare.
392         * common/format.c (parse_format_string): Make "arg" const.
393         Handle const strings.
394         * common/format.h (parse_format_string): Make "arg" const.
395         * gdbserver/ax.c (ax_printf): Make "format" const.
396         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
397         of the expression string.
398
399 2013-03-12  Hui Zhu  <hui@codesourcery.com>
400
401         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
402
403 2013-03-12  Yao Qi  <yao@codesourcery.com>
404             Hui Zhu  <hui@codesourcery.com>
405
406         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
407         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
408         DW_OP_deref_size.
409
410 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
411
412         * ada-lex.l (rules): Only recognize 'thread' as a
413         delimiter when followed by numerals, as for c-exp.y.
414         Use new rewind_to_char function to rewind the input for
415         expression-delimiting tokens.
416         (rewind_to_char): New function.
417
418 2013-03-11  Pedro Alves  <palves@redhat.com>
419             Jan Kratochvil  <jan.kratochvil@redhat.com>
420
421         * configure: Regenerate.
422         * configure.ac (check dynamic export flag): Link python test with
423         $PYTHON_LIBS.
424
425 2013-03-11  Doug Evans  <dje@google.com>
426             Keith Seitz  <keiths@redhat.com>
427
428         * linespec.c (find_linespec_symbols): Call find_function_symbols
429         first, and then call lookup_prefix_sym/find_method.
430
431 2013-03-11  Pedro Alves  <palves@redhat.com>
432
433         * charset.c (convert_between_encodings): Don't cast between
434         different pointer to pointer types.  Instead, make the 'inp' local
435         be of the type iconv expects.
436         (wchar_iterate): Don't cast between different pointer to pointer
437         types.  Instead, use new pointer local of the type iconv expects.
438         * target.c (target_read_stralloc, target_fileio_read_stralloc):
439         Add new local of type char pointer, and use it to get a
440         char/string view of the byte buffer, instead of casting between
441         pointer to pointer types.
442
443 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
444
445         * remote.c (remote_set_trace_buffer_size): Move != operator
446         to the start of next line to fix an ARI warning.
447
448 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
449
450         * NEWS: Add record changes.
451
452 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
453
454         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
455         the instruction history disassembly.
456         * disasm.c (dump_insns): Omit the pc prefix, if requested.
457         * disasm.h (DISASSEMBLY_OMIT_PC): New.
458
459 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
460
461         * Makefile.in (SFILES): Add record-btrace.c
462         (COMMON_OBS): Add record-btrace.o
463         * record-btrace.c: New.
464         * objfiles.c: Include btrace.h.
465         (free_objfile): call btrace_free_objfile.
466
467 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
468
469         * target.c (target_call_history, target_call_history_from,
470         target_call_history_range): New.
471         * target.h (target_ops) <to_call_history, to_call_history_from,
472         to_call_history_range>: New fields.
473         (target_call_history, target_call_history_from,
474         target_call_history_range): New declaration.
475         * record.c (get_call_history_modifiers, cmd_record_call_history,
476         record_call_history_size): New.
477         (_initialize_record): Add the "record function-call-history" command.
478         Add "set/show record function-call-history-size" commands.
479         * record.h (record_print_flag): New.
480
481 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
482
483         * target.h (target_ops) <to_insn_history, to_insn_history_from,
484         to_insn_history_range>: New fields.
485         (target_insn_history): New.
486         (target_insn_history_from): New.
487         (target_insn_history_range): New.
488         * target.c (target_insn_history): New.
489         (target_insn_history_from): New.
490         (target_insn_history_range): New.
491         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
492         (record_insn_history_size): New.
493         (get_insn_number): New.
494         (get_context_size): New.
495         (no_chunk): New.
496         (get_insn_history_modifiers): New.
497         (cmd_record_insn_history): New.
498         (_initialize_record): Add "set/show record instruction-history-size"
499         command. Add "record instruction-history" command.
500
501 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
502
503         * record.h (record_disconnect): New.
504         (record_detach): New.
505         (record_mourn_inferior): New.
506         (record_kill): New.
507         * record-full.c (record_disconnect, record_detach,
508         record_mourn_inferior, record_kill): Move to...
509         * record.c: ...here.
510         (DEBUG): New.
511         (record_stop): New.
512         (record_unpush): New.
513         (cmd_record_stop): Call record_stop. Replace unpush_target
514         call with record_unpush call.
515         (record_disconnect, record_detach): Assert that the target
516         is of record stratum. Call record_unpush, record_stop, and
517         DEBUG.
518         (record_mourn_inferior, record_kill): Assert that the target
519         is of record stratum. Call record_unpush and DEBUG.
520
521 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
522
523         * record-full.h, record-full.c (record_memory_query): Rename
524         to ...
525         (record_full_memory_query): ...this. Update all users.
526         (record_arch_list_add_reg): Rename to ...
527         (record_full_arch_list_add_reg): ...this. Update all users.
528         (record_arch_list_add_mem): Rename to ...
529         (record_full_arch_list_add_mem): ...this. Update all users.
530         (record_arch_list_add_end): Rename to ...
531         (record_full_arch_list_add_end): ...this. Update all users.
532         (record_gdb_operation_disable_set): Rename to ...
533         (record_full_gdb_operation_disable_set): ...this.
534         Update all users.
535
536 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
537
538         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
539         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
540         (RECORD_IS_REPLAY): Renamed to ...
541         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
542         (RECORD_FILE_MAGIC): Renamed to ...
543         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
544         (record_mem_entry): Renamed to ...
545         (record_full_mem_entry): ... this. Updated all users.
546         (record_reg_entry): Renamed to ...
547         (record_full_reg_entry): ... this. Updated all users.
548         (record_end_entry): Renamed to ...
549         (record_full_end_entry): ... this. Updated all users.
550         (record_type) <record_end, record_reg, record_mem>: Renamed
551         to ...
552         (record_full_type) <record_full_end, record_full_reg,
553         record_full_mem>: ... this. Updated all users.
554         (record_entry): Renamed to ...
555         (record_full_entry): ... this. Updated all users.
556         (record_core_buf_entry): Renamed to ...
557         (record_full_core_buf_entry): ... this. Updated all users.
558         (record_core_regbuf): Renamed to ...
559         (record_full_core_regbuf): ... this. Updated all users.
560         (record_core_start): Renamed to ...
561         (record_full_core_start): ... this. Updated all users.
562         (record_core_end): Renamed to ...
563         (record_full_core_end): ... this. Updated all users.
564         (record_core_buf_list): Renamed to ...
565         (record_full_core_buf_list): ... this. Updated all users.
566         (record_first): Renamed to ...
567         (record_full_first): ... this. Updated all users.
568         (record_list): Renamed to ...
569         (record_full_list): ... this. Updated all users.
570         (record_arch_list_head): Renamed to ...
571         (record_full_arch_list_head): ... this. Updated all users.
572         (record_arch_list_tail): Renamed to ...
573         (record_full_arch_list_tail): ... this. Updated all users.
574         (record_stop_at_limit): Renamed to ...
575         (record_full_stop_at_limit): ... this. Updated all users.
576         (record_insn_max_num): Renamed to ...
577         (record_full_insn_max_num): ... this. Updated all users.
578         (record_insn_num): Renamed to ...
579         (record_full_insn_num): ... this. Updated all users.
580         (record_insn_count): Renamed to ...
581         (record_full_insn_count): ... this. Updated all users.
582         (record_ops): Renamed to ...
583         (record_full_ops): ... this. Updated all users.
584         (record_core_ops): Renamed to ...
585         (record_full_core_ops): ... this. Updated all users.
586         (set_record_cmdlist): Renamed to ...
587         (set_record_full_cmdlist): ... this. Updated all users.
588         (show_record_cmdlist): Renamed to ...
589         (show_record_full_cmdlist): ... this. Updated all users.
590         (record_cmdlist): Renamed to ...
591         (record_full_cmdlist): ... this. Updated all users.
592         (record_beneath_to_resume_ops): Renamed to ...
593         (record_full_beneath_to_resume_ops): ... this. Updated all users.
594         (record_beneath_to_resume): Renamed to ...
595         (record_full_beneath_to_resume): ... this. Updated all users.
596         (record_beneath_to_wait_ops): Renamed to ...
597         (record_full_beneath_to_wait_ops): ... this. Updated all users.
598         (record_beneath_to_wait): Renamed to ...
599         (record_full_beneath_to_wait): ... this. Updated all users.
600         (record_beneath_to_store_registers_ops): Renamed to ...
601         (record_full_beneath_to_store_registers_ops): ... this.
602         Updated all users.
603         (record_beneath_to_store_registers): Renamed to ...
604         (record_full_beneath_to_store_registers): ... this.
605         Updated all users.
606         (record_beneath_to_xfer_partial_ops): Renamed to ...
607         (record_full_beneath_to_xfer_partial_ops): ... this.
608         Updated all users.
609         (record_beneath_to_xfer_partial): Renamed to ...
610         (record_full_beneath_to_xfer_partial): ... this.
611         Updated all users.
612         (record_beneath_to_insert_breakpoint): Renamed to ...
613         (record_full_beneath_to_insert_breakpoint): ... this.
614         Updated all users.
615         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
616         (record_full_beneath_to_stopped_by_watchpoint): ... this.
617         Updated all users.
618         (record_beneath_to_stopped_data_address): Renamed to ...
619         (record_full_beneath_to_stopped_data_address): ... this.
620         Updated all users.
621         (record_beneath_to_async): Renamed to ...
622         (record_full_beneath_to_async): ... this. Updated all users.
623         (record_goto_insn): Renamed to ...
624         (record_full_goto_insn): ... this. Updated all users.
625         (record_save): Renamed to ...
626         (record_full_save): ... this. Updated all users.
627         (record_reg_alloc): Renamed to ...
628         (record_full_reg_alloc): ... this. Updated all users.
629         (record_reg_release): Renamed to ...
630         (record_full_reg_release): ... this. Updated all users.
631         (record_mem_alloc): Renamed to ...
632         (record_full_mem_alloc): ... this. Updated all users.
633         (record_mem_release): Renamed to ...
634         (record_full_mem_release): ... this. Updated all users.
635         (record_end_alloc): Renamed to ...
636         (record_full_end_alloc): ... this. Updated all users.
637         (record_end_release): Renamed to ...
638         (record_full_end_release): ... this. Updated all users.
639         (record_entry_release): Renamed to ...
640         (record_full_entry_release): ... this. Updated all users.
641         (record_list_release): Renamed to ...
642         (record_full_list_release): ... this. Updated all users.
643         (record_list_release_following): Renamed to ...
644         (record_full_list_release_following): ... this.
645         Updated all users.
646         (record_list_release_first): Renamed to ...
647         (record_full_list_release_first): ... this. Updated all users.
648         (record_arch_list_add): Renamed to ...
649         (record_full_arch_list_add): ... this. Updated all users.
650         (record_get_loc): Renamed to ...
651         (record_full_get_loc): ... this. Updated all users.
652         (record_check_insn_num): Renamed to ...
653         (record_full_check_insn_num): ... this. Updated all users.
654         (record_arch_list_cleanups): Renamed to ...
655         (record_full_arch_list_cleanups): ... this. Updated all users.
656         (record_message): Renamed to ...
657         (record_full_message): ... this. Updated all users.
658         (record_message_wrapper): Renamed to ...
659         (record_full_message_wrapper): ... this. Updated all users.
660         (record_message_wrapper_safe): Renamed to ...
661         (record_full_message_wrapper_safe): ... this. Updated all users.
662         (record_gdb_operation_disable): Renamed to ...
663         (record_full_gdb_operation_disable): ... this. Updated all users.
664         (record_hw_watchpoint): Renamed to ...
665         (record_full_hw_watchpoint): ... this. Updated all users.
666         (record_exec_insn): Renamed to ...
667         (record_full_exec_insn): ... this. Updated all users.
668         (record_restore): Renamed to ...
669         (record_full_restore): ... this. Updated all users.
670         (record_async_inferior_event_token): Renamed to ...
671         (record_full_async_inferior_event_token): ... this.
672         Updated all users.
673         (record_async_inferior_event_handler): Renamed to ...
674         (record_full_async_inferior_event_handler): ... this.
675         Updated all users.
676         (record_core_open_1): Renamed to ...
677         (record_full_core_open_1): ... this. Updated all users.
678         (record_open_1): Renamed to ...
679         (record_full_open_1): ... this. Updated all users.
680         (record_open): Renamed to ...
681         (record_full_open): ... this. Updated all users.
682         (record_close): Renamed to ...
683         (record_full_close): ... this. Updated all users.
684         (record_resume_step): Renamed to ...
685         (record_full_resume_step): ... this. Updated all users.
686         (record_resumed): Renamed to ...
687         (record_full_resumed): ... this. Updated all users.
688         (record_execution_dir): Renamed to ...
689         (record_full_execution_dir): ... this. Updated all users.
690         (record_resume): Renamed to ...
691         (record_full_resume): ... this. Updated all users.
692         (record_get_sig): Renamed to ...
693         (record_full_get_sig): ... this. Updated all users.
694         (record_sig_handler): Renamed to ...
695         (record_full_sig_handler): ... this. Updated all users.
696         (record_wait_cleanups): Renamed to ...
697         (record_full_wait_cleanups): ... this. Updated all users.
698         (record_wait_1): Renamed to ...
699         (record_full_wait_1): ... this. Updated all users.
700         (record_wait): Renamed to ...
701         (record_full_wait): ... this. Updated all users.
702         (record_stopped_by_watchpoint): Renamed to ...
703         (record_full_stopped_by_watchpoint): ... this. Updated all users.
704         (record_disconnect): Renamed to ...
705         (record_full_disconnect): ... this. Updated all users.
706         (record_detach): Renamed to ...
707         (record_full_detach): ... this. Updated all users.
708         (record_mourn_inferior): Renamed to ...
709         (record_full_mourn_inferior): ... this. Updated all users.
710         (record_kill): Renamed to ...
711         (record_full_kill): ... this. Updated all users.
712         (record_stopped_data_address): Renamed to ...
713         (record_full_stopped_data_address): ... this. Updated all users.
714         (record_registers_change): Renamed to ...
715         (record_full_registers_change): ... this. Updated all users.
716         (record_store_registers): Renamed to ...
717         (record_full_store_registers): ... this. Updated all users.
718         (record_xfer_partial): Renamed to ...
719         (record_full_xfer_partial): ... this. Updated all users.
720         (record_breakpoint): Renamed to ...
721         (record_full_breakpoint): ... this. Updated all users.
722         (record_breakpoint_p): Renamed to ...
723         (record_full_breakpoint_p): ... this. Updated all users.
724         (record_breakpoints): Renamed to ...
725         (record_full_breakpoints): ... this. Updated all users.
726         (record_sync_record_breakpoints): Renamed to ...
727         (record_full_sync_record_breakpoints): ... this.
728         Updated all users.
729         (record_init_record_breakpoints): Renamed to ...
730         (record_full_init_record_breakpoints): ... this.
731         Updated all users.
732         (record_insert_breakpoint): Renamed to ...
733         (record_full_insert_breakpoint): ... this. Updated all users.
734         (record_remove_breakpoint): Renamed to ...
735         (record_full_remove_breakpoint): ... this. Updated all users.
736         (record_can_execute_reverse): Renamed to ...
737         (record_full_can_execute_reverse): ... this. Updated all users.
738         (record_get_bookmark): Renamed to ...
739         (record_full_get_bookmark): ... this. Updated all users.
740         (record_goto_bookmark): Renamed to ...
741         (record_full_goto_bookmark): ... this. Updated all users.
742         (record_async): Renamed to ...
743         (record_full_async): ... this. Updated all users.
744         (record_can_async_p): Renamed to ...
745         (record_full_can_async_p): ... this. Updated all users.
746         (record_is_async_p): Renamed to ...
747         (record_full_is_async_p): ... this. Updated all users.
748         (record_execution_direction): Renamed to ...
749         (record_full_execution_direction): ... this. Updated all users.
750         (record_info): Renamed to ...
751         (record_full_info): ... this. Updated all users.
752         (record_delete): Renamed to ...
753         (record_full_delete): ... this. Updated all users.
754         (record_is_replaying): Renamed to ...
755         (record_full_is_replaying): ... this. Updated all users.
756         (record_goto_entry): Renamed to ...
757         (record_full_goto_entry): ... this. Updated all users.
758         (record_goto_begin): Renamed to ...
759         (record_full_goto_begin): ... this. Updated all users.
760         (record_goto_end): Renamed to ...
761         (record_full_goto_end): ... this. Updated all users.
762         (record_goto): Renamed to ...
763         (record_full_goto): ... this. Updated all users.
764         (init_record_ops): Renamed to ...
765         (init_record_full_ops): ... this. Updated all users.
766         (record_core_resume): Renamed to ...
767         (record_full_core_resume): ... this. Updated all users.
768         (record_core_kill): Renamed to ...
769         (record_full_core_kill): ... this. Updated all users.
770         (record_core_fetch_registers): Renamed to ...
771         (record_full_core_fetch_registers): ... this. Updated all users.
772         (record_core_prepare_to_store): Renamed to ...
773         (record_full_core_prepare_to_store): ... this. Updated all users.
774         (record_core_store_registers): Renamed to ...
775         (record_full_core_store_registers): ... this. Updated all users.
776         (record_core_xfer_partial): Renamed to ...
777         (record_full_core_xfer_partial): ... this. Updated all users.
778         (record_core_insert_breakpoint): Renamed to ...
779         (record_full_core_insert_breakpoint): ... this. Updated all users.
780         (record_core_remove_breakpoint): Renamed to ...
781         (record_full_core_remove_breakpoint): ... this. Updated all users.
782         (record_core_has_execution): Renamed to ...
783         (record_full_core_has_execution): ... this. Updated all users.
784         (init_record_core_ops): Renamed to ...
785         (init_record_full_core_ops): ... this. Updated all users.
786         (cmd_record_restore): Renamed to ...
787         (cmd_record_full_restore): ... this. Updated all users.
788         (record_save_cleanups): Renamed to ...
789         (record_full_save_cleanups): ... this. Updated all users.
790         (cmd_record_start): Renamed to ...
791         (cmd_record_full_start): ... this. Updated all users.
792         (set_record_insn_max_num): Renamed to ...
793         (set_record_full_insn_max_num): ... this. Updated all users.
794         (set_record_command): Renamed to ...
795         (set_record_full_command): ... this. Updated all users.
796         (show_record_command): Renamed to ...
797         (show_record_full_command): ... this. Updated all users.
798         (_initialize_record): Renamed to ...
799         (_initialize_record_full): ... this. Updated all users.
800
801 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
802
803         * record.h: Split into this and ...
804         * record-full.h: ... this.
805         * record.c: Split into this and ...
806         * record-full.c: ... this.
807         * target.h (target_ops): Add new fields to_info_record,
808         to_save_record, to_delete_record, to_record_is_replaying,
809         to_goto_record_begin, to_goto_record_end, to_goto_record.
810         (target_info_record): New.
811         (target_save_record): New.
812         (target_supports_delete_record): New.
813         (target_delete_record): New.
814         (target_record_is_replaying): New.
815         (target_goto_record_begin): New.
816         (target_goto_record_end): New.
817         (target_goto_record): New.
818         * target.c (target_info_record): New.
819         (target_save_record): New.
820         (target_supports_delete_record): New.
821         (target_delete_record): New.
822         (target_record_is_replaying): New.
823         (target_goto_record_begin): New.
824         (target_goto_record_end): New.
825         (target_goto_record): New.
826         * record.h: Declare struct cmd_list_element.
827         (record_cmdlist): New declaration.
828         (set_record_cmdlist): New declaration.
829         (show_record_cmdlist): New declaration.
830         (info_record_cmdlist): New declaration.
831         (cmd_record_goto): New declaration.
832         * record.c: Remove unnecessary includes.
833         Include inferior.h.
834         (cmd_record_goto): Remove declaration.
835         (record_cmdlist): Now extern. Initialize.
836         (set_record_cmdlist): Now extern. Initialize.
837         (show_record_cmdlist): Now extern. Initialize.
838         (info_record_cmdlist): Now extern. Initialize.
839         (find_record_target): New.
840         (require_record_target): New.
841         (cmd_record_start): Update.
842         (cmd_record_delete): Remove target-specific code.
843         Call target_delete_record.
844         (cmd_record_stop): Unpush any record target.
845         (set_record_insn_max_num): Move to record-full.c
846         (set_record_command): Add comment.
847         (show_record_command): Add comment.
848         (info_record_command): Update comment.
849         Remove target-specific code.
850         Call the record target's to_info_record.
851         (cmd_record_start): New.
852         (cmd_record_goto): Now extern.
853         Remove target-specific code.
854         Call target_goto_begin,  target_goto_end, or target_goto.
855         (_initialize_record): Move record target ops initialization to
856         record-full.c.
857         Change "record" command help text.
858         Move "record restore", "record set", and "record show" commands to
859         record-full.c.
860         * Makefile.in (SFILES): Add record-full.c.
861         (HFILES_NO_SRCDIR): Add record-full.h.
862         (COMMON_OBS): Add record-full.o.
863         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
864         * arm-tdep.c: Include record-full.h.
865         * i386-linux-tdep.c: Include record-full.h instead of record.h.
866         * i386-tdep.c: Include record-full.h.
867         * infrun.c: Include record-full.h.
868         * linux-record.c: Include record-full.h.
869         * moxie-tdep.c: Include record-full.h.
870         * record-full.c: Include record-full.h.
871         Change module comment.
872         (set_record_full_cmdlist): New.
873         (show_record_full_cmdlist): New.
874         (record_full_cmdlist): New.
875         (record_goto_insn): New declaration.
876         (record_save): New declaration.
877         (record_check_insn_num): Change query string.
878         (record_info): New.
879         (record_delete): New.
880         (record_is_replaying): New.
881         (record_goto_entry): New.
882         (record_goto_begin): New.
883         (record_goto_end): New.
884         (record_goto): New.
885         (init_record_ops): Update.
886         (init_record_core_ops): Update.
887         (cmd_record_save): Rename to record_save. Remove target and arg checks.
888         (cmd_record_start): New.
889         (set_record_insn_max_num): Moved from record.c
890         (set_record_full_command): New.
891         (show_record_full_command): New.
892         (_initialize_record_full): New.
893
894 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
895
896         * target.h (add_deprecated_target_alias): New.
897         * target.c (add_deprecated_target_alias): New.
898
899 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
900
901         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
902         and signal.h.
903         (linux_supports_btrace): Add kernel and
904         cpuid check.
905         (kernel_supports_btrace): New function.
906         (cpu_supports_btrace): New function.
907         (intel_supports_btrace): New function.
908
909 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
910
911         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
912         * remote.c: Include btrace.h.
913         (struct btrace_target_info): New struct.
914         (remote_supports_btrace): New function.
915         (send_Qbtrace): New function.
916         (remote_enable_btrace): New function.
917         (remote_disable_btrace): New function.
918         (remote_teardown_btrace): New function.
919         (remote_read_btrace): New function.
920         (init_remote_ops): Add btrace ops.
921         (enum <unnamed>): Add btrace packets.
922         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
923         (_initialize_remote): Add packet configuration for branch tracing.
924
925 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
926
927         * features/btrace.dtd: New file.
928         * Makefile.in (XMLFILES): Add btrace.dtd.
929         * btrace.h (parse_xml_btrace): New declaration.
930         * btrace.c: Include xml-support.h.
931         (parse_xml_btrace): New function.
932         (parse_xml_btrace_block): New function.
933         (block_attributes): New struct.
934         (btrace_attributes): New struct.
935         (btrace_children): New struct.
936         (btrace_elements): New struct.
937
938 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
939
940         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
941         (amd64_linux_enable_btrace): New.
942         (amd64_linux_disable_btrace): New.
943         (amd64_linux_teardown_btrace): New.
944         (_initialize_amd64_linux_nat): Initialize btrace ops.
945         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
946         (i386_linux_enable_btrace): New.
947         (i386_linux_disable_btrace): New.
948         (i386_linux_teardown_btrace): New.
949         (_initialize_i386_linux_nat): Initialize btrace ops.
950         * config/i386/linux.mh: Add linux-btrace.o.
951         * config/i386/linux64.mh: Add linux-btrace.o.
952
953 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
954
955         * common/linux_btrace.h: New file.
956         * common/linux_btrace.c: New file.
957         * Makefile.in (SFILES): Add btrace.c.
958         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
959         (COMMON_OBS): Add btrace.o.
960         (linux-btrace.o): New rule.
961
962 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
963
964         * target.h: Include btrace.h.
965         (struct target_ops) <to_supports_btrace, to_enable_btrace,
966         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
967         * target.c (target_supports_btrace): New function.
968         (target_enable_btrace): New function.
969         (target_disable_btrace): New function.
970         (target_teardown_btrace): New function.
971         (target_read_btrace): New function.
972         * btrace.h: New file.
973         * btrace.c: New file.
974         * Makefile.in: Add btrace.c.
975         * gdbthread.h: Include btrace.h.
976         (struct thread_info): Add btrace field.
977         * thread.c: Include btrace.h.
978         (clear_thread_inferior_resources): Call target_teardown_btrace.
979         * common/btrace-common.h: New file.
980
981 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
982
983         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
984         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
985         kill_status to outer block.
986
987 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
988
989         Fix entry-values if the callee called a noreturn function.
990         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
991         get_frame_address_in_block.  Add new comment.
992
993 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
994
995         Fix entry-values in C++ across CUs.
996         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
997         lookup_minimal_symbol.  Add a comment.
998         * dwarf2read.c
999         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
1000         DW_AT_linkage_name.
1001
1002 2013-03-08  Yao Qi  <yao@codesourcery.com>
1003
1004         * tracepoint.c (_initialize_tracepoint): Indent the code.
1005
1006 2013-03-08  Pedro Alves  <palves@redhat.com>
1007
1008         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
1009         (parse_find_args, find_command): Change type of pattern buffer
1010         locals to 'gdb_byte *'.
1011
1012 2013-03-08  Stan Shebs  <stan@codesourcery.com>
1013             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1014
1015         * NEWS: Mention set and show trace-buffer-size commands.
1016         Mention new packet.
1017         * target.h (struct target_ops): New method
1018         to_set_trace_buffer_size.
1019         (target_set_trace_buffer_size): New macro.
1020         * target.c (update_current_target): Set up new method.
1021         * tracepoint.c (trace_buffer_size): New global.
1022         (start_tracing): Send it to the target.
1023         (set_trace_buffer_size): New function.
1024         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
1025         * remote.c (remote_set_trace_buffer_size): New function.
1026         (_initialize_remote): Use it.
1027         (QTBuffer:size) New remote command.
1028         (PACKET_QTBuffer_size): New enum.
1029         (remote_protocol_features): Add an entry for
1030         PACKET_QTBuffer_size.
1031
1032 2013-03-08  Tom Tromey  <tromey@redhat.com>
1033
1034         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
1035         variable.
1036
1037 2013-03-07  Pedro Alves  <palves@redhat.com>
1038
1039         * target.c (target_read_stralloc, target_fileio_read_alloc):
1040         *Cast pointer to 'gdb_byte *' in target call.
1041
1042 2013-03-07  Pedro Alves  <palves@redhat.com>
1043
1044         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
1045         call.
1046
1047 2013-03-07  Keith Seitz  <keiths@redhat.com>
1048
1049         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
1050         (trace_pass_command): Likewise.
1051         * cli/cli-cmds.c: Include cli/cli-utils.h.
1052         (source_command): Use skip-spaces.
1053         (disassemble_command): Likewise.
1054         * findcmd.c: Include cli/cli-utils.h.
1055         (parse_find_args): Use skip_spaces.
1056         * go32-nat.c: Include cli/cli-utils.h.
1057         (go32_sldt): Use skip_spaces.
1058         (go32_sgdt): Likewise.
1059         (go32_sidt): Likewise.
1060         (go32_pde): Likewise.
1061         (go32_pte): Likewise.
1062         (go32_pte_for_address): Likewise.
1063         * infcmd.c: Include cli/cli-utils.h.
1064         (registers_info): Use skip_spaces.
1065         * linux-tdep.c (read_mapping): Use skip_spaces_const.
1066         (linux_info_proc): Likewise.
1067         * linux-thread-db.c: Include cli/cli-utils.h.
1068         (info_auto_load_libthread_db): Use skip_spaces_const.
1069         * m32r-rom.c: Include cli/cli-utils.h.
1070         (m32r_upload_command): Use skip_spaces.
1071         * maint.c: Include cli/cli-utils.h.
1072         (maintenance_translate_address): Use skip_spaces.
1073         * mi/mi-parse.c: Include cli/cli-utils.h.
1074         (mi_parse_argv): Use skip_spaces.
1075         (mi_parse): Likewise.
1076         * minsyms.c: Include cli/cli-utils.h.
1077         (msymbol_hash_iw): Use skip_spaces_const.
1078         * objc-lang.c: Include cli/cli-utils.h.
1079         (parse_selector): Use skip_spaces.
1080         (parse_method): Likewise.
1081         * python/python.c: Include cli/cli-utils.h.
1082         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
1083         (python_command)[HAVE_PYTHON]: Likewise.
1084         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
1085         * remote-m32r-sdi.c: Include cli/cli-utils.h.
1086         (m32r_load): Use skip_spaces.
1087         * serial.c: Include cli/cli-utils.h.
1088         (serial_open): Use skip_spaces_const.
1089         * stack.c: Include cli/cli-utils.h.
1090         (parse_frame_specification_1): Use skip_spaces_const.
1091         * symfile.c: Include cli/cli-utils.h.
1092         (set_ext_lang_command): Use skip_spaces.
1093         * symtab.c: Include cli/cli-utils.h.
1094         (rbreak_command): Use skip_spaces.
1095         * thread.c (thread_name_command): Use skip_spaces.
1096         * tracepoint.c (validate_actionline): Use skip_spaces.
1097         (encode_actions_1): Likewise.
1098         (trace_find_range_command): Likewise.
1099         (trace_find_outside_command): Likewise.
1100         (trace_dump_actions): Likewise.
1101
1102 2013-03-07  Pedro Alves  <palves@redhat.com>
1103
1104         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
1105         * expprint.c (print_subexp_standard): Likewise.
1106         * utils.c (host_char_to_target): Likewise.
1107         * valprint.c (generic_emit_char, generic_printstr): Likewise.
1108         * varobj.c (value_get_print_value): Change type of local to char*.
1109         Cast it gdb_byte * in call to language printer.
1110
1111 2013-03-07  Pedro Alves  <palves@redhat.com>
1112
1113         * charset.c (struct wchar_iterator) <input>: Change type to 'const
1114         gdb_byte *'.
1115         (make_wchar_iterator): Remove cast to char*.
1116         (wchar_iterate): Change type of local.
1117
1118 2013-03-07  Pedro Alves  <palves@redhat.com>
1119
1120         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
1121         for 'regcache->register_status'.
1122
1123 2013-03-07  Pedro Alves  <palves@redhat.com>
1124
1125         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
1126         int.
1127
1128 2013-03-07  Pedro Alves  <palves@redhat.com>
1129
1130         * stap-probe.c (handle_stap_probe): Add cast to char*.
1131
1132 2013-03-07  Pedro Alves  <palves@redhat.com>
1133
1134         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
1135         RECORD_MSGRCV>: Pass a signed variable to
1136         regcache_raw_read_signed, instead of an unsigned one.
1137
1138 2013-03-07  Pedro Alves  <palves@redhat.com>
1139
1140         * remote-notif.c (notif_debug): Change type to int.
1141         * remote-notif.h (notif_debug): Likewise.
1142
1143 2013-03-07  Pedro Alves  <palves@redhat.com>
1144
1145         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
1146
1147 2013-03-07  Pedro Alves  <palves@redhat.com>
1148
1149         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
1150         * remote.h (hex2bin, bin2hex): ... here.
1151         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
1152
1153 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
1154
1155         * utils.c (initialize_utils): Improve doc strings of "set/show
1156         width", "set/show height", and "set/show pagination".
1157
1158 2013-03-06  Keith Seitz  <keiths@redhat.com>
1159
1160         * ax-gdb.c (gen_printf): Make FORMAT const.
1161         * ax-gdb.h (gen_printf): Likewise.
1162         * ax-general.c (ax_string): Make STR const.
1163         * ax.h (ax_string): Likewise.
1164
1165 2013-03-06  Doug Evans  <dje@google.com>
1166
1167         * elfread.c (elf_symfile_read): Move debugging printf to more
1168         logical location.
1169
1170 2013-03-06  Pedro Alves  <palves@redhat.com>
1171
1172         * python/py-utils.c (target_string_to_unicode): Delete function.
1173         * python/python-internal.h (target_string_to_unicode): Delete
1174         declaration.
1175
1176 2013-03-06  Pierre Muller  <muller@sourceware.org>
1177
1178         * linespec.c (get_current_search_block): ARI fix, use (void)
1179         for empty parameter list.
1180
1181 2013-03-05  Doug Evans  <dje@google.com>
1182
1183         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
1184         of old ada_lookup_symbol_list.  In !full_search case, don't
1185         search superblocks.
1186         (ada_lookup_symbol_list): Delete arg full_search, all callers
1187         updated.  Call ada_lookup_symbol_list_worker.
1188         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
1189         * ada-lang.h (ada_lookup_symbol_list): Update.
1190         * language.h (language_defn): Update comment for
1191         la_iterate_over_symbols.
1192         * linespec.c (iterate_over_file_blocks): New function.
1193         (iterate_over_all_matching_symtabs): Call it.
1194         (lookup_prefix_sym): Ditto.
1195         (get_current_search_block): New function.
1196         (get_search_block): Delete.
1197         (find_label_symbols): Call get_current_search_block.
1198         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
1199         * symtab.c (iterate_over_symbols): Don't search superblocks.
1200
1201 2013-03-05  Yao Qi  <yao@codesourcery.com>
1202
1203         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
1204         parameter VAR's type from "unsigned int" to "int".
1205         * command.h (var_zuinteger_unlimited): Update its comments.
1206         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
1207
1208 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
1209
1210         * NEWS: Mention new target x86_64-*-cygwin*.
1211
1212 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
1213
1214         * configure.host: Add x86_64-*-cygwin* as host.
1215         * configure.tgt: Add x86_64-*-cygwin* as target.
1216         * config/i386/cygwin64.mh: New file.
1217
1218 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1219
1220         * linespec.c (decode_line_2): Fix duplicate request off by two message.
1221
1222 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1223
1224         * linespec.c (struct linespec_canonical_name): New.
1225         (struct linespec_state): Change canonical_names type to it.
1226         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
1227         xrealloc element size.  Initialize the different CANONICAL fields.
1228         (canonical_to_fullform): New.
1229         (filter_results): Use it.  Add variables canonical, fullform and
1230         cleanup.
1231         (struct decode_line_2_item, decode_line_2_compare_items): New.
1232         (decode_line_2): Remove variables iter and item_names, add variables
1233         items and items_count.  Modify the code for these new variables.
1234
1235 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
1236
1237         * coff-pe-read.c (read_pe_exported_syms): Don't return without
1238         calling do_cleanup.
1239
1240 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
1241
1242         * tracepoint.c (build_traceframe_info): Add code for byte order.
1243
1244 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
1245
1246         * v850-tdep.c: (v850e2_register_name): Revise system register
1247         names to match current V850E2M architecture specifications.
1248         Update register number enum comments too.
1249         
1250 2013-03-01  Jiong Wang  <jiwang@tilera.com>
1251             Pedro Alves  <palves@redhat.com>
1252
1253         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
1254         to END_ADDR.
1255         (tilegx_skip_prologue): Limit prologue analysis to section end.
1256
1257 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1258
1259         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
1260         use it.
1261
1262 2013-03-01  Pedro Alves  <palves@redhat.com>
1263
1264         Use gdb_byte for bytes from the program being debugged.
1265
1266         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
1267         Change type of local 'buf' to gdb_byte.
1268         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
1269         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1270         * cris-tdep.c (cris_sigcontext_addr)
1271         (cris_sigtramp_frame_unwind_cache): Likewise.
1272         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
1273         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
1274         Likewise.
1275         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
1276         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
1277         (hppa32_hpux_search_dummy_call_sequence)
1278         (hppa_hpux_supply_save_state): Likewise.
1279         * hppa-linux-tdep.c (insns_match_pattern)
1280         (hppa_linux_find_global_pointer): Likewise.
1281         * hppa-tdep.c (hppa_in_function_epilogue_p)
1282         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1283         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
1284         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
1285         (i386fbsd_collect_uthread): Likewise.
1286         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
1287         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
1288         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
1289         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
1290         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
1291         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
1292         (ia64_libunwind_frame_prev_register)
1293         (ia64_libunwind_sigtramp_frame_this_id)
1294         (ia64_find_global_pointer_from_dynamic_section)
1295         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
1296         (ia64_unwind_pc): Likewise.
1297         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
1298         * m68hc11-tdep.c (m68hc11_push_dummy_call)
1299         (m68hc11_extract_return_value): Likewise.
1300         * m68klinux-nat.c (fetch_register, store_register): Likewise.
1301         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
1302         (mep_get_insn, mep_push_dummy_call): Likewise.
1303         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1304         (mips_linux_in_dynsym_stub): Likewise.
1305         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
1306         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1307         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
1308         to gdb_byte.
1309         * remote-mips.c (mips_set_register): Likewise.
1310         * remote-sim.c (gdbsim_fetch_register): Likewise.
1311         * score-tdep.c (score7_fetch_inst): Change type of parameter
1312         'memblock' and local 'buf' to gdb_byte.
1313         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
1314         Change type of local 'buf' to gdb_byte.  Adjust.
1315         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
1316         to gdb_byte**.
1317         (score7_analyze_prologue): Change type of 'memblock' and
1318         'memblock_ptr' locals to gdb_byte*.
1319         * sh64-tdep.c (sh64_extract_return_value)
1320         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
1321         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
1322         * solib-pa64.c (pa64_solib_create_inferior_hook)
1323         (pa64_open_symbol_file_object): Remove local 'buf'.
1324         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
1325         (som_open_symbol_file_object): Likewise.
1326         * solib-spu.c (spu_current_sos): Likewise.
1327         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1328         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
1329         (spu_store_registers): Likewise.
1330         * target.c (debug_print_register): Likewise.
1331         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
1332         * xstormy16-tdep.c (xstormy16_store_return_value)
1333         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
1334         (xstormy16_find_jmp_table_entry): Likewise.
1335
1336 2013-03-01  Jiong Wang  <jiwang@tilera.com>
1337
1338         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
1339         (tilegx_gdbarch_init): Install it.
1340
1341 2013-02-28  Tom Tromey  <tromey@redhat.com>
1342
1343         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
1344         PyLong_Check.
1345
1346 2013-02-28  Doug Evans  <dje@google.com>
1347
1348         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
1349         * python/python.c (gdbpy_find_pc_line): Ditto.
1350
1351 2013-02-28  Tom Tromey  <tromey@redhat.com>
1352
1353         * contrib/excheck.py: New file.
1354         * contrib/exsummary.py: New file.
1355         * contrib/gcc-with-excheck: New file.
1356
1357 2013-02-28  Tom Tromey  <tromey@redhat.com>
1358
1359         * python/python.c (gdbpy_print_stack): Call begin_line and
1360         fprintf_filtered inside TRY_CATCH.
1361
1362 2013-02-28  Tom Tromey  <tromey@redhat.com>
1363
1364         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
1365         inside TRY_CATCH.
1366
1367 2013-02-28  Tom Tromey  <tromey@redhat.com>
1368
1369         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
1370         frame_object_to_frame_info inside TRY_CATCH.
1371
1372 2013-02-28  Tom Tromey  <tromey@redhat.com>
1373
1374         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
1375         TRY_CATCH.
1376
1377 2013-02-28  Tom Tromey  <tromey@redhat.com>
1378
1379         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
1380
1381 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
1382
1383         * windows-nat.c: Throughout, fix format strings and casts of
1384         printf-like functions to avoid type related warnings on all
1385         platforms.
1386         (handle_output_debug_string): Fetch context information address
1387         from debug string using string_to_core_addr.
1388
1389 2013-02-27  Jiong Wang  <jiwang@tilera.com>
1390
1391         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
1392         * regformats/reg-tilegx32.dat: New.
1393
1394 2013-02-27  Jiong Wang  <jiwang@tilera.com>
1395
1396         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
1397
1398 2013-02-27  Jiong Wang  <jiwang@tilera.com>
1399
1400         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
1401
1402 2013-02-27  Yao Qi  <yao@codesourcery.com>
1403             Pedro Alves  <palves@redhat.com>
1404
1405         * tracepoint.c (tfile_trace_find): For tfind
1406         pc/tp/range/outside, look for the next trace frame instead of
1407         always starting from frame 0.
1408
1409 2013-02-26  Anthony Green  <green@moxielogic.com>
1410
1411         * configure.tgt: Add support for moxie-*-rtems* target.
1412
1413 2013-02-25  Pedro Alves  <palves@redhat.com>
1414
1415         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
1416         warning text.
1417
1418 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
1419
1420         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
1421         if $fp is used as the virtual frame pointer.
1422
1423 2013-02-23  Alan Modra  <amodra@gmail.com>
1424
1425         * elfread.c (elf_symtab_read): Do not use udata.p here to find
1426         symbol size.
1427         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
1428         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
1429         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
1430         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
1431
1432 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1433
1434         Code cleanup.
1435         * elfread.c (build_id_bfd_get): Make the return type const.
1436         (build_id_verify): Make the check parameter const.
1437         (build_id_to_debug_filename): Make the build_id parameter and variable
1438         data const.
1439         (find_separate_debug_file_by_buildid): Make the variable build_id const.
1440
1441 2013-02-21  Alan Modra  <amodra@gmail.com>
1442
1443         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
1444
1445 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
1446
1447         Add a new method 'disassemble' to gdb.Architecture class.
1448         * python/py-arch.c (archpy_disassmble): Implementation of the
1449         new method gdb.Architecture.disassemble.
1450         (arch_object_methods): Add entry for the new method.
1451
1452 2013-02-20  Jiong Wang  <jiwang@tilera.com>
1453
1454         * MAINTAINERS (Write After Approval): Add myself to the list.
1455
1456 2013-02-19  Pedro Alves  <palves@redhat.com>
1457
1458         Garbage collect 'struct monitor_ops'::load_routine.
1459
1460         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
1461         * monitor.c (monitor_load): No longer call
1462         current_monitor->load_routine.
1463         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
1464         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
1465         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
1466
1467 2013-02-19  Pedro Alves  <palves@redhat.com>
1468
1469         PR gdb/15161
1470
1471         Harmonize with generic_load.
1472
1473         * monitor.c: Include "readline/readline.h".
1474         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
1475         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
1476         long/strtol for the 'load_offset' local.  Error out if no argument
1477         is given or if too many arguments are given.  Tilde expand the
1478         passed in file name.
1479
1480 2013-02-19  Kai Tietz  <ktietz@redhat.com>
1481
1482         PR gdb/15161
1483         * symfile.c (load_section_data): Change type of load_offset
1484         to CORE_ADDR.
1485         (generic_load): User strtoulst instead of strtoul for conversion
1486         of load_offset.
1487
1488 2013-02-19  Jiong Wang  <jiwang@tilera.com>
1489
1490         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
1491          for return address, "lr" register, saved on stack.
1492         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
1493         after we invoke tilegx_analyze_prologue.
1494
1495 2013-02-19  Jiong Wang  <jiwang@tilera.com>
1496
1497         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
1498
1499 2013-02-19  Jiong Wang  <jiwang@tilera.com>
1500
1501         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
1502
1503 2013-02-19  Jiong Wang  <jiwang@tilera.com>
1504
1505         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
1506         (tilegx_write_pc): New function.
1507         (tilegx_cannot_reference_register): Return zero if REGNO
1508         is TILEGX_FAULTNUM_REGNUM.
1509         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
1510         (tilegx_register_name): Add handling of "faultnum" register.
1511         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
1512         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
1513         handling of TILEGX_FAULTNUM_REGNUM.
1514         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
1515
1516 2013-02-19  Jiong Wang  <jiwang@tilera.com>
1517
1518         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
1519         should be aligned to 64bit.
1520
1521 2013-02-19  Kai Tietz  <ktietz@redhat.com>
1522
1523         * windows-nat.c (windows_xfer_memory): Fix debug-output
1524         for LLP64.
1525
1526 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
1527
1528         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
1529         Don't check DSP register number if HAVE_DSP is not set.
1530
1531 2013-02-19  Alan Modra  <amodra@gmail.com>
1532
1533         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
1534         throughout file instead.
1535         (build_id_bfd_get): Update to use new elf_tdata build_id field.
1536         Don't xmalloc return value.
1537         (build_id_verify): Similarly.  Don't xfree.
1538         (build_id_to_debug_filename): Update.
1539         (find_separate_debug_file_by_buildid): Update, don't xfree.
1540
1541 2013-02-18  Tom Tromey  <tromey@redhat.com>
1542
1543         PR gdb/15102:
1544         * dwarf2read.c (read_subrange_type): Use result of
1545         'check_typedef'.
1546
1547 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
1548
1549         * frame.c: Remove one extra white space after #include
1550         directive.
1551
1552 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1553
1554         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
1555
1556 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1557
1558         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
1559         and dir commands into an if block.
1560
1561 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
1562
1563         * python/py-breakpoint (struct pybp_code):  Use int instead of
1564         enum type_code.
1565
1566 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
1567             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1568
1569         * NEWS: Mention new field "trace-file".
1570         * tracepoint.c (trace_status_mi): Output "trace-file" field.
1571         (tfile_open): Record the trace file's filename in the trace
1572         status.
1573         (tfile_files_info): Mention the name of the trace file.
1574         Check the "filename" field explicitely.
1575         (trace_status_command): Explicitely check "filename" field.
1576         (trace_find_command): Ditto.
1577         (trace_find_pc_command): Ditto.
1578         (trace_find_tracepoint_command): Ditto.
1579         (trace_find_line_command): Ditto.
1580         (trace_find_range_command): Ditto.
1581         (trace_find_outside_command): Ditto.
1582         * tracepoint.h (struct trace_status) <from_file>: Rename it
1583         to "filename" and make it hold the trace file's filename
1584         instead of a boolean.
1585         * remote.c (remote_get_trace_status): Initialize "filename"
1586         field with NULL instead of 0.
1587
1588 2013-02-15  Yao Qi  <yao@codesourcery.com>
1589
1590         * remote.c: Fix a typo.
1591
1592 2013-02-14  Pierre Muller  <muller@sourceware.org>
1593
1594         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
1595
1596 2013-02-14  Pedro Alves  <palves@redhat.com>
1597
1598         * utils.c (savestring): Don't #undef it.  Move function to
1599         common/common-utils.c.
1600         * common/common-utils.c: Include gdb_string.h.
1601         (savestring): Move here from utils.c.
1602         * common/common-utils.h (savestring): Declare.
1603
1604 2013-02-14  Pedro Alves  <palves@redhat.com>
1605
1606         * utils.c (savestring): Rename parameter 'size' to 'len'.
1607
1608 2013-02-14  Pedro Alves  <palves@redhat.com>
1609             Yufeng Zhang  <yufeng.zhang@arm.com>
1610
1611         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
1612         (aarch64_inferior_data, struct aarch64_inferior_data):
1613         Delete.
1614         (struct aarch64_process_info): New.
1615         (aarch64_process_list): New global.
1616         (aarch64_find_process_pid, aarch64_add_process)
1617         (aarch64_process_info_get): New functions.
1618         (aarch64_inferior_data_get): Delete.
1619         (aarch64_process_info_get): New function.
1620         (aarch64_forget_process): New function.
1621         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
1622         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
1623         aarch64_get_debug_reg_state.
1624         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
1625         instead of linux_nat_iterate_watchpoint_lwps.
1626         (aarch64_linux_new_fork): New function.
1627         (aarch64_linux_child_post_startup_inferior): Use
1628         aarch64_forget_process instead of aarch64_init_debug_reg_state.
1629         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
1630         (aarch64_linux_remove_hw_breakpoint)
1631         (aarch64_handle_aligned_watchpoint)
1632         (aarch64_handle_unaligned_watchpoint)
1633         (aarch64_linux_insert_watchpoint)
1634         (aarch64_linux_remove_watchpoint)
1635         (aarch64_linux_stopped_data_address): Adjust to pass the current
1636         process id to aarch64_debug_reg_state.
1637         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
1638         linux_nat_new_fork hook, and aarch64_forget_process as
1639         linux_nat_forget_process hook; remove the call to
1640         register_inferior_data_with_cleanup.
1641
1642 2013-02-14  Pedro Alves  <palves@redhat.com>
1643
1644         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
1645         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
1646         lval_memory.
1647
1648 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
1649             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1650
1651         * tracepoint.h (validate_trace_state_variable_name): Declare.
1652         * tracepoint.c (validate_trace_state_variable_name): New.
1653         (trace_variable_command): Parse the trace state variable's name
1654         without using parse_expression.  Do several validations.
1655         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
1656         trace state variable's name with parse_expression.  Validate it.
1657
1658 2013-02-14  Yao Qi  <yao@codesourcery.com>
1659
1660         * infcmd.c (breakpoint_proceeded): Remove it.
1661
1662 2013-02-14  Yao Qi  <yao@codesourcery.com>
1663
1664         * tracepoint.c (end_actions_pseudocommand): Make it static.
1665         (while_stepping_pseudocommand): Likewise.
1666         * tracepoint.h (end_actions_pseudocommand): Remove the
1667         declaration.
1668         (while_stepping_pseudocommand): Likewise.
1669
1670 2013-02-14  Yao Qi  <yao@codesourcery.com>
1671
1672         * cli/cli-decode.c (help_cmd): Remove the declaration of
1673         "cmdlist".
1674         (help_all): Likewise.
1675
1676 2013-02-13  Pedro Alves  <palves@redhat.com>
1677
1678         * amd64-linux-nat.c (update_debug_registers_callback):
1679         Update comment.
1680         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1681         iterate_over_lwps.
1682         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
1683         i386_debug_reg_state.
1684         (amd64_linux_new_fork): New function.
1685         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
1686         linux_nat_new_fork hook, and i386_forget_process as
1687         linux_nat_forget_process hook.
1688         * i386-linux-nat.c (update_debug_registers_callback):
1689         Update comment.
1690         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1691         iterate_over_lwps.
1692         (i386_linux_prepare_to_resume): Pass the lwp's pid to
1693         i386_debug_reg_state.
1694         (i386_linux_new_fork): New function.
1695         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
1696         linux_nat_new_fork hook, and i386_forget_process as
1697         linux_nat_forget_process hook.
1698         * i386-nat.c (i386_init_dregs): Delete.
1699         (i386_inferior_data, struct i386_inferior_data):
1700         Delete.
1701         (struct i386_process_info): New.
1702         (i386_process_list): New global.
1703         (i386_find_process_pid, i386_add_process, i386_process_info_get):
1704         New functions.
1705         (i386_inferior_data_get): Delete.
1706         (i386_process_info_get): New function.
1707         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
1708         (i386_forget_process): New function.
1709         (i386_cleanup_dregs): Rewrite.
1710         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
1711         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
1712         (i386_stopped_data_address, i386_insert_hw_breakpoint)
1713         (i386_remove_hw_breakpoint): Adjust to pass the current process id
1714         to i386_debug_reg_state.
1715         (i386_use_watchpoints): Don't register inferior data.
1716         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
1717         adjust comment.
1718         (i386_forget_process): Declare.
1719         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
1720         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
1721         New static globals.
1722         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
1723         (add_initial_lwp): New, factored out from ...
1724         (add_lwp): ... this.  Don't check the number of lwps before
1725         calling linux_nat_new_thread.
1726         (linux_nat_iterate_watchpoint_lwps): Delete.
1727         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
1728         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
1729         forks and vforks.
1730         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
1731         initial lwp.
1732         (linux_nat_kill, linux_nat_mourn_inferior): Call
1733         linux_nat_forget_process.
1734         (linux_nat_set_new_fork, linux_nat_set_forget_process)
1735         (linux_nat_forget_process): New functions.
1736         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
1737         type.
1738         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
1739         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
1740         types.
1741         (linux_nat_set_new_fork, linux_nat_set_forget_process)
1742         (linux_nat_forget_process): New declarations.
1743
1744         * amd64fbsd-nat.c (super_mourn_inferior): New global.
1745         (amd64fbsd_mourn_inferior): New function.
1746         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
1747         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
1748
1749 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1750
1751         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
1752         Adding _().
1753
1754 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1755
1756         * aarch64-linux-nat.c (debug_reg_change_callback)
1757         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
1758         %s and phex().
1759
1760 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1761
1762         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
1763         with LONGEST.
1764
1765 2013-02-13  Pedro Alves  <palves@redhat.com>
1766             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1767
1768         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
1769
1770 2013-02-12  Tom Tromey  <tromey@redhat.com>
1771
1772         PR symtab/11464:
1773         * c-exp.y (lex_one_token): Initialize other fields of yylval on
1774         NAME return.
1775         (classify_inner_name): Remove 'first_name' argument, add
1776         'context'.  Remove unused variable.
1777         (yylex): Explicitly maintain the context type.  Exit loop earlier
1778         if NAME result is seen.
1779
1780 2013-02-12  Pedro Alves  <palves@redhat.com>
1781
1782         * amd64-darwin-tdep.c: Add (C) after Copyright.
1783         * cli/cli-cmds.h: Ditto.
1784         * cli/cli-decode.c: Ditto.
1785         * cli/cli-decode.h: Ditto.
1786         * cli/cli-dump.c: Ditto.
1787         * cli/cli-dump.h: Ditto.
1788         * cli/cli-interp.c: Ditto.
1789         * cli/cli-logging.c: Ditto.
1790         * cli/cli-script.c: Ditto.
1791         * cli/cli-script.h: Ditto.
1792         * cli/cli-setshow.c: Ditto.
1793         * cli/cli-setshow.h: Ditto.
1794         * cli/cli-utils.c: Ditto.
1795         * cli/cli-utils.h: Ditto.
1796         * config/alpha/nm-osf3.h: Ditto.
1797         * config/djgpp/djconfig.sh: Ditto.
1798         * config/i386/nm-fbsd.h: Ditto.
1799         * config/i386/nm-i386gnu.h: Ditto.
1800         * config/nm-linux.h: Ditto.
1801         * config/nm-nto.h: Ditto.
1802         * config/rs6000/nm-rs6000.h: Ditto.
1803         * config/sparc/nm-sol2.h: Ditto.
1804         * darwin-nat-info.c: Ditto.
1805         * dfp.c: Ditto.
1806         * dfp.h: Ditto.
1807         * gdb-demangle.h: Ditto.
1808         * i386-darwin-nat.c: Ditto.
1809         * i386-darwin-tdep.c: Ditto.
1810         * linux-fork.h: Ditto.
1811         * m32c-tdep.c: Ditto.
1812         * microblaze-linux-tdep.c: Ditto.
1813         * microblaze-rom.c: Ditto.
1814         * microblaze-tdep.c: Ditto.
1815         * microblaze-tdep.h: Ditto.
1816         * mips-linux-tdep.h: Ditto.
1817         * ppc-ravenscar-thread.c: Ditto.
1818         * ppc-ravenscar-thread.h: Ditto.
1819         * prologue-value.c: Ditto.
1820         * prologue-value.h: Ditto.
1821         * ravenscar-thread.c: Ditto.
1822         * ravenscar-thread.h: Ditto.
1823         * sparc-ravenscar-thread.c: Ditto.
1824         * sparc-ravenscar-thread.h: Ditto.
1825         * tilegx-linux-tdep.c: Ditto.
1826         * unwind_stop_reasons.def: Ditto.
1827         * windows-nat.h: Ditto.
1828         * xtensa-linux-tdep.c: Ditto.
1829         * xtensa-xtregs.c: Ditto.
1830         * regformats/regdat.sh: Ditto.
1831         * regformats/regdef.h: Ditto.
1832
1833 2013-02-12  Pedro Alves  <palves@redhat.com>
1834
1835         * break-catch-sig.c: Update copyright years.
1836
1837 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
1838
1839         Add support for a destructor for ui_out data and use it to
1840         provide a ui_out destructor.
1841         * ui-out.h: Declare the new ui_out destructor.
1842         (ui_out_impl): Add a field for data destructor in ui_out_impl.
1843         * ui-out.c (default_data_destroy): Add a default data destructor
1844         which does nothing.
1845         (default_ui_out_impl): Set the new data_destroy field to
1846         default_data_destroy
1847         (uo_data_destroy): Local function which invokes the data
1848         destructor if present.
1849         (clear_table): Local function which clears the table data of a
1850         ui_out object.
1851         (ui_out_destroy): Public function which frees a ui_out object.
1852         (ui_out_table_end): Use the new clear_table function.
1853         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
1854         NULL.
1855         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
1856         to NULL.
1857
1858 2013-02-11  Doug Evans  <dje@google.com>
1859
1860         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
1861         (printf_decfloat): New function.  Broken out from ui_printf.
1862         Remove unnecessary code to shift the entire format string down.
1863         (printf_pointer): New function.
1864         (ui_printf): Code to print C strings, wide C strings, decfloats,
1865         and pointers moved to separate functions.
1866
1867 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
1868
1869         * valops.c (value_assign): Handling bitfield offset in
1870         `lval_internalvar_component' case.
1871
1872 2013-02-08  Doug Evans  <dje@google.com>
1873
1874         * common/format.c (parse_format_string): Fix whitespace.
1875
1876 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1877
1878         * stack.c (return_command): Work around uninitialized variable
1879         warning.
1880
1881 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
1882
1883         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
1884         number of the registers from 36 to 34.
1885
1886 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1887
1888         * NEWS: Mention new AArch64 native and target support.
1889
1890 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1891
1892         * MAINTAINERS (Write After Approval): Add myself.
1893
1894 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
1895             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1896             Nigel Stephens  <nigel.stephens@arm.com>
1897             Yufeng Zhang  <yufeng.zhang@arm.com>
1898
1899         * aarch64-linux-nat.c: New file.
1900         * config/aarch64/linux.mh: New file.
1901         * configure.host: Add AArch64.
1902         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
1903
1904 2013-02-07  Doug Evans  <dje@google.com>
1905
1906         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
1907         disassemble command.
1908
1909 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1910
1911         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1912         set_gdbarch_fetch_tls_load_module_address.
1913
1914 2013-02-06  David S. Miller  <davem@davemloft.net>
1915
1916         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
1917         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1918         * value.c (struct_return_convention): New function.
1919         (using_struct_return): Implement in terms of struct_return_convention.
1920         * value.h (struct_return_convention): Declare.
1921         * stack.c (return_command): Allow successful overriding of the return
1922         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1923
1924 2013-02-06  Tom Tromey  <tromey@redhat.com>
1925
1926         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
1927         outside of TRY_CATCH.
1928
1929 2013-02-06  Yao Qi  <yao@codesourcery.com>
1930
1931         * mi/mi-interp.c: Include "tracepoint.h".
1932         (mi_tsv_modified): Declare.
1933         (mi_tsv_created, mi_tsv_deleted): Update declaration.
1934         (mi_interpreter_init): Call observer_attach_tsv_modified.
1935         (mi_tsv_modified): New.
1936         (mi_tsv_created, mi_tsv_deleted): Update.
1937         * tracepoint.c (trace_variable_command): Call
1938         observer_notify_tsv_modified if the initial value of tsv is
1939         changed.
1940         (delete_trace_state_variable): Call
1941         observer_notify_tsv_deleted earlier.
1942         (trace_variable_command): Caller update.
1943         (create_tsv_from_upload): Likewise.
1944         * observer.sh: Declare "struct trace_state_variable".
1945
1946         * NEWS: Mention the new MI notification "=tsv-modified".
1947
1948 2013-02-05  Doug Evans  <dje@google.com>
1949
1950         * completer.c (location_completer): Fix typo in comment.
1951
1952 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1953
1954         * breakpoint.c (add_location_to_breakpoint): Insert the location with
1955         ADDRESS sorted.
1956
1957 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1958
1959         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
1960         Refactor if statement to avoid trailing || operator.
1961
1962 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
1963
1964         * NEWS: Add PowerPC FreeBSD as a new native configuration.
1965
1966 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
1967
1968         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
1969         * configure.host: Add powerpc*-*-freebsd* target.
1970         * configure.tgt: Add target info for powerpc*-*-freebsd*.
1971         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
1972         * config/powerpc/fbsd.mh: New file.
1973
1974 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1975             Denys Vlasenko  <dvlasenk@redhat.com>
1976             Pedro Alves  <palves@redhat.com>
1977
1978         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
1979         (struct elf_internal_linux_prpsinfo): Forward declare.
1980         * gdbarch.h, gdbarch.c: Regenerate.
1981         * linux-tdep.c: Include `cli/cli-utils.h'.
1982         (linux_fill_prpsinfo): New function.
1983         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
1984         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
1985         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
1986         depending on gdbarch pointer bitness.
1987         * ppc-linux-tdep.c: Include elf-bfd.h.
1988         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
1989         on 32-bit.
1990
1991 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
1992             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1993             Nigel Stephens  <nigel.stephens@arm.com>
1994             Yufeng Zhang  <yufeng.zhang@arm.com>
1995
1996         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
1997
1998 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
1999             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2000             Nigel Stephens  <nigel.stephens@arm.com>
2001             Yufeng Zhang  <yufeng.zhang@arm.com>
2002
2003         * aarch64-newlib-tdep.c: New file.
2004         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
2005         aarch64*-*-elf.
2006         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
2007         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
2008         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
2009         * osabi.c (gdb_osabi_names): Add "Newlib".
2010
2011 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2012             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2013             Nigel Stephens  <nigel.stephens@arm.com>
2014             Yufeng Zhang  <yufeng.zhang@arm.com>
2015
2016         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
2017         (ALLDEPFILES): Add aarch64-linux-tdep.c.
2018         * aarch64-linux-tdep.c: New file.
2019         * aarch64-linux-tdep.h: New file.
2020         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
2021         * configure.tgt: Add aarch64-none-linux-gnu.
2022
2023 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2024             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2025             Nigel Stephens  <nigel.stephens@arm.com>
2026             Yufeng Zhang  <yufeng.zhang@arm.com>
2027
2028         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
2029         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
2030         (ALLDEPFILES): Add aarch64-tdep.c.
2031         * aarch64-tdep.c: New file.
2032         * aarch64-tdep.h: New file.
2033         * configure.tgt: Add AArch64.
2034         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
2035         (aarch64-expedite): New definition.
2036         * features/aarch64-core.xml: New file.
2037         * features/aarch64-fpu.xml: New file.
2038         * features/aarch64-without-fpu.c: New file (generated).
2039         * features/aarch64-without-fpu.xml: New file.
2040         * features/aarch64.c: New file (generated).
2041         * features/aarch64.xml: New file.
2042         * regformats/aarch64-without-fpu.dat: New file (generated).
2043         * regformats/aarch64.dat: New file (generated).
2044
2045 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2046
2047         * contrib/expect-read1.c: New file.
2048         * contrib/expect-read1.sh: New file.
2049
2050 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2051
2052         * dwarf2read.c (file_file_name): New function with code from
2053         file_full_name.
2054         (file_full_name): Move most of the code to file_file_name.
2055         (macro_start_file): Rename variable full_name to file_name and use
2056         file_file_name for it.  Add comp_dir parameter to new_macro_table.
2057         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
2058         macro_source_file->filename access by macro_source_fullname call.
2059         * macroscope.c (_initialize_macroscope): Update the new_macro_table
2060         caller.
2061         * macrotab.c (struct macro_table): New field comp_dir.
2062         (macro_include): New variables link_fullname and source_fullname.
2063         Replace any macro_source_file->filename access by macro_source_fullname
2064         call.
2065         (macro_lookup_inclusion): Remove the partial filenames checking code.
2066         (check_for_redefinition): New variables source_fullname and
2067         found_key_fullname.  Replace any macro_source_file->filename access by
2068         macro_source_fullname call.
2069         (macro_undef): New variables source_fullname and key_fullname.  Replace
2070         any macro_source_file->filename access by macro_source_fullname call.
2071         (macro_lookup_definition): New variables retval and source_fullname.
2072         Replace any macro_source_file->filename access by macro_source_fullname
2073         call.
2074         (foreach_macro): New variable key_fullname.  Replace any
2075         macro_source_file->filename access by macro_source_fullname call.
2076         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
2077         macro_source_file->filename access by macro_source_fullname call.
2078         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
2079         (macro_source_fullname): New function.
2080         * macrotab.h (struct macro_source_file): Extent the filename field
2081         comment.
2082         (new_macro_table): New parameter comp_dir, add a comment for it.
2083         (macro_source_fullname): new declaration.
2084
2085 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2086
2087         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
2088         this_real_name to outer block.  Use it also for
2089         compare_filenames_for_search.
2090         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
2091         with dw2_get_real_path for file_matcher, considering also
2092         BASENAMES_MAY_DIFFER.
2093         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
2094
2095 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2096
2097         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
2098         to the file_matcher parameter.  Pass 0 to it.
2099         (dwarf2_create_include_psymtab): Copy also DIRNAME.
2100         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
2101         NULL psymtab_to_fullname result.
2102         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
2103         an expected filename instead.
2104         (expand_symtabs_matching_via_partial): Add basenames parameter to the
2105         file_matcher parameter.  Call also psymtab_to_fullname, after newly
2106         considering BASENAMES_MAY_DIFFER.
2107         * source.c (rewrite_source_path): Remove static.
2108         * source.h (rewrite_source_path): New declaration.
2109         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
2110         the expand_symtabs_matching field.  Comment it.
2111         * symtab.c (file_matches): New function comment.  Add parameter
2112         basenames, implement it.
2113         (search_symbols_file_matches): Add basenames parameter.  Update the
2114         file_matches caller.
2115         (search_symbols): Match FILES also against symtab_to_fullname.
2116         Optimize it for BASENAMES_MAY_DIFFER.
2117
2118 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2119
2120         * source.c (print_source_lines_base): Print for TUI also "fullname".
2121         * tui/tui-data.c (init_content_element): Change tui_locator_element
2122         field to full_name.
2123         * tui/tui-data.h (struct tui_locator_element): Likewise.
2124         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
2125         tui_update_locator_filename calls to tui_update_locator_fullname.
2126         Replace symtab->filename refererence by symtab_to_fullname call.
2127         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
2128         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
2129         field to full_name.  Replace symtab->filename refererence by
2130         symtab_to_fullname call.
2131         (tui_show_symtab_source): Rename parameter to fullname.  Change
2132         tui_locator_element field to full_name.
2133         * tui/tui-stack.c: Include source.h.
2134         (tui_set_locator_filename): Rename the declaration to ...
2135         (tui_set_locator_fullname): ... here.  Rename its parameter to
2136         fullname, updates its comment.
2137         (tui_set_locator_info): Rename its parameter to fullname.
2138         (tui_set_locator_filename): Rename the definition to ...
2139         (tui_set_locator_fullname): ... here.  Rename its parameter to
2140         fullname, updates its comment.  Change tui_locator_element field to
2141         full_name.
2142         (tui_set_locator_info): Rename its parameter to fullname.
2143         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
2144         (tui_update_locator_filename): Rename to ...
2145         (tui_update_locator_fullname): ... here. Rename callee to
2146         tui_set_locator_fullname.
2147         (tui_show_frame_info): Replace symtab->filename refererence by
2148         symtab_to_fullname call.
2149         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
2150         (tui_update_locator_fullname): ... here.
2151         * tui/tui-winsource.c (tui_display_main): Rename the callee to
2152         tui_update_locator_fullname.  Replace symtab->filename refererence by
2153         symtab_to_fullname call.
2154         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
2155         Rename the callee to tui_update_locator_fullname.
2156         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
2157
2158 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2159
2160         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
2161         by symtab_to_filename_for_display calls.
2162         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
2163         (clear_command): New variable sal_fullname, initialize it.  Replace
2164         compare_filenames_for_search by filename_cmp with sal_fullname.
2165         (say_where, update_static_tracepoint): Replace symtab->filename
2166         refererences by symtab_to_filename_for_display calls.
2167         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
2168         Likewise.
2169         * dwarf2read.c: Include source.h.
2170         (fixup_go_packaging): Replace symtab->filename refererences by
2171         symtab_to_filename_for_display calls.
2172         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
2173         Replace symtab->filename refererences by symtab_to_filename_for_display
2174         calls.
2175         (create_sals_line_offset, convert_linespec_to_sals): New variable
2176         fullname, initialize it, replace symtab->filename reference by the
2177         variable.
2178         * linux-fork.c: Include source.h.
2179         (info_checkpoints_command): Replace symtab->filename refererences by
2180         symtab_to_filename_for_display calls.
2181         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
2182         by symtab_to_filename_for_display calls.
2183         * mdebugread.c: Include source.h.
2184         (psymtab_to_symtab_1): Replace symtab->filename refererences by
2185         symtab_to_filename_for_display calls.
2186         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2187         (mi_cmd_file_list_exec_source_files): Likewise.
2188         * printcmd.c: Include source.h.
2189         (build_address_symbolic): Replace symtab->filename refererences by
2190         symtab_to_filename_for_display calls.
2191         * psymtab.c (partial_map_symtabs_matching_filename)
2192         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
2193         with psymtab_to_fullname.
2194         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
2195         by symtab_to_filename_for_display calls.
2196         (stpy_get_filename): New variable filename, initialize it, use instead
2197         of symtab->filename refererences.
2198         (salpy_str): Make variable filename const char *.  Replace
2199         symtab->filename refererences by symtab_to_filename_for_display calls.
2200         * skip.c: Include source.h and filenames.h.
2201         (skip_file_command): Remove const from the symtab variable.  Replace
2202         symtab->filename refererences by symtab_to_fullname call.
2203         (function_name_is_marked_for_skip): New variables searched_for_fullname
2204         and fullname.  Use them to search also with symtab's fullname.
2205         * source.c (find_source_lines): Replace symtab->filename refererences
2206         by symtab_to_filename_for_display calls.
2207         (print_source_lines_base): New variable filename, use it instead of
2208         symtab->filename.  Replace symtab->filename refererences by
2209         symtab_to_filename_for_display calls.
2210         (line_info, forward_search_command): Replace symtab->filename
2211         refererences by symtab_to_filename_for_display calls.
2212         (reverse_search_command): Replace symtab->filename refererences by
2213         symtab_to_filename_for_display calls.  New variable filename for it.
2214         * stack.c (frame_info): Likewise.
2215         * symmisc.c: Include source.h.
2216         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
2217         (maintenance_info_symtabs): Replace symtab->filename refererences by
2218         symtab_to_filename_for_display calls.
2219         * symtab.c (iterate_over_some_symtabs): Call
2220         compare_filenames_for_search also with symtab_to_fullname.
2221         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
2222         symtab->filename refererences by symtab_to_filename_for_display calls.
2223         (find_line_symtab): Replace symtab->filename refererences by
2224         symtab_to_filename_for_display calls.
2225         (file_matches): Replace filename_cmp by compare_filenames_for_search.
2226         (print_symbol_info): Make the last parameter const char *.  New
2227         variable s_filename.  Use it in the function.
2228         (symtab_symbol_info): Make the last_filename variable const char *.
2229         Replace symtab->filename refererences by symtab_to_filename_for_display
2230         calls.
2231         (rbreak_command): New variable fullname.  Use it.  Replace
2232         symtab->filename refererence by symtab_to_filename_for_display call.
2233         * tracepoint.c (set_traceframe_context, trace_find_line_command)
2234         (print_one_static_tracepoint_marker): Replace symtab->filename
2235         refererences by symtab_to_filename_for_display calls.
2236         * tui/tui-source.c (tui_set_source_content): New variables filename and
2237         s_filename.  Replace symtab->filename refererences by this variable.
2238         Replace other symtab->filename refererences by
2239         symtab_to_filename_for_display calls.
2240
2241 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
2242             Jan Kratochvil  <jan.kratochvil@redhat.com>
2243
2244         Add a new variable that controls a way in which filenames are
2245         displayed.
2246         * NEWS (set filename-display): New entry.
2247         * source.c (filename_display_basename, filename_display_relative)
2248         (filename_display_absolute, filename_display_kind_names)
2249         (filename_display_string, show_filename_display_string)
2250         (symtab_to_filename_for_display): New.
2251         (_initialize_source): Added initialization of 'filename-display'
2252         variable.
2253         * source.h (symtab_to_filename_for_display): Added declaration.
2254         * stack.c (print_frame): Added new variable and calling of a new
2255         function and condition with this variable. Changed third argument of
2256         calling of a function.
2257
2258 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2259
2260         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
2261         Rename field reference filename to fullname.
2262         * tui/tui-data.h (struct tui_source_info): Rename field filename to
2263         fullname.  New comment for it.
2264         * tui/tui-source.c (tui_set_source_content): Rename field reference
2265         filename to fullname.  Initialize field by symtab_to_fullname now.
2266         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
2267         reference filename to fullname.  Use symtab_to_fullname during
2268         comparison.
2269
2270 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2271
2272         Code cleanup.
2273         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
2274         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
2275         filename to fullname.  Rename variable this_name to this_fullname.
2276         Lowercase FILENAME_CMP call.
2277         (dw2_find_symbol_file): New comment for the returned string.
2278         (dwarf2_gdb_index_functions): Rename the function to
2279         dw2_expand_symtabs_with_fullname.
2280         * psymtab.c (read_psymtabs_with_filename): Rename to ...
2281         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
2282         fullname.
2283         (psym_functions): Rename the function to read_psymtabs_with_fullname.
2284         * symfile.h (struct quick_symbol_functions): Rename field
2285         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
2286         parameter filename to fullname.  Document returned string meaning for
2287         find_symbol_file.
2288         * symtab.c (find_line_symtab): Rename the called function to
2289         expand_symtabs_with_fullname.
2290
2291 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2292
2293         Code cleanup.
2294         * breakpoint.c (clear_command): Remove variable is_abs, unify the
2295         call of filename_cmp with compare_filenames_for_search.
2296         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
2297         is_abs, unify the call of FILENAME_CMP with
2298         compare_filenames_for_search.  New gdb_asserts for real_path and name.
2299         Unify the call of compare_filenames_for_search with FILENAME_CMP.
2300         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2301         * symfile.h (struct quick_symbol_functions): Extend the comment for
2302         map_symtabs_matching_filename.
2303         * symtab.c (compare_filenames_for_search): Remove the function comment
2304         relative path requirement.  Handle absolute filenames, with a comment.
2305         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
2306         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
2307         real_path and name.  Unify the call of compare_filenames_for_search
2308         with FILENAME_CMP.
2309         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
2310
2311 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2312
2313         Code cleanup.
2314         * breakpoint.c (print_breakpoint_location): Replace bp_location field
2315         source_file references by symtab field references.  Remove variables
2316         sal and fullname.
2317         (momentary_breakpoint_from_master, add_location_to_breakpoint):
2318         (clear_command, say_where): Replace bp_location field source_file
2319         references by symtab field references.
2320         (bp_location_dtor): Remove the source_file reference.
2321         (update_static_tracepoint): Replace bp_location field source_file
2322         references by symtab field references.
2323         (breakpoint_free_objfile): New function.
2324         * breakpoint.h (struct bp_location): Extend the comment for line_number.
2325         Replace the field source_file by field symtab, extend its comment.
2326         (breakpoint_free_objfile): New declaration.
2327         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
2328         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
2329         field source_file references by symtab field references.
2330
2331 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2332
2333         Replace xfullpath calls by gdb_realpath calls.
2334         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
2335         function comment.
2336         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
2337         Remove it from the iterate_over_some_symtabs call.
2338         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
2339         Remove it from the dw2_map_expand_apply calls, remove a block handling
2340         it.
2341         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
2342         Remove it from the iterate_over_some_symtabs call.
2343         (partial_map_symtabs_matching_filename): Remove parameter full_path.
2344         Remove it from the partial_map_expand_apply calls, remove a block
2345         handling it.  Drop gdb_realpath call and cleanups from the real_path
2346         handling.
2347         * source.c (openp): Drop the comment part about xfullpath.  Replace
2348         xfullpath calls by gdb_realpath calls.
2349         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
2350         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
2351         from method map_symtabs_matching_filename and its comment.
2352         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
2353         gdb_realpath call.
2354         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
2355         remove it also from the function comment, remove a block handling it.
2356         Drop gdb_realpath call and cleanups from the real_path handling.
2357         (iterate_over_symtabs): Drop variable full_path and its use.
2358         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
2359         * utils.c (xfullpath): Remove.
2360         * utils.h (xfullpath): Remove.
2361
2362 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
2363
2364         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
2365         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
2366         (ALLDEPFILES): Add ppc64-tdep.c.
2367         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
2368         ppc64-tdep.o to gdb_target_obs.
2369         * ppc64-tdep.h: New file.
2370         * ppc64-tdep.c: New file.
2371         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
2372         ppc-linux-tdep.c to here.
2373         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
2374         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
2375         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
2376         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
2377         from ppc-linux-tdep.c to here.
2378         (ppc64_convert_from_func_ptr_addr): Rename from
2379         ppc64_linux_convert_from_func_ptr_addr to
2380         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
2381         here.
2382         * rs6000-tdep.c:
2383         (read_insn): Move from ppc-linux-tdep.c to here.
2384         (insns_match_pattern, insn_d_field, insn_ds_field): Move
2385         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
2386         * ppc-linux-tdep.c: Include ppc64-tdep.h.
2387         Removed above functions.
2388         (ppc_linux_init_abi): Adjust.
2389
2390 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
2391
2392         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
2393
2394 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
2395
2396         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
2397
2398 2013-02-01  Pedro Alves  <palves@redhat.com>
2399
2400         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
2401         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
2402
2403 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2404
2405         * elfread.c (elf_symfile_read): Limit separate debug info additions to
2406         files with no separate debug info.
2407         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
2408         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
2409         only for files with no separate debug info.
2410
2411 2013-01-31  Tom Tromey  <tromey@redhat.com>
2412
2413         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
2414         change type.
2415         (struct jit_program_space_data): Rename from jit_inferior_data.
2416         Update comments.
2417         (get_jit_program_space_data): Rename from get_jit_inferior_data.
2418         Change return type.  Attach data to program space.
2419         (jit_program_space_data_cleanup): Rename from
2420         jit_inferior_data_cleanup; change argument type.
2421         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
2422         change type.
2423         (jit_register_code): Update.
2424         (jit_update_inferior_cache): Remove.
2425         (jit_breakpoint_deleted): Get jit data from the location's program
2426         space.
2427         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
2428         'ps_data', change type.
2429         (jit_inferior_init, jit_breakpoint_re_set_internal)
2430         (jit_event_handler): Update.
2431         (free_objfile_data): Get data from objfile's program space.
2432         (_initialize_jit): Update.
2433
2434 2013-01-31  Tom Tromey  <tromey@redhat.com>
2435
2436         PR gdb/13987:
2437         * jit.c (struct jit_inferior_data) <cached_code_address,
2438         jit_breakpoint>: New fields.
2439         (jit_breakpoint_re_set_internal): Fix logging.  Only create
2440         breakpoint if cached address has changed.
2441         (jit_update_inferior_cache, jit_breakpoint_deleted): New
2442         functions.
2443         (_initialize_jit): Register breakpoint deleted observer.
2444
2445 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2446
2447         * infrun.c (handle_syscall_event): Remove unused gdbarch.
2448         (save_infcall_suspend_state): Ifdef out unused inf.
2449         (restore_infcall_suspend_state): Ifdef out unused inf.
2450         * jit.c (jit_register_code): Remove unused i, b, inf_data.
2451         (jit_frame_sniffer): Remove unused inf_data.
2452
2453 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2454
2455         * c-exp.y (classify_inner_name): Remove unused type.
2456         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
2457         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
2458         need_escape.
2459         (c_get_string): Remove unused kind.
2460         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
2461
2462 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2463
2464         * charset.c (intermediate_encoding): Remove unused i.
2465         * completer.c (signal_completer): Remove unused i.
2466         * continuations.c (discard_my_continuations_1): Remove unused
2467         continuation_ptr.
2468         * corelow.c (core_close): Remove unuseD name.
2469         (get_core_siginfo): Remove unused pid.
2470         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
2471         i, cps.
2472         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
2473         (loclist_describe_location): Remove unused first.
2474         * event-top.c (command_line_handler): Remove unused got_eof.
2475         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
2476         (resize_section_table): Remove unused old_value.
2477         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
2478         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
2479         * i386-tdep.c (i386_process_record): Remove unused rex.
2480         * infcmd.c (get_return_value): Remove unused uiout.
2481         * jv-lang.c (type_from_class): Remove unused is_array.
2482         * jv-valprint.c (java_val_print): Remove unused i.
2483         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
2484         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
2485         * m2-typeprint.c (m2_print_type): Remove unused code.
2486         * macroexp.c (get_character_constant): Remove unused body_start.
2487         (macro_stringify): Remove unused result.
2488         * objc-lang.c (find_methods): Remove unused gdbarch.
2489         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
2490         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
2491         * stack.c (print_frame_args): Remove unused summary.
2492         * thread.c (thread_apply_command): Remove unused p.
2493         * valarith.c (value_x_unop): Remove unused mangle_ptr.
2494         * valops.c (search_struct_method): Remove unused skip.
2495         * valprint.c (generic_val_print): Remove unused byte_order.
2496         * varobj.c (varobj_update): Remove unused changed.
2497         * cli/cli-cmds.c (complete_command): Remove unused next_item.
2498         (alias_command): Remove unused c.
2499         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
2500         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
2501         format.
2502         (mi_cmd_data_write_memory): Remove unused word_format.
2503         (mi_cmd_data_write_memory_bytes): Remove unused r.
2504         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
2505         p_start, p_end.
2506         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
2507         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
2508         line_width.
2509
2510 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2511
2512         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
2513         * symtab.c (iterate_over_symtabs): Remove unused s.
2514         (find_pc_sect_symtab): Remove unused pspAce.
2515         (find_pc_sect_line): Remove unused alt_symtab.
2516         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
2517         (completion_list_add_name): Remove unused newsize.
2518
2519 2013-01-31  Tom Tromey  <tromey@redhat.com>
2520
2521         PR c++/14998:
2522         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
2523         TYPE_CODE_FUNC.
2524
2525 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2526
2527         * target.c (target_read_string): Remove unused origlen.
2528
2529 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2530
2531         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
2532         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
2533         * ax-general.c (ax_print): Remove unused is_float.
2534         * blockframe.c (block_innermost_frame): Remove unused start, end.
2535         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
2536
2537 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
2538
2539         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
2540         (svr4_read_so_list): Remove unused lmo.
2541         * solib-target.c (solib_target_relocate_section_addresses): Remove
2542         unused flags.
2543
2544 2013-01-30  Tom Tromey  <tromey@redhat.com>
2545
2546         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
2547
2548 2013-01-30  Tom Tromey  <tromey@redhat.com>
2549
2550         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
2551         * utils.c (gnu_debuglink_crc32): Remove.
2552         * utils.h (gnu_debuglink_crc32): Don't declare.
2553
2554 2013-01-30  Tom Tromey  <tromey@redhat.com>
2555
2556         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
2557         (read_structure_type, read_enumeration_type): Remove cast.
2558
2559 2013-01-30  Tom Tromey  <tromey@redhat.com>
2560
2561         * dwarf2read.c (read_namespace_type): Remove cast.
2562         (read_typedef): Likewise.
2563
2564 2013-01-29  Tom Tromey  <tromey@redhat.com>
2565
2566         * dwarf2read.c (free_dwo_file): Remove assert.
2567
2568 2013-01-29  Tom Tromey  <tromey@redhat.com>
2569
2570         * value.c (deprecated_set_value_modifiable): Remove.
2571         * value.h (deprecated_set_value_modifiable): Remove.
2572
2573 2013-01-28  Doug Evans  <dje@google.com>
2574
2575         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
2576         to addresses from dwo files.
2577
2578 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
2579
2580         * valops.c (find_overload_match): Remove unused argument 'lax'.
2581         * value.h: Remove unused argument 'lax' from the declaration of
2582         find_overload_match.
2583         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
2584         to find_overload_match.
2585         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
2586         argument to find_overload_match.
2587
2588 2013-01-25  Tom Tromey  <tromey@redhat.com>
2589
2590         * dwarf2read.c (processing_has_namespace_info): Remove.
2591         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
2592         (process_die, read_func_scope, dwarf2_start_symtab)
2593         (new_symbol_full): Update.
2594
2595 2013-01-25  Tom Tromey  <tromey@redhat.com>
2596
2597         * cp-namespace.c (cp_set_block_scope): Remove.
2598         * cp-support.h (cp_set_block_scope): Remove.
2599         * dbxread.c: Include block.h.
2600         (cp_set_block_scope): New function.
2601         (process_one_symbol): Update.
2602         * dwarf2read.c (read_func_scope): Use block_set_scope.
2603
2604 2013-01-25  Pedro Alves  <palves@redhat.com>
2605
2606         * remote.c (add_current_inferior_and_thread): Tweak comment.
2607
2608 2013-01-25  Tom Tromey  <tromey@redhat.com>
2609
2610         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2611         (cp_add_using_directive): Add 'copy_names' argument.
2612         * cp-support.h (cp_add_using_directive): Update.
2613         (struct using_direct) <import_src, import_dest, alias,
2614         declaration>: Now const.
2615         * dwarf2read.c (read_import_statement): Use obconcat.
2616         Don't copy names passed to cp_add_using_directive.
2617
2618 2013-01-25  Tom Tromey  <tromey@redhat.com>
2619
2620         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
2621
2622 2013-01-25  Pedro Alves  <palves@redhat.com>
2623
2624         * remote.c (stop_reply_extract_thread): New.
2625         (add_current_inferior_and_thread): New parameter 'wait_status'.
2626         Handle it.
2627         (remote_start_remote): Pass wait status to
2628         add_current_inferior_and_thread.
2629         (extended_remote_run): Update comment.
2630         (extended_remote_create_inferior_1): Pass wait status to
2631         add_current_inferior_and_thread.
2632
2633 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
2634             Ulrich Weigand  <uweigand@de.ibm.com>
2635
2636         * valarith.c (value_vector_widen): New function for replicating a
2637         scalar into a vector.
2638         (value_binop): Use value_vector_widen to widen scalar to vector
2639         rather than casting, this better matches gcc C behaviour.
2640         * valops.c (value_casst): Update logic for casting between vector
2641         types, and for casting from scalar to vector, try to match gcc C
2642         behaviour.
2643         * value.h (value_vector_widen): Declare.
2644         * opencl-lang.c (opencl_value_cast): New opencl specific casting
2645         function, handle special case for casting scalar to vector.
2646         (opencl_relop): Use opencl_value_cast.
2647         (evaluate_subexp_opencl): Use opencl_value_cast instead of
2648         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
2649         in order to use opencl_value_cast.
2650
2651 2013-01-25  Yao Qi  <yao@codesourcery.com>
2652
2653         * event-loop.c: Include "queue.h".
2654         (gdb_event_p): New typedef.
2655         (DECLARE_QUEUE_P): Use.
2656         (DEFINE_QUEUE_P): Use.
2657         (async_queue_event): Remove.
2658         (gdb_event_xfree): New.
2659         (initialize_event_loop): New.
2660         (process_event): Use QUEUE macros.
2661         (event_queue): Remove.
2662         (gdb_wait_for_event): Caller update.
2663         (check_async_event_handlers): Likewise.
2664         (poll_timers): Likewise.
2665         * event-loop.h (initialize_event_loop): Declare.
2666         * event-loop.c (gdb_event_xfree): New.
2667         * top.c (gdb_init): Call initialize_event_loop.
2668
2669 2013-01-25  Yao Qi  <yao@codesourcery.com>
2670
2671         * event-loop.c (async_queue_event): Remove one parameter
2672         'position'.  Remove code handling 'position' == TAIL.
2673         (gdb_wait_for_event): Caller update.
2674         (check_async_event_handlers): Caller update.
2675         (poll_timers): Caller update.
2676         * event-loop.h (enum queue_position): Remove.
2677
2678 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
2679
2680         * MAINTAINERS: Update my email.
2681
2682 2013-01-25  Yao Qi  <yao@codesourcery.com>
2683
2684         * main.c (print_gdb_help): Remove "--epoch" from the help
2685         message.
2686
2687 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
2688
2689         * symtab.c (skip_prologue_using_sal): Consider a file
2690         change the same as an increased line number
2691
2692 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2693
2694         * MAINTAINERS (Write After Approval): Add myself to the list.
2695
2696 2013-01-24  Tom Tromey  <tromey@redhat.com>
2697
2698         * ada-lang.h (ada_decode_symbol): Make return type const.
2699         * ada-lang.c (ada_decode_symbol): Likewise.
2700
2701 2013-01-23  Doug Evans  <dje@google.com>
2702
2703         * linespec.c (find_linespec_symbols): Make static.
2704
2705 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2706
2707         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
2708         type on float conversion for complex type.
2709
2710 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
2711
2712         Add a new class gdb.Architecture which exposes GDB's
2713         internal representation of architecture via GDB Python API.
2714         * Makefile.in: Add entries corresponding to the new file
2715         python/py-arch.c.
2716         * NEWS (Python Scripting): Add entries for the new class
2717         gdb.Architecture and the new method gdb.Frame.architecture.
2718         * python/py-arch.c: Implement gdb.Architecture class.
2719         * python/py-frame.c (frapy_arch): Implement the method
2720         gdb.Frame.architecture().
2721         (frame_object_methods): Add 'architecture' to the method table.
2722         * python/python-internal.h: Add declarations of new utility
2723         functions.
2724         * python/python.c (_initialize_python): Initialize
2725         gdb.Architecture class.
2726
2727 2013-01-23  Doug Evans  <dje@google.com>
2728
2729         Work around binutils/15021.
2730         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
2731         type_unit_group out of union s.  All uses updated.
2732         (read_index_from_section): Watch for index version 8.
2733         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
2734         an imported symtab.
2735         (write_psymtabs_to_index): Increment version number to 8.
2736
2737 2013-01-22  Pedro Alves  <palves@redhat.com>
2738
2739         * annotate.c (breakpoint_changed): Skip if breakpoint is not
2740         user-visible.
2741
2742 2013-01-22  Pedro Alves  <palves@redhat.com>
2743
2744         * annotate.c (annotate_breakpoints_changed): Rename to ...
2745         (annotate_breakpoints_invalid): ... this.  Make static.
2746         (breakpoint_changed): Adjust.
2747         (_initialize_annotate): Always install the observers.  Install a
2748         "breakpoint_created" observer.
2749         * annotate.h (annotate_breakpoints_changed): Delete declaration.
2750         * breakpoint.c (set_breakpoint_condition)
2751         (breakpoint_set_commands, do_map_commands_command)
2752         (init_raw_breakpoint, clear_command, set_ignore_count)
2753         (enable_breakpoint_disp): No longer call
2754         annotate_breakpoints_changed.
2755
2756 2013-01-22  Pedro Alves  <palves@redhat.com>
2757
2758         * annotate.c: Include "inferior.h".
2759         (frames_invalid_emitted)
2760         (breakpoints_invalid_emitted): New globals.
2761         (async_background_execution_p): New function.
2762         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
2763         emitting the annotation if it has already been emitted.
2764         (annotate_display_prompt): New function.
2765         * annotate.h (annotate_display_prompt): New declaration.
2766         * event-top.c: Include annotate.h.
2767         (display_gdb_prompt): Call annotate_display_prompt.
2768
2769 2013-01-22  Pedro Alves  <palves@redhat.com>
2770
2771         * annotate.c (ignore_count_changed): Delete.
2772         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
2773         (annotate_ignore_count_change): Delete.
2774         (annotate_stopped): Don't emit a delayed breakpoints-changed
2775         annotation.
2776         * annotate.h (annotate_ignore_count_change): Delete.
2777         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
2778         annotate_ignore_count_change.
2779
2780 2013-01-22  Tom Tromey  <tromey@redhat.com>
2781
2782         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
2783         require_rvalue for a register location.
2784
2785 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
2786
2787         * breakpoint.c (print_one_breakpoint_location): Add MI
2788         field 'thread-groups' when printing a breakpoint.
2789         (output_thread_groups): New function.
2790
2791 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
2792
2793         * python/lib/gdb/commands/explore.py
2794         (CompoundExplorer.explore_expr): Correct the name of a method
2795         being invoked.
2796         (ExploreTypeCommand.invoke): Add a missing 'return'.
2797
2798 2013-01-21  Tom Tromey  <tromey@redhat.com>
2799
2800         * gdb_obstack.h (obconcat): Move declaration here, from...
2801         * symfile.h (obconcat): ... here.
2802         * gdb_obstack.c: New file.
2803         (obconcat): Move from...
2804         * symfile.c (obconcat): ... here.
2805         * Makefile.in (SFILES): Add gdb_obstack.c.
2806         (COMMON_OBS): Add gdb_obstack.o.
2807
2808 2013-01-21  Tom Tromey  <tromey@redhat.com>
2809
2810         * symfile.h (obsavestring): Don't declare.
2811         * symfile.c (obsavestring): Remove.
2812         * ada-exp.y: Use obstack_copy0, not obsavestring.
2813         * ada-lang.c: Use obstack_copy0, not obsavestring.
2814         * coffread.c: Use obstack_copy0, not obsavestring.
2815         * cp-namespace.c: Use obstack_copy0, not obsavestring.
2816         * dbxread.c: Use obstack_copy0, not obsavestring.
2817         * dwarf2read.c: Use obstack_copy0, not obsavestring.
2818         * jit.c: Use obstack_copy0, not obsavestring.
2819         * mdebugread.c: Use obstack_copy0, not obsavestring.
2820         * psymtab.c: Use obstack_copy0, not obsavestring.
2821         * stabsread.c: Use obstack_copy0, not obsavestring.
2822         * xcoffread.c: Use obstack_copy0, not obsavestring.
2823
2824 2013-01-21  Tom Tromey  <tromey@redhat.com>
2825
2826         * dwarf2read.c (fixup_go_packaging): Save package name
2827         on objfile obstack.
2828         * gdbtypes.c (init_type): Don't copy name.
2829
2830 2013-01-21  Tom Tromey  <tromey@redhat.com>
2831
2832         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
2833         const.
2834         (struct attribute) <u.str>: Now const.
2835         (struct fnfieldlist) <name>: Now const.
2836         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
2837         (partial_die_parent_scope): Make return type const.
2838         (partial_die_full_name, add_partial_symbol): Update.
2839         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
2840         'name' const.
2841         (find_file_and_directory): Make 'name' and 'comp_dir' const.
2842         (read_file_scope, read_func_scope, dwarf2_add_field)
2843         (dwarf2_add_member_fn, read_structure_type)
2844         (process_enumeration_scope, read_array_type, read_module_type)
2845         (read_base_type, read_subrange_type): Update.
2846         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
2847         (new_symbol_full, guess_full_die_structure_name): Update.
2848         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
2849         (dwarf2_name): Return const type.
2850         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
2851         const.
2852
2853 2013-01-21  Tom Tromey  <tromey@redhat.com>
2854
2855         * gdbtypes.c (init_type): Make 'name' const.
2856         * gdbtypes.h (init_type): Update.
2857
2858 2013-01-21  Tom Tromey  <tromey@redhat.com>
2859
2860         * buildsym.c (patch_subfile_names): Use set_last_source_file.
2861         (start_symtab): Make 'name' and 'dirname' const.  Use
2862         set_last_source_file.
2863         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
2864         (last_source_file): Define.  Now static.
2865         (set_last_source_file, get_last_source_file): New functions.
2866         * buildsym.h (last_source_file): Don't declare.
2867         (start_symtab): Update.
2868         (set_last_source_file, get_last_source_file): Declare.
2869         * coffread.c (complete_symtab): Use set_last_source_file.
2870         (coff_end_symtab): Likewise.
2871         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
2872         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
2873         set_last_source_file.
2874         (process_one_symbol): Use get_last_source_file.
2875         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
2876         (psymtab_to_symtab_1): Use get_last_source_file.
2877         * xcoffread.c (process_linenos): Use get_last_source_file.
2878         (complete_symtab): Use set_last_source_file.
2879         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
2880         (scan_xcoff_symtab): Use set_last_source_file.
2881
2882 2013-01-21  Tom Tromey  <tromey@redhat.com>
2883
2884         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
2885         (symbol_set_names): Remove casts.  Handle field const-ness.
2886
2887 2013-01-21  Tom Tromey  <tromey@redhat.com>
2888
2889         * dwarf2read.c (new_symbol_full): Remove cast.
2890         * symtab.c (symbol_set_demangled_name): Make 'name' const.
2891         * symtab.h (symbol_set_demangled_name): Update.
2892
2893 2013-01-21  Tom Tromey  <tromey@redhat.com>
2894
2895         * main.c (captured_main): Call bfd_init.
2896
2897 2013-01-21  Tom Tromey  <tromey@redhat.com>
2898
2899         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
2900         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
2901         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
2902         * NEWS: Update.
2903
2904 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2905
2906         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
2907
2908 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2909
2910         Fix gdb.fortran/common-block.exp crash in PIE mode.
2911         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
2912         LOC_COMMON_BLOCK.
2913         * f-valprint.c (info_common_command_for_block): Expect
2914         LOC_COMMON_BLOCK in gdb_assert.
2915         * symtab.h (struct general_symbol_info): Update comment for the
2916         common_block member.
2917         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
2918         (enum address_class): New member LOC_COMMON_BLOCK.
2919
2920 2013-01-18  David Blaikie  <dblaikie@gmail.com>
2921
2922         * MAINTAINERS (Write After Approval): Add "David Blaikie".
2923
2924 2013-01-18  Tom Tromey  <tromey@redhat.com>
2925
2926         PR c++/14999:
2927         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
2928         Call require_rvalue.
2929
2930 2013-01-18  Yao Qi  <yao@codesourcery.com>
2931
2932         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
2933         (dbx_read_symtab): New declaration.
2934         (dbx_psymtab_to_symtab): Delete.
2935         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
2936         Rename parameter PST to SELF.  Exchanged two parameters.
2937         (start_psymtab): Caller update.
2938         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
2939         (dwarf2_read_symtab): New declaration.
2940         (dwarf2_psymtab_to_symtab): Delete.
2941         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
2942         Rename parameter PST to SELF.  Exchanged two parameters.
2943         (create_partial_symtab): Caller update.
2944         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
2945         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
2946         Rename parameter PST to SELF.  Exchanged two parameters.
2947         (parse_partial_symbols, new_psymtab): Caller update.
2948         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
2949         two parameters.
2950         * psymtab.c (psymtab_to_symtab): Caller update.
2951         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
2952         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
2953         Rename parameter PST to SELF.  Exchanged two parameters.
2954         (xcoff_start_psymtab): Caller update.
2955
2956 2013-01-18  Yao Qi  <yao@codesourcery.com>
2957
2958         * infrun.c (proceed): Rename local variable 'oneproc' to
2959         'force_step'.
2960
2961 2013-01-17  Doug Evans  <dje@google.com>
2962
2963         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
2964         (dw2_build_type_unit_groups): Delete.  All uses updated.
2965
2966         * symtab.h (struct symbol_search): Add comment.
2967
2968 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2969
2970         * symtab.c (compare_filenames_for_search): New comment for
2971         HAS_DRIVE_SPEC.
2972
2973 2013-01-17  Tom Tromey  <tromey@redhat.com>
2974
2975         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
2976
2977 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2978
2979         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
2980         initialize it by existing make_cleanup.  Call new do_cleanups.
2981
2982 2013-01-17  Tom Tromey  <tromey@redhat.com>
2983
2984         * cp-abi.c (cp_abi_completer): New function.
2985         (_initialize_cp_abi): Set completer for "set cp-abi".
2986
2987 2013-01-17  Tom Tromey  <tromey@redhat.com>
2988
2989         * mem-break.c: Remove obsolete comment.
2990         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2991
2992 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
2993
2994         * jit.c (jit_reader_load_command): Interpret the jit reader name
2995         as an absolute path if it begins with a forward slash.
2996
2997 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
2998
2999         PR gdb/14550
3000
3001         * jit.c (finalize_symtab): Ensure that only the global block has a
3002         NULL superblock.
3003
3004 2013-01-17  Pedro Alves  <palves@redhat.com>
3005
3006         * acinclude.m4: Include ../config/plugins.m4,
3007         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
3008         * Makefile.in (aclocal_m4_deps): Update.
3009         * aclocal.m4: Renegerate.
3010
3011 2013-01-16  Doug Evans  <dje@google.com>
3012
3013         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
3014
3015 2013-01-16  Pedro Alves  <palves@redhat.com>
3016             Tom Tromey  <tromey@redhat.com>
3017
3018         PR cli/7221:
3019         * NEWS: Add "catch signal".
3020         * breakpoint.c (base_breakpoint_ops): No longer static.
3021         (bpstat_explains_signal): New function.
3022         (init_catchpoint): No longer static.
3023         (base_breakpoint_explains_signal): New function.
3024         (base_breakpoint_ops): Initialize new field.
3025         * breakpoint.h (enum bpstat_signal_value): New.
3026         (struct breakpoint_ops) <explains_signal>: New field.
3027         (bpstat_explains_signal): Remove macro, declare as function.
3028         (base_breakpoint_ops, init_catchpoint): Declare.
3029         * break-catch-sig.c: New file.
3030         * inferior.h (signal_catch_update): Declare.
3031         * infrun.c (signal_catch): New global.
3032         (handle_syscall_event): Update for change to
3033         bpstat_explains_signal.
3034         (handle_inferior_event): Likewise.  Always handle random signals
3035         via bpstats.
3036         (signal_cache_update): Check signal_catch.
3037         (signal_catch_update): New function.
3038         (_initialize_infrun): Initialize signal_catch.
3039         * Makefile.in (SFILES): Add break-catch-sig.c.
3040         (COMMON_OBS): Add break-catch-sig.o.
3041
3042 2013-01-16  Tom Tromey  <tromey@redhat.com>
3043
3044         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
3045         (print_one_catch_solib, print_one_catch_syscall)
3046         (print_one_catch_exec, print_one_exception_catchpoint): Emit
3047         "catch-type".
3048
3049 2013-01-16  Yao Qi  <yao@codesourcery.com>
3050
3051         * printcmd.c (current_display_number): Make it static.
3052
3053 2013-01-16  Yao Qi  <yao@codesourcery.com>
3054
3055         * infcmd.c (step_once): Don't check '!single_inst' as it was
3056         checked before.
3057
3058 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3059
3060         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
3061
3062 2013-01-14  Tom Tromey  <tromey@redhat.com>
3063
3064         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
3065         set command.
3066         * command.h (add_setshow_string_noescape_cmd): Update.
3067         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
3068         (complete_set_gnutarget): New function.
3069         (_initialize_core): Set the "set gnutarget" completer.
3070
3071 2013-01-14  Tom Tromey  <tromey@redhat.com>
3072
3073         PR symtab/14442:
3074         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
3075         (c_type_print_modifier): Likewise.
3076         * dwarf2read.c (read_tag_restrict_type): New function.
3077         (read_type_die_1): Handle DW_TAG_restrict_type.
3078         * gdbtypes.c (make_restrict_type): New function.
3079         (recursive_dump_type): Handle TYPE_RESTRICT.
3080         * gdbtypes.h (enum type_flag_values): Renumber.
3081         (enum type_instance_flag_value): Add
3082         TYPE_INSTANCE_FLAG_RESTRICT.
3083         (TYPE_RESTRICT): New macro.
3084         (make_restrict_type): Declare.
3085
3086 2013-01-14  Tom Tromey  <tromey@redhat.com>
3087
3088         PR symtab/14931:
3089         * psymtab.c (struct psymtab_state): New.
3090         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
3091         functions.
3092         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
3093         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
3094
3095 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
3096             Pedro Alves  <palves@redhat.com>
3097
3098         PR remote/14786
3099
3100         * remote.c (remote_threads_info): Make a copy of the reply from
3101         qfThreadInfo and use that instead of rs->buf.
3102
3103 2013-01-14  Yao Qi  <yao@codesourcery.com>
3104
3105         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
3106         (dbx_psymtab_to_symtab): Likewise.
3107         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
3108         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
3109         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
3110
3111 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3112
3113         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
3114         make_cleanup_restore_current_language.  Call set_language.  Move
3115         OLD_CHAIN and INNER_CHAIN cleanups.
3116         * utils.c (do_restore_current_language)
3117         (make_cleanup_restore_current_language): New functions.
3118         * utils.h (make_cleanup_restore_current_language): New declaration.
3119
3120 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3121
3122         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
3123         non-existing files.
3124
3125         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
3126         non-existing files if FILENAME is already absolute.
3127
3128 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3129
3130         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
3131         fputs_filtered.  Append trailing newline.
3132
3133 2013-01-11  Yao Qi  <yao@codesourcery.com>
3134             Stan Shebs  <stan@codesourcery.com>
3135
3136         * psymtab.c (init_psymbol_list): Clarify the comment.
3137
3138 2013-01-11  Yao Qi  <yao@codesourcery.com>
3139
3140         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
3141         (update_dprintf_command_list): Assert that 'printf_line' is
3142         non-null.  Remove condition check.
3143
3144 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3145
3146         Code cleanup.
3147         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
3148         type const char *.
3149         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
3150         const char *.
3151         * tui/tui-source.h (tui_source_is_displayed): Likewise.
3152
3153 2013-01-09  Anthony Green  <green@moxielogic.com>
3154
3155         * cp-abi.c (cplus_print_vtable): Don't return value from void
3156         function.
3157         * ada-lang.c (re_set_catch_assert): Ditto.
3158
3159 2013-01-09  Doug Evans  <dje@google.com>
3160
3161         * symfile.h (quick_symbol_functions): Delete member
3162         pre_expand_symtabs_matching.  All uses removed.
3163         * dwarf2read.c (dw2_lookup_symbol): Implement.
3164         (dw2_do_expand_symtabs_matching): Delete.
3165         (dw2_pre_expand_symtabs_matching): Delete.
3166         (struct dw2_symtab_iterator): New type.
3167         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
3168         (dw2_expand_symtabs_for_function): Rewrite.
3169         (dwarf2_gdb_index_functions): Update.
3170         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
3171         (psym_functions): Update.
3172
3173 2013-01-09  Tom Tromey  <tromey@redhat.com>
3174
3175         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
3176         * configure: Rebuild.
3177         * configure.ac: Add somread.o to the build if BFD has SOM
3178         support.
3179         * somread.c: Include som/aout.h, not syms.h.
3180         (som_symtab_read): Use som_external_symbol_dictionary_record.
3181         Unpack records manually.
3182         (_initialize_somread): Declare.
3183
3184 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
3185
3186         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
3187         Cast return_address to 64bits.
3188
3189 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
3190
3191         * printcmd.c: Remove define of function output_command.
3192         * tracepoint.c: Remove extern of function output_command.
3193         * valprint.h: (output_command): New extern.
3194
3195 2013-01-07  Tom Tromey  <tromey@redhat.com>
3196
3197         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
3198         Remove.
3199         (objc_language_defn): Use c_printchar, c_printstr,
3200         c_emit_char.
3201
3202 2013-01-07  Tom Tromey  <tromey@redhat.com>
3203
3204         PR cli/7719:
3205         * NEWS: Update.
3206         * ada-valprint.c (printstr, print_field_values): Remove
3207         "inspect_it" code.
3208         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
3209         code.
3210         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
3211         code.
3212         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
3213         * main.c (captured_main): Remove "epoch" argument.
3214         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
3215         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
3216         * p-valprint.c (pascal_object_print_value_fields): Remove
3217         "inspect_it" code.
3218         * printcmd.c (print_command_1): Remove 'inspect' argument.
3219         (print_command, call_command): Update.
3220         (inspect_command): Remove.
3221         (_initialize_printcmd): Make "inspect" an alias for "print".
3222         * top.c (epoch_interface): Remove.
3223         * top.h (epoch_interface): Remove.
3224         * valprint.c (user_print_options): Update.
3225         (print_converted_chars_to_obstack): Remove "inspect_it" code.
3226         * valprint.h (struct value_print_options) <inspect_it>: Remove
3227         field.
3228
3229 2013-01-04  Tom Tromey  <tromey@redhat.com>
3230
3231         * valprint.h (read_string): Add 'extern'.
3232
3233 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
3234
3235         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
3236         used to decide whether to define darwin_read_dyld_info or not.
3237
3238 2013-01-03  Pierre Muller  <muller@sourceware.org>
3239
3240         * main.c (relocate_gdb_directory): Avoid calling stat function
3241         if DIR is empty.
3242
3243 2013-01-03  Yao Qi  <yao@codesourcery.com>
3244
3245         * psymtab.c (fixup_psymbol_section): Update declaration.
3246         (fixup_psymbol_section): Remove code returning value.
3247
3248 2013-01-03  Yao Qi  <yao@codesourcery.com>
3249
3250         * symtab.h: Remove some out of date comments.
3251          (enum exception_event_kind): Move it ...
3252         * breakpoint.c: ... here.
3253
3254 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3255
3256         PR gdb/14405
3257         * darwin-nat.c (darwin_read_dyld_info): Only build if
3258         TASK_DYLD_INFO_COUNT is defined.
3259         (darwin_xfer_partial): Call darwin_read_dyld_info only if
3260         TASK_DYLD_INFO_COUNT is defined.
3261
3262 2013-01-02  Tom Tromey  <tromey@redhat.com>
3263
3264         * symfile.h (struct ecoff_debug_hack): Remove.
3265         * objfiles.c: Don't include mdebugread.h.
3266
3267 2013-01-02  Tom Tromey  <tromey@redhat.com>
3268
3269         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
3270         * configure.ac: Check for Mach-O support in BFD.  Update
3271         CONFIG_OBS.
3272         * configure: Rebuild.
3273
3274 2013-01-02  Tom Tromey  <tromey@redhat.com>
3275
3276         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
3277         * configure.ac: Use GDB_AC_CHECK_BFD.
3278         * configure: Rebuild.
3279
3280 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3281
3282         * MAINTAINERS: Update my email.
3283
3284 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
3285
3286         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
3287
3288 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
3289
3290         * rs6000-nat.c (bss_data_overlap): New function.
3291         (vmap_symtab): Use it to adjust the .bss section's offset.
3292
3293 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
3294
3295         Update year range in copyright notice of all files.
3296
3297 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
3298
3299         * top.c (print_gdb_version): Update copyright year.
3300
3301 For older changes see ChangeLog-2012.
3302 \f
3303 Local Variables:
3304 mode: change-log
3305 left-margin: 8
3306 fill-column: 74
3307 version-control: never
3308 coding: utf-8
3309 End: