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