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