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