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