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