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