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