gdb: btrace: fix build errors on older glibc builds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b4e221c
MF
12013-09-28 Mike Frysinger <vapier@gentoo.org>
2
3 * common/linux-btrace.c: Move sys/syscall.h out of the
4 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
5 Also check for SYS_perf_event_open before attempting to buid.
6
57d63ce2
DE
72013-09-27 Doug Evans <dje@google.com>
8
19ac8c2e
DE
9 * dwarf2read.c (dwarf2_section_info): Add comment.
10 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
11 All uses updated.
12 (dwarf2_section_empty_p): Rename arg from "info" to "section".
13 (dwarf2_read_section): Delete unused local "header". Add section
14 name to error message.
15 (create_dwo_in_dwp): Tweak comment.
16 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
17
a32a8923
DE
18 * dwarf2read.c (die_reader_specs): Tweak comment.
19 (get_section_bfd_owner, get_section_bfd_section): New functions.
20 (get_section_name, get_section_file_name): New functions.
21 (get_section_id, get_section_flags): New functions.
22 (*): Use new functions to access section fields.
23
57d63ce2
DE
24 * dwarf2read.c (struct dwo_file): Add/tweak comments.
25 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
26 arg "htab". All callers updated.
27 (create_debug_types_hash_table): Remove redundant copy of
28 abbrev_section.
29 (create_dwo_in_dwp): Tweak comments.
30 (read_str_index): Tweak comment. Record dwarf form name in static
31 local.
32
3736004f
PA
332013-09-27 Pedro Alves <palves@redhat.com>
34
35 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
36 (remote_filename_p): Add comment.
37 * remote.c (remote_filename_p): Adjust to use
38 REMOTE_SYSROOT_PREFIX.
39 * solib.c (solib_find): When deciding whether we need to add a
40 directory separator, check whether the sysroot is "remote:"
41 instead of checking whether the patch has a drive spec. Add
42 comments.
43
5b5596ff
PA
442013-09-27 Pedro Alves <palves@redhat.com>
45
46 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
47 Delete fields.
48 (remote_parse_stop_reply): Adjust, setting event->ws.kind
49 directly.
50
b5eef7aa
JK
512013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 Fix set debug frame output.
54 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
55 SENTINEL_FRAME entry lower to match enum frame_type order.
56
5b856f36
PM
572013-09-26 Pierre Muller <muller@sourceware.org>
58
59 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
60 AMD64_R15_REGNUM when a register index is expected.
61 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
62 Substitute in array.
63 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
64 (amd64_push_arguments): Substitute in integer_regnum array.
65
ade7ed9e
DE
662013-09-25 Doug Evans <dje@google.com>
67
d3e81981
DE
68 * objfiles.c (allocate_objfile): Move comment to better place.
69
8fb8eb5c
DE
70 New option "set debug symfile on".
71 * NEWS: Mention "set debug symfile".
72 * Makefile.in (SFILES): Add symfile-debug.c.
73 (COMMON_OBS): Add symfile-debug.o.
74 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
75 objfile's symbol functions.
76 * objfiles.h (objfile_set_sym_fns): Declare.
77 * symfile-debug.c: New file.
78 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
79 objfile's symbol functions.
80 (reread_symbols): Ditto.
81
c256e171
DE
82 * symfile.h (struct sym_fns): Delete member "sym_flavour".
83 All uses updated.
84 (add_symtab_fns): Update prototype.
85 * symfile.c (sym_fns_ptr): Delete. Replace with ...
86 (registered_sym_fns): ... this.
87 (symtab_fns): Update.
88 (add_symtab_fns): New arg "flavour". All callers updated.
89 (find_sym_fns): Rewrite to use new sym_fns registry.
90
f56ce883
DE
91 * symfile.h (struct sym_fns): Add "objfile" argument to
92 sym_read_linetable. All uses updated.
93
20c681d1
DE
94 * symtab.c (domain_name, search_domain_name): New functions.
95 * symtab.h (domain_name, search_domain_name): Declare.
96
ade7ed9e
DE
97 * symfile.h (struct quick_symbol_functions): Reorg arg list of
98 map_matching_symbols so objfile is first. All uses updated.
99 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
100 * psymtab.c (map_matching_symbols_psymtab): Update signature.
101
7d760051
UW
1022013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
103
104 PR shlibs/8882
105 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
106 link map entries.
107
020f7036
DE
1082013-09-24 Doug Evans <dje@google.com>
109
110 * objfiles.c (free_objfile): Move comment.
111
598402f0
JB
1122013-09-24 Joel Brobecker <brobecker@adacore.com>
113
114 * ada-exp.y (string_to_operator): Delete.
115 (dummy_string_to_ada_operator): Delete.
116
bf4d6c1c
JB
1172013-09-24 Joel Brobecker <brobecker@adacore.com>
118
119 Revert:
120 * i386-tdep.h (enum amd64_reg_class): New, moved here from
121 amd64-tdep.c.
122 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
123 call_dummy_integer_regs, and classify.
124 * amd64-tdep.h (amd64_classify): Add declaration.
125 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
126 (amd64_reg_class): Delete, moved to i386-tdep.h.
127 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
128 Replace call to amd64_classify by call to tdep->classify.
129 (amd64_push_arguments): Get the list of registers to use for
130 passing integer parameters from the gdbarch tdep structure,
131 rather than using a hardcoded one. Replace calls to amd64_classify
132 by calls to tdep->classify.
133 (amd64_push_dummy_call): Get the register number used for
134 the "hidden" argument from tdep->call_dummy_integer_regs.
135 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
136 and tdep->call_dummy_integer_regs. Set tdep->classify.
137
849e9755
JB
1382013-09-24 Joel Brobecker <brobecker@adacore.com>
139
140 Revert:
141 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
142 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
143 where tdep->memory_args_by_pointer is non-zero.
144
c1459fd6
JB
1452013-09-24 Joel Brobecker <brobecker@adacore.com>
146
147 Revert:
148 * i386-tdep.h (struct gdbarch_tdep): Add new field
149 integer_param_regs_saved_in_caller_frame.
150 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
151 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
152
20c2e3e0
JB
1532013-09-24 Joel Brobecker <brobecker@adacore.com>
154
874440b8 155 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
156 (amd64_windows_classify): Delete.
157 (amd64_windows_passed_by_integer_register)
158 (amd64_windows_passed_by_xmm_register)
159 (amd64_windows_passed_by_pointer)
160 (amd64_windows_adjust_args_passed_by_pointer)
161 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
162 (amd64_windows_push_dummy_call): New functions.
163 (amd64_windows_init_abi): Remove setting of
164 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
165 tdep->classify, tdep->memory_args_by_pointer and
166 tdep->integer_param_regs_saved_in_caller_frame.
167 Add call to set_gdbarch_push_dummy_call.
168
82bf32bc
JK
1692013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
170
171 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
172 objfile->original_name.
173
24ba069a
JK
1742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 Pass down original filename for objfile.
177 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
178 * elfread.c (elf_symfile_read): Likewise.
179 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
180 longer set ORIGINAL_NAME.
181 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
182 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
183 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
184 symbol_file_add_from_bfd call.
185 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
186 (macho_check_dsym): Add parameter filenamep. Change function comment.
187 Set *filenamep.
188 (macho_symfile_read): New variable dsym_filename. Update
189 macho_check_dsym call. Use it for symbol_file_add_separate.
190 * objfiles.c (allocate_objfile): Add parameter name. New comment for
191 it. Use it for objfile->original_name.
192 (objfile_name): Return OBFD's filename, if available.
193 * objfiles.h (allocate_objfile): Add new parameter name.
194 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
195 * symfile-mem.c (symbol_file_add_from_memory): Update
196 symbol_file_add_from_bfd call.
197 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
198 comment for it.
199 (symbol_file_add_with_addrs): New parameter name, add function comment
200 for it. Remove variable name. Update allocate_objfile call.
201 (symbol_file_add_separate): New parameter name, add function comment
202 for it. Update symbol_file_add_with_addrs call.
203 (symbol_file_add_from_bfd): New parameter name. Update
204 symbol_file_add_with_addrs call.
205 (symbol_file_add): Update symbol_file_add_from_bfd call.
206 (reread_symbols): New variable original_name. Save
207 objfile->original_name by it.
208 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
209 second parameter.
210
4262abfb
JK
2112013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
212
213 Code cleanup: Add objfile_name accessor function.
214 * ada-lang.c (is_known_support_routine): Use objfile_name.
215 * auto-load.c (source_gdb_script_for_objfile)
216 (auto_load_objfile_script): Likewise.
217 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
218 * dbxread.c (dbx_symfile_read): Likewise.
219 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
220 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
221 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
222 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
223 (lookup_dwp_signatured_type, lookup_dwo_unit)
224 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
225 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
226 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
227 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
228 (dwarf2_record_block_ranges, read_common_block, read_typedef)
229 (read_subrange_type, load_partial_dies, read_partial_die)
230 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
231 (die_containing_type, build_error_marker_type, lookup_die_type)
232 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
233 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
234 (get_DW_AT_signature_type, write_psymtabs_to_index)
235 (save_gdb_index_command): Likewise.
236 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
237 Likewise.
238 * expprint.c (dump_subexp_body_standard): Likewise.
239 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
240 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
241 original_name.
242 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
243 obj_name, use objfile_name for it, use the variable.
244 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
245 Use objfile_name.
246 * machoread.c (macho_symtab_read, macho_check_dsym)
247 (macho_symfile_relocate): Likewise.
248 * maint.c (maintenance_translate_address): Likewise.
249 * minidebug.c (find_separate_debug_file_in_section): Likewise.
250 * minsyms.c (install_minimal_symbols): Likewise.
251 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
252 original_name.
253 (filter_overlapping_sections): Use objfile_name.
254 (objfile_name): New function.
255 * objfiles.h (struct objfile): Rename field name to original_name.
256 (objfile_name): New prototype.
257 * printcmd.c (sym_info, address_info): Use objfile_name.
258 * probe.c (parse_probes, collect_probes, compare_probes)
259 (info_probes_for_ops): Likewise.
260 * progspace.c (clone_program_space): Likewise.
261 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
262 (maintenance_info_psymtabs): Likewise.
263 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
264 (source_section_scripts): Likewise.
265 * python/py-objfile.c (objfpy_get_filename): Likewise.
266 * python/py-progspace.c (pspy_get_filename): Likewise.
267 * solib-aix.c (solib_aix_get_toc_value): Likewise.
268 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
269 * solib.c (solib_read_symbols): Likewise.
270 * stabsread.c (scan_file_globals): Likewise.
271 * stap-probe.c (handle_stap_probe): Likewise.
272 * symfile.c (symbol_file_clear, separate_debug_file_exists)
273 (find_separate_debug_file_by_debuglink): Likewise.
274 (reread_symbols): Likewise. Use the objfile field name renamed to
275 original_name.
276 (allocate_symtab): Use objfile_name.
277 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
278 (dump_objfile, dump_msymbols, dump_symtab_1)
279 (maintenance_print_msymbols, maintenance_print_objfiles)
280 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
281 * target.c (target_translate_tls_address, target_info): Likewise.
282 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
283 objfile_name.
284
4721dc18
JK
2852013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 Code cleanup.
288 * probe.c (parse_probes): Rename variable objfile_name to
289 objfile_namestr.
290
a61d6db8
JK
2912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 Remove solib-sunos.c.
294 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
295 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
296 * objfiles.c (rt_common_objfile): Remove.
297 (free_objfile): Remove rt_common_objfile comparison.
298 * objfiles.h (rt_common_objfile): Remove.
299 * solib-sunos.c: Remove.
300 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
301
2659903b
JK
3022013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 Remove a.out NetBSD and OpenBSD hosts.
305 * NEWS (Removed native configurations): New.
306 * config/arm/nbsdaout.mh: Remove.
307 * config/i386/nbsdaout.mh: Remove.
308 * config/i386/obsdaout.mh: Remove.
309 * config/m68k/nbsdaout.mh: Remove.
310 * config/sparc/nbsdaout.mh: Remove.
311 * config/vax/nbsdaout.mh: Remove.
312 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
313 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
314 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
315 error.
316 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
317 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
318 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
319
f60e2d5c
TT
3202013-09-23 Tom Tromey <tromey@redhat.com>
321
322 * linespec.c (struct minsym_and_objfile): Remove.
323 (minsym_and_objfile_d): Remove.
324 (struct linespec, struct collect_info, linespec_parse_basic)
325 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
326 (compare_msymbols, find_method, find_function_symbols)
327 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
328 (add_minsym, search_minsyms_for_name): Update.
329
d3eaaf66
AB
3302013-09-23 Andrew Burgess <aburgess@broadcom.com>
331
332 * regcache.c: Add include of valprint.h.
333 (dump_endian_bytes): Delete.
334 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
335
2cc762b5
AB
3362013-09-23 Andrew Burgess <aburgess@broadcom.com>
337
338 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
339
96181529
PA
3402013-09-19 Pedro Alves <palves@redhat.com>
341
342 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
343 breakpoints.
344
9b3f3ee6
TS
3452013-09-19 Pedro Alves <palves@redhat.com>
346 Thomas Schwinge <thomas@codesourcery.com>
347 Yue Lu <hacklu.newborn@gmail.com>
348
349 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
350 Take a gdb_byte pointer instead of a char pointer.
351
352 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
353 gnu_xfer_partial helper.
354 (gnu_xfer_partial): New function.
355 (gnu_target): Don't install a deprecated_xfer_memory hook.
356 Install a to_xfer_partial hook.
357
69150c3d
JK
3582013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 Constification.
361 * main.c (captured_main): Replace catch_command_errors by
362 catch_command_errors_const. Twice.
363 * symfile.c (symbol_file_add_main_1): Make args parameter const.
364 (symbol_file_add): Make name parameter const.
365 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
366 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
367 variable name. Change their usage accordingly.
368 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
369 const.
370 (symbol_file_add_main): Make args parameter const.
371
086850b2
UW
3722013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
373 Ulrich Weigand <uweigand@de.ibm.com>
374
375 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
376 of c_value member.
377 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
378
ca08a94c 3792013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 380 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
381
382 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
383 (gnu_create_inferior)
384 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
385 (set_sig_thread_cmd): Use the lwpid field of ptids to
386 store/extract thread ids instead of the tid field.
387 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
388
e4c6a2c4
AB
3892013-09-18 Andrew Burgess <aburgess@broadcom.com>
390
391 * infcmd.c (default_print_one_register_info): Add detection of
392 optimized out values.
393 (default_print_registers_info): Switch to using
394 get_frame_register_value.
395
58c48e72
MM
3962013-09-18 Markus Metzger <markus.t.metzger@intel.com>
397
398 * infrun.c (handle_inferior_event): Check if we know the
399 function start address before setting a resume breakpoint.
400
c8d37639
PA
4012013-09-18 Pedro Alves <palves@redhat.com>
402
403 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
404 minus_one_ptid instead of looking at the ptid's tid field and
405 comparing that to -1.
406
71926e28
AB
4072013-09-18 Andrew Burgess <aburgess@broadcom.com>
408
409 * main.h (get_gdb_program_name): Remove extra whitespace.
410
c88a1531
AB
4112013-09-18 Andrew Burgess <aburgess@broadcom.com>
412
413 * main.h (get_gdb_program_name): Add declaration.
414 * main.c (get_gdb_program_name): Add definition.
415
4390d890
DE
4162013-09-17 Doug Evans <dje@google.com>
417
418 * dwarf2read.c: Move definitions of complaint functions to after
419 forward declarations of local functions.
420
49fa26b0
PA
4212013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
422 Pedro Alves <palves@redhat.com>
423
424 PR gdb/11568
425 * breakpoint.c (remove_threaded_breakpoints): New function.
426 (_initialize_breakpoint): Attach remove_threaded_breakpoints
427 as thread_exit observer.
428
08d72866
PA
4292013-09-17 Pedro Alves <palves@redhat.com>
430
431 PR gdb/15911
432 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
433 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
434 * corelow.c (core_open):
435 * frame.h (print_stack_frame, print_frame_info): New
436 'set_current_sal' parameter.
437 * infcmd.c (finish_command, kill_command): Adjust call to
438 print_stack_frame.
439 * inferior.c (inferior_command): Likewise.
440 * infrun.c (normal_stop): Likewise.
441 * linux-fork.c (linux_fork_context): Likewise.
442 * record-full.c (record_full_goto_entry, record_full_restore):
443 Likewise.
444 * remote-mips.c (common_open): Likewise.
445 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
446 Use it.
447 (print_frame_info): New 'set_current_sal' parameter. Set the last
448 displayed sal depending on the new paremeter instead of looking at
449 print_what.
450 (backtrace_command_1, select_and_print_frame, frame_command)
451 (current_frame_command, up_command, down_command): Adjust call to
452 print_stack_frame.
453 * thread.c (print_thread_info, restore_selected_frame)
454 (do_captured_thread_select): Adjust call to print_stack_frame.
455 * tracepoint.c (tfind_1): Likewise.
456 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
457 (mi_cmd_stack_info_frame): Likewise.
458 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
459 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
460
6bc305f5
SDJ
4612013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
462
463 * value.c (isvoid_internal_fn): Replace "parameter" with
464 "argument".
465
0a7cfe2c
SS
4662013-09-16 Stan Shebs <stan@codesourcery.com>
467
468 * README: Update references to writing code for GDB.
469 * configure.ac (build_warnings): Remove obsolete comment.
470 * configure: Regenerate.
471 * gdbarch.sh: Remove references to gdbint.texinfo.
472 * gdbarch.h: Regenerate.
473 * gdbtypes.c (objfile_type): Remove comments referencing internals
474 manual and D10V.
475
a280dbd1
SDJ
4762013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
477
478 * NEWS: Mention new convenience function $_isvoid.
479 * value.c (isvoid_internal_fn): New function.
480 (_initialize_values): Add new convenience function $_isvoid.
481
04a83fee
PM
4822013-09-16 Pierre Muller <muller@sourceware.org>
483
484 * arm-linux-tdep.c: Add "elf/common.h" header.
485 Remove AT_HWCAP macro definintion as it is provided in
486 added include file.
487 * s390-tdep.c: Remove system header <elf.h>
488 Add "elf/common.h" header for AT_HWCAP definition.
489 (s390_core_read_description): Use correct CORE_ADDR
490 for hwcap local variable used as third parameter
491 of function target_auxv_search.
492
88505fac
PM
4932013-09-14 Pierre Muller <muller@sourceware.org>
494 Tom Tromey <tromey@redhat.com>
495 Pedro Alves <palves@redhat.com>
496
497 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
498 mode if operating system doesn't know O_CLOEXEC.
499
d3846e71
JK
5002013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 Code cleanup.
503 * symfile.c (reread_symbols): Move variable obfd_filename to a more
504 inner block.
505
4ac33720
UW
5062013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
507
508 * NEWS: Mention TDB support.
509 * features/s390-tdb.xml: New file.
510 * features/s390-te-linux64.xml: New file.
511 * features/s390x-te-linux64.xml: New file.
512 * features/Makefile (WHICH): Add new tdescs above.
513 (s390-te-linux64-expedite): Set.
514 (s390x-te-linux64-expedite): Set.
515 * features/s390-te-linux64.c: New file (generated).
516 * features/s390x-te-linux64.c: New file (generated).
517 * regformats/s390-te-linux64.dat: New file (generated).
518 * regformats/s390x-te-linux64.dat: New file (generated).
519 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
520 (HWCAP_S390_TE): Likewise.
521 (S390_TDB_DWORD0_REGNUM): Likewise.
522 (S390_TDB_DWORD0_REGNUM): Likewise.
523 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
524 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
525 (S390_TDB_ATIA_REGNUM): Likewise.
526 (S390_TDB_R0_REGNUM): Likewise.
527 (S390_TDB_R1_REGNUM): Likewise.
528 (S390_TDB_R2_REGNUM): Likewise.
529 (S390_TDB_R3_REGNUM): Likewise.
530 (S390_TDB_R4_REGNUM): Likewise.
531 (S390_TDB_R5_REGNUM): Likewise.
532 (S390_TDB_R6_REGNUM): Likewise.
533 (S390_TDB_R7_REGNUM): Likewise.
534 (S390_TDB_R8_REGNUM): Likewise.
535 (S390_TDB_R9_REGNUM): Likewise.
536 (S390_TDB_R10_REGNUM): Likewise.
537 (S390_TDB_R11_REGNUM): Likewise.
538 (S390_TDB_R12_REGNUM): Likewise.
539 (S390_TDB_R13_REGNUM): Likewise.
540 (S390_TDB_R14_REGNUM): Likewise.
541 (S390_TDB_R15_REGNUM): Likewise.
542 (S390_NUM_REGS): Increase.
543 (S390_IS_TDBREGSET_REGNUM): New macro.
544 (s390_regmap_tdb): Declare.
545 (s390_sizeof_tdbregset): Define.
546 (tdesc_s390_te_linux64): Declare.
547 (tdesc_s390x_te_linux64): Likewise.
548 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
549 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
550 (s390_regmap_tdb): New regmap.
551 (s390_supply_tdb_regset): New function.
552 (s390_tdb_regset): New regset.
553 (s390_linux64v2_regset_sections): Add TDB regset to list.
554 (s390x_linux64v2_regset_sections): Likewise.
555 (s390_regset_from_core_section): Recognize TDB core note section.
556 (s390_core_read_description): If HWCAP indicates TE support,
557 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
558 (s390_gdbarch_init): Handle TDB regset.
559 (_initialize_s390_tdep): Initialize new tdescs.
560 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
561 (have_regset_tdb): New variable.
562 (s390_native_supply): Support register invalidation.
563 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
564 (check_regset): Treat ENODATA as "regset exists".
565 (s390_linux_fetch_inferior_registers): Add TDB.
566 (s390_read_description): Check for TDB existence and select
567 appropriate tdesc.
568 * gdbserver/Makefile.in (clean): Add removal of new makefile
569 targets.
570 (s390-te-linux64.c): New makefile target.
571 (s390x-te-linux64.c): Likewise.
572 * gdbserver/configure.srv (srv_regobj): Append new objects
573 s390-te-linux64.o and s390x-te-linux64.o.
574 (srv_xmlfiles): Append new files s390-te-linux64.xml,
575 s390x-te-linux64.xml, and s390-tdb.xml.
576 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
577 declaration.
578 (tdesc_s390_te_linux64): Likewise.
579 (init_registers_s390x_te_linux64): Likewise.
580 (tdesc_s390x_te_linux64): Likewise.
581 (s390_check_regset): Treat ENODATA as "regset exists".
582 (s390_arch_setup): Add TDB regset support.
583 (initialize_low_arch): Initialize registers for new tdescs.
584
2ccd1468
UW
5852013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
586
587 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
588 (S390_IS_FPREGSET_REGNUM): New macro.
589 * s390-tdep.c (s390_dwarf_regmap): Make const.
590 (regnum_is_gpr_full): New function for replacing repeated code.
591 (s390_pseudo_register_name): Use it.
592 (s390_pseudo_register_type): Likewise.
593 (s390_pseudo_register_read): Likewise.
594 (s390_pseudo_register_write): Likewise.
595 (s390_unwind_pseudo_register): Likewise.
596 (s390_regmap_gregset): New format for regmap.
597 (s390x_regmap_gregset): Likewise.
598 (s390_regmap_fpregset): Likewise.
599 (s390_regmap_upper): Likewise.
600 (s390_regmap_last_break): Likewise.
601 (s390_regmap_system_call): Likewise.
602 (s390_supply_regset): Adjust to new regmap format.
603 (s390_collect_regset): Likewise.
604 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
605 (s390_native_collect): Likewise.
606 (supply_gregset): Likewise.
607 (fill_gregset): Likewise.
608 (supply_fpregset): Likewise.
609 (fill_fpregset): Likewise.
610 (fetch_regset): Likewise.
611 (store_regset): Likewise.
612 (s390_linux_fetch_inferior_registers): Likewise.
613 (s390_linux_fetch_inferior_registers): Likewise.
614
1aa4cd77
AP
6152013-09-12 Andrew Pinski <apinski@cavium.com>
616
617 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
618
d91fab15
UW
6192013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
620
621 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
622
5a5d8ead
AB
6232013-09-09 Andrew Burgess <aburgess@broadcom.com>
624
625 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
626
1385f66c
PA
6272013-09-06 Pedro Alves <palves@redhat.com>
628
629 * remote-sim.c (dump_mem, gdbsim_fetch_register)
630 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
631 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
632 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
633 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
634 gdb_stdlog.
635
146ec4db
PA
6362013-09-06 Pedro Alves <palves@redhat.com>
637
638 * remote-sim.c (dump_mem): Constify buf parameter.
639 gdbsim_xfer_inferior_memory): Rename to ...
640 (gdbsim_xfer_memory): ... this. Adjust interface as
641 target_xfer_partial helper.
642 (gdbsim_xfer_partial): New function.
643 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
644 Install a to_xfer_partial hook. Send output to gdb_stdlog.
645
fcde0081
PA
6462013-09-06 Pedro Alves <palves@redhat.com>
647
648 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
649 host_address_to_string, and send debug output to gdb_stdlog.
650
749c8b38
RW
6512013-09-06 Ricard Wanderlof <ricardw@axis.com>
652
653 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
654 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
655 gdb_target_obs for cris target.
656 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
657 (cris_gdbarch_init): Move calls to
658 set_gdbarch_fetch_tls_load_module_address and
659 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
660 Add call to gdbarch_init_osabi.
661 * cris-linux-tdep.c: New file.
662 * cris-tdep.h: New file.
663
43df09d9
AB
6642013-09-06 Andrew Burgess <aburgess@broadcom.com>
665
666 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
667 to deprecated_init_ui_hook.
668
4d09c5b4
AB
6692013-09-06 Andrew Burgess <aburgess@broadcom.com>
670
671 * cli/cli-interp.c (_initialize_cli_interp): Add a
672 command_loop_proc to interp_procs.
673 * event-top.c (cli_command_loop): Change signature to match
674 interp_command_loop_ftype.
675 * event-top.h (cli_command_loop): Same.
676 * interps.c (interp_new): Require every interpreter to have a
677 command_loop_proc.
678 (current_interp_command_loop): Just call the command_loop_proc on
679 the current interpreter.
680 * tui/tui-interp.c (_initialize_tui_interp): Add a
681 command_loop_proc to interp_procs.
682
8eb3d7b6
RW
6832013-09-06 Ricard Wanderlof <ricardw@axis.com>
684
685 * cris-tdep.c (cris_gdbarch_init): Add call to
686 get_gdbarch_fetch_tls_load_module_address.
687
18b3c2f5
RW
6882013-09-06 Ricard Wanderlof <ricardw@axis.com>
689
690 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
691 (cris_elf_gregset_t): Rename from elf_gregset_t.
692 (crisv32_elf_gregset_t): Adjust.
693 (cris_supply_gregset, fetch_core_registers): Adjust.
694
dc8636ef
RW
6952013-09-06 Ricard Wanderlof <ricardw@axis.com>
696
697 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
698
257e6d53
AB
6992013-09-05 Andrew Burgess <aburgess@broadcom.com>
700
1581d8a7 701 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 702 references in comments.
1581d8a7 703 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
704 deprecated_command_loop_hook.
705 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
706 setup.
1581d8a7 707 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 708
7c33b57c
PA
7092013-09-05 Pedro Alves <palves@redhat.com>
710
711 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
712 local is now int instead of ULONGEST. Print it with %d
713 instead of paddress.
714
9f8edbd5
TG
7152013-09-05 Tristan Gingold <gingold@adacore.com>
716
717 * MAINTAINERS: Remove avr maintainership.
718
d5b495b4
PA
7192013-09-05 Pedro Alves <palves@redhat.com>
720
721 * findvar.c (value_of_register): Rework in terms of
722 value_of_register_lazy.
723
40b91786
MB
7242013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
725
726 * symfile.c (add_symbol_file_command): Remove trailing
727 whitespaces and blank line after comment.
728
6eed1678
PA
7292013-09-05 Pedro Alves <palves@redhat.com>
730
731 * tui/tui-regs.c (tui_register_format): Don't look at the
732 register's name here. Return string representing register
733 value instead of storing it in the data element.
734 (tui_get_register): Compare register string representations
735 instead of register value states and contents.
736
8eb6bda2
PA
7372013-09-05 Pedro Alves <palves@redhat.com>
738
739 PR tui/15933
740 * tui/tui-regs.c (tui_show_registers): Show registers of the
741 selected frame, not the current frame.
742
48b1f08c
RW
7432013-09-05 Ricard Wanderlof <ricardw@axis.com>
744
745 * MAINTAINERS (Write After Approval): Add myself to the list.
746
89e63ee4
DE
7472013-09-04 Doug Evans <dje@google.com>
748
749 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
750 (queue_and_load_dwo_tu): New function.
751 (lookup_dwo_signatured_type): Set per_cu.tu_read.
752 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
753 Make dependent_cu optional.
754 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
755 and an older .gdb_index is in use, queue and load all its TUs too.
756
492c0ab7
JK
7572013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
758
759 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
760 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
761 variable search_flags.
762 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
763 (OPF_RETURN_REALPATH): ... here.
764 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
765 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
766 call. Twice.
767 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
768 openp call.
769 * solib.c (solib_find): Likewise. Four times.
770 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
771 in the function comment and for the realpath_fptr variable.
772 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
773 (find_and_open_source): Likewise. Twice.
774 * symfile.c (symfile_bfd_open): Likewise, also twice.
775
23a44de8
DE
7762013-09-04 Doug Evans <dje@google.com>
777
778 * progspace.c (save_current_space_and_thread): Remove unnecessary
779 call to save_current_inferior.
780
47061676
AB
7812013-09-04 Andrew Burgess <aburgess@broadcom.com>
782
783 * sh64-tdep.c (sh64_do_register): Return after printing message
784 about unavailable register contents.
785
41dc8db8
MB
7862013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
787 Pedro Alves <palves@redhat.com>
788
789 * symfile.c (add_symbol_file_command): Error out on unknown
790 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
791 options and collapse into single conditional branch.
792
07107ca6
LM
7932013-09-03 Luis Machado <lgustavo@codesourcery.com>
794
a7ea61cf 795 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
796 detach_fork.
797 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
798 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
799 * inferior.h (detach_fork): Remove.
800 * infrun.c (detach_fork): Adjust comment and make it
801 static.
802 (follow_fork): Pass detach_fork parameter to
803 target_follow_fork.
804 * linux-nat.c (linux_child_follow_fork): New parameter
805 detach_fork.
806 * target.c (target_follow_fork): New parameter detach_fork.
807 Pass detach_fork as parameter and print its value.
808 * target.h (struct target_ops) <to_follow_fork>: New int
809 parameter.
810 (target_follow_fork): New parameter detach_fork.
811
3bec2768
JB
8122013-09-03 Joel Brobecker <brobecker@adacore.com>
813
814 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
815 Replace sec->bfd by sec->the_bfd_section->owner.
816
c01cbb3d
YQ
8172013-09-03 Yao Qi <yao@codesourcery.com>
818
819 * linux-tdep.c (linux_is_uclinux): New function. Code moved
820 from linux_has_shared_address_space.
821 (linux_has_shared_address_space): Call linux_is_uclinux.
822 * linux-tdep.h (linux_is_uclinux): Declare.
823 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
824 linux_is_uclinux.
825
7b00db47
YQ
8262013-09-03 Yao Qi <yao@codesourcery.com>
827
828 * config/djgpp/fnchange.lst: Remove entry of
829 i386-interix-nat.c and i386-interix-tdep.c.
830 * configure.ac: Remove '*-*-interix*'.
831 * configure: Re-generated.
832 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
833 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
834 obsolete comments.
835 * osabi.c (gdb_osabi_names): Remove "Interix".
836
0f9741f2
YQ
8372013-09-03 Yao Qi <yao@codesourcery.com>
838
839 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
840
1e038f67
MM
8412013-09-02 Markus Metzger <markus.t.metzger@intel.com>
842
843 * record.h (record_print_flag) <record_print_src_line,
844 record_print_insn_range>: Rename into ...
845 (record_print_flag) <record_print_src_line,
846 record_print_insn_range>: ... this. Update all users.
847
9e52adf9
PM
8482013-09-02 Pierre Muller <muller@sourceware.org>
849
850 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
851 error code.
852
a2388568
PM
8532013-09-02 Pierre Muller <muller@sourceware.org>
854
855 * windows-nat.c (windows_xfer_memory): Fix compilation failure
856 by use of plongest function.
857
9058cc3a
TG
8582013-09-02 Tristan Gingold <gingold@adacore.com>
859
860 * NEWS: Add entry mentioning support for native Windows x64
861 SEH data.
862
863 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
864 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
865 (struct amd64_windows_frame_cache): New struct.
866 (amd64_windows_w2gdb_regnum): New global.
867 (pc_in_range, amd64_windows_frame_decode_epilogue)
868 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
869 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
870 (amd64_windows_frame_this_id): New functions.
871 (amd64_windows_frame_unwind): New static global.
872 (amd64_windows_skip_prologue): New function.
873 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
874 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
875 with amd64_windows_skip_prologue.
876
3161820b 8772013-08-30 Joel Brobecker <brobecker@adacore.com>
878
879 GDB 7.6.1 released.
880
02457c76
PA
8812013-08-30 Pedro Alves <palves@redhat.com>
882
883 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
884 SRC_AND_LOC.
885
e0162910
PA
8862013-08-30 Pedro Alves <palves@redhat.com>
887
888 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
889 warning text.
890
6391ce51
PA
8912013-08-30 Pedro Alves <palves@redhat.com>
892
893 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
894 Adjust arguments to print_stack_frame.
895
d1da0587
PA
8962013-08-30 Pedro Alves <palves@redhat.com>
897
898 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
899
adfd8245
PA
9002013-08-30 Pedro Alves <palves@redhat.com>
901
902 * frame.h (show_and_print_stack_frame): Delete declaration.
903
96d9056e
PM
9042013-08-30 Phil Muldoon <pmuldoon@redhat.com>
905
906 PR python/15461
907
908 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
909 (archpy_name): Check for valid architecture.
910 (archpy_disassemble): Ditto.
911
11cb8762
JB
9122013-08-29 Joel Brobecker <brobecker@adacore.com>
913
914 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
915 instead of "long long" in call to ptrace64.
916
1af12a7d
AB
9172013-08-29 Andrew Burgess <aburgess@broadcom.com>
918
919 * mi/mi-interp.c (mi_command_loop): Change signature to match
920 interp_command_loop_ftype.
921 (mi1_command_loop): Remove.
922 (mi2_command_loop): Remove.
923 (mi3_command_loop): Remove.
924 (mi_interpreter_resume): Remove setting of
925 deprecated_command_loop_hook.
926 (_initialize_mi_interp): Set mi_command_loop as the command loop
927 callback.
928
acc900c2
SA
9292013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
930
931 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
932 value_type.
933
548b762d
SA
9342013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
935
936 * value.c (allocate_value_contents): Make static.
937 * value.h (allocate_value_contents): Remove prototype.
938
08039c9e
SA
9392013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
940
941 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
942 of assembling value via allocate_value_lazy and attribute setter.
943 * findvar.c (default_read_var_value): Use value_at_lazy instead of
944 assembling value via allocate_value_lazy and attribute setter.
945 * valops.c (do_search_struct_field): Use value_at_lazy instead of
946 assembling value via allocate_value_lazy and attribute setter.
947
314c7de9
SA
9482013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
949
950 * value.c (value_from_contents_and_address): Replace allocate_value and
951 memcpy with value_from_contents.
952
8f28f522
PM
9532013-08-29 Phil Muldoon <pmuldoon@redhat.com>
954
955 * python/py-framefilter.c (py_print_frame): Remove usage of
956 PyString_AsString. Use python_string_to_host_string instead.
957 Refactor function to work with a string as a new allocation
958 instead of a pointer.
959 (py_print_frame): Ditto.
960 * python/lib/gdb/frames.py (return_list): Cain iterators together
961 instead of adding them as a list.
962 (_sort_list): Call return_list, and remove duplicate code.
963 (execute_frame_filters): Convert iterator to a list with list().
964 * python/lib/gdb/command/frame_filters.py
965 (SetFrameFilterPriority._set_filter_priority): Convert priority
966 attribute to an integer.
967 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
968 wrapper function __next__.
969 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
970 define as "str".
971
8ee002df
PM
9722013-08-29 Phil Muldoon <pmuldoon@redhat.com>
973
974 PR python/15752
8ee002df
PM
975 * python/py-framefilter.c (apply_frame_filter): Check
976 gdb_python_initialized. Exit if the Python frame-filter code
977 cannot be initialized.
978
af4c453a
PM
9792013-08-29 Phil Muldoon <pmuldoon@redhat.com>
980
981 PR cli/15842
af4c453a
PM
982 * top.c (print_gdb_version): Remove erroneous newline after help
983 text.
984
bf8793bb
YQ
9852013-08-29 Yao Qi <yao@codesourcery.com>
986
987 * varobj.c (install_dynamic_child): Remove trailing space.
988 Add one blank line after variable declaration.
989
1f0c4988
JK
9902013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
991
992 PR gdb/15415
993 * corefile.c (get_exec_file): Use exec_filename.
994 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
995 * exec.c (exec_close): Free EXEC_FILENAME.
996 (exec_file_attach): New variable canonical_pathname. Use
997 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
998 EXEC_FILENAME.
999 * exec.h (exec_filename): New.
1000 * inferior.c (print_inferior, inferior_command): Use
1001 PSPACE_EXEC_FILENAME.
1002 * mi/mi-main.c (print_one_inferior): Likewise.
1003 * progspace.c (clone_program_space, print_program_space): Likewise.
1004 * progspace.h (struct program_space): New field pspace_exec_filename.
1005 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1006 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1007
59ee9f94
WN
10082013-08-28 Will Newton <will.newton@linaro.org>
1009
1010 * common/linux-ptrace.c: Include stdint.h unconditionally.
1011
c8a2a419
JK
10122013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1013
1014 Code cleanup.
1015 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1016
ffa4ac95
YQ
10172013-08-28 Yao Qi <yao@codesourcery.com>
1018 Pedro Alves <palves@redhat.com>
1019
1020 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1021 instead of stdio_fileopen.
1022 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1023 .Call stderr_fileopen instead of stdio_fileopen.
1024 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1025 [__MINGW32__] (stderr_file_fputs): New function.
1026 (stderr_fileopen): New function.
1027 * ui-file.h (stderr_fileopen): Declare.
1028
69d751e3
DE
10292013-08-27 Doug Evans <dje@google.com>
1030
1031 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1032 (struct dwarf2_per_cu_data): Ditto.
1033 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1034 (process_imported_unit_die): Ditto.
1035 (follow_die_sig_1): Simplify assert.
1036
44f38867
PA
10372013-08-27 Pedro Alves <palves@redhat.com>
1038
1039 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1040 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1041 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1042 windows_xfer_memory directly.
1043 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1044
d28d46b5
PA
10452013-08-27 Pedro Alves <palves@redhat.com>
1046
1047 * darwin-nat.c (darwin_xfer_memory): Delete.
1048 (_initialize_darwin_inferior): Don't install a
1049 deprecated_xfer_memory method.
1050
6211c335
YQ
10512013-08-27 Pedro Alves <pedro@codesourcery.com>
1052 Yao Qi <yao@codesourcery.com>
1053
1054 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1055 (parse_no_frames_option): Remove.
1056 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1057 (mi_cmd_stack_list_args): Adjust.
1058 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1059 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1060 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1061 Caller update.
1062 (list_args_or_locals): New parameter 'skip_unavailable'.
1063 Handle it.
1064 * valprint.c (scalar_type_p): Rename to ...
1065 (val_print_scalar_type_p): ... this. Make extern.
1066 (val_print, value_check_printable): Adjust.
1067 * valprint.h (val_print_scalar_type_p): Declare.
1068 * value.c (value_entirely_unavailable): New function.
1069 * value.h (value_entirely_unavailable): Declare.
1070
1071 * NEWS: Mention the new option "--skip-unavailable" to MI
1072 commands '-stack-list-locals', '-stack-list-arguments' and
1073 '-stack-list-variables'.
1074
242f1fd7
YQ
10752013-08-27 Yao Qi <yao@codesourcery.com>
1076
1077 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1078 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1079 options.
1080 * mi/mi-getopt.c (mi_getopt): Remove.
1081 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1082 'error_on_unknown'.
1083 (mi_getopt): Call mi_getopt_1.
1084 (mi_getopt_silent): New.
1085 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1086
260b681b
DE
10872013-08-26 Doug Evans <dje@google.com>
1088
779bd270
DE
1089 PR symtab/15885
1090 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1091 .gdb_index is in use.
1092 * symfile.c (reread_symbols): Reset objfile->sf.
1093
52e260a3
DE
1094 * NEWS: Document "mt print objfiles" now takes optional regexp.
1095 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1096 regexp of objfiles to print.
1097 (_initialize_symmisc): Update doc string for "mt print objfiles".
1098
260b681b
DE
1099 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1100 missing debug info checks.
1101
a85c52f2
UW
11022013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1103 Ulrich Weigand <uweigand@de.ibm.com>
1104
1105 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1106 line tables generated by XLC compiled binaries.
1107
4f00dda3
DE
11082013-08-23 Doug Evans <dje@google.com>
1109
db68bbae
DE
1110 * symmisc.c (dump_symtab): Delete prototype.
1111 (dump_msymbols, dump_objfile): Ditto.
1112 (maintenance_info_symtabs): Mark as dont_repeat.
1113 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1114
4f00dda3
DE
1115 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1116 debugging printf to better location.
1117
23d577b0
PA
11182013-08-23 Pedro Alves <palves@redhat.com>
1119
1120 * target.c (target_read_live_memory): Change type of 'ret' local
1121 to LONGEST.
1122
00d84524
PA
11232013-08-23 Pedro Alves <palves@redhat.com>
1124
1125 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1126 (remote_read_bytes): Change return type to LONGEST, and adjust to
1127 return a target_xfer_error on error.
1128 (remote_xfer_memory): Delete.
1129 (remote_flash_write): Change type of 'ret' local to LONGEST.
1130 (remote_xfer_partial, remote_xfer_partial): Adjust.
1131 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1132
1ed3ee94
PM
11332013-08-23 Pierre Muller <muller@sourceware.org>
1134
1135 ARI fix: Push # directives to start of line.
1136 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1137
9eaabc75
MW
11382013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1139
1140 PR gdb/15501
1141 * breakpoint.c (enable_command, disable_command): Iterate over
1142 all specified breakpoint locations.
1143
101158d9
LM
11442013-08-22 Luis Machado <lgustavo@codesourcery.com>
1145
1146 * common/linux-ptrace.c (linux_fork_to_function): Push #
1147 directives to the start of the line.
1148 (linux_check_ptrace_features): Fix warning message to use
1149 the "_" markup.
1150
96d7229d
LM
11512013-08-22 Luis Machado <lgustavo@codesourcery.com>
1152
1153 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1154 nat/linux-waitpid.h.
1155 (linux-waitpid.o): New object file rule.
1156 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1157 (current_ptrace_options): Moved from linux-nat.c.
1158 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1159 parameters.
1160 (linux_fork_to_function): New function.
1161 (linux_grandchild_function): Likewise.
1162 (linux_child_function): Likewise.
1163 (linux_check_ptrace_features): New function, heavily
1164 based on linux-nat.c:linux_test_for_tracefork.
1165 (linux_enable_event_reporting): New function.
1166 (ptrace_supports_feature): Likewise.
1167 (linux_supports_tracefork): Likewise.
1168 (linux_supports_traceclone): Likewise.
1169 (linux_supports_tracevforkdone): Likewise.
1170 (linux_supports_tracesysgood): Likewise.
1171 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1172 gdbserver/linux-low.c.
1173 (linux_enable_event_reporting): New declaration.
1174 (linux_supports_tracefork): Likewise.
1175 (linux_supports_traceclone): Likewise.
1176 (linux_supports_tracevforkdone): Likewise.
1177 (linux_supports_tracesysgood): Likewise.
1178 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1179 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1180 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1181 * config/arm/linux.mh (NATDEPFILES): Likewise.
1182 * config/i386/linux.mh (NATDEPFILES): Likewise.
1183 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1184 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1185 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1186 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1187 * config/mips/linux.mh (NATDEPFILES): Likewise.
1188 * config/pa/linux.mh (NATDEPFILES): Likewise..
1189 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1190 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1191 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1192 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1193 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1194 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1195 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1196 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1197 ptrace's 4th argument's types.
1198 Check the type of PTRACE_TYPE_ARG4.
1199 * configure: Regenerate.
1200 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1201 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1202 (linux_supports_tracefork_flag): Remove.
1203 (linux_supports_tracesysgood_flag): Likewise.
1204 (linux_supports_tracevforkdone_flag): Likewise.
1205 (current_ptrace_options): Moved to
1206 common/linux-ptrace.c.
1207 (linux_tracefork_child): Remove.
1208 (my_waitpid): Remove.
1209 (linux_test_for_tracefork): Renamed to
1210 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1211 (linux_test_for_tracesysgood): Remove.
1212 (linux_supports_tracesysgood): Remove.
1213 (linux_supports_tracefork): Remove.
1214 (linux_supports_tracevforkdone): Remove.
1215 (linux_enable_tracesysgood): Remove.
1216 (linux_enable_event_reporting): Remove.
1217 (linux_init_ptrace): New function.
1218 (linux_child_post_attach): Call linux_init_ptrace.
1219 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1220 (linux_child_follow_fork): Call linux_supports_tracefork
1221 and linux_supports_tracevforkdone.
1222 (linux_child_insert_fork_catchpoint): Call
1223 linux_supports_tracefork.
1224 (linux_child_insert_vfork_catchpoint): Likewise.
1225 (linux_child_set_syscall_catchpoint): Call
1226 linux_supports_tracesysgood.
1227 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1228 * nat/linux-nat.h: New file.
1229 * nat/linux-waitpid.c: New file.
1230 * nat/linux-waitpid.h: New file.
1231
9f948660
SDJ
12322013-08-22 Samuel Bronson <naesten@gmail.com>
1233
1234 ARM Linux support for `catch syscall'.
1235 * syscalls/arm-linux.py: New file.
1236 * syscalls/arm-linux.xml: Likewise.
1237 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1238 (arm_linux_init_abi): Register the new function and syscall xml file.
1239 * data-directory/Makefile.in: Install the new syscall xml file.
1240 * NEWS: Brag about this.
1241
6be7b56e
PA
12422013-08-22 Pedro Alves <palves@redhat.com>
1243
1244 PR gdb/15871
1245 * corefile.c (target_xfer_memory_error): New function.
1246 (memory_error): Defer EIO to target_memory_error.
1247 (read_memory): Use target_xfer_partial, and handle finer-grained
1248 target xfer errors.
1249 * target.c (target_xfer_error_to_string): New function.
1250 (memory_xfer_partial_1): If memory is known to be
1251 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1252 (target_xfer_partial): Make extern.
1253 * target.h (enum target_xfer_error): New enum.
1254 (target_xfer_error_to_string): Declare function.
1255 (target_xfer_partial): Declare function.
1256 (struct target_ops) <xfer_partial>: Adjust describing comment.
1257
bcbec14e
AM
12582013-08-22 Alan Modra <amodra@gmail.com>
1259
1260 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1261 * configure.tgt: Likewise as targets.
1262
fc474241
DE
12632013-08-20 Doug Evans <dje@google.com>
1264
1265 * buildsym.c (subfile_stack): Move here from buildsym.h.
1266 (pending_macros): Ditto.
1267 (get_macro_table): New function.
1268 (buildsym_init): Initialize subfile_stack.
1269 * coffread.c (type_vector,type_vector_length): Moved here from
1270 buildsym.h.
1271 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1272 (coff_symtab_read): Use it.
1273 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1274 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1275 with call to get_macro_table.
1276 * stabsread.c (type_vector,type_vector_length): Moved here from
1277 buildsym.h.
1278 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1279 * buildsym.h (get_macro_table): Declare.
1280
bec71544
TT
12812013-08-20 Tom Tromey <tromey@redhat.com>
1282
1283 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1284 Update.
1285 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1286
0002ad5f
DE
12872013-08-20 Doug Evans <dje@google.com>
1288
1289 * blockframe.c: Remove #include "psymtab.h".
1290 * cp-support.c: Ditto.
1291 * source.c: Ditto.
1292 * stack.c: Ditto.
1293
df302446
TT
12942013-08-20 Tom Tromey <tromey@redhat.com>
1295
1296 PR python/15816:
1297 * exceptions.h (return_mask): Now an enum.
1298 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1299 enum constants.
1300
df6d5441
TT
13012013-08-20 Tom Tromey <tromey@redhat.com>
1302
1303 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1304 get_objfile_arch.
1305 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1306 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1307 * jit.c (jit_object_close_impl): Update.
1308 * jv-lang.c (get_dynamics_objfile): Update.
1309 * linespec.c (add_minsym): Use get_dynamics_objfile.
1310 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1311 (allocate_objfile): Don't initialize 'gdbarch' field.
1312 (get_objfile_arch): Update.
1313 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1314 moved from...
1315 (struct objfile) <gdbarch>: ... here. Remove.
1316 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1317 get_objfile_arch.
1318 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1319
f5aee5ee
AM
13202013-08-20 Alan Modra <amodra@gmail.com>
1321
1322 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1323 for IBM long double nan and inf.
1324 (floatformat_is_negative, floatformat_classify,
1325 floatformat_mantissa): Similarly.
1326 (floatformat_ieee_single, floatformat_ieee_double,
1327 floatformat_ieee_quad, floatformat_arm_ext,
1328 floatformat_ia64_spill): Delete unused vars.
1329 (_initialize_doublest): Delete unused function.
1330 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1331 little-endian variants of floatformat_ibm_long_double.
1332
33b60d58 13332013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 1334
33b60d58
LM
1335 * Makefile.in (SFILES): Remove common/target-common.c and
1336 add target/waitstatus.c.
1337 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1338 target/resume.h, target/wait.h and target/waitstatus.h.
1339 (COMMON_OBS): Remove target-common.o and add
1340 waitstatus.o.
1341 (target-common.o): Remove.
1342 (waitstatus.o): New target object file.
1343 * common/target-common.c: Move contents to
1344 target/waitstatus.c and remove.
1345 * common/target-common.h: Move contents to other files and
1346 remove.
1347 (enum resume_kind: Move to target/resume.h.
1348 (TARGET_WNOHANG): Move to target/wait.h.
1349 (enum target_waitkind): Move to target/waitstatus.h.
1350 (struct target_waitstatus): Likewise.
1351 * target.h: Do not include target-common.h and
1352 include target/resume.h, target/wait.h and
1353 target/waitstatus.h.
1354 * target/resume.h: New file.
1355 * target/wait.h: New file.
1356 * target/waitstatus.h: New file.
1357 * target/waitstatus.c: New file.
1358
12696c10
PA
13592013-08-19 Pedro Alves <palves@redhat.com>
1360
1361 * linux-nat.c (linux_test_for_tracefork)
1362 (linux_test_for_tracesysgood, linux_child_follow_fork)
1363 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1364 (linux_nat_wait_1): Extend comment.
1365 (linux_async_pipe): Add comment.
1366
ba89f962
KB
13672013-08-15 Kevin Buettner <kevinb@redhat.com>
1368
1369 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1370 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1371 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1372 Update to account for fact that PC is now a pseudo-register.
1373 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1374 cases for RL78_PC_REGNUM.
1375
35ab155d
MB
13762013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
1377
1378 PR cli/15841
1379 * top.c (quit_force): Skip writing history file
1380 if input is not from terminal.
1381
0d031856
TT
13822013-08-14 Tom Tromey <tromey@redhat.com>
1383
1384 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1385 resultthreadlist>: New fields.
1386 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1387 (remote_get_threadlist, remote_threadlist_iterator): Use
1388 new fields. Remove static variables.
1389
ee154bee
TT
13902013-08-14 Tom Tromey <tromey@redhat.com>
1391
1392 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1393 remote_watch_data_address>: New fields.
1394 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1395 (process_stop_reply, remote_wait_as)
1396 (remote_check_watch_resources, remote_stopped_data_address): Update.
1397
88b496c3
TT
13982013-08-14 Tom Tromey <tromey@redhat.com>
1399
1400 * remote.c (struct remote_state) <async_client_callback,
1401 async_client_context>: New fields.
1402 (async_client_callback, async_client_context): Remove.
1403 (remote_async_serial_handler, remote_async): Update.
1404
2f65bcb7
TT
14052013-08-14 Tom Tromey <tromey@redhat.com>
1406
1407 * remote.c (sizeof_pkt): Remove.
1408 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1409
b80fafe3
TT
14102013-08-14 Tom Tromey <tromey@redhat.com>
1411
1412 * remote.c (struct remote_state) <use_threadinfo_query,
1413 use_threadextra_query>: New fields.
1414 (remote_threads_info, remote_threads_extra_info)
1415 (remote_open_1): Update.
1416
8e88304f
TT
14172013-08-14 Tom Tromey <tromey@redhat.com>
1418
1419 * remote.c (struct remote_state) <finished_object,
1420 finished_annex, finished_offset>: New fields.
1421 (remote_read_qxfer): Use remote_state fields; remove static
1422 variables.
1423
280ceea3
TT
14242013-08-14 Tom Tromey <tromey@redhat.com>
1425
1426 * remote.c (struct remote_state) <last_sent_step>:
1427 New field.
1428 (last_sent_step): Remove.
1429 (remote_resume, remote_wait_as): Update.
1430
b73be471
TT
14312013-08-14 Tom Tromey <tromey@redhat.com>
1432
1433 * remote.c (struct remote_state) <last_sent_signal>:
1434 New field.
1435 (last_sent_signal): Remove.
1436 (new_remote_state, remote_resume, remote_wait_as): Update.
1437
5e4a05c4
TT
14382013-08-14 Tom Tromey <tromey@redhat.com>
1439
1440 * remote.c (struct remote_state) <last_program_signals_packet>:
1441 New field.
1442 (last_program_signals_packet): Remove.
1443 (remote_program_signals, remote_open_1): Update.
1444
747dc59d
TT
14452013-08-14 Tom Tromey <tromey@redhat.com>
1446
1447 * remote.c (struct remote_state) <last_pass_packet>:
1448 New field.
1449 (last_pass_packet): Remove.
1450 (remote_pass_signals, remote_open_1): Update.
1451
262e1174
TT
14522013-08-14 Tom Tromey <tromey@redhat.com>
1453
1454 * remote.c (struct remote_state) <remote_traceframe_number>:
1455 New field.
1456 (remote_traceframe_number): Remove.
1457 (new_remote_state, remote_open_1, set_remote_traceframe)
1458 (remote_trace_find): Update.
1459
47f8a51d
TT
14602013-08-14 Tom Tromey <tromey@redhat.com>
1461
1462 * remote.c (struct remote_state) <general_thread, continue_thread>:
1463 New fields.
1464 (general_thread, continue_thread): Remove.
1465 (record_currthread, set_thread, set_general_process)
1466 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1467 (extended_remote_mourn_1): Update.
1468
5d93a237
TT
14692013-08-14 Tom Tromey <tromey@redhat.com>
1470
1471 * remote.c (struct remote_state) <remote_desc>: New field.
1472 (remote_desc): Remove.
1473 (remote_threads_info, remote_threads_extra_info, remote_close)
1474 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1475 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1476 (remote_hostio_send_command, remote_file_put, remote_file_get)
1477 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1478 (remote_async, remote_new_objfile, set_range_stepping): Update.
1479
cf792862
TT
14802013-08-14 Tom Tromey <tromey@redhat.com>
1481
1482 * remote.c (remote_state): Now a pointer.
1483 (get_remote_state_raw): Update.
1484 (new_remote_state): New function.
1485 (_initialize_remote): Use new_remote_state.
1486
dc473cfb
TT
14872013-08-14 Tom Tromey <tromey@redhat.com>
1488
1489 * remote.c (remote_protocol_features): Now const.
1490
85ec6ce7
TT
14912013-08-14 Tom Tromey <tromey@redhat.com>
1492
1493 * remote.c (crc32_table, crc32): Remove.
1494 (remote_verify_memory): Use xcrc32.
1495
73033f12
SDJ
14962013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1497
1498 * value.h (create_internalvar_type_lazy): Adjust prototype
1499 declaration.
1500
5c30d39a
AB
15012013-08-13 Andrew Burgess <aburgess@broadcom.com>
1502
1503 * common/format.c (parse_format_string): Don't allow '#' flag for
1504 pointer arguments in format string.
1505
1a66331e
PM
15062013-08-13 Pierre Muller <muller@sourceware.org>
1507
fde605f3 1508 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
1509 if rl_get_screen_size did not return useful values.
1510
b4013987
AA
15112013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1512
1513 PR breakpoints/15117
1514 * linespec.c (linespec_parse_basic): Check for convenience
1515 variable or history value while parsing.
1516
959b6a66
SDJ
15172013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1518
1519 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1520 AVR.
1521 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1522 different signals between the generic Linux kernel implementation
1523 and AVR's.
1524 (avr_linux_gdb_signal_from_target): Delete.
1525 (avr_linux_gdb_signal_to_target): Delete.
1526 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1527
24a55014
DE
15282013-08-09 Doug Evans <dje@google.com>
1529
1530 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1531 entries.
1532
eb14d406
SDJ
15332013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1534
1535 * linux-tdep.c: Define enum with generic signal numbers.
1536 (linux_gdb_signal_from_target): New function.
1537 (linux_gdb_signal_to_target): Likewise.
1538 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1539 methods to the functions above.
1540 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1541 (linux_gdb_signal_to_target): Likewise.
1542 * alpha-linux-tdep.c: Define new enum with signals different
1543 from generic Linux kernel.
1544 (alpha_linux_gdb_signal_from_target): New function.
1545 (alpha_linux_gdb_signal_to_target): Likewise.
1546 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1547 with the functions mentioned above.
1548 * avr-tdep.c: Define enum with differences between Linux kernel
1549 and AVR signals.
1550 (avr_linux_gdb_signal_from_target): New function.
1551 (avr_linux_gdb_signal_to_target): Likewise.
1552 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1553 the functions mentioned above.
1554 * sparc-linux-tdep.c: Define enum with differences between SPARC
1555 and generic Linux kernel signal numbers.
1556 (sparc32_linux_gdb_signal_from_target): New function.
1557 (sparc32_linux_gdb_signal_to_target): Likewise.
1558 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1559 to the functions defined above.
1560 * xtensa-linux-tdep.c: Define enum with differences between
1561 Xtensa and Linux kernel generic signals.
1562 (xtensa_linux_gdb_signal_from_target): New function.
1563 (xtensa_linux_gdb_signal_to_target): Likewise.
1564 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1565 to the functions defined above.
1566 * mips-linux-tdep.c: Define enum with differences between
1567 signals in MIPS and Linux kernel generic ones.
1568 (mips_gdb_signal_to_target): New function.
1569 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1570 only different signals from the Linux kernel generic.
1571 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1572 the functions defined above.
1573 * mips-linux-tdep.h (enum mips_signals): Remove.
1574
156d08c8
PA
15752013-08-09 Pedro Alves <palves@redhat.com>
1576
1577 * avr-tdep.c (XMALLOC): Delete macro.
1578 * cli/cli-dump.c (XMALLOC): Delete macro.
1579
db229724
PA
15802013-08-09 Pedro Alves <palves@redhat.com>
1581
1582 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1583 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1584 (fopen_with_cleanup, add_dump_command): Make static.
1585 * cli/cli-dump.h: Delete file.
1586 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1587 cli/cli-dump.h.
1588
3f12a589
PA
15892013-08-09 Pedro Alves <palves@redhat.com>
1590
1591 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1592 error message.
1593
c718be47
PA
15942013-08-09 Pedro Alves <palves@redhat.com>
1595
156d08c8 1596 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
1597 error message.
1598
1e351ed1
PA
15992013-08-09 Pedro Alves <palves@redhat.com>
1600
1601 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1602 (gcore_command): Use tilde_expand here, and when showing the
1603 filename to the user, show the expanded version.
1604
1ed8d800
YQ
16052013-08-09 Yao Qi <yao@codesourcery.com>
1606
1607 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1608 'entryval' is set.
1609
47ecca85
PA
16102013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1611
1612 * gcore.c (create_gcore_bfd): Use tilde_expand.
1613
82a0a75f
YQ
16142013-08-08 Yao Qi <yao@codesourcery.com>
1615
1616 * frame.h (read_frame_local): Declare.
1617 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1618 read_frame_local.
1619 * stack.c (read_frame_local): New.
1620
5c4aa40b
YQ
16212013-08-08 Yao Qi <yao@codesourcery.com>
1622
1623 * mi/mi-cmd-stack.c: Update comments to function
1624 list_args_or_locals.
1625
b93601f3
TT
16262013-08-07 Tom Tromey <tromey@redhat.com>
1627
1628 PR symtab/15028:
1629 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1630 (process_psymtab_comp_unit_reader): Use it.
1631 (process_psymtab_comp_unit): Update. Add "pretend_language"
1632 argument.
1633 (dwarf2_build_psymtabs_hard): Update.
1634 (scan_partial_symbols): Pass CU's language to
1635 process_psymtab_comp_unit.
1636
fa760f46
TT
16372013-08-07 Tom Tromey <tromey@redhat.com>
1638
1639 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1640 (dwarf2_gdb_index_functions): Update.
1641 * psymtab.c (find_symbol_file_from_partial): Remove.
1642 (psym_functions): Update.
1643 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1644 Remove.
1645
bf6d8a91
TT
16462013-08-07 Tom Tromey <tromey@redhat.com>
1647
1648 * symfile.c (set_initial_language): Look up "main" symbol
1649 and use its language.
1650 * symtab.c (find_main_filename): Remove.
1651 * symtab.h (find_main_filename): Remove.
1652
f9125b6c
TT
16532013-08-07 Tom Tromey <tromey@redhat.com>
1654
1655 * dwarf2read.c (recursively_compute_inclusions): Add
1656 "immediate_parent" argument. Set symtab's "user" field
1657 if not set.
1658 (compute_symtab_includes): Update.
1659
fdbb204b
TT
16602013-08-07 Tom Tromey <tromey@redhat.com>
1661
1662 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1663 when adding label symbols.
1664
49de1690
UW
16652013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1666 Ulrich Weigand <uweigand@de.ibm.com>
1667
1668 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1669 * configure.host (powerpc64-*-aix*): Likewise.
1670
b08ee99f
UW
16712013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1672 Ulrich Weigand <uweigand@de.ibm.com>
1673
1674 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1675 is defined.
1676 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1677 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1678 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1679 * configure.ac: Check for ptrace64.
1680 * configure, config.in: Regenerate.
1681
fecf803e
UW
16822013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1683 Ulrich Weigand <uweigand@de.ibm.com>
1684
1685 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1686 Call ptrace64 instead of ptrace if defined.
1687 Add macro addr_ptr to take care of ptrace address argument.
1688 (pdc_read_regs): Likewise.
1689 (pdc_write_regs): Likewise.
1690 (aix_thread_resume): Likewise.
1691 (fetch_regs_kernel_thread): Likewise.
1692 (store_regs_kernel_thread): Likewise.
1693
3bb5e4a8
AB
16942013-08-07 Anton Blanchard <anton@samba.org>
1695
1696 * MAINTAINERS: Add myself to Write After Approval.
1697
12070676
TT
16982013-08-05 Tom Tromey <tromey@redhat.com>
1699
1700 * aix-thread.c (_initialize_aix_thread): Use
1701 complete_target_initialization.
1702 * bsd-uthread.c (_initialize_bsd_uthread): Use
1703 complete_target_initialization.
1704 * dec-thread.c (_initialize_dec_thread): Use
1705 complete_target_initialization.
1706 * ravenscar-thread.c (_initialize_ravenscar): Use
1707 complete_target_initialization.
1708 * sol-thread.c (_initialize_sol_thread): Use
1709 complete_target_initialization.
1710 * spu-multiarch.c (_initialize_spu_multiarch): Use
1711 complete_target_initialization.
1712
7c7b6655
TT
17132013-08-05 Tom Tromey <tromey@redhat.com>
1714
1715 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1716 * ada-lang.c (ada_lookup_simple_minsym): Return
1717 bound_minimal_symbol.
1718 * ada-lang.h (ada_lookup_simple_minsym): Update.
1719 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1720 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1721 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1722 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1723 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1724 * minsyms.c (msymbol_objfile): Remove.
1725 (lookup_minimal_symbol_internal): New function, from
1726 lookup_minimal_symbol.
1727 (lookup_minimal_symbol): Rewrite using
1728 lookup_minimal_symbol_internal.
1729 (lookup_bound_minimal_symbol): New function.
1730 * minsyms.h (msymbol_objfile): Remove.
1731 (lookup_bound_minimal_symbol): Declare.
1732 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1733 * parse.c (write_exp_msymbol): Change parameter to a
1734 bound_minimal_symbol.
1735 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1736 * parser-defs.h (write_exp_msymbol): Update.
1737 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1738 * symfile.c (simple_read_overlay_table): Use
1739 lookup_bound_minimal_symbol.
1740 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1741 (search_symbols): Likewise.
1742 (print_msymbol_info): Take a bound_minimal_symbol argument.
1743 (symtab_symbol_info, rbreak_command): Update.
1744 * symtab.h (struct symbol_search) <msymbol>: Change type
1745 to bound_minimal_symbol.
1746 * valops.c (find_function_in_inferior): Use
1747 lookup_bound_minimal_symbol.
1748 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1749
934b9bac
JK
17502013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 Code cleanup.
1753 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1754 to ...
1755 (async_cleanup_sigint_signal_handler): ... this.
1756 (initialize_sigint_signal_handler): Remove declaration.
1757 (handle_remote_sigint): Rename the declaration to ...
1758 (async_handle_remote_sigint): ... this.
1759 (handle_remote_sigint_twice): Rename the declaration to ...
1760 (async_handle_remote_sigint_twice): ... this.
1761 (async_remote_interrupt, async_remote_interrupt_twice)
1762 (remote_interrupt): Remove the declarations.
1763 (remote_interrupt_twice): Rename the declaration ...
1764 (sync_remote_interrupt_twice): ... this.
1765 (sigint_remote_twice_token): Rename the variable to ...
1766 (async_sigint_remote_twice_token): ... this.
1767 (sigint_remote_token): Rename the variable to ...
1768 (async_sigint_remote_token): ... this.
1769 (initialize_sigint_signal_handler): Rename the function to ...
1770 (async_initialize_sigint_signal_handler): ... this. Update the name
1771 inside.
1772 (handle_remote_sigint): Rename the function to ...
1773 (async_handle_remote_sigint): ... this. Update the names inside.
1774 (handle_remote_sigint_twice): Rename the function to ...
1775 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1776 (cleanup_sigint_signal_handler): Rename the function to ...
1777 (async_cleanup_sigint_signal_handler): ... this.
1778 (remote_interrupt): Rename the function to ...
1779 (sync_remote_interrupt): this. Update the names inside.
1780 (remote_interrupt_twice): Rename the function to ...
1781 (sync_remote_interrupt_twice): this. Update the names inside.
1782 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1783 (_initialize_remote): Update the names inside.
1784
3a1115a0
TT
17852013-08-02 Tom Tromey <tromey@redhat.com>
1786
1787 PR symtab/15719:
1788 * breakpoint.c (update_watchpoint, watchpoint_check)
1789 (watch_command_1): Update.
1790 * eval.c (fetch_subexp_value): Add "preserve_errors"
1791 parameter.
1792 * ppc-linux-nat.c (check_condition): Update.
1793 * value.h (fetch_subexp_value): Update.
1794
58b19776
AB
17952013-08-02 Andrew Burgess <aburgess@broadcom.com>
1796
1797 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1798 add_file_handler.
1799
ec94af83
DE
18002013-08-01 Doug Evans <dje@google.com>
1801
7ee85ab1
DE
1802 PR symtab/15691
1803 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1804 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1805 Add assert of sig_entry->dwo_unit == NULL.
1806 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1807 had already been read.
1808 (read_signatured_type): Set per_cu.tu_read.
1809
b846d303
DE
1810 PR symtab/15695
1811 * valops.c (value_struct_elt): Add missing call to check_typedef.
1812 (value_find_oload_method_list): Ditto.
1813
b52109bc
DE
1814 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1815 effectively, struct symbol_search **.
1816 (make_cleanup_free_search_symbols): Change arg to struct
1817 symbol_search **. All callers updated.
1818 (compare_search_syms): Compare symtab file name and block as well.
1819 (search_symbols_equal): New function.
1820 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1821 New args new_head, new_tail. Result is now void. Remove dups after
1822 sorting the symbols.
1823 (search_symbols): Sort all found symbols once, after all have been
1824 found, and remove duplicates. Simplify cleanup tracking of result.
1825 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1826
ec94af83
DE
1827 Further workarounds for binutils/15021.
1828 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1829 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1830 Watch for duplicate symtabs coming from type units.
1831 (compute_symtab_includes): Update call to
1832 recursively_compute_inclusions. Build vector of included symtabs
1833 instead of per_cus.
1834 * symtab.h (symtab_ptr): New typedef.
1835 (DEF_VEC_P (symtab_ptr)): New VEC type.
1836 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1837 instead.
1838
b2ae85cf
AB
18392013-08-01 Andrew Burgess <aburgess@broadcom.com>
1840
1841 * cli/cli-script.c (script_from_file): Remove use of
1842 error_pre_print.
1843 * main.c (captured_main): Remove use of error_pre_print and
1844 quit_pre_print.
1845 * utils.c (error_pre_print, quit_pre_print): Remove.
1846 * utils.h (error_pre_print, quit_pre_print): Likewise.
1847
645eab03
YQ
18482013-08-01 Yao Qi <yao@codesourcery.com>
1849
1850 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1851 with mi_getopt.
1852 (mi_cmd_stack_list_variables): Likewise.
1853
16f92dd4
AB
18542013-07-31 Andrew Burgess <aburgess@broadcom.com>
1855
1856 * exceptions.c (deprecated_throw_reason): Remove.
1857 * exceptions.h (deprecated_throw_reason): Remove.
1858
13f78033
AB
18592013-07-31 Andrew Burgess <aburgess@broadcom.com>
1860
1861 * remote-mips.c (mips_error): Replace use of
1862 deprecated_throw_reason with throw_verror. Use the error message
1863 passed to mips_error as the error message for throw_verror.
1864
039e3c22
AB
18652013-07-31 Andrew Burgess <aburgess@broadcom.com>
1866
1867 * monitor.c (monitor_interrupt_query): Replace use of
1868 deprecated_throw_reason with quit.
1869 * nto-procfs.c (interrupt_query): Likewise.
1870 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1871 * remote-mips.c (mips_kill): Likewise.
1872 * remote.c (interrupt_query): Likewise.
1873
8150913b
AB
18742013-07-31 Andrew Burgess <aburgess@broadcom.com>
1875
1876 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1877 with call to fatal.
1878
de74e63a
YQ
18792013-07-31 Pedro Alves <pedro@codesourcery.com>
1880 Yao Qi <yao@codesourcery.com>
1881
1882 * tracepoint.c (trace_dump_command): Select the current frame.
1883
247f5c4f
DE
18842013-07-30 Doug Evans <dje@google.com>
1885
1886 * dwarf2read.c (process_queue): Add type signature to debug output.
1887
11b4b7cc
AB
18882013-07-30 Andrew Burgess <aburgess@broadcom.com>
1889
1890 * value.c (value_fetch_lazy): Mark optimized out values as such
1891 rather than raising an error.
1892
b0c54aa5
AB
18932013-07-30 Andrew Burgess <aburgess@broadcom.com>
1894
1895 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1896 before checking which bits of the parent, not the child, value are
1897 valid.
1898
97c85fc6
MB
18992013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1900
1901 PR gdb/15715
1902 * top.c: Include "filenames.h".
1903 (set_history_filename): New function.
1904 (init_main): Install it as set hook of the "set history filename"
1905 command.
1906
ff39bb5e
SA
19072013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1908
1909 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1910 attribute parameter.
1911 (dwarf2_const_value_data): Constify struct attribute parameter.
1912 (dwarf2_const_value): Constify struct attribute parameter.
1913 (dwarf2_const_value_attr): Constify struct attribute parameter.
1914 (lookup_die_type): Constify struct attribute parameter.
1915 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1916 (follow_die_ref_or_sig): Constify struct attribute parameter.
1917 (follow_die_ref): Constify struct attribute parameter.
1918 (follow_die_sig): Constify struct attribute parameter.
1919 (get_DW_AT_signature_type): Constify struct attribute parameter.
1920 (get_type_unit_group): Constify struct attribute parameter.
1921 (fill_in_loclist_baton): Constify struct attribute parameter.
1922 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1923 (type_unit_group): Constify struct attribute parameter.
1924
6e5a29e1
SA
19252013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1926
1927 * dwarf2read.c (attr_form_is_block): Make argument const.
1928 (attr_form_is_section_offset): Make argument const.
1929 (attr_form_is_constant): Make argument const.
1930 (attr_form_is_ref): Make argument const.
1931
7771576e
SA
19322013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1933
1934 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1935 All uses updated.
1936 (attr_form_is_ref): Moved below attr_form_is_constant.
1937
a94e8645
DE
19382013-07-29 Doug Evans <dje@google.com>
1939
bb5291d0
DE
1940 * main.c (captured_command_loop): Tweak comment.
1941
b5419e49
DE
1942 * target.c (target_async_permitted_1): Fix comment.
1943
b2d23133
DE
1944 * symtab.c (iterate_over_some_symtabs): Add comment.
1945
a94e8645
DE
1946 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1947
7a60ad40
YQ
19482013-07-27 Yao Qi <yao@codesourcery.com>
1949
1950 * NEWS: Mention that GDBserver now supports hardware
1951 watchpoints on the MIPS GNU/Linux target.
1952
aaee2056
YQ
19532013-07-27 Yao Qi <yao@codesourcery.com>
1954
1955 * Makefile.in (HFILES_NO_SRCDIR): Add
1956 common/mips-linux-watch.h.
1957 (mips-linux-watch.o): New rule.
1958 * common/mips-linux-watch.c: New.
1959 * common/mips-linux-watch.h: New.
1960 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1961 * mips-linux-nat.c: Include mips-linux-watch.h.
1962 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1963 to common/mips-linux-watch.h.
1964 (MAX_DEBUG_REGISTER): Likewise.
1965 (enum pt_watch_style): Likewise.
1966 (struct mips32_watch_regs): Likewise.
1967 (struct mips64_watch_regs): Likewise.
1968 (struct pt_watch_regs): Likewise.
1969 (struct mips_watchpoint): Likewise.
1970 (mips_linux_watch_get_irw_mask): Move to
1971 common/mips-linux-watch.c.
1972 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1973 (mips_linux_watch_get_watchlo): Likewise.
1974 (mips_linux_watch_set_watchlo): Likewise.
1975 (mips_linux_watch_get_watchhi): Likewise.
1976 (mips_linux_watch_set_watchhi): Likewise.
1977 (mips_linux_read_watch_registers): Likewise.
1978 (mips_linux_watch_type_to_irw): Likewise.
1979 (mips_linux_stopped_data_address, fill_mask): Likewise.
1980 (mips_linux_watch_try_one_watch): Likewise.
1981 (mips_linux_watch_populate_regs): Likewise.
1982
b3436450
YQ
19832013-07-27 Yao Qi <yao@codesourcery.com>
1984
1985 * mips-linux-nat.c (get_irw_mask): Rename to ...
1986 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1987 'set' to 'n'. Update function comment. All callers changed.
1988 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1989 function comment. All callers changed.
1990 (get_num_valid): Rename to ...
1991 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1992 'set' to 'n'. Update function comment. All callers changed.
1993 (get_watchlo): Rename to ...
1994 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1995 'set' to 'n'. Update function comment. All callers changed.
1996 (set_watchlo): Rename to ...
1997 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1998 'set' to 'n'. Update function comment. All callers changed.
1999 (get_watchhi): Rename to ...
2000 (mips_linux_watch_get_watchhi): ... this. Update function
2001 comment. All callers changed.
2002 (set_watchhi): Rename to ...
2003 (mips_linux_watch_set_watchhi): ... this. Update function
2004 comment. All callers changed.
2005 (mips_linux_read_watch_registers): Update function comment.
2006 Add new parameters 'lwpid', 'watch_readback', and
2007 'watch_readback_valid'. Update.
2008 (type_to_irw): Rename to ...
2009 (mips_linux_watch_type_to_irw): ... this. Update function
2010 comment. All callers changed.
2011 (fill_mask): Update function comment.
2012 (try_one_watch): Rename to ...
2013 (mips_linux_watch_try_one_watch): ... this. Change the type
2014 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2015 (populate_regs_from_watches): Rename to ...
2016 (mips_linux_watch_populate_regs): ... this. Add parameter
2017 'current_watches'. All callers changed.
2018
9be14b81
YQ
20192013-07-27 Yao Qi <yao@codesourcery.com>
2020
2021 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2022 the code.
2023 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2024 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2025 (struct pt_watch_regs): Likewise.
2026 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2027 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2028 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2029 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2030 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2031
de6f69ad
YQ
20322013-07-27 Yao Qi <yao@codesourcery.com>
2033
2034 * breakpoint.h: Include break-common.h.
2035 (enum target_hw_bp_type): Move to ...
2036 * common/break-common.h: ... here. New.
2037
6f64ef53
PA
20382013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2039
2040 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2041 process group regardless of having tty on stdin.
2042
6107e809
DE
20432013-07-25 Doug Evans <dje@google.com>
2044
2045 * linux-fork.h (detach_fork): Delete.
2046
7fdc1521
TT
20472013-07-25 Tom Tromey <tromey@redhat.com>
2048
2049 PR remote/15256, PR remote/15266:
2050 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2051 * monitor.c (monitor_detach): Use unpush_target.
2052 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2053 * remote-mips.c (mips_detach): Use unpush_target. Don't
2054 call mips_close.
2055 * remote-sim.c (gdbsim_detach): Use unpush_target.
2056 * target.c (pop_target): Remove.
2057 (pop_all_targets_above): Don't call target_close.
2058 (target_close): Assert that the target is unpushed.
2059 * target.h (pop_target): Don't declare.
2060 * tracepoint.c (tfile_open): Use unpush_target.
2061
c22a2b88
TT
20622013-07-25 Tom Tromey <tromey@redhat.com>
2063
2064 * linux-thread-db.c (init_thread_db_ops): Call
2065 complete_target_initialization.
2066 (_initialize_thread_db): Don't call add_target.
2067 * target.c (complete_target_initialization): New function.
2068 (add_target_with_completer): Call it.
2069 * target.h (complete_target_initialization): Declare.
2070
cbb6aada
MK
20712013-07-25 Mark Kettenis <kettenis@gnu.org>
2072
2073 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2074 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2075 (HPPANBSD_SIZEOF_GREGS): New define.
2076 (hppaobsd_supply_gregset): Handle additional registers.
2077 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2078 we provide more registers now.
2079 (hppabsd_supply_gregset): Supply additional registers.
2080 (hppabsd_collect_gregset): Collect additional registers.
2081
17767988
MK
20822013-07-25 Mark Kettenis <kettenis@gnu.org>
2083
2084 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2085 (hppabsd_dwarf2_frame_init_reg): New function.
2086 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2087
fdc8aae8
AB
20882013-07-25 Andrew Burgess <aburgess@broadcom.com>
2089
2090 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2091 'z' format code. Remove error for optimized out values, standard
2092 code will handle these fine.
2093
6fbe845e
AB
20942013-07-25 Andrew Burgess <aburgess@broadcom.com>
2095
2096 * NEWS: Mention new 'z' formatter.
2097 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2098 (_initialize_printcmd): Mention 'z' formatter in help text of the
2099 'x' command.
2100
3373342d
MR
21012013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2102
2103 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2104 formatting.
2105
25f9533e
SDJ
21062013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2107
2108 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2109 interface can evaluate arguments. Fallback to the old mode if it
2110 cannot.
2111 (create_exception_master_breakpoint): Likewise.
2112 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2113 (struct sym_probe_fns elf_probe_fns): Export function above to the
2114 probe interface.
2115 * probe.c (can_evaluate_probe_arguments): New function.
2116 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2117 function pointer.
2118 (can_evaluate_probe_arguments): New function prototype.
2119 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2120 probe interface can evaluate arguments. Fallback to the old mode
2121 if it cannot.
2122 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2123 interface can evaluate arguments. Warning the user if it cannot.
2124 (stap_can_evaluate_probe_arguments): New function.
2125 (struct probe_ops stap_probe_ops): Export function above to the
2126 probe interface.
2127 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2128 New function pointer.
2129
3360c0bf
LM
21302013-07-24 Luis Machado <lgustavo@codesourcery.com>
2131
2132 * Makefile.in (SFILES): Add common/target-common.c.
2133 Add common/target-common.h to headers.
2134 (COMMON_OBS): Add target-common.o.
2135 (target-common.o): New target.
2136 * linux-nat.h (resume_kind): Move to common/target-common.h.
2137 * target.c (target_waitstatus_to_string): Move to
2138 common/target-common.c.
2139 * target.h: Include target-common.h.
2140 (target_waitkind): Move to common/target-common.h.
2141 (target_waitstatus): Likewise.
2142 (TARGET_WNOHANG): Likewise.
2143 * common/target-common.c: New file.
2144 * common/target-common.h: New file.
2145
6656a72d
DE
21462013-07-24 Doug Evans <dje@google.com>
2147
2148 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2149 a warning.
2150
6df81a63
YQ
21512013-07-23 Yao Qi <yao@codesourcery.com>
2152
2153 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2154 parameter 'gdbarch'.
2155 (i386_stack_tramp_frame_sniffer): Caller update.
2156 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2157 parameter 'gdbarch' and 'target'.
2158 (i386_linux_core_read_description): Caller update.
2159 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2160 Likewise.
2161 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2162 declaration.
2163
365156ad
TT
21642013-07-23 Tom Tromey <tromey@redhat.com>
2165
2166 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2167 2013-07-22.
2168
046ac79f
JK
21692013-07-22 Doug Evans <dje@google.com>
2170
2171 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2172 * exec.c (exec_close): Update call to remove_target_sections.
2173 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2174 * solib.c (update_solib_list): Ditto.
2175 (reload_shared_libraries_1): Ditto.
2176 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2177 * target.h (struct target_section): Rename key to owner.
2178 All uses updated.
046ac79f 2179
29b2cc46
TT
21802013-07-22 Tom Tromey <tromey@redhat.com>
2181
2182 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2183
d1160018
TT
21842013-07-22 Tom Tromey <tromey@redhat.com>
2185
2186 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2187 Simplify cleanup handling.
2188
2f324bf6
TT
21892013-07-22 Tom Tromey <tromey@redhat.com>
2190
2191 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2192 on all return paths.
2193
e23b9d6e
UW
21942013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2195
2196 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2197 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2198 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2199
1cf55f60
PM
22002013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2201
2202 * top.c (print_gdb_version): Add help, apropos description and
2203 url to online documentation.
2204
fa876972
HZ
22052013-07-19 Hui Zhu <hui@codesourcery.com>
2206
2207 PR gdb/15692
2208 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2209
1527aea8
YQ
22102013-07-19 Yao Qi <yao@codesourcery.com>
2211
2212 * target.c (update_current_target): Change the default action
2213 of 'to_traceframe_info' from tcomplain to return_zero.
2214 * target.h (struct target_ops) <to_traceframe_info>: Add more
2215 comments.
2216 * valops.c (read_value_memory): Call
2217 traceframe_available_memory unconditionally.
2218
886f230e
YQ
22192013-07-18 Yao Qi <yao@codesourcery.com>
2220
2221 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2222 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2223 symbol without prefix. If found, set its type to
2224 'mst_solib_trampoline'.
2225
16419bae
DE
22262013-07-17 Doug Evans <dje@google.com>
2227
e7045703
DE
2228 * NEWS: Mention "set print raw frame-arguments".
2229 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2230 * stack.c (print_raw_frame_arguments): New static global.
2231 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2232 (_initialize_stack): New command "set/show print raw frame-arguments".
2233 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2234 (set_print_raw, show_print_raw): New functions.
2235 (_initialize_valprint): New prefix command "set/show print raw".
2236 * valprint.h (value_print_options): Improve comments.
2237
453e48a5
DE
2238 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2239 of all *list variables.
2240
16419bae
DE
2241 * gdbcmd.h (togglelist): Delete.
2242 * cli/cli-cmds.c (togglelist): Delete.
2243 (init_cmd_lists): Update.
2244 * cli/cli-cmds.h (togglelist): Delete.
2245
626f2d1c
TT
22462013-07-17 Tom Tromey <tromey@redhat.com>
2247
2248 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2249 dwarf2_per_objfile.
2250
57e6060e
DE
22512013-07-16 Doug Evans <dje@google.com>
2252
2253 * nto-tdep.c (nto_relocate_section_addresses): Update,
2254 target_section.bfd deleted.
2255 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2256 * s390-tdep.c (s390_load): Ditto.
2257 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2258
5ea5559b
AB
22592013-07-16 Andrew Burgess <aburgess@broadcom.com>
2260
2261 * common/format.c (parse_format_string): Add checks for NULL
2262 character before calling strchr.
2263
2b2848e2
DE
22642013-07-16 Doug Evans <dje@google.com>
2265
2c571006
DE
2266 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2267 temp_pathname argument.
2268 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2269 when opening the file fails.
2270
2b2848e2
DE
2271 * target.h (struct target_section): Delete member bfd.
2272 All users updated to use the_bfd_section->owner instead.
2273 * exec.c (add_to_section_table): Assert bfd is expected value.
2274 Remove initialization of target_section.bfd.
2275 (remove_target_sections): Update.
2276 (section_table_available_memory): Update.
2277 (section_table_xfer_memory_partial): Update.
2278 (print_section_info): Update.
2279 (exec_set_section_address): Update.
2280 * record-full.c (record_full_core_xfer_partial): Update.
2281 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2282 * solib-target.c (solib_target_relocate_section_addresses): Update.
2283 * symfile.c (build_section_addr_info_from_section_table): Update.
2284 * target.c (memory_xfer_live_readonly_partial): Update.
2285 (memory_xfer_partial_1): Update.
2286
926bf92d
UW
22872013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2288
2289 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2290 now available for embedded (BookE) and server (BookS) processors,
2291 correct mentions of 'booke' and adjust comments accordingly in order to
2292 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2293 (have_ptrace_booke_interface): Rename function and variable
2294 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2295 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2296 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2297 'hwdebug_point_cmp'. Update all uses.
2298 (booke_find_thread_points_by_tid): Rename function
2299 'booke_find_thread_points_by_tid' to
2300 'hwdebug_find_thread_points_by_tid'. Update all uses.
2301 (booke_insert_point): Rename function 'booke_insert_point' to
2302 'hwdebug_insert_point'. Update all uses.
2303 (booke_remove_point): Rename function 'booke_remove_point' to
2304 'hwdebug_remove_point'. Update all uses.
2305
d929bc19
MR
23062013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2307
2308 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2309 numbers with enum values.
2310
054e8d9e
AA
23112013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2312
2313 PR threads/13217
2314 * thread.c (thread_apply_all_command): Check for valid threads
2315 and thread count.
2316 (thread_array_cleanup): New struct.
2317 (set_thread_refcount): New function.
2318
cf006359
AB
23192013-07-11 Andrew Burgess <aburgess@broadcom.com>
2320
2321 * infcmd.c (default_print_one_register_info): Reuse function
2322 print_hex_chars.
2323
94e36acc
TT
23242013-07-10 Tom Tromey <tromey@redhat.com>
2325
2326 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2327 (ada-exp.o): New target.
2328
915dd369
SDJ
23292013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2330
2331 * mt-tdep.c (mt_registers_info): Call
2332 get_no_prettyformat_print_options instead of
2333 get_raw_print_options (regression by last patch from Doug
2334 Evans).
2335
eca07816
JB
23362013-07-09 Pedro Alves <palves@redhat.com>
2337
2338 Checked in by Joel Brobecker <brobecker@adacore.com>.
2339 * ada-lang.c (coerce_unspec_val_to_type): Use
2340 value_optimized_out_const.
2341 * value.c (value_optimized_out_const): New function.
2342 * value.h (value_optimized_out_const): New declaration.
2343
2a998fc0
DE
23442013-07-09 Doug Evans <dje@google.com>
2345
2346 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2347 Enum values rename as well. All uses updated.
2348 * valprint.h (value_print_options): Rename member pretty to
2349 pretty format. Rename member prettyprint_arrays to
2350 prettyformat_arrays. Rename member prettyprint_structs to
2351 prettyformat_structs. All uses updated.
2352 (get_no_prettyformat_print_options): Renamed from
2353 get_raw_print_options.
2354 * valprint.c (get_no_prettyformat_print_options): Renamed from
2355 get_raw_print_options. All callers updated.
2356 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2357 All callers updated.
2358 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2359 All callers updated.
2360 (_initialize_valprint): Improve help text for "set print pretty" and
2361 "set print arrays".
2362
466c1fca
AB
23632013-07-09 Andrew Burgess <aburgess@broadcom.com>
2364
2365 * value.c (value_bits_valid): Revert previous change, and change
2366 by Pedro on 2013-07-04, due to regressions in
2367 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2368
ad0f0303
AB
23692013-07-08 Andrew Burgess <aburgess@broadcom.com>
2370 Pedro Alves <palves@redhat.com>
2371
2372 * value.c (value_bits_valid): If the value is not lval_computed
2373 or has no check validity handler then the answer is the
2374 optimized_out flag, otherwise defer to the handler.
2375
b187bec1
EZ
23762013-07-06 Eli Zaretskii <eliz@gnu.org>
2377
48d1d6f5
EZ
2378 * top.c (print_gdb_configuration): Explain in output of
2379 --configuration what does "relocatable" mean.
2380
b187bec1
EZ
2381 * main.c (print_gdb_help): Regroup options in the --help text.
2382 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2383 the relevant discussions.
2384
52d361e1
YQ
23852013-07-06 Yao Qi <yao@codesourcery.com>
2386
2387 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2388 Remove parameter 'lsal'.
2389 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2390 to inner block. Caller update.
2391 (base_breakpoint_create_breakpoints_sal): Update.
2392 (bkpt_create_breakpoints_sal): Likewise.
2393 (tracepoint_create_breakpoints_sal): Likewise.
2394 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2395 element 0 of vector 'canonical->sals'.
2396
e1ec1b42
LM
23972013-07-05 Luis Machado <lgustavo@codesourcery.com>
2398
2399 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2400 register number instead of the pseudo register one.
2401 (rs6000_dwarf2_reg_to_regnum): Likewise.
2402
7195e6f0
PA
24032013-07-04 Pedro Alves <palves@redhat.com>
2404
2405 * findvar.c (value_of_register): Use allocate_optimized_out_value
2406 if the register has been optimized out, instead of
2407 set_value_optimized_out.
2408 * frame-unwind.c (frame_unwind_got_optimized): Use
2409 allocate_optimized_out_value.
2410
58722cac
PA
24112013-07-04 Pedro Alves <palves@redhat.com>
2412
2413 * value.c (value_bits_valid): If the value is not lval_computed,
2414 or doesn't have a check_validity hook, assume the value is entirely
2415 valid.
2416
691a26f5
AB
24172013-07-04 Andrew Burgess <aburgess@broadcom.com>
2418
2419 * stack.c (read_frame_arg): No longer fetch lazy values.
2420 * value.c (value_optimized_out): If the value is not already
2421 marked optimized out, and is lazy then fetch it.
2422 (value_primitive_field): Move optimized out check to later in the
2423 function, after we have loaded any lazy values.
2424 (value_fetch_lazy): Use optimized out flag directly rather than
2425 calling optimized_out method.
2426
a58e2656
AB
24272013-07-04 Andrew Burgess <aburgess@broadcom.com>
2428
2429 * valops.c: Don't include "user-regs.h".
2430 (value_fetch_lazy): Moved to value.c.
2431 * value.c: Include "user-regs.h".
2432 (value_fetch_lazy): Moved from valops.c.
2433
bd885420
YQ
24342013-07-04 Yao Qi <yao@codesourcery.com>
2435
2436 Revert:
2437 2013-06-27 Yao Qi <yao@codesourcery.com>
2438
2439 * common/create-version.sh: Update comments. Handle the case
2440 that TARGET_ALIAS is empty.
2441
17ef446e
PA
24422013-07-03 Pedro Alves <palves@redhat.com>
2443
2444 * Makefile.in (config.status): Depend on development.sh.
2445 (aclocal_m4_deps): Add libmcheck.m4.
2446 * acinclude.m4: Include libmcheck.m4.
2447 * configure.ac: Source development.sh instead of setting
2448 'development' here. --enable-libmcheck/--disable-libmcheck code
2449 factored out to GDB_AC_LIBMCHECK. Run it.
2450 * development.sh: New file.
2451 * libmcheck.m4: New file.
2452 * configure: Regenerate.
2453
ac6dd50f
TT
24542013-07-02 Tom Tromey <tromey@redhat.com>
2455
2456 * contrib/ari/update-web-ari.sh: Update for version.in change.
2457
bd1df410
TT
24582013-07-02 Tom Tromey <tromey@redhat.com>
2459
2460 * common/ptid.h: Comment fixes.
2461
4db1a1dc
TT
24622013-07-01 Tom Tromey <tromey@redhat.com>
2463
2464 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2465 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2466 (dwarf2_read_index, create_all_comp_units): Update.
2467
dd9aa048
TT
24682013-07-01 Tom Tromey <tromey@redhat.com>
2469
2470 * configure.ac (build_warnings): Add -Wold-style-definition.
2471 * configure: Rebuild.
2472 * machoread.c (_initialize_machoread): Use "(void)".
2473 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2474 use "(void)".
2475
44d100c3
TT
24762013-07-01 Tom Tromey <tromey@redhat.com>
2477
2478 * configure.ac (build_warnings): Add -Wold-style-declaration.
2479 * configure: Rebuild.
2480 * dsrec.c (make_srec): Use "static const", not "const static".
2481 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2482 not "const static".
2483 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2484 Use "static const", not "const static".
2485 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2486 not "const static".
2487 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2488 not "const static".
2489 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2490 not "const static".
2491 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2492 not "const static".
2493 (v850_dbtrap_breakpoint_from_pc): Likewise.
2494 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2495 not "const static".
2496
2945b807
TT
24972013-07-01 Tom Tromey <tromey@redhat.com>
2498
2499 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2500 * configure: Rebuild.
2501
d8d2a3ee
PA
25022013-07-01 Pedro Alves <palves@redhat.com>
2503
2504 * defs.h: Include "pathmax.h".
2505 * utils.c: Don't include sys/param.h.
2506 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2507 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2508 instead of MAXPATHLEN.
2509 * solib-sunos.c: Don't include sys/param.h.
2510 * xcoffread.c: Don't include sys/param.h.
2511 * bsd-kvm.c: Don't include sys/param.h.
2512 * darwin-nat.c: Don't include sys/param.h.
2513 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2514 * darwin-nat-info.c: Don't include sys/param.h.
2515 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2516 MAXPATHLEN.
2517 * i386obsd-nat.c: Don't include sys/param.h.
2518 * inf-child.c: Don't include sys/param.h.
2519 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2520 * linux-fork.c: Don't include sys/param.h.
2521 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2522 * linux-nat.c: Don't include sys/param.h.
2523 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2524 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2525 * m68klinux-nat.c: Don't include sys/param.h.
2526 * nbsd-nat.c: Don't include sys/param.h.
2527 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2528 * ppc-linux-nat.c: Don't include sys/param.h.
2529 * rs6000-nat.c: Don't include sys/param.h.
2530 * spu-linux-nat.c. Don't include sys/param.h.
2531 * windows-nat.c: Don't include sys/param.h.
2532 * xtensa-linux-nat.c: Don't include sys/param.h.
2533 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2534
38ec2207
PA
25352013-07-01 Pedro Alves <palves@redhat.com>
2536
2537 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2538 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2539 * gnulib/aclocal.m4: Regenerate.
2540 * gnulib/config.in: Regenerate.
2541 * gnulib/configure: Regenerate.
2542 * gnulib/import/pathmax.h: New file.
2543 * gnulib/import/Makefile.am: Regenerate.
2544 * gnulib/import/Makefile.in: Regenerate.
2545 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2546 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2547 * gnulib/import/m4/pathmax.m4: New file.
2548
e655c1a2
PA
25492013-07-01 Pedro Alves <palves@redhat.com>
2550
2551 * configure.ac (GDBINIT): Define, depending on host.
2552 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2553 * top.c (PATH_MAX): Delete fallback definition.
2554 (GDBINIT_FILENAME): Delete.
2555 (gdbinit): Reimplement as const char array set to the GDBINIT
2556 string constant.
2557 * top.h (gdbinit): Make const.
2558 * configure, config.in: Regenerate.
2559
50dd9793
PA
25602013-07-01 Pedro Alves <palves@redhat.com>
2561
2562 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2563 * cli/cli-cmds.h (source_script): Likewise.
2564 * exceptions.c (catch_command_errors_const): New function.
2565 * exceptions.h (catch_command_errors_const): Declare.
2566 * main.c (get_init_files): Make parameters const, and adjust.
2567 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2568 'local_gdbinit' locals const. Adjust to use
2569 catch_command_errors_const.
2570 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2571 'local_gdbinit' locals const.
2572
bc7dea8d
PA
25732013-07-01 Pedro Alves <palves@redhat.com>
2574
2575 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2576 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2577 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2578 <unistd.h>.
2579
8839a007
PA
25802013-07-01 Pedro Alves <palves@redhat.com>
2581
2582 Import the "unistd" gnulib module.
2583 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2584 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2585 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2586 import/m4/unistd_h.m4.
2587 * gnulib/aclocal.m4: Renenerate.
2588 * gnulib/config.in: Renenerate.
2589 * gnulib/configure: Renenerate.
2590 * gnulib/import/Makefile.am: Renenerate.
2591 * gnulib/import/Makefile.in: Renenerate.
2592 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2593 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2594 * gnulib/import/m4/off_t.m4: New file.
2595 * gnulib/import/m4/ssize_t.m4: New file.
2596 * gnulib/import/m4/sys_types_h.m4: New file.
2597 * gnulib/import/m4/unistd_h.m4: New file.
2598 * gnulib/import/sys_types.in.h: New file.
2599 * gnulib/import/unistd.c: New file.
2600 * gnulib/import/unistd.in.h: New file.
2601
8c0da261
PA
26022013-07-01 Pedro Alves <palves@redhat.com>
2603
2604 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2605 defined instead of checking HAVE_UNISTD_H.
2606
3574124b
PA
26072013-07-01 Pedro Alves <palves@redhat.com>
2608
2609 Reimport gnulib from scratch.
2610 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2611 import/m4/onceonly.m4.
2612 * gnulib/aclocal.m4: Renegerate.
2613 * gnulib/config.in: Renegerate.
2614 * gnulib/configure: Renegerate.
2615 * gnulib/import/Makefile.in: Renegerate.
2616 * gnulib/import/extra/update-copyright: Renegerate.
2617 * gnulib/import/m4/onceonly.m4: Delete.
2618
702dc4fd
PA
26192013-07-01 Pedro Alves <palves@redhat.com>
2620
2621 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2622
47e1ce27
JK
26232013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 Code cleanup.
2626 * remote.c (async_remote_interrupt_twice): Make it static.
2627 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2628
e82839d4
SDJ
26292013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2630
2631 * ia64-linux-tdep.c: Include <ctype.h>.
2632 (ia64_linux_stap_is_single_operand): New function.
2633 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2634
d6c2da54
TT
26352013-06-28 Tom Tromey <tromey@redhat.com>
2636
2637 * Makefile.in (version.c): Use version.in, not
2638 common/version.in.
2639 * common/create-version.sh: Likewise.
2640 * common/version.in: Move...
2641 * version.in: ...here.
2642
74da6f00
PA
26432013-06-28 Pedro Alves <palves@redhat.com>
2644
2645 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2646 here.
2647 * utils.h (pagination_enabled): Declare.
2648
d32dc48e
PA
26492013-06-28 Pedro Alves <palves@redhat.com>
2650
2651 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2652 Move higher up in file.
2653
0edd9e3b
TT
26542013-06-28 Tom Tromey <tromey@redhat.com>
2655
2656 * tracepoint.c (deprecated_readline_begin_hook)
2657 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2658 declare.
2659
4eb59108
PA
26602013-06-28 Pedro Alves <palves@redhat.com>
2661
2662 PR tui/14880
2663 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2664 checking if they're available.
2665 * value.c (value_available_contents_eq): Change comment.
2666 * value.h (value_available_contents_eq): Expand comment.
2667
97b17156
TT
26682013-06-27 Tom Tromey <tromey@redhat.com>
2669
2670 * target.c (find_run_target): Remove.
2671 * target.h (find_run_target): Remove.
2672
6a3bfc5c
TT
26732013-06-27 Tom Tromey <tromey@redhat.com>
2674
2675 * corelow.c (core_gdbarch): Now static.
2676
c9ef825d
TT
26772013-06-27 Tom Tromey <tromey@redhat.com>
2678
2679 * target.c (target_struct_index): Remove.
2680
e5823f1c
PA
26812013-06-27 Pedro Alves <palves@redhat.com>
2682
2683 * infrun.c: Remove comment describing the 'stepping over runtime
2684 loader dynamic symbol resolution code' mechanism; moved to
2685 gdbint.texinfo.
2686
97f8dd09
PA
26872013-06-27 Pedro Alves <palves@redhat.com>
2688
2689 * exceptions.c (catch_command_errors): Remove spurious space.
2690 * exceptions.h (catch_command_errors): Second parameter is "arg",
2691 not "command".
2692
02b1871e
YQ
26932013-06-27 Yao Qi <yao@codesourcery.com>
2694
2695 * common/create-version.sh: Update comments. Handle the case
2696 that TARGET_ALIAS is empty.
2697
bb1b1cf1
PA
26982013-06-26 Pedro Alves <palves@redhat.com>
2699
2700 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2701 comment.
2702
7b624e71
PA
27032013-06-26 Pedro Alves <palves@redhat.com>
2704
2705 * infrun.c: Update comments on stepping over runtime loader
2706 dynamic symbol resolution code.
2707
74e5a346
SDJ
27082013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2709
2710 * ax-gdb.h (union exp_element): Forward declare.
2711 * parser-defs.h: Include expression.h.
2712
a2fb2cee
MR
27132013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2714
2715 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2716
cdba14e0
DK
27172013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2718
2719 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2720
f30aa5af
DK
27212013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2722
2723 Fix trace-status to output proper start-time and stop-time.
2724 * tracepoint.c (trace_status_command): Fix type of printf arg to
2725 prevent improper type conversion.
2726 (trace_status_mi): Likewise.
2727
1aee363c
MR
27282013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2729
2730 * mips-tdep.c (mips_next_pc): Fix a typo.
2731
3356937a
MR
27322013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2733
2734 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2735
dc673c81
YQ
27362013-06-26 Pedro Alves <pedro@codesourcery.com>
2737 Yao Qi <yao@codesourcery.com>
2738
2739 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2740 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2741 * mi/mi-main.c (print_variable_or_computed): New function.
2742 (mi_cmd_trace_frame_collected): New function.
2743 * tracepoint.c (find_trace_state_variable_by_number): New.
2744 (struct traceframe_info): Move to tracepoint.h
2745 (struct collection_list): Likewise.
2746 (do_collect_symbol): Include locals and arguments in the
2747 collected variables list.
2748 (clear_collection_list): Clear wholly collected variables list
2749 and computed variables list.
2750 (append_exp): New function.
2751 (encode_actions_1): Include variables in the wholly
2752 collected variables list. Include memory ranges and
2753 full-fledged expressions in the computed expressions list.
2754 (encode_actions): Move some code to ...
2755 Return the cleanup chain.
2756 (encode_actions_rsp): ... here. New function.
2757 (get_traceframe_location, get_traceframe_info): Remove static.
2758 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2759 (struct collection_list): Moved from tracepoint.c. Add two
2760 new fields 'wholly_collected' and 'computed'.
2761 (find_trace_state_variable_by_number): Declare.
2762 (encode_actions): Adjust declaration.
2763 (encode_actions_rsp): Declare.
2764 (get_traceframe_info, get_traceframe_location): Declare.
2765
2766 * NEWS: Mention new MI command -trace-frame-collected.
2767
28a93511
YQ
27682013-06-26 Pedro Alves <pedro@codesourcery.com>
2769 Yao Qi <yao@codesourcery.com>
2770
2771 * ctf.c (ctf_traceframe_info): Push trace state variables
2772 present in the trace data into the traceframe info object.
2773 * breakpoint.c (DEF_VEC_I): Remove.
2774 * common/filestuff.c (DEF_VEC_I): Likewise.
2775 * dwarf2loc.c (DEF_VEC_I): Likewise.
2776 * mi/mi-main.c (DEF_VEC_I): Likewise.
2777 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2778 * features/traceframe-info.dtd: Add tvar element and its
2779 attributes.
2780 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2781 (build_traceframe_info): Push trace state variables present in
2782 the trace data into the traceframe info object.
2783 (traceframe_info_start_tvar): New function.
2784 (tvar_attributes): New.
2785 (traceframe_info_children): Add "tvar" element.
2786 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2787
2788 * NEWS: Mention the change in GDB and GDBserver.
2789
ddacd3c8
YQ
27902013-06-26 Pedro Alves <pedro@codesourcery.com>
2791 Yao Qi <yao@codesourcery.com>
2792
2793 * tracepoint.c (trace_dump_command): Move code to ...
2794 (get_traceframe_location): ... here. New.
2795
05796b35
YQ
27962013-06-26 Pedro Alves <pedro@codesourcery.com>
2797 Yao Qi <yao@codesourcery.com>
2798
2799 * tracepoint.c (trace_dump_command): GDB emits an error
2800 instead of a warning when a traceframe is not selected.
2801
cbfa3b61
YQ
28022013-06-26 Pedro Alves <pedro@codesourcery.com>
2803 Yao Qi <yao@codesourcery.com>
2804
2805 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2806 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2807 in collection_list.
2808 (do_clear_collection_list, init_collection_list): New.
2809 (encode_actions): Add local variables 'tracepoint_list' and
2810 'stepping_list'. Call init_collection_list and make cleanup
2811 which calls do_clear_collection_list. Don't call
2812 clear_collection_list.
2813 (_initialize_tracepoint): Delete references to
2814 'tracepoint_list' and 'stepping_list'.
2815
6e2048d3
TT
28162013-06-25 Tom Tromey <tromey@redhat.com>
2817
2818 * common/create-version.sh (date): Use "$", not "$$" in sed
2819 expression.
2820
42059f0e
KB
28212013-06-25 Kevin Buettner <kevinb@redhat.com>
2822
2823 * NEWS (New targets): Add entry for TI MSP430.
2824
a0743c90
YQ
28252013-06-25 Yao Qi <yao@codesourcery.com>
2826
2827 * remote.c (remote_start_remote): Move code to upload tsv
2828 earlier.
2829
9d6e6e84
HZ
28302013-06-25 Yao Qi <yao@codesourcery.com>
2831 Hui Zhu <hui@codesourcery.com>
2832 Pedro Alves <palves@redhat.com>
2833
2834 PR breakpoints/15075
2835 PR breakpoints/15434
2836 * breakpoint.c (bpstat_stop_status): Call
2837 b->ops->after_condition_true.
2838 (update_dprintf_command_list): Don't append "continue" command
2839 to the command list of dprintf breakpoint.
2840 (base_breakpoint_after_condition_true): New function.
2841 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2842 (dprintf_after_condition_true): New function.
2843 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2844 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2845
586cf749
KB
28462013-06-24 Kevin Buettner <kevinb@redhat.com>
2847
2848 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2849 (ALLDEPFILES): Add msp430-tdep.c.
2850 * configure.tgt (msp430*-*-elf): New target.
2851 * msp430-tdep.c: New file.
2852
1bbce132
MR
28532013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2854
2855 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2856 microMIPS synthetic symbols.
2857
3e5d3a5a
MR
28582013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2859
2860 * objfiles.h (pc_in_section): New prototype.
2861 (in_plt_section): Remove name argument, replace prototype with
2862 static inline function.
2863 * mips-tdep.h: Include "objfiles.h".
2864 (in_mips_stubs_section): New function.
2865 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2866 in_solib_call_trampoline member.
2867 (hppa_in_solib_call_trampoline): Remove name argument.
2868 * objfiles.c (pc_in_section): New function.
2869 (in_plt_section): Remove function.
2870 * mips-linux-tdep.c: Include "objfiles.h".
2871 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2872 name argument. Return 1 rather than the low 16-bit halfword of
2873 any instruction examined.
2874 (mips_linux_in_dynsym_resolve_code): Update
2875 mips_linux_in_dynsym_stub call accordingly.
2876 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2877 rather than an equivalent hand-coded sequence.
2878 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2879 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2880 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2881 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2882 in_opd_section.
2883 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2884 on call to tdep->in_solib_call_trampoline.
2885 (hppa_in_solib_call_trampoline): Remove name argument, update
2886 according to in_plt_section change.
2887 (hppa_skip_trampoline_code): Update according to in_plt_section
2888 change.
2889 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2890 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2891 Likewise.
2892 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2893 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2894 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2895 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2896 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2897 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2898 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2899 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2900 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2901 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2902 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2903 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2904 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2905
b9b26a16
JB
29062013-06-24 Joel Brobecker <brobecker@adacore.com>
2907
2908 * common/create-version.sh: Fix expansion of $host_alias
2909 and $target_alias in generation of HOST_NAME and TARGET_NAME
2910 (resp.).
2911
01208463
TT
29122013-06-24 Tom Tromey <tromey@redhat.com>
2913
2914 * common/create-version.sh: New file.
2915 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2916 create-version.sh.
2917 (HFILES_NO_SRCDIR): Use common/version.h.
2918 * version.in: Move to ...
2919 * common/version.in: ... here. Replace date with "DATE".
2920 * version.h: Move to ...
2921 * common/version.h: ... here.
2922
bb6b9a5e
JB
29232013-06-21 Joel Brobecker <brobecker@adacore.com>
2924
2925 * gdb/gnulib/Makefile.in: Update date in copyright header.
2926 * gdb/gnulib/configure.ac: Ditto.
2927 * gdb/gnulib/update-gnulib.sh: Ditto.
2928
c3b18ee7
JB
29292013-06-21 Joel Brobecker <brobecker@adacore.com>
2930
2931 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2932 "gdb/gnulib/import".
2933
85d3b769
WN
29342013-06-21 Will Newton <will.newton@linaro.org>
2935
2936 * doublest.c (ldfrexp): Remove function.
2937 (convert_doublest_to_floatformat): Call frexpl instead of
2938 ldfrexp.
2939
88b48903
WN
29402013-06-21 Will Newton <will.newton@linaro.org>
2941
2942 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2943 * gnulib/aclocal.m4: Regenerate.
2944 * gnulib/config.in: Regenerate.
2945 * gnulib/configure: Regenerate.
2946 * gnulib/import/Makefile.am: Update.
2947 * gnulib/import/Makefile.in: Update.
2948 * gnulib/import/m4/gnulib-cache.m4: Update.
2949 * gnulib/import/m4/gnulib-comp.m4: Update.
2950 * gnulib/import/float+.h: Import.
2951 * gnulib/import/float.c: Import.
2952 * gnulib/import/float.in.h: Import.
2953 * gnulib/import/fpucw.h: Import.
2954 * gnulib/import/frexp.c: Import.
2955 * gnulib/import/frexpl.c: Import.
2956 * gnulib/import/isnan.c: Import.
2957 * gnulib/import/isnand-nolibm.h: Import.
2958 * gnulib/import/isnand.c: Import.
2959 * gnulib/import/isnanl-nolibm.h: Import.
2960 * gnulib/import/isnanl.c: Import.
2961 * gnulib/import/itold.c: Import.
2962 * gnulib/import/m4/exponentd.m4: Import.
2963 * gnulib/import/m4/exponentl.m4: Import.
2964 * gnulib/import/m4/float_h.m4: Import.
2965 * gnulib/import/m4/fpieee.m4: Import.
2966 * gnulib/import/m4/frexp.m4: Import.
2967 * gnulib/import/m4/frexpl.m4: Import.
2968 * gnulib/import/m4/isnand.m4: Import.
2969 * gnulib/import/m4/isnanl.m4: Import.
2970 * gnulib/import/m4/math_h.m4: Import.
2971 * gnulib/import/math.c: Import.
2972 * gnulib/import/math.in.h: Import.
2973
4353c9e6
JK
29742013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2975
2976 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2977 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2978 signature_INTEL_edx comparisons.
2979
e3e06db3
DE
29802013-06-20 Doug Evans <dje@google.com>
2981
6ac97d4c
DE
2982 symtab/15652
2983 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2984 All callers updated.
2985 (open_dwp_file): If we can't find the dwp file, search the basename
2986 in debug-file-directory.
2987
93417882
DE
2988 * dwarf2read.c (struct dwp_file): Fix comment.
2989 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2990
e3e06db3
DE
2991 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2992 better.
2993
0878d0fa
YQ
29942013-06-20 Yao Qi <yao@codesourcery.com>
2995
2996 * breakpoint.c (create_breakpoint): Fix code indentation.
2997
023fa29b
YQ
29982013-06-20 Yao Qi <yao@codesourcery.com>
2999
3000 * breakpoint.c (create_breakpoints_sal_default): Remove
3001 parameter 'lsal'. Update declaration.
3002 (bkpt_create_breakpoints_sal): Caller update.
3003 (tracepoint_create_breakpoints_sal): Likewise.
3004
c898adb7
YQ
30052013-06-20 Pedro Alves <pedro@codesourcery.com>
3006 Yao Qi <yao@codesourcery.com>
3007
3008 * NEWS: Mention the new option '--skip-unavailable' of command
3009 -data-list-register-values.
3010 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3011 --skip-unavailable option. Adjust to use output_register.
3012 (output_register): Add new 'skip_unavailable' parameter.
3013 Handle it.
3014
4d157a3d
MF
30152013-06-19 Mike Frysinger <vapier@gentoo.org>
3016
3017 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3018 common/i386-gcc-cpuid.h.
3019 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3020 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3021 Copy the latest version from upstream gcc.
3022 * common/linux-btrace.c: Include i386-cpuid.h.
3023 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3024 call to i386_cpuid.
3025 (cpu_supports_btrace): Likewise.
3026 * go32-nat.c: Include i386-cpuid.h.
3027 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3028
1ce4db08
DE
30292013-06-19 Doug Evans <dje@google.com>
3030
3031 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3032 (get_section_index): Ditto.
3033
0e4777df
TT
30342013-06-19 Tom Tromey <tromey@redhat.com>
3035
3036 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3037 "dprintf" help.
3038
3190f0c6
DE
30392013-06-18 Doug Evans <dje@google.com>
3040
3041 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3042 before using it.
3043 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3044 Move test of cu_index closer to use. Print complaint if cu_index
3045 is bad.
3046
8b89a20a
JB
30472013-06-18 Joel Brobecker <brobecker@adacore.com>
3048
3049 * machoread.c (oso_vector): Delete this global.
3050 (macho_register_oso): Add new parameter "oso_vector_ptr".
3051 Use it instead of the "oso_vector" global.
3052 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3053 (macho_symfile_read): Use a local oso_vector, to be free'ed
3054 at the end of this function, in place of the old "oso_vector"
3055 global. Update various function calls accordingly. Use one
3056 single cleanup chain for the entire function.
3057
59b0c7c1
JB
30582013-06-18 Joel Brobecker <brobecker@adacore.com>
3059
937c708c 3060 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3061 DWARF2_PER_OBJFILE by uses of DATA instead.
3062
427cd150
TT
30632013-06-18 Tom Tromey <tromey@redhat.com>
3064
3065 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3066 argument.
3067 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3068 Special case signals other than GDB_SIGNAL_TRAP.
3069 (explains_signal_watchpoint): New function.
3070 (base_breakpoint_explains_signal): Add 'sig' argument.
3071 (initialize_breakpoint_ops): Set 'explains_signal' method for
3072 watchpoints.
3073 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3074 signal argument.
3075 (bpstat_explains_signal): Likewise.
3076 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3077
2d57700b
TT
30782013-06-18 Tom Tromey <tromey@redhat.com>
3079
3080 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3081
ac475191
TT
30822013-06-18 Tom Tromey <tromey@redhat.com>
3083
3084 * python/python.c (finish_python_initialization): Decref
3085 'pythondir' on failure path as well.
3086
5bd1ef56
TT
30872013-06-18 Tom Tromey <tromey@redhat.com>
3088
3089 PR symtab/15391:
3090 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3091 after taking bits_to_skip into account. Sign extend byte_offset.
3092 * utils.h (gdb_sign_extend): Declare.
3093 * utils.c (gdb_sign_extend): New function.
3094
92fac807
JK
30952013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3098
2d503272
PM
30992013-06-17 Pierre Muller <muller@sourceware.org>
3100
3101 * corelow.c (core_open): Print GDB signal name instead of target
3102 signal number.
3103
6916fd98
MF
31042013-06-17 Mike Frysinger <vapier@gentoo.org>
3105
3106 * .gitignore: Add /gcore.
3107
9c02c129
DE
31082013-06-13 Doug Evans <dje@google.com>
3109
3110 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3111 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3112
d0548fa2
PM
31132013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3114
3115 * stack.c (backtrace_command_1): Fix indentation.
3116
22128028
JB
31172013-06-11 Joel Brobecker <brobecker@adacore.com>
3118
3119 * window-nat.c (thread_rec): Add missing empty line after
3120 local variable declaration.
3121
2ed3e009
JB
31222013-06-11 Joel Brobecker <brobecker@adacore.com>
3123
3124 * windows-nat.c (thread_rec): Revert format used to print
3125 error code returned by SuspendThread from %d back to %u.
3126
0c3d84be
JB
31272013-06-11 Joel Brobecker <brobecker@adacore.com>
3128
3129 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3130 ID in debug trace.
3131 (get_windows_debug_event): Likewise, for all debug traces.
3132
80e88e1a
JB
31332013-06-11 Joel Brobecker <brobecker@adacore.com>
3134
3135 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3136 warning message.
3137
1edebdbf
YQ
31382013-06-08 Pedro Alves <pedro@codesourcery.com>
3139 Yao Qi <yao@codesourcery.com>
3140
3141 * mi/mi-main.c (get_register): Remove declaration.
3142 (output_register): Declare.
3143 (mi_cmd_data_list_register_values): Remove local variable
3144 'tuple_cleanup'. Move some code into output_register.
3145 (get_register): Renamed to ...
3146 (output_register): ... this. Output the register's
3147 "number" ui_out tuple here.
3148
47d48711
PA
31492013-06-07 Pedro Alves <palves@redhat.com>
3150
3151 * darwin-nat.c: Fix formating in copyright header.
3152 * darwin-nat.h: Likewise.
3153 * gnu-nat.c: Likewise.
3154 * machoread.c: Likewise.
3155
3aee8918
PA
31562013-06-07 Pedro Alves <palves@redhat.com>
3157
5f2b57b5 3158 PR server/14823
3aee8918
PA
3159 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3160 static. Output a global target description pointer.
3161 (init_registers_${name}): Adjust to initialize a
3162 target description structure.
3163
fe8400b4
WN
31642013-06-07 Will Newton <will.newton@linaro.org>
3165
3166 * printcmd.c (build_address_symbolic): Call
3167 gdbarch_addr_bits_remove for text minimal symbols.
3168
20df6206
WN
31692013-06-07 Will Newton <will.newton@linaro.org>
3170
3171 * MAINTAINERS: Add myself to Write After Approval.
3172
aef525cb
YQ
31732013-06-07 Yao Qi <yao@codesourcery.com>
3174
3175 * tracepoint.c (start_tracing): Move code to ...
3176 (trace_reset_local_state): ... here. New.
3177 (disconnect_tracing): Don't call set_current_traceframe,
3178 set_tracepoint_num, and set_traceframe_context. Call
3179 trace_reset_local_state instead.
3180 (tfile_close): Call trace_reset_local_state.
3181 * ctf.c (ctf_close): Likewise.
3182 * remote.c (remote_close): Likewise.
3183 * tracepoint.h (trace_reset_local_state): Declare.
3184
d2415c6c
DE
31852013-06-06 Doug Evans <dje@google.com>
3186
3187 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3188 and fix header docs.
3189
69fc87c2
DE
31902013-06-05 Doug Evans <dje@google.com>
3191 Keith Seitz <keiths@redhat.com>
3192
3193 PR 15519
3194 * cp-namespace.c (find_symbol_in_baseclass): Call
3195 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3196 Check result of call to lookup_symbol_static.
3197 Call lookup_static_symbol_aux unconditionally.
3198 Call check_typedef on base types before accessing them.
3199 (cp_lookup_nested_symbol): Fix comment.
3200
a513d1e8
LM
32012013-06-05 Luis Machado <lgustavo@codesourcery.com>
3202
3203 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3204 minimal symbols pointing to function descriptors.
3205
351a6f02
TT
32062013-06-05 Tom Tromey <tromey@redhat.com>
3207
3208 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3209
5e1b953b 32102013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3211 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3212
3213 * remote.c (remote_wait_as): Restore signal handler before returning
3214 when GDB gets a notification.
3215
f9e14852
GB
32162013-06-04 Gary Benson <gbenson@redhat.com>
3217
8445cbf1 3218 PR 2328
f9e14852
GB
3219 * breakpoint.h (handle_solib_event): Moved function declaration
3220 to solib.h.
3221 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3222 (bpstat_stop_status): Pass new argument to handle_solib_event.
3223 * solib.h (update_solib_breakpoints): New function declaration.
3224 (handle_solib_event): Moved function declaration from
3225 breakpoint.h.
3226 * solib.c (update_solib_breakpoints): New function.
3227 (handle_solib_event): Moved function from breakpoint.c.
3228 Updated to call solib_ops->handle_event if not NULL.
3229 * solist.h (target_so_ops): New fields "update_breakpoints" and
3230 "handle_event".
3231 * infrun.c (set_stop_on_solib_events): New function.
3232 (_initialize_infrun): Use the above for "set
3233 stop-on-solib-events".
3234 (handle_inferior_event): Pass new argument to handle_solib_event.
3235 * solib-svr4.c (probe.h): New include.
3236 (svr4_free_library_list): New forward declaration.
3237 (probe_action): New enum.
3238 (probe_info): New struct.
3239 (probe_info): New static variable.
3240 (NUM_PROBES): New definition.
3241 (svr4_info): New fields "using_xfer", "probes_table" and
3242 "solib_list".
3243 (free_probes_table): New function.
3244 (free_solib_list): New function.
3245 (svr4_pspace_data_cleanup): Free probes table and solib list.
3246 (svr4_copy_library_list): New function.
3247 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3248 (svr4_read_so_list): New parameter "prev_lm".
3249 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3250 (svr4_current_sos): New function.
3251 (probe_and_action): New struct.
3252 (hash_probe_and_action): New function.
3253 (equal_probe_and_action): Likewise.
3254 (register_solib_event_probe): Likewise.
3255 (solib_event_probe_at): Likewise.
3256 (solib_event_probe_action): Likewise.
3257 (solist_update_full): Likewise.
3258 (solist_update_incremental): Likewise.
3259 (disable_probes_interface_cleanup): Likewise.
3260 (svr4_handle_solib_event): Likewise.
3261 (svr4_update_solib_event_breakpoint): Likewise.
3262 (svr4_update_solib_event_breakpoints): Likewise.
3263 (svr4_create_solib_event_breakpoints): Likewise.
3264 (enable_break): Free probes table before creating breakpoints.
3265 Use svr4_create_solib_event_breakpoints to create breakpoints.
3266 (svr4_solib_create_inferior_hook): Free the solib list.
3267 (_initialize_svr4_solib): Initialise
3268 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3269
ced63ec0
GB
32702013-06-04 Gary Benson <gbenson@redhat.com>
3271
3272 * target.h (target_ops): New field
3273 "to_augmented_libraries_svr4_read".
3274 (target_augmented_libraries_svr4_read): New macro.
3275 * target.c (update_current_target): Handle
3276 to_augmented_libraries_svr4_read.
3277 * remote.c (remote_state): New field
3278 "augmented_libraries_svr4_read".
3279 (remote_augmented_libraries_svr4_read_feature): New function.
3280 (remote_protocol_features): Add entry for
3281 "augmented-libraries-svr4-read".
3282 (remote_augmented_libraries_svr4_read): New function.
3283 (init_remote_ops): Initialize
3284 remote_ops.to_augmented_libraries_svr4_read.
3285
7f91dbec
GB
32862013-06-04 Gary Benson <gbenson@redhat.com>
3287
3288 * NEWS: Update.
3289
607ece04
GB
32902013-06-04 Gary Benson <gbenson@redhat.com>
3291
3292 * objfiles.h (inhibit_section_map_updates): New function
3293 declaration.
3294 (resume_section_map_updates): Likewise.
3295 (resume_section_map_updates_cleanup): Likewise.
3296 * objfiles.c (objfile_pspace_info): Removed field
3297 "objfiles_changed_p". New fields "new_objfiles_available",
3298 "section_map_dirty" and "inhibit_updates".
3299 (allocate_objfile): Set new_objfiles_available.
3300 (free_objfile): Set section_map_dirty.
3301 (objfile_relocate1): Likewise.
3302 (in_plt_section): Likewise.
3303 (find_pc_section): Update the conditions under which the
3304 section map will be updated.
3305 (inhibit_section_map_updates): New function.
3306 (resume_section_map_updates): Likewise.
3307 (resume_section_map_updates_cleanup): Likewise.
3308
9ee6a5ac
GB
33092013-06-04 Gary Benson <gbenson@redhat.com>
3310
3311 * probe.h (get_probe_argument_count): New declaration.
3312 (evaluate_probe_argument): Likewise.
3313 * probe.c (get_probe_argument_count): New function.
3314 (evaluate_probe_argument): Likewise.
3315 (probe_safe_evaluate_at_pc): Use the above new functions.
3316
845d4708
AM
33172013-06-04 Alan Modra <amodra@gmail.com>
3318
3319 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3320 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3321 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3322 target mem reads on optional insns.
3323 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3324 ppc_insns_match_pattern calls.
3325 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3326 Add match for power7 thread safety insns, and new order of
3327 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3328 invocation in comment, and update rest of comment.
3329 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3330 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3331 (ppc64_standard_linkage2_target): Update insn offsets.
3332 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3333 stubs first. Update calls.
3334
404e278f
YQ
33352013-06-04 Yao Qi <yao@codesourcery.com>
3336
3337 * solib.c (solib_find): Don't need dir separator if path has
3338 drive spec.
3339
f6aea118
JB
33402013-06-03 Joel Brobecker <brobecker@adacore.com>
3341
3342 Revert (indirectly causes a SIGSEGV):
3343 * machoread.c (macho_symfile_read): Assign first cleanup to
3344 'back_to'.
3345
87967e27
YQ
33462013-06-03 Yao Qi <yao@codesourcery.com>
3347
3348 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3349 mi-parse.c. Make them static.
3350 (mi_all_values): Likewise.
3351 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3352 mi_parse_print_values. Make it external.
3353 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3354 Remove the declarations.
3355 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3356 * mi/mi-parse.h (mi_parse_print_values): Declare.
3357 * mi/mi-cmd-stack.c: Include mi-parse.h.
3358 (parse_print_values): Remove
3359 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3360 of parse_print_values.
3361 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3362
3ca73e0c
YQ
33632013-05-31 Pedro Alves <pedro@codesourcery.com>
3364 Yao Qi <yao@codesourcery.com>
3365
3366 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3367 (encode_actions): Move code to ...
3368 (all_tracepoint_actions_and_cleanup): ... here. New.
3369 (trace_dump_command): Likewise.
3370
4e993a19
TT
33712013-05-30 Tom Tromey <tromey@redhat.com>
3372
3373 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3374
e3b76b4f
TT
33752013-05-30 Tom Tromey <tromey@redhat.com>
3376
3377 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3378 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3379 'old_chain' argument. Add 'parser_result' argument.
3380 (gdb_xml_create_parser_and_cleanup): Remove old version.
3381 (gdb_xml_parse_quick): Update.
3382 (xml_process_xincludes): Update.
3383 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3384 declare.
3385
db26349c
TT
33862013-05-30 Tom Tromey <tromey@redhat.com>
3387
3388 * probe.c (collect_probes): Check arguments for NULL before
3389 calling compile_rx_or_error.
3390 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3391 Remove NULL return.
3392
77f9e713
TT
33932013-05-30 Tom Tromey <tromey@redhat.com>
3394
3395 * infrun.c (adjust_pc_after_break): Introduce an outer null
3396 cleanup.
3397
45475de7
TT
33982013-05-30 Tom Tromey <tromey@redhat.com>
3399
3400 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3401
ac5007fd
TT
34022013-05-30 Tom Tromey <tromey@redhat.com>
3403
3404 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3405 for 'old_chain'. Do not check 'head' before processing
3406 cleanups.
3407
cd82eddc
TT
34082013-05-30 Tom Tromey <tromey@redhat.com>
3409
3410 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3411 "cleanup_tuple".
3412
57cee33a
TT
34132013-05-30 Tom Tromey <tromey@redhat.com>
3414
3415 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3416 inner scope. Unconditionally call do_cleanups.
3417
795d915c
TT
34182013-05-30 Tom Tromey <tromey@redhat.com>
3419
3420 * source.c (find_and_open_source): Call do_cleanups.
3421
1fc3cf4a
TT
34222013-05-30 Tom Tromey <tromey@redhat.com>
3423
3424 * linux-thread-db.c (thread_db_load_search): Unconditionally
3425 call do_cleanups.
3426
e35ac9bf
TT
34272013-05-30 Tom Tromey <tromey@redhat.com>
3428
3429 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3430 for 'cleanup'; instead use a later one.
3431
f3300387
TT
34322013-05-30 Tom Tromey <tromey@redhat.com>
3433
3434 * python/py-breakpoint.c (bppy_get_commands): Use
3435 explicit, unconditional return.
3436 * python/py-frame.c (frapy_read_var): Likewise.
3437 * python/python.c (gdbpy_decode_line): Likewise.
3438
c27e16e3
TT
34392013-05-30 Tom Tromey <tromey@redhat.com>
3440
3441 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3442 do_cleanups on all return paths.
3443
5ae85e44
TT
34442013-05-30 Tom Tromey <tromey@redhat.com>
3445
3446 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3447
73b8d9da
TT
34482013-05-30 Tom Tromey <tromey@redhat.com>
3449
3450 * stabsread.c (read_struct_type): Call do_cleanups along
3451 all return paths.
3452
7d266584
MR
34532013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3454
3455 * mips-linux-tdep.c: Adjust formatting throughout.
3456
0f900f54
TT
34572013-05-30 Tom Tromey <tromey@redhat.com>
3458
3459 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3460 along all return paths.
3461
a991ac28
TT
34622013-05-30 Tom Tromey <tromey@redhat.com>
3463
3464 * symfile.c (find_separate_debug_file): Call do_cleanups
3465 along all return paths.
3466
1abaf042
TT
34672013-05-30 Tom Tromey <tromey@redhat.com>
3468
3469 * symtab.c (search_symbols): Introduce a null cleanup for
3470 'retval_chain'.
3471
edefe1da
TT
34722013-05-30 Tom Tromey <tromey@redhat.com>
3473
3474 * python/py-value.c (valpy_binop): Call do_cleanups before
3475 exiting loop.
3476
54f72dcc
TT
34772013-05-30 Tom Tromey <tromey@redhat.com>
3478
3479 * python/py-prettyprint.c (print_children): Remove extra
3480 do_cleanups call.
3481
af1c6971
TT
34822013-05-30 Tom Tromey <tromey@redhat.com>
3483
3484 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3485 all return paths.
3486
b862ce75
TT
34872013-05-30 Tom Tromey <tromey@redhat.com>
3488
3489 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3490 along all return paths.
3491
e12fefc8
TT
34922013-05-30 Tom Tromey <tromey@redhat.com>
3493
3494 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3495 call do_cleanups.
3496
4867f990
TT
34972013-05-30 Tom Tromey <tromey@redhat.com>
3498
3499 * varobj.c (c_value_of_root): Call do_cleanups along all
3500 return paths.
3501
4fd2d6af
TT
35022013-05-30 Tom Tromey <tromey@redhat.com>
3503
3504 * tracepoint.c (trace_dump_command): Unconditionally call
3505 do_cleanups.
3506
752eb8b4
TT
35072013-05-30 Tom Tromey <tromey@redhat.com>
3508
3509 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3510 do_cleanups earlier.
3511
e42d0aa5
TT
35122013-05-30 Tom Tromey <tromey@redhat.com>
3513
3514 * machoread.c (macho_symfile_read): Assign first cleanup to
3515 'back_to'.
3516
4bbc010a
TT
35172013-05-30 Tom Tromey <tromey@redhat.com>
3518
3519 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3520
b9635925
TT
35212013-05-30 Tom Tromey <tromey@redhat.com>
3522
3523 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3524
25f43500
TT
35252013-05-30 Tom Tromey <tromey@redhat.com>
3526
3527 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3528 call discard_cleanups.
3529 (inf_ptrace_attach): Likewise.
3530
d6a2e54a
TT
35312013-05-30 Tom Tromey <tromey@redhat.com>
3532
3533 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3534 return paths.
3535 (mips_initialize): Likewise.
3536 (common_open): Call do_cleanups.
3537
48be7c1b
TT
35382013-05-30 Tom Tromey <tromey@redhat.com>
3539
3540 * utils.c (internal_vproblem): Call do_cleanups.
3541
e61727ab
TT
35422013-05-30 Tom Tromey <tromey@redhat.com>
3543
3544 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3545
b81b921f
TT
35462013-05-30 Tom Tromey <tromey@redhat.com>
3547
3548 * cli/cli-script.c (setup_user_args): Don't return after error.
3549
fe48dfb1
TT
35502013-05-30 Tom Tromey <tromey@redhat.com>
3551
3552 * somread.c (som_symtab_read): Call do_cleanups.
3553
27833de7
TT
35542013-05-30 Tom Tromey <tromey@redhat.com>
3555
3556 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3557
5b3fca71
TT
35582013-05-30 Tom Tromey <tromey@redhat.com>
3559
3560 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3561 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3562 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3563 * source.c (show_substitute_path_command): Call do_cleanups.
3564 (unset_substitute_path_command, set_substitute_path_command):
3565 Likewise.
3566 * symfile.c (load_command): Call do_cleanups.
3567
af83e3f8
TT
35682013-05-30 Tom Tromey <tromey@redhat.com>
3569
3570 * contrib/cleanup_check.py: New file.
3571 * contrib/gcc-with-excheck: Add option parsing.
3572
564eac42
JB
35732013-05-30 Joel Brobecker <brobecker@adacore.com>
3574
3575 * windows-nat.c (windows_delete_thread): Add missing space
3576 in cast expression.
3577
47902076
HAQ
35782013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3579
3580 * inferior.c (top level): Include tilde.h.
3581 (add_inferior_command): Call tilde_expand on the value of 'exec'
3582 argument.
3583
23da373a
YQ
35842013-05-30 Pedro Alves <pedro@codesourcery.com>
3585 Yao Qi <yao@codesourcery.com>
3586
3587 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3588 Caller update.
3589 (encode_actions): Likewise.
3590 * remote.c (remote_download_tracepoint): Caller update.
3591 * tracepoint.h (encode_actions): Update declaration.
3592
a6e6f791
PA
35932013-05-30 Pedro Alves <palves@redhat.com>
3594
3595 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3596 pointer.
3597
36d25514
YQ
35982013-05-30 Yao Qi <yao@codesourcery.com>
3599
3600 * remote.c (remote_check_symbols): Remove unused parameter
3601 'objfile'.
3602 Declaration update.
3603 (remote_start_remote, remote_new_objfile): Caller update.
3604
62a813cc
YQ
36052013-05-30 Yao Qi <yao@codesourcery.com>
3606
3607 * mi/mi-cmds.c (mi_cmds): Define MI command
3608 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3609 DEF_MI_CMD_CLI.
3610
28439a30
PA
36112013-05-29 Pedro Alves <palves@redhat.com>
3612
3613 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3614 (remote_insert_watchpoint, remote_remove_watchpoint)
3615 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3616 (remote_verify_memory, compare_sections_command)
3617 (remote_search_memory): Set the general process/thread on the
3618 remote side.
3619
6ac1c082
PA
36202013-05-29 Pedro Alves <palves@redhat.com>
3621
3622 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3623 (_initialize_aarch64_tdep): Don't call
3624 initialize_tdesc_aarch64_without_fpu.
3625 * features/Makefile (WHICH): Remove reference to
3626 aarch64-without-fpu.
3627 * features/aarch64-without-fpu.c: Delete file.
3628 * regformats/aarch64-without-fpu.dat: Delete file.
3629
a73e3634
YQ
36302013-05-28 Yao Qi <yao@codesourcery.com>
3631
3632 * tracepoint.c (stringify_collection_list): Remove parameter
3633 'string'.
3634 (encode_actions): Caller update. Remove local variables.
3635
c0ea94eb
YQ
36362013-05-24 Yao Qi <yao@codesourcery.com>
3637
3638 * tracepoint.c (TFILE_PID): Remove.
3639 (tfile_open): Don't add thread and inferior.
3640 (tfile_close): Don't set 'inferior_ptid'. Don't call
3641 exit_inferior_silent.
3642 (tfile_thread_alive): Remove.
3643 (init_tfile_ops): Don't set field 'to_thread_alive' of
3644 tfile_ops.
3645
20d7f211
DE
36462013-05-23 Doug Evans <dje@google.com>
3647
3648 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3649
8658d16d
PA
36502013-05-23 Pedro Alves <palves@redhat.com>
3651
3652 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3653 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3654 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3655 Only define if HAVE_SOCKETS is defined.
3656 * configure.ac: Check for sys/socket.h.
3657 * config.in, configure: Regenerate.
3658
21aa081e
PA
36592013-05-23 Pedro Alves <palves@redhat.com>
3660
3661 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3662 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3663 printing uint32_t variables.
3664
c2d6af84
PA
36652013-05-23 Pedro Alves <palves@redhat.com>
3666
3667 * NEWS: Mention GDBserver range stepping support.
3668
c1e36e3e
PA
36692013-05-23 Yao Qi <yao@codesourcery.com>
3670 Pedro Alves <palves@redhat.com>
3671
3672 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3673 field.
3674 * infcmd.c (step_once, until_next_command): Enable range stepping.
3675 * infrun.c (displaced_step_prepare): Disable range stepping.
3676 (resume): Disable range stepping if stepping over a breakpoint or
3677 we have software watchpoints. If range stepping is enabled,
3678 assert the thread is in the stepping range.
3679 (clear_proceed_status_thread): Clear may_range_step.
3680 (handle_inferior_event): Disable range stepping as soon as we know
3681 the thread that hit the event. Re-enable it whenever we're going
3682 to step with a step range.
3683 * remote.c (struct vCont_action_support) <r>: New field.
3684 (use_range_stepping): New global.
3685 (remote_vcont_probe): Handle 'r' action.
3686 (append_resumption): Append an 'r' action if the thread may range
3687 step.
3688 (show_range_stepping): New function.
3689 (set_range_stepping): New function.
3690 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3691 'set range-stepping' and 'show range-stepping' commands.
3692 * NEWS: Mention range stepping, the new vCont;r action, and the
3693 new "set/show range-stepping" commands.
3694
d458bd84
PA
36952013-05-23 Yao Qi <yao@codesourcery.com>
3696 Pedro Alves <palves@redhat.com>
3697
3698 * remote.c (struct vCont_action_support): New struct.
3699 (struct remote_state) <support_vCont_t>: Remove field.
3700 <vCont_actions_support>: New field.
3701 (remote_vcont_probe, remote_stop_ns): Update.
3702
ce4c476a
PA
37032013-05-23 Yao Qi <yao@codesourcery.com>
3704 Pedro Alves <palves@redhat.com>
3705
3706 * gdbthread.h (pc_in_thread_step_range): New declaration.
3707 * thread.c (pc_in_thread_step_range): New function.
3708 * infrun.c (handle_inferior_event): Use it.
3709
ce70887a
JB
37102013-05-23 Joel Brobecker <brobecker@adacore.com>
3711
3712 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3713 of sprintf.
3714
55b87a52
KS
37152013-05-22 Keith Seitz <keiths@redhat.com>
3716
3717 * ada-lang.c (is_known_support_routine): Add explicit free of
3718 'func_name' from find_frame_funname.
3719 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3720 for func_name from find_frame_funname.
3721 * python/py-frame.c (frapy_name): Add explicit free of
3722 'name' from find_frame_funname.
3723 * stack.c (find_frame_funname): Add comment explaining that
3724 funcp must be freed by the caller.
3725 Return copy of symbol names instead of pointers.
3726 (print_frame): Add a cleanup for 'funname' from
3727 find_frame_funname.
3728 * stack.h (find_frame_funname): Remove "const" from
3729 'funname' parameter.
3730
5f2e6b00
TT
37312013-05-22 Tom Tromey <tromey@redhat.com>
3732
3733 PR c++/15401:
3734 * c-valprint.c (c_value_print): Use value_addr for
3735 references. Convert back to reference type with value_ref.
3736
d85c4847
EZ
37372013-05-22 Eli Zaretskii <eliz@gnu.org>
3738
3739 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3740 unloaded DLL, it will be done by handle_solib_event. See
3741 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3742 details.
3743
54eb231c
PM
37442013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3745
3746 * ui-out.c: Create typedef ui_out_level_p and define vector
3747 operations for that type.
3748 (struct ui_out): Use a vector instead of an array.
3749 (current_level): Return level from a vector.
3750 (push_level): Create a level in a vector.
3751 (pop_level): Delete a level in a vector.
3752 (ui_out_new): Create initial level zero level, and store in a
3753 vector.
3754 (ui_out_destroy): Add vector cleanup.
3755
ac90359c
PA
37562013-05-22 Pedro Alves <palves@redhat.com>
3757
3758 * python/python-internal.h (gdb_Py_DECREF): Tag with
3759 "ARI: editCase function".
3760
6dcc1893
PP
37612013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3762
3763 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3764
c8c735b9
PA
37652013-05-21 Pedro Alves <palves@redhat.com>
3766
3767 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3768 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3769 * python/py-utils.c (py_decref): Don't check for NULL before
3770 calling Py_DECREF.
3771
1915daeb
PA
37722013-05-21 Pedro Alves <palves@redhat.com>
3773
3774 * python/py-utils.c (py_decref): Remove extra braces.
3775 (gdb_pymodule_addobject): Remove extra braces.
3776 * python-internal.h (gdb_Py_DECREF): New static inline function.
3777 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3778
bd9673a4
PW
37792013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3780
3781 * breakpoints.c (detach_breakpoints): Do not
3782 detach breakpoints locations with loc_type bp_loc_other.
3783
ff6009d0
JK
37842013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3785
3786 Workaround Python 2.6.
3787 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3788 a block.
3789
3641da11
JK
37902013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3791
3792 Code cleanup: constification.
3793 * solib.c (solib_ops): Make return type and ops variable type const.
3794 (set_solib_ops): Make the new_ops parameter and ops variable const.
3795 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3796 (solib_add, solib_keep_data_in_core, clear_solib)
3797 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3798 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3799 const.
3800 * solib.h (set_solib_ops): Make the new_ops parameter const.
3801
776af39e
JB
38022013-05-21 Joel Brobecker <brobecker@adacore.com>
3803
3804 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3805 variable.
3806 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3807 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3808 (SYSTEM_GDBINIT_FILES): New variables.
3809 (all): Add stamp-system-gdbinit.
3810 (stamp-system-gdbinit): New rule.
3811 (clean-system-gdbinit, install-system-gdbinit)
3812 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3813 (install-only): Add dependency on install-system-gdbinit.
3814 (uninstall): Add dependency on uninstall-system-gdbinit.
3815 (clean): Add dependency on clean-system-gdbinit.
3816 * system-gdbinit/elinos.py: New file.
3817 * system-gdbinit/wrs-linux.py: New file.
3818
1509e573
JB
38192013-05-21 Joel Brobecker <brobecker@adacore.com>
3820
3821 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3822
c5867ab6
HZ
38232013-05-21 Hui Zhu <hui@codesourcery.com>
3824
3825 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3826 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3827 * mi/mi-cmd-break.c (ctype.h): New include.
3828 (gdb_obstack.h): New include.
3829 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3830 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3831 (mi_cmd_dprintf_insert): New.
3832 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3833 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3834
7d38e38f
TT
38352013-05-20 Tom Tromey <tromey@redhat.com>
3836
3837 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3838
97b77b39
TT
38392013-05-20 Tom Tromey <tromey@redhat.com>
3840
3841 * python/py-value.c (valpy_get_dynamic_type): Simplify
3842 dynamic_type assignment. Use Py_XINCREF.
3843
53e66479
TT
38442013-05-20 Tom Tromey <tromey@redhat.com>
3845
3846 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3847
dcf87832
TT
38482013-05-20 Tom Tromey <tromey@redhat.com>
3849
3850 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3851 (gdbpy_selected_frame): Move object-construction code
3852 out of TRY_CATCH.
3853
aa36459a
TT
38542013-05-20 Tom Tromey <tromey@redhat.com>
3855
3856 * python/py-arch.c (gdbpy_initialize_arch): Use
3857 gdb_pymodule_addobject.
3858 * python/py-block.c (gdbpy_initialize_blocks): Use
3859 gdb_pymodule_addobject.
3860 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3861 gdb_pymodule_addobject.
3862 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3863 gdb_pymodule_addobject.
3864 * python/py-event.c (gdbpy_initialize_event_generic): Use
3865 gdb_pymodule_addobject.
3866 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3867 gdb_pymodule_addobject.
3868 * python/py-evts.c (add_new_registry): Use
3869 gdb_pymodule_addobject.
3870 (gdbpy_initialize_py_events): Likewise.
3871 * python/py-finishbreakpoint.c
3872 (gdbpy_initialize_finishbreakpoints): Use
3873 gdb_pymodule_addobject.
3874 * python/py-frame.c (gdbpy_initialize_frames): Use
3875 gdb_pymodule_addobject.
3876 * python/py-function.c (gdbpy_initialize_functions): Use
3877 gdb_pymodule_addobject.
3878 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3879 gdb_pymodule_addobject.
3880 * python/py-infthread.c (gdbpy_initialize_thread): Use
3881 gdb_pymodule_addobject.
3882 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3883 gdb_pymodule_addobject.
3884 * python/py-param.c (gdbpy_initialize_parameters): Use
3885 gdb_pymodule_addobject.
3886 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3887 gdb_pymodule_addobject.
3888 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3889 gdb_pymodule_addobject.
3890 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3891 gdb_pymodule_addobject.
3892 * python/py-type.c (gdbpy_initialize_types): Use
3893 gdb_pymodule_addobject.
3894 * python/py-utils.c (gdb_pymodule_addobject): New function.
3895 * python/py-value.c (gdbpy_initialize_values): Use
3896 gdb_pymodule_addobject.
3897 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3898 * python/python.c (_initialize_python): Use
3899 gdb_pymodule_addobject.
3900
3d4a3c3e
TT
39012013-05-20 Tom Tromey <tromey@redhat.com>
3902
3903 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3904 * python/py-param.c (get_set_value, get_show_value): Use
3905 explicit decrefs.
3906 * python/python.c (start_type_printers, apply_type_printers):
3907 Use explicit decrefs.
3908
72ff8829
TT
39092013-05-20 Tom Tromey <tromey@redhat.com>
3910
3911 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3912 incref the module.
3913
02146ba5
TT
39142013-05-20 Tom Tromey <tromey@redhat.com>
3915
3916 * python/python.c (gdbpy_run_events): Decref the result
3917 of PyObject_CallObject.
3918
33ee792f
TT
39192013-05-20 Tom Tromey <tromey@redhat.com>
3920
3921 * python/py-symtab.c (set_sal): Use
3922 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3923 (symtab_and_line_to_sal_object): Update.
3924
fcb49fc8
TT
39252013-05-20 Tom Tromey <tromey@redhat.com>
3926
3927 * python/py-param.c (compute_enum_values): Decref 'item'.
3928
0646da15
TT
39292013-05-20 Tom Tromey <tromey@redhat.com>
3930
3931 * mi/mi-main.c: Include python-internal.h.
3932 (mi_cmd_list_features): Check gdb_python_initialized.
3933 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3934 (python_inferior_exit, python_new_objfile, add_thread_object)
3935 (delete_thread_object, py_free_inferior): Check
3936 gdb_python_initialized.
3937 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3938 gdb_python_initialized.
3939 * python/py-type.c (save_objfile_types): Check
3940 gdb_python_initialized.
3941 * python/python-internal.h (gdb_python_initialized): Declare.
3942 * python/python.c (ensure_python_env): Throw exception if
3943 Python not initialized.
3944 (before_prompt_hook, source_python_script_for_objfile)
3945 (start_type_printers, apply_type_printers,
3946 free_type_printers): Check gdb_python_initialized.
3947 * varobj.c (varobj_get_display_hint)
3948 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3949 (install_new_value_visualizer, varobj_set_visualizer)
3950 (value_get_print_value): Check gdb_python_initialized.
3951
999633ed
TT
39522013-05-20 Tom Tromey <tromey@redhat.com>
3953
3954 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3955 Check errors.
3956 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3957 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3958 Check errors.
3959 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3960 Check errors.
3961 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3962 Check errors.
3963 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3964 Check errors.
3965 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3966 init function to return 'int'.
3967 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3968 Return 'int'. Check errors.
3969 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3970 Check errors.
3971 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3972 Return 'int'. Check errors.
3973 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3974 Check errors.
3975 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3976 Check errors.
3977 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3978 Check errors.
3979 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3980 Check errors.
3981 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3982 Check errors.
3983 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3984 Check errors.
3985 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3986 Check errors.
3987 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3988 Check errors.
3989 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3990 Check errors.
3991 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3992 Check errors.
3993 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3994 Check errors.
3995 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3996 Check errors.
3997 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3998 Check errors.
3999 * python/python-internal.h (gdbpy_initialize_auto_load,
4000 gdbpy_initialize_values, gdbpy_initialize_frames,
4001 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4002 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4003 gdbpy_initialize_blocks, gdbpy_initialize_types,
4004 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4005 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4006 gdbpy_initialize_finishbreakpoints,
4007 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4008 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4009 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4010 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4011 gdbpy_initialize_signal_event,
4012 gdbpy_initialize_breakpoint_event,
4013 gdbpy_initialize_continue_event,
4014 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4015 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4016 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4017 * python/python.c (gdb_python_initialized): New global.
4018 (gdbpy_initialize_events): Return 'int'. Check errors.
4019 (_initialize_python): Check errors. Set
4020 gdb_python_initialized.
4021
18868860
TT
40222013-05-20 Tom Tromey <tromey@redhat.com>
4023
4024 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4025 Decref the reslut of PyObject_CallMethod.
4026
9f4ff0c2
TT
40272013-05-20 Tom Tromey <tromey@redhat.com>
4028
4029 * python/py-event.c (gdbpy_initialize_event_generic): Return
4030 early if PyType_Ready fails.
4031
0d3a2e8a
TT
40322013-05-20 Tom Tromey <tromey@redhat.com>
4033
4034 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4035 as 'default' in the switch.
4036
b86af38a
TT
40372013-05-20 Tom Tromey <tromey@redhat.com>
4038
4039 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4040 get_addr_from_python calls out of TRY_CATCH.
4041 (infpy_write_memory, infpy_search_memory): Likewise.
4042 * python/py-utils.c (get_addr_from_python): Return negative
4043 value on error. Use TRY_CATCH.
4044 * python/python-internal.h (get_addr_from_python): Use
4045 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4046
c127ec58
TT
40472013-05-20 Tom Tromey <tromey@redhat.com>
4048
4049 * python/py-event.c (evpy_emit_event): Decref the
4050 result of PyObject_CallFunctionObjArgs.
4051
ba327838
TT
40522013-05-20 Tom Tromey <tromey@redhat.com>
4053
4054 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4055 Correctly decref.
4056
d8191432
TT
40572013-05-20 Tom Tromey <tromey@redhat.com>
4058
4059 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4060
5d153bd1
TT
40612013-05-20 Tom Tromey <tromey@redhat.com>
4062
4063 * python/py-event.h (gdbpy_initialize_event_generic): Use
4064 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4065 * python/py-evts.c (add_new_registry): Use
4066 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4067 * python/python-internal.h
4068 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4069
56cc411c
TT
40702013-05-20 Tom Tromey <tromey@redhat.com>
4071
4072 * python/py-arch.c (archpy_disassemble): Update.
4073 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4074 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4075 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4076 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4077 macro.
4078 (GDB_PY_HANDLE_EXCEPTION): Update.
4079 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4080
8919e174
TT
40812013-05-20 Tom Tromey <tromey@redhat.com>
4082
4083 * python/python-internal.h (events_object_type): Remove.
4084
9b08f225
TT
40852013-05-20 Tom Tromey <tromey@redhat.com>
4086
f5aee5ee
AM
4087 * python/py-event.h (evpy_emit_event): Use
4088 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4089 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4090 New macro.
9b08f225 4091
f04010ff
TT
40922013-05-20 Tom Tromey <tromey@redhat.com>
4093
4094 * py-evtregistry.c (create_event_object): Decref
4095 eventregistry_object if PyList_New fails.
4096
3919fd96
TT
40972013-05-20 Tom Tromey <tromey@redhat.com>
4098
4099 * py-cmd.c (gdbpy_string_to_argv): Check result of
4100 PyList_New.
4101
0430e8cb
TT
41022013-05-20 Tom Tromey <tromey@redhat.com>
4103
4104 * python/python.c (before_prompt_hook): Add cleanup to
4105 decref 'hook'.
4106
764123e4
TT
41072013-05-20 Tom Tromey <tromey@redhat.com>
4108
4109 * python/py-function.c (fnpy_init): Decref result of
4110 PyObject_GetAttrString.
4111
634c58be
TT
41122013-05-20 Tom Tromey <tromey@redhat.com>
4113
4114 * python/py-threadevent.c (get_event_thread): Use
4115 CPYCHECKER_RETURNS_BORROWED_REF.
4116 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4117 New define.
4118 (pspace_to_pspace_object, objfile_to_objfile_object)
4119 (find_thread_object): Use it.
4120
62eec1a5
TT
41212013-05-20 Tom Tromey <tromey@redhat.com>
4122
4123 * python/py-arch.c (arch_object_type): Use
4124 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4125 * python/py-block.c (block_syms_iterator_object_type):
4126 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4127 * python/py-bpevent.c (breakpoint_event_object_type):
4128 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4129 * python/py-cmd.c (cmdpy_object_type): Use
4130 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4131 * python/py-continueevent.c (continue_event_object_type):
4132 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4133 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4134 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4135 * python/py-events.h (thread_event_object_type):
4136 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4137 * python/py-evtregistry.c (eventregistry_object_type): Use
4138 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4139 * python/py-exitedevent.c (exited_event_object_type):
4140 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4141 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4142 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4143 * python/py-function.c (fnpy_object_type): Use
4144 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4145 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4146 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4147 * python/py-infthread.c (thread_object_type): Use
4148 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4149 * python/py-lazy-string.c (lazy_string_object_type):
4150 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4151 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4152 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4153 * python/py-objfile.c (objfile_object_type): Use
4154 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4155 * python/py-param.c (parmpy_object_type):
4156 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4157 * python/py-progspace.c (pspace_object_type):
4158 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4159 * python/py-signalevent.c (signal_event_object_type):
4160 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4161 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4162 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4163 * python/py-type.c (type_object_type, field_object_type)
4164 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4165 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4166 define.
4167 (value_object_type, block_object_type, symbol_object_type)
4168 (event_object_type, stop_event_object_type, breakpoint_object_type)
4169 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4170
81ea8796
AT
41712013-05-20 Andreas Tobler <andreas@fgznet.ch>
4172
4173 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4174 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4175
a2ce51a0
DE
41762013-05-20 Doug Evans <dje@google.com>
4177
4178 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4179 For Fission.
4180 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4181 reading_dwo_directly.
4182 (struct signatured_type): New member dwo_unit.
4183 (struct die_reader_specs): New member comp_dir.
4184 (create_signatured_type_table_from_index): Use malloc for
4185 all_type_units instead of objfile's obstack.
4186 (create_all_type_units): Ditto.
4187 (fill_in_sig_entry_from_dwo_entry): New function.
4188 (add_type_unit): New function.
4189 (lookup_dwo_signatured_type): New function.
4190 (lookup_dwp_signatured_type): New function.
4191 (lookup_signatured_type): New arg cu. All callers updated.
4192 (init_cu_die_reader): Initialize comp_dir.
4193 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4194 Change assert of matching type signatures to call error on mismatch.
4195 (lookup_dwo_unit): Add assert.
4196 (init_tu_and_read_dwo_dies): New function.
4197 (init_cutu_and_read_dies): Call it.
4198 (build_type_unit_groups): Handle case of no type unit groups created.
4199 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4200 (lookup_dwo_cutu): Tweak complaint.
4201 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4202 (dwarf2_per_objfile_free): Free all_type_units.
4203
a25cd31f
JB
42042013-05-20 Joel Brobecker <brobecker@adacore.com>
4205
4206 * windows-nat.c (handle_unload_dll): Add missing empty line.
4207
4d804846
JB
42082013-05-20 Joel Brobecker <brobecker@adacore.com>
4209
4210 * dwarf2read.c (prototyped_function_p): New function.
4211 (read_subroutine_type): Use it.
4212
1c432e72
JB
42132013-05-20 Joel Brobecker <brobecker@adacore.com>
4214
4215 * rs6000-aix-tdep.c: De-indent some example code provided
4216 as a comment.
4217
4feebbdd
EBM
42182013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4219
4220 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4221 region is ok for a hardware watchpoint using the new ptrace interface
4222 on Power servers.
4223
7d0c9981
DE
42242013-05-17 Doug Evans <dje@google.com>
4225
4226 * NEWS: Mention new maintenance commands check-symtabs, and
4227 expand-symtabs, and renamed check-psymtabs.
4228 * psymtab.c (maintenance_check_psymtabs): Renamed from
4229 maintenance_check_symtabs. Only process already-expanded symbol
4230 tables.
4231 (_initialize_psymtab): Update.
4232 * symmisc.c (maintenance_check_symtabs): New function.
4233 (maintenance_expand_name_matcher): New function
4234 (maintenance_expand_file_matcher): New function
4235 (maintenance_expand_symtabs): New function.
4236 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4237 commands.
4238
6cbc7c3d
TT
42392013-05-17 Tom Tromey <tromey@redhat.com>
4240
4241 * python/py-inferior.c (infpy_read_memory): Don't call
4242 PyErr_SetString if PyObject_New fails.
4243 * python/py-frame.c (frame_info_to_frame_object): Don't call
4244 PyErr_SetString if PyObject_New fails.
4245
a48b32c0
L
42462013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4247
4248 * acinclude.m4: Add check for dlopen in libdl.
4249 * configure.ac: Ditto.
4250 * configure: Regenerate.
4251
3de661e6
PM
42522013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4253
4254 * frame.c (frame_stash): Convert to htab.
4255 (frame_addr_hash): New function.
4256 (frame_addr_hash_eq): New function.
4257 (frame_stash_create): Convert function to create
4258 a hash table.
4259 (frame_stash_add): Convert function to add an entry to a hash
4260 table.
4261 (frame_stash_find): Convert function to search the hash table.
4262 (frame_stash_invalidate): Convert function to empty the hash
4263 table.
4264 (get_frame_id): Only add to stash if a frame_id is created.
4265 (_initialize_frame): Call frame_stash_create.
4266
bb4168a9 42672013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
4268
4269 * configure.ac: Ensure MIG is available when building for GNU Hurd
4270 hosts.
4271 * configure: Regenerate.
4272
d1be3247
JB
42732013-05-16 Joel Brobecker <brobecker@adacore.com>
4274
4275 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4276
b8fea896
JB
42772013-05-16 Joel Brobecker <brobecker@adacore.com>
4278
4279 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4280 all cleanups are done before returning from this function.
4281
af880d85
JB
42822013-05-15 Joel Brobecker <brobecker@adacore.com>
4283
4284 * utils.h: #include "exceptions.h".
4285 (enum errors): Remove partial declaration.
4286
356a5233
JB
42872013-05-15 Joel Brobecker <brobecker@adacore.com>
4288
4289 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4290 * gdbarch.h, gdbarch.c: Regenerate.
4291 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4292 handling.
4293
4294 * rs6000-aix-tdep.h: New file.
4295 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4296 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4297 "xml-utils.h".
4298 (struct field_info, struct ld_info_desc): New types.
4299 (ld_info32_desc, ld_info64_desc): New static constants.
4300 (struct ld_info): New type.
4301 (rs6000_aix_extract_ld_info): New function.
4302 (rs6000_aix_shared_library_to_xml): Likewise.
4303 (rs6000_aix_ld_info_to_xml): Likewise.
4304 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4305 (rs6000_aix_init_osabi): Add call to
4306 set_gdbarch_core_xfer_shared_libraries_aix.
4307 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4308 Remove "xml-utils.h" include.
4309 (LdInfo): Delete typedef.
4310 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4311 Delete macros.
4312 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4313 Adjust code accordingly.
4314 (rs6000_core_ldinfo): Delete, folded into
4315 rs6000_aix_core_xfer_shared_libraries_aix.
4316 (rs6000_xfer_shared_library): Delete.
4317 (rs6000_xfer_shared_libraries): Reimplement.
4318
742ce053
MM
43192013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4320
4321 * record.c (record_goto_cmdlist): New.
4322 (cmd_record_goto): Split into this ...
4323 (cmd_record_goto_begin): ... this
4324 (cmd_record_goto_end): ... and this.
4325 (_initialize_record): Change "record goto" to prefix command.
4326 Add commands for "record goto begin" and "record goto end".
4327 Add an alias for "record goto start" to "record goto begin".
4328
e93ba630
JK
43292013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4330
4331 * linespec.c (convert_linespec_to_sals): New comment for
4332 SOURCE_FILENAME assignment.
4333
5821aace
JK
43342013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4335
4336 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4337 internal_warning.
4338
a1b8c4cc
TT
43392013-05-14 Tom Tromey <tromey@redhat.com>
4340
4341 * eval.c (parse_and_eval_long): Make 'exp' const.
4342 * value.h (parse_and_eval_long): Update.
4343
23b3a2c3
TT
43442013-05-14 Tom Tromey <tromey@redhat.com>
4345
4346 * ui-file.c (gdb_fopen): Make arguments const.
4347 * ui-file.h (gdb_fopen): Make arguments const.
4348
ca623f82
TT
43492013-05-14 Tom Tromey <tromey@redhat.com>
4350
4351 * remote.c (remote_set_trace_notes): Make arguments const.
4352 * target.c (update_current_target): Update cast.
4353 * target.h (to_set_trace_notes): Make arguments const.
4354
503ebb2c
TT
43552013-05-14 Tom Tromey <tromey@redhat.com>
4356
4357 * go32-nat.c (go32_terminal_info): Make 'args' const.
4358 * inferior.h (child_terminal_info): Update.
4359 * inflow.c (child_terminal_info): Make 'args' const.
4360 * target.c (default_terminal_info): Make 'args' const.
4361 (debug_to_terminal_save_ours): Likewise.
4362 * target.h (struct target_ops) <to_terminal_info>: Make argument
4363 const.
4364
85e1311a
TT
43652013-05-13 Tom Tromey <tromey@redhat.com>
4366
4367 * gcore.c (create_gcore_bfd): Make 'filename' const.
4368 * gcore.h (create_gcore_bfd): Make 'filename' const.
4369 * record-full.c (record_full_save): Make 'recfilename' const.
4370 * target.c (target_save_record): Make 'filename' const.
4371 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4372 const.
4373 (target_save_record): Likewise.
4374
d62bfeaf
TT
43752013-05-13 Tom Tromey <tromey@redhat.com>
4376
f5aee5ee 4377 PR gdb/15338:
d62bfeaf
TT
4378 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4379 ranges section has been read.
4380
ac1ca910
TT
43812013-05-13 Tom Tromey <tromey@redhat.com>
4382
4383 PR exp/15364:
4384 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4385 STRUCTOP_PTR>: Return a not_lval value for
4386 EVAL_AVOID_SIDE_EFFECTS.
4387 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4388 for EVAL_AVOID_SIDE_EFFECTS.
4389
36d1c68c
JB
43902013-05-13 Joel Brobecker <brobecker@adacore.com>
4391
4392 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4393 floating point registers to register type before storing
4394 value.
4395 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4396 Likewise.
4397
21ff4686
TT
43982013-05-10 Joel Brobecker <brobecker@adacore.com>
4399 Tom Tromey <tromey@redhat.com>
4400
4401 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4402 New functions.
4403 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4404 Declare.
4405 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4406 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4407 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4408 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4409
d3685d60
TT
44102013-05-10 Freddie Chopin <freddie_chopin@op.pl>
4411 Tom Tromey <tromey@redhat.com>
4412
4413 PR build/15414:
4414 * configure: Rebuild.
4415 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4416 with -Wno-format.
4417
eb9fe518
PA
44182013-05-10 Pedro Alves <palves@redhat.com>
4419
4420 * remote.c (_initialize_remote): Fix spelling of
4421 qXfer:traceframe-info:read packet in packet config command.
4422
9779ab84
PA
44232013-05-10 David Taylor <dtaylor@emc.com>
4424
4425 PR remote/15455
4426
4427 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4428 "QTro" at start of packet.
4429
060cfbef
JB
44302013-05-10 Joel Brobecker <brobecker@adacore.com>
4431
4432 * solib-aix.c (solib_aix_relocate_section_addresses):
4433 For the .bss section action, apply the same offset as
4434 the .data section.
4435
ab1c4e88
JB
44362013-05-10 Joel Brobecker <brobecker@adacore.com>
4437
4438 * solib-aix.c (solib_aix_relocate_section_addresses):
4439 Remove FIXME comment.
4440
c1357578
JB
44412013-05-10 Joel Brobecker <brobecker@adacore.com>
4442
4443 PR tdep/15420:
4444 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4445 New functions, directly copied from sparc-sol-thread.c.
4446 * sparc-sol-thread.c: Delete.
4447 * configure.ac: Remove code handling sparc-solaris-thread.c.
4448 * configure: Regenerate.
4449
1e611234
PM
44502013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4451
4452 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4453 filter logic.
4454 (backtrace_command): Add "no-filters" option parsing.
4455 (_initialize_stack): Alter help to reflect "no-filters" option.
4456 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4457 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4458 (py-frame.o): Add target
4459 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4460 filter files.
4461 * python/python.h: Add new frame filter constants, and flag enum.
4462 (apply_frame_filter): Add definition.
4463 * python/python.c (apply_frame_filter): New non-Python
4464 enabled function.
4465 * python/py-utils.c (py_xdecref): New function.
4466 (make_cleanup_py_xdecref): Ditto.
4467 * python/py-objfile.c: Declare frame_filters dictionary.
4468 (objfpy_dealloc): Add frame_filters dealloc.
4469 (objfpy_new): Initialize frame_filters attribute.
4470 (objfile_to_objfile_object): Ditto.
4471 (objfpy_get_frame_filters): New function.
4472 (objfpy_set_frame_filters): New function.
4473 * python/py-progspace.c: Declare frame_filters dictionary.
4474 (pspy_dealloc): Add frame_filters dealloc.
4475 (pspy_new): Initialize frame_filters attribute.
4476 (pspacee_to_pspace_object): Ditto.
4477 (pspy_get_frame_filters): New function.
4478 (pspy_set_frame_filters): New function.
4479 * python/py-framefilter.c: New file.
4480 * python/lib/gdb/command/frame_filters.py: New file.
4481 * python/lib/gdb/frames.py: New file.
4482 * python/lib/gdb/__init__.py: Initialize global frame_filters
4483 dictionary
4484 * python/lib/gdb/FrameDecorator.py: New file.
4485 * python/lib/gdb/FrameIterator.py: New file.
4486 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4487 * mi/mi-cmds.h: Declare.
4488 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4489 --no-frame-filter logic, and Python frame filter logic.
4490 (stack_enable_frame_filters): New function.
4491 (parse_no_frame_option): Ditto.
4492 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4493 filter logic.
4494 (mi_cmd_stack_list_locals): Ditto.
4495 (mi_cmd_stack_list_args): Ditto.
4496 (mi_cmd_stack_list_variables): Ditto.
4497 * NEWS: Add frame filter note.
4498
2cb9c859
DE
44992013-05-09 Doug Evans <dje@google.com>
4500
6bf667bb
DE
4501 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4502 All callers updated.
4503 (syms_from_objfile): Ditto. Make static.
4504 (symbol_file_add_with_addrs): Renamed from
4505 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4506 num_offsets. All callers updated.
4507 * symfile.h (syms_from_objfile): Delete.
4508
2cb9c859
DE
4509 * symfile.c (decrement_reading_symtab): Add assert.
4510 (increment_reading_symtab): Ditto.
4511
40aea477
JB
45122013-05-09 Joel Brobecker <brobecker@adacore.com>
4513
4514 * source.c (forward_search_command): Replace call to getc
4515 by call to fgetc.
4516 (reverse_search_command): Likewise.
4517
680d1742
DE
45182013-05-08 Doug Evans <dje@google.com>
4519
4520 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4521 matching test.
4522
17e760ae
JB
45232013-05-08 Joel Brobecker <brobecker@adacore.com>
4524
4525 * sol-thread.c (info_cb): Factorize the code a little.
4526
c0f5f490
JB
45272013-05-08 Joel Brobecker <brobecker@adacore.com>
4528
4529 * sol-thread.c (info_cb): Rework the output of the "maintenance
4530 info sol-threads" command a bit.
4531
5d74e061
JB
45322013-05-08 Joel Brobecker <brobecker@adacore.com>
4533
4534 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4535 Replace ti.ti_startfunc by ti.ti_pc.
4536
814a3ff7
JB
45372013-05-08 Joel Brobecker <brobecker@adacore.com>
4538
4539 * solib-aix.c (solib_aix_free_library_list): New function
4540 for the case where HAVE_LIBEXPAT is not defined.
4541
58ce7251
SDJ
45422013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4543
4544 PR breakpoints/15413:
4545 * breakpoint.c (condition_completer): Simplify the code to
4546 disconsider multiple locations of breakpoints when completing the
4547 "condition" command.
4548
be8b1ea6
PM
45492013-05-07 Pierre Muller <muller@sourceware.org>
4550
4551 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4552 instead of <sys/wait.h>.
4553
1e52bda6
PM
45542013-05-07 Pierre Muller <muller@sourceware.org>
4555
4556 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4557 trailing new line from warning message.
4558
27fd0c6b
PM
45592013-05-07 Pierre Muller <muller@sourceware.org>
4560
4561 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4562 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4563
e228ac87
JB
45642013-05-07 Joel Brobecker <brobecker@adacore.com>
4565
4566 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4567 error message (ARI fix).
4568
45692013-05-07 Joel Brobecker <brobecker@adacore.com>
4570
4571 * features/library-list-aix.dtd: Replace library-list by
4572 library-list-aix.
4573 * rs6000-nat.c: Replace library-list by library-list-aix
4574 throughout.
4575 * solib-aix.c: Likewise.
4576
45772013-05-07 Joel Brobecker <brobecker@adacore.com>
4578
4579 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4580 Renames TARGET_OBJECT_AIX_LIBRARIES.
4581 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4582 TARGET_OBJECT_LIBRARIES_AIX throughout.
4583 * solib-aix.c: Likwise.
4584
26a4dda9
YQ
45852013-05-07 Yao Qi <yao@codesourcery.com>
4586
4587 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4588 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4589
3582629f
YQ
45902013-05-07 Yao Qi <yao@codesourcery.com>
4591
4592 * solib-dsbt.c (enable_break): Declare.
4593 (dsbt_current_sos): Remove call to enable_break2.
4594 (enable_break2): Rename to enable_break. Set solib breakpoint
4595 on '_dl_debug_state'.
4596 (enable_break): Remove.
4597
aacbb8a5
LM
45982013-05-07 Luis Machado <lgustavo@codesourcery.com>
4599
4600 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4601 debug state prior to replicating existing hardware watchpoints or
4602 breakpoints.
4603
0c013353
JK
46042013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4605
4606 * gcore.c (gcore_create_callback): Ignore sections with
4607 separate_debug_objfile_backlink != NULL.
4608
a1217d97
SL
46092013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4610 Andrew Jenner <andrew@codesourcery.com>
4611 Chung-Lin Tang <cltang@codesourcery.com>
4612 Julian Brown <julian@codesourcery.com>
4613
4614 Based on the nios2-elf port from Altera Corporation.
4615
4616 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4617 nios2-linux-tdep.o.
4618 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4619 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4620 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4621 * nios2-tdep.h: New.
4622 * nios2-tdep.c: New.
4623 * nios2-linux-tdep.c: New.
4624 * features/Makefile (WHICH): Add nios2-linux.
4625 (nios2-linux-expedite): Set.
4626 * features/nios2-cpu.xml: New.
4627 * features/nios2.xml: New.
4628 * features/nios2-linux.xml: New.
4629 * features/nios2.c: New (autogenerated).
4630 * features/nios2-linux.c: New (autogenerated).
4631 * regformats/nios2-linux.dat: New (autogenerated).
4632 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4633 and commands.
4634
0892cb63
DE
46352013-05-06 Doug Evans <dje@google.com>
4636
3b7bacac
DE
4637 * symfile.c: Whitespace cleanup.
4638
0892cb63
DE
4639 * solist.h (struct target_so_ops): New member clear_so.
4640 * solib-svr4.c (svr4_clear_so): New function.
4641 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4642 * solib.c (clear_so): Renamed from free_so_symbols.
4643 All callers updated. Call target clear_so if it exists.
4644
40501e00
TT
46452013-05-06 Tom Tromey <tromey@redhat.com>
4646
4647 * ada-lang.c (ada_value_primitive_packed_val): Don't
4648 call value_incref.
4649 * value.c (set_value_parent): Incref the new parent and decref
4650 the old parent.
4651 (value_copy, value_primitive_field): Use set_value_parent.
4652
b6807d98
TT
46532013-05-06 Tom Tromey <tromey@redhat.com>
4654
4655 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4656 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4657 if needed.
4658 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4659 * dwarf2read.c (write_constant_as_bytes)
4660 (dwarf2_fetch_constant_bytes): New functions.
4661
3aef2284
TT
46622013-05-06 Tom Tromey <tromey@redhat.com>
4663
4664 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4665 parameters.
4666 (dwarf2_const_value_attr): Update.
4667
66f65e2b
TT
46682013-05-06 Tom Tromey <tromey@redhat.com>
4669
4670 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4671 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4672 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4673 Remove declaration.
4674
7919a973
TT
46752013-05-06 Tom Tromey <tromey@redhat.com>
4676
4677 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4678 objfile's obstack.
4679
a7bfba49
DE
46802013-05-06 Doug Evans <dje@google.com>
4681
3189cb12
DE
4682 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4683 * stabsread.h (process_one_symbol): Update declaration.
4684 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4685 * elfread.c (elf_symfile_relocate_probe): Ditto.
4686 * psymtab.c (relocate_psymtabs): Ditto.
4687 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4688 (objfile_relocate): Ditto.
4689 * objfiles.h (objfile_relocate): Update declaration.
4690 * symfile.c (relative_addr_info_to_section_offsets): Constify
4691 addrs parameter.
4692 (default_symfile_offsets): Ditto.
4693 (syms_from_objfile_1): Constify offsets parameter.
4694 (syms_from_objfile): Ditto.
4695 (symbol_file_add_with_addrs_or_offsets): Ditto.
4696 (symfile_map_offsets_to_segments): Constify data parameter.
4697 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4698 delta parameters of member relocate.
4699 (struct sym_probe_fns): Constify new_offsets,
4700 delta parameters of member sym_relocate_probe.
4701 (struct sym_fns): Constify section_addr_info parameter of member
4702 sym_offsets.
4703 (relative_addr_info_to_section_offsets): Update declaration.
4704 (default_symfile_offsets): Ditto.
4705 (syms_from_objfile): Ditto.
4706 (symfile_map_offsets_to_segments): Ditto.
4707
a7bfba49
DE
4708 * symfile.c (syms_from_objfile_1): Use correct section count when
4709 objfile->sf == NULL.
4710
5f8e0b8f
MF
47112013-05-06 Mike Frysinger <vapier@gentoo.org>
4712
4713 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4714
ea52d893
DE
47152013-05-06 Doug Evans <dje@google.com>
4716
4717 * psympriv.h (struct partial_symtab): Augment comment for member
4718 section_offsets.
4719
4d1eb6b4
JB
47202013-05-06 Joel Brobecker <brobecker@adacore.com>
4721
4722 Reimplement shared library support on ppc-aix...
4723 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4724 * features/library-list-aix.dtd: New file.
4725 * solib-aix.h, solib-aix.c: New file.
4726 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4727 (rs6000_find_toc_address_hook): Delete.
4728 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4729 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4730 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4731 "xml-utils.h".
4732 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4733 (vmap_symtab, fixup_breakpoints): Delete.
4734 (rs6000_xfer_shared_libraries): New function.
4735 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4736 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4737 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4738 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4739 (rs6000_xfer_shared_library): New function.
4740 (find_toc_address): Delete.
4741 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4742 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4743 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4744 before creating minimal symbol. Adjust function description
4745 accordingly.
4746 (scan_xcoff_symtab): Replace call to
4747 prim_record_minimal_symbol_and_info by call to
4748 record_minimal_symbol.
4749 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4750 around default_symfile_offsets.
4751 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4752 powerpc-aix targets.
4753 * config/rs6000/nm-rs6000.h: Delete.
4754 * config/powerpc/aix.mh (NAT_FILE): Delete.
4755 (NATDEPFILES): Remove xcoffsolib.o.
4756 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4757 (ALL_TARGET_OBS): Add solib-aix.o.
4758 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4759 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4760 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4761 * xcoffsolib.h, xcoffsolib.c: Delete.
4762
4763 * solib.c (reload_shared_libraries): Remove reference to
4764 SOLIB_CREATE_INFERIOR_HOOK.
4765 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4766 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4767 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4768 comment.
4769 * corelow.c (deprecated_core_resize_section_table): Delete.
4770 * exec.c: Remove include of xcoffsolib.h".
4771 (map_vmap, vmap): Delete.
4772 (exec_close_1): Remove references to vmap.
4773 (exec_file_attach): Remove vmap handling code, and reference
4774 to DEPRECATED_IBM6000_TARGET.
4775 (bfdsec_to_vmap): Delete.
4776 (exec_files_info): Remove block of code handling VMAP.
4777 * infcmd.c (post_create_inferior): Remove reference to
4778 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4779 * infrun.c (follow_exec): Remove reference to
4780 SOLIB_CREATE_INFERIOR_HOOK.
4781 * stack.c (print_frame): Remove reference to PC_SOLIB.
4782 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4783 (dsbt_relocate_main_executable): Likewise.
4784 * solib-frv.c (frv_current_sos): Likewise.
4785
0c4f667c
JB
47862013-05-06 Joel Brobecker <brobecker@adacore.com>
4787
4788 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4789 to target_write_memory and target_read_memory.
4790
726ce67c
JB
47912013-05-06 Joel Brobecker <brobecker@adacore.com>
4792
4793 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4794 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4795
c8c9911f
JB
47962013-05-06 Joel Brobecker <brobecker@adacore.com>
4797
4798 * darwin-nat.c: Replace all "%x" instances in format strings
4799 into "0x%x" throughout.
4800
fda184b6
JB
48012013-05-06 Joel Brobecker <brobecker@adacore.com>
4802
4803 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4804 gdb_assert by call to MACH_CHECK_ERROR.
4805 (darwin_attach_pid): Raise an error rather than a failed
4806 assertion when various system calls failed. Report a warning
4807 instead of raising a failed assertion when PREV_NOT is not NULL
4808 after call to mach_port_request_notification.
4809 (darwin_ptrace_me): Raise an error rather than a failed
4810 assertion when read returns nonzero.
4811
d1d69afb
JB
48122013-05-06 Joel Brobecker <brobecker@adacore.com>
4813
4814 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4815
dc90b24d
JK
48162013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4817
4818 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4819
faab9922
JK
48202013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4821
4822 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4823 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4824 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4825 a stale cleanup. Fix double free of NAME.
4826
e0ea48a0
EZ
48272013-05-04 Eli Zaretskii <eliz@gnu.org>
4828
4829 * windows-nat.c (windows_delete_thread): Accept an additional
4830 argument, the thread's exit code, and announce thread death when
4831 print_thread_events is non-zero and we are deleting a thread that
4832 is not the main thread.
4833 (get_windows_debug_event): Pass thread exit code to
4834 windows_delete_thread.
4835
83b2706a
KB
48362013-05-03 Kevin Buettner <kevinb@redhat.com>
4837
4838 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4839 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4840 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4841 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4842 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4843 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4844 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4845 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4846 (gdbarch_tdep): New struct.
4847 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4848 E_NUM_REGS.
4849 (v850e3v5_register_name): New function.
4850 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4851 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4852 code handling the struct return conventions for the RH850 ABI.
4853 Update all callers.
4854 (v850_eight_byte_align_p): New function.
4855 (v850_push_call_dummy): Push structs by value, not by reference
4856 for the RH850 ABI. Add support for eight byte alignment.
4857 (v850_dbtrap_breakpoint_from_pc): New function.
4858 (v850_gdbarch_init): Add ABI detection code. Register
4859 v850e3v5_register_name for the v850e3v5 architecture. Set the
4860 number of registers for v850e3v5. Register
4861 v850_dbtrap_breakpoint_from_pc as appropriate.
4862 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4863
d445b2f6
DE
48642013-05-03 Doug Evans <dje@google.com>
4865
4866 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4867 of bfd_count_sections.
4868 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4869 * symfile.c (default_symfile_offsets): Ditto.
4870 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4871 one entry, not bfd_count_sections entries.
4872
b3ce41ea
KB
48732013-05-03 Kevin Buettner <kevinb@redhat.com>
4874
4875 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4876 `save' and `restore' register groups. Don't include SPL
4877 or SPH in these groups.
4878 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4879 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4880 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4881 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4882 dwarf2_append_unwinders().
4883
96f7d3f1
PW
48842013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4885
4886 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4887 ignore SIGINT and SIGTRAP in case these internal signals are
4888 caught explicitely.
4889
b9dd1947
JB
48902013-05-01 Joel Brobecker <brobecker@adacore.com>
4891
4892 * darwin-nat.c (darwin_read_write_inferior): Change types
4893 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4894 of copy_count to "mach_msg_type_number_t".
4895 (darwin_read_dyld_info): Change type of parameter
4896 rdaddr to "gdb_byte *".
4897
4ca18a63
JB
48982013-05-01 Joel Brobecker <brobecker@adacore.com>
4899
4900 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4901 of &info->load_map from "char *" to "gdb_byte *".
4902
2b692d32
JB
49032013-05-01 Joel Brobecker <brobecker@adacore.com>
4904
4905 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4906 from "char *" to "gdb_byte *".
4907 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4908
a98c29a0
DE
49092013-04-30 Doug Evans <dje@google.com>
4910
6a506a2d
DE
4911 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4912 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4913 DWO stub. If DWO isn't found, just use stub.
4914 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4915
a98c29a0
DE
4916 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4917 calling init_cutu_and_read_dies.
4918
f92b06da
WT
49192013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4920
4921 * target-descriptions.c (maint_print_c_tdesc_cmd):
4922 Add case to parse structures as register types and
4923 bitfields.
4924
95eebdcc
WT
49252013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4926
4927 * MAINTAINERS (Write After Approval): Add myself to the list.
4928
019c1128
JB
49292013-04-30 Joel Brobecker <brobecker@adacore.com>
4930
4931 * sol-thread.c (rw_common): Change type of parameter "buf"
4932 to "gdb_byte *".
4933 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4934 rw_common to "gdb_byte *" instead of "char *".
4935
5812197c
JB
49362013-04-30 Joel Brobecker <brobecker@adacore.com>
4937
4938 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4939 of local variable msym to const struct bound_minimal_symbol.
4940 Adjust use accordingly.
4941 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4942
ecccb813
TS
49432013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4944
4945 * i386gnu-nat.c (CREG_OFFSET): New macro.
4946 (creg_offset): New array.
4947 (CREG_ADDR): Use creg_offset instead of reg_offset.
4948
f1d02dd4 49492013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
4950
4951 * mep-tdep.c (mep_write_pc): Delete.
4952 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4953 Add call to set_gdbarch_pc_regnum.
4954
f1d02dd4 49552013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
4956
4957 * common/filestuff.c: Replace #include <dirent.h> by
4958 #include "gdb_dirent.h".
4959
f1d02dd4 49602013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
4961
4962 * common/filestuff.c: Replace #include <sys/stat.h> by
4963 #include "gdb_stat.h".
4964
b385a60d
PM
49652013-04-29 Pierre Muller <muller@sourceware.org>
4966
4967 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4968 editCase function rule.
4969 (get_DW_AT_signature_type): Likewise.
4970
d27b54ad
JB
49712013-04-29 Joel Brobecker <brobecker@adacore.com>
4972
4973 * m32r-tdep.c (m32r_write_pc): Delete.
4974 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4975 Add call to set_gdbarch_pc_regnum.
4976
47d21dc5
PM
49772013-04-29 Pierre Muller <muller@sourceware.org>
4978
4979 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4980
9056882e
JB
49812013-04-29 Joel Brobecker <brobecker@adacore.com>
4982
4983 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4984
7ee4732a
YQ
49852013-04-28 Yao Qi <yao@codesourcery.com>
4986
4987 * solib-dsbt.c (fetch_loadmap): Re-indent.
4988 (displacement_from_map, enable_break2): Likewise.
4989 (dsbt_relocate_section_addresses): Likewise.
4990
2260af53 49912013-04-26 Joel Brobecker <brobecker@adacore.com>
4992
4993 GDB 7.6 released.
4994
ff546935
TT
49952013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4996
4997 PR corefiles/14983:
4998 * dwarf2read.c (process_full_comp_unit): Always create a static
4999 block.
5000
40fb6c5e
HZ
50012013-04-25 Hui Zhu <hui@codesourcery.com>
5002
5003 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5004 to loc->cmd_bytecode.
5005
74e04d1c
DE
50062013-04-24 Doug Evans <dje@google.com>
5007
5008 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5009
3cf62c1d
KS
50102013-04-22 Keith Seitz <keiths@redhat.com>
5011
5012 * tracepoint.c (trace_save): Call the writer's start method.
5013
bf9e4d0c
MB
50142013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5015
5016 PR gdb/10462
5017 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5018 before argument.
5019
5d71132c
TT
50202013-04-23 Tom Tromey <tromey@redhat.com>
5021
5022 * common/filestuff.c: Check USE_WIN32API before including
5023 sys/socket.h.
5024 (HAVE_F_GETFD): New define.
5025 (mark_cloexec): Check HAVE_F_GETFD.
5026 (gdb_open_cloexec): Change 'mode' to unsigned long.
5027 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5028 (gdb_pipe_cloexec): Check HAVE_PIPE.
5029 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5030 long.
5031
a11cfd87
HZ
50322013-04-23 Hui Zhu <hui@codesourcery.com>
5033
5034 PR gdb/15293
a11cfd87
HZ
5035 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5036
2d9442cc
HZ
50372013-04-23 Hui Zhu <hui@codesourcery.com>
5038
5039 PR gdb/15165
2d9442cc
HZ
5040 * breakpoint.c (dprintf_print_recreate): New.
5041 (save_breakpoints): Let it not save dprintf commands.
5042 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5043
614c279d
TT
50442013-04-22 Tom Tromey <tromey@redhat.com>
5045
5046 PR gdb/7912:
5047 * Makefile.in (SFILES): Add filestuff.c
5048 (COMMON_OBS): Add filestuff.o.
5049 (filestuff.o): New target.
5050 * auto-load.c (auto_load_objfile_script_1): Use
5051 gdb_fopen_cloexec.
5052 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5053 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5054 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5055 * common/agent.c (gdb_connect_sync_socket): Use
5056 gdb_socket_cloexec.
5057 * common/filestuff.c: New file.
5058 * common/filestuff.h: New file.
5059 * common/linux-osdata.c (linux_common_core_of_thread)
5060 (command_from_pid, commandline_from_pid, print_source_lines)
5061 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5062 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5063 gdb_fopen_cloexec.
5064 * common/linux-procfs.c (linux_proc_get_int)
5065 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5066 * config.in, configure: Rebuild.
5067 * configure.ac: Don't check for sys/socket.h. Check for
5068 fdwalk, pipe2.
5069 * corelow.c (core_open): Use gdb_open_cloexec.
5070 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5071 * fork-child.c (fork_inferior): Call close_most_fds.
5072 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5073 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5074 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5075 Use gdb_fopen_cloexec.
5076 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5077 gdb_open_cloexec.
5078 (linux_async_pipe): Use gdb_pipe_cloexec.
5079 * remote-fileio.c (remote_fileio_func_open): Use
5080 gdb_open_cloexec.
5081 * remote.c (remote_file_put, remote_file_get): Use
5082 gdb_fopen_cloexec.
5083 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5084 close_most_fds.
5085 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5086 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5087 * solib.c (solib_find): Use gdb_open_cloexec.
5088 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5089 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5090 (tfile_open): Use gdb_open_cloexec.
5091 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5092 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5093 * xml-support.c (xml_fetch_content_from_file): Use
5094 gdb_fopen_cloexec.
5095 * main.c (captured_main): Call notice_open_fds.
5096
5fda2332
EBM
50972013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5098
5099 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5100 'char *' to 'gdb_byte *'.
5101 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5102 'gdb_byte'.
5103
eb6c553b
YQ
51042013-04-22 Yao Qi <yao@codesourcery.com>
5105
5106 * infrun.c: Fix typo in comment.
5107
9991b207
SDJ
51082013-04-22 Andrew Haley <aph@redhat.com>
5109
5110 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5111 instead of "long".
5112
8b4833e3
YQ
51132013-04-20 Yao Qi <yao@codesourcery.com>
5114
5115 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5116 'char *' to 'gdb_byte *'. Cast the return value of
5117 'bt_ctf_get_char_array' to 'gdb_byte *'.
5118
bd3f3b55
PA
51192013-04-19 Pedro Alves <palves@redhat.com>
5120
5121 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5122 -Wpointer-sign.
5123 * configure: Regenerate.
5124
c49e7f76
PA
51252013-04-19 Pedro Alves <palves@redhat.com>
5126
5127 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5128 'void *'.
5129
12ff8552
PA
51302013-04-19 Pedro Alves <palves@redhat.com>
5131
5132 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5133 Change type of 'myaddr' parameter to gdb_byte pointer.
5134 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5135 to 'long long' pointer instead of to 'unsigned long long'.
5136 (monitor_write_memory_block, monitor_read_memory_single)
5137 (monitor_read_memory): Change type of 'myaddr' parameter to
5138 gdb_byte pointer.
5139
9c37696b
PA
51402013-04-19 Pedro Alves <palves@redhat.com>
5141
5142 * record.c (validate_history_size): Make parameter 'setting'
5143 unsigned.
5144
a398505b
PA
51452013-04-19 Pedro Alves <palves@redhat.com>
5146
5147 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5148 to 'gdb_byte *'.
5149
9f8afa72
PA
51502013-04-19 Pedro Alves <palves@redhat.com>
5151
5152 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5153 local to int.
5154
c714b426
PA
51552013-04-19 Pedro Alves <palves@redhat.com>
5156
5157 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5158 * ada-tasks.c (read_fat_string_value): Likewise.
5159
507a579c
PA
51602013-04-19 Pedro Alves <palves@redhat.com>
5161
5162 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5163 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5164 'offset', and adjust.
5165
f9d83a0b
PA
51662013-04-19 Pedro Alves <palves@redhat.com>
5167
5168 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5169 (read_index_from_section): Add cast to 'char *'.
5170
745eb4fd
PA
51712013-04-19 Pedro Alves <palves@redhat.com>
5172
5173 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5174
db5be46f
PA
51752013-04-19 Pedro Alves <palves@redhat.com>
5176
5177 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5178
0f928d68
PA
51792013-04-19 Pedro Alves <palves@redhat.com>
5180
5181 * record-full.c (record_full_get_bookmark): Change local 'ret'
5182 type to char * and add cast to gdb_byte *.
5183 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5184 string.
5185 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5186
89f6d837
PA
51872013-04-19 Pedro Alves <palves@redhat.com>
5188
5189 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5190 * python/py-prettyprint.c (print_string_repr): Change type of
5191 'output' local to char *. Add cast to gdb_byte * in
5192 LA_PRINT_STRING call.
5193 (print_children): Change type of 'output' local to char *.
5194 * python/py-value.c (valpy_string): Add cast to const char * in
5195 PyUnicode_Decode call.
5196
ce6ec7d8
PA
51972013-04-19 Pedro Alves <palves@redhat.com>
5198
5199 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5200 and change its type to 'const char *'. Adjust.
5201 (mips_send_packet): Add cast to 'char *', and remove cast to
5202 'unsigned char *'.
5203 (mips_receive_packet): Remove cast to 'unsigned char *'.
5204 (mips_load_srec): Use bfd_byte.
5205 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5206 (pmon_checkset): Make 'value' parameter unsigned.
5207
fda0389f
PA
52082013-04-19 Pedro Alves <palves@redhat.com>
5209
5210 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5211
bc20a4af
PA
52122013-04-19 Pedro Alves <palves@redhat.com>
5213
5214 * remote.c (remote_write_bytes_aux, compare_sections_command)
5215 (remote_read_qxfer)
5216 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5217 (remote_hostio_readlink, remote_bfd_iovec_pread)
5218 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5219 binary buffer, and char when buffer is used as string.
5220 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5221 (trace_save, tfile_open, traceframe_walk_blocks)
5222 (tfile_fetch_registers): Likewise.
5223
c628b528
PA
52242013-04-19 Pedro Alves <palves@redhat.com>
5225
5226 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5227 buffer and size_t size. Adjust.
5228 * ser-base.h (ser_base_write): Adjust.
5229 * ser-go32.c (cnts): Change type to size_t.
5230 (dos_write): Change prototype -- take 'void *'
5231 buffer and size_t size. Adjust.
5232 (dos_info): Print elements of 'cnts' as unsigned long.
5233 * serial.c (serial_write): Likewise.
5234 * serial.h (serial_write): Adjust.
5235 (struct serial_ops) <write>: Change prototype -- take 'void *'
5236 buffer and size_t size. Adjust.
5237
51a5cd90
PA
52382013-04-19 Pedro Alves <palves@redhat.com>
5239
5240 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5241 gdb_byte *.
5242 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5243
a9933661
PA
52442013-04-19 Pedro Alves <palves@redhat.com>
5245
5246 * alpha-tdep.c (alpha_extract_return_value): Use
5247 regcache_cooked_read_unsigned to read 'v0'.
5248
19afdd07
PA
52492013-04-19 Pedro Alves <palves@redhat.com>
5250
5251 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5252 parameters 'at', 'as' and 'offset' to uint32_t.
5253
96b32e50
PA
52542013-04-19 Pedro Alves <palves@redhat.com>
5255
5256 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5257 'is64' to signed 'int'.
5258
eb1bd1fb
PA
52592013-04-19 Pedro Alves <palves@redhat.com>
5260
5261 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5262 parameter to int *.
5263
463920bf
PA
52642013-04-19 Pedro Alves <palves@redhat.com>
5265
5266 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5267 'insnbuf' buffer type to unsigned int[].
5268
70242eb1
PA
52692013-04-19 Pedro Alves <palves@redhat.com>
5270
5271 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5272
9d1dd0e2
PA
52732013-04-19 Pedro Alves <palves@redhat.com>
5274
5275 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5276 unsigned long *.
5277
44096aee
PA
52782013-04-19 Pedro Alves <palves@redhat.com>
5279
5280 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5281 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5282 UINT_MAX.
5283 * mips-tdep.c (heuristic_fence_post): Change type to int.
5284 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5285
e4286e57
PA
52862013-04-19 Pedro Alves <palves@redhat.com>
5287
5288 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5289 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5290 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5291
001f13d8
PA
52922013-04-19 Pedro Alves <palves@redhat.com>
5293
5294 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5295 it to get a string view of the byte buffer.
5296 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5297 type to gdb_byte *. Adjust.
5298 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5299 Change local to char *.
5300 * solib-darwin.c (find_program_interpreter): Change return type to
5301 char *. Adjust.
5302 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5303 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5304 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5305 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5306 * solib-svr4.c (find_program_interpreter): Change return type to
5307 char *. Adjust.
5308 (enable_break): Change local 'interp_name' to char *.
5309 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5310 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5311 (spu_pseudo_register_write_spu): Use char for string buffer.
5312 Adjust.
5313 (info_spu_event_command, info_spu_signal_command): Add casts to
5314 'char *'.
5315
948f8e3d
PA
53162013-04-19 Pedro Alves <palves@redhat.com>
5317
5318 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5319 gdb_byte[].
5320 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5321 * ada-lang.c (ada_value_assign): Use gdb_byte.
5322 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5323 (alphanbsd_sigtramp_offset): Use gdb_byte.
5324 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5325 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5326 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5327 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5328 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5329 * arm-tdep.c (arm_stub_unwind_sniffer)
5330 (arm_displaced_init_closure): Use gdb_byte.
5331 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5332 (arm_default_thumb_le_breakpoint)
5333 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5334 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5335 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5336 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5337 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5338 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5339 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5340 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5341 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5342 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5343 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5344 (cris_store_return_value, cris_extract_return_value): Use
5345 gdb_byte.
5346 (constraint): Change type of parameter to char * from signed
5347 char*. Use gdb_byte.
5348 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5349 of local buffer to gdb_byte *.
5350 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5351 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5352 (add_address_entry): Change type of local buffer to gdb_byte[].
5353 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5354 (frv_push_dummy_call): Use gdb_byte.
5355 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5356 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5357 (hppa_hpux_supply_save_state): Use gdb_byte.
5358 * hppa-tdep.c (hppa32_push_dummy_call)
5359 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5360 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5361 (slotN_contents, replace_slotN_contents): Change type of parameter
5362 to gdb_byte *.
5363 (fetch_instruction, ia64_pseudo_register_write)
5364 (ia64_register_to_value, ia64_value_to_register)
5365 (ia64_extract_return_value, ia64_store_return_value)
5366 (ia64_push_dummy_call): Use gdb_byte.
5367 * m32c-tdep.c (m32c_return_value): Remove cast.
5368 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5369 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5370 gdb_byte.
5371 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5372 * mn10300-tdep.c (mn10300_store_return_value)
5373 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5374 gdb_byte.
5375 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5376 (moxie_process_record): Remove casts.
5377 * ppc-ravenscar-thread.c (supply_register_at_address)
5378 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5379 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5380 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5381 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5382 * remote.c (compare_sections_command): Use gdb_byte.
5383 * score-tdep.c (score7_free_memblock): Change type of parameter to
5384 gdb_byte *.
5385 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5386 gdb_byte *. Use gdb_byte.
5387 (sh_push_dummy_call_fpu): Use gdb_byte.
5388 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5389 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5390 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5391 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5392 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5393 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5394 (sh64_store_return_value, sh64_register_convert_to_virtual):
5395 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5396 (sh64_pseudo_register_write): Use gdb_byte.
5397 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5398 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5399 buffer.
5400 (irix_current_sos): Use gdb_byte.
5401 * solib-som.c (som_current_sos): Use gdb_byte.
5402 * sparc-ravenscar-thread.c (supply_register_at_address)
5403 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5404 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5405 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5406 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5407 'gdb_byte *'.
5408 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5409 'gdb_byte *'.
5410 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5411 * xstormy16-tdep.c (xstormy16_extract_return_value)
5412 (xstormy16_store_return_value): Change parameter type to
5413 'gdb_byte *'. Adjust.
5414 (xstormy16_push_dummy_call): Use gdb_byte.
5415 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5416 (call0_analyze_prologue, execute_code): Use gdb_byte.
5417
433730c9
PA
54182013-04-19 Vladimir Kargov <kargov@gmail.com>
5419 Pedro Alves <palves@redhat.com>
5420
5421 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5422 value contents.
5423
ac9ec31b
DE
54242013-04-17 Doug Evans <dje@google.com>
5425
5426 * dwarf2read.c (struct signatured_type): New member type.
5427 (struct attribute): Replace member signatured_type with signature.
5428 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5429 (read_call_site_scope): Call follow_die_ref instead of
5430 follow_die_ref_or_sig.
5431 (read_structure_type): Rewrite handling of signatured types.
5432 (read_enumeration_type): Ditto.
5433 (read_attribute_value): Update.
5434 (build_error_marker_type): New function.
5435 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5436 Don't call error for bad types, just build an error marker type.
5437 (dump_die_shallow): Update.
5438 (follow_die_sig_1): Renamed from follow_die_sig.
5439 Don't call error for bad types, instead return NULL.
5440 (follow_die_sig): New function.
5441 (get_signatured_type, get_DW_AT_signature_type): New functions.
5442
e546e8bb
YZ
54432013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5444
5445 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
5446 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5447 function.
e546e8bb 5448
ab116149
YQ
54492013-04-17 Yao Qi <yao@codesourcery.com>
5450
5451 * top.c (print_gdb_configuration): Print configure-time
5452 parameter on using libbabeltrace or not.
5453
488a42b8
PA
54542013-04-16 Pedro Alves <palves@redhat.com>
5455
5456 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5457
f5fb825b
PA
54582013-04-16 Pedro Alves <palves@redhat.com>
5459
85d494ea 5460 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
5461 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5462
e1154999
PA
54632013-04-16 Pedro Alves <palves@redhat.com>
5464
5465 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5466 * common/glibc_thread_db.h: ... this new file ...
5467 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5468
e3b50a7f
PA
54692013-04-16 Will Newton <will.newton@gmail.com>
5470 Pedro Alves <palves@redhat.com>
5471
5472 PR build/11881
5473
5474 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5475 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5476 HAVE_THREAD_DB_H.
5477
1c2e4450
PA
54782013-04-16 Pedro Alves <palves@redhat.com>
5479 Eli Zaretskii <eliz@gnu.org>
5480
5481 * NEWS: Mention "set foo unlimited".
5482
4031ecc5
DE
54832013-04-15 Doug Evans <dje@google.com>
5484
19c3d4c9
DE
5485 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5486 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5487 (create_dwo_cu_reader): Renamed from
5488 create_dwo_debug_info_hash_table_reader.
5489 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5490 Remove support for multiple CUs in a DWO file.
5491 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5492
4031ecc5
DE
5493 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5494 instead of phex.
5495 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5496 (create_dwo_in_dwp): Ditto.
5497
b340913d
TT
54982013-04-15 Tom Tromey <tromey@redhat.com>
5499
5500 * NEWS: Move recent entries into "since 7.6" section.
5501
cc16e6c9
TT
55022013-04-15 Tom Tromey <tromey@redhat.com>
5503
5504 PR c++/13588:
5505 * NEWS: Update.
5506 * break-catch-throw.c (struct exception_catchpoint)
5507 <exception_rx, pattern>: New fields.
5508 (fetch_probe_arguments, dtor_exception_catchpoint)
5509 (check_status_exception_catchpoint)
5510 (print_one_detail_exception_catchpoint): New functions.
5511 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5512 Compile regular expression if needed.
5513 (extract_exception_regexp): New function.
5514 (catch_exception_command_1): Use extract_exception_regexp.
5515 (compute_exception): Use fetch_probe_arguments.
5516 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5517 and check_status fields.
5518 * cp-abi.c (cplus_typename_from_type_info): New function.
5519 * cp-abi.h (cplus_typename_from_type_info): Declare.
5520 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5521 * gdb_regex.h (compile_rx_or_error): Declare.
5522 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5523 comment.
5524 (init_gnuv3_ops): Set get_type_from_type_info field.
5525 * probe.c (compile_rx_or_error): Move...
5526 * utils.c (compile_rx_or_error): ... here.
5527
72f1fe8a
TT
55282013-04-15 Tom Tromey <tromey@redhat.com>
5529
5530 PR c++/15176:
5531 * NEWS: Update.
5532 * break-catch-throw.c (compute_exception): New function.
5533 (exception_funcs): New global.
5534 (_initialize_break_catch_throw): Create $_exception.
5535 * cp-abi.c (cplus_type_from_type_info): New function.
5536 * cp-abi.h (cplus_type_from_type_info): Declare.
5537 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5538 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5539 (gnuv3_get_type_from_type_info): New functions.
5540 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5541
fc4746a2
TT
55422013-04-15 Tom Tromey <tromey@redhat.com>
5543
5544 * break-catch-throw.c (struct exception_names): New.
5545 (exception_functions): Change type.
5546 (re_set_exception_catchpoint): Look for SDT probes.
5547
15a73f56
TT
55482013-04-15 Tom Tromey <tromey@redhat.com>
5549
5550 PR c++/10119:
5551 * break-catch-throw.c (exception_functions): New global.
5552 (gnu_v3_exception_catchpoint_ops): Move earlier.
5553 (struct exception_catchpoint): New.
5554 (classify_exception_breakpoint): Rewrite.
5555 (re_set_exception_catchpoint): New function.
5556 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5557 Allocate a struct exception_catchpoint.
5558 (catch_exception_command_1): Update.
5559 (initialize_throw_catchpoint_ops): Set 're_set' method.
5560
916703c0
TT
55612013-04-15 Tom Tromey <tromey@redhat.com>
5562
5563 * Makefile.in (SFILES): Add break-catch-throw.c
5564 (COMMON_OBS): Add break-catch-throw.o.
5565 * break-catch-throw.c: New file.
5566 * breakpoint.c: Move exception-catching code to new file.
5567 (ep_parse_optional_if_clause): No longer static.
5568 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5569
6e72ca20
TT
55702013-04-15 Tom Tromey <tromey@redhat.com>
5571
5572 PR c++/9065:
5573 * NEWS: Update.
5574 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5575 * c-exp.y (TYPEID): New token.
5576 (exp): Add new TYPEID productions.
5577 (ident_tokens): Add "typeid".
5578 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5579 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5580 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5581 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5582 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5583 case.
5584 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5585 (build_std_type_info_type, gnuv3_get_typeid_type)
5586 (gnuv3_get_typeid): New functions.
5587 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5588 new fields on ABI object.
5589 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5590 * std-operator.def (OP_TYPEID): New.
5591
715c6909
TT
55922013-04-15 Tom Tromey <tromey@redhat.com>
5593
5594 * elfread.c (elf_symtab_read): Install versioned symbol under
5595 unversioned name as well.
5596
8de20a37
TT
55972013-04-15 Tom Tromey <tromey@redhat.com>
5598
5599 PR c++/11990:
5600 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5601 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5602 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5603 (gdb_demangle): New function.
5604 * cp-support.h (gdb_demangle): Declare.
5605 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5606 (dwarf2_name): Use gdb_demangle.
5607 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5608 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5609 suffixes from name.
5610 (gnuv3_print_method_ptr): Use gdb_demangle.
5611 * jv-lang.c (java_demangle): Use gdb_demangle.
5612 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5613 * language.c (unk_lang_demangle): Use gdb_demangle.
5614 * symtab.c (symbol_find_demangled_name)
5615 (demangle_for_lookup): Use gdb_demangle.
5616
591f19e8
TT
56172013-04-15 Tom Tromey <tromey@redhat.com>
5618
5619 PR c++/12824:
5620 * NEWS: Update.
5621 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5622 New constant.
5623 (classify_exception_breakpoint): New function.
5624 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5625 (print_mention_exception_catchpoint)
5626 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5627 (catch_exception_command_1): Handle "rethrow" catchpoint.
5628 (catch_rethrow_command): New function.
5629 (_initialize_breakpoint): Add "catch rethrow" command.
5630
4d40cad2
PM
56312013-04-15 Pierre Muller <muller@sourceware.org>
5632
5633 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5634 set_gdbarch_write_pc as deprecated anymore.
5635
30bcb456
JB
56362013-04-15 Joel Brobecker <brobecker@adacore.com>
5637
5638 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5639 declarations.
5640
da9160e4
YQ
56412013-04-13 Yao Qi <yao@codesourcery.com>
5642
5643 * ctf.c (_initialize_ctf): Include "completer.h".
5644 Call add_target_with_completer instead of add_target.
5645
39ed5604
JK
56462013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5647
5648 Fix GDB regression related to PR binutils/14813.
5649 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5650 * minidebug.c (lzma_close): Add return value comment.
5651 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5652 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5653 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5654
56552013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
5656
5657 * config.in: Regenerate.
5658
d521ce57
TT
56592013-04-12 Tom Tromey <tromey@redhat.com>
5660
5661 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5662 const.
5663 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5664 (struct die_reader_specs) <buffer>: Likewise.
5665 (die_reader_func_ftype): Make 'info_ptr' const.
5666 (struct line_header) <include_dirs, statement_program_start,
5667 statement_program_end>: Now const.
5668 (struct file_entry) <name>: Likewise.
5669 (struct partial_die_info) <sibling>: Likewise.
5670 (struct dwarf_block) <data>: Likewise.
5671 (dwarf2_read_section): Remove cast.
5672 (dwarf2_get_section_info): Make 'bufp' const.
5673 (read_index_from_section): Constify.
5674 (dw2_get_file_names_reader): Make 'info_ptr' const.
5675 (dw2_get_primary_filename_reader): Likewise.
5676 (read_comp_unit_head): Make 'info_ptr' and return type const.
5677 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5678 Likewise.
5679 (read_abbrev_offset): Constify.
5680 (dwarf2_create_include_psymtab): Make 'name' const.
5681 (create_debug_types_hash_table): Update.
5682 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5683 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5684 Constify.
5685 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5686 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5687 (read_comp_units_from_section): Constify.
5688 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5689 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5690 const.
5691 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5692 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5693 (create_dwp_hash_table, dwarf2_ranges_read)
5694 (dwarf2_record_block_ranges): Constify.
5695 (read_die_and_children, read_die_and_siblings_1)
5696 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5697 const.
5698 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5699 (abbrev_table_read_table): Constify.
5700 (load_partial_dies): Make 'info_ptr' const.
5701 (read_partial_die, read_attribute_value, read_attribute): Make
5702 'info_ptr' and return type const.
5703 (read_address, read_initial_length)
5704 (read_checked_initial_length_and_offset, read_offset)
5705 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5706 const.
5707 (read_direct_string): Make 'buf' and return type const.
5708 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5709 (read_indirect_string): Make return type const.
5710 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5711 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5712 'info_ptr' const.
5713 (read_str_index): Make return type const.
5714 (add_include_dir): Make 'include_dir' const.
5715 (add_file_name): Make 'name' const.
5716 (dwarf_decode_line_header): Constify.
5717 (psymtab_include_file_name): Make return type const.
5718 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5719 (dwarf2_start_subfile): Make 'filename' const.
5720 (dwarf2_const_value_attr): Make 'bytes' const.
5721 (read_signatured_type_reader): Make 'info_ptr' const.
5722 (decode_locdesc): Constify.
5723 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5724 const.
5725 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5726 'mac_end', and return type const.
5727 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5728 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5729 type const.
5730 (per_cu_header_read_in): Constify.
5731 * symfile.h (dwarf2_get_section_info): Update.
5732
d47a1bc1
TT
57332013-04-12 Tom Tromey <tromey@redhat.com>
5734
5735 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5736
6eaaf48b
EZ
57372013-04-12 Eli Zaretskii <eliz@gnu.org>
5738
fc4c25bf 5739 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
5740 * top.c (print_gdb_configuration): New function, displays the
5741 details about GDB configure-time parameters.
5742 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
5743 * cli/cli-cmds.c (show_configuration): New function.
5744 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
5745 * main.c (captured_main) <print_configuration>: New static var.
5746 <long_options>: Use it.
5747 If --configuration was given, call print_gdb_configuration.
5748
b292c783
JK
57492013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 Pedro Alves <palves@redhat.com>
5751
5752 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5753 (generated_files): Add gcore.
5754 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5755 HAVE_NATIVE_GCORE_HOST.
5756 (gcore): New.
5757 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5758 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5759 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5760 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5761 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5762 Add HAVE_NATIVE_GCORE_HOST.
5763 * configure: Regenerate.
5764 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5765 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5766 AC_CONFIG_FILES for gcore.
5767 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5768 gdb_have_gcore.
5769 * gdb_gcore.sh: Rename to ...
5770 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5771 and GCORE_TRANSFORM_NAME substitutions.
5772
c96b3c4f
JK
5773 Fix parsing tabs in ${gdb_target_obs}.
5774 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5775
d6cb50a2
JK
57762013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5777
5778 * remote.c (unpush_and_perror): Add output message final dot.
5779
cf2cb5ec
YQ
57802013-04-11 Yao Qi <yao@codesourcery.com>
5781
5782 * tracepoint.c (tfile_interp_line): Fit parameters line and
5783 utpp in one line.
5784
07293be4
JB
57852013-04-10 Joel Brobecker <brobecker@adacore.com>
5786
5787 * solib.c (solib_map_sections): Remove code overwriting
5788 SO->SO_NAME with the bfd's filename.
5789
f81d1120
PA
57902013-04-10 Pedro Alves <palves@redhat.com>
5791
5792 * cli/cli-decode.c (integer_unlimited_completer): New function.
5793 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5794 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5795 completer.
5796 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5797 (is_unlimited_literal): New function.
5798 (do_set_command): Handle literal "unlimited" arguments.
5799 * frame.c (_initialize_frame) <set backtrace limit>: Document
5800 "unlimited".
5801 * printcmd.c (_initialize_printcmd) <set print
5802 max-symbolic-offset>: Add help text.
5803 * record-full.c (_initialize_record_full) <set record full
5804 insn-number-max>: Likewise.
5805 * record.c (_initialize_record) <set record
5806 instruction-history-size, set record function-call-history-size>:
5807 Add help text.
5808 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5809 help text.
5810 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5811 Likewise.
5812 * source.c (_initialize_source) <set listsize>: Add help text.
5813 * utils.c (initialize_utils) <set height, set width>: Likewise.
5814 <set pagination>: Mention "set height unlimited".
5815 * valprint.c (_initialize_valprint) <set print elements, set print
5816 repeats>: Document "unlimited".
5817
2f9d54cf
PA
58182013-04-10 Pedro Alves <palves@redhat.com>
5819
5820 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5821 instead of disconnect_tracing.
5822 * infcmd.c (detach_command, disconnect_command): Call
5823 query_if_trace_running. Adjust.
5824 * top.c: Include "tracepoint.h".
5825 (quit_target): Delete. Contents moved ...
5826 (quit_force): ... here. Wrap each stage of teardown in
5827 TRY_CATCH. Call disconnect_tracing before detaching.
5828
393fd4c3
YQ
58292013-04-10 Hui Zhu <hui@codesourcery.com>
5830 Yao Qi <yao@codesourcery.com>
5831
5832 * configure.ac: Check libbabeltrace is installed.
5833 * config.in: Regenerate.
5834 * configure: Regenerate.
5835 * Makefile.in (LIBBABELTRACE): New.
5836 (CLIBS): Add LIBBABELTRACE.
5837 * ctf.c: Include "exec.h".
5838 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5839 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5840 (ctf_save_metadata_header): Define new type aliases in
5841 metadata.
5842 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5843 in metadata. Start a new faked packet for trace status.
5844 (ctf_write_status): Write trace status to CTF.
5845 (ctf_write_uploaded_tsv): Write TSV to CTF.
5846 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5847 (ctf_write_definition_end): End the faked packet.
5848
5849 (ctx, ctf_iter, trace_dirname): New.
5850 (start_pos): New variable.
5851 (ctf_destroy, ctf_open_dir, ctf_open): New.
5852 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5853 macros.
5854 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5855 (ctf_fetch_registers, ctf_xfer_partial): New.
5856 (ctf_get_trace_state_variable_value): New.
5857 (ctf_get_tpnum_from_frame_event): New.
5858 (ctf_get_traceframe_address): New.
5859 (ctf_trace_find, ctf_has_stack): New.
5860 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5861 (ctf_get_trace_status, ctf_read_status): New.
5862 (_initialize_ctf): New.
5863 * tracepoint.c (get_tracepoint_number): New
5864 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 5865 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
5866 * tracepoint.h: ... here.
5867 (get_tracepoint_number): Declare it.
5868 (get_uploaded_tsv): Declare it.
5869
5870 * NEWS: Mention new configure option.
5871
5c2b4418
HZ
58722013-04-10 Pedro Alves <palves@redhat.com>
5873 Hui Zhu <hui@codesourcery.com>
5874
5875 * breakpoint.c (dprintf_re_set): New.
5876 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5877 to dprintf_re_set.
5878
a5c66735
JB
58792013-04-09 Joel Brobecker <brobecker@adacore.com>
5880
5881 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5882 Remove solib-svr4.o from the list.
5883
9e77999c
JB
58842013-04-09 Joel Brobecker <brobecker@adacore.com>
5885
5886 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5887 Use gdb_assert_not_reached instead of invalid boolean expression.
5888
1927e618
PA
58892013-04-09 Pedro Alves <palves@redhat.com>
5890
5891 * remote.c (unpush_and_perror): New function.
5892 (readchar, remote_serial_write): Use it.
5893
10782d74
MM
58942013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5895
5896 * NEWS: Mention new btrace RSP packets.
5897
4c8429ef
TT
58982013-04-08 Tom Tromey <tromey@redhat.com>
5899
5900 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5901 long.
5902
8625fc1b
TT
59032013-04-08 Tom Tromey <tromey@redhat.com>
5904
5905 * maint.c (print_bfd_section_info): Print the section index.
5906 * symmisc.c (dump_msymbols): Print the section index.
5907
e27d198c
TT
59082013-04-08 Tom Tromey <tromey@redhat.com>
5909
5910 PR symtab/8424:
5911 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5912 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5913 * breakpoint.c (resolve_sal_pc): Update.
5914 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5915 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5916 (minsym_lookup_iterator_cb): Use it.
5917 (default_read_var_value): Update.
5918 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5919 Update.
5920 * infcmd.c (jump_command): Update.
5921 * linespec.c (minsym_found): Update.
5922 * maint.c (maintenance_translate_address): Update.
5923 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5924 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5925 * parse.c (write_exp_msymbol): Update.
5926 * printcmd.c (address_info): Update.
5927 * psymtab.c (find_pc_sect_psymbol): Update.
5928 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5929 SYMBOL_OBJ_SECTION.
5930 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5931 Don't initialize SYMBOL_OBJ_SECTION.
5932 * spu-tdep.c (spu_catch_start): Update.
5933 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5934 * symmisc.c (dump_msymbols, print_symbol): Update.
5935 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5936 how fallback section is computed.
5937 (fixup_symbol_section): Update.
5938 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5939 Update.
5940 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5941 Initialize SYMBOL_SECTION.
5942 * symtab.h (struct general_symbol_info) <section>: Update comment.
5943 <obj_section>: Remove.
5944 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5945 (SYMBOL_OBJFILE): New macro.
5946
e6dc44a8
TT
59472013-04-08 Tom Tromey <tromey@redhat.com>
5948
5949 * coffread.c (record_minimal_symbol): Update.
5950 * dbxread.c (record_minimal_symbol): Update.
5951 * elfread.c (record_minimal_symbol): Update.
5952 * machoread.c (macho_symtab_add_minsym): Update.
5953 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5954 Update.
5955 * minsyms.c (prim_record_minimal_symbol): Update.
5956 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5957 argument.
5958 (prim_record_minimal_symbol_and_info): Likewise.
5959 * minsyms.h (prim_record_minimal_symbol_full)
5960 (prim_record_minimal_symbol_and_info): Update.
5961 * symtab.c (allocate_symbol, initialize_symbol)
5962 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5963 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5964 Update.
5965
36192a8d
TT
59662013-04-08 Tom Tromey <tromey@redhat.com>
5967
5968 PR symtab/8423:
5969 * solib-som.c (som_solib_section_offsets): Use BFD section
5970 indices. Set offsets for all sections.
5971 * somread.c (som_symtab_read): Compute BFD section for
5972 symbol. Use prim_record_minimal_symbol_and_info.
5973 (som_symfile_read): Fix comment.
5974 (struct find_section_offset_arg): New.
5975 (find_section_offset, set_section_index): New functions.
5976 (som_symfile_offsets): Use set_section_index to compute
5977 section indices.
5978
65cf3563
TT
59792013-04-08 Tom Tromey <tromey@redhat.com>
5980
5981 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5982 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5983 gdb_bfd_section_index.
5984 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5985 New functions.
5986 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5987 Declare.
5988 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5989 Update.
5990 * objfiles.c (add_to_objfile_sections_full): New function.
5991 (add_to_objfile_sections): Use it.
5992 (build_section_table): Rewrite.
5993 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5994 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5995 (struct objfile) <sections>: Update comment.
5996 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5997 is NULL.
5998 (ALL_OBJSECTIONS): Use it.
5999 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6000 * solib-frv.c (frv_relocate_main_executable): Update.
6001 * solib-target.c (solib_target_relocate_section_addresses):
6002 Use gdb_bfd_section_index.
6003 * symfile.c (build_section_addr_info_from_section_table):
6004 Use gdb_bfd_section_index.
6005 (build_section_addr_info_from_bfd, place_section): Likewise.
6006 * symtab.c (fixup_section): Update.
6007 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6008
7cbd4a93
TT
60092013-04-08 Tom Tromey <tromey@redhat.com>
6010
6011 * minsyms.h (struct bound_minimal_symbol): New.
6012 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6013 Remove objfile argument.
6014 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6015 Return bound_minimal_symbol.
6016 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6017 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6018 Return bound_minimal_symbol.
6019 (in_gnu_ifunc_stub): Update.
6020 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6021 Remove 'objfile_p' argument.
6022 (lookup_solib_trampoline_symbol_by_pc): Update.
6023 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6024 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6025 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6026 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6027 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6028 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6029 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6030 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6031 stack.c, symtab.c, tui/tui-disasm.c: Update.
6032
f85f34ed
TT
60332013-04-08 Tom Tromey <tromey@redhat.com>
6034
6035 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6036 Use symbol's obstack, not an objfile.
6037 * coffread.c (process_coff_symbol): Update.
6038 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6039 * jv-lang.c (add_class_symbol): Update.
6040 * mdebugread.c (new_symbol): Update.
6041 * minsyms.c (prim_record_minimal_symbol_full)
6042 (terminate_minimal_symbol_table): Update.
6043 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6044 * stabsread.c (define_symbol, read_enum_type): Update.
6045 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6046 Handle Ada specially.
6047 (symbol_set_language): Add 'obstack' argument.
6048 (symbol_set_names): Update.
6049 (symbol_natural_name, symbol_demangled_name): Always use
6050 ada_decode_symbol.
6051 * symtab.h (struct general_symbol_info)
6052 <language_specific::obstack>: New field.
6053 <ada_mangled>: New field.
6054 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6055 (symbol_set_language): Update.
6056
ccde22c0
TT
60572013-04-08 Tom Tromey <tromey@redhat.com>
6058
6059 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6060 Take an obstack, not an objfile.
6061 (symbol_set_names): Update.
6062 * symtab.h (symbol_set_demangled_name): Update.
6063
e623cf5d
TT
60642013-04-08 Tom Tromey <tromey@redhat.com>
6065
6066 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6067 allocate_symbol.
6068 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6069 (read_func_scope): Call allocate_template_symbol.
6070 (new_symbol_full): Call allocate_symbol.
6071 * jit.c (finalize_symtab): Call allocate_symbol.
6072 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6073 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6074 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6075 (common_block_end): Call allocate_symbol.
6076 * symtab.c (allocate_symbol, initialize_symbol)
6077 (allocate_template_symbol): New functions.
6078 * symtab.c (allocate_symbol, initialize_symbol)
6079 (allocate_template_symbol): Declare.
6080 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6081
f6de8ec2
PA
60822013-04-08 Pedro Alves <palves@redhat.com>
6083 Keith Seitz <keiths@redhat.com>
6084
6085 * breakpoint.c (create_breakpoint): Rename
6086 "parse_condition_and_thread" parameter to "parse_arg". Update
6087 describing comment. If !PARSE_ARG, then error out if ARG is not
6088 the empty string after extracting the location.
6089 * breakpoint.h (create_breakpoint): Rename
6090 "parse_condition_and_thread" parameter to "parse_arg".
6091
f65ce5fb
AR
60922013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6093
6094 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6095
cc5925ad
YQ
60962013-04-07 Yao Qi <yao@codesourcery.com>
6097
6098 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6099 and 'addr2' to CORE_ADDR.
6100 * target.c (update_current_target): Update.
6101 * target.h (struct target_ops) <to_trace_find>: Change parameter
6102 type to CORE_ADDR.
6103 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6104 'addr2' to CORE_ADDR.
6105 (tfile_trace_find): Likewise.
6106 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6107 Change local variable 'addr' to type CORE_ADDR.
6108 * tracepoint.h (tfind_1): Update declaration.
6109
d9ac0664
EZ
61102013-04-06 Eli Zaretskii <eliz@gnu.org>
6111
6112 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6113 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6114 Include main.h.
6115
6116 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6117 here...
6118 * main.h (windows_get_absolute_argv0): ...to here.
6119
02142a6c
DE
61202013-04-05 Doug Evans <dje@google.com>
6121
6122 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6123 (read_cutu_die_from_dwo): Add comments.
6124 (read_structure_type): Update comment.
6125 (read_enumeration_type, read_namespace_type): Update comment.
6126 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6127
43662968
JK
61282013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6129
6130 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6131 * Makefile.in (gdb.z): Remove.
6132 (install-only): Remove $(man1dir) and gdb.1 installation.
6133 * gdb.1: Remove.
6134
9ead1b84
JK
61352013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6136
6137 Fix compatibility with Linux kernel 3.8.3.
6138 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6139 to more inner block. Remove parsing of NUMBER from outer block.
6140 Parse NUMBER only if KEYWORD has been identified.
6141
d1794952
JK
61422013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6143
6144 Fix variable name shadowing.
6145 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6146 filename to mapsfilename and update its uses.
6147
9025569e
EZ
61482013-04-05 Eli Zaretskii <eliz@gnu.org>
6149
6150 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6151 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6152 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6153 details of the problem.
6154
c9a6ce02
PA
61552013-04-04 Pedro Alves <palves@redhat.com>
6156 Hui Zhu <hui@codesourcery.com>
6157
6158 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6159 tracepoint, reset its STEP_COUNT and call validate_actionline.
6160
5ff888ce
DE
61612013-04-03 Doug Evans <dje@google.com>
6162
bf6af496
DE
6163 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6164 read_die_and_siblings.
6165 (read_die_and_siblings): New function.
6166 (read_cutu_die_from_dwo): Dump die if requested.
6167 (read_die_and_children): Call read_full_die_1 and
6168 read_die_and_siblings_1.
6169 (read_full_die): Dump die if requested.
6170
6171 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6172
0ac5b59e
DE
6173 * dwarf2read.c (struct dwo_file): New member comp_dir.
6174 Rename member name to dwo_name. All uses updated.
6175 (hash_dwo_file): Include comp_dir in computation.
6176 (eq_dwo_file): Ditto.
6177 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6178 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6179
5ff888ce
DE
6180 * psymtab.c (read_psymtabs_with_fullname): Don't call
6181 psymtab_to_fullname if the basenames are different.
6182
ec83d211
JK
61832013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6184
6185 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6186 New entry about "fullname" presence.
6187
4f4352f7
PA
61882013-04-03 Pedro Alves <palves@redhat.com>
6189
6190 * NEWS: Mention x86_64/Cygwin as new native configuration.
6191
3d1d5ea3
DE
61922013-04-02 Doug Evans <dje@google.com>
6193
6194 * dwarf2read.c (read_structure_type): Fix typo in comment.
6195
be9a8770
PA
61962013-04-02 Pedro Alves <palves@redhat.com>
6197
6198 * NEWS: Mention "set/show debug aarch64", "set/show debug
6199 coff-pe-read" and "set/show debug mach-o".
6200
a46c1e42
PA
62012013-04-02 Pedro Alves <palves@redhat.com>
6202
6203 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6204
3ad18b19
EZ
62052013-04-02 Eli Zaretskii <eliz@gnu.org>
6206
6207 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6208 gdb_string.h is now in common/.
6209
e9f1758d
PA
62102013-04-02 Pedro Alves <palves@redhat.com>
6211
6212 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6213 under "New options".
6214
049dc89b
JK
62152013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6216
6217 Revert this patch:
6218 PR gdb/15275
6219 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6220
c33e31fd
PA
62212013-04-02 Pedro Alves <palves@redhat.com>
6222
6223 PR gdb/15275
6224
6225 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6226 (remote_serial_write): New function.
6227 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6228
ea5f3910
JW
62292013-04-01 Jiong Wang <jiwang@tilera.com>
6230
6231 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6232 "New targets" sections.
ea5f3910 6233
5c6fa7ab
DE
62342013-04-01 Doug Evans <dje@google.com>
6235
c0f78cd4
DE
6236 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6237 (process_enumeration_scope): Simplify.
6238
0186c6a7
DE
6239 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6240 type_unit_group ...
6241 (struct signatured_type): ... to here.
6242 (sig_type_ptr): New typedef.
6243 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6244 out of union 't'. All uses updated.
6245 (dw2_get_file_names_reader): Assert not called for a type unit.
6246 (dw2_get_file_names): Assert not called for a type unit or type
6247 unit group.
6248 (build_type_psymtabs_reader): Assert called for a type unit.
6249 (build_type_psymtab_dependencies): Assert called for a type unit group.
6250
5c6fa7ab
DE
6251 * dwarf2read.c (free_dwo_file): Add comment.
6252 (dwarf2_per_objfile_free): Unref dwp bfd.
6253
b3c0ad67 62542013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
6255
6256 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6257 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6258 (read_pe_exported_syms): Remove unused 'exportix'.
6259 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6260 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6261 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6262
e2df1547
AR
62632013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6264
6265 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6266 (print_it_watchpoint): Remove unused 'bl'.
6267 (say_where): Remove unused 'uiout'.
6268 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6269 (bkpt_breakpoint_hit): Remove unused 'b'.
6270 (internal_bkpt_print_it): Remove unused 'uiout'.
6271 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6272
d81e75c0
TD
62732013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6274
6275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6276 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6277
5a8b3f62
DE
62782013-03-29 Doug Evans <dje@google.com>
6279
ab5088bf
DE
6280 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6281 Delete arg is_dwp. All callers updated.
6282 (open_dwp_file): New function.
6283 (open_and_init_dwp_file): Call it.
6284 (get_dwp_file): New function.
6285 (lookup_dwo_cutu): Call it.
6286
a8ad1e57
DE
6287 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6288 unnecessary, cleanup.
6289
6296d8c1
DE
6290 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6291
b0c7bfa9
DE
6292 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6293 (lookup_dwo_unit): New function.
6294 (init_cutu_and_read_dies): Move DWO handling to new functions.
6295
c88ee1f0
DE
6296 * dwarf2read.c (struct signatured_type): Tweak comment.
6297 (struct dwo_unit): Tweak comment.
6298 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6299 (create_dwo_debug_info_hash_table): Tweak comment.
6300 (dwarf2_per_cu_offset_and_type): Tweak comment.
6301
5a8b3f62
DE
6302 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6303 missing .debug_types section.
6304
9852c492
YQ
63052013-03-29 Yao Qi <yao@codesourcery.com>
6306
6307 * corelow.c: Include "completer.h".
6308 (_initialize_corelow): Call add_target_with_completer with
6309 argument 'filename_completer'.
6310 * tracepoint.c: Likewise.
6311 * exec.c (_initialize_exec): Likewise.
6312 * target.c (add_target): Rename to ...
6313 (add_target_with_completer): ... this. Call set_cmd_completer
6314 if parameter completer is not NULL.
6315 (add_target): New.
6316 * target.h: Include "command.h".
6317 (add_target_with_completer): Declare it.
6318
af312be7
JB
63192013-03-28 Joel Brobecker <brobecker@adacore.com>
6320
6321 * coffread.c (is_import_fixup_symbol): New function.
6322 (record_minimal_symbol): Use is_import_fixup_symbol to
6323 detect import fixup symbols, and discard them.
6324
8a0459fd
DE
63252013-03-28 Doug Evans <dje@google.com>
6326
0349ea22
DE
6327 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6328 types hash table until we know we need it.
6329
f652bce2
DE
6330 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6331 index numbers.
6332
e4a48d9d
DE
6333 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6334 All callers updated.
6335 (dw2_print_stats): Print #read CUs too.
6336 (dump_die_shallow): Print signatured types better.
6337
8a0459fd
DE
6338 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6339 info_or_types_section to section. All uses updated.
6340 (struct dwo_unit): Ditto.
6341
bd3eecc3
PA
63422013-03-28 Pedro Alves <palves@redhat.com>
6343
6344 * NEWS (New options): New section.
6345 (New options): Mention set/show remote trace-status-packet.
6346 * remote.c (PACKET_qTStatus): New enumeration value.
6347 (remote_get_trace_status): Skip sending qTStatus if the packet is
6348 disabled. Use packet_ok.
6349 (_initialize_remote): Register a configuration command for
6350 qTStatus packet.
6351
41245087
DE
63522013-03-28 Doug Evans <dje@google.com>
6353
7edbb660
DE
6354 * symfile.c (find_separate_debug_file): Add comment.
6355 (terminate_after_last_dir_separator): Tweak comment.
6356
0018ea6f
DE
6357 * dwarf2read.c (create_partial_symtab): Add forward decl.
6358 (create_partial_symtab): Move to be closer to other psymtab functions.
6359 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6360
ca69b9e6
DE
6361 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6362 (compute_symtab_includes): Remove unnecessary forward declaration.
6363 (die_needs_namespace): Add comment marking group of functions for
6364 dwarf2 name computation.
6365
a9375afe
DE
6366 * typeprint.c (_initialize_typeprint): Improve type help text.
6367
41245087
DE
6368 * python/python.c (finish_python_initialization): Provide suggestion
6369 for how to tell gdb to find its python files.
6370
7f7cc265
PA
63712013-03-28 Pedro Alves <palves@redhat.com>
6372
6373 PR gdb/15294
6374
6375 * source.c (_initialize_source): Change back "set listsize" to an
6376 integer command.
6377
ec21308c
JK
63782013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
6379
6380 PR gdb/15275
6381 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6382
840a9a1f
PA
63832013-03-27 Pedro Alves <palves@redhat.com>
6384
6385 * top.c (history_size): Rename to ...
6386 (history_size_setshow_var): ... this. Add comment.
6387 (show_commands): Use readline's 'history_length' instead of
6388 computing the history length by calling history_get in a loop.
6389 (set_history_size_command): Error out for sizes over INT_MAX.
6390 Restore previous history size on invalid size.
6391 (init_history): If HISTSIZE is negative, leave the history size as
6392 zero. Add comments.
6393 (init_main): Adjust.
6394
826ecc4d
PA
63952013-03-27 Pedro Alves <palves@redhat.com>
6396
6397 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6398 coff_pe_read" command to "set debug coff-pe-read".
6399
0ccfeeae
MM
64002013-03-27 Markus Metzger <markus.t.metzger@intel.com>
6401
6402 * record.c (command_size_to_target_size): Fix size comparison.
6403 Change parameter type from pointer to integer to integer.
6404 Update all users.
6405
40653b35
PM
64062013-03-27 Pierre Muller <muller@sourceware.org>
6407
6408 * windows-nat.c (handle_output_debug_string): Avoid typecast
6409 from integer of different size warning.
6410
c62fa0e2
JB
64112013-03-26 Joel Brobecker <brobecker@adacore.com>
6412
6413 * windows-nat.c (handle_output_debug_string): Add empty line
6414 after local block variable definition.
6415
2c619be2
PA
64162013-03-26 Pedro Alves <palves@redhat.com>
6417
6418 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6419 (net_open): Make 'polls' local unsigned.
6420
1b493192
PA
64212013-03-26 Pedro Alves <palves@redhat.com>
6422
6423 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6424 a zuinteger command instead of uinteger.
6425
7ee70bf5
PA
64262013-03-26 Pedro Alves <palves@redhat.com>
6427
6428 * record-full.c (record_full_insn_num): Make it unsigned.
6429 (record_full_check_insn_num, record_full_message)
6430 (record_full_registers_change, record_full_xfer_partial): Remove
6431 record_full_insn_max_num check (it's always != 0).
6432 (record_full_info, record_full_restore): Use %u as format string.
6433 (): Use %u as format string.
6434 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6435 check (it's always != 0).
6436
dfd1f9bb
PA
64372013-03-26 Pedro Alves <palves@redhat.com>
6438
6439 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6440 and "set dcache size" commands zuinteger instead of uinteger.
6441
addb4faf
PA
64422013-03-26 Pedro Alves <palves@redhat.com>
6443
6444 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6445 command zuinteger instead of uinteger.
6446
b75bf488
PA
64472013-03-26 Pedro Alves <palves@redhat.com>
6448
6449 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6450 zuinteger instead of uinteger.
6451
42c634cb
PA
64522013-03-26 Pedro Alves <palves@redhat.com>
6453
6454 * record.c (record_insn_history_size_setshow_var)
6455 (record_call_history_size_setshow_var): New globals.
6456 (command_size_to_target_size): New function.
6457 (cmd_record_insn_history, cmd_record_call_history): Use
6458 command_size_to_target_size instead of cast.
6459 (validate_history_size, set_record_insn_history_size)
6460 (set_record_call_history_size): New functions.
6461 (_initialize_record): Install set_record_insn_history_size and
6462 set_record_call_history_size as "set" hooks of "set record
6463 instruction-history-size" and "set record
6464 function-call-history-size".
6465
1fb2e2b5
PA
64662013-03-26 Pedro Alves <palves@redhat.com>
6467
6468 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6469 use with history_max_entries use. Remove FIXME note.
6470
99c819ee
MM
64712013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6472
6473 * record-btrace.c (record_btrace_close): Call
6474 record_btrace_auto_disable.
6475
9f9e404c
JB
64762013-03-25 Joel Brobecker <brobecker@adacore.com>
6477
6478 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6479
ebcdfe33
DE
64802013-03-25 Doug Evans <dje@google.com>
6481
6482 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6483
24955f63
TT
64842013-03-25 Tom Tromey <tromey@redhat.com>
6485
6486 PR symtab/11462:
6487 * c-exp.y (exp): Add new productions for destructors after '.' and
6488 '->'.
6489 (write_destructor_name): New function.
6490
fce632b6
TT
64912013-03-25 Tom Tromey <tromey@redhat.com>
6492
6493 PR c++/9197:
6494 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6495 value_struct_elt, not lookup_struct_elt_type.
6496 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6497 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6498 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6499
a4341769
YQ
65002013-03-25 Yao Qi <yao@codesourcery.com>
6501
6502 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6503 instead of '_mkdir'.
6504
b5981e5a
EZ
65052013-03-23 Eli Zaretskii <eliz@gnu.org>
6506
6507 * windows-nat.c (windows_get_absolute_argv0): New function.
6508 * windows-nat.h: Add its prototype.
6509
6510 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6511 Use IS_DIR_SEPARATOR instead of looking for a character inside
6512 SLASH_STRING. Include filenames.h.
6513 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6514 relocate_gdb_directory works when passed gdb_program_name.
6515 Include windows-nat.h.
6516
598d3636
JK
65172013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6518
6519 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6520 * remote.c (trace_error): Remove the special handling of '2'.
6521 (readchar) <SERIAL_EOF>
6522 (readchar) <SERIAL_ERROR>
6523 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6524 (remote_get_trace_status): Call throw_exception if EX is
6525 TARGET_CLOSE_ERROR.
6526 * utils.c (perror_with_name): Rename to ...
6527 (throw_perror_with_name): ... here. New parameter errcode, describe it
6528 in the function comment.
6529 (perror_with_name): New function wrapper.
6530 * utils.h (enum errors): New stub declaration.
6531 (throw_perror_with_name): New declaration.
6532
82b821e9
PA
65332013-03-22 Pedro Alves <palves@redhat.com>
6534 Yao Qi <yao@codesourcery.com>
6535 Mark Kettenis <kettenis@gnu.org>
6536
6537 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6538 Don't let the user set the value to UINT_MAX directly.
6539 <var_integer>: Don't let the user set the value to INT_MAX
6540 directly.
6541
78a095c3
JK
65422013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6543
6544 * remote.c (remote_unpush_target): New function.
6545 (remote_open_1): Remove two pop_target calls, update one comment, add
6546 comment to target_preopen call. Replace pop_target call by
6547 remote_unpush_target call.
6548 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6549 pop_target calls by remote_unpush_target calls.
6550
3e74e146
PA
65512013-03-22 Pedro Alves <palves@redhat.com>
6552
6553 * linux-nat.c (linux_child_follow_fork): Don't call
6554 linux_enable_event_reporting.
6555 (linux_handle_extended_wait): Don't call
6556 linux_enable_event_reporting.
6557
a2213dca
PA
65582013-03-22 Pedro Alves <palves@redhat.com>
6559
6560 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6561 use it to rewrite the trampoline buffers with type gdb_byte[], and
6562 undefine the macro. Remove char* cast.
6563
bd712aed
DE
65642013-03-21 Doug Evans <dje@google.com>
6565
6566 New commands "mt set per-command {space,time,symtab} {on,off}".
6567 * NEWS: Add entry.
6568 * event-top.c: #include "maint.h".
6569 * main.c: #include "maint.h".
6570 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6571 timeval-utils.h, maint.h, cli/cli-setshow.h.
6572 (per_command_time, per_command_space): New static globals.
6573 (per_command_symtab): New static global.
6574 (per_command_setlist, per_command_showlist): New static globals.
6575 (struct cmd_stats): Move here from utils.c.
6576 (set_per_command_time): Renamed from set_display_time in utils.c
6577 and moved here. All callers updated.
6578 (set_per_command_space): Renamed from set_display_space in utils.c
6579 and moved here. All callers updated.
6580 (count_symtabs_and_blocks): New function.
6581 (report_command_stats): Moved here from utils.c. Add support for
6582 printing symtab stats. Only print data if enabled before command
6583 executed.
6584 (make_command_stats_cleanup): Ditto.
6585 (sert_per_command_cmd, show_per_command_cmd): New functions.
6586 (_initialize_maint_cmds): Add new commands
6587 mt set per-command {space,time,symtab} {on,off}.
6588 * maint.h: New file.
6589 * top.c: #include "maint.h".
6590 * utils.c (reset_prompt_for_continue_wait_time): New function.
6591 (get_prompt_for_continue_wait_time): New function.
6592 * utils.h (reset_prompt_for_continue_wait_time): Declare
6593 (get_prompt_for_continue_wait_time): Declare.
6594 (make_command_stats_cleanup): Moved to maint.h.
6595 (set_display_time, set_display_space): Moved to maint.h and renamed
6596 to set_per_command_time, set_per_command_space.
6597 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6598 parse_binary_operation and made non-static. Don't call error,
6599 just return an error marker. All callers updated.
6600 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6601
d76488d8
TT
66022013-03-21 Tom Tromey <tromey@redhat.com>
6603
6604 * symfile.c (alloc_section_addr_info): Update header. Don't set
6605 'num_sections' field.
6606 (build_section_addr_info_from_section_table): Set 'num_sections'.
6607 (build_section_addr_info_from_bfd): Likewise.
6608 (build_section_addr_info_from_objfile): Remove dead loop
6609 condition.
6610 (free_section_addr_info): Unconditionally call xfree.
6611 (relative_addr_info_to_section_offsets, addrs_section_sort)
6612 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6613 condition.
6614 (syms_from_objfile_1): Remove dead 'if' condition. Check
6615 'num_sections'.
6616 (add_symbol_file_command): Set 'num_sections'.
6617 * symfile-mem.c (symbol_file_add_from_memory): Set
6618 'num_sections'.
6619 * somread.c (som_symfile_offsets): Remove dead loop condition.
6620 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6621 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6622
a72e5169 66232013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
6624
6625 * tracepoint.h (decode_agent_options): Add 'trace_string'
6626 argument.
6627 * tracepoint.c (decode_agent_options): Add 'trace_string'
6628 argument.
6629 (validate_actionline): Update.
6630 (collect_symbol): Add 'trace_string' argument.
6631 (struct add_local_symbols_data) <trace_string>: New field.
6632 (do_collect_symbol): Update.
6633 (add_local_symbols): Add 'trace_string' argument.
6634 (encode_actions_1): Update.
6635 (trace_dump_actions): Update.
6636 * dwarf2loc.c (access_memory): Update.
6637 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6638 * ax-general.c (new_agent_expr): Update.
6639 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6640 (gen_trace_for_return_address): Add argument.
6641 (trace_kludge, trace_string_kludge): Remove.
6642 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6643 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6644 (gen_trace_for_var): Add 'trace_string' argument.
6645 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6646 (gen_printf, agent_eval_command_one): Update.
6647
b2f83c08
TT
66482013-03-21 Tom Tromey <tromey@redhat.com>
6649
6650 PR exp/15109:
6651 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6652 Handle FILENAME token.
6653
9507860e
TT
66542013-03-21 Tom Tromey <tromey@redhat.com>
6655
6656 * c-exp.y (YYPRINT): Define.
6657 (c_print_token): New function.
6658
e403aa4b
TT
66592013-03-21 Tom Tromey <tromey@redhat.com>
6660
6661 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6662
af307d6a
YQ
66632013-03-21 Yao Qi <yao@codesourcery.com>
6664
6665 * ctf.c: Include "gdb_stat.h".
6666 [USE_WIN32API]: New macro 'mkdir'.
6667 (ctf_start): Use permission bits macros if they are defined.
6668
fb81d016
KS
66692013-03-20 Keith Seitz <keiths@redhat.com>
6670
6671 * breakpoint.h (struct breakpoint): Add comment to
6672 extra_string indicating that this member is mallod'd.
6673 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6674
ef0026f0
PA
66752013-03-20 Pedro Alves <palves@redhat.com>
6676
6677 PR gdb/15289
6678
6679 * cli/cli-setshow.c (do_set_command)
6680 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6681 the result of parsing the command argument. Throw error if the
6682 value is greater than UINT_MAX. Print the invalid value with
6683 plongest.
6684 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6685 result of parsing the command argument. Throw error if the value
6686 is greater than INT_MAX, not greater or equal. Also throw error
6687 if the value is less than INT_MIN. Print the invalid value with
6688 plongest.
6689 <var_zuinteger_unlimited>: Throw error if the value is greater
6690 than INT_MAX, not greater or equal.
6691 (do_show_command) <var_integer, var_zinteger,
6692 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6693
24d6c2a0
TT
66942013-03-20 Tom Tromey <tromey@redhat.com>
6695
6696 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6697 if possible.
6698 * dwarf2read.c (read_func_scope): Remove old FIXME.
6699 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6700 not LOC_COMPUTED.
6701 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6702 Unconditionally call via computed ops, if possible.
6703 * printcmd.c (address_info): Unconditionally call via computed ops,
6704 if possible.
6705 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6706 if possible.
6707 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6708 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6709 if possible.
6710
f1e6e072
TT
67112013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6712 Tom Tromey <tromey@redhat.com>
6713
6714 PR symtab/8421:
6715 * coffread.c (coff_register_index): New global.
6716 (process_coff_symbol, coff_read_enum_type): Set
6717 SYMBOL_ACLASS_INDEX.
6718 (_initialize_coffread): Initialize new global.
6719 * dwarf2loc.c (locexpr_find_frame_base_location)
6720 (dwarf2_block_frame_base_locexpr_funcs)
6721 (loclist_find_frame_base_location)
6722 (dwarf2_block_frame_base_loclist_funcs): New.
6723 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6724 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6725 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6726 (dwarf2_block_frame_base_loclist_funcs): New.
6727 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6728 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6729 globals.
6730 (read_func_scope): Update.
6731 (fixup_go_packaging, mark_common_block_symbol_computed)
6732 (var_decode_location, new_symbol_full, dwarf2_const_value):
6733 Set SYMBOL_ACLASS_INDEX.
6734 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6735 (_initialize_dwarf2_read): Initialize new globals.
6736 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6737 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6738 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6739 globals.
6740 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6741 (_initialize_mdebugread): Initialize new globals.
6742 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6743 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6744 (stab_register_index, stab_regparm_index): New globals.
6745 (define_symbol, read_enum_type, common_block_end): Set
6746 SYMBOL_ACLASS_INDEX.
6747 (_initialize_stabsread): Initialize new globals.
6748 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6749 globals.
6750 (MAX_SYMBOL_IMPLS): New define.
6751 (register_symbol_computed_impl, register_symbol_block_impl)
6752 (register_symbol_register_impl)
6753 (initialize_ordinary_address_classes): New functions.
6754 (_initialize_symtab): Call initialize_ordinary_address_classes.
6755 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6756 (struct symbol_impl): New.
6757 (SYMBOL_ACLASS_BITS): New define.
6758 (struct symbol) <aclass, ops>: Remove fields.
6759 <aclass_index>: New field.
6760 (symbol_impls): Declare.
6761 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6762 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6763 (register_symbol_computed_impl, register_symbol_block_impl)
6764 (register_symbol_register_impl): Declare.
6765 (struct symbol_computed_ops): Add location_has_loclist.
6766 (struct symbol_block_ops): New.
6767 (SYMBOL_BLOCK_OPS): New.
6768 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6769
dbccfd4c
TT
67702013-03-20 Tom Tromey <tromey@redhat.com>
6771
6772 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6773 (print_partial_symbols, recursively_search_psymtabs): Use
6774 PSYMBOL_CLASS.
6775
e3f1ad4f
PM
67762013-03-20 Pierre Muller <muller@sourceware.org>
6777
6778 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6779 addtion, subtraction, multiplication and division binary operator.
6780
460014f5
JK
67812013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 Code cleanup.
6784 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6785 * bsd-kvm.c (bsd_kvm_close): Likewise.
6786 * bsd-uthread.c (bsd_uthread_close): Likewise.
6787 * corelow.c (core_close): Likewise.
6788 (core_close_cleanup): Remove parameter quitting from a caller.
6789 * event-top.c (async_disconnect): Likewise.
6790 * exec.c (exec_close_1): Remove parameter quitting.
6791 * go32-nat.c (go32_close): Likewise.
6792 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6793 parameter quitting from a caller.
6794 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6795 variable.
6796 (mips_linux_close): Remove parameter quitting. Remove parameter
6797 quitting from a caller.
6798 * monitor.c (monitor_close): Remove parameter quitting.
6799 * monitor.h (monitor_close): Likewise.
6800 * record-btrace.c (record_btrace_close): Likewise.
6801 * record-full.c (record_full_close): Likewise.
6802 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6803 it also from fprintf_unfiltered.
6804 * remote-mips.c (mips_close): Remove parameter quitting.
6805 (mips_detach): Remove parameter quitting from a caller.
6806 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6807 (gdbsim_close): Remove duplicate function comment. Remove parameter
6808 quitting and remove it also from printf_filtered.
6809 * remote.c (remote_close): Remove parameter quitting.
6810 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6811 * target.c (update_current_target): Remove parameter int from to_close
6812 de_fault.
6813 (push_target, unpush_target, pop_target): Remove parameter quitting from
6814 a caller.
6815 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6816 Remove parameter quitting from a caller.
6817 (target_preopen): Remove parameter quitting from a caller.
6818 (target_close): Remove parameter quitting. Remove parameter quitting
6819 from a caller two times. Remove parameter quitting also from
6820 fprintf_unfiltered.
6821 * target.h (struct target_ops): Remove parameter quitting and as int
6822 from fields to_xclose and to_close.
6823 (extern struct target_ops current_target):
6824 (target_close, pop_all_targets): Remove parameter quitting. Update the
6825 comment.
6826 (pop_all_targets_above): Remove parameter quitting.
6827 * top.c (quit_target): Remove parameter quitting from a caller.
6828 * tracepoint.c (tfile_close): Remove parameter quitting.
6829 * windows-nat.c (windows_close): Remove parameter quitting.
6830
35a7120b
CV
68312013-03-20 Corinna Vinschen <vinschen@redhat.com>
6832
6833 * windows-nat.c (handle_output_debug_string): Replace call
6834 to string_to_core_addr with call to strtoull.
6835
8249a5a9
YQ
68362013-03-20 Yao Qi <yao@codesourcery.com>
6837
6838 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6839 and write it to CTF metadata.
6840
2c15ef43
CV
68412013-03-19 Corinna Vinschen <vinschen@redhat.com>
6842
6843 * windows-nat.c (handle_output_debug_string): Change type of n to
6844 SIZE_T to avoid crash on 64 bit systems.
6845
1cdd3232
EZ
68462013-03-17 Eli Zaretskii <eliz@gnu.org>
6847
6848 * python/python-internal.h (HAVE_SNPRINTF)
6849 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6850 about redefinition of snprintf by pyerrors.h.
6851
3cb2ab1a
SE
68522013-03-15 Steve Ellcey <sellcey@mips.com>
6853
6854 * remote-sim.c (sim_command_completer): Make char arguments const.
6855
9ce98649
TT
68562013-03-15 Tom Tromey <tromey@redhat.com>
6857
6858 PR c++/15116:
6859 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6860
dccee2de
TT
68612013-03-14 Tom Tromey <tromey@redhat.com>
6862
6863 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6864 New fields.
6865 (get_file_crc): Move from symfile.c.
6866 (gdb_bfd_crc): New function.
6867 * gdb_bfd.h (gdb_bfd_crc): Declare.
6868 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6869 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6870 (separate_debug_file_exists): Use gdb_bfd_crc.
6871
cc0ea93c
TT
68722013-03-14 Tom Tromey <tromey@redhat.com>
6873
6874 * symfile.c (get_debug_link_info): Remove.
6875 (find_separate_debug_file_by_debuglink): Use
6876 bfd_get_debug_link_info.
6877
08c23b0d
TT
68782013-03-14 Tom Tromey <tromey@redhat.com>
6879
6880 * symtab.c (error_in_psymtab_expansion): New function.
6881 (lookup_symbol_aux_quick)
6882 (basic_lookup_transparent_type_quick): Remove "last resort"
6883 code. Use error_in_psymtab_expansion.
6884
288e77a7
JK
68852013-03-14 Doug Evans <dje@google.com>
6886 Jan Kratochvil <jan.kratochvil@redhat.com>
6887
6888 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6889 any successful compare_filenames_for_search or FILENAME_CMP.
6890 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6891 * symtab.c (iterate_over_some_symtabs): Likewise.
6892
8f1b8b82
JK
68932013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * source.c (print_source_lines_base): Make a local copy of
6896 symtab_to_fullname.
6897
23eb71e4
JK
68982013-03-14 Hui Zhu <hui_zhu@mentor.com>
6899 Jan Kratochvil <jan.kratochvil@redhat.com>
6900
6901 * source.c (print_source_lines_base): Suppress "file" for TUI.
6902
bb869963
SDJ
69032013-03-14 Keith Seitz <keiths@redhat.com>
6904 Alan Matsuoka <alanm@redhat.com>
6905
6906 PR c++/15203
6907 PR c++/15210
6908 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6909 TYPE_CODE_METHOD.
6910 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6911 symbols.
6912
d6682f9e
YQ
69132013-03-14 Yao Qi <yao@codesourcery.com>
6914
6915 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6916 status to tfile if trace is stopped by command 'tstop'.
6917
a22fa6e4
YQ
69182013-03-14 Yao Qi <yao@codesourcery.com>
6919
6920 * tracepoint.c (tfile_write_status): Write trace notes and user
6921 name into tfile if they are not NULL.
6922
d0353e76
YQ
69232013-03-14 Hui Zhu <hui@codesourcery.com>
6924 Yao Qi <yao@codesourcery.com>
6925
6926 * Makefile.in (REMOTE_OBS): Add ctf.o.
6927 (SFILES): Add ctf.c.
6928 (HFILES_NO_SRCDIR): Add ctf.h.
6929 * ctf.c, ctf.h: New files.
6930 * tracepoint.c: Include 'ctf.h'.
6931 (collect_pseudocommand): Remove static.
6932 (trace_save_command): Parse option "-ctf".
6933 Produce different trace file writers per option.
6934 Adjust output message.
6935 (trace_save_tfile, trace_save_ctf): New.
6936 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6937 * mi/mi-main.c: Include 'ctf.h'.
6938 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6939 trace_save_tfile or trace_save_ctf.
6940 * NEWS: Mention these changes.
6941
3f43bc09
YQ
69422013-03-14 Yao Qi <yao@codesourcery.com>
6943
6944 * tracepoint.c (trace_file_writer_xfree): New.
6945 (struct tfile_writer_data): New.
6946 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6947 (tfile_write_header, tfile_write_regblock_type): New.
6948 (tfile_write_status, tfile_write_uploaded_tsv): New.
6949 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6950 (tfile_write_raw_data, (tfile_end): New.
6951 (tfile_write_ops): New global variable.
6952 (TRACE_WRITE_R_BLOCK): New macro.
6953 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6954 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6955 (TRACE_WRITE_V_BLOCK): New macro.
6956 (trace_save): Add extra one parameter WRITER. Make it static.
6957 Use WRITER to writer trace.
6958 (tfile_trace_file_writer_new): New.
6959 (trace_save_command): Caller update.
6960 (trace_save_tfile): Write trace data in TFILE format.
6961 * tracepoint.h (struct trace_frame_write_ops): New.
6962 (struct trace_file_write_ops): New.
6963 (struct trace_file_writer): New.
6964 (trace_save): Remove its declaration.
6965 (trace_save_tfile): Declare it.
6966 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6967 instead of trace_save.
6968
58665b40
PA
69692013-03-13 Pedro Alves <palves@redhat.com>
6970
6971 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6972
10217050
PA
69732013-03-13 Pedro Alves <palves@redhat.com>
6974
6975 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6976 commented out code.
6977 * demangle.c (current_demangling_style_string): Make it const.
6978 (set_demangling_command): Assert the demangling style is known.
6979 Remove all handling of unknown styles. Set
6980 'current_demangling_style_string' to an element of the
6981 demangling_style_names array.
6982 (set_demangling_style): Delete.
6983 (_initialize_demangler): Set current_demangling_style_string to the
6984 element of the demangling_style_names array that corresponds to
6985 the default demangling style. Remove FIXME note. Don't call
6986 set_demangling_style.
6987 * gdb-demangle.h (set_demangling_style): Remove declaration.
6988
6f937416
PA
69892013-03-13 Pedro Alves <palves@redhat.com>
6990
6991 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6992 fields const.
6993 (ada_make_symbol_completion_list): Make "text0" parameter const.
6994 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6995 * breakpoint.c (condition_completer): Make "text" and "word"
6996 parameters const. Adjust.
6997 (check_tracepoint_command): Adjust to validate_actionline
6998 prototype change.
6999 (catch_syscall_completer): Make "text" and "word" parameters
7000 const.
7001 * cli/cli-cmds.c (show_user): Make "comname" local const.
7002 (valid_command_p): Make "command" parameter const.
7003 (alias_command): Make "alias_prefix" and "command_prefix" locals
7004 const.
7005 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7006 (add_alias_cmd): Make "name" and "oldname" parameters const.
7007 Adjust. No longer make copy of OLDNAME.
7008 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7009 (add_setshow_cmd_full, add_setshow_enum_cmd)
7010 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7011 (add_setshow_filename_cmd, add_setshow_string_cmd)
7012 (add_setshow_string_noescape_cmd)
7013 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7014 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7015 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7016 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7017 Make "name" parameter const.
7018 (help_cmd): Rename "command" parameter to "arg". New const local
7019 "command".
7020 (find_cmd): Make "command" parameter const.
7021 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7022 deprecated_cmd_warning prototype change.
7023 (undef_cmd_error): Make "cmdtype" parameter const.
7024 (lookup_cmd): Make "line" parameter const.
7025 (deprecated_cmd_warning): Change type of "text" parameter to
7026 pointer to const char, from pointer to pointer to char. Adjust.
7027 (lookup_cmd_composition): Make "text" parameter const.
7028 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7029 parameters const.
7030 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7031 const.
7032 * cli/cli-script.c (validate_comname): Make "tem" local const.
7033 (define_command): New const local "tem_c". Use it in calls to
7034 lookup_cmd.
7035 (document_command): Make "tem" and "comfull" locals const.
7036 (show_user_1): Make "prefix" and "name" parameters const.
7037 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7038 const.
7039 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7040 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7041 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7042 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7043 (complete_on_enum, add_setshow_enum_cmd)
7044 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7045 (add_setshow_filename_cmd, add_setshow_string_cmd)
7046 (add_setshow_string_noescape_cmd)
7047 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7048 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7049 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7050 Change prototypes, constifying strings.
7051 * completer.c (noop_completer, filename_completer): Make "text"
7052 and "prefix" parameters const.
7053 (location_completer, expression_completer)
7054 (complete_line_internal): Make "text" and "prefix" parameters
7055 const and adjust.
7056 (command_completer, signal_completer): Make "text" and "prefix"
7057 parameters const.
7058 * completer.h (noop_completer, filename_completer)
7059 (expression_completer, location_completer, command_completer)
7060 (signal_completer): Change prototypes.
7061 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7062 parameters const.
7063 * cp-abi.c (cp_abi_completer): Likewise.
7064 * expression.h (parse_expression_for_completion): Change
7065 prototype.
7066 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7067 parameters const.
7068 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7069 * infrun.c (handle_completer): Make "text" and "word" parameters
7070 const.
7071 * interps.c (interpreter_completer): Make "text" and "word"
7072 parameters const.
7073 * language.h (struct language_defn)
7074 <la_make_symbol_completion_list>: Make "text" and "word"
7075 parameters const.
7076 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7077 (parse_exp_in_context): Rename to ...
7078 (parse_exp_in_context_1): ... this.
7079 (parse_exp_in_context): Reimplement, with const hack from
7080 parse_exp_1.
7081 (parse_expression_for_completion): Make "string" parameter const.
7082 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7083 to pointer to const char. Adjust.
7084 (print_command_1): Make "exp" parameter const.
7085 (output_command): Rename to ...
7086 (output_command_const): ... this. Make "exp" parameter const.
7087 (output_command): Reimplement.
7088 (x_command): Adjust.
7089 (display_command): Rename "exp" parameter to "arg". New "exp"
7090 local, const version of "arg".
7091 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7092 "cmd_name" local const.
7093 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7094 call.
7095 (cmdpy_completer): Make "text" and "word" parameters const.
7096 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7097 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7098 const.
7099 * remote.c (_initialize_remote): Make "cmd_name" local const.
7100 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7101 parameters const. Adjust.
7102 (completion_list_add_fields): Make "sym_text", "text" and "word"
7103 parameters const.
7104 (struct add_name_data) <sym_text, text, word>: Make fields const.
7105 (default_make_symbol_completion_list_break_on): Make "text" and
7106 "word" parameters const. Adjust locals.
7107 (default_make_symbol_completion_list)
7108 (make_symbol_completion_list, make_symbol_completion_type)
7109 (make_symbol_completion_list_fn): Make "text" and "word"
7110 parameters const.
7111 (make_file_symbol_completion_list): Make "text", "word" and
7112 "srcfile" parameters const. Adjust locals.
7113 (add_filename_to_list): Make "text" and "word" parameters const.
7114 (struct add_partial_filename_data) <text, word>: Make fields
7115 const.
7116 (make_source_files_completion_list): Make "text" and "word"
7117 parameters const.
7118 * symtab.h (default_make_symbol_completion_list_break_on)
7119 (default_make_symbol_completion_list, make_symbol_completion_list)
7120 (make_symbol_completion_type enum type_code)
7121 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7122 (make_source_files_completion_list): Change prototype.
7123 * top.c (execute_command): Adjust to pass pointer to pointer to
7124 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7125 change.
7126 (set_verbose): Make "cmdname" local const.
7127 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7128 and adjust.
7129 (validate_actionline): Make "line" parameter a pointer to const
7130 char, and adjust.
7131 (encode_actions_1): Make "action_exp" local const, and adjust.
7132 (encode_actions): Adjust.
7133 (replace_comma): Delete.
7134 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7135 const, and adjust. Don't frob the action string while splitting
7136 it at commas. Instead, make a copy of each split substring in
7137 turn.
7138 (trace_dump_command): Adjust to validate_actionline prototype
7139 change.
7140 * tracepoint.h (decode_agent_options, decode_agent_options)
7141 (encode_actions, validate_actionline): Change prototypes.
7142 * valprint.h (output_command): Delete declaration.
7143 (output_command_const): Declare.
7144 * value.c (function_destroyer): Cast const away in xfree call.
7145
a0bcdaa7
PA
71462013-03-13 Pedro Alves <palves@redhat.com>
7147
7148 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7149 rather than casting 'const char * const *' to 'const char **'.
7150 * ada-lex.l (processInt): Make "trailer" local const. Remove
7151 'const char **' cast.
7152 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7153 locals, and use those as strtol output pointer, instead than doing
7154 invalid casts to from 'const char **' to 'char **'.
7155 (_initialize_demangle): Remove cast.
7156 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7157 locals, and use those as strtol output pointer, instead than doing
7158 invalid casts to from 'const char **' to 'char **'.
7159 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7160 casts.
7161 * stap-probe.c (stap_parse_register_operand)
7162 (stap_parse_single_operand): Likewise.
7163
8ddb1965
YQ
71642013-03-13 Yao Qi <yao@codesourcery.com>
7165
7166 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7167 the last matched 'V' blcok in trace frame.
7168
2d450646
JB
71692013-03-12 Joel Brobecker <brobecker@adacore.com>
7170
7171 * NEWS: Create a new section for the next release branch.
7172 Rename the section of the current branch, now that it has
7173 been cut.
7174
b4b79973 71752013-03-12 Joel Brobecker <brobecker@adacore.com>
7176
7177 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7178 * version.in: Bump version to 7.6.50.20130312-cvs.
7179
ee047554
KS
71802013-03-12 Keith Seitz <keiths@redhat.com>
7181
7182 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7183 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7184 Remove temporary copy of input string.
7185 (mi_execute_command_wrapper): Make "cmd" const.
7186 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7187 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7188 Use const strings.
7189 (mi_parse): Make "cmd" const.
7190 Use const strings.
7191 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7192
bbc13ae3
KS
71932013-03-12 Keith Seitz <keiths@redhat.com>
7194
7195 * ada-lang.c (ada_read_renaming_var_value): Pass const
7196 pointer to expression string to parse_exp_1.
7197 (create_excep_cond_exprs): Likewise.
7198 * ax-gdb.c (agent_eval_command_one): Likewise.
7199 (maint_agent_printf_command): Likewise.
7200 Constify much of the string handling/parsing.
7201 * breakpoint.c (set_breakpoint_condition): Pass const
7202 pointer to expression string to parse_exp_1.
7203 (update_watchpoint): Likewise.
7204 (parse_cmd_to_aexpr): Constify string handling.
7205 Pass const pointer to parse_exp_1.
7206 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7207 (find_condition_and_thread): Likewise.
7208 Make TOK const.
7209 (watch_command_1): Make "arg" const.
7210 Constify string handling.
7211 Copy the expression string instead of changing the input
7212 string.
7213 (update_breakpoint_location): Pass const pointer to
7214 parse_exp_1.
7215 * eval.c (parse_and_eval_address): Make "exp" const.
7216 (parse_to_comma_and_eval): Make "expp" const.
7217 (parse_and_eval): Make "exp" const.
7218 * expression.h (parse_expression): Make argument const.
7219 (parse_exp_1): Make first argument const.
7220 * findcmd.c (parse_find_args): Treat "args" as const.
7221 * linespec.c (parse_linespec): Pass const pointer to
7222 linespec_expression_to_pc.
7223 (linespec_expression_to_pc): Make "exp_ptr" const.
7224 * parse.c (parse_exp_1): Make "stringptr" const.
7225 Make a copy of the expression to pass to parse_exp_in_context until
7226 this whole interface can be constified.
7227 (parse_expression): Make "string" const.
7228 * printcmd.c (ui_printf): Treat "arg" as const.
7229 Handle const strings.
7230 * tracepoint.c (validate_actionline): Pass const pointer to
7231 all calls to parse_exp_1.
7232 (encode_actions_1): Likewise.
7233 * value.h (parse_to_comma_and_eval): Make argument const.
7234 (parse_and_eval_address): Likewise.
7235 (parse_and_eval): Likewise.
7236 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7237 (varobj_set_value): Likewise.
7238 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7239 constify string handling.
7240 Pass const pointers to parse_and_eval_address and
7241 parse_to_comman_and_eval.
7242 * cli/cli-utils.c (skip_to_space): Rename to ...
7243 (skip_to_space_const): ... this. Handle const strings.
7244 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7245 skip_to_space_const.
7246 (skip_to_space_const): Declare.
7247 * common/format.c (parse_format_string): Make "arg" const.
7248 Handle const strings.
7249 * common/format.h (parse_format_string): Make "arg" const.
7250 * gdbserver/ax.c (ax_printf): Make "format" const.
7251 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7252 of the expression string.
7253
f3cec7e6
HZ
72542013-03-12 Hui Zhu <hui@codesourcery.com>
7255
7256 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7257
9df7235c
HZ
72582013-03-12 Yao Qi <yao@codesourcery.com>
7259 Hui Zhu <hui@codesourcery.com>
7260
7261 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7262 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7263 DW_OP_deref_size.
7264
82d049ab
PH
72652013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7266
5f8e0b8f
MF
7267 * ada-lex.l (rules): Only recognize 'thread' as a
7268 delimiter when followed by numerals, as for c-exp.y.
7269 Use new rewind_to_char function to rewind the input for
7270 expression-delimiting tokens.
7271 (rewind_to_char): New function.
82d049ab 7272
8c1fb155
JK
72732013-03-11 Pedro Alves <palves@redhat.com>
7274 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 * configure: Regenerate.
7277 * configure.ac (check dynamic export flag): Link python test with
7278 $PYTHON_LIBS.
7279
cc81e1c6
DE
72802013-03-11 Doug Evans <dje@google.com>
7281 Keith Seitz <keiths@redhat.com>
7282
7283 * linespec.c (find_linespec_symbols): Call find_function_symbols
7284 first, and then call lookup_prefix_sym/find_method.
7285
39086a0e
PA
72862013-03-11 Pedro Alves <palves@redhat.com>
7287
7288 * charset.c (convert_between_encodings): Don't cast between
7289 different pointer to pointer types. Instead, make the 'inp' local
7290 be of the type iconv expects.
7291 (wchar_iterate): Don't cast between different pointer to pointer
7292 types. Instead, use new pointer local of the type iconv expects.
7293 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7294 Add new local of type char pointer, and use it to get a
7295 char/string view of the byte buffer, instead of casting between
7296 pointer to pointer types.
7297
90585175
HAQ
72982013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7299
7300 * remote.c (remote_set_trace_buffer_size): Move != operator
7301 to the start of next line to fix an ARI warning.
7302
59ea5688
MM
73032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7304
7305 * NEWS: Add record changes.
7306
946287b7
MM
73072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7308
7309 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7310 the instruction history disassembly.
7311 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7312 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7313
afedecd3
MM
73142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7315
7316 * Makefile.in (SFILES): Add record-btrace.c
7317 (COMMON_OBS): Add record-btrace.o
7318 * record-btrace.c: New.
7319 * objfiles.c: Include btrace.h.
7320 (free_objfile): call btrace_free_objfile.
7321
15984c13
MM
73222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7323
7324 * target.c (target_call_history, target_call_history_from,
7325 target_call_history_range): New.
7326 * target.h (target_ops) <to_call_history, to_call_history_from,
7327 to_call_history_range>: New fields.
7328 (target_call_history, target_call_history_from,
7329 target_call_history_range): New declaration.
7330 * record.c (get_call_history_modifiers, cmd_record_call_history,
7331 record_call_history_size): New.
7332 (_initialize_record): Add the "record function-call-history" command.
7333 Add "set/show record function-call-history-size" commands.
7334 * record.h (record_print_flag): New.
7335
67c86d06
MM
73362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7337
7338 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7339 to_insn_history_range>: New fields.
7340 (target_insn_history): New.
7341 (target_insn_history_from): New.
7342 (target_insn_history_range): New.
7343 * target.c (target_insn_history): New.
7344 (target_insn_history_from): New.
7345 (target_insn_history_range): New.
7346 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7347 (record_insn_history_size): New.
7348 (get_insn_number): New.
7349 (get_context_size): New.
7350 (no_chunk): New.
7351 (get_insn_history_modifiers): New.
7352 (cmd_record_insn_history): New.
7353 (_initialize_record): Add "set/show record instruction-history-size"
7354 command. Add "record instruction-history" command.
7355
7c1687a9
MM
73562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7357
7358 * record.h (record_disconnect): New.
7359 (record_detach): New.
7360 (record_mourn_inferior): New.
7361 (record_kill): New.
7362 * record-full.c (record_disconnect, record_detach,
7363 record_mourn_inferior, record_kill): Move to...
7364 * record.c: ...here.
7365 (DEBUG): New.
7366 (record_stop): New.
7367 (record_unpush): New.
7368 (cmd_record_stop): Call record_stop. Replace unpush_target
7369 call with record_unpush call.
7370 (record_disconnect, record_detach): Assert that the target
7371 is of record stratum. Call record_unpush, record_stop, and
7372 DEBUG.
7373 (record_mourn_inferior, record_kill): Assert that the target
7374 is of record stratum. Call record_unpush and DEBUG.
7375
25ea693b
MM
73762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7377
7378 * record-full.h, record-full.c (record_memory_query): Rename
7379 to ...
7380 (record_full_memory_query): ...this. Update all users.
7381 (record_arch_list_add_reg): Rename to ...
7382 (record_full_arch_list_add_reg): ...this. Update all users.
7383 (record_arch_list_add_mem): Rename to ...
7384 (record_full_arch_list_add_mem): ...this. Update all users.
7385 (record_arch_list_add_end): Rename to ...
7386 (record_full_arch_list_add_end): ...this. Update all users.
7387 (record_gdb_operation_disable_set): Rename to ...
7388 (record_full_gdb_operation_disable_set): ...this.
7389 Update all users.
7390
88d1aa9d
MM
73912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7392
7393 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7394 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7395 (RECORD_IS_REPLAY): Renamed to ...
7396 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7397 (RECORD_FILE_MAGIC): Renamed to ...
7398 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7399 (record_mem_entry): Renamed to ...
7400 (record_full_mem_entry): ... this. Updated all users.
7401 (record_reg_entry): Renamed to ...
7402 (record_full_reg_entry): ... this. Updated all users.
7403 (record_end_entry): Renamed to ...
7404 (record_full_end_entry): ... this. Updated all users.
7405 (record_type) <record_end, record_reg, record_mem>: Renamed
7406 to ...
7407 (record_full_type) <record_full_end, record_full_reg,
7408 record_full_mem>: ... this. Updated all users.
7409 (record_entry): Renamed to ...
7410 (record_full_entry): ... this. Updated all users.
7411 (record_core_buf_entry): Renamed to ...
7412 (record_full_core_buf_entry): ... this. Updated all users.
7413 (record_core_regbuf): Renamed to ...
7414 (record_full_core_regbuf): ... this. Updated all users.
7415 (record_core_start): Renamed to ...
7416 (record_full_core_start): ... this. Updated all users.
7417 (record_core_end): Renamed to ...
7418 (record_full_core_end): ... this. Updated all users.
7419 (record_core_buf_list): Renamed to ...
7420 (record_full_core_buf_list): ... this. Updated all users.
7421 (record_first): Renamed to ...
7422 (record_full_first): ... this. Updated all users.
7423 (record_list): Renamed to ...
7424 (record_full_list): ... this. Updated all users.
7425 (record_arch_list_head): Renamed to ...
7426 (record_full_arch_list_head): ... this. Updated all users.
7427 (record_arch_list_tail): Renamed to ...
7428 (record_full_arch_list_tail): ... this. Updated all users.
7429 (record_stop_at_limit): Renamed to ...
7430 (record_full_stop_at_limit): ... this. Updated all users.
7431 (record_insn_max_num): Renamed to ...
7432 (record_full_insn_max_num): ... this. Updated all users.
7433 (record_insn_num): Renamed to ...
7434 (record_full_insn_num): ... this. Updated all users.
7435 (record_insn_count): Renamed to ...
7436 (record_full_insn_count): ... this. Updated all users.
7437 (record_ops): Renamed to ...
7438 (record_full_ops): ... this. Updated all users.
7439 (record_core_ops): Renamed to ...
7440 (record_full_core_ops): ... this. Updated all users.
7441 (set_record_cmdlist): Renamed to ...
7442 (set_record_full_cmdlist): ... this. Updated all users.
7443 (show_record_cmdlist): Renamed to ...
7444 (show_record_full_cmdlist): ... this. Updated all users.
7445 (record_cmdlist): Renamed to ...
7446 (record_full_cmdlist): ... this. Updated all users.
7447 (record_beneath_to_resume_ops): Renamed to ...
7448 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7449 (record_beneath_to_resume): Renamed to ...
7450 (record_full_beneath_to_resume): ... this. Updated all users.
7451 (record_beneath_to_wait_ops): Renamed to ...
7452 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7453 (record_beneath_to_wait): Renamed to ...
7454 (record_full_beneath_to_wait): ... this. Updated all users.
7455 (record_beneath_to_store_registers_ops): Renamed to ...
7456 (record_full_beneath_to_store_registers_ops): ... this.
7457 Updated all users.
7458 (record_beneath_to_store_registers): Renamed to ...
7459 (record_full_beneath_to_store_registers): ... this.
7460 Updated all users.
7461 (record_beneath_to_xfer_partial_ops): Renamed to ...
7462 (record_full_beneath_to_xfer_partial_ops): ... this.
7463 Updated all users.
7464 (record_beneath_to_xfer_partial): Renamed to ...
7465 (record_full_beneath_to_xfer_partial): ... this.
7466 Updated all users.
7467 (record_beneath_to_insert_breakpoint): Renamed to ...
7468 (record_full_beneath_to_insert_breakpoint): ... this.
7469 Updated all users.
7470 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7471 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7472 Updated all users.
7473 (record_beneath_to_stopped_data_address): Renamed to ...
7474 (record_full_beneath_to_stopped_data_address): ... this.
7475 Updated all users.
7476 (record_beneath_to_async): Renamed to ...
7477 (record_full_beneath_to_async): ... this. Updated all users.
7478 (record_goto_insn): Renamed to ...
7479 (record_full_goto_insn): ... this. Updated all users.
7480 (record_save): Renamed to ...
7481 (record_full_save): ... this. Updated all users.
7482 (record_reg_alloc): Renamed to ...
7483 (record_full_reg_alloc): ... this. Updated all users.
7484 (record_reg_release): Renamed to ...
7485 (record_full_reg_release): ... this. Updated all users.
7486 (record_mem_alloc): Renamed to ...
7487 (record_full_mem_alloc): ... this. Updated all users.
7488 (record_mem_release): Renamed to ...
7489 (record_full_mem_release): ... this. Updated all users.
7490 (record_end_alloc): Renamed to ...
7491 (record_full_end_alloc): ... this. Updated all users.
7492 (record_end_release): Renamed to ...
7493 (record_full_end_release): ... this. Updated all users.
7494 (record_entry_release): Renamed to ...
7495 (record_full_entry_release): ... this. Updated all users.
7496 (record_list_release): Renamed to ...
7497 (record_full_list_release): ... this. Updated all users.
7498 (record_list_release_following): Renamed to ...
7499 (record_full_list_release_following): ... this.
7500 Updated all users.
7501 (record_list_release_first): Renamed to ...
7502 (record_full_list_release_first): ... this. Updated all users.
7503 (record_arch_list_add): Renamed to ...
7504 (record_full_arch_list_add): ... this. Updated all users.
7505 (record_get_loc): Renamed to ...
7506 (record_full_get_loc): ... this. Updated all users.
7507 (record_check_insn_num): Renamed to ...
7508 (record_full_check_insn_num): ... this. Updated all users.
7509 (record_arch_list_cleanups): Renamed to ...
7510 (record_full_arch_list_cleanups): ... this. Updated all users.
7511 (record_message): Renamed to ...
7512 (record_full_message): ... this. Updated all users.
7513 (record_message_wrapper): Renamed to ...
7514 (record_full_message_wrapper): ... this. Updated all users.
7515 (record_message_wrapper_safe): Renamed to ...
7516 (record_full_message_wrapper_safe): ... this. Updated all users.
7517 (record_gdb_operation_disable): Renamed to ...
7518 (record_full_gdb_operation_disable): ... this. Updated all users.
7519 (record_hw_watchpoint): Renamed to ...
7520 (record_full_hw_watchpoint): ... this. Updated all users.
7521 (record_exec_insn): Renamed to ...
7522 (record_full_exec_insn): ... this. Updated all users.
7523 (record_restore): Renamed to ...
7524 (record_full_restore): ... this. Updated all users.
7525 (record_async_inferior_event_token): Renamed to ...
7526 (record_full_async_inferior_event_token): ... this.
7527 Updated all users.
7528 (record_async_inferior_event_handler): Renamed to ...
7529 (record_full_async_inferior_event_handler): ... this.
7530 Updated all users.
7531 (record_core_open_1): Renamed to ...
7532 (record_full_core_open_1): ... this. Updated all users.
7533 (record_open_1): Renamed to ...
7534 (record_full_open_1): ... this. Updated all users.
7535 (record_open): Renamed to ...
7536 (record_full_open): ... this. Updated all users.
7537 (record_close): Renamed to ...
7538 (record_full_close): ... this. Updated all users.
7539 (record_resume_step): Renamed to ...
7540 (record_full_resume_step): ... this. Updated all users.
7541 (record_resumed): Renamed to ...
7542 (record_full_resumed): ... this. Updated all users.
7543 (record_execution_dir): Renamed to ...
7544 (record_full_execution_dir): ... this. Updated all users.
7545 (record_resume): Renamed to ...
7546 (record_full_resume): ... this. Updated all users.
7547 (record_get_sig): Renamed to ...
7548 (record_full_get_sig): ... this. Updated all users.
7549 (record_sig_handler): Renamed to ...
7550 (record_full_sig_handler): ... this. Updated all users.
7551 (record_wait_cleanups): Renamed to ...
7552 (record_full_wait_cleanups): ... this. Updated all users.
7553 (record_wait_1): Renamed to ...
7554 (record_full_wait_1): ... this. Updated all users.
7555 (record_wait): Renamed to ...
7556 (record_full_wait): ... this. Updated all users.
7557 (record_stopped_by_watchpoint): Renamed to ...
7558 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7559 (record_disconnect): Renamed to ...
7560 (record_full_disconnect): ... this. Updated all users.
7561 (record_detach): Renamed to ...
7562 (record_full_detach): ... this. Updated all users.
7563 (record_mourn_inferior): Renamed to ...
7564 (record_full_mourn_inferior): ... this. Updated all users.
7565 (record_kill): Renamed to ...
7566 (record_full_kill): ... this. Updated all users.
7567 (record_stopped_data_address): Renamed to ...
7568 (record_full_stopped_data_address): ... this. Updated all users.
7569 (record_registers_change): Renamed to ...
7570 (record_full_registers_change): ... this. Updated all users.
7571 (record_store_registers): Renamed to ...
7572 (record_full_store_registers): ... this. Updated all users.
7573 (record_xfer_partial): Renamed to ...
7574 (record_full_xfer_partial): ... this. Updated all users.
7575 (record_breakpoint): Renamed to ...
7576 (record_full_breakpoint): ... this. Updated all users.
7577 (record_breakpoint_p): Renamed to ...
7578 (record_full_breakpoint_p): ... this. Updated all users.
7579 (record_breakpoints): Renamed to ...
7580 (record_full_breakpoints): ... this. Updated all users.
7581 (record_sync_record_breakpoints): Renamed to ...
7582 (record_full_sync_record_breakpoints): ... this.
7583 Updated all users.
7584 (record_init_record_breakpoints): Renamed to ...
7585 (record_full_init_record_breakpoints): ... this.
7586 Updated all users.
7587 (record_insert_breakpoint): Renamed to ...
7588 (record_full_insert_breakpoint): ... this. Updated all users.
7589 (record_remove_breakpoint): Renamed to ...
7590 (record_full_remove_breakpoint): ... this. Updated all users.
7591 (record_can_execute_reverse): Renamed to ...
7592 (record_full_can_execute_reverse): ... this. Updated all users.
7593 (record_get_bookmark): Renamed to ...
7594 (record_full_get_bookmark): ... this. Updated all users.
7595 (record_goto_bookmark): Renamed to ...
7596 (record_full_goto_bookmark): ... this. Updated all users.
7597 (record_async): Renamed to ...
7598 (record_full_async): ... this. Updated all users.
7599 (record_can_async_p): Renamed to ...
7600 (record_full_can_async_p): ... this. Updated all users.
7601 (record_is_async_p): Renamed to ...
7602 (record_full_is_async_p): ... this. Updated all users.
7603 (record_execution_direction): Renamed to ...
7604 (record_full_execution_direction): ... this. Updated all users.
7605 (record_info): Renamed to ...
7606 (record_full_info): ... this. Updated all users.
7607 (record_delete): Renamed to ...
7608 (record_full_delete): ... this. Updated all users.
7609 (record_is_replaying): Renamed to ...
7610 (record_full_is_replaying): ... this. Updated all users.
7611 (record_goto_entry): Renamed to ...
7612 (record_full_goto_entry): ... this. Updated all users.
7613 (record_goto_begin): Renamed to ...
7614 (record_full_goto_begin): ... this. Updated all users.
7615 (record_goto_end): Renamed to ...
7616 (record_full_goto_end): ... this. Updated all users.
7617 (record_goto): Renamed to ...
7618 (record_full_goto): ... this. Updated all users.
7619 (init_record_ops): Renamed to ...
7620 (init_record_full_ops): ... this. Updated all users.
7621 (record_core_resume): Renamed to ...
7622 (record_full_core_resume): ... this. Updated all users.
7623 (record_core_kill): Renamed to ...
7624 (record_full_core_kill): ... this. Updated all users.
7625 (record_core_fetch_registers): Renamed to ...
7626 (record_full_core_fetch_registers): ... this. Updated all users.
7627 (record_core_prepare_to_store): Renamed to ...
7628 (record_full_core_prepare_to_store): ... this. Updated all users.
7629 (record_core_store_registers): Renamed to ...
7630 (record_full_core_store_registers): ... this. Updated all users.
7631 (record_core_xfer_partial): Renamed to ...
7632 (record_full_core_xfer_partial): ... this. Updated all users.
7633 (record_core_insert_breakpoint): Renamed to ...
7634 (record_full_core_insert_breakpoint): ... this. Updated all users.
7635 (record_core_remove_breakpoint): Renamed to ...
7636 (record_full_core_remove_breakpoint): ... this. Updated all users.
7637 (record_core_has_execution): Renamed to ...
7638 (record_full_core_has_execution): ... this. Updated all users.
7639 (init_record_core_ops): Renamed to ...
7640 (init_record_full_core_ops): ... this. Updated all users.
7641 (cmd_record_restore): Renamed to ...
7642 (cmd_record_full_restore): ... this. Updated all users.
7643 (record_save_cleanups): Renamed to ...
7644 (record_full_save_cleanups): ... this. Updated all users.
7645 (cmd_record_start): Renamed to ...
7646 (cmd_record_full_start): ... this. Updated all users.
7647 (set_record_insn_max_num): Renamed to ...
7648 (set_record_full_insn_max_num): ... this. Updated all users.
7649 (set_record_command): Renamed to ...
7650 (set_record_full_command): ... this. Updated all users.
7651 (show_record_command): Renamed to ...
7652 (show_record_full_command): ... this. Updated all users.
7653 (_initialize_record): Renamed to ...
7654 (_initialize_record_full): ... this. Updated all users.
7655
d02ed0bb
MM
76562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7657
7658 * record.h: Split into this and ...
7659 * record-full.h: ... this.
7660 * record.c: Split into this and ...
7661 * record-full.c: ... this.
7662 * target.h (target_ops): Add new fields to_info_record,
7663 to_save_record, to_delete_record, to_record_is_replaying,
7664 to_goto_record_begin, to_goto_record_end, to_goto_record.
7665 (target_info_record): New.
7666 (target_save_record): New.
7667 (target_supports_delete_record): New.
7668 (target_delete_record): New.
7669 (target_record_is_replaying): New.
7670 (target_goto_record_begin): New.
7671 (target_goto_record_end): New.
7672 (target_goto_record): New.
7673 * target.c (target_info_record): New.
7674 (target_save_record): New.
7675 (target_supports_delete_record): New.
7676 (target_delete_record): New.
7677 (target_record_is_replaying): New.
7678 (target_goto_record_begin): New.
7679 (target_goto_record_end): New.
7680 (target_goto_record): New.
7681 * record.h: Declare struct cmd_list_element.
7682 (record_cmdlist): New declaration.
7683 (set_record_cmdlist): New declaration.
7684 (show_record_cmdlist): New declaration.
7685 (info_record_cmdlist): New declaration.
7686 (cmd_record_goto): New declaration.
7687 * record.c: Remove unnecessary includes.
7688 Include inferior.h.
7689 (cmd_record_goto): Remove declaration.
7690 (record_cmdlist): Now extern. Initialize.
7691 (set_record_cmdlist): Now extern. Initialize.
7692 (show_record_cmdlist): Now extern. Initialize.
7693 (info_record_cmdlist): Now extern. Initialize.
7694 (find_record_target): New.
7695 (require_record_target): New.
7696 (cmd_record_start): Update.
7697 (cmd_record_delete): Remove target-specific code.
7698 Call target_delete_record.
7699 (cmd_record_stop): Unpush any record target.
7700 (set_record_insn_max_num): Move to record-full.c
7701 (set_record_command): Add comment.
7702 (show_record_command): Add comment.
7703 (info_record_command): Update comment.
7704 Remove target-specific code.
7705 Call the record target's to_info_record.
7706 (cmd_record_start): New.
7707 (cmd_record_goto): Now extern.
7708 Remove target-specific code.
7709 Call target_goto_begin, target_goto_end, or target_goto.
7710 (_initialize_record): Move record target ops initialization to
7711 record-full.c.
7712 Change "record" command help text.
7713 Move "record restore", "record set", and "record show" commands to
7714 record-full.c.
7715 * Makefile.in (SFILES): Add record-full.c.
7716 (HFILES_NO_SRCDIR): Add record-full.h.
7717 (COMMON_OBS): Add record-full.o.
7718 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7719 * arm-tdep.c: Include record-full.h.
7720 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7721 * i386-tdep.c: Include record-full.h.
7722 * infrun.c: Include record-full.h.
7723 * linux-record.c: Include record-full.h.
7724 * moxie-tdep.c: Include record-full.h.
7725 * record-full.c: Include record-full.h.
7726 Change module comment.
7727 (set_record_full_cmdlist): New.
7728 (show_record_full_cmdlist): New.
7729 (record_full_cmdlist): New.
7730 (record_goto_insn): New declaration.
7731 (record_save): New declaration.
7732 (record_check_insn_num): Change query string.
7733 (record_info): New.
7734 (record_delete): New.
7735 (record_is_replaying): New.
7736 (record_goto_entry): New.
7737 (record_goto_begin): New.
7738 (record_goto_end): New.
7739 (record_goto): New.
7740 (init_record_ops): Update.
7741 (init_record_core_ops): Update.
7742 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7743 (cmd_record_start): New.
7744 (set_record_insn_max_num): Moved from record.c
7745 (set_record_full_command): New.
7746 (show_record_full_command): New.
7747 (_initialize_record_full): New.
7748
b48d48eb
MM
77492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7750
7751 * target.h (add_deprecated_target_alias): New.
7752 * target.c (add_deprecated_target_alias): New.
7753
a950d57c
MM
77542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7755
7756 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7757 and signal.h.
7758 (linux_supports_btrace): Add kernel and
7759 cpuid check.
7760 (kernel_supports_btrace): New function.
7761 (cpu_supports_btrace): New function.
7762 (intel_supports_btrace): New function.
7763
9accd112
MM
77642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7765
7766 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7767 * remote.c: Include btrace.h.
7768 (struct btrace_target_info): New struct.
7769 (remote_supports_btrace): New function.
7770 (send_Qbtrace): New function.
7771 (remote_enable_btrace): New function.
7772 (remote_disable_btrace): New function.
7773 (remote_teardown_btrace): New function.
7774 (remote_read_btrace): New function.
7775 (init_remote_ops): Add btrace ops.
7776 (enum <unnamed>): Add btrace packets.
7777 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7778 (_initialize_remote): Add packet configuration for branch tracing.
7779
c12a2917
MM
77802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7781
7782 * features/btrace.dtd: New file.
7783 * Makefile.in (XMLFILES): Add btrace.dtd.
7784 * btrace.h (parse_xml_btrace): New declaration.
7785 * btrace.c: Include xml-support.h.
7786 (parse_xml_btrace): New function.
7787 (parse_xml_btrace_block): New function.
7788 (block_attributes): New struct.
7789 (btrace_attributes): New struct.
7790 (btrace_children): New struct.
7791 (btrace_elements): New struct.
7792
3e3aea48
MM
77932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7794
7795 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7796 (amd64_linux_enable_btrace): New.
7797 (amd64_linux_disable_btrace): New.
7798 (amd64_linux_teardown_btrace): New.
7799 (_initialize_amd64_linux_nat): Initialize btrace ops.
7800 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7801 (i386_linux_enable_btrace): New.
7802 (i386_linux_disable_btrace): New.
7803 (i386_linux_teardown_btrace): New.
7804 (_initialize_i386_linux_nat): Initialize btrace ops.
7805 * config/i386/linux.mh: Add linux-btrace.o.
7806 * config/i386/linux64.mh: Add linux-btrace.o.
7807
7c97f91e
MM
78082013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7809
7810 * common/linux_btrace.h: New file.
7811 * common/linux_btrace.c: New file.
7812 * Makefile.in (SFILES): Add btrace.c.
7813 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7814 (COMMON_OBS): Add btrace.o.
7815 (linux-btrace.o): New rule.
7816
1999790b 78172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
7818
7819 * target.h: Include btrace.h.
7820 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7821 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7822 * target.c (target_supports_btrace): New function.
7823 (target_enable_btrace): New function.
7824 (target_disable_btrace): New function.
7825 (target_teardown_btrace): New function.
7826 (target_read_btrace): New function.
7827 * btrace.h: New file.
7828 * btrace.c: New file.
7829 * Makefile.in: Add btrace.c.
7830 * gdbthread.h: Include btrace.h.
7831 (struct thread_info): Add btrace field.
7832 * thread.c: Include btrace.h.
7833 (clear_thread_inferior_resources): Call target_teardown_btrace.
7834 * common/btrace-common.h: New file.
7835
61a31a67
JK
78362013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7837
7838 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7839 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7840 kill_status to outer block.
7841
05c56a9d
JK
78422013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7843
7844 Fix entry-values if the callee called a noreturn function.
7845 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7846 get_frame_address_in_block. Add new comment.
7847
9112db09
JK
78482013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Fix entry-values in C++ across CUs.
7851 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7852 lookup_minimal_symbol. Add a comment.
7853 * dwarf2read.c
7854 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7855 DW_AT_linkage_name.
7856
9b67fcec
YQ
78572013-03-08 Yao Qi <yao@codesourcery.com>
7858
7859 * tracepoint.c (_initialize_tracepoint): Indent the code.
7860
6221be90
PA
78612013-03-08 Pedro Alves <palves@redhat.com>
7862
7863 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7864 (parse_find_args, find_command): Change type of pattern buffer
7865 locals to 'gdb_byte *'.
7866
be9a119c 78672013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
7868 Hafiz Abid Qadeer <abidh@codesourcery.com>
7869
7870 * NEWS: Mention set and show trace-buffer-size commands.
7871 Mention new packet.
7872 * target.h (struct target_ops): New method
7873 to_set_trace_buffer_size.
7874 (target_set_trace_buffer_size): New macro.
7875 * target.c (update_current_target): Set up new method.
7876 * tracepoint.c (trace_buffer_size): New global.
7877 (start_tracing): Send it to the target.
7878 (set_trace_buffer_size): New function.
7879 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7880 * remote.c (remote_set_trace_buffer_size): New function.
7881 (_initialize_remote): Use it.
7882 (QTBuffer:size) New remote command.
7883 (PACKET_QTBuffer_size): New enum.
7884 (remote_protocol_features): Add an entry for
7885 PACKET_QTBuffer_size.
7886
7da3ab79
TT
78872013-03-08 Tom Tromey <tromey@redhat.com>
7888
7889 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7890 variable.
7891
0c1f71e7
PA
78922013-03-07 Pedro Alves <palves@redhat.com>
7893
7894 * target.c (target_read_stralloc, target_fileio_read_alloc):
7895 *Cast pointer to 'gdb_byte *' in target call.
7896
c8af03a2
PA
78972013-03-07 Pedro Alves <palves@redhat.com>
7898
7899 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7900 call.
7901
529480d0
KS
79022013-03-07 Keith Seitz <keiths@redhat.com>
7903
7904 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7905 (trace_pass_command): Likewise.
7906 * cli/cli-cmds.c: Include cli/cli-utils.h.
7907 (source_command): Use skip-spaces.
7908 (disassemble_command): Likewise.
7909 * findcmd.c: Include cli/cli-utils.h.
7910 (parse_find_args): Use skip_spaces.
7911 * go32-nat.c: Include cli/cli-utils.h.
7912 (go32_sldt): Use skip_spaces.
7913 (go32_sgdt): Likewise.
7914 (go32_sidt): Likewise.
7915 (go32_pde): Likewise.
7916 (go32_pte): Likewise.
7917 (go32_pte_for_address): Likewise.
7918 * infcmd.c: Include cli/cli-utils.h.
7919 (registers_info): Use skip_spaces.
7920 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7921 (linux_info_proc): Likewise.
7922 * linux-thread-db.c: Include cli/cli-utils.h.
7923 (info_auto_load_libthread_db): Use skip_spaces_const.
7924 * m32r-rom.c: Include cli/cli-utils.h.
7925 (m32r_upload_command): Use skip_spaces.
7926 * maint.c: Include cli/cli-utils.h.
7927 (maintenance_translate_address): Use skip_spaces.
7928 * mi/mi-parse.c: Include cli/cli-utils.h.
7929 (mi_parse_argv): Use skip_spaces.
7930 (mi_parse): Likewise.
7931 * minsyms.c: Include cli/cli-utils.h.
7932 (msymbol_hash_iw): Use skip_spaces_const.
7933 * objc-lang.c: Include cli/cli-utils.h.
7934 (parse_selector): Use skip_spaces.
7935 (parse_method): Likewise.
7936 * python/python.c: Include cli/cli-utils.h.
7937 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7938 (python_command)[HAVE_PYTHON]: Likewise.
7939 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7940 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7941 (m32r_load): Use skip_spaces.
7942 * serial.c: Include cli/cli-utils.h.
7943 (serial_open): Use skip_spaces_const.
7944 * stack.c: Include cli/cli-utils.h.
7945 (parse_frame_specification_1): Use skip_spaces_const.
7946 * symfile.c: Include cli/cli-utils.h.
7947 (set_ext_lang_command): Use skip_spaces.
7948 * symtab.c: Include cli/cli-utils.h.
7949 (rbreak_command): Use skip_spaces.
7950 * thread.c (thread_name_command): Use skip_spaces.
7951 * tracepoint.c (validate_actionline): Use skip_spaces.
7952 (encode_actions_1): Likewise.
7953 (trace_find_range_command): Likewise.
7954 (trace_find_outside_command): Likewise.
7955 (trace_dump_actions): Likewise.
7956
ac91cd70
PA
79572013-03-07 Pedro Alves <palves@redhat.com>
7958
7959 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7960 * expprint.c (print_subexp_standard): Likewise.
7961 * utils.c (host_char_to_target): Likewise.
7962 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7963 * varobj.c (value_get_print_value): Change type of local to char*.
7964 Cast it gdb_byte * in call to language printer.
7965
2898e560
PA
79662013-03-07 Pedro Alves <palves@redhat.com>
7967
7968 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7969 gdb_byte *'.
7970 (make_wchar_iterator): Remove cast to char*.
7971 (wchar_iterate): Change type of local.
7972
a09b4448
PA
79732013-03-07 Pedro Alves <palves@redhat.com>
7974
7975 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7976 for 'regcache->register_status'.
7977
20ced3e4
PA
79782013-03-07 Pedro Alves <palves@redhat.com>
7979
c2d6a675 7980 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
7981 int.
7982
fe106009
PA
79832013-03-07 Pedro Alves <palves@redhat.com>
7984
7985 * stap-probe.c (handle_stap_probe): Add cast to char*.
7986
8ac2c12b
PA
79872013-03-07 Pedro Alves <palves@redhat.com>
7988
7989 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7990 RECORD_MSGRCV>: Pass a signed variable to
7991 regcache_raw_read_signed, instead of an unsigned one.
7992
99f0a309
PA
79932013-03-07 Pedro Alves <palves@redhat.com>
7994
7995 * remote-notif.c (notif_debug): Change type to int.
7996 * remote-notif.h (notif_debug): Likewise.
7997
964b8317
PA
79982013-03-07 Pedro Alves <palves@redhat.com>
7999
8000 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8001
f0cc8ad4
PA
80022013-03-07 Pedro Alves <palves@redhat.com>
8003
8004 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8005 * remote.h (hex2bin, bin2hex): ... here.
8006 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8007
77dec115
EZ
80082013-03-07 Eli Zaretskii <eliz@gnu.org>
8009
8010 * utils.c (initialize_utils): Improve doc strings of "set/show
8011 width", "set/show height", and "set/show pagination".
8012
741d92cf
KS
80132013-03-06 Keith Seitz <keiths@redhat.com>
8014
8015 * ax-gdb.c (gen_printf): Make FORMAT const.
8016 * ax-gdb.h (gen_printf): Likewise.
8017 * ax-general.c (ax_string): Make STR const.
8018 * ax.h (ax_string): Likewise.
8019
7b6c814e
DE
80202013-03-06 Doug Evans <dje@google.com>
8021
8022 * elfread.c (elf_symfile_read): Move debugging printf to more
8023 logical location.
8024
634334ab
PA
80252013-03-06 Pedro Alves <palves@redhat.com>
8026
8027 * python/py-utils.c (target_string_to_unicode): Delete function.
8028 * python/python-internal.h (target_string_to_unicode): Delete
8029 declaration.
8030
e482a1a7
PM
80312013-03-06 Pierre Muller <muller@sourceware.org>
8032
8033 * linespec.c (get_current_search_block): ARI fix, use (void)
8034 for empty parameter list.
8035
4eeaa230
DE
80362013-03-05 Doug Evans <dje@google.com>
8037
8038 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8039 of old ada_lookup_symbol_list. In !full_search case, don't
8040 search superblocks.
8041 (ada_lookup_symbol_list): Delete arg full_search, all callers
8042 updated. Call ada_lookup_symbol_list_worker.
8043 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8044 * ada-lang.h (ada_lookup_symbol_list): Update.
8045 * language.h (language_defn): Update comment for
8046 la_iterate_over_symbols.
8047 * linespec.c (iterate_over_file_blocks): New function.
8048 (iterate_over_all_matching_symtabs): Call it.
8049 (lookup_prefix_sym): Ditto.
8050 (get_current_search_block): New function.
8051 (get_search_block): Delete.
8052 (find_label_symbols): Call get_current_search_block.
8053 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8054 * symtab.c (iterate_over_symbols): Don't search superblocks.
8055
b69b1fb1
YQ
80562013-03-05 Yao Qi <yao@codesourcery.com>
8057
8058 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8059 parameter VAR's type from "unsigned int" to "int".
8060 * command.h (var_zuinteger_unlimited): Update its comments.
8061 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8062
3c095f49
CV
80632013-03-05 Corinna Vinschen <vinschen@redhat.de>
8064
8065 * NEWS: Mention new target x86_64-*-cygwin*.
8066
b5b0b0af
CV
80672013-03-05 Corinna Vinschen <vinschen@redhat.de>
8068
8069 * configure.host: Add x86_64-*-cygwin* as host.
8070 * configure.tgt: Add x86_64-*-cygwin* as target.
8071 * config/i386/cygwin64.mh: New file.
8072
f6f99966
JK
80732013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8074
8075 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8076
33f448b1
JK
80772013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8078
8079 * linespec.c (struct linespec_canonical_name): New.
8080 (struct linespec_state): Change canonical_names type to it.
8081 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8082 xrealloc element size. Initialize the different CANONICAL fields.
8083 (canonical_to_fullform): New.
8084 (filter_results): Use it. Add variables canonical, fullform and
8085 cleanup.
8086 (struct decode_line_2_item, decode_line_2_compare_items): New.
8087 (decode_line_2): Remove variables iter and item_names, add variables
8088 items and items_count. Modify the code for these new variables.
8089
feb14725
CV
80902013-03-04 Corinna Vinschen <vinschen@redhat.com>
8091
8092 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8093 calling do_cleanup.
8094
e83b17ba
HZ
80952013-03-04 Luis Machado <lgustavo@codesourcery.com>
8096
8097 * tracepoint.c (build_traceframe_info): Add code for byte order.
8098
a2d13a0d
KB
80992013-03-02 Kevin Buettner <kevinb@redhat.com>
8100
8dddcae8
KB
8101 * v850-tdep.c: (v850e2_register_name): Revise system register
8102 names to match current V850E2M architecture specifications.
8103 Update register number enum comments too.
f5aee5ee 8104
d79e58d8
JW
81052013-03-01 Jiong Wang <jiwang@tilera.com>
8106 Pedro Alves <palves@redhat.com>
8107
8108 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8109 to END_ADDR.
8110 (tilegx_skip_prologue): Limit prologue analysis to section end.
8111
c4be5165
JK
81122013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8113
8114 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8115 use it.
8116
e362b510
PA
81172013-03-01 Pedro Alves <palves@redhat.com>
8118
8119 Use gdb_byte for bytes from the program being debugged.
8120
8121 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8122 Change type of local 'buf' to gdb_byte.
8123 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8124 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8125 * cris-tdep.c (cris_sigcontext_addr)
8126 (cris_sigtramp_frame_unwind_cache): Likewise.
8127 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8128 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8129 Likewise.
8130 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8131 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8132 (hppa32_hpux_search_dummy_call_sequence)
8133 (hppa_hpux_supply_save_state): Likewise.
8134 * hppa-linux-tdep.c (insns_match_pattern)
8135 (hppa_linux_find_global_pointer): Likewise.
8136 * hppa-tdep.c (hppa_in_function_epilogue_p)
8137 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8138 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8139 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8140 (i386fbsd_collect_uthread): Likewise.
8141 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8142 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8143 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8144 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8145 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8146 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8147 (ia64_libunwind_frame_prev_register)
8148 (ia64_libunwind_sigtramp_frame_this_id)
8149 (ia64_find_global_pointer_from_dynamic_section)
8150 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8151 (ia64_unwind_pc): Likewise.
8152 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8153 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8154 (m68hc11_extract_return_value): Likewise.
8155 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8156 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8157 (mep_get_insn, mep_push_dummy_call): Likewise.
8158 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8159 (mips_linux_in_dynsym_stub): Likewise.
8160 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8161 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8162 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8163 to gdb_byte.
8164 * remote-mips.c (mips_set_register): Likewise.
8165 * remote-sim.c (gdbsim_fetch_register): Likewise.
8166 * score-tdep.c (score7_fetch_inst): Change type of parameter
8167 'memblock' and local 'buf' to gdb_byte.
8168 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8169 Change type of local 'buf' to gdb_byte. Adjust.
8170 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8171 to gdb_byte**.
8172 (score7_analyze_prologue): Change type of 'memblock' and
8173 'memblock_ptr' locals to gdb_byte*.
8174 * sh64-tdep.c (sh64_extract_return_value)
8175 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8176 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8177 * solib-pa64.c (pa64_solib_create_inferior_hook)
8178 (pa64_open_symbol_file_object): Remove local 'buf'.
8179 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8180 (som_open_symbol_file_object): Likewise.
8181 * solib-spu.c (spu_current_sos): Likewise.
8182 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8183 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8184 (spu_store_registers): Likewise.
8185 * target.c (debug_print_register): Likewise.
8186 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8187 * xstormy16-tdep.c (xstormy16_store_return_value)
8188 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8189 (xstormy16_find_jmp_table_entry): Likewise.
8190
75cc61ca 81912013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8192
8193 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8194 (tilegx_gdbarch_init): Install it.
8195
ddb08e9c
TT
81962013-02-28 Tom Tromey <tromey@redhat.com>
8197
8198 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8199 PyLong_Check.
8200
62d7fb51
DE
82012013-02-28 Doug Evans <dje@google.com>
8202
8203 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8204 * python/python.c (gdbpy_find_pc_line): Ditto.
8205
c4a9e8b4
TT
82062013-02-28 Tom Tromey <tromey@redhat.com>
8207
8208 * contrib/excheck.py: New file.
8209 * contrib/exsummary.py: New file.
8210 * contrib/gcc-with-excheck: New file.
8211
7f6a5dde
TT
82122013-02-28 Tom Tromey <tromey@redhat.com>
8213
8214 * python/python.c (gdbpy_print_stack): Call begin_line and
8215 fprintf_filtered inside TRY_CATCH.
8216
9e974e55
TT
82172013-02-28 Tom Tromey <tromey@redhat.com>
8218
8219 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8220 inside TRY_CATCH.
8221
dd5fa3e7
TT
82222013-02-28 Tom Tromey <tromey@redhat.com>
8223
8224 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8225 frame_object_to_frame_info inside TRY_CATCH.
8226
86a3263f
TT
82272013-02-28 Tom Tromey <tromey@redhat.com>
8228
8229 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8230 TRY_CATCH.
8231
81b52a3a
TT
82322013-02-28 Tom Tromey <tromey@redhat.com>
8233
8234 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8235
d50a0ce2
CV
82362013-02-27 Corinna Vinschen <vinschen@redhat.com>
8237
8238 * windows-nat.c: Throughout, fix format strings and casts of
8239 printf-like functions to avoid type related warnings on all
8240 platforms.
8241 (handle_output_debug_string): Fetch context information address
8242 from debug string using string_to_core_addr.
8243
e1f58301
JW
82442013-02-27 Jiong Wang <jiwang@tilera.com>
8245
8246 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8247 * regformats/reg-tilegx32.dat: New.
8248
4fcd89fc
JW
82492013-02-27 Jiong Wang <jiwang@tilera.com>
8250
8251 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8252
748d24e6
JW
82532013-02-27 Jiong Wang <jiwang@tilera.com>
8254
8255 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8256
6c8e944d
YQ
82572013-02-27 Yao Qi <yao@codesourcery.com>
8258 Pedro Alves <palves@redhat.com>
8259
8260 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
8261 pc/tp/range/outside, look for the next trace frame instead of
8262 always starting from frame 0.
6c8e944d 8263
acd7db30
AG
82642013-02-26 Anthony Green <green@moxielogic.com>
8265
8266 * configure.tgt: Add support for moxie-*-rtems* target.
8267
025e6dce
PA
82682013-02-25 Pedro Alves <palves@redhat.com>
8269
8270 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8271 warning text.
8272
ca9c94ef
MR
82732013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8274
8275 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8276 if $fp is used as the virtual frame pointer.
8277
24c274a1
AM
82782013-02-23 Alan Modra <amodra@gmail.com>
8279
8280 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8281 symbol size.
8282 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8283 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8284 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8285 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8286
bfada189
JK
82872013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8288
8289 Code cleanup.
8290 * elfread.c (build_id_bfd_get): Make the return type const.
8291 (build_id_verify): Make the check parameter const.
8292 (build_id_to_debug_filename): Make the build_id parameter and variable
8293 data const.
8294 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8295
c0355132
AM
82962013-02-21 Alan Modra <amodra@gmail.com>
8297
8298 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8299
9f44fbc0
SCR
83002013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8301
8302 Add a new method 'disassemble' to gdb.Architecture class.
8303 * python/py-arch.c (archpy_disassmble): Implementation of the
8304 new method gdb.Architecture.disassemble.
8305 (arch_object_methods): Add entry for the new method.
8306
b74ea3eb
JW
83072013-02-20 Jiong Wang <jiwang@tilera.com>
8308
8309 * MAINTAINERS (Write After Approval): Add myself to the list.
8310
61a672f1
PA
83112013-02-19 Pedro Alves <palves@redhat.com>
8312
8313 Garbage collect 'struct monitor_ops'::load_routine.
8314
8315 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8316 * monitor.c (monitor_load): No longer call
8317 current_monitor->load_routine.
8318 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8319 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8320 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8321
40e397df
PA
83222013-02-19 Pedro Alves <palves@redhat.com>
8323
8324 PR gdb/15161
8325
8326 Harmonize with generic_load.
8327
8328 * monitor.c: Include "readline/readline.h".
8329 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8330 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8331 long/strtol for the 'load_offset' local. Error out if no argument
8332 is given or if too many arguments are given. Tilde expand the
8333 passed in file name.
8334
f698ca8e
KT
83352013-02-19 Kai Tietz <ktietz@redhat.com>
8336
8337 PR gdb/15161
8338 * symfile.c (load_section_data): Change type of load_offset
8339 to CORE_ADDR.
8340 (generic_load): User strtoulst instead of strtoul for conversion
8341 of load_offset.
8342
3361b059
WL
83432013-02-19 Jiong Wang <jiwang@tilera.com>
8344
8345 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8346 for return address, "lr" register, saved on stack.
8347 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8348 after we invoke tilegx_analyze_prologue.
8349
3e9d5130
WL
83502013-02-19 Jiong Wang <jiwang@tilera.com>
8351
bb1bcd86
WL
8352 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8353
3361b059 83542013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 8355
b74ea3eb 8356 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 8357
4aaf2503
WL
83582013-02-19 Jiong Wang <jiwang@tilera.com>
8359
b74ea3eb 8360 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
8361 (tilegx_write_pc): New function.
8362 (tilegx_cannot_reference_register): Return zero if REGNO
8363 is TILEGX_FAULTNUM_REGNUM.
8364 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8365 (tilegx_register_name): Add handling of "faultnum" register.
8366 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8367 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8368 handling of TILEGX_FAULTNUM_REGNUM.
8369 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8370
bc23a956
WL
83712013-02-19 Jiong Wang <jiwang@tilera.com>
8372
8373 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 8374 should be aligned to 64bit.
bc23a956 8375
42f45f1a
KT
83762013-02-19 Kai Tietz <ktietz@redhat.com>
8377
8378 * windows-nat.c (windows_xfer_memory): Fix debug-output
8379 for LLP64.
8380
6ce4c112
LL
83812013-02-19 Lei Liu <lei.liu2@windriver.com>
8382
8383 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8384 Don't check DSP register number if HAVE_DSP is not set.
8385
30e8ee25
AM
83862013-02-19 Alan Modra <amodra@gmail.com>
8387
8388 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8389 throughout file instead.
8390 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8391 Don't xmalloc return value.
8392 (build_id_verify): Similarly. Don't xfree.
8393 (build_id_to_debug_filename): Update.
8394 (find_separate_debug_file_by_buildid): Update, don't xfree.
8395
4c9ad8c2
TT
83962013-02-18 Tom Tromey <tromey@redhat.com>
8397
8398 PR gdb/15102:
8399 * dwarf2read.c (read_subrange_type): Use result of
8400 'check_typedef'.
8401
983dc440
YQ
84022013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8403
8404 * frame.c: Remove one extra white space after #include
8405 directive.
8406
7fb2b84a
JK
84072013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8408
8409 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8410
edceb2a9
JK
84112013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8412
8413 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8414 and dir commands into an if block.
8415
e81b7af8
TT
84162013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
8417
8418 * python/py-breakpoint (struct pybp_code): Use int instead of
8419 enum type_code.
8420
f5911ea1
HAQ
84212013-02-15 Pedro Alves <pedro@codesourcery.com>
8422 Hafiz Abid Qadeer <abidh@codesourcery.com>
8423
8424 * NEWS: Mention new field "trace-file".
8425 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8426 (tfile_open): Record the trace file's filename in the trace
8427 status.
8428 (tfile_files_info): Mention the name of the trace file.
8429 Check the "filename" field explicitely.
8430 (trace_status_command): Explicitely check "filename" field.
8431 (trace_find_command): Ditto.
8432 (trace_find_pc_command): Ditto.
8433 (trace_find_tracepoint_command): Ditto.
8434 (trace_find_line_command): Ditto.
8435 (trace_find_range_command): Ditto.
8436 (trace_find_outside_command): Ditto.
8437 * tracepoint.h (struct trace_status) <from_file>: Rename it
8438 to "filename" and make it hold the trace file's filename
8439 instead of a boolean.
8440 * remote.c (remote_get_trace_status): Initialize "filename"
8441 field with NULL instead of 0.
8442
796cb314
YQ
84432013-02-15 Yao Qi <yao@codesourcery.com>
8444
8445 * remote.c: Fix a typo.
8446
42e79b1d
PM
84472013-02-14 Pierre Muller <muller@sourceware.org>
8448
8449 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8450
baea0dae
PA
84512013-02-14 Pedro Alves <palves@redhat.com>
8452
8453 * utils.c (savestring): Don't #undef it. Move function to
8454 common/common-utils.c.
8455 * common/common-utils.c: Include gdb_string.h.
8456 (savestring): Move here from utils.c.
8457 * common/common-utils.h (savestring): Declare.
8458
57c3b6ed
PA
84592013-02-14 Pedro Alves <palves@redhat.com>
8460
8461 * utils.c (savestring): Rename parameter 'size' to 'len'.
8462
d6c44983
YZ
84632013-02-14 Pedro Alves <palves@redhat.com>
8464 Yufeng Zhang <yufeng.zhang@arm.com>
8465
8466 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8467 (aarch64_inferior_data, struct aarch64_inferior_data):
8468 Delete.
8469 (struct aarch64_process_info): New.
8470 (aarch64_process_list): New global.
8471 (aarch64_find_process_pid, aarch64_add_process)
8472 (aarch64_process_info_get): New functions.
8473 (aarch64_inferior_data_get): Delete.
8474 (aarch64_process_info_get): New function.
8475 (aarch64_forget_process): New function.
8476 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8477 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8478 aarch64_get_debug_reg_state.
8479 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8480 instead of linux_nat_iterate_watchpoint_lwps.
8481 (aarch64_linux_new_fork): New function.
8482 (aarch64_linux_child_post_startup_inferior): Use
8483 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8484 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8485 (aarch64_linux_remove_hw_breakpoint)
8486 (aarch64_handle_aligned_watchpoint)
8487 (aarch64_handle_unaligned_watchpoint)
8488 (aarch64_linux_insert_watchpoint)
8489 (aarch64_linux_remove_watchpoint)
8490 (aarch64_linux_stopped_data_address): Adjust to pass the current
8491 process id to aarch64_debug_reg_state.
8492 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8493 linux_nat_new_fork hook, and aarch64_forget_process as
8494 linux_nat_forget_process hook; remove the call to
8495 register_inferior_data_with_cleanup.
8496
4819b3f8
PA
84972013-02-14 Pedro Alves <palves@redhat.com>
8498
8499 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8500 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8501 lval_memory.
8502
1773c82c
HAQ
85032013-02-14 Pedro Alves <pedro@codesourcery.com>
8504 Hafiz Abid Qadeer <abidh@codesourcery.com>
8505
8506 * tracepoint.h (validate_trace_state_variable_name): Declare.
8507 * tracepoint.c (validate_trace_state_variable_name): New.
8508 (trace_variable_command): Parse the trace state variable's name
8509 without using parse_expression. Do several validations.
8510 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8511 trace state variable's name with parse_expression. Validate it.
8512
53778a97
YQ
85132013-02-14 Yao Qi <yao@codesourcery.com>
8514
8515 * infcmd.c (breakpoint_proceeded): Remove it.
8516
7b3ae3a6
YQ
85172013-02-14 Yao Qi <yao@codesourcery.com>
8518
8519 * tracepoint.c (end_actions_pseudocommand): Make it static.
8520 (while_stepping_pseudocommand): Likewise.
8521 * tracepoint.h (end_actions_pseudocommand): Remove the
8522 declaration.
8523 (while_stepping_pseudocommand): Likewise.
8524
64580925
YQ
85252013-02-14 Yao Qi <yao@codesourcery.com>
8526
8527 * cli/cli-decode.c (help_cmd): Remove the declaration of
8528 "cmdlist".
8529 (help_all): Likewise.
8530
26cb8b7c
PA
85312013-02-13 Pedro Alves <palves@redhat.com>
8532
8533 * amd64-linux-nat.c (update_debug_registers_callback):
8534 Update comment.
8535 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8536 iterate_over_lwps.
8537 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8538 i386_debug_reg_state.
8539 (amd64_linux_new_fork): New function.
8540 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8541 linux_nat_new_fork hook, and i386_forget_process as
8542 linux_nat_forget_process hook.
8543 * i386-linux-nat.c (update_debug_registers_callback):
8544 Update comment.
a8256ea1 8545 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
8546 iterate_over_lwps.
8547 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8548 i386_debug_reg_state.
8549 (i386_linux_new_fork): New function.
8550 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8551 linux_nat_new_fork hook, and i386_forget_process as
8552 linux_nat_forget_process hook.
8553 * i386-nat.c (i386_init_dregs): Delete.
8554 (i386_inferior_data, struct i386_inferior_data):
8555 Delete.
8556 (struct i386_process_info): New.
8557 (i386_process_list): New global.
8558 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8559 New functions.
8560 (i386_inferior_data_get): Delete.
8561 (i386_process_info_get): New function.
8562 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8563 (i386_forget_process): New function.
8564 (i386_cleanup_dregs): Rewrite.
8565 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8566 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8567 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8568 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8569 to i386_debug_reg_state.
8570 (i386_use_watchpoints): Don't register inferior data.
8571 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8572 adjust comment.
8573 (i386_forget_process): Declare.
8574 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8575 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8576 New static globals.
8577 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8578 (add_initial_lwp): New, factored out from ...
8579 (add_lwp): ... this. Don't check the number of lwps before
8580 calling linux_nat_new_thread.
8581 (linux_nat_iterate_watchpoint_lwps): Delete.
8582 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8583 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8584 forks and vforks.
8585 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8586 initial lwp.
8587 (linux_nat_kill, linux_nat_mourn_inferior): Call
8588 linux_nat_forget_process.
8589 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8590 (linux_nat_forget_process): New functions.
8591 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8592 type.
8593 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8594 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8595 types.
8596 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8597 (linux_nat_forget_process): New declarations.
8598
8599 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8600 (amd64fbsd_mourn_inferior): New function.
8601 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8602 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8603
5befea72
MS
86042013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8605
55015247
YQ
8606 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8607 Adding _().
5befea72 8608
1d3ffd6b
MS
86092013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8610
8611 * aarch64-linux-nat.c (debug_reg_change_callback)
8612 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8613 %s and phex().
8614
6eb04473
MS
86152013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8616
8617 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8618 with LONGEST.
8619
a016fc87
HAQ
86202013-02-13 Pedro Alves <palves@redhat.com>
8621 Hafiz Abid Qadeer <abidh@codesourcery.com>
8622
8623 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8624
e234dfaf
TT
86252013-02-12 Tom Tromey <tromey@redhat.com>
8626
8627 PR symtab/11464:
8628 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8629 NAME return.
8630 (classify_inner_name): Remove 'first_name' argument, add
8631 'context'. Remove unused variable.
8632 (yylex): Explicitly maintain the context type. Exit loop earlier
8633 if NAME result is seen.
8634
0b1afbb3
PA
86352013-02-12 Pedro Alves <palves@redhat.com>
8636
8637 * amd64-darwin-tdep.c: Add (C) after Copyright.
8638 * cli/cli-cmds.h: Ditto.
8639 * cli/cli-decode.c: Ditto.
8640 * cli/cli-decode.h: Ditto.
8641 * cli/cli-dump.c: Ditto.
8642 * cli/cli-dump.h: Ditto.
8643 * cli/cli-interp.c: Ditto.
8644 * cli/cli-logging.c: Ditto.
8645 * cli/cli-script.c: Ditto.
8646 * cli/cli-script.h: Ditto.
8647 * cli/cli-setshow.c: Ditto.
8648 * cli/cli-setshow.h: Ditto.
8649 * cli/cli-utils.c: Ditto.
8650 * cli/cli-utils.h: Ditto.
8651 * config/alpha/nm-osf3.h: Ditto.
8652 * config/djgpp/djconfig.sh: Ditto.
8653 * config/i386/nm-fbsd.h: Ditto.
8654 * config/i386/nm-i386gnu.h: Ditto.
8655 * config/nm-linux.h: Ditto.
8656 * config/nm-nto.h: Ditto.
8657 * config/rs6000/nm-rs6000.h: Ditto.
8658 * config/sparc/nm-sol2.h: Ditto.
8659 * darwin-nat-info.c: Ditto.
8660 * dfp.c: Ditto.
8661 * dfp.h: Ditto.
8662 * gdb-demangle.h: Ditto.
8663 * i386-darwin-nat.c: Ditto.
8664 * i386-darwin-tdep.c: Ditto.
8665 * linux-fork.h: Ditto.
8666 * m32c-tdep.c: Ditto.
8667 * microblaze-linux-tdep.c: Ditto.
8668 * microblaze-rom.c: Ditto.
8669 * microblaze-tdep.c: Ditto.
8670 * microblaze-tdep.h: Ditto.
8671 * mips-linux-tdep.h: Ditto.
8672 * ppc-ravenscar-thread.c: Ditto.
8673 * ppc-ravenscar-thread.h: Ditto.
8674 * prologue-value.c: Ditto.
8675 * prologue-value.h: Ditto.
8676 * ravenscar-thread.c: Ditto.
8677 * ravenscar-thread.h: Ditto.
8678 * sparc-ravenscar-thread.c: Ditto.
8679 * sparc-ravenscar-thread.h: Ditto.
8680 * tilegx-linux-tdep.c: Ditto.
8681 * unwind_stop_reasons.def: Ditto.
8682 * windows-nat.h: Ditto.
8683 * xtensa-linux-tdep.c: Ditto.
8684 * xtensa-xtregs.c: Ditto.
8685 * regformats/regdat.sh: Ditto.
8686 * regformats/regdef.h: Ditto.
8687
6c01dd94
PA
86882013-02-12 Pedro Alves <palves@redhat.com>
8689
8690 * break-catch-sig.c: Update copyright years.
8691
b65a2bd9
SCR
86922013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8693
8694 Add support for a destructor for ui_out data and use it to
8695 provide a ui_out destructor.
8696 * ui-out.h: Declare the new ui_out destructor.
8697 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8698 * ui-out.c (default_data_destroy): Add a default data destructor
8699 which does nothing.
8700 (default_ui_out_impl): Set the new data_destroy field to
8701 default_data_destroy
8702 (uo_data_destroy): Local function which invokes the data
8703 destructor if present.
8704 (clear_table): Local function which clears the table data of a
8705 ui_out object.
8706 (ui_out_destroy): Public function which frees a ui_out object.
8707 (ui_out_table_end): Use the new clear_table function.
8708 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8709 NULL.
8710 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8711 to NULL.
8712
c2792f5a
DE
87132013-02-11 Doug Evans <dje@google.com>
8714
8715 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8716 (printf_decfloat): New function. Broken out from ui_printf.
8717 Remove unnecessary code to shift the entire format string down.
8718 (printf_pointer): New function.
8719 (ui_printf): Code to print C strings, wide C strings, decfloats,
8720 and pointers moved to separate functions.
8721
d9e98382
SDJ
87222013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8723
8724 * valops.c (value_assign): Handling bitfield offset in
8725 `lval_internalvar_component' case.
8726
4ff3ce77
DE
87272013-02-08 Doug Evans <dje@google.com>
8728
8729 * common/format.c (parse_format_string): Fix whitespace.
8730
901900c4
MGD
87312013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8732
8733 * stack.c (return_command): Work around uninitialized variable
8734 warning.
8735
b5dbc8d4
YZ
87362013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8737
8738 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8739 number of the registers from 36 to 34.
8740
51d66578
MS
87412013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8742
8743 * NEWS: Mention new AArch64 native and target support.
8744
176b1c95
MS
87452013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8746
8747 * MAINTAINERS (Write After Approval): Add myself.
8748
9d19df75
MS
87492013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8750 Marcus Shawcroft <marcus.shawcroft@arm.com>
8751 Nigel Stephens <nigel.stephens@arm.com>
8752 Yufeng Zhang <yufeng.zhang@arm.com>
8753
8754 * aarch64-linux-nat.c: New file.
8755 * config/aarch64/linux.mh: New file.
8756 * configure.host: Add AArch64.
8757 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8758
7e1e0340
DE
87592013-02-07 Doug Evans <dje@google.com>
8760
8761 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8762 disassemble command.
8763
45e25a36
MS
87642013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8765
8766 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8767 set_gdbarch_fetch_tls_load_module_address.
8768
bbfdfe1c
DM
87692013-02-06 David S. Miller <davem@davemloft.net>
8770
8771 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8772 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8773 * value.c (struct_return_convention): New function.
8774 (using_struct_return): Implement in terms of struct_return_convention.
8775 * value.h (struct_return_convention): Declare.
8776 * stack.c (return_command): Allow successful overriding of the return
8777 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8778
bc9abe4a
TT
87792013-02-06 Tom Tromey <tromey@redhat.com>
8780
8781 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8782 outside of TRY_CATCH.
8783
134a2066
YQ
87842013-02-06 Yao Qi <yao@codesourcery.com>
8785
8786 * mi/mi-interp.c: Include "tracepoint.h".
8787 (mi_tsv_modified): Declare.
8788 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8789 (mi_interpreter_init): Call observer_attach_tsv_modified.
8790 (mi_tsv_modified): New.
8791 (mi_tsv_created, mi_tsv_deleted): Update.
8792 * tracepoint.c (trace_variable_command): Call
8793 observer_notify_tsv_modified if the initial value of tsv is
8794 changed.
8795 (delete_trace_state_variable): Call
8796 observer_notify_tsv_deleted earlier.
8797 (trace_variable_command): Caller update.
8798 (create_tsv_from_upload): Likewise.
8799 * observer.sh: Declare "struct trace_state_variable".
8800
8801 * NEWS: Mention the new MI notification "=tsv-modified".
8802
59be2b6a
DE
88032013-02-05 Doug Evans <dje@google.com>
8804
8805 * completer.c (location_completer): Fix typo in comment.
8806
d30113d4
JK
88072013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8810 ADDRESS sorted.
8811
14ac654f
MS
88122013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8813
8814 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8815 Refactor if statement to avoid trailing || operator.
8816
543bf33d
AT
88172013-02-05 Andreas Tobler <andreast@fgznet.ch>
8818
8819 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8820
dc18f110
AT
88212013-02-04 Andreas Tobler <andreast@fgznet.ch>
8822
8823 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8824 * configure.host: Add powerpc*-*-freebsd* target.
8825 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8826 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8827 * config/powerpc/fbsd.mh: New file.
8828
b3ac9c77
SDJ
88292013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8830 Denys Vlasenko <dvlasenk@redhat.com>
8831 Pedro Alves <palves@redhat.com>
8832
8833 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8834 (struct elf_internal_linux_prpsinfo): Forward declare.
8835 * gdbarch.h, gdbarch.c: Regenerate.
8836 * linux-tdep.c: Include `cli/cli-utils.h'.
8837 (linux_fill_prpsinfo): New function.
8838 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8839 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8840 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8841 depending on gdbarch pointer bitness.
8842 * ppc-linux-tdep.c: Include elf-bfd.h.
8843 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8844 on 32-bit.
8845
176eb98c
MS
88462013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8847 Marcus Shawcroft <marcus.shawcroft@arm.com>
8848 Nigel Stephens <nigel.stephens@arm.com>
8849 Yufeng Zhang <yufeng.zhang@arm.com>
8850
8851 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8852
cf0dbd6f
MS
88532013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8854 Marcus Shawcroft <marcus.shawcroft@arm.com>
8855 Nigel Stephens <nigel.stephens@arm.com>
8856 Yufeng Zhang <yufeng.zhang@arm.com>
8857
8858 * aarch64-newlib-tdep.c: New file.
8859 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8860 aarch64*-*-elf.
8861 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8862 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8863 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8864 * osabi.c (gdb_osabi_names): Add "Newlib".
8865
1ae3db19
MS
88662013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8867 Marcus Shawcroft <marcus.shawcroft@arm.com>
8868 Nigel Stephens <nigel.stephens@arm.com>
8869 Yufeng Zhang <yufeng.zhang@arm.com>
8870
8871 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8872 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8873 * aarch64-linux-tdep.c: New file.
8874 * aarch64-linux-tdep.h: New file.
8875 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8876 * configure.tgt: Add aarch64-none-linux-gnu.
8877
07b287a0
MS
88782013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8879 Marcus Shawcroft <marcus.shawcroft@arm.com>
8880 Nigel Stephens <nigel.stephens@arm.com>
8881 Yufeng Zhang <yufeng.zhang@arm.com>
8882
8883 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8884 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8885 (ALLDEPFILES): Add aarch64-tdep.c.
8886 * aarch64-tdep.c: New file.
8887 * aarch64-tdep.h: New file.
8888 * configure.tgt: Add AArch64.
8889 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8890 (aarch64-expedite): New definition.
8891 * features/aarch64-core.xml: New file.
8892 * features/aarch64-fpu.xml: New file.
8893 * features/aarch64-without-fpu.c: New file (generated).
8894 * features/aarch64-without-fpu.xml: New file.
8895 * features/aarch64.c: New file (generated).
8896 * features/aarch64.xml: New file.
8897 * regformats/aarch64-without-fpu.dat: New file (generated).
8898 * regformats/aarch64.dat: New file (generated).
8899
0f1b18ab
JK
89002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 * contrib/expect-read1.c: New file.
8903 * contrib/expect-read1.sh: New file.
8904
233d95b5
JK
89052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 * dwarf2read.c (file_file_name): New function with code from
8908 file_full_name.
8909 (file_full_name): Move most of the code to file_file_name.
8910 (macro_start_file): Rename variable full_name to file_name and use
8911 file_file_name for it. Add comp_dir parameter to new_macro_table.
8912 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8913 macro_source_file->filename access by macro_source_fullname call.
8914 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8915 caller.
8916 * macrotab.c (struct macro_table): New field comp_dir.
8917 (macro_include): New variables link_fullname and source_fullname.
8918 Replace any macro_source_file->filename access by macro_source_fullname
8919 call.
8920 (macro_lookup_inclusion): Remove the partial filenames checking code.
8921 (check_for_redefinition): New variables source_fullname and
8922 found_key_fullname. Replace any macro_source_file->filename access by
8923 macro_source_fullname call.
8924 (macro_undef): New variables source_fullname and key_fullname. Replace
8925 any macro_source_file->filename access by macro_source_fullname call.
8926 (macro_lookup_definition): New variables retval and source_fullname.
8927 Replace any macro_source_file->filename access by macro_source_fullname
8928 call.
8929 (foreach_macro): New variable key_fullname. Replace any
8930 macro_source_file->filename access by macro_source_fullname call.
8931 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8932 macro_source_file->filename access by macro_source_fullname call.
8933 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8934 (macro_source_fullname): New function.
8935 * macrotab.h (struct macro_source_file): Extent the filename field
8936 comment.
8937 (new_macro_table): New parameter comp_dir, add a comment for it.
8938 (macro_source_fullname): new declaration.
8939
da235a7c
JK
89402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8941
8942 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8943 this_real_name to outer block. Use it also for
8944 compare_filenames_for_search.
8945 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8946 with dw2_get_real_path for file_matcher, considering also
8947 BASENAMES_MAY_DIFFER.
8948 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8949
fbd9ab74
JK
89502013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8951
8952 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8953 to the file_matcher parameter. Pass 0 to it.
8954 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8955 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8956 NULL psymtab_to_fullname result.
8957 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8958 an expected filename instead.
8959 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8960 file_matcher parameter. Call also psymtab_to_fullname, after newly
8961 considering BASENAMES_MAY_DIFFER.
8962 * source.c (rewrite_source_path): Remove static.
8963 * source.h (rewrite_source_path): New declaration.
8964 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8965 the expand_symtabs_matching field. Comment it.
8966 * symtab.c (file_matches): New function comment. Add parameter
8967 basenames, implement it.
8968 (search_symbols_file_matches): Add basenames parameter. Update the
8969 file_matches caller.
8970 (search_symbols): Match FILES also against symtab_to_fullname.
8971 Optimize it for BASENAMES_MAY_DIFFER.
8972
56d397a3
JK
89732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8974
8975 * source.c (print_source_lines_base): Print for TUI also "fullname".
8976 * tui/tui-data.c (init_content_element): Change tui_locator_element
8977 field to full_name.
8978 * tui/tui-data.h (struct tui_locator_element): Likewise.
8979 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8980 tui_update_locator_filename calls to tui_update_locator_fullname.
8981 Replace symtab->filename refererence by symtab_to_fullname call.
8982 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8983 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8984 field to full_name. Replace symtab->filename refererence by
8985 symtab_to_fullname call.
8986 (tui_show_symtab_source): Rename parameter to fullname. Change
8987 tui_locator_element field to full_name.
8988 * tui/tui-stack.c: Include source.h.
8989 (tui_set_locator_filename): Rename the declaration to ...
8990 (tui_set_locator_fullname): ... here. Rename its parameter to
8991 fullname, updates its comment.
8992 (tui_set_locator_info): Rename its parameter to fullname.
8993 (tui_set_locator_filename): Rename the definition to ...
8994 (tui_set_locator_fullname): ... here. Rename its parameter to
8995 fullname, updates its comment. Change tui_locator_element field to
8996 full_name.
8997 (tui_set_locator_info): Rename its parameter to fullname.
8998 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8999 (tui_update_locator_filename): Rename to ...
9000 (tui_update_locator_fullname): ... here. Rename callee to
9001 tui_set_locator_fullname.
9002 (tui_show_frame_info): Replace symtab->filename refererence by
9003 symtab_to_fullname call.
9004 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9005 (tui_update_locator_fullname): ... here.
9006 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9007 tui_update_locator_fullname. Replace symtab->filename refererence by
9008 symtab_to_fullname call.
9009 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9010 Rename the callee to tui_update_locator_fullname.
9011 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9012
05cba821
JK
90132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9014
9015 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9016 by symtab_to_filename_for_display calls.
9017 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9018 (clear_command): New variable sal_fullname, initialize it. Replace
9019 compare_filenames_for_search by filename_cmp with sal_fullname.
9020 (say_where, update_static_tracepoint): Replace symtab->filename
9021 refererences by symtab_to_filename_for_display calls.
9022 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9023 Likewise.
9024 * dwarf2read.c: Include source.h.
9025 (fixup_go_packaging): Replace symtab->filename refererences by
9026 symtab_to_filename_for_display calls.
9027 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9028 Replace symtab->filename refererences by symtab_to_filename_for_display
9029 calls.
9030 (create_sals_line_offset, convert_linespec_to_sals): New variable
9031 fullname, initialize it, replace symtab->filename reference by the
9032 variable.
9033 * linux-fork.c: Include source.h.
9034 (info_checkpoints_command): Replace symtab->filename refererences by
9035 symtab_to_filename_for_display calls.
9036 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9037 by symtab_to_filename_for_display calls.
9038 * mdebugread.c: Include source.h.
9039 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9040 symtab_to_filename_for_display calls.
9041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9042 (mi_cmd_file_list_exec_source_files): Likewise.
9043 * printcmd.c: Include source.h.
9044 (build_address_symbolic): Replace symtab->filename refererences by
9045 symtab_to_filename_for_display calls.
9046 * psymtab.c (partial_map_symtabs_matching_filename)
9047 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9048 with psymtab_to_fullname.
9049 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9050 by symtab_to_filename_for_display calls.
9051 (stpy_get_filename): New variable filename, initialize it, use instead
9052 of symtab->filename refererences.
9053 (salpy_str): Make variable filename const char *. Replace
9054 symtab->filename refererences by symtab_to_filename_for_display calls.
9055 * skip.c: Include source.h and filenames.h.
9056 (skip_file_command): Remove const from the symtab variable. Replace
9057 symtab->filename refererences by symtab_to_fullname call.
9058 (function_name_is_marked_for_skip): New variables searched_for_fullname
9059 and fullname. Use them to search also with symtab's fullname.
9060 * source.c (find_source_lines): Replace symtab->filename refererences
9061 by symtab_to_filename_for_display calls.
9062 (print_source_lines_base): New variable filename, use it instead of
9063 symtab->filename. Replace symtab->filename refererences by
9064 symtab_to_filename_for_display calls.
9065 (line_info, forward_search_command): Replace symtab->filename
9066 refererences by symtab_to_filename_for_display calls.
9067 (reverse_search_command): Replace symtab->filename refererences by
9068 symtab_to_filename_for_display calls. New variable filename for it.
9069 * stack.c (frame_info): Likewise.
9070 * symmisc.c: Include source.h.
9071 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9072 (maintenance_info_symtabs): Replace symtab->filename refererences by
9073 symtab_to_filename_for_display calls.
9074 * symtab.c (iterate_over_some_symtabs): Call
9075 compare_filenames_for_search also with symtab_to_fullname.
9076 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9077 symtab->filename refererences by symtab_to_filename_for_display calls.
9078 (find_line_symtab): Replace symtab->filename refererences by
9079 symtab_to_filename_for_display calls.
9080 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9081 (print_symbol_info): Make the last parameter const char *. New
9082 variable s_filename. Use it in the function.
9083 (symtab_symbol_info): Make the last_filename variable const char *.
9084 Replace symtab->filename refererences by symtab_to_filename_for_display
9085 calls.
9086 (rbreak_command): New variable fullname. Use it. Replace
9087 symtab->filename refererence by symtab_to_filename_for_display call.
9088 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9089 (print_one_static_tracepoint_marker): Replace symtab->filename
9090 refererences by symtab_to_filename_for_display calls.
9091 * tui/tui-source.c (tui_set_source_content): New variables filename and
9092 s_filename. Replace symtab->filename refererences by this variable.
9093 Replace other symtab->filename refererences by
9094 symtab_to_filename_for_display calls.
9095
1b56eb55
JK
90962013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9097 Jan Kratochvil <jan.kratochvil@redhat.com>
9098
9099 Add a new variable that controls a way in which filenames are
9100 displayed.
9101 * NEWS (set filename-display): New entry.
9102 * source.c (filename_display_basename, filename_display_relative)
9103 (filename_display_absolute, filename_display_kind_names)
9104 (filename_display_string, show_filename_display_string)
9105 (symtab_to_filename_for_display): New.
9106 (_initialize_source): Added initialization of 'filename-display'
9107 variable.
9108 * source.h (symtab_to_filename_for_display): Added declaration.
9109 * stack.c (print_frame): Added new variable and calling of a new
9110 function and condition with this variable. Changed third argument of
9111 calling of a function.
9112
aa079c93
JK
91132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9114
9115 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9116 Rename field reference filename to fullname.
9117 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9118 fullname. New comment for it.
9119 * tui/tui-source.c (tui_set_source_content): Rename field reference
9120 filename to fullname. Initialize field by symtab_to_fullname now.
9121 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9122 reference filename to fullname. Use symtab_to_fullname during
9123 comparison.
9124
652a8996
JK
91252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9126
9127 Code cleanup.
9128 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9129 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9130 filename to fullname. Rename variable this_name to this_fullname.
9131 Lowercase FILENAME_CMP call.
9132 (dw2_find_symbol_file): New comment for the returned string.
9133 (dwarf2_gdb_index_functions): Rename the function to
9134 dw2_expand_symtabs_with_fullname.
9135 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9136 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9137 fullname.
9138 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9139 * symfile.h (struct quick_symbol_functions): Rename field
9140 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9141 parameter filename to fullname. Document returned string meaning for
9142 find_symbol_file.
9143 * symtab.c (find_line_symtab): Rename the called function to
9144 expand_symtabs_with_fullname.
9145
af529f8f
JK
91462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 Code cleanup.
9149 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9150 call of filename_cmp with compare_filenames_for_search.
9151 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9152 is_abs, unify the call of FILENAME_CMP with
9153 compare_filenames_for_search. New gdb_asserts for real_path and name.
9154 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9155 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9156 * symfile.h (struct quick_symbol_functions): Extend the comment for
9157 map_symtabs_matching_filename.
9158 * symtab.c (compare_filenames_for_search): Remove the function comment
9159 relative path requirement. Handle absolute filenames, with a comment.
9160 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9161 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9162 real_path and name. Unify the call of compare_filenames_for_search
9163 with FILENAME_CMP.
9164 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9165
2f202fde
JK
91662013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9167
9168 Code cleanup.
9169 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9170 source_file references by symtab field references. Remove variables
9171 sal and fullname.
9172 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9173 (clear_command, say_where): Replace bp_location field source_file
9174 references by symtab field references.
9175 (bp_location_dtor): Remove the source_file reference.
9176 (update_static_tracepoint): Replace bp_location field source_file
9177 references by symtab field references.
9178 (breakpoint_free_objfile): New function.
9179 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9180 Replace the field source_file by field symtab, extend its comment.
9181 (breakpoint_free_objfile): New declaration.
9182 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9183 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9184 field source_file references by symtab field references.
9185
f5b95b50
JK
91862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9187
9188 Replace xfullpath calls by gdb_realpath calls.
9189 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9190 function comment.
9191 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9192 Remove it from the iterate_over_some_symtabs call.
9193 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9194 Remove it from the dw2_map_expand_apply calls, remove a block handling
9195 it.
9196 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9197 Remove it from the iterate_over_some_symtabs call.
9198 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9199 Remove it from the partial_map_expand_apply calls, remove a block
9200 handling it. Drop gdb_realpath call and cleanups from the real_path
9201 handling.
9202 * source.c (openp): Drop the comment part about xfullpath. Replace
9203 xfullpath calls by gdb_realpath calls.
9204 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9205 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9206 from method map_symtabs_matching_filename and its comment.
9207 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9208 gdb_realpath call.
9209 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9210 remove it also from the function comment, remove a block handling it.
9211 Drop gdb_realpath call and cleanups from the real_path handling.
9212 (iterate_over_symtabs): Drop variable full_path and its use.
9213 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9214 * utils.c (xfullpath): Remove.
9215 * utils.h (xfullpath): Remove.
9216
d78489bf
AT
92172013-02-01 Andreas Tobler <andreast@fgznet.ch>
9218
9219 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9220 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9221 (ALLDEPFILES): Add ppc64-tdep.c.
9222 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9223 ppc64-tdep.o to gdb_target_obs.
9224 * ppc64-tdep.h: New file.
9225 * ppc64-tdep.c: New file.
9226 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9227 ppc-linux-tdep.c to here.
9228 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9229 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9230 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9231 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9232 from ppc-linux-tdep.c to here.
9233 (ppc64_convert_from_func_ptr_addr): Rename from
9234 ppc64_linux_convert_from_func_ptr_addr to
9235 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9236 here.
9237 * rs6000-tdep.c:
9238 (read_insn): Move from ppc-linux-tdep.c to here.
9239 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9240 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9241 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9242 Removed above functions.
9243 (ppc_linux_init_abi): Adjust.
9244
8db60374
AR
92452013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9246
9247 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9248
f2e5f4ce
AR
92492013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9250
9251 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9252
c1f7d745
PA
92532013-02-01 Pedro Alves <palves@redhat.com>
9254
9255 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9256 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9257
8a92335b
JK
92582013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9259
9260 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9261 files with no separate debug info.
9262 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9263 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9264 only for files with no separate debug info.
9265
8eacb197
TT
92662013-01-31 Tom Tromey <tromey@redhat.com>
9267
9268 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9269 change type.
9270 (struct jit_program_space_data): Rename from jit_inferior_data.
9271 Update comments.
9272 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9273 Change return type. Attach data to program space.
9274 (jit_program_space_data_cleanup): Rename from
9275 jit_inferior_data_cleanup; change argument type.
9276 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9277 change type.
9278 (jit_register_code): Update.
9279 (jit_update_inferior_cache): Remove.
9280 (jit_breakpoint_deleted): Get jit data from the location's program
9281 space.
9282 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9283 'ps_data', change type.
9284 (jit_inferior_init, jit_breakpoint_re_set_internal)
9285 (jit_event_handler): Update.
9286 (free_objfile_data): Get data from objfile's program space.
9287 (_initialize_jit): Update.
9288
f25c0135
TT
92892013-01-31 Tom Tromey <tromey@redhat.com>
9290
9291 PR gdb/13987:
9292 * jit.c (struct jit_inferior_data) <cached_code_address,
9293 jit_breakpoint>: New fields.
9294 (jit_breakpoint_re_set_internal): Fix logging. Only create
9295 breakpoint if cached address has changed.
9296 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9297 functions.
9298 (_initialize_jit): Register breakpoint deleted observer.
9299
974a734b
AR
93002013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9301
9302 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9303 (save_infcall_suspend_state): Ifdef out unused inf.
9304 (restore_infcall_suspend_state): Ifdef out unused inf.
9305 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9306 (jit_frame_sniffer): Remove unused inf_data.
9307
df54f8eb
AR
93082013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9309
9310 * c-exp.y (classify_inner_name): Remove unused type.
9311 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9312 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9313 need_escape.
9314 (c_get_string): Remove unused kind.
9315 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9316
5799c0b9
AR
93172013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9318
9319 * charset.c (intermediate_encoding): Remove unused i.
9320 * completer.c (signal_completer): Remove unused i.
9321 * continuations.c (discard_my_continuations_1): Remove unused
9322 continuation_ptr.
9323 * corelow.c (core_close): Remove unuseD name.
9324 (get_core_siginfo): Remove unused pid.
9325 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9326 i, cps.
9327 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9328 (loclist_describe_location): Remove unused first.
9329 * event-top.c (command_line_handler): Remove unused got_eof.
9330 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9331 (resize_section_table): Remove unused old_value.
9332 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9333 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9334 * i386-tdep.c (i386_process_record): Remove unused rex.
9335 * infcmd.c (get_return_value): Remove unused uiout.
9336 * jv-lang.c (type_from_class): Remove unused is_array.
9337 * jv-valprint.c (java_val_print): Remove unused i.
9338 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9339 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9340 * m2-typeprint.c (m2_print_type): Remove unused code.
9341 * macroexp.c (get_character_constant): Remove unused body_start.
9342 (macro_stringify): Remove unused result.
9343 * objc-lang.c (find_methods): Remove unused gdbarch.
9344 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9345 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9346 * stack.c (print_frame_args): Remove unused summary.
9347 * thread.c (thread_apply_command): Remove unused p.
9348 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9349 * valops.c (search_struct_method): Remove unused skip.
9350 * valprint.c (generic_val_print): Remove unused byte_order.
9351 * varobj.c (varobj_update): Remove unused changed.
9352 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9353 (alias_command): Remove unused c.
9354 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9355 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9356 format.
9357 (mi_cmd_data_write_memory): Remove unused word_format.
9358 (mi_cmd_data_write_memory_bytes): Remove unused r.
9359 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9360 p_start, p_end.
9361 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9362 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9363 line_width.
9364
c656bca5
AR
93652013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9366
9367 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9368 * symtab.c (iterate_over_symtabs): Remove unused s.
9369 (find_pc_sect_symtab): Remove unused pspAce.
9370 (find_pc_sect_line): Remove unused alt_symtab.
9371 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9372 (completion_list_add_name): Remove unused newsize.
9373
7078baeb
TT
93742013-01-31 Tom Tromey <tromey@redhat.com>
9375
9376 PR c++/14998:
9377 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9378 TYPE_CODE_FUNC.
9379
c2e8b827
AR
93802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9381
9382 * target.c (target_read_string): Remove unused origlen.
9383
0e43993a
AR
93842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9385
9386 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9387 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9388 * ax-general.c (ax_print): Remove unused is_float.
9389 * blockframe.c (block_innermost_frame): Remove unused start, end.
9390 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9391
765a97ab
AR
93922013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9393
9394 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9395 (svr4_read_so_list): Remove unused lmo.
9396 * solib-target.c (solib_target_relocate_section_addresses): Remove
9397 unused flags.
9398
a99dad3d
TT
93992013-01-30 Tom Tromey <tromey@redhat.com>
9400
9401 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9402
3bff1ecd
TT
94032013-01-30 Tom Tromey <tromey@redhat.com>
9404
9405 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9406 * utils.c (gnu_debuglink_crc32): Remove.
9407 * utils.h (gnu_debuglink_crc32): Don't declare.
9408
7d455152
TT
94092013-01-30 Tom Tromey <tromey@redhat.com>
9410
9411 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9412 (read_structure_type, read_enumeration_type): Remove cast.
9413
abee88f2
TT
94142013-01-30 Tom Tromey <tromey@redhat.com>
9415
9416 * dwarf2read.c (read_namespace_type): Remove cast.
9417 (read_typedef): Likewise.
9418
8d9878a4
TT
94192013-01-29 Tom Tromey <tromey@redhat.com>
9420
9421 * dwarf2read.c (free_dwo_file): Remove assert.
9422
a543d2a9
TT
94232013-01-29 Tom Tromey <tromey@redhat.com>
9424
9425 * value.c (deprecated_set_value_modifiable): Remove.
9426 * value.h (deprecated_set_value_modifiable): Remove.
9427
bed911e5
DE
94282013-01-28 Doug Evans <dje@google.com>
9429
9430 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9431 to addresses from dwo files.
9432
28c64fc2
SCR
94332013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9434
9435 * valops.c (find_overload_match): Remove unused argument 'lax'.
9436 * value.h: Remove unused argument 'lax' from the declaration of
9437 find_overload_match.
9438 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9439 to find_overload_match.
9440 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9441 argument to find_overload_match.
9442
4d4ec4e5
TT
94432013-01-25 Tom Tromey <tromey@redhat.com>
9444
9445 * dwarf2read.c (processing_has_namespace_info): Remove.
9446 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9447 (process_die, read_func_scope, dwarf2_start_symtab)
9448 (new_symbol_full): Update.
9449
195a3f6c
TT
94502013-01-25 Tom Tromey <tromey@redhat.com>
9451
9452 * cp-namespace.c (cp_set_block_scope): Remove.
9453 * cp-support.h (cp_set_block_scope): Remove.
9454 * dbxread.c: Include block.h.
9455 (cp_set_block_scope): New function.
9456 (process_one_symbol): Update.
9457 * dwarf2read.c (read_func_scope): Use block_set_scope.
9458
8ba0730a
PA
94592013-01-25 Pedro Alves <palves@redhat.com>
9460
9461 * remote.c (add_current_inferior_and_thread): Tweak comment.
9462
12aaed36
TT
94632013-01-25 Tom Tromey <tromey@redhat.com>
9464
9465 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9466 (cp_add_using_directive): Add 'copy_names' argument.
9467 * cp-support.h (cp_add_using_directive): Update.
9468 (struct using_direct) <import_src, import_dest, alias,
9469 declaration>: Now const.
9470 * dwarf2read.c (read_import_statement): Use obconcat.
9471 Don't copy names passed to cp_add_using_directive.
9472
7fc75ca7
TT
94732013-01-25 Tom Tromey <tromey@redhat.com>
9474
9475 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9476
3405876a
PA
94772013-01-25 Pedro Alves <palves@redhat.com>
9478
9479 * remote.c (stop_reply_extract_thread): New.
9480 (add_current_inferior_and_thread): New parameter 'wait_status'.
9481 Handle it.
9482 (remote_start_remote): Pass wait status to
9483 add_current_inferior_and_thread.
9484 (extended_remote_run): Update comment.
9485 (extended_remote_create_inferior_1): Pass wait status to
9486 add_current_inferior_and_thread.
9487
8954db33
AB
94882013-01-25 Andrew Burgess <aburgess@broadcom.com>
9489 Ulrich Weigand <uweigand@de.ibm.com>
9490
9491 * valarith.c (value_vector_widen): New function for replicating a
9492 scalar into a vector.
9493 (value_binop): Use value_vector_widen to widen scalar to vector
9494 rather than casting, this better matches gcc C behaviour.
9495 * valops.c (value_casst): Update logic for casting between vector
9496 types, and for casting from scalar to vector, try to match gcc C
9497 behaviour.
9498 * value.h (value_vector_widen): Declare.
9499 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9500 function, handle special case for casting scalar to vector.
9501 (opencl_relop): Use opencl_value_cast.
9502 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9503 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9504 in order to use opencl_value_cast.
9505
843b20dc
YQ
95062013-01-25 Yao Qi <yao@codesourcery.com>
9507
9508 * event-loop.c: Include "queue.h".
9509 (gdb_event_p): New typedef.
9510 (DECLARE_QUEUE_P): Use.
9511 (DEFINE_QUEUE_P): Use.
9512 (async_queue_event): Remove.
9513 (gdb_event_xfree): New.
9514 (initialize_event_loop): New.
9515 (process_event): Use QUEUE macros.
9516 (event_queue): Remove.
9517 (gdb_wait_for_event): Caller update.
9518 (check_async_event_handlers): Likewise.
9519 (poll_timers): Likewise.
9520 * event-loop.h (initialize_event_loop): Declare.
9521 * event-loop.c (gdb_event_xfree): New.
9522 * top.c (gdb_init): Call initialize_event_loop.
9523
20ad8856
YQ
95242013-01-25 Yao Qi <yao@codesourcery.com>
9525
9526 * event-loop.c (async_queue_event): Remove one parameter
9527 'position'. Remove code handling 'position' == TAIL.
9528 (gdb_wait_for_event): Caller update.
9529 (check_async_event_handlers): Caller update.
9530 (poll_timers): Caller update.
9531 * event-loop.h (enum queue_position): Remove.
9532
3bbbe775
MK
95332013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9534
9535 * MAINTAINERS: Update my email.
9536
a87d9ac4
YQ
95372013-01-25 Yao Qi <yao@codesourcery.com>
9538
9539 * main.c (print_gdb_help): Remove "--epoch" from the help
9540 message.
9541
2077afdd
TD
95422013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
9543
9544 * symtab.c (skip_prologue_using_sal): Consider a file
9545 change the same as an increased line number
9546
63da4037
TD
95472013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
9548
30e8ee25 9549 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 9550
45e6c716
TT
95512013-01-24 Tom Tromey <tromey@redhat.com>
9552
9553 * ada-lang.h (ada_decode_symbol): Make return type const.
9554 * ada-lang.c (ada_decode_symbol): Likewise.
9555
b1ae631a
DE
95562013-01-23 Doug Evans <dje@google.com>
9557
9558 * linespec.c (find_linespec_symbols): Make static.
9559
55a78401
SDJ
95602013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9561
9562 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9563 type on float conversion for complex type.
9564
bea883fd
SCR
95652013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9566
9567 Add a new class gdb.Architecture which exposes GDB's
9568 internal representation of architecture via GDB Python API.
9569 * Makefile.in: Add entries corresponding to the new file
9570 python/py-arch.c.
9571 * NEWS (Python Scripting): Add entries for the new class
9572 gdb.Architecture and the new method gdb.Frame.architecture.
9573 * python/py-arch.c: Implement gdb.Architecture class.
9574 * python/py-frame.c (frapy_arch): Implement the method
9575 gdb.Frame.architecture().
9576 (frame_object_methods): Add 'architecture' to the method table.
9577 * python/python-internal.h: Add declarations of new utility
9578 functions.
9579 * python/python.c (_initialize_python): Initialize
9580 gdb.Architecture class.
9581
796a7ff8
DE
95822013-01-23 Doug Evans <dje@google.com>
9583
9584 Work around binutils/15021.
9585 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9586 type_unit_group out of union s. All uses updated.
9587 (read_index_from_section): Watch for index version 8.
9588 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9589 an imported symtab.
9590 (write_psymtabs_to_index): Increment version number to 8.
9591
0928e93d
PA
95922013-01-22 Pedro Alves <palves@redhat.com>
9593
9594 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9595 user-visible.
9596
9c97429f
PA
95972013-01-22 Pedro Alves <palves@redhat.com>
9598
9599 * annotate.c (annotate_breakpoints_changed): Rename to ...
9600 (annotate_breakpoints_invalid): ... this. Make static.
9601 (breakpoint_changed): Adjust.
9602 (_initialize_annotate): Always install the observers. Install a
9603 "breakpoint_created" observer.
9604 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9605 * breakpoint.c (set_breakpoint_condition)
9606 (breakpoint_set_commands, do_map_commands_command)
9607 (init_raw_breakpoint, clear_command, set_ignore_count)
9608 (enable_breakpoint_disp): No longer call
9609 annotate_breakpoints_changed.
9610
bd00c694
PA
96112013-01-22 Pedro Alves <palves@redhat.com>
9612
9613 * annotate.c: Include "inferior.h".
9614 (frames_invalid_emitted)
9615 (breakpoints_invalid_emitted): New globals.
9616 (async_background_execution_p): New function.
9617 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9618 emitting the annotation if it has already been emitted.
9619 (annotate_display_prompt): New function.
9620 * annotate.h (annotate_display_prompt): New declaration.
9621 * event-top.c: Include annotate.h.
9622 (display_gdb_prompt): Call annotate_display_prompt.
9623
187d10dd
PA
96242013-01-22 Pedro Alves <palves@redhat.com>
9625
9626 * annotate.c (ignore_count_changed): Delete.
9627 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9628 (annotate_ignore_count_change): Delete.
9629 (annotate_stopped): Don't emit a delayed breakpoints-changed
9630 annotation.
9631 * annotate.h (annotate_ignore_count_change): Delete.
9632 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9633 annotate_ignore_count_change.
9634
d84cf7eb
TT
96352013-01-22 Tom Tromey <tromey@redhat.com>
9636
9637 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9638 require_rvalue for a register location.
9639
8f1d5693
MK
96402013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9641
9642 * breakpoint.c (print_one_breakpoint_location): Add MI
9643 field 'thread-groups' when printing a breakpoint.
9644 (output_thread_groups): New function.
9645
aa6199c6
SCR
96462013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9647
9648 * python/lib/gdb/commands/explore.py
9649 (CompoundExplorer.explore_expr): Correct the name of a method
9650 being invoked.
9651 (ExploreTypeCommand.invoke): Add a missing 'return'.
9652
d2afef13
TT
96532013-01-21 Tom Tromey <tromey@redhat.com>
9654
9655 * gdb_obstack.h (obconcat): Move declaration here, from...
9656 * symfile.h (obconcat): ... here.
9657 * gdb_obstack.c: New file.
9658 (obconcat): Move from...
9659 * symfile.c (obconcat): ... here.
9660 * Makefile.in (SFILES): Add gdb_obstack.c.
9661 (COMMON_OBS): Add gdb_obstack.o.
9662
10f0c4bb
TT
96632013-01-21 Tom Tromey <tromey@redhat.com>
9664
9665 * symfile.h (obsavestring): Don't declare.
9666 * symfile.c (obsavestring): Remove.
9667 * ada-exp.y: Use obstack_copy0, not obsavestring.
9668 * ada-lang.c: Use obstack_copy0, not obsavestring.
9669 * coffread.c: Use obstack_copy0, not obsavestring.
9670 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9671 * dbxread.c: Use obstack_copy0, not obsavestring.
9672 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9673 * jit.c: Use obstack_copy0, not obsavestring.
9674 * mdebugread.c: Use obstack_copy0, not obsavestring.
9675 * psymtab.c: Use obstack_copy0, not obsavestring.
9676 * stabsread.c: Use obstack_copy0, not obsavestring.
9677 * xcoffread.c: Use obstack_copy0, not obsavestring.
9678
86f62fd7
TT
96792013-01-21 Tom Tromey <tromey@redhat.com>
9680
9681 * dwarf2read.c (fixup_go_packaging): Save package name
9682 on objfile obstack.
9683 * gdbtypes.c (init_type): Don't copy name.
9684
15d034d0
TT
96852013-01-21 Tom Tromey <tromey@redhat.com>
9686
9687 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9688 const.
9689 (struct attribute) <u.str>: Now const.
9690 (struct fnfieldlist) <name>: Now const.
9691 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9692 (partial_die_parent_scope): Make return type const.
9693 (partial_die_full_name, add_partial_symbol): Update.
9694 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9695 'name' const.
9696 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9697 (read_file_scope, read_func_scope, dwarf2_add_field)
9698 (dwarf2_add_member_fn, read_structure_type)
9699 (process_enumeration_scope, read_array_type, read_module_type)
9700 (read_base_type, read_subrange_type): Update.
9701 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9702 (new_symbol_full, guess_full_die_structure_name): Update.
9703 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9704 (dwarf2_name): Return const type.
9705 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9706 const.
9707
748e18ae
TT
97082013-01-21 Tom Tromey <tromey@redhat.com>
9709
9710 * gdbtypes.c (init_type): Make 'name' const.
9711 * gdbtypes.h (init_type): Update.
9712
46212e0b
TT
97132013-01-21 Tom Tromey <tromey@redhat.com>
9714
9715 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9716 (start_symtab): Make 'name' and 'dirname' const. Use
9717 set_last_source_file.
9718 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9719 (last_source_file): Define. Now static.
9720 (set_last_source_file, get_last_source_file): New functions.
9721 * buildsym.h (last_source_file): Don't declare.
9722 (start_symtab): Update.
9723 (set_last_source_file, get_last_source_file): Declare.
9724 * coffread.c (complete_symtab): Use set_last_source_file.
9725 (coff_end_symtab): Likewise.
9726 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9727 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9728 set_last_source_file.
9729 (process_one_symbol): Use get_last_source_file.
9730 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9731 (psymtab_to_symtab_1): Use get_last_source_file.
9732 * xcoffread.c (process_linenos): Use get_last_source_file.
9733 (complete_symtab): Use set_last_source_file.
9734 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9735 (scan_xcoff_symtab): Use set_last_source_file.
9736
9d2ceabe
TT
97372013-01-21 Tom Tromey <tromey@redhat.com>
9738
9739 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9740 (symbol_set_names): Remove casts. Handle field const-ness.
9741
cfc594ee
TT
97422013-01-21 Tom Tromey <tromey@redhat.com>
9743
9744 * dwarf2read.c (new_symbol_full): Remove cast.
9745 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9746 * symtab.h (symbol_set_demangled_name): Update.
9747
5484b13a
TT
97482013-01-21 Tom Tromey <tromey@redhat.com>
9749
9750 * main.c (captured_main): Call bfd_init.
9751
1605ef26
TT
97522013-01-21 Tom Tromey <tromey@redhat.com>
9753
9754 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9755 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9756 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9757 * NEWS: Update.
9758
3b74cdc3
JK
97592013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9762
5a352474
JK
97632013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 Fix gdb.fortran/common-block.exp crash in PIE mode.
9766 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9767 LOC_COMMON_BLOCK.
9768 * f-valprint.c (info_common_command_for_block): Expect
9769 LOC_COMMON_BLOCK in gdb_assert.
9770 * symtab.h (struct general_symbol_info): Update comment for the
9771 common_block member.
9772 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9773 (enum address_class): New member LOC_COMMON_BLOCK.
9774
c60797fd
DB
97752013-01-18 David Blaikie <dblaikie@gmail.com>
9776
9777 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 9778
46f35228
TT
97792013-01-18 Tom Tromey <tromey@redhat.com>
9780
9781 PR c++/14999:
9782 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9783 Call require_rvalue.
9784
257e7a09
YQ
97852013-01-18 Yao Qi <yao@codesourcery.com>
9786
9787 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9788 (dbx_read_symtab): New declaration.
9789 (dbx_psymtab_to_symtab): Delete.
9790 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9791 Rename parameter PST to SELF. Exchanged two parameters.
9792 (start_psymtab): Caller update.
9793 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9794 (dwarf2_read_symtab): New declaration.
9795 (dwarf2_psymtab_to_symtab): Delete.
9796 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9797 Rename parameter PST to SELF. Exchanged two parameters.
9798 (create_partial_symtab): Caller update.
9799 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9800 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9801 Rename parameter PST to SELF. Exchanged two parameters.
9802 (parse_partial_symbols, new_psymtab): Caller update.
9803 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9804 two parameters.
9805 * psymtab.c (psymtab_to_symtab): Caller update.
9806 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9807 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9808 Rename parameter PST to SELF. Exchanged two parameters.
9809 (xcoff_start_psymtab): Caller update.
9810
0de5618e
YQ
98112013-01-18 Yao Qi <yao@codesourcery.com>
9812
9813 * infrun.c (proceed): Rename local variable 'oneproc' to
9814 'force_step'.
9815
5c04624b
DE
98162013-01-17 Doug Evans <dje@google.com>
9817
848e3e78
DE
9818 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9819 (dw2_build_type_unit_groups): Delete. All uses updated.
9820
5c04624b
DE
9821 * symtab.h (struct symbol_search): Add comment.
9822
d84fca2c
JK
98232013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9824
9825 * symtab.c (compare_filenames_for_search): New comment for
9826 HAS_DRIVE_SPEC.
9827
6108433d
TT
98282013-01-17 Tom Tromey <tromey@redhat.com>
9829
9830 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9831
c89ffd86
JK
98322013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9833
9834 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9835 initialize it by existing make_cleanup. Call new do_cleanups.
9836
db2b2972
TT
98372013-01-17 Tom Tromey <tromey@redhat.com>
9838
9839 * cp-abi.c (cp_abi_completer): New function.
9840 (_initialize_cp_abi): Set completer for "set cp-abi".
9841
be7d37a2
TT
98422013-01-17 Tom Tromey <tromey@redhat.com>
9843
9844 * mem-break.c: Remove obsolete comment.
9845 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9846
c9fb1240
SD
98472012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9848
9849 * jit.c (jit_reader_load_command): Interpret the jit reader name
9850 as an absolute path if it begins with a forward slash.
9851
db334a01
SD
98522012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9853
9854 PR gdb/14550
9855
9856 * jit.c (finalize_symtab): Ensure that only the global block has a
9857 NULL superblock.
9858
7d928dac
PA
98592013-01-17 Pedro Alves <palves@redhat.com>
9860
9861 * acinclude.m4: Include ../config/plugins.m4,
9862 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9863 * Makefile.in (aclocal_m4_deps): Update.
9864 * aclocal.m4: Renegerate.
9865
fb8cf7c5
DE
98662013-01-16 Doug Evans <dje@google.com>
9867
9868 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9869
ab04a2af
TT
98702013-01-16 Pedro Alves <palves@redhat.com>
9871 Tom Tromey <tromey@redhat.com>
9872
9873 PR cli/7221:
9874 * NEWS: Add "catch signal".
9875 * breakpoint.c (base_breakpoint_ops): No longer static.
9876 (bpstat_explains_signal): New function.
9877 (init_catchpoint): No longer static.
9878 (base_breakpoint_explains_signal): New function.
9879 (base_breakpoint_ops): Initialize new field.
9880 * breakpoint.h (enum bpstat_signal_value): New.
9881 (struct breakpoint_ops) <explains_signal>: New field.
9882 (bpstat_explains_signal): Remove macro, declare as function.
9883 (base_breakpoint_ops, init_catchpoint): Declare.
9884 * break-catch-sig.c: New file.
9885 * inferior.h (signal_catch_update): Declare.
9886 * infrun.c (signal_catch): New global.
9887 (handle_syscall_event): Update for change to
9888 bpstat_explains_signal.
9889 (handle_inferior_event): Likewise. Always handle random signals
9890 via bpstats.
9891 (signal_cache_update): Check signal_catch.
9892 (signal_catch_update): New function.
9893 (_initialize_infrun): Initialize signal_catch.
9894 * Makefile.in (SFILES): Add break-catch-sig.c.
9895 (COMMON_OBS): Add break-catch-sig.o.
9896
8ac3646f
TT
98972013-01-16 Tom Tromey <tromey@redhat.com>
9898
9899 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9900 (print_one_catch_solib, print_one_catch_syscall)
9901 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9902 "catch-type".
9903
5a18e302
YQ
99042013-01-16 Yao Qi <yao@codesourcery.com>
9905
9906 * printcmd.c (current_display_number): Make it static.
9907
3f01d0d0
YQ
99082013-01-16 Yao Qi <yao@codesourcery.com>
9909
9910 * infcmd.c (step_once): Don't check '!single_inst' as it was
9911 checked before.
9912
1ed59174
JK
99132013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9914
9915 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9916
44478ab3
TT
99172013-01-14 Tom Tromey <tromey@redhat.com>
9918
9919 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9920 set command.
9921 * command.h (add_setshow_string_noescape_cmd): Update.
9922 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9923 (complete_set_gnutarget): New function.
9924 (_initialize_core): Set the "set gnutarget" completer.
9925
06d66ee9
TT
99262013-01-14 Tom Tromey <tromey@redhat.com>
9927
9928 PR symtab/14442:
9929 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9930 (c_type_print_modifier): Likewise.
9931 * dwarf2read.c (read_tag_restrict_type): New function.
9932 (read_type_die_1): Handle DW_TAG_restrict_type.
9933 * gdbtypes.c (make_restrict_type): New function.
9934 (recursive_dump_type): Handle TYPE_RESTRICT.
9935 * gdbtypes.h (enum type_flag_values): Renumber.
9936 (enum type_instance_flag_value): Add
9937 TYPE_INSTANCE_FLAG_RESTRICT.
9938 (TYPE_RESTRICT): New macro.
9939 (make_restrict_type): Declare.
9940
c9bf0622
TT
99412013-01-14 Tom Tromey <tromey@redhat.com>
9942
9943 PR symtab/14931:
9944 * psymtab.c (struct psymtab_state): New.
9945 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9946 functions.
9947 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9948 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9949
44d594fd
PA
99502013-01-14 Richard Sharman <richard_sharman@mitel.com>
9951 Pedro Alves <palves@redhat.com>
9952
9953 PR remote/14786
9954
9955 * remote.c (remote_threads_info): Make a copy of the reply from
9956 qfThreadInfo and use that instead of rs->buf.
9957
442e4d9c
YQ
99582013-01-14 Yao Qi <yao@codesourcery.com>
9959
9960 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9961 (dbx_psymtab_to_symtab): Likewise.
9962 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9963 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9964 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9965
5b12a61c
JK
99662013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9967
9968 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9969 make_cleanup_restore_current_language. Call set_language. Move
9970 OLD_CHAIN and INNER_CHAIN cleanups.
9971 * utils.c (do_restore_current_language)
9972 (make_cleanup_restore_current_language): New functions.
9973 * utils.h (make_cleanup_restore_current_language): New declaration.
9974
f0a4b570
JK
99752013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9978 non-existing files.
9979
57b3c00c
JK
9980 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9981 non-existing files if FILENAME is already absolute.
9982
daefa854
JK
99832013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9984
9985 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9986 fputs_filtered. Append trailing newline.
9987
ca9c6ee2
YQ
99882013-01-11 Yao Qi <yao@codesourcery.com>
9989 Stan Shebs <stan@codesourcery.com>
9990
9991 * psymtab.c (init_psymbol_list): Clarify the comment.
9992
f28045c2
YQ
99932013-01-11 Yao Qi <yao@codesourcery.com>
9994
9995 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9996 (update_dprintf_command_list): Assert that 'printf_line' is
9997 non-null. Remove condition check.
9998
da5132d3
JK
99992013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 Code cleanup.
10002 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10003 type const char *.
10004 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10005 const char *.
10006 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10007
843e694d
AG
100082013-01-09 Anthony Green <green@moxielogic.com>
10009
10010 * cp-abi.c (cplus_print_vtable): Don't return value from void
10011 function.
10012 * ada-lang.c (re_set_catch_assert): Ditto.
10013
da51c347
DE
100142013-01-09 Doug Evans <dje@google.com>
10015
10016 * symfile.h (quick_symbol_functions): Delete member
10017 pre_expand_symtabs_matching. All uses removed.
10018 * dwarf2read.c (dw2_lookup_symbol): Implement.
10019 (dw2_do_expand_symtabs_matching): Delete.
10020 (dw2_pre_expand_symtabs_matching): Delete.
10021 (struct dw2_symtab_iterator): New type.
10022 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10023 (dw2_expand_symtabs_for_function): Rewrite.
10024 (dwarf2_gdb_index_functions): Update.
10025 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10026 (psym_functions): Update.
10027
b2259038
TT
100282013-01-09 Tom Tromey <tromey@redhat.com>
10029
10030 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10031 * configure: Rebuild.
10032 * configure.ac: Add somread.o to the build if BFD has SOM
10033 support.
10034 * somread.c: Include som/aout.h, not syms.h.
10035 (som_symtab_read): Use som_external_symbol_dictionary_record.
10036 Unpack records manually.
10037 (_initialize_somread): Declare.
10038
bdad4180
MF
100392012-01-08 Mike Frysinger <vapier@gentoo.org>
10040
10041 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10042 Cast return_address to 64bits.
10043
03cdf680
HZ
100442013-01-08 Hui Zhu <hui_zhu@mentor.com>
10045
10046 * printcmd.c: Remove define of function output_command.
10047 * tracepoint.c: Remove extern of function output_command.
10048 * valprint.h: (output_command): New extern.
10049
8a808554
TT
100502013-01-07 Tom Tromey <tromey@redhat.com>
10051
10052 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10053 Remove.
10054 (objc_language_defn): Use c_printchar, c_printstr,
10055 c_emit_char.
10056
e93a8774
TT
100572013-01-07 Tom Tromey <tromey@redhat.com>
10058
10059 PR cli/7719:
10060 * NEWS: Update.
10061 * ada-valprint.c (printstr, print_field_values): Remove
10062 "inspect_it" code.
10063 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10064 code.
10065 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10066 code.
10067 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10068 * main.c (captured_main): Remove "epoch" argument.
10069 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10070 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10071 * p-valprint.c (pascal_object_print_value_fields): Remove
10072 "inspect_it" code.
10073 * printcmd.c (print_command_1): Remove 'inspect' argument.
10074 (print_command, call_command): Update.
10075 (inspect_command): Remove.
10076 (_initialize_printcmd): Make "inspect" an alias for "print".
10077 * top.c (epoch_interface): Remove.
10078 * top.h (epoch_interface): Remove.
10079 * valprint.c (user_print_options): Update.
10080 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10081 * valprint.h (struct value_print_options) <inspect_it>: Remove
10082 field.
10083
100842013-01-04 Tom Tromey <tromey@redhat.com>
10085
10086 * valprint.h (read_string): Add 'extern'.
10087
b967eb24
JB
100882013-01-07 Joel Brobecker <brobecker@adacore.com>
10089
10090 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10091 used to decide whether to define darwin_read_dyld_info or not.
10092
78a8b30e
PM
100932013-01-03 Pierre Muller <muller@sourceware.org>
10094
10095 * main.c (relocate_gdb_directory): Avoid calling stat function
10096 if DIR is empty.
10097
50da2f25
YQ
100982013-01-03 Yao Qi <yao@codesourcery.com>
10099
10100 * psymtab.c (fixup_psymbol_section): Update declaration.
10101 (fixup_psymbol_section): Remove code returning value.
10102
e7e8980f
YQ
101032013-01-03 Yao Qi <yao@codesourcery.com>
10104
10105 * symtab.h: Remove some out of date comments.
10106 (enum exception_event_kind): Move it ...
10107 * breakpoint.c: ... here.
10108
569283d4
MF
101092013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10110
9f9d9a96 10111 PR gdb/14405
569283d4
MF
10112 * darwin-nat.c (darwin_read_dyld_info): Only build if
10113 TASK_DYLD_INFO_COUNT is defined.
10114 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10115 TASK_DYLD_INFO_COUNT is defined.
10116
2e36fbea
TT
101172013-01-02 Tom Tromey <tromey@redhat.com>
10118
10119 * symfile.h (struct ecoff_debug_hack): Remove.
10120 * objfiles.c: Don't include mdebugread.h.
10121
4f05add4
TT
101222013-01-02 Tom Tromey <tromey@redhat.com>
10123
10124 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10125 * configure.ac: Check for Mach-O support in BFD. Update
10126 CONFIG_OBS.
10127 * configure: Rebuild.
10128
def63ff0
TT
101292013-01-02 Tom Tromey <tromey@redhat.com>
10130
10131 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10132 * configure.ac: Use GDB_AC_CHECK_BFD.
10133 * configure: Rebuild.
10134
60c5dd93
MK
101352013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10136
10137 * MAINTAINERS: Update my email.
10138
6e58437e
JB
101392013-01-01 Joel Brobecker <brobecker@adacore.com>
10140
10141 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10142
627fe805
JB
101432013-01-01 Joel Brobecker <brobecker@adacore.com>
10144
10145 * rs6000-nat.c (bss_data_overlap): New function.
10146 (vmap_symtab): Use it to adjust the .bss section's offset.
10147
28e7fd62
JB
101482013-01-01 Joel Brobecker <brobecker@adacore.com>
10149
10150 Update year range in copyright notice of all files.
10151
e93a8774 101522013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10153
10154 * top.c (print_gdb_version): Update copyright year.
10155
72b20e9c 10156For older changes see ChangeLog-2012.
c906108c
SS
10157\f
10158Local Variables:
10159mode: change-log
10160left-margin: 8
10161fill-column: 74
10162version-control: never
57da7796 10163coding: utf-8
c906108c 10164End:
This page took 1.878059 seconds and 4 git commands to generate.