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