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