Some cleanups on stap-probe.c
[binutils-gdb.git] / gdb / ChangeLog
1 2013-12-23 Sergio Durigan JUnior <sergiodj@redhat.com>
2
3 * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
4 (stap_is_generic_prefix): Delete extra brackets. Reindent.
5 (stap_parse_register_operand): Remove spurious newlines. Simplify
6 code to parse special token.
7 (stap_parse_argument_conditionally): Add gdb_assert.
8 (stap_parse_argument_1): Likewise. Explicitly check for NULL and
9 NUL.
10 (stap_parse_probe_arguments): Likewise.
11 (handle_stap_probe): Likewise. Reindent code.
12 (get_stap_base_address): Explicitly check for NULL.
13 (stap_get_probes): Likewise. Reindent code.
14 (stap_relocate): Explicitly check for 0.
15 (stap_gen_info_probes_table_values): Likewise.
16
17 2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
18
19 * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
20 (nios2_linux_sigreturn_tramp_frame): Remove.
21 (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
22 number.
23 (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
24 (nios2_linux_init_abi): Remove registration of
25 nios2_linux_sigreturn_tramp_frame.
26
27 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR gdb/16305
30 * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
31 adding prefix to opcode.
32
33 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR gdb/16304
36 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
37 address in 64-bit mode.
38
39 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
40
41 PR gdb/16304
42 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
43 address to 64-bit in 64-bit mode.
44
45 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
46
47 PR gdb/16304
48 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
49 system calls.
50 (amd64_x32_linux_record_tdep): New.
51 (amd64_linux_syscall_record_common): New function.
52 (amd64_linux_syscall_record): Call
53 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
54 (amd64_x32_linux_syscall_record): Call
55 amd64_linux_syscall_record_common with
56 amd64_x32_linux_record_tdep.
57 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
58 initialization and tdep->i386_syscall_record setup to ...
59 (amd64_linux_init_abi): Here.
60 (amd64_x32_linux_init_abi): Initialize
61 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
62 amd64_x32_linux_syscall_record.
63 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
64
65 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
66
67 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
68 argument prefixes and suffixes. Initialize gdbarch with them.
69 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
70 * gdbarch.c: Regenerate.
71 * gdbarch.h: Regenerate.
72 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
73 (stap_register_prefix, stap_register_suffix)
74 (stap_register_indirection_prefix)
75 (stap_register_indirection_suffix): Declare as "const char *const
76 *" instead of "const char *". Adjust printing function. Rename
77 all of the variables to the plural.
78 (pstring_list): New function.
79 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
80 argument prefixes and suffixes. Initialize gdbarch with them.
81 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
82 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
83 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
84 * stap-probe.c (stap_is_generic_prefix): New function.
85 (stap_is_register_prefix): Likewise.
86 (stap_is_register_indirection_prefix): Likewise.
87 (stap_is_integer_prefix): Likewise.
88 (stap_generic_check_suffix): Likewise.
89 (stap_check_integer_suffix): Likewise.
90 (stap_check_register_suffix): Likewise.
91 (stap_check_register_indirection_suffix): Likewise.
92 (stap_parse_register_operand): Remove unecessary declarations for
93 variables holding prefix and suffix information. Use the new
94 functions listed above for checking for prefixes and suffixes.
95 (stap_parse_single_operand): Likewise.
96
97 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
98
99 PR breakpoints/16297
100 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
101 when expected syscall is hit.
102
103 2013-12-19 Tom Tromey <tromey@redhat.com>
104
105 * ser-unix.c (hardwire_ops): New global.
106 (_initialize_ser_hardwire): Use it.
107 * ser-tcp.c (tcp_ops): New global.
108 (_initialize_ser_tcp): Use it.
109 * ser-pipe.c (pipe_ops): New global.
110 (_initialize_ser_pipe): Use it.
111 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
112 globals.
113 (_initialize_ser_windows): Use them.
114
115 2013-12-19 Tom Tromey <tromey@redhat.com>
116
117 * serial.c (serial_ops_p): New typedef.
118 (serial_ops_list): Now a VEC.
119 (serial_interface_lookup): Return const. Use VEC_iterate.
120 (serial_add_interface): Make parameter const.
121 (serial_open): Update.
122 (serial_fdopen_ops): Make 'ops' const.
123 (serial_pipe): Update.
124 * ser-tcp.c (_initialize_ser_tcp): Update.
125 * ser-pipe.c (_initialize_ser_pipe): Update.
126 * ser-unix.c (_initialize_ser_hardwire): Update.
127 * ser-mingw.c (_initialize_ser_windows): Update.
128 * ser-go32.c (dos_ops): Now const. Update.
129 * serial.h (struct serial) <ops>: Now const.
130 (struct serial_ops) <next>: Remove.
131 (serial_add_interface): Make parameter const.
132
133 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
134
135 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
136 iov.iov_len with the real length in use.
137
138 2013-12-18 Yao Qi <yao@codesourcery.com>
139
140 * target.h (target_xfer_partial_ftype): New typedef.
141 (target_xfer_partial): Update declaration.
142 * auxv.h (memory_xfer_auxv): Likewise.
143 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
144 * ia64-linux-nat.c (super_xfer_partial): Likewise.
145 * linux-nat.c (super_xfer_partial): Likewise.
146 * procfs.c (procfs_xfer_partial): Likewise.
147 * record-full.c (record_full_beneath_to_xfer_partial):
148 (tmp_to_xfer_partial): Likewise.
149 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
150 * target.c (default_xfer_partial): Likewise.
151 (current_xfer_partial): Likewise.
152 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
153
154 2013-12-18 Yao Qi <yao@codesourcery.com>
155
156 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
157 of sprintf.
158 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
159 (linux_proc_pending_signals): Likewise.
160
161 2013-12-18 Joel Brobecker <brobecker@adacore.com>
162
163 * value.c (value_entirely_unavailable): ARI fix: Move trailing
164 binary operator to the next line. No actual code change.
165
166 2013-12-17 Pedro Alves <palves@redhat.com>
167
168 * frame.h (enum frame_id_stack_status): New enum.
169 (struct frame_id) <stack_addr>: Adjust comment.
170 <stack_addr_p>: Delete field, replaced with ...
171 <stack_status>: ... this new field.
172 (frame_id_build_unavailable_stack): Declare.
173 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
174 (frame_id_build_special): Adjust.
175 (frame_id_build_unavailable_stack): New function.
176 (frame_id_build, frame_id_build_wild): Adjust.
177 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
178 account frames with unavailable stack.
179
180 * amd64-tdep.c (amd64_frame_this_id)
181 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
182 frame_id_build_unavailable_stack.
183 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
184 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
185 (i386_sigtramp_frame_this_id): Likewise.
186
187 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
188
189 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
190 unavailable, use correct bit length.
191 * value.c (struct value): Extend comment on unavailable to
192 indicate that it is bit based.
193 (value_bits_available): New function.
194 (value_bytes_available): Call value_bits_available.
195 (value_entirely_available): Check against the bit length, not byte
196 length.
197 (mark_value_bits_unavailable): New function.
198 (mark_value_bytes_unavailable): Move contents to
199 mark_value_bits_unavailable, call to same.
200 (memcmp_with_bit_offsets): New function.
201 (value_available_contents_bits_eq): New function, takes the
202 functionality from value_available_contents_eq but uses
203 memcmp_with_bit_offsets now, and is bit not byte based.
204 (value_available_contents_eq): Move implementation into
205 value_available_contents_bits_eq, call to same.
206 (value_contents_copy_raw): Work on bits, not bytes.
207 (unpack_value_bits_as_long_1): Check availability in bits, not
208 bytes.
209 * value.h (value_bits_available): Declare new function.
210 (mark_value_bits_unavailable): Declare new function.
211
212 2013-12-16 Pierre Muller <muller@sourceware.org>
213
214 Fix compilation error for cygwin native build.
215 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
216 Call wcstombs.
217
218 2013-12-16 Pedro Alves <palves@redhat.com>
219
220 PR 16329
221 * sol-thread.c (check_for_thread_db): If the target can't run or
222 isn't a core, return without pushing.
223
224 2013-12-15 Joel Brobecker <brobecker@adacore.com>
225
226 Revert the following commit:
227 * solib.c (solib_map_sections): Remove code overwriting
228 SO->SO_NAME with the bfd's filename.
229
230 Make the following changes required after the revert above:
231 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
232 returned bfd to a copy of the synthetic pathname.
233 * solib-darwin.c (darwin_bfd_open): Set the filename of the
234 returned bfd to a copy of PATHNAME.
235
236 2013-12-13 Joel Brobecker <brobecker@adacore.com>
237
238 * ada-lang.c (ada_array_bound_from_type): Move the declaration
239 and assignment of variable "elt_type" inside the else block
240 where it is used. Add two missing check_typedef calls.
241 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
242 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
243
244 2013-12-13 Joel Brobecker <brobecker@adacore.com>
245
246 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
247 between 'struct type *' and 'arr_type'.
248
249 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
250
251 PR python/16113
252 * NEWS (Python Scripting): Add entry for the new feature and the
253 new attribute of gdb.Field objects.
254 * python/py-type.c (gdbpy_is_field): New function
255 (convert_field): Add 'parent_type' attribute to gdb.Field
256 objects.
257 * python/py-value.c (valpy_getitem): Allow subscript value to be
258 a gdb.Field object.
259 (value_has_field): New function
260 (get_field_flag): New function
261 * python/python-internal.h (gdbpy_is_field): Add declaration.
262
263 2013-12-12 Pedro Alves <palves@redhat.com>
264
265 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
266 const, and remove casts.
267
268 2013-12-12 Pedro Alves <palves@redhat.com>
269
270 * cli/cli-cmds.c (source_script_from_stream) Use have_python
271 instead of catching UNSUPPORTED_ERROR.
272 * exceptions.h (UNSUPPORTED_ERROR): Delete.
273 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
274 error if called.
275 * python/python.h (have_python): New static inline function.
276
277 2013-12-11 Doug Evans <dje@google.com>
278
279 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
280 "can't find DWO" warning.
281
282 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
283
284 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
285 to get_probe_argument_count and evaluate_probe_argument.
286 * probe.c (get_probe_argument_count): Adjust declaration to accept
287 frame. Pass frame to probe_ops's get_probe_argument_count.
288 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
289 (probe_safe_evaluate_at_pc): Pass frame to
290 get_probe_argument_count and evaluate_probe_argument.
291 * probe.h (struct probe_ops) <get_probe_argument_count,
292 evaluate_probe_argument>: Adjust declarations to accept frame.
293 (get_probe_argument_count, evaluate_probe_argument): Likewise.
294 * solib-svr4.c (solib_event_probe_action): Get current frame.
295 Pass it to get_probe_argument_count.
296 (svr4_handle_solib_event): Get current frame. Pass it to
297 get_probe_argument_count and evaluate_probe_argument.
298 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
299 accept gdbarch. Do not obtain it from the probe's objfile.
300 (stap_get_probe_argument_count): Adjust declaration to accept
301 frame. Obtain gdbarch from the frame. Call generic
302 can_evaluate_probe_arguments. Pass gdbarch to
303 stap_parse_probe_arguments.
304 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
305 stap_parse_probe_arguments.
306 (stap_evaluate_probe_argument): Adjust declaration to accept
307 frame. Obtain gdbarch from the frame. Pass gdbarch to
308 stap_get_arg.
309 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
310 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
311 get_probe_argument_count and evaluate_probe_argument.
312
313 2013-12-10 Doug Evans <dje@google.com>
314
315 PR 16286
316 * c-lang.c (c_get_string): Ignore the declared size of the object
317 if a specific length is requested.
318
319 2013-12-10 Doug Evans <dje@google.com>
320
321 * interps.h (interp_exec_p): Delete.
322 * interps.c (interp_exec_p): Delete.
323 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
324 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
325
326 2013-12-10 Yao Qi <yao@codesourcery.com>
327
328 * amd64-tdep.c (amd64_analyze_stack_align): Call
329 target_read_code instead of target_read_memory.
330 (amd64_analyze_prologue): Call read_code_unsigned_integer
331 instead of read_memory_unsigned_integer. Call read_code
332 instead of read_memory.
333 (amd64_skip_xmm_prologue): Likewise.
334
335 2013-12-10 Yao Qi <yao@codesourcery.com>
336
337 * corefile.c (read_code): New function.
338 (read_code_integer): New function.
339 (read_code_unsigned_integer): New function.
340 * gdbcore.h (read_code): Declare.
341 (read_code_integer): Declare.
342 (read_code_unsigned_integer): Declare.
343 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
344 of target_read_memory. Call read_code_unsigned_integer instead
345 of read_memory_unsigned_integer.
346 (i386_analyze_struct_return): Likewise.
347 (i386_skip_probe): Likewise.
348 (i386_analyze_stack_align): Likewise.
349 (i386_match_pattern): Likewise.
350 (i386_skip_noop): Likewise.
351 (i386_analyze_frame_setup): Likewise.
352 (i386_analyze_register_saves): Likewise.
353 (i386_skip_prologue): Likewise.
354 (i386_skip_main_prologue): Likewise.
355 (i386_frame_cache_1): Likewise.
356
357 2013-12-10 Yao Qi <yao@codesourcery.com>
358
359 * infrun.c: Include "target-dcache.h".
360 (prepare_for_detach): Call target_dcache_invalidate.
361 (wait_for_inferior): Likewise.
362 (fetch_inferior_event): Likewise.
363 (infrun_thread_stop_requested_callback): Likewise. Set
364 overlay_cache_invalid to 1.
365
366 2013-12-10 Joel Brobecker <brobecker@adacore.com>
367
368 * symtab.c (symbol_find_demangled_name): Add handling of
369 Ada symbols.
370
371 2013-12-10 Joel Brobecker <brobecker@adacore.com>
372
373 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
374 * NEWS: Expand the entry documenting the new -exec-run --start
375 option to mention the corresponding new entry in the output of
376 "-list-features".
377
378 2013-12-10 Joel Brobecker <brobecker@adacore.com>
379
380 * windows-nat.c (handle_load_dll): Add comments.
381 (windows_ensure_ntdll_loaded): New function.
382 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
383 Add FIXME comment.
384
385 2013-12-08 Joel Brobecker <brobecker@adacore.com>
386
387 GDB 7.6.2 released.
388
389 2013-12-08 Yao Qi <yao@codesourcery.com>
390
391 * stack.c (frame_info): Initialize variable caller_pc.
392
393 2013-12-06 Pedro Alves <palves@redhat.com>
394
395 * frame.c (enum cached_copy_status): New enum.
396 (struct frame_info) <prev_pc.p>: Change type to enum
397 cached_copy_status.
398 (fprint_frame): Handle not saved and unavailable prev_pc values.
399 (frame_unwind_pc_if_available): Delete and merge contents into ...
400 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
401 to use enum cached_copy_status.
402 (frame_unwind_caller_pc_if_available): Delete.
403 (create_new_frame): Adjust.
404 * frame.h (frame_unwind_caller_pc_if_available): Delete
405 declaration.
406 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
407 frame_unwind_caller_pc_if_available, and handle
408 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
409 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
410 (val_print_not_saved): New function.
411 * valprint.h (val_print_not_saved): Declare.
412
413 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
414 Pedro Alves <palves@redhat.com>
415
416 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
417 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
418 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
419 * spu-tdep.c (spu_software_single_step): Throw
420 OPTIMIZED_OUT_ERROR.
421 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
422
423 2013-12-06 Tom Tromey <tromey@redhat.com>
424
425 * objfiles.c (free_objfile): Update comment.
426
427 2013-12-06 Tom Tromey <tromey@redhat.com>
428
429 * objfiles.h (objfile_to_front): Remove.
430 * objfiles.c (objfile_to_front): Remove.
431
432 2013-12-06 Tom Tromey <tromey@redhat.com>
433
434 * minsyms.c (get_symbol_leading_char): Remove unnecessary
435 declaration.
436
437 2013-12-06 Tom Tromey <tromey@redhat.com>
438
439 * psympriv.h (struct partial_symtab) <user>: Move earlier.
440
441 2013-12-06 Tom Tromey <tromey@redhat.com>
442
443 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
444 (list_command): Likewise.
445
446 2013-12-06 Tom Tromey <tromey@redhat.com>
447
448 * psymtab.c (allocate_psymtab): Put the filename in the filename
449 bcache.
450
451 2013-12-06 Tom Tromey <tromey@redhat.com>
452
453 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
454 * symtab.h (struct symtab) <dirname>: Now const.
455
456 2013-12-06 Tom Tromey <tromey@redhat.com>
457
458 * symfile.c (allocate_symtab): Remove cast.
459 * symtab.h (struct symtab) <filename>: Now const.
460
461 2013-12-06 Tom Tromey <tromey@redhat.com>
462
463 * break-catch-throw.c (fetch_probe_arguments): Use
464 get_probe_argument_count and evaluate_probe_argument.
465 * elfread.c (elf_get_probe_argument_count)
466 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
467 (elf_compile_to_ax): Remove.
468 (elf_probe_fns): Update.
469 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
470 (evaluate_probe_argument): Call method on probe, not via sym
471 functions.
472 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
473 evaluate_probe_argument.
474 (compile_probe_arg): Use get_probe_argument_count. Call method on
475 probe, not via sym functions.
476 * symfile-debug.c (debug_sym_get_probe_argument_count)
477 (debug_can_evaluate_probe_arguments)
478 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
479 Remove.
480 (debug_sym_probe_fns): Remove.
481 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
482 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
483 sym_compile_to_ax>: Remove fields.
484
485 2013-12-06 Pierre Muller <muller@sourceware.org>
486
487 Fix completion for pascal language.
488 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
489 (exp : field_exp name COMPLETE): New rule.
490 (exp : SIZEOF): Set correct current_type.
491 (last_was_structop): Remove static variable.
492 (yylex): Remove saw_structop local variable.
493 Adapt code to removal of variables above.
494
495 2013-12-06 Joel Brobecker <brobecker@adacore.com>
496
497 * frame.c (get_prev_frame_1): Delete variable "this_id".
498 Replace its use by a call to get_frame_id.
499
500 2013-12-05 Anthony Green <green@moxielogic.com>
501
502 * moxie-tdep.c (moxie_software_single_step): New function.
503 (INST2OFFSET): New helper macro.
504 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
505 (moxie_process_readu): Move this up in the file.
506
507 2013-12-05 Doug Evans <xdje42@gmail.com>
508
509 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
510
511 2013-12-05 Joel Brobecker <brobecker@adacore.com>
512 Tristan Gingold <gingold@adacore.com>
513
514 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
515 Accept version 2. Ignore operations using opcode 6.
516
517 2013-12-05 Joel Brobecker <brobecker@adacore.com>
518
519 * ada-lex.l (find_dot_all): Fix coding style violations.
520
521 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
522
523 * NEWS: Add section for Intel(R) Architecture Instructions
524 Extesions mentioning MPX.
525
526 2013-12-03 Joel Brobecker <brobecker@adacore.com>
527
528 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
529
530 2013-12-03 Joel Brobecker <brobecker@adacore.com>
531
532 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
533 when parse_exp_1 threw an error. Add comment.
534
535 2013-12-03 Joel Brobecker <brobecker@adacore.com>
536
537 * NEWS: Mention "-list-features" in the entry documenting
538 the support for the "--language" option.
539
540 2013-12-03 Tom Tromey <tromey@redhat.com>
541 Jan Kratochvil <jan.kratochvil@redhat.com>
542 Doug Evans <dje@google.com>
543 Samuel Bronson <naesten@gmail.com>
544
545 Bring back gdb-add-index as a contrib script.
546 * contrib/gdb-add-index.sh: New file.
547 * NEWS: Note the addition.
548
549 2013-12-03 Samuel Bronson <naesten@gmail.com>
550
551 * MAINTAINERS (Write After Approval): Add myself to the list.
552
553 2013-12-03 Joel Brobecker <brobecker@adacore.com>
554
555 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
556
557 2013-12-03 Joel Brobecker <brobecker@adacore.com>
558
559 * mi/mi-main.c: Remove trailing spaces throughout.
560
561 2013-12-03 Pedro Alves <palves@redhat.com>
562 Joel Brobecker <brobecker@adacore.com>
563
564 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
565 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
566 of a regular error when the GDB/MI command does not exist.
567 * mi/mi-main.c (mi_cmd_list_features): Add
568 "undefined-command-error-code".
569 (mi_print_exception): Print an "undefined-command"
570 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
571 * NEWS: Add entry documenting the new "code" variable in
572 "^error" result records.
573
574 2013-12-03 Joel Brobecker <brobecker@adacore.com>
575
576 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
577 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
578 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
579 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
580 field to output of "-list-features".
581
582 * NEWS: Add entry for new -info-gdb-mi-command.
583
584 2013-12-02 Doug Evans <dje@google.com>
585 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 * objfiles.c (allocate_objfile): Save original_name as an absolute
588 path.
589 * objfiles.h (struct objfile): Expand comment on original_name.
590 * source.c (openp): Call gdb_abspath.
591 * utils.c (gdb_abspath): New function.
592 * utils.h (gdb_abspath): Declare.
593
594 2013-12-02 Pedro Alves <palves@redhat.com>
595
596 * dcache.c (dcache_read_line): Use target_read_raw_memory.
597 * target.c (target_read_raw_memory): New function.
598 (target_read_stack, target_write_memory, target_write_raw_memory):
599 Update comment.
600 (target_read_code): Add comment.
601 * target.h (target_read_raw_memory): Declare.
602
603 2013-12-02 Pedro Alves <palves@redhat.com>
604
605 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
606 unconditionally.
607
608 2013-12-02 Pedro Alves <pedro@codesourcery.com>
609 Maciej W. Rozycki <macro@codesourcery.com>
610
611 * remote.c (putpkt_for_catch_errors): Remove function.
612 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
613 gracefully.
614
615 2013-12-02 Pedro Alves <palves@redhat.com>
616
617 PR remote/15974
618 * remote-notif.c (handle_notification): Return early if no
619 notification is found.
620
621 2013-12-02 Joel Brobecker <brobecker@adacore.com>
622
623 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
624 preprocessor check.
625
626 2013-12-02 Joel Brobecker <brobecker@adacore.com>
627
628 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
629
630 2013-12-02 Joel Brobecker <brobecker@adacore.com>
631
632 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
633 * ctf.c (ctf_start): Remove obsolete comment.
634
635 2013-12-02 Joel Brobecker <brobecker@adacore.com>
636
637 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
638
639 2013-11-30 Doug Evans <xdje42@gmail.com>
640
641 * auto-load.h (script_language): New members name, auto_load_enabled.
642 Add missing comments on struct members.
643 (auto_load_objfile_script): Delete.
644 * auto-load.c: #include "cli/cli-cmds.h".
645 (auto_load_gdb_scripts_enabled): New function.
646 (script_language_gdb): Update, add new members.
647 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
648 and call to maybe_add_script moved to caller.
649 (auto_load_objfile_script_1): Auto-load safe-checking and
650 call to maybe_add_script moved here.
651 (auto_load_objfile_script): Make static. Early exit if support for
652 scripting language hasn't been compiled in, or auto-loading has been
653 disabled.
654 (source_section_scripts): Argument "source_name" renamed to
655 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
656 with section_name. Skip loading script if support for scripting
657 language hasn't been compiled in, or auto-loading has been disabled.
658 Call language->source_script_for_objfile instead of calling
659 source_python_script_for_objfile directly.
660 (load_auto_scripts_for_objfile): Update.
661 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
662 (gdbpy_load_auto_script_for_objfile): Delete.
663 (auto_load_python_scripts_enabled): New function.
664 (script_language_python): Update, add new members.
665 (gdbpy_script_language_defn): New function.
666 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
667 (gdbpy_script_language_defn): Declare.
668
669 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
670 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
671 (source_section_scripts): Moved here from py-auto-load.c.
672 (auto_load_section_scripts): Ditto.
673 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
674 auto-load.c, renamed AUTO_SECTION_NAME.
675 (source_section_scripts, auto_load_section_scripts): Moved to
676 auto-load.c.
677
678 2013-11-30 Yao Qi <yao@codesourcery.com>
679
680 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
681
682 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
683
684 * gdbarch.sh: Remove include of "gdb_string.h", replace by
685 <string.h>.
686
687 2013-11-29 Doug Evans <xdje42@gmail.com>
688
689 * python/py-auto-load.c (source_section_scripts): Move comment to
690 more relevant location.
691
692 Whitespace cleanup.
693 * python/py-breakpoint.c: Remove trailing whitespace.
694 * python/py-cmd.c: Ditto.
695 * python/py-evts.c: Ditto.
696 * python/py-finishbreakpoint.c: Ditto.
697 * python/py-frame.c: Ditto.
698 * python/py-function.c: Ditto.
699 * python/py-inferior.c: Ditto.
700 * python/py-infthread.c: Ditto.
701 * python/py-param.c: Ditto.
702 * python/py-prettyprint.c: Ditto.
703 * python/py-symbol.c: Ditto.
704 * python/py-type.c: Ditto.
705 * python/py-utils.c: Ditto.
706 * python/py-value.c: Ditto.
707 * python/python-internal.h: Ditto.
708 * python/python.c: Ditto.
709
710 2013-11-29 Pedro Alves <palves@redhat.com>
711
712 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
713
714 2013-11-29 Pedro Alves <palves@redhat.com>
715
716 * breakpoint.c (build_target_condition_list): Release previous
717 conditions.
718 (build_target_command_list): Release previous commands.
719 (bp_location_dtor): Release target conditions and commands.
720 * remote.c (remote_add_target_side_condition): Don't release
721 conditions.
722 (remote_add_target_side_commands): Don't release commands.
723
724 2013-11-29 Yao Qi <yao@codesourcery.com>
725 Pedro Alves <palves@redhat.com>
726
727 * dcache.c (dcache_read_line): Use current_target.beneath
728 instead of &current_target.
729 * target.c (memory_xfer_partial_1): Factor code out to ...
730 (raw_memory_xfer_partial): ... it. New function.
731 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
732 is TARGET_OBJECT_RAW_MEMORY.
733
734 2013-11-28 Doug Evans <xdje42@gmail.com>
735
736 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
737 breakpoint_object. All uses updated.
738 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
739 breakpoint_object. All uses updated.
740 * python.c (*): All uses of breakpoint_object updated.
741 * python.h (*): All uses of breakpoint_object updated.
742 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
743 * python/py-finishbreakpoint.c (*): Ditto.
744
745 2013-11-28 Doug Evans <xdje42@gmail.com>
746
747 * configure.ac: Add comments delineating libpython and libmcheck.
748 * configure: Regenerate.
749
750 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
751 Pedro Alves <palves@redhat.com>
752
753 * valprint.c (value_check_printable): If the value is entirely
754 unavailable, print a single "<unavailable>" instead of printing
755 all subfields.
756
757 2013-11-28 Pedro Alves <palves@redhat.com>
758
759 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
760 Add "set debug frame" output.
761 (frame_stop_reason_symbol_string): New function.
762
763 2013-11-28 Pedro Alves <palves@redhat.com>
764
765 * frame-unwind.c (default_frame_unwind_stop_reason): Return
766 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
767 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
768
769 2013-11-28 Pedro Alves <palves@redhat.com>
770
771 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
772 set the unwind stop reason to UNWIND_OUTERMOST, not
773 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
774
775 2013-11-28 Pedro Alves <palves@redhat.com>
776
777 * frame.c (frame_unwind_register): Say the register was "not
778 saved" instead of "optimized out".
779
780 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
781
782 PR 16152
783 * configure: Rebuild.
784 * configure.ac: Tighten cygwin detection check.
785
786 2013-11-27 Pedro Alves <palves@redhat.com>
787
788 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
789 register in the previous frame's arch.
790
791 2013-11-27 Pedro Alves <palves@redhat.com>
792
793 * frame-unwind.c (frame_unwind_got_optimized): Return
794 an lval_register value instead of a not_lval value.
795
796 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
797
798 * frame.c: Include "valprint.h".
799 (frame_unwind_register_value): Use value_optimized_out.
800 * value.c (value_fetch_lazy): Likewise.
801
802 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
803
804 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
805
806 2013-11-26 Tom Tromey <tromey@redhat.com>
807
808 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
809 2013-11-22.
810
811 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
812
813 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
814 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
815 (HAS_MPX): New macro.
816 (HAS_AVX): New macro.
817 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
818
819 2013-11-25 Keith Seitz <keiths@redhat.com>
820
821 PR c++/14819
822 * c-exp.y (classify_inner_name): If no matching symbol was
823 found, try looking up the token as a base class.
824 Likewise if a constructor was found.
825 * cp-namespace.c (find_type_baseclass_by_name): New function.
826 * cp-support.h (find_type_baseclass_by_name): Declare.
827 * valops.c (value_struct_elt_for_reference): If we get
828 a non-static field, try to get a value based on the
829 current instance, if any.
830
831 2013-11-24 Yao Qi <yao@codesourcery.com>
832
833 * disasm.c (dis_asm_read_memory): Call target_read_code
834 instead of target_read_memory.
835
836 2013-11-24 Yao Qi <yao@codesourcery.com>
837
838 * NEWS: Add note on new "set code-cache" option.
839 * target-dcache.c (code_cache_enabled_1): New variable.
840 (code_cache_enabled): New variable.
841 (show_code_cache, set_code_cache): New function.
842 (code_cache_enabled_p): New function.
843 (_initialize_target_dcache): Register command.
844 * target-dcache.h (code_cache_enabled_p): Declare.
845 * target.c (memory_xfer_partial_1):Handle
846 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
847 (target_read_code): New function.
848 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
849 New.
850 (target_read_code): Declare.
851
852 2013-11-24 Yao Qi <yao@codesourcery.com>
853
854 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
855 (stack_cache_enabled_1): ... this. New variable.
856 (stack_cache_enabled_p): Rename to ...
857 (stack_cache_enabled): ... this. New variable.
858 (set_stack_cache_enabled_p): Rename to ...
859 (set_stack_cache): ... this. Update caller.
860 (show_stack_cache_enabled_p): Rename to ...
861 (show_stack_cache): ... this. Update caller.
862 (stack_cache_enabled): Rename to ...
863 (stack_cache_enabled_p): ... this. Update caller.
864 (_initialize_target_dcache): Replace "data cache" with
865 "target memory cache".
866 * target-dcache.h (stack_cache_enabled): Remove declaration.
867 (stack_cache_enabled_p): Add declaration.
868
869 2013-11-23 Doug Evans <xdje42@gmail.com>
870
871 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
872 superfluous.
873
874 2013-11-23 Doug Evans <xdje42@gmail.com>
875
876 * python/py-frame.c (frapy_block): Fix error message text.
877
878 2013-11-23 Doug Evans <xdje42@gmail.com>
879
880 * cli/cli-script.c (multi_line_command_p): New function.
881 (recurse_read_control_structure, read_command_lines_1): Call it.
882 (execute_control_command): Consistently have a blank line between
883 each case.
884
885 2013-11-22 Sterling Augustine <saugustine@google.com>
886
887 PR gdb/16196:
888 * valprint.c (read_string): Set new variable fetchlen based on
889 fetchlimit and size. Use it in call to partial_memory_read.
890 Update comment.
891
892 2013-11-22 Tom Tromey <tromey@redhat.com>
893
894 PR backtrace/16155:
895 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
896 the return address column is unspecified.
897
898 2013-11-22 Tom Tromey <tromey@redhat.com>
899 Pedro Alves <palves@redhat.com>
900
901 PR backtrace/16155
902 * value.c (value_fetch_lazy): Internal error if
903 get_frame_register_value returns the same register.
904
905 2013-11-22 Pedro Alves <palves@redhat.com>
906 Tom Tromey <tromey@redhat.com>
907
908 * frame.c (frame_stash_add): Now returns whether a frame with the
909 same ID was already known.
910 (compute_frame_id): New function, factored out from get_frame_id.
911 (get_frame_id): No longer lazilly compute the frame id here.
912 (get_prev_frame_if_no_cycle): New function. Detects wider stack
913 cycles.
914 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
915 and checking for stack cycles here.
916
917 2013-11-22 Pedro Alves <palves@redhat.com>
918
919 PR 16155
920 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
921 this frame and the new previous frame, not between this frame and
922 the next frame.
923
924 2013-11-22 Pedro Alves <palves@redhat.com>
925
926 PR 16155
927 * dwarf2-frame.c (struct dwarf2_frame_cache)
928 <checked_tailcall_bottom, entry_cfa_sp_offset,
929 entry_cfa_sp_offset_p>: New fields.
930 (dwarf2_frame_cache): Adjust to use the new cache fields instead
931 of locals. Don't call dwarf2_tailcall_sniffer_first here.
932 (dwarf2_frame_prev_register): Call it here, but only once.
933
934 2013-11-21 Doug Evans <xdje42@gmail.com>
935
936 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
937 (type_equality_entry): Move here from python/py-type.c.
938 (type_equality_entry_d): Ditto.
939 (compare_maybe_null_strings, check_types_equal): Ditto.
940 (check_types_worklist, types_deeply_equal): Ditto.
941 * gdbtypes.h (types_deeply_equal): Declare.
942 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
943 (typy_richcompare): Update.
944
945 2013-11-20 Joel Brobecker <brobecker@adacore.com>
946
947 * python/py-value.c (is_intlike): Delete.
948 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
949 by use of is_integral_type.
950 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
951 by use of is_integral_type and check for TYPE_CODE_PTR.
952
953 2013-11-20 Tom Tromey <tromey@redhat.com>
954
955 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
956 strerror module.
957 * gnulib/aclocal.m4: Update.
958 * gnulib/config.in: Update.
959 * gnulib/configure: Update.
960 * gnulib/import/Makefile.am: Update.
961 * gnulib/import/Makefile.in: Update.
962 * gnulib/import/errno.in.h: Remove.
963 * gnulib/import/intprops.h: Remove.
964 * gnulib/import/m4/errno_h.m4: Remove.
965 * gnulib/import/m4/gnulib-cache.m4: Update.
966 * gnulib/import/m4/gnulib-comp.m4: Update.
967 * gnulib/import/m4/strerror.m4: Remove.
968 * gnulib/import/m4/sys_socket_h.m4: Remove.
969 * gnulib/import/strerror-override.c: Remove.
970 * gnulib/import/strerror-override.h: Remove.
971 * gnulib/import/strerror.c: Remove.
972 * gnulib/update-gnulib.sh: Update.
973
974 2013-11-20 Yao Qi <yao@codesourcery.com>
975
976 * target-dcache.c (target_dcache_get_or_init): Call
977 set_address_space_data if 'dcache' is NULL.
978
979 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
980
981 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
982
983 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
984
985 * python/lib/gdb/command/bound_register.py: New file.
986 * data-directory/Makefile.in: Copy bond_register.py to the right path
987 to be initialized at gdb startup.
988
989 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
990
991 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
992 Add MPX registers.
993 (amd64_linux_read_description): Add initialization for MPX and
994 AVX independently.
995 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
996 (amd64_linux_gregset_reg_offset): Add MPX registers.
997 (amd64_linux_core_read_description): Add initialization for MPX
998 registers.
999 (_initialize_amd64_linux_tdep): Initialize MPX targets.
1000 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
1001 register on the list.
1002 (tdesc_amd64_mpx_linux) Add new target for MPX.
1003 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
1004 (amd64_mpx_names): MPX register names.
1005 (amd64_init_abi): Add MPX register while initializing the ABI.
1006 (_initialize_amd64_tdep): Initialize MPX targets.
1007 * amd64-tdep.h (amd64_regnum): Add MPX registers.
1008 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
1009
1010 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1011
1012 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
1013 registers on the range of registers to be read from
1014 xsave buffer.
1015 (i386_linux_read_description): Add case for MPX.
1016 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
1017 (i386_linux_gregset_reg_offset): Add MPX registers.
1018 (i386_linux_core_read_description): Initialize also MPX.
1019 (_initialize_i386_linux_tdep): Add mpx initialization.
1020 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
1021 mpx_register_names.
1022 (i386_regnum): Add MPX registers.
1023 (I386_MPX_NUM_REGS): New macro.
1024 (i386_bnd_regnum_p): New function.
1025 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
1026 number of registers to be the number of BNDSTATUS.
1027 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
1028 * i386-tdep.c: Include features/i386/i386-mpx.c.
1029 (i386_mpx_names): Add MPX register names array.
1030 (i386_bnd_names): Add bnd pseudo register names array.
1031 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1032 registers.
1033 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1034 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1035 registers.
1036 (i386_bnd_type): New function.
1037 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1038 register types.
1039 (i386_pseudo_register_read_into_value): Add bnd case.
1040 (i386_pseudo_register_write): Add bnd pseudo registers.
1041 (i386_register_reggroup_p): Add MPX register to the group all.
1042 (i386_validate_tdesc_p): Add MPX to the target description
1043 validation.
1044 (i386_pseudo_register_name): Add bnd pseudo registers.
1045 (i386_gdbarch_init): Add MPX for architecture initialization.
1046 (_initia_initialize_i386_tdep): Add mpx initialization.
1047 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1048 XSAVE buffer.
1049 (XSAVE_MPX_ADDR): New macro.
1050 (i387_supply_xsave): Add MPX case.
1051 (i387_collect_xsave): Add MPX case.
1052 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1053 (I387_BNDCFGU_REGNUM): New macro.
1054 (I387_NUM_MPX_REGS): New macro.
1055 (I387_NUM_BND_REGS): New macro.
1056 (I387_NUM_MPX_CTRL_REGS): New macro.
1057 (I387_MPXEND_REGNUM): New macro.
1058 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1059 (I386_XSTATE_BNDCFG): Likewise.
1060 (I386_XSTATE_MPX_MASK): Likewise.
1061 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1062 (I386_XSTATE_BNDREGS_SIZE): New macro.
1063 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1064 (I386_XSTATE_SIZE): Adapt for MPX.
1065 (I386_XSTATE_MAX_SIZE): Likewise.
1066
1067 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1068
1069 * features/i386/Makefile: Adapts for using MPX registers.
1070 * features/i386/32bit-mpx.xml: New file.
1071 * features/i386/64bit-mpx.xml: Likewise.
1072 * features/i386/amd64-mpx-linux.c: Likewise.
1073 * features/i386/amd64-mpx-linux.xml: Likewise.
1074 * features/i386/amd64-mpx.c: Likewise.
1075 * features/i386/amd64-mpx.xml: Likewise.
1076 * features/i386/i386-mpx-linux.c: Likewise.
1077 * features/i386/i386-mpx-linux.xml: Likewise.
1078 * features/i386/i386-mpx.c: Likewise.
1079 * features/i386/i386-mpx.xml: Likewise.
1080 * regformats/i386/amd64-mpx-linux.dat: New file.
1081 * regformats/i386/amd64-mpx.dat: Likewise.
1082 * regformats/i386/i386-mpx-linux.dat: Likewise.
1083 * regformats/i386/i386-mpx.dat: Likewise.
1084
1085 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1086
1087 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1088 Modified logic of creating a bitfield to be in sync with
1089 tdesc_gdb_type.
1090
1091 2013-11-20 Will Newton <will.newton@linaro.org>
1092
1093 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1094 error message.
1095
1096 2013-11-20 Yao Qi <yao@codesourcery.com>
1097
1098 * progspace.h (struct address_space_data): Declare.
1099 * target-dcache.c: Include "progspace.h".
1100 (target_dache): Remove.
1101 (target_dcache_aspace_key): New.
1102 (target_dcache_cleanup): New function.
1103 (target_dcache_init_p): Get data through
1104 target_dcache_aspace_key.
1105 (target_dcache_invalidate): Likewise.
1106 (target_dcache_get): Likewise.
1107 (target_dcache_get_or_init): Likewise.
1108 (_initialize_target_dcache): Initialize
1109 target_dcache_aspace_key.
1110
1111 2013-11-20 Yao Qi <yao@codesourcery.com>
1112
1113 * progspace.c (struct address_space): Update comments.
1114 <REGISTRY_FIELDS>: New fields.
1115 DEFINE_REGISTRY for address_space.
1116 (new_address_space): Call address_space_alloc_data.
1117 (free_address_space): Call address_space_free_data.
1118 * progspace.h: Use DECLARE_REGISTRY.
1119
1120 2013-11-20 Yao Qi <yao@codesourcery.com>
1121
1122 * Makefile.in (SFILES):Add target-dcache.c.
1123 (HFILES_NO_SRCDIR): Add target-dcache.h.
1124 (COMMON_OBS): Add target-dcache.o.
1125 * dcache.c: Remove inclusion to "target.h". Include
1126 "target-dcache.h".
1127 * memattr.c: Include "target-dcache.h".
1128 * top.c: Likewise.
1129 * tracepoint.c: Likewise.
1130 * target.c: (stack_cache_enabled_p_1): Move to
1131 target-dcache.c.
1132 (stack_cache_enabled_p): Likewise.
1133 (set_stack_cache_enabled_p): Likewise.
1134 (show_stack_cache_enabled_p): Likewise.
1135 (target_dcache, target_dcache_init_p): Likewise.
1136 (target_dcache_invalidate): Likewise.
1137 (target_dcache_get, target_dcache_get_or_init): Likewise.
1138 (memory_xfer_partial_1): Call function stack_cache_enabled.
1139 (initialize_target): Move code to target-dcache.c.
1140 * target.h (target_dcache_invalidate): Move to
1141 target-dcache.h.
1142 (target_dcache_get): Likewise.
1143 * target-dcache.c: New.
1144 * target-dcache.h: New.
1145
1146 2013-11-20 Yao Qi <yao@codesourcery.com>
1147
1148 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1149 it is initialized.
1150
1151 2013-11-20 Yao Qi <yao@codesourcery.com>
1152
1153 * dcache.c (last_cache): Remove.
1154 (dcache_free, dcache_init): Update.
1155 (dcache_update):
1156 (dcache_print_line): Add parameter 'dcache'. Replace
1157 'target_dcache' with 'dcache'.
1158 (dcache_info): Move code to dcache_info_1. Call
1159 'dcache_info_1'.
1160 (dcache_info_1): New function.
1161 (set_dcache_size): Call target_dcache_invalidate.
1162 (set_dcache_line_size): Call target_dcache_invalidate.
1163 * target.c (target_dcache_init_p): New function.
1164 (target_dcache_invalidate): Check target_dcache_init_p first.
1165 (target_dcache_get, target_dcache_get_or_init): New function.
1166 (memory_xfer_partial_1): Adjust.
1167 (initialize_target): Don't initialize 'target_dcache'.
1168 * target.h (struct dcache_struct): Declare.
1169 (target_dcache_get): Declare.
1170
1171 2013-11-19 Yao Qi <yao@codesourcery.com>
1172
1173 * varobj.c (varobj_get_type): Fix typo.
1174
1175 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1176
1177 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1178
1179 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1180
1181 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1182 "stat.h".
1183
1184 2013-11-18 Tom Tromey <tromey@redhat.com>
1185
1186 * common/gdb_stat.h: Remove.
1187 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1188 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1189 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1190 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1191 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1192 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1193 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1194 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1195 * exec.c: Use sys/stat.h, not gdb_stat.h.
1196 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1197 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1198 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1199 * jit.c: Use sys/stat.h, not gdb_stat.h.
1200 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1201 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1202 * main.c: Use sys/stat.h, not gdb_stat.h.
1203 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1204 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1205 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1206 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1207 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1208 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1209 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1210 * remote.c: Use sys/stat.h, not gdb_stat.h.
1211 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1212 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1213 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1214 * source.c: Use sys/stat.h, not gdb_stat.h.
1215 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1216 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1217 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1218 * top.c: Use sys/stat.h, not gdb_stat.h.
1219 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1220
1221 2013-11-18 Tom Tromey <tromey@redhat.com>
1222
1223 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1224 sys_stat.
1225 * gnulib/aclocal.m4: Update.
1226 * gnulib/config.in: Update.
1227 * gnulib/configure: Update.
1228 * gnulib/import/Makefile.am: Update.
1229 * gnulib/import/Makefile.in: Update.
1230 * gnulib/import/m4/gnulib-cache.m4: Update.
1231 * gnulib/import/m4/gnulib-comp.m4: Update.
1232 * gnulib/import/m4/sys_stat_h.m4: New.
1233 * gnulib/import/m4/time_h.m4: New.
1234 * gnulib/import/sys_stat.in.h: New.
1235 * gnulib/import/time.in.h: New.
1236
1237 2013-11-18 Tom Tromey <tromey@redhat.com>
1238
1239 * configure: Rebuild.
1240 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1241
1242 2013-11-18 Tom Tromey <tromey@redhat.com>
1243
1244 * configure: Rebuild.
1245 * configure.ac: Don't check for unistd.h.
1246
1247 2013-11-18 Tom Tromey <tromey@redhat.com>
1248
1249 * configure: Rebuild.
1250 * configure.ac: Don't check for stdlib.h
1251 * defs.h: Include stdlib.h unconditionally.
1252
1253 2013-11-18 Tom Tromey <tromey@redhat.com>
1254
1255 * config.in: Rebuild.
1256 * configure: Rebuild.
1257 * configure.ac: Don't check for stddef.h.
1258 * defs.h: Unconditionally include stddef.h. Remove duplicate
1259 inclusion.
1260
1261 2013-11-18 Tom Tromey <tromey@redhat.com>
1262
1263 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1264 * common/gdb_dirent.h: Remove.
1265 * common/filestuff.c: Use dirent.h.
1266 * common/linux-osdata.c: Use dirent.h.
1267 (NAMELEN): Define.
1268 * config.in: Rebuild.
1269 * configure: Rebuild.
1270 * configure.ac: Don't use AC_HEADER_DIRENT.
1271 * linux-fork.c: Use dirent.h
1272 * linux-nat.c: Use dirent.h.
1273 * nto-procfs.c: Use dirent.h.
1274 * procfs.c: Use dirent.h.
1275
1276 2013-11-18 Tom Tromey <tromey@redhat.com>
1277
1278 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1279 * gnulib/aclocal.m4: Update.
1280 * gnulib/config.in: Update.
1281 * gnulib/configure: Update.
1282 * gnulib/import/Makefile.am: Update.
1283 * gnulib/import/Makefile.in: Update.
1284 * gnulib/import/dirent.in.h: New.
1285 * gnulib/import/m4/dirent_h.m4: New.
1286 * gnulib/import/m4/gnulib-cache.m4: Update.
1287 * gnulib/import/m4/gnulib-comp.m4: Update.
1288
1289 2013-11-18 Tom Tromey <tromey@redhat.com>
1290
1291 * configure: Rebuild.
1292 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1293 strings.h.
1294
1295 2013-11-18 Tom Tromey <tromey@redhat.com>
1296
1297 * common/gdb_string.h: Remove.
1298 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1299 * ada-exp.y: Use string.h, not gdb_string.h.
1300 * ada-lang.c: Use string.h, not gdb_string.h.
1301 * ada-lex.l: Use string.h, not gdb_string.h.
1302 * ada-typeprint.c: Use string.h, not gdb_string.h.
1303 * ada-valprint.c: Use string.h, not gdb_string.h.
1304 * aix-thread.c: Use string.h, not gdb_string.h.
1305 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1306 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1307 * alpha-nat.c: Use string.h, not gdb_string.h.
1308 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1309 * alpha-tdep.c: Use string.h, not gdb_string.h.
1310 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1311 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1312 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1313 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1314 * amd64-nat.c: Use string.h, not gdb_string.h.
1315 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1316 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1317 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1318 * arch-utils.c: Use string.h, not gdb_string.h.
1319 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1320 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1321 * arm-tdep.c: Use string.h, not gdb_string.h.
1322 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1323 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1324 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1325 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1326 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1327 * avr-tdep.c: Use string.h, not gdb_string.h.
1328 * ax-gdb.c: Use string.h, not gdb_string.h.
1329 * ax-general.c: Use string.h, not gdb_string.h.
1330 * bcache.c: Use string.h, not gdb_string.h.
1331 * bfin-tdep.c: Use string.h, not gdb_string.h.
1332 * breakpoint.c: Use string.h, not gdb_string.h.
1333 * build-id.c: Use string.h, not gdb_string.h.
1334 * buildsym.c: Use string.h, not gdb_string.h.
1335 * c-exp.y: Use string.h, not gdb_string.h.
1336 * c-lang.c: Use string.h, not gdb_string.h.
1337 * c-typeprint.c: Use string.h, not gdb_string.h.
1338 * c-valprint.c: Use string.h, not gdb_string.h.
1339 * charset.c: Use string.h, not gdb_string.h.
1340 * cli-out.c: Use string.h, not gdb_string.h.
1341 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1342 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1343 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1344 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1345 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1346 * cli/cli-script.c: Use string.h, not gdb_string.h.
1347 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1348 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1349 * coffread.c: Use string.h, not gdb_string.h.
1350 * common/common-utils.c: Use string.h, not gdb_string.h.
1351 * common/filestuff.c: Use string.h, not gdb_string.h.
1352 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1353 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1354 * common/signals.c: Use string.h, not gdb_string.h.
1355 * common/vec.h: Use string.h, not gdb_string.h.
1356 * core-regset.c: Use string.h, not gdb_string.h.
1357 * corefile.c: Use string.h, not gdb_string.h.
1358 * corelow.c: Use string.h, not gdb_string.h.
1359 * cp-abi.c: Use string.h, not gdb_string.h.
1360 * cp-support.c: Use string.h, not gdb_string.h.
1361 * cp-valprint.c: Use string.h, not gdb_string.h.
1362 * cris-tdep.c: Use string.h, not gdb_string.h.
1363 * d-lang.c: Use string.h, not gdb_string.h.
1364 * dbxread.c: Use string.h, not gdb_string.h.
1365 * dcache.c: Use string.h, not gdb_string.h.
1366 * demangle.c: Use string.h, not gdb_string.h.
1367 * dicos-tdep.c: Use string.h, not gdb_string.h.
1368 * disasm.c: Use string.h, not gdb_string.h.
1369 * doublest.c: Use string.h, not gdb_string.h.
1370 * dsrec.c: Use string.h, not gdb_string.h.
1371 * dummy-frame.c: Use string.h, not gdb_string.h.
1372 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1373 * dwarf2loc.c: Use string.h, not gdb_string.h.
1374 * dwarf2read.c: Use string.h, not gdb_string.h.
1375 * elfread.c: Use string.h, not gdb_string.h.
1376 * environ.c: Use string.h, not gdb_string.h.
1377 * eval.c: Use string.h, not gdb_string.h.
1378 * event-loop.c: Use string.h, not gdb_string.h.
1379 * exceptions.c: Use string.h, not gdb_string.h.
1380 * exec.c: Use string.h, not gdb_string.h.
1381 * expprint.c: Use string.h, not gdb_string.h.
1382 * f-exp.y: Use string.h, not gdb_string.h.
1383 * f-lang.c: Use string.h, not gdb_string.h.
1384 * f-typeprint.c: Use string.h, not gdb_string.h.
1385 * f-valprint.c: Use string.h, not gdb_string.h.
1386 * fbsd-nat.c: Use string.h, not gdb_string.h.
1387 * findcmd.c: Use string.h, not gdb_string.h.
1388 * findvar.c: Use string.h, not gdb_string.h.
1389 * fork-child.c: Use string.h, not gdb_string.h.
1390 * frame.c: Use string.h, not gdb_string.h.
1391 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1392 * frv-tdep.c: Use string.h, not gdb_string.h.
1393 * gdb.c: Use string.h, not gdb_string.h.
1394 * gdb_bfd.c: Use string.h, not gdb_string.h.
1395 * gdbarch.c: Use string.h, not gdb_string.h.
1396 * gdbtypes.c: Use string.h, not gdb_string.h.
1397 * gnu-nat.c: Use string.h, not gdb_string.h.
1398 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1399 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1400 * go-exp.y: Use string.h, not gdb_string.h.
1401 * go-lang.c: Use string.h, not gdb_string.h.
1402 * go32-nat.c: Use string.h, not gdb_string.h.
1403 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1404 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1405 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1406 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1407 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1408 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1409 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1410 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1411 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1412 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1413 * i386-tdep.c: Use string.h, not gdb_string.h.
1414 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1415 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1416 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1417 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1418 * i387-tdep.c: Use string.h, not gdb_string.h.
1419 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1420 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1421 * inf-child.c: Use string.h, not gdb_string.h.
1422 * inf-ptrace.c: Use string.h, not gdb_string.h.
1423 * inf-ttrace.c: Use string.h, not gdb_string.h.
1424 * infcall.c: Use string.h, not gdb_string.h.
1425 * infcmd.c: Use string.h, not gdb_string.h.
1426 * inflow.c: Use string.h, not gdb_string.h.
1427 * infrun.c: Use string.h, not gdb_string.h.
1428 * interps.c: Use string.h, not gdb_string.h.
1429 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1430 * irix5-nat.c: Use string.h, not gdb_string.h.
1431 * jv-exp.y: Use string.h, not gdb_string.h.
1432 * jv-lang.c: Use string.h, not gdb_string.h.
1433 * jv-typeprint.c: Use string.h, not gdb_string.h.
1434 * jv-valprint.c: Use string.h, not gdb_string.h.
1435 * language.c: Use string.h, not gdb_string.h.
1436 * linux-fork.c: Use string.h, not gdb_string.h.
1437 * linux-nat.c: Use string.h, not gdb_string.h.
1438 * lm32-tdep.c: Use string.h, not gdb_string.h.
1439 * m2-exp.y: Use string.h, not gdb_string.h.
1440 * m2-typeprint.c: Use string.h, not gdb_string.h.
1441 * m32c-tdep.c: Use string.h, not gdb_string.h.
1442 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1443 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1444 * m32r-rom.c: Use string.h, not gdb_string.h.
1445 * m32r-tdep.c: Use string.h, not gdb_string.h.
1446 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1447 * m68k-tdep.c: Use string.h, not gdb_string.h.
1448 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1449 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1450 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1451 * m88k-tdep.c: Use string.h, not gdb_string.h.
1452 * macrocmd.c: Use string.h, not gdb_string.h.
1453 * main.c: Use string.h, not gdb_string.h.
1454 * mdebugread.c: Use string.h, not gdb_string.h.
1455 * mem-break.c: Use string.h, not gdb_string.h.
1456 * memattr.c: Use string.h, not gdb_string.h.
1457 * memory-map.c: Use string.h, not gdb_string.h.
1458 * mep-tdep.c: Use string.h, not gdb_string.h.
1459 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1460 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1461 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1462 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1463 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1464 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1465 * mi/mi-console.c: Use string.h, not gdb_string.h.
1466 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1467 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1468 * mi/mi-main.c: Use string.h, not gdb_string.h.
1469 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1470 * microblaze-rom.c: Use string.h, not gdb_string.h.
1471 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1472 * mingw-hdep.c: Use string.h, not gdb_string.h.
1473 * minidebug.c: Use string.h, not gdb_string.h.
1474 * minsyms.c: Use string.h, not gdb_string.h.
1475 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1476 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1477 * mips-tdep.c: Use string.h, not gdb_string.h.
1478 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1479 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1480 * mipsread.c: Use string.h, not gdb_string.h.
1481 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1482 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1483 * monitor.c: Use string.h, not gdb_string.h.
1484 * moxie-tdep.c: Use string.h, not gdb_string.h.
1485 * mt-tdep.c: Use string.h, not gdb_string.h.
1486 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1487 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1488 * nto-procfs.c: Use string.h, not gdb_string.h.
1489 * nto-tdep.c: Use string.h, not gdb_string.h.
1490 * objc-lang.c: Use string.h, not gdb_string.h.
1491 * objfiles.c: Use string.h, not gdb_string.h.
1492 * opencl-lang.c: Use string.h, not gdb_string.h.
1493 * osabi.c: Use string.h, not gdb_string.h.
1494 * osdata.c: Use string.h, not gdb_string.h.
1495 * p-exp.y: Use string.h, not gdb_string.h.
1496 * p-lang.c: Use string.h, not gdb_string.h.
1497 * p-typeprint.c: Use string.h, not gdb_string.h.
1498 * parse.c: Use string.h, not gdb_string.h.
1499 * posix-hdep.c: Use string.h, not gdb_string.h.
1500 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1501 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1502 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1503 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1504 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1505 * printcmd.c: Use string.h, not gdb_string.h.
1506 * procfs.c: Use string.h, not gdb_string.h.
1507 * prologue-value.c: Use string.h, not gdb_string.h.
1508 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1509 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1510 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1511 * regcache.c: Use string.h, not gdb_string.h.
1512 * registry.c: Use string.h, not gdb_string.h.
1513 * remote-fileio.c: Use string.h, not gdb_string.h.
1514 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1515 * remote-mips.c: Use string.h, not gdb_string.h.
1516 * remote-sim.c: Use string.h, not gdb_string.h.
1517 * remote.c: Use string.h, not gdb_string.h.
1518 * reverse.c: Use string.h, not gdb_string.h.
1519 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1520 * ser-base.c: Use string.h, not gdb_string.h.
1521 * ser-go32.c: Use string.h, not gdb_string.h.
1522 * ser-mingw.c: Use string.h, not gdb_string.h.
1523 * ser-pipe.c: Use string.h, not gdb_string.h.
1524 * ser-tcp.c: Use string.h, not gdb_string.h.
1525 * ser-unix.c: Use string.h, not gdb_string.h.
1526 * serial.c: Use string.h, not gdb_string.h.
1527 * sh-tdep.c: Use string.h, not gdb_string.h.
1528 * sh64-tdep.c: Use string.h, not gdb_string.h.
1529 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1530 * skip.c: Use string.h, not gdb_string.h.
1531 * sol-thread.c: Use string.h, not gdb_string.h.
1532 * solib-dsbt.c: Use string.h, not gdb_string.h.
1533 * solib-frv.c: Use string.h, not gdb_string.h.
1534 * solib-osf.c: Use string.h, not gdb_string.h.
1535 * solib-spu.c: Use string.h, not gdb_string.h.
1536 * solib-target.c: Use string.h, not gdb_string.h.
1537 * solib.c: Use string.h, not gdb_string.h.
1538 * somread.c: Use string.h, not gdb_string.h.
1539 * source.c: Use string.h, not gdb_string.h.
1540 * sparc-nat.c: Use string.h, not gdb_string.h.
1541 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1542 * sparc-tdep.c: Use string.h, not gdb_string.h.
1543 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1544 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1545 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1546 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1547 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1548 * spu-multiarch.c: Use string.h, not gdb_string.h.
1549 * spu-tdep.c: Use string.h, not gdb_string.h.
1550 * stabsread.c: Use string.h, not gdb_string.h.
1551 * stack.c: Use string.h, not gdb_string.h.
1552 * std-regs.c: Use string.h, not gdb_string.h.
1553 * symfile.c: Use string.h, not gdb_string.h.
1554 * symmisc.c: Use string.h, not gdb_string.h.
1555 * symtab.c: Use string.h, not gdb_string.h.
1556 * target.c: Use string.h, not gdb_string.h.
1557 * thread.c: Use string.h, not gdb_string.h.
1558 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1559 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1560 * top.c: Use string.h, not gdb_string.h.
1561 * tracepoint.c: Use string.h, not gdb_string.h.
1562 * tui/tui-command.c: Use string.h, not gdb_string.h.
1563 * tui/tui-data.c: Use string.h, not gdb_string.h.
1564 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1565 * tui/tui-file.c: Use string.h, not gdb_string.h.
1566 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1567 * tui/tui-out.c: Use string.h, not gdb_string.h.
1568 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1569 * tui/tui-source.c: Use string.h, not gdb_string.h.
1570 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1571 * tui/tui-win.c: Use string.h, not gdb_string.h.
1572 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1573 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1574 * typeprint.c: Use string.h, not gdb_string.h.
1575 * ui-file.c: Use string.h, not gdb_string.h.
1576 * ui-out.c: Use string.h, not gdb_string.h.
1577 * user-regs.c: Use string.h, not gdb_string.h.
1578 * utils.c: Use string.h, not gdb_string.h.
1579 * v850-tdep.c: Use string.h, not gdb_string.h.
1580 * valarith.c: Use string.h, not gdb_string.h.
1581 * valops.c: Use string.h, not gdb_string.h.
1582 * valprint.c: Use string.h, not gdb_string.h.
1583 * value.c: Use string.h, not gdb_string.h.
1584 * varobj.c: Use string.h, not gdb_string.h.
1585 * vax-tdep.c: Use string.h, not gdb_string.h.
1586 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1587 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1588 * windows-nat.c: Use string.h, not gdb_string.h.
1589 * xcoffread.c: Use string.h, not gdb_string.h.
1590 * xml-support.c: Use string.h, not gdb_string.h.
1591 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1592 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1593
1594 2013-11-18 Tom Tromey <tromey@redhat.com>
1595
1596 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1597 and strstr.
1598 * gnulib/aclocal.m4: Update.
1599 * gnulib/config.in: Update.
1600 * gnulib/configure: Update.
1601 * gnulib/import/Makefile.am: Update.
1602 * gnulib/import/Makefile.in: Update.
1603 * gnulib/import/errno.in.h: New.
1604 * gnulib/import/intprops.h: New.
1605 * gnulib/import/m4/errno_h.m4: New.
1606 * gnulib/import/m4/gnulib-cache.m4: Update.
1607 * gnulib/import/m4/gnulib-comp.m4: Update.
1608 * gnulib/import/m4/strerror.m4: New.
1609 * gnulib/import/m4/strstr.m4: New.
1610 * gnulib/import/m4/sys_socket_h.m4: New.
1611 * gnulib/import/strerror-override.c: New.
1612 * gnulib/import/strerror-override.h: New.
1613 * gnulib/import/strerror.c: New.
1614 * gnulib/import/strstr.c: New.
1615
1616 2013-11-18 Tom Tromey <tromey@redhat.com>
1617
1618 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1619 multiple lines.
1620
1621 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1622
1623 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1624 * sparc-tdep.h: And its prototype.
1625
1626 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1627 function.
1628 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1629
1630 2013-11-18 Pedro Alves <palves@redhat.com>
1631
1632 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1633 use unpack_pointer.
1634
1635 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1636
1637 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1638 to -list-features output.
1639
1640 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1641
1642 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1643 <read_addr_from_reg>: Renames "read_reg".
1644 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1645 Adjust comment.
1646 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1647 Use read_addr_from_reg in place of read_reg.
1648 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1649 in place of read_reg.
1650 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1651 dwarf_expr_read_reg.
1652 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1653 with dwarf_expr_read_addr_from_reg.
1654 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1655 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1656 needs_frame_read_addr_from_reg.
1657
1658 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1661
1662 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1663
1664 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1665 NULL.
1666
1667 2013-11-15 Tom Tromey <tromey@redhat.com>
1668
1669 PR c++/16117:
1670 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1671 (classify_name): Likewise. Prefer a field of "this" over a
1672 filename.
1673 (classify_inner_name, yylex): Update.
1674
1675 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1676
1677 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1678 Extend the documentation a bit.
1679 <get_reg_value>: New field.
1680 * dwarf2loc.c (dwarf_expr_get_reg_value)
1681 (needs_frame_get_reg_value): New functions.
1682 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1683 callback.
1684 * dwarf2-frame.c (get_reg_value): New function.
1685 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1686 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1687 Use new callback to compute result_val.
1688
1689 2013-11-15 Alan Modra <amodra@gmail.com>
1690
1691 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1692 (ppc64_desc_entry_point): ..this. Update comments here and at
1693 call points.
1694 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1695 ppc64_standard_linkage3): Update comments.
1696 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1697 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1698 patterns.
1699 (ppc64_standard_linkage4_target): New function.
1700 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1701 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1702 nop match. Fix comment wrap.
1703
1704 2013-11-14 Pedro Alves <palves@redhat.com>
1705
1706 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1707 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1708
1709 2013-11-14 Pedro Alves <palves@redhat.com>
1710
1711 * infrun.c (struct execution_control_state)
1712 <stepped_after_stopped_by_watchpoint>: New field.
1713 (get_inferior_stop_soon): New function.
1714 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1715 moved to struct execution_control_state -- adjust. Use
1716 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1717 new function.
1718 (handle_signal_stop): New function, factored out from
1719 handle_inferior_event.
1720
1721 2013-11-14 Pedro Alves <palves@redhat.com>
1722
1723 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1724 return a boolean.
1725 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1726 boolean.
1727 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1728 Adjust to return a boolean.
1729 * breakpoint.h (enum bpstat_signal_value): Delete.
1730 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1731 (bpstat_explains_signal): Likewise.
1732 * infrun.c (handle_inferior_event) <random signal checks>:
1733 bpstat_explains_signal now returns a boolean - adjust. No longer
1734 consider hiding signals.
1735
1736 2013-11-14 Pedro Alves <palves@redhat.com>
1737
1738 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1739 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1740 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1741 BPSTAT_SIGNAL_HIDE.
1742 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1743 instead of BPSTAT_SIGNAL_HIDE.
1744 * infrun.c (handle_inferior_event): Rework random signal checks.
1745
1746 2013-11-14 Pedro Alves <palves@redhat.com>
1747
1748 * infrun.c (struct execution_control_state): Remove
1749 'random_signal' field.
1750 (handle_syscall_event): Use bpstat_causes_stop instead of
1751 bpstat_explains_signal. Don't set ecs->random_signal.
1752 (handle_inferior_event): New 'random_signal' local.
1753 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1754 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1755 bpstat_explains_signal. Don't set ecs->random_signal.
1756 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1757 ecs->random_signal.
1758
1759 2013-11-14 Pedro Alves <palves@redhat.com>
1760
1761 * infrun.c (handle_inferior_event): Move comment from the
1762 function's body to the function's description, adjusted.
1763
1764 2013-11-14 Pedro Alves <palves@redhat.com>
1765
1766 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1767 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1768 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1769 case.
1770
1771 2013-11-14 Tom Tromey <tromey@redhat.com>
1772
1773 * python/py-linetable.c (ltpy_has_line)
1774 (ltpy_get_all_source_lines): Fix loop termination condition.
1775
1776 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1777
1778 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1779 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1780 PARSE->LANGUAGE during command execution, if set.
1781 * mi/mi-parse.c: Add "language.h" #include.
1782 (mi_parse): Add parsing of "--language" command option.
1783
1784 * NEWS: Add entry mentioning the new "--language" command option.
1785
1786 2013-11-14 Pedro Alves <palves@redhat.com>
1787 Joel Brobecker <brobecker@adacore.com>
1788
1789 * cli/cli-utils.h (extract_arg_const): Add declaration.
1790 * cli/cli-utils.c (extract_arg_const): New function.
1791 (extract_arg): Reimplement using extract_arg_const.
1792
1793 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1794
1795 * language.h: Add "symtab.h" #include.
1796
1797 2013-11-13 Doug Evans <xdje42@gmail.com>
1798
1799 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1800 specific breakpoints, don't evaluate breakpoint condition if
1801 different thread.
1802
1803 2013-11-13 Keith Seitz <keiths@redhat.com>
1804
1805 PR c++/7935
1806 PR c++/10541
1807 * cp-support.c (insepct_type): Add support for substituting
1808 namespace aliases, too.
1809 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1810 for DW_TAG_imported_declaration.
1811 (add_partial_symbol): Likewise.
1812 (process_die): Handle namespace aliases with
1813 read_namespace_alias.
1814 (die_needs_namespace): Add DW_TAG_imported_declaration.
1815 (read_namespace_alias): New function.
1816 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1817 (new_symbol_full): Handle DW_TAG_imported_declaration.
1818
1819 2013-11-13 Keith Seitz <keiths@redhat.com>
1820
1821 * p-exp.y (uptok): Make first parameter const.
1822 (yylex): Make `tokstart' and `tokptr' const.
1823 Don't copy the lexer input to a temporary buffer.
1824 Make `p' const.
1825 Remove const workaround for parse_escape.
1826 Create a temporary buffer for a convenience variable instead
1827 of doing in-place modification of the input.
1828 If a match is found with a different case from the input,
1829 do not change the input at all.
1830 Use `tmp' to construct the resultant stoken instead of
1831 `tokstart'.
1832
1833 2013-11-13 Doug Evans <xdje42@gmail.com>
1834
1835 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1836
1837 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1838
1839 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1840 entry with "ada-exceptions".
1841
1842 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1843
1844 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1845 after re-initialization of OBJFILE's obstack.
1846
1847 2013-11-12 Doug Evans <xdje42@gmail.com>
1848
1849 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1850 bs->stop != 0 on entry. Update function comment. Simplify early
1851 exit for frame mismatch. Reindent rest of function.
1852
1853 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1854
1855 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1856 NULL.
1857
1858 2013-11-12 Doug Evans <dje@google.com>
1859
1860 Work around gold/15646.
1861 * dwarf2read.c (read_index_from_section): Update comment.
1862 (struct dw2_symtab_iterator): New member global_seen.
1863 (dw2_symtab_iter_init): Initialize it.
1864 (dw2_symtab_iter_next): Skip duplicate global symbols.
1865 (dw2_expand_symtabs_matching): Ditto.
1866
1867 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1868
1869 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1870 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1871 command.
1872 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1873 (mi_cmd_info_ada_exceptions): New function.
1874 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1875
1876 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1877
1878 * ada-lang.h: #include "vec.h".
1879 (struct ada_exc_info): New.
1880 (ada_exc_info): New typedef.
1881 (DEF_VEC_O(ada_exc_info)): New vector.
1882 (ada_exceptions_list): Add declaration.
1883 * ada-lang.c (ada_is_exception_sym)
1884 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1885 (sort_remove_dups_ada_exceptions_list)
1886 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1887 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1888 (ada_exceptions_list_1, ada_exceptions_list)
1889 (info_exceptions_command): New function.
1890 (_initialize_ada_language): Add "info exception" command.
1891
1892 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1893
1894 PR python/15629
1895 * NEWS: Add linetable feature.
1896 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1897 * python/py-linetable.c: New file.
1898 * python/py-symtab.c (stpy_get_linetable): New function.
1899 * python/python-internal.h (symtab_to_linetable_object): Declare.
1900 (gdbpy_initialize_linetable): Ditto.
1901 * python/python.c (_initialize_python): Call
1902 gdbpy_initialize_linetable.
1903
1904 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1907 the documentation of fields "except_string" and "condition".
1908 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1909 CONDITION on the heap before passing it to
1910 create_ada_exception_catchpoint.
1911 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1912 CONDITION.
1913
1914 2013-11-11 Tom Tromey <tromey@redhat.com>
1915
1916 * config.in, configure: Rebuild.
1917 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1918
1919 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1920
1921 * remote-sim.c (gdbsim_detach): Break declaration into
1922 shorter lines. No code change.
1923
1924 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1925
1926 * remote-sim.c (gdbsim_detach): Fix prototype.
1927
1928 2013-11-08 Doug Evans <dje@google.com>
1929
1930 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1931 (create_debug_types_hash_table): Only print debugging messages for
1932 each TU if dwarf2-read >= 2.
1933 (process_queue): Ditto.
1934 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1935 Update doc string.
1936
1937 2013-11-08 Tom Tromey <tromey@redhat.com>
1938
1939 * configure: Rebuild.
1940 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1941
1942 2013-11-08 Tom Tromey <tromey@redhat.com>
1943
1944 * configure, config.in: Rebuild.
1945 * configure.ac: Remove unused configury.
1946
1947 2013-11-08 Tom Tromey <tromey@redhat.com>
1948
1949 * m32c-tdep.c: Use gdb_string.h.
1950
1951 2013-11-08 Tom Tromey <tromey@redhat.com>
1952
1953 * configure, config.in: Rebuild.
1954 * configure.ac: Remove all link.h-related checks.
1955
1956 2013-11-08 Tom Tromey <tromey@redhat.com>
1957
1958 * acinclude.m4: Include common.m4.
1959 * common/common.m4: New file.
1960 * configure, config.in: Rebuild.
1961 * configure.ac: Use GDB_AC_COMMON.
1962
1963 2013-11-08 Doug Evans <dje@google.com>
1964
1965 * NEWS: Mention that "set debug symtab-create" now accepts a
1966 verbosity level.
1967 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1968 to set the symtab's primary flag.
1969 * jit.c (finalize_symtab): Ditto.
1970 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1971 * symfile.c (allocate_symtab): Only print debugging messages for
1972 symtab_create_debug levels 2 and higher.
1973 * symtab.c (symtab_create_debug): Change type to unsigned int.
1974 (set_symtab_primary): New function.
1975 (_initialize_symtab): Change "set debug symtab-create" to a
1976 zuinteger option.
1977 * symtab.h (set_symtab_primary): Declare.
1978 (symtab_create_debug): Update decl.
1979
1980 2013-11-08 Tom Tromey <tromey@redhat.com>
1981
1982 * aix-thread.c (aix_thread_detach): Update.
1983 * corelow.c (core_detach): Update.
1984 * darwin-nat.c (darwin_detach): Update.
1985 * dec-thread.c (dec_thread_detach): Update.
1986 * gnu-nat.c (gnu_detach): Update.
1987 * go32-nat.c (go32_detach): Update.
1988 * inf-ptrace.c (inf_ptrace_detach): Update.
1989 * inf-ttrace.c (inf_ttrace_detach): Update.
1990 * linux-fork.c (linux_fork_detach): Update.
1991 * linux-fork.h (linux_fork_detach): Update.
1992 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1993 local for const-correctness.
1994 * linux-thread-db.c (thread_db_detach): Update.
1995 * monitor.c (monitor_detach): Update.
1996 * nto-procfs.c (procfs_detach): Update.
1997 * procfs.c (procfs_detach): Update.
1998 * record.c (record_detach): Update.
1999 * record.h (record_detach): Update.
2000 * remote-m32r-sdi.c (m32r_detach): Update.
2001 * remote-mips.c (mips_detach): Update.
2002 * remote-sim.c (gdbsim_detach): Update.
2003 * remote.c (remote_detach_1, remote_detach)
2004 (extended_remote_detach): Update.
2005 * sol-thread.c (sol_thread_detach): Update.
2006 * target.c (target_detach): Make "args" const.
2007 (init_dummy_target): Update.
2008 * target.h (struct target_ops) <to_detach>: Make argument const.
2009 (target_detach): Likewise.
2010 * windows-nat.c (windows_detach): Update.
2011
2012 2013-11-07 Doug Evans <dje@google.com>
2013
2014 PR 11786
2015 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
2016 and align fields for PT_GNU_RELRO segments.
2017
2018 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2019
2020 PR python/15747
2021 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
2022
2023 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2024
2025 * NEWS: Document Python temporary breakpoint support.
2026 * python/py-breakpoint.c (bppy_get_temporary): New function.
2027 (bppy_init): New keyword: temporary. Parse it and set breakpoint
2028 to temporary if True.
2029
2030 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2031
2032 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2033 removed to allow analyzing unconditional branch instructions
2034 with PC-relative offsets of zero.
2035
2036 2013-11-07 Yao Qi <yao@codesourcery.com>
2037
2038 * mi/mi-cmd-var.c: Include "language.h".
2039 (mi_cmd_var_info_expression): Get language name from
2040 language_defn.
2041 * varobj.c (varobj_language_string): Remove.
2042 (variable_language): Remove declaration.
2043 (languages): Remove.
2044 (varobj_get_language): Change the type of return value.
2045 (variable_language): Remove.
2046 * varobj.h (enum varobj_languages): Remove.
2047 (varobj_language_string): Remove declaration.
2048 (varobj_get_language): Update declaration.
2049
2050 2013-11-07 Yao Qi <yao@codesourcery.com>
2051
2052 * language.h (struct language_defn) <la_natural_name>: New
2053 field.
2054 * ada-lang.c (ada_language_defn): Initialize field
2055 'la_natural_name'.
2056 * c-lang.c (c_language_defn): Likewise.
2057 (cplus_language_defn, asm_language_defn): Likewise.
2058 * d-lang.c (d_language_defn): Likewise.
2059 * f-lang.c (f_language_defn): Likewise.
2060 * go-lang.c (go_language_defn): Likewise.
2061 * jv-lang.c (java_language_defn): Likewise.
2062 * language.c (unknown_language_defn ): Likewise.
2063 (auto_language_defn): Likewise.
2064 * m2-lang.c (m2_language_defn): Likewise.
2065 * objc-lang.c (objc_language_defn): Likewise.
2066 * opencl-lang.c (opencl_language_defn): Likewise.
2067 * p-lang.c (pascal_language_defn): Likewise.
2068
2069 2013-11-07 Yao Qi <yao@codesourcery.com>
2070
2071 * language.c (language_str): Return const char *.
2072 (add_language): Add const to 'language_names'
2073 * language.h (struct language_defn) <la_name>: Add const.
2074 (language_str: Update declaration.
2075
2076 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2077
2078 * s390-linux-nat.c (s390_read_description): Consider the TE field
2079 in the HWCAP for determining 'have_regset_tdb'.
2080
2081 2013-11-06 Will Newton <will.newton@linaro.org>
2082
2083 PR gdb/12866
2084 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2085 values. (read_partial_die): Likewise.
2086
2087 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2088
2089 PR cli/16122
2090 * top.c (command_line_input): Unify interactivity tests to use
2091 input_from_terminal_p.
2092 * event-top.c (command_line_handler): Likewise.
2093
2094 2013-11-06 Yao Qi <yao@codesourcery.com>
2095
2096 * Makefile.in (check-perf): New target.
2097
2098 2013-11-05 Will Newton <will.newton@linaro.org>
2099
2100 PR gdb/7670
2101 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2102 (arm_print_float_info): Likewise.
2103
2104 2013-11-04 Anton Blanchard <anton@samba.org>
2105
2106 * target.c (memory_xfer_partial): Cap write to 4KB.
2107
2108 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2109
2110 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2111 probe scan even when the arch provides no get_longjmp_target.
2112
2113 2013-10-31 Pedro Alves <palves@redhat.com>
2114
2115 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2116 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2117 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2118 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2119 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2120 <bpstat handling>: If the bpstat chain wants the signal to be
2121 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2122 GDB_SIGNAL_TRAP.
2123
2124 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2125
2126 * breakpoint.c (update_watchpoint): Update error message and add
2127 an additional error message.
2128
2129 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2130
2131 * s390-tdep.h: Rename to...
2132 * s390-linux-tdep.h: ...here.
2133 * s390-tdep.c: Rename to...
2134 * s390-linux-tdep.c: ...here. Adjust #include.
2135 * s390-nat.c: Rename to...
2136 * s390-linux-nat.c: ...here. Adjust #include.
2137 * config/s390/s390.mh: Rename to...
2138 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2139 s390-linux-nat.o.
2140 * configure.host: Reflect host rename "s390" -> "linux".
2141 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2142 * Makefile.in (ALL_TARGET_OBS): Likewise.
2143 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2144 s390-linux-tdep.h.
2145 (ALLDEPFILES): Reflect rename of .c files.
2146
2147 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148
2149 * s390-nat.c: Whitespace cleanup.
2150 * s390-tdep.c: Likewise.
2151 * s390-tdep.h: Remove empty line at end of file.
2152
2153 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2154
2155 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2156 siginfo_size.
2157
2158 2013-10-29 Tom Tromey <tromey@redhat.com>
2159
2160 * utils.c (reg): Move undefinition...
2161 * gdb_curses.h: ... here. Update comment to mention AIX.
2162
2163 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2164
2165 * exec.h (add_target_sections_of_objfile): New declaration.
2166 * exec.c (add_target_sections_of_objfile): New function.
2167 * symfile.c (add_symbol_file_command): Update current target sections.
2168 (remove_symbol_file_command): New command.
2169 (symfile_free_objfile): New function.
2170 (_initialize_symfile): Register observer for free_objfile events.
2171 * NEWS: Add description of the remove-symbol-file command.
2172 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2173 * objfiles.c (free_objfile): Notify free_objfile.
2174 (is_addr_in_objfile): New function.
2175 * objfiles.h (is_addr_in_objfile): New declaration.
2176 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2177 events instead of solib_unloaded events.
2178 (_initialize_printcmd): Register observer for free_objfile instead
2179 of solib_unloaded notifications.
2180 * solib.c (remove_user_added_objfile): New function.
2181 (_initialize_symfile): Add remove-symbol-file.
2182
2183 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2184
2185 * infcmd.c (default_print_one_register_info): Use val_print to
2186 print all values even optimized out or unavailable ones. Don't
2187 try to print a raw form of optimized out or unavailable values.
2188
2189 2013-10-29 Yao Qi <yao@codesourcery.com>
2190
2191 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2192 parameter 'arg' instead of from program_space_data.
2193 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2194 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2195 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2196 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2197 * inflow.c (inflow_inferior_data_cleanup): Get data from
2198 parameter 'arg' instead of inferior_data.
2199 * registry.h: Add comments.
2200
2201 2013-10-28 Pedro Alves <palves@redhat.com>
2202
2203 * breakpoint.c (watchpoints_triggered)
2204 <!target_stopped_data_address>: Hardcode return 1.
2205
2206 2013-10-28 Pedro Alves <palves@redhat.com>
2207
2208 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2209 level and reindent.
2210
2211 2013-10-28 Pedro Alves <palves@redhat.com>
2212
2213 * infrun.c (process_event_stop_test): New function, factored out
2214 from handle_inferior_event.
2215 (handle_inferior_event): 'process_event_stop_test' is now a
2216 function instead of a goto label -- adjust.
2217
2218 2013-10-28 Pedro Alves <palves@redhat.com>
2219
2220 * infrun.c (handle_inferior_event): Move process_event_stop_test
2221 goto label to the else branch of the ecs->random_signal check,
2222 along with FRAME and GDBARCH re-fetching.
2223
2224 2013-10-28 Pedro Alves <palves@redhat.com>
2225
2226 * infrun.c (switch_back_to_stepped_thread): New function, factored
2227 out from handle_inferior_event.
2228 (handle_inferior_event): Adjust to call
2229 switch_back_to_stepped_thread. Call it also at the tail of the
2230 random signal handling, and return, instead of also handling
2231 random signals just before the stepping tests.
2232
2233 2013-10-28 Pedro Alves <palves@redhat.com>
2234
2235 * infrun.c (clear_stop_func): Delete.
2236 (handle_inferior_event): Don't call clear_stop_func and don't
2237 clear 'ecs->random_signal'.
2238
2239 2013-10-27 Yao Qi <yao@codesourcery.com>
2240
2241 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2242 (varobj_create, varobj_get_path_expr): Update.
2243 (varobj_value_has_mutated, varobj_update): Likewise.
2244 (create_child_with_value, new_root_variable): Likewise.
2245 (number_of_children, name_of_variable): Likewise.
2246 (value_of_child, my_value_of_variable): Likewise.
2247 (varobj_value_is_changeable_p): Likewise.
2248
2249 2013-10-25 Yao Qi <yao@codesourcery.com>
2250
2251 * language.h (struct lang_varobj_ops): Declare.
2252 (struct language_defn) <la_varobj_ops>: New field.
2253 * ada-lang.c: Include "varobj.h"
2254 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2255 ada_varobj_ops.
2256 * c-lang.c: Include "varobj.h"
2257 (c_language_defn): Initialize field 'la_varobj_ops' with
2258 c_varobj_ops.
2259 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2260 cplus_varobj_ops.
2261 (asm_language_defn): Initialize field 'la_varobj_ops' with
2262 default_varobj_ops.
2263 (minimal_language_defn): Likewise.
2264 * d-lang.c (d_language_defn): Likewise.
2265 * f-lang.c (f_language_defn): Likewise.
2266 * go-lang.c (go_language_defn): Likewise.
2267 * m2-lang.c (m2_language_defn): Likewise.
2268 * objc-lang.c (objc_language_defn): Likewise.
2269 * opencl-lang.c (opencl_language_defn): Likewise.
2270 * p-lang.c (pascal_language_defn): Likewise.
2271 * language.c (unknown_language_defn): Likewise.
2272 (auto_language_defn): Likewise.
2273 (local_language_defn): Likewise.
2274 * jv-lang.c (java_language_defn): Initialize field
2275 'la_varobj_ops' with java_varobj_ops.
2276 * varobj.c (varobj_create): Update.
2277 * varobj.h (default_varobj_ops): Define macro.
2278
2279 2013-10-25 Pedro Alves <palves@redhat.com>
2280
2281 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2282 static field value.
2283 (cp_print_static_field): If the value is entirely optimized out,
2284 print <optimized out> here.
2285 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2286 static field value.
2287 * p-valprint.c (pascal_object_print_static_field): If the value is
2288 entirely optimized out, print <optimized out> here.
2289 * valops.c (do_search_struct_field)
2290 (value_struct_elt_for_reference): No longer handle a NULL static
2291 field value.
2292 * value.c (value_static_field): Return an optimized out value
2293 instead of NULL.
2294
2295 2013-10-25 Yao Qi <yao@codesourcery.com>
2296
2297 * remote.c (remote_traceframe_info): Return early if
2298 traceframe is not selected.
2299
2300 2013-10-25 Yao Qi <yao@codesourcery.com>
2301
2302 * tracepoint.c (traceframe_fun): Remove.
2303 (traceframe_sal): Remove.
2304 (set_traceframe_context): Add local variables.
2305
2306 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2307
2308 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2309 and parameter name.
2310
2311 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2312
2313 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2314 failure from register information collection.
2315
2316 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2317
2318 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2319 member.
2320 (linux_corefile_thread_callback): Update accordingly.
2321 (linux_make_corefile_notes): Likewise.
2322
2323 2013-10-24 Pedro Alves <palves@redhat.com>
2324
2325 * NEWS (New options): Mention set/show startup-with-shell.
2326 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2327 instead of 3.
2328 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2329 startup-with-shell'.
2330 (show_startup_with_shell): New function.
2331 (_initialize_fork_child): Register the set/show startup-with-shell
2332 commands.
2333 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2334 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2335 * procfs.c (procfs_init_inferior): Remove comment.
2336 * infcmd.c (startup_with_shell): New global.
2337 * inferior.h (startup_with_shell): Declare global.
2338 (STARTUP_WITH_SHELL): Delete.
2339 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2340
2341 2013-10-23 Pedro Alves <palves@redhat.com>
2342
2343 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2344 * common/signals.c: Include "gdb_assert.h".
2345 (signals): New field 'symbol'.
2346 (SET): Use the 'symbol' parameter.
2347 (gdb_signal_to_symbol_string): New function.
2348 * infrun.c (handle_inferior_event) <random signal>: In debug
2349 output, print the random signal enum as string in addition to its
2350 number.
2351 * target/waitstatus.c (target_waitstatus_to_string): Print the
2352 signal's enum value as string instead of the (POSIX) signal name.
2353
2354 2013-10-23 Gary Benson <gbenson@redhat.com>
2355
2356 PR 16013
2357 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2358 from 32 to 18. Adjusted fscanf format string accordingly.
2359 (Avoids leaving cmd unterminated.)
2360 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2361 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2362 that local_address and remote_address will not overflow.
2363 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2364 leaving dependencies unterminated. Parse size as "%u" to match
2365 definition.
2366
2367 2013-10-22 Pedro Alves <palves@redhat.com>
2368
2369 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2370 set ecs->random signal.
2371
2372 2013-10-22 Pedro Alves <palves@redhat.com>
2373
2374 * infrun.c (keep_going): Update comments.
2375
2376 2013-10-22 Pedro Alves <palves@redhat.com>
2377
2378 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2379 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2380
2381 2013-10-22 Pedro Alves <palves@redhat.com>
2382
2383 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2384 GDB_EXC_BAD_ACCESS.
2385 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2386 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2387 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2388 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2389 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2390 (GDB_SIGNAL_LAST): Change description string.
2391 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2392 Adjust to signal renaming.
2393 * darwin-nat.c (darwin_decode_message): Likewise.
2394
2395 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2396
2397 * MAINTAINERS (Write After Approval): Add myself to the list.
2398
2399 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2400
2401 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2402 forced off, downgrade them to software watchpoints if possible,
2403 and error out if not possible.
2404 (watch_command_1): Move watchpoint type selection closer to
2405 watchpoint creation, and extend the comments.
2406
2407 2013-10-18 Pedro Alves <palves@redhat.com>
2408
2409 PR gdb/16062
2410 * infrun.c (handle_inferior_event): Keep going if we got a random
2411 signal we should not stop for, instead of falling through to the
2412 step tests.
2413
2414 2013-10-18 Yao Qi <yao@codesourcery.com>
2415
2416 * c-varobj.c (cplus_number_of_children): Fix indentation.
2417
2418 2013-10-17 Tom Tromey <tromey@redhat.com>
2419
2420 PR gdb/15995:
2421 * printcmd.c (printcmd): Call gdb_flush.
2422
2423 2013-10-17 Tom Tromey <tromey@redhat.com>
2424
2425 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2426 (elf_locate_sections): Update.
2427
2428 2013-10-17 Yao Qi <yao@codesourcery.com>
2429
2430 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2431 * ada-varobj.c: Remove the include of ada-varobj.h.
2432 (ada_varobj_get_number_of_children): Declare.
2433 (ada_varobj_get_name_of_child): Make it static.
2434 (ada_varobj_get_path_expr_of_child): Likewise.
2435 (ada_varobj_get_value_of_child): Likewise.
2436 (ada_varobj_get_type_of_child): Likewise.
2437 (ada_varobj_get_value_of_array_variable): Likewise.
2438 * ada-varobj.h: Remove.
2439
2440 2013-10-17 Yao Qi <yao@codesourcery.com>
2441
2442 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2443 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2444 * ada-varobj.c: Include "varobj.h".
2445 (ada_number_of_children): New. Moved from varobj.c.
2446 (ada_name_of_variable, ada_name_of_child): Likewise.
2447 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2448 (ada_type_of_child, ada_value_of_variable): Likewise.
2449 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2450 (ada_varobj_ops): New.
2451 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2452 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2453 * gdbtypes.h (get_target_type): Declare.
2454 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2455 "ada-lang.h".
2456 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2457 (ANONYMOUS_UNION_NAME): Likewise.
2458 (get_type, get_value_type, get_target_type): Remove declarations.
2459 (value_get_print_value, varobj_value_get_print_value): Likewise.
2460 (c_number_of_children, c_name_of_variable): Likewise.
2461 (c_name_of_child, c_path_expr_of_child): Likewise.
2462 (c_value_of_child, c_type_of_child): Likewise.
2463 (c_value_of_variable, cplus_number_of_children): Likewise.
2464 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2465 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2466 (cplus_value_of_child, cplus_type_of_child): Likewise.
2467 (cplus_value_of_variable, java_number_of_children): Likewise.
2468 (java_name_of_variable, java_name_of_child): Likewise.
2469 (java_path_expr_of_child, java_value_of_child): Likewise.
2470 (java_type_of_child, java_value_of_variable): Likewise.
2471 (ada_number_of_children, ada_name_of_variable): Likewise.
2472 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2473 (ada_value_of_child, ada_type_of_child): Likewise.
2474 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2475 (ada_value_has_mutated): Likewise.
2476 (struct language_specific): Move it to varobj.h.
2477 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2478 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2479 Callers update.
2480 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2481 Make it extern.
2482 (is_anonymous_child): Move it to c-varobj.c and rename to
2483 varobj_is_anonymous_child. Caller update.
2484 (get_type): Move it to c-varobj.c.
2485 (get_value_type): Rename it varobj_get_value_type. Make it
2486 extern.
2487 (get_target_type): Move it gdbtypes.c.
2488 (varobj_formatted_print_options): New function.
2489 (value_get_print_value): Rename it to
2490 varobj_value_get_print_value and make it extern.
2491 (varobj_value_is_changeable_p): Make it extern.
2492 (adjust_value_for_child_access): Move it to c-varobj.c.
2493 (default_value_is_changeable_p): Rename it to
2494 varobj_default_value_is_changeable_p. Make it extern.
2495 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2496 (c_name_of_child, c_path_expr_of_child): Likewise.
2497 (c_value_of_child, c_type_of_child): Likewise.
2498 (c_value_of_variable, cplus_number_of_children): Likewise.
2499 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2500 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2501 (cplus_value_of_child, cplus_type_of_child): Likewise.
2502 (cplus_value_of_variable): Likewise.
2503 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2504 (java_name_of_child, java_path_expr_of_child): Likewise.
2505 (java_value_of_child, java_type_of_child): Likewise.
2506 (java_value_of_variable): Likewise.
2507 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2508 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2509 (ada_value_of_child, ada_type_of_child): Likewise.
2510 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2511 (ada_value_has_mutated): Likewise.
2512 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2513 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2514 (c_varobj_ops, cplus_varobj_ops): Declare.
2515 (java_varobj_ops, ada_varobj_ops): Declare.
2516 (varobj_default_value_is_changeable_p): Declare.
2517 (varobj_value_is_changeable_p): Declare.
2518 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2519 (varobj_get_path_expr_parent): Declare.
2520 (varobj_value_get_print_value): Declare.
2521 (varobj_formatted_print_options): Declare.
2522 (varobj_restrict_range): Declare.
2523
2524 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2525
2526 * target/waitstatus.h (target_waitkind): Remove spurious
2527 character from the comments.
2528
2529 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2530
2531 * gdbarch.sh (get_longjmp_target): Add method documentation.
2532 * gdbarch.h: Regenerate.
2533
2534 2013-10-16 Tom Tromey <tromey@redhat.com>
2535
2536 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2537 label.
2538
2539 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2540
2541 * gcore.in: Call GDB using the full path to the gcore script.
2542 Error out if the GDB binary is not found.
2543
2544 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2545
2546 PR gdb/16014
2547 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2548 sizeof.
2549
2550 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2551
2552 PR gdb/16042
2553 * target.c (target_disable_btrace): Fix invalid return value for
2554 void function.
2555 (target_teardown_btrace): Likewise.
2556
2557 2013-10-14 Yao Qi <yao@codesourcery.com>
2558
2559 * varobj.c (struct varobj): Move most of the fields to
2560 varobj.h.
2561 (struct varobj_dynamic): New struct.
2562 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2563 (varobj_has_more): Likewise.
2564 (dynamic_varobj_has_child_method): Likewise.
2565 (update_dynamic_varobj_children): Likewise.
2566 (varobj_get_num_children): Likewise.
2567 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2568 (install_new_value_visualizer): Likewise.
2569 (install_new_value_visualizer, install_new_value): Likewise.
2570 (varobj_update, new_variable, free_variable): Likewise.
2571 (my_value_of_variable, value_get_print_value): Likewise.
2572 (install_visualizer): Change the type of parameter 'var' to
2573 'struct varobjd_dynamic *'. Callers update.
2574 * varobj.h (struct varobj): Moved from varobj.c.
2575 (struct varobj) <dynamic>: New field.
2576
2577 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2578
2579 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2580 as the preferred name of r30.
2581 * nios2-linux-tdep.c (reg_offsets): Likewise.
2582 * features/nios2-cpu.xml: Likewise.
2583 * features/nios2-linux.c: Regenerated.
2584 * features/nios2.c: Regenerated.
2585 * regformats/nios2-linux.dat: Regenerated.
2586
2587 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Canonicalize directories for EXEC_FILENAME.
2590 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2591 exec_filename.
2592 * utils.c (gdb_realpath_keepfile): New function.
2593 * utils.h (gdb_realpath_keepfile): New declaration.
2594
2595 2013-10-11 Doug Evans <dje@google.com>
2596
2597 * Makefile.in (GDBFLAGS): New variable.
2598 (run): New rule.
2599
2600 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2601
2602 * NEWS: Add entry documenting the new "-catch-assert" and
2603 "-catch-exception" GDB/MI commands.
2604
2605 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2606
2607 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2608 "enabled".
2609 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2610 "enabled". Set B->ENABLE_STATE accordingly.
2611 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2612 ada-lang.c.
2613 (create_ada_exception_catchpoint): Add declaration.
2614 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2615 (create_ada_exception_catchpoint): Make non-static. Add new
2616 parameter "disabled". Use it in call to
2617 init_ada_exception_breakpoint.
2618 (catch_ada_exception_command): Add parameter "enabled" in call
2619 to create_ada_exception_catchpoint.
2620 (catch_assert_command): Likewise.
2621
2622 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2623 Add declarations.
2624 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2625 "catch-exception" commands.
2626 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2627 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2628
2629 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2630
2631 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2632 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2633 of all its enumerates with "ada_". Update the rest of this
2634 file throughout.
2635
2636 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-lang.c (ada_decode_exception_location): Delete.
2639 (create_ada_exception_catchpoint): Remove arguments "sal",
2640 "addr_string" and "ops". Add argument "ex_kind" instead.
2641 Adjust implementation accordingly, calling ada_exception_sal
2642 to get the entities it no longer gets passed as arguments.
2643 Document the function's arguments.
2644 (catch_ada_exception_command): Use catch_ada_exception_command_split
2645 instead of ada_decode_exception_location, and update call to
2646 create_ada_exception_catchpoint.
2647 (catch_ada_assert_command_split): Renames
2648 ada_decode_assert_location. Remove parameters "addr_string" and
2649 "ops", and now returns void. Adjust implementation accordingly.
2650 Update the function documentation.
2651 (catch_assert_command): Use catch_ada_assert_command_split
2652 instead of ada_decode_assert_location. Update call to
2653 create_ada_exception_catchpoint.
2654
2655 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2656
2657 * utils.h (perror_warning_with_name): Add declaration.
2658 * utils.c (perror_warning_with_name): New function.
2659 * cli/cli-cmds.c (source_script_with_search): Add call to
2660 perror_warning_with_name if from_tty is nul.
2661
2662 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2663
2664 * utils.c (perror_string): New function, extracted out of
2665 throw_perror_with_name.
2666 (throw_perror_with_name): Rework to use perror_string.
2667
2668 2013-10-11 Yao Qi <yao@codesourcery.com>
2669
2670 * remote.c (discard_pending_stop_replies_in_queue): Update
2671 declaration.
2672 (struct stop_reply) <rs>: New field.
2673 (remove_stop_reply_of_remote_state): New function.
2674 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2675 Callers update. Pass remove_stop_reply_of_remote_state to
2676 QUEUE_iterate.
2677 (remote_parse_stop_reply): Initialize field 'rs'.
2678
2679 2013-10-10 Will Newton <will.newton@linaro.org>
2680
2681 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2682 linux_init_abi.
2683
2684 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2685
2686 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2687 serial_baud_show_cmd.
2688 (_initialize_cli_cmds): Delete the code creating the
2689 "set/show remotebaud" commands.
2690 * serial.c (baud_rate): Move here from top.c.
2691 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2692 (_initialize_serial): Create "set/show serial baud" commands.
2693 Add "set/show remotebaud" command aliases.
2694 * top.c (baud_rate): Moved to serial.c.
2695 * NEWS: Document the new "set/show serial baud" commands,
2696 replacing "set/show remotebaud".
2697
2698 2013-10-09 Pedro Alves <palves@redhat.com>
2699
2700 * breakpoint.c (insert_bp_location): Use memory_error_message to
2701 build the memory error string.
2702 * c-lang.c: Include "gdbcore.h".
2703 (c_get_string): Use memory_error to throw error.
2704 (target_xfer_memory_error): Delete.
2705 (memory_error_message): New, factored out from
2706 target_xfer_memory_error.
2707 (memory_error): Change parameter type to target_xfer_error.
2708 Rewrite.
2709 (read_memory): Use memory_error instead of
2710 target_xfer_memory_error.
2711 * gdbcore.h: Include "target.h".
2712 (memory_error): Change parameter type to target_xfer_error.
2713 (memory_error_message): Declare function.
2714 * target.c (target_read_memory, target_read_stack)
2715 (target_write_memory, target_write_raw_memory): Return
2716 TARGET_XFER_E_IO on error. Adjust comments.
2717 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2718 instead of EIO.
2719 * target.h (target_read, target_insert_breakpoint)
2720 (target_remove_breakpoint): Adjust comments.
2721 * valprint.c (partial_memory_read): Rename parameter, and adjust
2722 comment.
2723 (val_print_string): Use memory_error_message to build the memory
2724 error string.
2725
2726 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2729 result variable. Rename variable fopen_e_ever_failed to
2730 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2731
2732 2013-10-09 Pedro Alves <palves@redhat.com>
2733
2734 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2735 (monitor_write_memory_longlongs, monitor_write_memory_block):
2736 Constify 'myaddr' parameter.
2737 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2738 helper.
2739 (monitor_xfer_partial): New function.
2740 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2741 hook. Install a to_xfer_partial hook.
2742
2743 2013-10-09 Tom Tromey <tromey@redhat.com>
2744
2745 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2746 bfd_get_alt_debug_link_info.
2747
2748 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2749
2750 New flag OBJF_NOT_FILENAME.
2751 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2752 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2753 allocate_objfile.
2754 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2755 symbol_file_add_from_bfd.
2756 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2757 allocate_objfile.
2758 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2759 NULL.
2760 * objfiles.h (OBJF_NOT_FILENAME): New.
2761
2762 2013-10-08 Tom Tromey <tromey@redhat.com>
2763
2764 * Makefile.in (SFILES): Add build-id.c.
2765 (HFILES_NO_SRCDIR): Add build-id.h.
2766 * build-id.c: New file, largely from elfread.c. Modified
2767 most functions.
2768 * build-id.h: New file.
2769 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2770 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2771 Search for dwz file using build-id.
2772 * elfread.c (build_id_bfd_get, build_id_verify)
2773 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2774
2775 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2776
2777 * ada-lang.c (compare_names_with_case): Renamed from
2778 compare_names, adding a new parameter "casing" and its handling.
2779 New function documentation.
2780 (compare_names): New function, implemented using
2781 compare_names_with_case.
2782
2783 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2784
2785 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2786
2787 2013-10-07 Tom Tromey <tromey@redhat.com>
2788
2789 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2790 demangled_names_hash.
2791 (free_objfile): Don't delete the demangled_names_hash.
2792 * objfiles.h (struct objfile_per_bfd_storage)
2793 <demangled_names_hash>: New field.
2794 (struct objfile) <demangled_names_hash>: Move to
2795 objfile_per_bfd_storage.
2796 * symfile.c (reread_symbols): Don't delete the
2797 demangled_names_hash.
2798 * symtab.c (create_demangled_names_hash): Update.
2799 (symbol_set_names): Update.
2800
2801 2013-10-07 Tom Tromey <tromey@redhat.com>
2802
2803 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2804 needs_relocations>: New fields.
2805 (gdb_bfd_requires_relocations): New function.
2806 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2807 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2808 the BFD needs relocations applied.
2809
2810 2013-10-07 Pedro Alves <palves@redhat.com>
2811
2812 PR breakpoints/11568
2813 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2814 the thread list" instead of "gone".
2815
2816 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2817
2818 * NEWS: Mention new convenience variable $_exitsignal.
2819 * corelow.c (core_open): Reset exit convenience variables. Set
2820 $_exitsignal to the uncaught signal which generated the corefile.
2821 * infrun.c (handle_inferior_event): Reset exit convenience
2822 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2823 (clear_exit_convenience_vars): New function.
2824 * inferior.h (clear_exit_convenience_vars): New prototype.
2825
2826 2013-10-06 Yao Qi <yao@codesourcery.com>
2827
2828 * varobj.h: Add comments to enum varobj_languages.
2829
2830 2013-10-04 Doug Evans <dje@google.com>
2831
2832 Add support for DWP file format version 2.
2833 * NEWS: Mention support for DWP file format version 2.
2834 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2835 union of asection, containing_section. New fields virtual_offset
2836 and is_virtual. Change type of readin filed from int to char.
2837 (dwo_sections, dwo_file): Tweak comments.
2838 (dwp_v2_section_ids): New enum.
2839 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2840 str_offsets, types.
2841 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2842 All uses updated.
2843 (virtual_v2_dwo_sections): New struct.
2844 (dwp_hash_table): New fields version, nr_columns. Change type of
2845 section_pool field to a union.
2846 (dwp_file): New field version.
2847 (dwarf2_has_info): Check for virtual sections.
2848 (get_containing_section): New function.
2849 (get_section_bfd_owner, get_section_bfd_section): Call it.
2850 (dwarf2_locate_sections): Update.
2851 (dwarf2_section_empty_p): Update.
2852 (dwarf2_read_section): Handle virtual sections.
2853 (locate_dwz_sections): Update.
2854 (create_dwp_hash_table): Document and handle V2 format.
2855 (locate_v1_virtual_dwo_sections): Renamed from
2856 locate_virtual_dwo_sections and update. All callers updated.
2857 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2858 Delete arg htab. Rename arg section_index to unit_index.
2859 All callers updated.
2860 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2861 All uses updated.
2862 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2863 (lookup_dwo_unit_in_dwp): Add V2 support.
2864 (dwarf2_locate_dwo_sections): Update.
2865 (dwarf2_locate_common_dwp_sections): Renamed from
2866 dwarf2_locate_dwp_sections and update. All callers updated.
2867 (dwarf2_locate_v2_dwp_sections): New function.
2868 (open_and_init_dwp_file): Add V2 support.
2869 (read_str_index): New locals str_section, str_offsets_section.
2870
2871 2013-10-04 Pedro Alves <palves@redhat.com>
2872
2873 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2874 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2875 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2876 describing comments with references to ptid.h.
2877 * common/ptid.h: Remove intro description of constructors,
2878 accessors and predicates.
2879 (struct ptid): Reformat.
2880 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2881 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2882 describing comments.
2883
2884 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2885
2886 * aix-thread.c (sync_threadlists): Add missing ')' in call
2887 to ptid_build.
2888
2889 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2890
2891 * procfs.c (procfs_init_inferior): Fix typo causing the build
2892 to fail.
2893
2894 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2895
2896 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2897
2898 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2899
2900 * mi/mi-main.c (run_one_inferior): Add function description.
2901 Make ARG a pointer to an integer whose value determines whether
2902 we should "run" or "start" the program.
2903 (mi_cmd_exec_run): Add handling of the "--start" option.
2904 Reject all other command-line options.
2905 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2906
2907 2013-10-04 Yao Qi <yao@codesourcery.com>
2908
2909 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2910 (struct notif_client) <pending_event>: Moved
2911 to struct remote_notif_state.
2912 <id>: New field.
2913 (struct remote_notif_state) <pending_event>: New field.
2914 (notif_event_xfree): Declare.
2915 * remote-notif.c (handle_notification): Adjust.
2916 (notif_event_xfree): New function.
2917 (do_notif_event_xfree): Call notif_event_xfree.
2918 (remote_notif_state_xfree): Call notif_event_xfree to free
2919 each element in field pending_event.
2920 * remote.c (discard_pending_stop_replies): Remove declaration.
2921 (discard_pending_stop_replies_in_queue): Declare.
2922 (remote_close): Call discard_pending_stop_replies_in_queue
2923 instead of discard_pending_stop_replies.
2924 (remote_start_remote): Adjust.
2925 (stop_reply_xfree): Call notif_event_xfree.
2926 (notif_client_stop): Adjust initialization.
2927 (remote_notif_remove_all): Rename it to ...
2928 (remove_stop_reply_for_inferior): ... this. Update comments.
2929 Don't check INF is NULL.
2930 (discard_pending_stop_replies): Return early if notif_state is
2931 NULL. Adjust. Don't check INF is NULL.
2932 (remote_notif_get_pending_events): Adjust.
2933 (discard_pending_stop_replies_in_queue): New function.
2934 (remote_wait_ns): Likewise.
2935
2936 2013-10-04 Yao Qi <yao@codesourcery.com>
2937
2938 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2939 (notif_queue): Remove.
2940 (remote_notif_process): Add one parameter 'notif_queue'.
2941 Update comments. Callers update.
2942 (remote_async_get_pending_events_token): Remove.
2943 (remote_notif_register_async_event_handler): Remove.
2944 (remote_notif_unregister_async_event_handler): Remove.
2945 (handle_notification): Add parameter 'notif_queue'. Update
2946 comments. Callers update.
2947 (notif_xfree): Remove.
2948 (remote_notif_state_allocate): New function.
2949 (remote_notif_state_xfree): New function.
2950 (_initialize_notif): Remove code to allocate queue.
2951 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2952 (struct remote_notif_state): New.
2953 (handle_notification): Update declaration.
2954 (remote_notif_process): Likewise.
2955 (remote_notif_register_async_event_handler): Remove.
2956 (remote_notif_unregister_async_event_handler): Remove.
2957 (remote_notif_state_allocate): Declare.
2958 (remote_notif_state_xfree): Declare.
2959 * remote.c (struct remote_state) <notif_state>: New field.
2960 (remote_close): Don't call
2961 remote_notif_unregister_async_event_handler. Call
2962 remote_notif_state_xfree.
2963 (remote_open_1): Don't call
2964 remote_notif_register_async_event_handler. Call
2965 remote_notif_state_allocate.
2966
2967 2013-10-04 Yao Qi <yao@codesourcery.com>
2968
2969 * varobj.c (create_child_with_value): Remove 'const' from the
2970 type of parameter 'name'.
2971 (varobj_add_child): Likewise.
2972 (install_dynamic_child): Remove 'const' from the type of
2973 parameter 'name'.
2974 (varobj_add_child): Likewise.
2975 (create_child_with_value): Likewise. Update comments. Don't
2976 duplicate 'name'.
2977 (update_dynamic_varobj_children): Duplicate 'name'
2978 and pass it to install_dynamic_child.
2979
2980 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2981
2982 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2983 conversion logic to occur after PyLong_Check. Comment on order
2984 change significance.
2985 * python/py-arch.c (archpy_disassemble): Comment on order of
2986 conversion for integers and longs.
2987
2988 2013-10-03 Pedro Alves <palves@redhat.com>
2989
2990 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2991 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2992 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2993 PTRACE_O_TRACEFORK is not supported.
2994 (linux_test_for_tracesysgood): New function.
2995 (linux_test_for_tracefork): New function, factored out from
2996 linux_check_ptrace_features, and also don't kill child_pid here.
2997
2998 2013-10-03 Tristan Gingold <gingold@adacore.com>
2999
3000 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
3001 Remove verbose error reporting. Use detected state to
3002 thread_set_state call.
3003 (i386_darwin_dr_get): Fix return type. Remove verbose error
3004 report.
3005 Remove trailing spaces.
3006
3007 2013-10-02 Pedro Alves <palves@redhat.com>
3008
3009 * cp-valprint.c (cp_print_value_fields): Adjust calls to
3010 val_print_optimized_out.
3011 * jv-valprint.c (java_print_value_fields): Likewise.
3012 * p-valprint.c (pascal_object_print_value_fields): Likewise.
3013 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
3014 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
3015 new optimized out value.
3016 * findvar.c (address_from_register): Likewise.
3017 * frame.c (put_frame_register): Tweak error string to say the
3018 register was not saved, rather than optimized out.
3019 * infcmd.c (default_print_one_register_info): Adjust call to
3020 val_print_optimized_out. Use value_of_register instead of
3021 get_frame_register_value.
3022 * mi/mi-main.c (output_register): Use value_of_register instead of
3023 get_frame_register_value.
3024 * valprint.c (valprint_check_validity): Likewise.
3025 (val_print_optimized_out): New value parameter. If the value is
3026 lval_register, print <not saved> instead.
3027 (value_check_printable, val_print_scalar_formatted): Adjust calls
3028 to val_print_optimized_out.
3029 * valprint.h (val_print_optimized_out): New value parameter.
3030 * value.c (struct value) <optimized_out>: Extend comment.
3031 (error_value_optimized_out): New function.
3032 (require_not_optimized_out): Use it. Use a different string for
3033 lval_register values.
3034 * value.h (error_value_optimized_out): New declaration.
3035 * NEWS: Mention <not saved>.
3036
3037 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3038
3039 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3040 strcmp to compare two symtab filenames.
3041
3042 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3043
3044 * symtab.c (search_symbols_equal): Delete.
3045 (sort_search_symbols_remove_dups): Replace call to
3046 search_symbols_equal by call to compare_search_syms,
3047 adjusting as necessary.
3048
3049 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3050
3051 PR python/15579
3052 * python/python.c: Document gdb.execute command in Python help.
3053
3054 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3055
3056 * python/py-frame.c (frame_info_to_frame_object): Use
3057 gdbpy_convert_exception. Clean up Python object on failure.
3058
3059 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3060
3061 * python/lib/gdb/command/frame_filters.py
3062 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3063 (ShowFrameFilterPriority.invoke): Ditto.
3064
3065 2013-10-01 Keith Seitz <keiths@redhat.com>
3066
3067 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3068 (parse_linespec): Make 'argptr' const.
3069 Remove temporary cast of 'argptr' to const char **.
3070 (decode_line_full): Pass const pointer to parse_linespec.
3071 (decode_line_1): Likewise.
3072 (decode_objc): Make local variable 'new_argptr' const.
3073 (find_function_symbols): Remove temporary cast to char *
3074 to find_imps.
3075 * objc-lang.c (find_imps): Make argument 'method' const.
3076 Return const.
3077 * objc-lang.h (find_imps): Likewise.
3078
3079 2013-10-01 Keith Seitz <keiths@redhat.com>
3080
3081 * completer.c (skip_quoted_chars): Make all arguments const.
3082 Return const.
3083 (skip_quoted): Likewise.
3084 * completer.h (skip_quoted_chars): Likewise.
3085 (skip_quoted): Likewise.
3086 * defs.h (skip_quoted): Remove duplicate declaration.
3087 * jv-exp.y: Include completer.h.
3088 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3089 * p-exp.y: Include completer.h.
3090
3091 2013-10-01 Keith Seitz <keiths@redhat.com>
3092
3093 * c-exp.y (parse_number): Make first argument const.
3094 Make a copy of the input to manipulate.
3095 (c_parse_escape): Make first argument const.
3096 Make local variable 'tokptr' const.
3097 (parse_string_or_char): Make first two arguments const.
3098 (macro_original_text): Make const.
3099 (lex_one_token): Make local variable 'tokstart' const.
3100 Likewise for local variables named 'p'.
3101 Cast away const for struct stoken (temporary).
3102 * c-lang.h (c_parse_escpae): Make first argument const.
3103 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3104 const.
3105 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3106 var_string case.
3107 * f-exp.y (parse_number): Make first argument const.
3108 (match_string_literal): Make local variable 'tokstart'
3109 const.
3110 (yylex): Make local variable 'p' const.
3111 Cast away const for struct stoken (temporary).
3112 * go-exp.y (parse_number): Make first argument const.
3113 (parse_string_or_char): Likewise.
3114 Make local variable 'tokstart' const.
3115 (lex_one_token): Likewise for numerous locals called 'p'.
3116 Cast away const for struct stoken (temporary).
3117 * jv-exp.y (parse_number): Make first argument const.
3118 Make local variables 'tokstart' and 'tokptr' const.
3119 Cast away const for call to skip_quoted (temporary).
3120 (yylex): Make local variable 'p' const.
3121 Cast away const for struct stoken (temporary).
3122 * m2-exp.y (parse_number): Make local variable 'p' const.
3123 (yylex): Likewise for 'tokstart'.
3124 Cast away const for struct stoken (temporary).
3125 Make local variable 'p' const.
3126 * macroexp.c (get_character_constant): Pass a const string
3127 to c_parse_escape.
3128 (get_string_literal): Likewise.
3129 (macro_expand_next): Make first argument const.
3130 Cast away const for init_shared_buffer.
3131 * macroexp.h (macro_expand_next): Make first argument const.
3132 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3133 Pass a const string to c_parse_escape.
3134 Make local variables 'p' and 'namestart' const.
3135 * parse.c (lexptr): Make const.
3136 (prev_lexptr): Likewise.
3137 (find_template_name_end): Return const.
3138 Make argument const, too.
3139 (parse_exp_in_context): Make first argument const.
3140 Remove the entire const_hack.
3141 (parse_exp_in_context_1): Make first argument const.
3142 * parser-defs.h (find_template_name_end): Return const.
3143 Make argument const, too.
3144 (lexptr): Make const.
3145 (prev_lexptr): Likewise.
3146 * utils.c (parse_escape): Make second argument const.
3147 * utils.h (parse_escape): Likewise.
3148
3149 2013-10-01 Keith Seitz <keiths@redhat.com>
3150
3151 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3152 is now const.
3153 (block_lookup): Make 'raw_name' and 'name' const.
3154 * ada-lex.l (processString): Update for struct stoken.ptr.
3155 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3156 (operator_stoken): Likewise.
3157 (lex_one_token): Remove temporary cast to char * for
3158 'yylval.sval.ptr'.
3159 * f-exp.y (yylex): Likewise.
3160 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3161 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3162 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3163 'yylval.sval.ptr'.
3164 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3165 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3166 * linespec.c (struct ls_parser): Make 'stream' const.
3167 (find_parameter_list_end): Make argument 'input' and local
3168 variable 'p' const.
3169 (linespec_lexer_lex_string): Make local variables 'start' and
3170 'p' const.
3171 Use skip_spaces_const instead of skip_spaces.
3172 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3173 const.
3174 (parse_linespec): Temporarily cast 'argptr' to const for
3175 'parser->lexer.stream'.
3176 * m2-exp.y (yylex): Remove temporary cast to char * for
3177 'yylval.sval.ptr'.
3178 * objc-lang.c (add_msglist): Make local variable 'p' const.
3179 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3180 (exp : STRING): Make 'sp' const.
3181 (parse_number): Make argument 'p' const.
3182 * parser-defs.h (struct stoken): Make 'ptr' const.
3183
3184 2013-10-01 Doug Evans <dje@google.com>
3185
3186 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3187
3188 2013-10-01 Yao Qi <yao@codesourcery.com>
3189
3190 * varobj.c (c_value_of_root): Remove declaration.
3191 (cplus_value_of_root, java_value_of_root): Likewise.
3192 (ada_value_of_root): Likewise.
3193 (struct language_specific) <value_of_root>: Remove.
3194 (languages): Update initialization.
3195 (check_scope): Move earlier.
3196 (c_value_of_root): Move earlier and rename to ...
3197 (value_of_root_1): ... this.
3198 (value_of_root): Caller update.
3199 (cplus_value_of_root, java_value_of_root): Remove.
3200 (ada_value_of_root): Remove.
3201
3202 2013-10-01 Yao Qi <yao@codesourcery.com>
3203
3204 * varobj.c (varobj_format_string): Remove "unknown".
3205 (languages): Remove the first element.
3206 * varobj.h (enum varobj_languages): Remove vlang_c.
3207
3208 2013-10-01 Yao Qi <yao@codesourcery.com>
3209
3210 * varobj.c (struct language_specific) <language>: Remove.
3211 (languages): Update the initialization.
3212
3213 2013-10-01 Yao Qi <yao@codesourcery.com>
3214
3215 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3216 "solib-target.h". Include "windows-tdep.h".
3217 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3218 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3219 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3220 windows-tdep.o to gdb_target_obs.
3221
3222 2013-10-01 Yao Qi <yao@codesourcery.com>
3223
3224 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3225 "solib-target.h".
3226 (amd64_windows_init_abi): Don't call set_solib_ops and
3227 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3228 windows_init_abi instead.
3229 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3230 "solib-target.h".
3231 (i386_cygwin_init_abi): Don't call set_solib_ops,
3232 set_gdbarch_has_dos_based_file_system and
3233 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3234 windows_init_abi instead.
3235 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3236 (windows_init_abi): New function.
3237 (windows_iterate_over_objfiles_in_search_order): Make it
3238 static.
3239 * windows-tdep.h (windows_init_abi): Declare.
3240 (windows_iterate_over_objfiles_in_search_order): Remove
3241 declaration.
3242
3243 2013-10-01 Jerome Guitton <guitton@adacore.com>
3244
3245 Checked in by Joel Brobecker <brobecker@adacore.com>
3246 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3247 incomplete dictionnary instead of None in case of missing
3248 environment variables.
3249 (elinos_init): in case of an incomplete environment, best
3250 effort to load system libraries instead of abort.
3251
3252 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3253
3254 * ada-lang.c (ada_has_this_exception_support): Ignore
3255 mst_solib_trampoline minimal symbols.
3256
3257 2013-09-30 Tristan Gingold <gingold@adacore.com>
3258
3259 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3260 hardware watchpoint.
3261 (i386_darwin_dr_set): Support 32 and 64 bit states.
3262 (i386_darwin_dr_get): Likewise.
3263 (i386_darwin_dr_set_control): Make static.
3264 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3265 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3266
3267 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3268
3269 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3270 Replace TIDGET with ptid_get_lwp.
3271 Replace GET_LWP with ptid_get_lwp.
3272 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3273 Replace BUILD_THREAD with ptid_build.
3274 Replace BUILD_LWP with ptid_build.
3275 Replace PIDGET with ptid_get_pid.
3276 Replace TIDGET with ptid_get_lwp.
3277 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3278 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3279 Replace TIDGET with ptid_get_lwp.
3280 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3281 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3282 Replace TIDGET with ptid_get_lwp.
3283 Replace GET_LWP with ptid_get_lwp.
3284 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3285 * auxv.c: Likewise.
3286 * breakpoint.c: Likewise.
3287 * common/ptid.c (ptid_is_pid): Condense check for
3288 null_ptid and minus_one_ptid.
3289 (ptid_lwp_p): New function.
3290 (ptid_tid_p): New function.
3291 * common/ptid.h: Update comments for accessors.
3292 (ptid_lwp_p): New prototype.
3293 (ptid_tid_p): New prototype.
3294 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3295 * gcore.c: Replace PIDGET with ptid_get_pid.
3296 * gdbthread.h: Likewise.
3297 * gnu-nat.c: Likewise.
3298 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3299 Replace TIDGET with ptid_get_lwp.
3300 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3301 * hppanbsd-nat.c: Likewise.
3302 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3303 Replace TIDGET with ptid_get_lwp.
3304 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3305 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3306 * infcmd.c: Likewise.
3307 * inferior.h: Likewise.
3308 * inflow.c: Likewise.
3309 * infrun.c: Likewise.
3310 * linux-fork.c: Likewise.
3311 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3312 Replace GET_PID with ptid_get_pid.
3313 Replace is_lwp with ptid_lwp_p.
3314 Replace GET_LWP with ptid_get_lwp.
3315 Replace BUILD_LWP with ptid_build.
3316
3317 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3318
3319 * common/linux-btrace.c: Move sys/syscall.h out of the
3320 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3321 Also check for SYS_perf_event_open before attempting to buid.
3322
3323 2013-09-27 Doug Evans <dje@google.com>
3324
3325 * dwarf2read.c (dwarf2_section_info): Add comment.
3326 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3327 All uses updated.
3328 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3329 (dwarf2_read_section): Delete unused local "header". Add section
3330 name to error message.
3331 (create_dwo_in_dwp): Tweak comment.
3332 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3333
3334 * dwarf2read.c (die_reader_specs): Tweak comment.
3335 (get_section_bfd_owner, get_section_bfd_section): New functions.
3336 (get_section_name, get_section_file_name): New functions.
3337 (get_section_id, get_section_flags): New functions.
3338 (*): Use new functions to access section fields.
3339
3340 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3341 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3342 arg "htab". All callers updated.
3343 (create_debug_types_hash_table): Remove redundant copy of
3344 abbrev_section.
3345 (create_dwo_in_dwp): Tweak comments.
3346 (read_str_index): Tweak comment. Record dwarf form name in static
3347 local.
3348
3349 2013-09-27 Pedro Alves <palves@redhat.com>
3350
3351 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3352 (remote_filename_p): Add comment.
3353 * remote.c (remote_filename_p): Adjust to use
3354 REMOTE_SYSROOT_PREFIX.
3355 * solib.c (solib_find): When deciding whether we need to add a
3356 directory separator, check whether the sysroot is "remote:"
3357 instead of checking whether the patch has a drive spec. Add
3358 comments.
3359
3360 2013-09-27 Pedro Alves <palves@redhat.com>
3361
3362 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3363 Delete fields.
3364 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3365 directly.
3366
3367 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 Fix set debug frame output.
3370 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3371 SENTINEL_FRAME entry lower to match enum frame_type order.
3372
3373 2013-09-26 Pierre Muller <muller@sourceware.org>
3374
3375 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3376 AMD64_R15_REGNUM when a register index is expected.
3377 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3378 Substitute in array.
3379 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3380 (amd64_push_arguments): Substitute in integer_regnum array.
3381
3382 2013-09-25 Doug Evans <dje@google.com>
3383
3384 * objfiles.c (allocate_objfile): Move comment to better place.
3385
3386 New option "set debug symfile on".
3387 * NEWS: Mention "set debug symfile".
3388 * Makefile.in (SFILES): Add symfile-debug.c.
3389 (COMMON_OBS): Add symfile-debug.o.
3390 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3391 objfile's symbol functions.
3392 * objfiles.h (objfile_set_sym_fns): Declare.
3393 * symfile-debug.c: New file.
3394 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3395 objfile's symbol functions.
3396 (reread_symbols): Ditto.
3397
3398 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3399 All uses updated.
3400 (add_symtab_fns): Update prototype.
3401 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3402 (registered_sym_fns): ... this.
3403 (symtab_fns): Update.
3404 (add_symtab_fns): New arg "flavour". All callers updated.
3405 (find_sym_fns): Rewrite to use new sym_fns registry.
3406
3407 * symfile.h (struct sym_fns): Add "objfile" argument to
3408 sym_read_linetable. All uses updated.
3409
3410 * symtab.c (domain_name, search_domain_name): New functions.
3411 * symtab.h (domain_name, search_domain_name): Declare.
3412
3413 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3414 map_matching_symbols so objfile is first. All uses updated.
3415 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3416 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3417
3418 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3419
3420 PR shlibs/8882
3421 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3422 link map entries.
3423
3424 2013-09-24 Doug Evans <dje@google.com>
3425
3426 * objfiles.c (free_objfile): Move comment.
3427
3428 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3429
3430 * ada-exp.y (string_to_operator): Delete.
3431 (dummy_string_to_ada_operator): Delete.
3432
3433 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3434
3435 Revert:
3436 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3437 amd64-tdep.c.
3438 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3439 call_dummy_integer_regs, and classify.
3440 * amd64-tdep.h (amd64_classify): Add declaration.
3441 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3442 (amd64_reg_class): Delete, moved to i386-tdep.h.
3443 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3444 Replace call to amd64_classify by call to tdep->classify.
3445 (amd64_push_arguments): Get the list of registers to use for
3446 passing integer parameters from the gdbarch tdep structure,
3447 rather than using a hardcoded one. Replace calls to amd64_classify
3448 by calls to tdep->classify.
3449 (amd64_push_dummy_call): Get the register number used for
3450 the "hidden" argument from tdep->call_dummy_integer_regs.
3451 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3452 and tdep->call_dummy_integer_regs. Set tdep->classify.
3453
3454 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3455
3456 Revert:
3457 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3458 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3459 where tdep->memory_args_by_pointer is non-zero.
3460
3461 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3462
3463 Revert:
3464 * i386-tdep.h (struct gdbarch_tdep): Add new field
3465 integer_param_regs_saved_in_caller_frame.
3466 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3467 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3468
3469 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3470
3471 * amd64-windows-tdep.c: #include "value.h"
3472 (amd64_windows_classify): Delete.
3473 (amd64_windows_passed_by_integer_register)
3474 (amd64_windows_passed_by_xmm_register)
3475 (amd64_windows_passed_by_pointer)
3476 (amd64_windows_adjust_args_passed_by_pointer)
3477 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3478 (amd64_windows_push_dummy_call): New functions.
3479 (amd64_windows_init_abi): Remove setting of
3480 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3481 tdep->classify, tdep->memory_args_by_pointer and
3482 tdep->integer_param_regs_saved_in_caller_frame.
3483 Add call to set_gdbarch_push_dummy_call.
3484
3485 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3486
3487 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3488 objfile->original_name.
3489
3490 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3491
3492 Pass down original filename for objfile.
3493 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3494 * elfread.c (elf_symfile_read): Likewise.
3495 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3496 longer set ORIGINAL_NAME.
3497 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3498 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3499 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3500 symbol_file_add_from_bfd call.
3501 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3502 (macho_check_dsym): Add parameter filenamep. Change function comment.
3503 Set *filenamep.
3504 (macho_symfile_read): New variable dsym_filename. Update
3505 macho_check_dsym call. Use it for symbol_file_add_separate.
3506 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3507 it. Use it for objfile->original_name.
3508 (objfile_name): Return OBFD's filename, if available.
3509 * objfiles.h (allocate_objfile): Add new parameter name.
3510 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3511 * symfile-mem.c (symbol_file_add_from_memory): Update
3512 symbol_file_add_from_bfd call.
3513 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3514 comment for it.
3515 (symbol_file_add_with_addrs): New parameter name, add function comment
3516 for it. Remove variable name. Update allocate_objfile call.
3517 (symbol_file_add_separate): New parameter name, add function comment
3518 for it. Update symbol_file_add_with_addrs call.
3519 (symbol_file_add_from_bfd): New parameter name. Update
3520 symbol_file_add_with_addrs call.
3521 (symbol_file_add): Update symbol_file_add_from_bfd call.
3522 (reread_symbols): New variable original_name. Save
3523 objfile->original_name by it.
3524 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3525 second parameter.
3526
3527 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3528
3529 Code cleanup: Add objfile_name accessor function.
3530 * ada-lang.c (is_known_support_routine): Use objfile_name.
3531 * auto-load.c (source_gdb_script_for_objfile)
3532 (auto_load_objfile_script): Likewise.
3533 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3534 * dbxread.c (dbx_symfile_read): Likewise.
3535 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3536 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3537 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3538 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3539 (lookup_dwp_signatured_type, lookup_dwo_unit)
3540 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3541 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3542 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3543 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3544 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3545 (read_subrange_type, load_partial_dies, read_partial_die)
3546 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3547 (die_containing_type, build_error_marker_type, lookup_die_type)
3548 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3549 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3550 (get_DW_AT_signature_type, write_psymtabs_to_index)
3551 (save_gdb_index_command): Likewise.
3552 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3553 Likewise.
3554 * expprint.c (dump_subexp_body_standard): Likewise.
3555 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3556 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3557 original_name.
3558 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3559 obj_name, use objfile_name for it, use the variable.
3560 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3561 Use objfile_name.
3562 * machoread.c (macho_symtab_read, macho_check_dsym)
3563 (macho_symfile_relocate): Likewise.
3564 * maint.c (maintenance_translate_address): Likewise.
3565 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3566 * minsyms.c (install_minimal_symbols): Likewise.
3567 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3568 original_name.
3569 (filter_overlapping_sections): Use objfile_name.
3570 (objfile_name): New function.
3571 * objfiles.h (struct objfile): Rename field name to original_name.
3572 (objfile_name): New prototype.
3573 * printcmd.c (sym_info, address_info): Use objfile_name.
3574 * probe.c (parse_probes, collect_probes, compare_probes)
3575 (info_probes_for_ops): Likewise.
3576 * progspace.c (clone_program_space): Likewise.
3577 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3578 (maintenance_info_psymtabs): Likewise.
3579 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3580 (source_section_scripts): Likewise.
3581 * python/py-objfile.c (objfpy_get_filename): Likewise.
3582 * python/py-progspace.c (pspy_get_filename): Likewise.
3583 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3584 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3585 * solib.c (solib_read_symbols): Likewise.
3586 * stabsread.c (scan_file_globals): Likewise.
3587 * stap-probe.c (handle_stap_probe): Likewise.
3588 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3589 (find_separate_debug_file_by_debuglink): Likewise.
3590 (reread_symbols): Likewise. Use the objfile field name renamed to
3591 original_name.
3592 (allocate_symtab): Use objfile_name.
3593 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3594 (dump_objfile, dump_msymbols, dump_symtab_1)
3595 (maintenance_print_msymbols, maintenance_print_objfiles)
3596 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3597 * target.c (target_translate_tls_address, target_info): Likewise.
3598 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3599 objfile_name.
3600
3601 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 Code cleanup.
3604 * probe.c (parse_probes): Rename variable objfile_name to
3605 objfile_namestr.
3606
3607 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3608
3609 Remove solib-sunos.c.
3610 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3611 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3612 * objfiles.c (rt_common_objfile): Remove.
3613 (free_objfile): Remove rt_common_objfile comparison.
3614 * objfiles.h (rt_common_objfile): Remove.
3615 * solib-sunos.c: Remove.
3616 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3617
3618 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Remove a.out NetBSD and OpenBSD hosts.
3621 * NEWS (Removed native configurations): New.
3622 * config/arm/nbsdaout.mh: Remove.
3623 * config/i386/nbsdaout.mh: Remove.
3624 * config/i386/obsdaout.mh: Remove.
3625 * config/m68k/nbsdaout.mh: Remove.
3626 * config/sparc/nbsdaout.mh: Remove.
3627 * config/vax/nbsdaout.mh: Remove.
3628 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3629 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3630 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3631 error.
3632 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3633 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3634 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3635
3636 2013-09-23 Tom Tromey <tromey@redhat.com>
3637
3638 * linespec.c (struct minsym_and_objfile): Remove.
3639 (minsym_and_objfile_d): Remove.
3640 (struct linespec, struct collect_info, linespec_parse_basic)
3641 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3642 (compare_msymbols, find_method, find_function_symbols)
3643 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3644 (add_minsym, search_minsyms_for_name): Update.
3645
3646 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3647
3648 * regcache.c: Add include of valprint.h.
3649 (dump_endian_bytes): Delete.
3650 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3651
3652 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3653
3654 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3655
3656 2013-09-19 Pedro Alves <palves@redhat.com>
3657
3658 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3659 breakpoints.
3660
3661 2013-09-19 Pedro Alves <palves@redhat.com>
3662 Thomas Schwinge <thomas@codesourcery.com>
3663 Yue Lu <hacklu.newborn@gmail.com>
3664
3665 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3666 Take a gdb_byte pointer instead of a char pointer.
3667
3668 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3669 gnu_xfer_partial helper.
3670 (gnu_xfer_partial): New function.
3671 (gnu_target): Don't install a deprecated_xfer_memory hook.
3672 Install a to_xfer_partial hook.
3673
3674 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 Constification.
3677 * main.c (captured_main): Replace catch_command_errors by
3678 catch_command_errors_const. Twice.
3679 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3680 (symbol_file_add): Make name parameter const.
3681 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3682 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3683 variable name. Change their usage accordingly.
3684 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3685 const.
3686 (symbol_file_add_main): Make args parameter const.
3687
3688 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3689 Ulrich Weigand <uweigand@de.ibm.com>
3690
3691 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3692 of c_value member.
3693 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3694
3695 2013-09-18 Pedro Alves <palves@redhat.com>
3696 Yue Lu <hacklu.newborn@gmail.com>
3697
3698 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3699 (gnu_create_inferior)
3700 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3701 (set_sig_thread_cmd): Use the lwpid field of ptids to
3702 store/extract thread ids instead of the tid field.
3703 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3704
3705 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3706
3707 * infcmd.c (default_print_one_register_info): Add detection of
3708 optimized out values.
3709 (default_print_registers_info): Switch to using
3710 get_frame_register_value.
3711
3712 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3713
3714 * infrun.c (handle_inferior_event): Check if we know the
3715 function start address before setting a resume breakpoint.
3716
3717 2013-09-18 Pedro Alves <palves@redhat.com>
3718
3719 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3720 minus_one_ptid instead of looking at the ptid's tid field and
3721 comparing that to -1.
3722
3723 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3724
3725 * main.h (get_gdb_program_name): Remove extra whitespace.
3726
3727 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3728
3729 * main.h (get_gdb_program_name): Add declaration.
3730 * main.c (get_gdb_program_name): Add definition.
3731
3732 2013-09-17 Doug Evans <dje@google.com>
3733
3734 * dwarf2read.c: Move definitions of complaint functions to after
3735 forward declarations of local functions.
3736
3737 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3738 Pedro Alves <palves@redhat.com>
3739
3740 PR gdb/11568
3741 * breakpoint.c (remove_threaded_breakpoints): New function.
3742 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3743 as thread_exit observer.
3744
3745 2013-09-17 Pedro Alves <palves@redhat.com>
3746
3747 PR gdb/15911
3748 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3749 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3750 * corelow.c (core_open):
3751 * frame.h (print_stack_frame, print_frame_info): New
3752 'set_current_sal' parameter.
3753 * infcmd.c (finish_command, kill_command): Adjust call to
3754 print_stack_frame.
3755 * inferior.c (inferior_command): Likewise.
3756 * infrun.c (normal_stop): Likewise.
3757 * linux-fork.c (linux_fork_context): Likewise.
3758 * record-full.c (record_full_goto_entry, record_full_restore):
3759 Likewise.
3760 * remote-mips.c (common_open): Likewise.
3761 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3762 Use it.
3763 (print_frame_info): New 'set_current_sal' parameter. Set the last
3764 displayed sal depending on the new paremeter instead of looking at
3765 print_what.
3766 (backtrace_command_1, select_and_print_frame, frame_command)
3767 (current_frame_command, up_command, down_command): Adjust call to
3768 print_stack_frame.
3769 * thread.c (print_thread_info, restore_selected_frame)
3770 (do_captured_thread_select): Adjust call to print_stack_frame.
3771 * tracepoint.c (tfind_1): Likewise.
3772 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3773 (mi_cmd_stack_info_frame): Likewise.
3774 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3775 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3776
3777 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3778
3779 * value.c (isvoid_internal_fn): Replace "parameter" with
3780 "argument".
3781
3782 2013-09-16 Stan Shebs <stan@codesourcery.com>
3783
3784 * README: Update references to writing code for GDB.
3785 * configure.ac (build_warnings): Remove obsolete comment.
3786 * configure: Regenerate.
3787 * gdbarch.sh: Remove references to gdbint.texinfo.
3788 * gdbarch.h: Regenerate.
3789 * gdbtypes.c (objfile_type): Remove comments referencing internals
3790 manual and D10V.
3791
3792 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3793
3794 * NEWS: Mention new convenience function $_isvoid.
3795 * value.c (isvoid_internal_fn): New function.
3796 (_initialize_values): Add new convenience function $_isvoid.
3797
3798 2013-09-16 Pierre Muller <muller@sourceware.org>
3799
3800 * arm-linux-tdep.c: Add "elf/common.h" header.
3801 Remove AT_HWCAP macro definintion as it is provided in
3802 added include file.
3803 * s390-tdep.c: Remove system header <elf.h>
3804 Add "elf/common.h" header for AT_HWCAP definition.
3805 (s390_core_read_description): Use correct CORE_ADDR
3806 for hwcap local variable used as third parameter
3807 of function target_auxv_search.
3808
3809 2013-09-14 Pierre Muller <muller@sourceware.org>
3810 Tom Tromey <tromey@redhat.com>
3811 Pedro Alves <palves@redhat.com>
3812
3813 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3814 mode if operating system doesn't know O_CLOEXEC.
3815
3816 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3817
3818 Code cleanup.
3819 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3820 inner block.
3821
3822 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3823
3824 * NEWS: Mention TDB support.
3825 * features/s390-tdb.xml: New file.
3826 * features/s390-te-linux64.xml: New file.
3827 * features/s390x-te-linux64.xml: New file.
3828 * features/Makefile (WHICH): Add new tdescs above.
3829 (s390-te-linux64-expedite): Set.
3830 (s390x-te-linux64-expedite): Set.
3831 * features/s390-te-linux64.c: New file (generated).
3832 * features/s390x-te-linux64.c: New file (generated).
3833 * regformats/s390-te-linux64.dat: New file (generated).
3834 * regformats/s390x-te-linux64.dat: New file (generated).
3835 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3836 (HWCAP_S390_TE): Likewise.
3837 (S390_TDB_DWORD0_REGNUM): Likewise.
3838 (S390_TDB_DWORD0_REGNUM): Likewise.
3839 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3840 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3841 (S390_TDB_ATIA_REGNUM): Likewise.
3842 (S390_TDB_R0_REGNUM): Likewise.
3843 (S390_TDB_R1_REGNUM): Likewise.
3844 (S390_TDB_R2_REGNUM): Likewise.
3845 (S390_TDB_R3_REGNUM): Likewise.
3846 (S390_TDB_R4_REGNUM): Likewise.
3847 (S390_TDB_R5_REGNUM): Likewise.
3848 (S390_TDB_R6_REGNUM): Likewise.
3849 (S390_TDB_R7_REGNUM): Likewise.
3850 (S390_TDB_R8_REGNUM): Likewise.
3851 (S390_TDB_R9_REGNUM): Likewise.
3852 (S390_TDB_R10_REGNUM): Likewise.
3853 (S390_TDB_R11_REGNUM): Likewise.
3854 (S390_TDB_R12_REGNUM): Likewise.
3855 (S390_TDB_R13_REGNUM): Likewise.
3856 (S390_TDB_R14_REGNUM): Likewise.
3857 (S390_TDB_R15_REGNUM): Likewise.
3858 (S390_NUM_REGS): Increase.
3859 (S390_IS_TDBREGSET_REGNUM): New macro.
3860 (s390_regmap_tdb): Declare.
3861 (s390_sizeof_tdbregset): Define.
3862 (tdesc_s390_te_linux64): Declare.
3863 (tdesc_s390x_te_linux64): Likewise.
3864 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3865 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3866 (s390_regmap_tdb): New regmap.
3867 (s390_supply_tdb_regset): New function.
3868 (s390_tdb_regset): New regset.
3869 (s390_linux64v2_regset_sections): Add TDB regset to list.
3870 (s390x_linux64v2_regset_sections): Likewise.
3871 (s390_regset_from_core_section): Recognize TDB core note section.
3872 (s390_core_read_description): If HWCAP indicates TE support,
3873 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3874 (s390_gdbarch_init): Handle TDB regset.
3875 (_initialize_s390_tdep): Initialize new tdescs.
3876 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3877 (have_regset_tdb): New variable.
3878 (s390_native_supply): Support register invalidation.
3879 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3880 (check_regset): Treat ENODATA as "regset exists".
3881 (s390_linux_fetch_inferior_registers): Add TDB.
3882 (s390_read_description): Check for TDB existence and select
3883 appropriate tdesc.
3884 * gdbserver/Makefile.in (clean): Add removal of new makefile
3885 targets.
3886 (s390-te-linux64.c): New makefile target.
3887 (s390x-te-linux64.c): Likewise.
3888 * gdbserver/configure.srv (srv_regobj): Append new objects
3889 s390-te-linux64.o and s390x-te-linux64.o.
3890 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3891 s390x-te-linux64.xml, and s390-tdb.xml.
3892 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3893 declaration.
3894 (tdesc_s390_te_linux64): Likewise.
3895 (init_registers_s390x_te_linux64): Likewise.
3896 (tdesc_s390x_te_linux64): Likewise.
3897 (s390_check_regset): Treat ENODATA as "regset exists".
3898 (s390_arch_setup): Add TDB regset support.
3899 (initialize_low_arch): Initialize registers for new tdescs.
3900
3901 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3902
3903 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3904 (S390_IS_FPREGSET_REGNUM): New macro.
3905 * s390-tdep.c (s390_dwarf_regmap): Make const.
3906 (regnum_is_gpr_full): New function for replacing repeated code.
3907 (s390_pseudo_register_name): Use it.
3908 (s390_pseudo_register_type): Likewise.
3909 (s390_pseudo_register_read): Likewise.
3910 (s390_pseudo_register_write): Likewise.
3911 (s390_unwind_pseudo_register): Likewise.
3912 (s390_regmap_gregset): New format for regmap.
3913 (s390x_regmap_gregset): Likewise.
3914 (s390_regmap_fpregset): Likewise.
3915 (s390_regmap_upper): Likewise.
3916 (s390_regmap_last_break): Likewise.
3917 (s390_regmap_system_call): Likewise.
3918 (s390_supply_regset): Adjust to new regmap format.
3919 (s390_collect_regset): Likewise.
3920 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3921 (s390_native_collect): Likewise.
3922 (supply_gregset): Likewise.
3923 (fill_gregset): Likewise.
3924 (supply_fpregset): Likewise.
3925 (fill_fpregset): Likewise.
3926 (fetch_regset): Likewise.
3927 (store_regset): Likewise.
3928 (s390_linux_fetch_inferior_registers): Likewise.
3929 (s390_linux_fetch_inferior_registers): Likewise.
3930
3931 2013-09-12 Andrew Pinski <apinski@cavium.com>
3932
3933 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3934
3935 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3936
3937 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3938
3939 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3940
3941 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3942
3943 2013-09-06 Pedro Alves <palves@redhat.com>
3944
3945 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3946 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3947 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3948 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3949 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3950 gdb_stdlog.
3951
3952 2013-09-06 Pedro Alves <palves@redhat.com>
3953
3954 * remote-sim.c (dump_mem): Constify buf parameter.
3955 gdbsim_xfer_inferior_memory): Rename to ...
3956 (gdbsim_xfer_memory): ... this. Adjust interface as
3957 target_xfer_partial helper.
3958 (gdbsim_xfer_partial): New function.
3959 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3960 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3961
3962 2013-09-06 Pedro Alves <palves@redhat.com>
3963
3964 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3965 host_address_to_string, and send debug output to gdb_stdlog.
3966
3967 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3968
3969 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3970 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3971 gdb_target_obs for cris target.
3972 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3973 (cris_gdbarch_init): Move calls to
3974 set_gdbarch_fetch_tls_load_module_address and
3975 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3976 Add call to gdbarch_init_osabi.
3977 * cris-linux-tdep.c: New file.
3978 * cris-tdep.h: New file.
3979
3980 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3981
3982 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3983 to deprecated_init_ui_hook.
3984
3985 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3986
3987 * cli/cli-interp.c (_initialize_cli_interp): Add a
3988 command_loop_proc to interp_procs.
3989 * event-top.c (cli_command_loop): Change signature to match
3990 interp_command_loop_ftype.
3991 * event-top.h (cli_command_loop): Same.
3992 * interps.c (interp_new): Require every interpreter to have a
3993 command_loop_proc.
3994 (current_interp_command_loop): Just call the command_loop_proc on
3995 the current interpreter.
3996 * tui/tui-interp.c (_initialize_tui_interp): Add a
3997 command_loop_proc to interp_procs.
3998
3999 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4000
4001 * cris-tdep.c (cris_gdbarch_init): Add call to
4002 get_gdbarch_fetch_tls_load_module_address.
4003
4004 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4005
4006 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
4007 (cris_elf_gregset_t): Rename from elf_gregset_t.
4008 (crisv32_elf_gregset_t): Adjust.
4009 (cris_supply_gregset, fetch_core_registers): Adjust.
4010
4011 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4012
4013 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
4014
4015 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
4016
4017 * defs.h (deprecated_command_loop_hook): Remove, including
4018 references in comments.
4019 * interps.c (current_interp_command_loop): No longer use
4020 deprecated_command_loop_hook.
4021 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
4022 setup.
4023 * top.c (deprecated_command_loop_hook): Remove.
4024
4025 2013-09-05 Pedro Alves <palves@redhat.com>
4026
4027 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
4028 local is now int instead of ULONGEST. Print it with %d
4029 instead of paddress.
4030
4031 2013-09-05 Tristan Gingold <gingold@adacore.com>
4032
4033 * MAINTAINERS: Remove avr maintainership.
4034
4035 2013-09-05 Pedro Alves <palves@redhat.com>
4036
4037 * findvar.c (value_of_register): Rework in terms of
4038 value_of_register_lazy.
4039
4040 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4041
4042 * symfile.c (add_symbol_file_command): Remove trailing
4043 whitespaces and blank line after comment.
4044
4045 2013-09-05 Pedro Alves <palves@redhat.com>
4046
4047 * tui/tui-regs.c (tui_register_format): Don't look at the
4048 register's name here. Return string representing register
4049 value instead of storing it in the data element.
4050 (tui_get_register): Compare register string representations
4051 instead of register value states and contents.
4052
4053 2013-09-05 Pedro Alves <palves@redhat.com>
4054
4055 PR tui/15933
4056 * tui/tui-regs.c (tui_show_registers): Show registers of the
4057 selected frame, not the current frame.
4058
4059 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4060
4061 * MAINTAINERS (Write After Approval): Add myself to the list.
4062
4063 2013-09-04 Doug Evans <dje@google.com>
4064
4065 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4066 (queue_and_load_dwo_tu): New function.
4067 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4068 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4069 Make dependent_cu optional.
4070 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4071 and an older .gdb_index is in use, queue and load all its TUs too.
4072
4073 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4074
4075 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4076 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4077 variable search_flags.
4078 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4079 (OPF_RETURN_REALPATH): ... here.
4080 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4081 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4082 call. Twice.
4083 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4084 openp call.
4085 * solib.c (solib_find): Likewise. Four times.
4086 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4087 in the function comment and for the realpath_fptr variable.
4088 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4089 (find_and_open_source): Likewise. Twice.
4090 * symfile.c (symfile_bfd_open): Likewise, also twice.
4091
4092 2013-09-04 Doug Evans <dje@google.com>
4093
4094 * progspace.c (save_current_space_and_thread): Remove unnecessary
4095 call to save_current_inferior.
4096
4097 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4098
4099 * sh64-tdep.c (sh64_do_register): Return after printing message
4100 about unavailable register contents.
4101
4102 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4103 Pedro Alves <palves@redhat.com>
4104
4105 * symfile.c (add_symbol_file_command): Error out on unknown
4106 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4107 options and collapse into single conditional branch.
4108
4109 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4110
4111 * inf-child.c (inf_child_follow_fork): New parameter
4112 detach_fork.
4113 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4114 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4115 * inferior.h (detach_fork): Remove.
4116 * infrun.c (detach_fork): Adjust comment and make it
4117 static.
4118 (follow_fork): Pass detach_fork parameter to
4119 target_follow_fork.
4120 * linux-nat.c (linux_child_follow_fork): New parameter
4121 detach_fork.
4122 * target.c (target_follow_fork): New parameter detach_fork.
4123 Pass detach_fork as parameter and print its value.
4124 * target.h (struct target_ops) <to_follow_fork>: New int
4125 parameter.
4126 (target_follow_fork): New parameter detach_fork.
4127
4128 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4129
4130 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4131 Replace sec->bfd by sec->the_bfd_section->owner.
4132
4133 2013-09-03 Yao Qi <yao@codesourcery.com>
4134
4135 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4136 from linux_has_shared_address_space.
4137 (linux_has_shared_address_space): Call linux_is_uclinux.
4138 * linux-tdep.h (linux_is_uclinux): Declare.
4139 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4140 linux_is_uclinux.
4141
4142 2013-09-03 Yao Qi <yao@codesourcery.com>
4143
4144 * config/djgpp/fnchange.lst: Remove entry of
4145 i386-interix-nat.c and i386-interix-tdep.c.
4146 * configure.ac: Remove '*-*-interix*'.
4147 * configure: Re-generated.
4148 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4149 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4150 obsolete comments.
4151 * osabi.c (gdb_osabi_names): Remove "Interix".
4152
4153 2013-09-03 Yao Qi <yao@codesourcery.com>
4154
4155 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4156
4157 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4158
4159 * record.h (record_print_flag) <record_print_src_line,
4160 record_print_insn_range>: Rename into ...
4161 (record_print_flag) <record_print_src_line,
4162 record_print_insn_range>: ... this. Update all users.
4163
4164 2013-09-02 Pierre Muller <muller@sourceware.org>
4165
4166 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4167 error code.
4168
4169 2013-09-02 Pierre Muller <muller@sourceware.org>
4170
4171 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4172 by use of plongest function.
4173
4174 2013-09-02 Tristan Gingold <gingold@adacore.com>
4175
4176 * NEWS: Add entry mentioning support for native Windows x64
4177 SEH data.
4178
4179 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4180 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4181 (struct amd64_windows_frame_cache): New struct.
4182 (amd64_windows_w2gdb_regnum): New global.
4183 (pc_in_range, amd64_windows_frame_decode_epilogue)
4184 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4185 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4186 (amd64_windows_frame_this_id): New functions.
4187 (amd64_windows_frame_unwind): New static global.
4188 (amd64_windows_skip_prologue): New function.
4189 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4190 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4191 with amd64_windows_skip_prologue.
4192
4193 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4194
4195 GDB 7.6.1 released.
4196
4197 2013-08-30 Pedro Alves <palves@redhat.com>
4198
4199 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4200 SRC_AND_LOC.
4201
4202 2013-08-30 Pedro Alves <palves@redhat.com>
4203
4204 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4205 warning text.
4206
4207 2013-08-30 Pedro Alves <palves@redhat.com>
4208
4209 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4210 Adjust arguments to print_stack_frame.
4211
4212 2013-08-30 Pedro Alves <palves@redhat.com>
4213
4214 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4215
4216 2013-08-30 Pedro Alves <palves@redhat.com>
4217
4218 * frame.h (show_and_print_stack_frame): Delete declaration.
4219
4220 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4221
4222 PR python/15461
4223 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4224 (archpy_name): Check for valid architecture.
4225 (archpy_disassemble): Ditto.
4226
4227 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4228
4229 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4230 instead of "long long" in call to ptrace64.
4231
4232 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4233
4234 * mi/mi-interp.c (mi_command_loop): Change signature to match
4235 interp_command_loop_ftype.
4236 (mi1_command_loop): Remove.
4237 (mi2_command_loop): Remove.
4238 (mi3_command_loop): Remove.
4239 (mi_interpreter_resume): Remove setting of
4240 deprecated_command_loop_hook.
4241 (_initialize_mi_interp): Set mi_command_loop as the command loop
4242 callback.
4243
4244 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4245
4246 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4247 value_type.
4248
4249 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4250
4251 * value.c (allocate_value_contents): Make static.
4252 * value.h (allocate_value_contents): Remove prototype.
4253
4254 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4255
4256 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4257 of assembling value via allocate_value_lazy and attribute setter.
4258 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4259 assembling value via allocate_value_lazy and attribute setter.
4260 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4261 assembling value via allocate_value_lazy and attribute setter.
4262
4263 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4264
4265 * value.c (value_from_contents_and_address): Replace allocate_value and
4266 memcpy with value_from_contents.
4267
4268 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4269
4270 * python/py-framefilter.c (py_print_frame): Remove usage of
4271 PyString_AsString. Use python_string_to_host_string instead.
4272 Refactor function to work with a string as a new allocation
4273 instead of a pointer.
4274 (py_print_frame): Ditto.
4275 * python/lib/gdb/frames.py (return_list): Cain iterators together
4276 instead of adding them as a list.
4277 (_sort_list): Call return_list, and remove duplicate code.
4278 (execute_frame_filters): Convert iterator to a list with list().
4279 * python/lib/gdb/command/frame_filters.py
4280 (SetFrameFilterPriority._set_filter_priority): Convert priority
4281 attribute to an integer.
4282 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4283 wrapper function __next__.
4284 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4285 define as "str".
4286
4287 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4288
4289 PR python/15752
4290 * python/py-framefilter.c (apply_frame_filter): Check
4291 gdb_python_initialized. Exit if the Python frame-filter code
4292 cannot be initialized.
4293
4294 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4295
4296 PR cli/15842
4297 * top.c (print_gdb_version): Remove erroneous newline after help
4298 text.
4299
4300 2013-08-29 Yao Qi <yao@codesourcery.com>
4301
4302 * varobj.c (install_dynamic_child): Remove trailing space.
4303 Add one blank line after variable declaration.
4304
4305 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4306
4307 PR gdb/15415
4308 * corefile.c (get_exec_file): Use exec_filename.
4309 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4310 * exec.c (exec_close): Free EXEC_FILENAME.
4311 (exec_file_attach): New variable canonical_pathname. Use
4312 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4313 EXEC_FILENAME.
4314 * exec.h (exec_filename): New.
4315 * inferior.c (print_inferior, inferior_command): Use
4316 PSPACE_EXEC_FILENAME.
4317 * mi/mi-main.c (print_one_inferior): Likewise.
4318 * progspace.c (clone_program_space, print_program_space): Likewise.
4319 * progspace.h (struct program_space): New field pspace_exec_filename.
4320 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4321 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4322
4323 2013-08-28 Will Newton <will.newton@linaro.org>
4324
4325 * common/linux-ptrace.c: Include stdint.h unconditionally.
4326
4327 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4328
4329 Code cleanup.
4330 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4331
4332 2013-08-28 Yao Qi <yao@codesourcery.com>
4333 Pedro Alves <palves@redhat.com>
4334
4335 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4336 instead of stdio_fileopen.
4337 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4338 .Call stderr_fileopen instead of stdio_fileopen.
4339 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4340 [__MINGW32__] (stderr_file_fputs): New function.
4341 (stderr_fileopen): New function.
4342 * ui-file.h (stderr_fileopen): Declare.
4343
4344 2013-08-27 Doug Evans <dje@google.com>
4345
4346 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4347 (struct dwarf2_per_cu_data): Ditto.
4348 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4349 (process_imported_unit_die): Ditto.
4350 (follow_die_sig_1): Simplify assert.
4351
4352 2013-08-27 Pedro Alves <palves@redhat.com>
4353
4354 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4355 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4356 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4357 windows_xfer_memory directly.
4358 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4359
4360 2013-08-27 Pedro Alves <palves@redhat.com>
4361
4362 * darwin-nat.c (darwin_xfer_memory): Delete.
4363 (_initialize_darwin_inferior): Don't install a
4364 deprecated_xfer_memory method.
4365
4366 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4367 Yao Qi <yao@codesourcery.com>
4368
4369 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4370 (parse_no_frames_option): Remove.
4371 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4372 (mi_cmd_stack_list_args): Adjust.
4373 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4374 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4375 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4376 Caller update.
4377 (list_args_or_locals): New parameter 'skip_unavailable'.
4378 Handle it.
4379 * valprint.c (scalar_type_p): Rename to ...
4380 (val_print_scalar_type_p): ... this. Make extern.
4381 (val_print, value_check_printable): Adjust.
4382 * valprint.h (val_print_scalar_type_p): Declare.
4383 * value.c (value_entirely_unavailable): New function.
4384 * value.h (value_entirely_unavailable): Declare.
4385
4386 * NEWS: Mention the new option "--skip-unavailable" to MI
4387 commands '-stack-list-locals', '-stack-list-arguments' and
4388 '-stack-list-variables'.
4389
4390 2013-08-27 Yao Qi <yao@codesourcery.com>
4391
4392 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4393 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4394 options.
4395 * mi/mi-getopt.c (mi_getopt): Remove.
4396 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4397 'error_on_unknown'.
4398 (mi_getopt): Call mi_getopt_1.
4399 (mi_getopt_silent): New.
4400 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4401
4402 2013-08-26 Doug Evans <dje@google.com>
4403
4404 PR symtab/15885
4405 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4406 .gdb_index is in use.
4407 * symfile.c (reread_symbols): Reset objfile->sf.
4408
4409 * NEWS: Document "mt print objfiles" now takes optional regexp.
4410 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4411 regexp of objfiles to print.
4412 (_initialize_symmisc): Update doc string for "mt print objfiles".
4413
4414 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4415 missing debug info checks.
4416
4417 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4418 Ulrich Weigand <uweigand@de.ibm.com>
4419
4420 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4421 line tables generated by XLC compiled binaries.
4422
4423 2013-08-23 Doug Evans <dje@google.com>
4424
4425 * symmisc.c (dump_symtab): Delete prototype.
4426 (dump_msymbols, dump_objfile): Ditto.
4427 (maintenance_info_symtabs): Mark as dont_repeat.
4428 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4429
4430 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4431 debugging printf to better location.
4432
4433 2013-08-23 Pedro Alves <palves@redhat.com>
4434
4435 * target.c (target_read_live_memory): Change type of 'ret' local
4436 to LONGEST.
4437
4438 2013-08-23 Pedro Alves <palves@redhat.com>
4439
4440 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4441 (remote_read_bytes): Change return type to LONGEST, and adjust to
4442 return a target_xfer_error on error.
4443 (remote_xfer_memory): Delete.
4444 (remote_flash_write): Change type of 'ret' local to LONGEST.
4445 (remote_xfer_partial, remote_xfer_partial): Adjust.
4446 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4447
4448 2013-08-23 Pierre Muller <muller@sourceware.org>
4449
4450 ARI fix: Push # directives to start of line.
4451 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4452
4453 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4454
4455 PR gdb/15501
4456 * breakpoint.c (enable_command, disable_command): Iterate over
4457 all specified breakpoint locations.
4458
4459 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4460
4461 * common/linux-ptrace.c (linux_fork_to_function): Push #
4462 directives to the start of the line.
4463 (linux_check_ptrace_features): Fix warning message to use
4464 the "_" markup.
4465
4466 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4467
4468 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4469 nat/linux-waitpid.h.
4470 (linux-waitpid.o): New object file rule.
4471 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4472 (current_ptrace_options): Moved from linux-nat.c.
4473 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4474 parameters.
4475 (linux_fork_to_function): New function.
4476 (linux_grandchild_function): Likewise.
4477 (linux_child_function): Likewise.
4478 (linux_check_ptrace_features): New function, heavily
4479 based on linux-nat.c:linux_test_for_tracefork.
4480 (linux_enable_event_reporting): New function.
4481 (ptrace_supports_feature): Likewise.
4482 (linux_supports_tracefork): Likewise.
4483 (linux_supports_traceclone): Likewise.
4484 (linux_supports_tracevforkdone): Likewise.
4485 (linux_supports_tracesysgood): Likewise.
4486 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4487 gdbserver/linux-low.c.
4488 (linux_enable_event_reporting): New declaration.
4489 (linux_supports_tracefork): Likewise.
4490 (linux_supports_traceclone): Likewise.
4491 (linux_supports_tracevforkdone): Likewise.
4492 (linux_supports_tracesysgood): Likewise.
4493 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4494 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4495 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4496 * config/arm/linux.mh (NATDEPFILES): Likewise.
4497 * config/i386/linux.mh (NATDEPFILES): Likewise.
4498 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4499 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4500 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4501 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4502 * config/mips/linux.mh (NATDEPFILES): Likewise.
4503 * config/pa/linux.mh (NATDEPFILES): Likewise..
4504 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4505 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4506 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4507 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4508 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4509 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4510 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4511 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4512 ptrace's 4th argument's types.
4513 Check the type of PTRACE_TYPE_ARG4.
4514 * configure: Regenerate.
4515 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4516 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4517 (linux_supports_tracefork_flag): Remove.
4518 (linux_supports_tracesysgood_flag): Likewise.
4519 (linux_supports_tracevforkdone_flag): Likewise.
4520 (current_ptrace_options): Moved to
4521 common/linux-ptrace.c.
4522 (linux_tracefork_child): Remove.
4523 (my_waitpid): Remove.
4524 (linux_test_for_tracefork): Renamed to
4525 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4526 (linux_test_for_tracesysgood): Remove.
4527 (linux_supports_tracesysgood): Remove.
4528 (linux_supports_tracefork): Remove.
4529 (linux_supports_tracevforkdone): Remove.
4530 (linux_enable_tracesysgood): Remove.
4531 (linux_enable_event_reporting): Remove.
4532 (linux_init_ptrace): New function.
4533 (linux_child_post_attach): Call linux_init_ptrace.
4534 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4535 (linux_child_follow_fork): Call linux_supports_tracefork
4536 and linux_supports_tracevforkdone.
4537 (linux_child_insert_fork_catchpoint): Call
4538 linux_supports_tracefork.
4539 (linux_child_insert_vfork_catchpoint): Likewise.
4540 (linux_child_set_syscall_catchpoint): Call
4541 linux_supports_tracesysgood.
4542 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4543 * nat/linux-nat.h: New file.
4544 * nat/linux-waitpid.c: New file.
4545 * nat/linux-waitpid.h: New file.
4546
4547 2013-08-22 Samuel Bronson <naesten@gmail.com>
4548
4549 ARM Linux support for `catch syscall'.
4550 * syscalls/arm-linux.py: New file.
4551 * syscalls/arm-linux.xml: Likewise.
4552 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4553 (arm_linux_init_abi): Register the new function and syscall xml file.
4554 * data-directory/Makefile.in: Install the new syscall xml file.
4555 * NEWS: Brag about this.
4556
4557 2013-08-22 Pedro Alves <palves@redhat.com>
4558
4559 PR gdb/15871
4560 * corefile.c (target_xfer_memory_error): New function.
4561 (memory_error): Defer EIO to target_memory_error.
4562 (read_memory): Use target_xfer_partial, and handle finer-grained
4563 target xfer errors.
4564 * target.c (target_xfer_error_to_string): New function.
4565 (memory_xfer_partial_1): If memory is known to be
4566 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4567 (target_xfer_partial): Make extern.
4568 * target.h (enum target_xfer_error): New enum.
4569 (target_xfer_error_to_string): Declare function.
4570 (target_xfer_partial): Declare function.
4571 (struct target_ops) <xfer_partial>: Adjust describing comment.
4572
4573 2013-08-22 Alan Modra <amodra@gmail.com>
4574
4575 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4576 * configure.tgt: Likewise as targets.
4577
4578 2013-08-20 Doug Evans <dje@google.com>
4579
4580 * buildsym.c (subfile_stack): Move here from buildsym.h.
4581 (pending_macros): Ditto.
4582 (get_macro_table): New function.
4583 (buildsym_init): Initialize subfile_stack.
4584 * coffread.c (type_vector,type_vector_length): Moved here from
4585 buildsym.h.
4586 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4587 (coff_symtab_read): Use it.
4588 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4589 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4590 with call to get_macro_table.
4591 * stabsread.c (type_vector,type_vector_length): Moved here from
4592 buildsym.h.
4593 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4594 * buildsym.h (get_macro_table): Declare.
4595
4596 2013-08-20 Tom Tromey <tromey@redhat.com>
4597
4598 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4599 Update.
4600 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4601
4602 2013-08-20 Doug Evans <dje@google.com>
4603
4604 * blockframe.c: Remove #include "psymtab.h".
4605 * cp-support.c: Ditto.
4606 * source.c: Ditto.
4607 * stack.c: Ditto.
4608
4609 2013-08-20 Tom Tromey <tromey@redhat.com>
4610
4611 PR python/15816:
4612 * exceptions.h (return_mask): Now an enum.
4613 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4614 enum constants.
4615
4616 2013-08-20 Tom Tromey <tromey@redhat.com>
4617
4618 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4619 get_objfile_arch.
4620 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4621 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4622 * jit.c (jit_object_close_impl): Update.
4623 * jv-lang.c (get_dynamics_objfile): Update.
4624 * linespec.c (add_minsym): Use get_dynamics_objfile.
4625 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4626 (allocate_objfile): Don't initialize 'gdbarch' field.
4627 (get_objfile_arch): Update.
4628 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4629 moved from...
4630 (struct objfile) <gdbarch>: ... here. Remove.
4631 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4632 get_objfile_arch.
4633 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4634
4635 2013-08-20 Alan Modra <amodra@gmail.com>
4636
4637 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4638 for IBM long double nan and inf.
4639 (floatformat_is_negative, floatformat_classify,
4640 floatformat_mantissa): Similarly.
4641 (floatformat_ieee_single, floatformat_ieee_double,
4642 floatformat_ieee_quad, floatformat_arm_ext,
4643 floatformat_ia64_spill): Delete unused vars.
4644 (_initialize_doublest): Delete unused function.
4645 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4646 little-endian variants of floatformat_ibm_long_double.
4647
4648 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4649
4650 * Makefile.in (SFILES): Remove common/target-common.c and
4651 add target/waitstatus.c.
4652 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4653 target/resume.h, target/wait.h and target/waitstatus.h.
4654 (COMMON_OBS): Remove target-common.o and add
4655 waitstatus.o.
4656 (target-common.o): Remove.
4657 (waitstatus.o): New target object file.
4658 * common/target-common.c: Move contents to
4659 target/waitstatus.c and remove.
4660 * common/target-common.h: Move contents to other files and
4661 remove.
4662 (enum resume_kind: Move to target/resume.h.
4663 (TARGET_WNOHANG): Move to target/wait.h.
4664 (enum target_waitkind): Move to target/waitstatus.h.
4665 (struct target_waitstatus): Likewise.
4666 * target.h: Do not include target-common.h and
4667 include target/resume.h, target/wait.h and
4668 target/waitstatus.h.
4669 * target/resume.h: New file.
4670 * target/wait.h: New file.
4671 * target/waitstatus.h: New file.
4672 * target/waitstatus.c: New file.
4673
4674 2013-08-19 Pedro Alves <palves@redhat.com>
4675
4676 * linux-nat.c (linux_test_for_tracefork)
4677 (linux_test_for_tracesysgood, linux_child_follow_fork)
4678 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4679 (linux_nat_wait_1): Extend comment.
4680 (linux_async_pipe): Add comment.
4681
4682 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4683
4684 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4685 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4686 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4687 Update to account for fact that PC is now a pseudo-register.
4688 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4689 cases for RL78_PC_REGNUM.
4690
4691 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4692
4693 PR cli/15841
4694 * top.c (quit_force): Skip writing history file
4695 if input is not from terminal.
4696
4697 2013-08-14 Tom Tromey <tromey@redhat.com>
4698
4699 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4700 resultthreadlist>: New fields.
4701 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4702 (remote_get_threadlist, remote_threadlist_iterator): Use
4703 new fields. Remove static variables.
4704
4705 2013-08-14 Tom Tromey <tromey@redhat.com>
4706
4707 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4708 remote_watch_data_address>: New fields.
4709 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4710 (process_stop_reply, remote_wait_as)
4711 (remote_check_watch_resources, remote_stopped_data_address): Update.
4712
4713 2013-08-14 Tom Tromey <tromey@redhat.com>
4714
4715 * remote.c (struct remote_state) <async_client_callback,
4716 async_client_context>: New fields.
4717 (async_client_callback, async_client_context): Remove.
4718 (remote_async_serial_handler, remote_async): Update.
4719
4720 2013-08-14 Tom Tromey <tromey@redhat.com>
4721
4722 * remote.c (sizeof_pkt): Remove.
4723 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4724
4725 2013-08-14 Tom Tromey <tromey@redhat.com>
4726
4727 * remote.c (struct remote_state) <use_threadinfo_query,
4728 use_threadextra_query>: New fields.
4729 (remote_threads_info, remote_threads_extra_info)
4730 (remote_open_1): Update.
4731
4732 2013-08-14 Tom Tromey <tromey@redhat.com>
4733
4734 * remote.c (struct remote_state) <finished_object,
4735 finished_annex, finished_offset>: New fields.
4736 (remote_read_qxfer): Use remote_state fields; remove static
4737 variables.
4738
4739 2013-08-14 Tom Tromey <tromey@redhat.com>
4740
4741 * remote.c (struct remote_state) <last_sent_step>:
4742 New field.
4743 (last_sent_step): Remove.
4744 (remote_resume, remote_wait_as): Update.
4745
4746 2013-08-14 Tom Tromey <tromey@redhat.com>
4747
4748 * remote.c (struct remote_state) <last_sent_signal>:
4749 New field.
4750 (last_sent_signal): Remove.
4751 (new_remote_state, remote_resume, remote_wait_as): Update.
4752
4753 2013-08-14 Tom Tromey <tromey@redhat.com>
4754
4755 * remote.c (struct remote_state) <last_program_signals_packet>:
4756 New field.
4757 (last_program_signals_packet): Remove.
4758 (remote_program_signals, remote_open_1): Update.
4759
4760 2013-08-14 Tom Tromey <tromey@redhat.com>
4761
4762 * remote.c (struct remote_state) <last_pass_packet>:
4763 New field.
4764 (last_pass_packet): Remove.
4765 (remote_pass_signals, remote_open_1): Update.
4766
4767 2013-08-14 Tom Tromey <tromey@redhat.com>
4768
4769 * remote.c (struct remote_state) <remote_traceframe_number>:
4770 New field.
4771 (remote_traceframe_number): Remove.
4772 (new_remote_state, remote_open_1, set_remote_traceframe)
4773 (remote_trace_find): Update.
4774
4775 2013-08-14 Tom Tromey <tromey@redhat.com>
4776
4777 * remote.c (struct remote_state) <general_thread, continue_thread>:
4778 New fields.
4779 (general_thread, continue_thread): Remove.
4780 (record_currthread, set_thread, set_general_process)
4781 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4782 (extended_remote_mourn_1): Update.
4783
4784 2013-08-14 Tom Tromey <tromey@redhat.com>
4785
4786 * remote.c (struct remote_state) <remote_desc>: New field.
4787 (remote_desc): Remove.
4788 (remote_threads_info, remote_threads_extra_info, remote_close)
4789 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4790 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4791 (remote_hostio_send_command, remote_file_put, remote_file_get)
4792 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4793 (remote_async, remote_new_objfile, set_range_stepping): Update.
4794
4795 2013-08-14 Tom Tromey <tromey@redhat.com>
4796
4797 * remote.c (remote_state): Now a pointer.
4798 (get_remote_state_raw): Update.
4799 (new_remote_state): New function.
4800 (_initialize_remote): Use new_remote_state.
4801
4802 2013-08-14 Tom Tromey <tromey@redhat.com>
4803
4804 * remote.c (remote_protocol_features): Now const.
4805
4806 2013-08-14 Tom Tromey <tromey@redhat.com>
4807
4808 * remote.c (crc32_table, crc32): Remove.
4809 (remote_verify_memory): Use xcrc32.
4810
4811 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4812
4813 * value.h (create_internalvar_type_lazy): Adjust prototype
4814 declaration.
4815
4816 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4817
4818 * common/format.c (parse_format_string): Don't allow '#' flag for
4819 pointer arguments in format string.
4820
4821 2013-08-13 Pierre Muller <muller@sourceware.org>
4822
4823 * utils.c (init_page_info): Only call tgetnum function
4824 if rl_get_screen_size did not return useful values.
4825
4826 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4827
4828 PR breakpoints/15117
4829 * linespec.c (linespec_parse_basic): Check for convenience
4830 variable or history value while parsing.
4831
4832 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4835 AVR.
4836 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4837 different signals between the generic Linux kernel implementation
4838 and AVR's.
4839 (avr_linux_gdb_signal_from_target): Delete.
4840 (avr_linux_gdb_signal_to_target): Delete.
4841 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4842
4843 2013-08-09 Doug Evans <dje@google.com>
4844
4845 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4846 entries.
4847
4848 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4849
4850 * linux-tdep.c: Define enum with generic signal numbers.
4851 (linux_gdb_signal_from_target): New function.
4852 (linux_gdb_signal_to_target): Likewise.
4853 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4854 methods to the functions above.
4855 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4856 (linux_gdb_signal_to_target): Likewise.
4857 * alpha-linux-tdep.c: Define new enum with signals different
4858 from generic Linux kernel.
4859 (alpha_linux_gdb_signal_from_target): New function.
4860 (alpha_linux_gdb_signal_to_target): Likewise.
4861 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4862 with the functions mentioned above.
4863 * avr-tdep.c: Define enum with differences between Linux kernel
4864 and AVR signals.
4865 (avr_linux_gdb_signal_from_target): New function.
4866 (avr_linux_gdb_signal_to_target): Likewise.
4867 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4868 the functions mentioned above.
4869 * sparc-linux-tdep.c: Define enum with differences between SPARC
4870 and generic Linux kernel signal numbers.
4871 (sparc32_linux_gdb_signal_from_target): New function.
4872 (sparc32_linux_gdb_signal_to_target): Likewise.
4873 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4874 to the functions defined above.
4875 * xtensa-linux-tdep.c: Define enum with differences between
4876 Xtensa and Linux kernel generic signals.
4877 (xtensa_linux_gdb_signal_from_target): New function.
4878 (xtensa_linux_gdb_signal_to_target): Likewise.
4879 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4880 to the functions defined above.
4881 * mips-linux-tdep.c: Define enum with differences between
4882 signals in MIPS and Linux kernel generic ones.
4883 (mips_gdb_signal_to_target): New function.
4884 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4885 only different signals from the Linux kernel generic.
4886 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4887 the functions defined above.
4888 * mips-linux-tdep.h (enum mips_signals): Remove.
4889
4890 2013-08-09 Pedro Alves <palves@redhat.com>
4891
4892 * avr-tdep.c (XMALLOC): Delete macro.
4893 * cli/cli-dump.c (XMALLOC): Delete macro.
4894
4895 2013-08-09 Pedro Alves <palves@redhat.com>
4896
4897 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4898 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4899 (fopen_with_cleanup, add_dump_command): Make static.
4900 * cli/cli-dump.h: Delete file.
4901 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4902 cli/cli-dump.h.
4903
4904 2013-08-09 Pedro Alves <palves@redhat.com>
4905
4906 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4907 error message.
4908
4909 2013-08-09 Pedro Alves <palves@redhat.com>
4910
4911 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4912 error message.
4913
4914 2013-08-09 Pedro Alves <palves@redhat.com>
4915
4916 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4917 (gcore_command): Use tilde_expand here, and when showing the
4918 filename to the user, show the expanded version.
4919
4920 2013-08-09 Yao Qi <yao@codesourcery.com>
4921
4922 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4923 'entryval' is set.
4924
4925 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4926
4927 * gcore.c (create_gcore_bfd): Use tilde_expand.
4928
4929 2013-08-08 Yao Qi <yao@codesourcery.com>
4930
4931 * frame.h (read_frame_local): Declare.
4932 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4933 read_frame_local.
4934 * stack.c (read_frame_local): New.
4935
4936 2013-08-08 Yao Qi <yao@codesourcery.com>
4937
4938 * mi/mi-cmd-stack.c: Update comments to function
4939 list_args_or_locals.
4940
4941 2013-08-07 Tom Tromey <tromey@redhat.com>
4942
4943 PR symtab/15028:
4944 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4945 (process_psymtab_comp_unit_reader): Use it.
4946 (process_psymtab_comp_unit): Update. Add "pretend_language"
4947 argument.
4948 (dwarf2_build_psymtabs_hard): Update.
4949 (scan_partial_symbols): Pass CU's language to
4950 process_psymtab_comp_unit.
4951
4952 2013-08-07 Tom Tromey <tromey@redhat.com>
4953
4954 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4955 (dwarf2_gdb_index_functions): Update.
4956 * psymtab.c (find_symbol_file_from_partial): Remove.
4957 (psym_functions): Update.
4958 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4959 Remove.
4960
4961 2013-08-07 Tom Tromey <tromey@redhat.com>
4962
4963 * symfile.c (set_initial_language): Look up "main" symbol
4964 and use its language.
4965 * symtab.c (find_main_filename): Remove.
4966 * symtab.h (find_main_filename): Remove.
4967
4968 2013-08-07 Tom Tromey <tromey@redhat.com>
4969
4970 * dwarf2read.c (recursively_compute_inclusions): Add
4971 "immediate_parent" argument. Set symtab's "user" field
4972 if not set.
4973 (compute_symtab_includes): Update.
4974
4975 2013-08-07 Tom Tromey <tromey@redhat.com>
4976
4977 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4978 when adding label symbols.
4979
4980 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4981 Ulrich Weigand <uweigand@de.ibm.com>
4982
4983 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4984 * configure.host (powerpc64-*-aix*): Likewise.
4985
4986 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4987 Ulrich Weigand <uweigand@de.ibm.com>
4988
4989 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4990 is defined.
4991 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4992 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4993 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4994 * configure.ac: Check for ptrace64.
4995 * configure, config.in: Regenerate.
4996
4997 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4998 Ulrich Weigand <uweigand@de.ibm.com>
4999
5000 * aixthread.c: Call ptrace64 instead of ptracex if defined.
5001 Call ptrace64 instead of ptrace if defined.
5002 Add macro addr_ptr to take care of ptrace address argument.
5003 (pdc_read_regs): Likewise.
5004 (pdc_write_regs): Likewise.
5005 (aix_thread_resume): Likewise.
5006 (fetch_regs_kernel_thread): Likewise.
5007 (store_regs_kernel_thread): Likewise.
5008
5009 2013-08-07 Anton Blanchard <anton@samba.org>
5010
5011 * MAINTAINERS: Add myself to Write After Approval.
5012
5013 2013-08-05 Tom Tromey <tromey@redhat.com>
5014
5015 * aix-thread.c (_initialize_aix_thread): Use
5016 complete_target_initialization.
5017 * bsd-uthread.c (_initialize_bsd_uthread): Use
5018 complete_target_initialization.
5019 * dec-thread.c (_initialize_dec_thread): Use
5020 complete_target_initialization.
5021 * ravenscar-thread.c (_initialize_ravenscar): Use
5022 complete_target_initialization.
5023 * sol-thread.c (_initialize_sol_thread): Use
5024 complete_target_initialization.
5025 * spu-multiarch.c (_initialize_spu_multiarch): Use
5026 complete_target_initialization.
5027
5028 2013-08-05 Tom Tromey <tromey@redhat.com>
5029
5030 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
5031 * ada-lang.c (ada_lookup_simple_minsym): Return
5032 bound_minimal_symbol.
5033 * ada-lang.h (ada_lookup_simple_minsym): Update.
5034 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5035 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5036 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5037 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5038 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5039 * minsyms.c (msymbol_objfile): Remove.
5040 (lookup_minimal_symbol_internal): New function, from
5041 lookup_minimal_symbol.
5042 (lookup_minimal_symbol): Rewrite using
5043 lookup_minimal_symbol_internal.
5044 (lookup_bound_minimal_symbol): New function.
5045 * minsyms.h (msymbol_objfile): Remove.
5046 (lookup_bound_minimal_symbol): Declare.
5047 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5048 * parse.c (write_exp_msymbol): Change parameter to a
5049 bound_minimal_symbol.
5050 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5051 * parser-defs.h (write_exp_msymbol): Update.
5052 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5053 * symfile.c (simple_read_overlay_table): Use
5054 lookup_bound_minimal_symbol.
5055 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5056 (search_symbols): Likewise.
5057 (print_msymbol_info): Take a bound_minimal_symbol argument.
5058 (symtab_symbol_info, rbreak_command): Update.
5059 * symtab.h (struct symbol_search) <msymbol>: Change type
5060 to bound_minimal_symbol.
5061 * valops.c (find_function_in_inferior): Use
5062 lookup_bound_minimal_symbol.
5063 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5064
5065 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5066
5067 Code cleanup.
5068 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5069 to ...
5070 (async_cleanup_sigint_signal_handler): ... this.
5071 (initialize_sigint_signal_handler): Remove declaration.
5072 (handle_remote_sigint): Rename the declaration to ...
5073 (async_handle_remote_sigint): ... this.
5074 (handle_remote_sigint_twice): Rename the declaration to ...
5075 (async_handle_remote_sigint_twice): ... this.
5076 (async_remote_interrupt, async_remote_interrupt_twice)
5077 (remote_interrupt): Remove the declarations.
5078 (remote_interrupt_twice): Rename the declaration ...
5079 (sync_remote_interrupt_twice): ... this.
5080 (sigint_remote_twice_token): Rename the variable to ...
5081 (async_sigint_remote_twice_token): ... this.
5082 (sigint_remote_token): Rename the variable to ...
5083 (async_sigint_remote_token): ... this.
5084 (initialize_sigint_signal_handler): Rename the function to ...
5085 (async_initialize_sigint_signal_handler): ... this. Update the name
5086 inside.
5087 (handle_remote_sigint): Rename the function to ...
5088 (async_handle_remote_sigint): ... this. Update the names inside.
5089 (handle_remote_sigint_twice): Rename the function to ...
5090 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5091 (cleanup_sigint_signal_handler): Rename the function to ...
5092 (async_cleanup_sigint_signal_handler): ... this.
5093 (remote_interrupt): Rename the function to ...
5094 (sync_remote_interrupt): this. Update the names inside.
5095 (remote_interrupt_twice): Rename the function to ...
5096 (sync_remote_interrupt_twice): this. Update the names inside.
5097 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5098 (_initialize_remote): Update the names inside.
5099
5100 2013-08-02 Tom Tromey <tromey@redhat.com>
5101
5102 PR symtab/15719:
5103 * breakpoint.c (update_watchpoint, watchpoint_check)
5104 (watch_command_1): Update.
5105 * eval.c (fetch_subexp_value): Add "preserve_errors"
5106 parameter.
5107 * ppc-linux-nat.c (check_condition): Update.
5108 * value.h (fetch_subexp_value): Update.
5109
5110 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5111
5112 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5113 add_file_handler.
5114
5115 2013-08-01 Doug Evans <dje@google.com>
5116
5117 PR symtab/15691
5118 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5119 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5120 Add assert of sig_entry->dwo_unit == NULL.
5121 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5122 had already been read.
5123 (read_signatured_type): Set per_cu.tu_read.
5124
5125 PR symtab/15695
5126 * valops.c (value_struct_elt): Add missing call to check_typedef.
5127 (value_find_oload_method_list): Ditto.
5128
5129 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5130 effectively, struct symbol_search **.
5131 (make_cleanup_free_search_symbols): Change arg to struct
5132 symbol_search **. All callers updated.
5133 (compare_search_syms): Compare symtab file name and block as well.
5134 (search_symbols_equal): New function.
5135 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5136 New args new_head, new_tail. Result is now void. Remove dups after
5137 sorting the symbols.
5138 (search_symbols): Sort all found symbols once, after all have been
5139 found, and remove duplicates. Simplify cleanup tracking of result.
5140 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5141
5142 Further workarounds for binutils/15021.
5143 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5144 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5145 Watch for duplicate symtabs coming from type units.
5146 (compute_symtab_includes): Update call to
5147 recursively_compute_inclusions. Build vector of included symtabs
5148 instead of per_cus.
5149 * symtab.h (symtab_ptr): New typedef.
5150 (DEF_VEC_P (symtab_ptr)): New VEC type.
5151 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5152 instead.
5153
5154 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5155
5156 * cli/cli-script.c (script_from_file): Remove use of
5157 error_pre_print.
5158 * main.c (captured_main): Remove use of error_pre_print and
5159 quit_pre_print.
5160 * utils.c (error_pre_print, quit_pre_print): Remove.
5161 * utils.h (error_pre_print, quit_pre_print): Likewise.
5162
5163 2013-08-01 Yao Qi <yao@codesourcery.com>
5164
5165 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5166 with mi_getopt.
5167 (mi_cmd_stack_list_variables): Likewise.
5168
5169 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5170
5171 * exceptions.c (deprecated_throw_reason): Remove.
5172 * exceptions.h (deprecated_throw_reason): Remove.
5173
5174 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5175
5176 * remote-mips.c (mips_error): Replace use of
5177 deprecated_throw_reason with throw_verror. Use the error message
5178 passed to mips_error as the error message for throw_verror.
5179
5180 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5181
5182 * monitor.c (monitor_interrupt_query): Replace use of
5183 deprecated_throw_reason with quit.
5184 * nto-procfs.c (interrupt_query): Likewise.
5185 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5186 * remote-mips.c (mips_kill): Likewise.
5187 * remote.c (interrupt_query): Likewise.
5188
5189 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5190
5191 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5192 with call to fatal.
5193
5194 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5195 Yao Qi <yao@codesourcery.com>
5196
5197 * tracepoint.c (trace_dump_command): Select the current frame.
5198
5199 2013-07-30 Doug Evans <dje@google.com>
5200
5201 * dwarf2read.c (process_queue): Add type signature to debug output.
5202
5203 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5204
5205 * value.c (value_fetch_lazy): Mark optimized out values as such
5206 rather than raising an error.
5207
5208 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5209
5210 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5211 before checking which bits of the parent, not the child, value are
5212 valid.
5213
5214 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5215
5216 PR gdb/15715
5217 * top.c: Include "filenames.h".
5218 (set_history_filename): New function.
5219 (init_main): Install it as set hook of the "set history filename"
5220 command.
5221
5222 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5223
5224 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5225 attribute parameter.
5226 (dwarf2_const_value_data): Constify struct attribute parameter.
5227 (dwarf2_const_value): Constify struct attribute parameter.
5228 (dwarf2_const_value_attr): Constify struct attribute parameter.
5229 (lookup_die_type): Constify struct attribute parameter.
5230 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5231 (follow_die_ref_or_sig): Constify struct attribute parameter.
5232 (follow_die_ref): Constify struct attribute parameter.
5233 (follow_die_sig): Constify struct attribute parameter.
5234 (get_DW_AT_signature_type): Constify struct attribute parameter.
5235 (get_type_unit_group): Constify struct attribute parameter.
5236 (fill_in_loclist_baton): Constify struct attribute parameter.
5237 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5238 (type_unit_group): Constify struct attribute parameter.
5239
5240 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5241
5242 * dwarf2read.c (attr_form_is_block): Make argument const.
5243 (attr_form_is_section_offset): Make argument const.
5244 (attr_form_is_constant): Make argument const.
5245 (attr_form_is_ref): Make argument const.
5246
5247 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5248
5249 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5250 All uses updated.
5251 (attr_form_is_ref): Moved below attr_form_is_constant.
5252
5253 2013-07-29 Doug Evans <dje@google.com>
5254
5255 * main.c (captured_command_loop): Tweak comment.
5256
5257 * target.c (target_async_permitted_1): Fix comment.
5258
5259 * symtab.c (iterate_over_some_symtabs): Add comment.
5260
5261 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5262
5263 2013-07-27 Yao Qi <yao@codesourcery.com>
5264
5265 * NEWS: Mention that GDBserver now supports hardware
5266 watchpoints on the MIPS GNU/Linux target.
5267
5268 2013-07-27 Yao Qi <yao@codesourcery.com>
5269
5270 * Makefile.in (HFILES_NO_SRCDIR): Add
5271 common/mips-linux-watch.h.
5272 (mips-linux-watch.o): New rule.
5273 * common/mips-linux-watch.c: New.
5274 * common/mips-linux-watch.h: New.
5275 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5276 * mips-linux-nat.c: Include mips-linux-watch.h.
5277 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5278 to common/mips-linux-watch.h.
5279 (MAX_DEBUG_REGISTER): Likewise.
5280 (enum pt_watch_style): Likewise.
5281 (struct mips32_watch_regs): Likewise.
5282 (struct mips64_watch_regs): Likewise.
5283 (struct pt_watch_regs): Likewise.
5284 (struct mips_watchpoint): Likewise.
5285 (mips_linux_watch_get_irw_mask): Move to
5286 common/mips-linux-watch.c.
5287 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5288 (mips_linux_watch_get_watchlo): Likewise.
5289 (mips_linux_watch_set_watchlo): Likewise.
5290 (mips_linux_watch_get_watchhi): Likewise.
5291 (mips_linux_watch_set_watchhi): Likewise.
5292 (mips_linux_read_watch_registers): Likewise.
5293 (mips_linux_watch_type_to_irw): Likewise.
5294 (mips_linux_stopped_data_address, fill_mask): Likewise.
5295 (mips_linux_watch_try_one_watch): Likewise.
5296 (mips_linux_watch_populate_regs): Likewise.
5297
5298 2013-07-27 Yao Qi <yao@codesourcery.com>
5299
5300 * mips-linux-nat.c (get_irw_mask): Rename to ...
5301 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5302 'set' to 'n'. Update function comment. All callers changed.
5303 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5304 function comment. All callers changed.
5305 (get_num_valid): Rename to ...
5306 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5307 'set' to 'n'. Update function comment. All callers changed.
5308 (get_watchlo): Rename to ...
5309 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5310 'set' to 'n'. Update function comment. All callers changed.
5311 (set_watchlo): Rename to ...
5312 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5313 'set' to 'n'. Update function comment. All callers changed.
5314 (get_watchhi): Rename to ...
5315 (mips_linux_watch_get_watchhi): ... this. Update function
5316 comment. All callers changed.
5317 (set_watchhi): Rename to ...
5318 (mips_linux_watch_set_watchhi): ... this. Update function
5319 comment. All callers changed.
5320 (mips_linux_read_watch_registers): Update function comment.
5321 Add new parameters 'lwpid', 'watch_readback', and
5322 'watch_readback_valid'. Update.
5323 (type_to_irw): Rename to ...
5324 (mips_linux_watch_type_to_irw): ... this. Update function
5325 comment. All callers changed.
5326 (fill_mask): Update function comment.
5327 (try_one_watch): Rename to ...
5328 (mips_linux_watch_try_one_watch): ... this. Change the type
5329 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5330 (populate_regs_from_watches): Rename to ...
5331 (mips_linux_watch_populate_regs): ... this. Add parameter
5332 'current_watches'. All callers changed.
5333
5334 2013-07-27 Yao Qi <yao@codesourcery.com>
5335
5336 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5337 the code.
5338 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5339 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5340 (struct pt_watch_regs): Likewise.
5341 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5342 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5343 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5344 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5345 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5346
5347 2013-07-27 Yao Qi <yao@codesourcery.com>
5348
5349 * breakpoint.h: Include break-common.h.
5350 (enum target_hw_bp_type): Move to ...
5351 * common/break-common.h: ... here. New.
5352
5353 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5354
5355 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5356 process group regardless of having tty on stdin.
5357
5358 2013-07-25 Doug Evans <dje@google.com>
5359
5360 * linux-fork.h (detach_fork): Delete.
5361
5362 2013-07-25 Tom Tromey <tromey@redhat.com>
5363
5364 PR remote/15256, PR remote/15266:
5365 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5366 * monitor.c (monitor_detach): Use unpush_target.
5367 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5368 * remote-mips.c (mips_detach): Use unpush_target. Don't
5369 call mips_close.
5370 * remote-sim.c (gdbsim_detach): Use unpush_target.
5371 * target.c (pop_target): Remove.
5372 (pop_all_targets_above): Don't call target_close.
5373 (target_close): Assert that the target is unpushed.
5374 * target.h (pop_target): Don't declare.
5375 * tracepoint.c (tfile_open): Use unpush_target.
5376
5377 2013-07-25 Tom Tromey <tromey@redhat.com>
5378
5379 * linux-thread-db.c (init_thread_db_ops): Call
5380 complete_target_initialization.
5381 (_initialize_thread_db): Don't call add_target.
5382 * target.c (complete_target_initialization): New function.
5383 (add_target_with_completer): Call it.
5384 * target.h (complete_target_initialization): Declare.
5385
5386 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5387
5388 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5389 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5390 (HPPANBSD_SIZEOF_GREGS): New define.
5391 (hppaobsd_supply_gregset): Handle additional registers.
5392 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5393 we provide more registers now.
5394 (hppabsd_supply_gregset): Supply additional registers.
5395 (hppabsd_collect_gregset): Collect additional registers.
5396
5397 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5398
5399 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5400 (hppabsd_dwarf2_frame_init_reg): New function.
5401 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5402
5403 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5404
5405 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5406 'z' format code. Remove error for optimized out values, standard
5407 code will handle these fine.
5408
5409 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5410
5411 * NEWS: Mention new 'z' formatter.
5412 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5413 (_initialize_printcmd): Mention 'z' formatter in help text of the
5414 'x' command.
5415
5416 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5417
5418 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5419 formatting.
5420
5421 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5422
5423 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5424 interface can evaluate arguments. Fallback to the old mode if it
5425 cannot.
5426 (create_exception_master_breakpoint): Likewise.
5427 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5428 (struct sym_probe_fns elf_probe_fns): Export function above to the
5429 probe interface.
5430 * probe.c (can_evaluate_probe_arguments): New function.
5431 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5432 function pointer.
5433 (can_evaluate_probe_arguments): New function prototype.
5434 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5435 probe interface can evaluate arguments. Fallback to the old mode
5436 if it cannot.
5437 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5438 interface can evaluate arguments. Warning the user if it cannot.
5439 (stap_can_evaluate_probe_arguments): New function.
5440 (struct probe_ops stap_probe_ops): Export function above to the
5441 probe interface.
5442 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5443 New function pointer.
5444
5445 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5446
5447 * Makefile.in (SFILES): Add common/target-common.c.
5448 Add common/target-common.h to headers.
5449 (COMMON_OBS): Add target-common.o.
5450 (target-common.o): New target.
5451 * linux-nat.h (resume_kind): Move to common/target-common.h.
5452 * target.c (target_waitstatus_to_string): Move to
5453 common/target-common.c.
5454 * target.h: Include target-common.h.
5455 (target_waitkind): Move to common/target-common.h.
5456 (target_waitstatus): Likewise.
5457 (TARGET_WNOHANG): Likewise.
5458 * common/target-common.c: New file.
5459 * common/target-common.h: New file.
5460
5461 2013-07-24 Doug Evans <dje@google.com>
5462
5463 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5464 a warning.
5465
5466 2013-07-23 Yao Qi <yao@codesourcery.com>
5467
5468 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5469 parameter 'gdbarch'.
5470 (i386_stack_tramp_frame_sniffer): Caller update.
5471 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5472 parameter 'gdbarch' and 'target'.
5473 (i386_linux_core_read_description): Caller update.
5474 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5475 Likewise.
5476 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5477 declaration.
5478
5479 2013-07-23 Tom Tromey <tromey@redhat.com>
5480
5481 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5482 2013-07-22.
5483
5484 2013-07-22 Doug Evans <dje@google.com>
5485
5486 * exec.h (remove_target_sections): Delete arg abfd.
5487 * exec.c (exec_close): Update call to remove_target_sections.
5488 (remove_target_sections): Delete arg abfd.
5489 * solib.c (update_solib_list): Ditto.
5490 (reload_shared_libraries_1): Ditto.
5491 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5492 * target.h (struct target_section): Rename key to owner.
5493 All uses updated.
5494
5495 2013-07-22 Tom Tromey <tromey@redhat.com>
5496
5497 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5498
5499 2013-07-22 Tom Tromey <tromey@redhat.com>
5500
5501 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5502 Simplify cleanup handling.
5503
5504 2013-07-22 Tom Tromey <tromey@redhat.com>
5505
5506 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5507 on all return paths.
5508
5509 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5510
5511 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5512 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5513 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5514
5515 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5516
5517 * top.c (print_gdb_version): Add help, apropos description and
5518 url to online documentation.
5519
5520 2013-07-19 Hui Zhu <hui@codesourcery.com>
5521
5522 PR gdb/15692
5523 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5524
5525 2013-07-19 Yao Qi <yao@codesourcery.com>
5526
5527 * target.c (update_current_target): Change the default action
5528 of 'to_traceframe_info' from tcomplain to return_zero.
5529 * target.h (struct target_ops) <to_traceframe_info>: Add more
5530 comments.
5531 * valops.c (read_value_memory): Call
5532 traceframe_available_memory unconditionally.
5533
5534 2013-07-18 Yao Qi <yao@codesourcery.com>
5535
5536 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5537 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5538 symbol without prefix. If found, set its type to
5539 'mst_solib_trampoline'.
5540
5541 2013-07-17 Doug Evans <dje@google.com>
5542
5543 * NEWS: Mention "set print raw frame-arguments".
5544 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5545 * stack.c (print_raw_frame_arguments): New static global.
5546 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5547 (_initialize_stack): New command "set/show print raw frame-arguments".
5548 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5549 (set_print_raw, show_print_raw): New functions.
5550 (_initialize_valprint): New prefix command "set/show print raw".
5551 * valprint.h (value_print_options): Improve comments.
5552
5553 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5554 of all *list variables.
5555
5556 * gdbcmd.h (togglelist): Delete.
5557 * cli/cli-cmds.c (togglelist): Delete.
5558 (init_cmd_lists): Update.
5559 * cli/cli-cmds.h (togglelist): Delete.
5560
5561 2013-07-17 Tom Tromey <tromey@redhat.com>
5562
5563 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5564 dwarf2_per_objfile.
5565
5566 2013-07-16 Doug Evans <dje@google.com>
5567
5568 * nto-tdep.c (nto_relocate_section_addresses): Update,
5569 target_section.bfd deleted.
5570 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5571 * s390-tdep.c (s390_load): Ditto.
5572 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5573
5574 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5575
5576 * common/format.c (parse_format_string): Add checks for NULL
5577 character before calling strchr.
5578
5579 2013-07-16 Doug Evans <dje@google.com>
5580
5581 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5582 temp_pathname argument.
5583 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5584 when opening the file fails.
5585
5586 * target.h (struct target_section): Delete member bfd.
5587 All users updated to use the_bfd_section->owner instead.
5588 * exec.c (add_to_section_table): Assert bfd is expected value.
5589 Remove initialization of target_section.bfd.
5590 (remove_target_sections): Update.
5591 (section_table_available_memory): Update.
5592 (section_table_xfer_memory_partial): Update.
5593 (print_section_info): Update.
5594 (exec_set_section_address): Update.
5595 * record-full.c (record_full_core_xfer_partial): Update.
5596 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5597 * solib-target.c (solib_target_relocate_section_addresses): Update.
5598 * symfile.c (build_section_addr_info_from_section_table): Update.
5599 * target.c (memory_xfer_live_readonly_partial): Update.
5600 (memory_xfer_partial_1): Update.
5601
5602 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5603
5604 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5605 now available for embedded (BookE) and server (BookS) processors,
5606 correct mentions of 'booke' and adjust comments accordingly in order to
5607 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5608 (have_ptrace_booke_interface): Rename function and variable
5609 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5610 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5611 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5612 'hwdebug_point_cmp'. Update all uses.
5613 (booke_find_thread_points_by_tid): Rename function
5614 'booke_find_thread_points_by_tid' to
5615 'hwdebug_find_thread_points_by_tid'. Update all uses.
5616 (booke_insert_point): Rename function 'booke_insert_point' to
5617 'hwdebug_insert_point'. Update all uses.
5618 (booke_remove_point): Rename function 'booke_remove_point' to
5619 'hwdebug_remove_point'. Update all uses.
5620
5621 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5622
5623 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5624 numbers with enum values.
5625
5626 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5627
5628 PR threads/13217
5629 * thread.c (thread_apply_all_command): Check for valid threads
5630 and thread count.
5631 (thread_array_cleanup): New struct.
5632 (set_thread_refcount): New function.
5633
5634 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5635
5636 * infcmd.c (default_print_one_register_info): Reuse function
5637 print_hex_chars.
5638
5639 2013-07-10 Tom Tromey <tromey@redhat.com>
5640
5641 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5642 (ada-exp.o): New target.
5643
5644 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5645
5646 * mt-tdep.c (mt_registers_info): Call
5647 get_no_prettyformat_print_options instead of
5648 get_raw_print_options (regression by last patch from Doug
5649 Evans).
5650
5651 2013-07-09 Pedro Alves <palves@redhat.com>
5652
5653 Checked in by Joel Brobecker <brobecker@adacore.com>.
5654 * ada-lang.c (coerce_unspec_val_to_type): Use
5655 value_optimized_out_const.
5656 * value.c (value_optimized_out_const): New function.
5657 * value.h (value_optimized_out_const): New declaration.
5658
5659 2013-07-09 Doug Evans <dje@google.com>
5660
5661 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5662 Enum values rename as well. All uses updated.
5663 * valprint.h (value_print_options): Rename member pretty to
5664 pretty format. Rename member prettyprint_arrays to
5665 prettyformat_arrays. Rename member prettyprint_structs to
5666 prettyformat_structs. All uses updated.
5667 (get_no_prettyformat_print_options): Renamed from
5668 get_raw_print_options.
5669 * valprint.c (get_no_prettyformat_print_options): Renamed from
5670 get_raw_print_options. All callers updated.
5671 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5672 All callers updated.
5673 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5674 All callers updated.
5675 (_initialize_valprint): Improve help text for "set print pretty" and
5676 "set print arrays".
5677
5678 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5679
5680 * value.c (value_bits_valid): Revert previous change, and change
5681 by Pedro on 2013-07-04, due to regressions in
5682 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5683
5684 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5685 Pedro Alves <palves@redhat.com>
5686
5687 * value.c (value_bits_valid): If the value is not lval_computed
5688 or has no check validity handler then the answer is the
5689 optimized_out flag, otherwise defer to the handler.
5690
5691 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5692
5693 * top.c (print_gdb_configuration): Explain in output of
5694 --configuration what does "relocatable" mean.
5695
5696 * main.c (print_gdb_help): Regroup options in the --help text.
5697 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5698 the relevant discussions.
5699
5700 2013-07-06 Yao Qi <yao@codesourcery.com>
5701
5702 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5703 Remove parameter 'lsal'.
5704 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5705 to inner block. Caller update.
5706 (base_breakpoint_create_breakpoints_sal): Update.
5707 (bkpt_create_breakpoints_sal): Likewise.
5708 (tracepoint_create_breakpoints_sal): Likewise.
5709 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5710 element 0 of vector 'canonical->sals'.
5711
5712 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5713
5714 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5715 register number instead of the pseudo register one.
5716 (rs6000_dwarf2_reg_to_regnum): Likewise.
5717
5718 2013-07-04 Pedro Alves <palves@redhat.com>
5719
5720 * findvar.c (value_of_register): Use allocate_optimized_out_value
5721 if the register has been optimized out, instead of
5722 set_value_optimized_out.
5723 * frame-unwind.c (frame_unwind_got_optimized): Use
5724 allocate_optimized_out_value.
5725
5726 2013-07-04 Pedro Alves <palves@redhat.com>
5727
5728 * value.c (value_bits_valid): If the value is not lval_computed,
5729 or doesn't have a check_validity hook, assume the value is entirely
5730 valid.
5731
5732 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5733
5734 * stack.c (read_frame_arg): No longer fetch lazy values.
5735 * value.c (value_optimized_out): If the value is not already
5736 marked optimized out, and is lazy then fetch it.
5737 (value_primitive_field): Move optimized out check to later in the
5738 function, after we have loaded any lazy values.
5739 (value_fetch_lazy): Use optimized out flag directly rather than
5740 calling optimized_out method.
5741
5742 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5743
5744 * valops.c: Don't include "user-regs.h".
5745 (value_fetch_lazy): Moved to value.c.
5746 * value.c: Include "user-regs.h".
5747 (value_fetch_lazy): Moved from valops.c.
5748
5749 2013-07-04 Yao Qi <yao@codesourcery.com>
5750
5751 Revert:
5752 2013-06-27 Yao Qi <yao@codesourcery.com>
5753
5754 * common/create-version.sh: Update comments. Handle the case
5755 that TARGET_ALIAS is empty.
5756
5757 2013-07-03 Pedro Alves <palves@redhat.com>
5758
5759 * Makefile.in (config.status): Depend on development.sh.
5760 (aclocal_m4_deps): Add libmcheck.m4.
5761 * acinclude.m4: Include libmcheck.m4.
5762 * configure.ac: Source development.sh instead of setting
5763 'development' here. --enable-libmcheck/--disable-libmcheck code
5764 factored out to GDB_AC_LIBMCHECK. Run it.
5765 * development.sh: New file.
5766 * libmcheck.m4: New file.
5767 * configure: Regenerate.
5768
5769 2013-07-02 Tom Tromey <tromey@redhat.com>
5770
5771 * contrib/ari/update-web-ari.sh: Update for version.in change.
5772
5773 2013-07-02 Tom Tromey <tromey@redhat.com>
5774
5775 * common/ptid.h: Comment fixes.
5776
5777 2013-07-01 Tom Tromey <tromey@redhat.com>
5778
5779 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5780 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5781 (dwarf2_read_index, create_all_comp_units): Update.
5782
5783 2013-07-01 Tom Tromey <tromey@redhat.com>
5784
5785 * configure.ac (build_warnings): Add -Wold-style-definition.
5786 * configure: Rebuild.
5787 * machoread.c (_initialize_machoread): Use "(void)".
5788 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5789 use "(void)".
5790
5791 2013-07-01 Tom Tromey <tromey@redhat.com>
5792
5793 * configure.ac (build_warnings): Add -Wold-style-declaration.
5794 * configure: Rebuild.
5795 * dsrec.c (make_srec): Use "static const", not "const static".
5796 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5797 not "const static".
5798 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5799 Use "static const", not "const static".
5800 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5801 not "const static".
5802 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5803 not "const static".
5804 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5805 not "const static".
5806 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5807 not "const static".
5808 (v850_dbtrap_breakpoint_from_pc): Likewise.
5809 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5810 not "const static".
5811
5812 2013-07-01 Tom Tromey <tromey@redhat.com>
5813
5814 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5815 * configure: Rebuild.
5816
5817 2013-07-01 Pedro Alves <palves@redhat.com>
5818
5819 * defs.h: Include "pathmax.h".
5820 * utils.c: Don't include sys/param.h.
5821 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5822 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5823 instead of MAXPATHLEN.
5824 * solib-sunos.c: Don't include sys/param.h.
5825 * xcoffread.c: Don't include sys/param.h.
5826 * bsd-kvm.c: Don't include sys/param.h.
5827 * darwin-nat.c: Don't include sys/param.h.
5828 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5829 * darwin-nat-info.c: Don't include sys/param.h.
5830 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5831 MAXPATHLEN.
5832 * i386obsd-nat.c: Don't include sys/param.h.
5833 * inf-child.c: Don't include sys/param.h.
5834 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5835 * linux-fork.c: Don't include sys/param.h.
5836 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5837 * linux-nat.c: Don't include sys/param.h.
5838 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5839 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5840 * m68klinux-nat.c: Don't include sys/param.h.
5841 * nbsd-nat.c: Don't include sys/param.h.
5842 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5843 * ppc-linux-nat.c: Don't include sys/param.h.
5844 * rs6000-nat.c: Don't include sys/param.h.
5845 * spu-linux-nat.c. Don't include sys/param.h.
5846 * windows-nat.c: Don't include sys/param.h.
5847 * xtensa-linux-nat.c: Don't include sys/param.h.
5848 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5849
5850 2013-07-01 Pedro Alves <palves@redhat.com>
5851
5852 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5853 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5854 * gnulib/aclocal.m4: Regenerate.
5855 * gnulib/config.in: Regenerate.
5856 * gnulib/configure: Regenerate.
5857 * gnulib/import/pathmax.h: New file.
5858 * gnulib/import/Makefile.am: Regenerate.
5859 * gnulib/import/Makefile.in: Regenerate.
5860 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5861 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5862 * gnulib/import/m4/pathmax.m4: New file.
5863
5864 2013-07-01 Pedro Alves <palves@redhat.com>
5865
5866 * configure.ac (GDBINIT): Define, depending on host.
5867 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5868 * top.c (PATH_MAX): Delete fallback definition.
5869 (GDBINIT_FILENAME): Delete.
5870 (gdbinit): Reimplement as const char array set to the GDBINIT
5871 string constant.
5872 * top.h (gdbinit): Make const.
5873 * configure, config.in: Regenerate.
5874
5875 2013-07-01 Pedro Alves <palves@redhat.com>
5876
5877 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5878 * cli/cli-cmds.h (source_script): Likewise.
5879 * exceptions.c (catch_command_errors_const): New function.
5880 * exceptions.h (catch_command_errors_const): Declare.
5881 * main.c (get_init_files): Make parameters const, and adjust.
5882 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5883 'local_gdbinit' locals const. Adjust to use
5884 catch_command_errors_const.
5885 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5886 'local_gdbinit' locals const.
5887
5888 2013-07-01 Pedro Alves <palves@redhat.com>
5889
5890 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5891 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5892 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5893 <unistd.h>.
5894
5895 2013-07-01 Pedro Alves <palves@redhat.com>
5896
5897 Import the "unistd" gnulib module.
5898 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5899 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5900 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5901 import/m4/unistd_h.m4.
5902 * gnulib/aclocal.m4: Renenerate.
5903 * gnulib/config.in: Renenerate.
5904 * gnulib/configure: Renenerate.
5905 * gnulib/import/Makefile.am: Renenerate.
5906 * gnulib/import/Makefile.in: Renenerate.
5907 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5908 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5909 * gnulib/import/m4/off_t.m4: New file.
5910 * gnulib/import/m4/ssize_t.m4: New file.
5911 * gnulib/import/m4/sys_types_h.m4: New file.
5912 * gnulib/import/m4/unistd_h.m4: New file.
5913 * gnulib/import/sys_types.in.h: New file.
5914 * gnulib/import/unistd.c: New file.
5915 * gnulib/import/unistd.in.h: New file.
5916
5917 2013-07-01 Pedro Alves <palves@redhat.com>
5918
5919 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5920 defined instead of checking HAVE_UNISTD_H.
5921
5922 2013-07-01 Pedro Alves <palves@redhat.com>
5923
5924 Reimport gnulib from scratch.
5925 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5926 import/m4/onceonly.m4.
5927 * gnulib/aclocal.m4: Renegerate.
5928 * gnulib/config.in: Renegerate.
5929 * gnulib/configure: Renegerate.
5930 * gnulib/import/Makefile.in: Renegerate.
5931 * gnulib/import/extra/update-copyright: Renegerate.
5932 * gnulib/import/m4/onceonly.m4: Delete.
5933
5934 2013-07-01 Pedro Alves <palves@redhat.com>
5935
5936 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5937
5938 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5939
5940 Code cleanup.
5941 * remote.c (async_remote_interrupt_twice): Make it static.
5942 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5943
5944 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5945
5946 * ia64-linux-tdep.c: Include <ctype.h>.
5947 (ia64_linux_stap_is_single_operand): New function.
5948 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5949
5950 2013-06-28 Tom Tromey <tromey@redhat.com>
5951
5952 * Makefile.in (version.c): Use version.in, not
5953 common/version.in.
5954 * common/create-version.sh: Likewise.
5955 * common/version.in: Move...
5956 * version.in: ...here.
5957
5958 2013-06-28 Pedro Alves <palves@redhat.com>
5959
5960 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5961 here.
5962 * utils.h (pagination_enabled): Declare.
5963
5964 2013-06-28 Pedro Alves <palves@redhat.com>
5965
5966 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5967 Move higher up in file.
5968
5969 2013-06-28 Tom Tromey <tromey@redhat.com>
5970
5971 * tracepoint.c (deprecated_readline_begin_hook)
5972 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5973 declare.
5974
5975 2013-06-28 Pedro Alves <palves@redhat.com>
5976
5977 PR tui/14880
5978 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5979 checking if they're available.
5980 * value.c (value_available_contents_eq): Change comment.
5981 * value.h (value_available_contents_eq): Expand comment.
5982
5983 2013-06-27 Tom Tromey <tromey@redhat.com>
5984
5985 * target.c (find_run_target): Remove.
5986 * target.h (find_run_target): Remove.
5987
5988 2013-06-27 Tom Tromey <tromey@redhat.com>
5989
5990 * corelow.c (core_gdbarch): Now static.
5991
5992 2013-06-27 Tom Tromey <tromey@redhat.com>
5993
5994 * target.c (target_struct_index): Remove.
5995
5996 2013-06-27 Pedro Alves <palves@redhat.com>
5997
5998 * infrun.c: Remove comment describing the 'stepping over runtime
5999 loader dynamic symbol resolution code' mechanism; moved to
6000 gdbint.texinfo.
6001
6002 2013-06-27 Pedro Alves <palves@redhat.com>
6003
6004 * exceptions.c (catch_command_errors): Remove spurious space.
6005 * exceptions.h (catch_command_errors): Second parameter is "arg",
6006 not "command".
6007
6008 2013-06-27 Yao Qi <yao@codesourcery.com>
6009
6010 * common/create-version.sh: Update comments. Handle the case
6011 that TARGET_ALIAS is empty.
6012
6013 2013-06-26 Pedro Alves <palves@redhat.com>
6014
6015 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
6016 comment.
6017
6018 2013-06-26 Pedro Alves <palves@redhat.com>
6019
6020 * infrun.c: Update comments on stepping over runtime loader
6021 dynamic symbol resolution code.
6022
6023 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
6024
6025 * ax-gdb.h (union exp_element): Forward declare.
6026 * parser-defs.h: Include expression.h.
6027
6028 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6029
6030 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6031
6032 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6033
6034 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6035
6036 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6037
6038 Fix trace-status to output proper start-time and stop-time.
6039 * tracepoint.c (trace_status_command): Fix type of printf arg to
6040 prevent improper type conversion.
6041 (trace_status_mi): Likewise.
6042
6043 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6044
6045 * mips-tdep.c (mips_next_pc): Fix a typo.
6046
6047 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6048
6049 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6050
6051 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6052 Yao Qi <yao@codesourcery.com>
6053
6054 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6055 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6056 * mi/mi-main.c (print_variable_or_computed): New function.
6057 (mi_cmd_trace_frame_collected): New function.
6058 * tracepoint.c (find_trace_state_variable_by_number): New.
6059 (struct traceframe_info): Move to tracepoint.h
6060 (struct collection_list): Likewise.
6061 (do_collect_symbol): Include locals and arguments in the
6062 collected variables list.
6063 (clear_collection_list): Clear wholly collected variables list
6064 and computed variables list.
6065 (append_exp): New function.
6066 (encode_actions_1): Include variables in the wholly
6067 collected variables list. Include memory ranges and
6068 full-fledged expressions in the computed expressions list.
6069 (encode_actions): Move some code to ...
6070 Return the cleanup chain.
6071 (encode_actions_rsp): ... here. New function.
6072 (get_traceframe_location, get_traceframe_info): Remove static.
6073 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6074 (struct collection_list): Moved from tracepoint.c. Add two
6075 new fields 'wholly_collected' and 'computed'.
6076 (find_trace_state_variable_by_number): Declare.
6077 (encode_actions): Adjust declaration.
6078 (encode_actions_rsp): Declare.
6079 (get_traceframe_info, get_traceframe_location): Declare.
6080
6081 * NEWS: Mention new MI command -trace-frame-collected.
6082
6083 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6084 Yao Qi <yao@codesourcery.com>
6085
6086 * ctf.c (ctf_traceframe_info): Push trace state variables
6087 present in the trace data into the traceframe info object.
6088 * breakpoint.c (DEF_VEC_I): Remove.
6089 * common/filestuff.c (DEF_VEC_I): Likewise.
6090 * dwarf2loc.c (DEF_VEC_I): Likewise.
6091 * mi/mi-main.c (DEF_VEC_I): Likewise.
6092 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6093 * features/traceframe-info.dtd: Add tvar element and its
6094 attributes.
6095 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6096 (build_traceframe_info): Push trace state variables present in
6097 the trace data into the traceframe info object.
6098 (traceframe_info_start_tvar): New function.
6099 (tvar_attributes): New.
6100 (traceframe_info_children): Add "tvar" element.
6101 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6102
6103 * NEWS: Mention the change in GDB and GDBserver.
6104
6105 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6106 Yao Qi <yao@codesourcery.com>
6107
6108 * tracepoint.c (trace_dump_command): Move code to ...
6109 (get_traceframe_location): ... here. New.
6110
6111 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6112 Yao Qi <yao@codesourcery.com>
6113
6114 * tracepoint.c (trace_dump_command): GDB emits an error
6115 instead of a warning when a traceframe is not selected.
6116
6117 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6118 Yao Qi <yao@codesourcery.com>
6119
6120 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6121 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6122 in collection_list.
6123 (do_clear_collection_list, init_collection_list): New.
6124 (encode_actions): Add local variables 'tracepoint_list' and
6125 'stepping_list'. Call init_collection_list and make cleanup
6126 which calls do_clear_collection_list. Don't call
6127 clear_collection_list.
6128 (_initialize_tracepoint): Delete references to
6129 'tracepoint_list' and 'stepping_list'.
6130
6131 2013-06-25 Tom Tromey <tromey@redhat.com>
6132
6133 * common/create-version.sh (date): Use "$", not "$$" in sed
6134 expression.
6135
6136 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6137
6138 * NEWS (New targets): Add entry for TI MSP430.
6139
6140 2013-06-25 Yao Qi <yao@codesourcery.com>
6141
6142 * remote.c (remote_start_remote): Move code to upload tsv
6143 earlier.
6144
6145 2013-06-25 Yao Qi <yao@codesourcery.com>
6146 Hui Zhu <hui@codesourcery.com>
6147 Pedro Alves <palves@redhat.com>
6148
6149 PR breakpoints/15075
6150 PR breakpoints/15434
6151 * breakpoint.c (bpstat_stop_status): Call
6152 b->ops->after_condition_true.
6153 (update_dprintf_command_list): Don't append "continue" command
6154 to the command list of dprintf breakpoint.
6155 (base_breakpoint_after_condition_true): New function.
6156 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6157 (dprintf_after_condition_true): New function.
6158 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6159 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6160
6161 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6162
6163 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6164 (ALLDEPFILES): Add msp430-tdep.c.
6165 * configure.tgt (msp430*-*-elf): New target.
6166 * msp430-tdep.c: New file.
6167
6168 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6169
6170 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6171 microMIPS synthetic symbols.
6172
6173 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6174
6175 * objfiles.h (pc_in_section): New prototype.
6176 (in_plt_section): Remove name argument, replace prototype with
6177 static inline function.
6178 * mips-tdep.h: Include "objfiles.h".
6179 (in_mips_stubs_section): New function.
6180 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6181 in_solib_call_trampoline member.
6182 (hppa_in_solib_call_trampoline): Remove name argument.
6183 * objfiles.c (pc_in_section): New function.
6184 (in_plt_section): Remove function.
6185 * mips-linux-tdep.c: Include "objfiles.h".
6186 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6187 name argument. Return 1 rather than the low 16-bit halfword of
6188 any instruction examined.
6189 (mips_linux_in_dynsym_resolve_code): Update
6190 mips_linux_in_dynsym_stub call accordingly.
6191 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6192 rather than an equivalent hand-coded sequence.
6193 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6194 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6195 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6196 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6197 in_opd_section.
6198 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6199 on call to tdep->in_solib_call_trampoline.
6200 (hppa_in_solib_call_trampoline): Remove name argument, update
6201 according to in_plt_section change.
6202 (hppa_skip_trampoline_code): Update according to in_plt_section
6203 change.
6204 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6205 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6206 Likewise.
6207 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6208 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6209 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6210 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6211 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6212 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6213 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6214 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6215 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6216 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6217 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6218 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6219 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6220
6221 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6222
6223 * common/create-version.sh: Fix expansion of $host_alias
6224 and $target_alias in generation of HOST_NAME and TARGET_NAME
6225 (resp.).
6226
6227 2013-06-24 Tom Tromey <tromey@redhat.com>
6228
6229 * common/create-version.sh: New file.
6230 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6231 create-version.sh.
6232 (HFILES_NO_SRCDIR): Use common/version.h.
6233 * version.in: Move to ...
6234 * common/version.in: ... here. Replace date with "DATE".
6235 * version.h: Move to ...
6236 * common/version.h: ... here.
6237
6238 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6239
6240 * gdb/gnulib/Makefile.in: Update date in copyright header.
6241 * gdb/gnulib/configure.ac: Ditto.
6242 * gdb/gnulib/update-gnulib.sh: Ditto.
6243
6244 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6245
6246 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6247 "gdb/gnulib/import".
6248
6249 2013-06-21 Will Newton <will.newton@linaro.org>
6250
6251 * doublest.c (ldfrexp): Remove function.
6252 (convert_doublest_to_floatformat): Call frexpl instead of
6253 ldfrexp.
6254
6255 2013-06-21 Will Newton <will.newton@linaro.org>
6256
6257 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6258 * gnulib/aclocal.m4: Regenerate.
6259 * gnulib/config.in: Regenerate.
6260 * gnulib/configure: Regenerate.
6261 * gnulib/import/Makefile.am: Update.
6262 * gnulib/import/Makefile.in: Update.
6263 * gnulib/import/m4/gnulib-cache.m4: Update.
6264 * gnulib/import/m4/gnulib-comp.m4: Update.
6265 * gnulib/import/float+.h: Import.
6266 * gnulib/import/float.c: Import.
6267 * gnulib/import/float.in.h: Import.
6268 * gnulib/import/fpucw.h: Import.
6269 * gnulib/import/frexp.c: Import.
6270 * gnulib/import/frexpl.c: Import.
6271 * gnulib/import/isnan.c: Import.
6272 * gnulib/import/isnand-nolibm.h: Import.
6273 * gnulib/import/isnand.c: Import.
6274 * gnulib/import/isnanl-nolibm.h: Import.
6275 * gnulib/import/isnanl.c: Import.
6276 * gnulib/import/itold.c: Import.
6277 * gnulib/import/m4/exponentd.m4: Import.
6278 * gnulib/import/m4/exponentl.m4: Import.
6279 * gnulib/import/m4/float_h.m4: Import.
6280 * gnulib/import/m4/fpieee.m4: Import.
6281 * gnulib/import/m4/frexp.m4: Import.
6282 * gnulib/import/m4/frexpl.m4: Import.
6283 * gnulib/import/m4/isnand.m4: Import.
6284 * gnulib/import/m4/isnanl.m4: Import.
6285 * gnulib/import/m4/math_h.m4: Import.
6286 * gnulib/import/math.c: Import.
6287 * gnulib/import/math.in.h: Import.
6288
6289 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6290
6291 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6292 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6293 signature_INTEL_edx comparisons.
6294
6295 2013-06-20 Doug Evans <dje@google.com>
6296
6297 symtab/15652
6298 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6299 All callers updated.
6300 (open_dwp_file): If we can't find the dwp file, search the basename
6301 in debug-file-directory.
6302
6303 * dwarf2read.c (struct dwp_file): Fix comment.
6304 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6305
6306 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6307 better.
6308
6309 2013-06-20 Yao Qi <yao@codesourcery.com>
6310
6311 * breakpoint.c (create_breakpoint): Fix code indentation.
6312
6313 2013-06-20 Yao Qi <yao@codesourcery.com>
6314
6315 * breakpoint.c (create_breakpoints_sal_default): Remove
6316 parameter 'lsal'. Update declaration.
6317 (bkpt_create_breakpoints_sal): Caller update.
6318 (tracepoint_create_breakpoints_sal): Likewise.
6319
6320 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6321 Yao Qi <yao@codesourcery.com>
6322
6323 * NEWS: Mention the new option '--skip-unavailable' of command
6324 -data-list-register-values.
6325 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6326 --skip-unavailable option. Adjust to use output_register.
6327 (output_register): Add new 'skip_unavailable' parameter.
6328 Handle it.
6329
6330 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6331
6332 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6333 common/i386-gcc-cpuid.h.
6334 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6335 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6336 Copy the latest version from upstream gcc.
6337 * common/linux-btrace.c: Include i386-cpuid.h.
6338 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6339 call to i386_cpuid.
6340 (cpu_supports_btrace): Likewise.
6341 * go32-nat.c: Include i386-cpuid.h.
6342 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6343
6344 2013-06-19 Doug Evans <dje@google.com>
6345
6346 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6347 (get_section_index): Ditto.
6348
6349 2013-06-19 Tom Tromey <tromey@redhat.com>
6350
6351 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6352 "dprintf" help.
6353
6354 2013-06-18 Doug Evans <dje@google.com>
6355
6356 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6357 before using it.
6358 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6359 Move test of cu_index closer to use. Print complaint if cu_index
6360 is bad.
6361
6362 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6363
6364 * machoread.c (oso_vector): Delete this global.
6365 (macho_register_oso): Add new parameter "oso_vector_ptr".
6366 Use it instead of the "oso_vector" global.
6367 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6368 (macho_symfile_read): Use a local oso_vector, to be free'ed
6369 at the end of this function, in place of the old "oso_vector"
6370 global. Update various function calls accordingly. Use one
6371 single cleanup chain for the entire function.
6372
6373 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6374
6375 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6376 DWARF2_PER_OBJFILE by uses of DATA instead.
6377
6378 2013-06-18 Tom Tromey <tromey@redhat.com>
6379
6380 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6381 argument.
6382 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6383 Special case signals other than GDB_SIGNAL_TRAP.
6384 (explains_signal_watchpoint): New function.
6385 (base_breakpoint_explains_signal): Add 'sig' argument.
6386 (initialize_breakpoint_ops): Set 'explains_signal' method for
6387 watchpoints.
6388 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6389 signal argument.
6390 (bpstat_explains_signal): Likewise.
6391 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6392
6393 2013-06-18 Tom Tromey <tromey@redhat.com>
6394
6395 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6396
6397 2013-06-18 Tom Tromey <tromey@redhat.com>
6398
6399 * python/python.c (finish_python_initialization): Decref
6400 'pythondir' on failure path as well.
6401
6402 2013-06-18 Tom Tromey <tromey@redhat.com>
6403
6404 PR symtab/15391:
6405 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6406 after taking bits_to_skip into account. Sign extend byte_offset.
6407 * utils.h (gdb_sign_extend): Declare.
6408 * utils.c (gdb_sign_extend): New function.
6409
6410 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6411
6412 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6413
6414 2013-06-17 Pierre Muller <muller@sourceware.org>
6415
6416 * corelow.c (core_open): Print GDB signal name instead of target
6417 signal number.
6418
6419 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6420
6421 * .gitignore: Add /gcore.
6422
6423 2013-06-13 Doug Evans <dje@google.com>
6424
6425 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6426 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6427
6428 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6429
6430 * stack.c (backtrace_command_1): Fix indentation.
6431
6432 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6433
6434 * window-nat.c (thread_rec): Add missing empty line after
6435 local variable declaration.
6436
6437 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6438
6439 * windows-nat.c (thread_rec): Revert format used to print
6440 error code returned by SuspendThread from %d back to %u.
6441
6442 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6443
6444 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6445 ID in debug trace.
6446 (get_windows_debug_event): Likewise, for all debug traces.
6447
6448 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6449
6450 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6451 warning message.
6452
6453 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6454 Yao Qi <yao@codesourcery.com>
6455
6456 * mi/mi-main.c (get_register): Remove declaration.
6457 (output_register): Declare.
6458 (mi_cmd_data_list_register_values): Remove local variable
6459 'tuple_cleanup'. Move some code into output_register.
6460 (get_register): Renamed to ...
6461 (output_register): ... this. Output the register's
6462 "number" ui_out tuple here.
6463
6464 2013-06-07 Pedro Alves <palves@redhat.com>
6465
6466 * darwin-nat.c: Fix formating in copyright header.
6467 * darwin-nat.h: Likewise.
6468 * gnu-nat.c: Likewise.
6469 * machoread.c: Likewise.
6470
6471 2013-06-07 Pedro Alves <palves@redhat.com>
6472
6473 PR server/14823
6474 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6475 static. Output a global target description pointer.
6476 (init_registers_${name}): Adjust to initialize a
6477 target description structure.
6478
6479 2013-06-07 Will Newton <will.newton@linaro.org>
6480
6481 * printcmd.c (build_address_symbolic): Call
6482 gdbarch_addr_bits_remove for text minimal symbols.
6483
6484 2013-06-07 Will Newton <will.newton@linaro.org>
6485
6486 * MAINTAINERS: Add myself to Write After Approval.
6487
6488 2013-06-07 Yao Qi <yao@codesourcery.com>
6489
6490 * tracepoint.c (start_tracing): Move code to ...
6491 (trace_reset_local_state): ... here. New.
6492 (disconnect_tracing): Don't call set_current_traceframe,
6493 set_tracepoint_num, and set_traceframe_context. Call
6494 trace_reset_local_state instead.
6495 (tfile_close): Call trace_reset_local_state.
6496 * ctf.c (ctf_close): Likewise.
6497 * remote.c (remote_close): Likewise.
6498 * tracepoint.h (trace_reset_local_state): Declare.
6499
6500 2013-06-06 Doug Evans <dje@google.com>
6501
6502 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6503 and fix header docs.
6504
6505 2013-06-05 Doug Evans <dje@google.com>
6506 Keith Seitz <keiths@redhat.com>
6507
6508 PR 15519
6509 * cp-namespace.c (find_symbol_in_baseclass): Call
6510 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6511 Check result of call to lookup_symbol_static.
6512 Call lookup_static_symbol_aux unconditionally.
6513 Call check_typedef on base types before accessing them.
6514 (cp_lookup_nested_symbol): Fix comment.
6515
6516 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6517
6518 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6519 minimal symbols pointing to function descriptors.
6520
6521 2013-06-05 Tom Tromey <tromey@redhat.com>
6522
6523 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6524
6525 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6526 Pedro Alves <palves@redhat.com>
6527
6528 * remote.c (remote_wait_as): Restore signal handler before returning
6529 when GDB gets a notification.
6530
6531 2013-06-04 Gary Benson <gbenson@redhat.com>
6532
6533 PR 2328
6534 * breakpoint.h (handle_solib_event): Moved function declaration
6535 to solib.h.
6536 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6537 (bpstat_stop_status): Pass new argument to handle_solib_event.
6538 * solib.h (update_solib_breakpoints): New function declaration.
6539 (handle_solib_event): Moved function declaration from
6540 breakpoint.h.
6541 * solib.c (update_solib_breakpoints): New function.
6542 (handle_solib_event): Moved function from breakpoint.c.
6543 Updated to call solib_ops->handle_event if not NULL.
6544 * solist.h (target_so_ops): New fields "update_breakpoints" and
6545 "handle_event".
6546 * infrun.c (set_stop_on_solib_events): New function.
6547 (_initialize_infrun): Use the above for "set
6548 stop-on-solib-events".
6549 (handle_inferior_event): Pass new argument to handle_solib_event.
6550 * solib-svr4.c (probe.h): New include.
6551 (svr4_free_library_list): New forward declaration.
6552 (probe_action): New enum.
6553 (probe_info): New struct.
6554 (probe_info): New static variable.
6555 (NUM_PROBES): New definition.
6556 (svr4_info): New fields "using_xfer", "probes_table" and
6557 "solib_list".
6558 (free_probes_table): New function.
6559 (free_solib_list): New function.
6560 (svr4_pspace_data_cleanup): Free probes table and solib list.
6561 (svr4_copy_library_list): New function.
6562 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6563 (svr4_read_so_list): New parameter "prev_lm".
6564 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6565 (svr4_current_sos): New function.
6566 (probe_and_action): New struct.
6567 (hash_probe_and_action): New function.
6568 (equal_probe_and_action): Likewise.
6569 (register_solib_event_probe): Likewise.
6570 (solib_event_probe_at): Likewise.
6571 (solib_event_probe_action): Likewise.
6572 (solist_update_full): Likewise.
6573 (solist_update_incremental): Likewise.
6574 (disable_probes_interface_cleanup): Likewise.
6575 (svr4_handle_solib_event): Likewise.
6576 (svr4_update_solib_event_breakpoint): Likewise.
6577 (svr4_update_solib_event_breakpoints): Likewise.
6578 (svr4_create_solib_event_breakpoints): Likewise.
6579 (enable_break): Free probes table before creating breakpoints.
6580 Use svr4_create_solib_event_breakpoints to create breakpoints.
6581 (svr4_solib_create_inferior_hook): Free the solib list.
6582 (_initialize_svr4_solib): Initialise
6583 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6584
6585 2013-06-04 Gary Benson <gbenson@redhat.com>
6586
6587 * target.h (target_ops): New field
6588 "to_augmented_libraries_svr4_read".
6589 (target_augmented_libraries_svr4_read): New macro.
6590 * target.c (update_current_target): Handle
6591 to_augmented_libraries_svr4_read.
6592 * remote.c (remote_state): New field
6593 "augmented_libraries_svr4_read".
6594 (remote_augmented_libraries_svr4_read_feature): New function.
6595 (remote_protocol_features): Add entry for
6596 "augmented-libraries-svr4-read".
6597 (remote_augmented_libraries_svr4_read): New function.
6598 (init_remote_ops): Initialize
6599 remote_ops.to_augmented_libraries_svr4_read.
6600
6601 2013-06-04 Gary Benson <gbenson@redhat.com>
6602
6603 * NEWS: Update.
6604
6605 2013-06-04 Gary Benson <gbenson@redhat.com>
6606
6607 * objfiles.h (inhibit_section_map_updates): New function
6608 declaration.
6609 (resume_section_map_updates): Likewise.
6610 (resume_section_map_updates_cleanup): Likewise.
6611 * objfiles.c (objfile_pspace_info): Removed field
6612 "objfiles_changed_p". New fields "new_objfiles_available",
6613 "section_map_dirty" and "inhibit_updates".
6614 (allocate_objfile): Set new_objfiles_available.
6615 (free_objfile): Set section_map_dirty.
6616 (objfile_relocate1): Likewise.
6617 (in_plt_section): Likewise.
6618 (find_pc_section): Update the conditions under which the
6619 section map will be updated.
6620 (inhibit_section_map_updates): New function.
6621 (resume_section_map_updates): Likewise.
6622 (resume_section_map_updates_cleanup): Likewise.
6623
6624 2013-06-04 Gary Benson <gbenson@redhat.com>
6625
6626 * probe.h (get_probe_argument_count): New declaration.
6627 (evaluate_probe_argument): Likewise.
6628 * probe.c (get_probe_argument_count): New function.
6629 (evaluate_probe_argument): Likewise.
6630 (probe_safe_evaluate_at_pc): Use the above new functions.
6631
6632 2013-06-04 Alan Modra <amodra@gmail.com>
6633
6634 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6635 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6636 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6637 target mem reads on optional insns.
6638 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6639 ppc_insns_match_pattern calls.
6640 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6641 Add match for power7 thread safety insns, and new order of
6642 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6643 invocation in comment, and update rest of comment.
6644 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6645 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6646 (ppc64_standard_linkage2_target): Update insn offsets.
6647 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6648 stubs first. Update calls.
6649
6650 2013-06-04 Yao Qi <yao@codesourcery.com>
6651
6652 * solib.c (solib_find): Don't need dir separator if path has
6653 drive spec.
6654
6655 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6656
6657 Revert (indirectly causes a SIGSEGV):
6658 * machoread.c (macho_symfile_read): Assign first cleanup to
6659 'back_to'.
6660
6661 2013-06-03 Yao Qi <yao@codesourcery.com>
6662
6663 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6664 mi-parse.c. Make them static.
6665 (mi_all_values): Likewise.
6666 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6667 mi_parse_print_values. Make it external.
6668 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6669 Remove the declarations.
6670 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6671 * mi/mi-parse.h (mi_parse_print_values): Declare.
6672 * mi/mi-cmd-stack.c: Include mi-parse.h.
6673 (parse_print_values): Remove
6674 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6675 of parse_print_values.
6676 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6677
6678 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6679 Yao Qi <yao@codesourcery.com>
6680
6681 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6682 (encode_actions): Move code to ...
6683 (all_tracepoint_actions_and_cleanup): ... here. New.
6684 (trace_dump_command): Likewise.
6685
6686 2013-05-30 Tom Tromey <tromey@redhat.com>
6687
6688 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6689
6690 2013-05-30 Tom Tromey <tromey@redhat.com>
6691
6692 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6693 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6694 'old_chain' argument. Add 'parser_result' argument.
6695 (gdb_xml_create_parser_and_cleanup): Remove old version.
6696 (gdb_xml_parse_quick): Update.
6697 (xml_process_xincludes): Update.
6698 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6699 declare.
6700
6701 2013-05-30 Tom Tromey <tromey@redhat.com>
6702
6703 * probe.c (collect_probes): Check arguments for NULL before
6704 calling compile_rx_or_error.
6705 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6706 Remove NULL return.
6707
6708 2013-05-30 Tom Tromey <tromey@redhat.com>
6709
6710 * infrun.c (adjust_pc_after_break): Introduce an outer null
6711 cleanup.
6712
6713 2013-05-30 Tom Tromey <tromey@redhat.com>
6714
6715 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6716
6717 2013-05-30 Tom Tromey <tromey@redhat.com>
6718
6719 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6720 for 'old_chain'. Do not check 'head' before processing
6721 cleanups.
6722
6723 2013-05-30 Tom Tromey <tromey@redhat.com>
6724
6725 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6726 "cleanup_tuple".
6727
6728 2013-05-30 Tom Tromey <tromey@redhat.com>
6729
6730 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6731 inner scope. Unconditionally call do_cleanups.
6732
6733 2013-05-30 Tom Tromey <tromey@redhat.com>
6734
6735 * source.c (find_and_open_source): Call do_cleanups.
6736
6737 2013-05-30 Tom Tromey <tromey@redhat.com>
6738
6739 * linux-thread-db.c (thread_db_load_search): Unconditionally
6740 call do_cleanups.
6741
6742 2013-05-30 Tom Tromey <tromey@redhat.com>
6743
6744 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6745 for 'cleanup'; instead use a later one.
6746
6747 2013-05-30 Tom Tromey <tromey@redhat.com>
6748
6749 * python/py-breakpoint.c (bppy_get_commands): Use
6750 explicit, unconditional return.
6751 * python/py-frame.c (frapy_read_var): Likewise.
6752 * python/python.c (gdbpy_decode_line): Likewise.
6753
6754 2013-05-30 Tom Tromey <tromey@redhat.com>
6755
6756 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6757 do_cleanups on all return paths.
6758
6759 2013-05-30 Tom Tromey <tromey@redhat.com>
6760
6761 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6762
6763 2013-05-30 Tom Tromey <tromey@redhat.com>
6764
6765 * stabsread.c (read_struct_type): Call do_cleanups along
6766 all return paths.
6767
6768 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6769
6770 * mips-linux-tdep.c: Adjust formatting throughout.
6771
6772 2013-05-30 Tom Tromey <tromey@redhat.com>
6773
6774 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6775 along all return paths.
6776
6777 2013-05-30 Tom Tromey <tromey@redhat.com>
6778
6779 * symfile.c (find_separate_debug_file): Call do_cleanups
6780 along all return paths.
6781
6782 2013-05-30 Tom Tromey <tromey@redhat.com>
6783
6784 * symtab.c (search_symbols): Introduce a null cleanup for
6785 'retval_chain'.
6786
6787 2013-05-30 Tom Tromey <tromey@redhat.com>
6788
6789 * python/py-value.c (valpy_binop): Call do_cleanups before
6790 exiting loop.
6791
6792 2013-05-30 Tom Tromey <tromey@redhat.com>
6793
6794 * python/py-prettyprint.c (print_children): Remove extra
6795 do_cleanups call.
6796
6797 2013-05-30 Tom Tromey <tromey@redhat.com>
6798
6799 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6800 all return paths.
6801
6802 2013-05-30 Tom Tromey <tromey@redhat.com>
6803
6804 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6805 along all return paths.
6806
6807 2013-05-30 Tom Tromey <tromey@redhat.com>
6808
6809 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6810 call do_cleanups.
6811
6812 2013-05-30 Tom Tromey <tromey@redhat.com>
6813
6814 * varobj.c (c_value_of_root): Call do_cleanups along all
6815 return paths.
6816
6817 2013-05-30 Tom Tromey <tromey@redhat.com>
6818
6819 * tracepoint.c (trace_dump_command): Unconditionally call
6820 do_cleanups.
6821
6822 2013-05-30 Tom Tromey <tromey@redhat.com>
6823
6824 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6825 do_cleanups earlier.
6826
6827 2013-05-30 Tom Tromey <tromey@redhat.com>
6828
6829 * machoread.c (macho_symfile_read): Assign first cleanup to
6830 'back_to'.
6831
6832 2013-05-30 Tom Tromey <tromey@redhat.com>
6833
6834 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6835
6836 2013-05-30 Tom Tromey <tromey@redhat.com>
6837
6838 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6839
6840 2013-05-30 Tom Tromey <tromey@redhat.com>
6841
6842 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6843 call discard_cleanups.
6844 (inf_ptrace_attach): Likewise.
6845
6846 2013-05-30 Tom Tromey <tromey@redhat.com>
6847
6848 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6849 return paths.
6850 (mips_initialize): Likewise.
6851 (common_open): Call do_cleanups.
6852
6853 2013-05-30 Tom Tromey <tromey@redhat.com>
6854
6855 * utils.c (internal_vproblem): Call do_cleanups.
6856
6857 2013-05-30 Tom Tromey <tromey@redhat.com>
6858
6859 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6860
6861 2013-05-30 Tom Tromey <tromey@redhat.com>
6862
6863 * cli/cli-script.c (setup_user_args): Don't return after error.
6864
6865 2013-05-30 Tom Tromey <tromey@redhat.com>
6866
6867 * somread.c (som_symtab_read): Call do_cleanups.
6868
6869 2013-05-30 Tom Tromey <tromey@redhat.com>
6870
6871 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6872
6873 2013-05-30 Tom Tromey <tromey@redhat.com>
6874
6875 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6876 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6877 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6878 * source.c (show_substitute_path_command): Call do_cleanups.
6879 (unset_substitute_path_command, set_substitute_path_command):
6880 Likewise.
6881 * symfile.c (load_command): Call do_cleanups.
6882
6883 2013-05-30 Tom Tromey <tromey@redhat.com>
6884
6885 * contrib/cleanup_check.py: New file.
6886 * contrib/gcc-with-excheck: Add option parsing.
6887
6888 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6889
6890 * windows-nat.c (windows_delete_thread): Add missing space
6891 in cast expression.
6892
6893 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6894
6895 * inferior.c (top level): Include tilde.h.
6896 (add_inferior_command): Call tilde_expand on the value of 'exec'
6897 argument.
6898
6899 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6900 Yao Qi <yao@codesourcery.com>
6901
6902 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6903 Caller update.
6904 (encode_actions): Likewise.
6905 * remote.c (remote_download_tracepoint): Caller update.
6906 * tracepoint.h (encode_actions): Update declaration.
6907
6908 2013-05-30 Pedro Alves <palves@redhat.com>
6909
6910 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6911 pointer.
6912
6913 2013-05-30 Yao Qi <yao@codesourcery.com>
6914
6915 * remote.c (remote_check_symbols): Remove unused parameter
6916 'objfile'.
6917 Declaration update.
6918 (remote_start_remote, remote_new_objfile): Caller update.
6919
6920 2013-05-30 Yao Qi <yao@codesourcery.com>
6921
6922 * mi/mi-cmds.c (mi_cmds): Define MI command
6923 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6924 DEF_MI_CMD_CLI.
6925
6926 2013-05-29 Pedro Alves <palves@redhat.com>
6927
6928 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6929 (remote_insert_watchpoint, remote_remove_watchpoint)
6930 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6931 (remote_verify_memory, compare_sections_command)
6932 (remote_search_memory): Set the general process/thread on the
6933 remote side.
6934
6935 2013-05-29 Pedro Alves <palves@redhat.com>
6936
6937 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6938 (_initialize_aarch64_tdep): Don't call
6939 initialize_tdesc_aarch64_without_fpu.
6940 * features/Makefile (WHICH): Remove reference to
6941 aarch64-without-fpu.
6942 * features/aarch64-without-fpu.c: Delete file.
6943 * regformats/aarch64-without-fpu.dat: Delete file.
6944
6945 2013-05-28 Yao Qi <yao@codesourcery.com>
6946
6947 * tracepoint.c (stringify_collection_list): Remove parameter
6948 'string'.
6949 (encode_actions): Caller update. Remove local variables.
6950
6951 2013-05-24 Yao Qi <yao@codesourcery.com>
6952
6953 * tracepoint.c (TFILE_PID): Remove.
6954 (tfile_open): Don't add thread and inferior.
6955 (tfile_close): Don't set 'inferior_ptid'. Don't call
6956 exit_inferior_silent.
6957 (tfile_thread_alive): Remove.
6958 (init_tfile_ops): Don't set field 'to_thread_alive' of
6959 tfile_ops.
6960
6961 2013-05-23 Doug Evans <dje@google.com>
6962
6963 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6964
6965 2013-05-23 Pedro Alves <palves@redhat.com>
6966
6967 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6968 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6969 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6970 Only define if HAVE_SOCKETS is defined.
6971 * configure.ac: Check for sys/socket.h.
6972 * config.in, configure: Regenerate.
6973
6974 2013-05-23 Pedro Alves <palves@redhat.com>
6975
6976 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6977 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6978 printing uint32_t variables.
6979
6980 2013-05-23 Pedro Alves <palves@redhat.com>
6981
6982 * NEWS: Mention GDBserver range stepping support.
6983
6984 2013-05-23 Yao Qi <yao@codesourcery.com>
6985 Pedro Alves <palves@redhat.com>
6986
6987 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6988 field.
6989 * infcmd.c (step_once, until_next_command): Enable range stepping.
6990 * infrun.c (displaced_step_prepare): Disable range stepping.
6991 (resume): Disable range stepping if stepping over a breakpoint or
6992 we have software watchpoints. If range stepping is enabled,
6993 assert the thread is in the stepping range.
6994 (clear_proceed_status_thread): Clear may_range_step.
6995 (handle_inferior_event): Disable range stepping as soon as we know
6996 the thread that hit the event. Re-enable it whenever we're going
6997 to step with a step range.
6998 * remote.c (struct vCont_action_support) <r>: New field.
6999 (use_range_stepping): New global.
7000 (remote_vcont_probe): Handle 'r' action.
7001 (append_resumption): Append an 'r' action if the thread may range
7002 step.
7003 (show_range_stepping): New function.
7004 (set_range_stepping): New function.
7005 (_initialize_remote): Call add_setshow_boolean_cmd to register the
7006 'set range-stepping' and 'show range-stepping' commands.
7007 * NEWS: Mention range stepping, the new vCont;r action, and the
7008 new "set/show range-stepping" commands.
7009
7010 2013-05-23 Yao Qi <yao@codesourcery.com>
7011 Pedro Alves <palves@redhat.com>
7012
7013 * remote.c (struct vCont_action_support): New struct.
7014 (struct remote_state) <support_vCont_t>: Remove field.
7015 <vCont_actions_support>: New field.
7016 (remote_vcont_probe, remote_stop_ns): Update.
7017
7018 2013-05-23 Yao Qi <yao@codesourcery.com>
7019 Pedro Alves <palves@redhat.com>
7020
7021 * gdbthread.h (pc_in_thread_step_range): New declaration.
7022 * thread.c (pc_in_thread_step_range): New function.
7023 * infrun.c (handle_inferior_event): Use it.
7024
7025 2013-05-23 Joel Brobecker <brobecker@adacore.com>
7026
7027 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
7028 of sprintf.
7029
7030 2013-05-22 Keith Seitz <keiths@redhat.com>
7031
7032 * ada-lang.c (is_known_support_routine): Add explicit free of
7033 'func_name' from find_frame_funname.
7034 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7035 for func_name from find_frame_funname.
7036 * python/py-frame.c (frapy_name): Add explicit free of
7037 'name' from find_frame_funname.
7038 * stack.c (find_frame_funname): Add comment explaining that
7039 funcp must be freed by the caller.
7040 Return copy of symbol names instead of pointers.
7041 (print_frame): Add a cleanup for 'funname' from
7042 find_frame_funname.
7043 * stack.h (find_frame_funname): Remove "const" from
7044 'funname' parameter.
7045
7046 2013-05-22 Tom Tromey <tromey@redhat.com>
7047
7048 PR c++/15401:
7049 * c-valprint.c (c_value_print): Use value_addr for
7050 references. Convert back to reference type with value_ref.
7051
7052 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7053
7054 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7055 unloaded DLL, it will be done by handle_solib_event. See
7056 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7057 details.
7058
7059 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7060
7061 * ui-out.c: Create typedef ui_out_level_p and define vector
7062 operations for that type.
7063 (struct ui_out): Use a vector instead of an array.
7064 (current_level): Return level from a vector.
7065 (push_level): Create a level in a vector.
7066 (pop_level): Delete a level in a vector.
7067 (ui_out_new): Create initial level zero level, and store in a
7068 vector.
7069 (ui_out_destroy): Add vector cleanup.
7070
7071 2013-05-22 Pedro Alves <palves@redhat.com>
7072
7073 * python/python-internal.h (gdb_Py_DECREF): Tag with
7074 "ARI: editCase function".
7075
7076 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7077
7078 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7079
7080 2013-05-21 Pedro Alves <palves@redhat.com>
7081
7082 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7083 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7084 * python/py-utils.c (py_decref): Don't check for NULL before
7085 calling Py_DECREF.
7086
7087 2013-05-21 Pedro Alves <palves@redhat.com>
7088
7089 * python/py-utils.c (py_decref): Remove extra braces.
7090 (gdb_pymodule_addobject): Remove extra braces.
7091 * python-internal.h (gdb_Py_DECREF): New static inline function.
7092 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7093
7094 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7095
7096 * breakpoints.c (detach_breakpoints): Do not
7097 detach breakpoints locations with loc_type bp_loc_other.
7098
7099 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 Workaround Python 2.6.
7102 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7103 a block.
7104
7105 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7106
7107 Code cleanup: constification.
7108 * solib.c (solib_ops): Make return type and ops variable type const.
7109 (set_solib_ops): Make the new_ops parameter and ops variable const.
7110 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7111 (solib_add, solib_keep_data_in_core, clear_solib)
7112 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7113 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7114 const.
7115 * solib.h (set_solib_ops): Make the new_ops parameter const.
7116
7117 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7118
7119 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7120 variable.
7121 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7122 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7123 (SYSTEM_GDBINIT_FILES): New variables.
7124 (all): Add stamp-system-gdbinit.
7125 (stamp-system-gdbinit): New rule.
7126 (clean-system-gdbinit, install-system-gdbinit)
7127 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7128 (install-only): Add dependency on install-system-gdbinit.
7129 (uninstall): Add dependency on uninstall-system-gdbinit.
7130 (clean): Add dependency on clean-system-gdbinit.
7131 * system-gdbinit/elinos.py: New file.
7132 * system-gdbinit/wrs-linux.py: New file.
7133
7134 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7135
7136 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7137
7138 2013-05-21 Hui Zhu <hui@codesourcery.com>
7139
7140 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7141 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7142 * mi/mi-cmd-break.c (ctype.h): New include.
7143 (gdb_obstack.h): New include.
7144 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7145 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7146 (mi_cmd_dprintf_insert): New.
7147 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7148 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7149
7150 2013-05-20 Tom Tromey <tromey@redhat.com>
7151
7152 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7153
7154 2013-05-20 Tom Tromey <tromey@redhat.com>
7155
7156 * python/py-value.c (valpy_get_dynamic_type): Simplify
7157 dynamic_type assignment. Use Py_XINCREF.
7158
7159 2013-05-20 Tom Tromey <tromey@redhat.com>
7160
7161 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7162
7163 2013-05-20 Tom Tromey <tromey@redhat.com>
7164
7165 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7166 (gdbpy_selected_frame): Move object-construction code
7167 out of TRY_CATCH.
7168
7169 2013-05-20 Tom Tromey <tromey@redhat.com>
7170
7171 * python/py-arch.c (gdbpy_initialize_arch): Use
7172 gdb_pymodule_addobject.
7173 * python/py-block.c (gdbpy_initialize_blocks): Use
7174 gdb_pymodule_addobject.
7175 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7176 gdb_pymodule_addobject.
7177 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7178 gdb_pymodule_addobject.
7179 * python/py-event.c (gdbpy_initialize_event_generic): Use
7180 gdb_pymodule_addobject.
7181 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7182 gdb_pymodule_addobject.
7183 * python/py-evts.c (add_new_registry): Use
7184 gdb_pymodule_addobject.
7185 (gdbpy_initialize_py_events): Likewise.
7186 * python/py-finishbreakpoint.c
7187 (gdbpy_initialize_finishbreakpoints): Use
7188 gdb_pymodule_addobject.
7189 * python/py-frame.c (gdbpy_initialize_frames): Use
7190 gdb_pymodule_addobject.
7191 * python/py-function.c (gdbpy_initialize_functions): Use
7192 gdb_pymodule_addobject.
7193 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7194 gdb_pymodule_addobject.
7195 * python/py-infthread.c (gdbpy_initialize_thread): Use
7196 gdb_pymodule_addobject.
7197 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7198 gdb_pymodule_addobject.
7199 * python/py-param.c (gdbpy_initialize_parameters): Use
7200 gdb_pymodule_addobject.
7201 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7202 gdb_pymodule_addobject.
7203 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7204 gdb_pymodule_addobject.
7205 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7206 gdb_pymodule_addobject.
7207 * python/py-type.c (gdbpy_initialize_types): Use
7208 gdb_pymodule_addobject.
7209 * python/py-utils.c (gdb_pymodule_addobject): New function.
7210 * python/py-value.c (gdbpy_initialize_values): Use
7211 gdb_pymodule_addobject.
7212 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7213 * python/python.c (_initialize_python): Use
7214 gdb_pymodule_addobject.
7215
7216 2013-05-20 Tom Tromey <tromey@redhat.com>
7217
7218 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7219 * python/py-param.c (get_set_value, get_show_value): Use
7220 explicit decrefs.
7221 * python/python.c (start_type_printers, apply_type_printers):
7222 Use explicit decrefs.
7223
7224 2013-05-20 Tom Tromey <tromey@redhat.com>
7225
7226 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7227 incref the module.
7228
7229 2013-05-20 Tom Tromey <tromey@redhat.com>
7230
7231 * python/python.c (gdbpy_run_events): Decref the result
7232 of PyObject_CallObject.
7233
7234 2013-05-20 Tom Tromey <tromey@redhat.com>
7235
7236 * python/py-symtab.c (set_sal): Use
7237 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7238 (symtab_and_line_to_sal_object): Update.
7239
7240 2013-05-20 Tom Tromey <tromey@redhat.com>
7241
7242 * python/py-param.c (compute_enum_values): Decref 'item'.
7243
7244 2013-05-20 Tom Tromey <tromey@redhat.com>
7245
7246 * mi/mi-main.c: Include python-internal.h.
7247 (mi_cmd_list_features): Check gdb_python_initialized.
7248 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7249 (python_inferior_exit, python_new_objfile, add_thread_object)
7250 (delete_thread_object, py_free_inferior): Check
7251 gdb_python_initialized.
7252 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7253 gdb_python_initialized.
7254 * python/py-type.c (save_objfile_types): Check
7255 gdb_python_initialized.
7256 * python/python-internal.h (gdb_python_initialized): Declare.
7257 * python/python.c (ensure_python_env): Throw exception if
7258 Python not initialized.
7259 (before_prompt_hook, source_python_script_for_objfile)
7260 (start_type_printers, apply_type_printers,
7261 free_type_printers): Check gdb_python_initialized.
7262 * varobj.c (varobj_get_display_hint)
7263 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7264 (install_new_value_visualizer, varobj_set_visualizer)
7265 (value_get_print_value): Check gdb_python_initialized.
7266
7267 2013-05-20 Tom Tromey <tromey@redhat.com>
7268
7269 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7270 Check errors.
7271 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7272 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7273 Check errors.
7274 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7275 Check errors.
7276 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7277 Check errors.
7278 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7279 Check errors.
7280 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7281 init function to return 'int'.
7282 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7283 Return 'int'. Check errors.
7284 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7285 Check errors.
7286 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7287 Return 'int'. Check errors.
7288 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7289 Check errors.
7290 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7291 Check errors.
7292 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7293 Check errors.
7294 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7295 Check errors.
7296 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7297 Check errors.
7298 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7299 Check errors.
7300 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7301 Check errors.
7302 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7303 Check errors.
7304 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7305 Check errors.
7306 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7307 Check errors.
7308 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7309 Check errors.
7310 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7311 Check errors.
7312 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7313 Check errors.
7314 * python/python-internal.h (gdbpy_initialize_auto_load,
7315 gdbpy_initialize_values, gdbpy_initialize_frames,
7316 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7317 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7318 gdbpy_initialize_blocks, gdbpy_initialize_types,
7319 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7320 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7321 gdbpy_initialize_finishbreakpoints,
7322 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7323 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7324 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7325 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7326 gdbpy_initialize_signal_event,
7327 gdbpy_initialize_breakpoint_event,
7328 gdbpy_initialize_continue_event,
7329 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7330 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7331 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7332 * python/python.c (gdb_python_initialized): New global.
7333 (gdbpy_initialize_events): Return 'int'. Check errors.
7334 (_initialize_python): Check errors. Set
7335 gdb_python_initialized.
7336
7337 2013-05-20 Tom Tromey <tromey@redhat.com>
7338
7339 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7340 Decref the reslut of PyObject_CallMethod.
7341
7342 2013-05-20 Tom Tromey <tromey@redhat.com>
7343
7344 * python/py-event.c (gdbpy_initialize_event_generic): Return
7345 early if PyType_Ready fails.
7346
7347 2013-05-20 Tom Tromey <tromey@redhat.com>
7348
7349 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7350 as 'default' in the switch.
7351
7352 2013-05-20 Tom Tromey <tromey@redhat.com>
7353
7354 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7355 get_addr_from_python calls out of TRY_CATCH.
7356 (infpy_write_memory, infpy_search_memory): Likewise.
7357 * python/py-utils.c (get_addr_from_python): Return negative
7358 value on error. Use TRY_CATCH.
7359 * python/python-internal.h (get_addr_from_python): Use
7360 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7361
7362 2013-05-20 Tom Tromey <tromey@redhat.com>
7363
7364 * python/py-event.c (evpy_emit_event): Decref the
7365 result of PyObject_CallFunctionObjArgs.
7366
7367 2013-05-20 Tom Tromey <tromey@redhat.com>
7368
7369 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7370 Correctly decref.
7371
7372 2013-05-20 Tom Tromey <tromey@redhat.com>
7373
7374 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7375
7376 2013-05-20 Tom Tromey <tromey@redhat.com>
7377
7378 * python/py-event.h (gdbpy_initialize_event_generic): Use
7379 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7380 * python/py-evts.c (add_new_registry): Use
7381 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7382 * python/python-internal.h
7383 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7384
7385 2013-05-20 Tom Tromey <tromey@redhat.com>
7386
7387 * python/py-arch.c (archpy_disassemble): Update.
7388 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7389 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7390 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7391 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7392 macro.
7393 (GDB_PY_HANDLE_EXCEPTION): Update.
7394 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7395
7396 2013-05-20 Tom Tromey <tromey@redhat.com>
7397
7398 * python/python-internal.h (events_object_type): Remove.
7399
7400 2013-05-20 Tom Tromey <tromey@redhat.com>
7401
7402 * python/py-event.h (evpy_emit_event): Use
7403 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7404 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7405 New macro.
7406
7407 2013-05-20 Tom Tromey <tromey@redhat.com>
7408
7409 * py-evtregistry.c (create_event_object): Decref
7410 eventregistry_object if PyList_New fails.
7411
7412 2013-05-20 Tom Tromey <tromey@redhat.com>
7413
7414 * py-cmd.c (gdbpy_string_to_argv): Check result of
7415 PyList_New.
7416
7417 2013-05-20 Tom Tromey <tromey@redhat.com>
7418
7419 * python/python.c (before_prompt_hook): Add cleanup to
7420 decref 'hook'.
7421
7422 2013-05-20 Tom Tromey <tromey@redhat.com>
7423
7424 * python/py-function.c (fnpy_init): Decref result of
7425 PyObject_GetAttrString.
7426
7427 2013-05-20 Tom Tromey <tromey@redhat.com>
7428
7429 * python/py-threadevent.c (get_event_thread): Use
7430 CPYCHECKER_RETURNS_BORROWED_REF.
7431 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7432 New define.
7433 (pspace_to_pspace_object, objfile_to_objfile_object)
7434 (find_thread_object): Use it.
7435
7436 2013-05-20 Tom Tromey <tromey@redhat.com>
7437
7438 * python/py-arch.c (arch_object_type): Use
7439 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7440 * python/py-block.c (block_syms_iterator_object_type):
7441 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7442 * python/py-bpevent.c (breakpoint_event_object_type):
7443 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7444 * python/py-cmd.c (cmdpy_object_type): Use
7445 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7446 * python/py-continueevent.c (continue_event_object_type):
7447 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7448 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7449 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7450 * python/py-events.h (thread_event_object_type):
7451 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7452 * python/py-evtregistry.c (eventregistry_object_type): Use
7453 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7454 * python/py-exitedevent.c (exited_event_object_type):
7455 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7456 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7457 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7458 * python/py-function.c (fnpy_object_type): Use
7459 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7460 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7461 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7462 * python/py-infthread.c (thread_object_type): Use
7463 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7464 * python/py-lazy-string.c (lazy_string_object_type):
7465 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7466 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7467 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7468 * python/py-objfile.c (objfile_object_type): Use
7469 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7470 * python/py-param.c (parmpy_object_type):
7471 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7472 * python/py-progspace.c (pspace_object_type):
7473 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7474 * python/py-signalevent.c (signal_event_object_type):
7475 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7476 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7477 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7478 * python/py-type.c (type_object_type, field_object_type)
7479 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7480 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7481 define.
7482 (value_object_type, block_object_type, symbol_object_type)
7483 (event_object_type, stop_event_object_type, breakpoint_object_type)
7484 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7485
7486 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7487
7488 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7489 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7490
7491 2013-05-20 Doug Evans <dje@google.com>
7492
7493 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7494 For Fission.
7495 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7496 reading_dwo_directly.
7497 (struct signatured_type): New member dwo_unit.
7498 (struct die_reader_specs): New member comp_dir.
7499 (create_signatured_type_table_from_index): Use malloc for
7500 all_type_units instead of objfile's obstack.
7501 (create_all_type_units): Ditto.
7502 (fill_in_sig_entry_from_dwo_entry): New function.
7503 (add_type_unit): New function.
7504 (lookup_dwo_signatured_type): New function.
7505 (lookup_dwp_signatured_type): New function.
7506 (lookup_signatured_type): New arg cu. All callers updated.
7507 (init_cu_die_reader): Initialize comp_dir.
7508 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7509 Change assert of matching type signatures to call error on mismatch.
7510 (lookup_dwo_unit): Add assert.
7511 (init_tu_and_read_dwo_dies): New function.
7512 (init_cutu_and_read_dies): Call it.
7513 (build_type_unit_groups): Handle case of no type unit groups created.
7514 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7515 (lookup_dwo_cutu): Tweak complaint.
7516 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7517 (dwarf2_per_objfile_free): Free all_type_units.
7518
7519 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7520
7521 * windows-nat.c (handle_unload_dll): Add missing empty line.
7522
7523 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7524
7525 * dwarf2read.c (prototyped_function_p): New function.
7526 (read_subroutine_type): Use it.
7527
7528 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7529
7530 * rs6000-aix-tdep.c: De-indent some example code provided
7531 as a comment.
7532
7533 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7534
7535 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7536 region is ok for a hardware watchpoint using the new ptrace interface
7537 on Power servers.
7538
7539 2013-05-17 Doug Evans <dje@google.com>
7540
7541 * NEWS: Mention new maintenance commands check-symtabs, and
7542 expand-symtabs, and renamed check-psymtabs.
7543 * psymtab.c (maintenance_check_psymtabs): Renamed from
7544 maintenance_check_symtabs. Only process already-expanded symbol
7545 tables.
7546 (_initialize_psymtab): Update.
7547 * symmisc.c (maintenance_check_symtabs): New function.
7548 (maintenance_expand_name_matcher): New function
7549 (maintenance_expand_file_matcher): New function
7550 (maintenance_expand_symtabs): New function.
7551 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7552 commands.
7553
7554 2013-05-17 Tom Tromey <tromey@redhat.com>
7555
7556 * python/py-inferior.c (infpy_read_memory): Don't call
7557 PyErr_SetString if PyObject_New fails.
7558 * python/py-frame.c (frame_info_to_frame_object): Don't call
7559 PyErr_SetString if PyObject_New fails.
7560
7561 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7562
7563 * acinclude.m4: Add check for dlopen in libdl.
7564 * configure.ac: Ditto.
7565 * configure: Regenerate.
7566
7567 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7568
7569 * frame.c (frame_stash): Convert to htab.
7570 (frame_addr_hash): New function.
7571 (frame_addr_hash_eq): New function.
7572 (frame_stash_create): Convert function to create
7573 a hash table.
7574 (frame_stash_add): Convert function to add an entry to a hash
7575 table.
7576 (frame_stash_find): Convert function to search the hash table.
7577 (frame_stash_invalidate): Convert function to empty the hash
7578 table.
7579 (get_frame_id): Only add to stash if a frame_id is created.
7580 (_initialize_frame): Call frame_stash_create.
7581
7582 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7583
7584 * configure.ac: Ensure MIG is available when building for GNU Hurd
7585 hosts.
7586 * configure: Regenerate.
7587
7588 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7589
7590 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7591
7592 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7593
7594 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7595 all cleanups are done before returning from this function.
7596
7597 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7598
7599 * utils.h: #include "exceptions.h".
7600 (enum errors): Remove partial declaration.
7601
7602 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7603
7604 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7605 * gdbarch.h, gdbarch.c: Regenerate.
7606 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7607 handling.
7608
7609 * rs6000-aix-tdep.h: New file.
7610 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7611 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7612 "xml-utils.h".
7613 (struct field_info, struct ld_info_desc): New types.
7614 (ld_info32_desc, ld_info64_desc): New static constants.
7615 (struct ld_info): New type.
7616 (rs6000_aix_extract_ld_info): New function.
7617 (rs6000_aix_shared_library_to_xml): Likewise.
7618 (rs6000_aix_ld_info_to_xml): Likewise.
7619 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7620 (rs6000_aix_init_osabi): Add call to
7621 set_gdbarch_core_xfer_shared_libraries_aix.
7622 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7623 Remove "xml-utils.h" include.
7624 (LdInfo): Delete typedef.
7625 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7626 Delete macros.
7627 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7628 Adjust code accordingly.
7629 (rs6000_core_ldinfo): Delete, folded into
7630 rs6000_aix_core_xfer_shared_libraries_aix.
7631 (rs6000_xfer_shared_library): Delete.
7632 (rs6000_xfer_shared_libraries): Reimplement.
7633
7634 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7635
7636 * record.c (record_goto_cmdlist): New.
7637 (cmd_record_goto): Split into this ...
7638 (cmd_record_goto_begin): ... this
7639 (cmd_record_goto_end): ... and this.
7640 (_initialize_record): Change "record goto" to prefix command.
7641 Add commands for "record goto begin" and "record goto end".
7642 Add an alias for "record goto start" to "record goto begin".
7643
7644 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 * linespec.c (convert_linespec_to_sals): New comment for
7647 SOURCE_FILENAME assignment.
7648
7649 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7652 internal_warning.
7653
7654 2013-05-14 Tom Tromey <tromey@redhat.com>
7655
7656 * eval.c (parse_and_eval_long): Make 'exp' const.
7657 * value.h (parse_and_eval_long): Update.
7658
7659 2013-05-14 Tom Tromey <tromey@redhat.com>
7660
7661 * ui-file.c (gdb_fopen): Make arguments const.
7662 * ui-file.h (gdb_fopen): Make arguments const.
7663
7664 2013-05-14 Tom Tromey <tromey@redhat.com>
7665
7666 * remote.c (remote_set_trace_notes): Make arguments const.
7667 * target.c (update_current_target): Update cast.
7668 * target.h (to_set_trace_notes): Make arguments const.
7669
7670 2013-05-14 Tom Tromey <tromey@redhat.com>
7671
7672 * go32-nat.c (go32_terminal_info): Make 'args' const.
7673 * inferior.h (child_terminal_info): Update.
7674 * inflow.c (child_terminal_info): Make 'args' const.
7675 * target.c (default_terminal_info): Make 'args' const.
7676 (debug_to_terminal_save_ours): Likewise.
7677 * target.h (struct target_ops) <to_terminal_info>: Make argument
7678 const.
7679
7680 2013-05-13 Tom Tromey <tromey@redhat.com>
7681
7682 * gcore.c (create_gcore_bfd): Make 'filename' const.
7683 * gcore.h (create_gcore_bfd): Make 'filename' const.
7684 * record-full.c (record_full_save): Make 'recfilename' const.
7685 * target.c (target_save_record): Make 'filename' const.
7686 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7687 const.
7688 (target_save_record): Likewise.
7689
7690 2013-05-13 Tom Tromey <tromey@redhat.com>
7691
7692 PR gdb/15338:
7693 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7694 ranges section has been read.
7695
7696 2013-05-13 Tom Tromey <tromey@redhat.com>
7697
7698 PR exp/15364:
7699 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7700 STRUCTOP_PTR>: Return a not_lval value for
7701 EVAL_AVOID_SIDE_EFFECTS.
7702 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7703 for EVAL_AVOID_SIDE_EFFECTS.
7704
7705 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7706
7707 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7708 floating point registers to register type before storing
7709 value.
7710 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7711 Likewise.
7712
7713 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7714 Tom Tromey <tromey@redhat.com>
7715
7716 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7717 New functions.
7718 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7719 Declare.
7720 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7721 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7722 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7723 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7724
7725 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7726 Tom Tromey <tromey@redhat.com>
7727
7728 PR build/15414:
7729 * configure: Rebuild.
7730 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7731 with -Wno-format.
7732
7733 2013-05-10 Pedro Alves <palves@redhat.com>
7734
7735 * remote.c (_initialize_remote): Fix spelling of
7736 qXfer:traceframe-info:read packet in packet config command.
7737
7738 2013-05-10 David Taylor <dtaylor@emc.com>
7739
7740 PR remote/15455
7741
7742 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7743 "QTro" at start of packet.
7744
7745 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7746
7747 * solib-aix.c (solib_aix_relocate_section_addresses):
7748 For the .bss section action, apply the same offset as
7749 the .data section.
7750
7751 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7752
7753 * solib-aix.c (solib_aix_relocate_section_addresses):
7754 Remove FIXME comment.
7755
7756 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7757
7758 PR tdep/15420:
7759 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7760 New functions, directly copied from sparc-sol-thread.c.
7761 * sparc-sol-thread.c: Delete.
7762 * configure.ac: Remove code handling sparc-solaris-thread.c.
7763 * configure: Regenerate.
7764
7765 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7766
7767 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7768 filter logic.
7769 (backtrace_command): Add "no-filters" option parsing.
7770 (_initialize_stack): Alter help to reflect "no-filters" option.
7771 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7772 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7773 (py-frame.o): Add target
7774 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7775 filter files.
7776 * python/python.h: Add new frame filter constants, and flag enum.
7777 (apply_frame_filter): Add definition.
7778 * python/python.c (apply_frame_filter): New non-Python
7779 enabled function.
7780 * python/py-utils.c (py_xdecref): New function.
7781 (make_cleanup_py_xdecref): Ditto.
7782 * python/py-objfile.c: Declare frame_filters dictionary.
7783 (objfpy_dealloc): Add frame_filters dealloc.
7784 (objfpy_new): Initialize frame_filters attribute.
7785 (objfile_to_objfile_object): Ditto.
7786 (objfpy_get_frame_filters): New function.
7787 (objfpy_set_frame_filters): New function.
7788 * python/py-progspace.c: Declare frame_filters dictionary.
7789 (pspy_dealloc): Add frame_filters dealloc.
7790 (pspy_new): Initialize frame_filters attribute.
7791 (pspacee_to_pspace_object): Ditto.
7792 (pspy_get_frame_filters): New function.
7793 (pspy_set_frame_filters): New function.
7794 * python/py-framefilter.c: New file.
7795 * python/lib/gdb/command/frame_filters.py: New file.
7796 * python/lib/gdb/frames.py: New file.
7797 * python/lib/gdb/__init__.py: Initialize global frame_filters
7798 dictionary
7799 * python/lib/gdb/FrameDecorator.py: New file.
7800 * python/lib/gdb/FrameIterator.py: New file.
7801 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7802 * mi/mi-cmds.h: Declare.
7803 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7804 --no-frame-filter logic, and Python frame filter logic.
7805 (stack_enable_frame_filters): New function.
7806 (parse_no_frame_option): Ditto.
7807 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7808 filter logic.
7809 (mi_cmd_stack_list_locals): Ditto.
7810 (mi_cmd_stack_list_args): Ditto.
7811 (mi_cmd_stack_list_variables): Ditto.
7812 * NEWS: Add frame filter note.
7813
7814 2013-05-09 Doug Evans <dje@google.com>
7815
7816 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7817 All callers updated.
7818 (syms_from_objfile): Ditto. Make static.
7819 (symbol_file_add_with_addrs): Renamed from
7820 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7821 num_offsets. All callers updated.
7822 * symfile.h (syms_from_objfile): Delete.
7823
7824 * symfile.c (decrement_reading_symtab): Add assert.
7825 (increment_reading_symtab): Ditto.
7826
7827 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7828
7829 * source.c (forward_search_command): Replace call to getc
7830 by call to fgetc.
7831 (reverse_search_command): Likewise.
7832
7833 2013-05-08 Doug Evans <dje@google.com>
7834
7835 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7836 matching test.
7837
7838 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7839
7840 * sol-thread.c (info_cb): Factorize the code a little.
7841
7842 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7843
7844 * sol-thread.c (info_cb): Rework the output of the "maintenance
7845 info sol-threads" command a bit.
7846
7847 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7848
7849 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7850 Replace ti.ti_startfunc by ti.ti_pc.
7851
7852 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7853
7854 * solib-aix.c (solib_aix_free_library_list): New function
7855 for the case where HAVE_LIBEXPAT is not defined.
7856
7857 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 PR breakpoints/15413:
7860 * breakpoint.c (condition_completer): Simplify the code to
7861 disconsider multiple locations of breakpoints when completing the
7862 "condition" command.
7863
7864 2013-05-07 Pierre Muller <muller@sourceware.org>
7865
7866 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7867 instead of <sys/wait.h>.
7868
7869 2013-05-07 Pierre Muller <muller@sourceware.org>
7870
7871 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7872 trailing new line from warning message.
7873
7874 2013-05-07 Pierre Muller <muller@sourceware.org>
7875
7876 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7877 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7878
7879 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7880
7881 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7882 error message (ARI fix).
7883
7884 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7885
7886 * features/library-list-aix.dtd: Replace library-list by
7887 library-list-aix.
7888 * rs6000-nat.c: Replace library-list by library-list-aix
7889 throughout.
7890 * solib-aix.c: Likewise.
7891
7892 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7893
7894 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7895 Renames TARGET_OBJECT_AIX_LIBRARIES.
7896 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7897 TARGET_OBJECT_LIBRARIES_AIX throughout.
7898 * solib-aix.c: Likwise.
7899
7900 2013-05-07 Yao Qi <yao@codesourcery.com>
7901
7902 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7903 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7904
7905 2013-05-07 Yao Qi <yao@codesourcery.com>
7906
7907 * solib-dsbt.c (enable_break): Declare.
7908 (dsbt_current_sos): Remove call to enable_break2.
7909 (enable_break2): Rename to enable_break. Set solib breakpoint
7910 on '_dl_debug_state'.
7911 (enable_break): Remove.
7912
7913 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7914
7915 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7916 debug state prior to replicating existing hardware watchpoints or
7917 breakpoints.
7918
7919 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7920
7921 * gcore.c (gcore_create_callback): Ignore sections with
7922 separate_debug_objfile_backlink != NULL.
7923
7924 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7925 Andrew Jenner <andrew@codesourcery.com>
7926 Chung-Lin Tang <cltang@codesourcery.com>
7927 Julian Brown <julian@codesourcery.com>
7928
7929 Based on the nios2-elf port from Altera Corporation.
7930
7931 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7932 nios2-linux-tdep.o.
7933 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7934 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7935 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7936 * nios2-tdep.h: New.
7937 * nios2-tdep.c: New.
7938 * nios2-linux-tdep.c: New.
7939 * features/Makefile (WHICH): Add nios2-linux.
7940 (nios2-linux-expedite): Set.
7941 * features/nios2-cpu.xml: New.
7942 * features/nios2.xml: New.
7943 * features/nios2-linux.xml: New.
7944 * features/nios2.c: New (autogenerated).
7945 * features/nios2-linux.c: New (autogenerated).
7946 * regformats/nios2-linux.dat: New (autogenerated).
7947 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7948 and commands.
7949
7950 2013-05-06 Doug Evans <dje@google.com>
7951
7952 * symfile.c: Whitespace cleanup.
7953
7954 * solist.h (struct target_so_ops): New member clear_so.
7955 * solib-svr4.c (svr4_clear_so): New function.
7956 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7957 * solib.c (clear_so): Renamed from free_so_symbols.
7958 All callers updated. Call target clear_so if it exists.
7959
7960 2013-05-06 Tom Tromey <tromey@redhat.com>
7961
7962 * ada-lang.c (ada_value_primitive_packed_val): Don't
7963 call value_incref.
7964 * value.c (set_value_parent): Incref the new parent and decref
7965 the old parent.
7966 (value_copy, value_primitive_field): Use set_value_parent.
7967
7968 2013-05-06 Tom Tromey <tromey@redhat.com>
7969
7970 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7971 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7972 if needed.
7973 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7974 * dwarf2read.c (write_constant_as_bytes)
7975 (dwarf2_fetch_constant_bytes): New functions.
7976
7977 2013-05-06 Tom Tromey <tromey@redhat.com>
7978
7979 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7980 parameters.
7981 (dwarf2_const_value_attr): Update.
7982
7983 2013-05-06 Tom Tromey <tromey@redhat.com>
7984
7985 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7986 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7987 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7988 Remove declaration.
7989
7990 2013-05-06 Tom Tromey <tromey@redhat.com>
7991
7992 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7993 objfile's obstack.
7994
7995 2013-05-06 Doug Evans <dje@google.com>
7996
7997 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7998 * stabsread.h (process_one_symbol): Update declaration.
7999 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
8000 * elfread.c (elf_symfile_relocate_probe): Ditto.
8001 * psymtab.c (relocate_psymtabs): Ditto.
8002 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
8003 (objfile_relocate): Ditto.
8004 * objfiles.h (objfile_relocate): Update declaration.
8005 * symfile.c (relative_addr_info_to_section_offsets): Constify
8006 addrs parameter.
8007 (default_symfile_offsets): Ditto.
8008 (syms_from_objfile_1): Constify offsets parameter.
8009 (syms_from_objfile): Ditto.
8010 (symbol_file_add_with_addrs_or_offsets): Ditto.
8011 (symfile_map_offsets_to_segments): Constify data parameter.
8012 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
8013 delta parameters of member relocate.
8014 (struct sym_probe_fns): Constify new_offsets,
8015 delta parameters of member sym_relocate_probe.
8016 (struct sym_fns): Constify section_addr_info parameter of member
8017 sym_offsets.
8018 (relative_addr_info_to_section_offsets): Update declaration.
8019 (default_symfile_offsets): Ditto.
8020 (syms_from_objfile): Ditto.
8021 (symfile_map_offsets_to_segments): Ditto.
8022
8023 * symfile.c (syms_from_objfile_1): Use correct section count when
8024 objfile->sf == NULL.
8025
8026 2013-05-06 Mike Frysinger <vapier@gentoo.org>
8027
8028 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
8029
8030 2013-05-06 Doug Evans <dje@google.com>
8031
8032 * psympriv.h (struct partial_symtab): Augment comment for member
8033 section_offsets.
8034
8035 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8036
8037 Reimplement shared library support on ppc-aix...
8038 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8039 * features/library-list-aix.dtd: New file.
8040 * solib-aix.h, solib-aix.c: New file.
8041 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8042 (rs6000_find_toc_address_hook): Delete.
8043 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8044 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8045 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8046 "xml-utils.h".
8047 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8048 (vmap_symtab, fixup_breakpoints): Delete.
8049 (rs6000_xfer_shared_libraries): New function.
8050 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8051 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8052 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8053 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8054 (rs6000_xfer_shared_library): New function.
8055 (find_toc_address): Delete.
8056 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8057 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8058 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8059 before creating minimal symbol. Adjust function description
8060 accordingly.
8061 (scan_xcoff_symtab): Replace call to
8062 prim_record_minimal_symbol_and_info by call to
8063 record_minimal_symbol.
8064 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8065 around default_symfile_offsets.
8066 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8067 powerpc-aix targets.
8068 * config/rs6000/nm-rs6000.h: Delete.
8069 * config/powerpc/aix.mh (NAT_FILE): Delete.
8070 (NATDEPFILES): Remove xcoffsolib.o.
8071 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8072 (ALL_TARGET_OBS): Add solib-aix.o.
8073 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8074 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8075 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8076 * xcoffsolib.h, xcoffsolib.c: Delete.
8077
8078 * solib.c (reload_shared_libraries): Remove reference to
8079 SOLIB_CREATE_INFERIOR_HOOK.
8080 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8081 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8082 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8083 comment.
8084 * corelow.c (deprecated_core_resize_section_table): Delete.
8085 * exec.c: Remove include of xcoffsolib.h".
8086 (map_vmap, vmap): Delete.
8087 (exec_close_1): Remove references to vmap.
8088 (exec_file_attach): Remove vmap handling code, and reference
8089 to DEPRECATED_IBM6000_TARGET.
8090 (bfdsec_to_vmap): Delete.
8091 (exec_files_info): Remove block of code handling VMAP.
8092 * infcmd.c (post_create_inferior): Remove reference to
8093 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8094 * infrun.c (follow_exec): Remove reference to
8095 SOLIB_CREATE_INFERIOR_HOOK.
8096 * stack.c (print_frame): Remove reference to PC_SOLIB.
8097 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8098 (dsbt_relocate_main_executable): Likewise.
8099 * solib-frv.c (frv_current_sos): Likewise.
8100
8101 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8102
8103 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8104 to target_write_memory and target_read_memory.
8105
8106 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8107
8108 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8109 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8110
8111 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8112
8113 * darwin-nat.c: Replace all "%x" instances in format strings
8114 into "0x%x" throughout.
8115
8116 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8117
8118 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8119 gdb_assert by call to MACH_CHECK_ERROR.
8120 (darwin_attach_pid): Raise an error rather than a failed
8121 assertion when various system calls failed. Report a warning
8122 instead of raising a failed assertion when PREV_NOT is not NULL
8123 after call to mach_port_request_notification.
8124 (darwin_ptrace_me): Raise an error rather than a failed
8125 assertion when read returns nonzero.
8126
8127 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8128
8129 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8130
8131 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8132
8133 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8134
8135 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8138 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8139 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8140 a stale cleanup. Fix double free of NAME.
8141
8142 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8143
8144 * windows-nat.c (windows_delete_thread): Accept an additional
8145 argument, the thread's exit code, and announce thread death when
8146 print_thread_events is non-zero and we are deleting a thread that
8147 is not the main thread.
8148 (get_windows_debug_event): Pass thread exit code to
8149 windows_delete_thread.
8150
8151 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8152
8153 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8154 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8155 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8156 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8157 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8158 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8159 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8160 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8161 (gdbarch_tdep): New struct.
8162 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8163 E_NUM_REGS.
8164 (v850e3v5_register_name): New function.
8165 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8166 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8167 code handling the struct return conventions for the RH850 ABI.
8168 Update all callers.
8169 (v850_eight_byte_align_p): New function.
8170 (v850_push_call_dummy): Push structs by value, not by reference
8171 for the RH850 ABI. Add support for eight byte alignment.
8172 (v850_dbtrap_breakpoint_from_pc): New function.
8173 (v850_gdbarch_init): Add ABI detection code. Register
8174 v850e3v5_register_name for the v850e3v5 architecture. Set the
8175 number of registers for v850e3v5. Register
8176 v850_dbtrap_breakpoint_from_pc as appropriate.
8177 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8178
8179 2013-05-03 Doug Evans <dje@google.com>
8180
8181 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8182 of bfd_count_sections.
8183 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8184 * symfile.c (default_symfile_offsets): Ditto.
8185 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8186 one entry, not bfd_count_sections entries.
8187
8188 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8189
8190 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8191 `save' and `restore' register groups. Don't include SPL
8192 or SPH in these groups.
8193 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8194 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8195 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8196 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8197 dwarf2_append_unwinders().
8198
8199 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8200
8201 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8202 ignore SIGINT and SIGTRAP in case these internal signals are
8203 caught explicitely.
8204
8205 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8206
8207 * darwin-nat.c (darwin_read_write_inferior): Change types
8208 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8209 of copy_count to "mach_msg_type_number_t".
8210 (darwin_read_dyld_info): Change type of parameter
8211 rdaddr to "gdb_byte *".
8212
8213 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8214
8215 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8216 of &info->load_map from "char *" to "gdb_byte *".
8217
8218 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8219
8220 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8221 from "char *" to "gdb_byte *".
8222 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8223
8224 2013-04-30 Doug Evans <dje@google.com>
8225
8226 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8227 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8228 DWO stub. If DWO isn't found, just use stub.
8229 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8230
8231 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8232 calling init_cutu_and_read_dies.
8233
8234 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8235
8236 * target-descriptions.c (maint_print_c_tdesc_cmd):
8237 Add case to parse structures as register types and
8238 bitfields.
8239
8240 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8241
8242 * MAINTAINERS (Write After Approval): Add myself to the list.
8243
8244 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8245
8246 * sol-thread.c (rw_common): Change type of parameter "buf"
8247 to "gdb_byte *".
8248 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8249 rw_common to "gdb_byte *" instead of "char *".
8250
8251 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8252
8253 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8254 of local variable msym to const struct bound_minimal_symbol.
8255 Adjust use accordingly.
8256 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8257
8258 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8259
8260 * i386gnu-nat.c (CREG_OFFSET): New macro.
8261 (creg_offset): New array.
8262 (CREG_ADDR): Use creg_offset instead of reg_offset.
8263
8264 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8265
8266 * mep-tdep.c (mep_write_pc): Delete.
8267 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8268 Add call to set_gdbarch_pc_regnum.
8269
8270 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8271
8272 * common/filestuff.c: Replace #include <dirent.h> by
8273 #include "gdb_dirent.h".
8274
8275 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8276
8277 * common/filestuff.c: Replace #include <sys/stat.h> by
8278 #include "gdb_stat.h".
8279
8280 2013-04-29 Pierre Muller <muller@sourceware.org>
8281
8282 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8283 editCase function rule.
8284 (get_DW_AT_signature_type): Likewise.
8285
8286 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8287
8288 * m32r-tdep.c (m32r_write_pc): Delete.
8289 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8290 Add call to set_gdbarch_pc_regnum.
8291
8292 2013-04-29 Pierre Muller <muller@sourceware.org>
8293
8294 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8295
8296 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8297
8298 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8299
8300 2013-04-28 Yao Qi <yao@codesourcery.com>
8301
8302 * solib-dsbt.c (fetch_loadmap): Re-indent.
8303 (displacement_from_map, enable_break2): Likewise.
8304 (dsbt_relocate_section_addresses): Likewise.
8305
8306 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8307
8308 GDB 7.6 released.
8309
8310 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8311
8312 PR corefiles/14983:
8313 * dwarf2read.c (process_full_comp_unit): Always create a static
8314 block.
8315
8316 2013-04-25 Hui Zhu <hui@codesourcery.com>
8317
8318 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8319 to loc->cmd_bytecode.
8320
8321 2013-04-24 Doug Evans <dje@google.com>
8322
8323 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8324
8325 2013-04-22 Keith Seitz <keiths@redhat.com>
8326
8327 * tracepoint.c (trace_save): Call the writer's start method.
8328
8329 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8330
8331 PR gdb/10462
8332 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8333 before argument.
8334
8335 2013-04-23 Tom Tromey <tromey@redhat.com>
8336
8337 * common/filestuff.c: Check USE_WIN32API before including
8338 sys/socket.h.
8339 (HAVE_F_GETFD): New define.
8340 (mark_cloexec): Check HAVE_F_GETFD.
8341 (gdb_open_cloexec): Change 'mode' to unsigned long.
8342 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8343 (gdb_pipe_cloexec): Check HAVE_PIPE.
8344 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8345 long.
8346
8347 2013-04-23 Hui Zhu <hui@codesourcery.com>
8348
8349 PR gdb/15293
8350 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8351
8352 2013-04-23 Hui Zhu <hui@codesourcery.com>
8353
8354 PR gdb/15165
8355 * breakpoint.c (dprintf_print_recreate): New.
8356 (save_breakpoints): Let it not save dprintf commands.
8357 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8358
8359 2013-04-22 Tom Tromey <tromey@redhat.com>
8360
8361 PR gdb/7912:
8362 * Makefile.in (SFILES): Add filestuff.c
8363 (COMMON_OBS): Add filestuff.o.
8364 (filestuff.o): New target.
8365 * auto-load.c (auto_load_objfile_script_1): Use
8366 gdb_fopen_cloexec.
8367 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8368 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8369 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8370 * common/agent.c (gdb_connect_sync_socket): Use
8371 gdb_socket_cloexec.
8372 * common/filestuff.c: New file.
8373 * common/filestuff.h: New file.
8374 * common/linux-osdata.c (linux_common_core_of_thread)
8375 (command_from_pid, commandline_from_pid, print_source_lines)
8376 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8377 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8378 gdb_fopen_cloexec.
8379 * common/linux-procfs.c (linux_proc_get_int)
8380 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8381 * config.in, configure: Rebuild.
8382 * configure.ac: Don't check for sys/socket.h. Check for
8383 fdwalk, pipe2.
8384 * corelow.c (core_open): Use gdb_open_cloexec.
8385 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8386 * fork-child.c (fork_inferior): Call close_most_fds.
8387 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8388 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8389 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8390 Use gdb_fopen_cloexec.
8391 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8392 gdb_open_cloexec.
8393 (linux_async_pipe): Use gdb_pipe_cloexec.
8394 * remote-fileio.c (remote_fileio_func_open): Use
8395 gdb_open_cloexec.
8396 * remote.c (remote_file_put, remote_file_get): Use
8397 gdb_fopen_cloexec.
8398 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8399 close_most_fds.
8400 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8401 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8402 * solib.c (solib_find): Use gdb_open_cloexec.
8403 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8404 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8405 (tfile_open): Use gdb_open_cloexec.
8406 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8407 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8408 * xml-support.c (xml_fetch_content_from_file): Use
8409 gdb_fopen_cloexec.
8410 * main.c (captured_main): Call notice_open_fds.
8411
8412 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8413
8414 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8415 'char *' to 'gdb_byte *'.
8416 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8417 'gdb_byte'.
8418
8419 2013-04-22 Yao Qi <yao@codesourcery.com>
8420
8421 * infrun.c: Fix typo in comment.
8422
8423 2013-04-22 Andrew Haley <aph@redhat.com>
8424
8425 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8426 instead of "long".
8427
8428 2013-04-20 Yao Qi <yao@codesourcery.com>
8429
8430 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8431 'char *' to 'gdb_byte *'. Cast the return value of
8432 'bt_ctf_get_char_array' to 'gdb_byte *'.
8433
8434 2013-04-19 Pedro Alves <palves@redhat.com>
8435
8436 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8437 -Wpointer-sign.
8438 * configure: Regenerate.
8439
8440 2013-04-19 Pedro Alves <palves@redhat.com>
8441
8442 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8443 'void *'.
8444
8445 2013-04-19 Pedro Alves <palves@redhat.com>
8446
8447 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8448 Change type of 'myaddr' parameter to gdb_byte pointer.
8449 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8450 to 'long long' pointer instead of to 'unsigned long long'.
8451 (monitor_write_memory_block, monitor_read_memory_single)
8452 (monitor_read_memory): Change type of 'myaddr' parameter to
8453 gdb_byte pointer.
8454
8455 2013-04-19 Pedro Alves <palves@redhat.com>
8456
8457 * record.c (validate_history_size): Make parameter 'setting'
8458 unsigned.
8459
8460 2013-04-19 Pedro Alves <palves@redhat.com>
8461
8462 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8463 to 'gdb_byte *'.
8464
8465 2013-04-19 Pedro Alves <palves@redhat.com>
8466
8467 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8468 local to int.
8469
8470 2013-04-19 Pedro Alves <palves@redhat.com>
8471
8472 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8473 * ada-tasks.c (read_fat_string_value): Likewise.
8474
8475 2013-04-19 Pedro Alves <palves@redhat.com>
8476
8477 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8478 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8479 'offset', and adjust.
8480
8481 2013-04-19 Pedro Alves <palves@redhat.com>
8482
8483 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8484 (read_index_from_section): Add cast to 'char *'.
8485
8486 2013-04-19 Pedro Alves <palves@redhat.com>
8487
8488 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8489
8490 2013-04-19 Pedro Alves <palves@redhat.com>
8491
8492 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8493
8494 2013-04-19 Pedro Alves <palves@redhat.com>
8495
8496 * record-full.c (record_full_get_bookmark): Change local 'ret'
8497 type to char * and add cast to gdb_byte *.
8498 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8499 string.
8500 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8501
8502 2013-04-19 Pedro Alves <palves@redhat.com>
8503
8504 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8505 * python/py-prettyprint.c (print_string_repr): Change type of
8506 'output' local to char *. Add cast to gdb_byte * in
8507 LA_PRINT_STRING call.
8508 (print_children): Change type of 'output' local to char *.
8509 * python/py-value.c (valpy_string): Add cast to const char * in
8510 PyUnicode_Decode call.
8511
8512 2013-04-19 Pedro Alves <palves@redhat.com>
8513
8514 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8515 and change its type to 'const char *'. Adjust.
8516 (mips_send_packet): Add cast to 'char *', and remove cast to
8517 'unsigned char *'.
8518 (mips_receive_packet): Remove cast to 'unsigned char *'.
8519 (mips_load_srec): Use bfd_byte.
8520 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8521 (pmon_checkset): Make 'value' parameter unsigned.
8522
8523 2013-04-19 Pedro Alves <palves@redhat.com>
8524
8525 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8526
8527 2013-04-19 Pedro Alves <palves@redhat.com>
8528
8529 * remote.c (remote_write_bytes_aux, compare_sections_command)
8530 (remote_read_qxfer)
8531 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8532 (remote_hostio_readlink, remote_bfd_iovec_pread)
8533 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8534 binary buffer, and char when buffer is used as string.
8535 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8536 (trace_save, tfile_open, traceframe_walk_blocks)
8537 (tfile_fetch_registers): Likewise.
8538
8539 2013-04-19 Pedro Alves <palves@redhat.com>
8540
8541 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8542 buffer and size_t size. Adjust.
8543 * ser-base.h (ser_base_write): Adjust.
8544 * ser-go32.c (cnts): Change type to size_t.
8545 (dos_write): Change prototype -- take 'void *'
8546 buffer and size_t size. Adjust.
8547 (dos_info): Print elements of 'cnts' as unsigned long.
8548 * serial.c (serial_write): Likewise.
8549 * serial.h (serial_write): Adjust.
8550 (struct serial_ops) <write>: Change prototype -- take 'void *'
8551 buffer and size_t size. Adjust.
8552
8553 2013-04-19 Pedro Alves <palves@redhat.com>
8554
8555 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8556 gdb_byte *.
8557 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8558
8559 2013-04-19 Pedro Alves <palves@redhat.com>
8560
8561 * alpha-tdep.c (alpha_extract_return_value): Use
8562 regcache_cooked_read_unsigned to read 'v0'.
8563
8564 2013-04-19 Pedro Alves <palves@redhat.com>
8565
8566 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8567 parameters 'at', 'as' and 'offset' to uint32_t.
8568
8569 2013-04-19 Pedro Alves <palves@redhat.com>
8570
8571 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8572 'is64' to signed 'int'.
8573
8574 2013-04-19 Pedro Alves <palves@redhat.com>
8575
8576 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8577 parameter to int *.
8578
8579 2013-04-19 Pedro Alves <palves@redhat.com>
8580
8581 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8582 'insnbuf' buffer type to unsigned int[].
8583
8584 2013-04-19 Pedro Alves <palves@redhat.com>
8585
8586 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8587
8588 2013-04-19 Pedro Alves <palves@redhat.com>
8589
8590 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8591 unsigned long *.
8592
8593 2013-04-19 Pedro Alves <palves@redhat.com>
8594
8595 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8596 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8597 UINT_MAX.
8598 * mips-tdep.c (heuristic_fence_post): Change type to int.
8599 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8600
8601 2013-04-19 Pedro Alves <palves@redhat.com>
8602
8603 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8604 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8605 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8606
8607 2013-04-19 Pedro Alves <palves@redhat.com>
8608
8609 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8610 it to get a string view of the byte buffer.
8611 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8612 type to gdb_byte *. Adjust.
8613 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8614 Change local to char *.
8615 * solib-darwin.c (find_program_interpreter): Change return type to
8616 char *. Adjust.
8617 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8618 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8619 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8620 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8621 * solib-svr4.c (find_program_interpreter): Change return type to
8622 char *. Adjust.
8623 (enable_break): Change local 'interp_name' to char *.
8624 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8625 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8626 (spu_pseudo_register_write_spu): Use char for string buffer.
8627 Adjust.
8628 (info_spu_event_command, info_spu_signal_command): Add casts to
8629 'char *'.
8630
8631 2013-04-19 Pedro Alves <palves@redhat.com>
8632
8633 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8634 gdb_byte[].
8635 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8636 * ada-lang.c (ada_value_assign): Use gdb_byte.
8637 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8638 (alphanbsd_sigtramp_offset): Use gdb_byte.
8639 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8640 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8641 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8642 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8643 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8644 * arm-tdep.c (arm_stub_unwind_sniffer)
8645 (arm_displaced_init_closure): Use gdb_byte.
8646 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8647 (arm_default_thumb_le_breakpoint)
8648 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8649 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8650 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8651 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8652 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8653 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8654 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8655 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8656 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8657 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8658 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8659 (cris_store_return_value, cris_extract_return_value): Use
8660 gdb_byte.
8661 (constraint): Change type of parameter to char * from signed
8662 char*. Use gdb_byte.
8663 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8664 of local buffer to gdb_byte *.
8665 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8666 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8667 (add_address_entry): Change type of local buffer to gdb_byte[].
8668 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8669 (frv_push_dummy_call): Use gdb_byte.
8670 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8671 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8672 (hppa_hpux_supply_save_state): Use gdb_byte.
8673 * hppa-tdep.c (hppa32_push_dummy_call)
8674 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8675 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8676 (slotN_contents, replace_slotN_contents): Change type of parameter
8677 to gdb_byte *.
8678 (fetch_instruction, ia64_pseudo_register_write)
8679 (ia64_register_to_value, ia64_value_to_register)
8680 (ia64_extract_return_value, ia64_store_return_value)
8681 (ia64_push_dummy_call): Use gdb_byte.
8682 * m32c-tdep.c (m32c_return_value): Remove cast.
8683 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8684 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8685 gdb_byte.
8686 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8687 * mn10300-tdep.c (mn10300_store_return_value)
8688 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8689 gdb_byte.
8690 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8691 (moxie_process_record): Remove casts.
8692 * ppc-ravenscar-thread.c (supply_register_at_address)
8693 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8694 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8695 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8696 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8697 * remote.c (compare_sections_command): Use gdb_byte.
8698 * score-tdep.c (score7_free_memblock): Change type of parameter to
8699 gdb_byte *.
8700 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8701 gdb_byte *. Use gdb_byte.
8702 (sh_push_dummy_call_fpu): Use gdb_byte.
8703 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8704 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8705 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8706 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8707 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8708 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8709 (sh64_store_return_value, sh64_register_convert_to_virtual):
8710 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8711 (sh64_pseudo_register_write): Use gdb_byte.
8712 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8713 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8714 buffer.
8715 (irix_current_sos): Use gdb_byte.
8716 * solib-som.c (som_current_sos): Use gdb_byte.
8717 * sparc-ravenscar-thread.c (supply_register_at_address)
8718 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8719 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8720 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8721 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8722 'gdb_byte *'.
8723 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8724 'gdb_byte *'.
8725 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8726 * xstormy16-tdep.c (xstormy16_extract_return_value)
8727 (xstormy16_store_return_value): Change parameter type to
8728 'gdb_byte *'. Adjust.
8729 (xstormy16_push_dummy_call): Use gdb_byte.
8730 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8731 (call0_analyze_prologue, execute_code): Use gdb_byte.
8732
8733 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8734 Pedro Alves <palves@redhat.com>
8735
8736 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8737 value contents.
8738
8739 2013-04-17 Doug Evans <dje@google.com>
8740
8741 * dwarf2read.c (struct signatured_type): New member type.
8742 (struct attribute): Replace member signatured_type with signature.
8743 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8744 (read_call_site_scope): Call follow_die_ref instead of
8745 follow_die_ref_or_sig.
8746 (read_structure_type): Rewrite handling of signatured types.
8747 (read_enumeration_type): Ditto.
8748 (read_attribute_value): Update.
8749 (build_error_marker_type): New function.
8750 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8751 Don't call error for bad types, just build an error marker type.
8752 (dump_die_shallow): Update.
8753 (follow_die_sig_1): Renamed from follow_die_sig.
8754 Don't call error for bad types, instead return NULL.
8755 (follow_die_sig): New function.
8756 (get_signatured_type, get_DW_AT_signature_type): New functions.
8757
8758 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8759
8760 * aarch64-tdep.c (aarch64_write_pc): Removed.
8761 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8762 function.
8763
8764 2013-04-17 Yao Qi <yao@codesourcery.com>
8765
8766 * top.c (print_gdb_configuration): Print configure-time
8767 parameter on using libbabeltrace or not.
8768
8769 2013-04-16 Pedro Alves <palves@redhat.com>
8770
8771 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8772
8773 2013-04-16 Pedro Alves <palves@redhat.com>
8774
8775 * common/glibc_thread_db.h: Update from upstream glibc
8776 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8777
8778 2013-04-16 Pedro Alves <palves@redhat.com>
8779
8780 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8781 * common/glibc_thread_db.h: ... this new file ...
8782 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8783
8784 2013-04-16 Will Newton <will.newton@gmail.com>
8785 Pedro Alves <palves@redhat.com>
8786
8787 PR build/11881
8788
8789 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8790 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8791 HAVE_THREAD_DB_H.
8792
8793 2013-04-16 Pedro Alves <palves@redhat.com>
8794 Eli Zaretskii <eliz@gnu.org>
8795
8796 * NEWS: Mention "set foo unlimited".
8797
8798 2013-04-15 Doug Evans <dje@google.com>
8799
8800 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8801 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8802 (create_dwo_cu_reader): Renamed from
8803 create_dwo_debug_info_hash_table_reader.
8804 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8805 Remove support for multiple CUs in a DWO file.
8806 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8807
8808 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8809 instead of phex.
8810 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8811 (create_dwo_in_dwp): Ditto.
8812
8813 2013-04-15 Tom Tromey <tromey@redhat.com>
8814
8815 * NEWS: Move recent entries into "since 7.6" section.
8816
8817 2013-04-15 Tom Tromey <tromey@redhat.com>
8818
8819 PR c++/13588:
8820 * NEWS: Update.
8821 * break-catch-throw.c (struct exception_catchpoint)
8822 <exception_rx, pattern>: New fields.
8823 (fetch_probe_arguments, dtor_exception_catchpoint)
8824 (check_status_exception_catchpoint)
8825 (print_one_detail_exception_catchpoint): New functions.
8826 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8827 Compile regular expression if needed.
8828 (extract_exception_regexp): New function.
8829 (catch_exception_command_1): Use extract_exception_regexp.
8830 (compute_exception): Use fetch_probe_arguments.
8831 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8832 and check_status fields.
8833 * cp-abi.c (cplus_typename_from_type_info): New function.
8834 * cp-abi.h (cplus_typename_from_type_info): Declare.
8835 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8836 * gdb_regex.h (compile_rx_or_error): Declare.
8837 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8838 comment.
8839 (init_gnuv3_ops): Set get_type_from_type_info field.
8840 * probe.c (compile_rx_or_error): Move...
8841 * utils.c (compile_rx_or_error): ... here.
8842
8843 2013-04-15 Tom Tromey <tromey@redhat.com>
8844
8845 PR c++/15176:
8846 * NEWS: Update.
8847 * break-catch-throw.c (compute_exception): New function.
8848 (exception_funcs): New global.
8849 (_initialize_break_catch_throw): Create $_exception.
8850 * cp-abi.c (cplus_type_from_type_info): New function.
8851 * cp-abi.h (cplus_type_from_type_info): Declare.
8852 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8853 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8854 (gnuv3_get_type_from_type_info): New functions.
8855 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8856
8857 2013-04-15 Tom Tromey <tromey@redhat.com>
8858
8859 * break-catch-throw.c (struct exception_names): New.
8860 (exception_functions): Change type.
8861 (re_set_exception_catchpoint): Look for SDT probes.
8862
8863 2013-04-15 Tom Tromey <tromey@redhat.com>
8864
8865 PR c++/10119:
8866 * break-catch-throw.c (exception_functions): New global.
8867 (gnu_v3_exception_catchpoint_ops): Move earlier.
8868 (struct exception_catchpoint): New.
8869 (classify_exception_breakpoint): Rewrite.
8870 (re_set_exception_catchpoint): New function.
8871 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8872 Allocate a struct exception_catchpoint.
8873 (catch_exception_command_1): Update.
8874 (initialize_throw_catchpoint_ops): Set 're_set' method.
8875
8876 2013-04-15 Tom Tromey <tromey@redhat.com>
8877
8878 * Makefile.in (SFILES): Add break-catch-throw.c
8879 (COMMON_OBS): Add break-catch-throw.o.
8880 * break-catch-throw.c: New file.
8881 * breakpoint.c: Move exception-catching code to new file.
8882 (ep_parse_optional_if_clause): No longer static.
8883 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8884
8885 2013-04-15 Tom Tromey <tromey@redhat.com>
8886
8887 PR c++/9065:
8888 * NEWS: Update.
8889 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8890 * c-exp.y (TYPEID): New token.
8891 (exp): Add new TYPEID productions.
8892 (ident_tokens): Add "typeid".
8893 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8894 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8895 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8896 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8897 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8898 case.
8899 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8900 (build_std_type_info_type, gnuv3_get_typeid_type)
8901 (gnuv3_get_typeid): New functions.
8902 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8903 new fields on ABI object.
8904 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8905 * std-operator.def (OP_TYPEID): New.
8906
8907 2013-04-15 Tom Tromey <tromey@redhat.com>
8908
8909 * elfread.c (elf_symtab_read): Install versioned symbol under
8910 unversioned name as well.
8911
8912 2013-04-15 Tom Tromey <tromey@redhat.com>
8913
8914 PR c++/11990:
8915 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8916 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8917 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8918 (gdb_demangle): New function.
8919 * cp-support.h (gdb_demangle): Declare.
8920 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8921 (dwarf2_name): Use gdb_demangle.
8922 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8923 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8924 suffixes from name.
8925 (gnuv3_print_method_ptr): Use gdb_demangle.
8926 * jv-lang.c (java_demangle): Use gdb_demangle.
8927 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8928 * language.c (unk_lang_demangle): Use gdb_demangle.
8929 * symtab.c (symbol_find_demangled_name)
8930 (demangle_for_lookup): Use gdb_demangle.
8931
8932 2013-04-15 Tom Tromey <tromey@redhat.com>
8933
8934 PR c++/12824:
8935 * NEWS: Update.
8936 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8937 New constant.
8938 (classify_exception_breakpoint): New function.
8939 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8940 (print_mention_exception_catchpoint)
8941 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8942 (catch_exception_command_1): Handle "rethrow" catchpoint.
8943 (catch_rethrow_command): New function.
8944 (_initialize_breakpoint): Add "catch rethrow" command.
8945
8946 2013-04-15 Pierre Muller <muller@sourceware.org>
8947
8948 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8949 set_gdbarch_write_pc as deprecated anymore.
8950
8951 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8952
8953 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8954 declarations.
8955
8956 2013-04-13 Yao Qi <yao@codesourcery.com>
8957
8958 * ctf.c (_initialize_ctf): Include "completer.h".
8959 Call add_target_with_completer instead of add_target.
8960
8961 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8962
8963 Fix GDB regression related to PR binutils/14813.
8964 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8965 * minidebug.c (lzma_close): Add return value comment.
8966 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8967 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8968 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8969
8970 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 * config.in: Regenerate.
8973
8974 2013-04-12 Tom Tromey <tromey@redhat.com>
8975
8976 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8977 const.
8978 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8979 (struct die_reader_specs) <buffer>: Likewise.
8980 (die_reader_func_ftype): Make 'info_ptr' const.
8981 (struct line_header) <include_dirs, statement_program_start,
8982 statement_program_end>: Now const.
8983 (struct file_entry) <name>: Likewise.
8984 (struct partial_die_info) <sibling>: Likewise.
8985 (struct dwarf_block) <data>: Likewise.
8986 (dwarf2_read_section): Remove cast.
8987 (dwarf2_get_section_info): Make 'bufp' const.
8988 (read_index_from_section): Constify.
8989 (dw2_get_file_names_reader): Make 'info_ptr' const.
8990 (dw2_get_primary_filename_reader): Likewise.
8991 (read_comp_unit_head): Make 'info_ptr' and return type const.
8992 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8993 Likewise.
8994 (read_abbrev_offset): Constify.
8995 (dwarf2_create_include_psymtab): Make 'name' const.
8996 (create_debug_types_hash_table): Update.
8997 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8998 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8999 Constify.
9000 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
9001 (load_partial_comp_unit_reader): Make 'info_ptr' const.
9002 (read_comp_units_from_section): Constify.
9003 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
9004 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
9005 const.
9006 (dwarf2_compute_name, setup_type_unit_groups): Constify.
9007 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
9008 (create_dwp_hash_table, dwarf2_ranges_read)
9009 (dwarf2_record_block_ranges): Constify.
9010 (read_die_and_children, read_die_and_siblings_1)
9011 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
9012 const.
9013 (read_full_die_1, read_full_die): Make 'info_ptr' const.
9014 (abbrev_table_read_table): Constify.
9015 (load_partial_dies): Make 'info_ptr' const.
9016 (read_partial_die, read_attribute_value, read_attribute): Make
9017 'info_ptr' and return type const.
9018 (read_address, read_initial_length)
9019 (read_checked_initial_length_and_offset, read_offset)
9020 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
9021 const.
9022 (read_direct_string): Make 'buf' and return type const.
9023 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
9024 (read_indirect_string): Make return type const.
9025 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
9026 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
9027 'info_ptr' const.
9028 (read_str_index): Make return type const.
9029 (add_include_dir): Make 'include_dir' const.
9030 (add_file_name): Make 'name' const.
9031 (dwarf_decode_line_header): Constify.
9032 (psymtab_include_file_name): Make return type const.
9033 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9034 (dwarf2_start_subfile): Make 'filename' const.
9035 (dwarf2_const_value_attr): Make 'bytes' const.
9036 (read_signatured_type_reader): Make 'info_ptr' const.
9037 (decode_locdesc): Constify.
9038 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9039 const.
9040 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9041 'mac_end', and return type const.
9042 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9043 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9044 type const.
9045 (per_cu_header_read_in): Constify.
9046 * symfile.h (dwarf2_get_section_info): Update.
9047
9048 2013-04-12 Tom Tromey <tromey@redhat.com>
9049
9050 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9051
9052 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9053
9054 * NEWS: Mention "show configuration", --configuration.
9055 * top.c (print_gdb_configuration): New function, displays the
9056 details about GDB configure-time parameters.
9057 (print_gdb_version): Mention "show configuration".
9058 * cli/cli-cmds.c (show_configuration): New function.
9059 (_initialize_cli_cmds): Add the "show configuration" command.
9060 * main.c (captured_main) <print_configuration>: New static var.
9061 <long_options>: Use it.
9062 If --configuration was given, call print_gdb_configuration.
9063
9064 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9065 Pedro Alves <palves@redhat.com>
9066
9067 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9068 (generated_files): Add gcore.
9069 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9070 HAVE_NATIVE_GCORE_HOST.
9071 (gcore): New.
9072 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9073 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9074 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9075 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9076 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9077 Add HAVE_NATIVE_GCORE_HOST.
9078 * configure: Regenerate.
9079 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9080 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9081 AC_CONFIG_FILES for gcore.
9082 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9083 gdb_have_gcore.
9084 * gdb_gcore.sh: Rename to ...
9085 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9086 and GCORE_TRANSFORM_NAME substitutions.
9087
9088 Fix parsing tabs in ${gdb_target_obs}.
9089 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9090
9091 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9092
9093 * remote.c (unpush_and_perror): Add output message final dot.
9094
9095 2013-04-11 Yao Qi <yao@codesourcery.com>
9096
9097 * tracepoint.c (tfile_interp_line): Fit parameters line and
9098 utpp in one line.
9099
9100 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9101
9102 * solib.c (solib_map_sections): Remove code overwriting
9103 SO->SO_NAME with the bfd's filename.
9104
9105 2013-04-10 Pedro Alves <palves@redhat.com>
9106
9107 * cli/cli-decode.c (integer_unlimited_completer): New function.
9108 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9109 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9110 completer.
9111 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9112 (is_unlimited_literal): New function.
9113 (do_set_command): Handle literal "unlimited" arguments.
9114 * frame.c (_initialize_frame) <set backtrace limit>: Document
9115 "unlimited".
9116 * printcmd.c (_initialize_printcmd) <set print
9117 max-symbolic-offset>: Add help text.
9118 * record-full.c (_initialize_record_full) <set record full
9119 insn-number-max>: Likewise.
9120 * record.c (_initialize_record) <set record
9121 instruction-history-size, set record function-call-history-size>:
9122 Add help text.
9123 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9124 help text.
9125 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9126 Likewise.
9127 * source.c (_initialize_source) <set listsize>: Add help text.
9128 * utils.c (initialize_utils) <set height, set width>: Likewise.
9129 <set pagination>: Mention "set height unlimited".
9130 * valprint.c (_initialize_valprint) <set print elements, set print
9131 repeats>: Document "unlimited".
9132
9133 2013-04-10 Pedro Alves <palves@redhat.com>
9134
9135 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9136 instead of disconnect_tracing.
9137 * infcmd.c (detach_command, disconnect_command): Call
9138 query_if_trace_running. Adjust.
9139 * top.c: Include "tracepoint.h".
9140 (quit_target): Delete. Contents moved ...
9141 (quit_force): ... here. Wrap each stage of teardown in
9142 TRY_CATCH. Call disconnect_tracing before detaching.
9143
9144 2013-04-10 Hui Zhu <hui@codesourcery.com>
9145 Yao Qi <yao@codesourcery.com>
9146
9147 * configure.ac: Check libbabeltrace is installed.
9148 * config.in: Regenerate.
9149 * configure: Regenerate.
9150 * Makefile.in (LIBBABELTRACE): New.
9151 (CLIBS): Add LIBBABELTRACE.
9152 * ctf.c: Include "exec.h".
9153 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9154 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9155 (ctf_save_metadata_header): Define new type aliases in
9156 metadata.
9157 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9158 in metadata. Start a new faked packet for trace status.
9159 (ctf_write_status): Write trace status to CTF.
9160 (ctf_write_uploaded_tsv): Write TSV to CTF.
9161 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9162 (ctf_write_definition_end): End the faked packet.
9163
9164 (ctx, ctf_iter, trace_dirname): New.
9165 (start_pos): New variable.
9166 (ctf_destroy, ctf_open_dir, ctf_open): New.
9167 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9168 macros.
9169 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9170 (ctf_fetch_registers, ctf_xfer_partial): New.
9171 (ctf_get_trace_state_variable_value): New.
9172 (ctf_get_tpnum_from_frame_event): New.
9173 (ctf_get_traceframe_address): New.
9174 (ctf_trace_find, ctf_has_stack): New.
9175 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9176 (ctf_get_trace_status, ctf_read_status): New.
9177 (_initialize_ctf): New.
9178 * tracepoint.c (get_tracepoint_number): New
9179 (get_uploaded_tsv): Remove 'static'.
9180 (struct traceframe_info, trace_regblock_size): Move it to ...
9181 * tracepoint.h: ... here.
9182 (get_tracepoint_number): Declare it.
9183 (get_uploaded_tsv): Declare it.
9184
9185 * NEWS: Mention new configure option.
9186
9187 2013-04-10 Pedro Alves <palves@redhat.com>
9188 Hui Zhu <hui@codesourcery.com>
9189
9190 * breakpoint.c (dprintf_re_set): New.
9191 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9192 to dprintf_re_set.
9193
9194 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9195
9196 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9197 Remove solib-svr4.o from the list.
9198
9199 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9200
9201 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9202 Use gdb_assert_not_reached instead of invalid boolean expression.
9203
9204 2013-04-09 Pedro Alves <palves@redhat.com>
9205
9206 * remote.c (unpush_and_perror): New function.
9207 (readchar, remote_serial_write): Use it.
9208
9209 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9210
9211 * NEWS: Mention new btrace RSP packets.
9212
9213 2013-04-08 Tom Tromey <tromey@redhat.com>
9214
9215 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9216 long.
9217
9218 2013-04-08 Tom Tromey <tromey@redhat.com>
9219
9220 * maint.c (print_bfd_section_info): Print the section index.
9221 * symmisc.c (dump_msymbols): Print the section index.
9222
9223 2013-04-08 Tom Tromey <tromey@redhat.com>
9224
9225 PR symtab/8424:
9226 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9227 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9228 * breakpoint.c (resolve_sal_pc): Update.
9229 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9230 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9231 (minsym_lookup_iterator_cb): Use it.
9232 (default_read_var_value): Update.
9233 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9234 Update.
9235 * infcmd.c (jump_command): Update.
9236 * linespec.c (minsym_found): Update.
9237 * maint.c (maintenance_translate_address): Update.
9238 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9239 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9240 * parse.c (write_exp_msymbol): Update.
9241 * printcmd.c (address_info): Update.
9242 * psymtab.c (find_pc_sect_psymbol): Update.
9243 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9244 SYMBOL_OBJ_SECTION.
9245 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9246 Don't initialize SYMBOL_OBJ_SECTION.
9247 * spu-tdep.c (spu_catch_start): Update.
9248 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9249 * symmisc.c (dump_msymbols, print_symbol): Update.
9250 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9251 how fallback section is computed.
9252 (fixup_symbol_section): Update.
9253 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9254 Update.
9255 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9256 Initialize SYMBOL_SECTION.
9257 * symtab.h (struct general_symbol_info) <section>: Update comment.
9258 <obj_section>: Remove.
9259 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9260 (SYMBOL_OBJFILE): New macro.
9261
9262 2013-04-08 Tom Tromey <tromey@redhat.com>
9263
9264 * coffread.c (record_minimal_symbol): Update.
9265 * dbxread.c (record_minimal_symbol): Update.
9266 * elfread.c (record_minimal_symbol): Update.
9267 * machoread.c (macho_symtab_add_minsym): Update.
9268 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9269 Update.
9270 * minsyms.c (prim_record_minimal_symbol): Update.
9271 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9272 argument.
9273 (prim_record_minimal_symbol_and_info): Likewise.
9274 * minsyms.h (prim_record_minimal_symbol_full)
9275 (prim_record_minimal_symbol_and_info): Update.
9276 * symtab.c (allocate_symbol, initialize_symbol)
9277 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9278 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9279 Update.
9280
9281 2013-04-08 Tom Tromey <tromey@redhat.com>
9282
9283 PR symtab/8423:
9284 * solib-som.c (som_solib_section_offsets): Use BFD section
9285 indices. Set offsets for all sections.
9286 * somread.c (som_symtab_read): Compute BFD section for
9287 symbol. Use prim_record_minimal_symbol_and_info.
9288 (som_symfile_read): Fix comment.
9289 (struct find_section_offset_arg): New.
9290 (find_section_offset, set_section_index): New functions.
9291 (som_symfile_offsets): Use set_section_index to compute
9292 section indices.
9293
9294 2013-04-08 Tom Tromey <tromey@redhat.com>
9295
9296 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9297 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9298 gdb_bfd_section_index.
9299 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9300 New functions.
9301 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9302 Declare.
9303 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9304 Update.
9305 * objfiles.c (add_to_objfile_sections_full): New function.
9306 (add_to_objfile_sections): Use it.
9307 (build_section_table): Rewrite.
9308 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9309 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9310 (struct objfile) <sections>: Update comment.
9311 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9312 is NULL.
9313 (ALL_OBJSECTIONS): Use it.
9314 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9315 * solib-frv.c (frv_relocate_main_executable): Update.
9316 * solib-target.c (solib_target_relocate_section_addresses):
9317 Use gdb_bfd_section_index.
9318 * symfile.c (build_section_addr_info_from_section_table):
9319 Use gdb_bfd_section_index.
9320 (build_section_addr_info_from_bfd, place_section): Likewise.
9321 * symtab.c (fixup_section): Update.
9322 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9323
9324 2013-04-08 Tom Tromey <tromey@redhat.com>
9325
9326 * minsyms.h (struct bound_minimal_symbol): New.
9327 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9328 Remove objfile argument.
9329 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9330 Return bound_minimal_symbol.
9331 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9332 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9333 Return bound_minimal_symbol.
9334 (in_gnu_ifunc_stub): Update.
9335 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9336 Remove 'objfile_p' argument.
9337 (lookup_solib_trampoline_symbol_by_pc): Update.
9338 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9339 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9340 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9341 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9342 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9343 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9344 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9345 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9346 stack.c, symtab.c, tui/tui-disasm.c: Update.
9347
9348 2013-04-08 Tom Tromey <tromey@redhat.com>
9349
9350 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9351 Use symbol's obstack, not an objfile.
9352 * coffread.c (process_coff_symbol): Update.
9353 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9354 * jv-lang.c (add_class_symbol): Update.
9355 * mdebugread.c (new_symbol): Update.
9356 * minsyms.c (prim_record_minimal_symbol_full)
9357 (terminate_minimal_symbol_table): Update.
9358 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9359 * stabsread.c (define_symbol, read_enum_type): Update.
9360 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9361 Handle Ada specially.
9362 (symbol_set_language): Add 'obstack' argument.
9363 (symbol_set_names): Update.
9364 (symbol_natural_name, symbol_demangled_name): Always use
9365 ada_decode_symbol.
9366 * symtab.h (struct general_symbol_info)
9367 <language_specific::obstack>: New field.
9368 <ada_mangled>: New field.
9369 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9370 (symbol_set_language): Update.
9371
9372 2013-04-08 Tom Tromey <tromey@redhat.com>
9373
9374 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9375 Take an obstack, not an objfile.
9376 (symbol_set_names): Update.
9377 * symtab.h (symbol_set_demangled_name): Update.
9378
9379 2013-04-08 Tom Tromey <tromey@redhat.com>
9380
9381 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9382 allocate_symbol.
9383 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9384 (read_func_scope): Call allocate_template_symbol.
9385 (new_symbol_full): Call allocate_symbol.
9386 * jit.c (finalize_symtab): Call allocate_symbol.
9387 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9388 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9389 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9390 (common_block_end): Call allocate_symbol.
9391 * symtab.c (allocate_symbol, initialize_symbol)
9392 (allocate_template_symbol): New functions.
9393 * symtab.c (allocate_symbol, initialize_symbol)
9394 (allocate_template_symbol): Declare.
9395 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9396
9397 2013-04-08 Pedro Alves <palves@redhat.com>
9398 Keith Seitz <keiths@redhat.com>
9399
9400 * breakpoint.c (create_breakpoint): Rename
9401 "parse_condition_and_thread" parameter to "parse_arg". Update
9402 describing comment. If !PARSE_ARG, then error out if ARG is not
9403 the empty string after extracting the location.
9404 * breakpoint.h (create_breakpoint): Rename
9405 "parse_condition_and_thread" parameter to "parse_arg".
9406
9407 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9408
9409 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9410
9411 2013-04-07 Yao Qi <yao@codesourcery.com>
9412
9413 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9414 and 'addr2' to CORE_ADDR.
9415 * target.c (update_current_target): Update.
9416 * target.h (struct target_ops) <to_trace_find>: Change parameter
9417 type to CORE_ADDR.
9418 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9419 'addr2' to CORE_ADDR.
9420 (tfile_trace_find): Likewise.
9421 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9422 Change local variable 'addr' to type CORE_ADDR.
9423 * tracepoint.h (tfind_1): Update declaration.
9424
9425 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9426
9427 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9428 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9429 Include main.h.
9430
9431 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9432 here...
9433 * main.h (windows_get_absolute_argv0): ...to here.
9434
9435 2013-04-05 Doug Evans <dje@google.com>
9436
9437 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9438 (read_cutu_die_from_dwo): Add comments.
9439 (read_structure_type): Update comment.
9440 (read_enumeration_type, read_namespace_type): Update comment.
9441 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9442
9443 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9444
9445 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9446 * Makefile.in (gdb.z): Remove.
9447 (install-only): Remove $(man1dir) and gdb.1 installation.
9448 * gdb.1: Remove.
9449
9450 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 Fix compatibility with Linux kernel 3.8.3.
9453 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9454 to more inner block. Remove parsing of NUMBER from outer block.
9455 Parse NUMBER only if KEYWORD has been identified.
9456
9457 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 Fix variable name shadowing.
9460 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9461 filename to mapsfilename and update its uses.
9462
9463 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9464
9465 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9466 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9467 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9468 details of the problem.
9469
9470 2013-04-04 Pedro Alves <palves@redhat.com>
9471 Hui Zhu <hui@codesourcery.com>
9472
9473 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9474 tracepoint, reset its STEP_COUNT and call validate_actionline.
9475
9476 2013-04-03 Doug Evans <dje@google.com>
9477
9478 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9479 read_die_and_siblings.
9480 (read_die_and_siblings): New function.
9481 (read_cutu_die_from_dwo): Dump die if requested.
9482 (read_die_and_children): Call read_full_die_1 and
9483 read_die_and_siblings_1.
9484 (read_full_die): Dump die if requested.
9485
9486 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9487
9488 * dwarf2read.c (struct dwo_file): New member comp_dir.
9489 Rename member name to dwo_name. All uses updated.
9490 (hash_dwo_file): Include comp_dir in computation.
9491 (eq_dwo_file): Ditto.
9492 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9493 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9494
9495 * psymtab.c (read_psymtabs_with_fullname): Don't call
9496 psymtab_to_fullname if the basenames are different.
9497
9498 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9499
9500 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9501 New entry about "fullname" presence.
9502
9503 2013-04-03 Pedro Alves <palves@redhat.com>
9504
9505 * NEWS: Mention x86_64/Cygwin as new native configuration.
9506
9507 2013-04-02 Doug Evans <dje@google.com>
9508
9509 * dwarf2read.c (read_structure_type): Fix typo in comment.
9510
9511 2013-04-02 Pedro Alves <palves@redhat.com>
9512
9513 * NEWS: Mention "set/show debug aarch64", "set/show debug
9514 coff-pe-read" and "set/show debug mach-o".
9515
9516 2013-04-02 Pedro Alves <palves@redhat.com>
9517
9518 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9519
9520 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9521
9522 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9523 gdb_string.h is now in common/.
9524
9525 2013-04-02 Pedro Alves <palves@redhat.com>
9526
9527 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9528 under "New options".
9529
9530 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9531
9532 Revert this patch:
9533 PR gdb/15275
9534 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9535
9536 2013-04-02 Pedro Alves <palves@redhat.com>
9537
9538 PR gdb/15275
9539
9540 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9541 (remote_serial_write): New function.
9542 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9543
9544 2013-04-01 Jiong Wang <jiwang@tilera.com>
9545
9546 * NEWS: Mention TILE-Gx in "New native configurations" and
9547 "New targets" sections.
9548
9549 2013-04-01 Doug Evans <dje@google.com>
9550
9551 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9552 (process_enumeration_scope): Simplify.
9553
9554 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9555 type_unit_group ...
9556 (struct signatured_type): ... to here.
9557 (sig_type_ptr): New typedef.
9558 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9559 out of union 't'. All uses updated.
9560 (dw2_get_file_names_reader): Assert not called for a type unit.
9561 (dw2_get_file_names): Assert not called for a type unit or type
9562 unit group.
9563 (build_type_psymtabs_reader): Assert called for a type unit.
9564 (build_type_psymtab_dependencies): Assert called for a type unit group.
9565
9566 * dwarf2read.c (free_dwo_file): Add comment.
9567 (dwarf2_per_objfile_free): Unref dwp bfd.
9568
9569 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9570
9571 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9572 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9573 (read_pe_exported_syms): Remove unused 'exportix'.
9574 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9575 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9576 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9577
9578 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9579
9580 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9581 (print_it_watchpoint): Remove unused 'bl'.
9582 (say_where): Remove unused 'uiout'.
9583 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9584 (bkpt_breakpoint_hit): Remove unused 'b'.
9585 (internal_bkpt_print_it): Remove unused 'uiout'.
9586 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9587
9588 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9589
9590 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9591 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9592
9593 2013-03-29 Doug Evans <dje@google.com>
9594
9595 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9596 Delete arg is_dwp. All callers updated.
9597 (open_dwp_file): New function.
9598 (open_and_init_dwp_file): Call it.
9599 (get_dwp_file): New function.
9600 (lookup_dwo_cutu): Call it.
9601
9602 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9603 unnecessary, cleanup.
9604
9605 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9606
9607 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9608 (lookup_dwo_unit): New function.
9609 (init_cutu_and_read_dies): Move DWO handling to new functions.
9610
9611 * dwarf2read.c (struct signatured_type): Tweak comment.
9612 (struct dwo_unit): Tweak comment.
9613 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9614 (create_dwo_debug_info_hash_table): Tweak comment.
9615 (dwarf2_per_cu_offset_and_type): Tweak comment.
9616
9617 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9618 missing .debug_types section.
9619
9620 2013-03-29 Yao Qi <yao@codesourcery.com>
9621
9622 * corelow.c: Include "completer.h".
9623 (_initialize_corelow): Call add_target_with_completer with
9624 argument 'filename_completer'.
9625 * tracepoint.c: Likewise.
9626 * exec.c (_initialize_exec): Likewise.
9627 * target.c (add_target): Rename to ...
9628 (add_target_with_completer): ... this. Call set_cmd_completer
9629 if parameter completer is not NULL.
9630 (add_target): New.
9631 * target.h: Include "command.h".
9632 (add_target_with_completer): Declare it.
9633
9634 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9635
9636 * coffread.c (is_import_fixup_symbol): New function.
9637 (record_minimal_symbol): Use is_import_fixup_symbol to
9638 detect import fixup symbols, and discard them.
9639
9640 2013-03-28 Doug Evans <dje@google.com>
9641
9642 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9643 types hash table until we know we need it.
9644
9645 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9646 index numbers.
9647
9648 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9649 All callers updated.
9650 (dw2_print_stats): Print #read CUs too.
9651 (dump_die_shallow): Print signatured types better.
9652
9653 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9654 info_or_types_section to section. All uses updated.
9655 (struct dwo_unit): Ditto.
9656
9657 2013-03-28 Pedro Alves <palves@redhat.com>
9658
9659 * NEWS (New options): New section.
9660 (New options): Mention set/show remote trace-status-packet.
9661 * remote.c (PACKET_qTStatus): New enumeration value.
9662 (remote_get_trace_status): Skip sending qTStatus if the packet is
9663 disabled. Use packet_ok.
9664 (_initialize_remote): Register a configuration command for
9665 qTStatus packet.
9666
9667 2013-03-28 Doug Evans <dje@google.com>
9668
9669 * symfile.c (find_separate_debug_file): Add comment.
9670 (terminate_after_last_dir_separator): Tweak comment.
9671
9672 * dwarf2read.c (create_partial_symtab): Add forward decl.
9673 (create_partial_symtab): Move to be closer to other psymtab functions.
9674 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9675
9676 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9677 (compute_symtab_includes): Remove unnecessary forward declaration.
9678 (die_needs_namespace): Add comment marking group of functions for
9679 dwarf2 name computation.
9680
9681 * typeprint.c (_initialize_typeprint): Improve type help text.
9682
9683 * python/python.c (finish_python_initialization): Provide suggestion
9684 for how to tell gdb to find its python files.
9685
9686 2013-03-28 Pedro Alves <palves@redhat.com>
9687
9688 PR gdb/15294
9689
9690 * source.c (_initialize_source): Change back "set listsize" to an
9691 integer command.
9692
9693 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9694
9695 PR gdb/15275
9696 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9697
9698 2013-03-27 Pedro Alves <palves@redhat.com>
9699
9700 * top.c (history_size): Rename to ...
9701 (history_size_setshow_var): ... this. Add comment.
9702 (show_commands): Use readline's 'history_length' instead of
9703 computing the history length by calling history_get in a loop.
9704 (set_history_size_command): Error out for sizes over INT_MAX.
9705 Restore previous history size on invalid size.
9706 (init_history): If HISTSIZE is negative, leave the history size as
9707 zero. Add comments.
9708 (init_main): Adjust.
9709
9710 2013-03-27 Pedro Alves <palves@redhat.com>
9711
9712 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9713 coff_pe_read" command to "set debug coff-pe-read".
9714
9715 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9716
9717 * record.c (command_size_to_target_size): Fix size comparison.
9718 Change parameter type from pointer to integer to integer.
9719 Update all users.
9720
9721 2013-03-27 Pierre Muller <muller@sourceware.org>
9722
9723 * windows-nat.c (handle_output_debug_string): Avoid typecast
9724 from integer of different size warning.
9725
9726 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9727
9728 * windows-nat.c (handle_output_debug_string): Add empty line
9729 after local block variable definition.
9730
9731 2013-03-26 Pedro Alves <palves@redhat.com>
9732
9733 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9734 (net_open): Make 'polls' local unsigned.
9735
9736 2013-03-26 Pedro Alves <palves@redhat.com>
9737
9738 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9739 a zuinteger command instead of uinteger.
9740
9741 2013-03-26 Pedro Alves <palves@redhat.com>
9742
9743 * record-full.c (record_full_insn_num): Make it unsigned.
9744 (record_full_check_insn_num, record_full_message)
9745 (record_full_registers_change, record_full_xfer_partial): Remove
9746 record_full_insn_max_num check (it's always != 0).
9747 (record_full_info, record_full_restore): Use %u as format string.
9748 (): Use %u as format string.
9749 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9750 check (it's always != 0).
9751
9752 2013-03-26 Pedro Alves <palves@redhat.com>
9753
9754 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9755 and "set dcache size" commands zuinteger instead of uinteger.
9756
9757 2013-03-26 Pedro Alves <palves@redhat.com>
9758
9759 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9760 command zuinteger instead of uinteger.
9761
9762 2013-03-26 Pedro Alves <palves@redhat.com>
9763
9764 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9765 zuinteger instead of uinteger.
9766
9767 2013-03-26 Pedro Alves <palves@redhat.com>
9768
9769 * record.c (record_insn_history_size_setshow_var)
9770 (record_call_history_size_setshow_var): New globals.
9771 (command_size_to_target_size): New function.
9772 (cmd_record_insn_history, cmd_record_call_history): Use
9773 command_size_to_target_size instead of cast.
9774 (validate_history_size, set_record_insn_history_size)
9775 (set_record_call_history_size): New functions.
9776 (_initialize_record): Install set_record_insn_history_size and
9777 set_record_call_history_size as "set" hooks of "set record
9778 instruction-history-size" and "set record
9779 function-call-history-size".
9780
9781 2013-03-26 Pedro Alves <palves@redhat.com>
9782
9783 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9784 use with history_max_entries use. Remove FIXME note.
9785
9786 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9787
9788 * record-btrace.c (record_btrace_close): Call
9789 record_btrace_auto_disable.
9790
9791 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9792
9793 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9794
9795 2013-03-25 Doug Evans <dje@google.com>
9796
9797 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9798
9799 2013-03-25 Tom Tromey <tromey@redhat.com>
9800
9801 PR symtab/11462:
9802 * c-exp.y (exp): Add new productions for destructors after '.' and
9803 '->'.
9804 (write_destructor_name): New function.
9805
9806 2013-03-25 Tom Tromey <tromey@redhat.com>
9807
9808 PR c++/9197:
9809 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9810 value_struct_elt, not lookup_struct_elt_type.
9811 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9812 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9813 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9814
9815 2013-03-25 Yao Qi <yao@codesourcery.com>
9816
9817 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9818 instead of '_mkdir'.
9819
9820 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9821
9822 * windows-nat.c (windows_get_absolute_argv0): New function.
9823 * windows-nat.h: Add its prototype.
9824
9825 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9826 Use IS_DIR_SEPARATOR instead of looking for a character inside
9827 SLASH_STRING. Include filenames.h.
9828 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9829 relocate_gdb_directory works when passed gdb_program_name.
9830 Include windows-nat.h.
9831
9832 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9833
9834 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9835 * remote.c (trace_error): Remove the special handling of '2'.
9836 (readchar) <SERIAL_EOF>
9837 (readchar) <SERIAL_ERROR>
9838 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9839 (remote_get_trace_status): Call throw_exception if EX is
9840 TARGET_CLOSE_ERROR.
9841 * utils.c (perror_with_name): Rename to ...
9842 (throw_perror_with_name): ... here. New parameter errcode, describe it
9843 in the function comment.
9844 (perror_with_name): New function wrapper.
9845 * utils.h (enum errors): New stub declaration.
9846 (throw_perror_with_name): New declaration.
9847
9848 2013-03-22 Pedro Alves <palves@redhat.com>
9849 Yao Qi <yao@codesourcery.com>
9850 Mark Kettenis <kettenis@gnu.org>
9851
9852 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9853 Don't let the user set the value to UINT_MAX directly.
9854 <var_integer>: Don't let the user set the value to INT_MAX
9855 directly.
9856
9857 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 * remote.c (remote_unpush_target): New function.
9860 (remote_open_1): Remove two pop_target calls, update one comment, add
9861 comment to target_preopen call. Replace pop_target call by
9862 remote_unpush_target call.
9863 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9864 pop_target calls by remote_unpush_target calls.
9865
9866 2013-03-22 Pedro Alves <palves@redhat.com>
9867
9868 * linux-nat.c (linux_child_follow_fork): Don't call
9869 linux_enable_event_reporting.
9870 (linux_handle_extended_wait): Don't call
9871 linux_enable_event_reporting.
9872
9873 2013-03-22 Pedro Alves <palves@redhat.com>
9874
9875 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9876 use it to rewrite the trampoline buffers with type gdb_byte[], and
9877 undefine the macro. Remove char* cast.
9878
9879 2013-03-21 Doug Evans <dje@google.com>
9880
9881 New commands "mt set per-command {space,time,symtab} {on,off}".
9882 * NEWS: Add entry.
9883 * event-top.c: #include "maint.h".
9884 * main.c: #include "maint.h".
9885 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9886 timeval-utils.h, maint.h, cli/cli-setshow.h.
9887 (per_command_time, per_command_space): New static globals.
9888 (per_command_symtab): New static global.
9889 (per_command_setlist, per_command_showlist): New static globals.
9890 (struct cmd_stats): Move here from utils.c.
9891 (set_per_command_time): Renamed from set_display_time in utils.c
9892 and moved here. All callers updated.
9893 (set_per_command_space): Renamed from set_display_space in utils.c
9894 and moved here. All callers updated.
9895 (count_symtabs_and_blocks): New function.
9896 (report_command_stats): Moved here from utils.c. Add support for
9897 printing symtab stats. Only print data if enabled before command
9898 executed.
9899 (make_command_stats_cleanup): Ditto.
9900 (sert_per_command_cmd, show_per_command_cmd): New functions.
9901 (_initialize_maint_cmds): Add new commands
9902 mt set per-command {space,time,symtab} {on,off}.
9903 * maint.h: New file.
9904 * top.c: #include "maint.h".
9905 * utils.c (reset_prompt_for_continue_wait_time): New function.
9906 (get_prompt_for_continue_wait_time): New function.
9907 * utils.h (reset_prompt_for_continue_wait_time): Declare
9908 (get_prompt_for_continue_wait_time): Declare.
9909 (make_command_stats_cleanup): Moved to maint.h.
9910 (set_display_time, set_display_space): Moved to maint.h and renamed
9911 to set_per_command_time, set_per_command_space.
9912 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9913 parse_binary_operation and made non-static. Don't call error,
9914 just return an error marker. All callers updated.
9915 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9916
9917 2013-03-21 Tom Tromey <tromey@redhat.com>
9918
9919 * symfile.c (alloc_section_addr_info): Update header. Don't set
9920 'num_sections' field.
9921 (build_section_addr_info_from_section_table): Set 'num_sections'.
9922 (build_section_addr_info_from_bfd): Likewise.
9923 (build_section_addr_info_from_objfile): Remove dead loop
9924 condition.
9925 (free_section_addr_info): Unconditionally call xfree.
9926 (relative_addr_info_to_section_offsets, addrs_section_sort)
9927 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9928 condition.
9929 (syms_from_objfile_1): Remove dead 'if' condition. Check
9930 'num_sections'.
9931 (add_symbol_file_command): Set 'num_sections'.
9932 * symfile-mem.c (symbol_file_add_from_memory): Set
9933 'num_sections'.
9934 * somread.c (som_symfile_offsets): Remove dead loop condition.
9935 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9936 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9937
9938 2013-03-21 Tom Tromey <tromey@redhat.com>
9939
9940 * tracepoint.h (decode_agent_options): Add 'trace_string'
9941 argument.
9942 * tracepoint.c (decode_agent_options): Add 'trace_string'
9943 argument.
9944 (validate_actionline): Update.
9945 (collect_symbol): Add 'trace_string' argument.
9946 (struct add_local_symbols_data) <trace_string>: New field.
9947 (do_collect_symbol): Update.
9948 (add_local_symbols): Add 'trace_string' argument.
9949 (encode_actions_1): Update.
9950 (trace_dump_actions): Update.
9951 * dwarf2loc.c (access_memory): Update.
9952 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9953 * ax-general.c (new_agent_expr): Update.
9954 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9955 (gen_trace_for_return_address): Add argument.
9956 (trace_kludge, trace_string_kludge): Remove.
9957 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9958 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9959 (gen_trace_for_var): Add 'trace_string' argument.
9960 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9961 (gen_printf, agent_eval_command_one): Update.
9962
9963 2013-03-21 Tom Tromey <tromey@redhat.com>
9964
9965 PR exp/15109:
9966 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9967 Handle FILENAME token.
9968
9969 2013-03-21 Tom Tromey <tromey@redhat.com>
9970
9971 * c-exp.y (YYPRINT): Define.
9972 (c_print_token): New function.
9973
9974 2013-03-21 Tom Tromey <tromey@redhat.com>
9975
9976 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9977
9978 2013-03-21 Yao Qi <yao@codesourcery.com>
9979
9980 * ctf.c: Include "gdb_stat.h".
9981 [USE_WIN32API]: New macro 'mkdir'.
9982 (ctf_start): Use permission bits macros if they are defined.
9983
9984 2013-03-20 Keith Seitz <keiths@redhat.com>
9985
9986 * breakpoint.h (struct breakpoint): Add comment to
9987 extra_string indicating that this member is mallod'd.
9988 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9989
9990 2013-03-20 Pedro Alves <palves@redhat.com>
9991
9992 PR gdb/15289
9993
9994 * cli/cli-setshow.c (do_set_command)
9995 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9996 the result of parsing the command argument. Throw error if the
9997 value is greater than UINT_MAX. Print the invalid value with
9998 plongest.
9999 <var_integer, var_zinteger>: Use LONGEST for variable holding the
10000 result of parsing the command argument. Throw error if the value
10001 is greater than INT_MAX, not greater or equal. Also throw error
10002 if the value is less than INT_MIN. Print the invalid value with
10003 plongest.
10004 <var_zuinteger_unlimited>: Throw error if the value is greater
10005 than INT_MAX, not greater or equal.
10006 (do_show_command) <var_integer, var_zinteger,
10007 var_zuinteger_unlimited>: Use %d for printing int, not %u.
10008
10009 2013-03-20 Tom Tromey <tromey@redhat.com>
10010
10011 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
10012 if possible.
10013 * dwarf2read.c (read_func_scope): Remove old FIXME.
10014 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
10015 not LOC_COMPUTED.
10016 * findvar.c (symbol_read_needs_frame, default_read_var_value):
10017 Unconditionally call via computed ops, if possible.
10018 * printcmd.c (address_info): Unconditionally call via computed ops,
10019 if possible.
10020 * stack.c (read_frame_arg): Unconditionally call via computed ops,
10021 if possible.
10022 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
10023 * tracepoint.c (scope_info): Unconditionally call via computed ops,
10024 if possible.
10025
10026 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10027 Tom Tromey <tromey@redhat.com>
10028
10029 PR symtab/8421:
10030 * coffread.c (coff_register_index): New global.
10031 (process_coff_symbol, coff_read_enum_type): Set
10032 SYMBOL_ACLASS_INDEX.
10033 (_initialize_coffread): Initialize new global.
10034 * dwarf2loc.c (locexpr_find_frame_base_location)
10035 (dwarf2_block_frame_base_locexpr_funcs)
10036 (loclist_find_frame_base_location)
10037 (dwarf2_block_frame_base_loclist_funcs): New.
10038 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10039 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10040 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10041 (dwarf2_block_frame_base_loclist_funcs): New.
10042 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10043 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10044 globals.
10045 (read_func_scope): Update.
10046 (fixup_go_packaging, mark_common_block_symbol_computed)
10047 (var_decode_location, new_symbol_full, dwarf2_const_value):
10048 Set SYMBOL_ACLASS_INDEX.
10049 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10050 (_initialize_dwarf2_read): Initialize new globals.
10051 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10052 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10053 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10054 globals.
10055 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10056 (_initialize_mdebugread): Initialize new globals.
10057 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10058 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10059 (stab_register_index, stab_regparm_index): New globals.
10060 (define_symbol, read_enum_type, common_block_end): Set
10061 SYMBOL_ACLASS_INDEX.
10062 (_initialize_stabsread): Initialize new globals.
10063 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10064 globals.
10065 (MAX_SYMBOL_IMPLS): New define.
10066 (register_symbol_computed_impl, register_symbol_block_impl)
10067 (register_symbol_register_impl)
10068 (initialize_ordinary_address_classes): New functions.
10069 (_initialize_symtab): Call initialize_ordinary_address_classes.
10070 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10071 (struct symbol_impl): New.
10072 (SYMBOL_ACLASS_BITS): New define.
10073 (struct symbol) <aclass, ops>: Remove fields.
10074 <aclass_index>: New field.
10075 (symbol_impls): Declare.
10076 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10077 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10078 (register_symbol_computed_impl, register_symbol_block_impl)
10079 (register_symbol_register_impl): Declare.
10080 (struct symbol_computed_ops): Add location_has_loclist.
10081 (struct symbol_block_ops): New.
10082 (SYMBOL_BLOCK_OPS): New.
10083 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10084
10085 2013-03-20 Tom Tromey <tromey@redhat.com>
10086
10087 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10088 (print_partial_symbols, recursively_search_psymtabs): Use
10089 PSYMBOL_CLASS.
10090
10091 2013-03-20 Pierre Muller <muller@sourceware.org>
10092
10093 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10094 addtion, subtraction, multiplication and division binary operator.
10095
10096 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10097
10098 Code cleanup.
10099 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10100 * bsd-kvm.c (bsd_kvm_close): Likewise.
10101 * bsd-uthread.c (bsd_uthread_close): Likewise.
10102 * corelow.c (core_close): Likewise.
10103 (core_close_cleanup): Remove parameter quitting from a caller.
10104 * event-top.c (async_disconnect): Likewise.
10105 * exec.c (exec_close_1): Remove parameter quitting.
10106 * go32-nat.c (go32_close): Likewise.
10107 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10108 parameter quitting from a caller.
10109 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10110 variable.
10111 (mips_linux_close): Remove parameter quitting. Remove parameter
10112 quitting from a caller.
10113 * monitor.c (monitor_close): Remove parameter quitting.
10114 * monitor.h (monitor_close): Likewise.
10115 * record-btrace.c (record_btrace_close): Likewise.
10116 * record-full.c (record_full_close): Likewise.
10117 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10118 it also from fprintf_unfiltered.
10119 * remote-mips.c (mips_close): Remove parameter quitting.
10120 (mips_detach): Remove parameter quitting from a caller.
10121 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10122 (gdbsim_close): Remove duplicate function comment. Remove parameter
10123 quitting and remove it also from printf_filtered.
10124 * remote.c (remote_close): Remove parameter quitting.
10125 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10126 * target.c (update_current_target): Remove parameter int from to_close
10127 de_fault.
10128 (push_target, unpush_target, pop_target): Remove parameter quitting from
10129 a caller.
10130 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10131 Remove parameter quitting from a caller.
10132 (target_preopen): Remove parameter quitting from a caller.
10133 (target_close): Remove parameter quitting. Remove parameter quitting
10134 from a caller two times. Remove parameter quitting also from
10135 fprintf_unfiltered.
10136 * target.h (struct target_ops): Remove parameter quitting and as int
10137 from fields to_xclose and to_close.
10138 (extern struct target_ops current_target):
10139 (target_close, pop_all_targets): Remove parameter quitting. Update the
10140 comment.
10141 (pop_all_targets_above): Remove parameter quitting.
10142 * top.c (quit_target): Remove parameter quitting from a caller.
10143 * tracepoint.c (tfile_close): Remove parameter quitting.
10144 * windows-nat.c (windows_close): Remove parameter quitting.
10145
10146 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10147
10148 * windows-nat.c (handle_output_debug_string): Replace call
10149 to string_to_core_addr with call to strtoull.
10150
10151 2013-03-20 Yao Qi <yao@codesourcery.com>
10152
10153 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10154 and write it to CTF metadata.
10155
10156 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10157
10158 * windows-nat.c (handle_output_debug_string): Change type of n to
10159 SIZE_T to avoid crash on 64 bit systems.
10160
10161 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10162
10163 * python/python-internal.h (HAVE_SNPRINTF)
10164 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10165 about redefinition of snprintf by pyerrors.h.
10166
10167 2013-03-15 Steve Ellcey <sellcey@mips.com>
10168
10169 * remote-sim.c (sim_command_completer): Make char arguments const.
10170
10171 2013-03-15 Tom Tromey <tromey@redhat.com>
10172
10173 PR c++/15116:
10174 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10175
10176 2013-03-14 Tom Tromey <tromey@redhat.com>
10177
10178 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10179 New fields.
10180 (get_file_crc): Move from symfile.c.
10181 (gdb_bfd_crc): New function.
10182 * gdb_bfd.h (gdb_bfd_crc): Declare.
10183 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10184 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10185 (separate_debug_file_exists): Use gdb_bfd_crc.
10186
10187 2013-03-14 Tom Tromey <tromey@redhat.com>
10188
10189 * symfile.c (get_debug_link_info): Remove.
10190 (find_separate_debug_file_by_debuglink): Use
10191 bfd_get_debug_link_info.
10192
10193 2013-03-14 Tom Tromey <tromey@redhat.com>
10194
10195 * symtab.c (error_in_psymtab_expansion): New function.
10196 (lookup_symbol_aux_quick)
10197 (basic_lookup_transparent_type_quick): Remove "last resort"
10198 code. Use error_in_psymtab_expansion.
10199
10200 2013-03-14 Doug Evans <dje@google.com>
10201 Jan Kratochvil <jan.kratochvil@redhat.com>
10202
10203 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10204 any successful compare_filenames_for_search or FILENAME_CMP.
10205 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10206 * symtab.c (iterate_over_some_symtabs): Likewise.
10207
10208 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10209
10210 * source.c (print_source_lines_base): Make a local copy of
10211 symtab_to_fullname.
10212
10213 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10214 Jan Kratochvil <jan.kratochvil@redhat.com>
10215
10216 * source.c (print_source_lines_base): Suppress "file" for TUI.
10217
10218 2013-03-14 Keith Seitz <keiths@redhat.com>
10219 Alan Matsuoka <alanm@redhat.com>
10220
10221 PR c++/15203
10222 PR c++/15210
10223 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10224 TYPE_CODE_METHOD.
10225 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10226 symbols.
10227
10228 2013-03-14 Yao Qi <yao@codesourcery.com>
10229
10230 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10231 status to tfile if trace is stopped by command 'tstop'.
10232
10233 2013-03-14 Yao Qi <yao@codesourcery.com>
10234
10235 * tracepoint.c (tfile_write_status): Write trace notes and user
10236 name into tfile if they are not NULL.
10237
10238 2013-03-14 Hui Zhu <hui@codesourcery.com>
10239 Yao Qi <yao@codesourcery.com>
10240
10241 * Makefile.in (REMOTE_OBS): Add ctf.o.
10242 (SFILES): Add ctf.c.
10243 (HFILES_NO_SRCDIR): Add ctf.h.
10244 * ctf.c, ctf.h: New files.
10245 * tracepoint.c: Include 'ctf.h'.
10246 (collect_pseudocommand): Remove static.
10247 (trace_save_command): Parse option "-ctf".
10248 Produce different trace file writers per option.
10249 Adjust output message.
10250 (trace_save_tfile, trace_save_ctf): New.
10251 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10252 * mi/mi-main.c: Include 'ctf.h'.
10253 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10254 trace_save_tfile or trace_save_ctf.
10255 * NEWS: Mention these changes.
10256
10257 2013-03-14 Yao Qi <yao@codesourcery.com>
10258
10259 * tracepoint.c (trace_file_writer_xfree): New.
10260 (struct tfile_writer_data): New.
10261 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10262 (tfile_write_header, tfile_write_regblock_type): New.
10263 (tfile_write_status, tfile_write_uploaded_tsv): New.
10264 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10265 (tfile_write_raw_data, (tfile_end): New.
10266 (tfile_write_ops): New global variable.
10267 (TRACE_WRITE_R_BLOCK): New macro.
10268 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10269 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10270 (TRACE_WRITE_V_BLOCK): New macro.
10271 (trace_save): Add extra one parameter WRITER. Make it static.
10272 Use WRITER to writer trace.
10273 (tfile_trace_file_writer_new): New.
10274 (trace_save_command): Caller update.
10275 (trace_save_tfile): Write trace data in TFILE format.
10276 * tracepoint.h (struct trace_frame_write_ops): New.
10277 (struct trace_file_write_ops): New.
10278 (struct trace_file_writer): New.
10279 (trace_save): Remove its declaration.
10280 (trace_save_tfile): Declare it.
10281 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10282 instead of trace_save.
10283
10284 2013-03-13 Pedro Alves <palves@redhat.com>
10285
10286 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10287
10288 2013-03-13 Pedro Alves <palves@redhat.com>
10289
10290 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10291 commented out code.
10292 * demangle.c (current_demangling_style_string): Make it const.
10293 (set_demangling_command): Assert the demangling style is known.
10294 Remove all handling of unknown styles. Set
10295 'current_demangling_style_string' to an element of the
10296 demangling_style_names array.
10297 (set_demangling_style): Delete.
10298 (_initialize_demangler): Set current_demangling_style_string to the
10299 element of the demangling_style_names array that corresponds to
10300 the default demangling style. Remove FIXME note. Don't call
10301 set_demangling_style.
10302 * gdb-demangle.h (set_demangling_style): Remove declaration.
10303
10304 2013-03-13 Pedro Alves <palves@redhat.com>
10305
10306 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10307 fields const.
10308 (ada_make_symbol_completion_list): Make "text0" parameter const.
10309 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10310 * breakpoint.c (condition_completer): Make "text" and "word"
10311 parameters const. Adjust.
10312 (check_tracepoint_command): Adjust to validate_actionline
10313 prototype change.
10314 (catch_syscall_completer): Make "text" and "word" parameters
10315 const.
10316 * cli/cli-cmds.c (show_user): Make "comname" local const.
10317 (valid_command_p): Make "command" parameter const.
10318 (alias_command): Make "alias_prefix" and "command_prefix" locals
10319 const.
10320 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10321 (add_alias_cmd): Make "name" and "oldname" parameters const.
10322 Adjust. No longer make copy of OLDNAME.
10323 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10324 (add_setshow_cmd_full, add_setshow_enum_cmd)
10325 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10326 (add_setshow_filename_cmd, add_setshow_string_cmd)
10327 (add_setshow_string_noescape_cmd)
10328 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10329 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10330 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10331 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10332 Make "name" parameter const.
10333 (help_cmd): Rename "command" parameter to "arg". New const local
10334 "command".
10335 (find_cmd): Make "command" parameter const.
10336 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10337 deprecated_cmd_warning prototype change.
10338 (undef_cmd_error): Make "cmdtype" parameter const.
10339 (lookup_cmd): Make "line" parameter const.
10340 (deprecated_cmd_warning): Change type of "text" parameter to
10341 pointer to const char, from pointer to pointer to char. Adjust.
10342 (lookup_cmd_composition): Make "text" parameter const.
10343 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10344 parameters const.
10345 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10346 const.
10347 * cli/cli-script.c (validate_comname): Make "tem" local const.
10348 (define_command): New const local "tem_c". Use it in calls to
10349 lookup_cmd.
10350 (document_command): Make "tem" and "comfull" locals const.
10351 (show_user_1): Make "prefix" and "name" parameters const.
10352 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10353 const.
10354 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10355 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10356 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10357 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10358 (complete_on_enum, add_setshow_enum_cmd)
10359 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10360 (add_setshow_filename_cmd, add_setshow_string_cmd)
10361 (add_setshow_string_noescape_cmd)
10362 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10363 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10364 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10365 Change prototypes, constifying strings.
10366 * completer.c (noop_completer, filename_completer): Make "text"
10367 and "prefix" parameters const.
10368 (location_completer, expression_completer)
10369 (complete_line_internal): Make "text" and "prefix" parameters
10370 const and adjust.
10371 (command_completer, signal_completer): Make "text" and "prefix"
10372 parameters const.
10373 * completer.h (noop_completer, filename_completer)
10374 (expression_completer, location_completer, command_completer)
10375 (signal_completer): Change prototypes.
10376 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10377 parameters const.
10378 * cp-abi.c (cp_abi_completer): Likewise.
10379 * expression.h (parse_expression_for_completion): Change
10380 prototype.
10381 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10382 parameters const.
10383 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10384 * infrun.c (handle_completer): Make "text" and "word" parameters
10385 const.
10386 * interps.c (interpreter_completer): Make "text" and "word"
10387 parameters const.
10388 * language.h (struct language_defn)
10389 <la_make_symbol_completion_list>: Make "text" and "word"
10390 parameters const.
10391 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10392 (parse_exp_in_context): Rename to ...
10393 (parse_exp_in_context_1): ... this.
10394 (parse_exp_in_context): Reimplement, with const hack from
10395 parse_exp_1.
10396 (parse_expression_for_completion): Make "string" parameter const.
10397 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10398 to pointer to const char. Adjust.
10399 (print_command_1): Make "exp" parameter const.
10400 (output_command): Rename to ...
10401 (output_command_const): ... this. Make "exp" parameter const.
10402 (output_command): Reimplement.
10403 (x_command): Adjust.
10404 (display_command): Rename "exp" parameter to "arg". New "exp"
10405 local, const version of "arg".
10406 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10407 "cmd_name" local const.
10408 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10409 call.
10410 (cmdpy_completer): Make "text" and "word" parameters const.
10411 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10412 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10413 const.
10414 * remote.c (_initialize_remote): Make "cmd_name" local const.
10415 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10416 parameters const. Adjust.
10417 (completion_list_add_fields): Make "sym_text", "text" and "word"
10418 parameters const.
10419 (struct add_name_data) <sym_text, text, word>: Make fields const.
10420 (default_make_symbol_completion_list_break_on): Make "text" and
10421 "word" parameters const. Adjust locals.
10422 (default_make_symbol_completion_list)
10423 (make_symbol_completion_list, make_symbol_completion_type)
10424 (make_symbol_completion_list_fn): Make "text" and "word"
10425 parameters const.
10426 (make_file_symbol_completion_list): Make "text", "word" and
10427 "srcfile" parameters const. Adjust locals.
10428 (add_filename_to_list): Make "text" and "word" parameters const.
10429 (struct add_partial_filename_data) <text, word>: Make fields
10430 const.
10431 (make_source_files_completion_list): Make "text" and "word"
10432 parameters const.
10433 * symtab.h (default_make_symbol_completion_list_break_on)
10434 (default_make_symbol_completion_list, make_symbol_completion_list)
10435 (make_symbol_completion_type enum type_code)
10436 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10437 (make_source_files_completion_list): Change prototype.
10438 * top.c (execute_command): Adjust to pass pointer to pointer to
10439 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10440 change.
10441 (set_verbose): Make "cmdname" local const.
10442 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10443 and adjust.
10444 (validate_actionline): Make "line" parameter a pointer to const
10445 char, and adjust.
10446 (encode_actions_1): Make "action_exp" local const, and adjust.
10447 (encode_actions): Adjust.
10448 (replace_comma): Delete.
10449 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10450 const, and adjust. Don't frob the action string while splitting
10451 it at commas. Instead, make a copy of each split substring in
10452 turn.
10453 (trace_dump_command): Adjust to validate_actionline prototype
10454 change.
10455 * tracepoint.h (decode_agent_options, decode_agent_options)
10456 (encode_actions, validate_actionline): Change prototypes.
10457 * valprint.h (output_command): Delete declaration.
10458 (output_command_const): Declare.
10459 * value.c (function_destroyer): Cast const away in xfree call.
10460
10461 2013-03-13 Pedro Alves <palves@redhat.com>
10462
10463 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10464 rather than casting 'const char * const *' to 'const char **'.
10465 * ada-lex.l (processInt): Make "trailer" local const. Remove
10466 'const char **' cast.
10467 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10468 locals, and use those as strtol output pointer, instead than doing
10469 invalid casts to from 'const char **' to 'char **'.
10470 (_initialize_demangle): Remove cast.
10471 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10472 locals, and use those as strtol output pointer, instead than doing
10473 invalid casts to from 'const char **' to 'char **'.
10474 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10475 casts.
10476 * stap-probe.c (stap_parse_register_operand)
10477 (stap_parse_single_operand): Likewise.
10478
10479 2013-03-13 Yao Qi <yao@codesourcery.com>
10480
10481 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10482 the last matched 'V' blcok in trace frame.
10483
10484 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10485
10486 * NEWS: Create a new section for the next release branch.
10487 Rename the section of the current branch, now that it has
10488 been cut.
10489
10490 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10491
10492 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10493 * version.in: Bump version to 7.6.50.20130312-cvs.
10494
10495 2013-03-12 Keith Seitz <keiths@redhat.com>
10496
10497 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10498 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10499 Remove temporary copy of input string.
10500 (mi_execute_command_wrapper): Make "cmd" const.
10501 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10502 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10503 Use const strings.
10504 (mi_parse): Make "cmd" const.
10505 Use const strings.
10506 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10507
10508 2013-03-12 Keith Seitz <keiths@redhat.com>
10509
10510 * ada-lang.c (ada_read_renaming_var_value): Pass const
10511 pointer to expression string to parse_exp_1.
10512 (create_excep_cond_exprs): Likewise.
10513 * ax-gdb.c (agent_eval_command_one): Likewise.
10514 (maint_agent_printf_command): Likewise.
10515 Constify much of the string handling/parsing.
10516 * breakpoint.c (set_breakpoint_condition): Pass const
10517 pointer to expression string to parse_exp_1.
10518 (update_watchpoint): Likewise.
10519 (parse_cmd_to_aexpr): Constify string handling.
10520 Pass const pointer to parse_exp_1.
10521 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10522 (find_condition_and_thread): Likewise.
10523 Make TOK const.
10524 (watch_command_1): Make "arg" const.
10525 Constify string handling.
10526 Copy the expression string instead of changing the input
10527 string.
10528 (update_breakpoint_location): Pass const pointer to
10529 parse_exp_1.
10530 * eval.c (parse_and_eval_address): Make "exp" const.
10531 (parse_to_comma_and_eval): Make "expp" const.
10532 (parse_and_eval): Make "exp" const.
10533 * expression.h (parse_expression): Make argument const.
10534 (parse_exp_1): Make first argument const.
10535 * findcmd.c (parse_find_args): Treat "args" as const.
10536 * linespec.c (parse_linespec): Pass const pointer to
10537 linespec_expression_to_pc.
10538 (linespec_expression_to_pc): Make "exp_ptr" const.
10539 * parse.c (parse_exp_1): Make "stringptr" const.
10540 Make a copy of the expression to pass to parse_exp_in_context until
10541 this whole interface can be constified.
10542 (parse_expression): Make "string" const.
10543 * printcmd.c (ui_printf): Treat "arg" as const.
10544 Handle const strings.
10545 * tracepoint.c (validate_actionline): Pass const pointer to
10546 all calls to parse_exp_1.
10547 (encode_actions_1): Likewise.
10548 * value.h (parse_to_comma_and_eval): Make argument const.
10549 (parse_and_eval_address): Likewise.
10550 (parse_and_eval): Likewise.
10551 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10552 (varobj_set_value): Likewise.
10553 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10554 constify string handling.
10555 Pass const pointers to parse_and_eval_address and
10556 parse_to_comman_and_eval.
10557 * cli/cli-utils.c (skip_to_space): Rename to ...
10558 (skip_to_space_const): ... this. Handle const strings.
10559 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10560 skip_to_space_const.
10561 (skip_to_space_const): Declare.
10562 * common/format.c (parse_format_string): Make "arg" const.
10563 Handle const strings.
10564 * common/format.h (parse_format_string): Make "arg" const.
10565 * gdbserver/ax.c (ax_printf): Make "format" const.
10566 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10567 of the expression string.
10568
10569 2013-03-12 Hui Zhu <hui@codesourcery.com>
10570
10571 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10572
10573 2013-03-12 Yao Qi <yao@codesourcery.com>
10574 Hui Zhu <hui@codesourcery.com>
10575
10576 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10577 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10578 DW_OP_deref_size.
10579
10580 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10581
10582 * ada-lex.l (rules): Only recognize 'thread' as a
10583 delimiter when followed by numerals, as for c-exp.y.
10584 Use new rewind_to_char function to rewind the input for
10585 expression-delimiting tokens.
10586 (rewind_to_char): New function.
10587
10588 2013-03-11 Pedro Alves <palves@redhat.com>
10589 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 * configure: Regenerate.
10592 * configure.ac (check dynamic export flag): Link python test with
10593 $PYTHON_LIBS.
10594
10595 2013-03-11 Doug Evans <dje@google.com>
10596 Keith Seitz <keiths@redhat.com>
10597
10598 * linespec.c (find_linespec_symbols): Call find_function_symbols
10599 first, and then call lookup_prefix_sym/find_method.
10600
10601 2013-03-11 Pedro Alves <palves@redhat.com>
10602
10603 * charset.c (convert_between_encodings): Don't cast between
10604 different pointer to pointer types. Instead, make the 'inp' local
10605 be of the type iconv expects.
10606 (wchar_iterate): Don't cast between different pointer to pointer
10607 types. Instead, use new pointer local of the type iconv expects.
10608 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10609 Add new local of type char pointer, and use it to get a
10610 char/string view of the byte buffer, instead of casting between
10611 pointer to pointer types.
10612
10613 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10614
10615 * remote.c (remote_set_trace_buffer_size): Move != operator
10616 to the start of next line to fix an ARI warning.
10617
10618 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10619
10620 * NEWS: Add record changes.
10621
10622 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10623
10624 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10625 the instruction history disassembly.
10626 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10627 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10628
10629 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10630
10631 * Makefile.in (SFILES): Add record-btrace.c
10632 (COMMON_OBS): Add record-btrace.o
10633 * record-btrace.c: New.
10634 * objfiles.c: Include btrace.h.
10635 (free_objfile): call btrace_free_objfile.
10636
10637 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10638
10639 * target.c (target_call_history, target_call_history_from,
10640 target_call_history_range): New.
10641 * target.h (target_ops) <to_call_history, to_call_history_from,
10642 to_call_history_range>: New fields.
10643 (target_call_history, target_call_history_from,
10644 target_call_history_range): New declaration.
10645 * record.c (get_call_history_modifiers, cmd_record_call_history,
10646 record_call_history_size): New.
10647 (_initialize_record): Add the "record function-call-history" command.
10648 Add "set/show record function-call-history-size" commands.
10649 * record.h (record_print_flag): New.
10650
10651 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10652
10653 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10654 to_insn_history_range>: New fields.
10655 (target_insn_history): New.
10656 (target_insn_history_from): New.
10657 (target_insn_history_range): New.
10658 * target.c (target_insn_history): New.
10659 (target_insn_history_from): New.
10660 (target_insn_history_range): New.
10661 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10662 (record_insn_history_size): New.
10663 (get_insn_number): New.
10664 (get_context_size): New.
10665 (no_chunk): New.
10666 (get_insn_history_modifiers): New.
10667 (cmd_record_insn_history): New.
10668 (_initialize_record): Add "set/show record instruction-history-size"
10669 command. Add "record instruction-history" command.
10670
10671 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10672
10673 * record.h (record_disconnect): New.
10674 (record_detach): New.
10675 (record_mourn_inferior): New.
10676 (record_kill): New.
10677 * record-full.c (record_disconnect, record_detach,
10678 record_mourn_inferior, record_kill): Move to...
10679 * record.c: ...here.
10680 (DEBUG): New.
10681 (record_stop): New.
10682 (record_unpush): New.
10683 (cmd_record_stop): Call record_stop. Replace unpush_target
10684 call with record_unpush call.
10685 (record_disconnect, record_detach): Assert that the target
10686 is of record stratum. Call record_unpush, record_stop, and
10687 DEBUG.
10688 (record_mourn_inferior, record_kill): Assert that the target
10689 is of record stratum. Call record_unpush and DEBUG.
10690
10691 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10692
10693 * record-full.h, record-full.c (record_memory_query): Rename
10694 to ...
10695 (record_full_memory_query): ...this. Update all users.
10696 (record_arch_list_add_reg): Rename to ...
10697 (record_full_arch_list_add_reg): ...this. Update all users.
10698 (record_arch_list_add_mem): Rename to ...
10699 (record_full_arch_list_add_mem): ...this. Update all users.
10700 (record_arch_list_add_end): Rename to ...
10701 (record_full_arch_list_add_end): ...this. Update all users.
10702 (record_gdb_operation_disable_set): Rename to ...
10703 (record_full_gdb_operation_disable_set): ...this.
10704 Update all users.
10705
10706 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10707
10708 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10709 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10710 (RECORD_IS_REPLAY): Renamed to ...
10711 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10712 (RECORD_FILE_MAGIC): Renamed to ...
10713 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10714 (record_mem_entry): Renamed to ...
10715 (record_full_mem_entry): ... this. Updated all users.
10716 (record_reg_entry): Renamed to ...
10717 (record_full_reg_entry): ... this. Updated all users.
10718 (record_end_entry): Renamed to ...
10719 (record_full_end_entry): ... this. Updated all users.
10720 (record_type) <record_end, record_reg, record_mem>: Renamed
10721 to ...
10722 (record_full_type) <record_full_end, record_full_reg,
10723 record_full_mem>: ... this. Updated all users.
10724 (record_entry): Renamed to ...
10725 (record_full_entry): ... this. Updated all users.
10726 (record_core_buf_entry): Renamed to ...
10727 (record_full_core_buf_entry): ... this. Updated all users.
10728 (record_core_regbuf): Renamed to ...
10729 (record_full_core_regbuf): ... this. Updated all users.
10730 (record_core_start): Renamed to ...
10731 (record_full_core_start): ... this. Updated all users.
10732 (record_core_end): Renamed to ...
10733 (record_full_core_end): ... this. Updated all users.
10734 (record_core_buf_list): Renamed to ...
10735 (record_full_core_buf_list): ... this. Updated all users.
10736 (record_first): Renamed to ...
10737 (record_full_first): ... this. Updated all users.
10738 (record_list): Renamed to ...
10739 (record_full_list): ... this. Updated all users.
10740 (record_arch_list_head): Renamed to ...
10741 (record_full_arch_list_head): ... this. Updated all users.
10742 (record_arch_list_tail): Renamed to ...
10743 (record_full_arch_list_tail): ... this. Updated all users.
10744 (record_stop_at_limit): Renamed to ...
10745 (record_full_stop_at_limit): ... this. Updated all users.
10746 (record_insn_max_num): Renamed to ...
10747 (record_full_insn_max_num): ... this. Updated all users.
10748 (record_insn_num): Renamed to ...
10749 (record_full_insn_num): ... this. Updated all users.
10750 (record_insn_count): Renamed to ...
10751 (record_full_insn_count): ... this. Updated all users.
10752 (record_ops): Renamed to ...
10753 (record_full_ops): ... this. Updated all users.
10754 (record_core_ops): Renamed to ...
10755 (record_full_core_ops): ... this. Updated all users.
10756 (set_record_cmdlist): Renamed to ...
10757 (set_record_full_cmdlist): ... this. Updated all users.
10758 (show_record_cmdlist): Renamed to ...
10759 (show_record_full_cmdlist): ... this. Updated all users.
10760 (record_cmdlist): Renamed to ...
10761 (record_full_cmdlist): ... this. Updated all users.
10762 (record_beneath_to_resume_ops): Renamed to ...
10763 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10764 (record_beneath_to_resume): Renamed to ...
10765 (record_full_beneath_to_resume): ... this. Updated all users.
10766 (record_beneath_to_wait_ops): Renamed to ...
10767 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10768 (record_beneath_to_wait): Renamed to ...
10769 (record_full_beneath_to_wait): ... this. Updated all users.
10770 (record_beneath_to_store_registers_ops): Renamed to ...
10771 (record_full_beneath_to_store_registers_ops): ... this.
10772 Updated all users.
10773 (record_beneath_to_store_registers): Renamed to ...
10774 (record_full_beneath_to_store_registers): ... this.
10775 Updated all users.
10776 (record_beneath_to_xfer_partial_ops): Renamed to ...
10777 (record_full_beneath_to_xfer_partial_ops): ... this.
10778 Updated all users.
10779 (record_beneath_to_xfer_partial): Renamed to ...
10780 (record_full_beneath_to_xfer_partial): ... this.
10781 Updated all users.
10782 (record_beneath_to_insert_breakpoint): Renamed to ...
10783 (record_full_beneath_to_insert_breakpoint): ... this.
10784 Updated all users.
10785 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10786 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10787 Updated all users.
10788 (record_beneath_to_stopped_data_address): Renamed to ...
10789 (record_full_beneath_to_stopped_data_address): ... this.
10790 Updated all users.
10791 (record_beneath_to_async): Renamed to ...
10792 (record_full_beneath_to_async): ... this. Updated all users.
10793 (record_goto_insn): Renamed to ...
10794 (record_full_goto_insn): ... this. Updated all users.
10795 (record_save): Renamed to ...
10796 (record_full_save): ... this. Updated all users.
10797 (record_reg_alloc): Renamed to ...
10798 (record_full_reg_alloc): ... this. Updated all users.
10799 (record_reg_release): Renamed to ...
10800 (record_full_reg_release): ... this. Updated all users.
10801 (record_mem_alloc): Renamed to ...
10802 (record_full_mem_alloc): ... this. Updated all users.
10803 (record_mem_release): Renamed to ...
10804 (record_full_mem_release): ... this. Updated all users.
10805 (record_end_alloc): Renamed to ...
10806 (record_full_end_alloc): ... this. Updated all users.
10807 (record_end_release): Renamed to ...
10808 (record_full_end_release): ... this. Updated all users.
10809 (record_entry_release): Renamed to ...
10810 (record_full_entry_release): ... this. Updated all users.
10811 (record_list_release): Renamed to ...
10812 (record_full_list_release): ... this. Updated all users.
10813 (record_list_release_following): Renamed to ...
10814 (record_full_list_release_following): ... this.
10815 Updated all users.
10816 (record_list_release_first): Renamed to ...
10817 (record_full_list_release_first): ... this. Updated all users.
10818 (record_arch_list_add): Renamed to ...
10819 (record_full_arch_list_add): ... this. Updated all users.
10820 (record_get_loc): Renamed to ...
10821 (record_full_get_loc): ... this. Updated all users.
10822 (record_check_insn_num): Renamed to ...
10823 (record_full_check_insn_num): ... this. Updated all users.
10824 (record_arch_list_cleanups): Renamed to ...
10825 (record_full_arch_list_cleanups): ... this. Updated all users.
10826 (record_message): Renamed to ...
10827 (record_full_message): ... this. Updated all users.
10828 (record_message_wrapper): Renamed to ...
10829 (record_full_message_wrapper): ... this. Updated all users.
10830 (record_message_wrapper_safe): Renamed to ...
10831 (record_full_message_wrapper_safe): ... this. Updated all users.
10832 (record_gdb_operation_disable): Renamed to ...
10833 (record_full_gdb_operation_disable): ... this. Updated all users.
10834 (record_hw_watchpoint): Renamed to ...
10835 (record_full_hw_watchpoint): ... this. Updated all users.
10836 (record_exec_insn): Renamed to ...
10837 (record_full_exec_insn): ... this. Updated all users.
10838 (record_restore): Renamed to ...
10839 (record_full_restore): ... this. Updated all users.
10840 (record_async_inferior_event_token): Renamed to ...
10841 (record_full_async_inferior_event_token): ... this.
10842 Updated all users.
10843 (record_async_inferior_event_handler): Renamed to ...
10844 (record_full_async_inferior_event_handler): ... this.
10845 Updated all users.
10846 (record_core_open_1): Renamed to ...
10847 (record_full_core_open_1): ... this. Updated all users.
10848 (record_open_1): Renamed to ...
10849 (record_full_open_1): ... this. Updated all users.
10850 (record_open): Renamed to ...
10851 (record_full_open): ... this. Updated all users.
10852 (record_close): Renamed to ...
10853 (record_full_close): ... this. Updated all users.
10854 (record_resume_step): Renamed to ...
10855 (record_full_resume_step): ... this. Updated all users.
10856 (record_resumed): Renamed to ...
10857 (record_full_resumed): ... this. Updated all users.
10858 (record_execution_dir): Renamed to ...
10859 (record_full_execution_dir): ... this. Updated all users.
10860 (record_resume): Renamed to ...
10861 (record_full_resume): ... this. Updated all users.
10862 (record_get_sig): Renamed to ...
10863 (record_full_get_sig): ... this. Updated all users.
10864 (record_sig_handler): Renamed to ...
10865 (record_full_sig_handler): ... this. Updated all users.
10866 (record_wait_cleanups): Renamed to ...
10867 (record_full_wait_cleanups): ... this. Updated all users.
10868 (record_wait_1): Renamed to ...
10869 (record_full_wait_1): ... this. Updated all users.
10870 (record_wait): Renamed to ...
10871 (record_full_wait): ... this. Updated all users.
10872 (record_stopped_by_watchpoint): Renamed to ...
10873 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10874 (record_disconnect): Renamed to ...
10875 (record_full_disconnect): ... this. Updated all users.
10876 (record_detach): Renamed to ...
10877 (record_full_detach): ... this. Updated all users.
10878 (record_mourn_inferior): Renamed to ...
10879 (record_full_mourn_inferior): ... this. Updated all users.
10880 (record_kill): Renamed to ...
10881 (record_full_kill): ... this. Updated all users.
10882 (record_stopped_data_address): Renamed to ...
10883 (record_full_stopped_data_address): ... this. Updated all users.
10884 (record_registers_change): Renamed to ...
10885 (record_full_registers_change): ... this. Updated all users.
10886 (record_store_registers): Renamed to ...
10887 (record_full_store_registers): ... this. Updated all users.
10888 (record_xfer_partial): Renamed to ...
10889 (record_full_xfer_partial): ... this. Updated all users.
10890 (record_breakpoint): Renamed to ...
10891 (record_full_breakpoint): ... this. Updated all users.
10892 (record_breakpoint_p): Renamed to ...
10893 (record_full_breakpoint_p): ... this. Updated all users.
10894 (record_breakpoints): Renamed to ...
10895 (record_full_breakpoints): ... this. Updated all users.
10896 (record_sync_record_breakpoints): Renamed to ...
10897 (record_full_sync_record_breakpoints): ... this.
10898 Updated all users.
10899 (record_init_record_breakpoints): Renamed to ...
10900 (record_full_init_record_breakpoints): ... this.
10901 Updated all users.
10902 (record_insert_breakpoint): Renamed to ...
10903 (record_full_insert_breakpoint): ... this. Updated all users.
10904 (record_remove_breakpoint): Renamed to ...
10905 (record_full_remove_breakpoint): ... this. Updated all users.
10906 (record_can_execute_reverse): Renamed to ...
10907 (record_full_can_execute_reverse): ... this. Updated all users.
10908 (record_get_bookmark): Renamed to ...
10909 (record_full_get_bookmark): ... this. Updated all users.
10910 (record_goto_bookmark): Renamed to ...
10911 (record_full_goto_bookmark): ... this. Updated all users.
10912 (record_async): Renamed to ...
10913 (record_full_async): ... this. Updated all users.
10914 (record_can_async_p): Renamed to ...
10915 (record_full_can_async_p): ... this. Updated all users.
10916 (record_is_async_p): Renamed to ...
10917 (record_full_is_async_p): ... this. Updated all users.
10918 (record_execution_direction): Renamed to ...
10919 (record_full_execution_direction): ... this. Updated all users.
10920 (record_info): Renamed to ...
10921 (record_full_info): ... this. Updated all users.
10922 (record_delete): Renamed to ...
10923 (record_full_delete): ... this. Updated all users.
10924 (record_is_replaying): Renamed to ...
10925 (record_full_is_replaying): ... this. Updated all users.
10926 (record_goto_entry): Renamed to ...
10927 (record_full_goto_entry): ... this. Updated all users.
10928 (record_goto_begin): Renamed to ...
10929 (record_full_goto_begin): ... this. Updated all users.
10930 (record_goto_end): Renamed to ...
10931 (record_full_goto_end): ... this. Updated all users.
10932 (record_goto): Renamed to ...
10933 (record_full_goto): ... this. Updated all users.
10934 (init_record_ops): Renamed to ...
10935 (init_record_full_ops): ... this. Updated all users.
10936 (record_core_resume): Renamed to ...
10937 (record_full_core_resume): ... this. Updated all users.
10938 (record_core_kill): Renamed to ...
10939 (record_full_core_kill): ... this. Updated all users.
10940 (record_core_fetch_registers): Renamed to ...
10941 (record_full_core_fetch_registers): ... this. Updated all users.
10942 (record_core_prepare_to_store): Renamed to ...
10943 (record_full_core_prepare_to_store): ... this. Updated all users.
10944 (record_core_store_registers): Renamed to ...
10945 (record_full_core_store_registers): ... this. Updated all users.
10946 (record_core_xfer_partial): Renamed to ...
10947 (record_full_core_xfer_partial): ... this. Updated all users.
10948 (record_core_insert_breakpoint): Renamed to ...
10949 (record_full_core_insert_breakpoint): ... this. Updated all users.
10950 (record_core_remove_breakpoint): Renamed to ...
10951 (record_full_core_remove_breakpoint): ... this. Updated all users.
10952 (record_core_has_execution): Renamed to ...
10953 (record_full_core_has_execution): ... this. Updated all users.
10954 (init_record_core_ops): Renamed to ...
10955 (init_record_full_core_ops): ... this. Updated all users.
10956 (cmd_record_restore): Renamed to ...
10957 (cmd_record_full_restore): ... this. Updated all users.
10958 (record_save_cleanups): Renamed to ...
10959 (record_full_save_cleanups): ... this. Updated all users.
10960 (cmd_record_start): Renamed to ...
10961 (cmd_record_full_start): ... this. Updated all users.
10962 (set_record_insn_max_num): Renamed to ...
10963 (set_record_full_insn_max_num): ... this. Updated all users.
10964 (set_record_command): Renamed to ...
10965 (set_record_full_command): ... this. Updated all users.
10966 (show_record_command): Renamed to ...
10967 (show_record_full_command): ... this. Updated all users.
10968 (_initialize_record): Renamed to ...
10969 (_initialize_record_full): ... this. Updated all users.
10970
10971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10972
10973 * record.h: Split into this and ...
10974 * record-full.h: ... this.
10975 * record.c: Split into this and ...
10976 * record-full.c: ... this.
10977 * target.h (target_ops): Add new fields to_info_record,
10978 to_save_record, to_delete_record, to_record_is_replaying,
10979 to_goto_record_begin, to_goto_record_end, to_goto_record.
10980 (target_info_record): New.
10981 (target_save_record): New.
10982 (target_supports_delete_record): New.
10983 (target_delete_record): New.
10984 (target_record_is_replaying): New.
10985 (target_goto_record_begin): New.
10986 (target_goto_record_end): New.
10987 (target_goto_record): New.
10988 * target.c (target_info_record): New.
10989 (target_save_record): New.
10990 (target_supports_delete_record): New.
10991 (target_delete_record): New.
10992 (target_record_is_replaying): New.
10993 (target_goto_record_begin): New.
10994 (target_goto_record_end): New.
10995 (target_goto_record): New.
10996 * record.h: Declare struct cmd_list_element.
10997 (record_cmdlist): New declaration.
10998 (set_record_cmdlist): New declaration.
10999 (show_record_cmdlist): New declaration.
11000 (info_record_cmdlist): New declaration.
11001 (cmd_record_goto): New declaration.
11002 * record.c: Remove unnecessary includes.
11003 Include inferior.h.
11004 (cmd_record_goto): Remove declaration.
11005 (record_cmdlist): Now extern. Initialize.
11006 (set_record_cmdlist): Now extern. Initialize.
11007 (show_record_cmdlist): Now extern. Initialize.
11008 (info_record_cmdlist): Now extern. Initialize.
11009 (find_record_target): New.
11010 (require_record_target): New.
11011 (cmd_record_start): Update.
11012 (cmd_record_delete): Remove target-specific code.
11013 Call target_delete_record.
11014 (cmd_record_stop): Unpush any record target.
11015 (set_record_insn_max_num): Move to record-full.c
11016 (set_record_command): Add comment.
11017 (show_record_command): Add comment.
11018 (info_record_command): Update comment.
11019 Remove target-specific code.
11020 Call the record target's to_info_record.
11021 (cmd_record_start): New.
11022 (cmd_record_goto): Now extern.
11023 Remove target-specific code.
11024 Call target_goto_begin, target_goto_end, or target_goto.
11025 (_initialize_record): Move record target ops initialization to
11026 record-full.c.
11027 Change "record" command help text.
11028 Move "record restore", "record set", and "record show" commands to
11029 record-full.c.
11030 * Makefile.in (SFILES): Add record-full.c.
11031 (HFILES_NO_SRCDIR): Add record-full.h.
11032 (COMMON_OBS): Add record-full.o.
11033 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11034 * arm-tdep.c: Include record-full.h.
11035 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11036 * i386-tdep.c: Include record-full.h.
11037 * infrun.c: Include record-full.h.
11038 * linux-record.c: Include record-full.h.
11039 * moxie-tdep.c: Include record-full.h.
11040 * record-full.c: Include record-full.h.
11041 Change module comment.
11042 (set_record_full_cmdlist): New.
11043 (show_record_full_cmdlist): New.
11044 (record_full_cmdlist): New.
11045 (record_goto_insn): New declaration.
11046 (record_save): New declaration.
11047 (record_check_insn_num): Change query string.
11048 (record_info): New.
11049 (record_delete): New.
11050 (record_is_replaying): New.
11051 (record_goto_entry): New.
11052 (record_goto_begin): New.
11053 (record_goto_end): New.
11054 (record_goto): New.
11055 (init_record_ops): Update.
11056 (init_record_core_ops): Update.
11057 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11058 (cmd_record_start): New.
11059 (set_record_insn_max_num): Moved from record.c
11060 (set_record_full_command): New.
11061 (show_record_full_command): New.
11062 (_initialize_record_full): New.
11063
11064 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11065
11066 * target.h (add_deprecated_target_alias): New.
11067 * target.c (add_deprecated_target_alias): New.
11068
11069 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11070
11071 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11072 and signal.h.
11073 (linux_supports_btrace): Add kernel and
11074 cpuid check.
11075 (kernel_supports_btrace): New function.
11076 (cpu_supports_btrace): New function.
11077 (intel_supports_btrace): New function.
11078
11079 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11080
11081 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11082 * remote.c: Include btrace.h.
11083 (struct btrace_target_info): New struct.
11084 (remote_supports_btrace): New function.
11085 (send_Qbtrace): New function.
11086 (remote_enable_btrace): New function.
11087 (remote_disable_btrace): New function.
11088 (remote_teardown_btrace): New function.
11089 (remote_read_btrace): New function.
11090 (init_remote_ops): Add btrace ops.
11091 (enum <unnamed>): Add btrace packets.
11092 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11093 (_initialize_remote): Add packet configuration for branch tracing.
11094
11095 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * features/btrace.dtd: New file.
11098 * Makefile.in (XMLFILES): Add btrace.dtd.
11099 * btrace.h (parse_xml_btrace): New declaration.
11100 * btrace.c: Include xml-support.h.
11101 (parse_xml_btrace): New function.
11102 (parse_xml_btrace_block): New function.
11103 (block_attributes): New struct.
11104 (btrace_attributes): New struct.
11105 (btrace_children): New struct.
11106 (btrace_elements): New struct.
11107
11108 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11109
11110 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11111 (amd64_linux_enable_btrace): New.
11112 (amd64_linux_disable_btrace): New.
11113 (amd64_linux_teardown_btrace): New.
11114 (_initialize_amd64_linux_nat): Initialize btrace ops.
11115 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11116 (i386_linux_enable_btrace): New.
11117 (i386_linux_disable_btrace): New.
11118 (i386_linux_teardown_btrace): New.
11119 (_initialize_i386_linux_nat): Initialize btrace ops.
11120 * config/i386/linux.mh: Add linux-btrace.o.
11121 * config/i386/linux64.mh: Add linux-btrace.o.
11122
11123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11124
11125 * common/linux_btrace.h: New file.
11126 * common/linux_btrace.c: New file.
11127 * Makefile.in (SFILES): Add btrace.c.
11128 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11129 (COMMON_OBS): Add btrace.o.
11130 (linux-btrace.o): New rule.
11131
11132 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11133
11134 * target.h: Include btrace.h.
11135 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11136 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11137 * target.c (target_supports_btrace): New function.
11138 (target_enable_btrace): New function.
11139 (target_disable_btrace): New function.
11140 (target_teardown_btrace): New function.
11141 (target_read_btrace): New function.
11142 * btrace.h: New file.
11143 * btrace.c: New file.
11144 * Makefile.in: Add btrace.c.
11145 * gdbthread.h: Include btrace.h.
11146 (struct thread_info): Add btrace field.
11147 * thread.c: Include btrace.h.
11148 (clear_thread_inferior_resources): Call target_teardown_btrace.
11149 * common/btrace-common.h: New file.
11150
11151 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11152
11153 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11154 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11155 kill_status to outer block.
11156
11157 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11158
11159 Fix entry-values if the callee called a noreturn function.
11160 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11161 get_frame_address_in_block. Add new comment.
11162
11163 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11164
11165 Fix entry-values in C++ across CUs.
11166 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11167 lookup_minimal_symbol. Add a comment.
11168 * dwarf2read.c
11169 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11170 DW_AT_linkage_name.
11171
11172 2013-03-08 Yao Qi <yao@codesourcery.com>
11173
11174 * tracepoint.c (_initialize_tracepoint): Indent the code.
11175
11176 2013-03-08 Pedro Alves <palves@redhat.com>
11177
11178 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11179 (parse_find_args, find_command): Change type of pattern buffer
11180 locals to 'gdb_byte *'.
11181
11182 2013-03-08 Stan Shebs <stan@codesourcery.com>
11183 Hafiz Abid Qadeer <abidh@codesourcery.com>
11184
11185 * NEWS: Mention set and show trace-buffer-size commands.
11186 Mention new packet.
11187 * target.h (struct target_ops): New method
11188 to_set_trace_buffer_size.
11189 (target_set_trace_buffer_size): New macro.
11190 * target.c (update_current_target): Set up new method.
11191 * tracepoint.c (trace_buffer_size): New global.
11192 (start_tracing): Send it to the target.
11193 (set_trace_buffer_size): New function.
11194 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11195 * remote.c (remote_set_trace_buffer_size): New function.
11196 (_initialize_remote): Use it.
11197 (QTBuffer:size) New remote command.
11198 (PACKET_QTBuffer_size): New enum.
11199 (remote_protocol_features): Add an entry for
11200 PACKET_QTBuffer_size.
11201
11202 2013-03-08 Tom Tromey <tromey@redhat.com>
11203
11204 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11205 variable.
11206
11207 2013-03-07 Pedro Alves <palves@redhat.com>
11208
11209 * target.c (target_read_stralloc, target_fileio_read_alloc):
11210 *Cast pointer to 'gdb_byte *' in target call.
11211
11212 2013-03-07 Pedro Alves <palves@redhat.com>
11213
11214 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11215 call.
11216
11217 2013-03-07 Keith Seitz <keiths@redhat.com>
11218
11219 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11220 (trace_pass_command): Likewise.
11221 * cli/cli-cmds.c: Include cli/cli-utils.h.
11222 (source_command): Use skip-spaces.
11223 (disassemble_command): Likewise.
11224 * findcmd.c: Include cli/cli-utils.h.
11225 (parse_find_args): Use skip_spaces.
11226 * go32-nat.c: Include cli/cli-utils.h.
11227 (go32_sldt): Use skip_spaces.
11228 (go32_sgdt): Likewise.
11229 (go32_sidt): Likewise.
11230 (go32_pde): Likewise.
11231 (go32_pte): Likewise.
11232 (go32_pte_for_address): Likewise.
11233 * infcmd.c: Include cli/cli-utils.h.
11234 (registers_info): Use skip_spaces.
11235 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11236 (linux_info_proc): Likewise.
11237 * linux-thread-db.c: Include cli/cli-utils.h.
11238 (info_auto_load_libthread_db): Use skip_spaces_const.
11239 * m32r-rom.c: Include cli/cli-utils.h.
11240 (m32r_upload_command): Use skip_spaces.
11241 * maint.c: Include cli/cli-utils.h.
11242 (maintenance_translate_address): Use skip_spaces.
11243 * mi/mi-parse.c: Include cli/cli-utils.h.
11244 (mi_parse_argv): Use skip_spaces.
11245 (mi_parse): Likewise.
11246 * minsyms.c: Include cli/cli-utils.h.
11247 (msymbol_hash_iw): Use skip_spaces_const.
11248 * objc-lang.c: Include cli/cli-utils.h.
11249 (parse_selector): Use skip_spaces.
11250 (parse_method): Likewise.
11251 * python/python.c: Include cli/cli-utils.h.
11252 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11253 (python_command)[HAVE_PYTHON]: Likewise.
11254 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11255 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11256 (m32r_load): Use skip_spaces.
11257 * serial.c: Include cli/cli-utils.h.
11258 (serial_open): Use skip_spaces_const.
11259 * stack.c: Include cli/cli-utils.h.
11260 (parse_frame_specification_1): Use skip_spaces_const.
11261 * symfile.c: Include cli/cli-utils.h.
11262 (set_ext_lang_command): Use skip_spaces.
11263 * symtab.c: Include cli/cli-utils.h.
11264 (rbreak_command): Use skip_spaces.
11265 * thread.c (thread_name_command): Use skip_spaces.
11266 * tracepoint.c (validate_actionline): Use skip_spaces.
11267 (encode_actions_1): Likewise.
11268 (trace_find_range_command): Likewise.
11269 (trace_find_outside_command): Likewise.
11270 (trace_dump_actions): Likewise.
11271
11272 2013-03-07 Pedro Alves <palves@redhat.com>
11273
11274 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11275 * expprint.c (print_subexp_standard): Likewise.
11276 * utils.c (host_char_to_target): Likewise.
11277 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11278 * varobj.c (value_get_print_value): Change type of local to char*.
11279 Cast it gdb_byte * in call to language printer.
11280
11281 2013-03-07 Pedro Alves <palves@redhat.com>
11282
11283 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11284 gdb_byte *'.
11285 (make_wchar_iterator): Remove cast to char*.
11286 (wchar_iterate): Change type of local.
11287
11288 2013-03-07 Pedro Alves <palves@redhat.com>
11289
11290 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11291 for 'regcache->register_status'.
11292
11293 2013-03-07 Pedro Alves <palves@redhat.com>
11294
11295 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11296 int.
11297
11298 2013-03-07 Pedro Alves <palves@redhat.com>
11299
11300 * stap-probe.c (handle_stap_probe): Add cast to char*.
11301
11302 2013-03-07 Pedro Alves <palves@redhat.com>
11303
11304 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11305 RECORD_MSGRCV>: Pass a signed variable to
11306 regcache_raw_read_signed, instead of an unsigned one.
11307
11308 2013-03-07 Pedro Alves <palves@redhat.com>
11309
11310 * remote-notif.c (notif_debug): Change type to int.
11311 * remote-notif.h (notif_debug): Likewise.
11312
11313 2013-03-07 Pedro Alves <palves@redhat.com>
11314
11315 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11316
11317 2013-03-07 Pedro Alves <palves@redhat.com>
11318
11319 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11320 * remote.h (hex2bin, bin2hex): ... here.
11321 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11322
11323 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11324
11325 * utils.c (initialize_utils): Improve doc strings of "set/show
11326 width", "set/show height", and "set/show pagination".
11327
11328 2013-03-06 Keith Seitz <keiths@redhat.com>
11329
11330 * ax-gdb.c (gen_printf): Make FORMAT const.
11331 * ax-gdb.h (gen_printf): Likewise.
11332 * ax-general.c (ax_string): Make STR const.
11333 * ax.h (ax_string): Likewise.
11334
11335 2013-03-06 Doug Evans <dje@google.com>
11336
11337 * elfread.c (elf_symfile_read): Move debugging printf to more
11338 logical location.
11339
11340 2013-03-06 Pedro Alves <palves@redhat.com>
11341
11342 * python/py-utils.c (target_string_to_unicode): Delete function.
11343 * python/python-internal.h (target_string_to_unicode): Delete
11344 declaration.
11345
11346 2013-03-06 Pierre Muller <muller@sourceware.org>
11347
11348 * linespec.c (get_current_search_block): ARI fix, use (void)
11349 for empty parameter list.
11350
11351 2013-03-05 Doug Evans <dje@google.com>
11352
11353 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11354 of old ada_lookup_symbol_list. In !full_search case, don't
11355 search superblocks.
11356 (ada_lookup_symbol_list): Delete arg full_search, all callers
11357 updated. Call ada_lookup_symbol_list_worker.
11358 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11359 * ada-lang.h (ada_lookup_symbol_list): Update.
11360 * language.h (language_defn): Update comment for
11361 la_iterate_over_symbols.
11362 * linespec.c (iterate_over_file_blocks): New function.
11363 (iterate_over_all_matching_symtabs): Call it.
11364 (lookup_prefix_sym): Ditto.
11365 (get_current_search_block): New function.
11366 (get_search_block): Delete.
11367 (find_label_symbols): Call get_current_search_block.
11368 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11369 * symtab.c (iterate_over_symbols): Don't search superblocks.
11370
11371 2013-03-05 Yao Qi <yao@codesourcery.com>
11372
11373 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11374 parameter VAR's type from "unsigned int" to "int".
11375 * command.h (var_zuinteger_unlimited): Update its comments.
11376 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11377
11378 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11379
11380 * NEWS: Mention new target x86_64-*-cygwin*.
11381
11382 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11383
11384 * configure.host: Add x86_64-*-cygwin* as host.
11385 * configure.tgt: Add x86_64-*-cygwin* as target.
11386 * config/i386/cygwin64.mh: New file.
11387
11388 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11389
11390 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11391
11392 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11393
11394 * linespec.c (struct linespec_canonical_name): New.
11395 (struct linespec_state): Change canonical_names type to it.
11396 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11397 xrealloc element size. Initialize the different CANONICAL fields.
11398 (canonical_to_fullform): New.
11399 (filter_results): Use it. Add variables canonical, fullform and
11400 cleanup.
11401 (struct decode_line_2_item, decode_line_2_compare_items): New.
11402 (decode_line_2): Remove variables iter and item_names, add variables
11403 items and items_count. Modify the code for these new variables.
11404
11405 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11406
11407 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11408 calling do_cleanup.
11409
11410 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11411
11412 * tracepoint.c (build_traceframe_info): Add code for byte order.
11413
11414 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11415
11416 * v850-tdep.c: (v850e2_register_name): Revise system register
11417 names to match current V850E2M architecture specifications.
11418 Update register number enum comments too.
11419
11420 2013-03-01 Jiong Wang <jiwang@tilera.com>
11421 Pedro Alves <palves@redhat.com>
11422
11423 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11424 to END_ADDR.
11425 (tilegx_skip_prologue): Limit prologue analysis to section end.
11426
11427 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11428
11429 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11430 use it.
11431
11432 2013-03-01 Pedro Alves <palves@redhat.com>
11433
11434 Use gdb_byte for bytes from the program being debugged.
11435
11436 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11437 Change type of local 'buf' to gdb_byte.
11438 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11439 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11440 * cris-tdep.c (cris_sigcontext_addr)
11441 (cris_sigtramp_frame_unwind_cache): Likewise.
11442 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11443 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11444 Likewise.
11445 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11446 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11447 (hppa32_hpux_search_dummy_call_sequence)
11448 (hppa_hpux_supply_save_state): Likewise.
11449 * hppa-linux-tdep.c (insns_match_pattern)
11450 (hppa_linux_find_global_pointer): Likewise.
11451 * hppa-tdep.c (hppa_in_function_epilogue_p)
11452 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11453 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11454 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11455 (i386fbsd_collect_uthread): Likewise.
11456 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11457 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11458 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11459 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11460 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11461 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11462 (ia64_libunwind_frame_prev_register)
11463 (ia64_libunwind_sigtramp_frame_this_id)
11464 (ia64_find_global_pointer_from_dynamic_section)
11465 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11466 (ia64_unwind_pc): Likewise.
11467 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11468 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11469 (m68hc11_extract_return_value): Likewise.
11470 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11471 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11472 (mep_get_insn, mep_push_dummy_call): Likewise.
11473 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11474 (mips_linux_in_dynsym_stub): Likewise.
11475 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11476 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11477 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11478 to gdb_byte.
11479 * remote-mips.c (mips_set_register): Likewise.
11480 * remote-sim.c (gdbsim_fetch_register): Likewise.
11481 * score-tdep.c (score7_fetch_inst): Change type of parameter
11482 'memblock' and local 'buf' to gdb_byte.
11483 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11484 Change type of local 'buf' to gdb_byte. Adjust.
11485 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11486 to gdb_byte**.
11487 (score7_analyze_prologue): Change type of 'memblock' and
11488 'memblock_ptr' locals to gdb_byte*.
11489 * sh64-tdep.c (sh64_extract_return_value)
11490 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11491 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11492 * solib-pa64.c (pa64_solib_create_inferior_hook)
11493 (pa64_open_symbol_file_object): Remove local 'buf'.
11494 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11495 (som_open_symbol_file_object): Likewise.
11496 * solib-spu.c (spu_current_sos): Likewise.
11497 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11498 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11499 (spu_store_registers): Likewise.
11500 * target.c (debug_print_register): Likewise.
11501 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11502 * xstormy16-tdep.c (xstormy16_store_return_value)
11503 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11504 (xstormy16_find_jmp_table_entry): Likewise.
11505
11506 2013-03-01 Jiong Wang <jiwang@tilera.com>
11507
11508 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11509 (tilegx_gdbarch_init): Install it.
11510
11511 2013-02-28 Tom Tromey <tromey@redhat.com>
11512
11513 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11514 PyLong_Check.
11515
11516 2013-02-28 Doug Evans <dje@google.com>
11517
11518 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11519 * python/python.c (gdbpy_find_pc_line): Ditto.
11520
11521 2013-02-28 Tom Tromey <tromey@redhat.com>
11522
11523 * contrib/excheck.py: New file.
11524 * contrib/exsummary.py: New file.
11525 * contrib/gcc-with-excheck: New file.
11526
11527 2013-02-28 Tom Tromey <tromey@redhat.com>
11528
11529 * python/python.c (gdbpy_print_stack): Call begin_line and
11530 fprintf_filtered inside TRY_CATCH.
11531
11532 2013-02-28 Tom Tromey <tromey@redhat.com>
11533
11534 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11535 inside TRY_CATCH.
11536
11537 2013-02-28 Tom Tromey <tromey@redhat.com>
11538
11539 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11540 frame_object_to_frame_info inside TRY_CATCH.
11541
11542 2013-02-28 Tom Tromey <tromey@redhat.com>
11543
11544 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11545 TRY_CATCH.
11546
11547 2013-02-28 Tom Tromey <tromey@redhat.com>
11548
11549 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11550
11551 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11552
11553 * windows-nat.c: Throughout, fix format strings and casts of
11554 printf-like functions to avoid type related warnings on all
11555 platforms.
11556 (handle_output_debug_string): Fetch context information address
11557 from debug string using string_to_core_addr.
11558
11559 2013-02-27 Jiong Wang <jiwang@tilera.com>
11560
11561 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11562 * regformats/reg-tilegx32.dat: New.
11563
11564 2013-02-27 Jiong Wang <jiwang@tilera.com>
11565
11566 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11567
11568 2013-02-27 Jiong Wang <jiwang@tilera.com>
11569
11570 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11571
11572 2013-02-27 Yao Qi <yao@codesourcery.com>
11573 Pedro Alves <palves@redhat.com>
11574
11575 * tracepoint.c (tfile_trace_find): For tfind
11576 pc/tp/range/outside, look for the next trace frame instead of
11577 always starting from frame 0.
11578
11579 2013-02-26 Anthony Green <green@moxielogic.com>
11580
11581 * configure.tgt: Add support for moxie-*-rtems* target.
11582
11583 2013-02-25 Pedro Alves <palves@redhat.com>
11584
11585 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11586 warning text.
11587
11588 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11589
11590 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11591 if $fp is used as the virtual frame pointer.
11592
11593 2013-02-23 Alan Modra <amodra@gmail.com>
11594
11595 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11596 symbol size.
11597 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11598 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11599 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11600 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11601
11602 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 Code cleanup.
11605 * elfread.c (build_id_bfd_get): Make the return type const.
11606 (build_id_verify): Make the check parameter const.
11607 (build_id_to_debug_filename): Make the build_id parameter and variable
11608 data const.
11609 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11610
11611 2013-02-21 Alan Modra <amodra@gmail.com>
11612
11613 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11614
11615 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11616
11617 Add a new method 'disassemble' to gdb.Architecture class.
11618 * python/py-arch.c (archpy_disassmble): Implementation of the
11619 new method gdb.Architecture.disassemble.
11620 (arch_object_methods): Add entry for the new method.
11621
11622 2013-02-20 Jiong Wang <jiwang@tilera.com>
11623
11624 * MAINTAINERS (Write After Approval): Add myself to the list.
11625
11626 2013-02-19 Pedro Alves <palves@redhat.com>
11627
11628 Garbage collect 'struct monitor_ops'::load_routine.
11629
11630 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11631 * monitor.c (monitor_load): No longer call
11632 current_monitor->load_routine.
11633 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11634 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11635 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11636
11637 2013-02-19 Pedro Alves <palves@redhat.com>
11638
11639 PR gdb/15161
11640
11641 Harmonize with generic_load.
11642
11643 * monitor.c: Include "readline/readline.h".
11644 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11645 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11646 long/strtol for the 'load_offset' local. Error out if no argument
11647 is given or if too many arguments are given. Tilde expand the
11648 passed in file name.
11649
11650 2013-02-19 Kai Tietz <ktietz@redhat.com>
11651
11652 PR gdb/15161
11653 * symfile.c (load_section_data): Change type of load_offset
11654 to CORE_ADDR.
11655 (generic_load): User strtoulst instead of strtoul for conversion
11656 of load_offset.
11657
11658 2013-02-19 Jiong Wang <jiwang@tilera.com>
11659
11660 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11661 for return address, "lr" register, saved on stack.
11662 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11663 after we invoke tilegx_analyze_prologue.
11664
11665 2013-02-19 Jiong Wang <jiwang@tilera.com>
11666
11667 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11668
11669 2013-02-19 Jiong Wang <jiwang@tilera.com>
11670
11671 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11672
11673 2013-02-19 Jiong Wang <jiwang@tilera.com>
11674
11675 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11676 (tilegx_write_pc): New function.
11677 (tilegx_cannot_reference_register): Return zero if REGNO
11678 is TILEGX_FAULTNUM_REGNUM.
11679 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11680 (tilegx_register_name): Add handling of "faultnum" register.
11681 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11682 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11683 handling of TILEGX_FAULTNUM_REGNUM.
11684 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11685
11686 2013-02-19 Jiong Wang <jiwang@tilera.com>
11687
11688 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11689 should be aligned to 64bit.
11690
11691 2013-02-19 Kai Tietz <ktietz@redhat.com>
11692
11693 * windows-nat.c (windows_xfer_memory): Fix debug-output
11694 for LLP64.
11695
11696 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11697
11698 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11699 Don't check DSP register number if HAVE_DSP is not set.
11700
11701 2013-02-19 Alan Modra <amodra@gmail.com>
11702
11703 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11704 throughout file instead.
11705 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11706 Don't xmalloc return value.
11707 (build_id_verify): Similarly. Don't xfree.
11708 (build_id_to_debug_filename): Update.
11709 (find_separate_debug_file_by_buildid): Update, don't xfree.
11710
11711 2013-02-18 Tom Tromey <tromey@redhat.com>
11712
11713 PR gdb/15102:
11714 * dwarf2read.c (read_subrange_type): Use result of
11715 'check_typedef'.
11716
11717 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11718
11719 * frame.c: Remove one extra white space after #include
11720 directive.
11721
11722 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11723
11724 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11725
11726 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11727
11728 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11729 and dir commands into an if block.
11730
11731 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11732
11733 * python/py-breakpoint (struct pybp_code): Use int instead of
11734 enum type_code.
11735
11736 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11737 Hafiz Abid Qadeer <abidh@codesourcery.com>
11738
11739 * NEWS: Mention new field "trace-file".
11740 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11741 (tfile_open): Record the trace file's filename in the trace
11742 status.
11743 (tfile_files_info): Mention the name of the trace file.
11744 Check the "filename" field explicitely.
11745 (trace_status_command): Explicitely check "filename" field.
11746 (trace_find_command): Ditto.
11747 (trace_find_pc_command): Ditto.
11748 (trace_find_tracepoint_command): Ditto.
11749 (trace_find_line_command): Ditto.
11750 (trace_find_range_command): Ditto.
11751 (trace_find_outside_command): Ditto.
11752 * tracepoint.h (struct trace_status) <from_file>: Rename it
11753 to "filename" and make it hold the trace file's filename
11754 instead of a boolean.
11755 * remote.c (remote_get_trace_status): Initialize "filename"
11756 field with NULL instead of 0.
11757
11758 2013-02-15 Yao Qi <yao@codesourcery.com>
11759
11760 * remote.c: Fix a typo.
11761
11762 2013-02-14 Pierre Muller <muller@sourceware.org>
11763
11764 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11765
11766 2013-02-14 Pedro Alves <palves@redhat.com>
11767
11768 * utils.c (savestring): Don't #undef it. Move function to
11769 common/common-utils.c.
11770 * common/common-utils.c: Include gdb_string.h.
11771 (savestring): Move here from utils.c.
11772 * common/common-utils.h (savestring): Declare.
11773
11774 2013-02-14 Pedro Alves <palves@redhat.com>
11775
11776 * utils.c (savestring): Rename parameter 'size' to 'len'.
11777
11778 2013-02-14 Pedro Alves <palves@redhat.com>
11779 Yufeng Zhang <yufeng.zhang@arm.com>
11780
11781 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11782 (aarch64_inferior_data, struct aarch64_inferior_data):
11783 Delete.
11784 (struct aarch64_process_info): New.
11785 (aarch64_process_list): New global.
11786 (aarch64_find_process_pid, aarch64_add_process)
11787 (aarch64_process_info_get): New functions.
11788 (aarch64_inferior_data_get): Delete.
11789 (aarch64_process_info_get): New function.
11790 (aarch64_forget_process): New function.
11791 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11792 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11793 aarch64_get_debug_reg_state.
11794 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11795 instead of linux_nat_iterate_watchpoint_lwps.
11796 (aarch64_linux_new_fork): New function.
11797 (aarch64_linux_child_post_startup_inferior): Use
11798 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11799 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11800 (aarch64_linux_remove_hw_breakpoint)
11801 (aarch64_handle_aligned_watchpoint)
11802 (aarch64_handle_unaligned_watchpoint)
11803 (aarch64_linux_insert_watchpoint)
11804 (aarch64_linux_remove_watchpoint)
11805 (aarch64_linux_stopped_data_address): Adjust to pass the current
11806 process id to aarch64_debug_reg_state.
11807 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11808 linux_nat_new_fork hook, and aarch64_forget_process as
11809 linux_nat_forget_process hook; remove the call to
11810 register_inferior_data_with_cleanup.
11811
11812 2013-02-14 Pedro Alves <palves@redhat.com>
11813
11814 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11815 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11816 lval_memory.
11817
11818 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11819 Hafiz Abid Qadeer <abidh@codesourcery.com>
11820
11821 * tracepoint.h (validate_trace_state_variable_name): Declare.
11822 * tracepoint.c (validate_trace_state_variable_name): New.
11823 (trace_variable_command): Parse the trace state variable's name
11824 without using parse_expression. Do several validations.
11825 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11826 trace state variable's name with parse_expression. Validate it.
11827
11828 2013-02-14 Yao Qi <yao@codesourcery.com>
11829
11830 * infcmd.c (breakpoint_proceeded): Remove it.
11831
11832 2013-02-14 Yao Qi <yao@codesourcery.com>
11833
11834 * tracepoint.c (end_actions_pseudocommand): Make it static.
11835 (while_stepping_pseudocommand): Likewise.
11836 * tracepoint.h (end_actions_pseudocommand): Remove the
11837 declaration.
11838 (while_stepping_pseudocommand): Likewise.
11839
11840 2013-02-14 Yao Qi <yao@codesourcery.com>
11841
11842 * cli/cli-decode.c (help_cmd): Remove the declaration of
11843 "cmdlist".
11844 (help_all): Likewise.
11845
11846 2013-02-13 Pedro Alves <palves@redhat.com>
11847
11848 * amd64-linux-nat.c (update_debug_registers_callback):
11849 Update comment.
11850 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11851 iterate_over_lwps.
11852 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11853 i386_debug_reg_state.
11854 (amd64_linux_new_fork): New function.
11855 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11856 linux_nat_new_fork hook, and i386_forget_process as
11857 linux_nat_forget_process hook.
11858 * i386-linux-nat.c (update_debug_registers_callback):
11859 Update comment.
11860 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11861 iterate_over_lwps.
11862 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11863 i386_debug_reg_state.
11864 (i386_linux_new_fork): New function.
11865 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11866 linux_nat_new_fork hook, and i386_forget_process as
11867 linux_nat_forget_process hook.
11868 * i386-nat.c (i386_init_dregs): Delete.
11869 (i386_inferior_data, struct i386_inferior_data):
11870 Delete.
11871 (struct i386_process_info): New.
11872 (i386_process_list): New global.
11873 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11874 New functions.
11875 (i386_inferior_data_get): Delete.
11876 (i386_process_info_get): New function.
11877 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11878 (i386_forget_process): New function.
11879 (i386_cleanup_dregs): Rewrite.
11880 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11881 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11882 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11883 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11884 to i386_debug_reg_state.
11885 (i386_use_watchpoints): Don't register inferior data.
11886 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11887 adjust comment.
11888 (i386_forget_process): Declare.
11889 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11890 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11891 New static globals.
11892 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11893 (add_initial_lwp): New, factored out from ...
11894 (add_lwp): ... this. Don't check the number of lwps before
11895 calling linux_nat_new_thread.
11896 (linux_nat_iterate_watchpoint_lwps): Delete.
11897 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11898 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11899 forks and vforks.
11900 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11901 initial lwp.
11902 (linux_nat_kill, linux_nat_mourn_inferior): Call
11903 linux_nat_forget_process.
11904 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11905 (linux_nat_forget_process): New functions.
11906 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11907 type.
11908 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11909 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11910 types.
11911 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11912 (linux_nat_forget_process): New declarations.
11913
11914 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11915 (amd64fbsd_mourn_inferior): New function.
11916 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11917 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11918
11919 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11920
11921 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11922 Adding _().
11923
11924 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11925
11926 * aarch64-linux-nat.c (debug_reg_change_callback)
11927 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11928 %s and phex().
11929
11930 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11931
11932 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11933 with LONGEST.
11934
11935 2013-02-13 Pedro Alves <palves@redhat.com>
11936 Hafiz Abid Qadeer <abidh@codesourcery.com>
11937
11938 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11939
11940 2013-02-12 Tom Tromey <tromey@redhat.com>
11941
11942 PR symtab/11464:
11943 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11944 NAME return.
11945 (classify_inner_name): Remove 'first_name' argument, add
11946 'context'. Remove unused variable.
11947 (yylex): Explicitly maintain the context type. Exit loop earlier
11948 if NAME result is seen.
11949
11950 2013-02-12 Pedro Alves <palves@redhat.com>
11951
11952 * amd64-darwin-tdep.c: Add (C) after Copyright.
11953 * cli/cli-cmds.h: Ditto.
11954 * cli/cli-decode.c: Ditto.
11955 * cli/cli-decode.h: Ditto.
11956 * cli/cli-dump.c: Ditto.
11957 * cli/cli-dump.h: Ditto.
11958 * cli/cli-interp.c: Ditto.
11959 * cli/cli-logging.c: Ditto.
11960 * cli/cli-script.c: Ditto.
11961 * cli/cli-script.h: Ditto.
11962 * cli/cli-setshow.c: Ditto.
11963 * cli/cli-setshow.h: Ditto.
11964 * cli/cli-utils.c: Ditto.
11965 * cli/cli-utils.h: Ditto.
11966 * config/alpha/nm-osf3.h: Ditto.
11967 * config/djgpp/djconfig.sh: Ditto.
11968 * config/i386/nm-fbsd.h: Ditto.
11969 * config/i386/nm-i386gnu.h: Ditto.
11970 * config/nm-linux.h: Ditto.
11971 * config/nm-nto.h: Ditto.
11972 * config/rs6000/nm-rs6000.h: Ditto.
11973 * config/sparc/nm-sol2.h: Ditto.
11974 * darwin-nat-info.c: Ditto.
11975 * dfp.c: Ditto.
11976 * dfp.h: Ditto.
11977 * gdb-demangle.h: Ditto.
11978 * i386-darwin-nat.c: Ditto.
11979 * i386-darwin-tdep.c: Ditto.
11980 * linux-fork.h: Ditto.
11981 * m32c-tdep.c: Ditto.
11982 * microblaze-linux-tdep.c: Ditto.
11983 * microblaze-rom.c: Ditto.
11984 * microblaze-tdep.c: Ditto.
11985 * microblaze-tdep.h: Ditto.
11986 * mips-linux-tdep.h: Ditto.
11987 * ppc-ravenscar-thread.c: Ditto.
11988 * ppc-ravenscar-thread.h: Ditto.
11989 * prologue-value.c: Ditto.
11990 * prologue-value.h: Ditto.
11991 * ravenscar-thread.c: Ditto.
11992 * ravenscar-thread.h: Ditto.
11993 * sparc-ravenscar-thread.c: Ditto.
11994 * sparc-ravenscar-thread.h: Ditto.
11995 * tilegx-linux-tdep.c: Ditto.
11996 * unwind_stop_reasons.def: Ditto.
11997 * windows-nat.h: Ditto.
11998 * xtensa-linux-tdep.c: Ditto.
11999 * xtensa-xtregs.c: Ditto.
12000 * regformats/regdat.sh: Ditto.
12001 * regformats/regdef.h: Ditto.
12002
12003 2013-02-12 Pedro Alves <palves@redhat.com>
12004
12005 * break-catch-sig.c: Update copyright years.
12006
12007 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
12008
12009 Add support for a destructor for ui_out data and use it to
12010 provide a ui_out destructor.
12011 * ui-out.h: Declare the new ui_out destructor.
12012 (ui_out_impl): Add a field for data destructor in ui_out_impl.
12013 * ui-out.c (default_data_destroy): Add a default data destructor
12014 which does nothing.
12015 (default_ui_out_impl): Set the new data_destroy field to
12016 default_data_destroy
12017 (uo_data_destroy): Local function which invokes the data
12018 destructor if present.
12019 (clear_table): Local function which clears the table data of a
12020 ui_out object.
12021 (ui_out_destroy): Public function which frees a ui_out object.
12022 (ui_out_table_end): Use the new clear_table function.
12023 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
12024 NULL.
12025 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
12026 to NULL.
12027
12028 2013-02-11 Doug Evans <dje@google.com>
12029
12030 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
12031 (printf_decfloat): New function. Broken out from ui_printf.
12032 Remove unnecessary code to shift the entire format string down.
12033 (printf_pointer): New function.
12034 (ui_printf): Code to print C strings, wide C strings, decfloats,
12035 and pointers moved to separate functions.
12036
12037 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12038
12039 * valops.c (value_assign): Handling bitfield offset in
12040 `lval_internalvar_component' case.
12041
12042 2013-02-08 Doug Evans <dje@google.com>
12043
12044 * common/format.c (parse_format_string): Fix whitespace.
12045
12046 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12047
12048 * stack.c (return_command): Work around uninitialized variable
12049 warning.
12050
12051 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12052
12053 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12054 number of the registers from 36 to 34.
12055
12056 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12057
12058 * NEWS: Mention new AArch64 native and target support.
12059
12060 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12061
12062 * MAINTAINERS (Write After Approval): Add myself.
12063
12064 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12065 Marcus Shawcroft <marcus.shawcroft@arm.com>
12066 Nigel Stephens <nigel.stephens@arm.com>
12067 Yufeng Zhang <yufeng.zhang@arm.com>
12068
12069 * aarch64-linux-nat.c: New file.
12070 * config/aarch64/linux.mh: New file.
12071 * configure.host: Add AArch64.
12072 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12073
12074 2013-02-07 Doug Evans <dje@google.com>
12075
12076 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12077 disassemble command.
12078
12079 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12080
12081 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12082 set_gdbarch_fetch_tls_load_module_address.
12083
12084 2013-02-06 David S. Miller <davem@davemloft.net>
12085
12086 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12087 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12088 * value.c (struct_return_convention): New function.
12089 (using_struct_return): Implement in terms of struct_return_convention.
12090 * value.h (struct_return_convention): Declare.
12091 * stack.c (return_command): Allow successful overriding of the return
12092 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12093
12094 2013-02-06 Tom Tromey <tromey@redhat.com>
12095
12096 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12097 outside of TRY_CATCH.
12098
12099 2013-02-06 Yao Qi <yao@codesourcery.com>
12100
12101 * mi/mi-interp.c: Include "tracepoint.h".
12102 (mi_tsv_modified): Declare.
12103 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12104 (mi_interpreter_init): Call observer_attach_tsv_modified.
12105 (mi_tsv_modified): New.
12106 (mi_tsv_created, mi_tsv_deleted): Update.
12107 * tracepoint.c (trace_variable_command): Call
12108 observer_notify_tsv_modified if the initial value of tsv is
12109 changed.
12110 (delete_trace_state_variable): Call
12111 observer_notify_tsv_deleted earlier.
12112 (trace_variable_command): Caller update.
12113 (create_tsv_from_upload): Likewise.
12114 * observer.sh: Declare "struct trace_state_variable".
12115
12116 * NEWS: Mention the new MI notification "=tsv-modified".
12117
12118 2013-02-05 Doug Evans <dje@google.com>
12119
12120 * completer.c (location_completer): Fix typo in comment.
12121
12122 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12123
12124 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12125 ADDRESS sorted.
12126
12127 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12128
12129 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12130 Refactor if statement to avoid trailing || operator.
12131
12132 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12133
12134 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12135
12136 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12137
12138 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12139 * configure.host: Add powerpc*-*-freebsd* target.
12140 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12141 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12142 * config/powerpc/fbsd.mh: New file.
12143
12144 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12145 Denys Vlasenko <dvlasenk@redhat.com>
12146 Pedro Alves <palves@redhat.com>
12147
12148 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12149 (struct elf_internal_linux_prpsinfo): Forward declare.
12150 * gdbarch.h, gdbarch.c: Regenerate.
12151 * linux-tdep.c: Include `cli/cli-utils.h'.
12152 (linux_fill_prpsinfo): New function.
12153 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12154 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12155 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12156 depending on gdbarch pointer bitness.
12157 * ppc-linux-tdep.c: Include elf-bfd.h.
12158 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12159 on 32-bit.
12160
12161 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12162 Marcus Shawcroft <marcus.shawcroft@arm.com>
12163 Nigel Stephens <nigel.stephens@arm.com>
12164 Yufeng Zhang <yufeng.zhang@arm.com>
12165
12166 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12167
12168 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12169 Marcus Shawcroft <marcus.shawcroft@arm.com>
12170 Nigel Stephens <nigel.stephens@arm.com>
12171 Yufeng Zhang <yufeng.zhang@arm.com>
12172
12173 * aarch64-newlib-tdep.c: New file.
12174 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12175 aarch64*-*-elf.
12176 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12177 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12178 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12179 * osabi.c (gdb_osabi_names): Add "Newlib".
12180
12181 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12182 Marcus Shawcroft <marcus.shawcroft@arm.com>
12183 Nigel Stephens <nigel.stephens@arm.com>
12184 Yufeng Zhang <yufeng.zhang@arm.com>
12185
12186 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12187 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12188 * aarch64-linux-tdep.c: New file.
12189 * aarch64-linux-tdep.h: New file.
12190 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12191 * configure.tgt: Add aarch64-none-linux-gnu.
12192
12193 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12194 Marcus Shawcroft <marcus.shawcroft@arm.com>
12195 Nigel Stephens <nigel.stephens@arm.com>
12196 Yufeng Zhang <yufeng.zhang@arm.com>
12197
12198 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12199 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12200 (ALLDEPFILES): Add aarch64-tdep.c.
12201 * aarch64-tdep.c: New file.
12202 * aarch64-tdep.h: New file.
12203 * configure.tgt: Add AArch64.
12204 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12205 (aarch64-expedite): New definition.
12206 * features/aarch64-core.xml: New file.
12207 * features/aarch64-fpu.xml: New file.
12208 * features/aarch64-without-fpu.c: New file (generated).
12209 * features/aarch64-without-fpu.xml: New file.
12210 * features/aarch64.c: New file (generated).
12211 * features/aarch64.xml: New file.
12212 * regformats/aarch64-without-fpu.dat: New file (generated).
12213 * regformats/aarch64.dat: New file (generated).
12214
12215 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12216
12217 * contrib/expect-read1.c: New file.
12218 * contrib/expect-read1.sh: New file.
12219
12220 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12221
12222 * dwarf2read.c (file_file_name): New function with code from
12223 file_full_name.
12224 (file_full_name): Move most of the code to file_file_name.
12225 (macro_start_file): Rename variable full_name to file_name and use
12226 file_file_name for it. Add comp_dir parameter to new_macro_table.
12227 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12228 macro_source_file->filename access by macro_source_fullname call.
12229 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12230 caller.
12231 * macrotab.c (struct macro_table): New field comp_dir.
12232 (macro_include): New variables link_fullname and source_fullname.
12233 Replace any macro_source_file->filename access by macro_source_fullname
12234 call.
12235 (macro_lookup_inclusion): Remove the partial filenames checking code.
12236 (check_for_redefinition): New variables source_fullname and
12237 found_key_fullname. Replace any macro_source_file->filename access by
12238 macro_source_fullname call.
12239 (macro_undef): New variables source_fullname and key_fullname. Replace
12240 any macro_source_file->filename access by macro_source_fullname call.
12241 (macro_lookup_definition): New variables retval and source_fullname.
12242 Replace any macro_source_file->filename access by macro_source_fullname
12243 call.
12244 (foreach_macro): New variable key_fullname. Replace any
12245 macro_source_file->filename access by macro_source_fullname call.
12246 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12247 macro_source_file->filename access by macro_source_fullname call.
12248 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12249 (macro_source_fullname): New function.
12250 * macrotab.h (struct macro_source_file): Extent the filename field
12251 comment.
12252 (new_macro_table): New parameter comp_dir, add a comment for it.
12253 (macro_source_fullname): new declaration.
12254
12255 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12256
12257 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12258 this_real_name to outer block. Use it also for
12259 compare_filenames_for_search.
12260 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12261 with dw2_get_real_path for file_matcher, considering also
12262 BASENAMES_MAY_DIFFER.
12263 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12264
12265 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12266
12267 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12268 to the file_matcher parameter. Pass 0 to it.
12269 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12270 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12271 NULL psymtab_to_fullname result.
12272 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12273 an expected filename instead.
12274 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12275 file_matcher parameter. Call also psymtab_to_fullname, after newly
12276 considering BASENAMES_MAY_DIFFER.
12277 * source.c (rewrite_source_path): Remove static.
12278 * source.h (rewrite_source_path): New declaration.
12279 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12280 the expand_symtabs_matching field. Comment it.
12281 * symtab.c (file_matches): New function comment. Add parameter
12282 basenames, implement it.
12283 (search_symbols_file_matches): Add basenames parameter. Update the
12284 file_matches caller.
12285 (search_symbols): Match FILES also against symtab_to_fullname.
12286 Optimize it for BASENAMES_MAY_DIFFER.
12287
12288 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12289
12290 * source.c (print_source_lines_base): Print for TUI also "fullname".
12291 * tui/tui-data.c (init_content_element): Change tui_locator_element
12292 field to full_name.
12293 * tui/tui-data.h (struct tui_locator_element): Likewise.
12294 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12295 tui_update_locator_filename calls to tui_update_locator_fullname.
12296 Replace symtab->filename refererence by symtab_to_fullname call.
12297 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12298 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12299 field to full_name. Replace symtab->filename refererence by
12300 symtab_to_fullname call.
12301 (tui_show_symtab_source): Rename parameter to fullname. Change
12302 tui_locator_element field to full_name.
12303 * tui/tui-stack.c: Include source.h.
12304 (tui_set_locator_filename): Rename the declaration to ...
12305 (tui_set_locator_fullname): ... here. Rename its parameter to
12306 fullname, updates its comment.
12307 (tui_set_locator_info): Rename its parameter to fullname.
12308 (tui_set_locator_filename): Rename the definition to ...
12309 (tui_set_locator_fullname): ... here. Rename its parameter to
12310 fullname, updates its comment. Change tui_locator_element field to
12311 full_name.
12312 (tui_set_locator_info): Rename its parameter to fullname.
12313 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12314 (tui_update_locator_filename): Rename to ...
12315 (tui_update_locator_fullname): ... here. Rename callee to
12316 tui_set_locator_fullname.
12317 (tui_show_frame_info): Replace symtab->filename refererence by
12318 symtab_to_fullname call.
12319 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12320 (tui_update_locator_fullname): ... here.
12321 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12322 tui_update_locator_fullname. Replace symtab->filename refererence by
12323 symtab_to_fullname call.
12324 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12325 Rename the callee to tui_update_locator_fullname.
12326 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12327
12328 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12329
12330 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12331 by symtab_to_filename_for_display calls.
12332 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12333 (clear_command): New variable sal_fullname, initialize it. Replace
12334 compare_filenames_for_search by filename_cmp with sal_fullname.
12335 (say_where, update_static_tracepoint): Replace symtab->filename
12336 refererences by symtab_to_filename_for_display calls.
12337 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12338 Likewise.
12339 * dwarf2read.c: Include source.h.
12340 (fixup_go_packaging): Replace symtab->filename refererences by
12341 symtab_to_filename_for_display calls.
12342 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12343 Replace symtab->filename refererences by symtab_to_filename_for_display
12344 calls.
12345 (create_sals_line_offset, convert_linespec_to_sals): New variable
12346 fullname, initialize it, replace symtab->filename reference by the
12347 variable.
12348 * linux-fork.c: Include source.h.
12349 (info_checkpoints_command): Replace symtab->filename refererences by
12350 symtab_to_filename_for_display calls.
12351 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12352 by symtab_to_filename_for_display calls.
12353 * mdebugread.c: Include source.h.
12354 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12355 symtab_to_filename_for_display calls.
12356 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12357 (mi_cmd_file_list_exec_source_files): Likewise.
12358 * printcmd.c: Include source.h.
12359 (build_address_symbolic): Replace symtab->filename refererences by
12360 symtab_to_filename_for_display calls.
12361 * psymtab.c (partial_map_symtabs_matching_filename)
12362 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12363 with psymtab_to_fullname.
12364 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12365 by symtab_to_filename_for_display calls.
12366 (stpy_get_filename): New variable filename, initialize it, use instead
12367 of symtab->filename refererences.
12368 (salpy_str): Make variable filename const char *. Replace
12369 symtab->filename refererences by symtab_to_filename_for_display calls.
12370 * skip.c: Include source.h and filenames.h.
12371 (skip_file_command): Remove const from the symtab variable. Replace
12372 symtab->filename refererences by symtab_to_fullname call.
12373 (function_name_is_marked_for_skip): New variables searched_for_fullname
12374 and fullname. Use them to search also with symtab's fullname.
12375 * source.c (find_source_lines): Replace symtab->filename refererences
12376 by symtab_to_filename_for_display calls.
12377 (print_source_lines_base): New variable filename, use it instead of
12378 symtab->filename. Replace symtab->filename refererences by
12379 symtab_to_filename_for_display calls.
12380 (line_info, forward_search_command): Replace symtab->filename
12381 refererences by symtab_to_filename_for_display calls.
12382 (reverse_search_command): Replace symtab->filename refererences by
12383 symtab_to_filename_for_display calls. New variable filename for it.
12384 * stack.c (frame_info): Likewise.
12385 * symmisc.c: Include source.h.
12386 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12387 (maintenance_info_symtabs): Replace symtab->filename refererences by
12388 symtab_to_filename_for_display calls.
12389 * symtab.c (iterate_over_some_symtabs): Call
12390 compare_filenames_for_search also with symtab_to_fullname.
12391 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12392 symtab->filename refererences by symtab_to_filename_for_display calls.
12393 (find_line_symtab): Replace symtab->filename refererences by
12394 symtab_to_filename_for_display calls.
12395 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12396 (print_symbol_info): Make the last parameter const char *. New
12397 variable s_filename. Use it in the function.
12398 (symtab_symbol_info): Make the last_filename variable const char *.
12399 Replace symtab->filename refererences by symtab_to_filename_for_display
12400 calls.
12401 (rbreak_command): New variable fullname. Use it. Replace
12402 symtab->filename refererence by symtab_to_filename_for_display call.
12403 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12404 (print_one_static_tracepoint_marker): Replace symtab->filename
12405 refererences by symtab_to_filename_for_display calls.
12406 * tui/tui-source.c (tui_set_source_content): New variables filename and
12407 s_filename. Replace symtab->filename refererences by this variable.
12408 Replace other symtab->filename refererences by
12409 symtab_to_filename_for_display calls.
12410
12411 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12412 Jan Kratochvil <jan.kratochvil@redhat.com>
12413
12414 Add a new variable that controls a way in which filenames are
12415 displayed.
12416 * NEWS (set filename-display): New entry.
12417 * source.c (filename_display_basename, filename_display_relative)
12418 (filename_display_absolute, filename_display_kind_names)
12419 (filename_display_string, show_filename_display_string)
12420 (symtab_to_filename_for_display): New.
12421 (_initialize_source): Added initialization of 'filename-display'
12422 variable.
12423 * source.h (symtab_to_filename_for_display): Added declaration.
12424 * stack.c (print_frame): Added new variable and calling of a new
12425 function and condition with this variable. Changed third argument of
12426 calling of a function.
12427
12428 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12429
12430 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12431 Rename field reference filename to fullname.
12432 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12433 fullname. New comment for it.
12434 * tui/tui-source.c (tui_set_source_content): Rename field reference
12435 filename to fullname. Initialize field by symtab_to_fullname now.
12436 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12437 reference filename to fullname. Use symtab_to_fullname during
12438 comparison.
12439
12440 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12441
12442 Code cleanup.
12443 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12444 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12445 filename to fullname. Rename variable this_name to this_fullname.
12446 Lowercase FILENAME_CMP call.
12447 (dw2_find_symbol_file): New comment for the returned string.
12448 (dwarf2_gdb_index_functions): Rename the function to
12449 dw2_expand_symtabs_with_fullname.
12450 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12451 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12452 fullname.
12453 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12454 * symfile.h (struct quick_symbol_functions): Rename field
12455 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12456 parameter filename to fullname. Document returned string meaning for
12457 find_symbol_file.
12458 * symtab.c (find_line_symtab): Rename the called function to
12459 expand_symtabs_with_fullname.
12460
12461 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12462
12463 Code cleanup.
12464 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12465 call of filename_cmp with compare_filenames_for_search.
12466 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12467 is_abs, unify the call of FILENAME_CMP with
12468 compare_filenames_for_search. New gdb_asserts for real_path and name.
12469 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12470 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12471 * symfile.h (struct quick_symbol_functions): Extend the comment for
12472 map_symtabs_matching_filename.
12473 * symtab.c (compare_filenames_for_search): Remove the function comment
12474 relative path requirement. Handle absolute filenames, with a comment.
12475 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12476 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12477 real_path and name. Unify the call of compare_filenames_for_search
12478 with FILENAME_CMP.
12479 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12480
12481 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12482
12483 Code cleanup.
12484 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12485 source_file references by symtab field references. Remove variables
12486 sal and fullname.
12487 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12488 (clear_command, say_where): Replace bp_location field source_file
12489 references by symtab field references.
12490 (bp_location_dtor): Remove the source_file reference.
12491 (update_static_tracepoint): Replace bp_location field source_file
12492 references by symtab field references.
12493 (breakpoint_free_objfile): New function.
12494 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12495 Replace the field source_file by field symtab, extend its comment.
12496 (breakpoint_free_objfile): New declaration.
12497 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12498 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12499 field source_file references by symtab field references.
12500
12501 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12502
12503 Replace xfullpath calls by gdb_realpath calls.
12504 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12505 function comment.
12506 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12507 Remove it from the iterate_over_some_symtabs call.
12508 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12509 Remove it from the dw2_map_expand_apply calls, remove a block handling
12510 it.
12511 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12512 Remove it from the iterate_over_some_symtabs call.
12513 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12514 Remove it from the partial_map_expand_apply calls, remove a block
12515 handling it. Drop gdb_realpath call and cleanups from the real_path
12516 handling.
12517 * source.c (openp): Drop the comment part about xfullpath. Replace
12518 xfullpath calls by gdb_realpath calls.
12519 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12520 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12521 from method map_symtabs_matching_filename and its comment.
12522 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12523 gdb_realpath call.
12524 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12525 remove it also from the function comment, remove a block handling it.
12526 Drop gdb_realpath call and cleanups from the real_path handling.
12527 (iterate_over_symtabs): Drop variable full_path and its use.
12528 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12529 * utils.c (xfullpath): Remove.
12530 * utils.h (xfullpath): Remove.
12531
12532 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12533
12534 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12535 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12536 (ALLDEPFILES): Add ppc64-tdep.c.
12537 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12538 ppc64-tdep.o to gdb_target_obs.
12539 * ppc64-tdep.h: New file.
12540 * ppc64-tdep.c: New file.
12541 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12542 ppc-linux-tdep.c to here.
12543 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12544 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12545 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12546 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12547 from ppc-linux-tdep.c to here.
12548 (ppc64_convert_from_func_ptr_addr): Rename from
12549 ppc64_linux_convert_from_func_ptr_addr to
12550 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12551 here.
12552 * rs6000-tdep.c:
12553 (read_insn): Move from ppc-linux-tdep.c to here.
12554 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12555 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12556 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12557 Removed above functions.
12558 (ppc_linux_init_abi): Adjust.
12559
12560 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12561
12562 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12563
12564 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12565
12566 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12567
12568 2013-02-01 Pedro Alves <palves@redhat.com>
12569
12570 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12571 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12572
12573 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12574
12575 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12576 files with no separate debug info.
12577 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12578 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12579 only for files with no separate debug info.
12580
12581 2013-01-31 Tom Tromey <tromey@redhat.com>
12582
12583 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12584 change type.
12585 (struct jit_program_space_data): Rename from jit_inferior_data.
12586 Update comments.
12587 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12588 Change return type. Attach data to program space.
12589 (jit_program_space_data_cleanup): Rename from
12590 jit_inferior_data_cleanup; change argument type.
12591 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12592 change type.
12593 (jit_register_code): Update.
12594 (jit_update_inferior_cache): Remove.
12595 (jit_breakpoint_deleted): Get jit data from the location's program
12596 space.
12597 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12598 'ps_data', change type.
12599 (jit_inferior_init, jit_breakpoint_re_set_internal)
12600 (jit_event_handler): Update.
12601 (free_objfile_data): Get data from objfile's program space.
12602 (_initialize_jit): Update.
12603
12604 2013-01-31 Tom Tromey <tromey@redhat.com>
12605
12606 PR gdb/13987:
12607 * jit.c (struct jit_inferior_data) <cached_code_address,
12608 jit_breakpoint>: New fields.
12609 (jit_breakpoint_re_set_internal): Fix logging. Only create
12610 breakpoint if cached address has changed.
12611 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12612 functions.
12613 (_initialize_jit): Register breakpoint deleted observer.
12614
12615 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12616
12617 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12618 (save_infcall_suspend_state): Ifdef out unused inf.
12619 (restore_infcall_suspend_state): Ifdef out unused inf.
12620 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12621 (jit_frame_sniffer): Remove unused inf_data.
12622
12623 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12624
12625 * c-exp.y (classify_inner_name): Remove unused type.
12626 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12627 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12628 need_escape.
12629 (c_get_string): Remove unused kind.
12630 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12631
12632 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12633
12634 * charset.c (intermediate_encoding): Remove unused i.
12635 * completer.c (signal_completer): Remove unused i.
12636 * continuations.c (discard_my_continuations_1): Remove unused
12637 continuation_ptr.
12638 * corelow.c (core_close): Remove unuseD name.
12639 (get_core_siginfo): Remove unused pid.
12640 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12641 i, cps.
12642 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12643 (loclist_describe_location): Remove unused first.
12644 * event-top.c (command_line_handler): Remove unused got_eof.
12645 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12646 (resize_section_table): Remove unused old_value.
12647 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12648 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12649 * i386-tdep.c (i386_process_record): Remove unused rex.
12650 * infcmd.c (get_return_value): Remove unused uiout.
12651 * jv-lang.c (type_from_class): Remove unused is_array.
12652 * jv-valprint.c (java_val_print): Remove unused i.
12653 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12654 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12655 * m2-typeprint.c (m2_print_type): Remove unused code.
12656 * macroexp.c (get_character_constant): Remove unused body_start.
12657 (macro_stringify): Remove unused result.
12658 * objc-lang.c (find_methods): Remove unused gdbarch.
12659 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12660 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12661 * stack.c (print_frame_args): Remove unused summary.
12662 * thread.c (thread_apply_command): Remove unused p.
12663 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12664 * valops.c (search_struct_method): Remove unused skip.
12665 * valprint.c (generic_val_print): Remove unused byte_order.
12666 * varobj.c (varobj_update): Remove unused changed.
12667 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12668 (alias_command): Remove unused c.
12669 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12670 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12671 format.
12672 (mi_cmd_data_write_memory): Remove unused word_format.
12673 (mi_cmd_data_write_memory_bytes): Remove unused r.
12674 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12675 p_start, p_end.
12676 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12677 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12678 line_width.
12679
12680 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12681
12682 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12683 * symtab.c (iterate_over_symtabs): Remove unused s.
12684 (find_pc_sect_symtab): Remove unused pspAce.
12685 (find_pc_sect_line): Remove unused alt_symtab.
12686 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12687 (completion_list_add_name): Remove unused newsize.
12688
12689 2013-01-31 Tom Tromey <tromey@redhat.com>
12690
12691 PR c++/14998:
12692 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12693 TYPE_CODE_FUNC.
12694
12695 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12696
12697 * target.c (target_read_string): Remove unused origlen.
12698
12699 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12700
12701 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12702 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12703 * ax-general.c (ax_print): Remove unused is_float.
12704 * blockframe.c (block_innermost_frame): Remove unused start, end.
12705 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12706
12707 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12708
12709 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12710 (svr4_read_so_list): Remove unused lmo.
12711 * solib-target.c (solib_target_relocate_section_addresses): Remove
12712 unused flags.
12713
12714 2013-01-30 Tom Tromey <tromey@redhat.com>
12715
12716 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12717
12718 2013-01-30 Tom Tromey <tromey@redhat.com>
12719
12720 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12721 * utils.c (gnu_debuglink_crc32): Remove.
12722 * utils.h (gnu_debuglink_crc32): Don't declare.
12723
12724 2013-01-30 Tom Tromey <tromey@redhat.com>
12725
12726 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12727 (read_structure_type, read_enumeration_type): Remove cast.
12728
12729 2013-01-30 Tom Tromey <tromey@redhat.com>
12730
12731 * dwarf2read.c (read_namespace_type): Remove cast.
12732 (read_typedef): Likewise.
12733
12734 2013-01-29 Tom Tromey <tromey@redhat.com>
12735
12736 * dwarf2read.c (free_dwo_file): Remove assert.
12737
12738 2013-01-29 Tom Tromey <tromey@redhat.com>
12739
12740 * value.c (deprecated_set_value_modifiable): Remove.
12741 * value.h (deprecated_set_value_modifiable): Remove.
12742
12743 2013-01-28 Doug Evans <dje@google.com>
12744
12745 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12746 to addresses from dwo files.
12747
12748 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12749
12750 * valops.c (find_overload_match): Remove unused argument 'lax'.
12751 * value.h: Remove unused argument 'lax' from the declaration of
12752 find_overload_match.
12753 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12754 to find_overload_match.
12755 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12756 argument to find_overload_match.
12757
12758 2013-01-25 Tom Tromey <tromey@redhat.com>
12759
12760 * dwarf2read.c (processing_has_namespace_info): Remove.
12761 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12762 (process_die, read_func_scope, dwarf2_start_symtab)
12763 (new_symbol_full): Update.
12764
12765 2013-01-25 Tom Tromey <tromey@redhat.com>
12766
12767 * cp-namespace.c (cp_set_block_scope): Remove.
12768 * cp-support.h (cp_set_block_scope): Remove.
12769 * dbxread.c: Include block.h.
12770 (cp_set_block_scope): New function.
12771 (process_one_symbol): Update.
12772 * dwarf2read.c (read_func_scope): Use block_set_scope.
12773
12774 2013-01-25 Pedro Alves <palves@redhat.com>
12775
12776 * remote.c (add_current_inferior_and_thread): Tweak comment.
12777
12778 2013-01-25 Tom Tromey <tromey@redhat.com>
12779
12780 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12781 (cp_add_using_directive): Add 'copy_names' argument.
12782 * cp-support.h (cp_add_using_directive): Update.
12783 (struct using_direct) <import_src, import_dest, alias,
12784 declaration>: Now const.
12785 * dwarf2read.c (read_import_statement): Use obconcat.
12786 Don't copy names passed to cp_add_using_directive.
12787
12788 2013-01-25 Tom Tromey <tromey@redhat.com>
12789
12790 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12791
12792 2013-01-25 Pedro Alves <palves@redhat.com>
12793
12794 * remote.c (stop_reply_extract_thread): New.
12795 (add_current_inferior_and_thread): New parameter 'wait_status'.
12796 Handle it.
12797 (remote_start_remote): Pass wait status to
12798 add_current_inferior_and_thread.
12799 (extended_remote_run): Update comment.
12800 (extended_remote_create_inferior_1): Pass wait status to
12801 add_current_inferior_and_thread.
12802
12803 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12804 Ulrich Weigand <uweigand@de.ibm.com>
12805
12806 * valarith.c (value_vector_widen): New function for replicating a
12807 scalar into a vector.
12808 (value_binop): Use value_vector_widen to widen scalar to vector
12809 rather than casting, this better matches gcc C behaviour.
12810 * valops.c (value_casst): Update logic for casting between vector
12811 types, and for casting from scalar to vector, try to match gcc C
12812 behaviour.
12813 * value.h (value_vector_widen): Declare.
12814 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12815 function, handle special case for casting scalar to vector.
12816 (opencl_relop): Use opencl_value_cast.
12817 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12818 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12819 in order to use opencl_value_cast.
12820
12821 2013-01-25 Yao Qi <yao@codesourcery.com>
12822
12823 * event-loop.c: Include "queue.h".
12824 (gdb_event_p): New typedef.
12825 (DECLARE_QUEUE_P): Use.
12826 (DEFINE_QUEUE_P): Use.
12827 (async_queue_event): Remove.
12828 (gdb_event_xfree): New.
12829 (initialize_event_loop): New.
12830 (process_event): Use QUEUE macros.
12831 (event_queue): Remove.
12832 (gdb_wait_for_event): Caller update.
12833 (check_async_event_handlers): Likewise.
12834 (poll_timers): Likewise.
12835 * event-loop.h (initialize_event_loop): Declare.
12836 * event-loop.c (gdb_event_xfree): New.
12837 * top.c (gdb_init): Call initialize_event_loop.
12838
12839 2013-01-25 Yao Qi <yao@codesourcery.com>
12840
12841 * event-loop.c (async_queue_event): Remove one parameter
12842 'position'. Remove code handling 'position' == TAIL.
12843 (gdb_wait_for_event): Caller update.
12844 (check_async_event_handlers): Caller update.
12845 (poll_timers): Caller update.
12846 * event-loop.h (enum queue_position): Remove.
12847
12848 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12849
12850 * MAINTAINERS: Update my email.
12851
12852 2013-01-25 Yao Qi <yao@codesourcery.com>
12853
12854 * main.c (print_gdb_help): Remove "--epoch" from the help
12855 message.
12856
12857 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12858
12859 * symtab.c (skip_prologue_using_sal): Consider a file
12860 change the same as an increased line number
12861
12862 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12863
12864 * MAINTAINERS (Write After Approval): Add myself to the list.
12865
12866 2013-01-24 Tom Tromey <tromey@redhat.com>
12867
12868 * ada-lang.h (ada_decode_symbol): Make return type const.
12869 * ada-lang.c (ada_decode_symbol): Likewise.
12870
12871 2013-01-23 Doug Evans <dje@google.com>
12872
12873 * linespec.c (find_linespec_symbols): Make static.
12874
12875 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12876
12877 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12878 type on float conversion for complex type.
12879
12880 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12881
12882 Add a new class gdb.Architecture which exposes GDB's
12883 internal representation of architecture via GDB Python API.
12884 * Makefile.in: Add entries corresponding to the new file
12885 python/py-arch.c.
12886 * NEWS (Python Scripting): Add entries for the new class
12887 gdb.Architecture and the new method gdb.Frame.architecture.
12888 * python/py-arch.c: Implement gdb.Architecture class.
12889 * python/py-frame.c (frapy_arch): Implement the method
12890 gdb.Frame.architecture().
12891 (frame_object_methods): Add 'architecture' to the method table.
12892 * python/python-internal.h: Add declarations of new utility
12893 functions.
12894 * python/python.c (_initialize_python): Initialize
12895 gdb.Architecture class.
12896
12897 2013-01-23 Doug Evans <dje@google.com>
12898
12899 Work around binutils/15021.
12900 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12901 type_unit_group out of union s. All uses updated.
12902 (read_index_from_section): Watch for index version 8.
12903 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12904 an imported symtab.
12905 (write_psymtabs_to_index): Increment version number to 8.
12906
12907 2013-01-22 Pedro Alves <palves@redhat.com>
12908
12909 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12910 user-visible.
12911
12912 2013-01-22 Pedro Alves <palves@redhat.com>
12913
12914 * annotate.c (annotate_breakpoints_changed): Rename to ...
12915 (annotate_breakpoints_invalid): ... this. Make static.
12916 (breakpoint_changed): Adjust.
12917 (_initialize_annotate): Always install the observers. Install a
12918 "breakpoint_created" observer.
12919 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12920 * breakpoint.c (set_breakpoint_condition)
12921 (breakpoint_set_commands, do_map_commands_command)
12922 (init_raw_breakpoint, clear_command, set_ignore_count)
12923 (enable_breakpoint_disp): No longer call
12924 annotate_breakpoints_changed.
12925
12926 2013-01-22 Pedro Alves <palves@redhat.com>
12927
12928 * annotate.c: Include "inferior.h".
12929 (frames_invalid_emitted)
12930 (breakpoints_invalid_emitted): New globals.
12931 (async_background_execution_p): New function.
12932 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12933 emitting the annotation if it has already been emitted.
12934 (annotate_display_prompt): New function.
12935 * annotate.h (annotate_display_prompt): New declaration.
12936 * event-top.c: Include annotate.h.
12937 (display_gdb_prompt): Call annotate_display_prompt.
12938
12939 2013-01-22 Pedro Alves <palves@redhat.com>
12940
12941 * annotate.c (ignore_count_changed): Delete.
12942 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12943 (annotate_ignore_count_change): Delete.
12944 (annotate_stopped): Don't emit a delayed breakpoints-changed
12945 annotation.
12946 * annotate.h (annotate_ignore_count_change): Delete.
12947 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12948 annotate_ignore_count_change.
12949
12950 2013-01-22 Tom Tromey <tromey@redhat.com>
12951
12952 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12953 require_rvalue for a register location.
12954
12955 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12956
12957 * breakpoint.c (print_one_breakpoint_location): Add MI
12958 field 'thread-groups' when printing a breakpoint.
12959 (output_thread_groups): New function.
12960
12961 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12962
12963 * python/lib/gdb/commands/explore.py
12964 (CompoundExplorer.explore_expr): Correct the name of a method
12965 being invoked.
12966 (ExploreTypeCommand.invoke): Add a missing 'return'.
12967
12968 2013-01-21 Tom Tromey <tromey@redhat.com>
12969
12970 * gdb_obstack.h (obconcat): Move declaration here, from...
12971 * symfile.h (obconcat): ... here.
12972 * gdb_obstack.c: New file.
12973 (obconcat): Move from...
12974 * symfile.c (obconcat): ... here.
12975 * Makefile.in (SFILES): Add gdb_obstack.c.
12976 (COMMON_OBS): Add gdb_obstack.o.
12977
12978 2013-01-21 Tom Tromey <tromey@redhat.com>
12979
12980 * symfile.h (obsavestring): Don't declare.
12981 * symfile.c (obsavestring): Remove.
12982 * ada-exp.y: Use obstack_copy0, not obsavestring.
12983 * ada-lang.c: Use obstack_copy0, not obsavestring.
12984 * coffread.c: Use obstack_copy0, not obsavestring.
12985 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12986 * dbxread.c: Use obstack_copy0, not obsavestring.
12987 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12988 * jit.c: Use obstack_copy0, not obsavestring.
12989 * mdebugread.c: Use obstack_copy0, not obsavestring.
12990 * psymtab.c: Use obstack_copy0, not obsavestring.
12991 * stabsread.c: Use obstack_copy0, not obsavestring.
12992 * xcoffread.c: Use obstack_copy0, not obsavestring.
12993
12994 2013-01-21 Tom Tromey <tromey@redhat.com>
12995
12996 * dwarf2read.c (fixup_go_packaging): Save package name
12997 on objfile obstack.
12998 * gdbtypes.c (init_type): Don't copy name.
12999
13000 2013-01-21 Tom Tromey <tromey@redhat.com>
13001
13002 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
13003 const.
13004 (struct attribute) <u.str>: Now const.
13005 (struct fnfieldlist) <name>: Now const.
13006 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
13007 (partial_die_parent_scope): Make return type const.
13008 (partial_die_full_name, add_partial_symbol): Update.
13009 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
13010 'name' const.
13011 (find_file_and_directory): Make 'name' and 'comp_dir' const.
13012 (read_file_scope, read_func_scope, dwarf2_add_field)
13013 (dwarf2_add_member_fn, read_structure_type)
13014 (process_enumeration_scope, read_array_type, read_module_type)
13015 (read_base_type, read_subrange_type): Update.
13016 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
13017 (new_symbol_full, guess_full_die_structure_name): Update.
13018 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
13019 (dwarf2_name): Return const type.
13020 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
13021 const.
13022
13023 2013-01-21 Tom Tromey <tromey@redhat.com>
13024
13025 * gdbtypes.c (init_type): Make 'name' const.
13026 * gdbtypes.h (init_type): Update.
13027
13028 2013-01-21 Tom Tromey <tromey@redhat.com>
13029
13030 * buildsym.c (patch_subfile_names): Use set_last_source_file.
13031 (start_symtab): Make 'name' and 'dirname' const. Use
13032 set_last_source_file.
13033 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13034 (last_source_file): Define. Now static.
13035 (set_last_source_file, get_last_source_file): New functions.
13036 * buildsym.h (last_source_file): Don't declare.
13037 (start_symtab): Update.
13038 (set_last_source_file, get_last_source_file): Declare.
13039 * coffread.c (complete_symtab): Use set_last_source_file.
13040 (coff_end_symtab): Likewise.
13041 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13042 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13043 set_last_source_file.
13044 (process_one_symbol): Use get_last_source_file.
13045 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13046 (psymtab_to_symtab_1): Use get_last_source_file.
13047 * xcoffread.c (process_linenos): Use get_last_source_file.
13048 (complete_symtab): Use set_last_source_file.
13049 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13050 (scan_xcoff_symtab): Use set_last_source_file.
13051
13052 2013-01-21 Tom Tromey <tromey@redhat.com>
13053
13054 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13055 (symbol_set_names): Remove casts. Handle field const-ness.
13056
13057 2013-01-21 Tom Tromey <tromey@redhat.com>
13058
13059 * dwarf2read.c (new_symbol_full): Remove cast.
13060 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13061 * symtab.h (symbol_set_demangled_name): Update.
13062
13063 2013-01-21 Tom Tromey <tromey@redhat.com>
13064
13065 * main.c (captured_main): Call bfd_init.
13066
13067 2013-01-21 Tom Tromey <tromey@redhat.com>
13068
13069 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13070 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13071 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13072 * NEWS: Update.
13073
13074 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13075
13076 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13077
13078 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13079
13080 Fix gdb.fortran/common-block.exp crash in PIE mode.
13081 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13082 LOC_COMMON_BLOCK.
13083 * f-valprint.c (info_common_command_for_block): Expect
13084 LOC_COMMON_BLOCK in gdb_assert.
13085 * symtab.h (struct general_symbol_info): Update comment for the
13086 common_block member.
13087 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13088 (enum address_class): New member LOC_COMMON_BLOCK.
13089
13090 2013-01-18 David Blaikie <dblaikie@gmail.com>
13091
13092 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13093
13094 2013-01-18 Tom Tromey <tromey@redhat.com>
13095
13096 PR c++/14999:
13097 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13098 Call require_rvalue.
13099
13100 2013-01-18 Yao Qi <yao@codesourcery.com>
13101
13102 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13103 (dbx_read_symtab): New declaration.
13104 (dbx_psymtab_to_symtab): Delete.
13105 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13106 Rename parameter PST to SELF. Exchanged two parameters.
13107 (start_psymtab): Caller update.
13108 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13109 (dwarf2_read_symtab): New declaration.
13110 (dwarf2_psymtab_to_symtab): Delete.
13111 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13112 Rename parameter PST to SELF. Exchanged two parameters.
13113 (create_partial_symtab): Caller update.
13114 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13115 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13116 Rename parameter PST to SELF. Exchanged two parameters.
13117 (parse_partial_symbols, new_psymtab): Caller update.
13118 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13119 two parameters.
13120 * psymtab.c (psymtab_to_symtab): Caller update.
13121 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13122 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13123 Rename parameter PST to SELF. Exchanged two parameters.
13124 (xcoff_start_psymtab): Caller update.
13125
13126 2013-01-18 Yao Qi <yao@codesourcery.com>
13127
13128 * infrun.c (proceed): Rename local variable 'oneproc' to
13129 'force_step'.
13130
13131 2013-01-17 Doug Evans <dje@google.com>
13132
13133 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13134 (dw2_build_type_unit_groups): Delete. All uses updated.
13135
13136 * symtab.h (struct symbol_search): Add comment.
13137
13138 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13139
13140 * symtab.c (compare_filenames_for_search): New comment for
13141 HAS_DRIVE_SPEC.
13142
13143 2013-01-17 Tom Tromey <tromey@redhat.com>
13144
13145 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13146
13147 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13148
13149 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13150 initialize it by existing make_cleanup. Call new do_cleanups.
13151
13152 2013-01-17 Tom Tromey <tromey@redhat.com>
13153
13154 * cp-abi.c (cp_abi_completer): New function.
13155 (_initialize_cp_abi): Set completer for "set cp-abi".
13156
13157 2013-01-17 Tom Tromey <tromey@redhat.com>
13158
13159 * mem-break.c: Remove obsolete comment.
13160 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13161
13162 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13163
13164 * jit.c (jit_reader_load_command): Interpret the jit reader name
13165 as an absolute path if it begins with a forward slash.
13166
13167 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13168
13169 PR gdb/14550
13170
13171 * jit.c (finalize_symtab): Ensure that only the global block has a
13172 NULL superblock.
13173
13174 2013-01-17 Pedro Alves <palves@redhat.com>
13175
13176 * acinclude.m4: Include ../config/plugins.m4,
13177 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13178 * Makefile.in (aclocal_m4_deps): Update.
13179 * aclocal.m4: Renegerate.
13180
13181 2013-01-16 Doug Evans <dje@google.com>
13182
13183 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13184
13185 2013-01-16 Pedro Alves <palves@redhat.com>
13186 Tom Tromey <tromey@redhat.com>
13187
13188 PR cli/7221:
13189 * NEWS: Add "catch signal".
13190 * breakpoint.c (base_breakpoint_ops): No longer static.
13191 (bpstat_explains_signal): New function.
13192 (init_catchpoint): No longer static.
13193 (base_breakpoint_explains_signal): New function.
13194 (base_breakpoint_ops): Initialize new field.
13195 * breakpoint.h (enum bpstat_signal_value): New.
13196 (struct breakpoint_ops) <explains_signal>: New field.
13197 (bpstat_explains_signal): Remove macro, declare as function.
13198 (base_breakpoint_ops, init_catchpoint): Declare.
13199 * break-catch-sig.c: New file.
13200 * inferior.h (signal_catch_update): Declare.
13201 * infrun.c (signal_catch): New global.
13202 (handle_syscall_event): Update for change to
13203 bpstat_explains_signal.
13204 (handle_inferior_event): Likewise. Always handle random signals
13205 via bpstats.
13206 (signal_cache_update): Check signal_catch.
13207 (signal_catch_update): New function.
13208 (_initialize_infrun): Initialize signal_catch.
13209 * Makefile.in (SFILES): Add break-catch-sig.c.
13210 (COMMON_OBS): Add break-catch-sig.o.
13211
13212 2013-01-16 Tom Tromey <tromey@redhat.com>
13213
13214 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13215 (print_one_catch_solib, print_one_catch_syscall)
13216 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13217 "catch-type".
13218
13219 2013-01-16 Yao Qi <yao@codesourcery.com>
13220
13221 * printcmd.c (current_display_number): Make it static.
13222
13223 2013-01-16 Yao Qi <yao@codesourcery.com>
13224
13225 * infcmd.c (step_once): Don't check '!single_inst' as it was
13226 checked before.
13227
13228 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13229
13230 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13231
13232 2013-01-14 Tom Tromey <tromey@redhat.com>
13233
13234 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13235 set command.
13236 * command.h (add_setshow_string_noescape_cmd): Update.
13237 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13238 (complete_set_gnutarget): New function.
13239 (_initialize_core): Set the "set gnutarget" completer.
13240
13241 2013-01-14 Tom Tromey <tromey@redhat.com>
13242
13243 PR symtab/14442:
13244 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13245 (c_type_print_modifier): Likewise.
13246 * dwarf2read.c (read_tag_restrict_type): New function.
13247 (read_type_die_1): Handle DW_TAG_restrict_type.
13248 * gdbtypes.c (make_restrict_type): New function.
13249 (recursive_dump_type): Handle TYPE_RESTRICT.
13250 * gdbtypes.h (enum type_flag_values): Renumber.
13251 (enum type_instance_flag_value): Add
13252 TYPE_INSTANCE_FLAG_RESTRICT.
13253 (TYPE_RESTRICT): New macro.
13254 (make_restrict_type): Declare.
13255
13256 2013-01-14 Tom Tromey <tromey@redhat.com>
13257
13258 PR symtab/14931:
13259 * psymtab.c (struct psymtab_state): New.
13260 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13261 functions.
13262 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13263 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13264
13265 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13266 Pedro Alves <palves@redhat.com>
13267
13268 PR remote/14786
13269
13270 * remote.c (remote_threads_info): Make a copy of the reply from
13271 qfThreadInfo and use that instead of rs->buf.
13272
13273 2013-01-14 Yao Qi <yao@codesourcery.com>
13274
13275 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13276 (dbx_psymtab_to_symtab): Likewise.
13277 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13278 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13279 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13280
13281 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13282
13283 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13284 make_cleanup_restore_current_language. Call set_language. Move
13285 OLD_CHAIN and INNER_CHAIN cleanups.
13286 * utils.c (do_restore_current_language)
13287 (make_cleanup_restore_current_language): New functions.
13288 * utils.h (make_cleanup_restore_current_language): New declaration.
13289
13290 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13291
13292 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13293 non-existing files.
13294
13295 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13296 non-existing files if FILENAME is already absolute.
13297
13298 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13299
13300 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13301 fputs_filtered. Append trailing newline.
13302
13303 2013-01-11 Yao Qi <yao@codesourcery.com>
13304 Stan Shebs <stan@codesourcery.com>
13305
13306 * psymtab.c (init_psymbol_list): Clarify the comment.
13307
13308 2013-01-11 Yao Qi <yao@codesourcery.com>
13309
13310 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13311 (update_dprintf_command_list): Assert that 'printf_line' is
13312 non-null. Remove condition check.
13313
13314 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13315
13316 Code cleanup.
13317 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13318 type const char *.
13319 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13320 const char *.
13321 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13322
13323 2013-01-09 Anthony Green <green@moxielogic.com>
13324
13325 * cp-abi.c (cplus_print_vtable): Don't return value from void
13326 function.
13327 * ada-lang.c (re_set_catch_assert): Ditto.
13328
13329 2013-01-09 Doug Evans <dje@google.com>
13330
13331 * symfile.h (quick_symbol_functions): Delete member
13332 pre_expand_symtabs_matching. All uses removed.
13333 * dwarf2read.c (dw2_lookup_symbol): Implement.
13334 (dw2_do_expand_symtabs_matching): Delete.
13335 (dw2_pre_expand_symtabs_matching): Delete.
13336 (struct dw2_symtab_iterator): New type.
13337 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13338 (dw2_expand_symtabs_for_function): Rewrite.
13339 (dwarf2_gdb_index_functions): Update.
13340 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13341 (psym_functions): Update.
13342
13343 2013-01-09 Tom Tromey <tromey@redhat.com>
13344
13345 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13346 * configure: Rebuild.
13347 * configure.ac: Add somread.o to the build if BFD has SOM
13348 support.
13349 * somread.c: Include som/aout.h, not syms.h.
13350 (som_symtab_read): Use som_external_symbol_dictionary_record.
13351 Unpack records manually.
13352 (_initialize_somread): Declare.
13353
13354 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13355
13356 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13357 Cast return_address to 64bits.
13358
13359 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13360
13361 * printcmd.c: Remove define of function output_command.
13362 * tracepoint.c: Remove extern of function output_command.
13363 * valprint.h: (output_command): New extern.
13364
13365 2013-01-07 Tom Tromey <tromey@redhat.com>
13366
13367 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13368 Remove.
13369 (objc_language_defn): Use c_printchar, c_printstr,
13370 c_emit_char.
13371
13372 2013-01-07 Tom Tromey <tromey@redhat.com>
13373
13374 PR cli/7719:
13375 * NEWS: Update.
13376 * ada-valprint.c (printstr, print_field_values): Remove
13377 "inspect_it" code.
13378 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13379 code.
13380 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13381 code.
13382 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13383 * main.c (captured_main): Remove "epoch" argument.
13384 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13385 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13386 * p-valprint.c (pascal_object_print_value_fields): Remove
13387 "inspect_it" code.
13388 * printcmd.c (print_command_1): Remove 'inspect' argument.
13389 (print_command, call_command): Update.
13390 (inspect_command): Remove.
13391 (_initialize_printcmd): Make "inspect" an alias for "print".
13392 * top.c (epoch_interface): Remove.
13393 * top.h (epoch_interface): Remove.
13394 * valprint.c (user_print_options): Update.
13395 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13396 * valprint.h (struct value_print_options) <inspect_it>: Remove
13397 field.
13398
13399 2013-01-04 Tom Tromey <tromey@redhat.com>
13400
13401 * valprint.h (read_string): Add 'extern'.
13402
13403 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13404
13405 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13406 used to decide whether to define darwin_read_dyld_info or not.
13407
13408 2013-01-03 Pierre Muller <muller@sourceware.org>
13409
13410 * main.c (relocate_gdb_directory): Avoid calling stat function
13411 if DIR is empty.
13412
13413 2013-01-03 Yao Qi <yao@codesourcery.com>
13414
13415 * psymtab.c (fixup_psymbol_section): Update declaration.
13416 (fixup_psymbol_section): Remove code returning value.
13417
13418 2013-01-03 Yao Qi <yao@codesourcery.com>
13419
13420 * symtab.h: Remove some out of date comments.
13421 (enum exception_event_kind): Move it ...
13422 * breakpoint.c: ... here.
13423
13424 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13425
13426 PR gdb/14405
13427 * darwin-nat.c (darwin_read_dyld_info): Only build if
13428 TASK_DYLD_INFO_COUNT is defined.
13429 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13430 TASK_DYLD_INFO_COUNT is defined.
13431
13432 2013-01-02 Tom Tromey <tromey@redhat.com>
13433
13434 * symfile.h (struct ecoff_debug_hack): Remove.
13435 * objfiles.c: Don't include mdebugread.h.
13436
13437 2013-01-02 Tom Tromey <tromey@redhat.com>
13438
13439 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13440 * configure.ac: Check for Mach-O support in BFD. Update
13441 CONFIG_OBS.
13442 * configure: Rebuild.
13443
13444 2013-01-02 Tom Tromey <tromey@redhat.com>
13445
13446 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13447 * configure.ac: Use GDB_AC_CHECK_BFD.
13448 * configure: Rebuild.
13449
13450 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13451
13452 * MAINTAINERS: Update my email.
13453
13454 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13455
13456 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13457
13458 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13459
13460 * rs6000-nat.c (bss_data_overlap): New function.
13461 (vmap_symtab): Use it to adjust the .bss section's offset.
13462
13463 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13464
13465 Update year range in copyright notice of all files.
13466
13467 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13468
13469 * top.c (print_gdb_version): Update copyright year.
13470
13471 For older changes see ChangeLog-2012.
13472 \f
13473 Local Variables:
13474 mode: change-log
13475 left-margin: 8
13476 fill-column: 74
13477 version-control: never
13478 coding: utf-8
13479 End: