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