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