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