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