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