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