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