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