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