Implement SystemTap SDT probe support for AArch64
[binutils-gdb.git] / gdb / ChangeLog
1 2013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 PR tdep/15653
4 * NEWS: Mention SystemTap SDT probe support for AArch64 GNU/Linux.
5 * aarch64-linux-tdep.c: Include necessary headers for parsing of
6 SystemTap SDT probes.
7 (aarch64_stap_is_single_operand): New function.
8 (aarch64_stap_parse_special_token): Likewise.
9 (aarch64_linux_init_abi): Declare SystemTap SDT probe argument
10 prefixes and suffixes. Initialize gdbarch with them.
11
12 2013-12-23 Sterling Augustine <saugustine@google.com>
13
14 * linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
15 isn't found.
16
17 2013-12-23 Sergio Durigan JUnior <sergiodj@redhat.com>
18
19 * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
20 (stap_is_generic_prefix): Delete extra brackets. Reindent.
21 (stap_parse_register_operand): Remove spurious newlines. Simplify
22 code to parse special token.
23 (stap_parse_argument_conditionally): Add gdb_assert.
24 (stap_parse_argument_1): Likewise. Explicitly check for NULL and
25 NUL.
26 (stap_parse_probe_arguments): Likewise.
27 (handle_stap_probe): Likewise. Reindent code.
28 (get_stap_base_address): Explicitly check for NULL.
29 (stap_get_probes): Likewise. Reindent code.
30 (stap_relocate): Explicitly check for 0.
31 (stap_gen_info_probes_table_values): Likewise.
32
33 2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
34
35 * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
36 (nios2_linux_sigreturn_tramp_frame): Remove.
37 (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
38 number.
39 (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
40 (nios2_linux_init_abi): Remove registration of
41 nios2_linux_sigreturn_tramp_frame.
42
43 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
44
45 PR gdb/16305
46 * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
47 adding prefix to opcode.
48
49 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
50
51 PR gdb/16304
52 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
53 address in 64-bit mode.
54
55 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR gdb/16304
58 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
59 address to 64-bit in 64-bit mode.
60
61 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR gdb/16304
64 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
65 system calls.
66 (amd64_x32_linux_record_tdep): New.
67 (amd64_linux_syscall_record_common): New function.
68 (amd64_linux_syscall_record): Call
69 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
70 (amd64_x32_linux_syscall_record): Call
71 amd64_linux_syscall_record_common with
72 amd64_x32_linux_record_tdep.
73 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
74 initialization and tdep->i386_syscall_record setup to ...
75 (amd64_linux_init_abi): Here.
76 (amd64_x32_linux_init_abi): Initialize
77 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
78 amd64_x32_linux_syscall_record.
79 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
80
81 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
82
83 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
84 argument prefixes and suffixes. Initialize gdbarch with them.
85 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
86 * gdbarch.c: Regenerate.
87 * gdbarch.h: Regenerate.
88 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
89 (stap_register_prefix, stap_register_suffix)
90 (stap_register_indirection_prefix)
91 (stap_register_indirection_suffix): Declare as "const char *const
92 *" instead of "const char *". Adjust printing function. Rename
93 all of the variables to the plural.
94 (pstring_list): New function.
95 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
96 argument prefixes and suffixes. Initialize gdbarch with them.
97 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
98 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
99 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
100 * stap-probe.c (stap_is_generic_prefix): New function.
101 (stap_is_register_prefix): Likewise.
102 (stap_is_register_indirection_prefix): Likewise.
103 (stap_is_integer_prefix): Likewise.
104 (stap_generic_check_suffix): Likewise.
105 (stap_check_integer_suffix): Likewise.
106 (stap_check_register_suffix): Likewise.
107 (stap_check_register_indirection_suffix): Likewise.
108 (stap_parse_register_operand): Remove unecessary declarations for
109 variables holding prefix and suffix information. Use the new
110 functions listed above for checking for prefixes and suffixes.
111 (stap_parse_single_operand): Likewise.
112
113 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
114
115 PR breakpoints/16297
116 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
117 when expected syscall is hit.
118
119 2013-12-19 Tom Tromey <tromey@redhat.com>
120
121 * ser-unix.c (hardwire_ops): New global.
122 (_initialize_ser_hardwire): Use it.
123 * ser-tcp.c (tcp_ops): New global.
124 (_initialize_ser_tcp): Use it.
125 * ser-pipe.c (pipe_ops): New global.
126 (_initialize_ser_pipe): Use it.
127 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
128 globals.
129 (_initialize_ser_windows): Use them.
130
131 2013-12-19 Tom Tromey <tromey@redhat.com>
132
133 * serial.c (serial_ops_p): New typedef.
134 (serial_ops_list): Now a VEC.
135 (serial_interface_lookup): Return const. Use VEC_iterate.
136 (serial_add_interface): Make parameter const.
137 (serial_open): Update.
138 (serial_fdopen_ops): Make 'ops' const.
139 (serial_pipe): Update.
140 * ser-tcp.c (_initialize_ser_tcp): Update.
141 * ser-pipe.c (_initialize_ser_pipe): Update.
142 * ser-unix.c (_initialize_ser_hardwire): Update.
143 * ser-mingw.c (_initialize_ser_windows): Update.
144 * ser-go32.c (dos_ops): Now const. Update.
145 * serial.h (struct serial) <ops>: Now const.
146 (struct serial_ops) <next>: Remove.
147 (serial_add_interface): Make parameter const.
148
149 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
150
151 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
152 iov.iov_len with the real length in use.
153
154 2013-12-18 Yao Qi <yao@codesourcery.com>
155
156 * target.h (target_xfer_partial_ftype): New typedef.
157 (target_xfer_partial): Update declaration.
158 * auxv.h (memory_xfer_auxv): Likewise.
159 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
160 * ia64-linux-nat.c (super_xfer_partial): Likewise.
161 * linux-nat.c (super_xfer_partial): Likewise.
162 * procfs.c (procfs_xfer_partial): Likewise.
163 * record-full.c (record_full_beneath_to_xfer_partial):
164 (tmp_to_xfer_partial): Likewise.
165 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
166 * target.c (default_xfer_partial): Likewise.
167 (current_xfer_partial): Likewise.
168 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
169
170 2013-12-18 Yao Qi <yao@codesourcery.com>
171
172 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
173 of sprintf.
174 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
175 (linux_proc_pending_signals): Likewise.
176
177 2013-12-18 Joel Brobecker <brobecker@adacore.com>
178
179 * value.c (value_entirely_unavailable): ARI fix: Move trailing
180 binary operator to the next line. No actual code change.
181
182 2013-12-17 Pedro Alves <palves@redhat.com>
183
184 * frame.h (enum frame_id_stack_status): New enum.
185 (struct frame_id) <stack_addr>: Adjust comment.
186 <stack_addr_p>: Delete field, replaced with ...
187 <stack_status>: ... this new field.
188 (frame_id_build_unavailable_stack): Declare.
189 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
190 (frame_id_build_special): Adjust.
191 (frame_id_build_unavailable_stack): New function.
192 (frame_id_build, frame_id_build_wild): Adjust.
193 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
194 account frames with unavailable stack.
195
196 * amd64-tdep.c (amd64_frame_this_id)
197 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
198 frame_id_build_unavailable_stack.
199 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
200 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
201 (i386_sigtramp_frame_this_id): Likewise.
202
203 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
204
205 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
206 unavailable, use correct bit length.
207 * value.c (struct value): Extend comment on unavailable to
208 indicate that it is bit based.
209 (value_bits_available): New function.
210 (value_bytes_available): Call value_bits_available.
211 (value_entirely_available): Check against the bit length, not byte
212 length.
213 (mark_value_bits_unavailable): New function.
214 (mark_value_bytes_unavailable): Move contents to
215 mark_value_bits_unavailable, call to same.
216 (memcmp_with_bit_offsets): New function.
217 (value_available_contents_bits_eq): New function, takes the
218 functionality from value_available_contents_eq but uses
219 memcmp_with_bit_offsets now, and is bit not byte based.
220 (value_available_contents_eq): Move implementation into
221 value_available_contents_bits_eq, call to same.
222 (value_contents_copy_raw): Work on bits, not bytes.
223 (unpack_value_bits_as_long_1): Check availability in bits, not
224 bytes.
225 * value.h (value_bits_available): Declare new function.
226 (mark_value_bits_unavailable): Declare new function.
227
228 2013-12-16 Pierre Muller <muller@sourceware.org>
229
230 Fix compilation error for cygwin native build.
231 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
232 Call wcstombs.
233
234 2013-12-16 Pedro Alves <palves@redhat.com>
235
236 PR 16329
237 * sol-thread.c (check_for_thread_db): If the target can't run or
238 isn't a core, return without pushing.
239
240 2013-12-15 Joel Brobecker <brobecker@adacore.com>
241
242 Revert the following commit:
243 * solib.c (solib_map_sections): Remove code overwriting
244 SO->SO_NAME with the bfd's filename.
245
246 Make the following changes required after the revert above:
247 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
248 returned bfd to a copy of the synthetic pathname.
249 * solib-darwin.c (darwin_bfd_open): Set the filename of the
250 returned bfd to a copy of PATHNAME.
251
252 2013-12-13 Joel Brobecker <brobecker@adacore.com>
253
254 * ada-lang.c (ada_array_bound_from_type): Move the declaration
255 and assignment of variable "elt_type" inside the else block
256 where it is used. Add two missing check_typedef calls.
257 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
258 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
259
260 2013-12-13 Joel Brobecker <brobecker@adacore.com>
261
262 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
263 between 'struct type *' and 'arr_type'.
264
265 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
266
267 PR python/16113
268 * NEWS (Python Scripting): Add entry for the new feature and the
269 new attribute of gdb.Field objects.
270 * python/py-type.c (gdbpy_is_field): New function
271 (convert_field): Add 'parent_type' attribute to gdb.Field
272 objects.
273 * python/py-value.c (valpy_getitem): Allow subscript value to be
274 a gdb.Field object.
275 (value_has_field): New function
276 (get_field_flag): New function
277 * python/python-internal.h (gdbpy_is_field): Add declaration.
278
279 2013-12-12 Pedro Alves <palves@redhat.com>
280
281 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
282 const, and remove casts.
283
284 2013-12-12 Pedro Alves <palves@redhat.com>
285
286 * cli/cli-cmds.c (source_script_from_stream) Use have_python
287 instead of catching UNSUPPORTED_ERROR.
288 * exceptions.h (UNSUPPORTED_ERROR): Delete.
289 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
290 error if called.
291 * python/python.h (have_python): New static inline function.
292
293 2013-12-11 Doug Evans <dje@google.com>
294
295 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
296 "can't find DWO" warning.
297
298 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
299
300 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
301 to get_probe_argument_count and evaluate_probe_argument.
302 * probe.c (get_probe_argument_count): Adjust declaration to accept
303 frame. Pass frame to probe_ops's get_probe_argument_count.
304 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
305 (probe_safe_evaluate_at_pc): Pass frame to
306 get_probe_argument_count and evaluate_probe_argument.
307 * probe.h (struct probe_ops) <get_probe_argument_count,
308 evaluate_probe_argument>: Adjust declarations to accept frame.
309 (get_probe_argument_count, evaluate_probe_argument): Likewise.
310 * solib-svr4.c (solib_event_probe_action): Get current frame.
311 Pass it to get_probe_argument_count.
312 (svr4_handle_solib_event): Get current frame. Pass it to
313 get_probe_argument_count and evaluate_probe_argument.
314 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
315 accept gdbarch. Do not obtain it from the probe's objfile.
316 (stap_get_probe_argument_count): Adjust declaration to accept
317 frame. Obtain gdbarch from the frame. Call generic
318 can_evaluate_probe_arguments. Pass gdbarch to
319 stap_parse_probe_arguments.
320 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
321 stap_parse_probe_arguments.
322 (stap_evaluate_probe_argument): Adjust declaration to accept
323 frame. Obtain gdbarch from the frame. Pass gdbarch to
324 stap_get_arg.
325 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
326 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
327 get_probe_argument_count and evaluate_probe_argument.
328
329 2013-12-10 Doug Evans <dje@google.com>
330
331 PR 16286
332 * c-lang.c (c_get_string): Ignore the declared size of the object
333 if a specific length is requested.
334
335 2013-12-10 Doug Evans <dje@google.com>
336
337 * interps.h (interp_exec_p): Delete.
338 * interps.c (interp_exec_p): Delete.
339 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
340 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
341
342 2013-12-10 Yao Qi <yao@codesourcery.com>
343
344 * amd64-tdep.c (amd64_analyze_stack_align): Call
345 target_read_code instead of target_read_memory.
346 (amd64_analyze_prologue): Call read_code_unsigned_integer
347 instead of read_memory_unsigned_integer. Call read_code
348 instead of read_memory.
349 (amd64_skip_xmm_prologue): Likewise.
350
351 2013-12-10 Yao Qi <yao@codesourcery.com>
352
353 * corefile.c (read_code): New function.
354 (read_code_integer): New function.
355 (read_code_unsigned_integer): New function.
356 * gdbcore.h (read_code): Declare.
357 (read_code_integer): Declare.
358 (read_code_unsigned_integer): Declare.
359 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
360 of target_read_memory. Call read_code_unsigned_integer instead
361 of read_memory_unsigned_integer.
362 (i386_analyze_struct_return): Likewise.
363 (i386_skip_probe): Likewise.
364 (i386_analyze_stack_align): Likewise.
365 (i386_match_pattern): Likewise.
366 (i386_skip_noop): Likewise.
367 (i386_analyze_frame_setup): Likewise.
368 (i386_analyze_register_saves): Likewise.
369 (i386_skip_prologue): Likewise.
370 (i386_skip_main_prologue): Likewise.
371 (i386_frame_cache_1): Likewise.
372
373 2013-12-10 Yao Qi <yao@codesourcery.com>
374
375 * infrun.c: Include "target-dcache.h".
376 (prepare_for_detach): Call target_dcache_invalidate.
377 (wait_for_inferior): Likewise.
378 (fetch_inferior_event): Likewise.
379 (infrun_thread_stop_requested_callback): Likewise. Set
380 overlay_cache_invalid to 1.
381
382 2013-12-10 Joel Brobecker <brobecker@adacore.com>
383
384 * symtab.c (symbol_find_demangled_name): Add handling of
385 Ada symbols.
386
387 2013-12-10 Joel Brobecker <brobecker@adacore.com>
388
389 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
390 * NEWS: Expand the entry documenting the new -exec-run --start
391 option to mention the corresponding new entry in the output of
392 "-list-features".
393
394 2013-12-10 Joel Brobecker <brobecker@adacore.com>
395
396 * windows-nat.c (handle_load_dll): Add comments.
397 (windows_ensure_ntdll_loaded): New function.
398 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
399 Add FIXME comment.
400
401 2013-12-08 Joel Brobecker <brobecker@adacore.com>
402
403 GDB 7.6.2 released.
404
405 2013-12-08 Yao Qi <yao@codesourcery.com>
406
407 * stack.c (frame_info): Initialize variable caller_pc.
408
409 2013-12-06 Pedro Alves <palves@redhat.com>
410
411 * frame.c (enum cached_copy_status): New enum.
412 (struct frame_info) <prev_pc.p>: Change type to enum
413 cached_copy_status.
414 (fprint_frame): Handle not saved and unavailable prev_pc values.
415 (frame_unwind_pc_if_available): Delete and merge contents into ...
416 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
417 to use enum cached_copy_status.
418 (frame_unwind_caller_pc_if_available): Delete.
419 (create_new_frame): Adjust.
420 * frame.h (frame_unwind_caller_pc_if_available): Delete
421 declaration.
422 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
423 frame_unwind_caller_pc_if_available, and handle
424 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
425 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
426 (val_print_not_saved): New function.
427 * valprint.h (val_print_not_saved): Declare.
428
429 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
430 Pedro Alves <palves@redhat.com>
431
432 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
433 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
434 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
435 * spu-tdep.c (spu_software_single_step): Throw
436 OPTIMIZED_OUT_ERROR.
437 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
438
439 2013-12-06 Tom Tromey <tromey@redhat.com>
440
441 * objfiles.c (free_objfile): Update comment.
442
443 2013-12-06 Tom Tromey <tromey@redhat.com>
444
445 * objfiles.h (objfile_to_front): Remove.
446 * objfiles.c (objfile_to_front): Remove.
447
448 2013-12-06 Tom Tromey <tromey@redhat.com>
449
450 * minsyms.c (get_symbol_leading_char): Remove unnecessary
451 declaration.
452
453 2013-12-06 Tom Tromey <tromey@redhat.com>
454
455 * psympriv.h (struct partial_symtab) <user>: Move earlier.
456
457 2013-12-06 Tom Tromey <tromey@redhat.com>
458
459 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
460 (list_command): Likewise.
461
462 2013-12-06 Tom Tromey <tromey@redhat.com>
463
464 * psymtab.c (allocate_psymtab): Put the filename in the filename
465 bcache.
466
467 2013-12-06 Tom Tromey <tromey@redhat.com>
468
469 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
470 * symtab.h (struct symtab) <dirname>: Now const.
471
472 2013-12-06 Tom Tromey <tromey@redhat.com>
473
474 * symfile.c (allocate_symtab): Remove cast.
475 * symtab.h (struct symtab) <filename>: Now const.
476
477 2013-12-06 Tom Tromey <tromey@redhat.com>
478
479 * break-catch-throw.c (fetch_probe_arguments): Use
480 get_probe_argument_count and evaluate_probe_argument.
481 * elfread.c (elf_get_probe_argument_count)
482 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
483 (elf_compile_to_ax): Remove.
484 (elf_probe_fns): Update.
485 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
486 (evaluate_probe_argument): Call method on probe, not via sym
487 functions.
488 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
489 evaluate_probe_argument.
490 (compile_probe_arg): Use get_probe_argument_count. Call method on
491 probe, not via sym functions.
492 * symfile-debug.c (debug_sym_get_probe_argument_count)
493 (debug_can_evaluate_probe_arguments)
494 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
495 Remove.
496 (debug_sym_probe_fns): Remove.
497 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
498 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
499 sym_compile_to_ax>: Remove fields.
500
501 2013-12-06 Pierre Muller <muller@sourceware.org>
502
503 Fix completion for pascal language.
504 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
505 (exp : field_exp name COMPLETE): New rule.
506 (exp : SIZEOF): Set correct current_type.
507 (last_was_structop): Remove static variable.
508 (yylex): Remove saw_structop local variable.
509 Adapt code to removal of variables above.
510
511 2013-12-06 Joel Brobecker <brobecker@adacore.com>
512
513 * frame.c (get_prev_frame_1): Delete variable "this_id".
514 Replace its use by a call to get_frame_id.
515
516 2013-12-05 Anthony Green <green@moxielogic.com>
517
518 * moxie-tdep.c (moxie_software_single_step): New function.
519 (INST2OFFSET): New helper macro.
520 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
521 (moxie_process_readu): Move this up in the file.
522
523 2013-12-05 Doug Evans <xdje42@gmail.com>
524
525 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
526
527 2013-12-05 Joel Brobecker <brobecker@adacore.com>
528 Tristan Gingold <gingold@adacore.com>
529
530 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
531 Accept version 2. Ignore operations using opcode 6.
532
533 2013-12-05 Joel Brobecker <brobecker@adacore.com>
534
535 * ada-lex.l (find_dot_all): Fix coding style violations.
536
537 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
538
539 * NEWS: Add section for Intel(R) Architecture Instructions
540 Extesions mentioning MPX.
541
542 2013-12-03 Joel Brobecker <brobecker@adacore.com>
543
544 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
545
546 2013-12-03 Joel Brobecker <brobecker@adacore.com>
547
548 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
549 when parse_exp_1 threw an error. Add comment.
550
551 2013-12-03 Joel Brobecker <brobecker@adacore.com>
552
553 * NEWS: Mention "-list-features" in the entry documenting
554 the support for the "--language" option.
555
556 2013-12-03 Tom Tromey <tromey@redhat.com>
557 Jan Kratochvil <jan.kratochvil@redhat.com>
558 Doug Evans <dje@google.com>
559 Samuel Bronson <naesten@gmail.com>
560
561 Bring back gdb-add-index as a contrib script.
562 * contrib/gdb-add-index.sh: New file.
563 * NEWS: Note the addition.
564
565 2013-12-03 Samuel Bronson <naesten@gmail.com>
566
567 * MAINTAINERS (Write After Approval): Add myself to the list.
568
569 2013-12-03 Joel Brobecker <brobecker@adacore.com>
570
571 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
572
573 2013-12-03 Joel Brobecker <brobecker@adacore.com>
574
575 * mi/mi-main.c: Remove trailing spaces throughout.
576
577 2013-12-03 Pedro Alves <palves@redhat.com>
578 Joel Brobecker <brobecker@adacore.com>
579
580 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
581 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
582 of a regular error when the GDB/MI command does not exist.
583 * mi/mi-main.c (mi_cmd_list_features): Add
584 "undefined-command-error-code".
585 (mi_print_exception): Print an "undefined-command"
586 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
587 * NEWS: Add entry documenting the new "code" variable in
588 "^error" result records.
589
590 2013-12-03 Joel Brobecker <brobecker@adacore.com>
591
592 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
593 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
594 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
595 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
596 field to output of "-list-features".
597
598 * NEWS: Add entry for new -info-gdb-mi-command.
599
600 2013-12-02 Doug Evans <dje@google.com>
601 Jan Kratochvil <jan.kratochvil@redhat.com>
602
603 * objfiles.c (allocate_objfile): Save original_name as an absolute
604 path.
605 * objfiles.h (struct objfile): Expand comment on original_name.
606 * source.c (openp): Call gdb_abspath.
607 * utils.c (gdb_abspath): New function.
608 * utils.h (gdb_abspath): Declare.
609
610 2013-12-02 Pedro Alves <palves@redhat.com>
611
612 * dcache.c (dcache_read_line): Use target_read_raw_memory.
613 * target.c (target_read_raw_memory): New function.
614 (target_read_stack, target_write_memory, target_write_raw_memory):
615 Update comment.
616 (target_read_code): Add comment.
617 * target.h (target_read_raw_memory): Declare.
618
619 2013-12-02 Pedro Alves <palves@redhat.com>
620
621 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
622 unconditionally.
623
624 2013-12-02 Pedro Alves <pedro@codesourcery.com>
625 Maciej W. Rozycki <macro@codesourcery.com>
626
627 * remote.c (putpkt_for_catch_errors): Remove function.
628 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
629 gracefully.
630
631 2013-12-02 Pedro Alves <palves@redhat.com>
632
633 PR remote/15974
634 * remote-notif.c (handle_notification): Return early if no
635 notification is found.
636
637 2013-12-02 Joel Brobecker <brobecker@adacore.com>
638
639 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
640 preprocessor check.
641
642 2013-12-02 Joel Brobecker <brobecker@adacore.com>
643
644 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
645
646 2013-12-02 Joel Brobecker <brobecker@adacore.com>
647
648 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
649 * ctf.c (ctf_start): Remove obsolete comment.
650
651 2013-12-02 Joel Brobecker <brobecker@adacore.com>
652
653 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
654
655 2013-11-30 Doug Evans <xdje42@gmail.com>
656
657 * auto-load.h (script_language): New members name, auto_load_enabled.
658 Add missing comments on struct members.
659 (auto_load_objfile_script): Delete.
660 * auto-load.c: #include "cli/cli-cmds.h".
661 (auto_load_gdb_scripts_enabled): New function.
662 (script_language_gdb): Update, add new members.
663 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
664 and call to maybe_add_script moved to caller.
665 (auto_load_objfile_script_1): Auto-load safe-checking and
666 call to maybe_add_script moved here.
667 (auto_load_objfile_script): Make static. Early exit if support for
668 scripting language hasn't been compiled in, or auto-loading has been
669 disabled.
670 (source_section_scripts): Argument "source_name" renamed to
671 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
672 with section_name. Skip loading script if support for scripting
673 language hasn't been compiled in, or auto-loading has been disabled.
674 Call language->source_script_for_objfile instead of calling
675 source_python_script_for_objfile directly.
676 (load_auto_scripts_for_objfile): Update.
677 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
678 (gdbpy_load_auto_script_for_objfile): Delete.
679 (auto_load_python_scripts_enabled): New function.
680 (script_language_python): Update, add new members.
681 (gdbpy_script_language_defn): New function.
682 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
683 (gdbpy_script_language_defn): Declare.
684
685 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
686 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
687 (source_section_scripts): Moved here from py-auto-load.c.
688 (auto_load_section_scripts): Ditto.
689 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
690 auto-load.c, renamed AUTO_SECTION_NAME.
691 (source_section_scripts, auto_load_section_scripts): Moved to
692 auto-load.c.
693
694 2013-11-30 Yao Qi <yao@codesourcery.com>
695
696 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
697
698 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
699
700 * gdbarch.sh: Remove include of "gdb_string.h", replace by
701 <string.h>.
702
703 2013-11-29 Doug Evans <xdje42@gmail.com>
704
705 * python/py-auto-load.c (source_section_scripts): Move comment to
706 more relevant location.
707
708 Whitespace cleanup.
709 * python/py-breakpoint.c: Remove trailing whitespace.
710 * python/py-cmd.c: Ditto.
711 * python/py-evts.c: Ditto.
712 * python/py-finishbreakpoint.c: Ditto.
713 * python/py-frame.c: Ditto.
714 * python/py-function.c: Ditto.
715 * python/py-inferior.c: Ditto.
716 * python/py-infthread.c: Ditto.
717 * python/py-param.c: Ditto.
718 * python/py-prettyprint.c: Ditto.
719 * python/py-symbol.c: Ditto.
720 * python/py-type.c: Ditto.
721 * python/py-utils.c: Ditto.
722 * python/py-value.c: Ditto.
723 * python/python-internal.h: Ditto.
724 * python/python.c: Ditto.
725
726 2013-11-29 Pedro Alves <palves@redhat.com>
727
728 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
729
730 2013-11-29 Pedro Alves <palves@redhat.com>
731
732 * breakpoint.c (build_target_condition_list): Release previous
733 conditions.
734 (build_target_command_list): Release previous commands.
735 (bp_location_dtor): Release target conditions and commands.
736 * remote.c (remote_add_target_side_condition): Don't release
737 conditions.
738 (remote_add_target_side_commands): Don't release commands.
739
740 2013-11-29 Yao Qi <yao@codesourcery.com>
741 Pedro Alves <palves@redhat.com>
742
743 * dcache.c (dcache_read_line): Use current_target.beneath
744 instead of &current_target.
745 * target.c (memory_xfer_partial_1): Factor code out to ...
746 (raw_memory_xfer_partial): ... it. New function.
747 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
748 is TARGET_OBJECT_RAW_MEMORY.
749
750 2013-11-28 Doug Evans <xdje42@gmail.com>
751
752 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
753 breakpoint_object. All uses updated.
754 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
755 breakpoint_object. All uses updated.
756 * python.c (*): All uses of breakpoint_object updated.
757 * python.h (*): All uses of breakpoint_object updated.
758 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
759 * python/py-finishbreakpoint.c (*): Ditto.
760
761 2013-11-28 Doug Evans <xdje42@gmail.com>
762
763 * configure.ac: Add comments delineating libpython and libmcheck.
764 * configure: Regenerate.
765
766 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
767 Pedro Alves <palves@redhat.com>
768
769 * valprint.c (value_check_printable): If the value is entirely
770 unavailable, print a single "<unavailable>" instead of printing
771 all subfields.
772
773 2013-11-28 Pedro Alves <palves@redhat.com>
774
775 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
776 Add "set debug frame" output.
777 (frame_stop_reason_symbol_string): New function.
778
779 2013-11-28 Pedro Alves <palves@redhat.com>
780
781 * frame-unwind.c (default_frame_unwind_stop_reason): Return
782 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
783 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
784
785 2013-11-28 Pedro Alves <palves@redhat.com>
786
787 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
788 set the unwind stop reason to UNWIND_OUTERMOST, not
789 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
790
791 2013-11-28 Pedro Alves <palves@redhat.com>
792
793 * frame.c (frame_unwind_register): Say the register was "not
794 saved" instead of "optimized out".
795
796 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
797
798 PR 16152
799 * configure: Rebuild.
800 * configure.ac: Tighten cygwin detection check.
801
802 2013-11-27 Pedro Alves <palves@redhat.com>
803
804 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
805 register in the previous frame's arch.
806
807 2013-11-27 Pedro Alves <palves@redhat.com>
808
809 * frame-unwind.c (frame_unwind_got_optimized): Return
810 an lval_register value instead of a not_lval value.
811
812 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
813
814 * frame.c: Include "valprint.h".
815 (frame_unwind_register_value): Use value_optimized_out.
816 * value.c (value_fetch_lazy): Likewise.
817
818 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
819
820 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
821
822 2013-11-26 Tom Tromey <tromey@redhat.com>
823
824 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
825 2013-11-22.
826
827 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
828
829 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
830 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
831 (HAS_MPX): New macro.
832 (HAS_AVX): New macro.
833 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
834
835 2013-11-25 Keith Seitz <keiths@redhat.com>
836
837 PR c++/14819
838 * c-exp.y (classify_inner_name): If no matching symbol was
839 found, try looking up the token as a base class.
840 Likewise if a constructor was found.
841 * cp-namespace.c (find_type_baseclass_by_name): New function.
842 * cp-support.h (find_type_baseclass_by_name): Declare.
843 * valops.c (value_struct_elt_for_reference): If we get
844 a non-static field, try to get a value based on the
845 current instance, if any.
846
847 2013-11-24 Yao Qi <yao@codesourcery.com>
848
849 * disasm.c (dis_asm_read_memory): Call target_read_code
850 instead of target_read_memory.
851
852 2013-11-24 Yao Qi <yao@codesourcery.com>
853
854 * NEWS: Add note on new "set code-cache" option.
855 * target-dcache.c (code_cache_enabled_1): New variable.
856 (code_cache_enabled): New variable.
857 (show_code_cache, set_code_cache): New function.
858 (code_cache_enabled_p): New function.
859 (_initialize_target_dcache): Register command.
860 * target-dcache.h (code_cache_enabled_p): Declare.
861 * target.c (memory_xfer_partial_1):Handle
862 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
863 (target_read_code): New function.
864 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
865 New.
866 (target_read_code): Declare.
867
868 2013-11-24 Yao Qi <yao@codesourcery.com>
869
870 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
871 (stack_cache_enabled_1): ... this. New variable.
872 (stack_cache_enabled_p): Rename to ...
873 (stack_cache_enabled): ... this. New variable.
874 (set_stack_cache_enabled_p): Rename to ...
875 (set_stack_cache): ... this. Update caller.
876 (show_stack_cache_enabled_p): Rename to ...
877 (show_stack_cache): ... this. Update caller.
878 (stack_cache_enabled): Rename to ...
879 (stack_cache_enabled_p): ... this. Update caller.
880 (_initialize_target_dcache): Replace "data cache" with
881 "target memory cache".
882 * target-dcache.h (stack_cache_enabled): Remove declaration.
883 (stack_cache_enabled_p): Add declaration.
884
885 2013-11-23 Doug Evans <xdje42@gmail.com>
886
887 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
888 superfluous.
889
890 2013-11-23 Doug Evans <xdje42@gmail.com>
891
892 * python/py-frame.c (frapy_block): Fix error message text.
893
894 2013-11-23 Doug Evans <xdje42@gmail.com>
895
896 * cli/cli-script.c (multi_line_command_p): New function.
897 (recurse_read_control_structure, read_command_lines_1): Call it.
898 (execute_control_command): Consistently have a blank line between
899 each case.
900
901 2013-11-22 Sterling Augustine <saugustine@google.com>
902
903 PR gdb/16196:
904 * valprint.c (read_string): Set new variable fetchlen based on
905 fetchlimit and size. Use it in call to partial_memory_read.
906 Update comment.
907
908 2013-11-22 Tom Tromey <tromey@redhat.com>
909
910 PR backtrace/16155:
911 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
912 the return address column is unspecified.
913
914 2013-11-22 Tom Tromey <tromey@redhat.com>
915 Pedro Alves <palves@redhat.com>
916
917 PR backtrace/16155
918 * value.c (value_fetch_lazy): Internal error if
919 get_frame_register_value returns the same register.
920
921 2013-11-22 Pedro Alves <palves@redhat.com>
922 Tom Tromey <tromey@redhat.com>
923
924 * frame.c (frame_stash_add): Now returns whether a frame with the
925 same ID was already known.
926 (compute_frame_id): New function, factored out from get_frame_id.
927 (get_frame_id): No longer lazilly compute the frame id here.
928 (get_prev_frame_if_no_cycle): New function. Detects wider stack
929 cycles.
930 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
931 and checking for stack cycles here.
932
933 2013-11-22 Pedro Alves <palves@redhat.com>
934
935 PR 16155
936 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
937 this frame and the new previous frame, not between this frame and
938 the next frame.
939
940 2013-11-22 Pedro Alves <palves@redhat.com>
941
942 PR 16155
943 * dwarf2-frame.c (struct dwarf2_frame_cache)
944 <checked_tailcall_bottom, entry_cfa_sp_offset,
945 entry_cfa_sp_offset_p>: New fields.
946 (dwarf2_frame_cache): Adjust to use the new cache fields instead
947 of locals. Don't call dwarf2_tailcall_sniffer_first here.
948 (dwarf2_frame_prev_register): Call it here, but only once.
949
950 2013-11-21 Doug Evans <xdje42@gmail.com>
951
952 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
953 (type_equality_entry): Move here from python/py-type.c.
954 (type_equality_entry_d): Ditto.
955 (compare_maybe_null_strings, check_types_equal): Ditto.
956 (check_types_worklist, types_deeply_equal): Ditto.
957 * gdbtypes.h (types_deeply_equal): Declare.
958 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
959 (typy_richcompare): Update.
960
961 2013-11-20 Joel Brobecker <brobecker@adacore.com>
962
963 * python/py-value.c (is_intlike): Delete.
964 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
965 by use of is_integral_type.
966 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
967 by use of is_integral_type and check for TYPE_CODE_PTR.
968
969 2013-11-20 Tom Tromey <tromey@redhat.com>
970
971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
972 strerror module.
973 * gnulib/aclocal.m4: Update.
974 * gnulib/config.in: Update.
975 * gnulib/configure: Update.
976 * gnulib/import/Makefile.am: Update.
977 * gnulib/import/Makefile.in: Update.
978 * gnulib/import/errno.in.h: Remove.
979 * gnulib/import/intprops.h: Remove.
980 * gnulib/import/m4/errno_h.m4: Remove.
981 * gnulib/import/m4/gnulib-cache.m4: Update.
982 * gnulib/import/m4/gnulib-comp.m4: Update.
983 * gnulib/import/m4/strerror.m4: Remove.
984 * gnulib/import/m4/sys_socket_h.m4: Remove.
985 * gnulib/import/strerror-override.c: Remove.
986 * gnulib/import/strerror-override.h: Remove.
987 * gnulib/import/strerror.c: Remove.
988 * gnulib/update-gnulib.sh: Update.
989
990 2013-11-20 Yao Qi <yao@codesourcery.com>
991
992 * target-dcache.c (target_dcache_get_or_init): Call
993 set_address_space_data if 'dcache' is NULL.
994
995 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
996
997 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
998
999 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1000
1001 * python/lib/gdb/command/bound_register.py: New file.
1002 * data-directory/Makefile.in: Copy bond_register.py to the right path
1003 to be initialized at gdb startup.
1004
1005 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1006
1007 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
1008 Add MPX registers.
1009 (amd64_linux_read_description): Add initialization for MPX and
1010 AVX independently.
1011 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
1012 (amd64_linux_gregset_reg_offset): Add MPX registers.
1013 (amd64_linux_core_read_description): Add initialization for MPX
1014 registers.
1015 (_initialize_amd64_linux_tdep): Initialize MPX targets.
1016 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
1017 register on the list.
1018 (tdesc_amd64_mpx_linux) Add new target for MPX.
1019 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
1020 (amd64_mpx_names): MPX register names.
1021 (amd64_init_abi): Add MPX register while initializing the ABI.
1022 (_initialize_amd64_tdep): Initialize MPX targets.
1023 * amd64-tdep.h (amd64_regnum): Add MPX registers.
1024 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
1025
1026 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1027
1028 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
1029 registers on the range of registers to be read from
1030 xsave buffer.
1031 (i386_linux_read_description): Add case for MPX.
1032 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
1033 (i386_linux_gregset_reg_offset): Add MPX registers.
1034 (i386_linux_core_read_description): Initialize also MPX.
1035 (_initialize_i386_linux_tdep): Add mpx initialization.
1036 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
1037 mpx_register_names.
1038 (i386_regnum): Add MPX registers.
1039 (I386_MPX_NUM_REGS): New macro.
1040 (i386_bnd_regnum_p): New function.
1041 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
1042 number of registers to be the number of BNDSTATUS.
1043 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
1044 * i386-tdep.c: Include features/i386/i386-mpx.c.
1045 (i386_mpx_names): Add MPX register names array.
1046 (i386_bnd_names): Add bnd pseudo register names array.
1047 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1048 registers.
1049 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1050 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1051 registers.
1052 (i386_bnd_type): New function.
1053 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1054 register types.
1055 (i386_pseudo_register_read_into_value): Add bnd case.
1056 (i386_pseudo_register_write): Add bnd pseudo registers.
1057 (i386_register_reggroup_p): Add MPX register to the group all.
1058 (i386_validate_tdesc_p): Add MPX to the target description
1059 validation.
1060 (i386_pseudo_register_name): Add bnd pseudo registers.
1061 (i386_gdbarch_init): Add MPX for architecture initialization.
1062 (_initia_initialize_i386_tdep): Add mpx initialization.
1063 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1064 XSAVE buffer.
1065 (XSAVE_MPX_ADDR): New macro.
1066 (i387_supply_xsave): Add MPX case.
1067 (i387_collect_xsave): Add MPX case.
1068 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1069 (I387_BNDCFGU_REGNUM): New macro.
1070 (I387_NUM_MPX_REGS): New macro.
1071 (I387_NUM_BND_REGS): New macro.
1072 (I387_NUM_MPX_CTRL_REGS): New macro.
1073 (I387_MPXEND_REGNUM): New macro.
1074 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1075 (I386_XSTATE_BNDCFG): Likewise.
1076 (I386_XSTATE_MPX_MASK): Likewise.
1077 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1078 (I386_XSTATE_BNDREGS_SIZE): New macro.
1079 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1080 (I386_XSTATE_SIZE): Adapt for MPX.
1081 (I386_XSTATE_MAX_SIZE): Likewise.
1082
1083 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1084
1085 * features/i386/Makefile: Adapts for using MPX registers.
1086 * features/i386/32bit-mpx.xml: New file.
1087 * features/i386/64bit-mpx.xml: Likewise.
1088 * features/i386/amd64-mpx-linux.c: Likewise.
1089 * features/i386/amd64-mpx-linux.xml: Likewise.
1090 * features/i386/amd64-mpx.c: Likewise.
1091 * features/i386/amd64-mpx.xml: Likewise.
1092 * features/i386/i386-mpx-linux.c: Likewise.
1093 * features/i386/i386-mpx-linux.xml: Likewise.
1094 * features/i386/i386-mpx.c: Likewise.
1095 * features/i386/i386-mpx.xml: Likewise.
1096 * regformats/i386/amd64-mpx-linux.dat: New file.
1097 * regformats/i386/amd64-mpx.dat: Likewise.
1098 * regformats/i386/i386-mpx-linux.dat: Likewise.
1099 * regformats/i386/i386-mpx.dat: Likewise.
1100
1101 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1102
1103 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1104 Modified logic of creating a bitfield to be in sync with
1105 tdesc_gdb_type.
1106
1107 2013-11-20 Will Newton <will.newton@linaro.org>
1108
1109 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1110 error message.
1111
1112 2013-11-20 Yao Qi <yao@codesourcery.com>
1113
1114 * progspace.h (struct address_space_data): Declare.
1115 * target-dcache.c: Include "progspace.h".
1116 (target_dache): Remove.
1117 (target_dcache_aspace_key): New.
1118 (target_dcache_cleanup): New function.
1119 (target_dcache_init_p): Get data through
1120 target_dcache_aspace_key.
1121 (target_dcache_invalidate): Likewise.
1122 (target_dcache_get): Likewise.
1123 (target_dcache_get_or_init): Likewise.
1124 (_initialize_target_dcache): Initialize
1125 target_dcache_aspace_key.
1126
1127 2013-11-20 Yao Qi <yao@codesourcery.com>
1128
1129 * progspace.c (struct address_space): Update comments.
1130 <REGISTRY_FIELDS>: New fields.
1131 DEFINE_REGISTRY for address_space.
1132 (new_address_space): Call address_space_alloc_data.
1133 (free_address_space): Call address_space_free_data.
1134 * progspace.h: Use DECLARE_REGISTRY.
1135
1136 2013-11-20 Yao Qi <yao@codesourcery.com>
1137
1138 * Makefile.in (SFILES):Add target-dcache.c.
1139 (HFILES_NO_SRCDIR): Add target-dcache.h.
1140 (COMMON_OBS): Add target-dcache.o.
1141 * dcache.c: Remove inclusion to "target.h". Include
1142 "target-dcache.h".
1143 * memattr.c: Include "target-dcache.h".
1144 * top.c: Likewise.
1145 * tracepoint.c: Likewise.
1146 * target.c: (stack_cache_enabled_p_1): Move to
1147 target-dcache.c.
1148 (stack_cache_enabled_p): Likewise.
1149 (set_stack_cache_enabled_p): Likewise.
1150 (show_stack_cache_enabled_p): Likewise.
1151 (target_dcache, target_dcache_init_p): Likewise.
1152 (target_dcache_invalidate): Likewise.
1153 (target_dcache_get, target_dcache_get_or_init): Likewise.
1154 (memory_xfer_partial_1): Call function stack_cache_enabled.
1155 (initialize_target): Move code to target-dcache.c.
1156 * target.h (target_dcache_invalidate): Move to
1157 target-dcache.h.
1158 (target_dcache_get): Likewise.
1159 * target-dcache.c: New.
1160 * target-dcache.h: New.
1161
1162 2013-11-20 Yao Qi <yao@codesourcery.com>
1163
1164 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1165 it is initialized.
1166
1167 2013-11-20 Yao Qi <yao@codesourcery.com>
1168
1169 * dcache.c (last_cache): Remove.
1170 (dcache_free, dcache_init): Update.
1171 (dcache_update):
1172 (dcache_print_line): Add parameter 'dcache'. Replace
1173 'target_dcache' with 'dcache'.
1174 (dcache_info): Move code to dcache_info_1. Call
1175 'dcache_info_1'.
1176 (dcache_info_1): New function.
1177 (set_dcache_size): Call target_dcache_invalidate.
1178 (set_dcache_line_size): Call target_dcache_invalidate.
1179 * target.c (target_dcache_init_p): New function.
1180 (target_dcache_invalidate): Check target_dcache_init_p first.
1181 (target_dcache_get, target_dcache_get_or_init): New function.
1182 (memory_xfer_partial_1): Adjust.
1183 (initialize_target): Don't initialize 'target_dcache'.
1184 * target.h (struct dcache_struct): Declare.
1185 (target_dcache_get): Declare.
1186
1187 2013-11-19 Yao Qi <yao@codesourcery.com>
1188
1189 * varobj.c (varobj_get_type): Fix typo.
1190
1191 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1192
1193 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1194
1195 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1196
1197 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1198 "stat.h".
1199
1200 2013-11-18 Tom Tromey <tromey@redhat.com>
1201
1202 * common/gdb_stat.h: Remove.
1203 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1204 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1205 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1206 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1207 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1208 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1209 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1210 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1211 * exec.c: Use sys/stat.h, not gdb_stat.h.
1212 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1213 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1214 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1215 * jit.c: Use sys/stat.h, not gdb_stat.h.
1216 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1217 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1218 * main.c: Use sys/stat.h, not gdb_stat.h.
1219 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1220 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1221 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1222 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1223 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1224 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1225 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1226 * remote.c: Use sys/stat.h, not gdb_stat.h.
1227 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1228 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1229 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1230 * source.c: Use sys/stat.h, not gdb_stat.h.
1231 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1232 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1233 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1234 * top.c: Use sys/stat.h, not gdb_stat.h.
1235 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1236
1237 2013-11-18 Tom Tromey <tromey@redhat.com>
1238
1239 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1240 sys_stat.
1241 * gnulib/aclocal.m4: Update.
1242 * gnulib/config.in: Update.
1243 * gnulib/configure: Update.
1244 * gnulib/import/Makefile.am: Update.
1245 * gnulib/import/Makefile.in: Update.
1246 * gnulib/import/m4/gnulib-cache.m4: Update.
1247 * gnulib/import/m4/gnulib-comp.m4: Update.
1248 * gnulib/import/m4/sys_stat_h.m4: New.
1249 * gnulib/import/m4/time_h.m4: New.
1250 * gnulib/import/sys_stat.in.h: New.
1251 * gnulib/import/time.in.h: New.
1252
1253 2013-11-18 Tom Tromey <tromey@redhat.com>
1254
1255 * configure: Rebuild.
1256 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1257
1258 2013-11-18 Tom Tromey <tromey@redhat.com>
1259
1260 * configure: Rebuild.
1261 * configure.ac: Don't check for unistd.h.
1262
1263 2013-11-18 Tom Tromey <tromey@redhat.com>
1264
1265 * configure: Rebuild.
1266 * configure.ac: Don't check for stdlib.h
1267 * defs.h: Include stdlib.h unconditionally.
1268
1269 2013-11-18 Tom Tromey <tromey@redhat.com>
1270
1271 * config.in: Rebuild.
1272 * configure: Rebuild.
1273 * configure.ac: Don't check for stddef.h.
1274 * defs.h: Unconditionally include stddef.h. Remove duplicate
1275 inclusion.
1276
1277 2013-11-18 Tom Tromey <tromey@redhat.com>
1278
1279 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1280 * common/gdb_dirent.h: Remove.
1281 * common/filestuff.c: Use dirent.h.
1282 * common/linux-osdata.c: Use dirent.h.
1283 (NAMELEN): Define.
1284 * config.in: Rebuild.
1285 * configure: Rebuild.
1286 * configure.ac: Don't use AC_HEADER_DIRENT.
1287 * linux-fork.c: Use dirent.h
1288 * linux-nat.c: Use dirent.h.
1289 * nto-procfs.c: Use dirent.h.
1290 * procfs.c: Use dirent.h.
1291
1292 2013-11-18 Tom Tromey <tromey@redhat.com>
1293
1294 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1295 * gnulib/aclocal.m4: Update.
1296 * gnulib/config.in: Update.
1297 * gnulib/configure: Update.
1298 * gnulib/import/Makefile.am: Update.
1299 * gnulib/import/Makefile.in: Update.
1300 * gnulib/import/dirent.in.h: New.
1301 * gnulib/import/m4/dirent_h.m4: New.
1302 * gnulib/import/m4/gnulib-cache.m4: Update.
1303 * gnulib/import/m4/gnulib-comp.m4: Update.
1304
1305 2013-11-18 Tom Tromey <tromey@redhat.com>
1306
1307 * configure: Rebuild.
1308 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1309 strings.h.
1310
1311 2013-11-18 Tom Tromey <tromey@redhat.com>
1312
1313 * common/gdb_string.h: Remove.
1314 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1315 * ada-exp.y: Use string.h, not gdb_string.h.
1316 * ada-lang.c: Use string.h, not gdb_string.h.
1317 * ada-lex.l: Use string.h, not gdb_string.h.
1318 * ada-typeprint.c: Use string.h, not gdb_string.h.
1319 * ada-valprint.c: Use string.h, not gdb_string.h.
1320 * aix-thread.c: Use string.h, not gdb_string.h.
1321 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1322 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1323 * alpha-nat.c: Use string.h, not gdb_string.h.
1324 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1325 * alpha-tdep.c: Use string.h, not gdb_string.h.
1326 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1327 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1328 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1329 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1330 * amd64-nat.c: Use string.h, not gdb_string.h.
1331 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1332 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1333 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1334 * arch-utils.c: Use string.h, not gdb_string.h.
1335 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1336 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1337 * arm-tdep.c: Use string.h, not gdb_string.h.
1338 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1339 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1340 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1341 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1342 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1343 * avr-tdep.c: Use string.h, not gdb_string.h.
1344 * ax-gdb.c: Use string.h, not gdb_string.h.
1345 * ax-general.c: Use string.h, not gdb_string.h.
1346 * bcache.c: Use string.h, not gdb_string.h.
1347 * bfin-tdep.c: Use string.h, not gdb_string.h.
1348 * breakpoint.c: Use string.h, not gdb_string.h.
1349 * build-id.c: Use string.h, not gdb_string.h.
1350 * buildsym.c: Use string.h, not gdb_string.h.
1351 * c-exp.y: Use string.h, not gdb_string.h.
1352 * c-lang.c: Use string.h, not gdb_string.h.
1353 * c-typeprint.c: Use string.h, not gdb_string.h.
1354 * c-valprint.c: Use string.h, not gdb_string.h.
1355 * charset.c: Use string.h, not gdb_string.h.
1356 * cli-out.c: Use string.h, not gdb_string.h.
1357 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1358 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1359 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1360 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1361 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1362 * cli/cli-script.c: Use string.h, not gdb_string.h.
1363 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1364 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1365 * coffread.c: Use string.h, not gdb_string.h.
1366 * common/common-utils.c: Use string.h, not gdb_string.h.
1367 * common/filestuff.c: Use string.h, not gdb_string.h.
1368 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1369 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1370 * common/signals.c: Use string.h, not gdb_string.h.
1371 * common/vec.h: Use string.h, not gdb_string.h.
1372 * core-regset.c: Use string.h, not gdb_string.h.
1373 * corefile.c: Use string.h, not gdb_string.h.
1374 * corelow.c: Use string.h, not gdb_string.h.
1375 * cp-abi.c: Use string.h, not gdb_string.h.
1376 * cp-support.c: Use string.h, not gdb_string.h.
1377 * cp-valprint.c: Use string.h, not gdb_string.h.
1378 * cris-tdep.c: Use string.h, not gdb_string.h.
1379 * d-lang.c: Use string.h, not gdb_string.h.
1380 * dbxread.c: Use string.h, not gdb_string.h.
1381 * dcache.c: Use string.h, not gdb_string.h.
1382 * demangle.c: Use string.h, not gdb_string.h.
1383 * dicos-tdep.c: Use string.h, not gdb_string.h.
1384 * disasm.c: Use string.h, not gdb_string.h.
1385 * doublest.c: Use string.h, not gdb_string.h.
1386 * dsrec.c: Use string.h, not gdb_string.h.
1387 * dummy-frame.c: Use string.h, not gdb_string.h.
1388 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1389 * dwarf2loc.c: Use string.h, not gdb_string.h.
1390 * dwarf2read.c: Use string.h, not gdb_string.h.
1391 * elfread.c: Use string.h, not gdb_string.h.
1392 * environ.c: Use string.h, not gdb_string.h.
1393 * eval.c: Use string.h, not gdb_string.h.
1394 * event-loop.c: Use string.h, not gdb_string.h.
1395 * exceptions.c: Use string.h, not gdb_string.h.
1396 * exec.c: Use string.h, not gdb_string.h.
1397 * expprint.c: Use string.h, not gdb_string.h.
1398 * f-exp.y: Use string.h, not gdb_string.h.
1399 * f-lang.c: Use string.h, not gdb_string.h.
1400 * f-typeprint.c: Use string.h, not gdb_string.h.
1401 * f-valprint.c: Use string.h, not gdb_string.h.
1402 * fbsd-nat.c: Use string.h, not gdb_string.h.
1403 * findcmd.c: Use string.h, not gdb_string.h.
1404 * findvar.c: Use string.h, not gdb_string.h.
1405 * fork-child.c: Use string.h, not gdb_string.h.
1406 * frame.c: Use string.h, not gdb_string.h.
1407 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1408 * frv-tdep.c: Use string.h, not gdb_string.h.
1409 * gdb.c: Use string.h, not gdb_string.h.
1410 * gdb_bfd.c: Use string.h, not gdb_string.h.
1411 * gdbarch.c: Use string.h, not gdb_string.h.
1412 * gdbtypes.c: Use string.h, not gdb_string.h.
1413 * gnu-nat.c: Use string.h, not gdb_string.h.
1414 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1415 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1416 * go-exp.y: Use string.h, not gdb_string.h.
1417 * go-lang.c: Use string.h, not gdb_string.h.
1418 * go32-nat.c: Use string.h, not gdb_string.h.
1419 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1420 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1421 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1422 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1423 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1424 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1425 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1426 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1427 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1428 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1429 * i386-tdep.c: Use string.h, not gdb_string.h.
1430 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1431 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1432 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1433 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1434 * i387-tdep.c: Use string.h, not gdb_string.h.
1435 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1436 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1437 * inf-child.c: Use string.h, not gdb_string.h.
1438 * inf-ptrace.c: Use string.h, not gdb_string.h.
1439 * inf-ttrace.c: Use string.h, not gdb_string.h.
1440 * infcall.c: Use string.h, not gdb_string.h.
1441 * infcmd.c: Use string.h, not gdb_string.h.
1442 * inflow.c: Use string.h, not gdb_string.h.
1443 * infrun.c: Use string.h, not gdb_string.h.
1444 * interps.c: Use string.h, not gdb_string.h.
1445 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1446 * irix5-nat.c: Use string.h, not gdb_string.h.
1447 * jv-exp.y: Use string.h, not gdb_string.h.
1448 * jv-lang.c: Use string.h, not gdb_string.h.
1449 * jv-typeprint.c: Use string.h, not gdb_string.h.
1450 * jv-valprint.c: Use string.h, not gdb_string.h.
1451 * language.c: Use string.h, not gdb_string.h.
1452 * linux-fork.c: Use string.h, not gdb_string.h.
1453 * linux-nat.c: Use string.h, not gdb_string.h.
1454 * lm32-tdep.c: Use string.h, not gdb_string.h.
1455 * m2-exp.y: Use string.h, not gdb_string.h.
1456 * m2-typeprint.c: Use string.h, not gdb_string.h.
1457 * m32c-tdep.c: Use string.h, not gdb_string.h.
1458 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1459 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1460 * m32r-rom.c: Use string.h, not gdb_string.h.
1461 * m32r-tdep.c: Use string.h, not gdb_string.h.
1462 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1463 * m68k-tdep.c: Use string.h, not gdb_string.h.
1464 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1465 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1466 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1467 * m88k-tdep.c: Use string.h, not gdb_string.h.
1468 * macrocmd.c: Use string.h, not gdb_string.h.
1469 * main.c: Use string.h, not gdb_string.h.
1470 * mdebugread.c: Use string.h, not gdb_string.h.
1471 * mem-break.c: Use string.h, not gdb_string.h.
1472 * memattr.c: Use string.h, not gdb_string.h.
1473 * memory-map.c: Use string.h, not gdb_string.h.
1474 * mep-tdep.c: Use string.h, not gdb_string.h.
1475 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1476 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1477 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1478 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1479 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1480 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1481 * mi/mi-console.c: Use string.h, not gdb_string.h.
1482 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1483 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1484 * mi/mi-main.c: Use string.h, not gdb_string.h.
1485 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1486 * microblaze-rom.c: Use string.h, not gdb_string.h.
1487 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1488 * mingw-hdep.c: Use string.h, not gdb_string.h.
1489 * minidebug.c: Use string.h, not gdb_string.h.
1490 * minsyms.c: Use string.h, not gdb_string.h.
1491 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1492 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1493 * mips-tdep.c: Use string.h, not gdb_string.h.
1494 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1495 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1496 * mipsread.c: Use string.h, not gdb_string.h.
1497 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1498 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1499 * monitor.c: Use string.h, not gdb_string.h.
1500 * moxie-tdep.c: Use string.h, not gdb_string.h.
1501 * mt-tdep.c: Use string.h, not gdb_string.h.
1502 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1503 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1504 * nto-procfs.c: Use string.h, not gdb_string.h.
1505 * nto-tdep.c: Use string.h, not gdb_string.h.
1506 * objc-lang.c: Use string.h, not gdb_string.h.
1507 * objfiles.c: Use string.h, not gdb_string.h.
1508 * opencl-lang.c: Use string.h, not gdb_string.h.
1509 * osabi.c: Use string.h, not gdb_string.h.
1510 * osdata.c: Use string.h, not gdb_string.h.
1511 * p-exp.y: Use string.h, not gdb_string.h.
1512 * p-lang.c: Use string.h, not gdb_string.h.
1513 * p-typeprint.c: Use string.h, not gdb_string.h.
1514 * parse.c: Use string.h, not gdb_string.h.
1515 * posix-hdep.c: Use string.h, not gdb_string.h.
1516 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1517 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1518 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1519 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1520 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1521 * printcmd.c: Use string.h, not gdb_string.h.
1522 * procfs.c: Use string.h, not gdb_string.h.
1523 * prologue-value.c: Use string.h, not gdb_string.h.
1524 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1525 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1526 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1527 * regcache.c: Use string.h, not gdb_string.h.
1528 * registry.c: Use string.h, not gdb_string.h.
1529 * remote-fileio.c: Use string.h, not gdb_string.h.
1530 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1531 * remote-mips.c: Use string.h, not gdb_string.h.
1532 * remote-sim.c: Use string.h, not gdb_string.h.
1533 * remote.c: Use string.h, not gdb_string.h.
1534 * reverse.c: Use string.h, not gdb_string.h.
1535 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1536 * ser-base.c: Use string.h, not gdb_string.h.
1537 * ser-go32.c: Use string.h, not gdb_string.h.
1538 * ser-mingw.c: Use string.h, not gdb_string.h.
1539 * ser-pipe.c: Use string.h, not gdb_string.h.
1540 * ser-tcp.c: Use string.h, not gdb_string.h.
1541 * ser-unix.c: Use string.h, not gdb_string.h.
1542 * serial.c: Use string.h, not gdb_string.h.
1543 * sh-tdep.c: Use string.h, not gdb_string.h.
1544 * sh64-tdep.c: Use string.h, not gdb_string.h.
1545 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1546 * skip.c: Use string.h, not gdb_string.h.
1547 * sol-thread.c: Use string.h, not gdb_string.h.
1548 * solib-dsbt.c: Use string.h, not gdb_string.h.
1549 * solib-frv.c: Use string.h, not gdb_string.h.
1550 * solib-osf.c: Use string.h, not gdb_string.h.
1551 * solib-spu.c: Use string.h, not gdb_string.h.
1552 * solib-target.c: Use string.h, not gdb_string.h.
1553 * solib.c: Use string.h, not gdb_string.h.
1554 * somread.c: Use string.h, not gdb_string.h.
1555 * source.c: Use string.h, not gdb_string.h.
1556 * sparc-nat.c: Use string.h, not gdb_string.h.
1557 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1558 * sparc-tdep.c: Use string.h, not gdb_string.h.
1559 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1560 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1561 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1562 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1563 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1564 * spu-multiarch.c: Use string.h, not gdb_string.h.
1565 * spu-tdep.c: Use string.h, not gdb_string.h.
1566 * stabsread.c: Use string.h, not gdb_string.h.
1567 * stack.c: Use string.h, not gdb_string.h.
1568 * std-regs.c: Use string.h, not gdb_string.h.
1569 * symfile.c: Use string.h, not gdb_string.h.
1570 * symmisc.c: Use string.h, not gdb_string.h.
1571 * symtab.c: Use string.h, not gdb_string.h.
1572 * target.c: Use string.h, not gdb_string.h.
1573 * thread.c: Use string.h, not gdb_string.h.
1574 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1575 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1576 * top.c: Use string.h, not gdb_string.h.
1577 * tracepoint.c: Use string.h, not gdb_string.h.
1578 * tui/tui-command.c: Use string.h, not gdb_string.h.
1579 * tui/tui-data.c: Use string.h, not gdb_string.h.
1580 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1581 * tui/tui-file.c: Use string.h, not gdb_string.h.
1582 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1583 * tui/tui-out.c: Use string.h, not gdb_string.h.
1584 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1585 * tui/tui-source.c: Use string.h, not gdb_string.h.
1586 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1587 * tui/tui-win.c: Use string.h, not gdb_string.h.
1588 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1589 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1590 * typeprint.c: Use string.h, not gdb_string.h.
1591 * ui-file.c: Use string.h, not gdb_string.h.
1592 * ui-out.c: Use string.h, not gdb_string.h.
1593 * user-regs.c: Use string.h, not gdb_string.h.
1594 * utils.c: Use string.h, not gdb_string.h.
1595 * v850-tdep.c: Use string.h, not gdb_string.h.
1596 * valarith.c: Use string.h, not gdb_string.h.
1597 * valops.c: Use string.h, not gdb_string.h.
1598 * valprint.c: Use string.h, not gdb_string.h.
1599 * value.c: Use string.h, not gdb_string.h.
1600 * varobj.c: Use string.h, not gdb_string.h.
1601 * vax-tdep.c: Use string.h, not gdb_string.h.
1602 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1603 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1604 * windows-nat.c: Use string.h, not gdb_string.h.
1605 * xcoffread.c: Use string.h, not gdb_string.h.
1606 * xml-support.c: Use string.h, not gdb_string.h.
1607 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1608 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1609
1610 2013-11-18 Tom Tromey <tromey@redhat.com>
1611
1612 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1613 and strstr.
1614 * gnulib/aclocal.m4: Update.
1615 * gnulib/config.in: Update.
1616 * gnulib/configure: Update.
1617 * gnulib/import/Makefile.am: Update.
1618 * gnulib/import/Makefile.in: Update.
1619 * gnulib/import/errno.in.h: New.
1620 * gnulib/import/intprops.h: New.
1621 * gnulib/import/m4/errno_h.m4: New.
1622 * gnulib/import/m4/gnulib-cache.m4: Update.
1623 * gnulib/import/m4/gnulib-comp.m4: Update.
1624 * gnulib/import/m4/strerror.m4: New.
1625 * gnulib/import/m4/strstr.m4: New.
1626 * gnulib/import/m4/sys_socket_h.m4: New.
1627 * gnulib/import/strerror-override.c: New.
1628 * gnulib/import/strerror-override.h: New.
1629 * gnulib/import/strerror.c: New.
1630 * gnulib/import/strstr.c: New.
1631
1632 2013-11-18 Tom Tromey <tromey@redhat.com>
1633
1634 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1635 multiple lines.
1636
1637 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1638
1639 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1640 * sparc-tdep.h: And its prototype.
1641
1642 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1643 function.
1644 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1645
1646 2013-11-18 Pedro Alves <palves@redhat.com>
1647
1648 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1649 use unpack_pointer.
1650
1651 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1652
1653 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1654 to -list-features output.
1655
1656 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1657
1658 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1659 <read_addr_from_reg>: Renames "read_reg".
1660 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1661 Adjust comment.
1662 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1663 Use read_addr_from_reg in place of read_reg.
1664 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1665 in place of read_reg.
1666 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1667 dwarf_expr_read_reg.
1668 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1669 with dwarf_expr_read_addr_from_reg.
1670 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1671 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1672 needs_frame_read_addr_from_reg.
1673
1674 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1675
1676 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1677
1678 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1679
1680 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1681 NULL.
1682
1683 2013-11-15 Tom Tromey <tromey@redhat.com>
1684
1685 PR c++/16117:
1686 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1687 (classify_name): Likewise. Prefer a field of "this" over a
1688 filename.
1689 (classify_inner_name, yylex): Update.
1690
1691 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1692
1693 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1694 Extend the documentation a bit.
1695 <get_reg_value>: New field.
1696 * dwarf2loc.c (dwarf_expr_get_reg_value)
1697 (needs_frame_get_reg_value): New functions.
1698 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1699 callback.
1700 * dwarf2-frame.c (get_reg_value): New function.
1701 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1702 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1703 Use new callback to compute result_val.
1704
1705 2013-11-15 Alan Modra <amodra@gmail.com>
1706
1707 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1708 (ppc64_desc_entry_point): ..this. Update comments here and at
1709 call points.
1710 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1711 ppc64_standard_linkage3): Update comments.
1712 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1713 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1714 patterns.
1715 (ppc64_standard_linkage4_target): New function.
1716 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1717 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1718 nop match. Fix comment wrap.
1719
1720 2013-11-14 Pedro Alves <palves@redhat.com>
1721
1722 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1723 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1724
1725 2013-11-14 Pedro Alves <palves@redhat.com>
1726
1727 * infrun.c (struct execution_control_state)
1728 <stepped_after_stopped_by_watchpoint>: New field.
1729 (get_inferior_stop_soon): New function.
1730 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1731 moved to struct execution_control_state -- adjust. Use
1732 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1733 new function.
1734 (handle_signal_stop): New function, factored out from
1735 handle_inferior_event.
1736
1737 2013-11-14 Pedro Alves <palves@redhat.com>
1738
1739 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1740 return a boolean.
1741 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1742 boolean.
1743 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1744 Adjust to return a boolean.
1745 * breakpoint.h (enum bpstat_signal_value): Delete.
1746 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1747 (bpstat_explains_signal): Likewise.
1748 * infrun.c (handle_inferior_event) <random signal checks>:
1749 bpstat_explains_signal now returns a boolean - adjust. No longer
1750 consider hiding signals.
1751
1752 2013-11-14 Pedro Alves <palves@redhat.com>
1753
1754 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1755 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1756 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1757 BPSTAT_SIGNAL_HIDE.
1758 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1759 instead of BPSTAT_SIGNAL_HIDE.
1760 * infrun.c (handle_inferior_event): Rework random signal checks.
1761
1762 2013-11-14 Pedro Alves <palves@redhat.com>
1763
1764 * infrun.c (struct execution_control_state): Remove
1765 'random_signal' field.
1766 (handle_syscall_event): Use bpstat_causes_stop instead of
1767 bpstat_explains_signal. Don't set ecs->random_signal.
1768 (handle_inferior_event): New 'random_signal' local.
1769 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1770 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1771 bpstat_explains_signal. Don't set ecs->random_signal.
1772 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1773 ecs->random_signal.
1774
1775 2013-11-14 Pedro Alves <palves@redhat.com>
1776
1777 * infrun.c (handle_inferior_event): Move comment from the
1778 function's body to the function's description, adjusted.
1779
1780 2013-11-14 Pedro Alves <palves@redhat.com>
1781
1782 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1783 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1784 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1785 case.
1786
1787 2013-11-14 Tom Tromey <tromey@redhat.com>
1788
1789 * python/py-linetable.c (ltpy_has_line)
1790 (ltpy_get_all_source_lines): Fix loop termination condition.
1791
1792 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1793
1794 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1795 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1796 PARSE->LANGUAGE during command execution, if set.
1797 * mi/mi-parse.c: Add "language.h" #include.
1798 (mi_parse): Add parsing of "--language" command option.
1799
1800 * NEWS: Add entry mentioning the new "--language" command option.
1801
1802 2013-11-14 Pedro Alves <palves@redhat.com>
1803 Joel Brobecker <brobecker@adacore.com>
1804
1805 * cli/cli-utils.h (extract_arg_const): Add declaration.
1806 * cli/cli-utils.c (extract_arg_const): New function.
1807 (extract_arg): Reimplement using extract_arg_const.
1808
1809 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1810
1811 * language.h: Add "symtab.h" #include.
1812
1813 2013-11-13 Doug Evans <xdje42@gmail.com>
1814
1815 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1816 specific breakpoints, don't evaluate breakpoint condition if
1817 different thread.
1818
1819 2013-11-13 Keith Seitz <keiths@redhat.com>
1820
1821 PR c++/7935
1822 PR c++/10541
1823 * cp-support.c (insepct_type): Add support for substituting
1824 namespace aliases, too.
1825 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1826 for DW_TAG_imported_declaration.
1827 (add_partial_symbol): Likewise.
1828 (process_die): Handle namespace aliases with
1829 read_namespace_alias.
1830 (die_needs_namespace): Add DW_TAG_imported_declaration.
1831 (read_namespace_alias): New function.
1832 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1833 (new_symbol_full): Handle DW_TAG_imported_declaration.
1834
1835 2013-11-13 Keith Seitz <keiths@redhat.com>
1836
1837 * p-exp.y (uptok): Make first parameter const.
1838 (yylex): Make `tokstart' and `tokptr' const.
1839 Don't copy the lexer input to a temporary buffer.
1840 Make `p' const.
1841 Remove const workaround for parse_escape.
1842 Create a temporary buffer for a convenience variable instead
1843 of doing in-place modification of the input.
1844 If a match is found with a different case from the input,
1845 do not change the input at all.
1846 Use `tmp' to construct the resultant stoken instead of
1847 `tokstart'.
1848
1849 2013-11-13 Doug Evans <xdje42@gmail.com>
1850
1851 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1852
1853 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1854
1855 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1856 entry with "ada-exceptions".
1857
1858 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1859
1860 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1861 after re-initialization of OBJFILE's obstack.
1862
1863 2013-11-12 Doug Evans <xdje42@gmail.com>
1864
1865 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1866 bs->stop != 0 on entry. Update function comment. Simplify early
1867 exit for frame mismatch. Reindent rest of function.
1868
1869 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1870
1871 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1872 NULL.
1873
1874 2013-11-12 Doug Evans <dje@google.com>
1875
1876 Work around gold/15646.
1877 * dwarf2read.c (read_index_from_section): Update comment.
1878 (struct dw2_symtab_iterator): New member global_seen.
1879 (dw2_symtab_iter_init): Initialize it.
1880 (dw2_symtab_iter_next): Skip duplicate global symbols.
1881 (dw2_expand_symtabs_matching): Ditto.
1882
1883 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1884
1885 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1886 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1887 command.
1888 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1889 (mi_cmd_info_ada_exceptions): New function.
1890 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1891
1892 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1893
1894 * ada-lang.h: #include "vec.h".
1895 (struct ada_exc_info): New.
1896 (ada_exc_info): New typedef.
1897 (DEF_VEC_O(ada_exc_info)): New vector.
1898 (ada_exceptions_list): Add declaration.
1899 * ada-lang.c (ada_is_exception_sym)
1900 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1901 (sort_remove_dups_ada_exceptions_list)
1902 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1903 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1904 (ada_exceptions_list_1, ada_exceptions_list)
1905 (info_exceptions_command): New function.
1906 (_initialize_ada_language): Add "info exception" command.
1907
1908 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1909
1910 PR python/15629
1911 * NEWS: Add linetable feature.
1912 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1913 * python/py-linetable.c: New file.
1914 * python/py-symtab.c (stpy_get_linetable): New function.
1915 * python/python-internal.h (symtab_to_linetable_object): Declare.
1916 (gdbpy_initialize_linetable): Ditto.
1917 * python/python.c (_initialize_python): Call
1918 gdbpy_initialize_linetable.
1919
1920 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1923 the documentation of fields "except_string" and "condition".
1924 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1925 CONDITION on the heap before passing it to
1926 create_ada_exception_catchpoint.
1927 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1928 CONDITION.
1929
1930 2013-11-11 Tom Tromey <tromey@redhat.com>
1931
1932 * config.in, configure: Rebuild.
1933 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1934
1935 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1936
1937 * remote-sim.c (gdbsim_detach): Break declaration into
1938 shorter lines. No code change.
1939
1940 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1941
1942 * remote-sim.c (gdbsim_detach): Fix prototype.
1943
1944 2013-11-08 Doug Evans <dje@google.com>
1945
1946 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1947 (create_debug_types_hash_table): Only print debugging messages for
1948 each TU if dwarf2-read >= 2.
1949 (process_queue): Ditto.
1950 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1951 Update doc string.
1952
1953 2013-11-08 Tom Tromey <tromey@redhat.com>
1954
1955 * configure: Rebuild.
1956 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1957
1958 2013-11-08 Tom Tromey <tromey@redhat.com>
1959
1960 * configure, config.in: Rebuild.
1961 * configure.ac: Remove unused configury.
1962
1963 2013-11-08 Tom Tromey <tromey@redhat.com>
1964
1965 * m32c-tdep.c: Use gdb_string.h.
1966
1967 2013-11-08 Tom Tromey <tromey@redhat.com>
1968
1969 * configure, config.in: Rebuild.
1970 * configure.ac: Remove all link.h-related checks.
1971
1972 2013-11-08 Tom Tromey <tromey@redhat.com>
1973
1974 * acinclude.m4: Include common.m4.
1975 * common/common.m4: New file.
1976 * configure, config.in: Rebuild.
1977 * configure.ac: Use GDB_AC_COMMON.
1978
1979 2013-11-08 Doug Evans <dje@google.com>
1980
1981 * NEWS: Mention that "set debug symtab-create" now accepts a
1982 verbosity level.
1983 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1984 to set the symtab's primary flag.
1985 * jit.c (finalize_symtab): Ditto.
1986 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1987 * symfile.c (allocate_symtab): Only print debugging messages for
1988 symtab_create_debug levels 2 and higher.
1989 * symtab.c (symtab_create_debug): Change type to unsigned int.
1990 (set_symtab_primary): New function.
1991 (_initialize_symtab): Change "set debug symtab-create" to a
1992 zuinteger option.
1993 * symtab.h (set_symtab_primary): Declare.
1994 (symtab_create_debug): Update decl.
1995
1996 2013-11-08 Tom Tromey <tromey@redhat.com>
1997
1998 * aix-thread.c (aix_thread_detach): Update.
1999 * corelow.c (core_detach): Update.
2000 * darwin-nat.c (darwin_detach): Update.
2001 * dec-thread.c (dec_thread_detach): Update.
2002 * gnu-nat.c (gnu_detach): Update.
2003 * go32-nat.c (go32_detach): Update.
2004 * inf-ptrace.c (inf_ptrace_detach): Update.
2005 * inf-ttrace.c (inf_ttrace_detach): Update.
2006 * linux-fork.c (linux_fork_detach): Update.
2007 * linux-fork.h (linux_fork_detach): Update.
2008 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
2009 local for const-correctness.
2010 * linux-thread-db.c (thread_db_detach): Update.
2011 * monitor.c (monitor_detach): Update.
2012 * nto-procfs.c (procfs_detach): Update.
2013 * procfs.c (procfs_detach): Update.
2014 * record.c (record_detach): Update.
2015 * record.h (record_detach): Update.
2016 * remote-m32r-sdi.c (m32r_detach): Update.
2017 * remote-mips.c (mips_detach): Update.
2018 * remote-sim.c (gdbsim_detach): Update.
2019 * remote.c (remote_detach_1, remote_detach)
2020 (extended_remote_detach): Update.
2021 * sol-thread.c (sol_thread_detach): Update.
2022 * target.c (target_detach): Make "args" const.
2023 (init_dummy_target): Update.
2024 * target.h (struct target_ops) <to_detach>: Make argument const.
2025 (target_detach): Likewise.
2026 * windows-nat.c (windows_detach): Update.
2027
2028 2013-11-07 Doug Evans <dje@google.com>
2029
2030 PR 11786
2031 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
2032 and align fields for PT_GNU_RELRO segments.
2033
2034 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2035
2036 PR python/15747
2037 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
2038
2039 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2040
2041 * NEWS: Document Python temporary breakpoint support.
2042 * python/py-breakpoint.c (bppy_get_temporary): New function.
2043 (bppy_init): New keyword: temporary. Parse it and set breakpoint
2044 to temporary if True.
2045
2046 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2047
2048 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2049 removed to allow analyzing unconditional branch instructions
2050 with PC-relative offsets of zero.
2051
2052 2013-11-07 Yao Qi <yao@codesourcery.com>
2053
2054 * mi/mi-cmd-var.c: Include "language.h".
2055 (mi_cmd_var_info_expression): Get language name from
2056 language_defn.
2057 * varobj.c (varobj_language_string): Remove.
2058 (variable_language): Remove declaration.
2059 (languages): Remove.
2060 (varobj_get_language): Change the type of return value.
2061 (variable_language): Remove.
2062 * varobj.h (enum varobj_languages): Remove.
2063 (varobj_language_string): Remove declaration.
2064 (varobj_get_language): Update declaration.
2065
2066 2013-11-07 Yao Qi <yao@codesourcery.com>
2067
2068 * language.h (struct language_defn) <la_natural_name>: New
2069 field.
2070 * ada-lang.c (ada_language_defn): Initialize field
2071 'la_natural_name'.
2072 * c-lang.c (c_language_defn): Likewise.
2073 (cplus_language_defn, asm_language_defn): Likewise.
2074 * d-lang.c (d_language_defn): Likewise.
2075 * f-lang.c (f_language_defn): Likewise.
2076 * go-lang.c (go_language_defn): Likewise.
2077 * jv-lang.c (java_language_defn): Likewise.
2078 * language.c (unknown_language_defn ): Likewise.
2079 (auto_language_defn): Likewise.
2080 * m2-lang.c (m2_language_defn): Likewise.
2081 * objc-lang.c (objc_language_defn): Likewise.
2082 * opencl-lang.c (opencl_language_defn): Likewise.
2083 * p-lang.c (pascal_language_defn): Likewise.
2084
2085 2013-11-07 Yao Qi <yao@codesourcery.com>
2086
2087 * language.c (language_str): Return const char *.
2088 (add_language): Add const to 'language_names'
2089 * language.h (struct language_defn) <la_name>: Add const.
2090 (language_str: Update declaration.
2091
2092 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * s390-linux-nat.c (s390_read_description): Consider the TE field
2095 in the HWCAP for determining 'have_regset_tdb'.
2096
2097 2013-11-06 Will Newton <will.newton@linaro.org>
2098
2099 PR gdb/12866
2100 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2101 values. (read_partial_die): Likewise.
2102
2103 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2104
2105 PR cli/16122
2106 * top.c (command_line_input): Unify interactivity tests to use
2107 input_from_terminal_p.
2108 * event-top.c (command_line_handler): Likewise.
2109
2110 2013-11-06 Yao Qi <yao@codesourcery.com>
2111
2112 * Makefile.in (check-perf): New target.
2113
2114 2013-11-05 Will Newton <will.newton@linaro.org>
2115
2116 PR gdb/7670
2117 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2118 (arm_print_float_info): Likewise.
2119
2120 2013-11-04 Anton Blanchard <anton@samba.org>
2121
2122 * target.c (memory_xfer_partial): Cap write to 4KB.
2123
2124 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2125
2126 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2127 probe scan even when the arch provides no get_longjmp_target.
2128
2129 2013-10-31 Pedro Alves <palves@redhat.com>
2130
2131 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2132 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2133 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2134 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2135 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2136 <bpstat handling>: If the bpstat chain wants the signal to be
2137 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2138 GDB_SIGNAL_TRAP.
2139
2140 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2141
2142 * breakpoint.c (update_watchpoint): Update error message and add
2143 an additional error message.
2144
2145 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2146
2147 * s390-tdep.h: Rename to...
2148 * s390-linux-tdep.h: ...here.
2149 * s390-tdep.c: Rename to...
2150 * s390-linux-tdep.c: ...here. Adjust #include.
2151 * s390-nat.c: Rename to...
2152 * s390-linux-nat.c: ...here. Adjust #include.
2153 * config/s390/s390.mh: Rename to...
2154 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2155 s390-linux-nat.o.
2156 * configure.host: Reflect host rename "s390" -> "linux".
2157 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2158 * Makefile.in (ALL_TARGET_OBS): Likewise.
2159 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2160 s390-linux-tdep.h.
2161 (ALLDEPFILES): Reflect rename of .c files.
2162
2163 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2164
2165 * s390-nat.c: Whitespace cleanup.
2166 * s390-tdep.c: Likewise.
2167 * s390-tdep.h: Remove empty line at end of file.
2168
2169 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2170
2171 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2172 siginfo_size.
2173
2174 2013-10-29 Tom Tromey <tromey@redhat.com>
2175
2176 * utils.c (reg): Move undefinition...
2177 * gdb_curses.h: ... here. Update comment to mention AIX.
2178
2179 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2180
2181 * exec.h (add_target_sections_of_objfile): New declaration.
2182 * exec.c (add_target_sections_of_objfile): New function.
2183 * symfile.c (add_symbol_file_command): Update current target sections.
2184 (remove_symbol_file_command): New command.
2185 (symfile_free_objfile): New function.
2186 (_initialize_symfile): Register observer for free_objfile events.
2187 * NEWS: Add description of the remove-symbol-file command.
2188 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2189 * objfiles.c (free_objfile): Notify free_objfile.
2190 (is_addr_in_objfile): New function.
2191 * objfiles.h (is_addr_in_objfile): New declaration.
2192 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2193 events instead of solib_unloaded events.
2194 (_initialize_printcmd): Register observer for free_objfile instead
2195 of solib_unloaded notifications.
2196 * solib.c (remove_user_added_objfile): New function.
2197 (_initialize_symfile): Add remove-symbol-file.
2198
2199 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2200
2201 * infcmd.c (default_print_one_register_info): Use val_print to
2202 print all values even optimized out or unavailable ones. Don't
2203 try to print a raw form of optimized out or unavailable values.
2204
2205 2013-10-29 Yao Qi <yao@codesourcery.com>
2206
2207 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2208 parameter 'arg' instead of from program_space_data.
2209 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2210 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2211 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2212 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2213 * inflow.c (inflow_inferior_data_cleanup): Get data from
2214 parameter 'arg' instead of inferior_data.
2215 * registry.h: Add comments.
2216
2217 2013-10-28 Pedro Alves <palves@redhat.com>
2218
2219 * breakpoint.c (watchpoints_triggered)
2220 <!target_stopped_data_address>: Hardcode return 1.
2221
2222 2013-10-28 Pedro Alves <palves@redhat.com>
2223
2224 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2225 level and reindent.
2226
2227 2013-10-28 Pedro Alves <palves@redhat.com>
2228
2229 * infrun.c (process_event_stop_test): New function, factored out
2230 from handle_inferior_event.
2231 (handle_inferior_event): 'process_event_stop_test' is now a
2232 function instead of a goto label -- adjust.
2233
2234 2013-10-28 Pedro Alves <palves@redhat.com>
2235
2236 * infrun.c (handle_inferior_event): Move process_event_stop_test
2237 goto label to the else branch of the ecs->random_signal check,
2238 along with FRAME and GDBARCH re-fetching.
2239
2240 2013-10-28 Pedro Alves <palves@redhat.com>
2241
2242 * infrun.c (switch_back_to_stepped_thread): New function, factored
2243 out from handle_inferior_event.
2244 (handle_inferior_event): Adjust to call
2245 switch_back_to_stepped_thread. Call it also at the tail of the
2246 random signal handling, and return, instead of also handling
2247 random signals just before the stepping tests.
2248
2249 2013-10-28 Pedro Alves <palves@redhat.com>
2250
2251 * infrun.c (clear_stop_func): Delete.
2252 (handle_inferior_event): Don't call clear_stop_func and don't
2253 clear 'ecs->random_signal'.
2254
2255 2013-10-27 Yao Qi <yao@codesourcery.com>
2256
2257 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2258 (varobj_create, varobj_get_path_expr): Update.
2259 (varobj_value_has_mutated, varobj_update): Likewise.
2260 (create_child_with_value, new_root_variable): Likewise.
2261 (number_of_children, name_of_variable): Likewise.
2262 (value_of_child, my_value_of_variable): Likewise.
2263 (varobj_value_is_changeable_p): Likewise.
2264
2265 2013-10-25 Yao Qi <yao@codesourcery.com>
2266
2267 * language.h (struct lang_varobj_ops): Declare.
2268 (struct language_defn) <la_varobj_ops>: New field.
2269 * ada-lang.c: Include "varobj.h"
2270 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2271 ada_varobj_ops.
2272 * c-lang.c: Include "varobj.h"
2273 (c_language_defn): Initialize field 'la_varobj_ops' with
2274 c_varobj_ops.
2275 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2276 cplus_varobj_ops.
2277 (asm_language_defn): Initialize field 'la_varobj_ops' with
2278 default_varobj_ops.
2279 (minimal_language_defn): Likewise.
2280 * d-lang.c (d_language_defn): Likewise.
2281 * f-lang.c (f_language_defn): Likewise.
2282 * go-lang.c (go_language_defn): Likewise.
2283 * m2-lang.c (m2_language_defn): Likewise.
2284 * objc-lang.c (objc_language_defn): Likewise.
2285 * opencl-lang.c (opencl_language_defn): Likewise.
2286 * p-lang.c (pascal_language_defn): Likewise.
2287 * language.c (unknown_language_defn): Likewise.
2288 (auto_language_defn): Likewise.
2289 (local_language_defn): Likewise.
2290 * jv-lang.c (java_language_defn): Initialize field
2291 'la_varobj_ops' with java_varobj_ops.
2292 * varobj.c (varobj_create): Update.
2293 * varobj.h (default_varobj_ops): Define macro.
2294
2295 2013-10-25 Pedro Alves <palves@redhat.com>
2296
2297 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2298 static field value.
2299 (cp_print_static_field): If the value is entirely optimized out,
2300 print <optimized out> here.
2301 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2302 static field value.
2303 * p-valprint.c (pascal_object_print_static_field): If the value is
2304 entirely optimized out, print <optimized out> here.
2305 * valops.c (do_search_struct_field)
2306 (value_struct_elt_for_reference): No longer handle a NULL static
2307 field value.
2308 * value.c (value_static_field): Return an optimized out value
2309 instead of NULL.
2310
2311 2013-10-25 Yao Qi <yao@codesourcery.com>
2312
2313 * remote.c (remote_traceframe_info): Return early if
2314 traceframe is not selected.
2315
2316 2013-10-25 Yao Qi <yao@codesourcery.com>
2317
2318 * tracepoint.c (traceframe_fun): Remove.
2319 (traceframe_sal): Remove.
2320 (set_traceframe_context): Add local variables.
2321
2322 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2323
2324 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2325 and parameter name.
2326
2327 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2328
2329 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2330 failure from register information collection.
2331
2332 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2333
2334 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2335 member.
2336 (linux_corefile_thread_callback): Update accordingly.
2337 (linux_make_corefile_notes): Likewise.
2338
2339 2013-10-24 Pedro Alves <palves@redhat.com>
2340
2341 * NEWS (New options): Mention set/show startup-with-shell.
2342 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2343 instead of 3.
2344 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2345 startup-with-shell'.
2346 (show_startup_with_shell): New function.
2347 (_initialize_fork_child): Register the set/show startup-with-shell
2348 commands.
2349 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2350 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2351 * procfs.c (procfs_init_inferior): Remove comment.
2352 * infcmd.c (startup_with_shell): New global.
2353 * inferior.h (startup_with_shell): Declare global.
2354 (STARTUP_WITH_SHELL): Delete.
2355 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2356
2357 2013-10-23 Pedro Alves <palves@redhat.com>
2358
2359 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2360 * common/signals.c: Include "gdb_assert.h".
2361 (signals): New field 'symbol'.
2362 (SET): Use the 'symbol' parameter.
2363 (gdb_signal_to_symbol_string): New function.
2364 * infrun.c (handle_inferior_event) <random signal>: In debug
2365 output, print the random signal enum as string in addition to its
2366 number.
2367 * target/waitstatus.c (target_waitstatus_to_string): Print the
2368 signal's enum value as string instead of the (POSIX) signal name.
2369
2370 2013-10-23 Gary Benson <gbenson@redhat.com>
2371
2372 PR 16013
2373 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2374 from 32 to 18. Adjusted fscanf format string accordingly.
2375 (Avoids leaving cmd unterminated.)
2376 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2377 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2378 that local_address and remote_address will not overflow.
2379 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2380 leaving dependencies unterminated. Parse size as "%u" to match
2381 definition.
2382
2383 2013-10-22 Pedro Alves <palves@redhat.com>
2384
2385 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2386 set ecs->random signal.
2387
2388 2013-10-22 Pedro Alves <palves@redhat.com>
2389
2390 * infrun.c (keep_going): Update comments.
2391
2392 2013-10-22 Pedro Alves <palves@redhat.com>
2393
2394 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2395 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2396
2397 2013-10-22 Pedro Alves <palves@redhat.com>
2398
2399 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2400 GDB_EXC_BAD_ACCESS.
2401 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2402 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2403 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2404 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2405 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2406 (GDB_SIGNAL_LAST): Change description string.
2407 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2408 Adjust to signal renaming.
2409 * darwin-nat.c (darwin_decode_message): Likewise.
2410
2411 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2412
2413 * MAINTAINERS (Write After Approval): Add myself to the list.
2414
2415 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2416
2417 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2418 forced off, downgrade them to software watchpoints if possible,
2419 and error out if not possible.
2420 (watch_command_1): Move watchpoint type selection closer to
2421 watchpoint creation, and extend the comments.
2422
2423 2013-10-18 Pedro Alves <palves@redhat.com>
2424
2425 PR gdb/16062
2426 * infrun.c (handle_inferior_event): Keep going if we got a random
2427 signal we should not stop for, instead of falling through to the
2428 step tests.
2429
2430 2013-10-18 Yao Qi <yao@codesourcery.com>
2431
2432 * c-varobj.c (cplus_number_of_children): Fix indentation.
2433
2434 2013-10-17 Tom Tromey <tromey@redhat.com>
2435
2436 PR gdb/15995:
2437 * printcmd.c (printcmd): Call gdb_flush.
2438
2439 2013-10-17 Tom Tromey <tromey@redhat.com>
2440
2441 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2442 (elf_locate_sections): Update.
2443
2444 2013-10-17 Yao Qi <yao@codesourcery.com>
2445
2446 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2447 * ada-varobj.c: Remove the include of ada-varobj.h.
2448 (ada_varobj_get_number_of_children): Declare.
2449 (ada_varobj_get_name_of_child): Make it static.
2450 (ada_varobj_get_path_expr_of_child): Likewise.
2451 (ada_varobj_get_value_of_child): Likewise.
2452 (ada_varobj_get_type_of_child): Likewise.
2453 (ada_varobj_get_value_of_array_variable): Likewise.
2454 * ada-varobj.h: Remove.
2455
2456 2013-10-17 Yao Qi <yao@codesourcery.com>
2457
2458 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2459 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2460 * ada-varobj.c: Include "varobj.h".
2461 (ada_number_of_children): New. Moved from varobj.c.
2462 (ada_name_of_variable, ada_name_of_child): Likewise.
2463 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2464 (ada_type_of_child, ada_value_of_variable): Likewise.
2465 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2466 (ada_varobj_ops): New.
2467 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2468 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2469 * gdbtypes.h (get_target_type): Declare.
2470 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2471 "ada-lang.h".
2472 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2473 (ANONYMOUS_UNION_NAME): Likewise.
2474 (get_type, get_value_type, get_target_type): Remove declarations.
2475 (value_get_print_value, varobj_value_get_print_value): Likewise.
2476 (c_number_of_children, c_name_of_variable): Likewise.
2477 (c_name_of_child, c_path_expr_of_child): Likewise.
2478 (c_value_of_child, c_type_of_child): Likewise.
2479 (c_value_of_variable, cplus_number_of_children): Likewise.
2480 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2481 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2482 (cplus_value_of_child, cplus_type_of_child): Likewise.
2483 (cplus_value_of_variable, java_number_of_children): Likewise.
2484 (java_name_of_variable, java_name_of_child): Likewise.
2485 (java_path_expr_of_child, java_value_of_child): Likewise.
2486 (java_type_of_child, java_value_of_variable): Likewise.
2487 (ada_number_of_children, ada_name_of_variable): Likewise.
2488 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2489 (ada_value_of_child, ada_type_of_child): Likewise.
2490 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2491 (ada_value_has_mutated): Likewise.
2492 (struct language_specific): Move it to varobj.h.
2493 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2494 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2495 Callers update.
2496 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2497 Make it extern.
2498 (is_anonymous_child): Move it to c-varobj.c and rename to
2499 varobj_is_anonymous_child. Caller update.
2500 (get_type): Move it to c-varobj.c.
2501 (get_value_type): Rename it varobj_get_value_type. Make it
2502 extern.
2503 (get_target_type): Move it gdbtypes.c.
2504 (varobj_formatted_print_options): New function.
2505 (value_get_print_value): Rename it to
2506 varobj_value_get_print_value and make it extern.
2507 (varobj_value_is_changeable_p): Make it extern.
2508 (adjust_value_for_child_access): Move it to c-varobj.c.
2509 (default_value_is_changeable_p): Rename it to
2510 varobj_default_value_is_changeable_p. Make it extern.
2511 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2512 (c_name_of_child, c_path_expr_of_child): Likewise.
2513 (c_value_of_child, c_type_of_child): Likewise.
2514 (c_value_of_variable, cplus_number_of_children): Likewise.
2515 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2516 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2517 (cplus_value_of_child, cplus_type_of_child): Likewise.
2518 (cplus_value_of_variable): Likewise.
2519 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2520 (java_name_of_child, java_path_expr_of_child): Likewise.
2521 (java_value_of_child, java_type_of_child): Likewise.
2522 (java_value_of_variable): Likewise.
2523 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2524 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2525 (ada_value_of_child, ada_type_of_child): Likewise.
2526 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2527 (ada_value_has_mutated): Likewise.
2528 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2529 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2530 (c_varobj_ops, cplus_varobj_ops): Declare.
2531 (java_varobj_ops, ada_varobj_ops): Declare.
2532 (varobj_default_value_is_changeable_p): Declare.
2533 (varobj_value_is_changeable_p): Declare.
2534 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2535 (varobj_get_path_expr_parent): Declare.
2536 (varobj_value_get_print_value): Declare.
2537 (varobj_formatted_print_options): Declare.
2538 (varobj_restrict_range): Declare.
2539
2540 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2541
2542 * target/waitstatus.h (target_waitkind): Remove spurious
2543 character from the comments.
2544
2545 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2546
2547 * gdbarch.sh (get_longjmp_target): Add method documentation.
2548 * gdbarch.h: Regenerate.
2549
2550 2013-10-16 Tom Tromey <tromey@redhat.com>
2551
2552 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2553 label.
2554
2555 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2556
2557 * gcore.in: Call GDB using the full path to the gcore script.
2558 Error out if the GDB binary is not found.
2559
2560 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2561
2562 PR gdb/16014
2563 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2564 sizeof.
2565
2566 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2567
2568 PR gdb/16042
2569 * target.c (target_disable_btrace): Fix invalid return value for
2570 void function.
2571 (target_teardown_btrace): Likewise.
2572
2573 2013-10-14 Yao Qi <yao@codesourcery.com>
2574
2575 * varobj.c (struct varobj): Move most of the fields to
2576 varobj.h.
2577 (struct varobj_dynamic): New struct.
2578 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2579 (varobj_has_more): Likewise.
2580 (dynamic_varobj_has_child_method): Likewise.
2581 (update_dynamic_varobj_children): Likewise.
2582 (varobj_get_num_children): Likewise.
2583 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2584 (install_new_value_visualizer): Likewise.
2585 (install_new_value_visualizer, install_new_value): Likewise.
2586 (varobj_update, new_variable, free_variable): Likewise.
2587 (my_value_of_variable, value_get_print_value): Likewise.
2588 (install_visualizer): Change the type of parameter 'var' to
2589 'struct varobjd_dynamic *'. Callers update.
2590 * varobj.h (struct varobj): Moved from varobj.c.
2591 (struct varobj) <dynamic>: New field.
2592
2593 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2594
2595 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2596 as the preferred name of r30.
2597 * nios2-linux-tdep.c (reg_offsets): Likewise.
2598 * features/nios2-cpu.xml: Likewise.
2599 * features/nios2-linux.c: Regenerated.
2600 * features/nios2.c: Regenerated.
2601 * regformats/nios2-linux.dat: Regenerated.
2602
2603 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 Canonicalize directories for EXEC_FILENAME.
2606 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2607 exec_filename.
2608 * utils.c (gdb_realpath_keepfile): New function.
2609 * utils.h (gdb_realpath_keepfile): New declaration.
2610
2611 2013-10-11 Doug Evans <dje@google.com>
2612
2613 * Makefile.in (GDBFLAGS): New variable.
2614 (run): New rule.
2615
2616 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2617
2618 * NEWS: Add entry documenting the new "-catch-assert" and
2619 "-catch-exception" GDB/MI commands.
2620
2621 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2622
2623 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2624 "enabled".
2625 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2626 "enabled". Set B->ENABLE_STATE accordingly.
2627 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2628 ada-lang.c.
2629 (create_ada_exception_catchpoint): Add declaration.
2630 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2631 (create_ada_exception_catchpoint): Make non-static. Add new
2632 parameter "disabled". Use it in call to
2633 init_ada_exception_breakpoint.
2634 (catch_ada_exception_command): Add parameter "enabled" in call
2635 to create_ada_exception_catchpoint.
2636 (catch_assert_command): Likewise.
2637
2638 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2639 Add declarations.
2640 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2641 "catch-exception" commands.
2642 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2643 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2644
2645 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2646
2647 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2648 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2649 of all its enumerates with "ada_". Update the rest of this
2650 file throughout.
2651
2652 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2653
2654 * ada-lang.c (ada_decode_exception_location): Delete.
2655 (create_ada_exception_catchpoint): Remove arguments "sal",
2656 "addr_string" and "ops". Add argument "ex_kind" instead.
2657 Adjust implementation accordingly, calling ada_exception_sal
2658 to get the entities it no longer gets passed as arguments.
2659 Document the function's arguments.
2660 (catch_ada_exception_command): Use catch_ada_exception_command_split
2661 instead of ada_decode_exception_location, and update call to
2662 create_ada_exception_catchpoint.
2663 (catch_ada_assert_command_split): Renames
2664 ada_decode_assert_location. Remove parameters "addr_string" and
2665 "ops", and now returns void. Adjust implementation accordingly.
2666 Update the function documentation.
2667 (catch_assert_command): Use catch_ada_assert_command_split
2668 instead of ada_decode_assert_location. Update call to
2669 create_ada_exception_catchpoint.
2670
2671 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2672
2673 * utils.h (perror_warning_with_name): Add declaration.
2674 * utils.c (perror_warning_with_name): New function.
2675 * cli/cli-cmds.c (source_script_with_search): Add call to
2676 perror_warning_with_name if from_tty is nul.
2677
2678 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2679
2680 * utils.c (perror_string): New function, extracted out of
2681 throw_perror_with_name.
2682 (throw_perror_with_name): Rework to use perror_string.
2683
2684 2013-10-11 Yao Qi <yao@codesourcery.com>
2685
2686 * remote.c (discard_pending_stop_replies_in_queue): Update
2687 declaration.
2688 (struct stop_reply) <rs>: New field.
2689 (remove_stop_reply_of_remote_state): New function.
2690 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2691 Callers update. Pass remove_stop_reply_of_remote_state to
2692 QUEUE_iterate.
2693 (remote_parse_stop_reply): Initialize field 'rs'.
2694
2695 2013-10-10 Will Newton <will.newton@linaro.org>
2696
2697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2698 linux_init_abi.
2699
2700 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2701
2702 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2703 serial_baud_show_cmd.
2704 (_initialize_cli_cmds): Delete the code creating the
2705 "set/show remotebaud" commands.
2706 * serial.c (baud_rate): Move here from top.c.
2707 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2708 (_initialize_serial): Create "set/show serial baud" commands.
2709 Add "set/show remotebaud" command aliases.
2710 * top.c (baud_rate): Moved to serial.c.
2711 * NEWS: Document the new "set/show serial baud" commands,
2712 replacing "set/show remotebaud".
2713
2714 2013-10-09 Pedro Alves <palves@redhat.com>
2715
2716 * breakpoint.c (insert_bp_location): Use memory_error_message to
2717 build the memory error string.
2718 * c-lang.c: Include "gdbcore.h".
2719 (c_get_string): Use memory_error to throw error.
2720 (target_xfer_memory_error): Delete.
2721 (memory_error_message): New, factored out from
2722 target_xfer_memory_error.
2723 (memory_error): Change parameter type to target_xfer_error.
2724 Rewrite.
2725 (read_memory): Use memory_error instead of
2726 target_xfer_memory_error.
2727 * gdbcore.h: Include "target.h".
2728 (memory_error): Change parameter type to target_xfer_error.
2729 (memory_error_message): Declare function.
2730 * target.c (target_read_memory, target_read_stack)
2731 (target_write_memory, target_write_raw_memory): Return
2732 TARGET_XFER_E_IO on error. Adjust comments.
2733 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2734 instead of EIO.
2735 * target.h (target_read, target_insert_breakpoint)
2736 (target_remove_breakpoint): Adjust comments.
2737 * valprint.c (partial_memory_read): Rename parameter, and adjust
2738 comment.
2739 (val_print_string): Use memory_error_message to build the memory
2740 error string.
2741
2742 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2743
2744 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2745 result variable. Rename variable fopen_e_ever_failed to
2746 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2747
2748 2013-10-09 Pedro Alves <palves@redhat.com>
2749
2750 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2751 (monitor_write_memory_longlongs, monitor_write_memory_block):
2752 Constify 'myaddr' parameter.
2753 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2754 helper.
2755 (monitor_xfer_partial): New function.
2756 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2757 hook. Install a to_xfer_partial hook.
2758
2759 2013-10-09 Tom Tromey <tromey@redhat.com>
2760
2761 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2762 bfd_get_alt_debug_link_info.
2763
2764 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 New flag OBJF_NOT_FILENAME.
2767 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2768 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2769 allocate_objfile.
2770 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2771 symbol_file_add_from_bfd.
2772 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2773 allocate_objfile.
2774 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2775 NULL.
2776 * objfiles.h (OBJF_NOT_FILENAME): New.
2777
2778 2013-10-08 Tom Tromey <tromey@redhat.com>
2779
2780 * Makefile.in (SFILES): Add build-id.c.
2781 (HFILES_NO_SRCDIR): Add build-id.h.
2782 * build-id.c: New file, largely from elfread.c. Modified
2783 most functions.
2784 * build-id.h: New file.
2785 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2786 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2787 Search for dwz file using build-id.
2788 * elfread.c (build_id_bfd_get, build_id_verify)
2789 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2790
2791 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2792
2793 * ada-lang.c (compare_names_with_case): Renamed from
2794 compare_names, adding a new parameter "casing" and its handling.
2795 New function documentation.
2796 (compare_names): New function, implemented using
2797 compare_names_with_case.
2798
2799 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2800
2801 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2802
2803 2013-10-07 Tom Tromey <tromey@redhat.com>
2804
2805 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2806 demangled_names_hash.
2807 (free_objfile): Don't delete the demangled_names_hash.
2808 * objfiles.h (struct objfile_per_bfd_storage)
2809 <demangled_names_hash>: New field.
2810 (struct objfile) <demangled_names_hash>: Move to
2811 objfile_per_bfd_storage.
2812 * symfile.c (reread_symbols): Don't delete the
2813 demangled_names_hash.
2814 * symtab.c (create_demangled_names_hash): Update.
2815 (symbol_set_names): Update.
2816
2817 2013-10-07 Tom Tromey <tromey@redhat.com>
2818
2819 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2820 needs_relocations>: New fields.
2821 (gdb_bfd_requires_relocations): New function.
2822 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2823 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2824 the BFD needs relocations applied.
2825
2826 2013-10-07 Pedro Alves <palves@redhat.com>
2827
2828 PR breakpoints/11568
2829 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2830 the thread list" instead of "gone".
2831
2832 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2833
2834 * NEWS: Mention new convenience variable $_exitsignal.
2835 * corelow.c (core_open): Reset exit convenience variables. Set
2836 $_exitsignal to the uncaught signal which generated the corefile.
2837 * infrun.c (handle_inferior_event): Reset exit convenience
2838 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2839 (clear_exit_convenience_vars): New function.
2840 * inferior.h (clear_exit_convenience_vars): New prototype.
2841
2842 2013-10-06 Yao Qi <yao@codesourcery.com>
2843
2844 * varobj.h: Add comments to enum varobj_languages.
2845
2846 2013-10-04 Doug Evans <dje@google.com>
2847
2848 Add support for DWP file format version 2.
2849 * NEWS: Mention support for DWP file format version 2.
2850 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2851 union of asection, containing_section. New fields virtual_offset
2852 and is_virtual. Change type of readin filed from int to char.
2853 (dwo_sections, dwo_file): Tweak comments.
2854 (dwp_v2_section_ids): New enum.
2855 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2856 str_offsets, types.
2857 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2858 All uses updated.
2859 (virtual_v2_dwo_sections): New struct.
2860 (dwp_hash_table): New fields version, nr_columns. Change type of
2861 section_pool field to a union.
2862 (dwp_file): New field version.
2863 (dwarf2_has_info): Check for virtual sections.
2864 (get_containing_section): New function.
2865 (get_section_bfd_owner, get_section_bfd_section): Call it.
2866 (dwarf2_locate_sections): Update.
2867 (dwarf2_section_empty_p): Update.
2868 (dwarf2_read_section): Handle virtual sections.
2869 (locate_dwz_sections): Update.
2870 (create_dwp_hash_table): Document and handle V2 format.
2871 (locate_v1_virtual_dwo_sections): Renamed from
2872 locate_virtual_dwo_sections and update. All callers updated.
2873 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2874 Delete arg htab. Rename arg section_index to unit_index.
2875 All callers updated.
2876 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2877 All uses updated.
2878 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2879 (lookup_dwo_unit_in_dwp): Add V2 support.
2880 (dwarf2_locate_dwo_sections): Update.
2881 (dwarf2_locate_common_dwp_sections): Renamed from
2882 dwarf2_locate_dwp_sections and update. All callers updated.
2883 (dwarf2_locate_v2_dwp_sections): New function.
2884 (open_and_init_dwp_file): Add V2 support.
2885 (read_str_index): New locals str_section, str_offsets_section.
2886
2887 2013-10-04 Pedro Alves <palves@redhat.com>
2888
2889 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2890 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2891 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2892 describing comments with references to ptid.h.
2893 * common/ptid.h: Remove intro description of constructors,
2894 accessors and predicates.
2895 (struct ptid): Reformat.
2896 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2897 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2898 describing comments.
2899
2900 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2901
2902 * aix-thread.c (sync_threadlists): Add missing ')' in call
2903 to ptid_build.
2904
2905 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2906
2907 * procfs.c (procfs_init_inferior): Fix typo causing the build
2908 to fail.
2909
2910 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2911
2912 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2913
2914 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2915
2916 * mi/mi-main.c (run_one_inferior): Add function description.
2917 Make ARG a pointer to an integer whose value determines whether
2918 we should "run" or "start" the program.
2919 (mi_cmd_exec_run): Add handling of the "--start" option.
2920 Reject all other command-line options.
2921 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2922
2923 2013-10-04 Yao Qi <yao@codesourcery.com>
2924
2925 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2926 (struct notif_client) <pending_event>: Moved
2927 to struct remote_notif_state.
2928 <id>: New field.
2929 (struct remote_notif_state) <pending_event>: New field.
2930 (notif_event_xfree): Declare.
2931 * remote-notif.c (handle_notification): Adjust.
2932 (notif_event_xfree): New function.
2933 (do_notif_event_xfree): Call notif_event_xfree.
2934 (remote_notif_state_xfree): Call notif_event_xfree to free
2935 each element in field pending_event.
2936 * remote.c (discard_pending_stop_replies): Remove declaration.
2937 (discard_pending_stop_replies_in_queue): Declare.
2938 (remote_close): Call discard_pending_stop_replies_in_queue
2939 instead of discard_pending_stop_replies.
2940 (remote_start_remote): Adjust.
2941 (stop_reply_xfree): Call notif_event_xfree.
2942 (notif_client_stop): Adjust initialization.
2943 (remote_notif_remove_all): Rename it to ...
2944 (remove_stop_reply_for_inferior): ... this. Update comments.
2945 Don't check INF is NULL.
2946 (discard_pending_stop_replies): Return early if notif_state is
2947 NULL. Adjust. Don't check INF is NULL.
2948 (remote_notif_get_pending_events): Adjust.
2949 (discard_pending_stop_replies_in_queue): New function.
2950 (remote_wait_ns): Likewise.
2951
2952 2013-10-04 Yao Qi <yao@codesourcery.com>
2953
2954 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2955 (notif_queue): Remove.
2956 (remote_notif_process): Add one parameter 'notif_queue'.
2957 Update comments. Callers update.
2958 (remote_async_get_pending_events_token): Remove.
2959 (remote_notif_register_async_event_handler): Remove.
2960 (remote_notif_unregister_async_event_handler): Remove.
2961 (handle_notification): Add parameter 'notif_queue'. Update
2962 comments. Callers update.
2963 (notif_xfree): Remove.
2964 (remote_notif_state_allocate): New function.
2965 (remote_notif_state_xfree): New function.
2966 (_initialize_notif): Remove code to allocate queue.
2967 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2968 (struct remote_notif_state): New.
2969 (handle_notification): Update declaration.
2970 (remote_notif_process): Likewise.
2971 (remote_notif_register_async_event_handler): Remove.
2972 (remote_notif_unregister_async_event_handler): Remove.
2973 (remote_notif_state_allocate): Declare.
2974 (remote_notif_state_xfree): Declare.
2975 * remote.c (struct remote_state) <notif_state>: New field.
2976 (remote_close): Don't call
2977 remote_notif_unregister_async_event_handler. Call
2978 remote_notif_state_xfree.
2979 (remote_open_1): Don't call
2980 remote_notif_register_async_event_handler. Call
2981 remote_notif_state_allocate.
2982
2983 2013-10-04 Yao Qi <yao@codesourcery.com>
2984
2985 * varobj.c (create_child_with_value): Remove 'const' from the
2986 type of parameter 'name'.
2987 (varobj_add_child): Likewise.
2988 (install_dynamic_child): Remove 'const' from the type of
2989 parameter 'name'.
2990 (varobj_add_child): Likewise.
2991 (create_child_with_value): Likewise. Update comments. Don't
2992 duplicate 'name'.
2993 (update_dynamic_varobj_children): Duplicate 'name'
2994 and pass it to install_dynamic_child.
2995
2996 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2997
2998 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2999 conversion logic to occur after PyLong_Check. Comment on order
3000 change significance.
3001 * python/py-arch.c (archpy_disassemble): Comment on order of
3002 conversion for integers and longs.
3003
3004 2013-10-03 Pedro Alves <palves@redhat.com>
3005
3006 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
3007 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
3008 functions. Always test for PTRACE_O_TRACESYSGOOD even if
3009 PTRACE_O_TRACEFORK is not supported.
3010 (linux_test_for_tracesysgood): New function.
3011 (linux_test_for_tracefork): New function, factored out from
3012 linux_check_ptrace_features, and also don't kill child_pid here.
3013
3014 2013-10-03 Tristan Gingold <gingold@adacore.com>
3015
3016 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
3017 Remove verbose error reporting. Use detected state to
3018 thread_set_state call.
3019 (i386_darwin_dr_get): Fix return type. Remove verbose error
3020 report.
3021 Remove trailing spaces.
3022
3023 2013-10-02 Pedro Alves <palves@redhat.com>
3024
3025 * cp-valprint.c (cp_print_value_fields): Adjust calls to
3026 val_print_optimized_out.
3027 * jv-valprint.c (java_print_value_fields): Likewise.
3028 * p-valprint.c (pascal_object_print_value_fields): Likewise.
3029 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
3030 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
3031 new optimized out value.
3032 * findvar.c (address_from_register): Likewise.
3033 * frame.c (put_frame_register): Tweak error string to say the
3034 register was not saved, rather than optimized out.
3035 * infcmd.c (default_print_one_register_info): Adjust call to
3036 val_print_optimized_out. Use value_of_register instead of
3037 get_frame_register_value.
3038 * mi/mi-main.c (output_register): Use value_of_register instead of
3039 get_frame_register_value.
3040 * valprint.c (valprint_check_validity): Likewise.
3041 (val_print_optimized_out): New value parameter. If the value is
3042 lval_register, print <not saved> instead.
3043 (value_check_printable, val_print_scalar_formatted): Adjust calls
3044 to val_print_optimized_out.
3045 * valprint.h (val_print_optimized_out): New value parameter.
3046 * value.c (struct value) <optimized_out>: Extend comment.
3047 (error_value_optimized_out): New function.
3048 (require_not_optimized_out): Use it. Use a different string for
3049 lval_register values.
3050 * value.h (error_value_optimized_out): New declaration.
3051 * NEWS: Mention <not saved>.
3052
3053 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3054
3055 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3056 strcmp to compare two symtab filenames.
3057
3058 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3059
3060 * symtab.c (search_symbols_equal): Delete.
3061 (sort_search_symbols_remove_dups): Replace call to
3062 search_symbols_equal by call to compare_search_syms,
3063 adjusting as necessary.
3064
3065 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3066
3067 PR python/15579
3068 * python/python.c: Document gdb.execute command in Python help.
3069
3070 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3071
3072 * python/py-frame.c (frame_info_to_frame_object): Use
3073 gdbpy_convert_exception. Clean up Python object on failure.
3074
3075 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3076
3077 * python/lib/gdb/command/frame_filters.py
3078 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3079 (ShowFrameFilterPriority.invoke): Ditto.
3080
3081 2013-10-01 Keith Seitz <keiths@redhat.com>
3082
3083 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3084 (parse_linespec): Make 'argptr' const.
3085 Remove temporary cast of 'argptr' to const char **.
3086 (decode_line_full): Pass const pointer to parse_linespec.
3087 (decode_line_1): Likewise.
3088 (decode_objc): Make local variable 'new_argptr' const.
3089 (find_function_symbols): Remove temporary cast to char *
3090 to find_imps.
3091 * objc-lang.c (find_imps): Make argument 'method' const.
3092 Return const.
3093 * objc-lang.h (find_imps): Likewise.
3094
3095 2013-10-01 Keith Seitz <keiths@redhat.com>
3096
3097 * completer.c (skip_quoted_chars): Make all arguments const.
3098 Return const.
3099 (skip_quoted): Likewise.
3100 * completer.h (skip_quoted_chars): Likewise.
3101 (skip_quoted): Likewise.
3102 * defs.h (skip_quoted): Remove duplicate declaration.
3103 * jv-exp.y: Include completer.h.
3104 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3105 * p-exp.y: Include completer.h.
3106
3107 2013-10-01 Keith Seitz <keiths@redhat.com>
3108
3109 * c-exp.y (parse_number): Make first argument const.
3110 Make a copy of the input to manipulate.
3111 (c_parse_escape): Make first argument const.
3112 Make local variable 'tokptr' const.
3113 (parse_string_or_char): Make first two arguments const.
3114 (macro_original_text): Make const.
3115 (lex_one_token): Make local variable 'tokstart' const.
3116 Likewise for local variables named 'p'.
3117 Cast away const for struct stoken (temporary).
3118 * c-lang.h (c_parse_escpae): Make first argument const.
3119 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3120 const.
3121 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3122 var_string case.
3123 * f-exp.y (parse_number): Make first argument const.
3124 (match_string_literal): Make local variable 'tokstart'
3125 const.
3126 (yylex): Make local variable 'p' const.
3127 Cast away const for struct stoken (temporary).
3128 * go-exp.y (parse_number): Make first argument const.
3129 (parse_string_or_char): Likewise.
3130 Make local variable 'tokstart' const.
3131 (lex_one_token): Likewise for numerous locals called 'p'.
3132 Cast away const for struct stoken (temporary).
3133 * jv-exp.y (parse_number): Make first argument const.
3134 Make local variables 'tokstart' and 'tokptr' const.
3135 Cast away const for call to skip_quoted (temporary).
3136 (yylex): Make local variable 'p' const.
3137 Cast away const for struct stoken (temporary).
3138 * m2-exp.y (parse_number): Make local variable 'p' const.
3139 (yylex): Likewise for 'tokstart'.
3140 Cast away const for struct stoken (temporary).
3141 Make local variable 'p' const.
3142 * macroexp.c (get_character_constant): Pass a const string
3143 to c_parse_escape.
3144 (get_string_literal): Likewise.
3145 (macro_expand_next): Make first argument const.
3146 Cast away const for init_shared_buffer.
3147 * macroexp.h (macro_expand_next): Make first argument const.
3148 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3149 Pass a const string to c_parse_escape.
3150 Make local variables 'p' and 'namestart' const.
3151 * parse.c (lexptr): Make const.
3152 (prev_lexptr): Likewise.
3153 (find_template_name_end): Return const.
3154 Make argument const, too.
3155 (parse_exp_in_context): Make first argument const.
3156 Remove the entire const_hack.
3157 (parse_exp_in_context_1): Make first argument const.
3158 * parser-defs.h (find_template_name_end): Return const.
3159 Make argument const, too.
3160 (lexptr): Make const.
3161 (prev_lexptr): Likewise.
3162 * utils.c (parse_escape): Make second argument const.
3163 * utils.h (parse_escape): Likewise.
3164
3165 2013-10-01 Keith Seitz <keiths@redhat.com>
3166
3167 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3168 is now const.
3169 (block_lookup): Make 'raw_name' and 'name' const.
3170 * ada-lex.l (processString): Update for struct stoken.ptr.
3171 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3172 (operator_stoken): Likewise.
3173 (lex_one_token): Remove temporary cast to char * for
3174 'yylval.sval.ptr'.
3175 * f-exp.y (yylex): Likewise.
3176 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3177 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3178 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3179 'yylval.sval.ptr'.
3180 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3181 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3182 * linespec.c (struct ls_parser): Make 'stream' const.
3183 (find_parameter_list_end): Make argument 'input' and local
3184 variable 'p' const.
3185 (linespec_lexer_lex_string): Make local variables 'start' and
3186 'p' const.
3187 Use skip_spaces_const instead of skip_spaces.
3188 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3189 const.
3190 (parse_linespec): Temporarily cast 'argptr' to const for
3191 'parser->lexer.stream'.
3192 * m2-exp.y (yylex): Remove temporary cast to char * for
3193 'yylval.sval.ptr'.
3194 * objc-lang.c (add_msglist): Make local variable 'p' const.
3195 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3196 (exp : STRING): Make 'sp' const.
3197 (parse_number): Make argument 'p' const.
3198 * parser-defs.h (struct stoken): Make 'ptr' const.
3199
3200 2013-10-01 Doug Evans <dje@google.com>
3201
3202 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3203
3204 2013-10-01 Yao Qi <yao@codesourcery.com>
3205
3206 * varobj.c (c_value_of_root): Remove declaration.
3207 (cplus_value_of_root, java_value_of_root): Likewise.
3208 (ada_value_of_root): Likewise.
3209 (struct language_specific) <value_of_root>: Remove.
3210 (languages): Update initialization.
3211 (check_scope): Move earlier.
3212 (c_value_of_root): Move earlier and rename to ...
3213 (value_of_root_1): ... this.
3214 (value_of_root): Caller update.
3215 (cplus_value_of_root, java_value_of_root): Remove.
3216 (ada_value_of_root): Remove.
3217
3218 2013-10-01 Yao Qi <yao@codesourcery.com>
3219
3220 * varobj.c (varobj_format_string): Remove "unknown".
3221 (languages): Remove the first element.
3222 * varobj.h (enum varobj_languages): Remove vlang_c.
3223
3224 2013-10-01 Yao Qi <yao@codesourcery.com>
3225
3226 * varobj.c (struct language_specific) <language>: Remove.
3227 (languages): Update the initialization.
3228
3229 2013-10-01 Yao Qi <yao@codesourcery.com>
3230
3231 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3232 "solib-target.h". Include "windows-tdep.h".
3233 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3234 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3235 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3236 windows-tdep.o to gdb_target_obs.
3237
3238 2013-10-01 Yao Qi <yao@codesourcery.com>
3239
3240 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3241 "solib-target.h".
3242 (amd64_windows_init_abi): Don't call set_solib_ops and
3243 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3244 windows_init_abi instead.
3245 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3246 "solib-target.h".
3247 (i386_cygwin_init_abi): Don't call set_solib_ops,
3248 set_gdbarch_has_dos_based_file_system and
3249 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3250 windows_init_abi instead.
3251 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3252 (windows_init_abi): New function.
3253 (windows_iterate_over_objfiles_in_search_order): Make it
3254 static.
3255 * windows-tdep.h (windows_init_abi): Declare.
3256 (windows_iterate_over_objfiles_in_search_order): Remove
3257 declaration.
3258
3259 2013-10-01 Jerome Guitton <guitton@adacore.com>
3260
3261 Checked in by Joel Brobecker <brobecker@adacore.com>
3262 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3263 incomplete dictionnary instead of None in case of missing
3264 environment variables.
3265 (elinos_init): in case of an incomplete environment, best
3266 effort to load system libraries instead of abort.
3267
3268 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3269
3270 * ada-lang.c (ada_has_this_exception_support): Ignore
3271 mst_solib_trampoline minimal symbols.
3272
3273 2013-09-30 Tristan Gingold <gingold@adacore.com>
3274
3275 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3276 hardware watchpoint.
3277 (i386_darwin_dr_set): Support 32 and 64 bit states.
3278 (i386_darwin_dr_get): Likewise.
3279 (i386_darwin_dr_set_control): Make static.
3280 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3281 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3282
3283 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3284
3285 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3286 Replace TIDGET with ptid_get_lwp.
3287 Replace GET_LWP with ptid_get_lwp.
3288 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3289 Replace BUILD_THREAD with ptid_build.
3290 Replace BUILD_LWP with ptid_build.
3291 Replace PIDGET with ptid_get_pid.
3292 Replace TIDGET with ptid_get_lwp.
3293 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3294 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3295 Replace TIDGET with ptid_get_lwp.
3296 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3297 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3298 Replace TIDGET with ptid_get_lwp.
3299 Replace GET_LWP with ptid_get_lwp.
3300 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3301 * auxv.c: Likewise.
3302 * breakpoint.c: Likewise.
3303 * common/ptid.c (ptid_is_pid): Condense check for
3304 null_ptid and minus_one_ptid.
3305 (ptid_lwp_p): New function.
3306 (ptid_tid_p): New function.
3307 * common/ptid.h: Update comments for accessors.
3308 (ptid_lwp_p): New prototype.
3309 (ptid_tid_p): New prototype.
3310 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3311 * gcore.c: Replace PIDGET with ptid_get_pid.
3312 * gdbthread.h: Likewise.
3313 * gnu-nat.c: Likewise.
3314 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3315 Replace TIDGET with ptid_get_lwp.
3316 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3317 * hppanbsd-nat.c: Likewise.
3318 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3319 Replace TIDGET with ptid_get_lwp.
3320 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3321 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3322 * infcmd.c: Likewise.
3323 * inferior.h: Likewise.
3324 * inflow.c: Likewise.
3325 * infrun.c: Likewise.
3326 * linux-fork.c: Likewise.
3327 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3328 Replace GET_PID with ptid_get_pid.
3329 Replace is_lwp with ptid_lwp_p.
3330 Replace GET_LWP with ptid_get_lwp.
3331 Replace BUILD_LWP with ptid_build.
3332
3333 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3334
3335 * common/linux-btrace.c: Move sys/syscall.h out of the
3336 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3337 Also check for SYS_perf_event_open before attempting to buid.
3338
3339 2013-09-27 Doug Evans <dje@google.com>
3340
3341 * dwarf2read.c (dwarf2_section_info): Add comment.
3342 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3343 All uses updated.
3344 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3345 (dwarf2_read_section): Delete unused local "header". Add section
3346 name to error message.
3347 (create_dwo_in_dwp): Tweak comment.
3348 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3349
3350 * dwarf2read.c (die_reader_specs): Tweak comment.
3351 (get_section_bfd_owner, get_section_bfd_section): New functions.
3352 (get_section_name, get_section_file_name): New functions.
3353 (get_section_id, get_section_flags): New functions.
3354 (*): Use new functions to access section fields.
3355
3356 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3357 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3358 arg "htab". All callers updated.
3359 (create_debug_types_hash_table): Remove redundant copy of
3360 abbrev_section.
3361 (create_dwo_in_dwp): Tweak comments.
3362 (read_str_index): Tweak comment. Record dwarf form name in static
3363 local.
3364
3365 2013-09-27 Pedro Alves <palves@redhat.com>
3366
3367 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3368 (remote_filename_p): Add comment.
3369 * remote.c (remote_filename_p): Adjust to use
3370 REMOTE_SYSROOT_PREFIX.
3371 * solib.c (solib_find): When deciding whether we need to add a
3372 directory separator, check whether the sysroot is "remote:"
3373 instead of checking whether the patch has a drive spec. Add
3374 comments.
3375
3376 2013-09-27 Pedro Alves <palves@redhat.com>
3377
3378 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3379 Delete fields.
3380 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3381 directly.
3382
3383 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 Fix set debug frame output.
3386 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3387 SENTINEL_FRAME entry lower to match enum frame_type order.
3388
3389 2013-09-26 Pierre Muller <muller@sourceware.org>
3390
3391 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3392 AMD64_R15_REGNUM when a register index is expected.
3393 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3394 Substitute in array.
3395 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3396 (amd64_push_arguments): Substitute in integer_regnum array.
3397
3398 2013-09-25 Doug Evans <dje@google.com>
3399
3400 * objfiles.c (allocate_objfile): Move comment to better place.
3401
3402 New option "set debug symfile on".
3403 * NEWS: Mention "set debug symfile".
3404 * Makefile.in (SFILES): Add symfile-debug.c.
3405 (COMMON_OBS): Add symfile-debug.o.
3406 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3407 objfile's symbol functions.
3408 * objfiles.h (objfile_set_sym_fns): Declare.
3409 * symfile-debug.c: New file.
3410 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3411 objfile's symbol functions.
3412 (reread_symbols): Ditto.
3413
3414 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3415 All uses updated.
3416 (add_symtab_fns): Update prototype.
3417 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3418 (registered_sym_fns): ... this.
3419 (symtab_fns): Update.
3420 (add_symtab_fns): New arg "flavour". All callers updated.
3421 (find_sym_fns): Rewrite to use new sym_fns registry.
3422
3423 * symfile.h (struct sym_fns): Add "objfile" argument to
3424 sym_read_linetable. All uses updated.
3425
3426 * symtab.c (domain_name, search_domain_name): New functions.
3427 * symtab.h (domain_name, search_domain_name): Declare.
3428
3429 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3430 map_matching_symbols so objfile is first. All uses updated.
3431 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3432 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3433
3434 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3435
3436 PR shlibs/8882
3437 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3438 link map entries.
3439
3440 2013-09-24 Doug Evans <dje@google.com>
3441
3442 * objfiles.c (free_objfile): Move comment.
3443
3444 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3445
3446 * ada-exp.y (string_to_operator): Delete.
3447 (dummy_string_to_ada_operator): Delete.
3448
3449 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3450
3451 Revert:
3452 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3453 amd64-tdep.c.
3454 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3455 call_dummy_integer_regs, and classify.
3456 * amd64-tdep.h (amd64_classify): Add declaration.
3457 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3458 (amd64_reg_class): Delete, moved to i386-tdep.h.
3459 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3460 Replace call to amd64_classify by call to tdep->classify.
3461 (amd64_push_arguments): Get the list of registers to use for
3462 passing integer parameters from the gdbarch tdep structure,
3463 rather than using a hardcoded one. Replace calls to amd64_classify
3464 by calls to tdep->classify.
3465 (amd64_push_dummy_call): Get the register number used for
3466 the "hidden" argument from tdep->call_dummy_integer_regs.
3467 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3468 and tdep->call_dummy_integer_regs. Set tdep->classify.
3469
3470 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3471
3472 Revert:
3473 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3474 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3475 where tdep->memory_args_by_pointer is non-zero.
3476
3477 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3478
3479 Revert:
3480 * i386-tdep.h (struct gdbarch_tdep): Add new field
3481 integer_param_regs_saved_in_caller_frame.
3482 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3483 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3484
3485 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3486
3487 * amd64-windows-tdep.c: #include "value.h"
3488 (amd64_windows_classify): Delete.
3489 (amd64_windows_passed_by_integer_register)
3490 (amd64_windows_passed_by_xmm_register)
3491 (amd64_windows_passed_by_pointer)
3492 (amd64_windows_adjust_args_passed_by_pointer)
3493 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3494 (amd64_windows_push_dummy_call): New functions.
3495 (amd64_windows_init_abi): Remove setting of
3496 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3497 tdep->classify, tdep->memory_args_by_pointer and
3498 tdep->integer_param_regs_saved_in_caller_frame.
3499 Add call to set_gdbarch_push_dummy_call.
3500
3501 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3502
3503 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3504 objfile->original_name.
3505
3506 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 Pass down original filename for objfile.
3509 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3510 * elfread.c (elf_symfile_read): Likewise.
3511 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3512 longer set ORIGINAL_NAME.
3513 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3514 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3515 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3516 symbol_file_add_from_bfd call.
3517 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3518 (macho_check_dsym): Add parameter filenamep. Change function comment.
3519 Set *filenamep.
3520 (macho_symfile_read): New variable dsym_filename. Update
3521 macho_check_dsym call. Use it for symbol_file_add_separate.
3522 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3523 it. Use it for objfile->original_name.
3524 (objfile_name): Return OBFD's filename, if available.
3525 * objfiles.h (allocate_objfile): Add new parameter name.
3526 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3527 * symfile-mem.c (symbol_file_add_from_memory): Update
3528 symbol_file_add_from_bfd call.
3529 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3530 comment for it.
3531 (symbol_file_add_with_addrs): New parameter name, add function comment
3532 for it. Remove variable name. Update allocate_objfile call.
3533 (symbol_file_add_separate): New parameter name, add function comment
3534 for it. Update symbol_file_add_with_addrs call.
3535 (symbol_file_add_from_bfd): New parameter name. Update
3536 symbol_file_add_with_addrs call.
3537 (symbol_file_add): Update symbol_file_add_from_bfd call.
3538 (reread_symbols): New variable original_name. Save
3539 objfile->original_name by it.
3540 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3541 second parameter.
3542
3543 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3544
3545 Code cleanup: Add objfile_name accessor function.
3546 * ada-lang.c (is_known_support_routine): Use objfile_name.
3547 * auto-load.c (source_gdb_script_for_objfile)
3548 (auto_load_objfile_script): Likewise.
3549 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3550 * dbxread.c (dbx_symfile_read): Likewise.
3551 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3552 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3553 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3554 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3555 (lookup_dwp_signatured_type, lookup_dwo_unit)
3556 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3557 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3558 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3559 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3560 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3561 (read_subrange_type, load_partial_dies, read_partial_die)
3562 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3563 (die_containing_type, build_error_marker_type, lookup_die_type)
3564 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3565 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3566 (get_DW_AT_signature_type, write_psymtabs_to_index)
3567 (save_gdb_index_command): Likewise.
3568 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3569 Likewise.
3570 * expprint.c (dump_subexp_body_standard): Likewise.
3571 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3572 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3573 original_name.
3574 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3575 obj_name, use objfile_name for it, use the variable.
3576 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3577 Use objfile_name.
3578 * machoread.c (macho_symtab_read, macho_check_dsym)
3579 (macho_symfile_relocate): Likewise.
3580 * maint.c (maintenance_translate_address): Likewise.
3581 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3582 * minsyms.c (install_minimal_symbols): Likewise.
3583 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3584 original_name.
3585 (filter_overlapping_sections): Use objfile_name.
3586 (objfile_name): New function.
3587 * objfiles.h (struct objfile): Rename field name to original_name.
3588 (objfile_name): New prototype.
3589 * printcmd.c (sym_info, address_info): Use objfile_name.
3590 * probe.c (parse_probes, collect_probes, compare_probes)
3591 (info_probes_for_ops): Likewise.
3592 * progspace.c (clone_program_space): Likewise.
3593 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3594 (maintenance_info_psymtabs): Likewise.
3595 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3596 (source_section_scripts): Likewise.
3597 * python/py-objfile.c (objfpy_get_filename): Likewise.
3598 * python/py-progspace.c (pspy_get_filename): Likewise.
3599 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3600 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3601 * solib.c (solib_read_symbols): Likewise.
3602 * stabsread.c (scan_file_globals): Likewise.
3603 * stap-probe.c (handle_stap_probe): Likewise.
3604 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3605 (find_separate_debug_file_by_debuglink): Likewise.
3606 (reread_symbols): Likewise. Use the objfile field name renamed to
3607 original_name.
3608 (allocate_symtab): Use objfile_name.
3609 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3610 (dump_objfile, dump_msymbols, dump_symtab_1)
3611 (maintenance_print_msymbols, maintenance_print_objfiles)
3612 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3613 * target.c (target_translate_tls_address, target_info): Likewise.
3614 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3615 objfile_name.
3616
3617 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3618
3619 Code cleanup.
3620 * probe.c (parse_probes): Rename variable objfile_name to
3621 objfile_namestr.
3622
3623 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 Remove solib-sunos.c.
3626 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3627 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3628 * objfiles.c (rt_common_objfile): Remove.
3629 (free_objfile): Remove rt_common_objfile comparison.
3630 * objfiles.h (rt_common_objfile): Remove.
3631 * solib-sunos.c: Remove.
3632 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3633
3634 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 Remove a.out NetBSD and OpenBSD hosts.
3637 * NEWS (Removed native configurations): New.
3638 * config/arm/nbsdaout.mh: Remove.
3639 * config/i386/nbsdaout.mh: Remove.
3640 * config/i386/obsdaout.mh: Remove.
3641 * config/m68k/nbsdaout.mh: Remove.
3642 * config/sparc/nbsdaout.mh: Remove.
3643 * config/vax/nbsdaout.mh: Remove.
3644 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3645 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3646 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3647 error.
3648 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3649 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3650 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3651
3652 2013-09-23 Tom Tromey <tromey@redhat.com>
3653
3654 * linespec.c (struct minsym_and_objfile): Remove.
3655 (minsym_and_objfile_d): Remove.
3656 (struct linespec, struct collect_info, linespec_parse_basic)
3657 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3658 (compare_msymbols, find_method, find_function_symbols)
3659 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3660 (add_minsym, search_minsyms_for_name): Update.
3661
3662 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3663
3664 * regcache.c: Add include of valprint.h.
3665 (dump_endian_bytes): Delete.
3666 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3667
3668 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3669
3670 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3671
3672 2013-09-19 Pedro Alves <palves@redhat.com>
3673
3674 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3675 breakpoints.
3676
3677 2013-09-19 Pedro Alves <palves@redhat.com>
3678 Thomas Schwinge <thomas@codesourcery.com>
3679 Yue Lu <hacklu.newborn@gmail.com>
3680
3681 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3682 Take a gdb_byte pointer instead of a char pointer.
3683
3684 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3685 gnu_xfer_partial helper.
3686 (gnu_xfer_partial): New function.
3687 (gnu_target): Don't install a deprecated_xfer_memory hook.
3688 Install a to_xfer_partial hook.
3689
3690 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 Constification.
3693 * main.c (captured_main): Replace catch_command_errors by
3694 catch_command_errors_const. Twice.
3695 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3696 (symbol_file_add): Make name parameter const.
3697 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3698 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3699 variable name. Change their usage accordingly.
3700 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3701 const.
3702 (symbol_file_add_main): Make args parameter const.
3703
3704 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3705 Ulrich Weigand <uweigand@de.ibm.com>
3706
3707 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3708 of c_value member.
3709 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3710
3711 2013-09-18 Pedro Alves <palves@redhat.com>
3712 Yue Lu <hacklu.newborn@gmail.com>
3713
3714 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3715 (gnu_create_inferior)
3716 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3717 (set_sig_thread_cmd): Use the lwpid field of ptids to
3718 store/extract thread ids instead of the tid field.
3719 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3720
3721 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3722
3723 * infcmd.c (default_print_one_register_info): Add detection of
3724 optimized out values.
3725 (default_print_registers_info): Switch to using
3726 get_frame_register_value.
3727
3728 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3729
3730 * infrun.c (handle_inferior_event): Check if we know the
3731 function start address before setting a resume breakpoint.
3732
3733 2013-09-18 Pedro Alves <palves@redhat.com>
3734
3735 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3736 minus_one_ptid instead of looking at the ptid's tid field and
3737 comparing that to -1.
3738
3739 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3740
3741 * main.h (get_gdb_program_name): Remove extra whitespace.
3742
3743 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3744
3745 * main.h (get_gdb_program_name): Add declaration.
3746 * main.c (get_gdb_program_name): Add definition.
3747
3748 2013-09-17 Doug Evans <dje@google.com>
3749
3750 * dwarf2read.c: Move definitions of complaint functions to after
3751 forward declarations of local functions.
3752
3753 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3754 Pedro Alves <palves@redhat.com>
3755
3756 PR gdb/11568
3757 * breakpoint.c (remove_threaded_breakpoints): New function.
3758 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3759 as thread_exit observer.
3760
3761 2013-09-17 Pedro Alves <palves@redhat.com>
3762
3763 PR gdb/15911
3764 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3765 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3766 * corelow.c (core_open):
3767 * frame.h (print_stack_frame, print_frame_info): New
3768 'set_current_sal' parameter.
3769 * infcmd.c (finish_command, kill_command): Adjust call to
3770 print_stack_frame.
3771 * inferior.c (inferior_command): Likewise.
3772 * infrun.c (normal_stop): Likewise.
3773 * linux-fork.c (linux_fork_context): Likewise.
3774 * record-full.c (record_full_goto_entry, record_full_restore):
3775 Likewise.
3776 * remote-mips.c (common_open): Likewise.
3777 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3778 Use it.
3779 (print_frame_info): New 'set_current_sal' parameter. Set the last
3780 displayed sal depending on the new paremeter instead of looking at
3781 print_what.
3782 (backtrace_command_1, select_and_print_frame, frame_command)
3783 (current_frame_command, up_command, down_command): Adjust call to
3784 print_stack_frame.
3785 * thread.c (print_thread_info, restore_selected_frame)
3786 (do_captured_thread_select): Adjust call to print_stack_frame.
3787 * tracepoint.c (tfind_1): Likewise.
3788 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3789 (mi_cmd_stack_info_frame): Likewise.
3790 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3791 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3792
3793 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3794
3795 * value.c (isvoid_internal_fn): Replace "parameter" with
3796 "argument".
3797
3798 2013-09-16 Stan Shebs <stan@codesourcery.com>
3799
3800 * README: Update references to writing code for GDB.
3801 * configure.ac (build_warnings): Remove obsolete comment.
3802 * configure: Regenerate.
3803 * gdbarch.sh: Remove references to gdbint.texinfo.
3804 * gdbarch.h: Regenerate.
3805 * gdbtypes.c (objfile_type): Remove comments referencing internals
3806 manual and D10V.
3807
3808 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3809
3810 * NEWS: Mention new convenience function $_isvoid.
3811 * value.c (isvoid_internal_fn): New function.
3812 (_initialize_values): Add new convenience function $_isvoid.
3813
3814 2013-09-16 Pierre Muller <muller@sourceware.org>
3815
3816 * arm-linux-tdep.c: Add "elf/common.h" header.
3817 Remove AT_HWCAP macro definintion as it is provided in
3818 added include file.
3819 * s390-tdep.c: Remove system header <elf.h>
3820 Add "elf/common.h" header for AT_HWCAP definition.
3821 (s390_core_read_description): Use correct CORE_ADDR
3822 for hwcap local variable used as third parameter
3823 of function target_auxv_search.
3824
3825 2013-09-14 Pierre Muller <muller@sourceware.org>
3826 Tom Tromey <tromey@redhat.com>
3827 Pedro Alves <palves@redhat.com>
3828
3829 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3830 mode if operating system doesn't know O_CLOEXEC.
3831
3832 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3833
3834 Code cleanup.
3835 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3836 inner block.
3837
3838 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3839
3840 * NEWS: Mention TDB support.
3841 * features/s390-tdb.xml: New file.
3842 * features/s390-te-linux64.xml: New file.
3843 * features/s390x-te-linux64.xml: New file.
3844 * features/Makefile (WHICH): Add new tdescs above.
3845 (s390-te-linux64-expedite): Set.
3846 (s390x-te-linux64-expedite): Set.
3847 * features/s390-te-linux64.c: New file (generated).
3848 * features/s390x-te-linux64.c: New file (generated).
3849 * regformats/s390-te-linux64.dat: New file (generated).
3850 * regformats/s390x-te-linux64.dat: New file (generated).
3851 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3852 (HWCAP_S390_TE): Likewise.
3853 (S390_TDB_DWORD0_REGNUM): Likewise.
3854 (S390_TDB_DWORD0_REGNUM): Likewise.
3855 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3856 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3857 (S390_TDB_ATIA_REGNUM): Likewise.
3858 (S390_TDB_R0_REGNUM): Likewise.
3859 (S390_TDB_R1_REGNUM): Likewise.
3860 (S390_TDB_R2_REGNUM): Likewise.
3861 (S390_TDB_R3_REGNUM): Likewise.
3862 (S390_TDB_R4_REGNUM): Likewise.
3863 (S390_TDB_R5_REGNUM): Likewise.
3864 (S390_TDB_R6_REGNUM): Likewise.
3865 (S390_TDB_R7_REGNUM): Likewise.
3866 (S390_TDB_R8_REGNUM): Likewise.
3867 (S390_TDB_R9_REGNUM): Likewise.
3868 (S390_TDB_R10_REGNUM): Likewise.
3869 (S390_TDB_R11_REGNUM): Likewise.
3870 (S390_TDB_R12_REGNUM): Likewise.
3871 (S390_TDB_R13_REGNUM): Likewise.
3872 (S390_TDB_R14_REGNUM): Likewise.
3873 (S390_TDB_R15_REGNUM): Likewise.
3874 (S390_NUM_REGS): Increase.
3875 (S390_IS_TDBREGSET_REGNUM): New macro.
3876 (s390_regmap_tdb): Declare.
3877 (s390_sizeof_tdbregset): Define.
3878 (tdesc_s390_te_linux64): Declare.
3879 (tdesc_s390x_te_linux64): Likewise.
3880 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3881 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3882 (s390_regmap_tdb): New regmap.
3883 (s390_supply_tdb_regset): New function.
3884 (s390_tdb_regset): New regset.
3885 (s390_linux64v2_regset_sections): Add TDB regset to list.
3886 (s390x_linux64v2_regset_sections): Likewise.
3887 (s390_regset_from_core_section): Recognize TDB core note section.
3888 (s390_core_read_description): If HWCAP indicates TE support,
3889 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3890 (s390_gdbarch_init): Handle TDB regset.
3891 (_initialize_s390_tdep): Initialize new tdescs.
3892 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3893 (have_regset_tdb): New variable.
3894 (s390_native_supply): Support register invalidation.
3895 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3896 (check_regset): Treat ENODATA as "regset exists".
3897 (s390_linux_fetch_inferior_registers): Add TDB.
3898 (s390_read_description): Check for TDB existence and select
3899 appropriate tdesc.
3900 * gdbserver/Makefile.in (clean): Add removal of new makefile
3901 targets.
3902 (s390-te-linux64.c): New makefile target.
3903 (s390x-te-linux64.c): Likewise.
3904 * gdbserver/configure.srv (srv_regobj): Append new objects
3905 s390-te-linux64.o and s390x-te-linux64.o.
3906 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3907 s390x-te-linux64.xml, and s390-tdb.xml.
3908 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3909 declaration.
3910 (tdesc_s390_te_linux64): Likewise.
3911 (init_registers_s390x_te_linux64): Likewise.
3912 (tdesc_s390x_te_linux64): Likewise.
3913 (s390_check_regset): Treat ENODATA as "regset exists".
3914 (s390_arch_setup): Add TDB regset support.
3915 (initialize_low_arch): Initialize registers for new tdescs.
3916
3917 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3918
3919 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3920 (S390_IS_FPREGSET_REGNUM): New macro.
3921 * s390-tdep.c (s390_dwarf_regmap): Make const.
3922 (regnum_is_gpr_full): New function for replacing repeated code.
3923 (s390_pseudo_register_name): Use it.
3924 (s390_pseudo_register_type): Likewise.
3925 (s390_pseudo_register_read): Likewise.
3926 (s390_pseudo_register_write): Likewise.
3927 (s390_unwind_pseudo_register): Likewise.
3928 (s390_regmap_gregset): New format for regmap.
3929 (s390x_regmap_gregset): Likewise.
3930 (s390_regmap_fpregset): Likewise.
3931 (s390_regmap_upper): Likewise.
3932 (s390_regmap_last_break): Likewise.
3933 (s390_regmap_system_call): Likewise.
3934 (s390_supply_regset): Adjust to new regmap format.
3935 (s390_collect_regset): Likewise.
3936 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3937 (s390_native_collect): Likewise.
3938 (supply_gregset): Likewise.
3939 (fill_gregset): Likewise.
3940 (supply_fpregset): Likewise.
3941 (fill_fpregset): Likewise.
3942 (fetch_regset): Likewise.
3943 (store_regset): Likewise.
3944 (s390_linux_fetch_inferior_registers): Likewise.
3945 (s390_linux_fetch_inferior_registers): Likewise.
3946
3947 2013-09-12 Andrew Pinski <apinski@cavium.com>
3948
3949 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3950
3951 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3952
3953 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3954
3955 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3956
3957 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3958
3959 2013-09-06 Pedro Alves <palves@redhat.com>
3960
3961 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3962 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3963 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3964 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3965 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3966 gdb_stdlog.
3967
3968 2013-09-06 Pedro Alves <palves@redhat.com>
3969
3970 * remote-sim.c (dump_mem): Constify buf parameter.
3971 gdbsim_xfer_inferior_memory): Rename to ...
3972 (gdbsim_xfer_memory): ... this. Adjust interface as
3973 target_xfer_partial helper.
3974 (gdbsim_xfer_partial): New function.
3975 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3976 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3977
3978 2013-09-06 Pedro Alves <palves@redhat.com>
3979
3980 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3981 host_address_to_string, and send debug output to gdb_stdlog.
3982
3983 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3984
3985 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3986 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3987 gdb_target_obs for cris target.
3988 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3989 (cris_gdbarch_init): Move calls to
3990 set_gdbarch_fetch_tls_load_module_address and
3991 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3992 Add call to gdbarch_init_osabi.
3993 * cris-linux-tdep.c: New file.
3994 * cris-tdep.h: New file.
3995
3996 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3997
3998 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3999 to deprecated_init_ui_hook.
4000
4001 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
4002
4003 * cli/cli-interp.c (_initialize_cli_interp): Add a
4004 command_loop_proc to interp_procs.
4005 * event-top.c (cli_command_loop): Change signature to match
4006 interp_command_loop_ftype.
4007 * event-top.h (cli_command_loop): Same.
4008 * interps.c (interp_new): Require every interpreter to have a
4009 command_loop_proc.
4010 (current_interp_command_loop): Just call the command_loop_proc on
4011 the current interpreter.
4012 * tui/tui-interp.c (_initialize_tui_interp): Add a
4013 command_loop_proc to interp_procs.
4014
4015 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4016
4017 * cris-tdep.c (cris_gdbarch_init): Add call to
4018 get_gdbarch_fetch_tls_load_module_address.
4019
4020 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4021
4022 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
4023 (cris_elf_gregset_t): Rename from elf_gregset_t.
4024 (crisv32_elf_gregset_t): Adjust.
4025 (cris_supply_gregset, fetch_core_registers): Adjust.
4026
4027 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4028
4029 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
4030
4031 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
4032
4033 * defs.h (deprecated_command_loop_hook): Remove, including
4034 references in comments.
4035 * interps.c (current_interp_command_loop): No longer use
4036 deprecated_command_loop_hook.
4037 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
4038 setup.
4039 * top.c (deprecated_command_loop_hook): Remove.
4040
4041 2013-09-05 Pedro Alves <palves@redhat.com>
4042
4043 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
4044 local is now int instead of ULONGEST. Print it with %d
4045 instead of paddress.
4046
4047 2013-09-05 Tristan Gingold <gingold@adacore.com>
4048
4049 * MAINTAINERS: Remove avr maintainership.
4050
4051 2013-09-05 Pedro Alves <palves@redhat.com>
4052
4053 * findvar.c (value_of_register): Rework in terms of
4054 value_of_register_lazy.
4055
4056 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4057
4058 * symfile.c (add_symbol_file_command): Remove trailing
4059 whitespaces and blank line after comment.
4060
4061 2013-09-05 Pedro Alves <palves@redhat.com>
4062
4063 * tui/tui-regs.c (tui_register_format): Don't look at the
4064 register's name here. Return string representing register
4065 value instead of storing it in the data element.
4066 (tui_get_register): Compare register string representations
4067 instead of register value states and contents.
4068
4069 2013-09-05 Pedro Alves <palves@redhat.com>
4070
4071 PR tui/15933
4072 * tui/tui-regs.c (tui_show_registers): Show registers of the
4073 selected frame, not the current frame.
4074
4075 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4076
4077 * MAINTAINERS (Write After Approval): Add myself to the list.
4078
4079 2013-09-04 Doug Evans <dje@google.com>
4080
4081 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4082 (queue_and_load_dwo_tu): New function.
4083 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4084 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4085 Make dependent_cu optional.
4086 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4087 and an older .gdb_index is in use, queue and load all its TUs too.
4088
4089 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4090
4091 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4092 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4093 variable search_flags.
4094 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4095 (OPF_RETURN_REALPATH): ... here.
4096 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4097 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4098 call. Twice.
4099 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4100 openp call.
4101 * solib.c (solib_find): Likewise. Four times.
4102 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4103 in the function comment and for the realpath_fptr variable.
4104 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4105 (find_and_open_source): Likewise. Twice.
4106 * symfile.c (symfile_bfd_open): Likewise, also twice.
4107
4108 2013-09-04 Doug Evans <dje@google.com>
4109
4110 * progspace.c (save_current_space_and_thread): Remove unnecessary
4111 call to save_current_inferior.
4112
4113 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4114
4115 * sh64-tdep.c (sh64_do_register): Return after printing message
4116 about unavailable register contents.
4117
4118 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4119 Pedro Alves <palves@redhat.com>
4120
4121 * symfile.c (add_symbol_file_command): Error out on unknown
4122 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4123 options and collapse into single conditional branch.
4124
4125 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4126
4127 * inf-child.c (inf_child_follow_fork): New parameter
4128 detach_fork.
4129 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4130 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4131 * inferior.h (detach_fork): Remove.
4132 * infrun.c (detach_fork): Adjust comment and make it
4133 static.
4134 (follow_fork): Pass detach_fork parameter to
4135 target_follow_fork.
4136 * linux-nat.c (linux_child_follow_fork): New parameter
4137 detach_fork.
4138 * target.c (target_follow_fork): New parameter detach_fork.
4139 Pass detach_fork as parameter and print its value.
4140 * target.h (struct target_ops) <to_follow_fork>: New int
4141 parameter.
4142 (target_follow_fork): New parameter detach_fork.
4143
4144 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4145
4146 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4147 Replace sec->bfd by sec->the_bfd_section->owner.
4148
4149 2013-09-03 Yao Qi <yao@codesourcery.com>
4150
4151 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4152 from linux_has_shared_address_space.
4153 (linux_has_shared_address_space): Call linux_is_uclinux.
4154 * linux-tdep.h (linux_is_uclinux): Declare.
4155 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4156 linux_is_uclinux.
4157
4158 2013-09-03 Yao Qi <yao@codesourcery.com>
4159
4160 * config/djgpp/fnchange.lst: Remove entry of
4161 i386-interix-nat.c and i386-interix-tdep.c.
4162 * configure.ac: Remove '*-*-interix*'.
4163 * configure: Re-generated.
4164 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4165 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4166 obsolete comments.
4167 * osabi.c (gdb_osabi_names): Remove "Interix".
4168
4169 2013-09-03 Yao Qi <yao@codesourcery.com>
4170
4171 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4172
4173 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4174
4175 * record.h (record_print_flag) <record_print_src_line,
4176 record_print_insn_range>: Rename into ...
4177 (record_print_flag) <record_print_src_line,
4178 record_print_insn_range>: ... this. Update all users.
4179
4180 2013-09-02 Pierre Muller <muller@sourceware.org>
4181
4182 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4183 error code.
4184
4185 2013-09-02 Pierre Muller <muller@sourceware.org>
4186
4187 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4188 by use of plongest function.
4189
4190 2013-09-02 Tristan Gingold <gingold@adacore.com>
4191
4192 * NEWS: Add entry mentioning support for native Windows x64
4193 SEH data.
4194
4195 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4196 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4197 (struct amd64_windows_frame_cache): New struct.
4198 (amd64_windows_w2gdb_regnum): New global.
4199 (pc_in_range, amd64_windows_frame_decode_epilogue)
4200 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4201 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4202 (amd64_windows_frame_this_id): New functions.
4203 (amd64_windows_frame_unwind): New static global.
4204 (amd64_windows_skip_prologue): New function.
4205 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4206 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4207 with amd64_windows_skip_prologue.
4208
4209 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4210
4211 GDB 7.6.1 released.
4212
4213 2013-08-30 Pedro Alves <palves@redhat.com>
4214
4215 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4216 SRC_AND_LOC.
4217
4218 2013-08-30 Pedro Alves <palves@redhat.com>
4219
4220 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4221 warning text.
4222
4223 2013-08-30 Pedro Alves <palves@redhat.com>
4224
4225 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4226 Adjust arguments to print_stack_frame.
4227
4228 2013-08-30 Pedro Alves <palves@redhat.com>
4229
4230 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4231
4232 2013-08-30 Pedro Alves <palves@redhat.com>
4233
4234 * frame.h (show_and_print_stack_frame): Delete declaration.
4235
4236 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4237
4238 PR python/15461
4239 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4240 (archpy_name): Check for valid architecture.
4241 (archpy_disassemble): Ditto.
4242
4243 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4244
4245 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4246 instead of "long long" in call to ptrace64.
4247
4248 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4249
4250 * mi/mi-interp.c (mi_command_loop): Change signature to match
4251 interp_command_loop_ftype.
4252 (mi1_command_loop): Remove.
4253 (mi2_command_loop): Remove.
4254 (mi3_command_loop): Remove.
4255 (mi_interpreter_resume): Remove setting of
4256 deprecated_command_loop_hook.
4257 (_initialize_mi_interp): Set mi_command_loop as the command loop
4258 callback.
4259
4260 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4261
4262 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4263 value_type.
4264
4265 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4266
4267 * value.c (allocate_value_contents): Make static.
4268 * value.h (allocate_value_contents): Remove prototype.
4269
4270 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4271
4272 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4273 of assembling value via allocate_value_lazy and attribute setter.
4274 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4275 assembling value via allocate_value_lazy and attribute setter.
4276 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4277 assembling value via allocate_value_lazy and attribute setter.
4278
4279 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4280
4281 * value.c (value_from_contents_and_address): Replace allocate_value and
4282 memcpy with value_from_contents.
4283
4284 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4285
4286 * python/py-framefilter.c (py_print_frame): Remove usage of
4287 PyString_AsString. Use python_string_to_host_string instead.
4288 Refactor function to work with a string as a new allocation
4289 instead of a pointer.
4290 (py_print_frame): Ditto.
4291 * python/lib/gdb/frames.py (return_list): Cain iterators together
4292 instead of adding them as a list.
4293 (_sort_list): Call return_list, and remove duplicate code.
4294 (execute_frame_filters): Convert iterator to a list with list().
4295 * python/lib/gdb/command/frame_filters.py
4296 (SetFrameFilterPriority._set_filter_priority): Convert priority
4297 attribute to an integer.
4298 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4299 wrapper function __next__.
4300 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4301 define as "str".
4302
4303 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4304
4305 PR python/15752
4306 * python/py-framefilter.c (apply_frame_filter): Check
4307 gdb_python_initialized. Exit if the Python frame-filter code
4308 cannot be initialized.
4309
4310 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4311
4312 PR cli/15842
4313 * top.c (print_gdb_version): Remove erroneous newline after help
4314 text.
4315
4316 2013-08-29 Yao Qi <yao@codesourcery.com>
4317
4318 * varobj.c (install_dynamic_child): Remove trailing space.
4319 Add one blank line after variable declaration.
4320
4321 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 PR gdb/15415
4324 * corefile.c (get_exec_file): Use exec_filename.
4325 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4326 * exec.c (exec_close): Free EXEC_FILENAME.
4327 (exec_file_attach): New variable canonical_pathname. Use
4328 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4329 EXEC_FILENAME.
4330 * exec.h (exec_filename): New.
4331 * inferior.c (print_inferior, inferior_command): Use
4332 PSPACE_EXEC_FILENAME.
4333 * mi/mi-main.c (print_one_inferior): Likewise.
4334 * progspace.c (clone_program_space, print_program_space): Likewise.
4335 * progspace.h (struct program_space): New field pspace_exec_filename.
4336 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4337 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4338
4339 2013-08-28 Will Newton <will.newton@linaro.org>
4340
4341 * common/linux-ptrace.c: Include stdint.h unconditionally.
4342
4343 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 Code cleanup.
4346 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4347
4348 2013-08-28 Yao Qi <yao@codesourcery.com>
4349 Pedro Alves <palves@redhat.com>
4350
4351 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4352 instead of stdio_fileopen.
4353 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4354 .Call stderr_fileopen instead of stdio_fileopen.
4355 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4356 [__MINGW32__] (stderr_file_fputs): New function.
4357 (stderr_fileopen): New function.
4358 * ui-file.h (stderr_fileopen): Declare.
4359
4360 2013-08-27 Doug Evans <dje@google.com>
4361
4362 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4363 (struct dwarf2_per_cu_data): Ditto.
4364 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4365 (process_imported_unit_die): Ditto.
4366 (follow_die_sig_1): Simplify assert.
4367
4368 2013-08-27 Pedro Alves <palves@redhat.com>
4369
4370 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4371 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4372 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4373 windows_xfer_memory directly.
4374 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4375
4376 2013-08-27 Pedro Alves <palves@redhat.com>
4377
4378 * darwin-nat.c (darwin_xfer_memory): Delete.
4379 (_initialize_darwin_inferior): Don't install a
4380 deprecated_xfer_memory method.
4381
4382 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4383 Yao Qi <yao@codesourcery.com>
4384
4385 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4386 (parse_no_frames_option): Remove.
4387 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4388 (mi_cmd_stack_list_args): Adjust.
4389 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4390 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4391 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4392 Caller update.
4393 (list_args_or_locals): New parameter 'skip_unavailable'.
4394 Handle it.
4395 * valprint.c (scalar_type_p): Rename to ...
4396 (val_print_scalar_type_p): ... this. Make extern.
4397 (val_print, value_check_printable): Adjust.
4398 * valprint.h (val_print_scalar_type_p): Declare.
4399 * value.c (value_entirely_unavailable): New function.
4400 * value.h (value_entirely_unavailable): Declare.
4401
4402 * NEWS: Mention the new option "--skip-unavailable" to MI
4403 commands '-stack-list-locals', '-stack-list-arguments' and
4404 '-stack-list-variables'.
4405
4406 2013-08-27 Yao Qi <yao@codesourcery.com>
4407
4408 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4409 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4410 options.
4411 * mi/mi-getopt.c (mi_getopt): Remove.
4412 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4413 'error_on_unknown'.
4414 (mi_getopt): Call mi_getopt_1.
4415 (mi_getopt_silent): New.
4416 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4417
4418 2013-08-26 Doug Evans <dje@google.com>
4419
4420 PR symtab/15885
4421 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4422 .gdb_index is in use.
4423 * symfile.c (reread_symbols): Reset objfile->sf.
4424
4425 * NEWS: Document "mt print objfiles" now takes optional regexp.
4426 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4427 regexp of objfiles to print.
4428 (_initialize_symmisc): Update doc string for "mt print objfiles".
4429
4430 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4431 missing debug info checks.
4432
4433 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4434 Ulrich Weigand <uweigand@de.ibm.com>
4435
4436 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4437 line tables generated by XLC compiled binaries.
4438
4439 2013-08-23 Doug Evans <dje@google.com>
4440
4441 * symmisc.c (dump_symtab): Delete prototype.
4442 (dump_msymbols, dump_objfile): Ditto.
4443 (maintenance_info_symtabs): Mark as dont_repeat.
4444 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4445
4446 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4447 debugging printf to better location.
4448
4449 2013-08-23 Pedro Alves <palves@redhat.com>
4450
4451 * target.c (target_read_live_memory): Change type of 'ret' local
4452 to LONGEST.
4453
4454 2013-08-23 Pedro Alves <palves@redhat.com>
4455
4456 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4457 (remote_read_bytes): Change return type to LONGEST, and adjust to
4458 return a target_xfer_error on error.
4459 (remote_xfer_memory): Delete.
4460 (remote_flash_write): Change type of 'ret' local to LONGEST.
4461 (remote_xfer_partial, remote_xfer_partial): Adjust.
4462 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4463
4464 2013-08-23 Pierre Muller <muller@sourceware.org>
4465
4466 ARI fix: Push # directives to start of line.
4467 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4468
4469 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4470
4471 PR gdb/15501
4472 * breakpoint.c (enable_command, disable_command): Iterate over
4473 all specified breakpoint locations.
4474
4475 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4476
4477 * common/linux-ptrace.c (linux_fork_to_function): Push #
4478 directives to the start of the line.
4479 (linux_check_ptrace_features): Fix warning message to use
4480 the "_" markup.
4481
4482 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4483
4484 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4485 nat/linux-waitpid.h.
4486 (linux-waitpid.o): New object file rule.
4487 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4488 (current_ptrace_options): Moved from linux-nat.c.
4489 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4490 parameters.
4491 (linux_fork_to_function): New function.
4492 (linux_grandchild_function): Likewise.
4493 (linux_child_function): Likewise.
4494 (linux_check_ptrace_features): New function, heavily
4495 based on linux-nat.c:linux_test_for_tracefork.
4496 (linux_enable_event_reporting): New function.
4497 (ptrace_supports_feature): Likewise.
4498 (linux_supports_tracefork): Likewise.
4499 (linux_supports_traceclone): Likewise.
4500 (linux_supports_tracevforkdone): Likewise.
4501 (linux_supports_tracesysgood): Likewise.
4502 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4503 gdbserver/linux-low.c.
4504 (linux_enable_event_reporting): New declaration.
4505 (linux_supports_tracefork): Likewise.
4506 (linux_supports_traceclone): Likewise.
4507 (linux_supports_tracevforkdone): Likewise.
4508 (linux_supports_tracesysgood): Likewise.
4509 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4510 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4511 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4512 * config/arm/linux.mh (NATDEPFILES): Likewise.
4513 * config/i386/linux.mh (NATDEPFILES): Likewise.
4514 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4515 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4516 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4517 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4518 * config/mips/linux.mh (NATDEPFILES): Likewise.
4519 * config/pa/linux.mh (NATDEPFILES): Likewise..
4520 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4521 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4522 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4523 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4524 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4525 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4526 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4527 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4528 ptrace's 4th argument's types.
4529 Check the type of PTRACE_TYPE_ARG4.
4530 * configure: Regenerate.
4531 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4532 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4533 (linux_supports_tracefork_flag): Remove.
4534 (linux_supports_tracesysgood_flag): Likewise.
4535 (linux_supports_tracevforkdone_flag): Likewise.
4536 (current_ptrace_options): Moved to
4537 common/linux-ptrace.c.
4538 (linux_tracefork_child): Remove.
4539 (my_waitpid): Remove.
4540 (linux_test_for_tracefork): Renamed to
4541 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4542 (linux_test_for_tracesysgood): Remove.
4543 (linux_supports_tracesysgood): Remove.
4544 (linux_supports_tracefork): Remove.
4545 (linux_supports_tracevforkdone): Remove.
4546 (linux_enable_tracesysgood): Remove.
4547 (linux_enable_event_reporting): Remove.
4548 (linux_init_ptrace): New function.
4549 (linux_child_post_attach): Call linux_init_ptrace.
4550 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4551 (linux_child_follow_fork): Call linux_supports_tracefork
4552 and linux_supports_tracevforkdone.
4553 (linux_child_insert_fork_catchpoint): Call
4554 linux_supports_tracefork.
4555 (linux_child_insert_vfork_catchpoint): Likewise.
4556 (linux_child_set_syscall_catchpoint): Call
4557 linux_supports_tracesysgood.
4558 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4559 * nat/linux-nat.h: New file.
4560 * nat/linux-waitpid.c: New file.
4561 * nat/linux-waitpid.h: New file.
4562
4563 2013-08-22 Samuel Bronson <naesten@gmail.com>
4564
4565 ARM Linux support for `catch syscall'.
4566 * syscalls/arm-linux.py: New file.
4567 * syscalls/arm-linux.xml: Likewise.
4568 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4569 (arm_linux_init_abi): Register the new function and syscall xml file.
4570 * data-directory/Makefile.in: Install the new syscall xml file.
4571 * NEWS: Brag about this.
4572
4573 2013-08-22 Pedro Alves <palves@redhat.com>
4574
4575 PR gdb/15871
4576 * corefile.c (target_xfer_memory_error): New function.
4577 (memory_error): Defer EIO to target_memory_error.
4578 (read_memory): Use target_xfer_partial, and handle finer-grained
4579 target xfer errors.
4580 * target.c (target_xfer_error_to_string): New function.
4581 (memory_xfer_partial_1): If memory is known to be
4582 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4583 (target_xfer_partial): Make extern.
4584 * target.h (enum target_xfer_error): New enum.
4585 (target_xfer_error_to_string): Declare function.
4586 (target_xfer_partial): Declare function.
4587 (struct target_ops) <xfer_partial>: Adjust describing comment.
4588
4589 2013-08-22 Alan Modra <amodra@gmail.com>
4590
4591 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4592 * configure.tgt: Likewise as targets.
4593
4594 2013-08-20 Doug Evans <dje@google.com>
4595
4596 * buildsym.c (subfile_stack): Move here from buildsym.h.
4597 (pending_macros): Ditto.
4598 (get_macro_table): New function.
4599 (buildsym_init): Initialize subfile_stack.
4600 * coffread.c (type_vector,type_vector_length): Moved here from
4601 buildsym.h.
4602 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4603 (coff_symtab_read): Use it.
4604 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4605 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4606 with call to get_macro_table.
4607 * stabsread.c (type_vector,type_vector_length): Moved here from
4608 buildsym.h.
4609 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4610 * buildsym.h (get_macro_table): Declare.
4611
4612 2013-08-20 Tom Tromey <tromey@redhat.com>
4613
4614 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4615 Update.
4616 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4617
4618 2013-08-20 Doug Evans <dje@google.com>
4619
4620 * blockframe.c: Remove #include "psymtab.h".
4621 * cp-support.c: Ditto.
4622 * source.c: Ditto.
4623 * stack.c: Ditto.
4624
4625 2013-08-20 Tom Tromey <tromey@redhat.com>
4626
4627 PR python/15816:
4628 * exceptions.h (return_mask): Now an enum.
4629 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4630 enum constants.
4631
4632 2013-08-20 Tom Tromey <tromey@redhat.com>
4633
4634 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4635 get_objfile_arch.
4636 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4637 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4638 * jit.c (jit_object_close_impl): Update.
4639 * jv-lang.c (get_dynamics_objfile): Update.
4640 * linespec.c (add_minsym): Use get_dynamics_objfile.
4641 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4642 (allocate_objfile): Don't initialize 'gdbarch' field.
4643 (get_objfile_arch): Update.
4644 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4645 moved from...
4646 (struct objfile) <gdbarch>: ... here. Remove.
4647 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4648 get_objfile_arch.
4649 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4650
4651 2013-08-20 Alan Modra <amodra@gmail.com>
4652
4653 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4654 for IBM long double nan and inf.
4655 (floatformat_is_negative, floatformat_classify,
4656 floatformat_mantissa): Similarly.
4657 (floatformat_ieee_single, floatformat_ieee_double,
4658 floatformat_ieee_quad, floatformat_arm_ext,
4659 floatformat_ia64_spill): Delete unused vars.
4660 (_initialize_doublest): Delete unused function.
4661 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4662 little-endian variants of floatformat_ibm_long_double.
4663
4664 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4665
4666 * Makefile.in (SFILES): Remove common/target-common.c and
4667 add target/waitstatus.c.
4668 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4669 target/resume.h, target/wait.h and target/waitstatus.h.
4670 (COMMON_OBS): Remove target-common.o and add
4671 waitstatus.o.
4672 (target-common.o): Remove.
4673 (waitstatus.o): New target object file.
4674 * common/target-common.c: Move contents to
4675 target/waitstatus.c and remove.
4676 * common/target-common.h: Move contents to other files and
4677 remove.
4678 (enum resume_kind: Move to target/resume.h.
4679 (TARGET_WNOHANG): Move to target/wait.h.
4680 (enum target_waitkind): Move to target/waitstatus.h.
4681 (struct target_waitstatus): Likewise.
4682 * target.h: Do not include target-common.h and
4683 include target/resume.h, target/wait.h and
4684 target/waitstatus.h.
4685 * target/resume.h: New file.
4686 * target/wait.h: New file.
4687 * target/waitstatus.h: New file.
4688 * target/waitstatus.c: New file.
4689
4690 2013-08-19 Pedro Alves <palves@redhat.com>
4691
4692 * linux-nat.c (linux_test_for_tracefork)
4693 (linux_test_for_tracesysgood, linux_child_follow_fork)
4694 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4695 (linux_nat_wait_1): Extend comment.
4696 (linux_async_pipe): Add comment.
4697
4698 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4699
4700 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4701 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4702 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4703 Update to account for fact that PC is now a pseudo-register.
4704 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4705 cases for RL78_PC_REGNUM.
4706
4707 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4708
4709 PR cli/15841
4710 * top.c (quit_force): Skip writing history file
4711 if input is not from terminal.
4712
4713 2013-08-14 Tom Tromey <tromey@redhat.com>
4714
4715 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4716 resultthreadlist>: New fields.
4717 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4718 (remote_get_threadlist, remote_threadlist_iterator): Use
4719 new fields. Remove static variables.
4720
4721 2013-08-14 Tom Tromey <tromey@redhat.com>
4722
4723 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4724 remote_watch_data_address>: New fields.
4725 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4726 (process_stop_reply, remote_wait_as)
4727 (remote_check_watch_resources, remote_stopped_data_address): Update.
4728
4729 2013-08-14 Tom Tromey <tromey@redhat.com>
4730
4731 * remote.c (struct remote_state) <async_client_callback,
4732 async_client_context>: New fields.
4733 (async_client_callback, async_client_context): Remove.
4734 (remote_async_serial_handler, remote_async): Update.
4735
4736 2013-08-14 Tom Tromey <tromey@redhat.com>
4737
4738 * remote.c (sizeof_pkt): Remove.
4739 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4740
4741 2013-08-14 Tom Tromey <tromey@redhat.com>
4742
4743 * remote.c (struct remote_state) <use_threadinfo_query,
4744 use_threadextra_query>: New fields.
4745 (remote_threads_info, remote_threads_extra_info)
4746 (remote_open_1): Update.
4747
4748 2013-08-14 Tom Tromey <tromey@redhat.com>
4749
4750 * remote.c (struct remote_state) <finished_object,
4751 finished_annex, finished_offset>: New fields.
4752 (remote_read_qxfer): Use remote_state fields; remove static
4753 variables.
4754
4755 2013-08-14 Tom Tromey <tromey@redhat.com>
4756
4757 * remote.c (struct remote_state) <last_sent_step>:
4758 New field.
4759 (last_sent_step): Remove.
4760 (remote_resume, remote_wait_as): Update.
4761
4762 2013-08-14 Tom Tromey <tromey@redhat.com>
4763
4764 * remote.c (struct remote_state) <last_sent_signal>:
4765 New field.
4766 (last_sent_signal): Remove.
4767 (new_remote_state, remote_resume, remote_wait_as): Update.
4768
4769 2013-08-14 Tom Tromey <tromey@redhat.com>
4770
4771 * remote.c (struct remote_state) <last_program_signals_packet>:
4772 New field.
4773 (last_program_signals_packet): Remove.
4774 (remote_program_signals, remote_open_1): Update.
4775
4776 2013-08-14 Tom Tromey <tromey@redhat.com>
4777
4778 * remote.c (struct remote_state) <last_pass_packet>:
4779 New field.
4780 (last_pass_packet): Remove.
4781 (remote_pass_signals, remote_open_1): Update.
4782
4783 2013-08-14 Tom Tromey <tromey@redhat.com>
4784
4785 * remote.c (struct remote_state) <remote_traceframe_number>:
4786 New field.
4787 (remote_traceframe_number): Remove.
4788 (new_remote_state, remote_open_1, set_remote_traceframe)
4789 (remote_trace_find): Update.
4790
4791 2013-08-14 Tom Tromey <tromey@redhat.com>
4792
4793 * remote.c (struct remote_state) <general_thread, continue_thread>:
4794 New fields.
4795 (general_thread, continue_thread): Remove.
4796 (record_currthread, set_thread, set_general_process)
4797 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4798 (extended_remote_mourn_1): Update.
4799
4800 2013-08-14 Tom Tromey <tromey@redhat.com>
4801
4802 * remote.c (struct remote_state) <remote_desc>: New field.
4803 (remote_desc): Remove.
4804 (remote_threads_info, remote_threads_extra_info, remote_close)
4805 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4806 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4807 (remote_hostio_send_command, remote_file_put, remote_file_get)
4808 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4809 (remote_async, remote_new_objfile, set_range_stepping): Update.
4810
4811 2013-08-14 Tom Tromey <tromey@redhat.com>
4812
4813 * remote.c (remote_state): Now a pointer.
4814 (get_remote_state_raw): Update.
4815 (new_remote_state): New function.
4816 (_initialize_remote): Use new_remote_state.
4817
4818 2013-08-14 Tom Tromey <tromey@redhat.com>
4819
4820 * remote.c (remote_protocol_features): Now const.
4821
4822 2013-08-14 Tom Tromey <tromey@redhat.com>
4823
4824 * remote.c (crc32_table, crc32): Remove.
4825 (remote_verify_memory): Use xcrc32.
4826
4827 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4828
4829 * value.h (create_internalvar_type_lazy): Adjust prototype
4830 declaration.
4831
4832 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4833
4834 * common/format.c (parse_format_string): Don't allow '#' flag for
4835 pointer arguments in format string.
4836
4837 2013-08-13 Pierre Muller <muller@sourceware.org>
4838
4839 * utils.c (init_page_info): Only call tgetnum function
4840 if rl_get_screen_size did not return useful values.
4841
4842 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4843
4844 PR breakpoints/15117
4845 * linespec.c (linespec_parse_basic): Check for convenience
4846 variable or history value while parsing.
4847
4848 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4849
4850 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4851 AVR.
4852 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4853 different signals between the generic Linux kernel implementation
4854 and AVR's.
4855 (avr_linux_gdb_signal_from_target): Delete.
4856 (avr_linux_gdb_signal_to_target): Delete.
4857 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4858
4859 2013-08-09 Doug Evans <dje@google.com>
4860
4861 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4862 entries.
4863
4864 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4865
4866 * linux-tdep.c: Define enum with generic signal numbers.
4867 (linux_gdb_signal_from_target): New function.
4868 (linux_gdb_signal_to_target): Likewise.
4869 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4870 methods to the functions above.
4871 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4872 (linux_gdb_signal_to_target): Likewise.
4873 * alpha-linux-tdep.c: Define new enum with signals different
4874 from generic Linux kernel.
4875 (alpha_linux_gdb_signal_from_target): New function.
4876 (alpha_linux_gdb_signal_to_target): Likewise.
4877 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4878 with the functions mentioned above.
4879 * avr-tdep.c: Define enum with differences between Linux kernel
4880 and AVR signals.
4881 (avr_linux_gdb_signal_from_target): New function.
4882 (avr_linux_gdb_signal_to_target): Likewise.
4883 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4884 the functions mentioned above.
4885 * sparc-linux-tdep.c: Define enum with differences between SPARC
4886 and generic Linux kernel signal numbers.
4887 (sparc32_linux_gdb_signal_from_target): New function.
4888 (sparc32_linux_gdb_signal_to_target): Likewise.
4889 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4890 to the functions defined above.
4891 * xtensa-linux-tdep.c: Define enum with differences between
4892 Xtensa and Linux kernel generic signals.
4893 (xtensa_linux_gdb_signal_from_target): New function.
4894 (xtensa_linux_gdb_signal_to_target): Likewise.
4895 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4896 to the functions defined above.
4897 * mips-linux-tdep.c: Define enum with differences between
4898 signals in MIPS and Linux kernel generic ones.
4899 (mips_gdb_signal_to_target): New function.
4900 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4901 only different signals from the Linux kernel generic.
4902 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4903 the functions defined above.
4904 * mips-linux-tdep.h (enum mips_signals): Remove.
4905
4906 2013-08-09 Pedro Alves <palves@redhat.com>
4907
4908 * avr-tdep.c (XMALLOC): Delete macro.
4909 * cli/cli-dump.c (XMALLOC): Delete macro.
4910
4911 2013-08-09 Pedro Alves <palves@redhat.com>
4912
4913 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4914 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4915 (fopen_with_cleanup, add_dump_command): Make static.
4916 * cli/cli-dump.h: Delete file.
4917 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4918 cli/cli-dump.h.
4919
4920 2013-08-09 Pedro Alves <palves@redhat.com>
4921
4922 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4923 error message.
4924
4925 2013-08-09 Pedro Alves <palves@redhat.com>
4926
4927 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4928 error message.
4929
4930 2013-08-09 Pedro Alves <palves@redhat.com>
4931
4932 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4933 (gcore_command): Use tilde_expand here, and when showing the
4934 filename to the user, show the expanded version.
4935
4936 2013-08-09 Yao Qi <yao@codesourcery.com>
4937
4938 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4939 'entryval' is set.
4940
4941 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4942
4943 * gcore.c (create_gcore_bfd): Use tilde_expand.
4944
4945 2013-08-08 Yao Qi <yao@codesourcery.com>
4946
4947 * frame.h (read_frame_local): Declare.
4948 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4949 read_frame_local.
4950 * stack.c (read_frame_local): New.
4951
4952 2013-08-08 Yao Qi <yao@codesourcery.com>
4953
4954 * mi/mi-cmd-stack.c: Update comments to function
4955 list_args_or_locals.
4956
4957 2013-08-07 Tom Tromey <tromey@redhat.com>
4958
4959 PR symtab/15028:
4960 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4961 (process_psymtab_comp_unit_reader): Use it.
4962 (process_psymtab_comp_unit): Update. Add "pretend_language"
4963 argument.
4964 (dwarf2_build_psymtabs_hard): Update.
4965 (scan_partial_symbols): Pass CU's language to
4966 process_psymtab_comp_unit.
4967
4968 2013-08-07 Tom Tromey <tromey@redhat.com>
4969
4970 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4971 (dwarf2_gdb_index_functions): Update.
4972 * psymtab.c (find_symbol_file_from_partial): Remove.
4973 (psym_functions): Update.
4974 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4975 Remove.
4976
4977 2013-08-07 Tom Tromey <tromey@redhat.com>
4978
4979 * symfile.c (set_initial_language): Look up "main" symbol
4980 and use its language.
4981 * symtab.c (find_main_filename): Remove.
4982 * symtab.h (find_main_filename): Remove.
4983
4984 2013-08-07 Tom Tromey <tromey@redhat.com>
4985
4986 * dwarf2read.c (recursively_compute_inclusions): Add
4987 "immediate_parent" argument. Set symtab's "user" field
4988 if not set.
4989 (compute_symtab_includes): Update.
4990
4991 2013-08-07 Tom Tromey <tromey@redhat.com>
4992
4993 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4994 when adding label symbols.
4995
4996 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4997 Ulrich Weigand <uweigand@de.ibm.com>
4998
4999 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
5000 * configure.host (powerpc64-*-aix*): Likewise.
5001
5002 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5003 Ulrich Weigand <uweigand@de.ibm.com>
5004
5005 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
5006 is defined.
5007 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
5008 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
5009 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
5010 * configure.ac: Check for ptrace64.
5011 * configure, config.in: Regenerate.
5012
5013 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5014 Ulrich Weigand <uweigand@de.ibm.com>
5015
5016 * aixthread.c: Call ptrace64 instead of ptracex if defined.
5017 Call ptrace64 instead of ptrace if defined.
5018 Add macro addr_ptr to take care of ptrace address argument.
5019 (pdc_read_regs): Likewise.
5020 (pdc_write_regs): Likewise.
5021 (aix_thread_resume): Likewise.
5022 (fetch_regs_kernel_thread): Likewise.
5023 (store_regs_kernel_thread): Likewise.
5024
5025 2013-08-07 Anton Blanchard <anton@samba.org>
5026
5027 * MAINTAINERS: Add myself to Write After Approval.
5028
5029 2013-08-05 Tom Tromey <tromey@redhat.com>
5030
5031 * aix-thread.c (_initialize_aix_thread): Use
5032 complete_target_initialization.
5033 * bsd-uthread.c (_initialize_bsd_uthread): Use
5034 complete_target_initialization.
5035 * dec-thread.c (_initialize_dec_thread): Use
5036 complete_target_initialization.
5037 * ravenscar-thread.c (_initialize_ravenscar): Use
5038 complete_target_initialization.
5039 * sol-thread.c (_initialize_sol_thread): Use
5040 complete_target_initialization.
5041 * spu-multiarch.c (_initialize_spu_multiarch): Use
5042 complete_target_initialization.
5043
5044 2013-08-05 Tom Tromey <tromey@redhat.com>
5045
5046 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
5047 * ada-lang.c (ada_lookup_simple_minsym): Return
5048 bound_minimal_symbol.
5049 * ada-lang.h (ada_lookup_simple_minsym): Update.
5050 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5051 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5052 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5053 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5054 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5055 * minsyms.c (msymbol_objfile): Remove.
5056 (lookup_minimal_symbol_internal): New function, from
5057 lookup_minimal_symbol.
5058 (lookup_minimal_symbol): Rewrite using
5059 lookup_minimal_symbol_internal.
5060 (lookup_bound_minimal_symbol): New function.
5061 * minsyms.h (msymbol_objfile): Remove.
5062 (lookup_bound_minimal_symbol): Declare.
5063 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5064 * parse.c (write_exp_msymbol): Change parameter to a
5065 bound_minimal_symbol.
5066 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5067 * parser-defs.h (write_exp_msymbol): Update.
5068 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5069 * symfile.c (simple_read_overlay_table): Use
5070 lookup_bound_minimal_symbol.
5071 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5072 (search_symbols): Likewise.
5073 (print_msymbol_info): Take a bound_minimal_symbol argument.
5074 (symtab_symbol_info, rbreak_command): Update.
5075 * symtab.h (struct symbol_search) <msymbol>: Change type
5076 to bound_minimal_symbol.
5077 * valops.c (find_function_in_inferior): Use
5078 lookup_bound_minimal_symbol.
5079 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5080
5081 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5082
5083 Code cleanup.
5084 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5085 to ...
5086 (async_cleanup_sigint_signal_handler): ... this.
5087 (initialize_sigint_signal_handler): Remove declaration.
5088 (handle_remote_sigint): Rename the declaration to ...
5089 (async_handle_remote_sigint): ... this.
5090 (handle_remote_sigint_twice): Rename the declaration to ...
5091 (async_handle_remote_sigint_twice): ... this.
5092 (async_remote_interrupt, async_remote_interrupt_twice)
5093 (remote_interrupt): Remove the declarations.
5094 (remote_interrupt_twice): Rename the declaration ...
5095 (sync_remote_interrupt_twice): ... this.
5096 (sigint_remote_twice_token): Rename the variable to ...
5097 (async_sigint_remote_twice_token): ... this.
5098 (sigint_remote_token): Rename the variable to ...
5099 (async_sigint_remote_token): ... this.
5100 (initialize_sigint_signal_handler): Rename the function to ...
5101 (async_initialize_sigint_signal_handler): ... this. Update the name
5102 inside.
5103 (handle_remote_sigint): Rename the function to ...
5104 (async_handle_remote_sigint): ... this. Update the names inside.
5105 (handle_remote_sigint_twice): Rename the function to ...
5106 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5107 (cleanup_sigint_signal_handler): Rename the function to ...
5108 (async_cleanup_sigint_signal_handler): ... this.
5109 (remote_interrupt): Rename the function to ...
5110 (sync_remote_interrupt): this. Update the names inside.
5111 (remote_interrupt_twice): Rename the function to ...
5112 (sync_remote_interrupt_twice): this. Update the names inside.
5113 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5114 (_initialize_remote): Update the names inside.
5115
5116 2013-08-02 Tom Tromey <tromey@redhat.com>
5117
5118 PR symtab/15719:
5119 * breakpoint.c (update_watchpoint, watchpoint_check)
5120 (watch_command_1): Update.
5121 * eval.c (fetch_subexp_value): Add "preserve_errors"
5122 parameter.
5123 * ppc-linux-nat.c (check_condition): Update.
5124 * value.h (fetch_subexp_value): Update.
5125
5126 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5127
5128 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5129 add_file_handler.
5130
5131 2013-08-01 Doug Evans <dje@google.com>
5132
5133 PR symtab/15691
5134 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5135 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5136 Add assert of sig_entry->dwo_unit == NULL.
5137 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5138 had already been read.
5139 (read_signatured_type): Set per_cu.tu_read.
5140
5141 PR symtab/15695
5142 * valops.c (value_struct_elt): Add missing call to check_typedef.
5143 (value_find_oload_method_list): Ditto.
5144
5145 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5146 effectively, struct symbol_search **.
5147 (make_cleanup_free_search_symbols): Change arg to struct
5148 symbol_search **. All callers updated.
5149 (compare_search_syms): Compare symtab file name and block as well.
5150 (search_symbols_equal): New function.
5151 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5152 New args new_head, new_tail. Result is now void. Remove dups after
5153 sorting the symbols.
5154 (search_symbols): Sort all found symbols once, after all have been
5155 found, and remove duplicates. Simplify cleanup tracking of result.
5156 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5157
5158 Further workarounds for binutils/15021.
5159 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5160 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5161 Watch for duplicate symtabs coming from type units.
5162 (compute_symtab_includes): Update call to
5163 recursively_compute_inclusions. Build vector of included symtabs
5164 instead of per_cus.
5165 * symtab.h (symtab_ptr): New typedef.
5166 (DEF_VEC_P (symtab_ptr)): New VEC type.
5167 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5168 instead.
5169
5170 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5171
5172 * cli/cli-script.c (script_from_file): Remove use of
5173 error_pre_print.
5174 * main.c (captured_main): Remove use of error_pre_print and
5175 quit_pre_print.
5176 * utils.c (error_pre_print, quit_pre_print): Remove.
5177 * utils.h (error_pre_print, quit_pre_print): Likewise.
5178
5179 2013-08-01 Yao Qi <yao@codesourcery.com>
5180
5181 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5182 with mi_getopt.
5183 (mi_cmd_stack_list_variables): Likewise.
5184
5185 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5186
5187 * exceptions.c (deprecated_throw_reason): Remove.
5188 * exceptions.h (deprecated_throw_reason): Remove.
5189
5190 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5191
5192 * remote-mips.c (mips_error): Replace use of
5193 deprecated_throw_reason with throw_verror. Use the error message
5194 passed to mips_error as the error message for throw_verror.
5195
5196 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5197
5198 * monitor.c (monitor_interrupt_query): Replace use of
5199 deprecated_throw_reason with quit.
5200 * nto-procfs.c (interrupt_query): Likewise.
5201 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5202 * remote-mips.c (mips_kill): Likewise.
5203 * remote.c (interrupt_query): Likewise.
5204
5205 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5206
5207 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5208 with call to fatal.
5209
5210 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5211 Yao Qi <yao@codesourcery.com>
5212
5213 * tracepoint.c (trace_dump_command): Select the current frame.
5214
5215 2013-07-30 Doug Evans <dje@google.com>
5216
5217 * dwarf2read.c (process_queue): Add type signature to debug output.
5218
5219 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5220
5221 * value.c (value_fetch_lazy): Mark optimized out values as such
5222 rather than raising an error.
5223
5224 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5225
5226 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5227 before checking which bits of the parent, not the child, value are
5228 valid.
5229
5230 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5231
5232 PR gdb/15715
5233 * top.c: Include "filenames.h".
5234 (set_history_filename): New function.
5235 (init_main): Install it as set hook of the "set history filename"
5236 command.
5237
5238 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5239
5240 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5241 attribute parameter.
5242 (dwarf2_const_value_data): Constify struct attribute parameter.
5243 (dwarf2_const_value): Constify struct attribute parameter.
5244 (dwarf2_const_value_attr): Constify struct attribute parameter.
5245 (lookup_die_type): Constify struct attribute parameter.
5246 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5247 (follow_die_ref_or_sig): Constify struct attribute parameter.
5248 (follow_die_ref): Constify struct attribute parameter.
5249 (follow_die_sig): Constify struct attribute parameter.
5250 (get_DW_AT_signature_type): Constify struct attribute parameter.
5251 (get_type_unit_group): Constify struct attribute parameter.
5252 (fill_in_loclist_baton): Constify struct attribute parameter.
5253 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5254 (type_unit_group): Constify struct attribute parameter.
5255
5256 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5257
5258 * dwarf2read.c (attr_form_is_block): Make argument const.
5259 (attr_form_is_section_offset): Make argument const.
5260 (attr_form_is_constant): Make argument const.
5261 (attr_form_is_ref): Make argument const.
5262
5263 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5264
5265 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5266 All uses updated.
5267 (attr_form_is_ref): Moved below attr_form_is_constant.
5268
5269 2013-07-29 Doug Evans <dje@google.com>
5270
5271 * main.c (captured_command_loop): Tweak comment.
5272
5273 * target.c (target_async_permitted_1): Fix comment.
5274
5275 * symtab.c (iterate_over_some_symtabs): Add comment.
5276
5277 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5278
5279 2013-07-27 Yao Qi <yao@codesourcery.com>
5280
5281 * NEWS: Mention that GDBserver now supports hardware
5282 watchpoints on the MIPS GNU/Linux target.
5283
5284 2013-07-27 Yao Qi <yao@codesourcery.com>
5285
5286 * Makefile.in (HFILES_NO_SRCDIR): Add
5287 common/mips-linux-watch.h.
5288 (mips-linux-watch.o): New rule.
5289 * common/mips-linux-watch.c: New.
5290 * common/mips-linux-watch.h: New.
5291 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5292 * mips-linux-nat.c: Include mips-linux-watch.h.
5293 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5294 to common/mips-linux-watch.h.
5295 (MAX_DEBUG_REGISTER): Likewise.
5296 (enum pt_watch_style): Likewise.
5297 (struct mips32_watch_regs): Likewise.
5298 (struct mips64_watch_regs): Likewise.
5299 (struct pt_watch_regs): Likewise.
5300 (struct mips_watchpoint): Likewise.
5301 (mips_linux_watch_get_irw_mask): Move to
5302 common/mips-linux-watch.c.
5303 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5304 (mips_linux_watch_get_watchlo): Likewise.
5305 (mips_linux_watch_set_watchlo): Likewise.
5306 (mips_linux_watch_get_watchhi): Likewise.
5307 (mips_linux_watch_set_watchhi): Likewise.
5308 (mips_linux_read_watch_registers): Likewise.
5309 (mips_linux_watch_type_to_irw): Likewise.
5310 (mips_linux_stopped_data_address, fill_mask): Likewise.
5311 (mips_linux_watch_try_one_watch): Likewise.
5312 (mips_linux_watch_populate_regs): Likewise.
5313
5314 2013-07-27 Yao Qi <yao@codesourcery.com>
5315
5316 * mips-linux-nat.c (get_irw_mask): Rename to ...
5317 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5318 'set' to 'n'. Update function comment. All callers changed.
5319 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5320 function comment. All callers changed.
5321 (get_num_valid): Rename to ...
5322 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5323 'set' to 'n'. Update function comment. All callers changed.
5324 (get_watchlo): Rename to ...
5325 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5326 'set' to 'n'. Update function comment. All callers changed.
5327 (set_watchlo): Rename to ...
5328 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5329 'set' to 'n'. Update function comment. All callers changed.
5330 (get_watchhi): Rename to ...
5331 (mips_linux_watch_get_watchhi): ... this. Update function
5332 comment. All callers changed.
5333 (set_watchhi): Rename to ...
5334 (mips_linux_watch_set_watchhi): ... this. Update function
5335 comment. All callers changed.
5336 (mips_linux_read_watch_registers): Update function comment.
5337 Add new parameters 'lwpid', 'watch_readback', and
5338 'watch_readback_valid'. Update.
5339 (type_to_irw): Rename to ...
5340 (mips_linux_watch_type_to_irw): ... this. Update function
5341 comment. All callers changed.
5342 (fill_mask): Update function comment.
5343 (try_one_watch): Rename to ...
5344 (mips_linux_watch_try_one_watch): ... this. Change the type
5345 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5346 (populate_regs_from_watches): Rename to ...
5347 (mips_linux_watch_populate_regs): ... this. Add parameter
5348 'current_watches'. All callers changed.
5349
5350 2013-07-27 Yao Qi <yao@codesourcery.com>
5351
5352 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5353 the code.
5354 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5355 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5356 (struct pt_watch_regs): Likewise.
5357 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5358 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5359 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5360 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5361 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5362
5363 2013-07-27 Yao Qi <yao@codesourcery.com>
5364
5365 * breakpoint.h: Include break-common.h.
5366 (enum target_hw_bp_type): Move to ...
5367 * common/break-common.h: ... here. New.
5368
5369 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5370
5371 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5372 process group regardless of having tty on stdin.
5373
5374 2013-07-25 Doug Evans <dje@google.com>
5375
5376 * linux-fork.h (detach_fork): Delete.
5377
5378 2013-07-25 Tom Tromey <tromey@redhat.com>
5379
5380 PR remote/15256, PR remote/15266:
5381 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5382 * monitor.c (monitor_detach): Use unpush_target.
5383 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5384 * remote-mips.c (mips_detach): Use unpush_target. Don't
5385 call mips_close.
5386 * remote-sim.c (gdbsim_detach): Use unpush_target.
5387 * target.c (pop_target): Remove.
5388 (pop_all_targets_above): Don't call target_close.
5389 (target_close): Assert that the target is unpushed.
5390 * target.h (pop_target): Don't declare.
5391 * tracepoint.c (tfile_open): Use unpush_target.
5392
5393 2013-07-25 Tom Tromey <tromey@redhat.com>
5394
5395 * linux-thread-db.c (init_thread_db_ops): Call
5396 complete_target_initialization.
5397 (_initialize_thread_db): Don't call add_target.
5398 * target.c (complete_target_initialization): New function.
5399 (add_target_with_completer): Call it.
5400 * target.h (complete_target_initialization): Declare.
5401
5402 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5403
5404 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5405 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5406 (HPPANBSD_SIZEOF_GREGS): New define.
5407 (hppaobsd_supply_gregset): Handle additional registers.
5408 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5409 we provide more registers now.
5410 (hppabsd_supply_gregset): Supply additional registers.
5411 (hppabsd_collect_gregset): Collect additional registers.
5412
5413 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5414
5415 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5416 (hppabsd_dwarf2_frame_init_reg): New function.
5417 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5418
5419 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5420
5421 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5422 'z' format code. Remove error for optimized out values, standard
5423 code will handle these fine.
5424
5425 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5426
5427 * NEWS: Mention new 'z' formatter.
5428 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5429 (_initialize_printcmd): Mention 'z' formatter in help text of the
5430 'x' command.
5431
5432 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5433
5434 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5435 formatting.
5436
5437 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5438
5439 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5440 interface can evaluate arguments. Fallback to the old mode if it
5441 cannot.
5442 (create_exception_master_breakpoint): Likewise.
5443 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5444 (struct sym_probe_fns elf_probe_fns): Export function above to the
5445 probe interface.
5446 * probe.c (can_evaluate_probe_arguments): New function.
5447 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5448 function pointer.
5449 (can_evaluate_probe_arguments): New function prototype.
5450 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5451 probe interface can evaluate arguments. Fallback to the old mode
5452 if it cannot.
5453 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5454 interface can evaluate arguments. Warning the user if it cannot.
5455 (stap_can_evaluate_probe_arguments): New function.
5456 (struct probe_ops stap_probe_ops): Export function above to the
5457 probe interface.
5458 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5459 New function pointer.
5460
5461 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5462
5463 * Makefile.in (SFILES): Add common/target-common.c.
5464 Add common/target-common.h to headers.
5465 (COMMON_OBS): Add target-common.o.
5466 (target-common.o): New target.
5467 * linux-nat.h (resume_kind): Move to common/target-common.h.
5468 * target.c (target_waitstatus_to_string): Move to
5469 common/target-common.c.
5470 * target.h: Include target-common.h.
5471 (target_waitkind): Move to common/target-common.h.
5472 (target_waitstatus): Likewise.
5473 (TARGET_WNOHANG): Likewise.
5474 * common/target-common.c: New file.
5475 * common/target-common.h: New file.
5476
5477 2013-07-24 Doug Evans <dje@google.com>
5478
5479 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5480 a warning.
5481
5482 2013-07-23 Yao Qi <yao@codesourcery.com>
5483
5484 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5485 parameter 'gdbarch'.
5486 (i386_stack_tramp_frame_sniffer): Caller update.
5487 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5488 parameter 'gdbarch' and 'target'.
5489 (i386_linux_core_read_description): Caller update.
5490 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5491 Likewise.
5492 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5493 declaration.
5494
5495 2013-07-23 Tom Tromey <tromey@redhat.com>
5496
5497 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5498 2013-07-22.
5499
5500 2013-07-22 Doug Evans <dje@google.com>
5501
5502 * exec.h (remove_target_sections): Delete arg abfd.
5503 * exec.c (exec_close): Update call to remove_target_sections.
5504 (remove_target_sections): Delete arg abfd.
5505 * solib.c (update_solib_list): Ditto.
5506 (reload_shared_libraries_1): Ditto.
5507 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5508 * target.h (struct target_section): Rename key to owner.
5509 All uses updated.
5510
5511 2013-07-22 Tom Tromey <tromey@redhat.com>
5512
5513 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5514
5515 2013-07-22 Tom Tromey <tromey@redhat.com>
5516
5517 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5518 Simplify cleanup handling.
5519
5520 2013-07-22 Tom Tromey <tromey@redhat.com>
5521
5522 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5523 on all return paths.
5524
5525 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5526
5527 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5528 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5529 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5530
5531 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5532
5533 * top.c (print_gdb_version): Add help, apropos description and
5534 url to online documentation.
5535
5536 2013-07-19 Hui Zhu <hui@codesourcery.com>
5537
5538 PR gdb/15692
5539 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5540
5541 2013-07-19 Yao Qi <yao@codesourcery.com>
5542
5543 * target.c (update_current_target): Change the default action
5544 of 'to_traceframe_info' from tcomplain to return_zero.
5545 * target.h (struct target_ops) <to_traceframe_info>: Add more
5546 comments.
5547 * valops.c (read_value_memory): Call
5548 traceframe_available_memory unconditionally.
5549
5550 2013-07-18 Yao Qi <yao@codesourcery.com>
5551
5552 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5553 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5554 symbol without prefix. If found, set its type to
5555 'mst_solib_trampoline'.
5556
5557 2013-07-17 Doug Evans <dje@google.com>
5558
5559 * NEWS: Mention "set print raw frame-arguments".
5560 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5561 * stack.c (print_raw_frame_arguments): New static global.
5562 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5563 (_initialize_stack): New command "set/show print raw frame-arguments".
5564 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5565 (set_print_raw, show_print_raw): New functions.
5566 (_initialize_valprint): New prefix command "set/show print raw".
5567 * valprint.h (value_print_options): Improve comments.
5568
5569 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5570 of all *list variables.
5571
5572 * gdbcmd.h (togglelist): Delete.
5573 * cli/cli-cmds.c (togglelist): Delete.
5574 (init_cmd_lists): Update.
5575 * cli/cli-cmds.h (togglelist): Delete.
5576
5577 2013-07-17 Tom Tromey <tromey@redhat.com>
5578
5579 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5580 dwarf2_per_objfile.
5581
5582 2013-07-16 Doug Evans <dje@google.com>
5583
5584 * nto-tdep.c (nto_relocate_section_addresses): Update,
5585 target_section.bfd deleted.
5586 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5587 * s390-tdep.c (s390_load): Ditto.
5588 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5589
5590 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5591
5592 * common/format.c (parse_format_string): Add checks for NULL
5593 character before calling strchr.
5594
5595 2013-07-16 Doug Evans <dje@google.com>
5596
5597 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5598 temp_pathname argument.
5599 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5600 when opening the file fails.
5601
5602 * target.h (struct target_section): Delete member bfd.
5603 All users updated to use the_bfd_section->owner instead.
5604 * exec.c (add_to_section_table): Assert bfd is expected value.
5605 Remove initialization of target_section.bfd.
5606 (remove_target_sections): Update.
5607 (section_table_available_memory): Update.
5608 (section_table_xfer_memory_partial): Update.
5609 (print_section_info): Update.
5610 (exec_set_section_address): Update.
5611 * record-full.c (record_full_core_xfer_partial): Update.
5612 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5613 * solib-target.c (solib_target_relocate_section_addresses): Update.
5614 * symfile.c (build_section_addr_info_from_section_table): Update.
5615 * target.c (memory_xfer_live_readonly_partial): Update.
5616 (memory_xfer_partial_1): Update.
5617
5618 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5619
5620 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5621 now available for embedded (BookE) and server (BookS) processors,
5622 correct mentions of 'booke' and adjust comments accordingly in order to
5623 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5624 (have_ptrace_booke_interface): Rename function and variable
5625 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5626 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5627 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5628 'hwdebug_point_cmp'. Update all uses.
5629 (booke_find_thread_points_by_tid): Rename function
5630 'booke_find_thread_points_by_tid' to
5631 'hwdebug_find_thread_points_by_tid'. Update all uses.
5632 (booke_insert_point): Rename function 'booke_insert_point' to
5633 'hwdebug_insert_point'. Update all uses.
5634 (booke_remove_point): Rename function 'booke_remove_point' to
5635 'hwdebug_remove_point'. Update all uses.
5636
5637 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5638
5639 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5640 numbers with enum values.
5641
5642 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5643
5644 PR threads/13217
5645 * thread.c (thread_apply_all_command): Check for valid threads
5646 and thread count.
5647 (thread_array_cleanup): New struct.
5648 (set_thread_refcount): New function.
5649
5650 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5651
5652 * infcmd.c (default_print_one_register_info): Reuse function
5653 print_hex_chars.
5654
5655 2013-07-10 Tom Tromey <tromey@redhat.com>
5656
5657 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5658 (ada-exp.o): New target.
5659
5660 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5661
5662 * mt-tdep.c (mt_registers_info): Call
5663 get_no_prettyformat_print_options instead of
5664 get_raw_print_options (regression by last patch from Doug
5665 Evans).
5666
5667 2013-07-09 Pedro Alves <palves@redhat.com>
5668
5669 Checked in by Joel Brobecker <brobecker@adacore.com>.
5670 * ada-lang.c (coerce_unspec_val_to_type): Use
5671 value_optimized_out_const.
5672 * value.c (value_optimized_out_const): New function.
5673 * value.h (value_optimized_out_const): New declaration.
5674
5675 2013-07-09 Doug Evans <dje@google.com>
5676
5677 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5678 Enum values rename as well. All uses updated.
5679 * valprint.h (value_print_options): Rename member pretty to
5680 pretty format. Rename member prettyprint_arrays to
5681 prettyformat_arrays. Rename member prettyprint_structs to
5682 prettyformat_structs. All uses updated.
5683 (get_no_prettyformat_print_options): Renamed from
5684 get_raw_print_options.
5685 * valprint.c (get_no_prettyformat_print_options): Renamed from
5686 get_raw_print_options. All callers updated.
5687 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5688 All callers updated.
5689 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5690 All callers updated.
5691 (_initialize_valprint): Improve help text for "set print pretty" and
5692 "set print arrays".
5693
5694 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5695
5696 * value.c (value_bits_valid): Revert previous change, and change
5697 by Pedro on 2013-07-04, due to regressions in
5698 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5699
5700 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5701 Pedro Alves <palves@redhat.com>
5702
5703 * value.c (value_bits_valid): If the value is not lval_computed
5704 or has no check validity handler then the answer is the
5705 optimized_out flag, otherwise defer to the handler.
5706
5707 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5708
5709 * top.c (print_gdb_configuration): Explain in output of
5710 --configuration what does "relocatable" mean.
5711
5712 * main.c (print_gdb_help): Regroup options in the --help text.
5713 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5714 the relevant discussions.
5715
5716 2013-07-06 Yao Qi <yao@codesourcery.com>
5717
5718 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5719 Remove parameter 'lsal'.
5720 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5721 to inner block. Caller update.
5722 (base_breakpoint_create_breakpoints_sal): Update.
5723 (bkpt_create_breakpoints_sal): Likewise.
5724 (tracepoint_create_breakpoints_sal): Likewise.
5725 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5726 element 0 of vector 'canonical->sals'.
5727
5728 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5729
5730 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5731 register number instead of the pseudo register one.
5732 (rs6000_dwarf2_reg_to_regnum): Likewise.
5733
5734 2013-07-04 Pedro Alves <palves@redhat.com>
5735
5736 * findvar.c (value_of_register): Use allocate_optimized_out_value
5737 if the register has been optimized out, instead of
5738 set_value_optimized_out.
5739 * frame-unwind.c (frame_unwind_got_optimized): Use
5740 allocate_optimized_out_value.
5741
5742 2013-07-04 Pedro Alves <palves@redhat.com>
5743
5744 * value.c (value_bits_valid): If the value is not lval_computed,
5745 or doesn't have a check_validity hook, assume the value is entirely
5746 valid.
5747
5748 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5749
5750 * stack.c (read_frame_arg): No longer fetch lazy values.
5751 * value.c (value_optimized_out): If the value is not already
5752 marked optimized out, and is lazy then fetch it.
5753 (value_primitive_field): Move optimized out check to later in the
5754 function, after we have loaded any lazy values.
5755 (value_fetch_lazy): Use optimized out flag directly rather than
5756 calling optimized_out method.
5757
5758 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5759
5760 * valops.c: Don't include "user-regs.h".
5761 (value_fetch_lazy): Moved to value.c.
5762 * value.c: Include "user-regs.h".
5763 (value_fetch_lazy): Moved from valops.c.
5764
5765 2013-07-04 Yao Qi <yao@codesourcery.com>
5766
5767 Revert:
5768 2013-06-27 Yao Qi <yao@codesourcery.com>
5769
5770 * common/create-version.sh: Update comments. Handle the case
5771 that TARGET_ALIAS is empty.
5772
5773 2013-07-03 Pedro Alves <palves@redhat.com>
5774
5775 * Makefile.in (config.status): Depend on development.sh.
5776 (aclocal_m4_deps): Add libmcheck.m4.
5777 * acinclude.m4: Include libmcheck.m4.
5778 * configure.ac: Source development.sh instead of setting
5779 'development' here. --enable-libmcheck/--disable-libmcheck code
5780 factored out to GDB_AC_LIBMCHECK. Run it.
5781 * development.sh: New file.
5782 * libmcheck.m4: New file.
5783 * configure: Regenerate.
5784
5785 2013-07-02 Tom Tromey <tromey@redhat.com>
5786
5787 * contrib/ari/update-web-ari.sh: Update for version.in change.
5788
5789 2013-07-02 Tom Tromey <tromey@redhat.com>
5790
5791 * common/ptid.h: Comment fixes.
5792
5793 2013-07-01 Tom Tromey <tromey@redhat.com>
5794
5795 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5796 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5797 (dwarf2_read_index, create_all_comp_units): Update.
5798
5799 2013-07-01 Tom Tromey <tromey@redhat.com>
5800
5801 * configure.ac (build_warnings): Add -Wold-style-definition.
5802 * configure: Rebuild.
5803 * machoread.c (_initialize_machoread): Use "(void)".
5804 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5805 use "(void)".
5806
5807 2013-07-01 Tom Tromey <tromey@redhat.com>
5808
5809 * configure.ac (build_warnings): Add -Wold-style-declaration.
5810 * configure: Rebuild.
5811 * dsrec.c (make_srec): Use "static const", not "const static".
5812 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5813 not "const static".
5814 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5815 Use "static const", not "const static".
5816 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5817 not "const static".
5818 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5819 not "const static".
5820 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5821 not "const static".
5822 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5823 not "const static".
5824 (v850_dbtrap_breakpoint_from_pc): Likewise.
5825 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5826 not "const static".
5827
5828 2013-07-01 Tom Tromey <tromey@redhat.com>
5829
5830 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5831 * configure: Rebuild.
5832
5833 2013-07-01 Pedro Alves <palves@redhat.com>
5834
5835 * defs.h: Include "pathmax.h".
5836 * utils.c: Don't include sys/param.h.
5837 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5838 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5839 instead of MAXPATHLEN.
5840 * solib-sunos.c: Don't include sys/param.h.
5841 * xcoffread.c: Don't include sys/param.h.
5842 * bsd-kvm.c: Don't include sys/param.h.
5843 * darwin-nat.c: Don't include sys/param.h.
5844 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5845 * darwin-nat-info.c: Don't include sys/param.h.
5846 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5847 MAXPATHLEN.
5848 * i386obsd-nat.c: Don't include sys/param.h.
5849 * inf-child.c: Don't include sys/param.h.
5850 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5851 * linux-fork.c: Don't include sys/param.h.
5852 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5853 * linux-nat.c: Don't include sys/param.h.
5854 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5855 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5856 * m68klinux-nat.c: Don't include sys/param.h.
5857 * nbsd-nat.c: Don't include sys/param.h.
5858 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5859 * ppc-linux-nat.c: Don't include sys/param.h.
5860 * rs6000-nat.c: Don't include sys/param.h.
5861 * spu-linux-nat.c. Don't include sys/param.h.
5862 * windows-nat.c: Don't include sys/param.h.
5863 * xtensa-linux-nat.c: Don't include sys/param.h.
5864 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5865
5866 2013-07-01 Pedro Alves <palves@redhat.com>
5867
5868 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5869 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5870 * gnulib/aclocal.m4: Regenerate.
5871 * gnulib/config.in: Regenerate.
5872 * gnulib/configure: Regenerate.
5873 * gnulib/import/pathmax.h: New file.
5874 * gnulib/import/Makefile.am: Regenerate.
5875 * gnulib/import/Makefile.in: Regenerate.
5876 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5877 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5878 * gnulib/import/m4/pathmax.m4: New file.
5879
5880 2013-07-01 Pedro Alves <palves@redhat.com>
5881
5882 * configure.ac (GDBINIT): Define, depending on host.
5883 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5884 * top.c (PATH_MAX): Delete fallback definition.
5885 (GDBINIT_FILENAME): Delete.
5886 (gdbinit): Reimplement as const char array set to the GDBINIT
5887 string constant.
5888 * top.h (gdbinit): Make const.
5889 * configure, config.in: Regenerate.
5890
5891 2013-07-01 Pedro Alves <palves@redhat.com>
5892
5893 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5894 * cli/cli-cmds.h (source_script): Likewise.
5895 * exceptions.c (catch_command_errors_const): New function.
5896 * exceptions.h (catch_command_errors_const): Declare.
5897 * main.c (get_init_files): Make parameters const, and adjust.
5898 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5899 'local_gdbinit' locals const. Adjust to use
5900 catch_command_errors_const.
5901 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5902 'local_gdbinit' locals const.
5903
5904 2013-07-01 Pedro Alves <palves@redhat.com>
5905
5906 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5907 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5908 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5909 <unistd.h>.
5910
5911 2013-07-01 Pedro Alves <palves@redhat.com>
5912
5913 Import the "unistd" gnulib module.
5914 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5915 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5916 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5917 import/m4/unistd_h.m4.
5918 * gnulib/aclocal.m4: Renenerate.
5919 * gnulib/config.in: Renenerate.
5920 * gnulib/configure: Renenerate.
5921 * gnulib/import/Makefile.am: Renenerate.
5922 * gnulib/import/Makefile.in: Renenerate.
5923 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5924 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5925 * gnulib/import/m4/off_t.m4: New file.
5926 * gnulib/import/m4/ssize_t.m4: New file.
5927 * gnulib/import/m4/sys_types_h.m4: New file.
5928 * gnulib/import/m4/unistd_h.m4: New file.
5929 * gnulib/import/sys_types.in.h: New file.
5930 * gnulib/import/unistd.c: New file.
5931 * gnulib/import/unistd.in.h: New file.
5932
5933 2013-07-01 Pedro Alves <palves@redhat.com>
5934
5935 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5936 defined instead of checking HAVE_UNISTD_H.
5937
5938 2013-07-01 Pedro Alves <palves@redhat.com>
5939
5940 Reimport gnulib from scratch.
5941 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5942 import/m4/onceonly.m4.
5943 * gnulib/aclocal.m4: Renegerate.
5944 * gnulib/config.in: Renegerate.
5945 * gnulib/configure: Renegerate.
5946 * gnulib/import/Makefile.in: Renegerate.
5947 * gnulib/import/extra/update-copyright: Renegerate.
5948 * gnulib/import/m4/onceonly.m4: Delete.
5949
5950 2013-07-01 Pedro Alves <palves@redhat.com>
5951
5952 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5953
5954 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 Code cleanup.
5957 * remote.c (async_remote_interrupt_twice): Make it static.
5958 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5959
5960 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5961
5962 * ia64-linux-tdep.c: Include <ctype.h>.
5963 (ia64_linux_stap_is_single_operand): New function.
5964 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5965
5966 2013-06-28 Tom Tromey <tromey@redhat.com>
5967
5968 * Makefile.in (version.c): Use version.in, not
5969 common/version.in.
5970 * common/create-version.sh: Likewise.
5971 * common/version.in: Move...
5972 * version.in: ...here.
5973
5974 2013-06-28 Pedro Alves <palves@redhat.com>
5975
5976 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5977 here.
5978 * utils.h (pagination_enabled): Declare.
5979
5980 2013-06-28 Pedro Alves <palves@redhat.com>
5981
5982 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5983 Move higher up in file.
5984
5985 2013-06-28 Tom Tromey <tromey@redhat.com>
5986
5987 * tracepoint.c (deprecated_readline_begin_hook)
5988 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5989 declare.
5990
5991 2013-06-28 Pedro Alves <palves@redhat.com>
5992
5993 PR tui/14880
5994 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5995 checking if they're available.
5996 * value.c (value_available_contents_eq): Change comment.
5997 * value.h (value_available_contents_eq): Expand comment.
5998
5999 2013-06-27 Tom Tromey <tromey@redhat.com>
6000
6001 * target.c (find_run_target): Remove.
6002 * target.h (find_run_target): Remove.
6003
6004 2013-06-27 Tom Tromey <tromey@redhat.com>
6005
6006 * corelow.c (core_gdbarch): Now static.
6007
6008 2013-06-27 Tom Tromey <tromey@redhat.com>
6009
6010 * target.c (target_struct_index): Remove.
6011
6012 2013-06-27 Pedro Alves <palves@redhat.com>
6013
6014 * infrun.c: Remove comment describing the 'stepping over runtime
6015 loader dynamic symbol resolution code' mechanism; moved to
6016 gdbint.texinfo.
6017
6018 2013-06-27 Pedro Alves <palves@redhat.com>
6019
6020 * exceptions.c (catch_command_errors): Remove spurious space.
6021 * exceptions.h (catch_command_errors): Second parameter is "arg",
6022 not "command".
6023
6024 2013-06-27 Yao Qi <yao@codesourcery.com>
6025
6026 * common/create-version.sh: Update comments. Handle the case
6027 that TARGET_ALIAS is empty.
6028
6029 2013-06-26 Pedro Alves <palves@redhat.com>
6030
6031 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
6032 comment.
6033
6034 2013-06-26 Pedro Alves <palves@redhat.com>
6035
6036 * infrun.c: Update comments on stepping over runtime loader
6037 dynamic symbol resolution code.
6038
6039 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
6040
6041 * ax-gdb.h (union exp_element): Forward declare.
6042 * parser-defs.h: Include expression.h.
6043
6044 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6045
6046 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6047
6048 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6049
6050 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6051
6052 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6053
6054 Fix trace-status to output proper start-time and stop-time.
6055 * tracepoint.c (trace_status_command): Fix type of printf arg to
6056 prevent improper type conversion.
6057 (trace_status_mi): Likewise.
6058
6059 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6060
6061 * mips-tdep.c (mips_next_pc): Fix a typo.
6062
6063 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6064
6065 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6066
6067 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6068 Yao Qi <yao@codesourcery.com>
6069
6070 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6071 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6072 * mi/mi-main.c (print_variable_or_computed): New function.
6073 (mi_cmd_trace_frame_collected): New function.
6074 * tracepoint.c (find_trace_state_variable_by_number): New.
6075 (struct traceframe_info): Move to tracepoint.h
6076 (struct collection_list): Likewise.
6077 (do_collect_symbol): Include locals and arguments in the
6078 collected variables list.
6079 (clear_collection_list): Clear wholly collected variables list
6080 and computed variables list.
6081 (append_exp): New function.
6082 (encode_actions_1): Include variables in the wholly
6083 collected variables list. Include memory ranges and
6084 full-fledged expressions in the computed expressions list.
6085 (encode_actions): Move some code to ...
6086 Return the cleanup chain.
6087 (encode_actions_rsp): ... here. New function.
6088 (get_traceframe_location, get_traceframe_info): Remove static.
6089 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6090 (struct collection_list): Moved from tracepoint.c. Add two
6091 new fields 'wholly_collected' and 'computed'.
6092 (find_trace_state_variable_by_number): Declare.
6093 (encode_actions): Adjust declaration.
6094 (encode_actions_rsp): Declare.
6095 (get_traceframe_info, get_traceframe_location): Declare.
6096
6097 * NEWS: Mention new MI command -trace-frame-collected.
6098
6099 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6100 Yao Qi <yao@codesourcery.com>
6101
6102 * ctf.c (ctf_traceframe_info): Push trace state variables
6103 present in the trace data into the traceframe info object.
6104 * breakpoint.c (DEF_VEC_I): Remove.
6105 * common/filestuff.c (DEF_VEC_I): Likewise.
6106 * dwarf2loc.c (DEF_VEC_I): Likewise.
6107 * mi/mi-main.c (DEF_VEC_I): Likewise.
6108 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6109 * features/traceframe-info.dtd: Add tvar element and its
6110 attributes.
6111 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6112 (build_traceframe_info): Push trace state variables present in
6113 the trace data into the traceframe info object.
6114 (traceframe_info_start_tvar): New function.
6115 (tvar_attributes): New.
6116 (traceframe_info_children): Add "tvar" element.
6117 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6118
6119 * NEWS: Mention the change in GDB and GDBserver.
6120
6121 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6122 Yao Qi <yao@codesourcery.com>
6123
6124 * tracepoint.c (trace_dump_command): Move code to ...
6125 (get_traceframe_location): ... here. New.
6126
6127 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6128 Yao Qi <yao@codesourcery.com>
6129
6130 * tracepoint.c (trace_dump_command): GDB emits an error
6131 instead of a warning when a traceframe is not selected.
6132
6133 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6134 Yao Qi <yao@codesourcery.com>
6135
6136 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6137 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6138 in collection_list.
6139 (do_clear_collection_list, init_collection_list): New.
6140 (encode_actions): Add local variables 'tracepoint_list' and
6141 'stepping_list'. Call init_collection_list and make cleanup
6142 which calls do_clear_collection_list. Don't call
6143 clear_collection_list.
6144 (_initialize_tracepoint): Delete references to
6145 'tracepoint_list' and 'stepping_list'.
6146
6147 2013-06-25 Tom Tromey <tromey@redhat.com>
6148
6149 * common/create-version.sh (date): Use "$", not "$$" in sed
6150 expression.
6151
6152 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6153
6154 * NEWS (New targets): Add entry for TI MSP430.
6155
6156 2013-06-25 Yao Qi <yao@codesourcery.com>
6157
6158 * remote.c (remote_start_remote): Move code to upload tsv
6159 earlier.
6160
6161 2013-06-25 Yao Qi <yao@codesourcery.com>
6162 Hui Zhu <hui@codesourcery.com>
6163 Pedro Alves <palves@redhat.com>
6164
6165 PR breakpoints/15075
6166 PR breakpoints/15434
6167 * breakpoint.c (bpstat_stop_status): Call
6168 b->ops->after_condition_true.
6169 (update_dprintf_command_list): Don't append "continue" command
6170 to the command list of dprintf breakpoint.
6171 (base_breakpoint_after_condition_true): New function.
6172 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6173 (dprintf_after_condition_true): New function.
6174 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6175 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6176
6177 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6178
6179 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6180 (ALLDEPFILES): Add msp430-tdep.c.
6181 * configure.tgt (msp430*-*-elf): New target.
6182 * msp430-tdep.c: New file.
6183
6184 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6185
6186 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6187 microMIPS synthetic symbols.
6188
6189 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6190
6191 * objfiles.h (pc_in_section): New prototype.
6192 (in_plt_section): Remove name argument, replace prototype with
6193 static inline function.
6194 * mips-tdep.h: Include "objfiles.h".
6195 (in_mips_stubs_section): New function.
6196 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6197 in_solib_call_trampoline member.
6198 (hppa_in_solib_call_trampoline): Remove name argument.
6199 * objfiles.c (pc_in_section): New function.
6200 (in_plt_section): Remove function.
6201 * mips-linux-tdep.c: Include "objfiles.h".
6202 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6203 name argument. Return 1 rather than the low 16-bit halfword of
6204 any instruction examined.
6205 (mips_linux_in_dynsym_resolve_code): Update
6206 mips_linux_in_dynsym_stub call accordingly.
6207 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6208 rather than an equivalent hand-coded sequence.
6209 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6210 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6211 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6212 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6213 in_opd_section.
6214 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6215 on call to tdep->in_solib_call_trampoline.
6216 (hppa_in_solib_call_trampoline): Remove name argument, update
6217 according to in_plt_section change.
6218 (hppa_skip_trampoline_code): Update according to in_plt_section
6219 change.
6220 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6221 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6222 Likewise.
6223 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6224 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6225 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6226 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6227 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6228 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6229 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6230 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6231 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6232 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6233 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6234 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6235 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6236
6237 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6238
6239 * common/create-version.sh: Fix expansion of $host_alias
6240 and $target_alias in generation of HOST_NAME and TARGET_NAME
6241 (resp.).
6242
6243 2013-06-24 Tom Tromey <tromey@redhat.com>
6244
6245 * common/create-version.sh: New file.
6246 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6247 create-version.sh.
6248 (HFILES_NO_SRCDIR): Use common/version.h.
6249 * version.in: Move to ...
6250 * common/version.in: ... here. Replace date with "DATE".
6251 * version.h: Move to ...
6252 * common/version.h: ... here.
6253
6254 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6255
6256 * gdb/gnulib/Makefile.in: Update date in copyright header.
6257 * gdb/gnulib/configure.ac: Ditto.
6258 * gdb/gnulib/update-gnulib.sh: Ditto.
6259
6260 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6261
6262 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6263 "gdb/gnulib/import".
6264
6265 2013-06-21 Will Newton <will.newton@linaro.org>
6266
6267 * doublest.c (ldfrexp): Remove function.
6268 (convert_doublest_to_floatformat): Call frexpl instead of
6269 ldfrexp.
6270
6271 2013-06-21 Will Newton <will.newton@linaro.org>
6272
6273 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6274 * gnulib/aclocal.m4: Regenerate.
6275 * gnulib/config.in: Regenerate.
6276 * gnulib/configure: Regenerate.
6277 * gnulib/import/Makefile.am: Update.
6278 * gnulib/import/Makefile.in: Update.
6279 * gnulib/import/m4/gnulib-cache.m4: Update.
6280 * gnulib/import/m4/gnulib-comp.m4: Update.
6281 * gnulib/import/float+.h: Import.
6282 * gnulib/import/float.c: Import.
6283 * gnulib/import/float.in.h: Import.
6284 * gnulib/import/fpucw.h: Import.
6285 * gnulib/import/frexp.c: Import.
6286 * gnulib/import/frexpl.c: Import.
6287 * gnulib/import/isnan.c: Import.
6288 * gnulib/import/isnand-nolibm.h: Import.
6289 * gnulib/import/isnand.c: Import.
6290 * gnulib/import/isnanl-nolibm.h: Import.
6291 * gnulib/import/isnanl.c: Import.
6292 * gnulib/import/itold.c: Import.
6293 * gnulib/import/m4/exponentd.m4: Import.
6294 * gnulib/import/m4/exponentl.m4: Import.
6295 * gnulib/import/m4/float_h.m4: Import.
6296 * gnulib/import/m4/fpieee.m4: Import.
6297 * gnulib/import/m4/frexp.m4: Import.
6298 * gnulib/import/m4/frexpl.m4: Import.
6299 * gnulib/import/m4/isnand.m4: Import.
6300 * gnulib/import/m4/isnanl.m4: Import.
6301 * gnulib/import/m4/math_h.m4: Import.
6302 * gnulib/import/math.c: Import.
6303 * gnulib/import/math.in.h: Import.
6304
6305 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6306
6307 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6308 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6309 signature_INTEL_edx comparisons.
6310
6311 2013-06-20 Doug Evans <dje@google.com>
6312
6313 symtab/15652
6314 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6315 All callers updated.
6316 (open_dwp_file): If we can't find the dwp file, search the basename
6317 in debug-file-directory.
6318
6319 * dwarf2read.c (struct dwp_file): Fix comment.
6320 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6321
6322 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6323 better.
6324
6325 2013-06-20 Yao Qi <yao@codesourcery.com>
6326
6327 * breakpoint.c (create_breakpoint): Fix code indentation.
6328
6329 2013-06-20 Yao Qi <yao@codesourcery.com>
6330
6331 * breakpoint.c (create_breakpoints_sal_default): Remove
6332 parameter 'lsal'. Update declaration.
6333 (bkpt_create_breakpoints_sal): Caller update.
6334 (tracepoint_create_breakpoints_sal): Likewise.
6335
6336 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6337 Yao Qi <yao@codesourcery.com>
6338
6339 * NEWS: Mention the new option '--skip-unavailable' of command
6340 -data-list-register-values.
6341 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6342 --skip-unavailable option. Adjust to use output_register.
6343 (output_register): Add new 'skip_unavailable' parameter.
6344 Handle it.
6345
6346 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6347
6348 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6349 common/i386-gcc-cpuid.h.
6350 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6351 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6352 Copy the latest version from upstream gcc.
6353 * common/linux-btrace.c: Include i386-cpuid.h.
6354 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6355 call to i386_cpuid.
6356 (cpu_supports_btrace): Likewise.
6357 * go32-nat.c: Include i386-cpuid.h.
6358 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6359
6360 2013-06-19 Doug Evans <dje@google.com>
6361
6362 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6363 (get_section_index): Ditto.
6364
6365 2013-06-19 Tom Tromey <tromey@redhat.com>
6366
6367 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6368 "dprintf" help.
6369
6370 2013-06-18 Doug Evans <dje@google.com>
6371
6372 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6373 before using it.
6374 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6375 Move test of cu_index closer to use. Print complaint if cu_index
6376 is bad.
6377
6378 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6379
6380 * machoread.c (oso_vector): Delete this global.
6381 (macho_register_oso): Add new parameter "oso_vector_ptr".
6382 Use it instead of the "oso_vector" global.
6383 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6384 (macho_symfile_read): Use a local oso_vector, to be free'ed
6385 at the end of this function, in place of the old "oso_vector"
6386 global. Update various function calls accordingly. Use one
6387 single cleanup chain for the entire function.
6388
6389 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6390
6391 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6392 DWARF2_PER_OBJFILE by uses of DATA instead.
6393
6394 2013-06-18 Tom Tromey <tromey@redhat.com>
6395
6396 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6397 argument.
6398 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6399 Special case signals other than GDB_SIGNAL_TRAP.
6400 (explains_signal_watchpoint): New function.
6401 (base_breakpoint_explains_signal): Add 'sig' argument.
6402 (initialize_breakpoint_ops): Set 'explains_signal' method for
6403 watchpoints.
6404 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6405 signal argument.
6406 (bpstat_explains_signal): Likewise.
6407 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6408
6409 2013-06-18 Tom Tromey <tromey@redhat.com>
6410
6411 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6412
6413 2013-06-18 Tom Tromey <tromey@redhat.com>
6414
6415 * python/python.c (finish_python_initialization): Decref
6416 'pythondir' on failure path as well.
6417
6418 2013-06-18 Tom Tromey <tromey@redhat.com>
6419
6420 PR symtab/15391:
6421 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6422 after taking bits_to_skip into account. Sign extend byte_offset.
6423 * utils.h (gdb_sign_extend): Declare.
6424 * utils.c (gdb_sign_extend): New function.
6425
6426 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6427
6428 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6429
6430 2013-06-17 Pierre Muller <muller@sourceware.org>
6431
6432 * corelow.c (core_open): Print GDB signal name instead of target
6433 signal number.
6434
6435 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6436
6437 * .gitignore: Add /gcore.
6438
6439 2013-06-13 Doug Evans <dje@google.com>
6440
6441 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6442 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6443
6444 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6445
6446 * stack.c (backtrace_command_1): Fix indentation.
6447
6448 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6449
6450 * window-nat.c (thread_rec): Add missing empty line after
6451 local variable declaration.
6452
6453 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6454
6455 * windows-nat.c (thread_rec): Revert format used to print
6456 error code returned by SuspendThread from %d back to %u.
6457
6458 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6459
6460 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6461 ID in debug trace.
6462 (get_windows_debug_event): Likewise, for all debug traces.
6463
6464 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6465
6466 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6467 warning message.
6468
6469 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6470 Yao Qi <yao@codesourcery.com>
6471
6472 * mi/mi-main.c (get_register): Remove declaration.
6473 (output_register): Declare.
6474 (mi_cmd_data_list_register_values): Remove local variable
6475 'tuple_cleanup'. Move some code into output_register.
6476 (get_register): Renamed to ...
6477 (output_register): ... this. Output the register's
6478 "number" ui_out tuple here.
6479
6480 2013-06-07 Pedro Alves <palves@redhat.com>
6481
6482 * darwin-nat.c: Fix formating in copyright header.
6483 * darwin-nat.h: Likewise.
6484 * gnu-nat.c: Likewise.
6485 * machoread.c: Likewise.
6486
6487 2013-06-07 Pedro Alves <palves@redhat.com>
6488
6489 PR server/14823
6490 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6491 static. Output a global target description pointer.
6492 (init_registers_${name}): Adjust to initialize a
6493 target description structure.
6494
6495 2013-06-07 Will Newton <will.newton@linaro.org>
6496
6497 * printcmd.c (build_address_symbolic): Call
6498 gdbarch_addr_bits_remove for text minimal symbols.
6499
6500 2013-06-07 Will Newton <will.newton@linaro.org>
6501
6502 * MAINTAINERS: Add myself to Write After Approval.
6503
6504 2013-06-07 Yao Qi <yao@codesourcery.com>
6505
6506 * tracepoint.c (start_tracing): Move code to ...
6507 (trace_reset_local_state): ... here. New.
6508 (disconnect_tracing): Don't call set_current_traceframe,
6509 set_tracepoint_num, and set_traceframe_context. Call
6510 trace_reset_local_state instead.
6511 (tfile_close): Call trace_reset_local_state.
6512 * ctf.c (ctf_close): Likewise.
6513 * remote.c (remote_close): Likewise.
6514 * tracepoint.h (trace_reset_local_state): Declare.
6515
6516 2013-06-06 Doug Evans <dje@google.com>
6517
6518 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6519 and fix header docs.
6520
6521 2013-06-05 Doug Evans <dje@google.com>
6522 Keith Seitz <keiths@redhat.com>
6523
6524 PR 15519
6525 * cp-namespace.c (find_symbol_in_baseclass): Call
6526 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6527 Check result of call to lookup_symbol_static.
6528 Call lookup_static_symbol_aux unconditionally.
6529 Call check_typedef on base types before accessing them.
6530 (cp_lookup_nested_symbol): Fix comment.
6531
6532 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6533
6534 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6535 minimal symbols pointing to function descriptors.
6536
6537 2013-06-05 Tom Tromey <tromey@redhat.com>
6538
6539 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6540
6541 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6542 Pedro Alves <palves@redhat.com>
6543
6544 * remote.c (remote_wait_as): Restore signal handler before returning
6545 when GDB gets a notification.
6546
6547 2013-06-04 Gary Benson <gbenson@redhat.com>
6548
6549 PR 2328
6550 * breakpoint.h (handle_solib_event): Moved function declaration
6551 to solib.h.
6552 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6553 (bpstat_stop_status): Pass new argument to handle_solib_event.
6554 * solib.h (update_solib_breakpoints): New function declaration.
6555 (handle_solib_event): Moved function declaration from
6556 breakpoint.h.
6557 * solib.c (update_solib_breakpoints): New function.
6558 (handle_solib_event): Moved function from breakpoint.c.
6559 Updated to call solib_ops->handle_event if not NULL.
6560 * solist.h (target_so_ops): New fields "update_breakpoints" and
6561 "handle_event".
6562 * infrun.c (set_stop_on_solib_events): New function.
6563 (_initialize_infrun): Use the above for "set
6564 stop-on-solib-events".
6565 (handle_inferior_event): Pass new argument to handle_solib_event.
6566 * solib-svr4.c (probe.h): New include.
6567 (svr4_free_library_list): New forward declaration.
6568 (probe_action): New enum.
6569 (probe_info): New struct.
6570 (probe_info): New static variable.
6571 (NUM_PROBES): New definition.
6572 (svr4_info): New fields "using_xfer", "probes_table" and
6573 "solib_list".
6574 (free_probes_table): New function.
6575 (free_solib_list): New function.
6576 (svr4_pspace_data_cleanup): Free probes table and solib list.
6577 (svr4_copy_library_list): New function.
6578 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6579 (svr4_read_so_list): New parameter "prev_lm".
6580 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6581 (svr4_current_sos): New function.
6582 (probe_and_action): New struct.
6583 (hash_probe_and_action): New function.
6584 (equal_probe_and_action): Likewise.
6585 (register_solib_event_probe): Likewise.
6586 (solib_event_probe_at): Likewise.
6587 (solib_event_probe_action): Likewise.
6588 (solist_update_full): Likewise.
6589 (solist_update_incremental): Likewise.
6590 (disable_probes_interface_cleanup): Likewise.
6591 (svr4_handle_solib_event): Likewise.
6592 (svr4_update_solib_event_breakpoint): Likewise.
6593 (svr4_update_solib_event_breakpoints): Likewise.
6594 (svr4_create_solib_event_breakpoints): Likewise.
6595 (enable_break): Free probes table before creating breakpoints.
6596 Use svr4_create_solib_event_breakpoints to create breakpoints.
6597 (svr4_solib_create_inferior_hook): Free the solib list.
6598 (_initialize_svr4_solib): Initialise
6599 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6600
6601 2013-06-04 Gary Benson <gbenson@redhat.com>
6602
6603 * target.h (target_ops): New field
6604 "to_augmented_libraries_svr4_read".
6605 (target_augmented_libraries_svr4_read): New macro.
6606 * target.c (update_current_target): Handle
6607 to_augmented_libraries_svr4_read.
6608 * remote.c (remote_state): New field
6609 "augmented_libraries_svr4_read".
6610 (remote_augmented_libraries_svr4_read_feature): New function.
6611 (remote_protocol_features): Add entry for
6612 "augmented-libraries-svr4-read".
6613 (remote_augmented_libraries_svr4_read): New function.
6614 (init_remote_ops): Initialize
6615 remote_ops.to_augmented_libraries_svr4_read.
6616
6617 2013-06-04 Gary Benson <gbenson@redhat.com>
6618
6619 * NEWS: Update.
6620
6621 2013-06-04 Gary Benson <gbenson@redhat.com>
6622
6623 * objfiles.h (inhibit_section_map_updates): New function
6624 declaration.
6625 (resume_section_map_updates): Likewise.
6626 (resume_section_map_updates_cleanup): Likewise.
6627 * objfiles.c (objfile_pspace_info): Removed field
6628 "objfiles_changed_p". New fields "new_objfiles_available",
6629 "section_map_dirty" and "inhibit_updates".
6630 (allocate_objfile): Set new_objfiles_available.
6631 (free_objfile): Set section_map_dirty.
6632 (objfile_relocate1): Likewise.
6633 (in_plt_section): Likewise.
6634 (find_pc_section): Update the conditions under which the
6635 section map will be updated.
6636 (inhibit_section_map_updates): New function.
6637 (resume_section_map_updates): Likewise.
6638 (resume_section_map_updates_cleanup): Likewise.
6639
6640 2013-06-04 Gary Benson <gbenson@redhat.com>
6641
6642 * probe.h (get_probe_argument_count): New declaration.
6643 (evaluate_probe_argument): Likewise.
6644 * probe.c (get_probe_argument_count): New function.
6645 (evaluate_probe_argument): Likewise.
6646 (probe_safe_evaluate_at_pc): Use the above new functions.
6647
6648 2013-06-04 Alan Modra <amodra@gmail.com>
6649
6650 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6651 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6652 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6653 target mem reads on optional insns.
6654 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6655 ppc_insns_match_pattern calls.
6656 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6657 Add match for power7 thread safety insns, and new order of
6658 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6659 invocation in comment, and update rest of comment.
6660 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6661 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6662 (ppc64_standard_linkage2_target): Update insn offsets.
6663 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6664 stubs first. Update calls.
6665
6666 2013-06-04 Yao Qi <yao@codesourcery.com>
6667
6668 * solib.c (solib_find): Don't need dir separator if path has
6669 drive spec.
6670
6671 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6672
6673 Revert (indirectly causes a SIGSEGV):
6674 * machoread.c (macho_symfile_read): Assign first cleanup to
6675 'back_to'.
6676
6677 2013-06-03 Yao Qi <yao@codesourcery.com>
6678
6679 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6680 mi-parse.c. Make them static.
6681 (mi_all_values): Likewise.
6682 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6683 mi_parse_print_values. Make it external.
6684 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6685 Remove the declarations.
6686 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6687 * mi/mi-parse.h (mi_parse_print_values): Declare.
6688 * mi/mi-cmd-stack.c: Include mi-parse.h.
6689 (parse_print_values): Remove
6690 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6691 of parse_print_values.
6692 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6693
6694 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6695 Yao Qi <yao@codesourcery.com>
6696
6697 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6698 (encode_actions): Move code to ...
6699 (all_tracepoint_actions_and_cleanup): ... here. New.
6700 (trace_dump_command): Likewise.
6701
6702 2013-05-30 Tom Tromey <tromey@redhat.com>
6703
6704 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6705
6706 2013-05-30 Tom Tromey <tromey@redhat.com>
6707
6708 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6709 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6710 'old_chain' argument. Add 'parser_result' argument.
6711 (gdb_xml_create_parser_and_cleanup): Remove old version.
6712 (gdb_xml_parse_quick): Update.
6713 (xml_process_xincludes): Update.
6714 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6715 declare.
6716
6717 2013-05-30 Tom Tromey <tromey@redhat.com>
6718
6719 * probe.c (collect_probes): Check arguments for NULL before
6720 calling compile_rx_or_error.
6721 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6722 Remove NULL return.
6723
6724 2013-05-30 Tom Tromey <tromey@redhat.com>
6725
6726 * infrun.c (adjust_pc_after_break): Introduce an outer null
6727 cleanup.
6728
6729 2013-05-30 Tom Tromey <tromey@redhat.com>
6730
6731 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6732
6733 2013-05-30 Tom Tromey <tromey@redhat.com>
6734
6735 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6736 for 'old_chain'. Do not check 'head' before processing
6737 cleanups.
6738
6739 2013-05-30 Tom Tromey <tromey@redhat.com>
6740
6741 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6742 "cleanup_tuple".
6743
6744 2013-05-30 Tom Tromey <tromey@redhat.com>
6745
6746 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6747 inner scope. Unconditionally call do_cleanups.
6748
6749 2013-05-30 Tom Tromey <tromey@redhat.com>
6750
6751 * source.c (find_and_open_source): Call do_cleanups.
6752
6753 2013-05-30 Tom Tromey <tromey@redhat.com>
6754
6755 * linux-thread-db.c (thread_db_load_search): Unconditionally
6756 call do_cleanups.
6757
6758 2013-05-30 Tom Tromey <tromey@redhat.com>
6759
6760 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6761 for 'cleanup'; instead use a later one.
6762
6763 2013-05-30 Tom Tromey <tromey@redhat.com>
6764
6765 * python/py-breakpoint.c (bppy_get_commands): Use
6766 explicit, unconditional return.
6767 * python/py-frame.c (frapy_read_var): Likewise.
6768 * python/python.c (gdbpy_decode_line): Likewise.
6769
6770 2013-05-30 Tom Tromey <tromey@redhat.com>
6771
6772 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6773 do_cleanups on all return paths.
6774
6775 2013-05-30 Tom Tromey <tromey@redhat.com>
6776
6777 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6778
6779 2013-05-30 Tom Tromey <tromey@redhat.com>
6780
6781 * stabsread.c (read_struct_type): Call do_cleanups along
6782 all return paths.
6783
6784 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6785
6786 * mips-linux-tdep.c: Adjust formatting throughout.
6787
6788 2013-05-30 Tom Tromey <tromey@redhat.com>
6789
6790 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6791 along all return paths.
6792
6793 2013-05-30 Tom Tromey <tromey@redhat.com>
6794
6795 * symfile.c (find_separate_debug_file): Call do_cleanups
6796 along all return paths.
6797
6798 2013-05-30 Tom Tromey <tromey@redhat.com>
6799
6800 * symtab.c (search_symbols): Introduce a null cleanup for
6801 'retval_chain'.
6802
6803 2013-05-30 Tom Tromey <tromey@redhat.com>
6804
6805 * python/py-value.c (valpy_binop): Call do_cleanups before
6806 exiting loop.
6807
6808 2013-05-30 Tom Tromey <tromey@redhat.com>
6809
6810 * python/py-prettyprint.c (print_children): Remove extra
6811 do_cleanups call.
6812
6813 2013-05-30 Tom Tromey <tromey@redhat.com>
6814
6815 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6816 all return paths.
6817
6818 2013-05-30 Tom Tromey <tromey@redhat.com>
6819
6820 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6821 along all return paths.
6822
6823 2013-05-30 Tom Tromey <tromey@redhat.com>
6824
6825 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6826 call do_cleanups.
6827
6828 2013-05-30 Tom Tromey <tromey@redhat.com>
6829
6830 * varobj.c (c_value_of_root): Call do_cleanups along all
6831 return paths.
6832
6833 2013-05-30 Tom Tromey <tromey@redhat.com>
6834
6835 * tracepoint.c (trace_dump_command): Unconditionally call
6836 do_cleanups.
6837
6838 2013-05-30 Tom Tromey <tromey@redhat.com>
6839
6840 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6841 do_cleanups earlier.
6842
6843 2013-05-30 Tom Tromey <tromey@redhat.com>
6844
6845 * machoread.c (macho_symfile_read): Assign first cleanup to
6846 'back_to'.
6847
6848 2013-05-30 Tom Tromey <tromey@redhat.com>
6849
6850 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6851
6852 2013-05-30 Tom Tromey <tromey@redhat.com>
6853
6854 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6855
6856 2013-05-30 Tom Tromey <tromey@redhat.com>
6857
6858 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6859 call discard_cleanups.
6860 (inf_ptrace_attach): Likewise.
6861
6862 2013-05-30 Tom Tromey <tromey@redhat.com>
6863
6864 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6865 return paths.
6866 (mips_initialize): Likewise.
6867 (common_open): Call do_cleanups.
6868
6869 2013-05-30 Tom Tromey <tromey@redhat.com>
6870
6871 * utils.c (internal_vproblem): Call do_cleanups.
6872
6873 2013-05-30 Tom Tromey <tromey@redhat.com>
6874
6875 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6876
6877 2013-05-30 Tom Tromey <tromey@redhat.com>
6878
6879 * cli/cli-script.c (setup_user_args): Don't return after error.
6880
6881 2013-05-30 Tom Tromey <tromey@redhat.com>
6882
6883 * somread.c (som_symtab_read): Call do_cleanups.
6884
6885 2013-05-30 Tom Tromey <tromey@redhat.com>
6886
6887 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6888
6889 2013-05-30 Tom Tromey <tromey@redhat.com>
6890
6891 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6892 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6893 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6894 * source.c (show_substitute_path_command): Call do_cleanups.
6895 (unset_substitute_path_command, set_substitute_path_command):
6896 Likewise.
6897 * symfile.c (load_command): Call do_cleanups.
6898
6899 2013-05-30 Tom Tromey <tromey@redhat.com>
6900
6901 * contrib/cleanup_check.py: New file.
6902 * contrib/gcc-with-excheck: Add option parsing.
6903
6904 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6905
6906 * windows-nat.c (windows_delete_thread): Add missing space
6907 in cast expression.
6908
6909 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6910
6911 * inferior.c (top level): Include tilde.h.
6912 (add_inferior_command): Call tilde_expand on the value of 'exec'
6913 argument.
6914
6915 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6916 Yao Qi <yao@codesourcery.com>
6917
6918 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6919 Caller update.
6920 (encode_actions): Likewise.
6921 * remote.c (remote_download_tracepoint): Caller update.
6922 * tracepoint.h (encode_actions): Update declaration.
6923
6924 2013-05-30 Pedro Alves <palves@redhat.com>
6925
6926 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6927 pointer.
6928
6929 2013-05-30 Yao Qi <yao@codesourcery.com>
6930
6931 * remote.c (remote_check_symbols): Remove unused parameter
6932 'objfile'.
6933 Declaration update.
6934 (remote_start_remote, remote_new_objfile): Caller update.
6935
6936 2013-05-30 Yao Qi <yao@codesourcery.com>
6937
6938 * mi/mi-cmds.c (mi_cmds): Define MI command
6939 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6940 DEF_MI_CMD_CLI.
6941
6942 2013-05-29 Pedro Alves <palves@redhat.com>
6943
6944 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6945 (remote_insert_watchpoint, remote_remove_watchpoint)
6946 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6947 (remote_verify_memory, compare_sections_command)
6948 (remote_search_memory): Set the general process/thread on the
6949 remote side.
6950
6951 2013-05-29 Pedro Alves <palves@redhat.com>
6952
6953 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6954 (_initialize_aarch64_tdep): Don't call
6955 initialize_tdesc_aarch64_without_fpu.
6956 * features/Makefile (WHICH): Remove reference to
6957 aarch64-without-fpu.
6958 * features/aarch64-without-fpu.c: Delete file.
6959 * regformats/aarch64-without-fpu.dat: Delete file.
6960
6961 2013-05-28 Yao Qi <yao@codesourcery.com>
6962
6963 * tracepoint.c (stringify_collection_list): Remove parameter
6964 'string'.
6965 (encode_actions): Caller update. Remove local variables.
6966
6967 2013-05-24 Yao Qi <yao@codesourcery.com>
6968
6969 * tracepoint.c (TFILE_PID): Remove.
6970 (tfile_open): Don't add thread and inferior.
6971 (tfile_close): Don't set 'inferior_ptid'. Don't call
6972 exit_inferior_silent.
6973 (tfile_thread_alive): Remove.
6974 (init_tfile_ops): Don't set field 'to_thread_alive' of
6975 tfile_ops.
6976
6977 2013-05-23 Doug Evans <dje@google.com>
6978
6979 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6980
6981 2013-05-23 Pedro Alves <palves@redhat.com>
6982
6983 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6984 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6985 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6986 Only define if HAVE_SOCKETS is defined.
6987 * configure.ac: Check for sys/socket.h.
6988 * config.in, configure: Regenerate.
6989
6990 2013-05-23 Pedro Alves <palves@redhat.com>
6991
6992 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6993 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6994 printing uint32_t variables.
6995
6996 2013-05-23 Pedro Alves <palves@redhat.com>
6997
6998 * NEWS: Mention GDBserver range stepping support.
6999
7000 2013-05-23 Yao Qi <yao@codesourcery.com>
7001 Pedro Alves <palves@redhat.com>
7002
7003 * gdbthread.h (struct thread_control_state) <may_range_step>: New
7004 field.
7005 * infcmd.c (step_once, until_next_command): Enable range stepping.
7006 * infrun.c (displaced_step_prepare): Disable range stepping.
7007 (resume): Disable range stepping if stepping over a breakpoint or
7008 we have software watchpoints. If range stepping is enabled,
7009 assert the thread is in the stepping range.
7010 (clear_proceed_status_thread): Clear may_range_step.
7011 (handle_inferior_event): Disable range stepping as soon as we know
7012 the thread that hit the event. Re-enable it whenever we're going
7013 to step with a step range.
7014 * remote.c (struct vCont_action_support) <r>: New field.
7015 (use_range_stepping): New global.
7016 (remote_vcont_probe): Handle 'r' action.
7017 (append_resumption): Append an 'r' action if the thread may range
7018 step.
7019 (show_range_stepping): New function.
7020 (set_range_stepping): New function.
7021 (_initialize_remote): Call add_setshow_boolean_cmd to register the
7022 'set range-stepping' and 'show range-stepping' commands.
7023 * NEWS: Mention range stepping, the new vCont;r action, and the
7024 new "set/show range-stepping" commands.
7025
7026 2013-05-23 Yao Qi <yao@codesourcery.com>
7027 Pedro Alves <palves@redhat.com>
7028
7029 * remote.c (struct vCont_action_support): New struct.
7030 (struct remote_state) <support_vCont_t>: Remove field.
7031 <vCont_actions_support>: New field.
7032 (remote_vcont_probe, remote_stop_ns): Update.
7033
7034 2013-05-23 Yao Qi <yao@codesourcery.com>
7035 Pedro Alves <palves@redhat.com>
7036
7037 * gdbthread.h (pc_in_thread_step_range): New declaration.
7038 * thread.c (pc_in_thread_step_range): New function.
7039 * infrun.c (handle_inferior_event): Use it.
7040
7041 2013-05-23 Joel Brobecker <brobecker@adacore.com>
7042
7043 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
7044 of sprintf.
7045
7046 2013-05-22 Keith Seitz <keiths@redhat.com>
7047
7048 * ada-lang.c (is_known_support_routine): Add explicit free of
7049 'func_name' from find_frame_funname.
7050 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7051 for func_name from find_frame_funname.
7052 * python/py-frame.c (frapy_name): Add explicit free of
7053 'name' from find_frame_funname.
7054 * stack.c (find_frame_funname): Add comment explaining that
7055 funcp must be freed by the caller.
7056 Return copy of symbol names instead of pointers.
7057 (print_frame): Add a cleanup for 'funname' from
7058 find_frame_funname.
7059 * stack.h (find_frame_funname): Remove "const" from
7060 'funname' parameter.
7061
7062 2013-05-22 Tom Tromey <tromey@redhat.com>
7063
7064 PR c++/15401:
7065 * c-valprint.c (c_value_print): Use value_addr for
7066 references. Convert back to reference type with value_ref.
7067
7068 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7069
7070 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7071 unloaded DLL, it will be done by handle_solib_event. See
7072 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7073 details.
7074
7075 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7076
7077 * ui-out.c: Create typedef ui_out_level_p and define vector
7078 operations for that type.
7079 (struct ui_out): Use a vector instead of an array.
7080 (current_level): Return level from a vector.
7081 (push_level): Create a level in a vector.
7082 (pop_level): Delete a level in a vector.
7083 (ui_out_new): Create initial level zero level, and store in a
7084 vector.
7085 (ui_out_destroy): Add vector cleanup.
7086
7087 2013-05-22 Pedro Alves <palves@redhat.com>
7088
7089 * python/python-internal.h (gdb_Py_DECREF): Tag with
7090 "ARI: editCase function".
7091
7092 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7093
7094 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7095
7096 2013-05-21 Pedro Alves <palves@redhat.com>
7097
7098 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7099 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7100 * python/py-utils.c (py_decref): Don't check for NULL before
7101 calling Py_DECREF.
7102
7103 2013-05-21 Pedro Alves <palves@redhat.com>
7104
7105 * python/py-utils.c (py_decref): Remove extra braces.
7106 (gdb_pymodule_addobject): Remove extra braces.
7107 * python-internal.h (gdb_Py_DECREF): New static inline function.
7108 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7109
7110 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7111
7112 * breakpoints.c (detach_breakpoints): Do not
7113 detach breakpoints locations with loc_type bp_loc_other.
7114
7115 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 Workaround Python 2.6.
7118 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7119 a block.
7120
7121 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7122
7123 Code cleanup: constification.
7124 * solib.c (solib_ops): Make return type and ops variable type const.
7125 (set_solib_ops): Make the new_ops parameter and ops variable const.
7126 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7127 (solib_add, solib_keep_data_in_core, clear_solib)
7128 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7129 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7130 const.
7131 * solib.h (set_solib_ops): Make the new_ops parameter const.
7132
7133 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7134
7135 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7136 variable.
7137 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7138 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7139 (SYSTEM_GDBINIT_FILES): New variables.
7140 (all): Add stamp-system-gdbinit.
7141 (stamp-system-gdbinit): New rule.
7142 (clean-system-gdbinit, install-system-gdbinit)
7143 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7144 (install-only): Add dependency on install-system-gdbinit.
7145 (uninstall): Add dependency on uninstall-system-gdbinit.
7146 (clean): Add dependency on clean-system-gdbinit.
7147 * system-gdbinit/elinos.py: New file.
7148 * system-gdbinit/wrs-linux.py: New file.
7149
7150 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7151
7152 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7153
7154 2013-05-21 Hui Zhu <hui@codesourcery.com>
7155
7156 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7157 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7158 * mi/mi-cmd-break.c (ctype.h): New include.
7159 (gdb_obstack.h): New include.
7160 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7161 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7162 (mi_cmd_dprintf_insert): New.
7163 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7164 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7165
7166 2013-05-20 Tom Tromey <tromey@redhat.com>
7167
7168 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7169
7170 2013-05-20 Tom Tromey <tromey@redhat.com>
7171
7172 * python/py-value.c (valpy_get_dynamic_type): Simplify
7173 dynamic_type assignment. Use Py_XINCREF.
7174
7175 2013-05-20 Tom Tromey <tromey@redhat.com>
7176
7177 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7178
7179 2013-05-20 Tom Tromey <tromey@redhat.com>
7180
7181 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7182 (gdbpy_selected_frame): Move object-construction code
7183 out of TRY_CATCH.
7184
7185 2013-05-20 Tom Tromey <tromey@redhat.com>
7186
7187 * python/py-arch.c (gdbpy_initialize_arch): Use
7188 gdb_pymodule_addobject.
7189 * python/py-block.c (gdbpy_initialize_blocks): Use
7190 gdb_pymodule_addobject.
7191 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7192 gdb_pymodule_addobject.
7193 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7194 gdb_pymodule_addobject.
7195 * python/py-event.c (gdbpy_initialize_event_generic): Use
7196 gdb_pymodule_addobject.
7197 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7198 gdb_pymodule_addobject.
7199 * python/py-evts.c (add_new_registry): Use
7200 gdb_pymodule_addobject.
7201 (gdbpy_initialize_py_events): Likewise.
7202 * python/py-finishbreakpoint.c
7203 (gdbpy_initialize_finishbreakpoints): Use
7204 gdb_pymodule_addobject.
7205 * python/py-frame.c (gdbpy_initialize_frames): Use
7206 gdb_pymodule_addobject.
7207 * python/py-function.c (gdbpy_initialize_functions): Use
7208 gdb_pymodule_addobject.
7209 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7210 gdb_pymodule_addobject.
7211 * python/py-infthread.c (gdbpy_initialize_thread): Use
7212 gdb_pymodule_addobject.
7213 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7214 gdb_pymodule_addobject.
7215 * python/py-param.c (gdbpy_initialize_parameters): Use
7216 gdb_pymodule_addobject.
7217 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7218 gdb_pymodule_addobject.
7219 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7220 gdb_pymodule_addobject.
7221 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7222 gdb_pymodule_addobject.
7223 * python/py-type.c (gdbpy_initialize_types): Use
7224 gdb_pymodule_addobject.
7225 * python/py-utils.c (gdb_pymodule_addobject): New function.
7226 * python/py-value.c (gdbpy_initialize_values): Use
7227 gdb_pymodule_addobject.
7228 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7229 * python/python.c (_initialize_python): Use
7230 gdb_pymodule_addobject.
7231
7232 2013-05-20 Tom Tromey <tromey@redhat.com>
7233
7234 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7235 * python/py-param.c (get_set_value, get_show_value): Use
7236 explicit decrefs.
7237 * python/python.c (start_type_printers, apply_type_printers):
7238 Use explicit decrefs.
7239
7240 2013-05-20 Tom Tromey <tromey@redhat.com>
7241
7242 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7243 incref the module.
7244
7245 2013-05-20 Tom Tromey <tromey@redhat.com>
7246
7247 * python/python.c (gdbpy_run_events): Decref the result
7248 of PyObject_CallObject.
7249
7250 2013-05-20 Tom Tromey <tromey@redhat.com>
7251
7252 * python/py-symtab.c (set_sal): Use
7253 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7254 (symtab_and_line_to_sal_object): Update.
7255
7256 2013-05-20 Tom Tromey <tromey@redhat.com>
7257
7258 * python/py-param.c (compute_enum_values): Decref 'item'.
7259
7260 2013-05-20 Tom Tromey <tromey@redhat.com>
7261
7262 * mi/mi-main.c: Include python-internal.h.
7263 (mi_cmd_list_features): Check gdb_python_initialized.
7264 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7265 (python_inferior_exit, python_new_objfile, add_thread_object)
7266 (delete_thread_object, py_free_inferior): Check
7267 gdb_python_initialized.
7268 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7269 gdb_python_initialized.
7270 * python/py-type.c (save_objfile_types): Check
7271 gdb_python_initialized.
7272 * python/python-internal.h (gdb_python_initialized): Declare.
7273 * python/python.c (ensure_python_env): Throw exception if
7274 Python not initialized.
7275 (before_prompt_hook, source_python_script_for_objfile)
7276 (start_type_printers, apply_type_printers,
7277 free_type_printers): Check gdb_python_initialized.
7278 * varobj.c (varobj_get_display_hint)
7279 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7280 (install_new_value_visualizer, varobj_set_visualizer)
7281 (value_get_print_value): Check gdb_python_initialized.
7282
7283 2013-05-20 Tom Tromey <tromey@redhat.com>
7284
7285 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7286 Check errors.
7287 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7288 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7289 Check errors.
7290 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7291 Check errors.
7292 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7293 Check errors.
7294 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7295 Check errors.
7296 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7297 init function to return 'int'.
7298 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7299 Return 'int'. Check errors.
7300 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7301 Check errors.
7302 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7303 Return 'int'. Check errors.
7304 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7305 Check errors.
7306 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7307 Check errors.
7308 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7309 Check errors.
7310 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7311 Check errors.
7312 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7313 Check errors.
7314 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7315 Check errors.
7316 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7317 Check errors.
7318 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7319 Check errors.
7320 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7321 Check errors.
7322 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7323 Check errors.
7324 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7325 Check errors.
7326 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7327 Check errors.
7328 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7329 Check errors.
7330 * python/python-internal.h (gdbpy_initialize_auto_load,
7331 gdbpy_initialize_values, gdbpy_initialize_frames,
7332 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7333 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7334 gdbpy_initialize_blocks, gdbpy_initialize_types,
7335 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7336 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7337 gdbpy_initialize_finishbreakpoints,
7338 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7339 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7340 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7341 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7342 gdbpy_initialize_signal_event,
7343 gdbpy_initialize_breakpoint_event,
7344 gdbpy_initialize_continue_event,
7345 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7346 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7347 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7348 * python/python.c (gdb_python_initialized): New global.
7349 (gdbpy_initialize_events): Return 'int'. Check errors.
7350 (_initialize_python): Check errors. Set
7351 gdb_python_initialized.
7352
7353 2013-05-20 Tom Tromey <tromey@redhat.com>
7354
7355 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7356 Decref the reslut of PyObject_CallMethod.
7357
7358 2013-05-20 Tom Tromey <tromey@redhat.com>
7359
7360 * python/py-event.c (gdbpy_initialize_event_generic): Return
7361 early if PyType_Ready fails.
7362
7363 2013-05-20 Tom Tromey <tromey@redhat.com>
7364
7365 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7366 as 'default' in the switch.
7367
7368 2013-05-20 Tom Tromey <tromey@redhat.com>
7369
7370 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7371 get_addr_from_python calls out of TRY_CATCH.
7372 (infpy_write_memory, infpy_search_memory): Likewise.
7373 * python/py-utils.c (get_addr_from_python): Return negative
7374 value on error. Use TRY_CATCH.
7375 * python/python-internal.h (get_addr_from_python): Use
7376 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7377
7378 2013-05-20 Tom Tromey <tromey@redhat.com>
7379
7380 * python/py-event.c (evpy_emit_event): Decref the
7381 result of PyObject_CallFunctionObjArgs.
7382
7383 2013-05-20 Tom Tromey <tromey@redhat.com>
7384
7385 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7386 Correctly decref.
7387
7388 2013-05-20 Tom Tromey <tromey@redhat.com>
7389
7390 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7391
7392 2013-05-20 Tom Tromey <tromey@redhat.com>
7393
7394 * python/py-event.h (gdbpy_initialize_event_generic): Use
7395 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7396 * python/py-evts.c (add_new_registry): Use
7397 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7398 * python/python-internal.h
7399 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7400
7401 2013-05-20 Tom Tromey <tromey@redhat.com>
7402
7403 * python/py-arch.c (archpy_disassemble): Update.
7404 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7405 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7406 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7407 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7408 macro.
7409 (GDB_PY_HANDLE_EXCEPTION): Update.
7410 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7411
7412 2013-05-20 Tom Tromey <tromey@redhat.com>
7413
7414 * python/python-internal.h (events_object_type): Remove.
7415
7416 2013-05-20 Tom Tromey <tromey@redhat.com>
7417
7418 * python/py-event.h (evpy_emit_event): Use
7419 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7420 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7421 New macro.
7422
7423 2013-05-20 Tom Tromey <tromey@redhat.com>
7424
7425 * py-evtregistry.c (create_event_object): Decref
7426 eventregistry_object if PyList_New fails.
7427
7428 2013-05-20 Tom Tromey <tromey@redhat.com>
7429
7430 * py-cmd.c (gdbpy_string_to_argv): Check result of
7431 PyList_New.
7432
7433 2013-05-20 Tom Tromey <tromey@redhat.com>
7434
7435 * python/python.c (before_prompt_hook): Add cleanup to
7436 decref 'hook'.
7437
7438 2013-05-20 Tom Tromey <tromey@redhat.com>
7439
7440 * python/py-function.c (fnpy_init): Decref result of
7441 PyObject_GetAttrString.
7442
7443 2013-05-20 Tom Tromey <tromey@redhat.com>
7444
7445 * python/py-threadevent.c (get_event_thread): Use
7446 CPYCHECKER_RETURNS_BORROWED_REF.
7447 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7448 New define.
7449 (pspace_to_pspace_object, objfile_to_objfile_object)
7450 (find_thread_object): Use it.
7451
7452 2013-05-20 Tom Tromey <tromey@redhat.com>
7453
7454 * python/py-arch.c (arch_object_type): Use
7455 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7456 * python/py-block.c (block_syms_iterator_object_type):
7457 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7458 * python/py-bpevent.c (breakpoint_event_object_type):
7459 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7460 * python/py-cmd.c (cmdpy_object_type): Use
7461 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7462 * python/py-continueevent.c (continue_event_object_type):
7463 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7464 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7465 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7466 * python/py-events.h (thread_event_object_type):
7467 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7468 * python/py-evtregistry.c (eventregistry_object_type): Use
7469 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7470 * python/py-exitedevent.c (exited_event_object_type):
7471 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7472 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7473 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7474 * python/py-function.c (fnpy_object_type): Use
7475 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7476 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7477 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7478 * python/py-infthread.c (thread_object_type): Use
7479 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7480 * python/py-lazy-string.c (lazy_string_object_type):
7481 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7482 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7483 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7484 * python/py-objfile.c (objfile_object_type): Use
7485 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7486 * python/py-param.c (parmpy_object_type):
7487 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7488 * python/py-progspace.c (pspace_object_type):
7489 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7490 * python/py-signalevent.c (signal_event_object_type):
7491 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7492 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7493 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7494 * python/py-type.c (type_object_type, field_object_type)
7495 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7496 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7497 define.
7498 (value_object_type, block_object_type, symbol_object_type)
7499 (event_object_type, stop_event_object_type, breakpoint_object_type)
7500 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7501
7502 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7503
7504 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7505 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7506
7507 2013-05-20 Doug Evans <dje@google.com>
7508
7509 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7510 For Fission.
7511 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7512 reading_dwo_directly.
7513 (struct signatured_type): New member dwo_unit.
7514 (struct die_reader_specs): New member comp_dir.
7515 (create_signatured_type_table_from_index): Use malloc for
7516 all_type_units instead of objfile's obstack.
7517 (create_all_type_units): Ditto.
7518 (fill_in_sig_entry_from_dwo_entry): New function.
7519 (add_type_unit): New function.
7520 (lookup_dwo_signatured_type): New function.
7521 (lookup_dwp_signatured_type): New function.
7522 (lookup_signatured_type): New arg cu. All callers updated.
7523 (init_cu_die_reader): Initialize comp_dir.
7524 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7525 Change assert of matching type signatures to call error on mismatch.
7526 (lookup_dwo_unit): Add assert.
7527 (init_tu_and_read_dwo_dies): New function.
7528 (init_cutu_and_read_dies): Call it.
7529 (build_type_unit_groups): Handle case of no type unit groups created.
7530 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7531 (lookup_dwo_cutu): Tweak complaint.
7532 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7533 (dwarf2_per_objfile_free): Free all_type_units.
7534
7535 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7536
7537 * windows-nat.c (handle_unload_dll): Add missing empty line.
7538
7539 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7540
7541 * dwarf2read.c (prototyped_function_p): New function.
7542 (read_subroutine_type): Use it.
7543
7544 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7545
7546 * rs6000-aix-tdep.c: De-indent some example code provided
7547 as a comment.
7548
7549 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7550
7551 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7552 region is ok for a hardware watchpoint using the new ptrace interface
7553 on Power servers.
7554
7555 2013-05-17 Doug Evans <dje@google.com>
7556
7557 * NEWS: Mention new maintenance commands check-symtabs, and
7558 expand-symtabs, and renamed check-psymtabs.
7559 * psymtab.c (maintenance_check_psymtabs): Renamed from
7560 maintenance_check_symtabs. Only process already-expanded symbol
7561 tables.
7562 (_initialize_psymtab): Update.
7563 * symmisc.c (maintenance_check_symtabs): New function.
7564 (maintenance_expand_name_matcher): New function
7565 (maintenance_expand_file_matcher): New function
7566 (maintenance_expand_symtabs): New function.
7567 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7568 commands.
7569
7570 2013-05-17 Tom Tromey <tromey@redhat.com>
7571
7572 * python/py-inferior.c (infpy_read_memory): Don't call
7573 PyErr_SetString if PyObject_New fails.
7574 * python/py-frame.c (frame_info_to_frame_object): Don't call
7575 PyErr_SetString if PyObject_New fails.
7576
7577 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7578
7579 * acinclude.m4: Add check for dlopen in libdl.
7580 * configure.ac: Ditto.
7581 * configure: Regenerate.
7582
7583 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7584
7585 * frame.c (frame_stash): Convert to htab.
7586 (frame_addr_hash): New function.
7587 (frame_addr_hash_eq): New function.
7588 (frame_stash_create): Convert function to create
7589 a hash table.
7590 (frame_stash_add): Convert function to add an entry to a hash
7591 table.
7592 (frame_stash_find): Convert function to search the hash table.
7593 (frame_stash_invalidate): Convert function to empty the hash
7594 table.
7595 (get_frame_id): Only add to stash if a frame_id is created.
7596 (_initialize_frame): Call frame_stash_create.
7597
7598 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7599
7600 * configure.ac: Ensure MIG is available when building for GNU Hurd
7601 hosts.
7602 * configure: Regenerate.
7603
7604 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7605
7606 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7607
7608 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7609
7610 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7611 all cleanups are done before returning from this function.
7612
7613 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7614
7615 * utils.h: #include "exceptions.h".
7616 (enum errors): Remove partial declaration.
7617
7618 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7619
7620 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7621 * gdbarch.h, gdbarch.c: Regenerate.
7622 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7623 handling.
7624
7625 * rs6000-aix-tdep.h: New file.
7626 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7627 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7628 "xml-utils.h".
7629 (struct field_info, struct ld_info_desc): New types.
7630 (ld_info32_desc, ld_info64_desc): New static constants.
7631 (struct ld_info): New type.
7632 (rs6000_aix_extract_ld_info): New function.
7633 (rs6000_aix_shared_library_to_xml): Likewise.
7634 (rs6000_aix_ld_info_to_xml): Likewise.
7635 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7636 (rs6000_aix_init_osabi): Add call to
7637 set_gdbarch_core_xfer_shared_libraries_aix.
7638 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7639 Remove "xml-utils.h" include.
7640 (LdInfo): Delete typedef.
7641 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7642 Delete macros.
7643 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7644 Adjust code accordingly.
7645 (rs6000_core_ldinfo): Delete, folded into
7646 rs6000_aix_core_xfer_shared_libraries_aix.
7647 (rs6000_xfer_shared_library): Delete.
7648 (rs6000_xfer_shared_libraries): Reimplement.
7649
7650 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7651
7652 * record.c (record_goto_cmdlist): New.
7653 (cmd_record_goto): Split into this ...
7654 (cmd_record_goto_begin): ... this
7655 (cmd_record_goto_end): ... and this.
7656 (_initialize_record): Change "record goto" to prefix command.
7657 Add commands for "record goto begin" and "record goto end".
7658 Add an alias for "record goto start" to "record goto begin".
7659
7660 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 * linespec.c (convert_linespec_to_sals): New comment for
7663 SOURCE_FILENAME assignment.
7664
7665 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7666
7667 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7668 internal_warning.
7669
7670 2013-05-14 Tom Tromey <tromey@redhat.com>
7671
7672 * eval.c (parse_and_eval_long): Make 'exp' const.
7673 * value.h (parse_and_eval_long): Update.
7674
7675 2013-05-14 Tom Tromey <tromey@redhat.com>
7676
7677 * ui-file.c (gdb_fopen): Make arguments const.
7678 * ui-file.h (gdb_fopen): Make arguments const.
7679
7680 2013-05-14 Tom Tromey <tromey@redhat.com>
7681
7682 * remote.c (remote_set_trace_notes): Make arguments const.
7683 * target.c (update_current_target): Update cast.
7684 * target.h (to_set_trace_notes): Make arguments const.
7685
7686 2013-05-14 Tom Tromey <tromey@redhat.com>
7687
7688 * go32-nat.c (go32_terminal_info): Make 'args' const.
7689 * inferior.h (child_terminal_info): Update.
7690 * inflow.c (child_terminal_info): Make 'args' const.
7691 * target.c (default_terminal_info): Make 'args' const.
7692 (debug_to_terminal_save_ours): Likewise.
7693 * target.h (struct target_ops) <to_terminal_info>: Make argument
7694 const.
7695
7696 2013-05-13 Tom Tromey <tromey@redhat.com>
7697
7698 * gcore.c (create_gcore_bfd): Make 'filename' const.
7699 * gcore.h (create_gcore_bfd): Make 'filename' const.
7700 * record-full.c (record_full_save): Make 'recfilename' const.
7701 * target.c (target_save_record): Make 'filename' const.
7702 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7703 const.
7704 (target_save_record): Likewise.
7705
7706 2013-05-13 Tom Tromey <tromey@redhat.com>
7707
7708 PR gdb/15338:
7709 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7710 ranges section has been read.
7711
7712 2013-05-13 Tom Tromey <tromey@redhat.com>
7713
7714 PR exp/15364:
7715 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7716 STRUCTOP_PTR>: Return a not_lval value for
7717 EVAL_AVOID_SIDE_EFFECTS.
7718 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7719 for EVAL_AVOID_SIDE_EFFECTS.
7720
7721 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7722
7723 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7724 floating point registers to register type before storing
7725 value.
7726 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7727 Likewise.
7728
7729 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7730 Tom Tromey <tromey@redhat.com>
7731
7732 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7733 New functions.
7734 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7735 Declare.
7736 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7737 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7738 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7739 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7740
7741 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7742 Tom Tromey <tromey@redhat.com>
7743
7744 PR build/15414:
7745 * configure: Rebuild.
7746 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7747 with -Wno-format.
7748
7749 2013-05-10 Pedro Alves <palves@redhat.com>
7750
7751 * remote.c (_initialize_remote): Fix spelling of
7752 qXfer:traceframe-info:read packet in packet config command.
7753
7754 2013-05-10 David Taylor <dtaylor@emc.com>
7755
7756 PR remote/15455
7757
7758 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7759 "QTro" at start of packet.
7760
7761 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7762
7763 * solib-aix.c (solib_aix_relocate_section_addresses):
7764 For the .bss section action, apply the same offset as
7765 the .data section.
7766
7767 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7768
7769 * solib-aix.c (solib_aix_relocate_section_addresses):
7770 Remove FIXME comment.
7771
7772 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7773
7774 PR tdep/15420:
7775 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7776 New functions, directly copied from sparc-sol-thread.c.
7777 * sparc-sol-thread.c: Delete.
7778 * configure.ac: Remove code handling sparc-solaris-thread.c.
7779 * configure: Regenerate.
7780
7781 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7782
7783 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7784 filter logic.
7785 (backtrace_command): Add "no-filters" option parsing.
7786 (_initialize_stack): Alter help to reflect "no-filters" option.
7787 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7788 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7789 (py-frame.o): Add target
7790 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7791 filter files.
7792 * python/python.h: Add new frame filter constants, and flag enum.
7793 (apply_frame_filter): Add definition.
7794 * python/python.c (apply_frame_filter): New non-Python
7795 enabled function.
7796 * python/py-utils.c (py_xdecref): New function.
7797 (make_cleanup_py_xdecref): Ditto.
7798 * python/py-objfile.c: Declare frame_filters dictionary.
7799 (objfpy_dealloc): Add frame_filters dealloc.
7800 (objfpy_new): Initialize frame_filters attribute.
7801 (objfile_to_objfile_object): Ditto.
7802 (objfpy_get_frame_filters): New function.
7803 (objfpy_set_frame_filters): New function.
7804 * python/py-progspace.c: Declare frame_filters dictionary.
7805 (pspy_dealloc): Add frame_filters dealloc.
7806 (pspy_new): Initialize frame_filters attribute.
7807 (pspacee_to_pspace_object): Ditto.
7808 (pspy_get_frame_filters): New function.
7809 (pspy_set_frame_filters): New function.
7810 * python/py-framefilter.c: New file.
7811 * python/lib/gdb/command/frame_filters.py: New file.
7812 * python/lib/gdb/frames.py: New file.
7813 * python/lib/gdb/__init__.py: Initialize global frame_filters
7814 dictionary
7815 * python/lib/gdb/FrameDecorator.py: New file.
7816 * python/lib/gdb/FrameIterator.py: New file.
7817 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7818 * mi/mi-cmds.h: Declare.
7819 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7820 --no-frame-filter logic, and Python frame filter logic.
7821 (stack_enable_frame_filters): New function.
7822 (parse_no_frame_option): Ditto.
7823 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7824 filter logic.
7825 (mi_cmd_stack_list_locals): Ditto.
7826 (mi_cmd_stack_list_args): Ditto.
7827 (mi_cmd_stack_list_variables): Ditto.
7828 * NEWS: Add frame filter note.
7829
7830 2013-05-09 Doug Evans <dje@google.com>
7831
7832 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7833 All callers updated.
7834 (syms_from_objfile): Ditto. Make static.
7835 (symbol_file_add_with_addrs): Renamed from
7836 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7837 num_offsets. All callers updated.
7838 * symfile.h (syms_from_objfile): Delete.
7839
7840 * symfile.c (decrement_reading_symtab): Add assert.
7841 (increment_reading_symtab): Ditto.
7842
7843 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7844
7845 * source.c (forward_search_command): Replace call to getc
7846 by call to fgetc.
7847 (reverse_search_command): Likewise.
7848
7849 2013-05-08 Doug Evans <dje@google.com>
7850
7851 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7852 matching test.
7853
7854 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7855
7856 * sol-thread.c (info_cb): Factorize the code a little.
7857
7858 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7859
7860 * sol-thread.c (info_cb): Rework the output of the "maintenance
7861 info sol-threads" command a bit.
7862
7863 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7864
7865 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7866 Replace ti.ti_startfunc by ti.ti_pc.
7867
7868 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7869
7870 * solib-aix.c (solib_aix_free_library_list): New function
7871 for the case where HAVE_LIBEXPAT is not defined.
7872
7873 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7874
7875 PR breakpoints/15413:
7876 * breakpoint.c (condition_completer): Simplify the code to
7877 disconsider multiple locations of breakpoints when completing the
7878 "condition" command.
7879
7880 2013-05-07 Pierre Muller <muller@sourceware.org>
7881
7882 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7883 instead of <sys/wait.h>.
7884
7885 2013-05-07 Pierre Muller <muller@sourceware.org>
7886
7887 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7888 trailing new line from warning message.
7889
7890 2013-05-07 Pierre Muller <muller@sourceware.org>
7891
7892 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7893 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7894
7895 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7896
7897 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7898 error message (ARI fix).
7899
7900 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7901
7902 * features/library-list-aix.dtd: Replace library-list by
7903 library-list-aix.
7904 * rs6000-nat.c: Replace library-list by library-list-aix
7905 throughout.
7906 * solib-aix.c: Likewise.
7907
7908 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7909
7910 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7911 Renames TARGET_OBJECT_AIX_LIBRARIES.
7912 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7913 TARGET_OBJECT_LIBRARIES_AIX throughout.
7914 * solib-aix.c: Likwise.
7915
7916 2013-05-07 Yao Qi <yao@codesourcery.com>
7917
7918 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7919 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7920
7921 2013-05-07 Yao Qi <yao@codesourcery.com>
7922
7923 * solib-dsbt.c (enable_break): Declare.
7924 (dsbt_current_sos): Remove call to enable_break2.
7925 (enable_break2): Rename to enable_break. Set solib breakpoint
7926 on '_dl_debug_state'.
7927 (enable_break): Remove.
7928
7929 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7930
7931 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7932 debug state prior to replicating existing hardware watchpoints or
7933 breakpoints.
7934
7935 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7936
7937 * gcore.c (gcore_create_callback): Ignore sections with
7938 separate_debug_objfile_backlink != NULL.
7939
7940 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7941 Andrew Jenner <andrew@codesourcery.com>
7942 Chung-Lin Tang <cltang@codesourcery.com>
7943 Julian Brown <julian@codesourcery.com>
7944
7945 Based on the nios2-elf port from Altera Corporation.
7946
7947 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7948 nios2-linux-tdep.o.
7949 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7950 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7951 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7952 * nios2-tdep.h: New.
7953 * nios2-tdep.c: New.
7954 * nios2-linux-tdep.c: New.
7955 * features/Makefile (WHICH): Add nios2-linux.
7956 (nios2-linux-expedite): Set.
7957 * features/nios2-cpu.xml: New.
7958 * features/nios2.xml: New.
7959 * features/nios2-linux.xml: New.
7960 * features/nios2.c: New (autogenerated).
7961 * features/nios2-linux.c: New (autogenerated).
7962 * regformats/nios2-linux.dat: New (autogenerated).
7963 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7964 and commands.
7965
7966 2013-05-06 Doug Evans <dje@google.com>
7967
7968 * symfile.c: Whitespace cleanup.
7969
7970 * solist.h (struct target_so_ops): New member clear_so.
7971 * solib-svr4.c (svr4_clear_so): New function.
7972 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7973 * solib.c (clear_so): Renamed from free_so_symbols.
7974 All callers updated. Call target clear_so if it exists.
7975
7976 2013-05-06 Tom Tromey <tromey@redhat.com>
7977
7978 * ada-lang.c (ada_value_primitive_packed_val): Don't
7979 call value_incref.
7980 * value.c (set_value_parent): Incref the new parent and decref
7981 the old parent.
7982 (value_copy, value_primitive_field): Use set_value_parent.
7983
7984 2013-05-06 Tom Tromey <tromey@redhat.com>
7985
7986 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7987 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7988 if needed.
7989 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7990 * dwarf2read.c (write_constant_as_bytes)
7991 (dwarf2_fetch_constant_bytes): New functions.
7992
7993 2013-05-06 Tom Tromey <tromey@redhat.com>
7994
7995 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7996 parameters.
7997 (dwarf2_const_value_attr): Update.
7998
7999 2013-05-06 Tom Tromey <tromey@redhat.com>
8000
8001 * somread.c (som_symfile_offsets): Add 'const' to addrs.
8002 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
8003 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
8004 Remove declaration.
8005
8006 2013-05-06 Tom Tromey <tromey@redhat.com>
8007
8008 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
8009 objfile's obstack.
8010
8011 2013-05-06 Doug Evans <dje@google.com>
8012
8013 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
8014 * stabsread.h (process_one_symbol): Update declaration.
8015 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
8016 * elfread.c (elf_symfile_relocate_probe): Ditto.
8017 * psymtab.c (relocate_psymtabs): Ditto.
8018 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
8019 (objfile_relocate): Ditto.
8020 * objfiles.h (objfile_relocate): Update declaration.
8021 * symfile.c (relative_addr_info_to_section_offsets): Constify
8022 addrs parameter.
8023 (default_symfile_offsets): Ditto.
8024 (syms_from_objfile_1): Constify offsets parameter.
8025 (syms_from_objfile): Ditto.
8026 (symbol_file_add_with_addrs_or_offsets): Ditto.
8027 (symfile_map_offsets_to_segments): Constify data parameter.
8028 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
8029 delta parameters of member relocate.
8030 (struct sym_probe_fns): Constify new_offsets,
8031 delta parameters of member sym_relocate_probe.
8032 (struct sym_fns): Constify section_addr_info parameter of member
8033 sym_offsets.
8034 (relative_addr_info_to_section_offsets): Update declaration.
8035 (default_symfile_offsets): Ditto.
8036 (syms_from_objfile): Ditto.
8037 (symfile_map_offsets_to_segments): Ditto.
8038
8039 * symfile.c (syms_from_objfile_1): Use correct section count when
8040 objfile->sf == NULL.
8041
8042 2013-05-06 Mike Frysinger <vapier@gentoo.org>
8043
8044 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
8045
8046 2013-05-06 Doug Evans <dje@google.com>
8047
8048 * psympriv.h (struct partial_symtab): Augment comment for member
8049 section_offsets.
8050
8051 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8052
8053 Reimplement shared library support on ppc-aix...
8054 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8055 * features/library-list-aix.dtd: New file.
8056 * solib-aix.h, solib-aix.c: New file.
8057 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8058 (rs6000_find_toc_address_hook): Delete.
8059 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8060 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8061 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8062 "xml-utils.h".
8063 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8064 (vmap_symtab, fixup_breakpoints): Delete.
8065 (rs6000_xfer_shared_libraries): New function.
8066 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8067 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8068 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8069 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8070 (rs6000_xfer_shared_library): New function.
8071 (find_toc_address): Delete.
8072 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8073 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8074 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8075 before creating minimal symbol. Adjust function description
8076 accordingly.
8077 (scan_xcoff_symtab): Replace call to
8078 prim_record_minimal_symbol_and_info by call to
8079 record_minimal_symbol.
8080 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8081 around default_symfile_offsets.
8082 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8083 powerpc-aix targets.
8084 * config/rs6000/nm-rs6000.h: Delete.
8085 * config/powerpc/aix.mh (NAT_FILE): Delete.
8086 (NATDEPFILES): Remove xcoffsolib.o.
8087 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8088 (ALL_TARGET_OBS): Add solib-aix.o.
8089 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8090 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8091 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8092 * xcoffsolib.h, xcoffsolib.c: Delete.
8093
8094 * solib.c (reload_shared_libraries): Remove reference to
8095 SOLIB_CREATE_INFERIOR_HOOK.
8096 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8097 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8098 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8099 comment.
8100 * corelow.c (deprecated_core_resize_section_table): Delete.
8101 * exec.c: Remove include of xcoffsolib.h".
8102 (map_vmap, vmap): Delete.
8103 (exec_close_1): Remove references to vmap.
8104 (exec_file_attach): Remove vmap handling code, and reference
8105 to DEPRECATED_IBM6000_TARGET.
8106 (bfdsec_to_vmap): Delete.
8107 (exec_files_info): Remove block of code handling VMAP.
8108 * infcmd.c (post_create_inferior): Remove reference to
8109 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8110 * infrun.c (follow_exec): Remove reference to
8111 SOLIB_CREATE_INFERIOR_HOOK.
8112 * stack.c (print_frame): Remove reference to PC_SOLIB.
8113 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8114 (dsbt_relocate_main_executable): Likewise.
8115 * solib-frv.c (frv_current_sos): Likewise.
8116
8117 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8118
8119 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8120 to target_write_memory and target_read_memory.
8121
8122 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8123
8124 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8125 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8126
8127 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8128
8129 * darwin-nat.c: Replace all "%x" instances in format strings
8130 into "0x%x" throughout.
8131
8132 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8133
8134 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8135 gdb_assert by call to MACH_CHECK_ERROR.
8136 (darwin_attach_pid): Raise an error rather than a failed
8137 assertion when various system calls failed. Report a warning
8138 instead of raising a failed assertion when PREV_NOT is not NULL
8139 after call to mach_port_request_notification.
8140 (darwin_ptrace_me): Raise an error rather than a failed
8141 assertion when read returns nonzero.
8142
8143 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8144
8145 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8146
8147 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8148
8149 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8150
8151 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8152
8153 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8154 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8155 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8156 a stale cleanup. Fix double free of NAME.
8157
8158 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8159
8160 * windows-nat.c (windows_delete_thread): Accept an additional
8161 argument, the thread's exit code, and announce thread death when
8162 print_thread_events is non-zero and we are deleting a thread that
8163 is not the main thread.
8164 (get_windows_debug_event): Pass thread exit code to
8165 windows_delete_thread.
8166
8167 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8168
8169 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8170 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8171 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8172 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8173 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8174 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8175 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8176 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8177 (gdbarch_tdep): New struct.
8178 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8179 E_NUM_REGS.
8180 (v850e3v5_register_name): New function.
8181 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8182 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8183 code handling the struct return conventions for the RH850 ABI.
8184 Update all callers.
8185 (v850_eight_byte_align_p): New function.
8186 (v850_push_call_dummy): Push structs by value, not by reference
8187 for the RH850 ABI. Add support for eight byte alignment.
8188 (v850_dbtrap_breakpoint_from_pc): New function.
8189 (v850_gdbarch_init): Add ABI detection code. Register
8190 v850e3v5_register_name for the v850e3v5 architecture. Set the
8191 number of registers for v850e3v5. Register
8192 v850_dbtrap_breakpoint_from_pc as appropriate.
8193 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8194
8195 2013-05-03 Doug Evans <dje@google.com>
8196
8197 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8198 of bfd_count_sections.
8199 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8200 * symfile.c (default_symfile_offsets): Ditto.
8201 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8202 one entry, not bfd_count_sections entries.
8203
8204 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8205
8206 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8207 `save' and `restore' register groups. Don't include SPL
8208 or SPH in these groups.
8209 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8210 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8211 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8212 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8213 dwarf2_append_unwinders().
8214
8215 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8216
8217 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8218 ignore SIGINT and SIGTRAP in case these internal signals are
8219 caught explicitely.
8220
8221 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8222
8223 * darwin-nat.c (darwin_read_write_inferior): Change types
8224 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8225 of copy_count to "mach_msg_type_number_t".
8226 (darwin_read_dyld_info): Change type of parameter
8227 rdaddr to "gdb_byte *".
8228
8229 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8230
8231 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8232 of &info->load_map from "char *" to "gdb_byte *".
8233
8234 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8235
8236 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8237 from "char *" to "gdb_byte *".
8238 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8239
8240 2013-04-30 Doug Evans <dje@google.com>
8241
8242 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8243 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8244 DWO stub. If DWO isn't found, just use stub.
8245 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8246
8247 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8248 calling init_cutu_and_read_dies.
8249
8250 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8251
8252 * target-descriptions.c (maint_print_c_tdesc_cmd):
8253 Add case to parse structures as register types and
8254 bitfields.
8255
8256 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8257
8258 * MAINTAINERS (Write After Approval): Add myself to the list.
8259
8260 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8261
8262 * sol-thread.c (rw_common): Change type of parameter "buf"
8263 to "gdb_byte *".
8264 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8265 rw_common to "gdb_byte *" instead of "char *".
8266
8267 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8268
8269 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8270 of local variable msym to const struct bound_minimal_symbol.
8271 Adjust use accordingly.
8272 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8273
8274 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8275
8276 * i386gnu-nat.c (CREG_OFFSET): New macro.
8277 (creg_offset): New array.
8278 (CREG_ADDR): Use creg_offset instead of reg_offset.
8279
8280 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8281
8282 * mep-tdep.c (mep_write_pc): Delete.
8283 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8284 Add call to set_gdbarch_pc_regnum.
8285
8286 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8287
8288 * common/filestuff.c: Replace #include <dirent.h> by
8289 #include "gdb_dirent.h".
8290
8291 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8292
8293 * common/filestuff.c: Replace #include <sys/stat.h> by
8294 #include "gdb_stat.h".
8295
8296 2013-04-29 Pierre Muller <muller@sourceware.org>
8297
8298 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8299 editCase function rule.
8300 (get_DW_AT_signature_type): Likewise.
8301
8302 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8303
8304 * m32r-tdep.c (m32r_write_pc): Delete.
8305 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8306 Add call to set_gdbarch_pc_regnum.
8307
8308 2013-04-29 Pierre Muller <muller@sourceware.org>
8309
8310 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8311
8312 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8313
8314 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8315
8316 2013-04-28 Yao Qi <yao@codesourcery.com>
8317
8318 * solib-dsbt.c (fetch_loadmap): Re-indent.
8319 (displacement_from_map, enable_break2): Likewise.
8320 (dsbt_relocate_section_addresses): Likewise.
8321
8322 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8323
8324 GDB 7.6 released.
8325
8326 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8327
8328 PR corefiles/14983:
8329 * dwarf2read.c (process_full_comp_unit): Always create a static
8330 block.
8331
8332 2013-04-25 Hui Zhu <hui@codesourcery.com>
8333
8334 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8335 to loc->cmd_bytecode.
8336
8337 2013-04-24 Doug Evans <dje@google.com>
8338
8339 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8340
8341 2013-04-22 Keith Seitz <keiths@redhat.com>
8342
8343 * tracepoint.c (trace_save): Call the writer's start method.
8344
8345 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8346
8347 PR gdb/10462
8348 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8349 before argument.
8350
8351 2013-04-23 Tom Tromey <tromey@redhat.com>
8352
8353 * common/filestuff.c: Check USE_WIN32API before including
8354 sys/socket.h.
8355 (HAVE_F_GETFD): New define.
8356 (mark_cloexec): Check HAVE_F_GETFD.
8357 (gdb_open_cloexec): Change 'mode' to unsigned long.
8358 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8359 (gdb_pipe_cloexec): Check HAVE_PIPE.
8360 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8361 long.
8362
8363 2013-04-23 Hui Zhu <hui@codesourcery.com>
8364
8365 PR gdb/15293
8366 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8367
8368 2013-04-23 Hui Zhu <hui@codesourcery.com>
8369
8370 PR gdb/15165
8371 * breakpoint.c (dprintf_print_recreate): New.
8372 (save_breakpoints): Let it not save dprintf commands.
8373 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8374
8375 2013-04-22 Tom Tromey <tromey@redhat.com>
8376
8377 PR gdb/7912:
8378 * Makefile.in (SFILES): Add filestuff.c
8379 (COMMON_OBS): Add filestuff.o.
8380 (filestuff.o): New target.
8381 * auto-load.c (auto_load_objfile_script_1): Use
8382 gdb_fopen_cloexec.
8383 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8384 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8385 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8386 * common/agent.c (gdb_connect_sync_socket): Use
8387 gdb_socket_cloexec.
8388 * common/filestuff.c: New file.
8389 * common/filestuff.h: New file.
8390 * common/linux-osdata.c (linux_common_core_of_thread)
8391 (command_from_pid, commandline_from_pid, print_source_lines)
8392 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8393 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8394 gdb_fopen_cloexec.
8395 * common/linux-procfs.c (linux_proc_get_int)
8396 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8397 * config.in, configure: Rebuild.
8398 * configure.ac: Don't check for sys/socket.h. Check for
8399 fdwalk, pipe2.
8400 * corelow.c (core_open): Use gdb_open_cloexec.
8401 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8402 * fork-child.c (fork_inferior): Call close_most_fds.
8403 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8404 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8405 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8406 Use gdb_fopen_cloexec.
8407 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8408 gdb_open_cloexec.
8409 (linux_async_pipe): Use gdb_pipe_cloexec.
8410 * remote-fileio.c (remote_fileio_func_open): Use
8411 gdb_open_cloexec.
8412 * remote.c (remote_file_put, remote_file_get): Use
8413 gdb_fopen_cloexec.
8414 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8415 close_most_fds.
8416 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8417 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8418 * solib.c (solib_find): Use gdb_open_cloexec.
8419 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8420 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8421 (tfile_open): Use gdb_open_cloexec.
8422 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8423 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8424 * xml-support.c (xml_fetch_content_from_file): Use
8425 gdb_fopen_cloexec.
8426 * main.c (captured_main): Call notice_open_fds.
8427
8428 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8429
8430 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8431 'char *' to 'gdb_byte *'.
8432 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8433 'gdb_byte'.
8434
8435 2013-04-22 Yao Qi <yao@codesourcery.com>
8436
8437 * infrun.c: Fix typo in comment.
8438
8439 2013-04-22 Andrew Haley <aph@redhat.com>
8440
8441 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8442 instead of "long".
8443
8444 2013-04-20 Yao Qi <yao@codesourcery.com>
8445
8446 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8447 'char *' to 'gdb_byte *'. Cast the return value of
8448 'bt_ctf_get_char_array' to 'gdb_byte *'.
8449
8450 2013-04-19 Pedro Alves <palves@redhat.com>
8451
8452 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8453 -Wpointer-sign.
8454 * configure: Regenerate.
8455
8456 2013-04-19 Pedro Alves <palves@redhat.com>
8457
8458 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8459 'void *'.
8460
8461 2013-04-19 Pedro Alves <palves@redhat.com>
8462
8463 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8464 Change type of 'myaddr' parameter to gdb_byte pointer.
8465 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8466 to 'long long' pointer instead of to 'unsigned long long'.
8467 (monitor_write_memory_block, monitor_read_memory_single)
8468 (monitor_read_memory): Change type of 'myaddr' parameter to
8469 gdb_byte pointer.
8470
8471 2013-04-19 Pedro Alves <palves@redhat.com>
8472
8473 * record.c (validate_history_size): Make parameter 'setting'
8474 unsigned.
8475
8476 2013-04-19 Pedro Alves <palves@redhat.com>
8477
8478 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8479 to 'gdb_byte *'.
8480
8481 2013-04-19 Pedro Alves <palves@redhat.com>
8482
8483 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8484 local to int.
8485
8486 2013-04-19 Pedro Alves <palves@redhat.com>
8487
8488 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8489 * ada-tasks.c (read_fat_string_value): Likewise.
8490
8491 2013-04-19 Pedro Alves <palves@redhat.com>
8492
8493 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8494 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8495 'offset', and adjust.
8496
8497 2013-04-19 Pedro Alves <palves@redhat.com>
8498
8499 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8500 (read_index_from_section): Add cast to 'char *'.
8501
8502 2013-04-19 Pedro Alves <palves@redhat.com>
8503
8504 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8505
8506 2013-04-19 Pedro Alves <palves@redhat.com>
8507
8508 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8509
8510 2013-04-19 Pedro Alves <palves@redhat.com>
8511
8512 * record-full.c (record_full_get_bookmark): Change local 'ret'
8513 type to char * and add cast to gdb_byte *.
8514 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8515 string.
8516 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8517
8518 2013-04-19 Pedro Alves <palves@redhat.com>
8519
8520 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8521 * python/py-prettyprint.c (print_string_repr): Change type of
8522 'output' local to char *. Add cast to gdb_byte * in
8523 LA_PRINT_STRING call.
8524 (print_children): Change type of 'output' local to char *.
8525 * python/py-value.c (valpy_string): Add cast to const char * in
8526 PyUnicode_Decode call.
8527
8528 2013-04-19 Pedro Alves <palves@redhat.com>
8529
8530 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8531 and change its type to 'const char *'. Adjust.
8532 (mips_send_packet): Add cast to 'char *', and remove cast to
8533 'unsigned char *'.
8534 (mips_receive_packet): Remove cast to 'unsigned char *'.
8535 (mips_load_srec): Use bfd_byte.
8536 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8537 (pmon_checkset): Make 'value' parameter unsigned.
8538
8539 2013-04-19 Pedro Alves <palves@redhat.com>
8540
8541 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8542
8543 2013-04-19 Pedro Alves <palves@redhat.com>
8544
8545 * remote.c (remote_write_bytes_aux, compare_sections_command)
8546 (remote_read_qxfer)
8547 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8548 (remote_hostio_readlink, remote_bfd_iovec_pread)
8549 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8550 binary buffer, and char when buffer is used as string.
8551 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8552 (trace_save, tfile_open, traceframe_walk_blocks)
8553 (tfile_fetch_registers): Likewise.
8554
8555 2013-04-19 Pedro Alves <palves@redhat.com>
8556
8557 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8558 buffer and size_t size. Adjust.
8559 * ser-base.h (ser_base_write): Adjust.
8560 * ser-go32.c (cnts): Change type to size_t.
8561 (dos_write): Change prototype -- take 'void *'
8562 buffer and size_t size. Adjust.
8563 (dos_info): Print elements of 'cnts' as unsigned long.
8564 * serial.c (serial_write): Likewise.
8565 * serial.h (serial_write): Adjust.
8566 (struct serial_ops) <write>: Change prototype -- take 'void *'
8567 buffer and size_t size. Adjust.
8568
8569 2013-04-19 Pedro Alves <palves@redhat.com>
8570
8571 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8572 gdb_byte *.
8573 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8574
8575 2013-04-19 Pedro Alves <palves@redhat.com>
8576
8577 * alpha-tdep.c (alpha_extract_return_value): Use
8578 regcache_cooked_read_unsigned to read 'v0'.
8579
8580 2013-04-19 Pedro Alves <palves@redhat.com>
8581
8582 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8583 parameters 'at', 'as' and 'offset' to uint32_t.
8584
8585 2013-04-19 Pedro Alves <palves@redhat.com>
8586
8587 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8588 'is64' to signed 'int'.
8589
8590 2013-04-19 Pedro Alves <palves@redhat.com>
8591
8592 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8593 parameter to int *.
8594
8595 2013-04-19 Pedro Alves <palves@redhat.com>
8596
8597 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8598 'insnbuf' buffer type to unsigned int[].
8599
8600 2013-04-19 Pedro Alves <palves@redhat.com>
8601
8602 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8603
8604 2013-04-19 Pedro Alves <palves@redhat.com>
8605
8606 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8607 unsigned long *.
8608
8609 2013-04-19 Pedro Alves <palves@redhat.com>
8610
8611 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8612 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8613 UINT_MAX.
8614 * mips-tdep.c (heuristic_fence_post): Change type to int.
8615 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8616
8617 2013-04-19 Pedro Alves <palves@redhat.com>
8618
8619 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8620 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8621 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8622
8623 2013-04-19 Pedro Alves <palves@redhat.com>
8624
8625 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8626 it to get a string view of the byte buffer.
8627 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8628 type to gdb_byte *. Adjust.
8629 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8630 Change local to char *.
8631 * solib-darwin.c (find_program_interpreter): Change return type to
8632 char *. Adjust.
8633 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8634 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8635 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8636 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8637 * solib-svr4.c (find_program_interpreter): Change return type to
8638 char *. Adjust.
8639 (enable_break): Change local 'interp_name' to char *.
8640 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8641 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8642 (spu_pseudo_register_write_spu): Use char for string buffer.
8643 Adjust.
8644 (info_spu_event_command, info_spu_signal_command): Add casts to
8645 'char *'.
8646
8647 2013-04-19 Pedro Alves <palves@redhat.com>
8648
8649 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8650 gdb_byte[].
8651 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8652 * ada-lang.c (ada_value_assign): Use gdb_byte.
8653 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8654 (alphanbsd_sigtramp_offset): Use gdb_byte.
8655 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8656 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8657 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8658 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8659 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8660 * arm-tdep.c (arm_stub_unwind_sniffer)
8661 (arm_displaced_init_closure): Use gdb_byte.
8662 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8663 (arm_default_thumb_le_breakpoint)
8664 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8665 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8666 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8667 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8668 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8669 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8670 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8671 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8672 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8673 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8674 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8675 (cris_store_return_value, cris_extract_return_value): Use
8676 gdb_byte.
8677 (constraint): Change type of parameter to char * from signed
8678 char*. Use gdb_byte.
8679 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8680 of local buffer to gdb_byte *.
8681 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8682 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8683 (add_address_entry): Change type of local buffer to gdb_byte[].
8684 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8685 (frv_push_dummy_call): Use gdb_byte.
8686 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8687 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8688 (hppa_hpux_supply_save_state): Use gdb_byte.
8689 * hppa-tdep.c (hppa32_push_dummy_call)
8690 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8691 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8692 (slotN_contents, replace_slotN_contents): Change type of parameter
8693 to gdb_byte *.
8694 (fetch_instruction, ia64_pseudo_register_write)
8695 (ia64_register_to_value, ia64_value_to_register)
8696 (ia64_extract_return_value, ia64_store_return_value)
8697 (ia64_push_dummy_call): Use gdb_byte.
8698 * m32c-tdep.c (m32c_return_value): Remove cast.
8699 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8700 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8701 gdb_byte.
8702 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8703 * mn10300-tdep.c (mn10300_store_return_value)
8704 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8705 gdb_byte.
8706 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8707 (moxie_process_record): Remove casts.
8708 * ppc-ravenscar-thread.c (supply_register_at_address)
8709 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8710 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8711 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8712 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8713 * remote.c (compare_sections_command): Use gdb_byte.
8714 * score-tdep.c (score7_free_memblock): Change type of parameter to
8715 gdb_byte *.
8716 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8717 gdb_byte *. Use gdb_byte.
8718 (sh_push_dummy_call_fpu): Use gdb_byte.
8719 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8720 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8721 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8722 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8723 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8724 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8725 (sh64_store_return_value, sh64_register_convert_to_virtual):
8726 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8727 (sh64_pseudo_register_write): Use gdb_byte.
8728 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8729 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8730 buffer.
8731 (irix_current_sos): Use gdb_byte.
8732 * solib-som.c (som_current_sos): Use gdb_byte.
8733 * sparc-ravenscar-thread.c (supply_register_at_address)
8734 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8735 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8736 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8737 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8738 'gdb_byte *'.
8739 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8740 'gdb_byte *'.
8741 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8742 * xstormy16-tdep.c (xstormy16_extract_return_value)
8743 (xstormy16_store_return_value): Change parameter type to
8744 'gdb_byte *'. Adjust.
8745 (xstormy16_push_dummy_call): Use gdb_byte.
8746 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8747 (call0_analyze_prologue, execute_code): Use gdb_byte.
8748
8749 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8750 Pedro Alves <palves@redhat.com>
8751
8752 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8753 value contents.
8754
8755 2013-04-17 Doug Evans <dje@google.com>
8756
8757 * dwarf2read.c (struct signatured_type): New member type.
8758 (struct attribute): Replace member signatured_type with signature.
8759 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8760 (read_call_site_scope): Call follow_die_ref instead of
8761 follow_die_ref_or_sig.
8762 (read_structure_type): Rewrite handling of signatured types.
8763 (read_enumeration_type): Ditto.
8764 (read_attribute_value): Update.
8765 (build_error_marker_type): New function.
8766 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8767 Don't call error for bad types, just build an error marker type.
8768 (dump_die_shallow): Update.
8769 (follow_die_sig_1): Renamed from follow_die_sig.
8770 Don't call error for bad types, instead return NULL.
8771 (follow_die_sig): New function.
8772 (get_signatured_type, get_DW_AT_signature_type): New functions.
8773
8774 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8775
8776 * aarch64-tdep.c (aarch64_write_pc): Removed.
8777 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8778 function.
8779
8780 2013-04-17 Yao Qi <yao@codesourcery.com>
8781
8782 * top.c (print_gdb_configuration): Print configure-time
8783 parameter on using libbabeltrace or not.
8784
8785 2013-04-16 Pedro Alves <palves@redhat.com>
8786
8787 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8788
8789 2013-04-16 Pedro Alves <palves@redhat.com>
8790
8791 * common/glibc_thread_db.h: Update from upstream glibc
8792 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8793
8794 2013-04-16 Pedro Alves <palves@redhat.com>
8795
8796 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8797 * common/glibc_thread_db.h: ... this new file ...
8798 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8799
8800 2013-04-16 Will Newton <will.newton@gmail.com>
8801 Pedro Alves <palves@redhat.com>
8802
8803 PR build/11881
8804
8805 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8806 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8807 HAVE_THREAD_DB_H.
8808
8809 2013-04-16 Pedro Alves <palves@redhat.com>
8810 Eli Zaretskii <eliz@gnu.org>
8811
8812 * NEWS: Mention "set foo unlimited".
8813
8814 2013-04-15 Doug Evans <dje@google.com>
8815
8816 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8817 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8818 (create_dwo_cu_reader): Renamed from
8819 create_dwo_debug_info_hash_table_reader.
8820 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8821 Remove support for multiple CUs in a DWO file.
8822 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8823
8824 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8825 instead of phex.
8826 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8827 (create_dwo_in_dwp): Ditto.
8828
8829 2013-04-15 Tom Tromey <tromey@redhat.com>
8830
8831 * NEWS: Move recent entries into "since 7.6" section.
8832
8833 2013-04-15 Tom Tromey <tromey@redhat.com>
8834
8835 PR c++/13588:
8836 * NEWS: Update.
8837 * break-catch-throw.c (struct exception_catchpoint)
8838 <exception_rx, pattern>: New fields.
8839 (fetch_probe_arguments, dtor_exception_catchpoint)
8840 (check_status_exception_catchpoint)
8841 (print_one_detail_exception_catchpoint): New functions.
8842 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8843 Compile regular expression if needed.
8844 (extract_exception_regexp): New function.
8845 (catch_exception_command_1): Use extract_exception_regexp.
8846 (compute_exception): Use fetch_probe_arguments.
8847 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8848 and check_status fields.
8849 * cp-abi.c (cplus_typename_from_type_info): New function.
8850 * cp-abi.h (cplus_typename_from_type_info): Declare.
8851 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8852 * gdb_regex.h (compile_rx_or_error): Declare.
8853 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8854 comment.
8855 (init_gnuv3_ops): Set get_type_from_type_info field.
8856 * probe.c (compile_rx_or_error): Move...
8857 * utils.c (compile_rx_or_error): ... here.
8858
8859 2013-04-15 Tom Tromey <tromey@redhat.com>
8860
8861 PR c++/15176:
8862 * NEWS: Update.
8863 * break-catch-throw.c (compute_exception): New function.
8864 (exception_funcs): New global.
8865 (_initialize_break_catch_throw): Create $_exception.
8866 * cp-abi.c (cplus_type_from_type_info): New function.
8867 * cp-abi.h (cplus_type_from_type_info): Declare.
8868 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8869 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8870 (gnuv3_get_type_from_type_info): New functions.
8871 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8872
8873 2013-04-15 Tom Tromey <tromey@redhat.com>
8874
8875 * break-catch-throw.c (struct exception_names): New.
8876 (exception_functions): Change type.
8877 (re_set_exception_catchpoint): Look for SDT probes.
8878
8879 2013-04-15 Tom Tromey <tromey@redhat.com>
8880
8881 PR c++/10119:
8882 * break-catch-throw.c (exception_functions): New global.
8883 (gnu_v3_exception_catchpoint_ops): Move earlier.
8884 (struct exception_catchpoint): New.
8885 (classify_exception_breakpoint): Rewrite.
8886 (re_set_exception_catchpoint): New function.
8887 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8888 Allocate a struct exception_catchpoint.
8889 (catch_exception_command_1): Update.
8890 (initialize_throw_catchpoint_ops): Set 're_set' method.
8891
8892 2013-04-15 Tom Tromey <tromey@redhat.com>
8893
8894 * Makefile.in (SFILES): Add break-catch-throw.c
8895 (COMMON_OBS): Add break-catch-throw.o.
8896 * break-catch-throw.c: New file.
8897 * breakpoint.c: Move exception-catching code to new file.
8898 (ep_parse_optional_if_clause): No longer static.
8899 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8900
8901 2013-04-15 Tom Tromey <tromey@redhat.com>
8902
8903 PR c++/9065:
8904 * NEWS: Update.
8905 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8906 * c-exp.y (TYPEID): New token.
8907 (exp): Add new TYPEID productions.
8908 (ident_tokens): Add "typeid".
8909 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8910 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8911 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8912 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8913 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8914 case.
8915 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8916 (build_std_type_info_type, gnuv3_get_typeid_type)
8917 (gnuv3_get_typeid): New functions.
8918 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8919 new fields on ABI object.
8920 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8921 * std-operator.def (OP_TYPEID): New.
8922
8923 2013-04-15 Tom Tromey <tromey@redhat.com>
8924
8925 * elfread.c (elf_symtab_read): Install versioned symbol under
8926 unversioned name as well.
8927
8928 2013-04-15 Tom Tromey <tromey@redhat.com>
8929
8930 PR c++/11990:
8931 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8932 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8933 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8934 (gdb_demangle): New function.
8935 * cp-support.h (gdb_demangle): Declare.
8936 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8937 (dwarf2_name): Use gdb_demangle.
8938 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8939 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8940 suffixes from name.
8941 (gnuv3_print_method_ptr): Use gdb_demangle.
8942 * jv-lang.c (java_demangle): Use gdb_demangle.
8943 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8944 * language.c (unk_lang_demangle): Use gdb_demangle.
8945 * symtab.c (symbol_find_demangled_name)
8946 (demangle_for_lookup): Use gdb_demangle.
8947
8948 2013-04-15 Tom Tromey <tromey@redhat.com>
8949
8950 PR c++/12824:
8951 * NEWS: Update.
8952 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8953 New constant.
8954 (classify_exception_breakpoint): New function.
8955 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8956 (print_mention_exception_catchpoint)
8957 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8958 (catch_exception_command_1): Handle "rethrow" catchpoint.
8959 (catch_rethrow_command): New function.
8960 (_initialize_breakpoint): Add "catch rethrow" command.
8961
8962 2013-04-15 Pierre Muller <muller@sourceware.org>
8963
8964 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8965 set_gdbarch_write_pc as deprecated anymore.
8966
8967 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8968
8969 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8970 declarations.
8971
8972 2013-04-13 Yao Qi <yao@codesourcery.com>
8973
8974 * ctf.c (_initialize_ctf): Include "completer.h".
8975 Call add_target_with_completer instead of add_target.
8976
8977 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8978
8979 Fix GDB regression related to PR binutils/14813.
8980 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8981 * minidebug.c (lzma_close): Add return value comment.
8982 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8983 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8984 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8985
8986 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 * config.in: Regenerate.
8989
8990 2013-04-12 Tom Tromey <tromey@redhat.com>
8991
8992 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8993 const.
8994 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8995 (struct die_reader_specs) <buffer>: Likewise.
8996 (die_reader_func_ftype): Make 'info_ptr' const.
8997 (struct line_header) <include_dirs, statement_program_start,
8998 statement_program_end>: Now const.
8999 (struct file_entry) <name>: Likewise.
9000 (struct partial_die_info) <sibling>: Likewise.
9001 (struct dwarf_block) <data>: Likewise.
9002 (dwarf2_read_section): Remove cast.
9003 (dwarf2_get_section_info): Make 'bufp' const.
9004 (read_index_from_section): Constify.
9005 (dw2_get_file_names_reader): Make 'info_ptr' const.
9006 (dw2_get_primary_filename_reader): Likewise.
9007 (read_comp_unit_head): Make 'info_ptr' and return type const.
9008 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
9009 Likewise.
9010 (read_abbrev_offset): Constify.
9011 (dwarf2_create_include_psymtab): Make 'name' const.
9012 (create_debug_types_hash_table): Update.
9013 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
9014 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
9015 Constify.
9016 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
9017 (load_partial_comp_unit_reader): Make 'info_ptr' const.
9018 (read_comp_units_from_section): Constify.
9019 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
9020 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
9021 const.
9022 (dwarf2_compute_name, setup_type_unit_groups): Constify.
9023 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
9024 (create_dwp_hash_table, dwarf2_ranges_read)
9025 (dwarf2_record_block_ranges): Constify.
9026 (read_die_and_children, read_die_and_siblings_1)
9027 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
9028 const.
9029 (read_full_die_1, read_full_die): Make 'info_ptr' const.
9030 (abbrev_table_read_table): Constify.
9031 (load_partial_dies): Make 'info_ptr' const.
9032 (read_partial_die, read_attribute_value, read_attribute): Make
9033 'info_ptr' and return type const.
9034 (read_address, read_initial_length)
9035 (read_checked_initial_length_and_offset, read_offset)
9036 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
9037 const.
9038 (read_direct_string): Make 'buf' and return type const.
9039 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
9040 (read_indirect_string): Make return type const.
9041 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
9042 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
9043 'info_ptr' const.
9044 (read_str_index): Make return type const.
9045 (add_include_dir): Make 'include_dir' const.
9046 (add_file_name): Make 'name' const.
9047 (dwarf_decode_line_header): Constify.
9048 (psymtab_include_file_name): Make return type const.
9049 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9050 (dwarf2_start_subfile): Make 'filename' const.
9051 (dwarf2_const_value_attr): Make 'bytes' const.
9052 (read_signatured_type_reader): Make 'info_ptr' const.
9053 (decode_locdesc): Constify.
9054 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9055 const.
9056 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9057 'mac_end', and return type const.
9058 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9059 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9060 type const.
9061 (per_cu_header_read_in): Constify.
9062 * symfile.h (dwarf2_get_section_info): Update.
9063
9064 2013-04-12 Tom Tromey <tromey@redhat.com>
9065
9066 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9067
9068 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9069
9070 * NEWS: Mention "show configuration", --configuration.
9071 * top.c (print_gdb_configuration): New function, displays the
9072 details about GDB configure-time parameters.
9073 (print_gdb_version): Mention "show configuration".
9074 * cli/cli-cmds.c (show_configuration): New function.
9075 (_initialize_cli_cmds): Add the "show configuration" command.
9076 * main.c (captured_main) <print_configuration>: New static var.
9077 <long_options>: Use it.
9078 If --configuration was given, call print_gdb_configuration.
9079
9080 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9081 Pedro Alves <palves@redhat.com>
9082
9083 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9084 (generated_files): Add gcore.
9085 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9086 HAVE_NATIVE_GCORE_HOST.
9087 (gcore): New.
9088 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9089 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9090 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9091 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9092 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9093 Add HAVE_NATIVE_GCORE_HOST.
9094 * configure: Regenerate.
9095 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9096 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9097 AC_CONFIG_FILES for gcore.
9098 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9099 gdb_have_gcore.
9100 * gdb_gcore.sh: Rename to ...
9101 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9102 and GCORE_TRANSFORM_NAME substitutions.
9103
9104 Fix parsing tabs in ${gdb_target_obs}.
9105 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9106
9107 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9108
9109 * remote.c (unpush_and_perror): Add output message final dot.
9110
9111 2013-04-11 Yao Qi <yao@codesourcery.com>
9112
9113 * tracepoint.c (tfile_interp_line): Fit parameters line and
9114 utpp in one line.
9115
9116 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9117
9118 * solib.c (solib_map_sections): Remove code overwriting
9119 SO->SO_NAME with the bfd's filename.
9120
9121 2013-04-10 Pedro Alves <palves@redhat.com>
9122
9123 * cli/cli-decode.c (integer_unlimited_completer): New function.
9124 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9125 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9126 completer.
9127 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9128 (is_unlimited_literal): New function.
9129 (do_set_command): Handle literal "unlimited" arguments.
9130 * frame.c (_initialize_frame) <set backtrace limit>: Document
9131 "unlimited".
9132 * printcmd.c (_initialize_printcmd) <set print
9133 max-symbolic-offset>: Add help text.
9134 * record-full.c (_initialize_record_full) <set record full
9135 insn-number-max>: Likewise.
9136 * record.c (_initialize_record) <set record
9137 instruction-history-size, set record function-call-history-size>:
9138 Add help text.
9139 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9140 help text.
9141 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9142 Likewise.
9143 * source.c (_initialize_source) <set listsize>: Add help text.
9144 * utils.c (initialize_utils) <set height, set width>: Likewise.
9145 <set pagination>: Mention "set height unlimited".
9146 * valprint.c (_initialize_valprint) <set print elements, set print
9147 repeats>: Document "unlimited".
9148
9149 2013-04-10 Pedro Alves <palves@redhat.com>
9150
9151 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9152 instead of disconnect_tracing.
9153 * infcmd.c (detach_command, disconnect_command): Call
9154 query_if_trace_running. Adjust.
9155 * top.c: Include "tracepoint.h".
9156 (quit_target): Delete. Contents moved ...
9157 (quit_force): ... here. Wrap each stage of teardown in
9158 TRY_CATCH. Call disconnect_tracing before detaching.
9159
9160 2013-04-10 Hui Zhu <hui@codesourcery.com>
9161 Yao Qi <yao@codesourcery.com>
9162
9163 * configure.ac: Check libbabeltrace is installed.
9164 * config.in: Regenerate.
9165 * configure: Regenerate.
9166 * Makefile.in (LIBBABELTRACE): New.
9167 (CLIBS): Add LIBBABELTRACE.
9168 * ctf.c: Include "exec.h".
9169 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9170 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9171 (ctf_save_metadata_header): Define new type aliases in
9172 metadata.
9173 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9174 in metadata. Start a new faked packet for trace status.
9175 (ctf_write_status): Write trace status to CTF.
9176 (ctf_write_uploaded_tsv): Write TSV to CTF.
9177 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9178 (ctf_write_definition_end): End the faked packet.
9179
9180 (ctx, ctf_iter, trace_dirname): New.
9181 (start_pos): New variable.
9182 (ctf_destroy, ctf_open_dir, ctf_open): New.
9183 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9184 macros.
9185 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9186 (ctf_fetch_registers, ctf_xfer_partial): New.
9187 (ctf_get_trace_state_variable_value): New.
9188 (ctf_get_tpnum_from_frame_event): New.
9189 (ctf_get_traceframe_address): New.
9190 (ctf_trace_find, ctf_has_stack): New.
9191 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9192 (ctf_get_trace_status, ctf_read_status): New.
9193 (_initialize_ctf): New.
9194 * tracepoint.c (get_tracepoint_number): New
9195 (get_uploaded_tsv): Remove 'static'.
9196 (struct traceframe_info, trace_regblock_size): Move it to ...
9197 * tracepoint.h: ... here.
9198 (get_tracepoint_number): Declare it.
9199 (get_uploaded_tsv): Declare it.
9200
9201 * NEWS: Mention new configure option.
9202
9203 2013-04-10 Pedro Alves <palves@redhat.com>
9204 Hui Zhu <hui@codesourcery.com>
9205
9206 * breakpoint.c (dprintf_re_set): New.
9207 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9208 to dprintf_re_set.
9209
9210 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9211
9212 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9213 Remove solib-svr4.o from the list.
9214
9215 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9216
9217 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9218 Use gdb_assert_not_reached instead of invalid boolean expression.
9219
9220 2013-04-09 Pedro Alves <palves@redhat.com>
9221
9222 * remote.c (unpush_and_perror): New function.
9223 (readchar, remote_serial_write): Use it.
9224
9225 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9226
9227 * NEWS: Mention new btrace RSP packets.
9228
9229 2013-04-08 Tom Tromey <tromey@redhat.com>
9230
9231 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9232 long.
9233
9234 2013-04-08 Tom Tromey <tromey@redhat.com>
9235
9236 * maint.c (print_bfd_section_info): Print the section index.
9237 * symmisc.c (dump_msymbols): Print the section index.
9238
9239 2013-04-08 Tom Tromey <tromey@redhat.com>
9240
9241 PR symtab/8424:
9242 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9243 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9244 * breakpoint.c (resolve_sal_pc): Update.
9245 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9246 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9247 (minsym_lookup_iterator_cb): Use it.
9248 (default_read_var_value): Update.
9249 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9250 Update.
9251 * infcmd.c (jump_command): Update.
9252 * linespec.c (minsym_found): Update.
9253 * maint.c (maintenance_translate_address): Update.
9254 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9255 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9256 * parse.c (write_exp_msymbol): Update.
9257 * printcmd.c (address_info): Update.
9258 * psymtab.c (find_pc_sect_psymbol): Update.
9259 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9260 SYMBOL_OBJ_SECTION.
9261 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9262 Don't initialize SYMBOL_OBJ_SECTION.
9263 * spu-tdep.c (spu_catch_start): Update.
9264 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9265 * symmisc.c (dump_msymbols, print_symbol): Update.
9266 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9267 how fallback section is computed.
9268 (fixup_symbol_section): Update.
9269 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9270 Update.
9271 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9272 Initialize SYMBOL_SECTION.
9273 * symtab.h (struct general_symbol_info) <section>: Update comment.
9274 <obj_section>: Remove.
9275 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9276 (SYMBOL_OBJFILE): New macro.
9277
9278 2013-04-08 Tom Tromey <tromey@redhat.com>
9279
9280 * coffread.c (record_minimal_symbol): Update.
9281 * dbxread.c (record_minimal_symbol): Update.
9282 * elfread.c (record_minimal_symbol): Update.
9283 * machoread.c (macho_symtab_add_minsym): Update.
9284 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9285 Update.
9286 * minsyms.c (prim_record_minimal_symbol): Update.
9287 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9288 argument.
9289 (prim_record_minimal_symbol_and_info): Likewise.
9290 * minsyms.h (prim_record_minimal_symbol_full)
9291 (prim_record_minimal_symbol_and_info): Update.
9292 * symtab.c (allocate_symbol, initialize_symbol)
9293 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9294 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9295 Update.
9296
9297 2013-04-08 Tom Tromey <tromey@redhat.com>
9298
9299 PR symtab/8423:
9300 * solib-som.c (som_solib_section_offsets): Use BFD section
9301 indices. Set offsets for all sections.
9302 * somread.c (som_symtab_read): Compute BFD section for
9303 symbol. Use prim_record_minimal_symbol_and_info.
9304 (som_symfile_read): Fix comment.
9305 (struct find_section_offset_arg): New.
9306 (find_section_offset, set_section_index): New functions.
9307 (som_symfile_offsets): Use set_section_index to compute
9308 section indices.
9309
9310 2013-04-08 Tom Tromey <tromey@redhat.com>
9311
9312 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9313 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9314 gdb_bfd_section_index.
9315 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9316 New functions.
9317 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9318 Declare.
9319 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9320 Update.
9321 * objfiles.c (add_to_objfile_sections_full): New function.
9322 (add_to_objfile_sections): Use it.
9323 (build_section_table): Rewrite.
9324 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9325 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9326 (struct objfile) <sections>: Update comment.
9327 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9328 is NULL.
9329 (ALL_OBJSECTIONS): Use it.
9330 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9331 * solib-frv.c (frv_relocate_main_executable): Update.
9332 * solib-target.c (solib_target_relocate_section_addresses):
9333 Use gdb_bfd_section_index.
9334 * symfile.c (build_section_addr_info_from_section_table):
9335 Use gdb_bfd_section_index.
9336 (build_section_addr_info_from_bfd, place_section): Likewise.
9337 * symtab.c (fixup_section): Update.
9338 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9339
9340 2013-04-08 Tom Tromey <tromey@redhat.com>
9341
9342 * minsyms.h (struct bound_minimal_symbol): New.
9343 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9344 Remove objfile argument.
9345 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9346 Return bound_minimal_symbol.
9347 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9348 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9349 Return bound_minimal_symbol.
9350 (in_gnu_ifunc_stub): Update.
9351 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9352 Remove 'objfile_p' argument.
9353 (lookup_solib_trampoline_symbol_by_pc): Update.
9354 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9355 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9356 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9357 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9358 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9359 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9360 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9361 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9362 stack.c, symtab.c, tui/tui-disasm.c: Update.
9363
9364 2013-04-08 Tom Tromey <tromey@redhat.com>
9365
9366 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9367 Use symbol's obstack, not an objfile.
9368 * coffread.c (process_coff_symbol): Update.
9369 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9370 * jv-lang.c (add_class_symbol): Update.
9371 * mdebugread.c (new_symbol): Update.
9372 * minsyms.c (prim_record_minimal_symbol_full)
9373 (terminate_minimal_symbol_table): Update.
9374 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9375 * stabsread.c (define_symbol, read_enum_type): Update.
9376 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9377 Handle Ada specially.
9378 (symbol_set_language): Add 'obstack' argument.
9379 (symbol_set_names): Update.
9380 (symbol_natural_name, symbol_demangled_name): Always use
9381 ada_decode_symbol.
9382 * symtab.h (struct general_symbol_info)
9383 <language_specific::obstack>: New field.
9384 <ada_mangled>: New field.
9385 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9386 (symbol_set_language): Update.
9387
9388 2013-04-08 Tom Tromey <tromey@redhat.com>
9389
9390 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9391 Take an obstack, not an objfile.
9392 (symbol_set_names): Update.
9393 * symtab.h (symbol_set_demangled_name): Update.
9394
9395 2013-04-08 Tom Tromey <tromey@redhat.com>
9396
9397 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9398 allocate_symbol.
9399 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9400 (read_func_scope): Call allocate_template_symbol.
9401 (new_symbol_full): Call allocate_symbol.
9402 * jit.c (finalize_symtab): Call allocate_symbol.
9403 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9404 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9405 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9406 (common_block_end): Call allocate_symbol.
9407 * symtab.c (allocate_symbol, initialize_symbol)
9408 (allocate_template_symbol): New functions.
9409 * symtab.c (allocate_symbol, initialize_symbol)
9410 (allocate_template_symbol): Declare.
9411 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9412
9413 2013-04-08 Pedro Alves <palves@redhat.com>
9414 Keith Seitz <keiths@redhat.com>
9415
9416 * breakpoint.c (create_breakpoint): Rename
9417 "parse_condition_and_thread" parameter to "parse_arg". Update
9418 describing comment. If !PARSE_ARG, then error out if ARG is not
9419 the empty string after extracting the location.
9420 * breakpoint.h (create_breakpoint): Rename
9421 "parse_condition_and_thread" parameter to "parse_arg".
9422
9423 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9424
9425 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9426
9427 2013-04-07 Yao Qi <yao@codesourcery.com>
9428
9429 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9430 and 'addr2' to CORE_ADDR.
9431 * target.c (update_current_target): Update.
9432 * target.h (struct target_ops) <to_trace_find>: Change parameter
9433 type to CORE_ADDR.
9434 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9435 'addr2' to CORE_ADDR.
9436 (tfile_trace_find): Likewise.
9437 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9438 Change local variable 'addr' to type CORE_ADDR.
9439 * tracepoint.h (tfind_1): Update declaration.
9440
9441 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9442
9443 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9444 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9445 Include main.h.
9446
9447 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9448 here...
9449 * main.h (windows_get_absolute_argv0): ...to here.
9450
9451 2013-04-05 Doug Evans <dje@google.com>
9452
9453 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9454 (read_cutu_die_from_dwo): Add comments.
9455 (read_structure_type): Update comment.
9456 (read_enumeration_type, read_namespace_type): Update comment.
9457 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9458
9459 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9460
9461 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9462 * Makefile.in (gdb.z): Remove.
9463 (install-only): Remove $(man1dir) and gdb.1 installation.
9464 * gdb.1: Remove.
9465
9466 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9467
9468 Fix compatibility with Linux kernel 3.8.3.
9469 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9470 to more inner block. Remove parsing of NUMBER from outer block.
9471 Parse NUMBER only if KEYWORD has been identified.
9472
9473 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9474
9475 Fix variable name shadowing.
9476 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9477 filename to mapsfilename and update its uses.
9478
9479 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9480
9481 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9482 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9483 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9484 details of the problem.
9485
9486 2013-04-04 Pedro Alves <palves@redhat.com>
9487 Hui Zhu <hui@codesourcery.com>
9488
9489 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9490 tracepoint, reset its STEP_COUNT and call validate_actionline.
9491
9492 2013-04-03 Doug Evans <dje@google.com>
9493
9494 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9495 read_die_and_siblings.
9496 (read_die_and_siblings): New function.
9497 (read_cutu_die_from_dwo): Dump die if requested.
9498 (read_die_and_children): Call read_full_die_1 and
9499 read_die_and_siblings_1.
9500 (read_full_die): Dump die if requested.
9501
9502 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9503
9504 * dwarf2read.c (struct dwo_file): New member comp_dir.
9505 Rename member name to dwo_name. All uses updated.
9506 (hash_dwo_file): Include comp_dir in computation.
9507 (eq_dwo_file): Ditto.
9508 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9509 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9510
9511 * psymtab.c (read_psymtabs_with_fullname): Don't call
9512 psymtab_to_fullname if the basenames are different.
9513
9514 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9515
9516 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9517 New entry about "fullname" presence.
9518
9519 2013-04-03 Pedro Alves <palves@redhat.com>
9520
9521 * NEWS: Mention x86_64/Cygwin as new native configuration.
9522
9523 2013-04-02 Doug Evans <dje@google.com>
9524
9525 * dwarf2read.c (read_structure_type): Fix typo in comment.
9526
9527 2013-04-02 Pedro Alves <palves@redhat.com>
9528
9529 * NEWS: Mention "set/show debug aarch64", "set/show debug
9530 coff-pe-read" and "set/show debug mach-o".
9531
9532 2013-04-02 Pedro Alves <palves@redhat.com>
9533
9534 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9535
9536 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9537
9538 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9539 gdb_string.h is now in common/.
9540
9541 2013-04-02 Pedro Alves <palves@redhat.com>
9542
9543 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9544 under "New options".
9545
9546 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 Revert this patch:
9549 PR gdb/15275
9550 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9551
9552 2013-04-02 Pedro Alves <palves@redhat.com>
9553
9554 PR gdb/15275
9555
9556 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9557 (remote_serial_write): New function.
9558 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9559
9560 2013-04-01 Jiong Wang <jiwang@tilera.com>
9561
9562 * NEWS: Mention TILE-Gx in "New native configurations" and
9563 "New targets" sections.
9564
9565 2013-04-01 Doug Evans <dje@google.com>
9566
9567 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9568 (process_enumeration_scope): Simplify.
9569
9570 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9571 type_unit_group ...
9572 (struct signatured_type): ... to here.
9573 (sig_type_ptr): New typedef.
9574 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9575 out of union 't'. All uses updated.
9576 (dw2_get_file_names_reader): Assert not called for a type unit.
9577 (dw2_get_file_names): Assert not called for a type unit or type
9578 unit group.
9579 (build_type_psymtabs_reader): Assert called for a type unit.
9580 (build_type_psymtab_dependencies): Assert called for a type unit group.
9581
9582 * dwarf2read.c (free_dwo_file): Add comment.
9583 (dwarf2_per_objfile_free): Unref dwp bfd.
9584
9585 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9586
9587 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9588 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9589 (read_pe_exported_syms): Remove unused 'exportix'.
9590 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9591 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9592 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9593
9594 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9595
9596 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9597 (print_it_watchpoint): Remove unused 'bl'.
9598 (say_where): Remove unused 'uiout'.
9599 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9600 (bkpt_breakpoint_hit): Remove unused 'b'.
9601 (internal_bkpt_print_it): Remove unused 'uiout'.
9602 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9603
9604 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9605
9606 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9607 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9608
9609 2013-03-29 Doug Evans <dje@google.com>
9610
9611 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9612 Delete arg is_dwp. All callers updated.
9613 (open_dwp_file): New function.
9614 (open_and_init_dwp_file): Call it.
9615 (get_dwp_file): New function.
9616 (lookup_dwo_cutu): Call it.
9617
9618 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9619 unnecessary, cleanup.
9620
9621 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9622
9623 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9624 (lookup_dwo_unit): New function.
9625 (init_cutu_and_read_dies): Move DWO handling to new functions.
9626
9627 * dwarf2read.c (struct signatured_type): Tweak comment.
9628 (struct dwo_unit): Tweak comment.
9629 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9630 (create_dwo_debug_info_hash_table): Tweak comment.
9631 (dwarf2_per_cu_offset_and_type): Tweak comment.
9632
9633 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9634 missing .debug_types section.
9635
9636 2013-03-29 Yao Qi <yao@codesourcery.com>
9637
9638 * corelow.c: Include "completer.h".
9639 (_initialize_corelow): Call add_target_with_completer with
9640 argument 'filename_completer'.
9641 * tracepoint.c: Likewise.
9642 * exec.c (_initialize_exec): Likewise.
9643 * target.c (add_target): Rename to ...
9644 (add_target_with_completer): ... this. Call set_cmd_completer
9645 if parameter completer is not NULL.
9646 (add_target): New.
9647 * target.h: Include "command.h".
9648 (add_target_with_completer): Declare it.
9649
9650 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9651
9652 * coffread.c (is_import_fixup_symbol): New function.
9653 (record_minimal_symbol): Use is_import_fixup_symbol to
9654 detect import fixup symbols, and discard them.
9655
9656 2013-03-28 Doug Evans <dje@google.com>
9657
9658 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9659 types hash table until we know we need it.
9660
9661 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9662 index numbers.
9663
9664 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9665 All callers updated.
9666 (dw2_print_stats): Print #read CUs too.
9667 (dump_die_shallow): Print signatured types better.
9668
9669 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9670 info_or_types_section to section. All uses updated.
9671 (struct dwo_unit): Ditto.
9672
9673 2013-03-28 Pedro Alves <palves@redhat.com>
9674
9675 * NEWS (New options): New section.
9676 (New options): Mention set/show remote trace-status-packet.
9677 * remote.c (PACKET_qTStatus): New enumeration value.
9678 (remote_get_trace_status): Skip sending qTStatus if the packet is
9679 disabled. Use packet_ok.
9680 (_initialize_remote): Register a configuration command for
9681 qTStatus packet.
9682
9683 2013-03-28 Doug Evans <dje@google.com>
9684
9685 * symfile.c (find_separate_debug_file): Add comment.
9686 (terminate_after_last_dir_separator): Tweak comment.
9687
9688 * dwarf2read.c (create_partial_symtab): Add forward decl.
9689 (create_partial_symtab): Move to be closer to other psymtab functions.
9690 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9691
9692 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9693 (compute_symtab_includes): Remove unnecessary forward declaration.
9694 (die_needs_namespace): Add comment marking group of functions for
9695 dwarf2 name computation.
9696
9697 * typeprint.c (_initialize_typeprint): Improve type help text.
9698
9699 * python/python.c (finish_python_initialization): Provide suggestion
9700 for how to tell gdb to find its python files.
9701
9702 2013-03-28 Pedro Alves <palves@redhat.com>
9703
9704 PR gdb/15294
9705
9706 * source.c (_initialize_source): Change back "set listsize" to an
9707 integer command.
9708
9709 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9710
9711 PR gdb/15275
9712 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9713
9714 2013-03-27 Pedro Alves <palves@redhat.com>
9715
9716 * top.c (history_size): Rename to ...
9717 (history_size_setshow_var): ... this. Add comment.
9718 (show_commands): Use readline's 'history_length' instead of
9719 computing the history length by calling history_get in a loop.
9720 (set_history_size_command): Error out for sizes over INT_MAX.
9721 Restore previous history size on invalid size.
9722 (init_history): If HISTSIZE is negative, leave the history size as
9723 zero. Add comments.
9724 (init_main): Adjust.
9725
9726 2013-03-27 Pedro Alves <palves@redhat.com>
9727
9728 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9729 coff_pe_read" command to "set debug coff-pe-read".
9730
9731 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9732
9733 * record.c (command_size_to_target_size): Fix size comparison.
9734 Change parameter type from pointer to integer to integer.
9735 Update all users.
9736
9737 2013-03-27 Pierre Muller <muller@sourceware.org>
9738
9739 * windows-nat.c (handle_output_debug_string): Avoid typecast
9740 from integer of different size warning.
9741
9742 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9743
9744 * windows-nat.c (handle_output_debug_string): Add empty line
9745 after local block variable definition.
9746
9747 2013-03-26 Pedro Alves <palves@redhat.com>
9748
9749 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9750 (net_open): Make 'polls' local unsigned.
9751
9752 2013-03-26 Pedro Alves <palves@redhat.com>
9753
9754 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9755 a zuinteger command instead of uinteger.
9756
9757 2013-03-26 Pedro Alves <palves@redhat.com>
9758
9759 * record-full.c (record_full_insn_num): Make it unsigned.
9760 (record_full_check_insn_num, record_full_message)
9761 (record_full_registers_change, record_full_xfer_partial): Remove
9762 record_full_insn_max_num check (it's always != 0).
9763 (record_full_info, record_full_restore): Use %u as format string.
9764 (): Use %u as format string.
9765 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9766 check (it's always != 0).
9767
9768 2013-03-26 Pedro Alves <palves@redhat.com>
9769
9770 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9771 and "set dcache size" commands zuinteger instead of uinteger.
9772
9773 2013-03-26 Pedro Alves <palves@redhat.com>
9774
9775 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9776 command zuinteger instead of uinteger.
9777
9778 2013-03-26 Pedro Alves <palves@redhat.com>
9779
9780 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9781 zuinteger instead of uinteger.
9782
9783 2013-03-26 Pedro Alves <palves@redhat.com>
9784
9785 * record.c (record_insn_history_size_setshow_var)
9786 (record_call_history_size_setshow_var): New globals.
9787 (command_size_to_target_size): New function.
9788 (cmd_record_insn_history, cmd_record_call_history): Use
9789 command_size_to_target_size instead of cast.
9790 (validate_history_size, set_record_insn_history_size)
9791 (set_record_call_history_size): New functions.
9792 (_initialize_record): Install set_record_insn_history_size and
9793 set_record_call_history_size as "set" hooks of "set record
9794 instruction-history-size" and "set record
9795 function-call-history-size".
9796
9797 2013-03-26 Pedro Alves <palves@redhat.com>
9798
9799 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9800 use with history_max_entries use. Remove FIXME note.
9801
9802 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9803
9804 * record-btrace.c (record_btrace_close): Call
9805 record_btrace_auto_disable.
9806
9807 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9808
9809 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9810
9811 2013-03-25 Doug Evans <dje@google.com>
9812
9813 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9814
9815 2013-03-25 Tom Tromey <tromey@redhat.com>
9816
9817 PR symtab/11462:
9818 * c-exp.y (exp): Add new productions for destructors after '.' and
9819 '->'.
9820 (write_destructor_name): New function.
9821
9822 2013-03-25 Tom Tromey <tromey@redhat.com>
9823
9824 PR c++/9197:
9825 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9826 value_struct_elt, not lookup_struct_elt_type.
9827 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9828 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9829 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9830
9831 2013-03-25 Yao Qi <yao@codesourcery.com>
9832
9833 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9834 instead of '_mkdir'.
9835
9836 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9837
9838 * windows-nat.c (windows_get_absolute_argv0): New function.
9839 * windows-nat.h: Add its prototype.
9840
9841 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9842 Use IS_DIR_SEPARATOR instead of looking for a character inside
9843 SLASH_STRING. Include filenames.h.
9844 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9845 relocate_gdb_directory works when passed gdb_program_name.
9846 Include windows-nat.h.
9847
9848 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9851 * remote.c (trace_error): Remove the special handling of '2'.
9852 (readchar) <SERIAL_EOF>
9853 (readchar) <SERIAL_ERROR>
9854 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9855 (remote_get_trace_status): Call throw_exception if EX is
9856 TARGET_CLOSE_ERROR.
9857 * utils.c (perror_with_name): Rename to ...
9858 (throw_perror_with_name): ... here. New parameter errcode, describe it
9859 in the function comment.
9860 (perror_with_name): New function wrapper.
9861 * utils.h (enum errors): New stub declaration.
9862 (throw_perror_with_name): New declaration.
9863
9864 2013-03-22 Pedro Alves <palves@redhat.com>
9865 Yao Qi <yao@codesourcery.com>
9866 Mark Kettenis <kettenis@gnu.org>
9867
9868 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9869 Don't let the user set the value to UINT_MAX directly.
9870 <var_integer>: Don't let the user set the value to INT_MAX
9871 directly.
9872
9873 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 * remote.c (remote_unpush_target): New function.
9876 (remote_open_1): Remove two pop_target calls, update one comment, add
9877 comment to target_preopen call. Replace pop_target call by
9878 remote_unpush_target call.
9879 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9880 pop_target calls by remote_unpush_target calls.
9881
9882 2013-03-22 Pedro Alves <palves@redhat.com>
9883
9884 * linux-nat.c (linux_child_follow_fork): Don't call
9885 linux_enable_event_reporting.
9886 (linux_handle_extended_wait): Don't call
9887 linux_enable_event_reporting.
9888
9889 2013-03-22 Pedro Alves <palves@redhat.com>
9890
9891 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9892 use it to rewrite the trampoline buffers with type gdb_byte[], and
9893 undefine the macro. Remove char* cast.
9894
9895 2013-03-21 Doug Evans <dje@google.com>
9896
9897 New commands "mt set per-command {space,time,symtab} {on,off}".
9898 * NEWS: Add entry.
9899 * event-top.c: #include "maint.h".
9900 * main.c: #include "maint.h".
9901 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9902 timeval-utils.h, maint.h, cli/cli-setshow.h.
9903 (per_command_time, per_command_space): New static globals.
9904 (per_command_symtab): New static global.
9905 (per_command_setlist, per_command_showlist): New static globals.
9906 (struct cmd_stats): Move here from utils.c.
9907 (set_per_command_time): Renamed from set_display_time in utils.c
9908 and moved here. All callers updated.
9909 (set_per_command_space): Renamed from set_display_space in utils.c
9910 and moved here. All callers updated.
9911 (count_symtabs_and_blocks): New function.
9912 (report_command_stats): Moved here from utils.c. Add support for
9913 printing symtab stats. Only print data if enabled before command
9914 executed.
9915 (make_command_stats_cleanup): Ditto.
9916 (sert_per_command_cmd, show_per_command_cmd): New functions.
9917 (_initialize_maint_cmds): Add new commands
9918 mt set per-command {space,time,symtab} {on,off}.
9919 * maint.h: New file.
9920 * top.c: #include "maint.h".
9921 * utils.c (reset_prompt_for_continue_wait_time): New function.
9922 (get_prompt_for_continue_wait_time): New function.
9923 * utils.h (reset_prompt_for_continue_wait_time): Declare
9924 (get_prompt_for_continue_wait_time): Declare.
9925 (make_command_stats_cleanup): Moved to maint.h.
9926 (set_display_time, set_display_space): Moved to maint.h and renamed
9927 to set_per_command_time, set_per_command_space.
9928 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9929 parse_binary_operation and made non-static. Don't call error,
9930 just return an error marker. All callers updated.
9931 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9932
9933 2013-03-21 Tom Tromey <tromey@redhat.com>
9934
9935 * symfile.c (alloc_section_addr_info): Update header. Don't set
9936 'num_sections' field.
9937 (build_section_addr_info_from_section_table): Set 'num_sections'.
9938 (build_section_addr_info_from_bfd): Likewise.
9939 (build_section_addr_info_from_objfile): Remove dead loop
9940 condition.
9941 (free_section_addr_info): Unconditionally call xfree.
9942 (relative_addr_info_to_section_offsets, addrs_section_sort)
9943 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9944 condition.
9945 (syms_from_objfile_1): Remove dead 'if' condition. Check
9946 'num_sections'.
9947 (add_symbol_file_command): Set 'num_sections'.
9948 * symfile-mem.c (symbol_file_add_from_memory): Set
9949 'num_sections'.
9950 * somread.c (som_symfile_offsets): Remove dead loop condition.
9951 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9952 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9953
9954 2013-03-21 Tom Tromey <tromey@redhat.com>
9955
9956 * tracepoint.h (decode_agent_options): Add 'trace_string'
9957 argument.
9958 * tracepoint.c (decode_agent_options): Add 'trace_string'
9959 argument.
9960 (validate_actionline): Update.
9961 (collect_symbol): Add 'trace_string' argument.
9962 (struct add_local_symbols_data) <trace_string>: New field.
9963 (do_collect_symbol): Update.
9964 (add_local_symbols): Add 'trace_string' argument.
9965 (encode_actions_1): Update.
9966 (trace_dump_actions): Update.
9967 * dwarf2loc.c (access_memory): Update.
9968 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9969 * ax-general.c (new_agent_expr): Update.
9970 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9971 (gen_trace_for_return_address): Add argument.
9972 (trace_kludge, trace_string_kludge): Remove.
9973 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9974 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9975 (gen_trace_for_var): Add 'trace_string' argument.
9976 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9977 (gen_printf, agent_eval_command_one): Update.
9978
9979 2013-03-21 Tom Tromey <tromey@redhat.com>
9980
9981 PR exp/15109:
9982 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9983 Handle FILENAME token.
9984
9985 2013-03-21 Tom Tromey <tromey@redhat.com>
9986
9987 * c-exp.y (YYPRINT): Define.
9988 (c_print_token): New function.
9989
9990 2013-03-21 Tom Tromey <tromey@redhat.com>
9991
9992 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9993
9994 2013-03-21 Yao Qi <yao@codesourcery.com>
9995
9996 * ctf.c: Include "gdb_stat.h".
9997 [USE_WIN32API]: New macro 'mkdir'.
9998 (ctf_start): Use permission bits macros if they are defined.
9999
10000 2013-03-20 Keith Seitz <keiths@redhat.com>
10001
10002 * breakpoint.h (struct breakpoint): Add comment to
10003 extra_string indicating that this member is mallod'd.
10004 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
10005
10006 2013-03-20 Pedro Alves <palves@redhat.com>
10007
10008 PR gdb/15289
10009
10010 * cli/cli-setshow.c (do_set_command)
10011 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
10012 the result of parsing the command argument. Throw error if the
10013 value is greater than UINT_MAX. Print the invalid value with
10014 plongest.
10015 <var_integer, var_zinteger>: Use LONGEST for variable holding the
10016 result of parsing the command argument. Throw error if the value
10017 is greater than INT_MAX, not greater or equal. Also throw error
10018 if the value is less than INT_MIN. Print the invalid value with
10019 plongest.
10020 <var_zuinteger_unlimited>: Throw error if the value is greater
10021 than INT_MAX, not greater or equal.
10022 (do_show_command) <var_integer, var_zinteger,
10023 var_zuinteger_unlimited>: Use %d for printing int, not %u.
10024
10025 2013-03-20 Tom Tromey <tromey@redhat.com>
10026
10027 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
10028 if possible.
10029 * dwarf2read.c (read_func_scope): Remove old FIXME.
10030 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
10031 not LOC_COMPUTED.
10032 * findvar.c (symbol_read_needs_frame, default_read_var_value):
10033 Unconditionally call via computed ops, if possible.
10034 * printcmd.c (address_info): Unconditionally call via computed ops,
10035 if possible.
10036 * stack.c (read_frame_arg): Unconditionally call via computed ops,
10037 if possible.
10038 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
10039 * tracepoint.c (scope_info): Unconditionally call via computed ops,
10040 if possible.
10041
10042 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10043 Tom Tromey <tromey@redhat.com>
10044
10045 PR symtab/8421:
10046 * coffread.c (coff_register_index): New global.
10047 (process_coff_symbol, coff_read_enum_type): Set
10048 SYMBOL_ACLASS_INDEX.
10049 (_initialize_coffread): Initialize new global.
10050 * dwarf2loc.c (locexpr_find_frame_base_location)
10051 (dwarf2_block_frame_base_locexpr_funcs)
10052 (loclist_find_frame_base_location)
10053 (dwarf2_block_frame_base_loclist_funcs): New.
10054 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10055 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10056 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10057 (dwarf2_block_frame_base_loclist_funcs): New.
10058 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10059 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10060 globals.
10061 (read_func_scope): Update.
10062 (fixup_go_packaging, mark_common_block_symbol_computed)
10063 (var_decode_location, new_symbol_full, dwarf2_const_value):
10064 Set SYMBOL_ACLASS_INDEX.
10065 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10066 (_initialize_dwarf2_read): Initialize new globals.
10067 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10068 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10069 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10070 globals.
10071 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10072 (_initialize_mdebugread): Initialize new globals.
10073 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10074 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10075 (stab_register_index, stab_regparm_index): New globals.
10076 (define_symbol, read_enum_type, common_block_end): Set
10077 SYMBOL_ACLASS_INDEX.
10078 (_initialize_stabsread): Initialize new globals.
10079 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10080 globals.
10081 (MAX_SYMBOL_IMPLS): New define.
10082 (register_symbol_computed_impl, register_symbol_block_impl)
10083 (register_symbol_register_impl)
10084 (initialize_ordinary_address_classes): New functions.
10085 (_initialize_symtab): Call initialize_ordinary_address_classes.
10086 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10087 (struct symbol_impl): New.
10088 (SYMBOL_ACLASS_BITS): New define.
10089 (struct symbol) <aclass, ops>: Remove fields.
10090 <aclass_index>: New field.
10091 (symbol_impls): Declare.
10092 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10093 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10094 (register_symbol_computed_impl, register_symbol_block_impl)
10095 (register_symbol_register_impl): Declare.
10096 (struct symbol_computed_ops): Add location_has_loclist.
10097 (struct symbol_block_ops): New.
10098 (SYMBOL_BLOCK_OPS): New.
10099 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10100
10101 2013-03-20 Tom Tromey <tromey@redhat.com>
10102
10103 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10104 (print_partial_symbols, recursively_search_psymtabs): Use
10105 PSYMBOL_CLASS.
10106
10107 2013-03-20 Pierre Muller <muller@sourceware.org>
10108
10109 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10110 addtion, subtraction, multiplication and division binary operator.
10111
10112 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10113
10114 Code cleanup.
10115 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10116 * bsd-kvm.c (bsd_kvm_close): Likewise.
10117 * bsd-uthread.c (bsd_uthread_close): Likewise.
10118 * corelow.c (core_close): Likewise.
10119 (core_close_cleanup): Remove parameter quitting from a caller.
10120 * event-top.c (async_disconnect): Likewise.
10121 * exec.c (exec_close_1): Remove parameter quitting.
10122 * go32-nat.c (go32_close): Likewise.
10123 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10124 parameter quitting from a caller.
10125 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10126 variable.
10127 (mips_linux_close): Remove parameter quitting. Remove parameter
10128 quitting from a caller.
10129 * monitor.c (monitor_close): Remove parameter quitting.
10130 * monitor.h (monitor_close): Likewise.
10131 * record-btrace.c (record_btrace_close): Likewise.
10132 * record-full.c (record_full_close): Likewise.
10133 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10134 it also from fprintf_unfiltered.
10135 * remote-mips.c (mips_close): Remove parameter quitting.
10136 (mips_detach): Remove parameter quitting from a caller.
10137 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10138 (gdbsim_close): Remove duplicate function comment. Remove parameter
10139 quitting and remove it also from printf_filtered.
10140 * remote.c (remote_close): Remove parameter quitting.
10141 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10142 * target.c (update_current_target): Remove parameter int from to_close
10143 de_fault.
10144 (push_target, unpush_target, pop_target): Remove parameter quitting from
10145 a caller.
10146 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10147 Remove parameter quitting from a caller.
10148 (target_preopen): Remove parameter quitting from a caller.
10149 (target_close): Remove parameter quitting. Remove parameter quitting
10150 from a caller two times. Remove parameter quitting also from
10151 fprintf_unfiltered.
10152 * target.h (struct target_ops): Remove parameter quitting and as int
10153 from fields to_xclose and to_close.
10154 (extern struct target_ops current_target):
10155 (target_close, pop_all_targets): Remove parameter quitting. Update the
10156 comment.
10157 (pop_all_targets_above): Remove parameter quitting.
10158 * top.c (quit_target): Remove parameter quitting from a caller.
10159 * tracepoint.c (tfile_close): Remove parameter quitting.
10160 * windows-nat.c (windows_close): Remove parameter quitting.
10161
10162 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10163
10164 * windows-nat.c (handle_output_debug_string): Replace call
10165 to string_to_core_addr with call to strtoull.
10166
10167 2013-03-20 Yao Qi <yao@codesourcery.com>
10168
10169 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10170 and write it to CTF metadata.
10171
10172 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10173
10174 * windows-nat.c (handle_output_debug_string): Change type of n to
10175 SIZE_T to avoid crash on 64 bit systems.
10176
10177 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10178
10179 * python/python-internal.h (HAVE_SNPRINTF)
10180 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10181 about redefinition of snprintf by pyerrors.h.
10182
10183 2013-03-15 Steve Ellcey <sellcey@mips.com>
10184
10185 * remote-sim.c (sim_command_completer): Make char arguments const.
10186
10187 2013-03-15 Tom Tromey <tromey@redhat.com>
10188
10189 PR c++/15116:
10190 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10191
10192 2013-03-14 Tom Tromey <tromey@redhat.com>
10193
10194 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10195 New fields.
10196 (get_file_crc): Move from symfile.c.
10197 (gdb_bfd_crc): New function.
10198 * gdb_bfd.h (gdb_bfd_crc): Declare.
10199 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10200 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10201 (separate_debug_file_exists): Use gdb_bfd_crc.
10202
10203 2013-03-14 Tom Tromey <tromey@redhat.com>
10204
10205 * symfile.c (get_debug_link_info): Remove.
10206 (find_separate_debug_file_by_debuglink): Use
10207 bfd_get_debug_link_info.
10208
10209 2013-03-14 Tom Tromey <tromey@redhat.com>
10210
10211 * symtab.c (error_in_psymtab_expansion): New function.
10212 (lookup_symbol_aux_quick)
10213 (basic_lookup_transparent_type_quick): Remove "last resort"
10214 code. Use error_in_psymtab_expansion.
10215
10216 2013-03-14 Doug Evans <dje@google.com>
10217 Jan Kratochvil <jan.kratochvil@redhat.com>
10218
10219 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10220 any successful compare_filenames_for_search or FILENAME_CMP.
10221 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10222 * symtab.c (iterate_over_some_symtabs): Likewise.
10223
10224 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10225
10226 * source.c (print_source_lines_base): Make a local copy of
10227 symtab_to_fullname.
10228
10229 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10230 Jan Kratochvil <jan.kratochvil@redhat.com>
10231
10232 * source.c (print_source_lines_base): Suppress "file" for TUI.
10233
10234 2013-03-14 Keith Seitz <keiths@redhat.com>
10235 Alan Matsuoka <alanm@redhat.com>
10236
10237 PR c++/15203
10238 PR c++/15210
10239 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10240 TYPE_CODE_METHOD.
10241 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10242 symbols.
10243
10244 2013-03-14 Yao Qi <yao@codesourcery.com>
10245
10246 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10247 status to tfile if trace is stopped by command 'tstop'.
10248
10249 2013-03-14 Yao Qi <yao@codesourcery.com>
10250
10251 * tracepoint.c (tfile_write_status): Write trace notes and user
10252 name into tfile if they are not NULL.
10253
10254 2013-03-14 Hui Zhu <hui@codesourcery.com>
10255 Yao Qi <yao@codesourcery.com>
10256
10257 * Makefile.in (REMOTE_OBS): Add ctf.o.
10258 (SFILES): Add ctf.c.
10259 (HFILES_NO_SRCDIR): Add ctf.h.
10260 * ctf.c, ctf.h: New files.
10261 * tracepoint.c: Include 'ctf.h'.
10262 (collect_pseudocommand): Remove static.
10263 (trace_save_command): Parse option "-ctf".
10264 Produce different trace file writers per option.
10265 Adjust output message.
10266 (trace_save_tfile, trace_save_ctf): New.
10267 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10268 * mi/mi-main.c: Include 'ctf.h'.
10269 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10270 trace_save_tfile or trace_save_ctf.
10271 * NEWS: Mention these changes.
10272
10273 2013-03-14 Yao Qi <yao@codesourcery.com>
10274
10275 * tracepoint.c (trace_file_writer_xfree): New.
10276 (struct tfile_writer_data): New.
10277 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10278 (tfile_write_header, tfile_write_regblock_type): New.
10279 (tfile_write_status, tfile_write_uploaded_tsv): New.
10280 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10281 (tfile_write_raw_data, (tfile_end): New.
10282 (tfile_write_ops): New global variable.
10283 (TRACE_WRITE_R_BLOCK): New macro.
10284 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10285 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10286 (TRACE_WRITE_V_BLOCK): New macro.
10287 (trace_save): Add extra one parameter WRITER. Make it static.
10288 Use WRITER to writer trace.
10289 (tfile_trace_file_writer_new): New.
10290 (trace_save_command): Caller update.
10291 (trace_save_tfile): Write trace data in TFILE format.
10292 * tracepoint.h (struct trace_frame_write_ops): New.
10293 (struct trace_file_write_ops): New.
10294 (struct trace_file_writer): New.
10295 (trace_save): Remove its declaration.
10296 (trace_save_tfile): Declare it.
10297 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10298 instead of trace_save.
10299
10300 2013-03-13 Pedro Alves <palves@redhat.com>
10301
10302 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10303
10304 2013-03-13 Pedro Alves <palves@redhat.com>
10305
10306 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10307 commented out code.
10308 * demangle.c (current_demangling_style_string): Make it const.
10309 (set_demangling_command): Assert the demangling style is known.
10310 Remove all handling of unknown styles. Set
10311 'current_demangling_style_string' to an element of the
10312 demangling_style_names array.
10313 (set_demangling_style): Delete.
10314 (_initialize_demangler): Set current_demangling_style_string to the
10315 element of the demangling_style_names array that corresponds to
10316 the default demangling style. Remove FIXME note. Don't call
10317 set_demangling_style.
10318 * gdb-demangle.h (set_demangling_style): Remove declaration.
10319
10320 2013-03-13 Pedro Alves <palves@redhat.com>
10321
10322 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10323 fields const.
10324 (ada_make_symbol_completion_list): Make "text0" parameter const.
10325 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10326 * breakpoint.c (condition_completer): Make "text" and "word"
10327 parameters const. Adjust.
10328 (check_tracepoint_command): Adjust to validate_actionline
10329 prototype change.
10330 (catch_syscall_completer): Make "text" and "word" parameters
10331 const.
10332 * cli/cli-cmds.c (show_user): Make "comname" local const.
10333 (valid_command_p): Make "command" parameter const.
10334 (alias_command): Make "alias_prefix" and "command_prefix" locals
10335 const.
10336 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10337 (add_alias_cmd): Make "name" and "oldname" parameters const.
10338 Adjust. No longer make copy of OLDNAME.
10339 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10340 (add_setshow_cmd_full, add_setshow_enum_cmd)
10341 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10342 (add_setshow_filename_cmd, add_setshow_string_cmd)
10343 (add_setshow_string_noescape_cmd)
10344 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10345 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10346 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10347 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10348 Make "name" parameter const.
10349 (help_cmd): Rename "command" parameter to "arg". New const local
10350 "command".
10351 (find_cmd): Make "command" parameter const.
10352 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10353 deprecated_cmd_warning prototype change.
10354 (undef_cmd_error): Make "cmdtype" parameter const.
10355 (lookup_cmd): Make "line" parameter const.
10356 (deprecated_cmd_warning): Change type of "text" parameter to
10357 pointer to const char, from pointer to pointer to char. Adjust.
10358 (lookup_cmd_composition): Make "text" parameter const.
10359 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10360 parameters const.
10361 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10362 const.
10363 * cli/cli-script.c (validate_comname): Make "tem" local const.
10364 (define_command): New const local "tem_c". Use it in calls to
10365 lookup_cmd.
10366 (document_command): Make "tem" and "comfull" locals const.
10367 (show_user_1): Make "prefix" and "name" parameters const.
10368 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10369 const.
10370 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10371 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10372 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10373 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10374 (complete_on_enum, add_setshow_enum_cmd)
10375 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10376 (add_setshow_filename_cmd, add_setshow_string_cmd)
10377 (add_setshow_string_noescape_cmd)
10378 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10379 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10380 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10381 Change prototypes, constifying strings.
10382 * completer.c (noop_completer, filename_completer): Make "text"
10383 and "prefix" parameters const.
10384 (location_completer, expression_completer)
10385 (complete_line_internal): Make "text" and "prefix" parameters
10386 const and adjust.
10387 (command_completer, signal_completer): Make "text" and "prefix"
10388 parameters const.
10389 * completer.h (noop_completer, filename_completer)
10390 (expression_completer, location_completer, command_completer)
10391 (signal_completer): Change prototypes.
10392 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10393 parameters const.
10394 * cp-abi.c (cp_abi_completer): Likewise.
10395 * expression.h (parse_expression_for_completion): Change
10396 prototype.
10397 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10398 parameters const.
10399 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10400 * infrun.c (handle_completer): Make "text" and "word" parameters
10401 const.
10402 * interps.c (interpreter_completer): Make "text" and "word"
10403 parameters const.
10404 * language.h (struct language_defn)
10405 <la_make_symbol_completion_list>: Make "text" and "word"
10406 parameters const.
10407 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10408 (parse_exp_in_context): Rename to ...
10409 (parse_exp_in_context_1): ... this.
10410 (parse_exp_in_context): Reimplement, with const hack from
10411 parse_exp_1.
10412 (parse_expression_for_completion): Make "string" parameter const.
10413 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10414 to pointer to const char. Adjust.
10415 (print_command_1): Make "exp" parameter const.
10416 (output_command): Rename to ...
10417 (output_command_const): ... this. Make "exp" parameter const.
10418 (output_command): Reimplement.
10419 (x_command): Adjust.
10420 (display_command): Rename "exp" parameter to "arg". New "exp"
10421 local, const version of "arg".
10422 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10423 "cmd_name" local const.
10424 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10425 call.
10426 (cmdpy_completer): Make "text" and "word" parameters const.
10427 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10428 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10429 const.
10430 * remote.c (_initialize_remote): Make "cmd_name" local const.
10431 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10432 parameters const. Adjust.
10433 (completion_list_add_fields): Make "sym_text", "text" and "word"
10434 parameters const.
10435 (struct add_name_data) <sym_text, text, word>: Make fields const.
10436 (default_make_symbol_completion_list_break_on): Make "text" and
10437 "word" parameters const. Adjust locals.
10438 (default_make_symbol_completion_list)
10439 (make_symbol_completion_list, make_symbol_completion_type)
10440 (make_symbol_completion_list_fn): Make "text" and "word"
10441 parameters const.
10442 (make_file_symbol_completion_list): Make "text", "word" and
10443 "srcfile" parameters const. Adjust locals.
10444 (add_filename_to_list): Make "text" and "word" parameters const.
10445 (struct add_partial_filename_data) <text, word>: Make fields
10446 const.
10447 (make_source_files_completion_list): Make "text" and "word"
10448 parameters const.
10449 * symtab.h (default_make_symbol_completion_list_break_on)
10450 (default_make_symbol_completion_list, make_symbol_completion_list)
10451 (make_symbol_completion_type enum type_code)
10452 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10453 (make_source_files_completion_list): Change prototype.
10454 * top.c (execute_command): Adjust to pass pointer to pointer to
10455 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10456 change.
10457 (set_verbose): Make "cmdname" local const.
10458 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10459 and adjust.
10460 (validate_actionline): Make "line" parameter a pointer to const
10461 char, and adjust.
10462 (encode_actions_1): Make "action_exp" local const, and adjust.
10463 (encode_actions): Adjust.
10464 (replace_comma): Delete.
10465 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10466 const, and adjust. Don't frob the action string while splitting
10467 it at commas. Instead, make a copy of each split substring in
10468 turn.
10469 (trace_dump_command): Adjust to validate_actionline prototype
10470 change.
10471 * tracepoint.h (decode_agent_options, decode_agent_options)
10472 (encode_actions, validate_actionline): Change prototypes.
10473 * valprint.h (output_command): Delete declaration.
10474 (output_command_const): Declare.
10475 * value.c (function_destroyer): Cast const away in xfree call.
10476
10477 2013-03-13 Pedro Alves <palves@redhat.com>
10478
10479 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10480 rather than casting 'const char * const *' to 'const char **'.
10481 * ada-lex.l (processInt): Make "trailer" local const. Remove
10482 'const char **' cast.
10483 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10484 locals, and use those as strtol output pointer, instead than doing
10485 invalid casts to from 'const char **' to 'char **'.
10486 (_initialize_demangle): Remove cast.
10487 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10488 locals, and use those as strtol output pointer, instead than doing
10489 invalid casts to from 'const char **' to 'char **'.
10490 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10491 casts.
10492 * stap-probe.c (stap_parse_register_operand)
10493 (stap_parse_single_operand): Likewise.
10494
10495 2013-03-13 Yao Qi <yao@codesourcery.com>
10496
10497 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10498 the last matched 'V' blcok in trace frame.
10499
10500 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10501
10502 * NEWS: Create a new section for the next release branch.
10503 Rename the section of the current branch, now that it has
10504 been cut.
10505
10506 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10507
10508 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10509 * version.in: Bump version to 7.6.50.20130312-cvs.
10510
10511 2013-03-12 Keith Seitz <keiths@redhat.com>
10512
10513 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10514 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10515 Remove temporary copy of input string.
10516 (mi_execute_command_wrapper): Make "cmd" const.
10517 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10518 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10519 Use const strings.
10520 (mi_parse): Make "cmd" const.
10521 Use const strings.
10522 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10523
10524 2013-03-12 Keith Seitz <keiths@redhat.com>
10525
10526 * ada-lang.c (ada_read_renaming_var_value): Pass const
10527 pointer to expression string to parse_exp_1.
10528 (create_excep_cond_exprs): Likewise.
10529 * ax-gdb.c (agent_eval_command_one): Likewise.
10530 (maint_agent_printf_command): Likewise.
10531 Constify much of the string handling/parsing.
10532 * breakpoint.c (set_breakpoint_condition): Pass const
10533 pointer to expression string to parse_exp_1.
10534 (update_watchpoint): Likewise.
10535 (parse_cmd_to_aexpr): Constify string handling.
10536 Pass const pointer to parse_exp_1.
10537 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10538 (find_condition_and_thread): Likewise.
10539 Make TOK const.
10540 (watch_command_1): Make "arg" const.
10541 Constify string handling.
10542 Copy the expression string instead of changing the input
10543 string.
10544 (update_breakpoint_location): Pass const pointer to
10545 parse_exp_1.
10546 * eval.c (parse_and_eval_address): Make "exp" const.
10547 (parse_to_comma_and_eval): Make "expp" const.
10548 (parse_and_eval): Make "exp" const.
10549 * expression.h (parse_expression): Make argument const.
10550 (parse_exp_1): Make first argument const.
10551 * findcmd.c (parse_find_args): Treat "args" as const.
10552 * linespec.c (parse_linespec): Pass const pointer to
10553 linespec_expression_to_pc.
10554 (linespec_expression_to_pc): Make "exp_ptr" const.
10555 * parse.c (parse_exp_1): Make "stringptr" const.
10556 Make a copy of the expression to pass to parse_exp_in_context until
10557 this whole interface can be constified.
10558 (parse_expression): Make "string" const.
10559 * printcmd.c (ui_printf): Treat "arg" as const.
10560 Handle const strings.
10561 * tracepoint.c (validate_actionline): Pass const pointer to
10562 all calls to parse_exp_1.
10563 (encode_actions_1): Likewise.
10564 * value.h (parse_to_comma_and_eval): Make argument const.
10565 (parse_and_eval_address): Likewise.
10566 (parse_and_eval): Likewise.
10567 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10568 (varobj_set_value): Likewise.
10569 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10570 constify string handling.
10571 Pass const pointers to parse_and_eval_address and
10572 parse_to_comman_and_eval.
10573 * cli/cli-utils.c (skip_to_space): Rename to ...
10574 (skip_to_space_const): ... this. Handle const strings.
10575 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10576 skip_to_space_const.
10577 (skip_to_space_const): Declare.
10578 * common/format.c (parse_format_string): Make "arg" const.
10579 Handle const strings.
10580 * common/format.h (parse_format_string): Make "arg" const.
10581 * gdbserver/ax.c (ax_printf): Make "format" const.
10582 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10583 of the expression string.
10584
10585 2013-03-12 Hui Zhu <hui@codesourcery.com>
10586
10587 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10588
10589 2013-03-12 Yao Qi <yao@codesourcery.com>
10590 Hui Zhu <hui@codesourcery.com>
10591
10592 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10593 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10594 DW_OP_deref_size.
10595
10596 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10597
10598 * ada-lex.l (rules): Only recognize 'thread' as a
10599 delimiter when followed by numerals, as for c-exp.y.
10600 Use new rewind_to_char function to rewind the input for
10601 expression-delimiting tokens.
10602 (rewind_to_char): New function.
10603
10604 2013-03-11 Pedro Alves <palves@redhat.com>
10605 Jan Kratochvil <jan.kratochvil@redhat.com>
10606
10607 * configure: Regenerate.
10608 * configure.ac (check dynamic export flag): Link python test with
10609 $PYTHON_LIBS.
10610
10611 2013-03-11 Doug Evans <dje@google.com>
10612 Keith Seitz <keiths@redhat.com>
10613
10614 * linespec.c (find_linespec_symbols): Call find_function_symbols
10615 first, and then call lookup_prefix_sym/find_method.
10616
10617 2013-03-11 Pedro Alves <palves@redhat.com>
10618
10619 * charset.c (convert_between_encodings): Don't cast between
10620 different pointer to pointer types. Instead, make the 'inp' local
10621 be of the type iconv expects.
10622 (wchar_iterate): Don't cast between different pointer to pointer
10623 types. Instead, use new pointer local of the type iconv expects.
10624 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10625 Add new local of type char pointer, and use it to get a
10626 char/string view of the byte buffer, instead of casting between
10627 pointer to pointer types.
10628
10629 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10630
10631 * remote.c (remote_set_trace_buffer_size): Move != operator
10632 to the start of next line to fix an ARI warning.
10633
10634 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10635
10636 * NEWS: Add record changes.
10637
10638 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10639
10640 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10641 the instruction history disassembly.
10642 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10643 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10644
10645 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10646
10647 * Makefile.in (SFILES): Add record-btrace.c
10648 (COMMON_OBS): Add record-btrace.o
10649 * record-btrace.c: New.
10650 * objfiles.c: Include btrace.h.
10651 (free_objfile): call btrace_free_objfile.
10652
10653 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10654
10655 * target.c (target_call_history, target_call_history_from,
10656 target_call_history_range): New.
10657 * target.h (target_ops) <to_call_history, to_call_history_from,
10658 to_call_history_range>: New fields.
10659 (target_call_history, target_call_history_from,
10660 target_call_history_range): New declaration.
10661 * record.c (get_call_history_modifiers, cmd_record_call_history,
10662 record_call_history_size): New.
10663 (_initialize_record): Add the "record function-call-history" command.
10664 Add "set/show record function-call-history-size" commands.
10665 * record.h (record_print_flag): New.
10666
10667 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10668
10669 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10670 to_insn_history_range>: New fields.
10671 (target_insn_history): New.
10672 (target_insn_history_from): New.
10673 (target_insn_history_range): New.
10674 * target.c (target_insn_history): New.
10675 (target_insn_history_from): New.
10676 (target_insn_history_range): New.
10677 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10678 (record_insn_history_size): New.
10679 (get_insn_number): New.
10680 (get_context_size): New.
10681 (no_chunk): New.
10682 (get_insn_history_modifiers): New.
10683 (cmd_record_insn_history): New.
10684 (_initialize_record): Add "set/show record instruction-history-size"
10685 command. Add "record instruction-history" command.
10686
10687 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10688
10689 * record.h (record_disconnect): New.
10690 (record_detach): New.
10691 (record_mourn_inferior): New.
10692 (record_kill): New.
10693 * record-full.c (record_disconnect, record_detach,
10694 record_mourn_inferior, record_kill): Move to...
10695 * record.c: ...here.
10696 (DEBUG): New.
10697 (record_stop): New.
10698 (record_unpush): New.
10699 (cmd_record_stop): Call record_stop. Replace unpush_target
10700 call with record_unpush call.
10701 (record_disconnect, record_detach): Assert that the target
10702 is of record stratum. Call record_unpush, record_stop, and
10703 DEBUG.
10704 (record_mourn_inferior, record_kill): Assert that the target
10705 is of record stratum. Call record_unpush and DEBUG.
10706
10707 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10708
10709 * record-full.h, record-full.c (record_memory_query): Rename
10710 to ...
10711 (record_full_memory_query): ...this. Update all users.
10712 (record_arch_list_add_reg): Rename to ...
10713 (record_full_arch_list_add_reg): ...this. Update all users.
10714 (record_arch_list_add_mem): Rename to ...
10715 (record_full_arch_list_add_mem): ...this. Update all users.
10716 (record_arch_list_add_end): Rename to ...
10717 (record_full_arch_list_add_end): ...this. Update all users.
10718 (record_gdb_operation_disable_set): Rename to ...
10719 (record_full_gdb_operation_disable_set): ...this.
10720 Update all users.
10721
10722 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10723
10724 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10725 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10726 (RECORD_IS_REPLAY): Renamed to ...
10727 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10728 (RECORD_FILE_MAGIC): Renamed to ...
10729 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10730 (record_mem_entry): Renamed to ...
10731 (record_full_mem_entry): ... this. Updated all users.
10732 (record_reg_entry): Renamed to ...
10733 (record_full_reg_entry): ... this. Updated all users.
10734 (record_end_entry): Renamed to ...
10735 (record_full_end_entry): ... this. Updated all users.
10736 (record_type) <record_end, record_reg, record_mem>: Renamed
10737 to ...
10738 (record_full_type) <record_full_end, record_full_reg,
10739 record_full_mem>: ... this. Updated all users.
10740 (record_entry): Renamed to ...
10741 (record_full_entry): ... this. Updated all users.
10742 (record_core_buf_entry): Renamed to ...
10743 (record_full_core_buf_entry): ... this. Updated all users.
10744 (record_core_regbuf): Renamed to ...
10745 (record_full_core_regbuf): ... this. Updated all users.
10746 (record_core_start): Renamed to ...
10747 (record_full_core_start): ... this. Updated all users.
10748 (record_core_end): Renamed to ...
10749 (record_full_core_end): ... this. Updated all users.
10750 (record_core_buf_list): Renamed to ...
10751 (record_full_core_buf_list): ... this. Updated all users.
10752 (record_first): Renamed to ...
10753 (record_full_first): ... this. Updated all users.
10754 (record_list): Renamed to ...
10755 (record_full_list): ... this. Updated all users.
10756 (record_arch_list_head): Renamed to ...
10757 (record_full_arch_list_head): ... this. Updated all users.
10758 (record_arch_list_tail): Renamed to ...
10759 (record_full_arch_list_tail): ... this. Updated all users.
10760 (record_stop_at_limit): Renamed to ...
10761 (record_full_stop_at_limit): ... this. Updated all users.
10762 (record_insn_max_num): Renamed to ...
10763 (record_full_insn_max_num): ... this. Updated all users.
10764 (record_insn_num): Renamed to ...
10765 (record_full_insn_num): ... this. Updated all users.
10766 (record_insn_count): Renamed to ...
10767 (record_full_insn_count): ... this. Updated all users.
10768 (record_ops): Renamed to ...
10769 (record_full_ops): ... this. Updated all users.
10770 (record_core_ops): Renamed to ...
10771 (record_full_core_ops): ... this. Updated all users.
10772 (set_record_cmdlist): Renamed to ...
10773 (set_record_full_cmdlist): ... this. Updated all users.
10774 (show_record_cmdlist): Renamed to ...
10775 (show_record_full_cmdlist): ... this. Updated all users.
10776 (record_cmdlist): Renamed to ...
10777 (record_full_cmdlist): ... this. Updated all users.
10778 (record_beneath_to_resume_ops): Renamed to ...
10779 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10780 (record_beneath_to_resume): Renamed to ...
10781 (record_full_beneath_to_resume): ... this. Updated all users.
10782 (record_beneath_to_wait_ops): Renamed to ...
10783 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10784 (record_beneath_to_wait): Renamed to ...
10785 (record_full_beneath_to_wait): ... this. Updated all users.
10786 (record_beneath_to_store_registers_ops): Renamed to ...
10787 (record_full_beneath_to_store_registers_ops): ... this.
10788 Updated all users.
10789 (record_beneath_to_store_registers): Renamed to ...
10790 (record_full_beneath_to_store_registers): ... this.
10791 Updated all users.
10792 (record_beneath_to_xfer_partial_ops): Renamed to ...
10793 (record_full_beneath_to_xfer_partial_ops): ... this.
10794 Updated all users.
10795 (record_beneath_to_xfer_partial): Renamed to ...
10796 (record_full_beneath_to_xfer_partial): ... this.
10797 Updated all users.
10798 (record_beneath_to_insert_breakpoint): Renamed to ...
10799 (record_full_beneath_to_insert_breakpoint): ... this.
10800 Updated all users.
10801 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10802 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10803 Updated all users.
10804 (record_beneath_to_stopped_data_address): Renamed to ...
10805 (record_full_beneath_to_stopped_data_address): ... this.
10806 Updated all users.
10807 (record_beneath_to_async): Renamed to ...
10808 (record_full_beneath_to_async): ... this. Updated all users.
10809 (record_goto_insn): Renamed to ...
10810 (record_full_goto_insn): ... this. Updated all users.
10811 (record_save): Renamed to ...
10812 (record_full_save): ... this. Updated all users.
10813 (record_reg_alloc): Renamed to ...
10814 (record_full_reg_alloc): ... this. Updated all users.
10815 (record_reg_release): Renamed to ...
10816 (record_full_reg_release): ... this. Updated all users.
10817 (record_mem_alloc): Renamed to ...
10818 (record_full_mem_alloc): ... this. Updated all users.
10819 (record_mem_release): Renamed to ...
10820 (record_full_mem_release): ... this. Updated all users.
10821 (record_end_alloc): Renamed to ...
10822 (record_full_end_alloc): ... this. Updated all users.
10823 (record_end_release): Renamed to ...
10824 (record_full_end_release): ... this. Updated all users.
10825 (record_entry_release): Renamed to ...
10826 (record_full_entry_release): ... this. Updated all users.
10827 (record_list_release): Renamed to ...
10828 (record_full_list_release): ... this. Updated all users.
10829 (record_list_release_following): Renamed to ...
10830 (record_full_list_release_following): ... this.
10831 Updated all users.
10832 (record_list_release_first): Renamed to ...
10833 (record_full_list_release_first): ... this. Updated all users.
10834 (record_arch_list_add): Renamed to ...
10835 (record_full_arch_list_add): ... this. Updated all users.
10836 (record_get_loc): Renamed to ...
10837 (record_full_get_loc): ... this. Updated all users.
10838 (record_check_insn_num): Renamed to ...
10839 (record_full_check_insn_num): ... this. Updated all users.
10840 (record_arch_list_cleanups): Renamed to ...
10841 (record_full_arch_list_cleanups): ... this. Updated all users.
10842 (record_message): Renamed to ...
10843 (record_full_message): ... this. Updated all users.
10844 (record_message_wrapper): Renamed to ...
10845 (record_full_message_wrapper): ... this. Updated all users.
10846 (record_message_wrapper_safe): Renamed to ...
10847 (record_full_message_wrapper_safe): ... this. Updated all users.
10848 (record_gdb_operation_disable): Renamed to ...
10849 (record_full_gdb_operation_disable): ... this. Updated all users.
10850 (record_hw_watchpoint): Renamed to ...
10851 (record_full_hw_watchpoint): ... this. Updated all users.
10852 (record_exec_insn): Renamed to ...
10853 (record_full_exec_insn): ... this. Updated all users.
10854 (record_restore): Renamed to ...
10855 (record_full_restore): ... this. Updated all users.
10856 (record_async_inferior_event_token): Renamed to ...
10857 (record_full_async_inferior_event_token): ... this.
10858 Updated all users.
10859 (record_async_inferior_event_handler): Renamed to ...
10860 (record_full_async_inferior_event_handler): ... this.
10861 Updated all users.
10862 (record_core_open_1): Renamed to ...
10863 (record_full_core_open_1): ... this. Updated all users.
10864 (record_open_1): Renamed to ...
10865 (record_full_open_1): ... this. Updated all users.
10866 (record_open): Renamed to ...
10867 (record_full_open): ... this. Updated all users.
10868 (record_close): Renamed to ...
10869 (record_full_close): ... this. Updated all users.
10870 (record_resume_step): Renamed to ...
10871 (record_full_resume_step): ... this. Updated all users.
10872 (record_resumed): Renamed to ...
10873 (record_full_resumed): ... this. Updated all users.
10874 (record_execution_dir): Renamed to ...
10875 (record_full_execution_dir): ... this. Updated all users.
10876 (record_resume): Renamed to ...
10877 (record_full_resume): ... this. Updated all users.
10878 (record_get_sig): Renamed to ...
10879 (record_full_get_sig): ... this. Updated all users.
10880 (record_sig_handler): Renamed to ...
10881 (record_full_sig_handler): ... this. Updated all users.
10882 (record_wait_cleanups): Renamed to ...
10883 (record_full_wait_cleanups): ... this. Updated all users.
10884 (record_wait_1): Renamed to ...
10885 (record_full_wait_1): ... this. Updated all users.
10886 (record_wait): Renamed to ...
10887 (record_full_wait): ... this. Updated all users.
10888 (record_stopped_by_watchpoint): Renamed to ...
10889 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10890 (record_disconnect): Renamed to ...
10891 (record_full_disconnect): ... this. Updated all users.
10892 (record_detach): Renamed to ...
10893 (record_full_detach): ... this. Updated all users.
10894 (record_mourn_inferior): Renamed to ...
10895 (record_full_mourn_inferior): ... this. Updated all users.
10896 (record_kill): Renamed to ...
10897 (record_full_kill): ... this. Updated all users.
10898 (record_stopped_data_address): Renamed to ...
10899 (record_full_stopped_data_address): ... this. Updated all users.
10900 (record_registers_change): Renamed to ...
10901 (record_full_registers_change): ... this. Updated all users.
10902 (record_store_registers): Renamed to ...
10903 (record_full_store_registers): ... this. Updated all users.
10904 (record_xfer_partial): Renamed to ...
10905 (record_full_xfer_partial): ... this. Updated all users.
10906 (record_breakpoint): Renamed to ...
10907 (record_full_breakpoint): ... this. Updated all users.
10908 (record_breakpoint_p): Renamed to ...
10909 (record_full_breakpoint_p): ... this. Updated all users.
10910 (record_breakpoints): Renamed to ...
10911 (record_full_breakpoints): ... this. Updated all users.
10912 (record_sync_record_breakpoints): Renamed to ...
10913 (record_full_sync_record_breakpoints): ... this.
10914 Updated all users.
10915 (record_init_record_breakpoints): Renamed to ...
10916 (record_full_init_record_breakpoints): ... this.
10917 Updated all users.
10918 (record_insert_breakpoint): Renamed to ...
10919 (record_full_insert_breakpoint): ... this. Updated all users.
10920 (record_remove_breakpoint): Renamed to ...
10921 (record_full_remove_breakpoint): ... this. Updated all users.
10922 (record_can_execute_reverse): Renamed to ...
10923 (record_full_can_execute_reverse): ... this. Updated all users.
10924 (record_get_bookmark): Renamed to ...
10925 (record_full_get_bookmark): ... this. Updated all users.
10926 (record_goto_bookmark): Renamed to ...
10927 (record_full_goto_bookmark): ... this. Updated all users.
10928 (record_async): Renamed to ...
10929 (record_full_async): ... this. Updated all users.
10930 (record_can_async_p): Renamed to ...
10931 (record_full_can_async_p): ... this. Updated all users.
10932 (record_is_async_p): Renamed to ...
10933 (record_full_is_async_p): ... this. Updated all users.
10934 (record_execution_direction): Renamed to ...
10935 (record_full_execution_direction): ... this. Updated all users.
10936 (record_info): Renamed to ...
10937 (record_full_info): ... this. Updated all users.
10938 (record_delete): Renamed to ...
10939 (record_full_delete): ... this. Updated all users.
10940 (record_is_replaying): Renamed to ...
10941 (record_full_is_replaying): ... this. Updated all users.
10942 (record_goto_entry): Renamed to ...
10943 (record_full_goto_entry): ... this. Updated all users.
10944 (record_goto_begin): Renamed to ...
10945 (record_full_goto_begin): ... this. Updated all users.
10946 (record_goto_end): Renamed to ...
10947 (record_full_goto_end): ... this. Updated all users.
10948 (record_goto): Renamed to ...
10949 (record_full_goto): ... this. Updated all users.
10950 (init_record_ops): Renamed to ...
10951 (init_record_full_ops): ... this. Updated all users.
10952 (record_core_resume): Renamed to ...
10953 (record_full_core_resume): ... this. Updated all users.
10954 (record_core_kill): Renamed to ...
10955 (record_full_core_kill): ... this. Updated all users.
10956 (record_core_fetch_registers): Renamed to ...
10957 (record_full_core_fetch_registers): ... this. Updated all users.
10958 (record_core_prepare_to_store): Renamed to ...
10959 (record_full_core_prepare_to_store): ... this. Updated all users.
10960 (record_core_store_registers): Renamed to ...
10961 (record_full_core_store_registers): ... this. Updated all users.
10962 (record_core_xfer_partial): Renamed to ...
10963 (record_full_core_xfer_partial): ... this. Updated all users.
10964 (record_core_insert_breakpoint): Renamed to ...
10965 (record_full_core_insert_breakpoint): ... this. Updated all users.
10966 (record_core_remove_breakpoint): Renamed to ...
10967 (record_full_core_remove_breakpoint): ... this. Updated all users.
10968 (record_core_has_execution): Renamed to ...
10969 (record_full_core_has_execution): ... this. Updated all users.
10970 (init_record_core_ops): Renamed to ...
10971 (init_record_full_core_ops): ... this. Updated all users.
10972 (cmd_record_restore): Renamed to ...
10973 (cmd_record_full_restore): ... this. Updated all users.
10974 (record_save_cleanups): Renamed to ...
10975 (record_full_save_cleanups): ... this. Updated all users.
10976 (cmd_record_start): Renamed to ...
10977 (cmd_record_full_start): ... this. Updated all users.
10978 (set_record_insn_max_num): Renamed to ...
10979 (set_record_full_insn_max_num): ... this. Updated all users.
10980 (set_record_command): Renamed to ...
10981 (set_record_full_command): ... this. Updated all users.
10982 (show_record_command): Renamed to ...
10983 (show_record_full_command): ... this. Updated all users.
10984 (_initialize_record): Renamed to ...
10985 (_initialize_record_full): ... this. Updated all users.
10986
10987 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10988
10989 * record.h: Split into this and ...
10990 * record-full.h: ... this.
10991 * record.c: Split into this and ...
10992 * record-full.c: ... this.
10993 * target.h (target_ops): Add new fields to_info_record,
10994 to_save_record, to_delete_record, to_record_is_replaying,
10995 to_goto_record_begin, to_goto_record_end, to_goto_record.
10996 (target_info_record): New.
10997 (target_save_record): New.
10998 (target_supports_delete_record): New.
10999 (target_delete_record): New.
11000 (target_record_is_replaying): New.
11001 (target_goto_record_begin): New.
11002 (target_goto_record_end): New.
11003 (target_goto_record): New.
11004 * target.c (target_info_record): New.
11005 (target_save_record): New.
11006 (target_supports_delete_record): New.
11007 (target_delete_record): New.
11008 (target_record_is_replaying): New.
11009 (target_goto_record_begin): New.
11010 (target_goto_record_end): New.
11011 (target_goto_record): New.
11012 * record.h: Declare struct cmd_list_element.
11013 (record_cmdlist): New declaration.
11014 (set_record_cmdlist): New declaration.
11015 (show_record_cmdlist): New declaration.
11016 (info_record_cmdlist): New declaration.
11017 (cmd_record_goto): New declaration.
11018 * record.c: Remove unnecessary includes.
11019 Include inferior.h.
11020 (cmd_record_goto): Remove declaration.
11021 (record_cmdlist): Now extern. Initialize.
11022 (set_record_cmdlist): Now extern. Initialize.
11023 (show_record_cmdlist): Now extern. Initialize.
11024 (info_record_cmdlist): Now extern. Initialize.
11025 (find_record_target): New.
11026 (require_record_target): New.
11027 (cmd_record_start): Update.
11028 (cmd_record_delete): Remove target-specific code.
11029 Call target_delete_record.
11030 (cmd_record_stop): Unpush any record target.
11031 (set_record_insn_max_num): Move to record-full.c
11032 (set_record_command): Add comment.
11033 (show_record_command): Add comment.
11034 (info_record_command): Update comment.
11035 Remove target-specific code.
11036 Call the record target's to_info_record.
11037 (cmd_record_start): New.
11038 (cmd_record_goto): Now extern.
11039 Remove target-specific code.
11040 Call target_goto_begin, target_goto_end, or target_goto.
11041 (_initialize_record): Move record target ops initialization to
11042 record-full.c.
11043 Change "record" command help text.
11044 Move "record restore", "record set", and "record show" commands to
11045 record-full.c.
11046 * Makefile.in (SFILES): Add record-full.c.
11047 (HFILES_NO_SRCDIR): Add record-full.h.
11048 (COMMON_OBS): Add record-full.o.
11049 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11050 * arm-tdep.c: Include record-full.h.
11051 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11052 * i386-tdep.c: Include record-full.h.
11053 * infrun.c: Include record-full.h.
11054 * linux-record.c: Include record-full.h.
11055 * moxie-tdep.c: Include record-full.h.
11056 * record-full.c: Include record-full.h.
11057 Change module comment.
11058 (set_record_full_cmdlist): New.
11059 (show_record_full_cmdlist): New.
11060 (record_full_cmdlist): New.
11061 (record_goto_insn): New declaration.
11062 (record_save): New declaration.
11063 (record_check_insn_num): Change query string.
11064 (record_info): New.
11065 (record_delete): New.
11066 (record_is_replaying): New.
11067 (record_goto_entry): New.
11068 (record_goto_begin): New.
11069 (record_goto_end): New.
11070 (record_goto): New.
11071 (init_record_ops): Update.
11072 (init_record_core_ops): Update.
11073 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11074 (cmd_record_start): New.
11075 (set_record_insn_max_num): Moved from record.c
11076 (set_record_full_command): New.
11077 (show_record_full_command): New.
11078 (_initialize_record_full): New.
11079
11080 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11081
11082 * target.h (add_deprecated_target_alias): New.
11083 * target.c (add_deprecated_target_alias): New.
11084
11085 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11086
11087 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11088 and signal.h.
11089 (linux_supports_btrace): Add kernel and
11090 cpuid check.
11091 (kernel_supports_btrace): New function.
11092 (cpu_supports_btrace): New function.
11093 (intel_supports_btrace): New function.
11094
11095 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11098 * remote.c: Include btrace.h.
11099 (struct btrace_target_info): New struct.
11100 (remote_supports_btrace): New function.
11101 (send_Qbtrace): New function.
11102 (remote_enable_btrace): New function.
11103 (remote_disable_btrace): New function.
11104 (remote_teardown_btrace): New function.
11105 (remote_read_btrace): New function.
11106 (init_remote_ops): Add btrace ops.
11107 (enum <unnamed>): Add btrace packets.
11108 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11109 (_initialize_remote): Add packet configuration for branch tracing.
11110
11111 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11112
11113 * features/btrace.dtd: New file.
11114 * Makefile.in (XMLFILES): Add btrace.dtd.
11115 * btrace.h (parse_xml_btrace): New declaration.
11116 * btrace.c: Include xml-support.h.
11117 (parse_xml_btrace): New function.
11118 (parse_xml_btrace_block): New function.
11119 (block_attributes): New struct.
11120 (btrace_attributes): New struct.
11121 (btrace_children): New struct.
11122 (btrace_elements): New struct.
11123
11124 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11125
11126 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11127 (amd64_linux_enable_btrace): New.
11128 (amd64_linux_disable_btrace): New.
11129 (amd64_linux_teardown_btrace): New.
11130 (_initialize_amd64_linux_nat): Initialize btrace ops.
11131 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11132 (i386_linux_enable_btrace): New.
11133 (i386_linux_disable_btrace): New.
11134 (i386_linux_teardown_btrace): New.
11135 (_initialize_i386_linux_nat): Initialize btrace ops.
11136 * config/i386/linux.mh: Add linux-btrace.o.
11137 * config/i386/linux64.mh: Add linux-btrace.o.
11138
11139 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11140
11141 * common/linux_btrace.h: New file.
11142 * common/linux_btrace.c: New file.
11143 * Makefile.in (SFILES): Add btrace.c.
11144 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11145 (COMMON_OBS): Add btrace.o.
11146 (linux-btrace.o): New rule.
11147
11148 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11149
11150 * target.h: Include btrace.h.
11151 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11152 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11153 * target.c (target_supports_btrace): New function.
11154 (target_enable_btrace): New function.
11155 (target_disable_btrace): New function.
11156 (target_teardown_btrace): New function.
11157 (target_read_btrace): New function.
11158 * btrace.h: New file.
11159 * btrace.c: New file.
11160 * Makefile.in: Add btrace.c.
11161 * gdbthread.h: Include btrace.h.
11162 (struct thread_info): Add btrace field.
11163 * thread.c: Include btrace.h.
11164 (clear_thread_inferior_resources): Call target_teardown_btrace.
11165 * common/btrace-common.h: New file.
11166
11167 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11168
11169 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11170 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11171 kill_status to outer block.
11172
11173 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11174
11175 Fix entry-values if the callee called a noreturn function.
11176 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11177 get_frame_address_in_block. Add new comment.
11178
11179 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 Fix entry-values in C++ across CUs.
11182 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11183 lookup_minimal_symbol. Add a comment.
11184 * dwarf2read.c
11185 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11186 DW_AT_linkage_name.
11187
11188 2013-03-08 Yao Qi <yao@codesourcery.com>
11189
11190 * tracepoint.c (_initialize_tracepoint): Indent the code.
11191
11192 2013-03-08 Pedro Alves <palves@redhat.com>
11193
11194 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11195 (parse_find_args, find_command): Change type of pattern buffer
11196 locals to 'gdb_byte *'.
11197
11198 2013-03-08 Stan Shebs <stan@codesourcery.com>
11199 Hafiz Abid Qadeer <abidh@codesourcery.com>
11200
11201 * NEWS: Mention set and show trace-buffer-size commands.
11202 Mention new packet.
11203 * target.h (struct target_ops): New method
11204 to_set_trace_buffer_size.
11205 (target_set_trace_buffer_size): New macro.
11206 * target.c (update_current_target): Set up new method.
11207 * tracepoint.c (trace_buffer_size): New global.
11208 (start_tracing): Send it to the target.
11209 (set_trace_buffer_size): New function.
11210 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11211 * remote.c (remote_set_trace_buffer_size): New function.
11212 (_initialize_remote): Use it.
11213 (QTBuffer:size) New remote command.
11214 (PACKET_QTBuffer_size): New enum.
11215 (remote_protocol_features): Add an entry for
11216 PACKET_QTBuffer_size.
11217
11218 2013-03-08 Tom Tromey <tromey@redhat.com>
11219
11220 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11221 variable.
11222
11223 2013-03-07 Pedro Alves <palves@redhat.com>
11224
11225 * target.c (target_read_stralloc, target_fileio_read_alloc):
11226 *Cast pointer to 'gdb_byte *' in target call.
11227
11228 2013-03-07 Pedro Alves <palves@redhat.com>
11229
11230 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11231 call.
11232
11233 2013-03-07 Keith Seitz <keiths@redhat.com>
11234
11235 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11236 (trace_pass_command): Likewise.
11237 * cli/cli-cmds.c: Include cli/cli-utils.h.
11238 (source_command): Use skip-spaces.
11239 (disassemble_command): Likewise.
11240 * findcmd.c: Include cli/cli-utils.h.
11241 (parse_find_args): Use skip_spaces.
11242 * go32-nat.c: Include cli/cli-utils.h.
11243 (go32_sldt): Use skip_spaces.
11244 (go32_sgdt): Likewise.
11245 (go32_sidt): Likewise.
11246 (go32_pde): Likewise.
11247 (go32_pte): Likewise.
11248 (go32_pte_for_address): Likewise.
11249 * infcmd.c: Include cli/cli-utils.h.
11250 (registers_info): Use skip_spaces.
11251 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11252 (linux_info_proc): Likewise.
11253 * linux-thread-db.c: Include cli/cli-utils.h.
11254 (info_auto_load_libthread_db): Use skip_spaces_const.
11255 * m32r-rom.c: Include cli/cli-utils.h.
11256 (m32r_upload_command): Use skip_spaces.
11257 * maint.c: Include cli/cli-utils.h.
11258 (maintenance_translate_address): Use skip_spaces.
11259 * mi/mi-parse.c: Include cli/cli-utils.h.
11260 (mi_parse_argv): Use skip_spaces.
11261 (mi_parse): Likewise.
11262 * minsyms.c: Include cli/cli-utils.h.
11263 (msymbol_hash_iw): Use skip_spaces_const.
11264 * objc-lang.c: Include cli/cli-utils.h.
11265 (parse_selector): Use skip_spaces.
11266 (parse_method): Likewise.
11267 * python/python.c: Include cli/cli-utils.h.
11268 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11269 (python_command)[HAVE_PYTHON]: Likewise.
11270 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11271 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11272 (m32r_load): Use skip_spaces.
11273 * serial.c: Include cli/cli-utils.h.
11274 (serial_open): Use skip_spaces_const.
11275 * stack.c: Include cli/cli-utils.h.
11276 (parse_frame_specification_1): Use skip_spaces_const.
11277 * symfile.c: Include cli/cli-utils.h.
11278 (set_ext_lang_command): Use skip_spaces.
11279 * symtab.c: Include cli/cli-utils.h.
11280 (rbreak_command): Use skip_spaces.
11281 * thread.c (thread_name_command): Use skip_spaces.
11282 * tracepoint.c (validate_actionline): Use skip_spaces.
11283 (encode_actions_1): Likewise.
11284 (trace_find_range_command): Likewise.
11285 (trace_find_outside_command): Likewise.
11286 (trace_dump_actions): Likewise.
11287
11288 2013-03-07 Pedro Alves <palves@redhat.com>
11289
11290 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11291 * expprint.c (print_subexp_standard): Likewise.
11292 * utils.c (host_char_to_target): Likewise.
11293 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11294 * varobj.c (value_get_print_value): Change type of local to char*.
11295 Cast it gdb_byte * in call to language printer.
11296
11297 2013-03-07 Pedro Alves <palves@redhat.com>
11298
11299 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11300 gdb_byte *'.
11301 (make_wchar_iterator): Remove cast to char*.
11302 (wchar_iterate): Change type of local.
11303
11304 2013-03-07 Pedro Alves <palves@redhat.com>
11305
11306 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11307 for 'regcache->register_status'.
11308
11309 2013-03-07 Pedro Alves <palves@redhat.com>
11310
11311 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11312 int.
11313
11314 2013-03-07 Pedro Alves <palves@redhat.com>
11315
11316 * stap-probe.c (handle_stap_probe): Add cast to char*.
11317
11318 2013-03-07 Pedro Alves <palves@redhat.com>
11319
11320 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11321 RECORD_MSGRCV>: Pass a signed variable to
11322 regcache_raw_read_signed, instead of an unsigned one.
11323
11324 2013-03-07 Pedro Alves <palves@redhat.com>
11325
11326 * remote-notif.c (notif_debug): Change type to int.
11327 * remote-notif.h (notif_debug): Likewise.
11328
11329 2013-03-07 Pedro Alves <palves@redhat.com>
11330
11331 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11332
11333 2013-03-07 Pedro Alves <palves@redhat.com>
11334
11335 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11336 * remote.h (hex2bin, bin2hex): ... here.
11337 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11338
11339 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11340
11341 * utils.c (initialize_utils): Improve doc strings of "set/show
11342 width", "set/show height", and "set/show pagination".
11343
11344 2013-03-06 Keith Seitz <keiths@redhat.com>
11345
11346 * ax-gdb.c (gen_printf): Make FORMAT const.
11347 * ax-gdb.h (gen_printf): Likewise.
11348 * ax-general.c (ax_string): Make STR const.
11349 * ax.h (ax_string): Likewise.
11350
11351 2013-03-06 Doug Evans <dje@google.com>
11352
11353 * elfread.c (elf_symfile_read): Move debugging printf to more
11354 logical location.
11355
11356 2013-03-06 Pedro Alves <palves@redhat.com>
11357
11358 * python/py-utils.c (target_string_to_unicode): Delete function.
11359 * python/python-internal.h (target_string_to_unicode): Delete
11360 declaration.
11361
11362 2013-03-06 Pierre Muller <muller@sourceware.org>
11363
11364 * linespec.c (get_current_search_block): ARI fix, use (void)
11365 for empty parameter list.
11366
11367 2013-03-05 Doug Evans <dje@google.com>
11368
11369 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11370 of old ada_lookup_symbol_list. In !full_search case, don't
11371 search superblocks.
11372 (ada_lookup_symbol_list): Delete arg full_search, all callers
11373 updated. Call ada_lookup_symbol_list_worker.
11374 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11375 * ada-lang.h (ada_lookup_symbol_list): Update.
11376 * language.h (language_defn): Update comment for
11377 la_iterate_over_symbols.
11378 * linespec.c (iterate_over_file_blocks): New function.
11379 (iterate_over_all_matching_symtabs): Call it.
11380 (lookup_prefix_sym): Ditto.
11381 (get_current_search_block): New function.
11382 (get_search_block): Delete.
11383 (find_label_symbols): Call get_current_search_block.
11384 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11385 * symtab.c (iterate_over_symbols): Don't search superblocks.
11386
11387 2013-03-05 Yao Qi <yao@codesourcery.com>
11388
11389 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11390 parameter VAR's type from "unsigned int" to "int".
11391 * command.h (var_zuinteger_unlimited): Update its comments.
11392 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11393
11394 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11395
11396 * NEWS: Mention new target x86_64-*-cygwin*.
11397
11398 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11399
11400 * configure.host: Add x86_64-*-cygwin* as host.
11401 * configure.tgt: Add x86_64-*-cygwin* as target.
11402 * config/i386/cygwin64.mh: New file.
11403
11404 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11405
11406 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11407
11408 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11409
11410 * linespec.c (struct linespec_canonical_name): New.
11411 (struct linespec_state): Change canonical_names type to it.
11412 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11413 xrealloc element size. Initialize the different CANONICAL fields.
11414 (canonical_to_fullform): New.
11415 (filter_results): Use it. Add variables canonical, fullform and
11416 cleanup.
11417 (struct decode_line_2_item, decode_line_2_compare_items): New.
11418 (decode_line_2): Remove variables iter and item_names, add variables
11419 items and items_count. Modify the code for these new variables.
11420
11421 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11422
11423 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11424 calling do_cleanup.
11425
11426 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11427
11428 * tracepoint.c (build_traceframe_info): Add code for byte order.
11429
11430 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11431
11432 * v850-tdep.c: (v850e2_register_name): Revise system register
11433 names to match current V850E2M architecture specifications.
11434 Update register number enum comments too.
11435
11436 2013-03-01 Jiong Wang <jiwang@tilera.com>
11437 Pedro Alves <palves@redhat.com>
11438
11439 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11440 to END_ADDR.
11441 (tilegx_skip_prologue): Limit prologue analysis to section end.
11442
11443 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11446 use it.
11447
11448 2013-03-01 Pedro Alves <palves@redhat.com>
11449
11450 Use gdb_byte for bytes from the program being debugged.
11451
11452 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11453 Change type of local 'buf' to gdb_byte.
11454 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11455 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11456 * cris-tdep.c (cris_sigcontext_addr)
11457 (cris_sigtramp_frame_unwind_cache): Likewise.
11458 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11459 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11460 Likewise.
11461 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11462 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11463 (hppa32_hpux_search_dummy_call_sequence)
11464 (hppa_hpux_supply_save_state): Likewise.
11465 * hppa-linux-tdep.c (insns_match_pattern)
11466 (hppa_linux_find_global_pointer): Likewise.
11467 * hppa-tdep.c (hppa_in_function_epilogue_p)
11468 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11469 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11470 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11471 (i386fbsd_collect_uthread): Likewise.
11472 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11473 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11474 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11475 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11476 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11477 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11478 (ia64_libunwind_frame_prev_register)
11479 (ia64_libunwind_sigtramp_frame_this_id)
11480 (ia64_find_global_pointer_from_dynamic_section)
11481 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11482 (ia64_unwind_pc): Likewise.
11483 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11484 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11485 (m68hc11_extract_return_value): Likewise.
11486 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11487 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11488 (mep_get_insn, mep_push_dummy_call): Likewise.
11489 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11490 (mips_linux_in_dynsym_stub): Likewise.
11491 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11492 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11493 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11494 to gdb_byte.
11495 * remote-mips.c (mips_set_register): Likewise.
11496 * remote-sim.c (gdbsim_fetch_register): Likewise.
11497 * score-tdep.c (score7_fetch_inst): Change type of parameter
11498 'memblock' and local 'buf' to gdb_byte.
11499 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11500 Change type of local 'buf' to gdb_byte. Adjust.
11501 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11502 to gdb_byte**.
11503 (score7_analyze_prologue): Change type of 'memblock' and
11504 'memblock_ptr' locals to gdb_byte*.
11505 * sh64-tdep.c (sh64_extract_return_value)
11506 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11507 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11508 * solib-pa64.c (pa64_solib_create_inferior_hook)
11509 (pa64_open_symbol_file_object): Remove local 'buf'.
11510 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11511 (som_open_symbol_file_object): Likewise.
11512 * solib-spu.c (spu_current_sos): Likewise.
11513 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11514 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11515 (spu_store_registers): Likewise.
11516 * target.c (debug_print_register): Likewise.
11517 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11518 * xstormy16-tdep.c (xstormy16_store_return_value)
11519 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11520 (xstormy16_find_jmp_table_entry): Likewise.
11521
11522 2013-03-01 Jiong Wang <jiwang@tilera.com>
11523
11524 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11525 (tilegx_gdbarch_init): Install it.
11526
11527 2013-02-28 Tom Tromey <tromey@redhat.com>
11528
11529 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11530 PyLong_Check.
11531
11532 2013-02-28 Doug Evans <dje@google.com>
11533
11534 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11535 * python/python.c (gdbpy_find_pc_line): Ditto.
11536
11537 2013-02-28 Tom Tromey <tromey@redhat.com>
11538
11539 * contrib/excheck.py: New file.
11540 * contrib/exsummary.py: New file.
11541 * contrib/gcc-with-excheck: New file.
11542
11543 2013-02-28 Tom Tromey <tromey@redhat.com>
11544
11545 * python/python.c (gdbpy_print_stack): Call begin_line and
11546 fprintf_filtered inside TRY_CATCH.
11547
11548 2013-02-28 Tom Tromey <tromey@redhat.com>
11549
11550 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11551 inside TRY_CATCH.
11552
11553 2013-02-28 Tom Tromey <tromey@redhat.com>
11554
11555 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11556 frame_object_to_frame_info inside TRY_CATCH.
11557
11558 2013-02-28 Tom Tromey <tromey@redhat.com>
11559
11560 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11561 TRY_CATCH.
11562
11563 2013-02-28 Tom Tromey <tromey@redhat.com>
11564
11565 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11566
11567 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11568
11569 * windows-nat.c: Throughout, fix format strings and casts of
11570 printf-like functions to avoid type related warnings on all
11571 platforms.
11572 (handle_output_debug_string): Fetch context information address
11573 from debug string using string_to_core_addr.
11574
11575 2013-02-27 Jiong Wang <jiwang@tilera.com>
11576
11577 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11578 * regformats/reg-tilegx32.dat: New.
11579
11580 2013-02-27 Jiong Wang <jiwang@tilera.com>
11581
11582 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11583
11584 2013-02-27 Jiong Wang <jiwang@tilera.com>
11585
11586 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11587
11588 2013-02-27 Yao Qi <yao@codesourcery.com>
11589 Pedro Alves <palves@redhat.com>
11590
11591 * tracepoint.c (tfile_trace_find): For tfind
11592 pc/tp/range/outside, look for the next trace frame instead of
11593 always starting from frame 0.
11594
11595 2013-02-26 Anthony Green <green@moxielogic.com>
11596
11597 * configure.tgt: Add support for moxie-*-rtems* target.
11598
11599 2013-02-25 Pedro Alves <palves@redhat.com>
11600
11601 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11602 warning text.
11603
11604 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11605
11606 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11607 if $fp is used as the virtual frame pointer.
11608
11609 2013-02-23 Alan Modra <amodra@gmail.com>
11610
11611 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11612 symbol size.
11613 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11614 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11615 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11616 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11617
11618 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11619
11620 Code cleanup.
11621 * elfread.c (build_id_bfd_get): Make the return type const.
11622 (build_id_verify): Make the check parameter const.
11623 (build_id_to_debug_filename): Make the build_id parameter and variable
11624 data const.
11625 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11626
11627 2013-02-21 Alan Modra <amodra@gmail.com>
11628
11629 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11630
11631 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11632
11633 Add a new method 'disassemble' to gdb.Architecture class.
11634 * python/py-arch.c (archpy_disassmble): Implementation of the
11635 new method gdb.Architecture.disassemble.
11636 (arch_object_methods): Add entry for the new method.
11637
11638 2013-02-20 Jiong Wang <jiwang@tilera.com>
11639
11640 * MAINTAINERS (Write After Approval): Add myself to the list.
11641
11642 2013-02-19 Pedro Alves <palves@redhat.com>
11643
11644 Garbage collect 'struct monitor_ops'::load_routine.
11645
11646 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11647 * monitor.c (monitor_load): No longer call
11648 current_monitor->load_routine.
11649 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11650 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11651 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11652
11653 2013-02-19 Pedro Alves <palves@redhat.com>
11654
11655 PR gdb/15161
11656
11657 Harmonize with generic_load.
11658
11659 * monitor.c: Include "readline/readline.h".
11660 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11661 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11662 long/strtol for the 'load_offset' local. Error out if no argument
11663 is given or if too many arguments are given. Tilde expand the
11664 passed in file name.
11665
11666 2013-02-19 Kai Tietz <ktietz@redhat.com>
11667
11668 PR gdb/15161
11669 * symfile.c (load_section_data): Change type of load_offset
11670 to CORE_ADDR.
11671 (generic_load): User strtoulst instead of strtoul for conversion
11672 of load_offset.
11673
11674 2013-02-19 Jiong Wang <jiwang@tilera.com>
11675
11676 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11677 for return address, "lr" register, saved on stack.
11678 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11679 after we invoke tilegx_analyze_prologue.
11680
11681 2013-02-19 Jiong Wang <jiwang@tilera.com>
11682
11683 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11684
11685 2013-02-19 Jiong Wang <jiwang@tilera.com>
11686
11687 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11688
11689 2013-02-19 Jiong Wang <jiwang@tilera.com>
11690
11691 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11692 (tilegx_write_pc): New function.
11693 (tilegx_cannot_reference_register): Return zero if REGNO
11694 is TILEGX_FAULTNUM_REGNUM.
11695 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11696 (tilegx_register_name): Add handling of "faultnum" register.
11697 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11698 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11699 handling of TILEGX_FAULTNUM_REGNUM.
11700 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11701
11702 2013-02-19 Jiong Wang <jiwang@tilera.com>
11703
11704 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11705 should be aligned to 64bit.
11706
11707 2013-02-19 Kai Tietz <ktietz@redhat.com>
11708
11709 * windows-nat.c (windows_xfer_memory): Fix debug-output
11710 for LLP64.
11711
11712 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11713
11714 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11715 Don't check DSP register number if HAVE_DSP is not set.
11716
11717 2013-02-19 Alan Modra <amodra@gmail.com>
11718
11719 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11720 throughout file instead.
11721 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11722 Don't xmalloc return value.
11723 (build_id_verify): Similarly. Don't xfree.
11724 (build_id_to_debug_filename): Update.
11725 (find_separate_debug_file_by_buildid): Update, don't xfree.
11726
11727 2013-02-18 Tom Tromey <tromey@redhat.com>
11728
11729 PR gdb/15102:
11730 * dwarf2read.c (read_subrange_type): Use result of
11731 'check_typedef'.
11732
11733 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11734
11735 * frame.c: Remove one extra white space after #include
11736 directive.
11737
11738 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11741
11742 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11743
11744 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11745 and dir commands into an if block.
11746
11747 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11748
11749 * python/py-breakpoint (struct pybp_code): Use int instead of
11750 enum type_code.
11751
11752 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11753 Hafiz Abid Qadeer <abidh@codesourcery.com>
11754
11755 * NEWS: Mention new field "trace-file".
11756 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11757 (tfile_open): Record the trace file's filename in the trace
11758 status.
11759 (tfile_files_info): Mention the name of the trace file.
11760 Check the "filename" field explicitely.
11761 (trace_status_command): Explicitely check "filename" field.
11762 (trace_find_command): Ditto.
11763 (trace_find_pc_command): Ditto.
11764 (trace_find_tracepoint_command): Ditto.
11765 (trace_find_line_command): Ditto.
11766 (trace_find_range_command): Ditto.
11767 (trace_find_outside_command): Ditto.
11768 * tracepoint.h (struct trace_status) <from_file>: Rename it
11769 to "filename" and make it hold the trace file's filename
11770 instead of a boolean.
11771 * remote.c (remote_get_trace_status): Initialize "filename"
11772 field with NULL instead of 0.
11773
11774 2013-02-15 Yao Qi <yao@codesourcery.com>
11775
11776 * remote.c: Fix a typo.
11777
11778 2013-02-14 Pierre Muller <muller@sourceware.org>
11779
11780 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11781
11782 2013-02-14 Pedro Alves <palves@redhat.com>
11783
11784 * utils.c (savestring): Don't #undef it. Move function to
11785 common/common-utils.c.
11786 * common/common-utils.c: Include gdb_string.h.
11787 (savestring): Move here from utils.c.
11788 * common/common-utils.h (savestring): Declare.
11789
11790 2013-02-14 Pedro Alves <palves@redhat.com>
11791
11792 * utils.c (savestring): Rename parameter 'size' to 'len'.
11793
11794 2013-02-14 Pedro Alves <palves@redhat.com>
11795 Yufeng Zhang <yufeng.zhang@arm.com>
11796
11797 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11798 (aarch64_inferior_data, struct aarch64_inferior_data):
11799 Delete.
11800 (struct aarch64_process_info): New.
11801 (aarch64_process_list): New global.
11802 (aarch64_find_process_pid, aarch64_add_process)
11803 (aarch64_process_info_get): New functions.
11804 (aarch64_inferior_data_get): Delete.
11805 (aarch64_process_info_get): New function.
11806 (aarch64_forget_process): New function.
11807 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11808 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11809 aarch64_get_debug_reg_state.
11810 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11811 instead of linux_nat_iterate_watchpoint_lwps.
11812 (aarch64_linux_new_fork): New function.
11813 (aarch64_linux_child_post_startup_inferior): Use
11814 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11815 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11816 (aarch64_linux_remove_hw_breakpoint)
11817 (aarch64_handle_aligned_watchpoint)
11818 (aarch64_handle_unaligned_watchpoint)
11819 (aarch64_linux_insert_watchpoint)
11820 (aarch64_linux_remove_watchpoint)
11821 (aarch64_linux_stopped_data_address): Adjust to pass the current
11822 process id to aarch64_debug_reg_state.
11823 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11824 linux_nat_new_fork hook, and aarch64_forget_process as
11825 linux_nat_forget_process hook; remove the call to
11826 register_inferior_data_with_cleanup.
11827
11828 2013-02-14 Pedro Alves <palves@redhat.com>
11829
11830 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11831 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11832 lval_memory.
11833
11834 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11835 Hafiz Abid Qadeer <abidh@codesourcery.com>
11836
11837 * tracepoint.h (validate_trace_state_variable_name): Declare.
11838 * tracepoint.c (validate_trace_state_variable_name): New.
11839 (trace_variable_command): Parse the trace state variable's name
11840 without using parse_expression. Do several validations.
11841 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11842 trace state variable's name with parse_expression. Validate it.
11843
11844 2013-02-14 Yao Qi <yao@codesourcery.com>
11845
11846 * infcmd.c (breakpoint_proceeded): Remove it.
11847
11848 2013-02-14 Yao Qi <yao@codesourcery.com>
11849
11850 * tracepoint.c (end_actions_pseudocommand): Make it static.
11851 (while_stepping_pseudocommand): Likewise.
11852 * tracepoint.h (end_actions_pseudocommand): Remove the
11853 declaration.
11854 (while_stepping_pseudocommand): Likewise.
11855
11856 2013-02-14 Yao Qi <yao@codesourcery.com>
11857
11858 * cli/cli-decode.c (help_cmd): Remove the declaration of
11859 "cmdlist".
11860 (help_all): Likewise.
11861
11862 2013-02-13 Pedro Alves <palves@redhat.com>
11863
11864 * amd64-linux-nat.c (update_debug_registers_callback):
11865 Update comment.
11866 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11867 iterate_over_lwps.
11868 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11869 i386_debug_reg_state.
11870 (amd64_linux_new_fork): New function.
11871 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11872 linux_nat_new_fork hook, and i386_forget_process as
11873 linux_nat_forget_process hook.
11874 * i386-linux-nat.c (update_debug_registers_callback):
11875 Update comment.
11876 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11877 iterate_over_lwps.
11878 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11879 i386_debug_reg_state.
11880 (i386_linux_new_fork): New function.
11881 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11882 linux_nat_new_fork hook, and i386_forget_process as
11883 linux_nat_forget_process hook.
11884 * i386-nat.c (i386_init_dregs): Delete.
11885 (i386_inferior_data, struct i386_inferior_data):
11886 Delete.
11887 (struct i386_process_info): New.
11888 (i386_process_list): New global.
11889 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11890 New functions.
11891 (i386_inferior_data_get): Delete.
11892 (i386_process_info_get): New function.
11893 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11894 (i386_forget_process): New function.
11895 (i386_cleanup_dregs): Rewrite.
11896 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11897 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11898 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11899 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11900 to i386_debug_reg_state.
11901 (i386_use_watchpoints): Don't register inferior data.
11902 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11903 adjust comment.
11904 (i386_forget_process): Declare.
11905 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11906 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11907 New static globals.
11908 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11909 (add_initial_lwp): New, factored out from ...
11910 (add_lwp): ... this. Don't check the number of lwps before
11911 calling linux_nat_new_thread.
11912 (linux_nat_iterate_watchpoint_lwps): Delete.
11913 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11914 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11915 forks and vforks.
11916 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11917 initial lwp.
11918 (linux_nat_kill, linux_nat_mourn_inferior): Call
11919 linux_nat_forget_process.
11920 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11921 (linux_nat_forget_process): New functions.
11922 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11923 type.
11924 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11925 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11926 types.
11927 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11928 (linux_nat_forget_process): New declarations.
11929
11930 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11931 (amd64fbsd_mourn_inferior): New function.
11932 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11933 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11934
11935 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11936
11937 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11938 Adding _().
11939
11940 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11941
11942 * aarch64-linux-nat.c (debug_reg_change_callback)
11943 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11944 %s and phex().
11945
11946 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11947
11948 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11949 with LONGEST.
11950
11951 2013-02-13 Pedro Alves <palves@redhat.com>
11952 Hafiz Abid Qadeer <abidh@codesourcery.com>
11953
11954 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11955
11956 2013-02-12 Tom Tromey <tromey@redhat.com>
11957
11958 PR symtab/11464:
11959 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11960 NAME return.
11961 (classify_inner_name): Remove 'first_name' argument, add
11962 'context'. Remove unused variable.
11963 (yylex): Explicitly maintain the context type. Exit loop earlier
11964 if NAME result is seen.
11965
11966 2013-02-12 Pedro Alves <palves@redhat.com>
11967
11968 * amd64-darwin-tdep.c: Add (C) after Copyright.
11969 * cli/cli-cmds.h: Ditto.
11970 * cli/cli-decode.c: Ditto.
11971 * cli/cli-decode.h: Ditto.
11972 * cli/cli-dump.c: Ditto.
11973 * cli/cli-dump.h: Ditto.
11974 * cli/cli-interp.c: Ditto.
11975 * cli/cli-logging.c: Ditto.
11976 * cli/cli-script.c: Ditto.
11977 * cli/cli-script.h: Ditto.
11978 * cli/cli-setshow.c: Ditto.
11979 * cli/cli-setshow.h: Ditto.
11980 * cli/cli-utils.c: Ditto.
11981 * cli/cli-utils.h: Ditto.
11982 * config/alpha/nm-osf3.h: Ditto.
11983 * config/djgpp/djconfig.sh: Ditto.
11984 * config/i386/nm-fbsd.h: Ditto.
11985 * config/i386/nm-i386gnu.h: Ditto.
11986 * config/nm-linux.h: Ditto.
11987 * config/nm-nto.h: Ditto.
11988 * config/rs6000/nm-rs6000.h: Ditto.
11989 * config/sparc/nm-sol2.h: Ditto.
11990 * darwin-nat-info.c: Ditto.
11991 * dfp.c: Ditto.
11992 * dfp.h: Ditto.
11993 * gdb-demangle.h: Ditto.
11994 * i386-darwin-nat.c: Ditto.
11995 * i386-darwin-tdep.c: Ditto.
11996 * linux-fork.h: Ditto.
11997 * m32c-tdep.c: Ditto.
11998 * microblaze-linux-tdep.c: Ditto.
11999 * microblaze-rom.c: Ditto.
12000 * microblaze-tdep.c: Ditto.
12001 * microblaze-tdep.h: Ditto.
12002 * mips-linux-tdep.h: Ditto.
12003 * ppc-ravenscar-thread.c: Ditto.
12004 * ppc-ravenscar-thread.h: Ditto.
12005 * prologue-value.c: Ditto.
12006 * prologue-value.h: Ditto.
12007 * ravenscar-thread.c: Ditto.
12008 * ravenscar-thread.h: Ditto.
12009 * sparc-ravenscar-thread.c: Ditto.
12010 * sparc-ravenscar-thread.h: Ditto.
12011 * tilegx-linux-tdep.c: Ditto.
12012 * unwind_stop_reasons.def: Ditto.
12013 * windows-nat.h: Ditto.
12014 * xtensa-linux-tdep.c: Ditto.
12015 * xtensa-xtregs.c: Ditto.
12016 * regformats/regdat.sh: Ditto.
12017 * regformats/regdef.h: Ditto.
12018
12019 2013-02-12 Pedro Alves <palves@redhat.com>
12020
12021 * break-catch-sig.c: Update copyright years.
12022
12023 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
12024
12025 Add support for a destructor for ui_out data and use it to
12026 provide a ui_out destructor.
12027 * ui-out.h: Declare the new ui_out destructor.
12028 (ui_out_impl): Add a field for data destructor in ui_out_impl.
12029 * ui-out.c (default_data_destroy): Add a default data destructor
12030 which does nothing.
12031 (default_ui_out_impl): Set the new data_destroy field to
12032 default_data_destroy
12033 (uo_data_destroy): Local function which invokes the data
12034 destructor if present.
12035 (clear_table): Local function which clears the table data of a
12036 ui_out object.
12037 (ui_out_destroy): Public function which frees a ui_out object.
12038 (ui_out_table_end): Use the new clear_table function.
12039 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
12040 NULL.
12041 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
12042 to NULL.
12043
12044 2013-02-11 Doug Evans <dje@google.com>
12045
12046 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
12047 (printf_decfloat): New function. Broken out from ui_printf.
12048 Remove unnecessary code to shift the entire format string down.
12049 (printf_pointer): New function.
12050 (ui_printf): Code to print C strings, wide C strings, decfloats,
12051 and pointers moved to separate functions.
12052
12053 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12054
12055 * valops.c (value_assign): Handling bitfield offset in
12056 `lval_internalvar_component' case.
12057
12058 2013-02-08 Doug Evans <dje@google.com>
12059
12060 * common/format.c (parse_format_string): Fix whitespace.
12061
12062 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12063
12064 * stack.c (return_command): Work around uninitialized variable
12065 warning.
12066
12067 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12068
12069 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12070 number of the registers from 36 to 34.
12071
12072 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12073
12074 * NEWS: Mention new AArch64 native and target support.
12075
12076 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12077
12078 * MAINTAINERS (Write After Approval): Add myself.
12079
12080 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12081 Marcus Shawcroft <marcus.shawcroft@arm.com>
12082 Nigel Stephens <nigel.stephens@arm.com>
12083 Yufeng Zhang <yufeng.zhang@arm.com>
12084
12085 * aarch64-linux-nat.c: New file.
12086 * config/aarch64/linux.mh: New file.
12087 * configure.host: Add AArch64.
12088 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12089
12090 2013-02-07 Doug Evans <dje@google.com>
12091
12092 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12093 disassemble command.
12094
12095 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12096
12097 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12098 set_gdbarch_fetch_tls_load_module_address.
12099
12100 2013-02-06 David S. Miller <davem@davemloft.net>
12101
12102 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12103 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12104 * value.c (struct_return_convention): New function.
12105 (using_struct_return): Implement in terms of struct_return_convention.
12106 * value.h (struct_return_convention): Declare.
12107 * stack.c (return_command): Allow successful overriding of the return
12108 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12109
12110 2013-02-06 Tom Tromey <tromey@redhat.com>
12111
12112 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12113 outside of TRY_CATCH.
12114
12115 2013-02-06 Yao Qi <yao@codesourcery.com>
12116
12117 * mi/mi-interp.c: Include "tracepoint.h".
12118 (mi_tsv_modified): Declare.
12119 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12120 (mi_interpreter_init): Call observer_attach_tsv_modified.
12121 (mi_tsv_modified): New.
12122 (mi_tsv_created, mi_tsv_deleted): Update.
12123 * tracepoint.c (trace_variable_command): Call
12124 observer_notify_tsv_modified if the initial value of tsv is
12125 changed.
12126 (delete_trace_state_variable): Call
12127 observer_notify_tsv_deleted earlier.
12128 (trace_variable_command): Caller update.
12129 (create_tsv_from_upload): Likewise.
12130 * observer.sh: Declare "struct trace_state_variable".
12131
12132 * NEWS: Mention the new MI notification "=tsv-modified".
12133
12134 2013-02-05 Doug Evans <dje@google.com>
12135
12136 * completer.c (location_completer): Fix typo in comment.
12137
12138 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12139
12140 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12141 ADDRESS sorted.
12142
12143 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12144
12145 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12146 Refactor if statement to avoid trailing || operator.
12147
12148 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12149
12150 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12151
12152 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12153
12154 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12155 * configure.host: Add powerpc*-*-freebsd* target.
12156 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12157 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12158 * config/powerpc/fbsd.mh: New file.
12159
12160 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12161 Denys Vlasenko <dvlasenk@redhat.com>
12162 Pedro Alves <palves@redhat.com>
12163
12164 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12165 (struct elf_internal_linux_prpsinfo): Forward declare.
12166 * gdbarch.h, gdbarch.c: Regenerate.
12167 * linux-tdep.c: Include `cli/cli-utils.h'.
12168 (linux_fill_prpsinfo): New function.
12169 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12170 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12171 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12172 depending on gdbarch pointer bitness.
12173 * ppc-linux-tdep.c: Include elf-bfd.h.
12174 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12175 on 32-bit.
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 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12183
12184 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12185 Marcus Shawcroft <marcus.shawcroft@arm.com>
12186 Nigel Stephens <nigel.stephens@arm.com>
12187 Yufeng Zhang <yufeng.zhang@arm.com>
12188
12189 * aarch64-newlib-tdep.c: New file.
12190 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12191 aarch64*-*-elf.
12192 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12193 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12194 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12195 * osabi.c (gdb_osabi_names): Add "Newlib".
12196
12197 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12198 Marcus Shawcroft <marcus.shawcroft@arm.com>
12199 Nigel Stephens <nigel.stephens@arm.com>
12200 Yufeng Zhang <yufeng.zhang@arm.com>
12201
12202 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12203 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12204 * aarch64-linux-tdep.c: New file.
12205 * aarch64-linux-tdep.h: New file.
12206 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12207 * configure.tgt: Add aarch64-none-linux-gnu.
12208
12209 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12210 Marcus Shawcroft <marcus.shawcroft@arm.com>
12211 Nigel Stephens <nigel.stephens@arm.com>
12212 Yufeng Zhang <yufeng.zhang@arm.com>
12213
12214 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12215 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12216 (ALLDEPFILES): Add aarch64-tdep.c.
12217 * aarch64-tdep.c: New file.
12218 * aarch64-tdep.h: New file.
12219 * configure.tgt: Add AArch64.
12220 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12221 (aarch64-expedite): New definition.
12222 * features/aarch64-core.xml: New file.
12223 * features/aarch64-fpu.xml: New file.
12224 * features/aarch64-without-fpu.c: New file (generated).
12225 * features/aarch64-without-fpu.xml: New file.
12226 * features/aarch64.c: New file (generated).
12227 * features/aarch64.xml: New file.
12228 * regformats/aarch64-without-fpu.dat: New file (generated).
12229 * regformats/aarch64.dat: New file (generated).
12230
12231 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12232
12233 * contrib/expect-read1.c: New file.
12234 * contrib/expect-read1.sh: New file.
12235
12236 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12237
12238 * dwarf2read.c (file_file_name): New function with code from
12239 file_full_name.
12240 (file_full_name): Move most of the code to file_file_name.
12241 (macro_start_file): Rename variable full_name to file_name and use
12242 file_file_name for it. Add comp_dir parameter to new_macro_table.
12243 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12244 macro_source_file->filename access by macro_source_fullname call.
12245 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12246 caller.
12247 * macrotab.c (struct macro_table): New field comp_dir.
12248 (macro_include): New variables link_fullname and source_fullname.
12249 Replace any macro_source_file->filename access by macro_source_fullname
12250 call.
12251 (macro_lookup_inclusion): Remove the partial filenames checking code.
12252 (check_for_redefinition): New variables source_fullname and
12253 found_key_fullname. Replace any macro_source_file->filename access by
12254 macro_source_fullname call.
12255 (macro_undef): New variables source_fullname and key_fullname. Replace
12256 any macro_source_file->filename access by macro_source_fullname call.
12257 (macro_lookup_definition): New variables retval and source_fullname.
12258 Replace any macro_source_file->filename access by macro_source_fullname
12259 call.
12260 (foreach_macro): New variable key_fullname. Replace any
12261 macro_source_file->filename access by macro_source_fullname call.
12262 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12263 macro_source_file->filename access by macro_source_fullname call.
12264 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12265 (macro_source_fullname): New function.
12266 * macrotab.h (struct macro_source_file): Extent the filename field
12267 comment.
12268 (new_macro_table): New parameter comp_dir, add a comment for it.
12269 (macro_source_fullname): new declaration.
12270
12271 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12272
12273 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12274 this_real_name to outer block. Use it also for
12275 compare_filenames_for_search.
12276 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12277 with dw2_get_real_path for file_matcher, considering also
12278 BASENAMES_MAY_DIFFER.
12279 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12280
12281 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12282
12283 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12284 to the file_matcher parameter. Pass 0 to it.
12285 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12286 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12287 NULL psymtab_to_fullname result.
12288 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12289 an expected filename instead.
12290 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12291 file_matcher parameter. Call also psymtab_to_fullname, after newly
12292 considering BASENAMES_MAY_DIFFER.
12293 * source.c (rewrite_source_path): Remove static.
12294 * source.h (rewrite_source_path): New declaration.
12295 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12296 the expand_symtabs_matching field. Comment it.
12297 * symtab.c (file_matches): New function comment. Add parameter
12298 basenames, implement it.
12299 (search_symbols_file_matches): Add basenames parameter. Update the
12300 file_matches caller.
12301 (search_symbols): Match FILES also against symtab_to_fullname.
12302 Optimize it for BASENAMES_MAY_DIFFER.
12303
12304 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12305
12306 * source.c (print_source_lines_base): Print for TUI also "fullname".
12307 * tui/tui-data.c (init_content_element): Change tui_locator_element
12308 field to full_name.
12309 * tui/tui-data.h (struct tui_locator_element): Likewise.
12310 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12311 tui_update_locator_filename calls to tui_update_locator_fullname.
12312 Replace symtab->filename refererence by symtab_to_fullname call.
12313 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12314 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12315 field to full_name. Replace symtab->filename refererence by
12316 symtab_to_fullname call.
12317 (tui_show_symtab_source): Rename parameter to fullname. Change
12318 tui_locator_element field to full_name.
12319 * tui/tui-stack.c: Include source.h.
12320 (tui_set_locator_filename): Rename the declaration to ...
12321 (tui_set_locator_fullname): ... here. Rename its parameter to
12322 fullname, updates its comment.
12323 (tui_set_locator_info): Rename its parameter to fullname.
12324 (tui_set_locator_filename): Rename the definition to ...
12325 (tui_set_locator_fullname): ... here. Rename its parameter to
12326 fullname, updates its comment. Change tui_locator_element field to
12327 full_name.
12328 (tui_set_locator_info): Rename its parameter to fullname.
12329 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12330 (tui_update_locator_filename): Rename to ...
12331 (tui_update_locator_fullname): ... here. Rename callee to
12332 tui_set_locator_fullname.
12333 (tui_show_frame_info): Replace symtab->filename refererence by
12334 symtab_to_fullname call.
12335 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12336 (tui_update_locator_fullname): ... here.
12337 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12338 tui_update_locator_fullname. Replace symtab->filename refererence by
12339 symtab_to_fullname call.
12340 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12341 Rename the callee to tui_update_locator_fullname.
12342 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12343
12344 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12345
12346 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12347 by symtab_to_filename_for_display calls.
12348 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12349 (clear_command): New variable sal_fullname, initialize it. Replace
12350 compare_filenames_for_search by filename_cmp with sal_fullname.
12351 (say_where, update_static_tracepoint): Replace symtab->filename
12352 refererences by symtab_to_filename_for_display calls.
12353 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12354 Likewise.
12355 * dwarf2read.c: Include source.h.
12356 (fixup_go_packaging): Replace symtab->filename refererences by
12357 symtab_to_filename_for_display calls.
12358 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12359 Replace symtab->filename refererences by symtab_to_filename_for_display
12360 calls.
12361 (create_sals_line_offset, convert_linespec_to_sals): New variable
12362 fullname, initialize it, replace symtab->filename reference by the
12363 variable.
12364 * linux-fork.c: Include source.h.
12365 (info_checkpoints_command): Replace symtab->filename refererences by
12366 symtab_to_filename_for_display calls.
12367 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12368 by symtab_to_filename_for_display calls.
12369 * mdebugread.c: Include source.h.
12370 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12371 symtab_to_filename_for_display calls.
12372 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12373 (mi_cmd_file_list_exec_source_files): Likewise.
12374 * printcmd.c: Include source.h.
12375 (build_address_symbolic): Replace symtab->filename refererences by
12376 symtab_to_filename_for_display calls.
12377 * psymtab.c (partial_map_symtabs_matching_filename)
12378 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12379 with psymtab_to_fullname.
12380 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12381 by symtab_to_filename_for_display calls.
12382 (stpy_get_filename): New variable filename, initialize it, use instead
12383 of symtab->filename refererences.
12384 (salpy_str): Make variable filename const char *. Replace
12385 symtab->filename refererences by symtab_to_filename_for_display calls.
12386 * skip.c: Include source.h and filenames.h.
12387 (skip_file_command): Remove const from the symtab variable. Replace
12388 symtab->filename refererences by symtab_to_fullname call.
12389 (function_name_is_marked_for_skip): New variables searched_for_fullname
12390 and fullname. Use them to search also with symtab's fullname.
12391 * source.c (find_source_lines): Replace symtab->filename refererences
12392 by symtab_to_filename_for_display calls.
12393 (print_source_lines_base): New variable filename, use it instead of
12394 symtab->filename. Replace symtab->filename refererences by
12395 symtab_to_filename_for_display calls.
12396 (line_info, forward_search_command): Replace symtab->filename
12397 refererences by symtab_to_filename_for_display calls.
12398 (reverse_search_command): Replace symtab->filename refererences by
12399 symtab_to_filename_for_display calls. New variable filename for it.
12400 * stack.c (frame_info): Likewise.
12401 * symmisc.c: Include source.h.
12402 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12403 (maintenance_info_symtabs): Replace symtab->filename refererences by
12404 symtab_to_filename_for_display calls.
12405 * symtab.c (iterate_over_some_symtabs): Call
12406 compare_filenames_for_search also with symtab_to_fullname.
12407 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12408 symtab->filename refererences by symtab_to_filename_for_display calls.
12409 (find_line_symtab): Replace symtab->filename refererences by
12410 symtab_to_filename_for_display calls.
12411 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12412 (print_symbol_info): Make the last parameter const char *. New
12413 variable s_filename. Use it in the function.
12414 (symtab_symbol_info): Make the last_filename variable const char *.
12415 Replace symtab->filename refererences by symtab_to_filename_for_display
12416 calls.
12417 (rbreak_command): New variable fullname. Use it. Replace
12418 symtab->filename refererence by symtab_to_filename_for_display call.
12419 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12420 (print_one_static_tracepoint_marker): Replace symtab->filename
12421 refererences by symtab_to_filename_for_display calls.
12422 * tui/tui-source.c (tui_set_source_content): New variables filename and
12423 s_filename. Replace symtab->filename refererences by this variable.
12424 Replace other symtab->filename refererences by
12425 symtab_to_filename_for_display calls.
12426
12427 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12428 Jan Kratochvil <jan.kratochvil@redhat.com>
12429
12430 Add a new variable that controls a way in which filenames are
12431 displayed.
12432 * NEWS (set filename-display): New entry.
12433 * source.c (filename_display_basename, filename_display_relative)
12434 (filename_display_absolute, filename_display_kind_names)
12435 (filename_display_string, show_filename_display_string)
12436 (symtab_to_filename_for_display): New.
12437 (_initialize_source): Added initialization of 'filename-display'
12438 variable.
12439 * source.h (symtab_to_filename_for_display): Added declaration.
12440 * stack.c (print_frame): Added new variable and calling of a new
12441 function and condition with this variable. Changed third argument of
12442 calling of a function.
12443
12444 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12445
12446 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12447 Rename field reference filename to fullname.
12448 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12449 fullname. New comment for it.
12450 * tui/tui-source.c (tui_set_source_content): Rename field reference
12451 filename to fullname. Initialize field by symtab_to_fullname now.
12452 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12453 reference filename to fullname. Use symtab_to_fullname during
12454 comparison.
12455
12456 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12457
12458 Code cleanup.
12459 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12460 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12461 filename to fullname. Rename variable this_name to this_fullname.
12462 Lowercase FILENAME_CMP call.
12463 (dw2_find_symbol_file): New comment for the returned string.
12464 (dwarf2_gdb_index_functions): Rename the function to
12465 dw2_expand_symtabs_with_fullname.
12466 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12467 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12468 fullname.
12469 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12470 * symfile.h (struct quick_symbol_functions): Rename field
12471 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12472 parameter filename to fullname. Document returned string meaning for
12473 find_symbol_file.
12474 * symtab.c (find_line_symtab): Rename the called function to
12475 expand_symtabs_with_fullname.
12476
12477 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12478
12479 Code cleanup.
12480 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12481 call of filename_cmp with compare_filenames_for_search.
12482 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12483 is_abs, unify the call of FILENAME_CMP with
12484 compare_filenames_for_search. New gdb_asserts for real_path and name.
12485 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12486 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12487 * symfile.h (struct quick_symbol_functions): Extend the comment for
12488 map_symtabs_matching_filename.
12489 * symtab.c (compare_filenames_for_search): Remove the function comment
12490 relative path requirement. Handle absolute filenames, with a comment.
12491 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12492 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12493 real_path and name. Unify the call of compare_filenames_for_search
12494 with FILENAME_CMP.
12495 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12496
12497 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12498
12499 Code cleanup.
12500 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12501 source_file references by symtab field references. Remove variables
12502 sal and fullname.
12503 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12504 (clear_command, say_where): Replace bp_location field source_file
12505 references by symtab field references.
12506 (bp_location_dtor): Remove the source_file reference.
12507 (update_static_tracepoint): Replace bp_location field source_file
12508 references by symtab field references.
12509 (breakpoint_free_objfile): New function.
12510 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12511 Replace the field source_file by field symtab, extend its comment.
12512 (breakpoint_free_objfile): New declaration.
12513 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12514 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12515 field source_file references by symtab field references.
12516
12517 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12518
12519 Replace xfullpath calls by gdb_realpath calls.
12520 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12521 function comment.
12522 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12523 Remove it from the iterate_over_some_symtabs call.
12524 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12525 Remove it from the dw2_map_expand_apply calls, remove a block handling
12526 it.
12527 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12528 Remove it from the iterate_over_some_symtabs call.
12529 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12530 Remove it from the partial_map_expand_apply calls, remove a block
12531 handling it. Drop gdb_realpath call and cleanups from the real_path
12532 handling.
12533 * source.c (openp): Drop the comment part about xfullpath. Replace
12534 xfullpath calls by gdb_realpath calls.
12535 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12536 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12537 from method map_symtabs_matching_filename and its comment.
12538 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12539 gdb_realpath call.
12540 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12541 remove it also from the function comment, remove a block handling it.
12542 Drop gdb_realpath call and cleanups from the real_path handling.
12543 (iterate_over_symtabs): Drop variable full_path and its use.
12544 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12545 * utils.c (xfullpath): Remove.
12546 * utils.h (xfullpath): Remove.
12547
12548 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12549
12550 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12551 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12552 (ALLDEPFILES): Add ppc64-tdep.c.
12553 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12554 ppc64-tdep.o to gdb_target_obs.
12555 * ppc64-tdep.h: New file.
12556 * ppc64-tdep.c: New file.
12557 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12558 ppc-linux-tdep.c to here.
12559 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12560 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12561 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12562 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12563 from ppc-linux-tdep.c to here.
12564 (ppc64_convert_from_func_ptr_addr): Rename from
12565 ppc64_linux_convert_from_func_ptr_addr to
12566 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12567 here.
12568 * rs6000-tdep.c:
12569 (read_insn): Move from ppc-linux-tdep.c to here.
12570 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12571 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12572 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12573 Removed above functions.
12574 (ppc_linux_init_abi): Adjust.
12575
12576 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12577
12578 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12579
12580 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12581
12582 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12583
12584 2013-02-01 Pedro Alves <palves@redhat.com>
12585
12586 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12587 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12588
12589 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12590
12591 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12592 files with no separate debug info.
12593 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12594 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12595 only for files with no separate debug info.
12596
12597 2013-01-31 Tom Tromey <tromey@redhat.com>
12598
12599 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12600 change type.
12601 (struct jit_program_space_data): Rename from jit_inferior_data.
12602 Update comments.
12603 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12604 Change return type. Attach data to program space.
12605 (jit_program_space_data_cleanup): Rename from
12606 jit_inferior_data_cleanup; change argument type.
12607 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12608 change type.
12609 (jit_register_code): Update.
12610 (jit_update_inferior_cache): Remove.
12611 (jit_breakpoint_deleted): Get jit data from the location's program
12612 space.
12613 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12614 'ps_data', change type.
12615 (jit_inferior_init, jit_breakpoint_re_set_internal)
12616 (jit_event_handler): Update.
12617 (free_objfile_data): Get data from objfile's program space.
12618 (_initialize_jit): Update.
12619
12620 2013-01-31 Tom Tromey <tromey@redhat.com>
12621
12622 PR gdb/13987:
12623 * jit.c (struct jit_inferior_data) <cached_code_address,
12624 jit_breakpoint>: New fields.
12625 (jit_breakpoint_re_set_internal): Fix logging. Only create
12626 breakpoint if cached address has changed.
12627 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12628 functions.
12629 (_initialize_jit): Register breakpoint deleted observer.
12630
12631 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12632
12633 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12634 (save_infcall_suspend_state): Ifdef out unused inf.
12635 (restore_infcall_suspend_state): Ifdef out unused inf.
12636 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12637 (jit_frame_sniffer): Remove unused inf_data.
12638
12639 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12640
12641 * c-exp.y (classify_inner_name): Remove unused type.
12642 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12643 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12644 need_escape.
12645 (c_get_string): Remove unused kind.
12646 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12647
12648 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12649
12650 * charset.c (intermediate_encoding): Remove unused i.
12651 * completer.c (signal_completer): Remove unused i.
12652 * continuations.c (discard_my_continuations_1): Remove unused
12653 continuation_ptr.
12654 * corelow.c (core_close): Remove unuseD name.
12655 (get_core_siginfo): Remove unused pid.
12656 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12657 i, cps.
12658 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12659 (loclist_describe_location): Remove unused first.
12660 * event-top.c (command_line_handler): Remove unused got_eof.
12661 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12662 (resize_section_table): Remove unused old_value.
12663 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12664 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12665 * i386-tdep.c (i386_process_record): Remove unused rex.
12666 * infcmd.c (get_return_value): Remove unused uiout.
12667 * jv-lang.c (type_from_class): Remove unused is_array.
12668 * jv-valprint.c (java_val_print): Remove unused i.
12669 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12670 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12671 * m2-typeprint.c (m2_print_type): Remove unused code.
12672 * macroexp.c (get_character_constant): Remove unused body_start.
12673 (macro_stringify): Remove unused result.
12674 * objc-lang.c (find_methods): Remove unused gdbarch.
12675 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12676 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12677 * stack.c (print_frame_args): Remove unused summary.
12678 * thread.c (thread_apply_command): Remove unused p.
12679 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12680 * valops.c (search_struct_method): Remove unused skip.
12681 * valprint.c (generic_val_print): Remove unused byte_order.
12682 * varobj.c (varobj_update): Remove unused changed.
12683 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12684 (alias_command): Remove unused c.
12685 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12686 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12687 format.
12688 (mi_cmd_data_write_memory): Remove unused word_format.
12689 (mi_cmd_data_write_memory_bytes): Remove unused r.
12690 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12691 p_start, p_end.
12692 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12693 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12694 line_width.
12695
12696 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12697
12698 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12699 * symtab.c (iterate_over_symtabs): Remove unused s.
12700 (find_pc_sect_symtab): Remove unused pspAce.
12701 (find_pc_sect_line): Remove unused alt_symtab.
12702 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12703 (completion_list_add_name): Remove unused newsize.
12704
12705 2013-01-31 Tom Tromey <tromey@redhat.com>
12706
12707 PR c++/14998:
12708 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12709 TYPE_CODE_FUNC.
12710
12711 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12712
12713 * target.c (target_read_string): Remove unused origlen.
12714
12715 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12716
12717 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12718 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12719 * ax-general.c (ax_print): Remove unused is_float.
12720 * blockframe.c (block_innermost_frame): Remove unused start, end.
12721 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12722
12723 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12724
12725 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12726 (svr4_read_so_list): Remove unused lmo.
12727 * solib-target.c (solib_target_relocate_section_addresses): Remove
12728 unused flags.
12729
12730 2013-01-30 Tom Tromey <tromey@redhat.com>
12731
12732 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12733
12734 2013-01-30 Tom Tromey <tromey@redhat.com>
12735
12736 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12737 * utils.c (gnu_debuglink_crc32): Remove.
12738 * utils.h (gnu_debuglink_crc32): Don't declare.
12739
12740 2013-01-30 Tom Tromey <tromey@redhat.com>
12741
12742 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12743 (read_structure_type, read_enumeration_type): Remove cast.
12744
12745 2013-01-30 Tom Tromey <tromey@redhat.com>
12746
12747 * dwarf2read.c (read_namespace_type): Remove cast.
12748 (read_typedef): Likewise.
12749
12750 2013-01-29 Tom Tromey <tromey@redhat.com>
12751
12752 * dwarf2read.c (free_dwo_file): Remove assert.
12753
12754 2013-01-29 Tom Tromey <tromey@redhat.com>
12755
12756 * value.c (deprecated_set_value_modifiable): Remove.
12757 * value.h (deprecated_set_value_modifiable): Remove.
12758
12759 2013-01-28 Doug Evans <dje@google.com>
12760
12761 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12762 to addresses from dwo files.
12763
12764 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12765
12766 * valops.c (find_overload_match): Remove unused argument 'lax'.
12767 * value.h: Remove unused argument 'lax' from the declaration of
12768 find_overload_match.
12769 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12770 to find_overload_match.
12771 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12772 argument to find_overload_match.
12773
12774 2013-01-25 Tom Tromey <tromey@redhat.com>
12775
12776 * dwarf2read.c (processing_has_namespace_info): Remove.
12777 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12778 (process_die, read_func_scope, dwarf2_start_symtab)
12779 (new_symbol_full): Update.
12780
12781 2013-01-25 Tom Tromey <tromey@redhat.com>
12782
12783 * cp-namespace.c (cp_set_block_scope): Remove.
12784 * cp-support.h (cp_set_block_scope): Remove.
12785 * dbxread.c: Include block.h.
12786 (cp_set_block_scope): New function.
12787 (process_one_symbol): Update.
12788 * dwarf2read.c (read_func_scope): Use block_set_scope.
12789
12790 2013-01-25 Pedro Alves <palves@redhat.com>
12791
12792 * remote.c (add_current_inferior_and_thread): Tweak comment.
12793
12794 2013-01-25 Tom Tromey <tromey@redhat.com>
12795
12796 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12797 (cp_add_using_directive): Add 'copy_names' argument.
12798 * cp-support.h (cp_add_using_directive): Update.
12799 (struct using_direct) <import_src, import_dest, alias,
12800 declaration>: Now const.
12801 * dwarf2read.c (read_import_statement): Use obconcat.
12802 Don't copy names passed to cp_add_using_directive.
12803
12804 2013-01-25 Tom Tromey <tromey@redhat.com>
12805
12806 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12807
12808 2013-01-25 Pedro Alves <palves@redhat.com>
12809
12810 * remote.c (stop_reply_extract_thread): New.
12811 (add_current_inferior_and_thread): New parameter 'wait_status'.
12812 Handle it.
12813 (remote_start_remote): Pass wait status to
12814 add_current_inferior_and_thread.
12815 (extended_remote_run): Update comment.
12816 (extended_remote_create_inferior_1): Pass wait status to
12817 add_current_inferior_and_thread.
12818
12819 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12820 Ulrich Weigand <uweigand@de.ibm.com>
12821
12822 * valarith.c (value_vector_widen): New function for replicating a
12823 scalar into a vector.
12824 (value_binop): Use value_vector_widen to widen scalar to vector
12825 rather than casting, this better matches gcc C behaviour.
12826 * valops.c (value_casst): Update logic for casting between vector
12827 types, and for casting from scalar to vector, try to match gcc C
12828 behaviour.
12829 * value.h (value_vector_widen): Declare.
12830 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12831 function, handle special case for casting scalar to vector.
12832 (opencl_relop): Use opencl_value_cast.
12833 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12834 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12835 in order to use opencl_value_cast.
12836
12837 2013-01-25 Yao Qi <yao@codesourcery.com>
12838
12839 * event-loop.c: Include "queue.h".
12840 (gdb_event_p): New typedef.
12841 (DECLARE_QUEUE_P): Use.
12842 (DEFINE_QUEUE_P): Use.
12843 (async_queue_event): Remove.
12844 (gdb_event_xfree): New.
12845 (initialize_event_loop): New.
12846 (process_event): Use QUEUE macros.
12847 (event_queue): Remove.
12848 (gdb_wait_for_event): Caller update.
12849 (check_async_event_handlers): Likewise.
12850 (poll_timers): Likewise.
12851 * event-loop.h (initialize_event_loop): Declare.
12852 * event-loop.c (gdb_event_xfree): New.
12853 * top.c (gdb_init): Call initialize_event_loop.
12854
12855 2013-01-25 Yao Qi <yao@codesourcery.com>
12856
12857 * event-loop.c (async_queue_event): Remove one parameter
12858 'position'. Remove code handling 'position' == TAIL.
12859 (gdb_wait_for_event): Caller update.
12860 (check_async_event_handlers): Caller update.
12861 (poll_timers): Caller update.
12862 * event-loop.h (enum queue_position): Remove.
12863
12864 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12865
12866 * MAINTAINERS: Update my email.
12867
12868 2013-01-25 Yao Qi <yao@codesourcery.com>
12869
12870 * main.c (print_gdb_help): Remove "--epoch" from the help
12871 message.
12872
12873 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12874
12875 * symtab.c (skip_prologue_using_sal): Consider a file
12876 change the same as an increased line number
12877
12878 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12879
12880 * MAINTAINERS (Write After Approval): Add myself to the list.
12881
12882 2013-01-24 Tom Tromey <tromey@redhat.com>
12883
12884 * ada-lang.h (ada_decode_symbol): Make return type const.
12885 * ada-lang.c (ada_decode_symbol): Likewise.
12886
12887 2013-01-23 Doug Evans <dje@google.com>
12888
12889 * linespec.c (find_linespec_symbols): Make static.
12890
12891 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12892
12893 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12894 type on float conversion for complex type.
12895
12896 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12897
12898 Add a new class gdb.Architecture which exposes GDB's
12899 internal representation of architecture via GDB Python API.
12900 * Makefile.in: Add entries corresponding to the new file
12901 python/py-arch.c.
12902 * NEWS (Python Scripting): Add entries for the new class
12903 gdb.Architecture and the new method gdb.Frame.architecture.
12904 * python/py-arch.c: Implement gdb.Architecture class.
12905 * python/py-frame.c (frapy_arch): Implement the method
12906 gdb.Frame.architecture().
12907 (frame_object_methods): Add 'architecture' to the method table.
12908 * python/python-internal.h: Add declarations of new utility
12909 functions.
12910 * python/python.c (_initialize_python): Initialize
12911 gdb.Architecture class.
12912
12913 2013-01-23 Doug Evans <dje@google.com>
12914
12915 Work around binutils/15021.
12916 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12917 type_unit_group out of union s. All uses updated.
12918 (read_index_from_section): Watch for index version 8.
12919 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12920 an imported symtab.
12921 (write_psymtabs_to_index): Increment version number to 8.
12922
12923 2013-01-22 Pedro Alves <palves@redhat.com>
12924
12925 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12926 user-visible.
12927
12928 2013-01-22 Pedro Alves <palves@redhat.com>
12929
12930 * annotate.c (annotate_breakpoints_changed): Rename to ...
12931 (annotate_breakpoints_invalid): ... this. Make static.
12932 (breakpoint_changed): Adjust.
12933 (_initialize_annotate): Always install the observers. Install a
12934 "breakpoint_created" observer.
12935 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12936 * breakpoint.c (set_breakpoint_condition)
12937 (breakpoint_set_commands, do_map_commands_command)
12938 (init_raw_breakpoint, clear_command, set_ignore_count)
12939 (enable_breakpoint_disp): No longer call
12940 annotate_breakpoints_changed.
12941
12942 2013-01-22 Pedro Alves <palves@redhat.com>
12943
12944 * annotate.c: Include "inferior.h".
12945 (frames_invalid_emitted)
12946 (breakpoints_invalid_emitted): New globals.
12947 (async_background_execution_p): New function.
12948 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12949 emitting the annotation if it has already been emitted.
12950 (annotate_display_prompt): New function.
12951 * annotate.h (annotate_display_prompt): New declaration.
12952 * event-top.c: Include annotate.h.
12953 (display_gdb_prompt): Call annotate_display_prompt.
12954
12955 2013-01-22 Pedro Alves <palves@redhat.com>
12956
12957 * annotate.c (ignore_count_changed): Delete.
12958 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12959 (annotate_ignore_count_change): Delete.
12960 (annotate_stopped): Don't emit a delayed breakpoints-changed
12961 annotation.
12962 * annotate.h (annotate_ignore_count_change): Delete.
12963 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12964 annotate_ignore_count_change.
12965
12966 2013-01-22 Tom Tromey <tromey@redhat.com>
12967
12968 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12969 require_rvalue for a register location.
12970
12971 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12972
12973 * breakpoint.c (print_one_breakpoint_location): Add MI
12974 field 'thread-groups' when printing a breakpoint.
12975 (output_thread_groups): New function.
12976
12977 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12978
12979 * python/lib/gdb/commands/explore.py
12980 (CompoundExplorer.explore_expr): Correct the name of a method
12981 being invoked.
12982 (ExploreTypeCommand.invoke): Add a missing 'return'.
12983
12984 2013-01-21 Tom Tromey <tromey@redhat.com>
12985
12986 * gdb_obstack.h (obconcat): Move declaration here, from...
12987 * symfile.h (obconcat): ... here.
12988 * gdb_obstack.c: New file.
12989 (obconcat): Move from...
12990 * symfile.c (obconcat): ... here.
12991 * Makefile.in (SFILES): Add gdb_obstack.c.
12992 (COMMON_OBS): Add gdb_obstack.o.
12993
12994 2013-01-21 Tom Tromey <tromey@redhat.com>
12995
12996 * symfile.h (obsavestring): Don't declare.
12997 * symfile.c (obsavestring): Remove.
12998 * ada-exp.y: Use obstack_copy0, not obsavestring.
12999 * ada-lang.c: Use obstack_copy0, not obsavestring.
13000 * coffread.c: Use obstack_copy0, not obsavestring.
13001 * cp-namespace.c: Use obstack_copy0, not obsavestring.
13002 * dbxread.c: Use obstack_copy0, not obsavestring.
13003 * dwarf2read.c: Use obstack_copy0, not obsavestring.
13004 * jit.c: Use obstack_copy0, not obsavestring.
13005 * mdebugread.c: Use obstack_copy0, not obsavestring.
13006 * psymtab.c: Use obstack_copy0, not obsavestring.
13007 * stabsread.c: Use obstack_copy0, not obsavestring.
13008 * xcoffread.c: Use obstack_copy0, not obsavestring.
13009
13010 2013-01-21 Tom Tromey <tromey@redhat.com>
13011
13012 * dwarf2read.c (fixup_go_packaging): Save package name
13013 on objfile obstack.
13014 * gdbtypes.c (init_type): Don't copy name.
13015
13016 2013-01-21 Tom Tromey <tromey@redhat.com>
13017
13018 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
13019 const.
13020 (struct attribute) <u.str>: Now const.
13021 (struct fnfieldlist) <name>: Now const.
13022 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
13023 (partial_die_parent_scope): Make return type const.
13024 (partial_die_full_name, add_partial_symbol): Update.
13025 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
13026 'name' const.
13027 (find_file_and_directory): Make 'name' and 'comp_dir' const.
13028 (read_file_scope, read_func_scope, dwarf2_add_field)
13029 (dwarf2_add_member_fn, read_structure_type)
13030 (process_enumeration_scope, read_array_type, read_module_type)
13031 (read_base_type, read_subrange_type): Update.
13032 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
13033 (new_symbol_full, guess_full_die_structure_name): Update.
13034 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
13035 (dwarf2_name): Return const type.
13036 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
13037 const.
13038
13039 2013-01-21 Tom Tromey <tromey@redhat.com>
13040
13041 * gdbtypes.c (init_type): Make 'name' const.
13042 * gdbtypes.h (init_type): Update.
13043
13044 2013-01-21 Tom Tromey <tromey@redhat.com>
13045
13046 * buildsym.c (patch_subfile_names): Use set_last_source_file.
13047 (start_symtab): Make 'name' and 'dirname' const. Use
13048 set_last_source_file.
13049 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13050 (last_source_file): Define. Now static.
13051 (set_last_source_file, get_last_source_file): New functions.
13052 * buildsym.h (last_source_file): Don't declare.
13053 (start_symtab): Update.
13054 (set_last_source_file, get_last_source_file): Declare.
13055 * coffread.c (complete_symtab): Use set_last_source_file.
13056 (coff_end_symtab): Likewise.
13057 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13058 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13059 set_last_source_file.
13060 (process_one_symbol): Use get_last_source_file.
13061 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13062 (psymtab_to_symtab_1): Use get_last_source_file.
13063 * xcoffread.c (process_linenos): Use get_last_source_file.
13064 (complete_symtab): Use set_last_source_file.
13065 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13066 (scan_xcoff_symtab): Use set_last_source_file.
13067
13068 2013-01-21 Tom Tromey <tromey@redhat.com>
13069
13070 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13071 (symbol_set_names): Remove casts. Handle field const-ness.
13072
13073 2013-01-21 Tom Tromey <tromey@redhat.com>
13074
13075 * dwarf2read.c (new_symbol_full): Remove cast.
13076 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13077 * symtab.h (symbol_set_demangled_name): Update.
13078
13079 2013-01-21 Tom Tromey <tromey@redhat.com>
13080
13081 * main.c (captured_main): Call bfd_init.
13082
13083 2013-01-21 Tom Tromey <tromey@redhat.com>
13084
13085 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13086 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13087 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13088 * NEWS: Update.
13089
13090 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13091
13092 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13093
13094 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13095
13096 Fix gdb.fortran/common-block.exp crash in PIE mode.
13097 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13098 LOC_COMMON_BLOCK.
13099 * f-valprint.c (info_common_command_for_block): Expect
13100 LOC_COMMON_BLOCK in gdb_assert.
13101 * symtab.h (struct general_symbol_info): Update comment for the
13102 common_block member.
13103 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13104 (enum address_class): New member LOC_COMMON_BLOCK.
13105
13106 2013-01-18 David Blaikie <dblaikie@gmail.com>
13107
13108 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13109
13110 2013-01-18 Tom Tromey <tromey@redhat.com>
13111
13112 PR c++/14999:
13113 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13114 Call require_rvalue.
13115
13116 2013-01-18 Yao Qi <yao@codesourcery.com>
13117
13118 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13119 (dbx_read_symtab): New declaration.
13120 (dbx_psymtab_to_symtab): Delete.
13121 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13122 Rename parameter PST to SELF. Exchanged two parameters.
13123 (start_psymtab): Caller update.
13124 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13125 (dwarf2_read_symtab): New declaration.
13126 (dwarf2_psymtab_to_symtab): Delete.
13127 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13128 Rename parameter PST to SELF. Exchanged two parameters.
13129 (create_partial_symtab): Caller update.
13130 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13131 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13132 Rename parameter PST to SELF. Exchanged two parameters.
13133 (parse_partial_symbols, new_psymtab): Caller update.
13134 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13135 two parameters.
13136 * psymtab.c (psymtab_to_symtab): Caller update.
13137 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13138 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13139 Rename parameter PST to SELF. Exchanged two parameters.
13140 (xcoff_start_psymtab): Caller update.
13141
13142 2013-01-18 Yao Qi <yao@codesourcery.com>
13143
13144 * infrun.c (proceed): Rename local variable 'oneproc' to
13145 'force_step'.
13146
13147 2013-01-17 Doug Evans <dje@google.com>
13148
13149 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13150 (dw2_build_type_unit_groups): Delete. All uses updated.
13151
13152 * symtab.h (struct symbol_search): Add comment.
13153
13154 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13155
13156 * symtab.c (compare_filenames_for_search): New comment for
13157 HAS_DRIVE_SPEC.
13158
13159 2013-01-17 Tom Tromey <tromey@redhat.com>
13160
13161 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13162
13163 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13164
13165 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13166 initialize it by existing make_cleanup. Call new do_cleanups.
13167
13168 2013-01-17 Tom Tromey <tromey@redhat.com>
13169
13170 * cp-abi.c (cp_abi_completer): New function.
13171 (_initialize_cp_abi): Set completer for "set cp-abi".
13172
13173 2013-01-17 Tom Tromey <tromey@redhat.com>
13174
13175 * mem-break.c: Remove obsolete comment.
13176 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13177
13178 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13179
13180 * jit.c (jit_reader_load_command): Interpret the jit reader name
13181 as an absolute path if it begins with a forward slash.
13182
13183 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13184
13185 PR gdb/14550
13186
13187 * jit.c (finalize_symtab): Ensure that only the global block has a
13188 NULL superblock.
13189
13190 2013-01-17 Pedro Alves <palves@redhat.com>
13191
13192 * acinclude.m4: Include ../config/plugins.m4,
13193 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13194 * Makefile.in (aclocal_m4_deps): Update.
13195 * aclocal.m4: Renegerate.
13196
13197 2013-01-16 Doug Evans <dje@google.com>
13198
13199 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13200
13201 2013-01-16 Pedro Alves <palves@redhat.com>
13202 Tom Tromey <tromey@redhat.com>
13203
13204 PR cli/7221:
13205 * NEWS: Add "catch signal".
13206 * breakpoint.c (base_breakpoint_ops): No longer static.
13207 (bpstat_explains_signal): New function.
13208 (init_catchpoint): No longer static.
13209 (base_breakpoint_explains_signal): New function.
13210 (base_breakpoint_ops): Initialize new field.
13211 * breakpoint.h (enum bpstat_signal_value): New.
13212 (struct breakpoint_ops) <explains_signal>: New field.
13213 (bpstat_explains_signal): Remove macro, declare as function.
13214 (base_breakpoint_ops, init_catchpoint): Declare.
13215 * break-catch-sig.c: New file.
13216 * inferior.h (signal_catch_update): Declare.
13217 * infrun.c (signal_catch): New global.
13218 (handle_syscall_event): Update for change to
13219 bpstat_explains_signal.
13220 (handle_inferior_event): Likewise. Always handle random signals
13221 via bpstats.
13222 (signal_cache_update): Check signal_catch.
13223 (signal_catch_update): New function.
13224 (_initialize_infrun): Initialize signal_catch.
13225 * Makefile.in (SFILES): Add break-catch-sig.c.
13226 (COMMON_OBS): Add break-catch-sig.o.
13227
13228 2013-01-16 Tom Tromey <tromey@redhat.com>
13229
13230 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13231 (print_one_catch_solib, print_one_catch_syscall)
13232 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13233 "catch-type".
13234
13235 2013-01-16 Yao Qi <yao@codesourcery.com>
13236
13237 * printcmd.c (current_display_number): Make it static.
13238
13239 2013-01-16 Yao Qi <yao@codesourcery.com>
13240
13241 * infcmd.c (step_once): Don't check '!single_inst' as it was
13242 checked before.
13243
13244 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13245
13246 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13247
13248 2013-01-14 Tom Tromey <tromey@redhat.com>
13249
13250 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13251 set command.
13252 * command.h (add_setshow_string_noescape_cmd): Update.
13253 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13254 (complete_set_gnutarget): New function.
13255 (_initialize_core): Set the "set gnutarget" completer.
13256
13257 2013-01-14 Tom Tromey <tromey@redhat.com>
13258
13259 PR symtab/14442:
13260 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13261 (c_type_print_modifier): Likewise.
13262 * dwarf2read.c (read_tag_restrict_type): New function.
13263 (read_type_die_1): Handle DW_TAG_restrict_type.
13264 * gdbtypes.c (make_restrict_type): New function.
13265 (recursive_dump_type): Handle TYPE_RESTRICT.
13266 * gdbtypes.h (enum type_flag_values): Renumber.
13267 (enum type_instance_flag_value): Add
13268 TYPE_INSTANCE_FLAG_RESTRICT.
13269 (TYPE_RESTRICT): New macro.
13270 (make_restrict_type): Declare.
13271
13272 2013-01-14 Tom Tromey <tromey@redhat.com>
13273
13274 PR symtab/14931:
13275 * psymtab.c (struct psymtab_state): New.
13276 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13277 functions.
13278 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13279 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13280
13281 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13282 Pedro Alves <palves@redhat.com>
13283
13284 PR remote/14786
13285
13286 * remote.c (remote_threads_info): Make a copy of the reply from
13287 qfThreadInfo and use that instead of rs->buf.
13288
13289 2013-01-14 Yao Qi <yao@codesourcery.com>
13290
13291 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13292 (dbx_psymtab_to_symtab): Likewise.
13293 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13294 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13295 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13296
13297 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13298
13299 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13300 make_cleanup_restore_current_language. Call set_language. Move
13301 OLD_CHAIN and INNER_CHAIN cleanups.
13302 * utils.c (do_restore_current_language)
13303 (make_cleanup_restore_current_language): New functions.
13304 * utils.h (make_cleanup_restore_current_language): New declaration.
13305
13306 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13307
13308 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13309 non-existing files.
13310
13311 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13312 non-existing files if FILENAME is already absolute.
13313
13314 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13315
13316 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13317 fputs_filtered. Append trailing newline.
13318
13319 2013-01-11 Yao Qi <yao@codesourcery.com>
13320 Stan Shebs <stan@codesourcery.com>
13321
13322 * psymtab.c (init_psymbol_list): Clarify the comment.
13323
13324 2013-01-11 Yao Qi <yao@codesourcery.com>
13325
13326 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13327 (update_dprintf_command_list): Assert that 'printf_line' is
13328 non-null. Remove condition check.
13329
13330 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13331
13332 Code cleanup.
13333 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13334 type const char *.
13335 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13336 const char *.
13337 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13338
13339 2013-01-09 Anthony Green <green@moxielogic.com>
13340
13341 * cp-abi.c (cplus_print_vtable): Don't return value from void
13342 function.
13343 * ada-lang.c (re_set_catch_assert): Ditto.
13344
13345 2013-01-09 Doug Evans <dje@google.com>
13346
13347 * symfile.h (quick_symbol_functions): Delete member
13348 pre_expand_symtabs_matching. All uses removed.
13349 * dwarf2read.c (dw2_lookup_symbol): Implement.
13350 (dw2_do_expand_symtabs_matching): Delete.
13351 (dw2_pre_expand_symtabs_matching): Delete.
13352 (struct dw2_symtab_iterator): New type.
13353 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13354 (dw2_expand_symtabs_for_function): Rewrite.
13355 (dwarf2_gdb_index_functions): Update.
13356 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13357 (psym_functions): Update.
13358
13359 2013-01-09 Tom Tromey <tromey@redhat.com>
13360
13361 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13362 * configure: Rebuild.
13363 * configure.ac: Add somread.o to the build if BFD has SOM
13364 support.
13365 * somread.c: Include som/aout.h, not syms.h.
13366 (som_symtab_read): Use som_external_symbol_dictionary_record.
13367 Unpack records manually.
13368 (_initialize_somread): Declare.
13369
13370 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13371
13372 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13373 Cast return_address to 64bits.
13374
13375 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13376
13377 * printcmd.c: Remove define of function output_command.
13378 * tracepoint.c: Remove extern of function output_command.
13379 * valprint.h: (output_command): New extern.
13380
13381 2013-01-07 Tom Tromey <tromey@redhat.com>
13382
13383 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13384 Remove.
13385 (objc_language_defn): Use c_printchar, c_printstr,
13386 c_emit_char.
13387
13388 2013-01-07 Tom Tromey <tromey@redhat.com>
13389
13390 PR cli/7719:
13391 * NEWS: Update.
13392 * ada-valprint.c (printstr, print_field_values): Remove
13393 "inspect_it" code.
13394 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13395 code.
13396 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13397 code.
13398 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13399 * main.c (captured_main): Remove "epoch" argument.
13400 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13401 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13402 * p-valprint.c (pascal_object_print_value_fields): Remove
13403 "inspect_it" code.
13404 * printcmd.c (print_command_1): Remove 'inspect' argument.
13405 (print_command, call_command): Update.
13406 (inspect_command): Remove.
13407 (_initialize_printcmd): Make "inspect" an alias for "print".
13408 * top.c (epoch_interface): Remove.
13409 * top.h (epoch_interface): Remove.
13410 * valprint.c (user_print_options): Update.
13411 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13412 * valprint.h (struct value_print_options) <inspect_it>: Remove
13413 field.
13414
13415 2013-01-04 Tom Tromey <tromey@redhat.com>
13416
13417 * valprint.h (read_string): Add 'extern'.
13418
13419 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13420
13421 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13422 used to decide whether to define darwin_read_dyld_info or not.
13423
13424 2013-01-03 Pierre Muller <muller@sourceware.org>
13425
13426 * main.c (relocate_gdb_directory): Avoid calling stat function
13427 if DIR is empty.
13428
13429 2013-01-03 Yao Qi <yao@codesourcery.com>
13430
13431 * psymtab.c (fixup_psymbol_section): Update declaration.
13432 (fixup_psymbol_section): Remove code returning value.
13433
13434 2013-01-03 Yao Qi <yao@codesourcery.com>
13435
13436 * symtab.h: Remove some out of date comments.
13437 (enum exception_event_kind): Move it ...
13438 * breakpoint.c: ... here.
13439
13440 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13441
13442 PR gdb/14405
13443 * darwin-nat.c (darwin_read_dyld_info): Only build if
13444 TASK_DYLD_INFO_COUNT is defined.
13445 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13446 TASK_DYLD_INFO_COUNT is defined.
13447
13448 2013-01-02 Tom Tromey <tromey@redhat.com>
13449
13450 * symfile.h (struct ecoff_debug_hack): Remove.
13451 * objfiles.c: Don't include mdebugread.h.
13452
13453 2013-01-02 Tom Tromey <tromey@redhat.com>
13454
13455 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13456 * configure.ac: Check for Mach-O support in BFD. Update
13457 CONFIG_OBS.
13458 * configure: Rebuild.
13459
13460 2013-01-02 Tom Tromey <tromey@redhat.com>
13461
13462 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13463 * configure.ac: Use GDB_AC_CHECK_BFD.
13464 * configure: Rebuild.
13465
13466 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13467
13468 * MAINTAINERS: Update my email.
13469
13470 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13471
13472 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13473
13474 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13475
13476 * rs6000-nat.c (bss_data_overlap): New function.
13477 (vmap_symtab): Use it to adjust the .bss section's offset.
13478
13479 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13480
13481 Update year range in copyright notice of all files.
13482
13483 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13484
13485 * top.c (print_gdb_version): Update copyright year.
13486
13487 For older changes see ChangeLog-2012.
13488 \f
13489 Local Variables:
13490 mode: change-log
13491 left-margin: 8
13492 fill-column: 74
13493 version-control: never
13494 coding: utf-8
13495 End: