2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
2
3 * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
4 (nios2_linux_sigreturn_tramp_frame): Remove.
5 (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
6 number.
7 (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
8 (nios2_linux_init_abi): Remove registration of
9 nios2_linux_sigreturn_tramp_frame.
10
11 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR gdb/16305
14 * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
15 adding prefix to opcode.
16
17 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
18
19 PR gdb/16304
20 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
21 address in 64-bit mode.
22
23 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
24
25 PR gdb/16304
26 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
27 address to 64-bit in 64-bit mode.
28
29 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
30
31 PR gdb/16304
32 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
33 system calls.
34 (amd64_x32_linux_record_tdep): New.
35 (amd64_linux_syscall_record_common): New function.
36 (amd64_linux_syscall_record): Call
37 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
38 (amd64_x32_linux_syscall_record): Call
39 amd64_linux_syscall_record_common with
40 amd64_x32_linux_record_tdep.
41 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
42 initialization and tdep->i386_syscall_record setup to ...
43 (amd64_linux_init_abi): Here.
44 (amd64_x32_linux_init_abi): Initialize
45 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
46 amd64_x32_linux_syscall_record.
47 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
48
49 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
50
51 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
52 argument prefixes and suffixes. Initialize gdbarch with them.
53 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
54 * gdbarch.c: Regenerate.
55 * gdbarch.h: Regenerate.
56 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
57 (stap_register_prefix, stap_register_suffix)
58 (stap_register_indirection_prefix)
59 (stap_register_indirection_suffix): Declare as "const char *const
60 *" instead of "const char *". Adjust printing function. Rename
61 all of the variables to the plural.
62 (pstring_list): New function.
63 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
64 argument prefixes and suffixes. Initialize gdbarch with them.
65 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
66 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
67 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
68 * stap-probe.c (stap_is_generic_prefix): New function.
69 (stap_is_register_prefix): Likewise.
70 (stap_is_register_indirection_prefix): Likewise.
71 (stap_is_integer_prefix): Likewise.
72 (stap_generic_check_suffix): Likewise.
73 (stap_check_integer_suffix): Likewise.
74 (stap_check_register_suffix): Likewise.
75 (stap_check_register_indirection_suffix): Likewise.
76 (stap_parse_register_operand): Remove unecessary declarations for
77 variables holding prefix and suffix information. Use the new
78 functions listed above for checking for prefixes and suffixes.
79 (stap_parse_single_operand): Likewise.
80
81 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
82
83 PR breakpoints/16297
84 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
85 when expected syscall is hit.
86
87 2013-12-19 Tom Tromey <tromey@redhat.com>
88
89 * ser-unix.c (hardwire_ops): New global.
90 (_initialize_ser_hardwire): Use it.
91 * ser-tcp.c (tcp_ops): New global.
92 (_initialize_ser_tcp): Use it.
93 * ser-pipe.c (pipe_ops): New global.
94 (_initialize_ser_pipe): Use it.
95 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
96 globals.
97 (_initialize_ser_windows): Use them.
98
99 2013-12-19 Tom Tromey <tromey@redhat.com>
100
101 * serial.c (serial_ops_p): New typedef.
102 (serial_ops_list): Now a VEC.
103 (serial_interface_lookup): Return const. Use VEC_iterate.
104 (serial_add_interface): Make parameter const.
105 (serial_open): Update.
106 (serial_fdopen_ops): Make 'ops' const.
107 (serial_pipe): Update.
108 * ser-tcp.c (_initialize_ser_tcp): Update.
109 * ser-pipe.c (_initialize_ser_pipe): Update.
110 * ser-unix.c (_initialize_ser_hardwire): Update.
111 * ser-mingw.c (_initialize_ser_windows): Update.
112 * ser-go32.c (dos_ops): Now const. Update.
113 * serial.h (struct serial) <ops>: Now const.
114 (struct serial_ops) <next>: Remove.
115 (serial_add_interface): Make parameter const.
116
117 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
118
119 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
120 iov.iov_len with the real length in use.
121
122 2013-12-18 Yao Qi <yao@codesourcery.com>
123
124 * target.h (target_xfer_partial_ftype): New typedef.
125 (target_xfer_partial): Update declaration.
126 * auxv.h (memory_xfer_auxv): Likewise.
127 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
128 * ia64-linux-nat.c (super_xfer_partial): Likewise.
129 * linux-nat.c (super_xfer_partial): Likewise.
130 * procfs.c (procfs_xfer_partial): Likewise.
131 * record-full.c (record_full_beneath_to_xfer_partial):
132 (tmp_to_xfer_partial): Likewise.
133 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
134 * target.c (default_xfer_partial): Likewise.
135 (current_xfer_partial): Likewise.
136 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
137
138 2013-12-18 Yao Qi <yao@codesourcery.com>
139
140 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
141 of sprintf.
142 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
143 (linux_proc_pending_signals): Likewise.
144
145 2013-12-18 Joel Brobecker <brobecker@adacore.com>
146
147 * value.c (value_entirely_unavailable): ARI fix: Move trailing
148 binary operator to the next line. No actual code change.
149
150 2013-12-17 Pedro Alves <palves@redhat.com>
151
152 * frame.h (enum frame_id_stack_status): New enum.
153 (struct frame_id) <stack_addr>: Adjust comment.
154 <stack_addr_p>: Delete field, replaced with ...
155 <stack_status>: ... this new field.
156 (frame_id_build_unavailable_stack): Declare.
157 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
158 (frame_id_build_special): Adjust.
159 (frame_id_build_unavailable_stack): New function.
160 (frame_id_build, frame_id_build_wild): Adjust.
161 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
162 account frames with unavailable stack.
163
164 * amd64-tdep.c (amd64_frame_this_id)
165 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
166 frame_id_build_unavailable_stack.
167 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
168 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
169 (i386_sigtramp_frame_this_id): Likewise.
170
171 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
172
173 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
174 unavailable, use correct bit length.
175 * value.c (struct value): Extend comment on unavailable to
176 indicate that it is bit based.
177 (value_bits_available): New function.
178 (value_bytes_available): Call value_bits_available.
179 (value_entirely_available): Check against the bit length, not byte
180 length.
181 (mark_value_bits_unavailable): New function.
182 (mark_value_bytes_unavailable): Move contents to
183 mark_value_bits_unavailable, call to same.
184 (memcmp_with_bit_offsets): New function.
185 (value_available_contents_bits_eq): New function, takes the
186 functionality from value_available_contents_eq but uses
187 memcmp_with_bit_offsets now, and is bit not byte based.
188 (value_available_contents_eq): Move implementation into
189 value_available_contents_bits_eq, call to same.
190 (value_contents_copy_raw): Work on bits, not bytes.
191 (unpack_value_bits_as_long_1): Check availability in bits, not
192 bytes.
193 * value.h (value_bits_available): Declare new function.
194 (mark_value_bits_unavailable): Declare new function.
195
196 2013-12-16 Pierre Muller <muller@sourceware.org>
197
198 Fix compilation error for cygwin native build.
199 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
200 Call wcstombs.
201
202 2013-12-16 Pedro Alves <palves@redhat.com>
203
204 PR 16329
205 * sol-thread.c (check_for_thread_db): If the target can't run or
206 isn't a core, return without pushing.
207
208 2013-12-15 Joel Brobecker <brobecker@adacore.com>
209
210 Revert the following commit:
211 * solib.c (solib_map_sections): Remove code overwriting
212 SO->SO_NAME with the bfd's filename.
213
214 Make the following changes required after the revert above:
215 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
216 returned bfd to a copy of the synthetic pathname.
217 * solib-darwin.c (darwin_bfd_open): Set the filename of the
218 returned bfd to a copy of PATHNAME.
219
220 2013-12-13 Joel Brobecker <brobecker@adacore.com>
221
222 * ada-lang.c (ada_array_bound_from_type): Move the declaration
223 and assignment of variable "elt_type" inside the else block
224 where it is used. Add two missing check_typedef calls.
225 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
226 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
227
228 2013-12-13 Joel Brobecker <brobecker@adacore.com>
229
230 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
231 between 'struct type *' and 'arr_type'.
232
233 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
234
235 PR python/16113
236 * NEWS (Python Scripting): Add entry for the new feature and the
237 new attribute of gdb.Field objects.
238 * python/py-type.c (gdbpy_is_field): New function
239 (convert_field): Add 'parent_type' attribute to gdb.Field
240 objects.
241 * python/py-value.c (valpy_getitem): Allow subscript value to be
242 a gdb.Field object.
243 (value_has_field): New function
244 (get_field_flag): New function
245 * python/python-internal.h (gdbpy_is_field): Add declaration.
246
247 2013-12-12 Pedro Alves <palves@redhat.com>
248
249 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
250 const, and remove casts.
251
252 2013-12-12 Pedro Alves <palves@redhat.com>
253
254 * cli/cli-cmds.c (source_script_from_stream) Use have_python
255 instead of catching UNSUPPORTED_ERROR.
256 * exceptions.h (UNSUPPORTED_ERROR): Delete.
257 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
258 error if called.
259 * python/python.h (have_python): New static inline function.
260
261 2013-12-11 Doug Evans <dje@google.com>
262
263 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
264 "can't find DWO" warning.
265
266 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
267
268 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
269 to get_probe_argument_count and evaluate_probe_argument.
270 * probe.c (get_probe_argument_count): Adjust declaration to accept
271 frame. Pass frame to probe_ops's get_probe_argument_count.
272 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
273 (probe_safe_evaluate_at_pc): Pass frame to
274 get_probe_argument_count and evaluate_probe_argument.
275 * probe.h (struct probe_ops) <get_probe_argument_count,
276 evaluate_probe_argument>: Adjust declarations to accept frame.
277 (get_probe_argument_count, evaluate_probe_argument): Likewise.
278 * solib-svr4.c (solib_event_probe_action): Get current frame.
279 Pass it to get_probe_argument_count.
280 (svr4_handle_solib_event): Get current frame. Pass it to
281 get_probe_argument_count and evaluate_probe_argument.
282 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
283 accept gdbarch. Do not obtain it from the probe's objfile.
284 (stap_get_probe_argument_count): Adjust declaration to accept
285 frame. Obtain gdbarch from the frame. Call generic
286 can_evaluate_probe_arguments. Pass gdbarch to
287 stap_parse_probe_arguments.
288 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
289 stap_parse_probe_arguments.
290 (stap_evaluate_probe_argument): Adjust declaration to accept
291 frame. Obtain gdbarch from the frame. Pass gdbarch to
292 stap_get_arg.
293 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
294 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
295 get_probe_argument_count and evaluate_probe_argument.
296
297 2013-12-10 Doug Evans <dje@google.com>
298
299 PR 16286
300 * c-lang.c (c_get_string): Ignore the declared size of the object
301 if a specific length is requested.
302
303 2013-12-10 Doug Evans <dje@google.com>
304
305 * interps.h (interp_exec_p): Delete.
306 * interps.c (interp_exec_p): Delete.
307 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
308 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
309
310 2013-12-10 Yao Qi <yao@codesourcery.com>
311
312 * amd64-tdep.c (amd64_analyze_stack_align): Call
313 target_read_code instead of target_read_memory.
314 (amd64_analyze_prologue): Call read_code_unsigned_integer
315 instead of read_memory_unsigned_integer. Call read_code
316 instead of read_memory.
317 (amd64_skip_xmm_prologue): Likewise.
318
319 2013-12-10 Yao Qi <yao@codesourcery.com>
320
321 * corefile.c (read_code): New function.
322 (read_code_integer): New function.
323 (read_code_unsigned_integer): New function.
324 * gdbcore.h (read_code): Declare.
325 (read_code_integer): Declare.
326 (read_code_unsigned_integer): Declare.
327 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
328 of target_read_memory. Call read_code_unsigned_integer instead
329 of read_memory_unsigned_integer.
330 (i386_analyze_struct_return): Likewise.
331 (i386_skip_probe): Likewise.
332 (i386_analyze_stack_align): Likewise.
333 (i386_match_pattern): Likewise.
334 (i386_skip_noop): Likewise.
335 (i386_analyze_frame_setup): Likewise.
336 (i386_analyze_register_saves): Likewise.
337 (i386_skip_prologue): Likewise.
338 (i386_skip_main_prologue): Likewise.
339 (i386_frame_cache_1): Likewise.
340
341 2013-12-10 Yao Qi <yao@codesourcery.com>
342
343 * infrun.c: Include "target-dcache.h".
344 (prepare_for_detach): Call target_dcache_invalidate.
345 (wait_for_inferior): Likewise.
346 (fetch_inferior_event): Likewise.
347 (infrun_thread_stop_requested_callback): Likewise. Set
348 overlay_cache_invalid to 1.
349
350 2013-12-10 Joel Brobecker <brobecker@adacore.com>
351
352 * symtab.c (symbol_find_demangled_name): Add handling of
353 Ada symbols.
354
355 2013-12-10 Joel Brobecker <brobecker@adacore.com>
356
357 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
358 * NEWS: Expand the entry documenting the new -exec-run --start
359 option to mention the corresponding new entry in the output of
360 "-list-features".
361
362 2013-12-10 Joel Brobecker <brobecker@adacore.com>
363
364 * windows-nat.c (handle_load_dll): Add comments.
365 (windows_ensure_ntdll_loaded): New function.
366 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
367 Add FIXME comment.
368
369 2013-12-08 Joel Brobecker <brobecker@adacore.com>
370
371 GDB 7.6.2 released.
372
373 2013-12-08 Yao Qi <yao@codesourcery.com>
374
375 * stack.c (frame_info): Initialize variable caller_pc.
376
377 2013-12-06 Pedro Alves <palves@redhat.com>
378
379 * frame.c (enum cached_copy_status): New enum.
380 (struct frame_info) <prev_pc.p>: Change type to enum
381 cached_copy_status.
382 (fprint_frame): Handle not saved and unavailable prev_pc values.
383 (frame_unwind_pc_if_available): Delete and merge contents into ...
384 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
385 to use enum cached_copy_status.
386 (frame_unwind_caller_pc_if_available): Delete.
387 (create_new_frame): Adjust.
388 * frame.h (frame_unwind_caller_pc_if_available): Delete
389 declaration.
390 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
391 frame_unwind_caller_pc_if_available, and handle
392 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
393 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
394 (val_print_not_saved): New function.
395 * valprint.h (val_print_not_saved): Declare.
396
397 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
398 Pedro Alves <palves@redhat.com>
399
400 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
401 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
402 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
403 * spu-tdep.c (spu_software_single_step): Throw
404 OPTIMIZED_OUT_ERROR.
405 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
406
407 2013-12-06 Tom Tromey <tromey@redhat.com>
408
409 * objfiles.c (free_objfile): Update comment.
410
411 2013-12-06 Tom Tromey <tromey@redhat.com>
412
413 * objfiles.h (objfile_to_front): Remove.
414 * objfiles.c (objfile_to_front): Remove.
415
416 2013-12-06 Tom Tromey <tromey@redhat.com>
417
418 * minsyms.c (get_symbol_leading_char): Remove unnecessary
419 declaration.
420
421 2013-12-06 Tom Tromey <tromey@redhat.com>
422
423 * psympriv.h (struct partial_symtab) <user>: Move earlier.
424
425 2013-12-06 Tom Tromey <tromey@redhat.com>
426
427 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
428 (list_command): Likewise.
429
430 2013-12-06 Tom Tromey <tromey@redhat.com>
431
432 * psymtab.c (allocate_psymtab): Put the filename in the filename
433 bcache.
434
435 2013-12-06 Tom Tromey <tromey@redhat.com>
436
437 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
438 * symtab.h (struct symtab) <dirname>: Now const.
439
440 2013-12-06 Tom Tromey <tromey@redhat.com>
441
442 * symfile.c (allocate_symtab): Remove cast.
443 * symtab.h (struct symtab) <filename>: Now const.
444
445 2013-12-06 Tom Tromey <tromey@redhat.com>
446
447 * break-catch-throw.c (fetch_probe_arguments): Use
448 get_probe_argument_count and evaluate_probe_argument.
449 * elfread.c (elf_get_probe_argument_count)
450 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
451 (elf_compile_to_ax): Remove.
452 (elf_probe_fns): Update.
453 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
454 (evaluate_probe_argument): Call method on probe, not via sym
455 functions.
456 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
457 evaluate_probe_argument.
458 (compile_probe_arg): Use get_probe_argument_count. Call method on
459 probe, not via sym functions.
460 * symfile-debug.c (debug_sym_get_probe_argument_count)
461 (debug_can_evaluate_probe_arguments)
462 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
463 Remove.
464 (debug_sym_probe_fns): Remove.
465 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
466 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
467 sym_compile_to_ax>: Remove fields.
468
469 2013-12-06 Pierre Muller <muller@sourceware.org>
470
471 Fix completion for pascal language.
472 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
473 (exp : field_exp name COMPLETE): New rule.
474 (exp : SIZEOF): Set correct current_type.
475 (last_was_structop): Remove static variable.
476 (yylex): Remove saw_structop local variable.
477 Adapt code to removal of variables above.
478
479 2013-12-06 Joel Brobecker <brobecker@adacore.com>
480
481 * frame.c (get_prev_frame_1): Delete variable "this_id".
482 Replace its use by a call to get_frame_id.
483
484 2013-12-05 Anthony Green <green@moxielogic.com>
485
486 * moxie-tdep.c (moxie_software_single_step): New function.
487 (INST2OFFSET): New helper macro.
488 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
489 (moxie_process_readu): Move this up in the file.
490
491 2013-12-05 Doug Evans <xdje42@gmail.com>
492
493 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
494
495 2013-12-05 Joel Brobecker <brobecker@adacore.com>
496 Tristan Gingold <gingold@adacore.com>
497
498 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
499 Accept version 2. Ignore operations using opcode 6.
500
501 2013-12-05 Joel Brobecker <brobecker@adacore.com>
502
503 * ada-lex.l (find_dot_all): Fix coding style violations.
504
505 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
506
507 * NEWS: Add section for Intel(R) Architecture Instructions
508 Extesions mentioning MPX.
509
510 2013-12-03 Joel Brobecker <brobecker@adacore.com>
511
512 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
513
514 2013-12-03 Joel Brobecker <brobecker@adacore.com>
515
516 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
517 when parse_exp_1 threw an error. Add comment.
518
519 2013-12-03 Joel Brobecker <brobecker@adacore.com>
520
521 * NEWS: Mention "-list-features" in the entry documenting
522 the support for the "--language" option.
523
524 2013-12-03 Tom Tromey <tromey@redhat.com>
525 Jan Kratochvil <jan.kratochvil@redhat.com>
526 Doug Evans <dje@google.com>
527 Samuel Bronson <naesten@gmail.com>
528
529 Bring back gdb-add-index as a contrib script.
530 * contrib/gdb-add-index.sh: New file.
531 * NEWS: Note the addition.
532
533 2013-12-03 Samuel Bronson <naesten@gmail.com>
534
535 * MAINTAINERS (Write After Approval): Add myself to the list.
536
537 2013-12-03 Joel Brobecker <brobecker@adacore.com>
538
539 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
540
541 2013-12-03 Joel Brobecker <brobecker@adacore.com>
542
543 * mi/mi-main.c: Remove trailing spaces throughout.
544
545 2013-12-03 Pedro Alves <palves@redhat.com>
546 Joel Brobecker <brobecker@adacore.com>
547
548 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
549 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
550 of a regular error when the GDB/MI command does not exist.
551 * mi/mi-main.c (mi_cmd_list_features): Add
552 "undefined-command-error-code".
553 (mi_print_exception): Print an "undefined-command"
554 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
555 * NEWS: Add entry documenting the new "code" variable in
556 "^error" result records.
557
558 2013-12-03 Joel Brobecker <brobecker@adacore.com>
559
560 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
561 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
562 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
563 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
564 field to output of "-list-features".
565
566 * NEWS: Add entry for new -info-gdb-mi-command.
567
568 2013-12-02 Doug Evans <dje@google.com>
569 Jan Kratochvil <jan.kratochvil@redhat.com>
570
571 * objfiles.c (allocate_objfile): Save original_name as an absolute
572 path.
573 * objfiles.h (struct objfile): Expand comment on original_name.
574 * source.c (openp): Call gdb_abspath.
575 * utils.c (gdb_abspath): New function.
576 * utils.h (gdb_abspath): Declare.
577
578 2013-12-02 Pedro Alves <palves@redhat.com>
579
580 * dcache.c (dcache_read_line): Use target_read_raw_memory.
581 * target.c (target_read_raw_memory): New function.
582 (target_read_stack, target_write_memory, target_write_raw_memory):
583 Update comment.
584 (target_read_code): Add comment.
585 * target.h (target_read_raw_memory): Declare.
586
587 2013-12-02 Pedro Alves <palves@redhat.com>
588
589 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
590 unconditionally.
591
592 2013-12-02 Pedro Alves <pedro@codesourcery.com>
593 Maciej W. Rozycki <macro@codesourcery.com>
594
595 * remote.c (putpkt_for_catch_errors): Remove function.
596 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
597 gracefully.
598
599 2013-12-02 Pedro Alves <palves@redhat.com>
600
601 PR remote/15974
602 * remote-notif.c (handle_notification): Return early if no
603 notification is found.
604
605 2013-12-02 Joel Brobecker <brobecker@adacore.com>
606
607 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
608 preprocessor check.
609
610 2013-12-02 Joel Brobecker <brobecker@adacore.com>
611
612 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
613
614 2013-12-02 Joel Brobecker <brobecker@adacore.com>
615
616 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
617 * ctf.c (ctf_start): Remove obsolete comment.
618
619 2013-12-02 Joel Brobecker <brobecker@adacore.com>
620
621 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
622
623 2013-11-30 Doug Evans <xdje42@gmail.com>
624
625 * auto-load.h (script_language): New members name, auto_load_enabled.
626 Add missing comments on struct members.
627 (auto_load_objfile_script): Delete.
628 * auto-load.c: #include "cli/cli-cmds.h".
629 (auto_load_gdb_scripts_enabled): New function.
630 (script_language_gdb): Update, add new members.
631 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
632 and call to maybe_add_script moved to caller.
633 (auto_load_objfile_script_1): Auto-load safe-checking and
634 call to maybe_add_script moved here.
635 (auto_load_objfile_script): Make static. Early exit if support for
636 scripting language hasn't been compiled in, or auto-loading has been
637 disabled.
638 (source_section_scripts): Argument "source_name" renamed to
639 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
640 with section_name. Skip loading script if support for scripting
641 language hasn't been compiled in, or auto-loading has been disabled.
642 Call language->source_script_for_objfile instead of calling
643 source_python_script_for_objfile directly.
644 (load_auto_scripts_for_objfile): Update.
645 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
646 (gdbpy_load_auto_script_for_objfile): Delete.
647 (auto_load_python_scripts_enabled): New function.
648 (script_language_python): Update, add new members.
649 (gdbpy_script_language_defn): New function.
650 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
651 (gdbpy_script_language_defn): Declare.
652
653 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
654 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
655 (source_section_scripts): Moved here from py-auto-load.c.
656 (auto_load_section_scripts): Ditto.
657 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
658 auto-load.c, renamed AUTO_SECTION_NAME.
659 (source_section_scripts, auto_load_section_scripts): Moved to
660 auto-load.c.
661
662 2013-11-30 Yao Qi <yao@codesourcery.com>
663
664 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
665
666 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
667
668 * gdbarch.sh: Remove include of "gdb_string.h", replace by
669 <string.h>.
670
671 2013-11-29 Doug Evans <xdje42@gmail.com>
672
673 * python/py-auto-load.c (source_section_scripts): Move comment to
674 more relevant location.
675
676 Whitespace cleanup.
677 * python/py-breakpoint.c: Remove trailing whitespace.
678 * python/py-cmd.c: Ditto.
679 * python/py-evts.c: Ditto.
680 * python/py-finishbreakpoint.c: Ditto.
681 * python/py-frame.c: Ditto.
682 * python/py-function.c: Ditto.
683 * python/py-inferior.c: Ditto.
684 * python/py-infthread.c: Ditto.
685 * python/py-param.c: Ditto.
686 * python/py-prettyprint.c: Ditto.
687 * python/py-symbol.c: Ditto.
688 * python/py-type.c: Ditto.
689 * python/py-utils.c: Ditto.
690 * python/py-value.c: Ditto.
691 * python/python-internal.h: Ditto.
692 * python/python.c: Ditto.
693
694 2013-11-29 Pedro Alves <palves@redhat.com>
695
696 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
697
698 2013-11-29 Pedro Alves <palves@redhat.com>
699
700 * breakpoint.c (build_target_condition_list): Release previous
701 conditions.
702 (build_target_command_list): Release previous commands.
703 (bp_location_dtor): Release target conditions and commands.
704 * remote.c (remote_add_target_side_condition): Don't release
705 conditions.
706 (remote_add_target_side_commands): Don't release commands.
707
708 2013-11-29 Yao Qi <yao@codesourcery.com>
709 Pedro Alves <palves@redhat.com>
710
711 * dcache.c (dcache_read_line): Use current_target.beneath
712 instead of &current_target.
713 * target.c (memory_xfer_partial_1): Factor code out to ...
714 (raw_memory_xfer_partial): ... it. New function.
715 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
716 is TARGET_OBJECT_RAW_MEMORY.
717
718 2013-11-28 Doug Evans <xdje42@gmail.com>
719
720 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
721 breakpoint_object. All uses updated.
722 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
723 breakpoint_object. All uses updated.
724 * python.c (*): All uses of breakpoint_object updated.
725 * python.h (*): All uses of breakpoint_object updated.
726 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
727 * python/py-finishbreakpoint.c (*): Ditto.
728
729 2013-11-28 Doug Evans <xdje42@gmail.com>
730
731 * configure.ac: Add comments delineating libpython and libmcheck.
732 * configure: Regenerate.
733
734 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
735 Pedro Alves <palves@redhat.com>
736
737 * valprint.c (value_check_printable): If the value is entirely
738 unavailable, print a single "<unavailable>" instead of printing
739 all subfields.
740
741 2013-11-28 Pedro Alves <palves@redhat.com>
742
743 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
744 Add "set debug frame" output.
745 (frame_stop_reason_symbol_string): New function.
746
747 2013-11-28 Pedro Alves <palves@redhat.com>
748
749 * frame-unwind.c (default_frame_unwind_stop_reason): Return
750 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
751 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
752
753 2013-11-28 Pedro Alves <palves@redhat.com>
754
755 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
756 set the unwind stop reason to UNWIND_OUTERMOST, not
757 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
758
759 2013-11-28 Pedro Alves <palves@redhat.com>
760
761 * frame.c (frame_unwind_register): Say the register was "not
762 saved" instead of "optimized out".
763
764 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
765
766 PR 16152
767 * configure: Rebuild.
768 * configure.ac: Tighten cygwin detection check.
769
770 2013-11-27 Pedro Alves <palves@redhat.com>
771
772 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
773 register in the previous frame's arch.
774
775 2013-11-27 Pedro Alves <palves@redhat.com>
776
777 * frame-unwind.c (frame_unwind_got_optimized): Return
778 an lval_register value instead of a not_lval value.
779
780 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
781
782 * frame.c: Include "valprint.h".
783 (frame_unwind_register_value): Use value_optimized_out.
784 * value.c (value_fetch_lazy): Likewise.
785
786 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
787
788 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
789
790 2013-11-26 Tom Tromey <tromey@redhat.com>
791
792 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
793 2013-11-22.
794
795 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
796
797 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
798 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
799 (HAS_MPX): New macro.
800 (HAS_AVX): New macro.
801 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
802
803 2013-11-25 Keith Seitz <keiths@redhat.com>
804
805 PR c++/14819
806 * c-exp.y (classify_inner_name): If no matching symbol was
807 found, try looking up the token as a base class.
808 Likewise if a constructor was found.
809 * cp-namespace.c (find_type_baseclass_by_name): New function.
810 * cp-support.h (find_type_baseclass_by_name): Declare.
811 * valops.c (value_struct_elt_for_reference): If we get
812 a non-static field, try to get a value based on the
813 current instance, if any.
814
815 2013-11-24 Yao Qi <yao@codesourcery.com>
816
817 * disasm.c (dis_asm_read_memory): Call target_read_code
818 instead of target_read_memory.
819
820 2013-11-24 Yao Qi <yao@codesourcery.com>
821
822 * NEWS: Add note on new "set code-cache" option.
823 * target-dcache.c (code_cache_enabled_1): New variable.
824 (code_cache_enabled): New variable.
825 (show_code_cache, set_code_cache): New function.
826 (code_cache_enabled_p): New function.
827 (_initialize_target_dcache): Register command.
828 * target-dcache.h (code_cache_enabled_p): Declare.
829 * target.c (memory_xfer_partial_1):Handle
830 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
831 (target_read_code): New function.
832 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
833 New.
834 (target_read_code): Declare.
835
836 2013-11-24 Yao Qi <yao@codesourcery.com>
837
838 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
839 (stack_cache_enabled_1): ... this. New variable.
840 (stack_cache_enabled_p): Rename to ...
841 (stack_cache_enabled): ... this. New variable.
842 (set_stack_cache_enabled_p): Rename to ...
843 (set_stack_cache): ... this. Update caller.
844 (show_stack_cache_enabled_p): Rename to ...
845 (show_stack_cache): ... this. Update caller.
846 (stack_cache_enabled): Rename to ...
847 (stack_cache_enabled_p): ... this. Update caller.
848 (_initialize_target_dcache): Replace "data cache" with
849 "target memory cache".
850 * target-dcache.h (stack_cache_enabled): Remove declaration.
851 (stack_cache_enabled_p): Add declaration.
852
853 2013-11-23 Doug Evans <xdje42@gmail.com>
854
855 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
856 superfluous.
857
858 2013-11-23 Doug Evans <xdje42@gmail.com>
859
860 * python/py-frame.c (frapy_block): Fix error message text.
861
862 2013-11-23 Doug Evans <xdje42@gmail.com>
863
864 * cli/cli-script.c (multi_line_command_p): New function.
865 (recurse_read_control_structure, read_command_lines_1): Call it.
866 (execute_control_command): Consistently have a blank line between
867 each case.
868
869 2013-11-22 Sterling Augustine <saugustine@google.com>
870
871 PR gdb/16196:
872 * valprint.c (read_string): Set new variable fetchlen based on
873 fetchlimit and size. Use it in call to partial_memory_read.
874 Update comment.
875
876 2013-11-22 Tom Tromey <tromey@redhat.com>
877
878 PR backtrace/16155:
879 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
880 the return address column is unspecified.
881
882 2013-11-22 Tom Tromey <tromey@redhat.com>
883 Pedro Alves <palves@redhat.com>
884
885 PR backtrace/16155
886 * value.c (value_fetch_lazy): Internal error if
887 get_frame_register_value returns the same register.
888
889 2013-11-22 Pedro Alves <palves@redhat.com>
890 Tom Tromey <tromey@redhat.com>
891
892 * frame.c (frame_stash_add): Now returns whether a frame with the
893 same ID was already known.
894 (compute_frame_id): New function, factored out from get_frame_id.
895 (get_frame_id): No longer lazilly compute the frame id here.
896 (get_prev_frame_if_no_cycle): New function. Detects wider stack
897 cycles.
898 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
899 and checking for stack cycles here.
900
901 2013-11-22 Pedro Alves <palves@redhat.com>
902
903 PR 16155
904 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
905 this frame and the new previous frame, not between this frame and
906 the next frame.
907
908 2013-11-22 Pedro Alves <palves@redhat.com>
909
910 PR 16155
911 * dwarf2-frame.c (struct dwarf2_frame_cache)
912 <checked_tailcall_bottom, entry_cfa_sp_offset,
913 entry_cfa_sp_offset_p>: New fields.
914 (dwarf2_frame_cache): Adjust to use the new cache fields instead
915 of locals. Don't call dwarf2_tailcall_sniffer_first here.
916 (dwarf2_frame_prev_register): Call it here, but only once.
917
918 2013-11-21 Doug Evans <xdje42@gmail.com>
919
920 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
921 (type_equality_entry): Move here from python/py-type.c.
922 (type_equality_entry_d): Ditto.
923 (compare_maybe_null_strings, check_types_equal): Ditto.
924 (check_types_worklist, types_deeply_equal): Ditto.
925 * gdbtypes.h (types_deeply_equal): Declare.
926 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
927 (typy_richcompare): Update.
928
929 2013-11-20 Joel Brobecker <brobecker@adacore.com>
930
931 * python/py-value.c (is_intlike): Delete.
932 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
933 by use of is_integral_type.
934 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
935 by use of is_integral_type and check for TYPE_CODE_PTR.
936
937 2013-11-20 Tom Tromey <tromey@redhat.com>
938
939 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
940 strerror module.
941 * gnulib/aclocal.m4: Update.
942 * gnulib/config.in: Update.
943 * gnulib/configure: Update.
944 * gnulib/import/Makefile.am: Update.
945 * gnulib/import/Makefile.in: Update.
946 * gnulib/import/errno.in.h: Remove.
947 * gnulib/import/intprops.h: Remove.
948 * gnulib/import/m4/errno_h.m4: Remove.
949 * gnulib/import/m4/gnulib-cache.m4: Update.
950 * gnulib/import/m4/gnulib-comp.m4: Update.
951 * gnulib/import/m4/strerror.m4: Remove.
952 * gnulib/import/m4/sys_socket_h.m4: Remove.
953 * gnulib/import/strerror-override.c: Remove.
954 * gnulib/import/strerror-override.h: Remove.
955 * gnulib/import/strerror.c: Remove.
956 * gnulib/update-gnulib.sh: Update.
957
958 2013-11-20 Yao Qi <yao@codesourcery.com>
959
960 * target-dcache.c (target_dcache_get_or_init): Call
961 set_address_space_data if 'dcache' is NULL.
962
963 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
964
965 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
966
967 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
968
969 * python/lib/gdb/command/bound_register.py: New file.
970 * data-directory/Makefile.in: Copy bond_register.py to the right path
971 to be initialized at gdb startup.
972
973 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
974
975 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
976 Add MPX registers.
977 (amd64_linux_read_description): Add initialization for MPX and
978 AVX independently.
979 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
980 (amd64_linux_gregset_reg_offset): Add MPX registers.
981 (amd64_linux_core_read_description): Add initialization for MPX
982 registers.
983 (_initialize_amd64_linux_tdep): Initialize MPX targets.
984 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
985 register on the list.
986 (tdesc_amd64_mpx_linux) Add new target for MPX.
987 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
988 (amd64_mpx_names): MPX register names.
989 (amd64_init_abi): Add MPX register while initializing the ABI.
990 (_initialize_amd64_tdep): Initialize MPX targets.
991 * amd64-tdep.h (amd64_regnum): Add MPX registers.
992 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
993
994 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
995
996 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
997 registers on the range of registers to be read from
998 xsave buffer.
999 (i386_linux_read_description): Add case for MPX.
1000 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
1001 (i386_linux_gregset_reg_offset): Add MPX registers.
1002 (i386_linux_core_read_description): Initialize also MPX.
1003 (_initialize_i386_linux_tdep): Add mpx initialization.
1004 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
1005 mpx_register_names.
1006 (i386_regnum): Add MPX registers.
1007 (I386_MPX_NUM_REGS): New macro.
1008 (i386_bnd_regnum_p): New function.
1009 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
1010 number of registers to be the number of BNDSTATUS.
1011 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
1012 * i386-tdep.c: Include features/i386/i386-mpx.c.
1013 (i386_mpx_names): Add MPX register names array.
1014 (i386_bnd_names): Add bnd pseudo register names array.
1015 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1016 registers.
1017 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1018 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1019 registers.
1020 (i386_bnd_type): New function.
1021 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1022 register types.
1023 (i386_pseudo_register_read_into_value): Add bnd case.
1024 (i386_pseudo_register_write): Add bnd pseudo registers.
1025 (i386_register_reggroup_p): Add MPX register to the group all.
1026 (i386_validate_tdesc_p): Add MPX to the target description
1027 validation.
1028 (i386_pseudo_register_name): Add bnd pseudo registers.
1029 (i386_gdbarch_init): Add MPX for architecture initialization.
1030 (_initia_initialize_i386_tdep): Add mpx initialization.
1031 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1032 XSAVE buffer.
1033 (XSAVE_MPX_ADDR): New macro.
1034 (i387_supply_xsave): Add MPX case.
1035 (i387_collect_xsave): Add MPX case.
1036 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1037 (I387_BNDCFGU_REGNUM): New macro.
1038 (I387_NUM_MPX_REGS): New macro.
1039 (I387_NUM_BND_REGS): New macro.
1040 (I387_NUM_MPX_CTRL_REGS): New macro.
1041 (I387_MPXEND_REGNUM): New macro.
1042 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1043 (I386_XSTATE_BNDCFG): Likewise.
1044 (I386_XSTATE_MPX_MASK): Likewise.
1045 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1046 (I386_XSTATE_BNDREGS_SIZE): New macro.
1047 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1048 (I386_XSTATE_SIZE): Adapt for MPX.
1049 (I386_XSTATE_MAX_SIZE): Likewise.
1050
1051 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1052
1053 * features/i386/Makefile: Adapts for using MPX registers.
1054 * features/i386/32bit-mpx.xml: New file.
1055 * features/i386/64bit-mpx.xml: Likewise.
1056 * features/i386/amd64-mpx-linux.c: Likewise.
1057 * features/i386/amd64-mpx-linux.xml: Likewise.
1058 * features/i386/amd64-mpx.c: Likewise.
1059 * features/i386/amd64-mpx.xml: Likewise.
1060 * features/i386/i386-mpx-linux.c: Likewise.
1061 * features/i386/i386-mpx-linux.xml: Likewise.
1062 * features/i386/i386-mpx.c: Likewise.
1063 * features/i386/i386-mpx.xml: Likewise.
1064 * regformats/i386/amd64-mpx-linux.dat: New file.
1065 * regformats/i386/amd64-mpx.dat: Likewise.
1066 * regformats/i386/i386-mpx-linux.dat: Likewise.
1067 * regformats/i386/i386-mpx.dat: Likewise.
1068
1069 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1070
1071 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1072 Modified logic of creating a bitfield to be in sync with
1073 tdesc_gdb_type.
1074
1075 2013-11-20 Will Newton <will.newton@linaro.org>
1076
1077 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1078 error message.
1079
1080 2013-11-20 Yao Qi <yao@codesourcery.com>
1081
1082 * progspace.h (struct address_space_data): Declare.
1083 * target-dcache.c: Include "progspace.h".
1084 (target_dache): Remove.
1085 (target_dcache_aspace_key): New.
1086 (target_dcache_cleanup): New function.
1087 (target_dcache_init_p): Get data through
1088 target_dcache_aspace_key.
1089 (target_dcache_invalidate): Likewise.
1090 (target_dcache_get): Likewise.
1091 (target_dcache_get_or_init): Likewise.
1092 (_initialize_target_dcache): Initialize
1093 target_dcache_aspace_key.
1094
1095 2013-11-20 Yao Qi <yao@codesourcery.com>
1096
1097 * progspace.c (struct address_space): Update comments.
1098 <REGISTRY_FIELDS>: New fields.
1099 DEFINE_REGISTRY for address_space.
1100 (new_address_space): Call address_space_alloc_data.
1101 (free_address_space): Call address_space_free_data.
1102 * progspace.h: Use DECLARE_REGISTRY.
1103
1104 2013-11-20 Yao Qi <yao@codesourcery.com>
1105
1106 * Makefile.in (SFILES):Add target-dcache.c.
1107 (HFILES_NO_SRCDIR): Add target-dcache.h.
1108 (COMMON_OBS): Add target-dcache.o.
1109 * dcache.c: Remove inclusion to "target.h". Include
1110 "target-dcache.h".
1111 * memattr.c: Include "target-dcache.h".
1112 * top.c: Likewise.
1113 * tracepoint.c: Likewise.
1114 * target.c: (stack_cache_enabled_p_1): Move to
1115 target-dcache.c.
1116 (stack_cache_enabled_p): Likewise.
1117 (set_stack_cache_enabled_p): Likewise.
1118 (show_stack_cache_enabled_p): Likewise.
1119 (target_dcache, target_dcache_init_p): Likewise.
1120 (target_dcache_invalidate): Likewise.
1121 (target_dcache_get, target_dcache_get_or_init): Likewise.
1122 (memory_xfer_partial_1): Call function stack_cache_enabled.
1123 (initialize_target): Move code to target-dcache.c.
1124 * target.h (target_dcache_invalidate): Move to
1125 target-dcache.h.
1126 (target_dcache_get): Likewise.
1127 * target-dcache.c: New.
1128 * target-dcache.h: New.
1129
1130 2013-11-20 Yao Qi <yao@codesourcery.com>
1131
1132 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1133 it is initialized.
1134
1135 2013-11-20 Yao Qi <yao@codesourcery.com>
1136
1137 * dcache.c (last_cache): Remove.
1138 (dcache_free, dcache_init): Update.
1139 (dcache_update):
1140 (dcache_print_line): Add parameter 'dcache'. Replace
1141 'target_dcache' with 'dcache'.
1142 (dcache_info): Move code to dcache_info_1. Call
1143 'dcache_info_1'.
1144 (dcache_info_1): New function.
1145 (set_dcache_size): Call target_dcache_invalidate.
1146 (set_dcache_line_size): Call target_dcache_invalidate.
1147 * target.c (target_dcache_init_p): New function.
1148 (target_dcache_invalidate): Check target_dcache_init_p first.
1149 (target_dcache_get, target_dcache_get_or_init): New function.
1150 (memory_xfer_partial_1): Adjust.
1151 (initialize_target): Don't initialize 'target_dcache'.
1152 * target.h (struct dcache_struct): Declare.
1153 (target_dcache_get): Declare.
1154
1155 2013-11-19 Yao Qi <yao@codesourcery.com>
1156
1157 * varobj.c (varobj_get_type): Fix typo.
1158
1159 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1160
1161 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1162
1163 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1164
1165 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1166 "stat.h".
1167
1168 2013-11-18 Tom Tromey <tromey@redhat.com>
1169
1170 * common/gdb_stat.h: Remove.
1171 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1172 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1173 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1174 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1175 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1176 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1177 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1178 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1179 * exec.c: Use sys/stat.h, not gdb_stat.h.
1180 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1181 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1182 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1183 * jit.c: Use sys/stat.h, not gdb_stat.h.
1184 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1185 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1186 * main.c: Use sys/stat.h, not gdb_stat.h.
1187 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1188 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1189 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1190 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1191 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1192 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1193 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1194 * remote.c: Use sys/stat.h, not gdb_stat.h.
1195 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1196 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1197 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1198 * source.c: Use sys/stat.h, not gdb_stat.h.
1199 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1200 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1201 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1202 * top.c: Use sys/stat.h, not gdb_stat.h.
1203 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1204
1205 2013-11-18 Tom Tromey <tromey@redhat.com>
1206
1207 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1208 sys_stat.
1209 * gnulib/aclocal.m4: Update.
1210 * gnulib/config.in: Update.
1211 * gnulib/configure: Update.
1212 * gnulib/import/Makefile.am: Update.
1213 * gnulib/import/Makefile.in: Update.
1214 * gnulib/import/m4/gnulib-cache.m4: Update.
1215 * gnulib/import/m4/gnulib-comp.m4: Update.
1216 * gnulib/import/m4/sys_stat_h.m4: New.
1217 * gnulib/import/m4/time_h.m4: New.
1218 * gnulib/import/sys_stat.in.h: New.
1219 * gnulib/import/time.in.h: New.
1220
1221 2013-11-18 Tom Tromey <tromey@redhat.com>
1222
1223 * configure: Rebuild.
1224 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1225
1226 2013-11-18 Tom Tromey <tromey@redhat.com>
1227
1228 * configure: Rebuild.
1229 * configure.ac: Don't check for unistd.h.
1230
1231 2013-11-18 Tom Tromey <tromey@redhat.com>
1232
1233 * configure: Rebuild.
1234 * configure.ac: Don't check for stdlib.h
1235 * defs.h: Include stdlib.h unconditionally.
1236
1237 2013-11-18 Tom Tromey <tromey@redhat.com>
1238
1239 * config.in: Rebuild.
1240 * configure: Rebuild.
1241 * configure.ac: Don't check for stddef.h.
1242 * defs.h: Unconditionally include stddef.h. Remove duplicate
1243 inclusion.
1244
1245 2013-11-18 Tom Tromey <tromey@redhat.com>
1246
1247 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1248 * common/gdb_dirent.h: Remove.
1249 * common/filestuff.c: Use dirent.h.
1250 * common/linux-osdata.c: Use dirent.h.
1251 (NAMELEN): Define.
1252 * config.in: Rebuild.
1253 * configure: Rebuild.
1254 * configure.ac: Don't use AC_HEADER_DIRENT.
1255 * linux-fork.c: Use dirent.h
1256 * linux-nat.c: Use dirent.h.
1257 * nto-procfs.c: Use dirent.h.
1258 * procfs.c: Use dirent.h.
1259
1260 2013-11-18 Tom Tromey <tromey@redhat.com>
1261
1262 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1263 * gnulib/aclocal.m4: Update.
1264 * gnulib/config.in: Update.
1265 * gnulib/configure: Update.
1266 * gnulib/import/Makefile.am: Update.
1267 * gnulib/import/Makefile.in: Update.
1268 * gnulib/import/dirent.in.h: New.
1269 * gnulib/import/m4/dirent_h.m4: New.
1270 * gnulib/import/m4/gnulib-cache.m4: Update.
1271 * gnulib/import/m4/gnulib-comp.m4: Update.
1272
1273 2013-11-18 Tom Tromey <tromey@redhat.com>
1274
1275 * configure: Rebuild.
1276 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1277 strings.h.
1278
1279 2013-11-18 Tom Tromey <tromey@redhat.com>
1280
1281 * common/gdb_string.h: Remove.
1282 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1283 * ada-exp.y: Use string.h, not gdb_string.h.
1284 * ada-lang.c: Use string.h, not gdb_string.h.
1285 * ada-lex.l: Use string.h, not gdb_string.h.
1286 * ada-typeprint.c: Use string.h, not gdb_string.h.
1287 * ada-valprint.c: Use string.h, not gdb_string.h.
1288 * aix-thread.c: Use string.h, not gdb_string.h.
1289 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1290 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1291 * alpha-nat.c: Use string.h, not gdb_string.h.
1292 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1293 * alpha-tdep.c: Use string.h, not gdb_string.h.
1294 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1295 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1296 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1297 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1298 * amd64-nat.c: Use string.h, not gdb_string.h.
1299 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1300 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1301 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1302 * arch-utils.c: Use string.h, not gdb_string.h.
1303 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1304 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1305 * arm-tdep.c: Use string.h, not gdb_string.h.
1306 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1307 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1308 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1309 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1310 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1311 * avr-tdep.c: Use string.h, not gdb_string.h.
1312 * ax-gdb.c: Use string.h, not gdb_string.h.
1313 * ax-general.c: Use string.h, not gdb_string.h.
1314 * bcache.c: Use string.h, not gdb_string.h.
1315 * bfin-tdep.c: Use string.h, not gdb_string.h.
1316 * breakpoint.c: Use string.h, not gdb_string.h.
1317 * build-id.c: Use string.h, not gdb_string.h.
1318 * buildsym.c: Use string.h, not gdb_string.h.
1319 * c-exp.y: Use string.h, not gdb_string.h.
1320 * c-lang.c: Use string.h, not gdb_string.h.
1321 * c-typeprint.c: Use string.h, not gdb_string.h.
1322 * c-valprint.c: Use string.h, not gdb_string.h.
1323 * charset.c: Use string.h, not gdb_string.h.
1324 * cli-out.c: Use string.h, not gdb_string.h.
1325 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1326 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1327 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1328 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1329 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1330 * cli/cli-script.c: Use string.h, not gdb_string.h.
1331 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1332 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1333 * coffread.c: Use string.h, not gdb_string.h.
1334 * common/common-utils.c: Use string.h, not gdb_string.h.
1335 * common/filestuff.c: Use string.h, not gdb_string.h.
1336 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1337 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1338 * common/signals.c: Use string.h, not gdb_string.h.
1339 * common/vec.h: Use string.h, not gdb_string.h.
1340 * core-regset.c: Use string.h, not gdb_string.h.
1341 * corefile.c: Use string.h, not gdb_string.h.
1342 * corelow.c: Use string.h, not gdb_string.h.
1343 * cp-abi.c: Use string.h, not gdb_string.h.
1344 * cp-support.c: Use string.h, not gdb_string.h.
1345 * cp-valprint.c: Use string.h, not gdb_string.h.
1346 * cris-tdep.c: Use string.h, not gdb_string.h.
1347 * d-lang.c: Use string.h, not gdb_string.h.
1348 * dbxread.c: Use string.h, not gdb_string.h.
1349 * dcache.c: Use string.h, not gdb_string.h.
1350 * demangle.c: Use string.h, not gdb_string.h.
1351 * dicos-tdep.c: Use string.h, not gdb_string.h.
1352 * disasm.c: Use string.h, not gdb_string.h.
1353 * doublest.c: Use string.h, not gdb_string.h.
1354 * dsrec.c: Use string.h, not gdb_string.h.
1355 * dummy-frame.c: Use string.h, not gdb_string.h.
1356 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1357 * dwarf2loc.c: Use string.h, not gdb_string.h.
1358 * dwarf2read.c: Use string.h, not gdb_string.h.
1359 * elfread.c: Use string.h, not gdb_string.h.
1360 * environ.c: Use string.h, not gdb_string.h.
1361 * eval.c: Use string.h, not gdb_string.h.
1362 * event-loop.c: Use string.h, not gdb_string.h.
1363 * exceptions.c: Use string.h, not gdb_string.h.
1364 * exec.c: Use string.h, not gdb_string.h.
1365 * expprint.c: Use string.h, not gdb_string.h.
1366 * f-exp.y: Use string.h, not gdb_string.h.
1367 * f-lang.c: Use string.h, not gdb_string.h.
1368 * f-typeprint.c: Use string.h, not gdb_string.h.
1369 * f-valprint.c: Use string.h, not gdb_string.h.
1370 * fbsd-nat.c: Use string.h, not gdb_string.h.
1371 * findcmd.c: Use string.h, not gdb_string.h.
1372 * findvar.c: Use string.h, not gdb_string.h.
1373 * fork-child.c: Use string.h, not gdb_string.h.
1374 * frame.c: Use string.h, not gdb_string.h.
1375 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1376 * frv-tdep.c: Use string.h, not gdb_string.h.
1377 * gdb.c: Use string.h, not gdb_string.h.
1378 * gdb_bfd.c: Use string.h, not gdb_string.h.
1379 * gdbarch.c: Use string.h, not gdb_string.h.
1380 * gdbtypes.c: Use string.h, not gdb_string.h.
1381 * gnu-nat.c: Use string.h, not gdb_string.h.
1382 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1383 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1384 * go-exp.y: Use string.h, not gdb_string.h.
1385 * go-lang.c: Use string.h, not gdb_string.h.
1386 * go32-nat.c: Use string.h, not gdb_string.h.
1387 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1388 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1389 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1390 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1391 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1392 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1393 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1394 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1395 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1396 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1397 * i386-tdep.c: Use string.h, not gdb_string.h.
1398 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1399 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1400 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1401 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1402 * i387-tdep.c: Use string.h, not gdb_string.h.
1403 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1404 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1405 * inf-child.c: Use string.h, not gdb_string.h.
1406 * inf-ptrace.c: Use string.h, not gdb_string.h.
1407 * inf-ttrace.c: Use string.h, not gdb_string.h.
1408 * infcall.c: Use string.h, not gdb_string.h.
1409 * infcmd.c: Use string.h, not gdb_string.h.
1410 * inflow.c: Use string.h, not gdb_string.h.
1411 * infrun.c: Use string.h, not gdb_string.h.
1412 * interps.c: Use string.h, not gdb_string.h.
1413 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1414 * irix5-nat.c: Use string.h, not gdb_string.h.
1415 * jv-exp.y: Use string.h, not gdb_string.h.
1416 * jv-lang.c: Use string.h, not gdb_string.h.
1417 * jv-typeprint.c: Use string.h, not gdb_string.h.
1418 * jv-valprint.c: Use string.h, not gdb_string.h.
1419 * language.c: Use string.h, not gdb_string.h.
1420 * linux-fork.c: Use string.h, not gdb_string.h.
1421 * linux-nat.c: Use string.h, not gdb_string.h.
1422 * lm32-tdep.c: Use string.h, not gdb_string.h.
1423 * m2-exp.y: Use string.h, not gdb_string.h.
1424 * m2-typeprint.c: Use string.h, not gdb_string.h.
1425 * m32c-tdep.c: Use string.h, not gdb_string.h.
1426 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1427 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1428 * m32r-rom.c: Use string.h, not gdb_string.h.
1429 * m32r-tdep.c: Use string.h, not gdb_string.h.
1430 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1431 * m68k-tdep.c: Use string.h, not gdb_string.h.
1432 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1433 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1434 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1435 * m88k-tdep.c: Use string.h, not gdb_string.h.
1436 * macrocmd.c: Use string.h, not gdb_string.h.
1437 * main.c: Use string.h, not gdb_string.h.
1438 * mdebugread.c: Use string.h, not gdb_string.h.
1439 * mem-break.c: Use string.h, not gdb_string.h.
1440 * memattr.c: Use string.h, not gdb_string.h.
1441 * memory-map.c: Use string.h, not gdb_string.h.
1442 * mep-tdep.c: Use string.h, not gdb_string.h.
1443 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1444 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1445 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1446 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1447 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1448 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1449 * mi/mi-console.c: Use string.h, not gdb_string.h.
1450 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1451 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1452 * mi/mi-main.c: Use string.h, not gdb_string.h.
1453 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1454 * microblaze-rom.c: Use string.h, not gdb_string.h.
1455 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1456 * mingw-hdep.c: Use string.h, not gdb_string.h.
1457 * minidebug.c: Use string.h, not gdb_string.h.
1458 * minsyms.c: Use string.h, not gdb_string.h.
1459 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1460 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1461 * mips-tdep.c: Use string.h, not gdb_string.h.
1462 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1463 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1464 * mipsread.c: Use string.h, not gdb_string.h.
1465 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1466 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1467 * monitor.c: Use string.h, not gdb_string.h.
1468 * moxie-tdep.c: Use string.h, not gdb_string.h.
1469 * mt-tdep.c: Use string.h, not gdb_string.h.
1470 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1471 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1472 * nto-procfs.c: Use string.h, not gdb_string.h.
1473 * nto-tdep.c: Use string.h, not gdb_string.h.
1474 * objc-lang.c: Use string.h, not gdb_string.h.
1475 * objfiles.c: Use string.h, not gdb_string.h.
1476 * opencl-lang.c: Use string.h, not gdb_string.h.
1477 * osabi.c: Use string.h, not gdb_string.h.
1478 * osdata.c: Use string.h, not gdb_string.h.
1479 * p-exp.y: Use string.h, not gdb_string.h.
1480 * p-lang.c: Use string.h, not gdb_string.h.
1481 * p-typeprint.c: Use string.h, not gdb_string.h.
1482 * parse.c: Use string.h, not gdb_string.h.
1483 * posix-hdep.c: Use string.h, not gdb_string.h.
1484 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1485 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1486 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1487 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1488 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1489 * printcmd.c: Use string.h, not gdb_string.h.
1490 * procfs.c: Use string.h, not gdb_string.h.
1491 * prologue-value.c: Use string.h, not gdb_string.h.
1492 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1493 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1494 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1495 * regcache.c: Use string.h, not gdb_string.h.
1496 * registry.c: Use string.h, not gdb_string.h.
1497 * remote-fileio.c: Use string.h, not gdb_string.h.
1498 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1499 * remote-mips.c: Use string.h, not gdb_string.h.
1500 * remote-sim.c: Use string.h, not gdb_string.h.
1501 * remote.c: Use string.h, not gdb_string.h.
1502 * reverse.c: Use string.h, not gdb_string.h.
1503 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1504 * ser-base.c: Use string.h, not gdb_string.h.
1505 * ser-go32.c: Use string.h, not gdb_string.h.
1506 * ser-mingw.c: Use string.h, not gdb_string.h.
1507 * ser-pipe.c: Use string.h, not gdb_string.h.
1508 * ser-tcp.c: Use string.h, not gdb_string.h.
1509 * ser-unix.c: Use string.h, not gdb_string.h.
1510 * serial.c: Use string.h, not gdb_string.h.
1511 * sh-tdep.c: Use string.h, not gdb_string.h.
1512 * sh64-tdep.c: Use string.h, not gdb_string.h.
1513 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1514 * skip.c: Use string.h, not gdb_string.h.
1515 * sol-thread.c: Use string.h, not gdb_string.h.
1516 * solib-dsbt.c: Use string.h, not gdb_string.h.
1517 * solib-frv.c: Use string.h, not gdb_string.h.
1518 * solib-osf.c: Use string.h, not gdb_string.h.
1519 * solib-spu.c: Use string.h, not gdb_string.h.
1520 * solib-target.c: Use string.h, not gdb_string.h.
1521 * solib.c: Use string.h, not gdb_string.h.
1522 * somread.c: Use string.h, not gdb_string.h.
1523 * source.c: Use string.h, not gdb_string.h.
1524 * sparc-nat.c: Use string.h, not gdb_string.h.
1525 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1526 * sparc-tdep.c: Use string.h, not gdb_string.h.
1527 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1528 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1529 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1530 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1531 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1532 * spu-multiarch.c: Use string.h, not gdb_string.h.
1533 * spu-tdep.c: Use string.h, not gdb_string.h.
1534 * stabsread.c: Use string.h, not gdb_string.h.
1535 * stack.c: Use string.h, not gdb_string.h.
1536 * std-regs.c: Use string.h, not gdb_string.h.
1537 * symfile.c: Use string.h, not gdb_string.h.
1538 * symmisc.c: Use string.h, not gdb_string.h.
1539 * symtab.c: Use string.h, not gdb_string.h.
1540 * target.c: Use string.h, not gdb_string.h.
1541 * thread.c: Use string.h, not gdb_string.h.
1542 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1543 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1544 * top.c: Use string.h, not gdb_string.h.
1545 * tracepoint.c: Use string.h, not gdb_string.h.
1546 * tui/tui-command.c: Use string.h, not gdb_string.h.
1547 * tui/tui-data.c: Use string.h, not gdb_string.h.
1548 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1549 * tui/tui-file.c: Use string.h, not gdb_string.h.
1550 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1551 * tui/tui-out.c: Use string.h, not gdb_string.h.
1552 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1553 * tui/tui-source.c: Use string.h, not gdb_string.h.
1554 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1555 * tui/tui-win.c: Use string.h, not gdb_string.h.
1556 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1557 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1558 * typeprint.c: Use string.h, not gdb_string.h.
1559 * ui-file.c: Use string.h, not gdb_string.h.
1560 * ui-out.c: Use string.h, not gdb_string.h.
1561 * user-regs.c: Use string.h, not gdb_string.h.
1562 * utils.c: Use string.h, not gdb_string.h.
1563 * v850-tdep.c: Use string.h, not gdb_string.h.
1564 * valarith.c: Use string.h, not gdb_string.h.
1565 * valops.c: Use string.h, not gdb_string.h.
1566 * valprint.c: Use string.h, not gdb_string.h.
1567 * value.c: Use string.h, not gdb_string.h.
1568 * varobj.c: Use string.h, not gdb_string.h.
1569 * vax-tdep.c: Use string.h, not gdb_string.h.
1570 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1571 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1572 * windows-nat.c: Use string.h, not gdb_string.h.
1573 * xcoffread.c: Use string.h, not gdb_string.h.
1574 * xml-support.c: Use string.h, not gdb_string.h.
1575 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1576 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1577
1578 2013-11-18 Tom Tromey <tromey@redhat.com>
1579
1580 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1581 and strstr.
1582 * gnulib/aclocal.m4: Update.
1583 * gnulib/config.in: Update.
1584 * gnulib/configure: Update.
1585 * gnulib/import/Makefile.am: Update.
1586 * gnulib/import/Makefile.in: Update.
1587 * gnulib/import/errno.in.h: New.
1588 * gnulib/import/intprops.h: New.
1589 * gnulib/import/m4/errno_h.m4: New.
1590 * gnulib/import/m4/gnulib-cache.m4: Update.
1591 * gnulib/import/m4/gnulib-comp.m4: Update.
1592 * gnulib/import/m4/strerror.m4: New.
1593 * gnulib/import/m4/strstr.m4: New.
1594 * gnulib/import/m4/sys_socket_h.m4: New.
1595 * gnulib/import/strerror-override.c: New.
1596 * gnulib/import/strerror-override.h: New.
1597 * gnulib/import/strerror.c: New.
1598 * gnulib/import/strstr.c: New.
1599
1600 2013-11-18 Tom Tromey <tromey@redhat.com>
1601
1602 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1603 multiple lines.
1604
1605 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1606
1607 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1608 * sparc-tdep.h: And its prototype.
1609
1610 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1611 function.
1612 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1613
1614 2013-11-18 Pedro Alves <palves@redhat.com>
1615
1616 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1617 use unpack_pointer.
1618
1619 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1620
1621 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1622 to -list-features output.
1623
1624 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1625
1626 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1627 <read_addr_from_reg>: Renames "read_reg".
1628 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1629 Adjust comment.
1630 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1631 Use read_addr_from_reg in place of read_reg.
1632 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1633 in place of read_reg.
1634 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1635 dwarf_expr_read_reg.
1636 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1637 with dwarf_expr_read_addr_from_reg.
1638 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1639 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1640 needs_frame_read_addr_from_reg.
1641
1642 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1643
1644 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1645
1646 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1647
1648 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1649 NULL.
1650
1651 2013-11-15 Tom Tromey <tromey@redhat.com>
1652
1653 PR c++/16117:
1654 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1655 (classify_name): Likewise. Prefer a field of "this" over a
1656 filename.
1657 (classify_inner_name, yylex): Update.
1658
1659 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1660
1661 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1662 Extend the documentation a bit.
1663 <get_reg_value>: New field.
1664 * dwarf2loc.c (dwarf_expr_get_reg_value)
1665 (needs_frame_get_reg_value): New functions.
1666 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1667 callback.
1668 * dwarf2-frame.c (get_reg_value): New function.
1669 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1670 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1671 Use new callback to compute result_val.
1672
1673 2013-11-15 Alan Modra <amodra@gmail.com>
1674
1675 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1676 (ppc64_desc_entry_point): ..this. Update comments here and at
1677 call points.
1678 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1679 ppc64_standard_linkage3): Update comments.
1680 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1681 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1682 patterns.
1683 (ppc64_standard_linkage4_target): New function.
1684 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1685 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1686 nop match. Fix comment wrap.
1687
1688 2013-11-14 Pedro Alves <palves@redhat.com>
1689
1690 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1691 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1692
1693 2013-11-14 Pedro Alves <palves@redhat.com>
1694
1695 * infrun.c (struct execution_control_state)
1696 <stepped_after_stopped_by_watchpoint>: New field.
1697 (get_inferior_stop_soon): New function.
1698 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1699 moved to struct execution_control_state -- adjust. Use
1700 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1701 new function.
1702 (handle_signal_stop): New function, factored out from
1703 handle_inferior_event.
1704
1705 2013-11-14 Pedro Alves <palves@redhat.com>
1706
1707 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1708 return a boolean.
1709 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1710 boolean.
1711 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1712 Adjust to return a boolean.
1713 * breakpoint.h (enum bpstat_signal_value): Delete.
1714 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1715 (bpstat_explains_signal): Likewise.
1716 * infrun.c (handle_inferior_event) <random signal checks>:
1717 bpstat_explains_signal now returns a boolean - adjust. No longer
1718 consider hiding signals.
1719
1720 2013-11-14 Pedro Alves <palves@redhat.com>
1721
1722 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1723 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1724 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1725 BPSTAT_SIGNAL_HIDE.
1726 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1727 instead of BPSTAT_SIGNAL_HIDE.
1728 * infrun.c (handle_inferior_event): Rework random signal checks.
1729
1730 2013-11-14 Pedro Alves <palves@redhat.com>
1731
1732 * infrun.c (struct execution_control_state): Remove
1733 'random_signal' field.
1734 (handle_syscall_event): Use bpstat_causes_stop instead of
1735 bpstat_explains_signal. Don't set ecs->random_signal.
1736 (handle_inferior_event): New 'random_signal' local.
1737 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1738 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1739 bpstat_explains_signal. Don't set ecs->random_signal.
1740 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1741 ecs->random_signal.
1742
1743 2013-11-14 Pedro Alves <palves@redhat.com>
1744
1745 * infrun.c (handle_inferior_event): Move comment from the
1746 function's body to the function's description, adjusted.
1747
1748 2013-11-14 Pedro Alves <palves@redhat.com>
1749
1750 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1751 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1752 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1753 case.
1754
1755 2013-11-14 Tom Tromey <tromey@redhat.com>
1756
1757 * python/py-linetable.c (ltpy_has_line)
1758 (ltpy_get_all_source_lines): Fix loop termination condition.
1759
1760 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1761
1762 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1763 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1764 PARSE->LANGUAGE during command execution, if set.
1765 * mi/mi-parse.c: Add "language.h" #include.
1766 (mi_parse): Add parsing of "--language" command option.
1767
1768 * NEWS: Add entry mentioning the new "--language" command option.
1769
1770 2013-11-14 Pedro Alves <palves@redhat.com>
1771 Joel Brobecker <brobecker@adacore.com>
1772
1773 * cli/cli-utils.h (extract_arg_const): Add declaration.
1774 * cli/cli-utils.c (extract_arg_const): New function.
1775 (extract_arg): Reimplement using extract_arg_const.
1776
1777 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1778
1779 * language.h: Add "symtab.h" #include.
1780
1781 2013-11-13 Doug Evans <xdje42@gmail.com>
1782
1783 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1784 specific breakpoints, don't evaluate breakpoint condition if
1785 different thread.
1786
1787 2013-11-13 Keith Seitz <keiths@redhat.com>
1788
1789 PR c++/7935
1790 PR c++/10541
1791 * cp-support.c (insepct_type): Add support for substituting
1792 namespace aliases, too.
1793 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1794 for DW_TAG_imported_declaration.
1795 (add_partial_symbol): Likewise.
1796 (process_die): Handle namespace aliases with
1797 read_namespace_alias.
1798 (die_needs_namespace): Add DW_TAG_imported_declaration.
1799 (read_namespace_alias): New function.
1800 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1801 (new_symbol_full): Handle DW_TAG_imported_declaration.
1802
1803 2013-11-13 Keith Seitz <keiths@redhat.com>
1804
1805 * p-exp.y (uptok): Make first parameter const.
1806 (yylex): Make `tokstart' and `tokptr' const.
1807 Don't copy the lexer input to a temporary buffer.
1808 Make `p' const.
1809 Remove const workaround for parse_escape.
1810 Create a temporary buffer for a convenience variable instead
1811 of doing in-place modification of the input.
1812 If a match is found with a different case from the input,
1813 do not change the input at all.
1814 Use `tmp' to construct the resultant stoken instead of
1815 `tokstart'.
1816
1817 2013-11-13 Doug Evans <xdje42@gmail.com>
1818
1819 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1820
1821 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1822
1823 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1824 entry with "ada-exceptions".
1825
1826 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1827
1828 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1829 after re-initialization of OBJFILE's obstack.
1830
1831 2013-11-12 Doug Evans <xdje42@gmail.com>
1832
1833 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1834 bs->stop != 0 on entry. Update function comment. Simplify early
1835 exit for frame mismatch. Reindent rest of function.
1836
1837 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1838
1839 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1840 NULL.
1841
1842 2013-11-12 Doug Evans <dje@google.com>
1843
1844 Work around gold/15646.
1845 * dwarf2read.c (read_index_from_section): Update comment.
1846 (struct dw2_symtab_iterator): New member global_seen.
1847 (dw2_symtab_iter_init): Initialize it.
1848 (dw2_symtab_iter_next): Skip duplicate global symbols.
1849 (dw2_expand_symtabs_matching): Ditto.
1850
1851 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1852
1853 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1854 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1855 command.
1856 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1857 (mi_cmd_info_ada_exceptions): New function.
1858 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1859
1860 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1861
1862 * ada-lang.h: #include "vec.h".
1863 (struct ada_exc_info): New.
1864 (ada_exc_info): New typedef.
1865 (DEF_VEC_O(ada_exc_info)): New vector.
1866 (ada_exceptions_list): Add declaration.
1867 * ada-lang.c (ada_is_exception_sym)
1868 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1869 (sort_remove_dups_ada_exceptions_list)
1870 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1871 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1872 (ada_exceptions_list_1, ada_exceptions_list)
1873 (info_exceptions_command): New function.
1874 (_initialize_ada_language): Add "info exception" command.
1875
1876 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1877
1878 PR python/15629
1879 * NEWS: Add linetable feature.
1880 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1881 * python/py-linetable.c: New file.
1882 * python/py-symtab.c (stpy_get_linetable): New function.
1883 * python/python-internal.h (symtab_to_linetable_object): Declare.
1884 (gdbpy_initialize_linetable): Ditto.
1885 * python/python.c (_initialize_python): Call
1886 gdbpy_initialize_linetable.
1887
1888 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1889
1890 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1891 the documentation of fields "except_string" and "condition".
1892 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1893 CONDITION on the heap before passing it to
1894 create_ada_exception_catchpoint.
1895 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1896 CONDITION.
1897
1898 2013-11-11 Tom Tromey <tromey@redhat.com>
1899
1900 * config.in, configure: Rebuild.
1901 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1902
1903 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1904
1905 * remote-sim.c (gdbsim_detach): Break declaration into
1906 shorter lines. No code change.
1907
1908 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1909
1910 * remote-sim.c (gdbsim_detach): Fix prototype.
1911
1912 2013-11-08 Doug Evans <dje@google.com>
1913
1914 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1915 (create_debug_types_hash_table): Only print debugging messages for
1916 each TU if dwarf2-read >= 2.
1917 (process_queue): Ditto.
1918 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1919 Update doc string.
1920
1921 2013-11-08 Tom Tromey <tromey@redhat.com>
1922
1923 * configure: Rebuild.
1924 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1925
1926 2013-11-08 Tom Tromey <tromey@redhat.com>
1927
1928 * configure, config.in: Rebuild.
1929 * configure.ac: Remove unused configury.
1930
1931 2013-11-08 Tom Tromey <tromey@redhat.com>
1932
1933 * m32c-tdep.c: Use gdb_string.h.
1934
1935 2013-11-08 Tom Tromey <tromey@redhat.com>
1936
1937 * configure, config.in: Rebuild.
1938 * configure.ac: Remove all link.h-related checks.
1939
1940 2013-11-08 Tom Tromey <tromey@redhat.com>
1941
1942 * acinclude.m4: Include common.m4.
1943 * common/common.m4: New file.
1944 * configure, config.in: Rebuild.
1945 * configure.ac: Use GDB_AC_COMMON.
1946
1947 2013-11-08 Doug Evans <dje@google.com>
1948
1949 * NEWS: Mention that "set debug symtab-create" now accepts a
1950 verbosity level.
1951 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1952 to set the symtab's primary flag.
1953 * jit.c (finalize_symtab): Ditto.
1954 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1955 * symfile.c (allocate_symtab): Only print debugging messages for
1956 symtab_create_debug levels 2 and higher.
1957 * symtab.c (symtab_create_debug): Change type to unsigned int.
1958 (set_symtab_primary): New function.
1959 (_initialize_symtab): Change "set debug symtab-create" to a
1960 zuinteger option.
1961 * symtab.h (set_symtab_primary): Declare.
1962 (symtab_create_debug): Update decl.
1963
1964 2013-11-08 Tom Tromey <tromey@redhat.com>
1965
1966 * aix-thread.c (aix_thread_detach): Update.
1967 * corelow.c (core_detach): Update.
1968 * darwin-nat.c (darwin_detach): Update.
1969 * dec-thread.c (dec_thread_detach): Update.
1970 * gnu-nat.c (gnu_detach): Update.
1971 * go32-nat.c (go32_detach): Update.
1972 * inf-ptrace.c (inf_ptrace_detach): Update.
1973 * inf-ttrace.c (inf_ttrace_detach): Update.
1974 * linux-fork.c (linux_fork_detach): Update.
1975 * linux-fork.h (linux_fork_detach): Update.
1976 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1977 local for const-correctness.
1978 * linux-thread-db.c (thread_db_detach): Update.
1979 * monitor.c (monitor_detach): Update.
1980 * nto-procfs.c (procfs_detach): Update.
1981 * procfs.c (procfs_detach): Update.
1982 * record.c (record_detach): Update.
1983 * record.h (record_detach): Update.
1984 * remote-m32r-sdi.c (m32r_detach): Update.
1985 * remote-mips.c (mips_detach): Update.
1986 * remote-sim.c (gdbsim_detach): Update.
1987 * remote.c (remote_detach_1, remote_detach)
1988 (extended_remote_detach): Update.
1989 * sol-thread.c (sol_thread_detach): Update.
1990 * target.c (target_detach): Make "args" const.
1991 (init_dummy_target): Update.
1992 * target.h (struct target_ops) <to_detach>: Make argument const.
1993 (target_detach): Likewise.
1994 * windows-nat.c (windows_detach): Update.
1995
1996 2013-11-07 Doug Evans <dje@google.com>
1997
1998 PR 11786
1999 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
2000 and align fields for PT_GNU_RELRO segments.
2001
2002 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2003
2004 PR python/15747
2005 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
2006
2007 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2008
2009 * NEWS: Document Python temporary breakpoint support.
2010 * python/py-breakpoint.c (bppy_get_temporary): New function.
2011 (bppy_init): New keyword: temporary. Parse it and set breakpoint
2012 to temporary if True.
2013
2014 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2015
2016 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2017 removed to allow analyzing unconditional branch instructions
2018 with PC-relative offsets of zero.
2019
2020 2013-11-07 Yao Qi <yao@codesourcery.com>
2021
2022 * mi/mi-cmd-var.c: Include "language.h".
2023 (mi_cmd_var_info_expression): Get language name from
2024 language_defn.
2025 * varobj.c (varobj_language_string): Remove.
2026 (variable_language): Remove declaration.
2027 (languages): Remove.
2028 (varobj_get_language): Change the type of return value.
2029 (variable_language): Remove.
2030 * varobj.h (enum varobj_languages): Remove.
2031 (varobj_language_string): Remove declaration.
2032 (varobj_get_language): Update declaration.
2033
2034 2013-11-07 Yao Qi <yao@codesourcery.com>
2035
2036 * language.h (struct language_defn) <la_natural_name>: New
2037 field.
2038 * ada-lang.c (ada_language_defn): Initialize field
2039 'la_natural_name'.
2040 * c-lang.c (c_language_defn): Likewise.
2041 (cplus_language_defn, asm_language_defn): Likewise.
2042 * d-lang.c (d_language_defn): Likewise.
2043 * f-lang.c (f_language_defn): Likewise.
2044 * go-lang.c (go_language_defn): Likewise.
2045 * jv-lang.c (java_language_defn): Likewise.
2046 * language.c (unknown_language_defn ): Likewise.
2047 (auto_language_defn): Likewise.
2048 * m2-lang.c (m2_language_defn): Likewise.
2049 * objc-lang.c (objc_language_defn): Likewise.
2050 * opencl-lang.c (opencl_language_defn): Likewise.
2051 * p-lang.c (pascal_language_defn): Likewise.
2052
2053 2013-11-07 Yao Qi <yao@codesourcery.com>
2054
2055 * language.c (language_str): Return const char *.
2056 (add_language): Add const to 'language_names'
2057 * language.h (struct language_defn) <la_name>: Add const.
2058 (language_str: Update declaration.
2059
2060 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2061
2062 * s390-linux-nat.c (s390_read_description): Consider the TE field
2063 in the HWCAP for determining 'have_regset_tdb'.
2064
2065 2013-11-06 Will Newton <will.newton@linaro.org>
2066
2067 PR gdb/12866
2068 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2069 values. (read_partial_die): Likewise.
2070
2071 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2072
2073 PR cli/16122
2074 * top.c (command_line_input): Unify interactivity tests to use
2075 input_from_terminal_p.
2076 * event-top.c (command_line_handler): Likewise.
2077
2078 2013-11-06 Yao Qi <yao@codesourcery.com>
2079
2080 * Makefile.in (check-perf): New target.
2081
2082 2013-11-05 Will Newton <will.newton@linaro.org>
2083
2084 PR gdb/7670
2085 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2086 (arm_print_float_info): Likewise.
2087
2088 2013-11-04 Anton Blanchard <anton@samba.org>
2089
2090 * target.c (memory_xfer_partial): Cap write to 4KB.
2091
2092 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2093
2094 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2095 probe scan even when the arch provides no get_longjmp_target.
2096
2097 2013-10-31 Pedro Alves <palves@redhat.com>
2098
2099 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2100 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2101 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2102 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2103 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2104 <bpstat handling>: If the bpstat chain wants the signal to be
2105 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2106 GDB_SIGNAL_TRAP.
2107
2108 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2109
2110 * breakpoint.c (update_watchpoint): Update error message and add
2111 an additional error message.
2112
2113 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2114
2115 * s390-tdep.h: Rename to...
2116 * s390-linux-tdep.h: ...here.
2117 * s390-tdep.c: Rename to...
2118 * s390-linux-tdep.c: ...here. Adjust #include.
2119 * s390-nat.c: Rename to...
2120 * s390-linux-nat.c: ...here. Adjust #include.
2121 * config/s390/s390.mh: Rename to...
2122 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2123 s390-linux-nat.o.
2124 * configure.host: Reflect host rename "s390" -> "linux".
2125 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2126 * Makefile.in (ALL_TARGET_OBS): Likewise.
2127 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2128 s390-linux-tdep.h.
2129 (ALLDEPFILES): Reflect rename of .c files.
2130
2131 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132
2133 * s390-nat.c: Whitespace cleanup.
2134 * s390-tdep.c: Likewise.
2135 * s390-tdep.h: Remove empty line at end of file.
2136
2137 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2138
2139 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2140 siginfo_size.
2141
2142 2013-10-29 Tom Tromey <tromey@redhat.com>
2143
2144 * utils.c (reg): Move undefinition...
2145 * gdb_curses.h: ... here. Update comment to mention AIX.
2146
2147 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2148
2149 * exec.h (add_target_sections_of_objfile): New declaration.
2150 * exec.c (add_target_sections_of_objfile): New function.
2151 * symfile.c (add_symbol_file_command): Update current target sections.
2152 (remove_symbol_file_command): New command.
2153 (symfile_free_objfile): New function.
2154 (_initialize_symfile): Register observer for free_objfile events.
2155 * NEWS: Add description of the remove-symbol-file command.
2156 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2157 * objfiles.c (free_objfile): Notify free_objfile.
2158 (is_addr_in_objfile): New function.
2159 * objfiles.h (is_addr_in_objfile): New declaration.
2160 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2161 events instead of solib_unloaded events.
2162 (_initialize_printcmd): Register observer for free_objfile instead
2163 of solib_unloaded notifications.
2164 * solib.c (remove_user_added_objfile): New function.
2165 (_initialize_symfile): Add remove-symbol-file.
2166
2167 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2168
2169 * infcmd.c (default_print_one_register_info): Use val_print to
2170 print all values even optimized out or unavailable ones. Don't
2171 try to print a raw form of optimized out or unavailable values.
2172
2173 2013-10-29 Yao Qi <yao@codesourcery.com>
2174
2175 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2176 parameter 'arg' instead of from program_space_data.
2177 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2178 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2179 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2180 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2181 * inflow.c (inflow_inferior_data_cleanup): Get data from
2182 parameter 'arg' instead of inferior_data.
2183 * registry.h: Add comments.
2184
2185 2013-10-28 Pedro Alves <palves@redhat.com>
2186
2187 * breakpoint.c (watchpoints_triggered)
2188 <!target_stopped_data_address>: Hardcode return 1.
2189
2190 2013-10-28 Pedro Alves <palves@redhat.com>
2191
2192 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2193 level and reindent.
2194
2195 2013-10-28 Pedro Alves <palves@redhat.com>
2196
2197 * infrun.c (process_event_stop_test): New function, factored out
2198 from handle_inferior_event.
2199 (handle_inferior_event): 'process_event_stop_test' is now a
2200 function instead of a goto label -- adjust.
2201
2202 2013-10-28 Pedro Alves <palves@redhat.com>
2203
2204 * infrun.c (handle_inferior_event): Move process_event_stop_test
2205 goto label to the else branch of the ecs->random_signal check,
2206 along with FRAME and GDBARCH re-fetching.
2207
2208 2013-10-28 Pedro Alves <palves@redhat.com>
2209
2210 * infrun.c (switch_back_to_stepped_thread): New function, factored
2211 out from handle_inferior_event.
2212 (handle_inferior_event): Adjust to call
2213 switch_back_to_stepped_thread. Call it also at the tail of the
2214 random signal handling, and return, instead of also handling
2215 random signals just before the stepping tests.
2216
2217 2013-10-28 Pedro Alves <palves@redhat.com>
2218
2219 * infrun.c (clear_stop_func): Delete.
2220 (handle_inferior_event): Don't call clear_stop_func and don't
2221 clear 'ecs->random_signal'.
2222
2223 2013-10-27 Yao Qi <yao@codesourcery.com>
2224
2225 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2226 (varobj_create, varobj_get_path_expr): Update.
2227 (varobj_value_has_mutated, varobj_update): Likewise.
2228 (create_child_with_value, new_root_variable): Likewise.
2229 (number_of_children, name_of_variable): Likewise.
2230 (value_of_child, my_value_of_variable): Likewise.
2231 (varobj_value_is_changeable_p): Likewise.
2232
2233 2013-10-25 Yao Qi <yao@codesourcery.com>
2234
2235 * language.h (struct lang_varobj_ops): Declare.
2236 (struct language_defn) <la_varobj_ops>: New field.
2237 * ada-lang.c: Include "varobj.h"
2238 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2239 ada_varobj_ops.
2240 * c-lang.c: Include "varobj.h"
2241 (c_language_defn): Initialize field 'la_varobj_ops' with
2242 c_varobj_ops.
2243 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2244 cplus_varobj_ops.
2245 (asm_language_defn): Initialize field 'la_varobj_ops' with
2246 default_varobj_ops.
2247 (minimal_language_defn): Likewise.
2248 * d-lang.c (d_language_defn): Likewise.
2249 * f-lang.c (f_language_defn): Likewise.
2250 * go-lang.c (go_language_defn): Likewise.
2251 * m2-lang.c (m2_language_defn): Likewise.
2252 * objc-lang.c (objc_language_defn): Likewise.
2253 * opencl-lang.c (opencl_language_defn): Likewise.
2254 * p-lang.c (pascal_language_defn): Likewise.
2255 * language.c (unknown_language_defn): Likewise.
2256 (auto_language_defn): Likewise.
2257 (local_language_defn): Likewise.
2258 * jv-lang.c (java_language_defn): Initialize field
2259 'la_varobj_ops' with java_varobj_ops.
2260 * varobj.c (varobj_create): Update.
2261 * varobj.h (default_varobj_ops): Define macro.
2262
2263 2013-10-25 Pedro Alves <palves@redhat.com>
2264
2265 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2266 static field value.
2267 (cp_print_static_field): If the value is entirely optimized out,
2268 print <optimized out> here.
2269 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2270 static field value.
2271 * p-valprint.c (pascal_object_print_static_field): If the value is
2272 entirely optimized out, print <optimized out> here.
2273 * valops.c (do_search_struct_field)
2274 (value_struct_elt_for_reference): No longer handle a NULL static
2275 field value.
2276 * value.c (value_static_field): Return an optimized out value
2277 instead of NULL.
2278
2279 2013-10-25 Yao Qi <yao@codesourcery.com>
2280
2281 * remote.c (remote_traceframe_info): Return early if
2282 traceframe is not selected.
2283
2284 2013-10-25 Yao Qi <yao@codesourcery.com>
2285
2286 * tracepoint.c (traceframe_fun): Remove.
2287 (traceframe_sal): Remove.
2288 (set_traceframe_context): Add local variables.
2289
2290 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2291
2292 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2293 and parameter name.
2294
2295 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2296
2297 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2298 failure from register information collection.
2299
2300 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2301
2302 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2303 member.
2304 (linux_corefile_thread_callback): Update accordingly.
2305 (linux_make_corefile_notes): Likewise.
2306
2307 2013-10-24 Pedro Alves <palves@redhat.com>
2308
2309 * NEWS (New options): Mention set/show startup-with-shell.
2310 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2311 instead of 3.
2312 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2313 startup-with-shell'.
2314 (show_startup_with_shell): New function.
2315 (_initialize_fork_child): Register the set/show startup-with-shell
2316 commands.
2317 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2318 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2319 * procfs.c (procfs_init_inferior): Remove comment.
2320 * infcmd.c (startup_with_shell): New global.
2321 * inferior.h (startup_with_shell): Declare global.
2322 (STARTUP_WITH_SHELL): Delete.
2323 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2324
2325 2013-10-23 Pedro Alves <palves@redhat.com>
2326
2327 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2328 * common/signals.c: Include "gdb_assert.h".
2329 (signals): New field 'symbol'.
2330 (SET): Use the 'symbol' parameter.
2331 (gdb_signal_to_symbol_string): New function.
2332 * infrun.c (handle_inferior_event) <random signal>: In debug
2333 output, print the random signal enum as string in addition to its
2334 number.
2335 * target/waitstatus.c (target_waitstatus_to_string): Print the
2336 signal's enum value as string instead of the (POSIX) signal name.
2337
2338 2013-10-23 Gary Benson <gbenson@redhat.com>
2339
2340 PR 16013
2341 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2342 from 32 to 18. Adjusted fscanf format string accordingly.
2343 (Avoids leaving cmd unterminated.)
2344 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2345 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2346 that local_address and remote_address will not overflow.
2347 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2348 leaving dependencies unterminated. Parse size as "%u" to match
2349 definition.
2350
2351 2013-10-22 Pedro Alves <palves@redhat.com>
2352
2353 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2354 set ecs->random signal.
2355
2356 2013-10-22 Pedro Alves <palves@redhat.com>
2357
2358 * infrun.c (keep_going): Update comments.
2359
2360 2013-10-22 Pedro Alves <palves@redhat.com>
2361
2362 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2363 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2364
2365 2013-10-22 Pedro Alves <palves@redhat.com>
2366
2367 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2368 GDB_EXC_BAD_ACCESS.
2369 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2370 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2371 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2372 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2373 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2374 (GDB_SIGNAL_LAST): Change description string.
2375 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2376 Adjust to signal renaming.
2377 * darwin-nat.c (darwin_decode_message): Likewise.
2378
2379 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2380
2381 * MAINTAINERS (Write After Approval): Add myself to the list.
2382
2383 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2384
2385 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2386 forced off, downgrade them to software watchpoints if possible,
2387 and error out if not possible.
2388 (watch_command_1): Move watchpoint type selection closer to
2389 watchpoint creation, and extend the comments.
2390
2391 2013-10-18 Pedro Alves <palves@redhat.com>
2392
2393 PR gdb/16062
2394 * infrun.c (handle_inferior_event): Keep going if we got a random
2395 signal we should not stop for, instead of falling through to the
2396 step tests.
2397
2398 2013-10-18 Yao Qi <yao@codesourcery.com>
2399
2400 * c-varobj.c (cplus_number_of_children): Fix indentation.
2401
2402 2013-10-17 Tom Tromey <tromey@redhat.com>
2403
2404 PR gdb/15995:
2405 * printcmd.c (printcmd): Call gdb_flush.
2406
2407 2013-10-17 Tom Tromey <tromey@redhat.com>
2408
2409 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2410 (elf_locate_sections): Update.
2411
2412 2013-10-17 Yao Qi <yao@codesourcery.com>
2413
2414 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2415 * ada-varobj.c: Remove the include of ada-varobj.h.
2416 (ada_varobj_get_number_of_children): Declare.
2417 (ada_varobj_get_name_of_child): Make it static.
2418 (ada_varobj_get_path_expr_of_child): Likewise.
2419 (ada_varobj_get_value_of_child): Likewise.
2420 (ada_varobj_get_type_of_child): Likewise.
2421 (ada_varobj_get_value_of_array_variable): Likewise.
2422 * ada-varobj.h: Remove.
2423
2424 2013-10-17 Yao Qi <yao@codesourcery.com>
2425
2426 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2427 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2428 * ada-varobj.c: Include "varobj.h".
2429 (ada_number_of_children): New. Moved from varobj.c.
2430 (ada_name_of_variable, ada_name_of_child): Likewise.
2431 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2432 (ada_type_of_child, ada_value_of_variable): Likewise.
2433 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2434 (ada_varobj_ops): New.
2435 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2436 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2437 * gdbtypes.h (get_target_type): Declare.
2438 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2439 "ada-lang.h".
2440 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2441 (ANONYMOUS_UNION_NAME): Likewise.
2442 (get_type, get_value_type, get_target_type): Remove declarations.
2443 (value_get_print_value, varobj_value_get_print_value): Likewise.
2444 (c_number_of_children, c_name_of_variable): Likewise.
2445 (c_name_of_child, c_path_expr_of_child): Likewise.
2446 (c_value_of_child, c_type_of_child): Likewise.
2447 (c_value_of_variable, cplus_number_of_children): Likewise.
2448 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2449 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2450 (cplus_value_of_child, cplus_type_of_child): Likewise.
2451 (cplus_value_of_variable, java_number_of_children): Likewise.
2452 (java_name_of_variable, java_name_of_child): Likewise.
2453 (java_path_expr_of_child, java_value_of_child): Likewise.
2454 (java_type_of_child, java_value_of_variable): Likewise.
2455 (ada_number_of_children, ada_name_of_variable): Likewise.
2456 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2457 (ada_value_of_child, ada_type_of_child): Likewise.
2458 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2459 (ada_value_has_mutated): Likewise.
2460 (struct language_specific): Move it to varobj.h.
2461 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2462 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2463 Callers update.
2464 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2465 Make it extern.
2466 (is_anonymous_child): Move it to c-varobj.c and rename to
2467 varobj_is_anonymous_child. Caller update.
2468 (get_type): Move it to c-varobj.c.
2469 (get_value_type): Rename it varobj_get_value_type. Make it
2470 extern.
2471 (get_target_type): Move it gdbtypes.c.
2472 (varobj_formatted_print_options): New function.
2473 (value_get_print_value): Rename it to
2474 varobj_value_get_print_value and make it extern.
2475 (varobj_value_is_changeable_p): Make it extern.
2476 (adjust_value_for_child_access): Move it to c-varobj.c.
2477 (default_value_is_changeable_p): Rename it to
2478 varobj_default_value_is_changeable_p. Make it extern.
2479 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2480 (c_name_of_child, c_path_expr_of_child): Likewise.
2481 (c_value_of_child, c_type_of_child): Likewise.
2482 (c_value_of_variable, cplus_number_of_children): Likewise.
2483 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2484 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2485 (cplus_value_of_child, cplus_type_of_child): Likewise.
2486 (cplus_value_of_variable): Likewise.
2487 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2488 (java_name_of_child, java_path_expr_of_child): Likewise.
2489 (java_value_of_child, java_type_of_child): Likewise.
2490 (java_value_of_variable): Likewise.
2491 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2492 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2493 (ada_value_of_child, ada_type_of_child): Likewise.
2494 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2495 (ada_value_has_mutated): Likewise.
2496 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2497 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2498 (c_varobj_ops, cplus_varobj_ops): Declare.
2499 (java_varobj_ops, ada_varobj_ops): Declare.
2500 (varobj_default_value_is_changeable_p): Declare.
2501 (varobj_value_is_changeable_p): Declare.
2502 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2503 (varobj_get_path_expr_parent): Declare.
2504 (varobj_value_get_print_value): Declare.
2505 (varobj_formatted_print_options): Declare.
2506 (varobj_restrict_range): Declare.
2507
2508 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2509
2510 * target/waitstatus.h (target_waitkind): Remove spurious
2511 character from the comments.
2512
2513 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2514
2515 * gdbarch.sh (get_longjmp_target): Add method documentation.
2516 * gdbarch.h: Regenerate.
2517
2518 2013-10-16 Tom Tromey <tromey@redhat.com>
2519
2520 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2521 label.
2522
2523 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2524
2525 * gcore.in: Call GDB using the full path to the gcore script.
2526 Error out if the GDB binary is not found.
2527
2528 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2529
2530 PR gdb/16014
2531 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2532 sizeof.
2533
2534 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2535
2536 PR gdb/16042
2537 * target.c (target_disable_btrace): Fix invalid return value for
2538 void function.
2539 (target_teardown_btrace): Likewise.
2540
2541 2013-10-14 Yao Qi <yao@codesourcery.com>
2542
2543 * varobj.c (struct varobj): Move most of the fields to
2544 varobj.h.
2545 (struct varobj_dynamic): New struct.
2546 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2547 (varobj_has_more): Likewise.
2548 (dynamic_varobj_has_child_method): Likewise.
2549 (update_dynamic_varobj_children): Likewise.
2550 (varobj_get_num_children): Likewise.
2551 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2552 (install_new_value_visualizer): Likewise.
2553 (install_new_value_visualizer, install_new_value): Likewise.
2554 (varobj_update, new_variable, free_variable): Likewise.
2555 (my_value_of_variable, value_get_print_value): Likewise.
2556 (install_visualizer): Change the type of parameter 'var' to
2557 'struct varobjd_dynamic *'. Callers update.
2558 * varobj.h (struct varobj): Moved from varobj.c.
2559 (struct varobj) <dynamic>: New field.
2560
2561 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2562
2563 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2564 as the preferred name of r30.
2565 * nios2-linux-tdep.c (reg_offsets): Likewise.
2566 * features/nios2-cpu.xml: Likewise.
2567 * features/nios2-linux.c: Regenerated.
2568 * features/nios2.c: Regenerated.
2569 * regformats/nios2-linux.dat: Regenerated.
2570
2571 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2572
2573 Canonicalize directories for EXEC_FILENAME.
2574 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2575 exec_filename.
2576 * utils.c (gdb_realpath_keepfile): New function.
2577 * utils.h (gdb_realpath_keepfile): New declaration.
2578
2579 2013-10-11 Doug Evans <dje@google.com>
2580
2581 * Makefile.in (GDBFLAGS): New variable.
2582 (run): New rule.
2583
2584 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2585
2586 * NEWS: Add entry documenting the new "-catch-assert" and
2587 "-catch-exception" GDB/MI commands.
2588
2589 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2590
2591 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2592 "enabled".
2593 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2594 "enabled". Set B->ENABLE_STATE accordingly.
2595 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2596 ada-lang.c.
2597 (create_ada_exception_catchpoint): Add declaration.
2598 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2599 (create_ada_exception_catchpoint): Make non-static. Add new
2600 parameter "disabled". Use it in call to
2601 init_ada_exception_breakpoint.
2602 (catch_ada_exception_command): Add parameter "enabled" in call
2603 to create_ada_exception_catchpoint.
2604 (catch_assert_command): Likewise.
2605
2606 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2607 Add declarations.
2608 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2609 "catch-exception" commands.
2610 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2611 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2612
2613 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2614
2615 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2616 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2617 of all its enumerates with "ada_". Update the rest of this
2618 file throughout.
2619
2620 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2621
2622 * ada-lang.c (ada_decode_exception_location): Delete.
2623 (create_ada_exception_catchpoint): Remove arguments "sal",
2624 "addr_string" and "ops". Add argument "ex_kind" instead.
2625 Adjust implementation accordingly, calling ada_exception_sal
2626 to get the entities it no longer gets passed as arguments.
2627 Document the function's arguments.
2628 (catch_ada_exception_command): Use catch_ada_exception_command_split
2629 instead of ada_decode_exception_location, and update call to
2630 create_ada_exception_catchpoint.
2631 (catch_ada_assert_command_split): Renames
2632 ada_decode_assert_location. Remove parameters "addr_string" and
2633 "ops", and now returns void. Adjust implementation accordingly.
2634 Update the function documentation.
2635 (catch_assert_command): Use catch_ada_assert_command_split
2636 instead of ada_decode_assert_location. Update call to
2637 create_ada_exception_catchpoint.
2638
2639 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2640
2641 * utils.h (perror_warning_with_name): Add declaration.
2642 * utils.c (perror_warning_with_name): New function.
2643 * cli/cli-cmds.c (source_script_with_search): Add call to
2644 perror_warning_with_name if from_tty is nul.
2645
2646 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2647
2648 * utils.c (perror_string): New function, extracted out of
2649 throw_perror_with_name.
2650 (throw_perror_with_name): Rework to use perror_string.
2651
2652 2013-10-11 Yao Qi <yao@codesourcery.com>
2653
2654 * remote.c (discard_pending_stop_replies_in_queue): Update
2655 declaration.
2656 (struct stop_reply) <rs>: New field.
2657 (remove_stop_reply_of_remote_state): New function.
2658 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2659 Callers update. Pass remove_stop_reply_of_remote_state to
2660 QUEUE_iterate.
2661 (remote_parse_stop_reply): Initialize field 'rs'.
2662
2663 2013-10-10 Will Newton <will.newton@linaro.org>
2664
2665 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2666 linux_init_abi.
2667
2668 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2669
2670 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2671 serial_baud_show_cmd.
2672 (_initialize_cli_cmds): Delete the code creating the
2673 "set/show remotebaud" commands.
2674 * serial.c (baud_rate): Move here from top.c.
2675 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2676 (_initialize_serial): Create "set/show serial baud" commands.
2677 Add "set/show remotebaud" command aliases.
2678 * top.c (baud_rate): Moved to serial.c.
2679 * NEWS: Document the new "set/show serial baud" commands,
2680 replacing "set/show remotebaud".
2681
2682 2013-10-09 Pedro Alves <palves@redhat.com>
2683
2684 * breakpoint.c (insert_bp_location): Use memory_error_message to
2685 build the memory error string.
2686 * c-lang.c: Include "gdbcore.h".
2687 (c_get_string): Use memory_error to throw error.
2688 (target_xfer_memory_error): Delete.
2689 (memory_error_message): New, factored out from
2690 target_xfer_memory_error.
2691 (memory_error): Change parameter type to target_xfer_error.
2692 Rewrite.
2693 (read_memory): Use memory_error instead of
2694 target_xfer_memory_error.
2695 * gdbcore.h: Include "target.h".
2696 (memory_error): Change parameter type to target_xfer_error.
2697 (memory_error_message): Declare function.
2698 * target.c (target_read_memory, target_read_stack)
2699 (target_write_memory, target_write_raw_memory): Return
2700 TARGET_XFER_E_IO on error. Adjust comments.
2701 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2702 instead of EIO.
2703 * target.h (target_read, target_insert_breakpoint)
2704 (target_remove_breakpoint): Adjust comments.
2705 * valprint.c (partial_memory_read): Rename parameter, and adjust
2706 comment.
2707 (val_print_string): Use memory_error_message to build the memory
2708 error string.
2709
2710 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2711
2712 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2713 result variable. Rename variable fopen_e_ever_failed to
2714 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2715
2716 2013-10-09 Pedro Alves <palves@redhat.com>
2717
2718 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2719 (monitor_write_memory_longlongs, monitor_write_memory_block):
2720 Constify 'myaddr' parameter.
2721 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2722 helper.
2723 (monitor_xfer_partial): New function.
2724 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2725 hook. Install a to_xfer_partial hook.
2726
2727 2013-10-09 Tom Tromey <tromey@redhat.com>
2728
2729 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2730 bfd_get_alt_debug_link_info.
2731
2732 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2733
2734 New flag OBJF_NOT_FILENAME.
2735 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2736 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2737 allocate_objfile.
2738 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2739 symbol_file_add_from_bfd.
2740 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2741 allocate_objfile.
2742 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2743 NULL.
2744 * objfiles.h (OBJF_NOT_FILENAME): New.
2745
2746 2013-10-08 Tom Tromey <tromey@redhat.com>
2747
2748 * Makefile.in (SFILES): Add build-id.c.
2749 (HFILES_NO_SRCDIR): Add build-id.h.
2750 * build-id.c: New file, largely from elfread.c. Modified
2751 most functions.
2752 * build-id.h: New file.
2753 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2754 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2755 Search for dwz file using build-id.
2756 * elfread.c (build_id_bfd_get, build_id_verify)
2757 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2758
2759 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2760
2761 * ada-lang.c (compare_names_with_case): Renamed from
2762 compare_names, adding a new parameter "casing" and its handling.
2763 New function documentation.
2764 (compare_names): New function, implemented using
2765 compare_names_with_case.
2766
2767 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2768
2769 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2770
2771 2013-10-07 Tom Tromey <tromey@redhat.com>
2772
2773 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2774 demangled_names_hash.
2775 (free_objfile): Don't delete the demangled_names_hash.
2776 * objfiles.h (struct objfile_per_bfd_storage)
2777 <demangled_names_hash>: New field.
2778 (struct objfile) <demangled_names_hash>: Move to
2779 objfile_per_bfd_storage.
2780 * symfile.c (reread_symbols): Don't delete the
2781 demangled_names_hash.
2782 * symtab.c (create_demangled_names_hash): Update.
2783 (symbol_set_names): Update.
2784
2785 2013-10-07 Tom Tromey <tromey@redhat.com>
2786
2787 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2788 needs_relocations>: New fields.
2789 (gdb_bfd_requires_relocations): New function.
2790 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2791 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2792 the BFD needs relocations applied.
2793
2794 2013-10-07 Pedro Alves <palves@redhat.com>
2795
2796 PR breakpoints/11568
2797 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2798 the thread list" instead of "gone".
2799
2800 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2801
2802 * NEWS: Mention new convenience variable $_exitsignal.
2803 * corelow.c (core_open): Reset exit convenience variables. Set
2804 $_exitsignal to the uncaught signal which generated the corefile.
2805 * infrun.c (handle_inferior_event): Reset exit convenience
2806 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2807 (clear_exit_convenience_vars): New function.
2808 * inferior.h (clear_exit_convenience_vars): New prototype.
2809
2810 2013-10-06 Yao Qi <yao@codesourcery.com>
2811
2812 * varobj.h: Add comments to enum varobj_languages.
2813
2814 2013-10-04 Doug Evans <dje@google.com>
2815
2816 Add support for DWP file format version 2.
2817 * NEWS: Mention support for DWP file format version 2.
2818 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2819 union of asection, containing_section. New fields virtual_offset
2820 and is_virtual. Change type of readin filed from int to char.
2821 (dwo_sections, dwo_file): Tweak comments.
2822 (dwp_v2_section_ids): New enum.
2823 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2824 str_offsets, types.
2825 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2826 All uses updated.
2827 (virtual_v2_dwo_sections): New struct.
2828 (dwp_hash_table): New fields version, nr_columns. Change type of
2829 section_pool field to a union.
2830 (dwp_file): New field version.
2831 (dwarf2_has_info): Check for virtual sections.
2832 (get_containing_section): New function.
2833 (get_section_bfd_owner, get_section_bfd_section): Call it.
2834 (dwarf2_locate_sections): Update.
2835 (dwarf2_section_empty_p): Update.
2836 (dwarf2_read_section): Handle virtual sections.
2837 (locate_dwz_sections): Update.
2838 (create_dwp_hash_table): Document and handle V2 format.
2839 (locate_v1_virtual_dwo_sections): Renamed from
2840 locate_virtual_dwo_sections and update. All callers updated.
2841 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2842 Delete arg htab. Rename arg section_index to unit_index.
2843 All callers updated.
2844 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2845 All uses updated.
2846 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2847 (lookup_dwo_unit_in_dwp): Add V2 support.
2848 (dwarf2_locate_dwo_sections): Update.
2849 (dwarf2_locate_common_dwp_sections): Renamed from
2850 dwarf2_locate_dwp_sections and update. All callers updated.
2851 (dwarf2_locate_v2_dwp_sections): New function.
2852 (open_and_init_dwp_file): Add V2 support.
2853 (read_str_index): New locals str_section, str_offsets_section.
2854
2855 2013-10-04 Pedro Alves <palves@redhat.com>
2856
2857 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2858 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2859 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2860 describing comments with references to ptid.h.
2861 * common/ptid.h: Remove intro description of constructors,
2862 accessors and predicates.
2863 (struct ptid): Reformat.
2864 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2865 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2866 describing comments.
2867
2868 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2869
2870 * aix-thread.c (sync_threadlists): Add missing ')' in call
2871 to ptid_build.
2872
2873 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2874
2875 * procfs.c (procfs_init_inferior): Fix typo causing the build
2876 to fail.
2877
2878 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2879
2880 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2881
2882 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2883
2884 * mi/mi-main.c (run_one_inferior): Add function description.
2885 Make ARG a pointer to an integer whose value determines whether
2886 we should "run" or "start" the program.
2887 (mi_cmd_exec_run): Add handling of the "--start" option.
2888 Reject all other command-line options.
2889 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2890
2891 2013-10-04 Yao Qi <yao@codesourcery.com>
2892
2893 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2894 (struct notif_client) <pending_event>: Moved
2895 to struct remote_notif_state.
2896 <id>: New field.
2897 (struct remote_notif_state) <pending_event>: New field.
2898 (notif_event_xfree): Declare.
2899 * remote-notif.c (handle_notification): Adjust.
2900 (notif_event_xfree): New function.
2901 (do_notif_event_xfree): Call notif_event_xfree.
2902 (remote_notif_state_xfree): Call notif_event_xfree to free
2903 each element in field pending_event.
2904 * remote.c (discard_pending_stop_replies): Remove declaration.
2905 (discard_pending_stop_replies_in_queue): Declare.
2906 (remote_close): Call discard_pending_stop_replies_in_queue
2907 instead of discard_pending_stop_replies.
2908 (remote_start_remote): Adjust.
2909 (stop_reply_xfree): Call notif_event_xfree.
2910 (notif_client_stop): Adjust initialization.
2911 (remote_notif_remove_all): Rename it to ...
2912 (remove_stop_reply_for_inferior): ... this. Update comments.
2913 Don't check INF is NULL.
2914 (discard_pending_stop_replies): Return early if notif_state is
2915 NULL. Adjust. Don't check INF is NULL.
2916 (remote_notif_get_pending_events): Adjust.
2917 (discard_pending_stop_replies_in_queue): New function.
2918 (remote_wait_ns): Likewise.
2919
2920 2013-10-04 Yao Qi <yao@codesourcery.com>
2921
2922 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2923 (notif_queue): Remove.
2924 (remote_notif_process): Add one parameter 'notif_queue'.
2925 Update comments. Callers update.
2926 (remote_async_get_pending_events_token): Remove.
2927 (remote_notif_register_async_event_handler): Remove.
2928 (remote_notif_unregister_async_event_handler): Remove.
2929 (handle_notification): Add parameter 'notif_queue'. Update
2930 comments. Callers update.
2931 (notif_xfree): Remove.
2932 (remote_notif_state_allocate): New function.
2933 (remote_notif_state_xfree): New function.
2934 (_initialize_notif): Remove code to allocate queue.
2935 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2936 (struct remote_notif_state): New.
2937 (handle_notification): Update declaration.
2938 (remote_notif_process): Likewise.
2939 (remote_notif_register_async_event_handler): Remove.
2940 (remote_notif_unregister_async_event_handler): Remove.
2941 (remote_notif_state_allocate): Declare.
2942 (remote_notif_state_xfree): Declare.
2943 * remote.c (struct remote_state) <notif_state>: New field.
2944 (remote_close): Don't call
2945 remote_notif_unregister_async_event_handler. Call
2946 remote_notif_state_xfree.
2947 (remote_open_1): Don't call
2948 remote_notif_register_async_event_handler. Call
2949 remote_notif_state_allocate.
2950
2951 2013-10-04 Yao Qi <yao@codesourcery.com>
2952
2953 * varobj.c (create_child_with_value): Remove 'const' from the
2954 type of parameter 'name'.
2955 (varobj_add_child): Likewise.
2956 (install_dynamic_child): Remove 'const' from the type of
2957 parameter 'name'.
2958 (varobj_add_child): Likewise.
2959 (create_child_with_value): Likewise. Update comments. Don't
2960 duplicate 'name'.
2961 (update_dynamic_varobj_children): Duplicate 'name'
2962 and pass it to install_dynamic_child.
2963
2964 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2965
2966 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2967 conversion logic to occur after PyLong_Check. Comment on order
2968 change significance.
2969 * python/py-arch.c (archpy_disassemble): Comment on order of
2970 conversion for integers and longs.
2971
2972 2013-10-03 Pedro Alves <palves@redhat.com>
2973
2974 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2975 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2976 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2977 PTRACE_O_TRACEFORK is not supported.
2978 (linux_test_for_tracesysgood): New function.
2979 (linux_test_for_tracefork): New function, factored out from
2980 linux_check_ptrace_features, and also don't kill child_pid here.
2981
2982 2013-10-03 Tristan Gingold <gingold@adacore.com>
2983
2984 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2985 Remove verbose error reporting. Use detected state to
2986 thread_set_state call.
2987 (i386_darwin_dr_get): Fix return type. Remove verbose error
2988 report.
2989 Remove trailing spaces.
2990
2991 2013-10-02 Pedro Alves <palves@redhat.com>
2992
2993 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2994 val_print_optimized_out.
2995 * jv-valprint.c (java_print_value_fields): Likewise.
2996 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2997 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2998 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2999 new optimized out value.
3000 * findvar.c (address_from_register): Likewise.
3001 * frame.c (put_frame_register): Tweak error string to say the
3002 register was not saved, rather than optimized out.
3003 * infcmd.c (default_print_one_register_info): Adjust call to
3004 val_print_optimized_out. Use value_of_register instead of
3005 get_frame_register_value.
3006 * mi/mi-main.c (output_register): Use value_of_register instead of
3007 get_frame_register_value.
3008 * valprint.c (valprint_check_validity): Likewise.
3009 (val_print_optimized_out): New value parameter. If the value is
3010 lval_register, print <not saved> instead.
3011 (value_check_printable, val_print_scalar_formatted): Adjust calls
3012 to val_print_optimized_out.
3013 * valprint.h (val_print_optimized_out): New value parameter.
3014 * value.c (struct value) <optimized_out>: Extend comment.
3015 (error_value_optimized_out): New function.
3016 (require_not_optimized_out): Use it. Use a different string for
3017 lval_register values.
3018 * value.h (error_value_optimized_out): New declaration.
3019 * NEWS: Mention <not saved>.
3020
3021 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3022
3023 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3024 strcmp to compare two symtab filenames.
3025
3026 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3027
3028 * symtab.c (search_symbols_equal): Delete.
3029 (sort_search_symbols_remove_dups): Replace call to
3030 search_symbols_equal by call to compare_search_syms,
3031 adjusting as necessary.
3032
3033 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3034
3035 PR python/15579
3036 * python/python.c: Document gdb.execute command in Python help.
3037
3038 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3039
3040 * python/py-frame.c (frame_info_to_frame_object): Use
3041 gdbpy_convert_exception. Clean up Python object on failure.
3042
3043 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3044
3045 * python/lib/gdb/command/frame_filters.py
3046 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3047 (ShowFrameFilterPriority.invoke): Ditto.
3048
3049 2013-10-01 Keith Seitz <keiths@redhat.com>
3050
3051 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3052 (parse_linespec): Make 'argptr' const.
3053 Remove temporary cast of 'argptr' to const char **.
3054 (decode_line_full): Pass const pointer to parse_linespec.
3055 (decode_line_1): Likewise.
3056 (decode_objc): Make local variable 'new_argptr' const.
3057 (find_function_symbols): Remove temporary cast to char *
3058 to find_imps.
3059 * objc-lang.c (find_imps): Make argument 'method' const.
3060 Return const.
3061 * objc-lang.h (find_imps): Likewise.
3062
3063 2013-10-01 Keith Seitz <keiths@redhat.com>
3064
3065 * completer.c (skip_quoted_chars): Make all arguments const.
3066 Return const.
3067 (skip_quoted): Likewise.
3068 * completer.h (skip_quoted_chars): Likewise.
3069 (skip_quoted): Likewise.
3070 * defs.h (skip_quoted): Remove duplicate declaration.
3071 * jv-exp.y: Include completer.h.
3072 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3073 * p-exp.y: Include completer.h.
3074
3075 2013-10-01 Keith Seitz <keiths@redhat.com>
3076
3077 * c-exp.y (parse_number): Make first argument const.
3078 Make a copy of the input to manipulate.
3079 (c_parse_escape): Make first argument const.
3080 Make local variable 'tokptr' const.
3081 (parse_string_or_char): Make first two arguments const.
3082 (macro_original_text): Make const.
3083 (lex_one_token): Make local variable 'tokstart' const.
3084 Likewise for local variables named 'p'.
3085 Cast away const for struct stoken (temporary).
3086 * c-lang.h (c_parse_escpae): Make first argument const.
3087 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3088 const.
3089 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3090 var_string case.
3091 * f-exp.y (parse_number): Make first argument const.
3092 (match_string_literal): Make local variable 'tokstart'
3093 const.
3094 (yylex): Make local variable 'p' const.
3095 Cast away const for struct stoken (temporary).
3096 * go-exp.y (parse_number): Make first argument const.
3097 (parse_string_or_char): Likewise.
3098 Make local variable 'tokstart' const.
3099 (lex_one_token): Likewise for numerous locals called 'p'.
3100 Cast away const for struct stoken (temporary).
3101 * jv-exp.y (parse_number): Make first argument const.
3102 Make local variables 'tokstart' and 'tokptr' const.
3103 Cast away const for call to skip_quoted (temporary).
3104 (yylex): Make local variable 'p' const.
3105 Cast away const for struct stoken (temporary).
3106 * m2-exp.y (parse_number): Make local variable 'p' const.
3107 (yylex): Likewise for 'tokstart'.
3108 Cast away const for struct stoken (temporary).
3109 Make local variable 'p' const.
3110 * macroexp.c (get_character_constant): Pass a const string
3111 to c_parse_escape.
3112 (get_string_literal): Likewise.
3113 (macro_expand_next): Make first argument const.
3114 Cast away const for init_shared_buffer.
3115 * macroexp.h (macro_expand_next): Make first argument const.
3116 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3117 Pass a const string to c_parse_escape.
3118 Make local variables 'p' and 'namestart' const.
3119 * parse.c (lexptr): Make const.
3120 (prev_lexptr): Likewise.
3121 (find_template_name_end): Return const.
3122 Make argument const, too.
3123 (parse_exp_in_context): Make first argument const.
3124 Remove the entire const_hack.
3125 (parse_exp_in_context_1): Make first argument const.
3126 * parser-defs.h (find_template_name_end): Return const.
3127 Make argument const, too.
3128 (lexptr): Make const.
3129 (prev_lexptr): Likewise.
3130 * utils.c (parse_escape): Make second argument const.
3131 * utils.h (parse_escape): Likewise.
3132
3133 2013-10-01 Keith Seitz <keiths@redhat.com>
3134
3135 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3136 is now const.
3137 (block_lookup): Make 'raw_name' and 'name' const.
3138 * ada-lex.l (processString): Update for struct stoken.ptr.
3139 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3140 (operator_stoken): Likewise.
3141 (lex_one_token): Remove temporary cast to char * for
3142 'yylval.sval.ptr'.
3143 * f-exp.y (yylex): Likewise.
3144 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3145 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3146 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3147 'yylval.sval.ptr'.
3148 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3149 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3150 * linespec.c (struct ls_parser): Make 'stream' const.
3151 (find_parameter_list_end): Make argument 'input' and local
3152 variable 'p' const.
3153 (linespec_lexer_lex_string): Make local variables 'start' and
3154 'p' const.
3155 Use skip_spaces_const instead of skip_spaces.
3156 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3157 const.
3158 (parse_linespec): Temporarily cast 'argptr' to const for
3159 'parser->lexer.stream'.
3160 * m2-exp.y (yylex): Remove temporary cast to char * for
3161 'yylval.sval.ptr'.
3162 * objc-lang.c (add_msglist): Make local variable 'p' const.
3163 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3164 (exp : STRING): Make 'sp' const.
3165 (parse_number): Make argument 'p' const.
3166 * parser-defs.h (struct stoken): Make 'ptr' const.
3167
3168 2013-10-01 Doug Evans <dje@google.com>
3169
3170 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3171
3172 2013-10-01 Yao Qi <yao@codesourcery.com>
3173
3174 * varobj.c (c_value_of_root): Remove declaration.
3175 (cplus_value_of_root, java_value_of_root): Likewise.
3176 (ada_value_of_root): Likewise.
3177 (struct language_specific) <value_of_root>: Remove.
3178 (languages): Update initialization.
3179 (check_scope): Move earlier.
3180 (c_value_of_root): Move earlier and rename to ...
3181 (value_of_root_1): ... this.
3182 (value_of_root): Caller update.
3183 (cplus_value_of_root, java_value_of_root): Remove.
3184 (ada_value_of_root): Remove.
3185
3186 2013-10-01 Yao Qi <yao@codesourcery.com>
3187
3188 * varobj.c (varobj_format_string): Remove "unknown".
3189 (languages): Remove the first element.
3190 * varobj.h (enum varobj_languages): Remove vlang_c.
3191
3192 2013-10-01 Yao Qi <yao@codesourcery.com>
3193
3194 * varobj.c (struct language_specific) <language>: Remove.
3195 (languages): Update the initialization.
3196
3197 2013-10-01 Yao Qi <yao@codesourcery.com>
3198
3199 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3200 "solib-target.h". Include "windows-tdep.h".
3201 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3202 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3203 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3204 windows-tdep.o to gdb_target_obs.
3205
3206 2013-10-01 Yao Qi <yao@codesourcery.com>
3207
3208 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3209 "solib-target.h".
3210 (amd64_windows_init_abi): Don't call set_solib_ops and
3211 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3212 windows_init_abi instead.
3213 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3214 "solib-target.h".
3215 (i386_cygwin_init_abi): Don't call set_solib_ops,
3216 set_gdbarch_has_dos_based_file_system and
3217 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3218 windows_init_abi instead.
3219 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3220 (windows_init_abi): New function.
3221 (windows_iterate_over_objfiles_in_search_order): Make it
3222 static.
3223 * windows-tdep.h (windows_init_abi): Declare.
3224 (windows_iterate_over_objfiles_in_search_order): Remove
3225 declaration.
3226
3227 2013-10-01 Jerome Guitton <guitton@adacore.com>
3228
3229 Checked in by Joel Brobecker <brobecker@adacore.com>
3230 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3231 incomplete dictionnary instead of None in case of missing
3232 environment variables.
3233 (elinos_init): in case of an incomplete environment, best
3234 effort to load system libraries instead of abort.
3235
3236 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3237
3238 * ada-lang.c (ada_has_this_exception_support): Ignore
3239 mst_solib_trampoline minimal symbols.
3240
3241 2013-09-30 Tristan Gingold <gingold@adacore.com>
3242
3243 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3244 hardware watchpoint.
3245 (i386_darwin_dr_set): Support 32 and 64 bit states.
3246 (i386_darwin_dr_get): Likewise.
3247 (i386_darwin_dr_set_control): Make static.
3248 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3249 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3250
3251 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3252
3253 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3254 Replace TIDGET with ptid_get_lwp.
3255 Replace GET_LWP with ptid_get_lwp.
3256 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3257 Replace BUILD_THREAD with ptid_build.
3258 Replace BUILD_LWP with ptid_build.
3259 Replace PIDGET with ptid_get_pid.
3260 Replace TIDGET with ptid_get_lwp.
3261 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3262 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3263 Replace TIDGET with ptid_get_lwp.
3264 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3265 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3266 Replace TIDGET with ptid_get_lwp.
3267 Replace GET_LWP with ptid_get_lwp.
3268 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3269 * auxv.c: Likewise.
3270 * breakpoint.c: Likewise.
3271 * common/ptid.c (ptid_is_pid): Condense check for
3272 null_ptid and minus_one_ptid.
3273 (ptid_lwp_p): New function.
3274 (ptid_tid_p): New function.
3275 * common/ptid.h: Update comments for accessors.
3276 (ptid_lwp_p): New prototype.
3277 (ptid_tid_p): New prototype.
3278 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3279 * gcore.c: Replace PIDGET with ptid_get_pid.
3280 * gdbthread.h: Likewise.
3281 * gnu-nat.c: Likewise.
3282 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3283 Replace TIDGET with ptid_get_lwp.
3284 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3285 * hppanbsd-nat.c: Likewise.
3286 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3287 Replace TIDGET with ptid_get_lwp.
3288 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3289 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3290 * infcmd.c: Likewise.
3291 * inferior.h: Likewise.
3292 * inflow.c: Likewise.
3293 * infrun.c: Likewise.
3294 * linux-fork.c: Likewise.
3295 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3296 Replace GET_PID with ptid_get_pid.
3297 Replace is_lwp with ptid_lwp_p.
3298 Replace GET_LWP with ptid_get_lwp.
3299 Replace BUILD_LWP with ptid_build.
3300
3301 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3302
3303 * common/linux-btrace.c: Move sys/syscall.h out of the
3304 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3305 Also check for SYS_perf_event_open before attempting to buid.
3306
3307 2013-09-27 Doug Evans <dje@google.com>
3308
3309 * dwarf2read.c (dwarf2_section_info): Add comment.
3310 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3311 All uses updated.
3312 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3313 (dwarf2_read_section): Delete unused local "header". Add section
3314 name to error message.
3315 (create_dwo_in_dwp): Tweak comment.
3316 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3317
3318 * dwarf2read.c (die_reader_specs): Tweak comment.
3319 (get_section_bfd_owner, get_section_bfd_section): New functions.
3320 (get_section_name, get_section_file_name): New functions.
3321 (get_section_id, get_section_flags): New functions.
3322 (*): Use new functions to access section fields.
3323
3324 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3325 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3326 arg "htab". All callers updated.
3327 (create_debug_types_hash_table): Remove redundant copy of
3328 abbrev_section.
3329 (create_dwo_in_dwp): Tweak comments.
3330 (read_str_index): Tweak comment. Record dwarf form name in static
3331 local.
3332
3333 2013-09-27 Pedro Alves <palves@redhat.com>
3334
3335 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3336 (remote_filename_p): Add comment.
3337 * remote.c (remote_filename_p): Adjust to use
3338 REMOTE_SYSROOT_PREFIX.
3339 * solib.c (solib_find): When deciding whether we need to add a
3340 directory separator, check whether the sysroot is "remote:"
3341 instead of checking whether the patch has a drive spec. Add
3342 comments.
3343
3344 2013-09-27 Pedro Alves <palves@redhat.com>
3345
3346 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3347 Delete fields.
3348 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3349 directly.
3350
3351 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3352
3353 Fix set debug frame output.
3354 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3355 SENTINEL_FRAME entry lower to match enum frame_type order.
3356
3357 2013-09-26 Pierre Muller <muller@sourceware.org>
3358
3359 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3360 AMD64_R15_REGNUM when a register index is expected.
3361 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3362 Substitute in array.
3363 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3364 (amd64_push_arguments): Substitute in integer_regnum array.
3365
3366 2013-09-25 Doug Evans <dje@google.com>
3367
3368 * objfiles.c (allocate_objfile): Move comment to better place.
3369
3370 New option "set debug symfile on".
3371 * NEWS: Mention "set debug symfile".
3372 * Makefile.in (SFILES): Add symfile-debug.c.
3373 (COMMON_OBS): Add symfile-debug.o.
3374 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3375 objfile's symbol functions.
3376 * objfiles.h (objfile_set_sym_fns): Declare.
3377 * symfile-debug.c: New file.
3378 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3379 objfile's symbol functions.
3380 (reread_symbols): Ditto.
3381
3382 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3383 All uses updated.
3384 (add_symtab_fns): Update prototype.
3385 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3386 (registered_sym_fns): ... this.
3387 (symtab_fns): Update.
3388 (add_symtab_fns): New arg "flavour". All callers updated.
3389 (find_sym_fns): Rewrite to use new sym_fns registry.
3390
3391 * symfile.h (struct sym_fns): Add "objfile" argument to
3392 sym_read_linetable. All uses updated.
3393
3394 * symtab.c (domain_name, search_domain_name): New functions.
3395 * symtab.h (domain_name, search_domain_name): Declare.
3396
3397 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3398 map_matching_symbols so objfile is first. All uses updated.
3399 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3400 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3401
3402 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3403
3404 PR shlibs/8882
3405 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3406 link map entries.
3407
3408 2013-09-24 Doug Evans <dje@google.com>
3409
3410 * objfiles.c (free_objfile): Move comment.
3411
3412 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3413
3414 * ada-exp.y (string_to_operator): Delete.
3415 (dummy_string_to_ada_operator): Delete.
3416
3417 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3418
3419 Revert:
3420 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3421 amd64-tdep.c.
3422 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3423 call_dummy_integer_regs, and classify.
3424 * amd64-tdep.h (amd64_classify): Add declaration.
3425 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3426 (amd64_reg_class): Delete, moved to i386-tdep.h.
3427 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3428 Replace call to amd64_classify by call to tdep->classify.
3429 (amd64_push_arguments): Get the list of registers to use for
3430 passing integer parameters from the gdbarch tdep structure,
3431 rather than using a hardcoded one. Replace calls to amd64_classify
3432 by calls to tdep->classify.
3433 (amd64_push_dummy_call): Get the register number used for
3434 the "hidden" argument from tdep->call_dummy_integer_regs.
3435 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3436 and tdep->call_dummy_integer_regs. Set tdep->classify.
3437
3438 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3439
3440 Revert:
3441 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3442 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3443 where tdep->memory_args_by_pointer is non-zero.
3444
3445 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3446
3447 Revert:
3448 * i386-tdep.h (struct gdbarch_tdep): Add new field
3449 integer_param_regs_saved_in_caller_frame.
3450 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3451 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3452
3453 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3454
3455 * amd64-windows-tdep.c: #include "value.h"
3456 (amd64_windows_classify): Delete.
3457 (amd64_windows_passed_by_integer_register)
3458 (amd64_windows_passed_by_xmm_register)
3459 (amd64_windows_passed_by_pointer)
3460 (amd64_windows_adjust_args_passed_by_pointer)
3461 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3462 (amd64_windows_push_dummy_call): New functions.
3463 (amd64_windows_init_abi): Remove setting of
3464 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3465 tdep->classify, tdep->memory_args_by_pointer and
3466 tdep->integer_param_regs_saved_in_caller_frame.
3467 Add call to set_gdbarch_push_dummy_call.
3468
3469 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3470
3471 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3472 objfile->original_name.
3473
3474 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 Pass down original filename for objfile.
3477 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3478 * elfread.c (elf_symfile_read): Likewise.
3479 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3480 longer set ORIGINAL_NAME.
3481 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3482 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3483 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3484 symbol_file_add_from_bfd call.
3485 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3486 (macho_check_dsym): Add parameter filenamep. Change function comment.
3487 Set *filenamep.
3488 (macho_symfile_read): New variable dsym_filename. Update
3489 macho_check_dsym call. Use it for symbol_file_add_separate.
3490 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3491 it. Use it for objfile->original_name.
3492 (objfile_name): Return OBFD's filename, if available.
3493 * objfiles.h (allocate_objfile): Add new parameter name.
3494 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3495 * symfile-mem.c (symbol_file_add_from_memory): Update
3496 symbol_file_add_from_bfd call.
3497 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3498 comment for it.
3499 (symbol_file_add_with_addrs): New parameter name, add function comment
3500 for it. Remove variable name. Update allocate_objfile call.
3501 (symbol_file_add_separate): New parameter name, add function comment
3502 for it. Update symbol_file_add_with_addrs call.
3503 (symbol_file_add_from_bfd): New parameter name. Update
3504 symbol_file_add_with_addrs call.
3505 (symbol_file_add): Update symbol_file_add_from_bfd call.
3506 (reread_symbols): New variable original_name. Save
3507 objfile->original_name by it.
3508 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3509 second parameter.
3510
3511 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 Code cleanup: Add objfile_name accessor function.
3514 * ada-lang.c (is_known_support_routine): Use objfile_name.
3515 * auto-load.c (source_gdb_script_for_objfile)
3516 (auto_load_objfile_script): Likewise.
3517 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3518 * dbxread.c (dbx_symfile_read): Likewise.
3519 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3520 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3521 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3522 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3523 (lookup_dwp_signatured_type, lookup_dwo_unit)
3524 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3525 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3526 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3527 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3528 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3529 (read_subrange_type, load_partial_dies, read_partial_die)
3530 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3531 (die_containing_type, build_error_marker_type, lookup_die_type)
3532 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3533 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3534 (get_DW_AT_signature_type, write_psymtabs_to_index)
3535 (save_gdb_index_command): Likewise.
3536 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3537 Likewise.
3538 * expprint.c (dump_subexp_body_standard): Likewise.
3539 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3540 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3541 original_name.
3542 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3543 obj_name, use objfile_name for it, use the variable.
3544 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3545 Use objfile_name.
3546 * machoread.c (macho_symtab_read, macho_check_dsym)
3547 (macho_symfile_relocate): Likewise.
3548 * maint.c (maintenance_translate_address): Likewise.
3549 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3550 * minsyms.c (install_minimal_symbols): Likewise.
3551 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3552 original_name.
3553 (filter_overlapping_sections): Use objfile_name.
3554 (objfile_name): New function.
3555 * objfiles.h (struct objfile): Rename field name to original_name.
3556 (objfile_name): New prototype.
3557 * printcmd.c (sym_info, address_info): Use objfile_name.
3558 * probe.c (parse_probes, collect_probes, compare_probes)
3559 (info_probes_for_ops): Likewise.
3560 * progspace.c (clone_program_space): Likewise.
3561 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3562 (maintenance_info_psymtabs): Likewise.
3563 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3564 (source_section_scripts): Likewise.
3565 * python/py-objfile.c (objfpy_get_filename): Likewise.
3566 * python/py-progspace.c (pspy_get_filename): Likewise.
3567 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3568 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3569 * solib.c (solib_read_symbols): Likewise.
3570 * stabsread.c (scan_file_globals): Likewise.
3571 * stap-probe.c (handle_stap_probe): Likewise.
3572 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3573 (find_separate_debug_file_by_debuglink): Likewise.
3574 (reread_symbols): Likewise. Use the objfile field name renamed to
3575 original_name.
3576 (allocate_symtab): Use objfile_name.
3577 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3578 (dump_objfile, dump_msymbols, dump_symtab_1)
3579 (maintenance_print_msymbols, maintenance_print_objfiles)
3580 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3581 * target.c (target_translate_tls_address, target_info): Likewise.
3582 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3583 objfile_name.
3584
3585 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 Code cleanup.
3588 * probe.c (parse_probes): Rename variable objfile_name to
3589 objfile_namestr.
3590
3591 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3592
3593 Remove solib-sunos.c.
3594 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3595 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3596 * objfiles.c (rt_common_objfile): Remove.
3597 (free_objfile): Remove rt_common_objfile comparison.
3598 * objfiles.h (rt_common_objfile): Remove.
3599 * solib-sunos.c: Remove.
3600 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3601
3602 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3603
3604 Remove a.out NetBSD and OpenBSD hosts.
3605 * NEWS (Removed native configurations): New.
3606 * config/arm/nbsdaout.mh: Remove.
3607 * config/i386/nbsdaout.mh: Remove.
3608 * config/i386/obsdaout.mh: Remove.
3609 * config/m68k/nbsdaout.mh: Remove.
3610 * config/sparc/nbsdaout.mh: Remove.
3611 * config/vax/nbsdaout.mh: Remove.
3612 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3613 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3614 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3615 error.
3616 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3617 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3618 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3619
3620 2013-09-23 Tom Tromey <tromey@redhat.com>
3621
3622 * linespec.c (struct minsym_and_objfile): Remove.
3623 (minsym_and_objfile_d): Remove.
3624 (struct linespec, struct collect_info, linespec_parse_basic)
3625 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3626 (compare_msymbols, find_method, find_function_symbols)
3627 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3628 (add_minsym, search_minsyms_for_name): Update.
3629
3630 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3631
3632 * regcache.c: Add include of valprint.h.
3633 (dump_endian_bytes): Delete.
3634 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3635
3636 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3637
3638 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3639
3640 2013-09-19 Pedro Alves <palves@redhat.com>
3641
3642 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3643 breakpoints.
3644
3645 2013-09-19 Pedro Alves <palves@redhat.com>
3646 Thomas Schwinge <thomas@codesourcery.com>
3647 Yue Lu <hacklu.newborn@gmail.com>
3648
3649 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3650 Take a gdb_byte pointer instead of a char pointer.
3651
3652 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3653 gnu_xfer_partial helper.
3654 (gnu_xfer_partial): New function.
3655 (gnu_target): Don't install a deprecated_xfer_memory hook.
3656 Install a to_xfer_partial hook.
3657
3658 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 Constification.
3661 * main.c (captured_main): Replace catch_command_errors by
3662 catch_command_errors_const. Twice.
3663 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3664 (symbol_file_add): Make name parameter const.
3665 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3666 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3667 variable name. Change their usage accordingly.
3668 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3669 const.
3670 (symbol_file_add_main): Make args parameter const.
3671
3672 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3673 Ulrich Weigand <uweigand@de.ibm.com>
3674
3675 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3676 of c_value member.
3677 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3678
3679 2013-09-18 Pedro Alves <palves@redhat.com>
3680 Yue Lu <hacklu.newborn@gmail.com>
3681
3682 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3683 (gnu_create_inferior)
3684 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3685 (set_sig_thread_cmd): Use the lwpid field of ptids to
3686 store/extract thread ids instead of the tid field.
3687 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3688
3689 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3690
3691 * infcmd.c (default_print_one_register_info): Add detection of
3692 optimized out values.
3693 (default_print_registers_info): Switch to using
3694 get_frame_register_value.
3695
3696 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3697
3698 * infrun.c (handle_inferior_event): Check if we know the
3699 function start address before setting a resume breakpoint.
3700
3701 2013-09-18 Pedro Alves <palves@redhat.com>
3702
3703 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3704 minus_one_ptid instead of looking at the ptid's tid field and
3705 comparing that to -1.
3706
3707 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3708
3709 * main.h (get_gdb_program_name): Remove extra whitespace.
3710
3711 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3712
3713 * main.h (get_gdb_program_name): Add declaration.
3714 * main.c (get_gdb_program_name): Add definition.
3715
3716 2013-09-17 Doug Evans <dje@google.com>
3717
3718 * dwarf2read.c: Move definitions of complaint functions to after
3719 forward declarations of local functions.
3720
3721 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3722 Pedro Alves <palves@redhat.com>
3723
3724 PR gdb/11568
3725 * breakpoint.c (remove_threaded_breakpoints): New function.
3726 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3727 as thread_exit observer.
3728
3729 2013-09-17 Pedro Alves <palves@redhat.com>
3730
3731 PR gdb/15911
3732 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3733 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3734 * corelow.c (core_open):
3735 * frame.h (print_stack_frame, print_frame_info): New
3736 'set_current_sal' parameter.
3737 * infcmd.c (finish_command, kill_command): Adjust call to
3738 print_stack_frame.
3739 * inferior.c (inferior_command): Likewise.
3740 * infrun.c (normal_stop): Likewise.
3741 * linux-fork.c (linux_fork_context): Likewise.
3742 * record-full.c (record_full_goto_entry, record_full_restore):
3743 Likewise.
3744 * remote-mips.c (common_open): Likewise.
3745 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3746 Use it.
3747 (print_frame_info): New 'set_current_sal' parameter. Set the last
3748 displayed sal depending on the new paremeter instead of looking at
3749 print_what.
3750 (backtrace_command_1, select_and_print_frame, frame_command)
3751 (current_frame_command, up_command, down_command): Adjust call to
3752 print_stack_frame.
3753 * thread.c (print_thread_info, restore_selected_frame)
3754 (do_captured_thread_select): Adjust call to print_stack_frame.
3755 * tracepoint.c (tfind_1): Likewise.
3756 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3757 (mi_cmd_stack_info_frame): Likewise.
3758 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3759 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3760
3761 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3762
3763 * value.c (isvoid_internal_fn): Replace "parameter" with
3764 "argument".
3765
3766 2013-09-16 Stan Shebs <stan@codesourcery.com>
3767
3768 * README: Update references to writing code for GDB.
3769 * configure.ac (build_warnings): Remove obsolete comment.
3770 * configure: Regenerate.
3771 * gdbarch.sh: Remove references to gdbint.texinfo.
3772 * gdbarch.h: Regenerate.
3773 * gdbtypes.c (objfile_type): Remove comments referencing internals
3774 manual and D10V.
3775
3776 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3777
3778 * NEWS: Mention new convenience function $_isvoid.
3779 * value.c (isvoid_internal_fn): New function.
3780 (_initialize_values): Add new convenience function $_isvoid.
3781
3782 2013-09-16 Pierre Muller <muller@sourceware.org>
3783
3784 * arm-linux-tdep.c: Add "elf/common.h" header.
3785 Remove AT_HWCAP macro definintion as it is provided in
3786 added include file.
3787 * s390-tdep.c: Remove system header <elf.h>
3788 Add "elf/common.h" header for AT_HWCAP definition.
3789 (s390_core_read_description): Use correct CORE_ADDR
3790 for hwcap local variable used as third parameter
3791 of function target_auxv_search.
3792
3793 2013-09-14 Pierre Muller <muller@sourceware.org>
3794 Tom Tromey <tromey@redhat.com>
3795 Pedro Alves <palves@redhat.com>
3796
3797 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3798 mode if operating system doesn't know O_CLOEXEC.
3799
3800 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3801
3802 Code cleanup.
3803 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3804 inner block.
3805
3806 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3807
3808 * NEWS: Mention TDB support.
3809 * features/s390-tdb.xml: New file.
3810 * features/s390-te-linux64.xml: New file.
3811 * features/s390x-te-linux64.xml: New file.
3812 * features/Makefile (WHICH): Add new tdescs above.
3813 (s390-te-linux64-expedite): Set.
3814 (s390x-te-linux64-expedite): Set.
3815 * features/s390-te-linux64.c: New file (generated).
3816 * features/s390x-te-linux64.c: New file (generated).
3817 * regformats/s390-te-linux64.dat: New file (generated).
3818 * regformats/s390x-te-linux64.dat: New file (generated).
3819 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3820 (HWCAP_S390_TE): Likewise.
3821 (S390_TDB_DWORD0_REGNUM): Likewise.
3822 (S390_TDB_DWORD0_REGNUM): Likewise.
3823 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3824 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3825 (S390_TDB_ATIA_REGNUM): Likewise.
3826 (S390_TDB_R0_REGNUM): Likewise.
3827 (S390_TDB_R1_REGNUM): Likewise.
3828 (S390_TDB_R2_REGNUM): Likewise.
3829 (S390_TDB_R3_REGNUM): Likewise.
3830 (S390_TDB_R4_REGNUM): Likewise.
3831 (S390_TDB_R5_REGNUM): Likewise.
3832 (S390_TDB_R6_REGNUM): Likewise.
3833 (S390_TDB_R7_REGNUM): Likewise.
3834 (S390_TDB_R8_REGNUM): Likewise.
3835 (S390_TDB_R9_REGNUM): Likewise.
3836 (S390_TDB_R10_REGNUM): Likewise.
3837 (S390_TDB_R11_REGNUM): Likewise.
3838 (S390_TDB_R12_REGNUM): Likewise.
3839 (S390_TDB_R13_REGNUM): Likewise.
3840 (S390_TDB_R14_REGNUM): Likewise.
3841 (S390_TDB_R15_REGNUM): Likewise.
3842 (S390_NUM_REGS): Increase.
3843 (S390_IS_TDBREGSET_REGNUM): New macro.
3844 (s390_regmap_tdb): Declare.
3845 (s390_sizeof_tdbregset): Define.
3846 (tdesc_s390_te_linux64): Declare.
3847 (tdesc_s390x_te_linux64): Likewise.
3848 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3849 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3850 (s390_regmap_tdb): New regmap.
3851 (s390_supply_tdb_regset): New function.
3852 (s390_tdb_regset): New regset.
3853 (s390_linux64v2_regset_sections): Add TDB regset to list.
3854 (s390x_linux64v2_regset_sections): Likewise.
3855 (s390_regset_from_core_section): Recognize TDB core note section.
3856 (s390_core_read_description): If HWCAP indicates TE support,
3857 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3858 (s390_gdbarch_init): Handle TDB regset.
3859 (_initialize_s390_tdep): Initialize new tdescs.
3860 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3861 (have_regset_tdb): New variable.
3862 (s390_native_supply): Support register invalidation.
3863 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3864 (check_regset): Treat ENODATA as "regset exists".
3865 (s390_linux_fetch_inferior_registers): Add TDB.
3866 (s390_read_description): Check for TDB existence and select
3867 appropriate tdesc.
3868 * gdbserver/Makefile.in (clean): Add removal of new makefile
3869 targets.
3870 (s390-te-linux64.c): New makefile target.
3871 (s390x-te-linux64.c): Likewise.
3872 * gdbserver/configure.srv (srv_regobj): Append new objects
3873 s390-te-linux64.o and s390x-te-linux64.o.
3874 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3875 s390x-te-linux64.xml, and s390-tdb.xml.
3876 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3877 declaration.
3878 (tdesc_s390_te_linux64): Likewise.
3879 (init_registers_s390x_te_linux64): Likewise.
3880 (tdesc_s390x_te_linux64): Likewise.
3881 (s390_check_regset): Treat ENODATA as "regset exists".
3882 (s390_arch_setup): Add TDB regset support.
3883 (initialize_low_arch): Initialize registers for new tdescs.
3884
3885 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3886
3887 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3888 (S390_IS_FPREGSET_REGNUM): New macro.
3889 * s390-tdep.c (s390_dwarf_regmap): Make const.
3890 (regnum_is_gpr_full): New function for replacing repeated code.
3891 (s390_pseudo_register_name): Use it.
3892 (s390_pseudo_register_type): Likewise.
3893 (s390_pseudo_register_read): Likewise.
3894 (s390_pseudo_register_write): Likewise.
3895 (s390_unwind_pseudo_register): Likewise.
3896 (s390_regmap_gregset): New format for regmap.
3897 (s390x_regmap_gregset): Likewise.
3898 (s390_regmap_fpregset): Likewise.
3899 (s390_regmap_upper): Likewise.
3900 (s390_regmap_last_break): Likewise.
3901 (s390_regmap_system_call): Likewise.
3902 (s390_supply_regset): Adjust to new regmap format.
3903 (s390_collect_regset): Likewise.
3904 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3905 (s390_native_collect): Likewise.
3906 (supply_gregset): Likewise.
3907 (fill_gregset): Likewise.
3908 (supply_fpregset): Likewise.
3909 (fill_fpregset): Likewise.
3910 (fetch_regset): Likewise.
3911 (store_regset): Likewise.
3912 (s390_linux_fetch_inferior_registers): Likewise.
3913 (s390_linux_fetch_inferior_registers): Likewise.
3914
3915 2013-09-12 Andrew Pinski <apinski@cavium.com>
3916
3917 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3918
3919 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3920
3921 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3922
3923 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3924
3925 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3926
3927 2013-09-06 Pedro Alves <palves@redhat.com>
3928
3929 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3930 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3931 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3932 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3933 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3934 gdb_stdlog.
3935
3936 2013-09-06 Pedro Alves <palves@redhat.com>
3937
3938 * remote-sim.c (dump_mem): Constify buf parameter.
3939 gdbsim_xfer_inferior_memory): Rename to ...
3940 (gdbsim_xfer_memory): ... this. Adjust interface as
3941 target_xfer_partial helper.
3942 (gdbsim_xfer_partial): New function.
3943 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3944 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3945
3946 2013-09-06 Pedro Alves <palves@redhat.com>
3947
3948 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3949 host_address_to_string, and send debug output to gdb_stdlog.
3950
3951 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3952
3953 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3954 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3955 gdb_target_obs for cris target.
3956 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3957 (cris_gdbarch_init): Move calls to
3958 set_gdbarch_fetch_tls_load_module_address and
3959 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3960 Add call to gdbarch_init_osabi.
3961 * cris-linux-tdep.c: New file.
3962 * cris-tdep.h: New file.
3963
3964 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3965
3966 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3967 to deprecated_init_ui_hook.
3968
3969 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3970
3971 * cli/cli-interp.c (_initialize_cli_interp): Add a
3972 command_loop_proc to interp_procs.
3973 * event-top.c (cli_command_loop): Change signature to match
3974 interp_command_loop_ftype.
3975 * event-top.h (cli_command_loop): Same.
3976 * interps.c (interp_new): Require every interpreter to have a
3977 command_loop_proc.
3978 (current_interp_command_loop): Just call the command_loop_proc on
3979 the current interpreter.
3980 * tui/tui-interp.c (_initialize_tui_interp): Add a
3981 command_loop_proc to interp_procs.
3982
3983 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3984
3985 * cris-tdep.c (cris_gdbarch_init): Add call to
3986 get_gdbarch_fetch_tls_load_module_address.
3987
3988 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3989
3990 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3991 (cris_elf_gregset_t): Rename from elf_gregset_t.
3992 (crisv32_elf_gregset_t): Adjust.
3993 (cris_supply_gregset, fetch_core_registers): Adjust.
3994
3995 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3996
3997 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3998
3999 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
4000
4001 * defs.h (deprecated_command_loop_hook): Remove, including
4002 references in comments.
4003 * interps.c (current_interp_command_loop): No longer use
4004 deprecated_command_loop_hook.
4005 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
4006 setup.
4007 * top.c (deprecated_command_loop_hook): Remove.
4008
4009 2013-09-05 Pedro Alves <palves@redhat.com>
4010
4011 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
4012 local is now int instead of ULONGEST. Print it with %d
4013 instead of paddress.
4014
4015 2013-09-05 Tristan Gingold <gingold@adacore.com>
4016
4017 * MAINTAINERS: Remove avr maintainership.
4018
4019 2013-09-05 Pedro Alves <palves@redhat.com>
4020
4021 * findvar.c (value_of_register): Rework in terms of
4022 value_of_register_lazy.
4023
4024 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4025
4026 * symfile.c (add_symbol_file_command): Remove trailing
4027 whitespaces and blank line after comment.
4028
4029 2013-09-05 Pedro Alves <palves@redhat.com>
4030
4031 * tui/tui-regs.c (tui_register_format): Don't look at the
4032 register's name here. Return string representing register
4033 value instead of storing it in the data element.
4034 (tui_get_register): Compare register string representations
4035 instead of register value states and contents.
4036
4037 2013-09-05 Pedro Alves <palves@redhat.com>
4038
4039 PR tui/15933
4040 * tui/tui-regs.c (tui_show_registers): Show registers of the
4041 selected frame, not the current frame.
4042
4043 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4044
4045 * MAINTAINERS (Write After Approval): Add myself to the list.
4046
4047 2013-09-04 Doug Evans <dje@google.com>
4048
4049 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4050 (queue_and_load_dwo_tu): New function.
4051 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4052 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4053 Make dependent_cu optional.
4054 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4055 and an older .gdb_index is in use, queue and load all its TUs too.
4056
4057 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4060 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4061 variable search_flags.
4062 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4063 (OPF_RETURN_REALPATH): ... here.
4064 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4065 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4066 call. Twice.
4067 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4068 openp call.
4069 * solib.c (solib_find): Likewise. Four times.
4070 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4071 in the function comment and for the realpath_fptr variable.
4072 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4073 (find_and_open_source): Likewise. Twice.
4074 * symfile.c (symfile_bfd_open): Likewise, also twice.
4075
4076 2013-09-04 Doug Evans <dje@google.com>
4077
4078 * progspace.c (save_current_space_and_thread): Remove unnecessary
4079 call to save_current_inferior.
4080
4081 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4082
4083 * sh64-tdep.c (sh64_do_register): Return after printing message
4084 about unavailable register contents.
4085
4086 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4087 Pedro Alves <palves@redhat.com>
4088
4089 * symfile.c (add_symbol_file_command): Error out on unknown
4090 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4091 options and collapse into single conditional branch.
4092
4093 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4094
4095 * inf-child.c (inf_child_follow_fork): New parameter
4096 detach_fork.
4097 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4098 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4099 * inferior.h (detach_fork): Remove.
4100 * infrun.c (detach_fork): Adjust comment and make it
4101 static.
4102 (follow_fork): Pass detach_fork parameter to
4103 target_follow_fork.
4104 * linux-nat.c (linux_child_follow_fork): New parameter
4105 detach_fork.
4106 * target.c (target_follow_fork): New parameter detach_fork.
4107 Pass detach_fork as parameter and print its value.
4108 * target.h (struct target_ops) <to_follow_fork>: New int
4109 parameter.
4110 (target_follow_fork): New parameter detach_fork.
4111
4112 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4113
4114 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4115 Replace sec->bfd by sec->the_bfd_section->owner.
4116
4117 2013-09-03 Yao Qi <yao@codesourcery.com>
4118
4119 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4120 from linux_has_shared_address_space.
4121 (linux_has_shared_address_space): Call linux_is_uclinux.
4122 * linux-tdep.h (linux_is_uclinux): Declare.
4123 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4124 linux_is_uclinux.
4125
4126 2013-09-03 Yao Qi <yao@codesourcery.com>
4127
4128 * config/djgpp/fnchange.lst: Remove entry of
4129 i386-interix-nat.c and i386-interix-tdep.c.
4130 * configure.ac: Remove '*-*-interix*'.
4131 * configure: Re-generated.
4132 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4133 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4134 obsolete comments.
4135 * osabi.c (gdb_osabi_names): Remove "Interix".
4136
4137 2013-09-03 Yao Qi <yao@codesourcery.com>
4138
4139 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4140
4141 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4142
4143 * record.h (record_print_flag) <record_print_src_line,
4144 record_print_insn_range>: Rename into ...
4145 (record_print_flag) <record_print_src_line,
4146 record_print_insn_range>: ... this. Update all users.
4147
4148 2013-09-02 Pierre Muller <muller@sourceware.org>
4149
4150 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4151 error code.
4152
4153 2013-09-02 Pierre Muller <muller@sourceware.org>
4154
4155 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4156 by use of plongest function.
4157
4158 2013-09-02 Tristan Gingold <gingold@adacore.com>
4159
4160 * NEWS: Add entry mentioning support for native Windows x64
4161 SEH data.
4162
4163 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4164 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4165 (struct amd64_windows_frame_cache): New struct.
4166 (amd64_windows_w2gdb_regnum): New global.
4167 (pc_in_range, amd64_windows_frame_decode_epilogue)
4168 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4169 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4170 (amd64_windows_frame_this_id): New functions.
4171 (amd64_windows_frame_unwind): New static global.
4172 (amd64_windows_skip_prologue): New function.
4173 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4174 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4175 with amd64_windows_skip_prologue.
4176
4177 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4178
4179 GDB 7.6.1 released.
4180
4181 2013-08-30 Pedro Alves <palves@redhat.com>
4182
4183 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4184 SRC_AND_LOC.
4185
4186 2013-08-30 Pedro Alves <palves@redhat.com>
4187
4188 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4189 warning text.
4190
4191 2013-08-30 Pedro Alves <palves@redhat.com>
4192
4193 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4194 Adjust arguments to print_stack_frame.
4195
4196 2013-08-30 Pedro Alves <palves@redhat.com>
4197
4198 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4199
4200 2013-08-30 Pedro Alves <palves@redhat.com>
4201
4202 * frame.h (show_and_print_stack_frame): Delete declaration.
4203
4204 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4205
4206 PR python/15461
4207 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4208 (archpy_name): Check for valid architecture.
4209 (archpy_disassemble): Ditto.
4210
4211 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4212
4213 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4214 instead of "long long" in call to ptrace64.
4215
4216 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4217
4218 * mi/mi-interp.c (mi_command_loop): Change signature to match
4219 interp_command_loop_ftype.
4220 (mi1_command_loop): Remove.
4221 (mi2_command_loop): Remove.
4222 (mi3_command_loop): Remove.
4223 (mi_interpreter_resume): Remove setting of
4224 deprecated_command_loop_hook.
4225 (_initialize_mi_interp): Set mi_command_loop as the command loop
4226 callback.
4227
4228 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4229
4230 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4231 value_type.
4232
4233 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4234
4235 * value.c (allocate_value_contents): Make static.
4236 * value.h (allocate_value_contents): Remove prototype.
4237
4238 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4239
4240 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4241 of assembling value via allocate_value_lazy and attribute setter.
4242 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4243 assembling value via allocate_value_lazy and attribute setter.
4244 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4245 assembling value via allocate_value_lazy and attribute setter.
4246
4247 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4248
4249 * value.c (value_from_contents_and_address): Replace allocate_value and
4250 memcpy with value_from_contents.
4251
4252 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4253
4254 * python/py-framefilter.c (py_print_frame): Remove usage of
4255 PyString_AsString. Use python_string_to_host_string instead.
4256 Refactor function to work with a string as a new allocation
4257 instead of a pointer.
4258 (py_print_frame): Ditto.
4259 * python/lib/gdb/frames.py (return_list): Cain iterators together
4260 instead of adding them as a list.
4261 (_sort_list): Call return_list, and remove duplicate code.
4262 (execute_frame_filters): Convert iterator to a list with list().
4263 * python/lib/gdb/command/frame_filters.py
4264 (SetFrameFilterPriority._set_filter_priority): Convert priority
4265 attribute to an integer.
4266 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4267 wrapper function __next__.
4268 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4269 define as "str".
4270
4271 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4272
4273 PR python/15752
4274 * python/py-framefilter.c (apply_frame_filter): Check
4275 gdb_python_initialized. Exit if the Python frame-filter code
4276 cannot be initialized.
4277
4278 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4279
4280 PR cli/15842
4281 * top.c (print_gdb_version): Remove erroneous newline after help
4282 text.
4283
4284 2013-08-29 Yao Qi <yao@codesourcery.com>
4285
4286 * varobj.c (install_dynamic_child): Remove trailing space.
4287 Add one blank line after variable declaration.
4288
4289 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4290
4291 PR gdb/15415
4292 * corefile.c (get_exec_file): Use exec_filename.
4293 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4294 * exec.c (exec_close): Free EXEC_FILENAME.
4295 (exec_file_attach): New variable canonical_pathname. Use
4296 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4297 EXEC_FILENAME.
4298 * exec.h (exec_filename): New.
4299 * inferior.c (print_inferior, inferior_command): Use
4300 PSPACE_EXEC_FILENAME.
4301 * mi/mi-main.c (print_one_inferior): Likewise.
4302 * progspace.c (clone_program_space, print_program_space): Likewise.
4303 * progspace.h (struct program_space): New field pspace_exec_filename.
4304 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4305 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4306
4307 2013-08-28 Will Newton <will.newton@linaro.org>
4308
4309 * common/linux-ptrace.c: Include stdint.h unconditionally.
4310
4311 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4312
4313 Code cleanup.
4314 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4315
4316 2013-08-28 Yao Qi <yao@codesourcery.com>
4317 Pedro Alves <palves@redhat.com>
4318
4319 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4320 instead of stdio_fileopen.
4321 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4322 .Call stderr_fileopen instead of stdio_fileopen.
4323 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4324 [__MINGW32__] (stderr_file_fputs): New function.
4325 (stderr_fileopen): New function.
4326 * ui-file.h (stderr_fileopen): Declare.
4327
4328 2013-08-27 Doug Evans <dje@google.com>
4329
4330 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4331 (struct dwarf2_per_cu_data): Ditto.
4332 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4333 (process_imported_unit_die): Ditto.
4334 (follow_die_sig_1): Simplify assert.
4335
4336 2013-08-27 Pedro Alves <palves@redhat.com>
4337
4338 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4339 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4340 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4341 windows_xfer_memory directly.
4342 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4343
4344 2013-08-27 Pedro Alves <palves@redhat.com>
4345
4346 * darwin-nat.c (darwin_xfer_memory): Delete.
4347 (_initialize_darwin_inferior): Don't install a
4348 deprecated_xfer_memory method.
4349
4350 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4351 Yao Qi <yao@codesourcery.com>
4352
4353 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4354 (parse_no_frames_option): Remove.
4355 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4356 (mi_cmd_stack_list_args): Adjust.
4357 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4358 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4359 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4360 Caller update.
4361 (list_args_or_locals): New parameter 'skip_unavailable'.
4362 Handle it.
4363 * valprint.c (scalar_type_p): Rename to ...
4364 (val_print_scalar_type_p): ... this. Make extern.
4365 (val_print, value_check_printable): Adjust.
4366 * valprint.h (val_print_scalar_type_p): Declare.
4367 * value.c (value_entirely_unavailable): New function.
4368 * value.h (value_entirely_unavailable): Declare.
4369
4370 * NEWS: Mention the new option "--skip-unavailable" to MI
4371 commands '-stack-list-locals', '-stack-list-arguments' and
4372 '-stack-list-variables'.
4373
4374 2013-08-27 Yao Qi <yao@codesourcery.com>
4375
4376 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4377 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4378 options.
4379 * mi/mi-getopt.c (mi_getopt): Remove.
4380 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4381 'error_on_unknown'.
4382 (mi_getopt): Call mi_getopt_1.
4383 (mi_getopt_silent): New.
4384 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4385
4386 2013-08-26 Doug Evans <dje@google.com>
4387
4388 PR symtab/15885
4389 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4390 .gdb_index is in use.
4391 * symfile.c (reread_symbols): Reset objfile->sf.
4392
4393 * NEWS: Document "mt print objfiles" now takes optional regexp.
4394 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4395 regexp of objfiles to print.
4396 (_initialize_symmisc): Update doc string for "mt print objfiles".
4397
4398 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4399 missing debug info checks.
4400
4401 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4402 Ulrich Weigand <uweigand@de.ibm.com>
4403
4404 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4405 line tables generated by XLC compiled binaries.
4406
4407 2013-08-23 Doug Evans <dje@google.com>
4408
4409 * symmisc.c (dump_symtab): Delete prototype.
4410 (dump_msymbols, dump_objfile): Ditto.
4411 (maintenance_info_symtabs): Mark as dont_repeat.
4412 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4413
4414 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4415 debugging printf to better location.
4416
4417 2013-08-23 Pedro Alves <palves@redhat.com>
4418
4419 * target.c (target_read_live_memory): Change type of 'ret' local
4420 to LONGEST.
4421
4422 2013-08-23 Pedro Alves <palves@redhat.com>
4423
4424 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4425 (remote_read_bytes): Change return type to LONGEST, and adjust to
4426 return a target_xfer_error on error.
4427 (remote_xfer_memory): Delete.
4428 (remote_flash_write): Change type of 'ret' local to LONGEST.
4429 (remote_xfer_partial, remote_xfer_partial): Adjust.
4430 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4431
4432 2013-08-23 Pierre Muller <muller@sourceware.org>
4433
4434 ARI fix: Push # directives to start of line.
4435 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4436
4437 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4438
4439 PR gdb/15501
4440 * breakpoint.c (enable_command, disable_command): Iterate over
4441 all specified breakpoint locations.
4442
4443 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4444
4445 * common/linux-ptrace.c (linux_fork_to_function): Push #
4446 directives to the start of the line.
4447 (linux_check_ptrace_features): Fix warning message to use
4448 the "_" markup.
4449
4450 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4451
4452 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4453 nat/linux-waitpid.h.
4454 (linux-waitpid.o): New object file rule.
4455 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4456 (current_ptrace_options): Moved from linux-nat.c.
4457 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4458 parameters.
4459 (linux_fork_to_function): New function.
4460 (linux_grandchild_function): Likewise.
4461 (linux_child_function): Likewise.
4462 (linux_check_ptrace_features): New function, heavily
4463 based on linux-nat.c:linux_test_for_tracefork.
4464 (linux_enable_event_reporting): New function.
4465 (ptrace_supports_feature): Likewise.
4466 (linux_supports_tracefork): Likewise.
4467 (linux_supports_traceclone): Likewise.
4468 (linux_supports_tracevforkdone): Likewise.
4469 (linux_supports_tracesysgood): Likewise.
4470 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4471 gdbserver/linux-low.c.
4472 (linux_enable_event_reporting): New declaration.
4473 (linux_supports_tracefork): Likewise.
4474 (linux_supports_traceclone): Likewise.
4475 (linux_supports_tracevforkdone): Likewise.
4476 (linux_supports_tracesysgood): Likewise.
4477 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4478 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4479 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4480 * config/arm/linux.mh (NATDEPFILES): Likewise.
4481 * config/i386/linux.mh (NATDEPFILES): Likewise.
4482 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4483 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4484 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4485 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4486 * config/mips/linux.mh (NATDEPFILES): Likewise.
4487 * config/pa/linux.mh (NATDEPFILES): Likewise..
4488 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4489 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4490 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4491 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4492 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4493 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4494 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4495 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4496 ptrace's 4th argument's types.
4497 Check the type of PTRACE_TYPE_ARG4.
4498 * configure: Regenerate.
4499 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4500 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4501 (linux_supports_tracefork_flag): Remove.
4502 (linux_supports_tracesysgood_flag): Likewise.
4503 (linux_supports_tracevforkdone_flag): Likewise.
4504 (current_ptrace_options): Moved to
4505 common/linux-ptrace.c.
4506 (linux_tracefork_child): Remove.
4507 (my_waitpid): Remove.
4508 (linux_test_for_tracefork): Renamed to
4509 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4510 (linux_test_for_tracesysgood): Remove.
4511 (linux_supports_tracesysgood): Remove.
4512 (linux_supports_tracefork): Remove.
4513 (linux_supports_tracevforkdone): Remove.
4514 (linux_enable_tracesysgood): Remove.
4515 (linux_enable_event_reporting): Remove.
4516 (linux_init_ptrace): New function.
4517 (linux_child_post_attach): Call linux_init_ptrace.
4518 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4519 (linux_child_follow_fork): Call linux_supports_tracefork
4520 and linux_supports_tracevforkdone.
4521 (linux_child_insert_fork_catchpoint): Call
4522 linux_supports_tracefork.
4523 (linux_child_insert_vfork_catchpoint): Likewise.
4524 (linux_child_set_syscall_catchpoint): Call
4525 linux_supports_tracesysgood.
4526 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4527 * nat/linux-nat.h: New file.
4528 * nat/linux-waitpid.c: New file.
4529 * nat/linux-waitpid.h: New file.
4530
4531 2013-08-22 Samuel Bronson <naesten@gmail.com>
4532
4533 ARM Linux support for `catch syscall'.
4534 * syscalls/arm-linux.py: New file.
4535 * syscalls/arm-linux.xml: Likewise.
4536 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4537 (arm_linux_init_abi): Register the new function and syscall xml file.
4538 * data-directory/Makefile.in: Install the new syscall xml file.
4539 * NEWS: Brag about this.
4540
4541 2013-08-22 Pedro Alves <palves@redhat.com>
4542
4543 PR gdb/15871
4544 * corefile.c (target_xfer_memory_error): New function.
4545 (memory_error): Defer EIO to target_memory_error.
4546 (read_memory): Use target_xfer_partial, and handle finer-grained
4547 target xfer errors.
4548 * target.c (target_xfer_error_to_string): New function.
4549 (memory_xfer_partial_1): If memory is known to be
4550 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4551 (target_xfer_partial): Make extern.
4552 * target.h (enum target_xfer_error): New enum.
4553 (target_xfer_error_to_string): Declare function.
4554 (target_xfer_partial): Declare function.
4555 (struct target_ops) <xfer_partial>: Adjust describing comment.
4556
4557 2013-08-22 Alan Modra <amodra@gmail.com>
4558
4559 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4560 * configure.tgt: Likewise as targets.
4561
4562 2013-08-20 Doug Evans <dje@google.com>
4563
4564 * buildsym.c (subfile_stack): Move here from buildsym.h.
4565 (pending_macros): Ditto.
4566 (get_macro_table): New function.
4567 (buildsym_init): Initialize subfile_stack.
4568 * coffread.c (type_vector,type_vector_length): Moved here from
4569 buildsym.h.
4570 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4571 (coff_symtab_read): Use it.
4572 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4573 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4574 with call to get_macro_table.
4575 * stabsread.c (type_vector,type_vector_length): Moved here from
4576 buildsym.h.
4577 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4578 * buildsym.h (get_macro_table): Declare.
4579
4580 2013-08-20 Tom Tromey <tromey@redhat.com>
4581
4582 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4583 Update.
4584 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4585
4586 2013-08-20 Doug Evans <dje@google.com>
4587
4588 * blockframe.c: Remove #include "psymtab.h".
4589 * cp-support.c: Ditto.
4590 * source.c: Ditto.
4591 * stack.c: Ditto.
4592
4593 2013-08-20 Tom Tromey <tromey@redhat.com>
4594
4595 PR python/15816:
4596 * exceptions.h (return_mask): Now an enum.
4597 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4598 enum constants.
4599
4600 2013-08-20 Tom Tromey <tromey@redhat.com>
4601
4602 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4603 get_objfile_arch.
4604 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4605 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4606 * jit.c (jit_object_close_impl): Update.
4607 * jv-lang.c (get_dynamics_objfile): Update.
4608 * linespec.c (add_minsym): Use get_dynamics_objfile.
4609 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4610 (allocate_objfile): Don't initialize 'gdbarch' field.
4611 (get_objfile_arch): Update.
4612 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4613 moved from...
4614 (struct objfile) <gdbarch>: ... here. Remove.
4615 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4616 get_objfile_arch.
4617 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4618
4619 2013-08-20 Alan Modra <amodra@gmail.com>
4620
4621 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4622 for IBM long double nan and inf.
4623 (floatformat_is_negative, floatformat_classify,
4624 floatformat_mantissa): Similarly.
4625 (floatformat_ieee_single, floatformat_ieee_double,
4626 floatformat_ieee_quad, floatformat_arm_ext,
4627 floatformat_ia64_spill): Delete unused vars.
4628 (_initialize_doublest): Delete unused function.
4629 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4630 little-endian variants of floatformat_ibm_long_double.
4631
4632 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4633
4634 * Makefile.in (SFILES): Remove common/target-common.c and
4635 add target/waitstatus.c.
4636 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4637 target/resume.h, target/wait.h and target/waitstatus.h.
4638 (COMMON_OBS): Remove target-common.o and add
4639 waitstatus.o.
4640 (target-common.o): Remove.
4641 (waitstatus.o): New target object file.
4642 * common/target-common.c: Move contents to
4643 target/waitstatus.c and remove.
4644 * common/target-common.h: Move contents to other files and
4645 remove.
4646 (enum resume_kind: Move to target/resume.h.
4647 (TARGET_WNOHANG): Move to target/wait.h.
4648 (enum target_waitkind): Move to target/waitstatus.h.
4649 (struct target_waitstatus): Likewise.
4650 * target.h: Do not include target-common.h and
4651 include target/resume.h, target/wait.h and
4652 target/waitstatus.h.
4653 * target/resume.h: New file.
4654 * target/wait.h: New file.
4655 * target/waitstatus.h: New file.
4656 * target/waitstatus.c: New file.
4657
4658 2013-08-19 Pedro Alves <palves@redhat.com>
4659
4660 * linux-nat.c (linux_test_for_tracefork)
4661 (linux_test_for_tracesysgood, linux_child_follow_fork)
4662 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4663 (linux_nat_wait_1): Extend comment.
4664 (linux_async_pipe): Add comment.
4665
4666 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4667
4668 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4669 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4670 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4671 Update to account for fact that PC is now a pseudo-register.
4672 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4673 cases for RL78_PC_REGNUM.
4674
4675 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4676
4677 PR cli/15841
4678 * top.c (quit_force): Skip writing history file
4679 if input is not from terminal.
4680
4681 2013-08-14 Tom Tromey <tromey@redhat.com>
4682
4683 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4684 resultthreadlist>: New fields.
4685 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4686 (remote_get_threadlist, remote_threadlist_iterator): Use
4687 new fields. Remove static variables.
4688
4689 2013-08-14 Tom Tromey <tromey@redhat.com>
4690
4691 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4692 remote_watch_data_address>: New fields.
4693 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4694 (process_stop_reply, remote_wait_as)
4695 (remote_check_watch_resources, remote_stopped_data_address): Update.
4696
4697 2013-08-14 Tom Tromey <tromey@redhat.com>
4698
4699 * remote.c (struct remote_state) <async_client_callback,
4700 async_client_context>: New fields.
4701 (async_client_callback, async_client_context): Remove.
4702 (remote_async_serial_handler, remote_async): Update.
4703
4704 2013-08-14 Tom Tromey <tromey@redhat.com>
4705
4706 * remote.c (sizeof_pkt): Remove.
4707 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4708
4709 2013-08-14 Tom Tromey <tromey@redhat.com>
4710
4711 * remote.c (struct remote_state) <use_threadinfo_query,
4712 use_threadextra_query>: New fields.
4713 (remote_threads_info, remote_threads_extra_info)
4714 (remote_open_1): Update.
4715
4716 2013-08-14 Tom Tromey <tromey@redhat.com>
4717
4718 * remote.c (struct remote_state) <finished_object,
4719 finished_annex, finished_offset>: New fields.
4720 (remote_read_qxfer): Use remote_state fields; remove static
4721 variables.
4722
4723 2013-08-14 Tom Tromey <tromey@redhat.com>
4724
4725 * remote.c (struct remote_state) <last_sent_step>:
4726 New field.
4727 (last_sent_step): Remove.
4728 (remote_resume, remote_wait_as): Update.
4729
4730 2013-08-14 Tom Tromey <tromey@redhat.com>
4731
4732 * remote.c (struct remote_state) <last_sent_signal>:
4733 New field.
4734 (last_sent_signal): Remove.
4735 (new_remote_state, remote_resume, remote_wait_as): Update.
4736
4737 2013-08-14 Tom Tromey <tromey@redhat.com>
4738
4739 * remote.c (struct remote_state) <last_program_signals_packet>:
4740 New field.
4741 (last_program_signals_packet): Remove.
4742 (remote_program_signals, remote_open_1): Update.
4743
4744 2013-08-14 Tom Tromey <tromey@redhat.com>
4745
4746 * remote.c (struct remote_state) <last_pass_packet>:
4747 New field.
4748 (last_pass_packet): Remove.
4749 (remote_pass_signals, remote_open_1): Update.
4750
4751 2013-08-14 Tom Tromey <tromey@redhat.com>
4752
4753 * remote.c (struct remote_state) <remote_traceframe_number>:
4754 New field.
4755 (remote_traceframe_number): Remove.
4756 (new_remote_state, remote_open_1, set_remote_traceframe)
4757 (remote_trace_find): Update.
4758
4759 2013-08-14 Tom Tromey <tromey@redhat.com>
4760
4761 * remote.c (struct remote_state) <general_thread, continue_thread>:
4762 New fields.
4763 (general_thread, continue_thread): Remove.
4764 (record_currthread, set_thread, set_general_process)
4765 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4766 (extended_remote_mourn_1): Update.
4767
4768 2013-08-14 Tom Tromey <tromey@redhat.com>
4769
4770 * remote.c (struct remote_state) <remote_desc>: New field.
4771 (remote_desc): Remove.
4772 (remote_threads_info, remote_threads_extra_info, remote_close)
4773 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4774 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4775 (remote_hostio_send_command, remote_file_put, remote_file_get)
4776 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4777 (remote_async, remote_new_objfile, set_range_stepping): Update.
4778
4779 2013-08-14 Tom Tromey <tromey@redhat.com>
4780
4781 * remote.c (remote_state): Now a pointer.
4782 (get_remote_state_raw): Update.
4783 (new_remote_state): New function.
4784 (_initialize_remote): Use new_remote_state.
4785
4786 2013-08-14 Tom Tromey <tromey@redhat.com>
4787
4788 * remote.c (remote_protocol_features): Now const.
4789
4790 2013-08-14 Tom Tromey <tromey@redhat.com>
4791
4792 * remote.c (crc32_table, crc32): Remove.
4793 (remote_verify_memory): Use xcrc32.
4794
4795 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4796
4797 * value.h (create_internalvar_type_lazy): Adjust prototype
4798 declaration.
4799
4800 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4801
4802 * common/format.c (parse_format_string): Don't allow '#' flag for
4803 pointer arguments in format string.
4804
4805 2013-08-13 Pierre Muller <muller@sourceware.org>
4806
4807 * utils.c (init_page_info): Only call tgetnum function
4808 if rl_get_screen_size did not return useful values.
4809
4810 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4811
4812 PR breakpoints/15117
4813 * linespec.c (linespec_parse_basic): Check for convenience
4814 variable or history value while parsing.
4815
4816 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4817
4818 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4819 AVR.
4820 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4821 different signals between the generic Linux kernel implementation
4822 and AVR's.
4823 (avr_linux_gdb_signal_from_target): Delete.
4824 (avr_linux_gdb_signal_to_target): Delete.
4825 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4826
4827 2013-08-09 Doug Evans <dje@google.com>
4828
4829 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4830 entries.
4831
4832 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 * linux-tdep.c: Define enum with generic signal numbers.
4835 (linux_gdb_signal_from_target): New function.
4836 (linux_gdb_signal_to_target): Likewise.
4837 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4838 methods to the functions above.
4839 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4840 (linux_gdb_signal_to_target): Likewise.
4841 * alpha-linux-tdep.c: Define new enum with signals different
4842 from generic Linux kernel.
4843 (alpha_linux_gdb_signal_from_target): New function.
4844 (alpha_linux_gdb_signal_to_target): Likewise.
4845 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4846 with the functions mentioned above.
4847 * avr-tdep.c: Define enum with differences between Linux kernel
4848 and AVR signals.
4849 (avr_linux_gdb_signal_from_target): New function.
4850 (avr_linux_gdb_signal_to_target): Likewise.
4851 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4852 the functions mentioned above.
4853 * sparc-linux-tdep.c: Define enum with differences between SPARC
4854 and generic Linux kernel signal numbers.
4855 (sparc32_linux_gdb_signal_from_target): New function.
4856 (sparc32_linux_gdb_signal_to_target): Likewise.
4857 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4858 to the functions defined above.
4859 * xtensa-linux-tdep.c: Define enum with differences between
4860 Xtensa and Linux kernel generic signals.
4861 (xtensa_linux_gdb_signal_from_target): New function.
4862 (xtensa_linux_gdb_signal_to_target): Likewise.
4863 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4864 to the functions defined above.
4865 * mips-linux-tdep.c: Define enum with differences between
4866 signals in MIPS and Linux kernel generic ones.
4867 (mips_gdb_signal_to_target): New function.
4868 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4869 only different signals from the Linux kernel generic.
4870 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4871 the functions defined above.
4872 * mips-linux-tdep.h (enum mips_signals): Remove.
4873
4874 2013-08-09 Pedro Alves <palves@redhat.com>
4875
4876 * avr-tdep.c (XMALLOC): Delete macro.
4877 * cli/cli-dump.c (XMALLOC): Delete macro.
4878
4879 2013-08-09 Pedro Alves <palves@redhat.com>
4880
4881 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4882 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4883 (fopen_with_cleanup, add_dump_command): Make static.
4884 * cli/cli-dump.h: Delete file.
4885 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4886 cli/cli-dump.h.
4887
4888 2013-08-09 Pedro Alves <palves@redhat.com>
4889
4890 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4891 error message.
4892
4893 2013-08-09 Pedro Alves <palves@redhat.com>
4894
4895 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4896 error message.
4897
4898 2013-08-09 Pedro Alves <palves@redhat.com>
4899
4900 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4901 (gcore_command): Use tilde_expand here, and when showing the
4902 filename to the user, show the expanded version.
4903
4904 2013-08-09 Yao Qi <yao@codesourcery.com>
4905
4906 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4907 'entryval' is set.
4908
4909 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4910
4911 * gcore.c (create_gcore_bfd): Use tilde_expand.
4912
4913 2013-08-08 Yao Qi <yao@codesourcery.com>
4914
4915 * frame.h (read_frame_local): Declare.
4916 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4917 read_frame_local.
4918 * stack.c (read_frame_local): New.
4919
4920 2013-08-08 Yao Qi <yao@codesourcery.com>
4921
4922 * mi/mi-cmd-stack.c: Update comments to function
4923 list_args_or_locals.
4924
4925 2013-08-07 Tom Tromey <tromey@redhat.com>
4926
4927 PR symtab/15028:
4928 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4929 (process_psymtab_comp_unit_reader): Use it.
4930 (process_psymtab_comp_unit): Update. Add "pretend_language"
4931 argument.
4932 (dwarf2_build_psymtabs_hard): Update.
4933 (scan_partial_symbols): Pass CU's language to
4934 process_psymtab_comp_unit.
4935
4936 2013-08-07 Tom Tromey <tromey@redhat.com>
4937
4938 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4939 (dwarf2_gdb_index_functions): Update.
4940 * psymtab.c (find_symbol_file_from_partial): Remove.
4941 (psym_functions): Update.
4942 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4943 Remove.
4944
4945 2013-08-07 Tom Tromey <tromey@redhat.com>
4946
4947 * symfile.c (set_initial_language): Look up "main" symbol
4948 and use its language.
4949 * symtab.c (find_main_filename): Remove.
4950 * symtab.h (find_main_filename): Remove.
4951
4952 2013-08-07 Tom Tromey <tromey@redhat.com>
4953
4954 * dwarf2read.c (recursively_compute_inclusions): Add
4955 "immediate_parent" argument. Set symtab's "user" field
4956 if not set.
4957 (compute_symtab_includes): Update.
4958
4959 2013-08-07 Tom Tromey <tromey@redhat.com>
4960
4961 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4962 when adding label symbols.
4963
4964 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4965 Ulrich Weigand <uweigand@de.ibm.com>
4966
4967 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4968 * configure.host (powerpc64-*-aix*): Likewise.
4969
4970 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4971 Ulrich Weigand <uweigand@de.ibm.com>
4972
4973 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4974 is defined.
4975 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4976 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4977 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4978 * configure.ac: Check for ptrace64.
4979 * configure, config.in: Regenerate.
4980
4981 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4982 Ulrich Weigand <uweigand@de.ibm.com>
4983
4984 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4985 Call ptrace64 instead of ptrace if defined.
4986 Add macro addr_ptr to take care of ptrace address argument.
4987 (pdc_read_regs): Likewise.
4988 (pdc_write_regs): Likewise.
4989 (aix_thread_resume): Likewise.
4990 (fetch_regs_kernel_thread): Likewise.
4991 (store_regs_kernel_thread): Likewise.
4992
4993 2013-08-07 Anton Blanchard <anton@samba.org>
4994
4995 * MAINTAINERS: Add myself to Write After Approval.
4996
4997 2013-08-05 Tom Tromey <tromey@redhat.com>
4998
4999 * aix-thread.c (_initialize_aix_thread): Use
5000 complete_target_initialization.
5001 * bsd-uthread.c (_initialize_bsd_uthread): Use
5002 complete_target_initialization.
5003 * dec-thread.c (_initialize_dec_thread): Use
5004 complete_target_initialization.
5005 * ravenscar-thread.c (_initialize_ravenscar): Use
5006 complete_target_initialization.
5007 * sol-thread.c (_initialize_sol_thread): Use
5008 complete_target_initialization.
5009 * spu-multiarch.c (_initialize_spu_multiarch): Use
5010 complete_target_initialization.
5011
5012 2013-08-05 Tom Tromey <tromey@redhat.com>
5013
5014 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
5015 * ada-lang.c (ada_lookup_simple_minsym): Return
5016 bound_minimal_symbol.
5017 * ada-lang.h (ada_lookup_simple_minsym): Update.
5018 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5019 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5020 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5021 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5022 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5023 * minsyms.c (msymbol_objfile): Remove.
5024 (lookup_minimal_symbol_internal): New function, from
5025 lookup_minimal_symbol.
5026 (lookup_minimal_symbol): Rewrite using
5027 lookup_minimal_symbol_internal.
5028 (lookup_bound_minimal_symbol): New function.
5029 * minsyms.h (msymbol_objfile): Remove.
5030 (lookup_bound_minimal_symbol): Declare.
5031 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5032 * parse.c (write_exp_msymbol): Change parameter to a
5033 bound_minimal_symbol.
5034 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5035 * parser-defs.h (write_exp_msymbol): Update.
5036 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5037 * symfile.c (simple_read_overlay_table): Use
5038 lookup_bound_minimal_symbol.
5039 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5040 (search_symbols): Likewise.
5041 (print_msymbol_info): Take a bound_minimal_symbol argument.
5042 (symtab_symbol_info, rbreak_command): Update.
5043 * symtab.h (struct symbol_search) <msymbol>: Change type
5044 to bound_minimal_symbol.
5045 * valops.c (find_function_in_inferior): Use
5046 lookup_bound_minimal_symbol.
5047 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5048
5049 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5050
5051 Code cleanup.
5052 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5053 to ...
5054 (async_cleanup_sigint_signal_handler): ... this.
5055 (initialize_sigint_signal_handler): Remove declaration.
5056 (handle_remote_sigint): Rename the declaration to ...
5057 (async_handle_remote_sigint): ... this.
5058 (handle_remote_sigint_twice): Rename the declaration to ...
5059 (async_handle_remote_sigint_twice): ... this.
5060 (async_remote_interrupt, async_remote_interrupt_twice)
5061 (remote_interrupt): Remove the declarations.
5062 (remote_interrupt_twice): Rename the declaration ...
5063 (sync_remote_interrupt_twice): ... this.
5064 (sigint_remote_twice_token): Rename the variable to ...
5065 (async_sigint_remote_twice_token): ... this.
5066 (sigint_remote_token): Rename the variable to ...
5067 (async_sigint_remote_token): ... this.
5068 (initialize_sigint_signal_handler): Rename the function to ...
5069 (async_initialize_sigint_signal_handler): ... this. Update the name
5070 inside.
5071 (handle_remote_sigint): Rename the function to ...
5072 (async_handle_remote_sigint): ... this. Update the names inside.
5073 (handle_remote_sigint_twice): Rename the function to ...
5074 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5075 (cleanup_sigint_signal_handler): Rename the function to ...
5076 (async_cleanup_sigint_signal_handler): ... this.
5077 (remote_interrupt): Rename the function to ...
5078 (sync_remote_interrupt): this. Update the names inside.
5079 (remote_interrupt_twice): Rename the function to ...
5080 (sync_remote_interrupt_twice): this. Update the names inside.
5081 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5082 (_initialize_remote): Update the names inside.
5083
5084 2013-08-02 Tom Tromey <tromey@redhat.com>
5085
5086 PR symtab/15719:
5087 * breakpoint.c (update_watchpoint, watchpoint_check)
5088 (watch_command_1): Update.
5089 * eval.c (fetch_subexp_value): Add "preserve_errors"
5090 parameter.
5091 * ppc-linux-nat.c (check_condition): Update.
5092 * value.h (fetch_subexp_value): Update.
5093
5094 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5095
5096 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5097 add_file_handler.
5098
5099 2013-08-01 Doug Evans <dje@google.com>
5100
5101 PR symtab/15691
5102 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5103 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5104 Add assert of sig_entry->dwo_unit == NULL.
5105 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5106 had already been read.
5107 (read_signatured_type): Set per_cu.tu_read.
5108
5109 PR symtab/15695
5110 * valops.c (value_struct_elt): Add missing call to check_typedef.
5111 (value_find_oload_method_list): Ditto.
5112
5113 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5114 effectively, struct symbol_search **.
5115 (make_cleanup_free_search_symbols): Change arg to struct
5116 symbol_search **. All callers updated.
5117 (compare_search_syms): Compare symtab file name and block as well.
5118 (search_symbols_equal): New function.
5119 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5120 New args new_head, new_tail. Result is now void. Remove dups after
5121 sorting the symbols.
5122 (search_symbols): Sort all found symbols once, after all have been
5123 found, and remove duplicates. Simplify cleanup tracking of result.
5124 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5125
5126 Further workarounds for binutils/15021.
5127 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5128 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5129 Watch for duplicate symtabs coming from type units.
5130 (compute_symtab_includes): Update call to
5131 recursively_compute_inclusions. Build vector of included symtabs
5132 instead of per_cus.
5133 * symtab.h (symtab_ptr): New typedef.
5134 (DEF_VEC_P (symtab_ptr)): New VEC type.
5135 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5136 instead.
5137
5138 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5139
5140 * cli/cli-script.c (script_from_file): Remove use of
5141 error_pre_print.
5142 * main.c (captured_main): Remove use of error_pre_print and
5143 quit_pre_print.
5144 * utils.c (error_pre_print, quit_pre_print): Remove.
5145 * utils.h (error_pre_print, quit_pre_print): Likewise.
5146
5147 2013-08-01 Yao Qi <yao@codesourcery.com>
5148
5149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5150 with mi_getopt.
5151 (mi_cmd_stack_list_variables): Likewise.
5152
5153 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5154
5155 * exceptions.c (deprecated_throw_reason): Remove.
5156 * exceptions.h (deprecated_throw_reason): Remove.
5157
5158 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5159
5160 * remote-mips.c (mips_error): Replace use of
5161 deprecated_throw_reason with throw_verror. Use the error message
5162 passed to mips_error as the error message for throw_verror.
5163
5164 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5165
5166 * monitor.c (monitor_interrupt_query): Replace use of
5167 deprecated_throw_reason with quit.
5168 * nto-procfs.c (interrupt_query): Likewise.
5169 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5170 * remote-mips.c (mips_kill): Likewise.
5171 * remote.c (interrupt_query): Likewise.
5172
5173 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5174
5175 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5176 with call to fatal.
5177
5178 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5179 Yao Qi <yao@codesourcery.com>
5180
5181 * tracepoint.c (trace_dump_command): Select the current frame.
5182
5183 2013-07-30 Doug Evans <dje@google.com>
5184
5185 * dwarf2read.c (process_queue): Add type signature to debug output.
5186
5187 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5188
5189 * value.c (value_fetch_lazy): Mark optimized out values as such
5190 rather than raising an error.
5191
5192 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5193
5194 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5195 before checking which bits of the parent, not the child, value are
5196 valid.
5197
5198 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5199
5200 PR gdb/15715
5201 * top.c: Include "filenames.h".
5202 (set_history_filename): New function.
5203 (init_main): Install it as set hook of the "set history filename"
5204 command.
5205
5206 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5207
5208 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5209 attribute parameter.
5210 (dwarf2_const_value_data): Constify struct attribute parameter.
5211 (dwarf2_const_value): Constify struct attribute parameter.
5212 (dwarf2_const_value_attr): Constify struct attribute parameter.
5213 (lookup_die_type): Constify struct attribute parameter.
5214 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5215 (follow_die_ref_or_sig): Constify struct attribute parameter.
5216 (follow_die_ref): Constify struct attribute parameter.
5217 (follow_die_sig): Constify struct attribute parameter.
5218 (get_DW_AT_signature_type): Constify struct attribute parameter.
5219 (get_type_unit_group): Constify struct attribute parameter.
5220 (fill_in_loclist_baton): Constify struct attribute parameter.
5221 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5222 (type_unit_group): Constify struct attribute parameter.
5223
5224 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5225
5226 * dwarf2read.c (attr_form_is_block): Make argument const.
5227 (attr_form_is_section_offset): Make argument const.
5228 (attr_form_is_constant): Make argument const.
5229 (attr_form_is_ref): Make argument const.
5230
5231 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5232
5233 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5234 All uses updated.
5235 (attr_form_is_ref): Moved below attr_form_is_constant.
5236
5237 2013-07-29 Doug Evans <dje@google.com>
5238
5239 * main.c (captured_command_loop): Tweak comment.
5240
5241 * target.c (target_async_permitted_1): Fix comment.
5242
5243 * symtab.c (iterate_over_some_symtabs): Add comment.
5244
5245 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5246
5247 2013-07-27 Yao Qi <yao@codesourcery.com>
5248
5249 * NEWS: Mention that GDBserver now supports hardware
5250 watchpoints on the MIPS GNU/Linux target.
5251
5252 2013-07-27 Yao Qi <yao@codesourcery.com>
5253
5254 * Makefile.in (HFILES_NO_SRCDIR): Add
5255 common/mips-linux-watch.h.
5256 (mips-linux-watch.o): New rule.
5257 * common/mips-linux-watch.c: New.
5258 * common/mips-linux-watch.h: New.
5259 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5260 * mips-linux-nat.c: Include mips-linux-watch.h.
5261 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5262 to common/mips-linux-watch.h.
5263 (MAX_DEBUG_REGISTER): Likewise.
5264 (enum pt_watch_style): Likewise.
5265 (struct mips32_watch_regs): Likewise.
5266 (struct mips64_watch_regs): Likewise.
5267 (struct pt_watch_regs): Likewise.
5268 (struct mips_watchpoint): Likewise.
5269 (mips_linux_watch_get_irw_mask): Move to
5270 common/mips-linux-watch.c.
5271 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5272 (mips_linux_watch_get_watchlo): Likewise.
5273 (mips_linux_watch_set_watchlo): Likewise.
5274 (mips_linux_watch_get_watchhi): Likewise.
5275 (mips_linux_watch_set_watchhi): Likewise.
5276 (mips_linux_read_watch_registers): Likewise.
5277 (mips_linux_watch_type_to_irw): Likewise.
5278 (mips_linux_stopped_data_address, fill_mask): Likewise.
5279 (mips_linux_watch_try_one_watch): Likewise.
5280 (mips_linux_watch_populate_regs): Likewise.
5281
5282 2013-07-27 Yao Qi <yao@codesourcery.com>
5283
5284 * mips-linux-nat.c (get_irw_mask): Rename to ...
5285 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5286 'set' to 'n'. Update function comment. All callers changed.
5287 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5288 function comment. All callers changed.
5289 (get_num_valid): Rename to ...
5290 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5291 'set' to 'n'. Update function comment. All callers changed.
5292 (get_watchlo): Rename to ...
5293 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5294 'set' to 'n'. Update function comment. All callers changed.
5295 (set_watchlo): Rename to ...
5296 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5297 'set' to 'n'. Update function comment. All callers changed.
5298 (get_watchhi): Rename to ...
5299 (mips_linux_watch_get_watchhi): ... this. Update function
5300 comment. All callers changed.
5301 (set_watchhi): Rename to ...
5302 (mips_linux_watch_set_watchhi): ... this. Update function
5303 comment. All callers changed.
5304 (mips_linux_read_watch_registers): Update function comment.
5305 Add new parameters 'lwpid', 'watch_readback', and
5306 'watch_readback_valid'. Update.
5307 (type_to_irw): Rename to ...
5308 (mips_linux_watch_type_to_irw): ... this. Update function
5309 comment. All callers changed.
5310 (fill_mask): Update function comment.
5311 (try_one_watch): Rename to ...
5312 (mips_linux_watch_try_one_watch): ... this. Change the type
5313 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5314 (populate_regs_from_watches): Rename to ...
5315 (mips_linux_watch_populate_regs): ... this. Add parameter
5316 'current_watches'. All callers changed.
5317
5318 2013-07-27 Yao Qi <yao@codesourcery.com>
5319
5320 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5321 the code.
5322 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5323 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5324 (struct pt_watch_regs): Likewise.
5325 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5326 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5327 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5328 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5329 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5330
5331 2013-07-27 Yao Qi <yao@codesourcery.com>
5332
5333 * breakpoint.h: Include break-common.h.
5334 (enum target_hw_bp_type): Move to ...
5335 * common/break-common.h: ... here. New.
5336
5337 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5338
5339 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5340 process group regardless of having tty on stdin.
5341
5342 2013-07-25 Doug Evans <dje@google.com>
5343
5344 * linux-fork.h (detach_fork): Delete.
5345
5346 2013-07-25 Tom Tromey <tromey@redhat.com>
5347
5348 PR remote/15256, PR remote/15266:
5349 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5350 * monitor.c (monitor_detach): Use unpush_target.
5351 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5352 * remote-mips.c (mips_detach): Use unpush_target. Don't
5353 call mips_close.
5354 * remote-sim.c (gdbsim_detach): Use unpush_target.
5355 * target.c (pop_target): Remove.
5356 (pop_all_targets_above): Don't call target_close.
5357 (target_close): Assert that the target is unpushed.
5358 * target.h (pop_target): Don't declare.
5359 * tracepoint.c (tfile_open): Use unpush_target.
5360
5361 2013-07-25 Tom Tromey <tromey@redhat.com>
5362
5363 * linux-thread-db.c (init_thread_db_ops): Call
5364 complete_target_initialization.
5365 (_initialize_thread_db): Don't call add_target.
5366 * target.c (complete_target_initialization): New function.
5367 (add_target_with_completer): Call it.
5368 * target.h (complete_target_initialization): Declare.
5369
5370 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5371
5372 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5373 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5374 (HPPANBSD_SIZEOF_GREGS): New define.
5375 (hppaobsd_supply_gregset): Handle additional registers.
5376 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5377 we provide more registers now.
5378 (hppabsd_supply_gregset): Supply additional registers.
5379 (hppabsd_collect_gregset): Collect additional registers.
5380
5381 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5382
5383 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5384 (hppabsd_dwarf2_frame_init_reg): New function.
5385 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5386
5387 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5388
5389 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5390 'z' format code. Remove error for optimized out values, standard
5391 code will handle these fine.
5392
5393 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5394
5395 * NEWS: Mention new 'z' formatter.
5396 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5397 (_initialize_printcmd): Mention 'z' formatter in help text of the
5398 'x' command.
5399
5400 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5401
5402 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5403 formatting.
5404
5405 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5406
5407 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5408 interface can evaluate arguments. Fallback to the old mode if it
5409 cannot.
5410 (create_exception_master_breakpoint): Likewise.
5411 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5412 (struct sym_probe_fns elf_probe_fns): Export function above to the
5413 probe interface.
5414 * probe.c (can_evaluate_probe_arguments): New function.
5415 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5416 function pointer.
5417 (can_evaluate_probe_arguments): New function prototype.
5418 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5419 probe interface can evaluate arguments. Fallback to the old mode
5420 if it cannot.
5421 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5422 interface can evaluate arguments. Warning the user if it cannot.
5423 (stap_can_evaluate_probe_arguments): New function.
5424 (struct probe_ops stap_probe_ops): Export function above to the
5425 probe interface.
5426 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5427 New function pointer.
5428
5429 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5430
5431 * Makefile.in (SFILES): Add common/target-common.c.
5432 Add common/target-common.h to headers.
5433 (COMMON_OBS): Add target-common.o.
5434 (target-common.o): New target.
5435 * linux-nat.h (resume_kind): Move to common/target-common.h.
5436 * target.c (target_waitstatus_to_string): Move to
5437 common/target-common.c.
5438 * target.h: Include target-common.h.
5439 (target_waitkind): Move to common/target-common.h.
5440 (target_waitstatus): Likewise.
5441 (TARGET_WNOHANG): Likewise.
5442 * common/target-common.c: New file.
5443 * common/target-common.h: New file.
5444
5445 2013-07-24 Doug Evans <dje@google.com>
5446
5447 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5448 a warning.
5449
5450 2013-07-23 Yao Qi <yao@codesourcery.com>
5451
5452 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5453 parameter 'gdbarch'.
5454 (i386_stack_tramp_frame_sniffer): Caller update.
5455 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5456 parameter 'gdbarch' and 'target'.
5457 (i386_linux_core_read_description): Caller update.
5458 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5459 Likewise.
5460 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5461 declaration.
5462
5463 2013-07-23 Tom Tromey <tromey@redhat.com>
5464
5465 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5466 2013-07-22.
5467
5468 2013-07-22 Doug Evans <dje@google.com>
5469
5470 * exec.h (remove_target_sections): Delete arg abfd.
5471 * exec.c (exec_close): Update call to remove_target_sections.
5472 (remove_target_sections): Delete arg abfd.
5473 * solib.c (update_solib_list): Ditto.
5474 (reload_shared_libraries_1): Ditto.
5475 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5476 * target.h (struct target_section): Rename key to owner.
5477 All uses updated.
5478
5479 2013-07-22 Tom Tromey <tromey@redhat.com>
5480
5481 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5482
5483 2013-07-22 Tom Tromey <tromey@redhat.com>
5484
5485 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5486 Simplify cleanup handling.
5487
5488 2013-07-22 Tom Tromey <tromey@redhat.com>
5489
5490 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5491 on all return paths.
5492
5493 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5494
5495 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5496 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5497 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5498
5499 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5500
5501 * top.c (print_gdb_version): Add help, apropos description and
5502 url to online documentation.
5503
5504 2013-07-19 Hui Zhu <hui@codesourcery.com>
5505
5506 PR gdb/15692
5507 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5508
5509 2013-07-19 Yao Qi <yao@codesourcery.com>
5510
5511 * target.c (update_current_target): Change the default action
5512 of 'to_traceframe_info' from tcomplain to return_zero.
5513 * target.h (struct target_ops) <to_traceframe_info>: Add more
5514 comments.
5515 * valops.c (read_value_memory): Call
5516 traceframe_available_memory unconditionally.
5517
5518 2013-07-18 Yao Qi <yao@codesourcery.com>
5519
5520 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5521 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5522 symbol without prefix. If found, set its type to
5523 'mst_solib_trampoline'.
5524
5525 2013-07-17 Doug Evans <dje@google.com>
5526
5527 * NEWS: Mention "set print raw frame-arguments".
5528 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5529 * stack.c (print_raw_frame_arguments): New static global.
5530 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5531 (_initialize_stack): New command "set/show print raw frame-arguments".
5532 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5533 (set_print_raw, show_print_raw): New functions.
5534 (_initialize_valprint): New prefix command "set/show print raw".
5535 * valprint.h (value_print_options): Improve comments.
5536
5537 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5538 of all *list variables.
5539
5540 * gdbcmd.h (togglelist): Delete.
5541 * cli/cli-cmds.c (togglelist): Delete.
5542 (init_cmd_lists): Update.
5543 * cli/cli-cmds.h (togglelist): Delete.
5544
5545 2013-07-17 Tom Tromey <tromey@redhat.com>
5546
5547 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5548 dwarf2_per_objfile.
5549
5550 2013-07-16 Doug Evans <dje@google.com>
5551
5552 * nto-tdep.c (nto_relocate_section_addresses): Update,
5553 target_section.bfd deleted.
5554 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5555 * s390-tdep.c (s390_load): Ditto.
5556 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5557
5558 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5559
5560 * common/format.c (parse_format_string): Add checks for NULL
5561 character before calling strchr.
5562
5563 2013-07-16 Doug Evans <dje@google.com>
5564
5565 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5566 temp_pathname argument.
5567 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5568 when opening the file fails.
5569
5570 * target.h (struct target_section): Delete member bfd.
5571 All users updated to use the_bfd_section->owner instead.
5572 * exec.c (add_to_section_table): Assert bfd is expected value.
5573 Remove initialization of target_section.bfd.
5574 (remove_target_sections): Update.
5575 (section_table_available_memory): Update.
5576 (section_table_xfer_memory_partial): Update.
5577 (print_section_info): Update.
5578 (exec_set_section_address): Update.
5579 * record-full.c (record_full_core_xfer_partial): Update.
5580 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5581 * solib-target.c (solib_target_relocate_section_addresses): Update.
5582 * symfile.c (build_section_addr_info_from_section_table): Update.
5583 * target.c (memory_xfer_live_readonly_partial): Update.
5584 (memory_xfer_partial_1): Update.
5585
5586 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5587
5588 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5589 now available for embedded (BookE) and server (BookS) processors,
5590 correct mentions of 'booke' and adjust comments accordingly in order to
5591 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5592 (have_ptrace_booke_interface): Rename function and variable
5593 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5594 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5595 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5596 'hwdebug_point_cmp'. Update all uses.
5597 (booke_find_thread_points_by_tid): Rename function
5598 'booke_find_thread_points_by_tid' to
5599 'hwdebug_find_thread_points_by_tid'. Update all uses.
5600 (booke_insert_point): Rename function 'booke_insert_point' to
5601 'hwdebug_insert_point'. Update all uses.
5602 (booke_remove_point): Rename function 'booke_remove_point' to
5603 'hwdebug_remove_point'. Update all uses.
5604
5605 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5606
5607 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5608 numbers with enum values.
5609
5610 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5611
5612 PR threads/13217
5613 * thread.c (thread_apply_all_command): Check for valid threads
5614 and thread count.
5615 (thread_array_cleanup): New struct.
5616 (set_thread_refcount): New function.
5617
5618 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5619
5620 * infcmd.c (default_print_one_register_info): Reuse function
5621 print_hex_chars.
5622
5623 2013-07-10 Tom Tromey <tromey@redhat.com>
5624
5625 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5626 (ada-exp.o): New target.
5627
5628 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5629
5630 * mt-tdep.c (mt_registers_info): Call
5631 get_no_prettyformat_print_options instead of
5632 get_raw_print_options (regression by last patch from Doug
5633 Evans).
5634
5635 2013-07-09 Pedro Alves <palves@redhat.com>
5636
5637 Checked in by Joel Brobecker <brobecker@adacore.com>.
5638 * ada-lang.c (coerce_unspec_val_to_type): Use
5639 value_optimized_out_const.
5640 * value.c (value_optimized_out_const): New function.
5641 * value.h (value_optimized_out_const): New declaration.
5642
5643 2013-07-09 Doug Evans <dje@google.com>
5644
5645 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5646 Enum values rename as well. All uses updated.
5647 * valprint.h (value_print_options): Rename member pretty to
5648 pretty format. Rename member prettyprint_arrays to
5649 prettyformat_arrays. Rename member prettyprint_structs to
5650 prettyformat_structs. All uses updated.
5651 (get_no_prettyformat_print_options): Renamed from
5652 get_raw_print_options.
5653 * valprint.c (get_no_prettyformat_print_options): Renamed from
5654 get_raw_print_options. All callers updated.
5655 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5656 All callers updated.
5657 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5658 All callers updated.
5659 (_initialize_valprint): Improve help text for "set print pretty" and
5660 "set print arrays".
5661
5662 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5663
5664 * value.c (value_bits_valid): Revert previous change, and change
5665 by Pedro on 2013-07-04, due to regressions in
5666 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5667
5668 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5669 Pedro Alves <palves@redhat.com>
5670
5671 * value.c (value_bits_valid): If the value is not lval_computed
5672 or has no check validity handler then the answer is the
5673 optimized_out flag, otherwise defer to the handler.
5674
5675 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5676
5677 * top.c (print_gdb_configuration): Explain in output of
5678 --configuration what does "relocatable" mean.
5679
5680 * main.c (print_gdb_help): Regroup options in the --help text.
5681 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5682 the relevant discussions.
5683
5684 2013-07-06 Yao Qi <yao@codesourcery.com>
5685
5686 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5687 Remove parameter 'lsal'.
5688 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5689 to inner block. Caller update.
5690 (base_breakpoint_create_breakpoints_sal): Update.
5691 (bkpt_create_breakpoints_sal): Likewise.
5692 (tracepoint_create_breakpoints_sal): Likewise.
5693 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5694 element 0 of vector 'canonical->sals'.
5695
5696 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5697
5698 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5699 register number instead of the pseudo register one.
5700 (rs6000_dwarf2_reg_to_regnum): Likewise.
5701
5702 2013-07-04 Pedro Alves <palves@redhat.com>
5703
5704 * findvar.c (value_of_register): Use allocate_optimized_out_value
5705 if the register has been optimized out, instead of
5706 set_value_optimized_out.
5707 * frame-unwind.c (frame_unwind_got_optimized): Use
5708 allocate_optimized_out_value.
5709
5710 2013-07-04 Pedro Alves <palves@redhat.com>
5711
5712 * value.c (value_bits_valid): If the value is not lval_computed,
5713 or doesn't have a check_validity hook, assume the value is entirely
5714 valid.
5715
5716 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5717
5718 * stack.c (read_frame_arg): No longer fetch lazy values.
5719 * value.c (value_optimized_out): If the value is not already
5720 marked optimized out, and is lazy then fetch it.
5721 (value_primitive_field): Move optimized out check to later in the
5722 function, after we have loaded any lazy values.
5723 (value_fetch_lazy): Use optimized out flag directly rather than
5724 calling optimized_out method.
5725
5726 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5727
5728 * valops.c: Don't include "user-regs.h".
5729 (value_fetch_lazy): Moved to value.c.
5730 * value.c: Include "user-regs.h".
5731 (value_fetch_lazy): Moved from valops.c.
5732
5733 2013-07-04 Yao Qi <yao@codesourcery.com>
5734
5735 Revert:
5736 2013-06-27 Yao Qi <yao@codesourcery.com>
5737
5738 * common/create-version.sh: Update comments. Handle the case
5739 that TARGET_ALIAS is empty.
5740
5741 2013-07-03 Pedro Alves <palves@redhat.com>
5742
5743 * Makefile.in (config.status): Depend on development.sh.
5744 (aclocal_m4_deps): Add libmcheck.m4.
5745 * acinclude.m4: Include libmcheck.m4.
5746 * configure.ac: Source development.sh instead of setting
5747 'development' here. --enable-libmcheck/--disable-libmcheck code
5748 factored out to GDB_AC_LIBMCHECK. Run it.
5749 * development.sh: New file.
5750 * libmcheck.m4: New file.
5751 * configure: Regenerate.
5752
5753 2013-07-02 Tom Tromey <tromey@redhat.com>
5754
5755 * contrib/ari/update-web-ari.sh: Update for version.in change.
5756
5757 2013-07-02 Tom Tromey <tromey@redhat.com>
5758
5759 * common/ptid.h: Comment fixes.
5760
5761 2013-07-01 Tom Tromey <tromey@redhat.com>
5762
5763 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5764 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5765 (dwarf2_read_index, create_all_comp_units): Update.
5766
5767 2013-07-01 Tom Tromey <tromey@redhat.com>
5768
5769 * configure.ac (build_warnings): Add -Wold-style-definition.
5770 * configure: Rebuild.
5771 * machoread.c (_initialize_machoread): Use "(void)".
5772 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5773 use "(void)".
5774
5775 2013-07-01 Tom Tromey <tromey@redhat.com>
5776
5777 * configure.ac (build_warnings): Add -Wold-style-declaration.
5778 * configure: Rebuild.
5779 * dsrec.c (make_srec): Use "static const", not "const static".
5780 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5781 not "const static".
5782 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5783 Use "static const", not "const static".
5784 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5785 not "const static".
5786 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5787 not "const static".
5788 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5789 not "const static".
5790 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5791 not "const static".
5792 (v850_dbtrap_breakpoint_from_pc): Likewise.
5793 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5794 not "const static".
5795
5796 2013-07-01 Tom Tromey <tromey@redhat.com>
5797
5798 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5799 * configure: Rebuild.
5800
5801 2013-07-01 Pedro Alves <palves@redhat.com>
5802
5803 * defs.h: Include "pathmax.h".
5804 * utils.c: Don't include sys/param.h.
5805 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5806 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5807 instead of MAXPATHLEN.
5808 * solib-sunos.c: Don't include sys/param.h.
5809 * xcoffread.c: Don't include sys/param.h.
5810 * bsd-kvm.c: Don't include sys/param.h.
5811 * darwin-nat.c: Don't include sys/param.h.
5812 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5813 * darwin-nat-info.c: Don't include sys/param.h.
5814 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5815 MAXPATHLEN.
5816 * i386obsd-nat.c: Don't include sys/param.h.
5817 * inf-child.c: Don't include sys/param.h.
5818 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5819 * linux-fork.c: Don't include sys/param.h.
5820 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5821 * linux-nat.c: Don't include sys/param.h.
5822 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5823 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5824 * m68klinux-nat.c: Don't include sys/param.h.
5825 * nbsd-nat.c: Don't include sys/param.h.
5826 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5827 * ppc-linux-nat.c: Don't include sys/param.h.
5828 * rs6000-nat.c: Don't include sys/param.h.
5829 * spu-linux-nat.c. Don't include sys/param.h.
5830 * windows-nat.c: Don't include sys/param.h.
5831 * xtensa-linux-nat.c: Don't include sys/param.h.
5832 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5833
5834 2013-07-01 Pedro Alves <palves@redhat.com>
5835
5836 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5837 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5838 * gnulib/aclocal.m4: Regenerate.
5839 * gnulib/config.in: Regenerate.
5840 * gnulib/configure: Regenerate.
5841 * gnulib/import/pathmax.h: New file.
5842 * gnulib/import/Makefile.am: Regenerate.
5843 * gnulib/import/Makefile.in: Regenerate.
5844 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5845 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5846 * gnulib/import/m4/pathmax.m4: New file.
5847
5848 2013-07-01 Pedro Alves <palves@redhat.com>
5849
5850 * configure.ac (GDBINIT): Define, depending on host.
5851 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5852 * top.c (PATH_MAX): Delete fallback definition.
5853 (GDBINIT_FILENAME): Delete.
5854 (gdbinit): Reimplement as const char array set to the GDBINIT
5855 string constant.
5856 * top.h (gdbinit): Make const.
5857 * configure, config.in: Regenerate.
5858
5859 2013-07-01 Pedro Alves <palves@redhat.com>
5860
5861 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5862 * cli/cli-cmds.h (source_script): Likewise.
5863 * exceptions.c (catch_command_errors_const): New function.
5864 * exceptions.h (catch_command_errors_const): Declare.
5865 * main.c (get_init_files): Make parameters const, and adjust.
5866 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5867 'local_gdbinit' locals const. Adjust to use
5868 catch_command_errors_const.
5869 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5870 'local_gdbinit' locals const.
5871
5872 2013-07-01 Pedro Alves <palves@redhat.com>
5873
5874 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5875 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5876 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5877 <unistd.h>.
5878
5879 2013-07-01 Pedro Alves <palves@redhat.com>
5880
5881 Import the "unistd" gnulib module.
5882 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5883 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5884 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5885 import/m4/unistd_h.m4.
5886 * gnulib/aclocal.m4: Renenerate.
5887 * gnulib/config.in: Renenerate.
5888 * gnulib/configure: Renenerate.
5889 * gnulib/import/Makefile.am: Renenerate.
5890 * gnulib/import/Makefile.in: Renenerate.
5891 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5892 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5893 * gnulib/import/m4/off_t.m4: New file.
5894 * gnulib/import/m4/ssize_t.m4: New file.
5895 * gnulib/import/m4/sys_types_h.m4: New file.
5896 * gnulib/import/m4/unistd_h.m4: New file.
5897 * gnulib/import/sys_types.in.h: New file.
5898 * gnulib/import/unistd.c: New file.
5899 * gnulib/import/unistd.in.h: New file.
5900
5901 2013-07-01 Pedro Alves <palves@redhat.com>
5902
5903 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5904 defined instead of checking HAVE_UNISTD_H.
5905
5906 2013-07-01 Pedro Alves <palves@redhat.com>
5907
5908 Reimport gnulib from scratch.
5909 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5910 import/m4/onceonly.m4.
5911 * gnulib/aclocal.m4: Renegerate.
5912 * gnulib/config.in: Renegerate.
5913 * gnulib/configure: Renegerate.
5914 * gnulib/import/Makefile.in: Renegerate.
5915 * gnulib/import/extra/update-copyright: Renegerate.
5916 * gnulib/import/m4/onceonly.m4: Delete.
5917
5918 2013-07-01 Pedro Alves <palves@redhat.com>
5919
5920 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5921
5922 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5923
5924 Code cleanup.
5925 * remote.c (async_remote_interrupt_twice): Make it static.
5926 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5927
5928 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5929
5930 * ia64-linux-tdep.c: Include <ctype.h>.
5931 (ia64_linux_stap_is_single_operand): New function.
5932 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5933
5934 2013-06-28 Tom Tromey <tromey@redhat.com>
5935
5936 * Makefile.in (version.c): Use version.in, not
5937 common/version.in.
5938 * common/create-version.sh: Likewise.
5939 * common/version.in: Move...
5940 * version.in: ...here.
5941
5942 2013-06-28 Pedro Alves <palves@redhat.com>
5943
5944 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5945 here.
5946 * utils.h (pagination_enabled): Declare.
5947
5948 2013-06-28 Pedro Alves <palves@redhat.com>
5949
5950 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5951 Move higher up in file.
5952
5953 2013-06-28 Tom Tromey <tromey@redhat.com>
5954
5955 * tracepoint.c (deprecated_readline_begin_hook)
5956 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5957 declare.
5958
5959 2013-06-28 Pedro Alves <palves@redhat.com>
5960
5961 PR tui/14880
5962 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5963 checking if they're available.
5964 * value.c (value_available_contents_eq): Change comment.
5965 * value.h (value_available_contents_eq): Expand comment.
5966
5967 2013-06-27 Tom Tromey <tromey@redhat.com>
5968
5969 * target.c (find_run_target): Remove.
5970 * target.h (find_run_target): Remove.
5971
5972 2013-06-27 Tom Tromey <tromey@redhat.com>
5973
5974 * corelow.c (core_gdbarch): Now static.
5975
5976 2013-06-27 Tom Tromey <tromey@redhat.com>
5977
5978 * target.c (target_struct_index): Remove.
5979
5980 2013-06-27 Pedro Alves <palves@redhat.com>
5981
5982 * infrun.c: Remove comment describing the 'stepping over runtime
5983 loader dynamic symbol resolution code' mechanism; moved to
5984 gdbint.texinfo.
5985
5986 2013-06-27 Pedro Alves <palves@redhat.com>
5987
5988 * exceptions.c (catch_command_errors): Remove spurious space.
5989 * exceptions.h (catch_command_errors): Second parameter is "arg",
5990 not "command".
5991
5992 2013-06-27 Yao Qi <yao@codesourcery.com>
5993
5994 * common/create-version.sh: Update comments. Handle the case
5995 that TARGET_ALIAS is empty.
5996
5997 2013-06-26 Pedro Alves <palves@redhat.com>
5998
5999 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
6000 comment.
6001
6002 2013-06-26 Pedro Alves <palves@redhat.com>
6003
6004 * infrun.c: Update comments on stepping over runtime loader
6005 dynamic symbol resolution code.
6006
6007 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
6008
6009 * ax-gdb.h (union exp_element): Forward declare.
6010 * parser-defs.h: Include expression.h.
6011
6012 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6013
6014 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6015
6016 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6017
6018 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6019
6020 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6021
6022 Fix trace-status to output proper start-time and stop-time.
6023 * tracepoint.c (trace_status_command): Fix type of printf arg to
6024 prevent improper type conversion.
6025 (trace_status_mi): Likewise.
6026
6027 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6028
6029 * mips-tdep.c (mips_next_pc): Fix a typo.
6030
6031 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6032
6033 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6034
6035 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6036 Yao Qi <yao@codesourcery.com>
6037
6038 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6039 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6040 * mi/mi-main.c (print_variable_or_computed): New function.
6041 (mi_cmd_trace_frame_collected): New function.
6042 * tracepoint.c (find_trace_state_variable_by_number): New.
6043 (struct traceframe_info): Move to tracepoint.h
6044 (struct collection_list): Likewise.
6045 (do_collect_symbol): Include locals and arguments in the
6046 collected variables list.
6047 (clear_collection_list): Clear wholly collected variables list
6048 and computed variables list.
6049 (append_exp): New function.
6050 (encode_actions_1): Include variables in the wholly
6051 collected variables list. Include memory ranges and
6052 full-fledged expressions in the computed expressions list.
6053 (encode_actions): Move some code to ...
6054 Return the cleanup chain.
6055 (encode_actions_rsp): ... here. New function.
6056 (get_traceframe_location, get_traceframe_info): Remove static.
6057 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6058 (struct collection_list): Moved from tracepoint.c. Add two
6059 new fields 'wholly_collected' and 'computed'.
6060 (find_trace_state_variable_by_number): Declare.
6061 (encode_actions): Adjust declaration.
6062 (encode_actions_rsp): Declare.
6063 (get_traceframe_info, get_traceframe_location): Declare.
6064
6065 * NEWS: Mention new MI command -trace-frame-collected.
6066
6067 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6068 Yao Qi <yao@codesourcery.com>
6069
6070 * ctf.c (ctf_traceframe_info): Push trace state variables
6071 present in the trace data into the traceframe info object.
6072 * breakpoint.c (DEF_VEC_I): Remove.
6073 * common/filestuff.c (DEF_VEC_I): Likewise.
6074 * dwarf2loc.c (DEF_VEC_I): Likewise.
6075 * mi/mi-main.c (DEF_VEC_I): Likewise.
6076 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6077 * features/traceframe-info.dtd: Add tvar element and its
6078 attributes.
6079 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6080 (build_traceframe_info): Push trace state variables present in
6081 the trace data into the traceframe info object.
6082 (traceframe_info_start_tvar): New function.
6083 (tvar_attributes): New.
6084 (traceframe_info_children): Add "tvar" element.
6085 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6086
6087 * NEWS: Mention the change in GDB and GDBserver.
6088
6089 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6090 Yao Qi <yao@codesourcery.com>
6091
6092 * tracepoint.c (trace_dump_command): Move code to ...
6093 (get_traceframe_location): ... here. New.
6094
6095 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6096 Yao Qi <yao@codesourcery.com>
6097
6098 * tracepoint.c (trace_dump_command): GDB emits an error
6099 instead of a warning when a traceframe is not selected.
6100
6101 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6102 Yao Qi <yao@codesourcery.com>
6103
6104 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6105 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6106 in collection_list.
6107 (do_clear_collection_list, init_collection_list): New.
6108 (encode_actions): Add local variables 'tracepoint_list' and
6109 'stepping_list'. Call init_collection_list and make cleanup
6110 which calls do_clear_collection_list. Don't call
6111 clear_collection_list.
6112 (_initialize_tracepoint): Delete references to
6113 'tracepoint_list' and 'stepping_list'.
6114
6115 2013-06-25 Tom Tromey <tromey@redhat.com>
6116
6117 * common/create-version.sh (date): Use "$", not "$$" in sed
6118 expression.
6119
6120 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6121
6122 * NEWS (New targets): Add entry for TI MSP430.
6123
6124 2013-06-25 Yao Qi <yao@codesourcery.com>
6125
6126 * remote.c (remote_start_remote): Move code to upload tsv
6127 earlier.
6128
6129 2013-06-25 Yao Qi <yao@codesourcery.com>
6130 Hui Zhu <hui@codesourcery.com>
6131 Pedro Alves <palves@redhat.com>
6132
6133 PR breakpoints/15075
6134 PR breakpoints/15434
6135 * breakpoint.c (bpstat_stop_status): Call
6136 b->ops->after_condition_true.
6137 (update_dprintf_command_list): Don't append "continue" command
6138 to the command list of dprintf breakpoint.
6139 (base_breakpoint_after_condition_true): New function.
6140 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6141 (dprintf_after_condition_true): New function.
6142 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6143 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6144
6145 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6146
6147 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6148 (ALLDEPFILES): Add msp430-tdep.c.
6149 * configure.tgt (msp430*-*-elf): New target.
6150 * msp430-tdep.c: New file.
6151
6152 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6153
6154 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6155 microMIPS synthetic symbols.
6156
6157 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6158
6159 * objfiles.h (pc_in_section): New prototype.
6160 (in_plt_section): Remove name argument, replace prototype with
6161 static inline function.
6162 * mips-tdep.h: Include "objfiles.h".
6163 (in_mips_stubs_section): New function.
6164 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6165 in_solib_call_trampoline member.
6166 (hppa_in_solib_call_trampoline): Remove name argument.
6167 * objfiles.c (pc_in_section): New function.
6168 (in_plt_section): Remove function.
6169 * mips-linux-tdep.c: Include "objfiles.h".
6170 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6171 name argument. Return 1 rather than the low 16-bit halfword of
6172 any instruction examined.
6173 (mips_linux_in_dynsym_resolve_code): Update
6174 mips_linux_in_dynsym_stub call accordingly.
6175 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6176 rather than an equivalent hand-coded sequence.
6177 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6178 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6179 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6180 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6181 in_opd_section.
6182 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6183 on call to tdep->in_solib_call_trampoline.
6184 (hppa_in_solib_call_trampoline): Remove name argument, update
6185 according to in_plt_section change.
6186 (hppa_skip_trampoline_code): Update according to in_plt_section
6187 change.
6188 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6189 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6190 Likewise.
6191 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6192 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6193 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6194 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6195 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6196 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6197 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6198 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6199 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6200 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6201 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6202 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6203 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6204
6205 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6206
6207 * common/create-version.sh: Fix expansion of $host_alias
6208 and $target_alias in generation of HOST_NAME and TARGET_NAME
6209 (resp.).
6210
6211 2013-06-24 Tom Tromey <tromey@redhat.com>
6212
6213 * common/create-version.sh: New file.
6214 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6215 create-version.sh.
6216 (HFILES_NO_SRCDIR): Use common/version.h.
6217 * version.in: Move to ...
6218 * common/version.in: ... here. Replace date with "DATE".
6219 * version.h: Move to ...
6220 * common/version.h: ... here.
6221
6222 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6223
6224 * gdb/gnulib/Makefile.in: Update date in copyright header.
6225 * gdb/gnulib/configure.ac: Ditto.
6226 * gdb/gnulib/update-gnulib.sh: Ditto.
6227
6228 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6229
6230 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6231 "gdb/gnulib/import".
6232
6233 2013-06-21 Will Newton <will.newton@linaro.org>
6234
6235 * doublest.c (ldfrexp): Remove function.
6236 (convert_doublest_to_floatformat): Call frexpl instead of
6237 ldfrexp.
6238
6239 2013-06-21 Will Newton <will.newton@linaro.org>
6240
6241 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6242 * gnulib/aclocal.m4: Regenerate.
6243 * gnulib/config.in: Regenerate.
6244 * gnulib/configure: Regenerate.
6245 * gnulib/import/Makefile.am: Update.
6246 * gnulib/import/Makefile.in: Update.
6247 * gnulib/import/m4/gnulib-cache.m4: Update.
6248 * gnulib/import/m4/gnulib-comp.m4: Update.
6249 * gnulib/import/float+.h: Import.
6250 * gnulib/import/float.c: Import.
6251 * gnulib/import/float.in.h: Import.
6252 * gnulib/import/fpucw.h: Import.
6253 * gnulib/import/frexp.c: Import.
6254 * gnulib/import/frexpl.c: Import.
6255 * gnulib/import/isnan.c: Import.
6256 * gnulib/import/isnand-nolibm.h: Import.
6257 * gnulib/import/isnand.c: Import.
6258 * gnulib/import/isnanl-nolibm.h: Import.
6259 * gnulib/import/isnanl.c: Import.
6260 * gnulib/import/itold.c: Import.
6261 * gnulib/import/m4/exponentd.m4: Import.
6262 * gnulib/import/m4/exponentl.m4: Import.
6263 * gnulib/import/m4/float_h.m4: Import.
6264 * gnulib/import/m4/fpieee.m4: Import.
6265 * gnulib/import/m4/frexp.m4: Import.
6266 * gnulib/import/m4/frexpl.m4: Import.
6267 * gnulib/import/m4/isnand.m4: Import.
6268 * gnulib/import/m4/isnanl.m4: Import.
6269 * gnulib/import/m4/math_h.m4: Import.
6270 * gnulib/import/math.c: Import.
6271 * gnulib/import/math.in.h: Import.
6272
6273 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6274
6275 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6276 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6277 signature_INTEL_edx comparisons.
6278
6279 2013-06-20 Doug Evans <dje@google.com>
6280
6281 symtab/15652
6282 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6283 All callers updated.
6284 (open_dwp_file): If we can't find the dwp file, search the basename
6285 in debug-file-directory.
6286
6287 * dwarf2read.c (struct dwp_file): Fix comment.
6288 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6289
6290 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6291 better.
6292
6293 2013-06-20 Yao Qi <yao@codesourcery.com>
6294
6295 * breakpoint.c (create_breakpoint): Fix code indentation.
6296
6297 2013-06-20 Yao Qi <yao@codesourcery.com>
6298
6299 * breakpoint.c (create_breakpoints_sal_default): Remove
6300 parameter 'lsal'. Update declaration.
6301 (bkpt_create_breakpoints_sal): Caller update.
6302 (tracepoint_create_breakpoints_sal): Likewise.
6303
6304 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6305 Yao Qi <yao@codesourcery.com>
6306
6307 * NEWS: Mention the new option '--skip-unavailable' of command
6308 -data-list-register-values.
6309 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6310 --skip-unavailable option. Adjust to use output_register.
6311 (output_register): Add new 'skip_unavailable' parameter.
6312 Handle it.
6313
6314 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6315
6316 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6317 common/i386-gcc-cpuid.h.
6318 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6319 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6320 Copy the latest version from upstream gcc.
6321 * common/linux-btrace.c: Include i386-cpuid.h.
6322 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6323 call to i386_cpuid.
6324 (cpu_supports_btrace): Likewise.
6325 * go32-nat.c: Include i386-cpuid.h.
6326 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6327
6328 2013-06-19 Doug Evans <dje@google.com>
6329
6330 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6331 (get_section_index): Ditto.
6332
6333 2013-06-19 Tom Tromey <tromey@redhat.com>
6334
6335 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6336 "dprintf" help.
6337
6338 2013-06-18 Doug Evans <dje@google.com>
6339
6340 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6341 before using it.
6342 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6343 Move test of cu_index closer to use. Print complaint if cu_index
6344 is bad.
6345
6346 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6347
6348 * machoread.c (oso_vector): Delete this global.
6349 (macho_register_oso): Add new parameter "oso_vector_ptr".
6350 Use it instead of the "oso_vector" global.
6351 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6352 (macho_symfile_read): Use a local oso_vector, to be free'ed
6353 at the end of this function, in place of the old "oso_vector"
6354 global. Update various function calls accordingly. Use one
6355 single cleanup chain for the entire function.
6356
6357 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6358
6359 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6360 DWARF2_PER_OBJFILE by uses of DATA instead.
6361
6362 2013-06-18 Tom Tromey <tromey@redhat.com>
6363
6364 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6365 argument.
6366 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6367 Special case signals other than GDB_SIGNAL_TRAP.
6368 (explains_signal_watchpoint): New function.
6369 (base_breakpoint_explains_signal): Add 'sig' argument.
6370 (initialize_breakpoint_ops): Set 'explains_signal' method for
6371 watchpoints.
6372 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6373 signal argument.
6374 (bpstat_explains_signal): Likewise.
6375 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6376
6377 2013-06-18 Tom Tromey <tromey@redhat.com>
6378
6379 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6380
6381 2013-06-18 Tom Tromey <tromey@redhat.com>
6382
6383 * python/python.c (finish_python_initialization): Decref
6384 'pythondir' on failure path as well.
6385
6386 2013-06-18 Tom Tromey <tromey@redhat.com>
6387
6388 PR symtab/15391:
6389 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6390 after taking bits_to_skip into account. Sign extend byte_offset.
6391 * utils.h (gdb_sign_extend): Declare.
6392 * utils.c (gdb_sign_extend): New function.
6393
6394 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6395
6396 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6397
6398 2013-06-17 Pierre Muller <muller@sourceware.org>
6399
6400 * corelow.c (core_open): Print GDB signal name instead of target
6401 signal number.
6402
6403 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6404
6405 * .gitignore: Add /gcore.
6406
6407 2013-06-13 Doug Evans <dje@google.com>
6408
6409 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6410 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6411
6412 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6413
6414 * stack.c (backtrace_command_1): Fix indentation.
6415
6416 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6417
6418 * window-nat.c (thread_rec): Add missing empty line after
6419 local variable declaration.
6420
6421 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6422
6423 * windows-nat.c (thread_rec): Revert format used to print
6424 error code returned by SuspendThread from %d back to %u.
6425
6426 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6427
6428 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6429 ID in debug trace.
6430 (get_windows_debug_event): Likewise, for all debug traces.
6431
6432 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6433
6434 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6435 warning message.
6436
6437 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6438 Yao Qi <yao@codesourcery.com>
6439
6440 * mi/mi-main.c (get_register): Remove declaration.
6441 (output_register): Declare.
6442 (mi_cmd_data_list_register_values): Remove local variable
6443 'tuple_cleanup'. Move some code into output_register.
6444 (get_register): Renamed to ...
6445 (output_register): ... this. Output the register's
6446 "number" ui_out tuple here.
6447
6448 2013-06-07 Pedro Alves <palves@redhat.com>
6449
6450 * darwin-nat.c: Fix formating in copyright header.
6451 * darwin-nat.h: Likewise.
6452 * gnu-nat.c: Likewise.
6453 * machoread.c: Likewise.
6454
6455 2013-06-07 Pedro Alves <palves@redhat.com>
6456
6457 PR server/14823
6458 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6459 static. Output a global target description pointer.
6460 (init_registers_${name}): Adjust to initialize a
6461 target description structure.
6462
6463 2013-06-07 Will Newton <will.newton@linaro.org>
6464
6465 * printcmd.c (build_address_symbolic): Call
6466 gdbarch_addr_bits_remove for text minimal symbols.
6467
6468 2013-06-07 Will Newton <will.newton@linaro.org>
6469
6470 * MAINTAINERS: Add myself to Write After Approval.
6471
6472 2013-06-07 Yao Qi <yao@codesourcery.com>
6473
6474 * tracepoint.c (start_tracing): Move code to ...
6475 (trace_reset_local_state): ... here. New.
6476 (disconnect_tracing): Don't call set_current_traceframe,
6477 set_tracepoint_num, and set_traceframe_context. Call
6478 trace_reset_local_state instead.
6479 (tfile_close): Call trace_reset_local_state.
6480 * ctf.c (ctf_close): Likewise.
6481 * remote.c (remote_close): Likewise.
6482 * tracepoint.h (trace_reset_local_state): Declare.
6483
6484 2013-06-06 Doug Evans <dje@google.com>
6485
6486 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6487 and fix header docs.
6488
6489 2013-06-05 Doug Evans <dje@google.com>
6490 Keith Seitz <keiths@redhat.com>
6491
6492 PR 15519
6493 * cp-namespace.c (find_symbol_in_baseclass): Call
6494 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6495 Check result of call to lookup_symbol_static.
6496 Call lookup_static_symbol_aux unconditionally.
6497 Call check_typedef on base types before accessing them.
6498 (cp_lookup_nested_symbol): Fix comment.
6499
6500 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6501
6502 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6503 minimal symbols pointing to function descriptors.
6504
6505 2013-06-05 Tom Tromey <tromey@redhat.com>
6506
6507 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6508
6509 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6510 Pedro Alves <palves@redhat.com>
6511
6512 * remote.c (remote_wait_as): Restore signal handler before returning
6513 when GDB gets a notification.
6514
6515 2013-06-04 Gary Benson <gbenson@redhat.com>
6516
6517 PR 2328
6518 * breakpoint.h (handle_solib_event): Moved function declaration
6519 to solib.h.
6520 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6521 (bpstat_stop_status): Pass new argument to handle_solib_event.
6522 * solib.h (update_solib_breakpoints): New function declaration.
6523 (handle_solib_event): Moved function declaration from
6524 breakpoint.h.
6525 * solib.c (update_solib_breakpoints): New function.
6526 (handle_solib_event): Moved function from breakpoint.c.
6527 Updated to call solib_ops->handle_event if not NULL.
6528 * solist.h (target_so_ops): New fields "update_breakpoints" and
6529 "handle_event".
6530 * infrun.c (set_stop_on_solib_events): New function.
6531 (_initialize_infrun): Use the above for "set
6532 stop-on-solib-events".
6533 (handle_inferior_event): Pass new argument to handle_solib_event.
6534 * solib-svr4.c (probe.h): New include.
6535 (svr4_free_library_list): New forward declaration.
6536 (probe_action): New enum.
6537 (probe_info): New struct.
6538 (probe_info): New static variable.
6539 (NUM_PROBES): New definition.
6540 (svr4_info): New fields "using_xfer", "probes_table" and
6541 "solib_list".
6542 (free_probes_table): New function.
6543 (free_solib_list): New function.
6544 (svr4_pspace_data_cleanup): Free probes table and solib list.
6545 (svr4_copy_library_list): New function.
6546 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6547 (svr4_read_so_list): New parameter "prev_lm".
6548 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6549 (svr4_current_sos): New function.
6550 (probe_and_action): New struct.
6551 (hash_probe_and_action): New function.
6552 (equal_probe_and_action): Likewise.
6553 (register_solib_event_probe): Likewise.
6554 (solib_event_probe_at): Likewise.
6555 (solib_event_probe_action): Likewise.
6556 (solist_update_full): Likewise.
6557 (solist_update_incremental): Likewise.
6558 (disable_probes_interface_cleanup): Likewise.
6559 (svr4_handle_solib_event): Likewise.
6560 (svr4_update_solib_event_breakpoint): Likewise.
6561 (svr4_update_solib_event_breakpoints): Likewise.
6562 (svr4_create_solib_event_breakpoints): Likewise.
6563 (enable_break): Free probes table before creating breakpoints.
6564 Use svr4_create_solib_event_breakpoints to create breakpoints.
6565 (svr4_solib_create_inferior_hook): Free the solib list.
6566 (_initialize_svr4_solib): Initialise
6567 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6568
6569 2013-06-04 Gary Benson <gbenson@redhat.com>
6570
6571 * target.h (target_ops): New field
6572 "to_augmented_libraries_svr4_read".
6573 (target_augmented_libraries_svr4_read): New macro.
6574 * target.c (update_current_target): Handle
6575 to_augmented_libraries_svr4_read.
6576 * remote.c (remote_state): New field
6577 "augmented_libraries_svr4_read".
6578 (remote_augmented_libraries_svr4_read_feature): New function.
6579 (remote_protocol_features): Add entry for
6580 "augmented-libraries-svr4-read".
6581 (remote_augmented_libraries_svr4_read): New function.
6582 (init_remote_ops): Initialize
6583 remote_ops.to_augmented_libraries_svr4_read.
6584
6585 2013-06-04 Gary Benson <gbenson@redhat.com>
6586
6587 * NEWS: Update.
6588
6589 2013-06-04 Gary Benson <gbenson@redhat.com>
6590
6591 * objfiles.h (inhibit_section_map_updates): New function
6592 declaration.
6593 (resume_section_map_updates): Likewise.
6594 (resume_section_map_updates_cleanup): Likewise.
6595 * objfiles.c (objfile_pspace_info): Removed field
6596 "objfiles_changed_p". New fields "new_objfiles_available",
6597 "section_map_dirty" and "inhibit_updates".
6598 (allocate_objfile): Set new_objfiles_available.
6599 (free_objfile): Set section_map_dirty.
6600 (objfile_relocate1): Likewise.
6601 (in_plt_section): Likewise.
6602 (find_pc_section): Update the conditions under which the
6603 section map will be updated.
6604 (inhibit_section_map_updates): New function.
6605 (resume_section_map_updates): Likewise.
6606 (resume_section_map_updates_cleanup): Likewise.
6607
6608 2013-06-04 Gary Benson <gbenson@redhat.com>
6609
6610 * probe.h (get_probe_argument_count): New declaration.
6611 (evaluate_probe_argument): Likewise.
6612 * probe.c (get_probe_argument_count): New function.
6613 (evaluate_probe_argument): Likewise.
6614 (probe_safe_evaluate_at_pc): Use the above new functions.
6615
6616 2013-06-04 Alan Modra <amodra@gmail.com>
6617
6618 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6619 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6620 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6621 target mem reads on optional insns.
6622 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6623 ppc_insns_match_pattern calls.
6624 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6625 Add match for power7 thread safety insns, and new order of
6626 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6627 invocation in comment, and update rest of comment.
6628 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6629 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6630 (ppc64_standard_linkage2_target): Update insn offsets.
6631 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6632 stubs first. Update calls.
6633
6634 2013-06-04 Yao Qi <yao@codesourcery.com>
6635
6636 * solib.c (solib_find): Don't need dir separator if path has
6637 drive spec.
6638
6639 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6640
6641 Revert (indirectly causes a SIGSEGV):
6642 * machoread.c (macho_symfile_read): Assign first cleanup to
6643 'back_to'.
6644
6645 2013-06-03 Yao Qi <yao@codesourcery.com>
6646
6647 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6648 mi-parse.c. Make them static.
6649 (mi_all_values): Likewise.
6650 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6651 mi_parse_print_values. Make it external.
6652 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6653 Remove the declarations.
6654 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6655 * mi/mi-parse.h (mi_parse_print_values): Declare.
6656 * mi/mi-cmd-stack.c: Include mi-parse.h.
6657 (parse_print_values): Remove
6658 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6659 of parse_print_values.
6660 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6661
6662 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6663 Yao Qi <yao@codesourcery.com>
6664
6665 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6666 (encode_actions): Move code to ...
6667 (all_tracepoint_actions_and_cleanup): ... here. New.
6668 (trace_dump_command): Likewise.
6669
6670 2013-05-30 Tom Tromey <tromey@redhat.com>
6671
6672 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6673
6674 2013-05-30 Tom Tromey <tromey@redhat.com>
6675
6676 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6677 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6678 'old_chain' argument. Add 'parser_result' argument.
6679 (gdb_xml_create_parser_and_cleanup): Remove old version.
6680 (gdb_xml_parse_quick): Update.
6681 (xml_process_xincludes): Update.
6682 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6683 declare.
6684
6685 2013-05-30 Tom Tromey <tromey@redhat.com>
6686
6687 * probe.c (collect_probes): Check arguments for NULL before
6688 calling compile_rx_or_error.
6689 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6690 Remove NULL return.
6691
6692 2013-05-30 Tom Tromey <tromey@redhat.com>
6693
6694 * infrun.c (adjust_pc_after_break): Introduce an outer null
6695 cleanup.
6696
6697 2013-05-30 Tom Tromey <tromey@redhat.com>
6698
6699 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6700
6701 2013-05-30 Tom Tromey <tromey@redhat.com>
6702
6703 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6704 for 'old_chain'. Do not check 'head' before processing
6705 cleanups.
6706
6707 2013-05-30 Tom Tromey <tromey@redhat.com>
6708
6709 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6710 "cleanup_tuple".
6711
6712 2013-05-30 Tom Tromey <tromey@redhat.com>
6713
6714 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6715 inner scope. Unconditionally call do_cleanups.
6716
6717 2013-05-30 Tom Tromey <tromey@redhat.com>
6718
6719 * source.c (find_and_open_source): Call do_cleanups.
6720
6721 2013-05-30 Tom Tromey <tromey@redhat.com>
6722
6723 * linux-thread-db.c (thread_db_load_search): Unconditionally
6724 call do_cleanups.
6725
6726 2013-05-30 Tom Tromey <tromey@redhat.com>
6727
6728 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6729 for 'cleanup'; instead use a later one.
6730
6731 2013-05-30 Tom Tromey <tromey@redhat.com>
6732
6733 * python/py-breakpoint.c (bppy_get_commands): Use
6734 explicit, unconditional return.
6735 * python/py-frame.c (frapy_read_var): Likewise.
6736 * python/python.c (gdbpy_decode_line): Likewise.
6737
6738 2013-05-30 Tom Tromey <tromey@redhat.com>
6739
6740 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6741 do_cleanups on all return paths.
6742
6743 2013-05-30 Tom Tromey <tromey@redhat.com>
6744
6745 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6746
6747 2013-05-30 Tom Tromey <tromey@redhat.com>
6748
6749 * stabsread.c (read_struct_type): Call do_cleanups along
6750 all return paths.
6751
6752 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6753
6754 * mips-linux-tdep.c: Adjust formatting throughout.
6755
6756 2013-05-30 Tom Tromey <tromey@redhat.com>
6757
6758 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6759 along all return paths.
6760
6761 2013-05-30 Tom Tromey <tromey@redhat.com>
6762
6763 * symfile.c (find_separate_debug_file): Call do_cleanups
6764 along all return paths.
6765
6766 2013-05-30 Tom Tromey <tromey@redhat.com>
6767
6768 * symtab.c (search_symbols): Introduce a null cleanup for
6769 'retval_chain'.
6770
6771 2013-05-30 Tom Tromey <tromey@redhat.com>
6772
6773 * python/py-value.c (valpy_binop): Call do_cleanups before
6774 exiting loop.
6775
6776 2013-05-30 Tom Tromey <tromey@redhat.com>
6777
6778 * python/py-prettyprint.c (print_children): Remove extra
6779 do_cleanups call.
6780
6781 2013-05-30 Tom Tromey <tromey@redhat.com>
6782
6783 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6784 all return paths.
6785
6786 2013-05-30 Tom Tromey <tromey@redhat.com>
6787
6788 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6789 along all return paths.
6790
6791 2013-05-30 Tom Tromey <tromey@redhat.com>
6792
6793 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6794 call do_cleanups.
6795
6796 2013-05-30 Tom Tromey <tromey@redhat.com>
6797
6798 * varobj.c (c_value_of_root): Call do_cleanups along all
6799 return paths.
6800
6801 2013-05-30 Tom Tromey <tromey@redhat.com>
6802
6803 * tracepoint.c (trace_dump_command): Unconditionally call
6804 do_cleanups.
6805
6806 2013-05-30 Tom Tromey <tromey@redhat.com>
6807
6808 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6809 do_cleanups earlier.
6810
6811 2013-05-30 Tom Tromey <tromey@redhat.com>
6812
6813 * machoread.c (macho_symfile_read): Assign first cleanup to
6814 'back_to'.
6815
6816 2013-05-30 Tom Tromey <tromey@redhat.com>
6817
6818 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6819
6820 2013-05-30 Tom Tromey <tromey@redhat.com>
6821
6822 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6823
6824 2013-05-30 Tom Tromey <tromey@redhat.com>
6825
6826 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6827 call discard_cleanups.
6828 (inf_ptrace_attach): Likewise.
6829
6830 2013-05-30 Tom Tromey <tromey@redhat.com>
6831
6832 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6833 return paths.
6834 (mips_initialize): Likewise.
6835 (common_open): Call do_cleanups.
6836
6837 2013-05-30 Tom Tromey <tromey@redhat.com>
6838
6839 * utils.c (internal_vproblem): Call do_cleanups.
6840
6841 2013-05-30 Tom Tromey <tromey@redhat.com>
6842
6843 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6844
6845 2013-05-30 Tom Tromey <tromey@redhat.com>
6846
6847 * cli/cli-script.c (setup_user_args): Don't return after error.
6848
6849 2013-05-30 Tom Tromey <tromey@redhat.com>
6850
6851 * somread.c (som_symtab_read): Call do_cleanups.
6852
6853 2013-05-30 Tom Tromey <tromey@redhat.com>
6854
6855 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6856
6857 2013-05-30 Tom Tromey <tromey@redhat.com>
6858
6859 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6860 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6861 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6862 * source.c (show_substitute_path_command): Call do_cleanups.
6863 (unset_substitute_path_command, set_substitute_path_command):
6864 Likewise.
6865 * symfile.c (load_command): Call do_cleanups.
6866
6867 2013-05-30 Tom Tromey <tromey@redhat.com>
6868
6869 * contrib/cleanup_check.py: New file.
6870 * contrib/gcc-with-excheck: Add option parsing.
6871
6872 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6873
6874 * windows-nat.c (windows_delete_thread): Add missing space
6875 in cast expression.
6876
6877 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6878
6879 * inferior.c (top level): Include tilde.h.
6880 (add_inferior_command): Call tilde_expand on the value of 'exec'
6881 argument.
6882
6883 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6884 Yao Qi <yao@codesourcery.com>
6885
6886 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6887 Caller update.
6888 (encode_actions): Likewise.
6889 * remote.c (remote_download_tracepoint): Caller update.
6890 * tracepoint.h (encode_actions): Update declaration.
6891
6892 2013-05-30 Pedro Alves <palves@redhat.com>
6893
6894 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6895 pointer.
6896
6897 2013-05-30 Yao Qi <yao@codesourcery.com>
6898
6899 * remote.c (remote_check_symbols): Remove unused parameter
6900 'objfile'.
6901 Declaration update.
6902 (remote_start_remote, remote_new_objfile): Caller update.
6903
6904 2013-05-30 Yao Qi <yao@codesourcery.com>
6905
6906 * mi/mi-cmds.c (mi_cmds): Define MI command
6907 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6908 DEF_MI_CMD_CLI.
6909
6910 2013-05-29 Pedro Alves <palves@redhat.com>
6911
6912 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6913 (remote_insert_watchpoint, remote_remove_watchpoint)
6914 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6915 (remote_verify_memory, compare_sections_command)
6916 (remote_search_memory): Set the general process/thread on the
6917 remote side.
6918
6919 2013-05-29 Pedro Alves <palves@redhat.com>
6920
6921 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6922 (_initialize_aarch64_tdep): Don't call
6923 initialize_tdesc_aarch64_without_fpu.
6924 * features/Makefile (WHICH): Remove reference to
6925 aarch64-without-fpu.
6926 * features/aarch64-without-fpu.c: Delete file.
6927 * regformats/aarch64-without-fpu.dat: Delete file.
6928
6929 2013-05-28 Yao Qi <yao@codesourcery.com>
6930
6931 * tracepoint.c (stringify_collection_list): Remove parameter
6932 'string'.
6933 (encode_actions): Caller update. Remove local variables.
6934
6935 2013-05-24 Yao Qi <yao@codesourcery.com>
6936
6937 * tracepoint.c (TFILE_PID): Remove.
6938 (tfile_open): Don't add thread and inferior.
6939 (tfile_close): Don't set 'inferior_ptid'. Don't call
6940 exit_inferior_silent.
6941 (tfile_thread_alive): Remove.
6942 (init_tfile_ops): Don't set field 'to_thread_alive' of
6943 tfile_ops.
6944
6945 2013-05-23 Doug Evans <dje@google.com>
6946
6947 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6948
6949 2013-05-23 Pedro Alves <palves@redhat.com>
6950
6951 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6952 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6953 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6954 Only define if HAVE_SOCKETS is defined.
6955 * configure.ac: Check for sys/socket.h.
6956 * config.in, configure: Regenerate.
6957
6958 2013-05-23 Pedro Alves <palves@redhat.com>
6959
6960 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6961 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6962 printing uint32_t variables.
6963
6964 2013-05-23 Pedro Alves <palves@redhat.com>
6965
6966 * NEWS: Mention GDBserver range stepping support.
6967
6968 2013-05-23 Yao Qi <yao@codesourcery.com>
6969 Pedro Alves <palves@redhat.com>
6970
6971 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6972 field.
6973 * infcmd.c (step_once, until_next_command): Enable range stepping.
6974 * infrun.c (displaced_step_prepare): Disable range stepping.
6975 (resume): Disable range stepping if stepping over a breakpoint or
6976 we have software watchpoints. If range stepping is enabled,
6977 assert the thread is in the stepping range.
6978 (clear_proceed_status_thread): Clear may_range_step.
6979 (handle_inferior_event): Disable range stepping as soon as we know
6980 the thread that hit the event. Re-enable it whenever we're going
6981 to step with a step range.
6982 * remote.c (struct vCont_action_support) <r>: New field.
6983 (use_range_stepping): New global.
6984 (remote_vcont_probe): Handle 'r' action.
6985 (append_resumption): Append an 'r' action if the thread may range
6986 step.
6987 (show_range_stepping): New function.
6988 (set_range_stepping): New function.
6989 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6990 'set range-stepping' and 'show range-stepping' commands.
6991 * NEWS: Mention range stepping, the new vCont;r action, and the
6992 new "set/show range-stepping" commands.
6993
6994 2013-05-23 Yao Qi <yao@codesourcery.com>
6995 Pedro Alves <palves@redhat.com>
6996
6997 * remote.c (struct vCont_action_support): New struct.
6998 (struct remote_state) <support_vCont_t>: Remove field.
6999 <vCont_actions_support>: New field.
7000 (remote_vcont_probe, remote_stop_ns): Update.
7001
7002 2013-05-23 Yao Qi <yao@codesourcery.com>
7003 Pedro Alves <palves@redhat.com>
7004
7005 * gdbthread.h (pc_in_thread_step_range): New declaration.
7006 * thread.c (pc_in_thread_step_range): New function.
7007 * infrun.c (handle_inferior_event): Use it.
7008
7009 2013-05-23 Joel Brobecker <brobecker@adacore.com>
7010
7011 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
7012 of sprintf.
7013
7014 2013-05-22 Keith Seitz <keiths@redhat.com>
7015
7016 * ada-lang.c (is_known_support_routine): Add explicit free of
7017 'func_name' from find_frame_funname.
7018 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7019 for func_name from find_frame_funname.
7020 * python/py-frame.c (frapy_name): Add explicit free of
7021 'name' from find_frame_funname.
7022 * stack.c (find_frame_funname): Add comment explaining that
7023 funcp must be freed by the caller.
7024 Return copy of symbol names instead of pointers.
7025 (print_frame): Add a cleanup for 'funname' from
7026 find_frame_funname.
7027 * stack.h (find_frame_funname): Remove "const" from
7028 'funname' parameter.
7029
7030 2013-05-22 Tom Tromey <tromey@redhat.com>
7031
7032 PR c++/15401:
7033 * c-valprint.c (c_value_print): Use value_addr for
7034 references. Convert back to reference type with value_ref.
7035
7036 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7037
7038 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7039 unloaded DLL, it will be done by handle_solib_event. See
7040 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7041 details.
7042
7043 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7044
7045 * ui-out.c: Create typedef ui_out_level_p and define vector
7046 operations for that type.
7047 (struct ui_out): Use a vector instead of an array.
7048 (current_level): Return level from a vector.
7049 (push_level): Create a level in a vector.
7050 (pop_level): Delete a level in a vector.
7051 (ui_out_new): Create initial level zero level, and store in a
7052 vector.
7053 (ui_out_destroy): Add vector cleanup.
7054
7055 2013-05-22 Pedro Alves <palves@redhat.com>
7056
7057 * python/python-internal.h (gdb_Py_DECREF): Tag with
7058 "ARI: editCase function".
7059
7060 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7061
7062 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7063
7064 2013-05-21 Pedro Alves <palves@redhat.com>
7065
7066 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7067 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7068 * python/py-utils.c (py_decref): Don't check for NULL before
7069 calling Py_DECREF.
7070
7071 2013-05-21 Pedro Alves <palves@redhat.com>
7072
7073 * python/py-utils.c (py_decref): Remove extra braces.
7074 (gdb_pymodule_addobject): Remove extra braces.
7075 * python-internal.h (gdb_Py_DECREF): New static inline function.
7076 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7077
7078 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7079
7080 * breakpoints.c (detach_breakpoints): Do not
7081 detach breakpoints locations with loc_type bp_loc_other.
7082
7083 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 Workaround Python 2.6.
7086 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7087 a block.
7088
7089 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7090
7091 Code cleanup: constification.
7092 * solib.c (solib_ops): Make return type and ops variable type const.
7093 (set_solib_ops): Make the new_ops parameter and ops variable const.
7094 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7095 (solib_add, solib_keep_data_in_core, clear_solib)
7096 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7097 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7098 const.
7099 * solib.h (set_solib_ops): Make the new_ops parameter const.
7100
7101 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7102
7103 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7104 variable.
7105 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7106 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7107 (SYSTEM_GDBINIT_FILES): New variables.
7108 (all): Add stamp-system-gdbinit.
7109 (stamp-system-gdbinit): New rule.
7110 (clean-system-gdbinit, install-system-gdbinit)
7111 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7112 (install-only): Add dependency on install-system-gdbinit.
7113 (uninstall): Add dependency on uninstall-system-gdbinit.
7114 (clean): Add dependency on clean-system-gdbinit.
7115 * system-gdbinit/elinos.py: New file.
7116 * system-gdbinit/wrs-linux.py: New file.
7117
7118 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7119
7120 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7121
7122 2013-05-21 Hui Zhu <hui@codesourcery.com>
7123
7124 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7125 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7126 * mi/mi-cmd-break.c (ctype.h): New include.
7127 (gdb_obstack.h): New include.
7128 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7129 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7130 (mi_cmd_dprintf_insert): New.
7131 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7132 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7133
7134 2013-05-20 Tom Tromey <tromey@redhat.com>
7135
7136 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7137
7138 2013-05-20 Tom Tromey <tromey@redhat.com>
7139
7140 * python/py-value.c (valpy_get_dynamic_type): Simplify
7141 dynamic_type assignment. Use Py_XINCREF.
7142
7143 2013-05-20 Tom Tromey <tromey@redhat.com>
7144
7145 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7146
7147 2013-05-20 Tom Tromey <tromey@redhat.com>
7148
7149 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7150 (gdbpy_selected_frame): Move object-construction code
7151 out of TRY_CATCH.
7152
7153 2013-05-20 Tom Tromey <tromey@redhat.com>
7154
7155 * python/py-arch.c (gdbpy_initialize_arch): Use
7156 gdb_pymodule_addobject.
7157 * python/py-block.c (gdbpy_initialize_blocks): Use
7158 gdb_pymodule_addobject.
7159 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7160 gdb_pymodule_addobject.
7161 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7162 gdb_pymodule_addobject.
7163 * python/py-event.c (gdbpy_initialize_event_generic): Use
7164 gdb_pymodule_addobject.
7165 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7166 gdb_pymodule_addobject.
7167 * python/py-evts.c (add_new_registry): Use
7168 gdb_pymodule_addobject.
7169 (gdbpy_initialize_py_events): Likewise.
7170 * python/py-finishbreakpoint.c
7171 (gdbpy_initialize_finishbreakpoints): Use
7172 gdb_pymodule_addobject.
7173 * python/py-frame.c (gdbpy_initialize_frames): Use
7174 gdb_pymodule_addobject.
7175 * python/py-function.c (gdbpy_initialize_functions): Use
7176 gdb_pymodule_addobject.
7177 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7178 gdb_pymodule_addobject.
7179 * python/py-infthread.c (gdbpy_initialize_thread): Use
7180 gdb_pymodule_addobject.
7181 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7182 gdb_pymodule_addobject.
7183 * python/py-param.c (gdbpy_initialize_parameters): Use
7184 gdb_pymodule_addobject.
7185 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7186 gdb_pymodule_addobject.
7187 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7188 gdb_pymodule_addobject.
7189 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7190 gdb_pymodule_addobject.
7191 * python/py-type.c (gdbpy_initialize_types): Use
7192 gdb_pymodule_addobject.
7193 * python/py-utils.c (gdb_pymodule_addobject): New function.
7194 * python/py-value.c (gdbpy_initialize_values): Use
7195 gdb_pymodule_addobject.
7196 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7197 * python/python.c (_initialize_python): Use
7198 gdb_pymodule_addobject.
7199
7200 2013-05-20 Tom Tromey <tromey@redhat.com>
7201
7202 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7203 * python/py-param.c (get_set_value, get_show_value): Use
7204 explicit decrefs.
7205 * python/python.c (start_type_printers, apply_type_printers):
7206 Use explicit decrefs.
7207
7208 2013-05-20 Tom Tromey <tromey@redhat.com>
7209
7210 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7211 incref the module.
7212
7213 2013-05-20 Tom Tromey <tromey@redhat.com>
7214
7215 * python/python.c (gdbpy_run_events): Decref the result
7216 of PyObject_CallObject.
7217
7218 2013-05-20 Tom Tromey <tromey@redhat.com>
7219
7220 * python/py-symtab.c (set_sal): Use
7221 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7222 (symtab_and_line_to_sal_object): Update.
7223
7224 2013-05-20 Tom Tromey <tromey@redhat.com>
7225
7226 * python/py-param.c (compute_enum_values): Decref 'item'.
7227
7228 2013-05-20 Tom Tromey <tromey@redhat.com>
7229
7230 * mi/mi-main.c: Include python-internal.h.
7231 (mi_cmd_list_features): Check gdb_python_initialized.
7232 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7233 (python_inferior_exit, python_new_objfile, add_thread_object)
7234 (delete_thread_object, py_free_inferior): Check
7235 gdb_python_initialized.
7236 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7237 gdb_python_initialized.
7238 * python/py-type.c (save_objfile_types): Check
7239 gdb_python_initialized.
7240 * python/python-internal.h (gdb_python_initialized): Declare.
7241 * python/python.c (ensure_python_env): Throw exception if
7242 Python not initialized.
7243 (before_prompt_hook, source_python_script_for_objfile)
7244 (start_type_printers, apply_type_printers,
7245 free_type_printers): Check gdb_python_initialized.
7246 * varobj.c (varobj_get_display_hint)
7247 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7248 (install_new_value_visualizer, varobj_set_visualizer)
7249 (value_get_print_value): Check gdb_python_initialized.
7250
7251 2013-05-20 Tom Tromey <tromey@redhat.com>
7252
7253 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7254 Check errors.
7255 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7256 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7257 Check errors.
7258 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7259 Check errors.
7260 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7261 Check errors.
7262 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7263 Check errors.
7264 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7265 init function to return 'int'.
7266 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7267 Return 'int'. Check errors.
7268 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7269 Check errors.
7270 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7271 Return 'int'. Check errors.
7272 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7273 Check errors.
7274 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7275 Check errors.
7276 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7277 Check errors.
7278 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7279 Check errors.
7280 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7281 Check errors.
7282 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7283 Check errors.
7284 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7285 Check errors.
7286 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7287 Check errors.
7288 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7289 Check errors.
7290 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7291 Check errors.
7292 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7293 Check errors.
7294 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7295 Check errors.
7296 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7297 Check errors.
7298 * python/python-internal.h (gdbpy_initialize_auto_load,
7299 gdbpy_initialize_values, gdbpy_initialize_frames,
7300 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7301 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7302 gdbpy_initialize_blocks, gdbpy_initialize_types,
7303 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7304 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7305 gdbpy_initialize_finishbreakpoints,
7306 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7307 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7308 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7309 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7310 gdbpy_initialize_signal_event,
7311 gdbpy_initialize_breakpoint_event,
7312 gdbpy_initialize_continue_event,
7313 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7314 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7315 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7316 * python/python.c (gdb_python_initialized): New global.
7317 (gdbpy_initialize_events): Return 'int'. Check errors.
7318 (_initialize_python): Check errors. Set
7319 gdb_python_initialized.
7320
7321 2013-05-20 Tom Tromey <tromey@redhat.com>
7322
7323 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7324 Decref the reslut of PyObject_CallMethod.
7325
7326 2013-05-20 Tom Tromey <tromey@redhat.com>
7327
7328 * python/py-event.c (gdbpy_initialize_event_generic): Return
7329 early if PyType_Ready fails.
7330
7331 2013-05-20 Tom Tromey <tromey@redhat.com>
7332
7333 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7334 as 'default' in the switch.
7335
7336 2013-05-20 Tom Tromey <tromey@redhat.com>
7337
7338 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7339 get_addr_from_python calls out of TRY_CATCH.
7340 (infpy_write_memory, infpy_search_memory): Likewise.
7341 * python/py-utils.c (get_addr_from_python): Return negative
7342 value on error. Use TRY_CATCH.
7343 * python/python-internal.h (get_addr_from_python): Use
7344 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7345
7346 2013-05-20 Tom Tromey <tromey@redhat.com>
7347
7348 * python/py-event.c (evpy_emit_event): Decref the
7349 result of PyObject_CallFunctionObjArgs.
7350
7351 2013-05-20 Tom Tromey <tromey@redhat.com>
7352
7353 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7354 Correctly decref.
7355
7356 2013-05-20 Tom Tromey <tromey@redhat.com>
7357
7358 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7359
7360 2013-05-20 Tom Tromey <tromey@redhat.com>
7361
7362 * python/py-event.h (gdbpy_initialize_event_generic): Use
7363 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7364 * python/py-evts.c (add_new_registry): Use
7365 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7366 * python/python-internal.h
7367 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7368
7369 2013-05-20 Tom Tromey <tromey@redhat.com>
7370
7371 * python/py-arch.c (archpy_disassemble): Update.
7372 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7373 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7374 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7375 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7376 macro.
7377 (GDB_PY_HANDLE_EXCEPTION): Update.
7378 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7379
7380 2013-05-20 Tom Tromey <tromey@redhat.com>
7381
7382 * python/python-internal.h (events_object_type): Remove.
7383
7384 2013-05-20 Tom Tromey <tromey@redhat.com>
7385
7386 * python/py-event.h (evpy_emit_event): Use
7387 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7388 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7389 New macro.
7390
7391 2013-05-20 Tom Tromey <tromey@redhat.com>
7392
7393 * py-evtregistry.c (create_event_object): Decref
7394 eventregistry_object if PyList_New fails.
7395
7396 2013-05-20 Tom Tromey <tromey@redhat.com>
7397
7398 * py-cmd.c (gdbpy_string_to_argv): Check result of
7399 PyList_New.
7400
7401 2013-05-20 Tom Tromey <tromey@redhat.com>
7402
7403 * python/python.c (before_prompt_hook): Add cleanup to
7404 decref 'hook'.
7405
7406 2013-05-20 Tom Tromey <tromey@redhat.com>
7407
7408 * python/py-function.c (fnpy_init): Decref result of
7409 PyObject_GetAttrString.
7410
7411 2013-05-20 Tom Tromey <tromey@redhat.com>
7412
7413 * python/py-threadevent.c (get_event_thread): Use
7414 CPYCHECKER_RETURNS_BORROWED_REF.
7415 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7416 New define.
7417 (pspace_to_pspace_object, objfile_to_objfile_object)
7418 (find_thread_object): Use it.
7419
7420 2013-05-20 Tom Tromey <tromey@redhat.com>
7421
7422 * python/py-arch.c (arch_object_type): Use
7423 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7424 * python/py-block.c (block_syms_iterator_object_type):
7425 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7426 * python/py-bpevent.c (breakpoint_event_object_type):
7427 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7428 * python/py-cmd.c (cmdpy_object_type): Use
7429 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7430 * python/py-continueevent.c (continue_event_object_type):
7431 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7432 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7433 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7434 * python/py-events.h (thread_event_object_type):
7435 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7436 * python/py-evtregistry.c (eventregistry_object_type): Use
7437 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7438 * python/py-exitedevent.c (exited_event_object_type):
7439 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7440 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7441 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7442 * python/py-function.c (fnpy_object_type): Use
7443 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7444 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7445 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7446 * python/py-infthread.c (thread_object_type): Use
7447 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7448 * python/py-lazy-string.c (lazy_string_object_type):
7449 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7450 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7451 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7452 * python/py-objfile.c (objfile_object_type): Use
7453 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7454 * python/py-param.c (parmpy_object_type):
7455 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7456 * python/py-progspace.c (pspace_object_type):
7457 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7458 * python/py-signalevent.c (signal_event_object_type):
7459 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7460 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7461 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7462 * python/py-type.c (type_object_type, field_object_type)
7463 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7464 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7465 define.
7466 (value_object_type, block_object_type, symbol_object_type)
7467 (event_object_type, stop_event_object_type, breakpoint_object_type)
7468 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7469
7470 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7471
7472 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7473 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7474
7475 2013-05-20 Doug Evans <dje@google.com>
7476
7477 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7478 For Fission.
7479 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7480 reading_dwo_directly.
7481 (struct signatured_type): New member dwo_unit.
7482 (struct die_reader_specs): New member comp_dir.
7483 (create_signatured_type_table_from_index): Use malloc for
7484 all_type_units instead of objfile's obstack.
7485 (create_all_type_units): Ditto.
7486 (fill_in_sig_entry_from_dwo_entry): New function.
7487 (add_type_unit): New function.
7488 (lookup_dwo_signatured_type): New function.
7489 (lookup_dwp_signatured_type): New function.
7490 (lookup_signatured_type): New arg cu. All callers updated.
7491 (init_cu_die_reader): Initialize comp_dir.
7492 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7493 Change assert of matching type signatures to call error on mismatch.
7494 (lookup_dwo_unit): Add assert.
7495 (init_tu_and_read_dwo_dies): New function.
7496 (init_cutu_and_read_dies): Call it.
7497 (build_type_unit_groups): Handle case of no type unit groups created.
7498 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7499 (lookup_dwo_cutu): Tweak complaint.
7500 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7501 (dwarf2_per_objfile_free): Free all_type_units.
7502
7503 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7504
7505 * windows-nat.c (handle_unload_dll): Add missing empty line.
7506
7507 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7508
7509 * dwarf2read.c (prototyped_function_p): New function.
7510 (read_subroutine_type): Use it.
7511
7512 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7513
7514 * rs6000-aix-tdep.c: De-indent some example code provided
7515 as a comment.
7516
7517 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7518
7519 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7520 region is ok for a hardware watchpoint using the new ptrace interface
7521 on Power servers.
7522
7523 2013-05-17 Doug Evans <dje@google.com>
7524
7525 * NEWS: Mention new maintenance commands check-symtabs, and
7526 expand-symtabs, and renamed check-psymtabs.
7527 * psymtab.c (maintenance_check_psymtabs): Renamed from
7528 maintenance_check_symtabs. Only process already-expanded symbol
7529 tables.
7530 (_initialize_psymtab): Update.
7531 * symmisc.c (maintenance_check_symtabs): New function.
7532 (maintenance_expand_name_matcher): New function
7533 (maintenance_expand_file_matcher): New function
7534 (maintenance_expand_symtabs): New function.
7535 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7536 commands.
7537
7538 2013-05-17 Tom Tromey <tromey@redhat.com>
7539
7540 * python/py-inferior.c (infpy_read_memory): Don't call
7541 PyErr_SetString if PyObject_New fails.
7542 * python/py-frame.c (frame_info_to_frame_object): Don't call
7543 PyErr_SetString if PyObject_New fails.
7544
7545 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7546
7547 * acinclude.m4: Add check for dlopen in libdl.
7548 * configure.ac: Ditto.
7549 * configure: Regenerate.
7550
7551 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7552
7553 * frame.c (frame_stash): Convert to htab.
7554 (frame_addr_hash): New function.
7555 (frame_addr_hash_eq): New function.
7556 (frame_stash_create): Convert function to create
7557 a hash table.
7558 (frame_stash_add): Convert function to add an entry to a hash
7559 table.
7560 (frame_stash_find): Convert function to search the hash table.
7561 (frame_stash_invalidate): Convert function to empty the hash
7562 table.
7563 (get_frame_id): Only add to stash if a frame_id is created.
7564 (_initialize_frame): Call frame_stash_create.
7565
7566 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7567
7568 * configure.ac: Ensure MIG is available when building for GNU Hurd
7569 hosts.
7570 * configure: Regenerate.
7571
7572 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7573
7574 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7575
7576 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7577
7578 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7579 all cleanups are done before returning from this function.
7580
7581 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7582
7583 * utils.h: #include "exceptions.h".
7584 (enum errors): Remove partial declaration.
7585
7586 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7587
7588 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7589 * gdbarch.h, gdbarch.c: Regenerate.
7590 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7591 handling.
7592
7593 * rs6000-aix-tdep.h: New file.
7594 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7595 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7596 "xml-utils.h".
7597 (struct field_info, struct ld_info_desc): New types.
7598 (ld_info32_desc, ld_info64_desc): New static constants.
7599 (struct ld_info): New type.
7600 (rs6000_aix_extract_ld_info): New function.
7601 (rs6000_aix_shared_library_to_xml): Likewise.
7602 (rs6000_aix_ld_info_to_xml): Likewise.
7603 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7604 (rs6000_aix_init_osabi): Add call to
7605 set_gdbarch_core_xfer_shared_libraries_aix.
7606 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7607 Remove "xml-utils.h" include.
7608 (LdInfo): Delete typedef.
7609 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7610 Delete macros.
7611 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7612 Adjust code accordingly.
7613 (rs6000_core_ldinfo): Delete, folded into
7614 rs6000_aix_core_xfer_shared_libraries_aix.
7615 (rs6000_xfer_shared_library): Delete.
7616 (rs6000_xfer_shared_libraries): Reimplement.
7617
7618 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7619
7620 * record.c (record_goto_cmdlist): New.
7621 (cmd_record_goto): Split into this ...
7622 (cmd_record_goto_begin): ... this
7623 (cmd_record_goto_end): ... and this.
7624 (_initialize_record): Change "record goto" to prefix command.
7625 Add commands for "record goto begin" and "record goto end".
7626 Add an alias for "record goto start" to "record goto begin".
7627
7628 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7629
7630 * linespec.c (convert_linespec_to_sals): New comment for
7631 SOURCE_FILENAME assignment.
7632
7633 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7636 internal_warning.
7637
7638 2013-05-14 Tom Tromey <tromey@redhat.com>
7639
7640 * eval.c (parse_and_eval_long): Make 'exp' const.
7641 * value.h (parse_and_eval_long): Update.
7642
7643 2013-05-14 Tom Tromey <tromey@redhat.com>
7644
7645 * ui-file.c (gdb_fopen): Make arguments const.
7646 * ui-file.h (gdb_fopen): Make arguments const.
7647
7648 2013-05-14 Tom Tromey <tromey@redhat.com>
7649
7650 * remote.c (remote_set_trace_notes): Make arguments const.
7651 * target.c (update_current_target): Update cast.
7652 * target.h (to_set_trace_notes): Make arguments const.
7653
7654 2013-05-14 Tom Tromey <tromey@redhat.com>
7655
7656 * go32-nat.c (go32_terminal_info): Make 'args' const.
7657 * inferior.h (child_terminal_info): Update.
7658 * inflow.c (child_terminal_info): Make 'args' const.
7659 * target.c (default_terminal_info): Make 'args' const.
7660 (debug_to_terminal_save_ours): Likewise.
7661 * target.h (struct target_ops) <to_terminal_info>: Make argument
7662 const.
7663
7664 2013-05-13 Tom Tromey <tromey@redhat.com>
7665
7666 * gcore.c (create_gcore_bfd): Make 'filename' const.
7667 * gcore.h (create_gcore_bfd): Make 'filename' const.
7668 * record-full.c (record_full_save): Make 'recfilename' const.
7669 * target.c (target_save_record): Make 'filename' const.
7670 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7671 const.
7672 (target_save_record): Likewise.
7673
7674 2013-05-13 Tom Tromey <tromey@redhat.com>
7675
7676 PR gdb/15338:
7677 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7678 ranges section has been read.
7679
7680 2013-05-13 Tom Tromey <tromey@redhat.com>
7681
7682 PR exp/15364:
7683 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7684 STRUCTOP_PTR>: Return a not_lval value for
7685 EVAL_AVOID_SIDE_EFFECTS.
7686 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7687 for EVAL_AVOID_SIDE_EFFECTS.
7688
7689 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7690
7691 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7692 floating point registers to register type before storing
7693 value.
7694 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7695 Likewise.
7696
7697 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7698 Tom Tromey <tromey@redhat.com>
7699
7700 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7701 New functions.
7702 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7703 Declare.
7704 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7705 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7706 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7707 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7708
7709 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7710 Tom Tromey <tromey@redhat.com>
7711
7712 PR build/15414:
7713 * configure: Rebuild.
7714 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7715 with -Wno-format.
7716
7717 2013-05-10 Pedro Alves <palves@redhat.com>
7718
7719 * remote.c (_initialize_remote): Fix spelling of
7720 qXfer:traceframe-info:read packet in packet config command.
7721
7722 2013-05-10 David Taylor <dtaylor@emc.com>
7723
7724 PR remote/15455
7725
7726 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7727 "QTro" at start of packet.
7728
7729 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7730
7731 * solib-aix.c (solib_aix_relocate_section_addresses):
7732 For the .bss section action, apply the same offset as
7733 the .data section.
7734
7735 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7736
7737 * solib-aix.c (solib_aix_relocate_section_addresses):
7738 Remove FIXME comment.
7739
7740 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7741
7742 PR tdep/15420:
7743 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7744 New functions, directly copied from sparc-sol-thread.c.
7745 * sparc-sol-thread.c: Delete.
7746 * configure.ac: Remove code handling sparc-solaris-thread.c.
7747 * configure: Regenerate.
7748
7749 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7750
7751 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7752 filter logic.
7753 (backtrace_command): Add "no-filters" option parsing.
7754 (_initialize_stack): Alter help to reflect "no-filters" option.
7755 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7756 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7757 (py-frame.o): Add target
7758 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7759 filter files.
7760 * python/python.h: Add new frame filter constants, and flag enum.
7761 (apply_frame_filter): Add definition.
7762 * python/python.c (apply_frame_filter): New non-Python
7763 enabled function.
7764 * python/py-utils.c (py_xdecref): New function.
7765 (make_cleanup_py_xdecref): Ditto.
7766 * python/py-objfile.c: Declare frame_filters dictionary.
7767 (objfpy_dealloc): Add frame_filters dealloc.
7768 (objfpy_new): Initialize frame_filters attribute.
7769 (objfile_to_objfile_object): Ditto.
7770 (objfpy_get_frame_filters): New function.
7771 (objfpy_set_frame_filters): New function.
7772 * python/py-progspace.c: Declare frame_filters dictionary.
7773 (pspy_dealloc): Add frame_filters dealloc.
7774 (pspy_new): Initialize frame_filters attribute.
7775 (pspacee_to_pspace_object): Ditto.
7776 (pspy_get_frame_filters): New function.
7777 (pspy_set_frame_filters): New function.
7778 * python/py-framefilter.c: New file.
7779 * python/lib/gdb/command/frame_filters.py: New file.
7780 * python/lib/gdb/frames.py: New file.
7781 * python/lib/gdb/__init__.py: Initialize global frame_filters
7782 dictionary
7783 * python/lib/gdb/FrameDecorator.py: New file.
7784 * python/lib/gdb/FrameIterator.py: New file.
7785 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7786 * mi/mi-cmds.h: Declare.
7787 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7788 --no-frame-filter logic, and Python frame filter logic.
7789 (stack_enable_frame_filters): New function.
7790 (parse_no_frame_option): Ditto.
7791 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7792 filter logic.
7793 (mi_cmd_stack_list_locals): Ditto.
7794 (mi_cmd_stack_list_args): Ditto.
7795 (mi_cmd_stack_list_variables): Ditto.
7796 * NEWS: Add frame filter note.
7797
7798 2013-05-09 Doug Evans <dje@google.com>
7799
7800 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7801 All callers updated.
7802 (syms_from_objfile): Ditto. Make static.
7803 (symbol_file_add_with_addrs): Renamed from
7804 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7805 num_offsets. All callers updated.
7806 * symfile.h (syms_from_objfile): Delete.
7807
7808 * symfile.c (decrement_reading_symtab): Add assert.
7809 (increment_reading_symtab): Ditto.
7810
7811 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7812
7813 * source.c (forward_search_command): Replace call to getc
7814 by call to fgetc.
7815 (reverse_search_command): Likewise.
7816
7817 2013-05-08 Doug Evans <dje@google.com>
7818
7819 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7820 matching test.
7821
7822 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7823
7824 * sol-thread.c (info_cb): Factorize the code a little.
7825
7826 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7827
7828 * sol-thread.c (info_cb): Rework the output of the "maintenance
7829 info sol-threads" command a bit.
7830
7831 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7832
7833 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7834 Replace ti.ti_startfunc by ti.ti_pc.
7835
7836 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7837
7838 * solib-aix.c (solib_aix_free_library_list): New function
7839 for the case where HAVE_LIBEXPAT is not defined.
7840
7841 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7842
7843 PR breakpoints/15413:
7844 * breakpoint.c (condition_completer): Simplify the code to
7845 disconsider multiple locations of breakpoints when completing the
7846 "condition" command.
7847
7848 2013-05-07 Pierre Muller <muller@sourceware.org>
7849
7850 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7851 instead of <sys/wait.h>.
7852
7853 2013-05-07 Pierre Muller <muller@sourceware.org>
7854
7855 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7856 trailing new line from warning message.
7857
7858 2013-05-07 Pierre Muller <muller@sourceware.org>
7859
7860 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7861 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7862
7863 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7864
7865 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7866 error message (ARI fix).
7867
7868 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7869
7870 * features/library-list-aix.dtd: Replace library-list by
7871 library-list-aix.
7872 * rs6000-nat.c: Replace library-list by library-list-aix
7873 throughout.
7874 * solib-aix.c: Likewise.
7875
7876 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7877
7878 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7879 Renames TARGET_OBJECT_AIX_LIBRARIES.
7880 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7881 TARGET_OBJECT_LIBRARIES_AIX throughout.
7882 * solib-aix.c: Likwise.
7883
7884 2013-05-07 Yao Qi <yao@codesourcery.com>
7885
7886 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7887 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7888
7889 2013-05-07 Yao Qi <yao@codesourcery.com>
7890
7891 * solib-dsbt.c (enable_break): Declare.
7892 (dsbt_current_sos): Remove call to enable_break2.
7893 (enable_break2): Rename to enable_break. Set solib breakpoint
7894 on '_dl_debug_state'.
7895 (enable_break): Remove.
7896
7897 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7898
7899 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7900 debug state prior to replicating existing hardware watchpoints or
7901 breakpoints.
7902
7903 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7904
7905 * gcore.c (gcore_create_callback): Ignore sections with
7906 separate_debug_objfile_backlink != NULL.
7907
7908 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7909 Andrew Jenner <andrew@codesourcery.com>
7910 Chung-Lin Tang <cltang@codesourcery.com>
7911 Julian Brown <julian@codesourcery.com>
7912
7913 Based on the nios2-elf port from Altera Corporation.
7914
7915 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7916 nios2-linux-tdep.o.
7917 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7918 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7919 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7920 * nios2-tdep.h: New.
7921 * nios2-tdep.c: New.
7922 * nios2-linux-tdep.c: New.
7923 * features/Makefile (WHICH): Add nios2-linux.
7924 (nios2-linux-expedite): Set.
7925 * features/nios2-cpu.xml: New.
7926 * features/nios2.xml: New.
7927 * features/nios2-linux.xml: New.
7928 * features/nios2.c: New (autogenerated).
7929 * features/nios2-linux.c: New (autogenerated).
7930 * regformats/nios2-linux.dat: New (autogenerated).
7931 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7932 and commands.
7933
7934 2013-05-06 Doug Evans <dje@google.com>
7935
7936 * symfile.c: Whitespace cleanup.
7937
7938 * solist.h (struct target_so_ops): New member clear_so.
7939 * solib-svr4.c (svr4_clear_so): New function.
7940 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7941 * solib.c (clear_so): Renamed from free_so_symbols.
7942 All callers updated. Call target clear_so if it exists.
7943
7944 2013-05-06 Tom Tromey <tromey@redhat.com>
7945
7946 * ada-lang.c (ada_value_primitive_packed_val): Don't
7947 call value_incref.
7948 * value.c (set_value_parent): Incref the new parent and decref
7949 the old parent.
7950 (value_copy, value_primitive_field): Use set_value_parent.
7951
7952 2013-05-06 Tom Tromey <tromey@redhat.com>
7953
7954 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7955 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7956 if needed.
7957 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7958 * dwarf2read.c (write_constant_as_bytes)
7959 (dwarf2_fetch_constant_bytes): New functions.
7960
7961 2013-05-06 Tom Tromey <tromey@redhat.com>
7962
7963 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7964 parameters.
7965 (dwarf2_const_value_attr): Update.
7966
7967 2013-05-06 Tom Tromey <tromey@redhat.com>
7968
7969 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7970 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7971 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7972 Remove declaration.
7973
7974 2013-05-06 Tom Tromey <tromey@redhat.com>
7975
7976 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7977 objfile's obstack.
7978
7979 2013-05-06 Doug Evans <dje@google.com>
7980
7981 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7982 * stabsread.h (process_one_symbol): Update declaration.
7983 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7984 * elfread.c (elf_symfile_relocate_probe): Ditto.
7985 * psymtab.c (relocate_psymtabs): Ditto.
7986 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7987 (objfile_relocate): Ditto.
7988 * objfiles.h (objfile_relocate): Update declaration.
7989 * symfile.c (relative_addr_info_to_section_offsets): Constify
7990 addrs parameter.
7991 (default_symfile_offsets): Ditto.
7992 (syms_from_objfile_1): Constify offsets parameter.
7993 (syms_from_objfile): Ditto.
7994 (symbol_file_add_with_addrs_or_offsets): Ditto.
7995 (symfile_map_offsets_to_segments): Constify data parameter.
7996 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7997 delta parameters of member relocate.
7998 (struct sym_probe_fns): Constify new_offsets,
7999 delta parameters of member sym_relocate_probe.
8000 (struct sym_fns): Constify section_addr_info parameter of member
8001 sym_offsets.
8002 (relative_addr_info_to_section_offsets): Update declaration.
8003 (default_symfile_offsets): Ditto.
8004 (syms_from_objfile): Ditto.
8005 (symfile_map_offsets_to_segments): Ditto.
8006
8007 * symfile.c (syms_from_objfile_1): Use correct section count when
8008 objfile->sf == NULL.
8009
8010 2013-05-06 Mike Frysinger <vapier@gentoo.org>
8011
8012 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
8013
8014 2013-05-06 Doug Evans <dje@google.com>
8015
8016 * psympriv.h (struct partial_symtab): Augment comment for member
8017 section_offsets.
8018
8019 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8020
8021 Reimplement shared library support on ppc-aix...
8022 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8023 * features/library-list-aix.dtd: New file.
8024 * solib-aix.h, solib-aix.c: New file.
8025 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8026 (rs6000_find_toc_address_hook): Delete.
8027 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8028 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8029 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8030 "xml-utils.h".
8031 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8032 (vmap_symtab, fixup_breakpoints): Delete.
8033 (rs6000_xfer_shared_libraries): New function.
8034 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8035 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8036 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8037 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8038 (rs6000_xfer_shared_library): New function.
8039 (find_toc_address): Delete.
8040 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8041 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8042 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8043 before creating minimal symbol. Adjust function description
8044 accordingly.
8045 (scan_xcoff_symtab): Replace call to
8046 prim_record_minimal_symbol_and_info by call to
8047 record_minimal_symbol.
8048 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8049 around default_symfile_offsets.
8050 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8051 powerpc-aix targets.
8052 * config/rs6000/nm-rs6000.h: Delete.
8053 * config/powerpc/aix.mh (NAT_FILE): Delete.
8054 (NATDEPFILES): Remove xcoffsolib.o.
8055 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8056 (ALL_TARGET_OBS): Add solib-aix.o.
8057 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8058 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8059 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8060 * xcoffsolib.h, xcoffsolib.c: Delete.
8061
8062 * solib.c (reload_shared_libraries): Remove reference to
8063 SOLIB_CREATE_INFERIOR_HOOK.
8064 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8065 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8066 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8067 comment.
8068 * corelow.c (deprecated_core_resize_section_table): Delete.
8069 * exec.c: Remove include of xcoffsolib.h".
8070 (map_vmap, vmap): Delete.
8071 (exec_close_1): Remove references to vmap.
8072 (exec_file_attach): Remove vmap handling code, and reference
8073 to DEPRECATED_IBM6000_TARGET.
8074 (bfdsec_to_vmap): Delete.
8075 (exec_files_info): Remove block of code handling VMAP.
8076 * infcmd.c (post_create_inferior): Remove reference to
8077 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8078 * infrun.c (follow_exec): Remove reference to
8079 SOLIB_CREATE_INFERIOR_HOOK.
8080 * stack.c (print_frame): Remove reference to PC_SOLIB.
8081 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8082 (dsbt_relocate_main_executable): Likewise.
8083 * solib-frv.c (frv_current_sos): Likewise.
8084
8085 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8086
8087 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8088 to target_write_memory and target_read_memory.
8089
8090 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8091
8092 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8093 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8094
8095 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8096
8097 * darwin-nat.c: Replace all "%x" instances in format strings
8098 into "0x%x" throughout.
8099
8100 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8101
8102 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8103 gdb_assert by call to MACH_CHECK_ERROR.
8104 (darwin_attach_pid): Raise an error rather than a failed
8105 assertion when various system calls failed. Report a warning
8106 instead of raising a failed assertion when PREV_NOT is not NULL
8107 after call to mach_port_request_notification.
8108 (darwin_ptrace_me): Raise an error rather than a failed
8109 assertion when read returns nonzero.
8110
8111 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8112
8113 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8114
8115 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8118
8119 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8122 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8123 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8124 a stale cleanup. Fix double free of NAME.
8125
8126 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8127
8128 * windows-nat.c (windows_delete_thread): Accept an additional
8129 argument, the thread's exit code, and announce thread death when
8130 print_thread_events is non-zero and we are deleting a thread that
8131 is not the main thread.
8132 (get_windows_debug_event): Pass thread exit code to
8133 windows_delete_thread.
8134
8135 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8136
8137 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8138 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8139 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8140 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8141 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8142 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8143 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8144 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8145 (gdbarch_tdep): New struct.
8146 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8147 E_NUM_REGS.
8148 (v850e3v5_register_name): New function.
8149 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8150 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8151 code handling the struct return conventions for the RH850 ABI.
8152 Update all callers.
8153 (v850_eight_byte_align_p): New function.
8154 (v850_push_call_dummy): Push structs by value, not by reference
8155 for the RH850 ABI. Add support for eight byte alignment.
8156 (v850_dbtrap_breakpoint_from_pc): New function.
8157 (v850_gdbarch_init): Add ABI detection code. Register
8158 v850e3v5_register_name for the v850e3v5 architecture. Set the
8159 number of registers for v850e3v5. Register
8160 v850_dbtrap_breakpoint_from_pc as appropriate.
8161 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8162
8163 2013-05-03 Doug Evans <dje@google.com>
8164
8165 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8166 of bfd_count_sections.
8167 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8168 * symfile.c (default_symfile_offsets): Ditto.
8169 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8170 one entry, not bfd_count_sections entries.
8171
8172 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8173
8174 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8175 `save' and `restore' register groups. Don't include SPL
8176 or SPH in these groups.
8177 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8178 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8179 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8180 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8181 dwarf2_append_unwinders().
8182
8183 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8184
8185 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8186 ignore SIGINT and SIGTRAP in case these internal signals are
8187 caught explicitely.
8188
8189 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8190
8191 * darwin-nat.c (darwin_read_write_inferior): Change types
8192 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8193 of copy_count to "mach_msg_type_number_t".
8194 (darwin_read_dyld_info): Change type of parameter
8195 rdaddr to "gdb_byte *".
8196
8197 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8198
8199 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8200 of &info->load_map from "char *" to "gdb_byte *".
8201
8202 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8203
8204 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8205 from "char *" to "gdb_byte *".
8206 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8207
8208 2013-04-30 Doug Evans <dje@google.com>
8209
8210 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8211 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8212 DWO stub. If DWO isn't found, just use stub.
8213 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8214
8215 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8216 calling init_cutu_and_read_dies.
8217
8218 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8219
8220 * target-descriptions.c (maint_print_c_tdesc_cmd):
8221 Add case to parse structures as register types and
8222 bitfields.
8223
8224 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8225
8226 * MAINTAINERS (Write After Approval): Add myself to the list.
8227
8228 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8229
8230 * sol-thread.c (rw_common): Change type of parameter "buf"
8231 to "gdb_byte *".
8232 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8233 rw_common to "gdb_byte *" instead of "char *".
8234
8235 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8236
8237 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8238 of local variable msym to const struct bound_minimal_symbol.
8239 Adjust use accordingly.
8240 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8241
8242 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8243
8244 * i386gnu-nat.c (CREG_OFFSET): New macro.
8245 (creg_offset): New array.
8246 (CREG_ADDR): Use creg_offset instead of reg_offset.
8247
8248 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8249
8250 * mep-tdep.c (mep_write_pc): Delete.
8251 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8252 Add call to set_gdbarch_pc_regnum.
8253
8254 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8255
8256 * common/filestuff.c: Replace #include <dirent.h> by
8257 #include "gdb_dirent.h".
8258
8259 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8260
8261 * common/filestuff.c: Replace #include <sys/stat.h> by
8262 #include "gdb_stat.h".
8263
8264 2013-04-29 Pierre Muller <muller@sourceware.org>
8265
8266 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8267 editCase function rule.
8268 (get_DW_AT_signature_type): Likewise.
8269
8270 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8271
8272 * m32r-tdep.c (m32r_write_pc): Delete.
8273 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8274 Add call to set_gdbarch_pc_regnum.
8275
8276 2013-04-29 Pierre Muller <muller@sourceware.org>
8277
8278 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8279
8280 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8281
8282 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8283
8284 2013-04-28 Yao Qi <yao@codesourcery.com>
8285
8286 * solib-dsbt.c (fetch_loadmap): Re-indent.
8287 (displacement_from_map, enable_break2): Likewise.
8288 (dsbt_relocate_section_addresses): Likewise.
8289
8290 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8291
8292 GDB 7.6 released.
8293
8294 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8295
8296 PR corefiles/14983:
8297 * dwarf2read.c (process_full_comp_unit): Always create a static
8298 block.
8299
8300 2013-04-25 Hui Zhu <hui@codesourcery.com>
8301
8302 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8303 to loc->cmd_bytecode.
8304
8305 2013-04-24 Doug Evans <dje@google.com>
8306
8307 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8308
8309 2013-04-22 Keith Seitz <keiths@redhat.com>
8310
8311 * tracepoint.c (trace_save): Call the writer's start method.
8312
8313 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8314
8315 PR gdb/10462
8316 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8317 before argument.
8318
8319 2013-04-23 Tom Tromey <tromey@redhat.com>
8320
8321 * common/filestuff.c: Check USE_WIN32API before including
8322 sys/socket.h.
8323 (HAVE_F_GETFD): New define.
8324 (mark_cloexec): Check HAVE_F_GETFD.
8325 (gdb_open_cloexec): Change 'mode' to unsigned long.
8326 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8327 (gdb_pipe_cloexec): Check HAVE_PIPE.
8328 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8329 long.
8330
8331 2013-04-23 Hui Zhu <hui@codesourcery.com>
8332
8333 PR gdb/15293
8334 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8335
8336 2013-04-23 Hui Zhu <hui@codesourcery.com>
8337
8338 PR gdb/15165
8339 * breakpoint.c (dprintf_print_recreate): New.
8340 (save_breakpoints): Let it not save dprintf commands.
8341 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8342
8343 2013-04-22 Tom Tromey <tromey@redhat.com>
8344
8345 PR gdb/7912:
8346 * Makefile.in (SFILES): Add filestuff.c
8347 (COMMON_OBS): Add filestuff.o.
8348 (filestuff.o): New target.
8349 * auto-load.c (auto_load_objfile_script_1): Use
8350 gdb_fopen_cloexec.
8351 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8352 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8353 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8354 * common/agent.c (gdb_connect_sync_socket): Use
8355 gdb_socket_cloexec.
8356 * common/filestuff.c: New file.
8357 * common/filestuff.h: New file.
8358 * common/linux-osdata.c (linux_common_core_of_thread)
8359 (command_from_pid, commandline_from_pid, print_source_lines)
8360 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8361 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8362 gdb_fopen_cloexec.
8363 * common/linux-procfs.c (linux_proc_get_int)
8364 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8365 * config.in, configure: Rebuild.
8366 * configure.ac: Don't check for sys/socket.h. Check for
8367 fdwalk, pipe2.
8368 * corelow.c (core_open): Use gdb_open_cloexec.
8369 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8370 * fork-child.c (fork_inferior): Call close_most_fds.
8371 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8372 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8373 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8374 Use gdb_fopen_cloexec.
8375 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8376 gdb_open_cloexec.
8377 (linux_async_pipe): Use gdb_pipe_cloexec.
8378 * remote-fileio.c (remote_fileio_func_open): Use
8379 gdb_open_cloexec.
8380 * remote.c (remote_file_put, remote_file_get): Use
8381 gdb_fopen_cloexec.
8382 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8383 close_most_fds.
8384 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8385 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8386 * solib.c (solib_find): Use gdb_open_cloexec.
8387 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8388 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8389 (tfile_open): Use gdb_open_cloexec.
8390 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8391 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8392 * xml-support.c (xml_fetch_content_from_file): Use
8393 gdb_fopen_cloexec.
8394 * main.c (captured_main): Call notice_open_fds.
8395
8396 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8397
8398 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8399 'char *' to 'gdb_byte *'.
8400 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8401 'gdb_byte'.
8402
8403 2013-04-22 Yao Qi <yao@codesourcery.com>
8404
8405 * infrun.c: Fix typo in comment.
8406
8407 2013-04-22 Andrew Haley <aph@redhat.com>
8408
8409 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8410 instead of "long".
8411
8412 2013-04-20 Yao Qi <yao@codesourcery.com>
8413
8414 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8415 'char *' to 'gdb_byte *'. Cast the return value of
8416 'bt_ctf_get_char_array' to 'gdb_byte *'.
8417
8418 2013-04-19 Pedro Alves <palves@redhat.com>
8419
8420 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8421 -Wpointer-sign.
8422 * configure: Regenerate.
8423
8424 2013-04-19 Pedro Alves <palves@redhat.com>
8425
8426 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8427 'void *'.
8428
8429 2013-04-19 Pedro Alves <palves@redhat.com>
8430
8431 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8432 Change type of 'myaddr' parameter to gdb_byte pointer.
8433 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8434 to 'long long' pointer instead of to 'unsigned long long'.
8435 (monitor_write_memory_block, monitor_read_memory_single)
8436 (monitor_read_memory): Change type of 'myaddr' parameter to
8437 gdb_byte pointer.
8438
8439 2013-04-19 Pedro Alves <palves@redhat.com>
8440
8441 * record.c (validate_history_size): Make parameter 'setting'
8442 unsigned.
8443
8444 2013-04-19 Pedro Alves <palves@redhat.com>
8445
8446 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8447 to 'gdb_byte *'.
8448
8449 2013-04-19 Pedro Alves <palves@redhat.com>
8450
8451 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8452 local to int.
8453
8454 2013-04-19 Pedro Alves <palves@redhat.com>
8455
8456 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8457 * ada-tasks.c (read_fat_string_value): Likewise.
8458
8459 2013-04-19 Pedro Alves <palves@redhat.com>
8460
8461 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8462 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8463 'offset', and adjust.
8464
8465 2013-04-19 Pedro Alves <palves@redhat.com>
8466
8467 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8468 (read_index_from_section): Add cast to 'char *'.
8469
8470 2013-04-19 Pedro Alves <palves@redhat.com>
8471
8472 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8473
8474 2013-04-19 Pedro Alves <palves@redhat.com>
8475
8476 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8477
8478 2013-04-19 Pedro Alves <palves@redhat.com>
8479
8480 * record-full.c (record_full_get_bookmark): Change local 'ret'
8481 type to char * and add cast to gdb_byte *.
8482 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8483 string.
8484 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8485
8486 2013-04-19 Pedro Alves <palves@redhat.com>
8487
8488 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8489 * python/py-prettyprint.c (print_string_repr): Change type of
8490 'output' local to char *. Add cast to gdb_byte * in
8491 LA_PRINT_STRING call.
8492 (print_children): Change type of 'output' local to char *.
8493 * python/py-value.c (valpy_string): Add cast to const char * in
8494 PyUnicode_Decode call.
8495
8496 2013-04-19 Pedro Alves <palves@redhat.com>
8497
8498 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8499 and change its type to 'const char *'. Adjust.
8500 (mips_send_packet): Add cast to 'char *', and remove cast to
8501 'unsigned char *'.
8502 (mips_receive_packet): Remove cast to 'unsigned char *'.
8503 (mips_load_srec): Use bfd_byte.
8504 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8505 (pmon_checkset): Make 'value' parameter unsigned.
8506
8507 2013-04-19 Pedro Alves <palves@redhat.com>
8508
8509 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8510
8511 2013-04-19 Pedro Alves <palves@redhat.com>
8512
8513 * remote.c (remote_write_bytes_aux, compare_sections_command)
8514 (remote_read_qxfer)
8515 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8516 (remote_hostio_readlink, remote_bfd_iovec_pread)
8517 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8518 binary buffer, and char when buffer is used as string.
8519 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8520 (trace_save, tfile_open, traceframe_walk_blocks)
8521 (tfile_fetch_registers): Likewise.
8522
8523 2013-04-19 Pedro Alves <palves@redhat.com>
8524
8525 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8526 buffer and size_t size. Adjust.
8527 * ser-base.h (ser_base_write): Adjust.
8528 * ser-go32.c (cnts): Change type to size_t.
8529 (dos_write): Change prototype -- take 'void *'
8530 buffer and size_t size. Adjust.
8531 (dos_info): Print elements of 'cnts' as unsigned long.
8532 * serial.c (serial_write): Likewise.
8533 * serial.h (serial_write): Adjust.
8534 (struct serial_ops) <write>: Change prototype -- take 'void *'
8535 buffer and size_t size. Adjust.
8536
8537 2013-04-19 Pedro Alves <palves@redhat.com>
8538
8539 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8540 gdb_byte *.
8541 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8542
8543 2013-04-19 Pedro Alves <palves@redhat.com>
8544
8545 * alpha-tdep.c (alpha_extract_return_value): Use
8546 regcache_cooked_read_unsigned to read 'v0'.
8547
8548 2013-04-19 Pedro Alves <palves@redhat.com>
8549
8550 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8551 parameters 'at', 'as' and 'offset' to uint32_t.
8552
8553 2013-04-19 Pedro Alves <palves@redhat.com>
8554
8555 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8556 'is64' to signed 'int'.
8557
8558 2013-04-19 Pedro Alves <palves@redhat.com>
8559
8560 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8561 parameter to int *.
8562
8563 2013-04-19 Pedro Alves <palves@redhat.com>
8564
8565 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8566 'insnbuf' buffer type to unsigned int[].
8567
8568 2013-04-19 Pedro Alves <palves@redhat.com>
8569
8570 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8571
8572 2013-04-19 Pedro Alves <palves@redhat.com>
8573
8574 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8575 unsigned long *.
8576
8577 2013-04-19 Pedro Alves <palves@redhat.com>
8578
8579 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8580 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8581 UINT_MAX.
8582 * mips-tdep.c (heuristic_fence_post): Change type to int.
8583 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8584
8585 2013-04-19 Pedro Alves <palves@redhat.com>
8586
8587 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8588 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8589 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8590
8591 2013-04-19 Pedro Alves <palves@redhat.com>
8592
8593 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8594 it to get a string view of the byte buffer.
8595 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8596 type to gdb_byte *. Adjust.
8597 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8598 Change local to char *.
8599 * solib-darwin.c (find_program_interpreter): Change return type to
8600 char *. Adjust.
8601 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8602 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8603 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8604 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8605 * solib-svr4.c (find_program_interpreter): Change return type to
8606 char *. Adjust.
8607 (enable_break): Change local 'interp_name' to char *.
8608 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8609 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8610 (spu_pseudo_register_write_spu): Use char for string buffer.
8611 Adjust.
8612 (info_spu_event_command, info_spu_signal_command): Add casts to
8613 'char *'.
8614
8615 2013-04-19 Pedro Alves <palves@redhat.com>
8616
8617 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8618 gdb_byte[].
8619 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8620 * ada-lang.c (ada_value_assign): Use gdb_byte.
8621 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8622 (alphanbsd_sigtramp_offset): Use gdb_byte.
8623 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8624 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8625 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8626 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8627 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8628 * arm-tdep.c (arm_stub_unwind_sniffer)
8629 (arm_displaced_init_closure): Use gdb_byte.
8630 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8631 (arm_default_thumb_le_breakpoint)
8632 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8633 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8634 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8635 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8636 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8637 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8638 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8639 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8640 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8641 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8642 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8643 (cris_store_return_value, cris_extract_return_value): Use
8644 gdb_byte.
8645 (constraint): Change type of parameter to char * from signed
8646 char*. Use gdb_byte.
8647 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8648 of local buffer to gdb_byte *.
8649 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8650 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8651 (add_address_entry): Change type of local buffer to gdb_byte[].
8652 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8653 (frv_push_dummy_call): Use gdb_byte.
8654 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8655 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8656 (hppa_hpux_supply_save_state): Use gdb_byte.
8657 * hppa-tdep.c (hppa32_push_dummy_call)
8658 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8659 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8660 (slotN_contents, replace_slotN_contents): Change type of parameter
8661 to gdb_byte *.
8662 (fetch_instruction, ia64_pseudo_register_write)
8663 (ia64_register_to_value, ia64_value_to_register)
8664 (ia64_extract_return_value, ia64_store_return_value)
8665 (ia64_push_dummy_call): Use gdb_byte.
8666 * m32c-tdep.c (m32c_return_value): Remove cast.
8667 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8668 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8669 gdb_byte.
8670 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8671 * mn10300-tdep.c (mn10300_store_return_value)
8672 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8673 gdb_byte.
8674 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8675 (moxie_process_record): Remove casts.
8676 * ppc-ravenscar-thread.c (supply_register_at_address)
8677 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8678 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8679 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8680 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8681 * remote.c (compare_sections_command): Use gdb_byte.
8682 * score-tdep.c (score7_free_memblock): Change type of parameter to
8683 gdb_byte *.
8684 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8685 gdb_byte *. Use gdb_byte.
8686 (sh_push_dummy_call_fpu): Use gdb_byte.
8687 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8688 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8689 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8690 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8691 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8692 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8693 (sh64_store_return_value, sh64_register_convert_to_virtual):
8694 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8695 (sh64_pseudo_register_write): Use gdb_byte.
8696 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8697 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8698 buffer.
8699 (irix_current_sos): Use gdb_byte.
8700 * solib-som.c (som_current_sos): Use gdb_byte.
8701 * sparc-ravenscar-thread.c (supply_register_at_address)
8702 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8703 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8704 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8705 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8706 'gdb_byte *'.
8707 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8708 'gdb_byte *'.
8709 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8710 * xstormy16-tdep.c (xstormy16_extract_return_value)
8711 (xstormy16_store_return_value): Change parameter type to
8712 'gdb_byte *'. Adjust.
8713 (xstormy16_push_dummy_call): Use gdb_byte.
8714 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8715 (call0_analyze_prologue, execute_code): Use gdb_byte.
8716
8717 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8718 Pedro Alves <palves@redhat.com>
8719
8720 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8721 value contents.
8722
8723 2013-04-17 Doug Evans <dje@google.com>
8724
8725 * dwarf2read.c (struct signatured_type): New member type.
8726 (struct attribute): Replace member signatured_type with signature.
8727 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8728 (read_call_site_scope): Call follow_die_ref instead of
8729 follow_die_ref_or_sig.
8730 (read_structure_type): Rewrite handling of signatured types.
8731 (read_enumeration_type): Ditto.
8732 (read_attribute_value): Update.
8733 (build_error_marker_type): New function.
8734 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8735 Don't call error for bad types, just build an error marker type.
8736 (dump_die_shallow): Update.
8737 (follow_die_sig_1): Renamed from follow_die_sig.
8738 Don't call error for bad types, instead return NULL.
8739 (follow_die_sig): New function.
8740 (get_signatured_type, get_DW_AT_signature_type): New functions.
8741
8742 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8743
8744 * aarch64-tdep.c (aarch64_write_pc): Removed.
8745 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8746 function.
8747
8748 2013-04-17 Yao Qi <yao@codesourcery.com>
8749
8750 * top.c (print_gdb_configuration): Print configure-time
8751 parameter on using libbabeltrace or not.
8752
8753 2013-04-16 Pedro Alves <palves@redhat.com>
8754
8755 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8756
8757 2013-04-16 Pedro Alves <palves@redhat.com>
8758
8759 * common/glibc_thread_db.h: Update from upstream glibc
8760 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8761
8762 2013-04-16 Pedro Alves <palves@redhat.com>
8763
8764 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8765 * common/glibc_thread_db.h: ... this new file ...
8766 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8767
8768 2013-04-16 Will Newton <will.newton@gmail.com>
8769 Pedro Alves <palves@redhat.com>
8770
8771 PR build/11881
8772
8773 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8774 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8775 HAVE_THREAD_DB_H.
8776
8777 2013-04-16 Pedro Alves <palves@redhat.com>
8778 Eli Zaretskii <eliz@gnu.org>
8779
8780 * NEWS: Mention "set foo unlimited".
8781
8782 2013-04-15 Doug Evans <dje@google.com>
8783
8784 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8785 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8786 (create_dwo_cu_reader): Renamed from
8787 create_dwo_debug_info_hash_table_reader.
8788 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8789 Remove support for multiple CUs in a DWO file.
8790 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8791
8792 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8793 instead of phex.
8794 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8795 (create_dwo_in_dwp): Ditto.
8796
8797 2013-04-15 Tom Tromey <tromey@redhat.com>
8798
8799 * NEWS: Move recent entries into "since 7.6" section.
8800
8801 2013-04-15 Tom Tromey <tromey@redhat.com>
8802
8803 PR c++/13588:
8804 * NEWS: Update.
8805 * break-catch-throw.c (struct exception_catchpoint)
8806 <exception_rx, pattern>: New fields.
8807 (fetch_probe_arguments, dtor_exception_catchpoint)
8808 (check_status_exception_catchpoint)
8809 (print_one_detail_exception_catchpoint): New functions.
8810 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8811 Compile regular expression if needed.
8812 (extract_exception_regexp): New function.
8813 (catch_exception_command_1): Use extract_exception_regexp.
8814 (compute_exception): Use fetch_probe_arguments.
8815 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8816 and check_status fields.
8817 * cp-abi.c (cplus_typename_from_type_info): New function.
8818 * cp-abi.h (cplus_typename_from_type_info): Declare.
8819 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8820 * gdb_regex.h (compile_rx_or_error): Declare.
8821 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8822 comment.
8823 (init_gnuv3_ops): Set get_type_from_type_info field.
8824 * probe.c (compile_rx_or_error): Move...
8825 * utils.c (compile_rx_or_error): ... here.
8826
8827 2013-04-15 Tom Tromey <tromey@redhat.com>
8828
8829 PR c++/15176:
8830 * NEWS: Update.
8831 * break-catch-throw.c (compute_exception): New function.
8832 (exception_funcs): New global.
8833 (_initialize_break_catch_throw): Create $_exception.
8834 * cp-abi.c (cplus_type_from_type_info): New function.
8835 * cp-abi.h (cplus_type_from_type_info): Declare.
8836 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8837 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8838 (gnuv3_get_type_from_type_info): New functions.
8839 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8840
8841 2013-04-15 Tom Tromey <tromey@redhat.com>
8842
8843 * break-catch-throw.c (struct exception_names): New.
8844 (exception_functions): Change type.
8845 (re_set_exception_catchpoint): Look for SDT probes.
8846
8847 2013-04-15 Tom Tromey <tromey@redhat.com>
8848
8849 PR c++/10119:
8850 * break-catch-throw.c (exception_functions): New global.
8851 (gnu_v3_exception_catchpoint_ops): Move earlier.
8852 (struct exception_catchpoint): New.
8853 (classify_exception_breakpoint): Rewrite.
8854 (re_set_exception_catchpoint): New function.
8855 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8856 Allocate a struct exception_catchpoint.
8857 (catch_exception_command_1): Update.
8858 (initialize_throw_catchpoint_ops): Set 're_set' method.
8859
8860 2013-04-15 Tom Tromey <tromey@redhat.com>
8861
8862 * Makefile.in (SFILES): Add break-catch-throw.c
8863 (COMMON_OBS): Add break-catch-throw.o.
8864 * break-catch-throw.c: New file.
8865 * breakpoint.c: Move exception-catching code to new file.
8866 (ep_parse_optional_if_clause): No longer static.
8867 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8868
8869 2013-04-15 Tom Tromey <tromey@redhat.com>
8870
8871 PR c++/9065:
8872 * NEWS: Update.
8873 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8874 * c-exp.y (TYPEID): New token.
8875 (exp): Add new TYPEID productions.
8876 (ident_tokens): Add "typeid".
8877 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8878 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8879 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8880 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8881 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8882 case.
8883 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8884 (build_std_type_info_type, gnuv3_get_typeid_type)
8885 (gnuv3_get_typeid): New functions.
8886 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8887 new fields on ABI object.
8888 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8889 * std-operator.def (OP_TYPEID): New.
8890
8891 2013-04-15 Tom Tromey <tromey@redhat.com>
8892
8893 * elfread.c (elf_symtab_read): Install versioned symbol under
8894 unversioned name as well.
8895
8896 2013-04-15 Tom Tromey <tromey@redhat.com>
8897
8898 PR c++/11990:
8899 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8900 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8901 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8902 (gdb_demangle): New function.
8903 * cp-support.h (gdb_demangle): Declare.
8904 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8905 (dwarf2_name): Use gdb_demangle.
8906 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8907 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8908 suffixes from name.
8909 (gnuv3_print_method_ptr): Use gdb_demangle.
8910 * jv-lang.c (java_demangle): Use gdb_demangle.
8911 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8912 * language.c (unk_lang_demangle): Use gdb_demangle.
8913 * symtab.c (symbol_find_demangled_name)
8914 (demangle_for_lookup): Use gdb_demangle.
8915
8916 2013-04-15 Tom Tromey <tromey@redhat.com>
8917
8918 PR c++/12824:
8919 * NEWS: Update.
8920 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8921 New constant.
8922 (classify_exception_breakpoint): New function.
8923 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8924 (print_mention_exception_catchpoint)
8925 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8926 (catch_exception_command_1): Handle "rethrow" catchpoint.
8927 (catch_rethrow_command): New function.
8928 (_initialize_breakpoint): Add "catch rethrow" command.
8929
8930 2013-04-15 Pierre Muller <muller@sourceware.org>
8931
8932 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8933 set_gdbarch_write_pc as deprecated anymore.
8934
8935 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8936
8937 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8938 declarations.
8939
8940 2013-04-13 Yao Qi <yao@codesourcery.com>
8941
8942 * ctf.c (_initialize_ctf): Include "completer.h".
8943 Call add_target_with_completer instead of add_target.
8944
8945 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8946
8947 Fix GDB regression related to PR binutils/14813.
8948 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8949 * minidebug.c (lzma_close): Add return value comment.
8950 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8951 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8952 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8953
8954 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8955
8956 * config.in: Regenerate.
8957
8958 2013-04-12 Tom Tromey <tromey@redhat.com>
8959
8960 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8961 const.
8962 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8963 (struct die_reader_specs) <buffer>: Likewise.
8964 (die_reader_func_ftype): Make 'info_ptr' const.
8965 (struct line_header) <include_dirs, statement_program_start,
8966 statement_program_end>: Now const.
8967 (struct file_entry) <name>: Likewise.
8968 (struct partial_die_info) <sibling>: Likewise.
8969 (struct dwarf_block) <data>: Likewise.
8970 (dwarf2_read_section): Remove cast.
8971 (dwarf2_get_section_info): Make 'bufp' const.
8972 (read_index_from_section): Constify.
8973 (dw2_get_file_names_reader): Make 'info_ptr' const.
8974 (dw2_get_primary_filename_reader): Likewise.
8975 (read_comp_unit_head): Make 'info_ptr' and return type const.
8976 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8977 Likewise.
8978 (read_abbrev_offset): Constify.
8979 (dwarf2_create_include_psymtab): Make 'name' const.
8980 (create_debug_types_hash_table): Update.
8981 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8982 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8983 Constify.
8984 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8985 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8986 (read_comp_units_from_section): Constify.
8987 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8988 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8989 const.
8990 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8991 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8992 (create_dwp_hash_table, dwarf2_ranges_read)
8993 (dwarf2_record_block_ranges): Constify.
8994 (read_die_and_children, read_die_and_siblings_1)
8995 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8996 const.
8997 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8998 (abbrev_table_read_table): Constify.
8999 (load_partial_dies): Make 'info_ptr' const.
9000 (read_partial_die, read_attribute_value, read_attribute): Make
9001 'info_ptr' and return type const.
9002 (read_address, read_initial_length)
9003 (read_checked_initial_length_and_offset, read_offset)
9004 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
9005 const.
9006 (read_direct_string): Make 'buf' and return type const.
9007 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
9008 (read_indirect_string): Make return type const.
9009 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
9010 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
9011 'info_ptr' const.
9012 (read_str_index): Make return type const.
9013 (add_include_dir): Make 'include_dir' const.
9014 (add_file_name): Make 'name' const.
9015 (dwarf_decode_line_header): Constify.
9016 (psymtab_include_file_name): Make return type const.
9017 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9018 (dwarf2_start_subfile): Make 'filename' const.
9019 (dwarf2_const_value_attr): Make 'bytes' const.
9020 (read_signatured_type_reader): Make 'info_ptr' const.
9021 (decode_locdesc): Constify.
9022 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9023 const.
9024 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9025 'mac_end', and return type const.
9026 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9027 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9028 type const.
9029 (per_cu_header_read_in): Constify.
9030 * symfile.h (dwarf2_get_section_info): Update.
9031
9032 2013-04-12 Tom Tromey <tromey@redhat.com>
9033
9034 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9035
9036 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9037
9038 * NEWS: Mention "show configuration", --configuration.
9039 * top.c (print_gdb_configuration): New function, displays the
9040 details about GDB configure-time parameters.
9041 (print_gdb_version): Mention "show configuration".
9042 * cli/cli-cmds.c (show_configuration): New function.
9043 (_initialize_cli_cmds): Add the "show configuration" command.
9044 * main.c (captured_main) <print_configuration>: New static var.
9045 <long_options>: Use it.
9046 If --configuration was given, call print_gdb_configuration.
9047
9048 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9049 Pedro Alves <palves@redhat.com>
9050
9051 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9052 (generated_files): Add gcore.
9053 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9054 HAVE_NATIVE_GCORE_HOST.
9055 (gcore): New.
9056 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9057 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9058 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9059 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9060 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9061 Add HAVE_NATIVE_GCORE_HOST.
9062 * configure: Regenerate.
9063 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9064 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9065 AC_CONFIG_FILES for gcore.
9066 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9067 gdb_have_gcore.
9068 * gdb_gcore.sh: Rename to ...
9069 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9070 and GCORE_TRANSFORM_NAME substitutions.
9071
9072 Fix parsing tabs in ${gdb_target_obs}.
9073 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9074
9075 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9076
9077 * remote.c (unpush_and_perror): Add output message final dot.
9078
9079 2013-04-11 Yao Qi <yao@codesourcery.com>
9080
9081 * tracepoint.c (tfile_interp_line): Fit parameters line and
9082 utpp in one line.
9083
9084 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9085
9086 * solib.c (solib_map_sections): Remove code overwriting
9087 SO->SO_NAME with the bfd's filename.
9088
9089 2013-04-10 Pedro Alves <palves@redhat.com>
9090
9091 * cli/cli-decode.c (integer_unlimited_completer): New function.
9092 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9093 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9094 completer.
9095 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9096 (is_unlimited_literal): New function.
9097 (do_set_command): Handle literal "unlimited" arguments.
9098 * frame.c (_initialize_frame) <set backtrace limit>: Document
9099 "unlimited".
9100 * printcmd.c (_initialize_printcmd) <set print
9101 max-symbolic-offset>: Add help text.
9102 * record-full.c (_initialize_record_full) <set record full
9103 insn-number-max>: Likewise.
9104 * record.c (_initialize_record) <set record
9105 instruction-history-size, set record function-call-history-size>:
9106 Add help text.
9107 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9108 help text.
9109 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9110 Likewise.
9111 * source.c (_initialize_source) <set listsize>: Add help text.
9112 * utils.c (initialize_utils) <set height, set width>: Likewise.
9113 <set pagination>: Mention "set height unlimited".
9114 * valprint.c (_initialize_valprint) <set print elements, set print
9115 repeats>: Document "unlimited".
9116
9117 2013-04-10 Pedro Alves <palves@redhat.com>
9118
9119 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9120 instead of disconnect_tracing.
9121 * infcmd.c (detach_command, disconnect_command): Call
9122 query_if_trace_running. Adjust.
9123 * top.c: Include "tracepoint.h".
9124 (quit_target): Delete. Contents moved ...
9125 (quit_force): ... here. Wrap each stage of teardown in
9126 TRY_CATCH. Call disconnect_tracing before detaching.
9127
9128 2013-04-10 Hui Zhu <hui@codesourcery.com>
9129 Yao Qi <yao@codesourcery.com>
9130
9131 * configure.ac: Check libbabeltrace is installed.
9132 * config.in: Regenerate.
9133 * configure: Regenerate.
9134 * Makefile.in (LIBBABELTRACE): New.
9135 (CLIBS): Add LIBBABELTRACE.
9136 * ctf.c: Include "exec.h".
9137 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9138 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9139 (ctf_save_metadata_header): Define new type aliases in
9140 metadata.
9141 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9142 in metadata. Start a new faked packet for trace status.
9143 (ctf_write_status): Write trace status to CTF.
9144 (ctf_write_uploaded_tsv): Write TSV to CTF.
9145 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9146 (ctf_write_definition_end): End the faked packet.
9147
9148 (ctx, ctf_iter, trace_dirname): New.
9149 (start_pos): New variable.
9150 (ctf_destroy, ctf_open_dir, ctf_open): New.
9151 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9152 macros.
9153 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9154 (ctf_fetch_registers, ctf_xfer_partial): New.
9155 (ctf_get_trace_state_variable_value): New.
9156 (ctf_get_tpnum_from_frame_event): New.
9157 (ctf_get_traceframe_address): New.
9158 (ctf_trace_find, ctf_has_stack): New.
9159 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9160 (ctf_get_trace_status, ctf_read_status): New.
9161 (_initialize_ctf): New.
9162 * tracepoint.c (get_tracepoint_number): New
9163 (get_uploaded_tsv): Remove 'static'.
9164 (struct traceframe_info, trace_regblock_size): Move it to ...
9165 * tracepoint.h: ... here.
9166 (get_tracepoint_number): Declare it.
9167 (get_uploaded_tsv): Declare it.
9168
9169 * NEWS: Mention new configure option.
9170
9171 2013-04-10 Pedro Alves <palves@redhat.com>
9172 Hui Zhu <hui@codesourcery.com>
9173
9174 * breakpoint.c (dprintf_re_set): New.
9175 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9176 to dprintf_re_set.
9177
9178 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9179
9180 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9181 Remove solib-svr4.o from the list.
9182
9183 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9184
9185 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9186 Use gdb_assert_not_reached instead of invalid boolean expression.
9187
9188 2013-04-09 Pedro Alves <palves@redhat.com>
9189
9190 * remote.c (unpush_and_perror): New function.
9191 (readchar, remote_serial_write): Use it.
9192
9193 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9194
9195 * NEWS: Mention new btrace RSP packets.
9196
9197 2013-04-08 Tom Tromey <tromey@redhat.com>
9198
9199 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9200 long.
9201
9202 2013-04-08 Tom Tromey <tromey@redhat.com>
9203
9204 * maint.c (print_bfd_section_info): Print the section index.
9205 * symmisc.c (dump_msymbols): Print the section index.
9206
9207 2013-04-08 Tom Tromey <tromey@redhat.com>
9208
9209 PR symtab/8424:
9210 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9211 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9212 * breakpoint.c (resolve_sal_pc): Update.
9213 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9214 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9215 (minsym_lookup_iterator_cb): Use it.
9216 (default_read_var_value): Update.
9217 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9218 Update.
9219 * infcmd.c (jump_command): Update.
9220 * linespec.c (minsym_found): Update.
9221 * maint.c (maintenance_translate_address): Update.
9222 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9223 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9224 * parse.c (write_exp_msymbol): Update.
9225 * printcmd.c (address_info): Update.
9226 * psymtab.c (find_pc_sect_psymbol): Update.
9227 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9228 SYMBOL_OBJ_SECTION.
9229 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9230 Don't initialize SYMBOL_OBJ_SECTION.
9231 * spu-tdep.c (spu_catch_start): Update.
9232 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9233 * symmisc.c (dump_msymbols, print_symbol): Update.
9234 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9235 how fallback section is computed.
9236 (fixup_symbol_section): Update.
9237 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9238 Update.
9239 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9240 Initialize SYMBOL_SECTION.
9241 * symtab.h (struct general_symbol_info) <section>: Update comment.
9242 <obj_section>: Remove.
9243 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9244 (SYMBOL_OBJFILE): New macro.
9245
9246 2013-04-08 Tom Tromey <tromey@redhat.com>
9247
9248 * coffread.c (record_minimal_symbol): Update.
9249 * dbxread.c (record_minimal_symbol): Update.
9250 * elfread.c (record_minimal_symbol): Update.
9251 * machoread.c (macho_symtab_add_minsym): Update.
9252 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9253 Update.
9254 * minsyms.c (prim_record_minimal_symbol): Update.
9255 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9256 argument.
9257 (prim_record_minimal_symbol_and_info): Likewise.
9258 * minsyms.h (prim_record_minimal_symbol_full)
9259 (prim_record_minimal_symbol_and_info): Update.
9260 * symtab.c (allocate_symbol, initialize_symbol)
9261 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9262 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9263 Update.
9264
9265 2013-04-08 Tom Tromey <tromey@redhat.com>
9266
9267 PR symtab/8423:
9268 * solib-som.c (som_solib_section_offsets): Use BFD section
9269 indices. Set offsets for all sections.
9270 * somread.c (som_symtab_read): Compute BFD section for
9271 symbol. Use prim_record_minimal_symbol_and_info.
9272 (som_symfile_read): Fix comment.
9273 (struct find_section_offset_arg): New.
9274 (find_section_offset, set_section_index): New functions.
9275 (som_symfile_offsets): Use set_section_index to compute
9276 section indices.
9277
9278 2013-04-08 Tom Tromey <tromey@redhat.com>
9279
9280 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9281 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9282 gdb_bfd_section_index.
9283 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9284 New functions.
9285 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9286 Declare.
9287 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9288 Update.
9289 * objfiles.c (add_to_objfile_sections_full): New function.
9290 (add_to_objfile_sections): Use it.
9291 (build_section_table): Rewrite.
9292 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9293 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9294 (struct objfile) <sections>: Update comment.
9295 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9296 is NULL.
9297 (ALL_OBJSECTIONS): Use it.
9298 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9299 * solib-frv.c (frv_relocate_main_executable): Update.
9300 * solib-target.c (solib_target_relocate_section_addresses):
9301 Use gdb_bfd_section_index.
9302 * symfile.c (build_section_addr_info_from_section_table):
9303 Use gdb_bfd_section_index.
9304 (build_section_addr_info_from_bfd, place_section): Likewise.
9305 * symtab.c (fixup_section): Update.
9306 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9307
9308 2013-04-08 Tom Tromey <tromey@redhat.com>
9309
9310 * minsyms.h (struct bound_minimal_symbol): New.
9311 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9312 Remove objfile argument.
9313 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9314 Return bound_minimal_symbol.
9315 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9316 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9317 Return bound_minimal_symbol.
9318 (in_gnu_ifunc_stub): Update.
9319 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9320 Remove 'objfile_p' argument.
9321 (lookup_solib_trampoline_symbol_by_pc): Update.
9322 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9323 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9324 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9325 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9326 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9327 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9328 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9329 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9330 stack.c, symtab.c, tui/tui-disasm.c: Update.
9331
9332 2013-04-08 Tom Tromey <tromey@redhat.com>
9333
9334 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9335 Use symbol's obstack, not an objfile.
9336 * coffread.c (process_coff_symbol): Update.
9337 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9338 * jv-lang.c (add_class_symbol): Update.
9339 * mdebugread.c (new_symbol): Update.
9340 * minsyms.c (prim_record_minimal_symbol_full)
9341 (terminate_minimal_symbol_table): Update.
9342 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9343 * stabsread.c (define_symbol, read_enum_type): Update.
9344 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9345 Handle Ada specially.
9346 (symbol_set_language): Add 'obstack' argument.
9347 (symbol_set_names): Update.
9348 (symbol_natural_name, symbol_demangled_name): Always use
9349 ada_decode_symbol.
9350 * symtab.h (struct general_symbol_info)
9351 <language_specific::obstack>: New field.
9352 <ada_mangled>: New field.
9353 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9354 (symbol_set_language): Update.
9355
9356 2013-04-08 Tom Tromey <tromey@redhat.com>
9357
9358 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9359 Take an obstack, not an objfile.
9360 (symbol_set_names): Update.
9361 * symtab.h (symbol_set_demangled_name): Update.
9362
9363 2013-04-08 Tom Tromey <tromey@redhat.com>
9364
9365 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9366 allocate_symbol.
9367 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9368 (read_func_scope): Call allocate_template_symbol.
9369 (new_symbol_full): Call allocate_symbol.
9370 * jit.c (finalize_symtab): Call allocate_symbol.
9371 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9372 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9373 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9374 (common_block_end): Call allocate_symbol.
9375 * symtab.c (allocate_symbol, initialize_symbol)
9376 (allocate_template_symbol): New functions.
9377 * symtab.c (allocate_symbol, initialize_symbol)
9378 (allocate_template_symbol): Declare.
9379 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9380
9381 2013-04-08 Pedro Alves <palves@redhat.com>
9382 Keith Seitz <keiths@redhat.com>
9383
9384 * breakpoint.c (create_breakpoint): Rename
9385 "parse_condition_and_thread" parameter to "parse_arg". Update
9386 describing comment. If !PARSE_ARG, then error out if ARG is not
9387 the empty string after extracting the location.
9388 * breakpoint.h (create_breakpoint): Rename
9389 "parse_condition_and_thread" parameter to "parse_arg".
9390
9391 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9392
9393 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9394
9395 2013-04-07 Yao Qi <yao@codesourcery.com>
9396
9397 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9398 and 'addr2' to CORE_ADDR.
9399 * target.c (update_current_target): Update.
9400 * target.h (struct target_ops) <to_trace_find>: Change parameter
9401 type to CORE_ADDR.
9402 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9403 'addr2' to CORE_ADDR.
9404 (tfile_trace_find): Likewise.
9405 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9406 Change local variable 'addr' to type CORE_ADDR.
9407 * tracepoint.h (tfind_1): Update declaration.
9408
9409 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9410
9411 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9412 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9413 Include main.h.
9414
9415 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9416 here...
9417 * main.h (windows_get_absolute_argv0): ...to here.
9418
9419 2013-04-05 Doug Evans <dje@google.com>
9420
9421 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9422 (read_cutu_die_from_dwo): Add comments.
9423 (read_structure_type): Update comment.
9424 (read_enumeration_type, read_namespace_type): Update comment.
9425 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9426
9427 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9428
9429 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9430 * Makefile.in (gdb.z): Remove.
9431 (install-only): Remove $(man1dir) and gdb.1 installation.
9432 * gdb.1: Remove.
9433
9434 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9435
9436 Fix compatibility with Linux kernel 3.8.3.
9437 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9438 to more inner block. Remove parsing of NUMBER from outer block.
9439 Parse NUMBER only if KEYWORD has been identified.
9440
9441 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9442
9443 Fix variable name shadowing.
9444 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9445 filename to mapsfilename and update its uses.
9446
9447 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9448
9449 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9450 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9451 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9452 details of the problem.
9453
9454 2013-04-04 Pedro Alves <palves@redhat.com>
9455 Hui Zhu <hui@codesourcery.com>
9456
9457 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9458 tracepoint, reset its STEP_COUNT and call validate_actionline.
9459
9460 2013-04-03 Doug Evans <dje@google.com>
9461
9462 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9463 read_die_and_siblings.
9464 (read_die_and_siblings): New function.
9465 (read_cutu_die_from_dwo): Dump die if requested.
9466 (read_die_and_children): Call read_full_die_1 and
9467 read_die_and_siblings_1.
9468 (read_full_die): Dump die if requested.
9469
9470 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9471
9472 * dwarf2read.c (struct dwo_file): New member comp_dir.
9473 Rename member name to dwo_name. All uses updated.
9474 (hash_dwo_file): Include comp_dir in computation.
9475 (eq_dwo_file): Ditto.
9476 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9477 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9478
9479 * psymtab.c (read_psymtabs_with_fullname): Don't call
9480 psymtab_to_fullname if the basenames are different.
9481
9482 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9483
9484 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9485 New entry about "fullname" presence.
9486
9487 2013-04-03 Pedro Alves <palves@redhat.com>
9488
9489 * NEWS: Mention x86_64/Cygwin as new native configuration.
9490
9491 2013-04-02 Doug Evans <dje@google.com>
9492
9493 * dwarf2read.c (read_structure_type): Fix typo in comment.
9494
9495 2013-04-02 Pedro Alves <palves@redhat.com>
9496
9497 * NEWS: Mention "set/show debug aarch64", "set/show debug
9498 coff-pe-read" and "set/show debug mach-o".
9499
9500 2013-04-02 Pedro Alves <palves@redhat.com>
9501
9502 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9503
9504 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9505
9506 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9507 gdb_string.h is now in common/.
9508
9509 2013-04-02 Pedro Alves <palves@redhat.com>
9510
9511 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9512 under "New options".
9513
9514 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9515
9516 Revert this patch:
9517 PR gdb/15275
9518 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9519
9520 2013-04-02 Pedro Alves <palves@redhat.com>
9521
9522 PR gdb/15275
9523
9524 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9525 (remote_serial_write): New function.
9526 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9527
9528 2013-04-01 Jiong Wang <jiwang@tilera.com>
9529
9530 * NEWS: Mention TILE-Gx in "New native configurations" and
9531 "New targets" sections.
9532
9533 2013-04-01 Doug Evans <dje@google.com>
9534
9535 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9536 (process_enumeration_scope): Simplify.
9537
9538 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9539 type_unit_group ...
9540 (struct signatured_type): ... to here.
9541 (sig_type_ptr): New typedef.
9542 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9543 out of union 't'. All uses updated.
9544 (dw2_get_file_names_reader): Assert not called for a type unit.
9545 (dw2_get_file_names): Assert not called for a type unit or type
9546 unit group.
9547 (build_type_psymtabs_reader): Assert called for a type unit.
9548 (build_type_psymtab_dependencies): Assert called for a type unit group.
9549
9550 * dwarf2read.c (free_dwo_file): Add comment.
9551 (dwarf2_per_objfile_free): Unref dwp bfd.
9552
9553 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9554
9555 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9556 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9557 (read_pe_exported_syms): Remove unused 'exportix'.
9558 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9559 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9560 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9561
9562 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9563
9564 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9565 (print_it_watchpoint): Remove unused 'bl'.
9566 (say_where): Remove unused 'uiout'.
9567 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9568 (bkpt_breakpoint_hit): Remove unused 'b'.
9569 (internal_bkpt_print_it): Remove unused 'uiout'.
9570 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9571
9572 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9573
9574 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9575 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9576
9577 2013-03-29 Doug Evans <dje@google.com>
9578
9579 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9580 Delete arg is_dwp. All callers updated.
9581 (open_dwp_file): New function.
9582 (open_and_init_dwp_file): Call it.
9583 (get_dwp_file): New function.
9584 (lookup_dwo_cutu): Call it.
9585
9586 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9587 unnecessary, cleanup.
9588
9589 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9590
9591 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9592 (lookup_dwo_unit): New function.
9593 (init_cutu_and_read_dies): Move DWO handling to new functions.
9594
9595 * dwarf2read.c (struct signatured_type): Tweak comment.
9596 (struct dwo_unit): Tweak comment.
9597 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9598 (create_dwo_debug_info_hash_table): Tweak comment.
9599 (dwarf2_per_cu_offset_and_type): Tweak comment.
9600
9601 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9602 missing .debug_types section.
9603
9604 2013-03-29 Yao Qi <yao@codesourcery.com>
9605
9606 * corelow.c: Include "completer.h".
9607 (_initialize_corelow): Call add_target_with_completer with
9608 argument 'filename_completer'.
9609 * tracepoint.c: Likewise.
9610 * exec.c (_initialize_exec): Likewise.
9611 * target.c (add_target): Rename to ...
9612 (add_target_with_completer): ... this. Call set_cmd_completer
9613 if parameter completer is not NULL.
9614 (add_target): New.
9615 * target.h: Include "command.h".
9616 (add_target_with_completer): Declare it.
9617
9618 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9619
9620 * coffread.c (is_import_fixup_symbol): New function.
9621 (record_minimal_symbol): Use is_import_fixup_symbol to
9622 detect import fixup symbols, and discard them.
9623
9624 2013-03-28 Doug Evans <dje@google.com>
9625
9626 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9627 types hash table until we know we need it.
9628
9629 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9630 index numbers.
9631
9632 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9633 All callers updated.
9634 (dw2_print_stats): Print #read CUs too.
9635 (dump_die_shallow): Print signatured types better.
9636
9637 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9638 info_or_types_section to section. All uses updated.
9639 (struct dwo_unit): Ditto.
9640
9641 2013-03-28 Pedro Alves <palves@redhat.com>
9642
9643 * NEWS (New options): New section.
9644 (New options): Mention set/show remote trace-status-packet.
9645 * remote.c (PACKET_qTStatus): New enumeration value.
9646 (remote_get_trace_status): Skip sending qTStatus if the packet is
9647 disabled. Use packet_ok.
9648 (_initialize_remote): Register a configuration command for
9649 qTStatus packet.
9650
9651 2013-03-28 Doug Evans <dje@google.com>
9652
9653 * symfile.c (find_separate_debug_file): Add comment.
9654 (terminate_after_last_dir_separator): Tweak comment.
9655
9656 * dwarf2read.c (create_partial_symtab): Add forward decl.
9657 (create_partial_symtab): Move to be closer to other psymtab functions.
9658 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9659
9660 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9661 (compute_symtab_includes): Remove unnecessary forward declaration.
9662 (die_needs_namespace): Add comment marking group of functions for
9663 dwarf2 name computation.
9664
9665 * typeprint.c (_initialize_typeprint): Improve type help text.
9666
9667 * python/python.c (finish_python_initialization): Provide suggestion
9668 for how to tell gdb to find its python files.
9669
9670 2013-03-28 Pedro Alves <palves@redhat.com>
9671
9672 PR gdb/15294
9673
9674 * source.c (_initialize_source): Change back "set listsize" to an
9675 integer command.
9676
9677 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9678
9679 PR gdb/15275
9680 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9681
9682 2013-03-27 Pedro Alves <palves@redhat.com>
9683
9684 * top.c (history_size): Rename to ...
9685 (history_size_setshow_var): ... this. Add comment.
9686 (show_commands): Use readline's 'history_length' instead of
9687 computing the history length by calling history_get in a loop.
9688 (set_history_size_command): Error out for sizes over INT_MAX.
9689 Restore previous history size on invalid size.
9690 (init_history): If HISTSIZE is negative, leave the history size as
9691 zero. Add comments.
9692 (init_main): Adjust.
9693
9694 2013-03-27 Pedro Alves <palves@redhat.com>
9695
9696 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9697 coff_pe_read" command to "set debug coff-pe-read".
9698
9699 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9700
9701 * record.c (command_size_to_target_size): Fix size comparison.
9702 Change parameter type from pointer to integer to integer.
9703 Update all users.
9704
9705 2013-03-27 Pierre Muller <muller@sourceware.org>
9706
9707 * windows-nat.c (handle_output_debug_string): Avoid typecast
9708 from integer of different size warning.
9709
9710 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9711
9712 * windows-nat.c (handle_output_debug_string): Add empty line
9713 after local block variable definition.
9714
9715 2013-03-26 Pedro Alves <palves@redhat.com>
9716
9717 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9718 (net_open): Make 'polls' local unsigned.
9719
9720 2013-03-26 Pedro Alves <palves@redhat.com>
9721
9722 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9723 a zuinteger command instead of uinteger.
9724
9725 2013-03-26 Pedro Alves <palves@redhat.com>
9726
9727 * record-full.c (record_full_insn_num): Make it unsigned.
9728 (record_full_check_insn_num, record_full_message)
9729 (record_full_registers_change, record_full_xfer_partial): Remove
9730 record_full_insn_max_num check (it's always != 0).
9731 (record_full_info, record_full_restore): Use %u as format string.
9732 (): Use %u as format string.
9733 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9734 check (it's always != 0).
9735
9736 2013-03-26 Pedro Alves <palves@redhat.com>
9737
9738 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9739 and "set dcache size" commands zuinteger instead of uinteger.
9740
9741 2013-03-26 Pedro Alves <palves@redhat.com>
9742
9743 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9744 command zuinteger instead of uinteger.
9745
9746 2013-03-26 Pedro Alves <palves@redhat.com>
9747
9748 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9749 zuinteger instead of uinteger.
9750
9751 2013-03-26 Pedro Alves <palves@redhat.com>
9752
9753 * record.c (record_insn_history_size_setshow_var)
9754 (record_call_history_size_setshow_var): New globals.
9755 (command_size_to_target_size): New function.
9756 (cmd_record_insn_history, cmd_record_call_history): Use
9757 command_size_to_target_size instead of cast.
9758 (validate_history_size, set_record_insn_history_size)
9759 (set_record_call_history_size): New functions.
9760 (_initialize_record): Install set_record_insn_history_size and
9761 set_record_call_history_size as "set" hooks of "set record
9762 instruction-history-size" and "set record
9763 function-call-history-size".
9764
9765 2013-03-26 Pedro Alves <palves@redhat.com>
9766
9767 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9768 use with history_max_entries use. Remove FIXME note.
9769
9770 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9771
9772 * record-btrace.c (record_btrace_close): Call
9773 record_btrace_auto_disable.
9774
9775 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9776
9777 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9778
9779 2013-03-25 Doug Evans <dje@google.com>
9780
9781 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9782
9783 2013-03-25 Tom Tromey <tromey@redhat.com>
9784
9785 PR symtab/11462:
9786 * c-exp.y (exp): Add new productions for destructors after '.' and
9787 '->'.
9788 (write_destructor_name): New function.
9789
9790 2013-03-25 Tom Tromey <tromey@redhat.com>
9791
9792 PR c++/9197:
9793 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9794 value_struct_elt, not lookup_struct_elt_type.
9795 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9796 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9797 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9798
9799 2013-03-25 Yao Qi <yao@codesourcery.com>
9800
9801 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9802 instead of '_mkdir'.
9803
9804 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9805
9806 * windows-nat.c (windows_get_absolute_argv0): New function.
9807 * windows-nat.h: Add its prototype.
9808
9809 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9810 Use IS_DIR_SEPARATOR instead of looking for a character inside
9811 SLASH_STRING. Include filenames.h.
9812 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9813 relocate_gdb_directory works when passed gdb_program_name.
9814 Include windows-nat.h.
9815
9816 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9819 * remote.c (trace_error): Remove the special handling of '2'.
9820 (readchar) <SERIAL_EOF>
9821 (readchar) <SERIAL_ERROR>
9822 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9823 (remote_get_trace_status): Call throw_exception if EX is
9824 TARGET_CLOSE_ERROR.
9825 * utils.c (perror_with_name): Rename to ...
9826 (throw_perror_with_name): ... here. New parameter errcode, describe it
9827 in the function comment.
9828 (perror_with_name): New function wrapper.
9829 * utils.h (enum errors): New stub declaration.
9830 (throw_perror_with_name): New declaration.
9831
9832 2013-03-22 Pedro Alves <palves@redhat.com>
9833 Yao Qi <yao@codesourcery.com>
9834 Mark Kettenis <kettenis@gnu.org>
9835
9836 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9837 Don't let the user set the value to UINT_MAX directly.
9838 <var_integer>: Don't let the user set the value to INT_MAX
9839 directly.
9840
9841 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9842
9843 * remote.c (remote_unpush_target): New function.
9844 (remote_open_1): Remove two pop_target calls, update one comment, add
9845 comment to target_preopen call. Replace pop_target call by
9846 remote_unpush_target call.
9847 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9848 pop_target calls by remote_unpush_target calls.
9849
9850 2013-03-22 Pedro Alves <palves@redhat.com>
9851
9852 * linux-nat.c (linux_child_follow_fork): Don't call
9853 linux_enable_event_reporting.
9854 (linux_handle_extended_wait): Don't call
9855 linux_enable_event_reporting.
9856
9857 2013-03-22 Pedro Alves <palves@redhat.com>
9858
9859 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9860 use it to rewrite the trampoline buffers with type gdb_byte[], and
9861 undefine the macro. Remove char* cast.
9862
9863 2013-03-21 Doug Evans <dje@google.com>
9864
9865 New commands "mt set per-command {space,time,symtab} {on,off}".
9866 * NEWS: Add entry.
9867 * event-top.c: #include "maint.h".
9868 * main.c: #include "maint.h".
9869 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9870 timeval-utils.h, maint.h, cli/cli-setshow.h.
9871 (per_command_time, per_command_space): New static globals.
9872 (per_command_symtab): New static global.
9873 (per_command_setlist, per_command_showlist): New static globals.
9874 (struct cmd_stats): Move here from utils.c.
9875 (set_per_command_time): Renamed from set_display_time in utils.c
9876 and moved here. All callers updated.
9877 (set_per_command_space): Renamed from set_display_space in utils.c
9878 and moved here. All callers updated.
9879 (count_symtabs_and_blocks): New function.
9880 (report_command_stats): Moved here from utils.c. Add support for
9881 printing symtab stats. Only print data if enabled before command
9882 executed.
9883 (make_command_stats_cleanup): Ditto.
9884 (sert_per_command_cmd, show_per_command_cmd): New functions.
9885 (_initialize_maint_cmds): Add new commands
9886 mt set per-command {space,time,symtab} {on,off}.
9887 * maint.h: New file.
9888 * top.c: #include "maint.h".
9889 * utils.c (reset_prompt_for_continue_wait_time): New function.
9890 (get_prompt_for_continue_wait_time): New function.
9891 * utils.h (reset_prompt_for_continue_wait_time): Declare
9892 (get_prompt_for_continue_wait_time): Declare.
9893 (make_command_stats_cleanup): Moved to maint.h.
9894 (set_display_time, set_display_space): Moved to maint.h and renamed
9895 to set_per_command_time, set_per_command_space.
9896 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9897 parse_binary_operation and made non-static. Don't call error,
9898 just return an error marker. All callers updated.
9899 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9900
9901 2013-03-21 Tom Tromey <tromey@redhat.com>
9902
9903 * symfile.c (alloc_section_addr_info): Update header. Don't set
9904 'num_sections' field.
9905 (build_section_addr_info_from_section_table): Set 'num_sections'.
9906 (build_section_addr_info_from_bfd): Likewise.
9907 (build_section_addr_info_from_objfile): Remove dead loop
9908 condition.
9909 (free_section_addr_info): Unconditionally call xfree.
9910 (relative_addr_info_to_section_offsets, addrs_section_sort)
9911 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9912 condition.
9913 (syms_from_objfile_1): Remove dead 'if' condition. Check
9914 'num_sections'.
9915 (add_symbol_file_command): Set 'num_sections'.
9916 * symfile-mem.c (symbol_file_add_from_memory): Set
9917 'num_sections'.
9918 * somread.c (som_symfile_offsets): Remove dead loop condition.
9919 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9920 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9921
9922 2013-03-21 Tom Tromey <tromey@redhat.com>
9923
9924 * tracepoint.h (decode_agent_options): Add 'trace_string'
9925 argument.
9926 * tracepoint.c (decode_agent_options): Add 'trace_string'
9927 argument.
9928 (validate_actionline): Update.
9929 (collect_symbol): Add 'trace_string' argument.
9930 (struct add_local_symbols_data) <trace_string>: New field.
9931 (do_collect_symbol): Update.
9932 (add_local_symbols): Add 'trace_string' argument.
9933 (encode_actions_1): Update.
9934 (trace_dump_actions): Update.
9935 * dwarf2loc.c (access_memory): Update.
9936 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9937 * ax-general.c (new_agent_expr): Update.
9938 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9939 (gen_trace_for_return_address): Add argument.
9940 (trace_kludge, trace_string_kludge): Remove.
9941 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9942 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9943 (gen_trace_for_var): Add 'trace_string' argument.
9944 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9945 (gen_printf, agent_eval_command_one): Update.
9946
9947 2013-03-21 Tom Tromey <tromey@redhat.com>
9948
9949 PR exp/15109:
9950 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9951 Handle FILENAME token.
9952
9953 2013-03-21 Tom Tromey <tromey@redhat.com>
9954
9955 * c-exp.y (YYPRINT): Define.
9956 (c_print_token): New function.
9957
9958 2013-03-21 Tom Tromey <tromey@redhat.com>
9959
9960 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9961
9962 2013-03-21 Yao Qi <yao@codesourcery.com>
9963
9964 * ctf.c: Include "gdb_stat.h".
9965 [USE_WIN32API]: New macro 'mkdir'.
9966 (ctf_start): Use permission bits macros if they are defined.
9967
9968 2013-03-20 Keith Seitz <keiths@redhat.com>
9969
9970 * breakpoint.h (struct breakpoint): Add comment to
9971 extra_string indicating that this member is mallod'd.
9972 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9973
9974 2013-03-20 Pedro Alves <palves@redhat.com>
9975
9976 PR gdb/15289
9977
9978 * cli/cli-setshow.c (do_set_command)
9979 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9980 the result of parsing the command argument. Throw error if the
9981 value is greater than UINT_MAX. Print the invalid value with
9982 plongest.
9983 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9984 result of parsing the command argument. Throw error if the value
9985 is greater than INT_MAX, not greater or equal. Also throw error
9986 if the value is less than INT_MIN. Print the invalid value with
9987 plongest.
9988 <var_zuinteger_unlimited>: Throw error if the value is greater
9989 than INT_MAX, not greater or equal.
9990 (do_show_command) <var_integer, var_zinteger,
9991 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9992
9993 2013-03-20 Tom Tromey <tromey@redhat.com>
9994
9995 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9996 if possible.
9997 * dwarf2read.c (read_func_scope): Remove old FIXME.
9998 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9999 not LOC_COMPUTED.
10000 * findvar.c (symbol_read_needs_frame, default_read_var_value):
10001 Unconditionally call via computed ops, if possible.
10002 * printcmd.c (address_info): Unconditionally call via computed ops,
10003 if possible.
10004 * stack.c (read_frame_arg): Unconditionally call via computed ops,
10005 if possible.
10006 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
10007 * tracepoint.c (scope_info): Unconditionally call via computed ops,
10008 if possible.
10009
10010 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10011 Tom Tromey <tromey@redhat.com>
10012
10013 PR symtab/8421:
10014 * coffread.c (coff_register_index): New global.
10015 (process_coff_symbol, coff_read_enum_type): Set
10016 SYMBOL_ACLASS_INDEX.
10017 (_initialize_coffread): Initialize new global.
10018 * dwarf2loc.c (locexpr_find_frame_base_location)
10019 (dwarf2_block_frame_base_locexpr_funcs)
10020 (loclist_find_frame_base_location)
10021 (dwarf2_block_frame_base_loclist_funcs): New.
10022 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10023 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10024 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10025 (dwarf2_block_frame_base_loclist_funcs): New.
10026 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10027 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10028 globals.
10029 (read_func_scope): Update.
10030 (fixup_go_packaging, mark_common_block_symbol_computed)
10031 (var_decode_location, new_symbol_full, dwarf2_const_value):
10032 Set SYMBOL_ACLASS_INDEX.
10033 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10034 (_initialize_dwarf2_read): Initialize new globals.
10035 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10036 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10037 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10038 globals.
10039 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10040 (_initialize_mdebugread): Initialize new globals.
10041 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10042 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10043 (stab_register_index, stab_regparm_index): New globals.
10044 (define_symbol, read_enum_type, common_block_end): Set
10045 SYMBOL_ACLASS_INDEX.
10046 (_initialize_stabsread): Initialize new globals.
10047 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10048 globals.
10049 (MAX_SYMBOL_IMPLS): New define.
10050 (register_symbol_computed_impl, register_symbol_block_impl)
10051 (register_symbol_register_impl)
10052 (initialize_ordinary_address_classes): New functions.
10053 (_initialize_symtab): Call initialize_ordinary_address_classes.
10054 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10055 (struct symbol_impl): New.
10056 (SYMBOL_ACLASS_BITS): New define.
10057 (struct symbol) <aclass, ops>: Remove fields.
10058 <aclass_index>: New field.
10059 (symbol_impls): Declare.
10060 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10061 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10062 (register_symbol_computed_impl, register_symbol_block_impl)
10063 (register_symbol_register_impl): Declare.
10064 (struct symbol_computed_ops): Add location_has_loclist.
10065 (struct symbol_block_ops): New.
10066 (SYMBOL_BLOCK_OPS): New.
10067 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10068
10069 2013-03-20 Tom Tromey <tromey@redhat.com>
10070
10071 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10072 (print_partial_symbols, recursively_search_psymtabs): Use
10073 PSYMBOL_CLASS.
10074
10075 2013-03-20 Pierre Muller <muller@sourceware.org>
10076
10077 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10078 addtion, subtraction, multiplication and division binary operator.
10079
10080 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10081
10082 Code cleanup.
10083 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10084 * bsd-kvm.c (bsd_kvm_close): Likewise.
10085 * bsd-uthread.c (bsd_uthread_close): Likewise.
10086 * corelow.c (core_close): Likewise.
10087 (core_close_cleanup): Remove parameter quitting from a caller.
10088 * event-top.c (async_disconnect): Likewise.
10089 * exec.c (exec_close_1): Remove parameter quitting.
10090 * go32-nat.c (go32_close): Likewise.
10091 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10092 parameter quitting from a caller.
10093 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10094 variable.
10095 (mips_linux_close): Remove parameter quitting. Remove parameter
10096 quitting from a caller.
10097 * monitor.c (monitor_close): Remove parameter quitting.
10098 * monitor.h (monitor_close): Likewise.
10099 * record-btrace.c (record_btrace_close): Likewise.
10100 * record-full.c (record_full_close): Likewise.
10101 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10102 it also from fprintf_unfiltered.
10103 * remote-mips.c (mips_close): Remove parameter quitting.
10104 (mips_detach): Remove parameter quitting from a caller.
10105 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10106 (gdbsim_close): Remove duplicate function comment. Remove parameter
10107 quitting and remove it also from printf_filtered.
10108 * remote.c (remote_close): Remove parameter quitting.
10109 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10110 * target.c (update_current_target): Remove parameter int from to_close
10111 de_fault.
10112 (push_target, unpush_target, pop_target): Remove parameter quitting from
10113 a caller.
10114 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10115 Remove parameter quitting from a caller.
10116 (target_preopen): Remove parameter quitting from a caller.
10117 (target_close): Remove parameter quitting. Remove parameter quitting
10118 from a caller two times. Remove parameter quitting also from
10119 fprintf_unfiltered.
10120 * target.h (struct target_ops): Remove parameter quitting and as int
10121 from fields to_xclose and to_close.
10122 (extern struct target_ops current_target):
10123 (target_close, pop_all_targets): Remove parameter quitting. Update the
10124 comment.
10125 (pop_all_targets_above): Remove parameter quitting.
10126 * top.c (quit_target): Remove parameter quitting from a caller.
10127 * tracepoint.c (tfile_close): Remove parameter quitting.
10128 * windows-nat.c (windows_close): Remove parameter quitting.
10129
10130 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10131
10132 * windows-nat.c (handle_output_debug_string): Replace call
10133 to string_to_core_addr with call to strtoull.
10134
10135 2013-03-20 Yao Qi <yao@codesourcery.com>
10136
10137 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10138 and write it to CTF metadata.
10139
10140 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10141
10142 * windows-nat.c (handle_output_debug_string): Change type of n to
10143 SIZE_T to avoid crash on 64 bit systems.
10144
10145 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10146
10147 * python/python-internal.h (HAVE_SNPRINTF)
10148 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10149 about redefinition of snprintf by pyerrors.h.
10150
10151 2013-03-15 Steve Ellcey <sellcey@mips.com>
10152
10153 * remote-sim.c (sim_command_completer): Make char arguments const.
10154
10155 2013-03-15 Tom Tromey <tromey@redhat.com>
10156
10157 PR c++/15116:
10158 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10159
10160 2013-03-14 Tom Tromey <tromey@redhat.com>
10161
10162 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10163 New fields.
10164 (get_file_crc): Move from symfile.c.
10165 (gdb_bfd_crc): New function.
10166 * gdb_bfd.h (gdb_bfd_crc): Declare.
10167 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10168 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10169 (separate_debug_file_exists): Use gdb_bfd_crc.
10170
10171 2013-03-14 Tom Tromey <tromey@redhat.com>
10172
10173 * symfile.c (get_debug_link_info): Remove.
10174 (find_separate_debug_file_by_debuglink): Use
10175 bfd_get_debug_link_info.
10176
10177 2013-03-14 Tom Tromey <tromey@redhat.com>
10178
10179 * symtab.c (error_in_psymtab_expansion): New function.
10180 (lookup_symbol_aux_quick)
10181 (basic_lookup_transparent_type_quick): Remove "last resort"
10182 code. Use error_in_psymtab_expansion.
10183
10184 2013-03-14 Doug Evans <dje@google.com>
10185 Jan Kratochvil <jan.kratochvil@redhat.com>
10186
10187 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10188 any successful compare_filenames_for_search or FILENAME_CMP.
10189 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10190 * symtab.c (iterate_over_some_symtabs): Likewise.
10191
10192 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 * source.c (print_source_lines_base): Make a local copy of
10195 symtab_to_fullname.
10196
10197 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10198 Jan Kratochvil <jan.kratochvil@redhat.com>
10199
10200 * source.c (print_source_lines_base): Suppress "file" for TUI.
10201
10202 2013-03-14 Keith Seitz <keiths@redhat.com>
10203 Alan Matsuoka <alanm@redhat.com>
10204
10205 PR c++/15203
10206 PR c++/15210
10207 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10208 TYPE_CODE_METHOD.
10209 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10210 symbols.
10211
10212 2013-03-14 Yao Qi <yao@codesourcery.com>
10213
10214 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10215 status to tfile if trace is stopped by command 'tstop'.
10216
10217 2013-03-14 Yao Qi <yao@codesourcery.com>
10218
10219 * tracepoint.c (tfile_write_status): Write trace notes and user
10220 name into tfile if they are not NULL.
10221
10222 2013-03-14 Hui Zhu <hui@codesourcery.com>
10223 Yao Qi <yao@codesourcery.com>
10224
10225 * Makefile.in (REMOTE_OBS): Add ctf.o.
10226 (SFILES): Add ctf.c.
10227 (HFILES_NO_SRCDIR): Add ctf.h.
10228 * ctf.c, ctf.h: New files.
10229 * tracepoint.c: Include 'ctf.h'.
10230 (collect_pseudocommand): Remove static.
10231 (trace_save_command): Parse option "-ctf".
10232 Produce different trace file writers per option.
10233 Adjust output message.
10234 (trace_save_tfile, trace_save_ctf): New.
10235 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10236 * mi/mi-main.c: Include 'ctf.h'.
10237 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10238 trace_save_tfile or trace_save_ctf.
10239 * NEWS: Mention these changes.
10240
10241 2013-03-14 Yao Qi <yao@codesourcery.com>
10242
10243 * tracepoint.c (trace_file_writer_xfree): New.
10244 (struct tfile_writer_data): New.
10245 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10246 (tfile_write_header, tfile_write_regblock_type): New.
10247 (tfile_write_status, tfile_write_uploaded_tsv): New.
10248 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10249 (tfile_write_raw_data, (tfile_end): New.
10250 (tfile_write_ops): New global variable.
10251 (TRACE_WRITE_R_BLOCK): New macro.
10252 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10253 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10254 (TRACE_WRITE_V_BLOCK): New macro.
10255 (trace_save): Add extra one parameter WRITER. Make it static.
10256 Use WRITER to writer trace.
10257 (tfile_trace_file_writer_new): New.
10258 (trace_save_command): Caller update.
10259 (trace_save_tfile): Write trace data in TFILE format.
10260 * tracepoint.h (struct trace_frame_write_ops): New.
10261 (struct trace_file_write_ops): New.
10262 (struct trace_file_writer): New.
10263 (trace_save): Remove its declaration.
10264 (trace_save_tfile): Declare it.
10265 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10266 instead of trace_save.
10267
10268 2013-03-13 Pedro Alves <palves@redhat.com>
10269
10270 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10271
10272 2013-03-13 Pedro Alves <palves@redhat.com>
10273
10274 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10275 commented out code.
10276 * demangle.c (current_demangling_style_string): Make it const.
10277 (set_demangling_command): Assert the demangling style is known.
10278 Remove all handling of unknown styles. Set
10279 'current_demangling_style_string' to an element of the
10280 demangling_style_names array.
10281 (set_demangling_style): Delete.
10282 (_initialize_demangler): Set current_demangling_style_string to the
10283 element of the demangling_style_names array that corresponds to
10284 the default demangling style. Remove FIXME note. Don't call
10285 set_demangling_style.
10286 * gdb-demangle.h (set_demangling_style): Remove declaration.
10287
10288 2013-03-13 Pedro Alves <palves@redhat.com>
10289
10290 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10291 fields const.
10292 (ada_make_symbol_completion_list): Make "text0" parameter const.
10293 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10294 * breakpoint.c (condition_completer): Make "text" and "word"
10295 parameters const. Adjust.
10296 (check_tracepoint_command): Adjust to validate_actionline
10297 prototype change.
10298 (catch_syscall_completer): Make "text" and "word" parameters
10299 const.
10300 * cli/cli-cmds.c (show_user): Make "comname" local const.
10301 (valid_command_p): Make "command" parameter const.
10302 (alias_command): Make "alias_prefix" and "command_prefix" locals
10303 const.
10304 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10305 (add_alias_cmd): Make "name" and "oldname" parameters const.
10306 Adjust. No longer make copy of OLDNAME.
10307 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10308 (add_setshow_cmd_full, add_setshow_enum_cmd)
10309 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10310 (add_setshow_filename_cmd, add_setshow_string_cmd)
10311 (add_setshow_string_noescape_cmd)
10312 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10313 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10314 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10315 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10316 Make "name" parameter const.
10317 (help_cmd): Rename "command" parameter to "arg". New const local
10318 "command".
10319 (find_cmd): Make "command" parameter const.
10320 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10321 deprecated_cmd_warning prototype change.
10322 (undef_cmd_error): Make "cmdtype" parameter const.
10323 (lookup_cmd): Make "line" parameter const.
10324 (deprecated_cmd_warning): Change type of "text" parameter to
10325 pointer to const char, from pointer to pointer to char. Adjust.
10326 (lookup_cmd_composition): Make "text" parameter const.
10327 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10328 parameters const.
10329 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10330 const.
10331 * cli/cli-script.c (validate_comname): Make "tem" local const.
10332 (define_command): New const local "tem_c". Use it in calls to
10333 lookup_cmd.
10334 (document_command): Make "tem" and "comfull" locals const.
10335 (show_user_1): Make "prefix" and "name" parameters const.
10336 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10337 const.
10338 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10339 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10340 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10341 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10342 (complete_on_enum, add_setshow_enum_cmd)
10343 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10344 (add_setshow_filename_cmd, add_setshow_string_cmd)
10345 (add_setshow_string_noescape_cmd)
10346 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10347 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10348 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10349 Change prototypes, constifying strings.
10350 * completer.c (noop_completer, filename_completer): Make "text"
10351 and "prefix" parameters const.
10352 (location_completer, expression_completer)
10353 (complete_line_internal): Make "text" and "prefix" parameters
10354 const and adjust.
10355 (command_completer, signal_completer): Make "text" and "prefix"
10356 parameters const.
10357 * completer.h (noop_completer, filename_completer)
10358 (expression_completer, location_completer, command_completer)
10359 (signal_completer): Change prototypes.
10360 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10361 parameters const.
10362 * cp-abi.c (cp_abi_completer): Likewise.
10363 * expression.h (parse_expression_for_completion): Change
10364 prototype.
10365 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10366 parameters const.
10367 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10368 * infrun.c (handle_completer): Make "text" and "word" parameters
10369 const.
10370 * interps.c (interpreter_completer): Make "text" and "word"
10371 parameters const.
10372 * language.h (struct language_defn)
10373 <la_make_symbol_completion_list>: Make "text" and "word"
10374 parameters const.
10375 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10376 (parse_exp_in_context): Rename to ...
10377 (parse_exp_in_context_1): ... this.
10378 (parse_exp_in_context): Reimplement, with const hack from
10379 parse_exp_1.
10380 (parse_expression_for_completion): Make "string" parameter const.
10381 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10382 to pointer to const char. Adjust.
10383 (print_command_1): Make "exp" parameter const.
10384 (output_command): Rename to ...
10385 (output_command_const): ... this. Make "exp" parameter const.
10386 (output_command): Reimplement.
10387 (x_command): Adjust.
10388 (display_command): Rename "exp" parameter to "arg". New "exp"
10389 local, const version of "arg".
10390 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10391 "cmd_name" local const.
10392 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10393 call.
10394 (cmdpy_completer): Make "text" and "word" parameters const.
10395 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10396 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10397 const.
10398 * remote.c (_initialize_remote): Make "cmd_name" local const.
10399 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10400 parameters const. Adjust.
10401 (completion_list_add_fields): Make "sym_text", "text" and "word"
10402 parameters const.
10403 (struct add_name_data) <sym_text, text, word>: Make fields const.
10404 (default_make_symbol_completion_list_break_on): Make "text" and
10405 "word" parameters const. Adjust locals.
10406 (default_make_symbol_completion_list)
10407 (make_symbol_completion_list, make_symbol_completion_type)
10408 (make_symbol_completion_list_fn): Make "text" and "word"
10409 parameters const.
10410 (make_file_symbol_completion_list): Make "text", "word" and
10411 "srcfile" parameters const. Adjust locals.
10412 (add_filename_to_list): Make "text" and "word" parameters const.
10413 (struct add_partial_filename_data) <text, word>: Make fields
10414 const.
10415 (make_source_files_completion_list): Make "text" and "word"
10416 parameters const.
10417 * symtab.h (default_make_symbol_completion_list_break_on)
10418 (default_make_symbol_completion_list, make_symbol_completion_list)
10419 (make_symbol_completion_type enum type_code)
10420 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10421 (make_source_files_completion_list): Change prototype.
10422 * top.c (execute_command): Adjust to pass pointer to pointer to
10423 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10424 change.
10425 (set_verbose): Make "cmdname" local const.
10426 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10427 and adjust.
10428 (validate_actionline): Make "line" parameter a pointer to const
10429 char, and adjust.
10430 (encode_actions_1): Make "action_exp" local const, and adjust.
10431 (encode_actions): Adjust.
10432 (replace_comma): Delete.
10433 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10434 const, and adjust. Don't frob the action string while splitting
10435 it at commas. Instead, make a copy of each split substring in
10436 turn.
10437 (trace_dump_command): Adjust to validate_actionline prototype
10438 change.
10439 * tracepoint.h (decode_agent_options, decode_agent_options)
10440 (encode_actions, validate_actionline): Change prototypes.
10441 * valprint.h (output_command): Delete declaration.
10442 (output_command_const): Declare.
10443 * value.c (function_destroyer): Cast const away in xfree call.
10444
10445 2013-03-13 Pedro Alves <palves@redhat.com>
10446
10447 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10448 rather than casting 'const char * const *' to 'const char **'.
10449 * ada-lex.l (processInt): Make "trailer" local const. Remove
10450 'const char **' cast.
10451 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10452 locals, and use those as strtol output pointer, instead than doing
10453 invalid casts to from 'const char **' to 'char **'.
10454 (_initialize_demangle): Remove cast.
10455 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10456 locals, and use those as strtol output pointer, instead than doing
10457 invalid casts to from 'const char **' to 'char **'.
10458 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10459 casts.
10460 * stap-probe.c (stap_parse_register_operand)
10461 (stap_parse_single_operand): Likewise.
10462
10463 2013-03-13 Yao Qi <yao@codesourcery.com>
10464
10465 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10466 the last matched 'V' blcok in trace frame.
10467
10468 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10469
10470 * NEWS: Create a new section for the next release branch.
10471 Rename the section of the current branch, now that it has
10472 been cut.
10473
10474 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10475
10476 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10477 * version.in: Bump version to 7.6.50.20130312-cvs.
10478
10479 2013-03-12 Keith Seitz <keiths@redhat.com>
10480
10481 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10482 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10483 Remove temporary copy of input string.
10484 (mi_execute_command_wrapper): Make "cmd" const.
10485 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10486 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10487 Use const strings.
10488 (mi_parse): Make "cmd" const.
10489 Use const strings.
10490 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10491
10492 2013-03-12 Keith Seitz <keiths@redhat.com>
10493
10494 * ada-lang.c (ada_read_renaming_var_value): Pass const
10495 pointer to expression string to parse_exp_1.
10496 (create_excep_cond_exprs): Likewise.
10497 * ax-gdb.c (agent_eval_command_one): Likewise.
10498 (maint_agent_printf_command): Likewise.
10499 Constify much of the string handling/parsing.
10500 * breakpoint.c (set_breakpoint_condition): Pass const
10501 pointer to expression string to parse_exp_1.
10502 (update_watchpoint): Likewise.
10503 (parse_cmd_to_aexpr): Constify string handling.
10504 Pass const pointer to parse_exp_1.
10505 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10506 (find_condition_and_thread): Likewise.
10507 Make TOK const.
10508 (watch_command_1): Make "arg" const.
10509 Constify string handling.
10510 Copy the expression string instead of changing the input
10511 string.
10512 (update_breakpoint_location): Pass const pointer to
10513 parse_exp_1.
10514 * eval.c (parse_and_eval_address): Make "exp" const.
10515 (parse_to_comma_and_eval): Make "expp" const.
10516 (parse_and_eval): Make "exp" const.
10517 * expression.h (parse_expression): Make argument const.
10518 (parse_exp_1): Make first argument const.
10519 * findcmd.c (parse_find_args): Treat "args" as const.
10520 * linespec.c (parse_linespec): Pass const pointer to
10521 linespec_expression_to_pc.
10522 (linespec_expression_to_pc): Make "exp_ptr" const.
10523 * parse.c (parse_exp_1): Make "stringptr" const.
10524 Make a copy of the expression to pass to parse_exp_in_context until
10525 this whole interface can be constified.
10526 (parse_expression): Make "string" const.
10527 * printcmd.c (ui_printf): Treat "arg" as const.
10528 Handle const strings.
10529 * tracepoint.c (validate_actionline): Pass const pointer to
10530 all calls to parse_exp_1.
10531 (encode_actions_1): Likewise.
10532 * value.h (parse_to_comma_and_eval): Make argument const.
10533 (parse_and_eval_address): Likewise.
10534 (parse_and_eval): Likewise.
10535 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10536 (varobj_set_value): Likewise.
10537 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10538 constify string handling.
10539 Pass const pointers to parse_and_eval_address and
10540 parse_to_comman_and_eval.
10541 * cli/cli-utils.c (skip_to_space): Rename to ...
10542 (skip_to_space_const): ... this. Handle const strings.
10543 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10544 skip_to_space_const.
10545 (skip_to_space_const): Declare.
10546 * common/format.c (parse_format_string): Make "arg" const.
10547 Handle const strings.
10548 * common/format.h (parse_format_string): Make "arg" const.
10549 * gdbserver/ax.c (ax_printf): Make "format" const.
10550 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10551 of the expression string.
10552
10553 2013-03-12 Hui Zhu <hui@codesourcery.com>
10554
10555 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10556
10557 2013-03-12 Yao Qi <yao@codesourcery.com>
10558 Hui Zhu <hui@codesourcery.com>
10559
10560 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10561 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10562 DW_OP_deref_size.
10563
10564 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10565
10566 * ada-lex.l (rules): Only recognize 'thread' as a
10567 delimiter when followed by numerals, as for c-exp.y.
10568 Use new rewind_to_char function to rewind the input for
10569 expression-delimiting tokens.
10570 (rewind_to_char): New function.
10571
10572 2013-03-11 Pedro Alves <palves@redhat.com>
10573 Jan Kratochvil <jan.kratochvil@redhat.com>
10574
10575 * configure: Regenerate.
10576 * configure.ac (check dynamic export flag): Link python test with
10577 $PYTHON_LIBS.
10578
10579 2013-03-11 Doug Evans <dje@google.com>
10580 Keith Seitz <keiths@redhat.com>
10581
10582 * linespec.c (find_linespec_symbols): Call find_function_symbols
10583 first, and then call lookup_prefix_sym/find_method.
10584
10585 2013-03-11 Pedro Alves <palves@redhat.com>
10586
10587 * charset.c (convert_between_encodings): Don't cast between
10588 different pointer to pointer types. Instead, make the 'inp' local
10589 be of the type iconv expects.
10590 (wchar_iterate): Don't cast between different pointer to pointer
10591 types. Instead, use new pointer local of the type iconv expects.
10592 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10593 Add new local of type char pointer, and use it to get a
10594 char/string view of the byte buffer, instead of casting between
10595 pointer to pointer types.
10596
10597 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10598
10599 * remote.c (remote_set_trace_buffer_size): Move != operator
10600 to the start of next line to fix an ARI warning.
10601
10602 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10603
10604 * NEWS: Add record changes.
10605
10606 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10607
10608 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10609 the instruction history disassembly.
10610 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10611 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10612
10613 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10614
10615 * Makefile.in (SFILES): Add record-btrace.c
10616 (COMMON_OBS): Add record-btrace.o
10617 * record-btrace.c: New.
10618 * objfiles.c: Include btrace.h.
10619 (free_objfile): call btrace_free_objfile.
10620
10621 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10622
10623 * target.c (target_call_history, target_call_history_from,
10624 target_call_history_range): New.
10625 * target.h (target_ops) <to_call_history, to_call_history_from,
10626 to_call_history_range>: New fields.
10627 (target_call_history, target_call_history_from,
10628 target_call_history_range): New declaration.
10629 * record.c (get_call_history_modifiers, cmd_record_call_history,
10630 record_call_history_size): New.
10631 (_initialize_record): Add the "record function-call-history" command.
10632 Add "set/show record function-call-history-size" commands.
10633 * record.h (record_print_flag): New.
10634
10635 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10636
10637 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10638 to_insn_history_range>: New fields.
10639 (target_insn_history): New.
10640 (target_insn_history_from): New.
10641 (target_insn_history_range): New.
10642 * target.c (target_insn_history): New.
10643 (target_insn_history_from): New.
10644 (target_insn_history_range): New.
10645 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10646 (record_insn_history_size): New.
10647 (get_insn_number): New.
10648 (get_context_size): New.
10649 (no_chunk): New.
10650 (get_insn_history_modifiers): New.
10651 (cmd_record_insn_history): New.
10652 (_initialize_record): Add "set/show record instruction-history-size"
10653 command. Add "record instruction-history" command.
10654
10655 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10656
10657 * record.h (record_disconnect): New.
10658 (record_detach): New.
10659 (record_mourn_inferior): New.
10660 (record_kill): New.
10661 * record-full.c (record_disconnect, record_detach,
10662 record_mourn_inferior, record_kill): Move to...
10663 * record.c: ...here.
10664 (DEBUG): New.
10665 (record_stop): New.
10666 (record_unpush): New.
10667 (cmd_record_stop): Call record_stop. Replace unpush_target
10668 call with record_unpush call.
10669 (record_disconnect, record_detach): Assert that the target
10670 is of record stratum. Call record_unpush, record_stop, and
10671 DEBUG.
10672 (record_mourn_inferior, record_kill): Assert that the target
10673 is of record stratum. Call record_unpush and DEBUG.
10674
10675 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10676
10677 * record-full.h, record-full.c (record_memory_query): Rename
10678 to ...
10679 (record_full_memory_query): ...this. Update all users.
10680 (record_arch_list_add_reg): Rename to ...
10681 (record_full_arch_list_add_reg): ...this. Update all users.
10682 (record_arch_list_add_mem): Rename to ...
10683 (record_full_arch_list_add_mem): ...this. Update all users.
10684 (record_arch_list_add_end): Rename to ...
10685 (record_full_arch_list_add_end): ...this. Update all users.
10686 (record_gdb_operation_disable_set): Rename to ...
10687 (record_full_gdb_operation_disable_set): ...this.
10688 Update all users.
10689
10690 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10691
10692 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10693 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10694 (RECORD_IS_REPLAY): Renamed to ...
10695 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10696 (RECORD_FILE_MAGIC): Renamed to ...
10697 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10698 (record_mem_entry): Renamed to ...
10699 (record_full_mem_entry): ... this. Updated all users.
10700 (record_reg_entry): Renamed to ...
10701 (record_full_reg_entry): ... this. Updated all users.
10702 (record_end_entry): Renamed to ...
10703 (record_full_end_entry): ... this. Updated all users.
10704 (record_type) <record_end, record_reg, record_mem>: Renamed
10705 to ...
10706 (record_full_type) <record_full_end, record_full_reg,
10707 record_full_mem>: ... this. Updated all users.
10708 (record_entry): Renamed to ...
10709 (record_full_entry): ... this. Updated all users.
10710 (record_core_buf_entry): Renamed to ...
10711 (record_full_core_buf_entry): ... this. Updated all users.
10712 (record_core_regbuf): Renamed to ...
10713 (record_full_core_regbuf): ... this. Updated all users.
10714 (record_core_start): Renamed to ...
10715 (record_full_core_start): ... this. Updated all users.
10716 (record_core_end): Renamed to ...
10717 (record_full_core_end): ... this. Updated all users.
10718 (record_core_buf_list): Renamed to ...
10719 (record_full_core_buf_list): ... this. Updated all users.
10720 (record_first): Renamed to ...
10721 (record_full_first): ... this. Updated all users.
10722 (record_list): Renamed to ...
10723 (record_full_list): ... this. Updated all users.
10724 (record_arch_list_head): Renamed to ...
10725 (record_full_arch_list_head): ... this. Updated all users.
10726 (record_arch_list_tail): Renamed to ...
10727 (record_full_arch_list_tail): ... this. Updated all users.
10728 (record_stop_at_limit): Renamed to ...
10729 (record_full_stop_at_limit): ... this. Updated all users.
10730 (record_insn_max_num): Renamed to ...
10731 (record_full_insn_max_num): ... this. Updated all users.
10732 (record_insn_num): Renamed to ...
10733 (record_full_insn_num): ... this. Updated all users.
10734 (record_insn_count): Renamed to ...
10735 (record_full_insn_count): ... this. Updated all users.
10736 (record_ops): Renamed to ...
10737 (record_full_ops): ... this. Updated all users.
10738 (record_core_ops): Renamed to ...
10739 (record_full_core_ops): ... this. Updated all users.
10740 (set_record_cmdlist): Renamed to ...
10741 (set_record_full_cmdlist): ... this. Updated all users.
10742 (show_record_cmdlist): Renamed to ...
10743 (show_record_full_cmdlist): ... this. Updated all users.
10744 (record_cmdlist): Renamed to ...
10745 (record_full_cmdlist): ... this. Updated all users.
10746 (record_beneath_to_resume_ops): Renamed to ...
10747 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10748 (record_beneath_to_resume): Renamed to ...
10749 (record_full_beneath_to_resume): ... this. Updated all users.
10750 (record_beneath_to_wait_ops): Renamed to ...
10751 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10752 (record_beneath_to_wait): Renamed to ...
10753 (record_full_beneath_to_wait): ... this. Updated all users.
10754 (record_beneath_to_store_registers_ops): Renamed to ...
10755 (record_full_beneath_to_store_registers_ops): ... this.
10756 Updated all users.
10757 (record_beneath_to_store_registers): Renamed to ...
10758 (record_full_beneath_to_store_registers): ... this.
10759 Updated all users.
10760 (record_beneath_to_xfer_partial_ops): Renamed to ...
10761 (record_full_beneath_to_xfer_partial_ops): ... this.
10762 Updated all users.
10763 (record_beneath_to_xfer_partial): Renamed to ...
10764 (record_full_beneath_to_xfer_partial): ... this.
10765 Updated all users.
10766 (record_beneath_to_insert_breakpoint): Renamed to ...
10767 (record_full_beneath_to_insert_breakpoint): ... this.
10768 Updated all users.
10769 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10770 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10771 Updated all users.
10772 (record_beneath_to_stopped_data_address): Renamed to ...
10773 (record_full_beneath_to_stopped_data_address): ... this.
10774 Updated all users.
10775 (record_beneath_to_async): Renamed to ...
10776 (record_full_beneath_to_async): ... this. Updated all users.
10777 (record_goto_insn): Renamed to ...
10778 (record_full_goto_insn): ... this. Updated all users.
10779 (record_save): Renamed to ...
10780 (record_full_save): ... this. Updated all users.
10781 (record_reg_alloc): Renamed to ...
10782 (record_full_reg_alloc): ... this. Updated all users.
10783 (record_reg_release): Renamed to ...
10784 (record_full_reg_release): ... this. Updated all users.
10785 (record_mem_alloc): Renamed to ...
10786 (record_full_mem_alloc): ... this. Updated all users.
10787 (record_mem_release): Renamed to ...
10788 (record_full_mem_release): ... this. Updated all users.
10789 (record_end_alloc): Renamed to ...
10790 (record_full_end_alloc): ... this. Updated all users.
10791 (record_end_release): Renamed to ...
10792 (record_full_end_release): ... this. Updated all users.
10793 (record_entry_release): Renamed to ...
10794 (record_full_entry_release): ... this. Updated all users.
10795 (record_list_release): Renamed to ...
10796 (record_full_list_release): ... this. Updated all users.
10797 (record_list_release_following): Renamed to ...
10798 (record_full_list_release_following): ... this.
10799 Updated all users.
10800 (record_list_release_first): Renamed to ...
10801 (record_full_list_release_first): ... this. Updated all users.
10802 (record_arch_list_add): Renamed to ...
10803 (record_full_arch_list_add): ... this. Updated all users.
10804 (record_get_loc): Renamed to ...
10805 (record_full_get_loc): ... this. Updated all users.
10806 (record_check_insn_num): Renamed to ...
10807 (record_full_check_insn_num): ... this. Updated all users.
10808 (record_arch_list_cleanups): Renamed to ...
10809 (record_full_arch_list_cleanups): ... this. Updated all users.
10810 (record_message): Renamed to ...
10811 (record_full_message): ... this. Updated all users.
10812 (record_message_wrapper): Renamed to ...
10813 (record_full_message_wrapper): ... this. Updated all users.
10814 (record_message_wrapper_safe): Renamed to ...
10815 (record_full_message_wrapper_safe): ... this. Updated all users.
10816 (record_gdb_operation_disable): Renamed to ...
10817 (record_full_gdb_operation_disable): ... this. Updated all users.
10818 (record_hw_watchpoint): Renamed to ...
10819 (record_full_hw_watchpoint): ... this. Updated all users.
10820 (record_exec_insn): Renamed to ...
10821 (record_full_exec_insn): ... this. Updated all users.
10822 (record_restore): Renamed to ...
10823 (record_full_restore): ... this. Updated all users.
10824 (record_async_inferior_event_token): Renamed to ...
10825 (record_full_async_inferior_event_token): ... this.
10826 Updated all users.
10827 (record_async_inferior_event_handler): Renamed to ...
10828 (record_full_async_inferior_event_handler): ... this.
10829 Updated all users.
10830 (record_core_open_1): Renamed to ...
10831 (record_full_core_open_1): ... this. Updated all users.
10832 (record_open_1): Renamed to ...
10833 (record_full_open_1): ... this. Updated all users.
10834 (record_open): Renamed to ...
10835 (record_full_open): ... this. Updated all users.
10836 (record_close): Renamed to ...
10837 (record_full_close): ... this. Updated all users.
10838 (record_resume_step): Renamed to ...
10839 (record_full_resume_step): ... this. Updated all users.
10840 (record_resumed): Renamed to ...
10841 (record_full_resumed): ... this. Updated all users.
10842 (record_execution_dir): Renamed to ...
10843 (record_full_execution_dir): ... this. Updated all users.
10844 (record_resume): Renamed to ...
10845 (record_full_resume): ... this. Updated all users.
10846 (record_get_sig): Renamed to ...
10847 (record_full_get_sig): ... this. Updated all users.
10848 (record_sig_handler): Renamed to ...
10849 (record_full_sig_handler): ... this. Updated all users.
10850 (record_wait_cleanups): Renamed to ...
10851 (record_full_wait_cleanups): ... this. Updated all users.
10852 (record_wait_1): Renamed to ...
10853 (record_full_wait_1): ... this. Updated all users.
10854 (record_wait): Renamed to ...
10855 (record_full_wait): ... this. Updated all users.
10856 (record_stopped_by_watchpoint): Renamed to ...
10857 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10858 (record_disconnect): Renamed to ...
10859 (record_full_disconnect): ... this. Updated all users.
10860 (record_detach): Renamed to ...
10861 (record_full_detach): ... this. Updated all users.
10862 (record_mourn_inferior): Renamed to ...
10863 (record_full_mourn_inferior): ... this. Updated all users.
10864 (record_kill): Renamed to ...
10865 (record_full_kill): ... this. Updated all users.
10866 (record_stopped_data_address): Renamed to ...
10867 (record_full_stopped_data_address): ... this. Updated all users.
10868 (record_registers_change): Renamed to ...
10869 (record_full_registers_change): ... this. Updated all users.
10870 (record_store_registers): Renamed to ...
10871 (record_full_store_registers): ... this. Updated all users.
10872 (record_xfer_partial): Renamed to ...
10873 (record_full_xfer_partial): ... this. Updated all users.
10874 (record_breakpoint): Renamed to ...
10875 (record_full_breakpoint): ... this. Updated all users.
10876 (record_breakpoint_p): Renamed to ...
10877 (record_full_breakpoint_p): ... this. Updated all users.
10878 (record_breakpoints): Renamed to ...
10879 (record_full_breakpoints): ... this. Updated all users.
10880 (record_sync_record_breakpoints): Renamed to ...
10881 (record_full_sync_record_breakpoints): ... this.
10882 Updated all users.
10883 (record_init_record_breakpoints): Renamed to ...
10884 (record_full_init_record_breakpoints): ... this.
10885 Updated all users.
10886 (record_insert_breakpoint): Renamed to ...
10887 (record_full_insert_breakpoint): ... this. Updated all users.
10888 (record_remove_breakpoint): Renamed to ...
10889 (record_full_remove_breakpoint): ... this. Updated all users.
10890 (record_can_execute_reverse): Renamed to ...
10891 (record_full_can_execute_reverse): ... this. Updated all users.
10892 (record_get_bookmark): Renamed to ...
10893 (record_full_get_bookmark): ... this. Updated all users.
10894 (record_goto_bookmark): Renamed to ...
10895 (record_full_goto_bookmark): ... this. Updated all users.
10896 (record_async): Renamed to ...
10897 (record_full_async): ... this. Updated all users.
10898 (record_can_async_p): Renamed to ...
10899 (record_full_can_async_p): ... this. Updated all users.
10900 (record_is_async_p): Renamed to ...
10901 (record_full_is_async_p): ... this. Updated all users.
10902 (record_execution_direction): Renamed to ...
10903 (record_full_execution_direction): ... this. Updated all users.
10904 (record_info): Renamed to ...
10905 (record_full_info): ... this. Updated all users.
10906 (record_delete): Renamed to ...
10907 (record_full_delete): ... this. Updated all users.
10908 (record_is_replaying): Renamed to ...
10909 (record_full_is_replaying): ... this. Updated all users.
10910 (record_goto_entry): Renamed to ...
10911 (record_full_goto_entry): ... this. Updated all users.
10912 (record_goto_begin): Renamed to ...
10913 (record_full_goto_begin): ... this. Updated all users.
10914 (record_goto_end): Renamed to ...
10915 (record_full_goto_end): ... this. Updated all users.
10916 (record_goto): Renamed to ...
10917 (record_full_goto): ... this. Updated all users.
10918 (init_record_ops): Renamed to ...
10919 (init_record_full_ops): ... this. Updated all users.
10920 (record_core_resume): Renamed to ...
10921 (record_full_core_resume): ... this. Updated all users.
10922 (record_core_kill): Renamed to ...
10923 (record_full_core_kill): ... this. Updated all users.
10924 (record_core_fetch_registers): Renamed to ...
10925 (record_full_core_fetch_registers): ... this. Updated all users.
10926 (record_core_prepare_to_store): Renamed to ...
10927 (record_full_core_prepare_to_store): ... this. Updated all users.
10928 (record_core_store_registers): Renamed to ...
10929 (record_full_core_store_registers): ... this. Updated all users.
10930 (record_core_xfer_partial): Renamed to ...
10931 (record_full_core_xfer_partial): ... this. Updated all users.
10932 (record_core_insert_breakpoint): Renamed to ...
10933 (record_full_core_insert_breakpoint): ... this. Updated all users.
10934 (record_core_remove_breakpoint): Renamed to ...
10935 (record_full_core_remove_breakpoint): ... this. Updated all users.
10936 (record_core_has_execution): Renamed to ...
10937 (record_full_core_has_execution): ... this. Updated all users.
10938 (init_record_core_ops): Renamed to ...
10939 (init_record_full_core_ops): ... this. Updated all users.
10940 (cmd_record_restore): Renamed to ...
10941 (cmd_record_full_restore): ... this. Updated all users.
10942 (record_save_cleanups): Renamed to ...
10943 (record_full_save_cleanups): ... this. Updated all users.
10944 (cmd_record_start): Renamed to ...
10945 (cmd_record_full_start): ... this. Updated all users.
10946 (set_record_insn_max_num): Renamed to ...
10947 (set_record_full_insn_max_num): ... this. Updated all users.
10948 (set_record_command): Renamed to ...
10949 (set_record_full_command): ... this. Updated all users.
10950 (show_record_command): Renamed to ...
10951 (show_record_full_command): ... this. Updated all users.
10952 (_initialize_record): Renamed to ...
10953 (_initialize_record_full): ... this. Updated all users.
10954
10955 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10956
10957 * record.h: Split into this and ...
10958 * record-full.h: ... this.
10959 * record.c: Split into this and ...
10960 * record-full.c: ... this.
10961 * target.h (target_ops): Add new fields to_info_record,
10962 to_save_record, to_delete_record, to_record_is_replaying,
10963 to_goto_record_begin, to_goto_record_end, to_goto_record.
10964 (target_info_record): New.
10965 (target_save_record): New.
10966 (target_supports_delete_record): New.
10967 (target_delete_record): New.
10968 (target_record_is_replaying): New.
10969 (target_goto_record_begin): New.
10970 (target_goto_record_end): New.
10971 (target_goto_record): New.
10972 * target.c (target_info_record): New.
10973 (target_save_record): New.
10974 (target_supports_delete_record): New.
10975 (target_delete_record): New.
10976 (target_record_is_replaying): New.
10977 (target_goto_record_begin): New.
10978 (target_goto_record_end): New.
10979 (target_goto_record): New.
10980 * record.h: Declare struct cmd_list_element.
10981 (record_cmdlist): New declaration.
10982 (set_record_cmdlist): New declaration.
10983 (show_record_cmdlist): New declaration.
10984 (info_record_cmdlist): New declaration.
10985 (cmd_record_goto): New declaration.
10986 * record.c: Remove unnecessary includes.
10987 Include inferior.h.
10988 (cmd_record_goto): Remove declaration.
10989 (record_cmdlist): Now extern. Initialize.
10990 (set_record_cmdlist): Now extern. Initialize.
10991 (show_record_cmdlist): Now extern. Initialize.
10992 (info_record_cmdlist): Now extern. Initialize.
10993 (find_record_target): New.
10994 (require_record_target): New.
10995 (cmd_record_start): Update.
10996 (cmd_record_delete): Remove target-specific code.
10997 Call target_delete_record.
10998 (cmd_record_stop): Unpush any record target.
10999 (set_record_insn_max_num): Move to record-full.c
11000 (set_record_command): Add comment.
11001 (show_record_command): Add comment.
11002 (info_record_command): Update comment.
11003 Remove target-specific code.
11004 Call the record target's to_info_record.
11005 (cmd_record_start): New.
11006 (cmd_record_goto): Now extern.
11007 Remove target-specific code.
11008 Call target_goto_begin, target_goto_end, or target_goto.
11009 (_initialize_record): Move record target ops initialization to
11010 record-full.c.
11011 Change "record" command help text.
11012 Move "record restore", "record set", and "record show" commands to
11013 record-full.c.
11014 * Makefile.in (SFILES): Add record-full.c.
11015 (HFILES_NO_SRCDIR): Add record-full.h.
11016 (COMMON_OBS): Add record-full.o.
11017 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11018 * arm-tdep.c: Include record-full.h.
11019 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11020 * i386-tdep.c: Include record-full.h.
11021 * infrun.c: Include record-full.h.
11022 * linux-record.c: Include record-full.h.
11023 * moxie-tdep.c: Include record-full.h.
11024 * record-full.c: Include record-full.h.
11025 Change module comment.
11026 (set_record_full_cmdlist): New.
11027 (show_record_full_cmdlist): New.
11028 (record_full_cmdlist): New.
11029 (record_goto_insn): New declaration.
11030 (record_save): New declaration.
11031 (record_check_insn_num): Change query string.
11032 (record_info): New.
11033 (record_delete): New.
11034 (record_is_replaying): New.
11035 (record_goto_entry): New.
11036 (record_goto_begin): New.
11037 (record_goto_end): New.
11038 (record_goto): New.
11039 (init_record_ops): Update.
11040 (init_record_core_ops): Update.
11041 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11042 (cmd_record_start): New.
11043 (set_record_insn_max_num): Moved from record.c
11044 (set_record_full_command): New.
11045 (show_record_full_command): New.
11046 (_initialize_record_full): New.
11047
11048 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11049
11050 * target.h (add_deprecated_target_alias): New.
11051 * target.c (add_deprecated_target_alias): New.
11052
11053 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11054
11055 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11056 and signal.h.
11057 (linux_supports_btrace): Add kernel and
11058 cpuid check.
11059 (kernel_supports_btrace): New function.
11060 (cpu_supports_btrace): New function.
11061 (intel_supports_btrace): New function.
11062
11063 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11064
11065 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11066 * remote.c: Include btrace.h.
11067 (struct btrace_target_info): New struct.
11068 (remote_supports_btrace): New function.
11069 (send_Qbtrace): New function.
11070 (remote_enable_btrace): New function.
11071 (remote_disable_btrace): New function.
11072 (remote_teardown_btrace): New function.
11073 (remote_read_btrace): New function.
11074 (init_remote_ops): Add btrace ops.
11075 (enum <unnamed>): Add btrace packets.
11076 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11077 (_initialize_remote): Add packet configuration for branch tracing.
11078
11079 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11080
11081 * features/btrace.dtd: New file.
11082 * Makefile.in (XMLFILES): Add btrace.dtd.
11083 * btrace.h (parse_xml_btrace): New declaration.
11084 * btrace.c: Include xml-support.h.
11085 (parse_xml_btrace): New function.
11086 (parse_xml_btrace_block): New function.
11087 (block_attributes): New struct.
11088 (btrace_attributes): New struct.
11089 (btrace_children): New struct.
11090 (btrace_elements): New struct.
11091
11092 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11093
11094 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11095 (amd64_linux_enable_btrace): New.
11096 (amd64_linux_disable_btrace): New.
11097 (amd64_linux_teardown_btrace): New.
11098 (_initialize_amd64_linux_nat): Initialize btrace ops.
11099 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11100 (i386_linux_enable_btrace): New.
11101 (i386_linux_disable_btrace): New.
11102 (i386_linux_teardown_btrace): New.
11103 (_initialize_i386_linux_nat): Initialize btrace ops.
11104 * config/i386/linux.mh: Add linux-btrace.o.
11105 * config/i386/linux64.mh: Add linux-btrace.o.
11106
11107 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11108
11109 * common/linux_btrace.h: New file.
11110 * common/linux_btrace.c: New file.
11111 * Makefile.in (SFILES): Add btrace.c.
11112 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11113 (COMMON_OBS): Add btrace.o.
11114 (linux-btrace.o): New rule.
11115
11116 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11117
11118 * target.h: Include btrace.h.
11119 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11120 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11121 * target.c (target_supports_btrace): New function.
11122 (target_enable_btrace): New function.
11123 (target_disable_btrace): New function.
11124 (target_teardown_btrace): New function.
11125 (target_read_btrace): New function.
11126 * btrace.h: New file.
11127 * btrace.c: New file.
11128 * Makefile.in: Add btrace.c.
11129 * gdbthread.h: Include btrace.h.
11130 (struct thread_info): Add btrace field.
11131 * thread.c: Include btrace.h.
11132 (clear_thread_inferior_resources): Call target_teardown_btrace.
11133 * common/btrace-common.h: New file.
11134
11135 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11138 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11139 kill_status to outer block.
11140
11141 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11142
11143 Fix entry-values if the callee called a noreturn function.
11144 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11145 get_frame_address_in_block. Add new comment.
11146
11147 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11148
11149 Fix entry-values in C++ across CUs.
11150 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11151 lookup_minimal_symbol. Add a comment.
11152 * dwarf2read.c
11153 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11154 DW_AT_linkage_name.
11155
11156 2013-03-08 Yao Qi <yao@codesourcery.com>
11157
11158 * tracepoint.c (_initialize_tracepoint): Indent the code.
11159
11160 2013-03-08 Pedro Alves <palves@redhat.com>
11161
11162 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11163 (parse_find_args, find_command): Change type of pattern buffer
11164 locals to 'gdb_byte *'.
11165
11166 2013-03-08 Stan Shebs <stan@codesourcery.com>
11167 Hafiz Abid Qadeer <abidh@codesourcery.com>
11168
11169 * NEWS: Mention set and show trace-buffer-size commands.
11170 Mention new packet.
11171 * target.h (struct target_ops): New method
11172 to_set_trace_buffer_size.
11173 (target_set_trace_buffer_size): New macro.
11174 * target.c (update_current_target): Set up new method.
11175 * tracepoint.c (trace_buffer_size): New global.
11176 (start_tracing): Send it to the target.
11177 (set_trace_buffer_size): New function.
11178 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11179 * remote.c (remote_set_trace_buffer_size): New function.
11180 (_initialize_remote): Use it.
11181 (QTBuffer:size) New remote command.
11182 (PACKET_QTBuffer_size): New enum.
11183 (remote_protocol_features): Add an entry for
11184 PACKET_QTBuffer_size.
11185
11186 2013-03-08 Tom Tromey <tromey@redhat.com>
11187
11188 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11189 variable.
11190
11191 2013-03-07 Pedro Alves <palves@redhat.com>
11192
11193 * target.c (target_read_stralloc, target_fileio_read_alloc):
11194 *Cast pointer to 'gdb_byte *' in target call.
11195
11196 2013-03-07 Pedro Alves <palves@redhat.com>
11197
11198 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11199 call.
11200
11201 2013-03-07 Keith Seitz <keiths@redhat.com>
11202
11203 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11204 (trace_pass_command): Likewise.
11205 * cli/cli-cmds.c: Include cli/cli-utils.h.
11206 (source_command): Use skip-spaces.
11207 (disassemble_command): Likewise.
11208 * findcmd.c: Include cli/cli-utils.h.
11209 (parse_find_args): Use skip_spaces.
11210 * go32-nat.c: Include cli/cli-utils.h.
11211 (go32_sldt): Use skip_spaces.
11212 (go32_sgdt): Likewise.
11213 (go32_sidt): Likewise.
11214 (go32_pde): Likewise.
11215 (go32_pte): Likewise.
11216 (go32_pte_for_address): Likewise.
11217 * infcmd.c: Include cli/cli-utils.h.
11218 (registers_info): Use skip_spaces.
11219 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11220 (linux_info_proc): Likewise.
11221 * linux-thread-db.c: Include cli/cli-utils.h.
11222 (info_auto_load_libthread_db): Use skip_spaces_const.
11223 * m32r-rom.c: Include cli/cli-utils.h.
11224 (m32r_upload_command): Use skip_spaces.
11225 * maint.c: Include cli/cli-utils.h.
11226 (maintenance_translate_address): Use skip_spaces.
11227 * mi/mi-parse.c: Include cli/cli-utils.h.
11228 (mi_parse_argv): Use skip_spaces.
11229 (mi_parse): Likewise.
11230 * minsyms.c: Include cli/cli-utils.h.
11231 (msymbol_hash_iw): Use skip_spaces_const.
11232 * objc-lang.c: Include cli/cli-utils.h.
11233 (parse_selector): Use skip_spaces.
11234 (parse_method): Likewise.
11235 * python/python.c: Include cli/cli-utils.h.
11236 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11237 (python_command)[HAVE_PYTHON]: Likewise.
11238 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11239 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11240 (m32r_load): Use skip_spaces.
11241 * serial.c: Include cli/cli-utils.h.
11242 (serial_open): Use skip_spaces_const.
11243 * stack.c: Include cli/cli-utils.h.
11244 (parse_frame_specification_1): Use skip_spaces_const.
11245 * symfile.c: Include cli/cli-utils.h.
11246 (set_ext_lang_command): Use skip_spaces.
11247 * symtab.c: Include cli/cli-utils.h.
11248 (rbreak_command): Use skip_spaces.
11249 * thread.c (thread_name_command): Use skip_spaces.
11250 * tracepoint.c (validate_actionline): Use skip_spaces.
11251 (encode_actions_1): Likewise.
11252 (trace_find_range_command): Likewise.
11253 (trace_find_outside_command): Likewise.
11254 (trace_dump_actions): Likewise.
11255
11256 2013-03-07 Pedro Alves <palves@redhat.com>
11257
11258 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11259 * expprint.c (print_subexp_standard): Likewise.
11260 * utils.c (host_char_to_target): Likewise.
11261 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11262 * varobj.c (value_get_print_value): Change type of local to char*.
11263 Cast it gdb_byte * in call to language printer.
11264
11265 2013-03-07 Pedro Alves <palves@redhat.com>
11266
11267 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11268 gdb_byte *'.
11269 (make_wchar_iterator): Remove cast to char*.
11270 (wchar_iterate): Change type of local.
11271
11272 2013-03-07 Pedro Alves <palves@redhat.com>
11273
11274 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11275 for 'regcache->register_status'.
11276
11277 2013-03-07 Pedro Alves <palves@redhat.com>
11278
11279 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11280 int.
11281
11282 2013-03-07 Pedro Alves <palves@redhat.com>
11283
11284 * stap-probe.c (handle_stap_probe): Add cast to char*.
11285
11286 2013-03-07 Pedro Alves <palves@redhat.com>
11287
11288 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11289 RECORD_MSGRCV>: Pass a signed variable to
11290 regcache_raw_read_signed, instead of an unsigned one.
11291
11292 2013-03-07 Pedro Alves <palves@redhat.com>
11293
11294 * remote-notif.c (notif_debug): Change type to int.
11295 * remote-notif.h (notif_debug): Likewise.
11296
11297 2013-03-07 Pedro Alves <palves@redhat.com>
11298
11299 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11300
11301 2013-03-07 Pedro Alves <palves@redhat.com>
11302
11303 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11304 * remote.h (hex2bin, bin2hex): ... here.
11305 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11306
11307 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11308
11309 * utils.c (initialize_utils): Improve doc strings of "set/show
11310 width", "set/show height", and "set/show pagination".
11311
11312 2013-03-06 Keith Seitz <keiths@redhat.com>
11313
11314 * ax-gdb.c (gen_printf): Make FORMAT const.
11315 * ax-gdb.h (gen_printf): Likewise.
11316 * ax-general.c (ax_string): Make STR const.
11317 * ax.h (ax_string): Likewise.
11318
11319 2013-03-06 Doug Evans <dje@google.com>
11320
11321 * elfread.c (elf_symfile_read): Move debugging printf to more
11322 logical location.
11323
11324 2013-03-06 Pedro Alves <palves@redhat.com>
11325
11326 * python/py-utils.c (target_string_to_unicode): Delete function.
11327 * python/python-internal.h (target_string_to_unicode): Delete
11328 declaration.
11329
11330 2013-03-06 Pierre Muller <muller@sourceware.org>
11331
11332 * linespec.c (get_current_search_block): ARI fix, use (void)
11333 for empty parameter list.
11334
11335 2013-03-05 Doug Evans <dje@google.com>
11336
11337 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11338 of old ada_lookup_symbol_list. In !full_search case, don't
11339 search superblocks.
11340 (ada_lookup_symbol_list): Delete arg full_search, all callers
11341 updated. Call ada_lookup_symbol_list_worker.
11342 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11343 * ada-lang.h (ada_lookup_symbol_list): Update.
11344 * language.h (language_defn): Update comment for
11345 la_iterate_over_symbols.
11346 * linespec.c (iterate_over_file_blocks): New function.
11347 (iterate_over_all_matching_symtabs): Call it.
11348 (lookup_prefix_sym): Ditto.
11349 (get_current_search_block): New function.
11350 (get_search_block): Delete.
11351 (find_label_symbols): Call get_current_search_block.
11352 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11353 * symtab.c (iterate_over_symbols): Don't search superblocks.
11354
11355 2013-03-05 Yao Qi <yao@codesourcery.com>
11356
11357 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11358 parameter VAR's type from "unsigned int" to "int".
11359 * command.h (var_zuinteger_unlimited): Update its comments.
11360 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11361
11362 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11363
11364 * NEWS: Mention new target x86_64-*-cygwin*.
11365
11366 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11367
11368 * configure.host: Add x86_64-*-cygwin* as host.
11369 * configure.tgt: Add x86_64-*-cygwin* as target.
11370 * config/i386/cygwin64.mh: New file.
11371
11372 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11375
11376 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 * linespec.c (struct linespec_canonical_name): New.
11379 (struct linespec_state): Change canonical_names type to it.
11380 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11381 xrealloc element size. Initialize the different CANONICAL fields.
11382 (canonical_to_fullform): New.
11383 (filter_results): Use it. Add variables canonical, fullform and
11384 cleanup.
11385 (struct decode_line_2_item, decode_line_2_compare_items): New.
11386 (decode_line_2): Remove variables iter and item_names, add variables
11387 items and items_count. Modify the code for these new variables.
11388
11389 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11390
11391 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11392 calling do_cleanup.
11393
11394 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11395
11396 * tracepoint.c (build_traceframe_info): Add code for byte order.
11397
11398 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11399
11400 * v850-tdep.c: (v850e2_register_name): Revise system register
11401 names to match current V850E2M architecture specifications.
11402 Update register number enum comments too.
11403
11404 2013-03-01 Jiong Wang <jiwang@tilera.com>
11405 Pedro Alves <palves@redhat.com>
11406
11407 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11408 to END_ADDR.
11409 (tilegx_skip_prologue): Limit prologue analysis to section end.
11410
11411 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11412
11413 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11414 use it.
11415
11416 2013-03-01 Pedro Alves <palves@redhat.com>
11417
11418 Use gdb_byte for bytes from the program being debugged.
11419
11420 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11421 Change type of local 'buf' to gdb_byte.
11422 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11423 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11424 * cris-tdep.c (cris_sigcontext_addr)
11425 (cris_sigtramp_frame_unwind_cache): Likewise.
11426 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11427 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11428 Likewise.
11429 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11430 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11431 (hppa32_hpux_search_dummy_call_sequence)
11432 (hppa_hpux_supply_save_state): Likewise.
11433 * hppa-linux-tdep.c (insns_match_pattern)
11434 (hppa_linux_find_global_pointer): Likewise.
11435 * hppa-tdep.c (hppa_in_function_epilogue_p)
11436 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11437 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11438 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11439 (i386fbsd_collect_uthread): Likewise.
11440 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11441 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11442 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11443 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11444 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11445 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11446 (ia64_libunwind_frame_prev_register)
11447 (ia64_libunwind_sigtramp_frame_this_id)
11448 (ia64_find_global_pointer_from_dynamic_section)
11449 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11450 (ia64_unwind_pc): Likewise.
11451 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11452 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11453 (m68hc11_extract_return_value): Likewise.
11454 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11455 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11456 (mep_get_insn, mep_push_dummy_call): Likewise.
11457 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11458 (mips_linux_in_dynsym_stub): Likewise.
11459 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11460 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11461 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11462 to gdb_byte.
11463 * remote-mips.c (mips_set_register): Likewise.
11464 * remote-sim.c (gdbsim_fetch_register): Likewise.
11465 * score-tdep.c (score7_fetch_inst): Change type of parameter
11466 'memblock' and local 'buf' to gdb_byte.
11467 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11468 Change type of local 'buf' to gdb_byte. Adjust.
11469 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11470 to gdb_byte**.
11471 (score7_analyze_prologue): Change type of 'memblock' and
11472 'memblock_ptr' locals to gdb_byte*.
11473 * sh64-tdep.c (sh64_extract_return_value)
11474 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11475 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11476 * solib-pa64.c (pa64_solib_create_inferior_hook)
11477 (pa64_open_symbol_file_object): Remove local 'buf'.
11478 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11479 (som_open_symbol_file_object): Likewise.
11480 * solib-spu.c (spu_current_sos): Likewise.
11481 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11482 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11483 (spu_store_registers): Likewise.
11484 * target.c (debug_print_register): Likewise.
11485 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11486 * xstormy16-tdep.c (xstormy16_store_return_value)
11487 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11488 (xstormy16_find_jmp_table_entry): Likewise.
11489
11490 2013-03-01 Jiong Wang <jiwang@tilera.com>
11491
11492 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11493 (tilegx_gdbarch_init): Install it.
11494
11495 2013-02-28 Tom Tromey <tromey@redhat.com>
11496
11497 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11498 PyLong_Check.
11499
11500 2013-02-28 Doug Evans <dje@google.com>
11501
11502 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11503 * python/python.c (gdbpy_find_pc_line): Ditto.
11504
11505 2013-02-28 Tom Tromey <tromey@redhat.com>
11506
11507 * contrib/excheck.py: New file.
11508 * contrib/exsummary.py: New file.
11509 * contrib/gcc-with-excheck: New file.
11510
11511 2013-02-28 Tom Tromey <tromey@redhat.com>
11512
11513 * python/python.c (gdbpy_print_stack): Call begin_line and
11514 fprintf_filtered inside TRY_CATCH.
11515
11516 2013-02-28 Tom Tromey <tromey@redhat.com>
11517
11518 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11519 inside TRY_CATCH.
11520
11521 2013-02-28 Tom Tromey <tromey@redhat.com>
11522
11523 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11524 frame_object_to_frame_info inside TRY_CATCH.
11525
11526 2013-02-28 Tom Tromey <tromey@redhat.com>
11527
11528 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11529 TRY_CATCH.
11530
11531 2013-02-28 Tom Tromey <tromey@redhat.com>
11532
11533 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11534
11535 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11536
11537 * windows-nat.c: Throughout, fix format strings and casts of
11538 printf-like functions to avoid type related warnings on all
11539 platforms.
11540 (handle_output_debug_string): Fetch context information address
11541 from debug string using string_to_core_addr.
11542
11543 2013-02-27 Jiong Wang <jiwang@tilera.com>
11544
11545 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11546 * regformats/reg-tilegx32.dat: New.
11547
11548 2013-02-27 Jiong Wang <jiwang@tilera.com>
11549
11550 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11551
11552 2013-02-27 Jiong Wang <jiwang@tilera.com>
11553
11554 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11555
11556 2013-02-27 Yao Qi <yao@codesourcery.com>
11557 Pedro Alves <palves@redhat.com>
11558
11559 * tracepoint.c (tfile_trace_find): For tfind
11560 pc/tp/range/outside, look for the next trace frame instead of
11561 always starting from frame 0.
11562
11563 2013-02-26 Anthony Green <green@moxielogic.com>
11564
11565 * configure.tgt: Add support for moxie-*-rtems* target.
11566
11567 2013-02-25 Pedro Alves <palves@redhat.com>
11568
11569 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11570 warning text.
11571
11572 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11573
11574 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11575 if $fp is used as the virtual frame pointer.
11576
11577 2013-02-23 Alan Modra <amodra@gmail.com>
11578
11579 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11580 symbol size.
11581 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11582 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11583 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11584 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11585
11586 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11587
11588 Code cleanup.
11589 * elfread.c (build_id_bfd_get): Make the return type const.
11590 (build_id_verify): Make the check parameter const.
11591 (build_id_to_debug_filename): Make the build_id parameter and variable
11592 data const.
11593 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11594
11595 2013-02-21 Alan Modra <amodra@gmail.com>
11596
11597 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11598
11599 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11600
11601 Add a new method 'disassemble' to gdb.Architecture class.
11602 * python/py-arch.c (archpy_disassmble): Implementation of the
11603 new method gdb.Architecture.disassemble.
11604 (arch_object_methods): Add entry for the new method.
11605
11606 2013-02-20 Jiong Wang <jiwang@tilera.com>
11607
11608 * MAINTAINERS (Write After Approval): Add myself to the list.
11609
11610 2013-02-19 Pedro Alves <palves@redhat.com>
11611
11612 Garbage collect 'struct monitor_ops'::load_routine.
11613
11614 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11615 * monitor.c (monitor_load): No longer call
11616 current_monitor->load_routine.
11617 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11618 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11619 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11620
11621 2013-02-19 Pedro Alves <palves@redhat.com>
11622
11623 PR gdb/15161
11624
11625 Harmonize with generic_load.
11626
11627 * monitor.c: Include "readline/readline.h".
11628 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11629 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11630 long/strtol for the 'load_offset' local. Error out if no argument
11631 is given or if too many arguments are given. Tilde expand the
11632 passed in file name.
11633
11634 2013-02-19 Kai Tietz <ktietz@redhat.com>
11635
11636 PR gdb/15161
11637 * symfile.c (load_section_data): Change type of load_offset
11638 to CORE_ADDR.
11639 (generic_load): User strtoulst instead of strtoul for conversion
11640 of load_offset.
11641
11642 2013-02-19 Jiong Wang <jiwang@tilera.com>
11643
11644 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11645 for return address, "lr" register, saved on stack.
11646 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11647 after we invoke tilegx_analyze_prologue.
11648
11649 2013-02-19 Jiong Wang <jiwang@tilera.com>
11650
11651 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11652
11653 2013-02-19 Jiong Wang <jiwang@tilera.com>
11654
11655 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11656
11657 2013-02-19 Jiong Wang <jiwang@tilera.com>
11658
11659 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11660 (tilegx_write_pc): New function.
11661 (tilegx_cannot_reference_register): Return zero if REGNO
11662 is TILEGX_FAULTNUM_REGNUM.
11663 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11664 (tilegx_register_name): Add handling of "faultnum" register.
11665 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11666 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11667 handling of TILEGX_FAULTNUM_REGNUM.
11668 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11669
11670 2013-02-19 Jiong Wang <jiwang@tilera.com>
11671
11672 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11673 should be aligned to 64bit.
11674
11675 2013-02-19 Kai Tietz <ktietz@redhat.com>
11676
11677 * windows-nat.c (windows_xfer_memory): Fix debug-output
11678 for LLP64.
11679
11680 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11681
11682 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11683 Don't check DSP register number if HAVE_DSP is not set.
11684
11685 2013-02-19 Alan Modra <amodra@gmail.com>
11686
11687 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11688 throughout file instead.
11689 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11690 Don't xmalloc return value.
11691 (build_id_verify): Similarly. Don't xfree.
11692 (build_id_to_debug_filename): Update.
11693 (find_separate_debug_file_by_buildid): Update, don't xfree.
11694
11695 2013-02-18 Tom Tromey <tromey@redhat.com>
11696
11697 PR gdb/15102:
11698 * dwarf2read.c (read_subrange_type): Use result of
11699 'check_typedef'.
11700
11701 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11702
11703 * frame.c: Remove one extra white space after #include
11704 directive.
11705
11706 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11707
11708 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11709
11710 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11711
11712 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11713 and dir commands into an if block.
11714
11715 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11716
11717 * python/py-breakpoint (struct pybp_code): Use int instead of
11718 enum type_code.
11719
11720 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11721 Hafiz Abid Qadeer <abidh@codesourcery.com>
11722
11723 * NEWS: Mention new field "trace-file".
11724 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11725 (tfile_open): Record the trace file's filename in the trace
11726 status.
11727 (tfile_files_info): Mention the name of the trace file.
11728 Check the "filename" field explicitely.
11729 (trace_status_command): Explicitely check "filename" field.
11730 (trace_find_command): Ditto.
11731 (trace_find_pc_command): Ditto.
11732 (trace_find_tracepoint_command): Ditto.
11733 (trace_find_line_command): Ditto.
11734 (trace_find_range_command): Ditto.
11735 (trace_find_outside_command): Ditto.
11736 * tracepoint.h (struct trace_status) <from_file>: Rename it
11737 to "filename" and make it hold the trace file's filename
11738 instead of a boolean.
11739 * remote.c (remote_get_trace_status): Initialize "filename"
11740 field with NULL instead of 0.
11741
11742 2013-02-15 Yao Qi <yao@codesourcery.com>
11743
11744 * remote.c: Fix a typo.
11745
11746 2013-02-14 Pierre Muller <muller@sourceware.org>
11747
11748 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11749
11750 2013-02-14 Pedro Alves <palves@redhat.com>
11751
11752 * utils.c (savestring): Don't #undef it. Move function to
11753 common/common-utils.c.
11754 * common/common-utils.c: Include gdb_string.h.
11755 (savestring): Move here from utils.c.
11756 * common/common-utils.h (savestring): Declare.
11757
11758 2013-02-14 Pedro Alves <palves@redhat.com>
11759
11760 * utils.c (savestring): Rename parameter 'size' to 'len'.
11761
11762 2013-02-14 Pedro Alves <palves@redhat.com>
11763 Yufeng Zhang <yufeng.zhang@arm.com>
11764
11765 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11766 (aarch64_inferior_data, struct aarch64_inferior_data):
11767 Delete.
11768 (struct aarch64_process_info): New.
11769 (aarch64_process_list): New global.
11770 (aarch64_find_process_pid, aarch64_add_process)
11771 (aarch64_process_info_get): New functions.
11772 (aarch64_inferior_data_get): Delete.
11773 (aarch64_process_info_get): New function.
11774 (aarch64_forget_process): New function.
11775 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11776 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11777 aarch64_get_debug_reg_state.
11778 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11779 instead of linux_nat_iterate_watchpoint_lwps.
11780 (aarch64_linux_new_fork): New function.
11781 (aarch64_linux_child_post_startup_inferior): Use
11782 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11783 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11784 (aarch64_linux_remove_hw_breakpoint)
11785 (aarch64_handle_aligned_watchpoint)
11786 (aarch64_handle_unaligned_watchpoint)
11787 (aarch64_linux_insert_watchpoint)
11788 (aarch64_linux_remove_watchpoint)
11789 (aarch64_linux_stopped_data_address): Adjust to pass the current
11790 process id to aarch64_debug_reg_state.
11791 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11792 linux_nat_new_fork hook, and aarch64_forget_process as
11793 linux_nat_forget_process hook; remove the call to
11794 register_inferior_data_with_cleanup.
11795
11796 2013-02-14 Pedro Alves <palves@redhat.com>
11797
11798 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11799 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11800 lval_memory.
11801
11802 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11803 Hafiz Abid Qadeer <abidh@codesourcery.com>
11804
11805 * tracepoint.h (validate_trace_state_variable_name): Declare.
11806 * tracepoint.c (validate_trace_state_variable_name): New.
11807 (trace_variable_command): Parse the trace state variable's name
11808 without using parse_expression. Do several validations.
11809 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11810 trace state variable's name with parse_expression. Validate it.
11811
11812 2013-02-14 Yao Qi <yao@codesourcery.com>
11813
11814 * infcmd.c (breakpoint_proceeded): Remove it.
11815
11816 2013-02-14 Yao Qi <yao@codesourcery.com>
11817
11818 * tracepoint.c (end_actions_pseudocommand): Make it static.
11819 (while_stepping_pseudocommand): Likewise.
11820 * tracepoint.h (end_actions_pseudocommand): Remove the
11821 declaration.
11822 (while_stepping_pseudocommand): Likewise.
11823
11824 2013-02-14 Yao Qi <yao@codesourcery.com>
11825
11826 * cli/cli-decode.c (help_cmd): Remove the declaration of
11827 "cmdlist".
11828 (help_all): Likewise.
11829
11830 2013-02-13 Pedro Alves <palves@redhat.com>
11831
11832 * amd64-linux-nat.c (update_debug_registers_callback):
11833 Update comment.
11834 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11835 iterate_over_lwps.
11836 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11837 i386_debug_reg_state.
11838 (amd64_linux_new_fork): New function.
11839 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11840 linux_nat_new_fork hook, and i386_forget_process as
11841 linux_nat_forget_process hook.
11842 * i386-linux-nat.c (update_debug_registers_callback):
11843 Update comment.
11844 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11845 iterate_over_lwps.
11846 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11847 i386_debug_reg_state.
11848 (i386_linux_new_fork): New function.
11849 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11850 linux_nat_new_fork hook, and i386_forget_process as
11851 linux_nat_forget_process hook.
11852 * i386-nat.c (i386_init_dregs): Delete.
11853 (i386_inferior_data, struct i386_inferior_data):
11854 Delete.
11855 (struct i386_process_info): New.
11856 (i386_process_list): New global.
11857 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11858 New functions.
11859 (i386_inferior_data_get): Delete.
11860 (i386_process_info_get): New function.
11861 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11862 (i386_forget_process): New function.
11863 (i386_cleanup_dregs): Rewrite.
11864 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11865 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11866 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11867 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11868 to i386_debug_reg_state.
11869 (i386_use_watchpoints): Don't register inferior data.
11870 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11871 adjust comment.
11872 (i386_forget_process): Declare.
11873 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11874 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11875 New static globals.
11876 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11877 (add_initial_lwp): New, factored out from ...
11878 (add_lwp): ... this. Don't check the number of lwps before
11879 calling linux_nat_new_thread.
11880 (linux_nat_iterate_watchpoint_lwps): Delete.
11881 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11882 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11883 forks and vforks.
11884 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11885 initial lwp.
11886 (linux_nat_kill, linux_nat_mourn_inferior): Call
11887 linux_nat_forget_process.
11888 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11889 (linux_nat_forget_process): New functions.
11890 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11891 type.
11892 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11893 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11894 types.
11895 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11896 (linux_nat_forget_process): New declarations.
11897
11898 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11899 (amd64fbsd_mourn_inferior): New function.
11900 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11901 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11902
11903 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11904
11905 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11906 Adding _().
11907
11908 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11909
11910 * aarch64-linux-nat.c (debug_reg_change_callback)
11911 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11912 %s and phex().
11913
11914 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11915
11916 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11917 with LONGEST.
11918
11919 2013-02-13 Pedro Alves <palves@redhat.com>
11920 Hafiz Abid Qadeer <abidh@codesourcery.com>
11921
11922 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11923
11924 2013-02-12 Tom Tromey <tromey@redhat.com>
11925
11926 PR symtab/11464:
11927 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11928 NAME return.
11929 (classify_inner_name): Remove 'first_name' argument, add
11930 'context'. Remove unused variable.
11931 (yylex): Explicitly maintain the context type. Exit loop earlier
11932 if NAME result is seen.
11933
11934 2013-02-12 Pedro Alves <palves@redhat.com>
11935
11936 * amd64-darwin-tdep.c: Add (C) after Copyright.
11937 * cli/cli-cmds.h: Ditto.
11938 * cli/cli-decode.c: Ditto.
11939 * cli/cli-decode.h: Ditto.
11940 * cli/cli-dump.c: Ditto.
11941 * cli/cli-dump.h: Ditto.
11942 * cli/cli-interp.c: Ditto.
11943 * cli/cli-logging.c: Ditto.
11944 * cli/cli-script.c: Ditto.
11945 * cli/cli-script.h: Ditto.
11946 * cli/cli-setshow.c: Ditto.
11947 * cli/cli-setshow.h: Ditto.
11948 * cli/cli-utils.c: Ditto.
11949 * cli/cli-utils.h: Ditto.
11950 * config/alpha/nm-osf3.h: Ditto.
11951 * config/djgpp/djconfig.sh: Ditto.
11952 * config/i386/nm-fbsd.h: Ditto.
11953 * config/i386/nm-i386gnu.h: Ditto.
11954 * config/nm-linux.h: Ditto.
11955 * config/nm-nto.h: Ditto.
11956 * config/rs6000/nm-rs6000.h: Ditto.
11957 * config/sparc/nm-sol2.h: Ditto.
11958 * darwin-nat-info.c: Ditto.
11959 * dfp.c: Ditto.
11960 * dfp.h: Ditto.
11961 * gdb-demangle.h: Ditto.
11962 * i386-darwin-nat.c: Ditto.
11963 * i386-darwin-tdep.c: Ditto.
11964 * linux-fork.h: Ditto.
11965 * m32c-tdep.c: Ditto.
11966 * microblaze-linux-tdep.c: Ditto.
11967 * microblaze-rom.c: Ditto.
11968 * microblaze-tdep.c: Ditto.
11969 * microblaze-tdep.h: Ditto.
11970 * mips-linux-tdep.h: Ditto.
11971 * ppc-ravenscar-thread.c: Ditto.
11972 * ppc-ravenscar-thread.h: Ditto.
11973 * prologue-value.c: Ditto.
11974 * prologue-value.h: Ditto.
11975 * ravenscar-thread.c: Ditto.
11976 * ravenscar-thread.h: Ditto.
11977 * sparc-ravenscar-thread.c: Ditto.
11978 * sparc-ravenscar-thread.h: Ditto.
11979 * tilegx-linux-tdep.c: Ditto.
11980 * unwind_stop_reasons.def: Ditto.
11981 * windows-nat.h: Ditto.
11982 * xtensa-linux-tdep.c: Ditto.
11983 * xtensa-xtregs.c: Ditto.
11984 * regformats/regdat.sh: Ditto.
11985 * regformats/regdef.h: Ditto.
11986
11987 2013-02-12 Pedro Alves <palves@redhat.com>
11988
11989 * break-catch-sig.c: Update copyright years.
11990
11991 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11992
11993 Add support for a destructor for ui_out data and use it to
11994 provide a ui_out destructor.
11995 * ui-out.h: Declare the new ui_out destructor.
11996 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11997 * ui-out.c (default_data_destroy): Add a default data destructor
11998 which does nothing.
11999 (default_ui_out_impl): Set the new data_destroy field to
12000 default_data_destroy
12001 (uo_data_destroy): Local function which invokes the data
12002 destructor if present.
12003 (clear_table): Local function which clears the table data of a
12004 ui_out object.
12005 (ui_out_destroy): Public function which frees a ui_out object.
12006 (ui_out_table_end): Use the new clear_table function.
12007 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
12008 NULL.
12009 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
12010 to NULL.
12011
12012 2013-02-11 Doug Evans <dje@google.com>
12013
12014 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
12015 (printf_decfloat): New function. Broken out from ui_printf.
12016 Remove unnecessary code to shift the entire format string down.
12017 (printf_pointer): New function.
12018 (ui_printf): Code to print C strings, wide C strings, decfloats,
12019 and pointers moved to separate functions.
12020
12021 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12022
12023 * valops.c (value_assign): Handling bitfield offset in
12024 `lval_internalvar_component' case.
12025
12026 2013-02-08 Doug Evans <dje@google.com>
12027
12028 * common/format.c (parse_format_string): Fix whitespace.
12029
12030 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12031
12032 * stack.c (return_command): Work around uninitialized variable
12033 warning.
12034
12035 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12036
12037 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12038 number of the registers from 36 to 34.
12039
12040 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12041
12042 * NEWS: Mention new AArch64 native and target support.
12043
12044 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12045
12046 * MAINTAINERS (Write After Approval): Add myself.
12047
12048 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12049 Marcus Shawcroft <marcus.shawcroft@arm.com>
12050 Nigel Stephens <nigel.stephens@arm.com>
12051 Yufeng Zhang <yufeng.zhang@arm.com>
12052
12053 * aarch64-linux-nat.c: New file.
12054 * config/aarch64/linux.mh: New file.
12055 * configure.host: Add AArch64.
12056 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12057
12058 2013-02-07 Doug Evans <dje@google.com>
12059
12060 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12061 disassemble command.
12062
12063 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12064
12065 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12066 set_gdbarch_fetch_tls_load_module_address.
12067
12068 2013-02-06 David S. Miller <davem@davemloft.net>
12069
12070 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12071 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12072 * value.c (struct_return_convention): New function.
12073 (using_struct_return): Implement in terms of struct_return_convention.
12074 * value.h (struct_return_convention): Declare.
12075 * stack.c (return_command): Allow successful overriding of the return
12076 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12077
12078 2013-02-06 Tom Tromey <tromey@redhat.com>
12079
12080 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12081 outside of TRY_CATCH.
12082
12083 2013-02-06 Yao Qi <yao@codesourcery.com>
12084
12085 * mi/mi-interp.c: Include "tracepoint.h".
12086 (mi_tsv_modified): Declare.
12087 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12088 (mi_interpreter_init): Call observer_attach_tsv_modified.
12089 (mi_tsv_modified): New.
12090 (mi_tsv_created, mi_tsv_deleted): Update.
12091 * tracepoint.c (trace_variable_command): Call
12092 observer_notify_tsv_modified if the initial value of tsv is
12093 changed.
12094 (delete_trace_state_variable): Call
12095 observer_notify_tsv_deleted earlier.
12096 (trace_variable_command): Caller update.
12097 (create_tsv_from_upload): Likewise.
12098 * observer.sh: Declare "struct trace_state_variable".
12099
12100 * NEWS: Mention the new MI notification "=tsv-modified".
12101
12102 2013-02-05 Doug Evans <dje@google.com>
12103
12104 * completer.c (location_completer): Fix typo in comment.
12105
12106 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12107
12108 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12109 ADDRESS sorted.
12110
12111 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12112
12113 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12114 Refactor if statement to avoid trailing || operator.
12115
12116 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12117
12118 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12119
12120 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12121
12122 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12123 * configure.host: Add powerpc*-*-freebsd* target.
12124 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12125 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12126 * config/powerpc/fbsd.mh: New file.
12127
12128 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12129 Denys Vlasenko <dvlasenk@redhat.com>
12130 Pedro Alves <palves@redhat.com>
12131
12132 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12133 (struct elf_internal_linux_prpsinfo): Forward declare.
12134 * gdbarch.h, gdbarch.c: Regenerate.
12135 * linux-tdep.c: Include `cli/cli-utils.h'.
12136 (linux_fill_prpsinfo): New function.
12137 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12138 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12139 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12140 depending on gdbarch pointer bitness.
12141 * ppc-linux-tdep.c: Include elf-bfd.h.
12142 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12143 on 32-bit.
12144
12145 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12146 Marcus Shawcroft <marcus.shawcroft@arm.com>
12147 Nigel Stephens <nigel.stephens@arm.com>
12148 Yufeng Zhang <yufeng.zhang@arm.com>
12149
12150 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12151
12152 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12153 Marcus Shawcroft <marcus.shawcroft@arm.com>
12154 Nigel Stephens <nigel.stephens@arm.com>
12155 Yufeng Zhang <yufeng.zhang@arm.com>
12156
12157 * aarch64-newlib-tdep.c: New file.
12158 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12159 aarch64*-*-elf.
12160 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12161 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12162 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12163 * osabi.c (gdb_osabi_names): Add "Newlib".
12164
12165 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12166 Marcus Shawcroft <marcus.shawcroft@arm.com>
12167 Nigel Stephens <nigel.stephens@arm.com>
12168 Yufeng Zhang <yufeng.zhang@arm.com>
12169
12170 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12171 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12172 * aarch64-linux-tdep.c: New file.
12173 * aarch64-linux-tdep.h: New file.
12174 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12175 * configure.tgt: Add aarch64-none-linux-gnu.
12176
12177 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12178 Marcus Shawcroft <marcus.shawcroft@arm.com>
12179 Nigel Stephens <nigel.stephens@arm.com>
12180 Yufeng Zhang <yufeng.zhang@arm.com>
12181
12182 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12183 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12184 (ALLDEPFILES): Add aarch64-tdep.c.
12185 * aarch64-tdep.c: New file.
12186 * aarch64-tdep.h: New file.
12187 * configure.tgt: Add AArch64.
12188 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12189 (aarch64-expedite): New definition.
12190 * features/aarch64-core.xml: New file.
12191 * features/aarch64-fpu.xml: New file.
12192 * features/aarch64-without-fpu.c: New file (generated).
12193 * features/aarch64-without-fpu.xml: New file.
12194 * features/aarch64.c: New file (generated).
12195 * features/aarch64.xml: New file.
12196 * regformats/aarch64-without-fpu.dat: New file (generated).
12197 * regformats/aarch64.dat: New file (generated).
12198
12199 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12200
12201 * contrib/expect-read1.c: New file.
12202 * contrib/expect-read1.sh: New file.
12203
12204 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12205
12206 * dwarf2read.c (file_file_name): New function with code from
12207 file_full_name.
12208 (file_full_name): Move most of the code to file_file_name.
12209 (macro_start_file): Rename variable full_name to file_name and use
12210 file_file_name for it. Add comp_dir parameter to new_macro_table.
12211 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12212 macro_source_file->filename access by macro_source_fullname call.
12213 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12214 caller.
12215 * macrotab.c (struct macro_table): New field comp_dir.
12216 (macro_include): New variables link_fullname and source_fullname.
12217 Replace any macro_source_file->filename access by macro_source_fullname
12218 call.
12219 (macro_lookup_inclusion): Remove the partial filenames checking code.
12220 (check_for_redefinition): New variables source_fullname and
12221 found_key_fullname. Replace any macro_source_file->filename access by
12222 macro_source_fullname call.
12223 (macro_undef): New variables source_fullname and key_fullname. Replace
12224 any macro_source_file->filename access by macro_source_fullname call.
12225 (macro_lookup_definition): New variables retval and source_fullname.
12226 Replace any macro_source_file->filename access by macro_source_fullname
12227 call.
12228 (foreach_macro): New variable key_fullname. Replace any
12229 macro_source_file->filename access by macro_source_fullname call.
12230 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12231 macro_source_file->filename access by macro_source_fullname call.
12232 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12233 (macro_source_fullname): New function.
12234 * macrotab.h (struct macro_source_file): Extent the filename field
12235 comment.
12236 (new_macro_table): New parameter comp_dir, add a comment for it.
12237 (macro_source_fullname): new declaration.
12238
12239 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12240
12241 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12242 this_real_name to outer block. Use it also for
12243 compare_filenames_for_search.
12244 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12245 with dw2_get_real_path for file_matcher, considering also
12246 BASENAMES_MAY_DIFFER.
12247 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12248
12249 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12250
12251 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12252 to the file_matcher parameter. Pass 0 to it.
12253 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12254 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12255 NULL psymtab_to_fullname result.
12256 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12257 an expected filename instead.
12258 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12259 file_matcher parameter. Call also psymtab_to_fullname, after newly
12260 considering BASENAMES_MAY_DIFFER.
12261 * source.c (rewrite_source_path): Remove static.
12262 * source.h (rewrite_source_path): New declaration.
12263 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12264 the expand_symtabs_matching field. Comment it.
12265 * symtab.c (file_matches): New function comment. Add parameter
12266 basenames, implement it.
12267 (search_symbols_file_matches): Add basenames parameter. Update the
12268 file_matches caller.
12269 (search_symbols): Match FILES also against symtab_to_fullname.
12270 Optimize it for BASENAMES_MAY_DIFFER.
12271
12272 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12273
12274 * source.c (print_source_lines_base): Print for TUI also "fullname".
12275 * tui/tui-data.c (init_content_element): Change tui_locator_element
12276 field to full_name.
12277 * tui/tui-data.h (struct tui_locator_element): Likewise.
12278 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12279 tui_update_locator_filename calls to tui_update_locator_fullname.
12280 Replace symtab->filename refererence by symtab_to_fullname call.
12281 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12282 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12283 field to full_name. Replace symtab->filename refererence by
12284 symtab_to_fullname call.
12285 (tui_show_symtab_source): Rename parameter to fullname. Change
12286 tui_locator_element field to full_name.
12287 * tui/tui-stack.c: Include source.h.
12288 (tui_set_locator_filename): Rename the declaration to ...
12289 (tui_set_locator_fullname): ... here. Rename its parameter to
12290 fullname, updates its comment.
12291 (tui_set_locator_info): Rename its parameter to fullname.
12292 (tui_set_locator_filename): Rename the definition to ...
12293 (tui_set_locator_fullname): ... here. Rename its parameter to
12294 fullname, updates its comment. Change tui_locator_element field to
12295 full_name.
12296 (tui_set_locator_info): Rename its parameter to fullname.
12297 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12298 (tui_update_locator_filename): Rename to ...
12299 (tui_update_locator_fullname): ... here. Rename callee to
12300 tui_set_locator_fullname.
12301 (tui_show_frame_info): Replace symtab->filename refererence by
12302 symtab_to_fullname call.
12303 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12304 (tui_update_locator_fullname): ... here.
12305 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12306 tui_update_locator_fullname. Replace symtab->filename refererence by
12307 symtab_to_fullname call.
12308 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12309 Rename the callee to tui_update_locator_fullname.
12310 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12311
12312 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12313
12314 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12315 by symtab_to_filename_for_display calls.
12316 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12317 (clear_command): New variable sal_fullname, initialize it. Replace
12318 compare_filenames_for_search by filename_cmp with sal_fullname.
12319 (say_where, update_static_tracepoint): Replace symtab->filename
12320 refererences by symtab_to_filename_for_display calls.
12321 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12322 Likewise.
12323 * dwarf2read.c: Include source.h.
12324 (fixup_go_packaging): Replace symtab->filename refererences by
12325 symtab_to_filename_for_display calls.
12326 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12327 Replace symtab->filename refererences by symtab_to_filename_for_display
12328 calls.
12329 (create_sals_line_offset, convert_linespec_to_sals): New variable
12330 fullname, initialize it, replace symtab->filename reference by the
12331 variable.
12332 * linux-fork.c: Include source.h.
12333 (info_checkpoints_command): Replace symtab->filename refererences by
12334 symtab_to_filename_for_display calls.
12335 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12336 by symtab_to_filename_for_display calls.
12337 * mdebugread.c: Include source.h.
12338 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12339 symtab_to_filename_for_display calls.
12340 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12341 (mi_cmd_file_list_exec_source_files): Likewise.
12342 * printcmd.c: Include source.h.
12343 (build_address_symbolic): Replace symtab->filename refererences by
12344 symtab_to_filename_for_display calls.
12345 * psymtab.c (partial_map_symtabs_matching_filename)
12346 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12347 with psymtab_to_fullname.
12348 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12349 by symtab_to_filename_for_display calls.
12350 (stpy_get_filename): New variable filename, initialize it, use instead
12351 of symtab->filename refererences.
12352 (salpy_str): Make variable filename const char *. Replace
12353 symtab->filename refererences by symtab_to_filename_for_display calls.
12354 * skip.c: Include source.h and filenames.h.
12355 (skip_file_command): Remove const from the symtab variable. Replace
12356 symtab->filename refererences by symtab_to_fullname call.
12357 (function_name_is_marked_for_skip): New variables searched_for_fullname
12358 and fullname. Use them to search also with symtab's fullname.
12359 * source.c (find_source_lines): Replace symtab->filename refererences
12360 by symtab_to_filename_for_display calls.
12361 (print_source_lines_base): New variable filename, use it instead of
12362 symtab->filename. Replace symtab->filename refererences by
12363 symtab_to_filename_for_display calls.
12364 (line_info, forward_search_command): Replace symtab->filename
12365 refererences by symtab_to_filename_for_display calls.
12366 (reverse_search_command): Replace symtab->filename refererences by
12367 symtab_to_filename_for_display calls. New variable filename for it.
12368 * stack.c (frame_info): Likewise.
12369 * symmisc.c: Include source.h.
12370 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12371 (maintenance_info_symtabs): Replace symtab->filename refererences by
12372 symtab_to_filename_for_display calls.
12373 * symtab.c (iterate_over_some_symtabs): Call
12374 compare_filenames_for_search also with symtab_to_fullname.
12375 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12376 symtab->filename refererences by symtab_to_filename_for_display calls.
12377 (find_line_symtab): Replace symtab->filename refererences by
12378 symtab_to_filename_for_display calls.
12379 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12380 (print_symbol_info): Make the last parameter const char *. New
12381 variable s_filename. Use it in the function.
12382 (symtab_symbol_info): Make the last_filename variable const char *.
12383 Replace symtab->filename refererences by symtab_to_filename_for_display
12384 calls.
12385 (rbreak_command): New variable fullname. Use it. Replace
12386 symtab->filename refererence by symtab_to_filename_for_display call.
12387 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12388 (print_one_static_tracepoint_marker): Replace symtab->filename
12389 refererences by symtab_to_filename_for_display calls.
12390 * tui/tui-source.c (tui_set_source_content): New variables filename and
12391 s_filename. Replace symtab->filename refererences by this variable.
12392 Replace other symtab->filename refererences by
12393 symtab_to_filename_for_display calls.
12394
12395 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12396 Jan Kratochvil <jan.kratochvil@redhat.com>
12397
12398 Add a new variable that controls a way in which filenames are
12399 displayed.
12400 * NEWS (set filename-display): New entry.
12401 * source.c (filename_display_basename, filename_display_relative)
12402 (filename_display_absolute, filename_display_kind_names)
12403 (filename_display_string, show_filename_display_string)
12404 (symtab_to_filename_for_display): New.
12405 (_initialize_source): Added initialization of 'filename-display'
12406 variable.
12407 * source.h (symtab_to_filename_for_display): Added declaration.
12408 * stack.c (print_frame): Added new variable and calling of a new
12409 function and condition with this variable. Changed third argument of
12410 calling of a function.
12411
12412 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12413
12414 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12415 Rename field reference filename to fullname.
12416 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12417 fullname. New comment for it.
12418 * tui/tui-source.c (tui_set_source_content): Rename field reference
12419 filename to fullname. Initialize field by symtab_to_fullname now.
12420 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12421 reference filename to fullname. Use symtab_to_fullname during
12422 comparison.
12423
12424 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12425
12426 Code cleanup.
12427 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12428 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12429 filename to fullname. Rename variable this_name to this_fullname.
12430 Lowercase FILENAME_CMP call.
12431 (dw2_find_symbol_file): New comment for the returned string.
12432 (dwarf2_gdb_index_functions): Rename the function to
12433 dw2_expand_symtabs_with_fullname.
12434 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12435 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12436 fullname.
12437 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12438 * symfile.h (struct quick_symbol_functions): Rename field
12439 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12440 parameter filename to fullname. Document returned string meaning for
12441 find_symbol_file.
12442 * symtab.c (find_line_symtab): Rename the called function to
12443 expand_symtabs_with_fullname.
12444
12445 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12446
12447 Code cleanup.
12448 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12449 call of filename_cmp with compare_filenames_for_search.
12450 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12451 is_abs, unify the call of FILENAME_CMP with
12452 compare_filenames_for_search. New gdb_asserts for real_path and name.
12453 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12454 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12455 * symfile.h (struct quick_symbol_functions): Extend the comment for
12456 map_symtabs_matching_filename.
12457 * symtab.c (compare_filenames_for_search): Remove the function comment
12458 relative path requirement. Handle absolute filenames, with a comment.
12459 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12460 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12461 real_path and name. Unify the call of compare_filenames_for_search
12462 with FILENAME_CMP.
12463 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12464
12465 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12466
12467 Code cleanup.
12468 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12469 source_file references by symtab field references. Remove variables
12470 sal and fullname.
12471 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12472 (clear_command, say_where): Replace bp_location field source_file
12473 references by symtab field references.
12474 (bp_location_dtor): Remove the source_file reference.
12475 (update_static_tracepoint): Replace bp_location field source_file
12476 references by symtab field references.
12477 (breakpoint_free_objfile): New function.
12478 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12479 Replace the field source_file by field symtab, extend its comment.
12480 (breakpoint_free_objfile): New declaration.
12481 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12482 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12483 field source_file references by symtab field references.
12484
12485 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12486
12487 Replace xfullpath calls by gdb_realpath calls.
12488 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12489 function comment.
12490 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12491 Remove it from the iterate_over_some_symtabs call.
12492 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12493 Remove it from the dw2_map_expand_apply calls, remove a block handling
12494 it.
12495 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12496 Remove it from the iterate_over_some_symtabs call.
12497 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12498 Remove it from the partial_map_expand_apply calls, remove a block
12499 handling it. Drop gdb_realpath call and cleanups from the real_path
12500 handling.
12501 * source.c (openp): Drop the comment part about xfullpath. Replace
12502 xfullpath calls by gdb_realpath calls.
12503 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12504 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12505 from method map_symtabs_matching_filename and its comment.
12506 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12507 gdb_realpath call.
12508 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12509 remove it also from the function comment, remove a block handling it.
12510 Drop gdb_realpath call and cleanups from the real_path handling.
12511 (iterate_over_symtabs): Drop variable full_path and its use.
12512 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12513 * utils.c (xfullpath): Remove.
12514 * utils.h (xfullpath): Remove.
12515
12516 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12517
12518 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12519 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12520 (ALLDEPFILES): Add ppc64-tdep.c.
12521 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12522 ppc64-tdep.o to gdb_target_obs.
12523 * ppc64-tdep.h: New file.
12524 * ppc64-tdep.c: New file.
12525 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12526 ppc-linux-tdep.c to here.
12527 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12528 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12529 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12530 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12531 from ppc-linux-tdep.c to here.
12532 (ppc64_convert_from_func_ptr_addr): Rename from
12533 ppc64_linux_convert_from_func_ptr_addr to
12534 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12535 here.
12536 * rs6000-tdep.c:
12537 (read_insn): Move from ppc-linux-tdep.c to here.
12538 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12539 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12540 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12541 Removed above functions.
12542 (ppc_linux_init_abi): Adjust.
12543
12544 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12545
12546 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12547
12548 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12549
12550 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12551
12552 2013-02-01 Pedro Alves <palves@redhat.com>
12553
12554 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12555 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12556
12557 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12558
12559 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12560 files with no separate debug info.
12561 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12562 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12563 only for files with no separate debug info.
12564
12565 2013-01-31 Tom Tromey <tromey@redhat.com>
12566
12567 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12568 change type.
12569 (struct jit_program_space_data): Rename from jit_inferior_data.
12570 Update comments.
12571 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12572 Change return type. Attach data to program space.
12573 (jit_program_space_data_cleanup): Rename from
12574 jit_inferior_data_cleanup; change argument type.
12575 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12576 change type.
12577 (jit_register_code): Update.
12578 (jit_update_inferior_cache): Remove.
12579 (jit_breakpoint_deleted): Get jit data from the location's program
12580 space.
12581 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12582 'ps_data', change type.
12583 (jit_inferior_init, jit_breakpoint_re_set_internal)
12584 (jit_event_handler): Update.
12585 (free_objfile_data): Get data from objfile's program space.
12586 (_initialize_jit): Update.
12587
12588 2013-01-31 Tom Tromey <tromey@redhat.com>
12589
12590 PR gdb/13987:
12591 * jit.c (struct jit_inferior_data) <cached_code_address,
12592 jit_breakpoint>: New fields.
12593 (jit_breakpoint_re_set_internal): Fix logging. Only create
12594 breakpoint if cached address has changed.
12595 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12596 functions.
12597 (_initialize_jit): Register breakpoint deleted observer.
12598
12599 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12600
12601 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12602 (save_infcall_suspend_state): Ifdef out unused inf.
12603 (restore_infcall_suspend_state): Ifdef out unused inf.
12604 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12605 (jit_frame_sniffer): Remove unused inf_data.
12606
12607 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12608
12609 * c-exp.y (classify_inner_name): Remove unused type.
12610 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12611 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12612 need_escape.
12613 (c_get_string): Remove unused kind.
12614 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12615
12616 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12617
12618 * charset.c (intermediate_encoding): Remove unused i.
12619 * completer.c (signal_completer): Remove unused i.
12620 * continuations.c (discard_my_continuations_1): Remove unused
12621 continuation_ptr.
12622 * corelow.c (core_close): Remove unuseD name.
12623 (get_core_siginfo): Remove unused pid.
12624 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12625 i, cps.
12626 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12627 (loclist_describe_location): Remove unused first.
12628 * event-top.c (command_line_handler): Remove unused got_eof.
12629 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12630 (resize_section_table): Remove unused old_value.
12631 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12632 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12633 * i386-tdep.c (i386_process_record): Remove unused rex.
12634 * infcmd.c (get_return_value): Remove unused uiout.
12635 * jv-lang.c (type_from_class): Remove unused is_array.
12636 * jv-valprint.c (java_val_print): Remove unused i.
12637 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12638 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12639 * m2-typeprint.c (m2_print_type): Remove unused code.
12640 * macroexp.c (get_character_constant): Remove unused body_start.
12641 (macro_stringify): Remove unused result.
12642 * objc-lang.c (find_methods): Remove unused gdbarch.
12643 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12644 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12645 * stack.c (print_frame_args): Remove unused summary.
12646 * thread.c (thread_apply_command): Remove unused p.
12647 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12648 * valops.c (search_struct_method): Remove unused skip.
12649 * valprint.c (generic_val_print): Remove unused byte_order.
12650 * varobj.c (varobj_update): Remove unused changed.
12651 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12652 (alias_command): Remove unused c.
12653 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12654 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12655 format.
12656 (mi_cmd_data_write_memory): Remove unused word_format.
12657 (mi_cmd_data_write_memory_bytes): Remove unused r.
12658 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12659 p_start, p_end.
12660 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12661 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12662 line_width.
12663
12664 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12665
12666 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12667 * symtab.c (iterate_over_symtabs): Remove unused s.
12668 (find_pc_sect_symtab): Remove unused pspAce.
12669 (find_pc_sect_line): Remove unused alt_symtab.
12670 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12671 (completion_list_add_name): Remove unused newsize.
12672
12673 2013-01-31 Tom Tromey <tromey@redhat.com>
12674
12675 PR c++/14998:
12676 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12677 TYPE_CODE_FUNC.
12678
12679 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12680
12681 * target.c (target_read_string): Remove unused origlen.
12682
12683 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12684
12685 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12686 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12687 * ax-general.c (ax_print): Remove unused is_float.
12688 * blockframe.c (block_innermost_frame): Remove unused start, end.
12689 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12690
12691 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12692
12693 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12694 (svr4_read_so_list): Remove unused lmo.
12695 * solib-target.c (solib_target_relocate_section_addresses): Remove
12696 unused flags.
12697
12698 2013-01-30 Tom Tromey <tromey@redhat.com>
12699
12700 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12701
12702 2013-01-30 Tom Tromey <tromey@redhat.com>
12703
12704 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12705 * utils.c (gnu_debuglink_crc32): Remove.
12706 * utils.h (gnu_debuglink_crc32): Don't declare.
12707
12708 2013-01-30 Tom Tromey <tromey@redhat.com>
12709
12710 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12711 (read_structure_type, read_enumeration_type): Remove cast.
12712
12713 2013-01-30 Tom Tromey <tromey@redhat.com>
12714
12715 * dwarf2read.c (read_namespace_type): Remove cast.
12716 (read_typedef): Likewise.
12717
12718 2013-01-29 Tom Tromey <tromey@redhat.com>
12719
12720 * dwarf2read.c (free_dwo_file): Remove assert.
12721
12722 2013-01-29 Tom Tromey <tromey@redhat.com>
12723
12724 * value.c (deprecated_set_value_modifiable): Remove.
12725 * value.h (deprecated_set_value_modifiable): Remove.
12726
12727 2013-01-28 Doug Evans <dje@google.com>
12728
12729 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12730 to addresses from dwo files.
12731
12732 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12733
12734 * valops.c (find_overload_match): Remove unused argument 'lax'.
12735 * value.h: Remove unused argument 'lax' from the declaration of
12736 find_overload_match.
12737 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12738 to find_overload_match.
12739 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12740 argument to find_overload_match.
12741
12742 2013-01-25 Tom Tromey <tromey@redhat.com>
12743
12744 * dwarf2read.c (processing_has_namespace_info): Remove.
12745 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12746 (process_die, read_func_scope, dwarf2_start_symtab)
12747 (new_symbol_full): Update.
12748
12749 2013-01-25 Tom Tromey <tromey@redhat.com>
12750
12751 * cp-namespace.c (cp_set_block_scope): Remove.
12752 * cp-support.h (cp_set_block_scope): Remove.
12753 * dbxread.c: Include block.h.
12754 (cp_set_block_scope): New function.
12755 (process_one_symbol): Update.
12756 * dwarf2read.c (read_func_scope): Use block_set_scope.
12757
12758 2013-01-25 Pedro Alves <palves@redhat.com>
12759
12760 * remote.c (add_current_inferior_and_thread): Tweak comment.
12761
12762 2013-01-25 Tom Tromey <tromey@redhat.com>
12763
12764 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12765 (cp_add_using_directive): Add 'copy_names' argument.
12766 * cp-support.h (cp_add_using_directive): Update.
12767 (struct using_direct) <import_src, import_dest, alias,
12768 declaration>: Now const.
12769 * dwarf2read.c (read_import_statement): Use obconcat.
12770 Don't copy names passed to cp_add_using_directive.
12771
12772 2013-01-25 Tom Tromey <tromey@redhat.com>
12773
12774 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12775
12776 2013-01-25 Pedro Alves <palves@redhat.com>
12777
12778 * remote.c (stop_reply_extract_thread): New.
12779 (add_current_inferior_and_thread): New parameter 'wait_status'.
12780 Handle it.
12781 (remote_start_remote): Pass wait status to
12782 add_current_inferior_and_thread.
12783 (extended_remote_run): Update comment.
12784 (extended_remote_create_inferior_1): Pass wait status to
12785 add_current_inferior_and_thread.
12786
12787 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12788 Ulrich Weigand <uweigand@de.ibm.com>
12789
12790 * valarith.c (value_vector_widen): New function for replicating a
12791 scalar into a vector.
12792 (value_binop): Use value_vector_widen to widen scalar to vector
12793 rather than casting, this better matches gcc C behaviour.
12794 * valops.c (value_casst): Update logic for casting between vector
12795 types, and for casting from scalar to vector, try to match gcc C
12796 behaviour.
12797 * value.h (value_vector_widen): Declare.
12798 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12799 function, handle special case for casting scalar to vector.
12800 (opencl_relop): Use opencl_value_cast.
12801 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12802 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12803 in order to use opencl_value_cast.
12804
12805 2013-01-25 Yao Qi <yao@codesourcery.com>
12806
12807 * event-loop.c: Include "queue.h".
12808 (gdb_event_p): New typedef.
12809 (DECLARE_QUEUE_P): Use.
12810 (DEFINE_QUEUE_P): Use.
12811 (async_queue_event): Remove.
12812 (gdb_event_xfree): New.
12813 (initialize_event_loop): New.
12814 (process_event): Use QUEUE macros.
12815 (event_queue): Remove.
12816 (gdb_wait_for_event): Caller update.
12817 (check_async_event_handlers): Likewise.
12818 (poll_timers): Likewise.
12819 * event-loop.h (initialize_event_loop): Declare.
12820 * event-loop.c (gdb_event_xfree): New.
12821 * top.c (gdb_init): Call initialize_event_loop.
12822
12823 2013-01-25 Yao Qi <yao@codesourcery.com>
12824
12825 * event-loop.c (async_queue_event): Remove one parameter
12826 'position'. Remove code handling 'position' == TAIL.
12827 (gdb_wait_for_event): Caller update.
12828 (check_async_event_handlers): Caller update.
12829 (poll_timers): Caller update.
12830 * event-loop.h (enum queue_position): Remove.
12831
12832 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12833
12834 * MAINTAINERS: Update my email.
12835
12836 2013-01-25 Yao Qi <yao@codesourcery.com>
12837
12838 * main.c (print_gdb_help): Remove "--epoch" from the help
12839 message.
12840
12841 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12842
12843 * symtab.c (skip_prologue_using_sal): Consider a file
12844 change the same as an increased line number
12845
12846 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12847
12848 * MAINTAINERS (Write After Approval): Add myself to the list.
12849
12850 2013-01-24 Tom Tromey <tromey@redhat.com>
12851
12852 * ada-lang.h (ada_decode_symbol): Make return type const.
12853 * ada-lang.c (ada_decode_symbol): Likewise.
12854
12855 2013-01-23 Doug Evans <dje@google.com>
12856
12857 * linespec.c (find_linespec_symbols): Make static.
12858
12859 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12860
12861 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12862 type on float conversion for complex type.
12863
12864 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12865
12866 Add a new class gdb.Architecture which exposes GDB's
12867 internal representation of architecture via GDB Python API.
12868 * Makefile.in: Add entries corresponding to the new file
12869 python/py-arch.c.
12870 * NEWS (Python Scripting): Add entries for the new class
12871 gdb.Architecture and the new method gdb.Frame.architecture.
12872 * python/py-arch.c: Implement gdb.Architecture class.
12873 * python/py-frame.c (frapy_arch): Implement the method
12874 gdb.Frame.architecture().
12875 (frame_object_methods): Add 'architecture' to the method table.
12876 * python/python-internal.h: Add declarations of new utility
12877 functions.
12878 * python/python.c (_initialize_python): Initialize
12879 gdb.Architecture class.
12880
12881 2013-01-23 Doug Evans <dje@google.com>
12882
12883 Work around binutils/15021.
12884 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12885 type_unit_group out of union s. All uses updated.
12886 (read_index_from_section): Watch for index version 8.
12887 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12888 an imported symtab.
12889 (write_psymtabs_to_index): Increment version number to 8.
12890
12891 2013-01-22 Pedro Alves <palves@redhat.com>
12892
12893 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12894 user-visible.
12895
12896 2013-01-22 Pedro Alves <palves@redhat.com>
12897
12898 * annotate.c (annotate_breakpoints_changed): Rename to ...
12899 (annotate_breakpoints_invalid): ... this. Make static.
12900 (breakpoint_changed): Adjust.
12901 (_initialize_annotate): Always install the observers. Install a
12902 "breakpoint_created" observer.
12903 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12904 * breakpoint.c (set_breakpoint_condition)
12905 (breakpoint_set_commands, do_map_commands_command)
12906 (init_raw_breakpoint, clear_command, set_ignore_count)
12907 (enable_breakpoint_disp): No longer call
12908 annotate_breakpoints_changed.
12909
12910 2013-01-22 Pedro Alves <palves@redhat.com>
12911
12912 * annotate.c: Include "inferior.h".
12913 (frames_invalid_emitted)
12914 (breakpoints_invalid_emitted): New globals.
12915 (async_background_execution_p): New function.
12916 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12917 emitting the annotation if it has already been emitted.
12918 (annotate_display_prompt): New function.
12919 * annotate.h (annotate_display_prompt): New declaration.
12920 * event-top.c: Include annotate.h.
12921 (display_gdb_prompt): Call annotate_display_prompt.
12922
12923 2013-01-22 Pedro Alves <palves@redhat.com>
12924
12925 * annotate.c (ignore_count_changed): Delete.
12926 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12927 (annotate_ignore_count_change): Delete.
12928 (annotate_stopped): Don't emit a delayed breakpoints-changed
12929 annotation.
12930 * annotate.h (annotate_ignore_count_change): Delete.
12931 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12932 annotate_ignore_count_change.
12933
12934 2013-01-22 Tom Tromey <tromey@redhat.com>
12935
12936 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12937 require_rvalue for a register location.
12938
12939 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12940
12941 * breakpoint.c (print_one_breakpoint_location): Add MI
12942 field 'thread-groups' when printing a breakpoint.
12943 (output_thread_groups): New function.
12944
12945 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12946
12947 * python/lib/gdb/commands/explore.py
12948 (CompoundExplorer.explore_expr): Correct the name of a method
12949 being invoked.
12950 (ExploreTypeCommand.invoke): Add a missing 'return'.
12951
12952 2013-01-21 Tom Tromey <tromey@redhat.com>
12953
12954 * gdb_obstack.h (obconcat): Move declaration here, from...
12955 * symfile.h (obconcat): ... here.
12956 * gdb_obstack.c: New file.
12957 (obconcat): Move from...
12958 * symfile.c (obconcat): ... here.
12959 * Makefile.in (SFILES): Add gdb_obstack.c.
12960 (COMMON_OBS): Add gdb_obstack.o.
12961
12962 2013-01-21 Tom Tromey <tromey@redhat.com>
12963
12964 * symfile.h (obsavestring): Don't declare.
12965 * symfile.c (obsavestring): Remove.
12966 * ada-exp.y: Use obstack_copy0, not obsavestring.
12967 * ada-lang.c: Use obstack_copy0, not obsavestring.
12968 * coffread.c: Use obstack_copy0, not obsavestring.
12969 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12970 * dbxread.c: Use obstack_copy0, not obsavestring.
12971 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12972 * jit.c: Use obstack_copy0, not obsavestring.
12973 * mdebugread.c: Use obstack_copy0, not obsavestring.
12974 * psymtab.c: Use obstack_copy0, not obsavestring.
12975 * stabsread.c: Use obstack_copy0, not obsavestring.
12976 * xcoffread.c: Use obstack_copy0, not obsavestring.
12977
12978 2013-01-21 Tom Tromey <tromey@redhat.com>
12979
12980 * dwarf2read.c (fixup_go_packaging): Save package name
12981 on objfile obstack.
12982 * gdbtypes.c (init_type): Don't copy name.
12983
12984 2013-01-21 Tom Tromey <tromey@redhat.com>
12985
12986 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12987 const.
12988 (struct attribute) <u.str>: Now const.
12989 (struct fnfieldlist) <name>: Now const.
12990 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12991 (partial_die_parent_scope): Make return type const.
12992 (partial_die_full_name, add_partial_symbol): Update.
12993 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12994 'name' const.
12995 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12996 (read_file_scope, read_func_scope, dwarf2_add_field)
12997 (dwarf2_add_member_fn, read_structure_type)
12998 (process_enumeration_scope, read_array_type, read_module_type)
12999 (read_base_type, read_subrange_type): Update.
13000 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
13001 (new_symbol_full, guess_full_die_structure_name): Update.
13002 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
13003 (dwarf2_name): Return const type.
13004 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
13005 const.
13006
13007 2013-01-21 Tom Tromey <tromey@redhat.com>
13008
13009 * gdbtypes.c (init_type): Make 'name' const.
13010 * gdbtypes.h (init_type): Update.
13011
13012 2013-01-21 Tom Tromey <tromey@redhat.com>
13013
13014 * buildsym.c (patch_subfile_names): Use set_last_source_file.
13015 (start_symtab): Make 'name' and 'dirname' const. Use
13016 set_last_source_file.
13017 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13018 (last_source_file): Define. Now static.
13019 (set_last_source_file, get_last_source_file): New functions.
13020 * buildsym.h (last_source_file): Don't declare.
13021 (start_symtab): Update.
13022 (set_last_source_file, get_last_source_file): Declare.
13023 * coffread.c (complete_symtab): Use set_last_source_file.
13024 (coff_end_symtab): Likewise.
13025 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13026 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13027 set_last_source_file.
13028 (process_one_symbol): Use get_last_source_file.
13029 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13030 (psymtab_to_symtab_1): Use get_last_source_file.
13031 * xcoffread.c (process_linenos): Use get_last_source_file.
13032 (complete_symtab): Use set_last_source_file.
13033 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13034 (scan_xcoff_symtab): Use set_last_source_file.
13035
13036 2013-01-21 Tom Tromey <tromey@redhat.com>
13037
13038 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13039 (symbol_set_names): Remove casts. Handle field const-ness.
13040
13041 2013-01-21 Tom Tromey <tromey@redhat.com>
13042
13043 * dwarf2read.c (new_symbol_full): Remove cast.
13044 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13045 * symtab.h (symbol_set_demangled_name): Update.
13046
13047 2013-01-21 Tom Tromey <tromey@redhat.com>
13048
13049 * main.c (captured_main): Call bfd_init.
13050
13051 2013-01-21 Tom Tromey <tromey@redhat.com>
13052
13053 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13054 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13055 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13056 * NEWS: Update.
13057
13058 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13059
13060 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13061
13062 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13063
13064 Fix gdb.fortran/common-block.exp crash in PIE mode.
13065 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13066 LOC_COMMON_BLOCK.
13067 * f-valprint.c (info_common_command_for_block): Expect
13068 LOC_COMMON_BLOCK in gdb_assert.
13069 * symtab.h (struct general_symbol_info): Update comment for the
13070 common_block member.
13071 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13072 (enum address_class): New member LOC_COMMON_BLOCK.
13073
13074 2013-01-18 David Blaikie <dblaikie@gmail.com>
13075
13076 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13077
13078 2013-01-18 Tom Tromey <tromey@redhat.com>
13079
13080 PR c++/14999:
13081 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13082 Call require_rvalue.
13083
13084 2013-01-18 Yao Qi <yao@codesourcery.com>
13085
13086 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13087 (dbx_read_symtab): New declaration.
13088 (dbx_psymtab_to_symtab): Delete.
13089 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13090 Rename parameter PST to SELF. Exchanged two parameters.
13091 (start_psymtab): Caller update.
13092 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13093 (dwarf2_read_symtab): New declaration.
13094 (dwarf2_psymtab_to_symtab): Delete.
13095 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13096 Rename parameter PST to SELF. Exchanged two parameters.
13097 (create_partial_symtab): Caller update.
13098 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13099 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13100 Rename parameter PST to SELF. Exchanged two parameters.
13101 (parse_partial_symbols, new_psymtab): Caller update.
13102 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13103 two parameters.
13104 * psymtab.c (psymtab_to_symtab): Caller update.
13105 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13106 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13107 Rename parameter PST to SELF. Exchanged two parameters.
13108 (xcoff_start_psymtab): Caller update.
13109
13110 2013-01-18 Yao Qi <yao@codesourcery.com>
13111
13112 * infrun.c (proceed): Rename local variable 'oneproc' to
13113 'force_step'.
13114
13115 2013-01-17 Doug Evans <dje@google.com>
13116
13117 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13118 (dw2_build_type_unit_groups): Delete. All uses updated.
13119
13120 * symtab.h (struct symbol_search): Add comment.
13121
13122 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13123
13124 * symtab.c (compare_filenames_for_search): New comment for
13125 HAS_DRIVE_SPEC.
13126
13127 2013-01-17 Tom Tromey <tromey@redhat.com>
13128
13129 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13130
13131 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13132
13133 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13134 initialize it by existing make_cleanup. Call new do_cleanups.
13135
13136 2013-01-17 Tom Tromey <tromey@redhat.com>
13137
13138 * cp-abi.c (cp_abi_completer): New function.
13139 (_initialize_cp_abi): Set completer for "set cp-abi".
13140
13141 2013-01-17 Tom Tromey <tromey@redhat.com>
13142
13143 * mem-break.c: Remove obsolete comment.
13144 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13145
13146 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13147
13148 * jit.c (jit_reader_load_command): Interpret the jit reader name
13149 as an absolute path if it begins with a forward slash.
13150
13151 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13152
13153 PR gdb/14550
13154
13155 * jit.c (finalize_symtab): Ensure that only the global block has a
13156 NULL superblock.
13157
13158 2013-01-17 Pedro Alves <palves@redhat.com>
13159
13160 * acinclude.m4: Include ../config/plugins.m4,
13161 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13162 * Makefile.in (aclocal_m4_deps): Update.
13163 * aclocal.m4: Renegerate.
13164
13165 2013-01-16 Doug Evans <dje@google.com>
13166
13167 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13168
13169 2013-01-16 Pedro Alves <palves@redhat.com>
13170 Tom Tromey <tromey@redhat.com>
13171
13172 PR cli/7221:
13173 * NEWS: Add "catch signal".
13174 * breakpoint.c (base_breakpoint_ops): No longer static.
13175 (bpstat_explains_signal): New function.
13176 (init_catchpoint): No longer static.
13177 (base_breakpoint_explains_signal): New function.
13178 (base_breakpoint_ops): Initialize new field.
13179 * breakpoint.h (enum bpstat_signal_value): New.
13180 (struct breakpoint_ops) <explains_signal>: New field.
13181 (bpstat_explains_signal): Remove macro, declare as function.
13182 (base_breakpoint_ops, init_catchpoint): Declare.
13183 * break-catch-sig.c: New file.
13184 * inferior.h (signal_catch_update): Declare.
13185 * infrun.c (signal_catch): New global.
13186 (handle_syscall_event): Update for change to
13187 bpstat_explains_signal.
13188 (handle_inferior_event): Likewise. Always handle random signals
13189 via bpstats.
13190 (signal_cache_update): Check signal_catch.
13191 (signal_catch_update): New function.
13192 (_initialize_infrun): Initialize signal_catch.
13193 * Makefile.in (SFILES): Add break-catch-sig.c.
13194 (COMMON_OBS): Add break-catch-sig.o.
13195
13196 2013-01-16 Tom Tromey <tromey@redhat.com>
13197
13198 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13199 (print_one_catch_solib, print_one_catch_syscall)
13200 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13201 "catch-type".
13202
13203 2013-01-16 Yao Qi <yao@codesourcery.com>
13204
13205 * printcmd.c (current_display_number): Make it static.
13206
13207 2013-01-16 Yao Qi <yao@codesourcery.com>
13208
13209 * infcmd.c (step_once): Don't check '!single_inst' as it was
13210 checked before.
13211
13212 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13213
13214 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13215
13216 2013-01-14 Tom Tromey <tromey@redhat.com>
13217
13218 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13219 set command.
13220 * command.h (add_setshow_string_noescape_cmd): Update.
13221 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13222 (complete_set_gnutarget): New function.
13223 (_initialize_core): Set the "set gnutarget" completer.
13224
13225 2013-01-14 Tom Tromey <tromey@redhat.com>
13226
13227 PR symtab/14442:
13228 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13229 (c_type_print_modifier): Likewise.
13230 * dwarf2read.c (read_tag_restrict_type): New function.
13231 (read_type_die_1): Handle DW_TAG_restrict_type.
13232 * gdbtypes.c (make_restrict_type): New function.
13233 (recursive_dump_type): Handle TYPE_RESTRICT.
13234 * gdbtypes.h (enum type_flag_values): Renumber.
13235 (enum type_instance_flag_value): Add
13236 TYPE_INSTANCE_FLAG_RESTRICT.
13237 (TYPE_RESTRICT): New macro.
13238 (make_restrict_type): Declare.
13239
13240 2013-01-14 Tom Tromey <tromey@redhat.com>
13241
13242 PR symtab/14931:
13243 * psymtab.c (struct psymtab_state): New.
13244 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13245 functions.
13246 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13247 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13248
13249 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13250 Pedro Alves <palves@redhat.com>
13251
13252 PR remote/14786
13253
13254 * remote.c (remote_threads_info): Make a copy of the reply from
13255 qfThreadInfo and use that instead of rs->buf.
13256
13257 2013-01-14 Yao Qi <yao@codesourcery.com>
13258
13259 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13260 (dbx_psymtab_to_symtab): Likewise.
13261 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13262 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13263 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13264
13265 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13266
13267 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13268 make_cleanup_restore_current_language. Call set_language. Move
13269 OLD_CHAIN and INNER_CHAIN cleanups.
13270 * utils.c (do_restore_current_language)
13271 (make_cleanup_restore_current_language): New functions.
13272 * utils.h (make_cleanup_restore_current_language): New declaration.
13273
13274 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13275
13276 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13277 non-existing files.
13278
13279 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13280 non-existing files if FILENAME is already absolute.
13281
13282 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13283
13284 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13285 fputs_filtered. Append trailing newline.
13286
13287 2013-01-11 Yao Qi <yao@codesourcery.com>
13288 Stan Shebs <stan@codesourcery.com>
13289
13290 * psymtab.c (init_psymbol_list): Clarify the comment.
13291
13292 2013-01-11 Yao Qi <yao@codesourcery.com>
13293
13294 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13295 (update_dprintf_command_list): Assert that 'printf_line' is
13296 non-null. Remove condition check.
13297
13298 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13299
13300 Code cleanup.
13301 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13302 type const char *.
13303 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13304 const char *.
13305 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13306
13307 2013-01-09 Anthony Green <green@moxielogic.com>
13308
13309 * cp-abi.c (cplus_print_vtable): Don't return value from void
13310 function.
13311 * ada-lang.c (re_set_catch_assert): Ditto.
13312
13313 2013-01-09 Doug Evans <dje@google.com>
13314
13315 * symfile.h (quick_symbol_functions): Delete member
13316 pre_expand_symtabs_matching. All uses removed.
13317 * dwarf2read.c (dw2_lookup_symbol): Implement.
13318 (dw2_do_expand_symtabs_matching): Delete.
13319 (dw2_pre_expand_symtabs_matching): Delete.
13320 (struct dw2_symtab_iterator): New type.
13321 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13322 (dw2_expand_symtabs_for_function): Rewrite.
13323 (dwarf2_gdb_index_functions): Update.
13324 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13325 (psym_functions): Update.
13326
13327 2013-01-09 Tom Tromey <tromey@redhat.com>
13328
13329 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13330 * configure: Rebuild.
13331 * configure.ac: Add somread.o to the build if BFD has SOM
13332 support.
13333 * somread.c: Include som/aout.h, not syms.h.
13334 (som_symtab_read): Use som_external_symbol_dictionary_record.
13335 Unpack records manually.
13336 (_initialize_somread): Declare.
13337
13338 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13339
13340 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13341 Cast return_address to 64bits.
13342
13343 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13344
13345 * printcmd.c: Remove define of function output_command.
13346 * tracepoint.c: Remove extern of function output_command.
13347 * valprint.h: (output_command): New extern.
13348
13349 2013-01-07 Tom Tromey <tromey@redhat.com>
13350
13351 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13352 Remove.
13353 (objc_language_defn): Use c_printchar, c_printstr,
13354 c_emit_char.
13355
13356 2013-01-07 Tom Tromey <tromey@redhat.com>
13357
13358 PR cli/7719:
13359 * NEWS: Update.
13360 * ada-valprint.c (printstr, print_field_values): Remove
13361 "inspect_it" code.
13362 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13363 code.
13364 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13365 code.
13366 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13367 * main.c (captured_main): Remove "epoch" argument.
13368 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13369 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13370 * p-valprint.c (pascal_object_print_value_fields): Remove
13371 "inspect_it" code.
13372 * printcmd.c (print_command_1): Remove 'inspect' argument.
13373 (print_command, call_command): Update.
13374 (inspect_command): Remove.
13375 (_initialize_printcmd): Make "inspect" an alias for "print".
13376 * top.c (epoch_interface): Remove.
13377 * top.h (epoch_interface): Remove.
13378 * valprint.c (user_print_options): Update.
13379 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13380 * valprint.h (struct value_print_options) <inspect_it>: Remove
13381 field.
13382
13383 2013-01-04 Tom Tromey <tromey@redhat.com>
13384
13385 * valprint.h (read_string): Add 'extern'.
13386
13387 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13388
13389 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13390 used to decide whether to define darwin_read_dyld_info or not.
13391
13392 2013-01-03 Pierre Muller <muller@sourceware.org>
13393
13394 * main.c (relocate_gdb_directory): Avoid calling stat function
13395 if DIR is empty.
13396
13397 2013-01-03 Yao Qi <yao@codesourcery.com>
13398
13399 * psymtab.c (fixup_psymbol_section): Update declaration.
13400 (fixup_psymbol_section): Remove code returning value.
13401
13402 2013-01-03 Yao Qi <yao@codesourcery.com>
13403
13404 * symtab.h: Remove some out of date comments.
13405 (enum exception_event_kind): Move it ...
13406 * breakpoint.c: ... here.
13407
13408 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13409
13410 PR gdb/14405
13411 * darwin-nat.c (darwin_read_dyld_info): Only build if
13412 TASK_DYLD_INFO_COUNT is defined.
13413 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13414 TASK_DYLD_INFO_COUNT is defined.
13415
13416 2013-01-02 Tom Tromey <tromey@redhat.com>
13417
13418 * symfile.h (struct ecoff_debug_hack): Remove.
13419 * objfiles.c: Don't include mdebugread.h.
13420
13421 2013-01-02 Tom Tromey <tromey@redhat.com>
13422
13423 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13424 * configure.ac: Check for Mach-O support in BFD. Update
13425 CONFIG_OBS.
13426 * configure: Rebuild.
13427
13428 2013-01-02 Tom Tromey <tromey@redhat.com>
13429
13430 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13431 * configure.ac: Use GDB_AC_CHECK_BFD.
13432 * configure: Rebuild.
13433
13434 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13435
13436 * MAINTAINERS: Update my email.
13437
13438 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13439
13440 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13441
13442 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13443
13444 * rs6000-nat.c (bss_data_overlap): New function.
13445 (vmap_symtab): Use it to adjust the .bss section's offset.
13446
13447 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13448
13449 Update year range in copyright notice of all files.
13450
13451 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13452
13453 * top.c (print_gdb_version): Update copyright year.
13454
13455 For older changes see ChangeLog-2012.
13456 \f
13457 Local Variables:
13458 mode: change-log
13459 left-margin: 8
13460 fill-column: 74
13461 version-control: never
13462 coding: utf-8
13463 End: