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