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