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