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