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