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