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