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