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