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