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