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