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