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