gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / ChangeLog-2013
CommitLineData
df96af55
JB
12013-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * arm-linux-tdep.c (arm_stap_is_single_operand): Add comment
4 describing function.
5
62013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 * arm-linux-tdep.c (arm_stap_is_single_operand): Accept "$" as a
9 literal prefix. Also accept no prefix at all.
10 (arm_stap_parse_special_token): Likewise.
11 (arm_linux_init_abi): Likewise.
12
132013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
14
15 PR tdep/15653
16 * NEWS: Mention SystemTap SDT probe support for AArch64 GNU/Linux.
17 * aarch64-linux-tdep.c: Include necessary headers for parsing of
18 SystemTap SDT probes.
19 (aarch64_stap_is_single_operand): New function.
20 (aarch64_stap_parse_special_token): Likewise.
21 (aarch64_linux_init_abi): Declare SystemTap SDT probe argument
22 prefixes and suffixes. Initialize gdbarch with them.
23
242013-12-23 Sterling Augustine <saugustine@google.com>
25
26 * linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
27 isn't found.
28
292013-12-23 Sergio Durigan JUnior <sergiodj@redhat.com>
30
31 * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
32 (stap_is_generic_prefix): Delete extra brackets. Reindent.
33 (stap_parse_register_operand): Remove spurious newlines. Simplify
34 code to parse special token.
35 (stap_parse_argument_conditionally): Add gdb_assert.
36 (stap_parse_argument_1): Likewise. Explicitly check for NULL and
37 NUL.
38 (stap_parse_probe_arguments): Likewise.
39 (handle_stap_probe): Likewise. Reindent code.
40 (get_stap_base_address): Explicitly check for NULL.
41 (stap_get_probes): Likewise. Reindent code.
42 (stap_relocate): Explicitly check for 0.
43 (stap_gen_info_probes_table_values): Likewise.
44
452013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
46
47 * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
48 (nios2_linux_sigreturn_tramp_frame): Remove.
49 (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
50 number.
51 (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
52 (nios2_linux_init_abi): Remove registration of
53 nios2_linux_sigreturn_tramp_frame.
54
552013-12-19 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR gdb/16305
58 * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
59 adding prefix to opcode.
60
612013-12-19 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR gdb/16304
64 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
65 address in 64-bit mode.
66
672013-12-19 H.J. Lu <hongjiu.lu@intel.com>
68
69 PR gdb/16304
70 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
71 address to 64-bit in 64-bit mode.
72
732013-12-19 H.J. Lu <hongjiu.lu@intel.com>
74
75 PR gdb/16304
76 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
77 system calls.
78 (amd64_x32_linux_record_tdep): New.
79 (amd64_linux_syscall_record_common): New function.
80 (amd64_linux_syscall_record): Call
81 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
82 (amd64_x32_linux_syscall_record): Call
83 amd64_linux_syscall_record_common with
84 amd64_x32_linux_record_tdep.
85 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
86 initialization and tdep->i386_syscall_record setup to ...
87 (amd64_linux_init_abi): Here.
88 (amd64_x32_linux_init_abi): Initialize
89 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
90 amd64_x32_linux_syscall_record.
91 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
92
932013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
94
95 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
96 argument prefixes and suffixes. Initialize gdbarch with them.
97 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
98 * gdbarch.c: Regenerate.
99 * gdbarch.h: Regenerate.
100 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
101 (stap_register_prefix, stap_register_suffix)
102 (stap_register_indirection_prefix)
103 (stap_register_indirection_suffix): Declare as "const char *const
104 *" instead of "const char *". Adjust printing function. Rename
105 all of the variables to the plural.
106 (pstring_list): New function.
107 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
108 argument prefixes and suffixes. Initialize gdbarch with them.
109 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
110 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
111 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
112 * stap-probe.c (stap_is_generic_prefix): New function.
113 (stap_is_register_prefix): Likewise.
114 (stap_is_register_indirection_prefix): Likewise.
115 (stap_is_integer_prefix): Likewise.
116 (stap_generic_check_suffix): Likewise.
117 (stap_check_integer_suffix): Likewise.
118 (stap_check_register_suffix): Likewise.
119 (stap_check_register_indirection_suffix): Likewise.
120 (stap_parse_register_operand): Remove unecessary declarations for
121 variables holding prefix and suffix information. Use the new
122 functions listed above for checking for prefixes and suffixes.
123 (stap_parse_single_operand): Likewise.
124
1252013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
126
127 PR breakpoints/16297
128 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
129 when expected syscall is hit.
130
1312013-12-19 Tom Tromey <tromey@redhat.com>
132
133 * ser-unix.c (hardwire_ops): New global.
134 (_initialize_ser_hardwire): Use it.
135 * ser-tcp.c (tcp_ops): New global.
136 (_initialize_ser_tcp): Use it.
137 * ser-pipe.c (pipe_ops): New global.
138 (_initialize_ser_pipe): Use it.
139 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
140 globals.
141 (_initialize_ser_windows): Use them.
142
1432013-12-19 Tom Tromey <tromey@redhat.com>
144
145 * serial.c (serial_ops_p): New typedef.
146 (serial_ops_list): Now a VEC.
147 (serial_interface_lookup): Return const. Use VEC_iterate.
148 (serial_add_interface): Make parameter const.
149 (serial_open): Update.
150 (serial_fdopen_ops): Make 'ops' const.
151 (serial_pipe): Update.
152 * ser-tcp.c (_initialize_ser_tcp): Update.
153 * ser-pipe.c (_initialize_ser_pipe): Update.
154 * ser-unix.c (_initialize_ser_hardwire): Update.
155 * ser-mingw.c (_initialize_ser_windows): Update.
156 * ser-go32.c (dos_ops): Now const. Update.
157 * serial.h (struct serial) <ops>: Now const.
158 (struct serial_ops) <next>: Remove.
159 (serial_add_interface): Make parameter const.
160
1612013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
162
163 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
164 iov.iov_len with the real length in use.
165
1662013-12-18 Yao Qi <yao@codesourcery.com>
167
168 * target.h (target_xfer_partial_ftype): New typedef.
169 (target_xfer_partial): Update declaration.
170 * auxv.h (memory_xfer_auxv): Likewise.
171 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
172 * ia64-linux-nat.c (super_xfer_partial): Likewise.
173 * linux-nat.c (super_xfer_partial): Likewise.
174 * procfs.c (procfs_xfer_partial): Likewise.
175 * record-full.c (record_full_beneath_to_xfer_partial):
176 (tmp_to_xfer_partial): Likewise.
177 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
178 * target.c (default_xfer_partial): Likewise.
179 (current_xfer_partial): Likewise.
180 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
181
1822013-12-18 Yao Qi <yao@codesourcery.com>
183
184 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
185 of sprintf.
186 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
187 (linux_proc_pending_signals): Likewise.
188
1892013-12-18 Joel Brobecker <brobecker@adacore.com>
190
191 * value.c (value_entirely_unavailable): ARI fix: Move trailing
192 binary operator to the next line. No actual code change.
193
1942013-12-17 Pedro Alves <palves@redhat.com>
195
196 * frame.h (enum frame_id_stack_status): New enum.
197 (struct frame_id) <stack_addr>: Adjust comment.
198 <stack_addr_p>: Delete field, replaced with ...
199 <stack_status>: ... this new field.
200 (frame_id_build_unavailable_stack): Declare.
201 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
202 (frame_id_build_special): Adjust.
203 (frame_id_build_unavailable_stack): New function.
204 (frame_id_build, frame_id_build_wild): Adjust.
205 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
206 account frames with unavailable stack.
207
208 * amd64-tdep.c (amd64_frame_this_id)
209 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
210 frame_id_build_unavailable_stack.
211 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
212 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
213 (i386_sigtramp_frame_this_id): Likewise.
214
2152013-12-17 Andrew Burgess <aburgess@broadcom.com>
216
217 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
218 unavailable, use correct bit length.
219 * value.c (struct value): Extend comment on unavailable to
220 indicate that it is bit based.
221 (value_bits_available): New function.
222 (value_bytes_available): Call value_bits_available.
223 (value_entirely_available): Check against the bit length, not byte
224 length.
225 (mark_value_bits_unavailable): New function.
226 (mark_value_bytes_unavailable): Move contents to
227 mark_value_bits_unavailable, call to same.
228 (memcmp_with_bit_offsets): New function.
229 (value_available_contents_bits_eq): New function, takes the
230 functionality from value_available_contents_eq but uses
231 memcmp_with_bit_offsets now, and is bit not byte based.
232 (value_available_contents_eq): Move implementation into
233 value_available_contents_bits_eq, call to same.
234 (value_contents_copy_raw): Work on bits, not bytes.
235 (unpack_value_bits_as_long_1): Check availability in bits, not
236 bytes.
237 * value.h (value_bits_available): Declare new function.
238 (mark_value_bits_unavailable): Declare new function.
239
2402013-12-16 Pierre Muller <muller@sourceware.org>
241
242 Fix compilation error for cygwin native build.
243 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
244 Call wcstombs.
245
2462013-12-16 Pedro Alves <palves@redhat.com>
247
248 PR 16329
249 * sol-thread.c (check_for_thread_db): If the target can't run or
250 isn't a core, return without pushing.
251
2522013-12-15 Joel Brobecker <brobecker@adacore.com>
253
254 Revert the following commit:
255 * solib.c (solib_map_sections): Remove code overwriting
256 SO->SO_NAME with the bfd's filename.
257
258 Make the following changes required after the revert above:
259 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
260 returned bfd to a copy of the synthetic pathname.
261 * solib-darwin.c (darwin_bfd_open): Set the filename of the
262 returned bfd to a copy of PATHNAME.
263
2642013-12-13 Joel Brobecker <brobecker@adacore.com>
265
266 * ada-lang.c (ada_array_bound_from_type): Move the declaration
267 and assignment of variable "elt_type" inside the else block
268 where it is used. Add two missing check_typedef calls.
269 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
270 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
271
2722013-12-13 Joel Brobecker <brobecker@adacore.com>
273
274 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
275 between 'struct type *' and 'arr_type'.
276
2772013-12-12 Siva Chandra Reddy <sivachandra@google.com>
278
279 PR python/16113
280 * NEWS (Python Scripting): Add entry for the new feature and the
281 new attribute of gdb.Field objects.
282 * python/py-type.c (gdbpy_is_field): New function
283 (convert_field): Add 'parent_type' attribute to gdb.Field
284 objects.
285 * python/py-value.c (valpy_getitem): Allow subscript value to be
286 a gdb.Field object.
287 (value_has_field): New function
288 (get_field_flag): New function
289 * python/python-internal.h (gdbpy_is_field): Add declaration.
290
2912013-12-12 Pedro Alves <palves@redhat.com>
292
293 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
294 const, and remove casts.
295
2962013-12-12 Pedro Alves <palves@redhat.com>
297
298 * cli/cli-cmds.c (source_script_from_stream) Use have_python
299 instead of catching UNSUPPORTED_ERROR.
300 * exceptions.h (UNSUPPORTED_ERROR): Delete.
301 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
302 error if called.
303 * python/python.h (have_python): New static inline function.
304
3052013-12-11 Doug Evans <dje@google.com>
306
307 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
308 "can't find DWO" warning.
309
3102013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
311
312 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
313 to get_probe_argument_count and evaluate_probe_argument.
314 * probe.c (get_probe_argument_count): Adjust declaration to accept
315 frame. Pass frame to probe_ops's get_probe_argument_count.
316 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
317 (probe_safe_evaluate_at_pc): Pass frame to
318 get_probe_argument_count and evaluate_probe_argument.
319 * probe.h (struct probe_ops) <get_probe_argument_count,
320 evaluate_probe_argument>: Adjust declarations to accept frame.
321 (get_probe_argument_count, evaluate_probe_argument): Likewise.
322 * solib-svr4.c (solib_event_probe_action): Get current frame.
323 Pass it to get_probe_argument_count.
324 (svr4_handle_solib_event): Get current frame. Pass it to
325 get_probe_argument_count and evaluate_probe_argument.
326 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
327 accept gdbarch. Do not obtain it from the probe's objfile.
328 (stap_get_probe_argument_count): Adjust declaration to accept
329 frame. Obtain gdbarch from the frame. Call generic
330 can_evaluate_probe_arguments. Pass gdbarch to
331 stap_parse_probe_arguments.
332 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
333 stap_parse_probe_arguments.
334 (stap_evaluate_probe_argument): Adjust declaration to accept
335 frame. Obtain gdbarch from the frame. Pass gdbarch to
336 stap_get_arg.
337 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
338 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
339 get_probe_argument_count and evaluate_probe_argument.
340
3412013-12-10 Doug Evans <dje@google.com>
342
343 PR 16286
344 * c-lang.c (c_get_string): Ignore the declared size of the object
345 if a specific length is requested.
346
3472013-12-10 Doug Evans <dje@google.com>
348
349 * interps.h (interp_exec_p): Delete.
350 * interps.c (interp_exec_p): Delete.
351 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
352 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
353
3542013-12-10 Yao Qi <yao@codesourcery.com>
355
356 * amd64-tdep.c (amd64_analyze_stack_align): Call
357 target_read_code instead of target_read_memory.
358 (amd64_analyze_prologue): Call read_code_unsigned_integer
359 instead of read_memory_unsigned_integer. Call read_code
360 instead of read_memory.
361 (amd64_skip_xmm_prologue): Likewise.
362
3632013-12-10 Yao Qi <yao@codesourcery.com>
364
365 * corefile.c (read_code): New function.
366 (read_code_integer): New function.
367 (read_code_unsigned_integer): New function.
368 * gdbcore.h (read_code): Declare.
369 (read_code_integer): Declare.
370 (read_code_unsigned_integer): Declare.
371 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
372 of target_read_memory. Call read_code_unsigned_integer instead
373 of read_memory_unsigned_integer.
374 (i386_analyze_struct_return): Likewise.
375 (i386_skip_probe): Likewise.
376 (i386_analyze_stack_align): Likewise.
377 (i386_match_pattern): Likewise.
378 (i386_skip_noop): Likewise.
379 (i386_analyze_frame_setup): Likewise.
380 (i386_analyze_register_saves): Likewise.
381 (i386_skip_prologue): Likewise.
382 (i386_skip_main_prologue): Likewise.
383 (i386_frame_cache_1): Likewise.
384
3852013-12-10 Yao Qi <yao@codesourcery.com>
386
387 * infrun.c: Include "target-dcache.h".
388 (prepare_for_detach): Call target_dcache_invalidate.
389 (wait_for_inferior): Likewise.
390 (fetch_inferior_event): Likewise.
391 (infrun_thread_stop_requested_callback): Likewise. Set
392 overlay_cache_invalid to 1.
393
3942013-12-10 Joel Brobecker <brobecker@adacore.com>
395
396 * symtab.c (symbol_find_demangled_name): Add handling of
397 Ada symbols.
398
3992013-12-10 Joel Brobecker <brobecker@adacore.com>
400
401 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
402 * NEWS: Expand the entry documenting the new -exec-run --start
403 option to mention the corresponding new entry in the output of
404 "-list-features".
405
4062013-12-10 Joel Brobecker <brobecker@adacore.com>
407
408 * windows-nat.c (handle_load_dll): Add comments.
409 (windows_ensure_ntdll_loaded): New function.
410 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
411 Add FIXME comment.
412
4132013-12-08 Joel Brobecker <brobecker@adacore.com>
414
415 GDB 7.6.2 released.
416
4172013-12-08 Yao Qi <yao@codesourcery.com>
418
419 * stack.c (frame_info): Initialize variable caller_pc.
420
4212013-12-06 Pedro Alves <palves@redhat.com>
422
423 * frame.c (enum cached_copy_status): New enum.
424 (struct frame_info) <prev_pc.p>: Change type to enum
425 cached_copy_status.
426 (fprint_frame): Handle not saved and unavailable prev_pc values.
427 (frame_unwind_pc_if_available): Delete and merge contents into ...
428 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
429 to use enum cached_copy_status.
430 (frame_unwind_caller_pc_if_available): Delete.
431 (create_new_frame): Adjust.
432 * frame.h (frame_unwind_caller_pc_if_available): Delete
433 declaration.
434 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
435 frame_unwind_caller_pc_if_available, and handle
436 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
437 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
438 (val_print_not_saved): New function.
439 * valprint.h (val_print_not_saved): Declare.
440
4412013-12-06 Andrew Burgess <aburgess@broadcom.com>
442 Pedro Alves <palves@redhat.com>
443
444 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
445 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
446 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
447 * spu-tdep.c (spu_software_single_step): Throw
448 OPTIMIZED_OUT_ERROR.
449 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
450
4512013-12-06 Tom Tromey <tromey@redhat.com>
452
453 * objfiles.c (free_objfile): Update comment.
454
4552013-12-06 Tom Tromey <tromey@redhat.com>
456
457 * objfiles.h (objfile_to_front): Remove.
458 * objfiles.c (objfile_to_front): Remove.
459
4602013-12-06 Tom Tromey <tromey@redhat.com>
461
462 * minsyms.c (get_symbol_leading_char): Remove unnecessary
463 declaration.
464
4652013-12-06 Tom Tromey <tromey@redhat.com>
466
467 * psympriv.h (struct partial_symtab) <user>: Move earlier.
468
4692013-12-06 Tom Tromey <tromey@redhat.com>
470
471 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
472 (list_command): Likewise.
473
4742013-12-06 Tom Tromey <tromey@redhat.com>
475
476 * psymtab.c (allocate_psymtab): Put the filename in the filename
477 bcache.
478
4792013-12-06 Tom Tromey <tromey@redhat.com>
480
481 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
482 * symtab.h (struct symtab) <dirname>: Now const.
483
4842013-12-06 Tom Tromey <tromey@redhat.com>
485
486 * symfile.c (allocate_symtab): Remove cast.
487 * symtab.h (struct symtab) <filename>: Now const.
488
4892013-12-06 Tom Tromey <tromey@redhat.com>
490
491 * break-catch-throw.c (fetch_probe_arguments): Use
492 get_probe_argument_count and evaluate_probe_argument.
493 * elfread.c (elf_get_probe_argument_count)
494 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
495 (elf_compile_to_ax): Remove.
496 (elf_probe_fns): Update.
497 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
498 (evaluate_probe_argument): Call method on probe, not via sym
499 functions.
500 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
501 evaluate_probe_argument.
502 (compile_probe_arg): Use get_probe_argument_count. Call method on
503 probe, not via sym functions.
504 * symfile-debug.c (debug_sym_get_probe_argument_count)
505 (debug_can_evaluate_probe_arguments)
506 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
507 Remove.
508 (debug_sym_probe_fns): Remove.
509 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
510 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
511 sym_compile_to_ax>: Remove fields.
512
5132013-12-06 Pierre Muller <muller@sourceware.org>
514
515 Fix completion for pascal language.
516 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
517 (exp : field_exp name COMPLETE): New rule.
518 (exp : SIZEOF): Set correct current_type.
519 (last_was_structop): Remove static variable.
520 (yylex): Remove saw_structop local variable.
521 Adapt code to removal of variables above.
522
5232013-12-06 Joel Brobecker <brobecker@adacore.com>
524
525 * frame.c (get_prev_frame_1): Delete variable "this_id".
526 Replace its use by a call to get_frame_id.
527
5282013-12-05 Anthony Green <green@moxielogic.com>
529
530 * moxie-tdep.c (moxie_software_single_step): New function.
531 (INST2OFFSET): New helper macro.
532 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
533 (moxie_process_readu): Move this up in the file.
534
5352013-12-05 Doug Evans <xdje42@gmail.com>
536
537 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
538
5392013-12-05 Joel Brobecker <brobecker@adacore.com>
540 Tristan Gingold <gingold@adacore.com>
541
542 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
543 Accept version 2. Ignore operations using opcode 6.
544
5452013-12-05 Joel Brobecker <brobecker@adacore.com>
546
547 * ada-lex.l (find_dot_all): Fix coding style violations.
548
5492013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
550
bc504a31 551 * NEWS: Add section for Intel Architecture Instructions
df96af55
JB
552 Extesions mentioning MPX.
553
5542013-12-03 Joel Brobecker <brobecker@adacore.com>
555
556 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
557
5582013-12-03 Joel Brobecker <brobecker@adacore.com>
559
560 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
561 when parse_exp_1 threw an error. Add comment.
562
5632013-12-03 Joel Brobecker <brobecker@adacore.com>
564
565 * NEWS: Mention "-list-features" in the entry documenting
566 the support for the "--language" option.
567
5682013-12-03 Tom Tromey <tromey@redhat.com>
569 Jan Kratochvil <jan.kratochvil@redhat.com>
570 Doug Evans <dje@google.com>
571 Samuel Bronson <naesten@gmail.com>
572
573 Bring back gdb-add-index as a contrib script.
574 * contrib/gdb-add-index.sh: New file.
575 * NEWS: Note the addition.
576
5772013-12-03 Samuel Bronson <naesten@gmail.com>
578
579 * MAINTAINERS (Write After Approval): Add myself to the list.
580
5812013-12-03 Joel Brobecker <brobecker@adacore.com>
582
583 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
584
5852013-12-03 Joel Brobecker <brobecker@adacore.com>
586
587 * mi/mi-main.c: Remove trailing spaces throughout.
588
5892013-12-03 Pedro Alves <palves@redhat.com>
590 Joel Brobecker <brobecker@adacore.com>
591
592 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
593 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
594 of a regular error when the GDB/MI command does not exist.
595 * mi/mi-main.c (mi_cmd_list_features): Add
596 "undefined-command-error-code".
597 (mi_print_exception): Print an "undefined-command"
598 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
599 * NEWS: Add entry documenting the new "code" variable in
600 "^error" result records.
601
6022013-12-03 Joel Brobecker <brobecker@adacore.com>
603
604 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
605 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
606 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
607 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
608 field to output of "-list-features".
609
610 * NEWS: Add entry for new -info-gdb-mi-command.
611
6122013-12-02 Doug Evans <dje@google.com>
613 Jan Kratochvil <jan.kratochvil@redhat.com>
614
615 * objfiles.c (allocate_objfile): Save original_name as an absolute
616 path.
617 * objfiles.h (struct objfile): Expand comment on original_name.
618 * source.c (openp): Call gdb_abspath.
619 * utils.c (gdb_abspath): New function.
620 * utils.h (gdb_abspath): Declare.
621
6222013-12-02 Pedro Alves <palves@redhat.com>
623
624 * dcache.c (dcache_read_line): Use target_read_raw_memory.
625 * target.c (target_read_raw_memory): New function.
626 (target_read_stack, target_write_memory, target_write_raw_memory):
627 Update comment.
628 (target_read_code): Add comment.
629 * target.h (target_read_raw_memory): Declare.
630
6312013-12-02 Pedro Alves <palves@redhat.com>
632
633 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
634 unconditionally.
635
6362013-12-02 Pedro Alves <pedro@codesourcery.com>
637 Maciej W. Rozycki <macro@codesourcery.com>
638
639 * remote.c (putpkt_for_catch_errors): Remove function.
640 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
641 gracefully.
642
6432013-12-02 Pedro Alves <palves@redhat.com>
644
645 PR remote/15974
646 * remote-notif.c (handle_notification): Return early if no
647 notification is found.
648
6492013-12-02 Joel Brobecker <brobecker@adacore.com>
650
651 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
652 preprocessor check.
653
6542013-12-02 Joel Brobecker <brobecker@adacore.com>
655
656 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
657
6582013-12-02 Joel Brobecker <brobecker@adacore.com>
659
660 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
661 * ctf.c (ctf_start): Remove obsolete comment.
662
6632013-12-02 Joel Brobecker <brobecker@adacore.com>
664
665 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
666
6672013-11-30 Doug Evans <xdje42@gmail.com>
668
669 * auto-load.h (script_language): New members name, auto_load_enabled.
670 Add missing comments on struct members.
671 (auto_load_objfile_script): Delete.
672 * auto-load.c: #include "cli/cli-cmds.h".
673 (auto_load_gdb_scripts_enabled): New function.
674 (script_language_gdb): Update, add new members.
675 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
676 and call to maybe_add_script moved to caller.
677 (auto_load_objfile_script_1): Auto-load safe-checking and
678 call to maybe_add_script moved here.
679 (auto_load_objfile_script): Make static. Early exit if support for
680 scripting language hasn't been compiled in, or auto-loading has been
681 disabled.
682 (source_section_scripts): Argument "source_name" renamed to
683 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
684 with section_name. Skip loading script if support for scripting
685 language hasn't been compiled in, or auto-loading has been disabled.
686 Call language->source_script_for_objfile instead of calling
687 source_python_script_for_objfile directly.
688 (load_auto_scripts_for_objfile): Update.
689 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
690 (gdbpy_load_auto_script_for_objfile): Delete.
691 (auto_load_python_scripts_enabled): New function.
692 (script_language_python): Update, add new members.
693 (gdbpy_script_language_defn): New function.
694 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
695 (gdbpy_script_language_defn): Declare.
696
697 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
698 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
699 (source_section_scripts): Moved here from py-auto-load.c.
700 (auto_load_section_scripts): Ditto.
701 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
702 auto-load.c, renamed AUTO_SECTION_NAME.
703 (source_section_scripts, auto_load_section_scripts): Moved to
704 auto-load.c.
705
7062013-11-30 Yao Qi <yao@codesourcery.com>
707
708 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
709
7102013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
711
712 * gdbarch.sh: Remove include of "gdb_string.h", replace by
713 <string.h>.
714
7152013-11-29 Doug Evans <xdje42@gmail.com>
716
717 * python/py-auto-load.c (source_section_scripts): Move comment to
718 more relevant location.
719
720 Whitespace cleanup.
721 * python/py-breakpoint.c: Remove trailing whitespace.
722 * python/py-cmd.c: Ditto.
723 * python/py-evts.c: Ditto.
724 * python/py-finishbreakpoint.c: Ditto.
725 * python/py-frame.c: Ditto.
726 * python/py-function.c: Ditto.
727 * python/py-inferior.c: Ditto.
728 * python/py-infthread.c: Ditto.
729 * python/py-param.c: Ditto.
730 * python/py-prettyprint.c: Ditto.
731 * python/py-symbol.c: Ditto.
732 * python/py-type.c: Ditto.
733 * python/py-utils.c: Ditto.
734 * python/py-value.c: Ditto.
735 * python/python-internal.h: Ditto.
736 * python/python.c: Ditto.
737
7382013-11-29 Pedro Alves <palves@redhat.com>
739
740 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
741
7422013-11-29 Pedro Alves <palves@redhat.com>
743
744 * breakpoint.c (build_target_condition_list): Release previous
745 conditions.
746 (build_target_command_list): Release previous commands.
747 (bp_location_dtor): Release target conditions and commands.
748 * remote.c (remote_add_target_side_condition): Don't release
749 conditions.
750 (remote_add_target_side_commands): Don't release commands.
751
7522013-11-29 Yao Qi <yao@codesourcery.com>
753 Pedro Alves <palves@redhat.com>
754
755 * dcache.c (dcache_read_line): Use current_target.beneath
756 instead of &current_target.
757 * target.c (memory_xfer_partial_1): Factor code out to ...
758 (raw_memory_xfer_partial): ... it. New function.
759 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
760 is TARGET_OBJECT_RAW_MEMORY.
761
7622013-11-28 Doug Evans <xdje42@gmail.com>
763
764 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
765 breakpoint_object. All uses updated.
766 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
767 breakpoint_object. All uses updated.
768 * python.c (*): All uses of breakpoint_object updated.
769 * python.h (*): All uses of breakpoint_object updated.
770 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
771 * python/py-finishbreakpoint.c (*): Ditto.
772
7732013-11-28 Doug Evans <xdje42@gmail.com>
774
775 * configure.ac: Add comments delineating libpython and libmcheck.
776 * configure: Regenerate.
777
7782013-11-28 Andrew Burgess <aburgess@broadcom.com>
779 Pedro Alves <palves@redhat.com>
780
781 * valprint.c (value_check_printable): If the value is entirely
782 unavailable, print a single "<unavailable>" instead of printing
783 all subfields.
784
7852013-11-28 Pedro Alves <palves@redhat.com>
786
787 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
788 Add "set debug frame" output.
789 (frame_stop_reason_symbol_string): New function.
790
7912013-11-28 Pedro Alves <palves@redhat.com>
792
793 * frame-unwind.c (default_frame_unwind_stop_reason): Return
794 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
795 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
796
7972013-11-28 Pedro Alves <palves@redhat.com>
798
799 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
800 set the unwind stop reason to UNWIND_OUTERMOST, not
801 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
802
8032013-11-28 Pedro Alves <palves@redhat.com>
804
805 * frame.c (frame_unwind_register): Say the register was "not
806 saved" instead of "optimized out".
807
8082013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
809
810 PR 16152
811 * configure: Rebuild.
812 * configure.ac: Tighten cygwin detection check.
813
8142013-11-27 Pedro Alves <palves@redhat.com>
815
816 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
817 register in the previous frame's arch.
818
8192013-11-27 Pedro Alves <palves@redhat.com>
820
821 * frame-unwind.c (frame_unwind_got_optimized): Return
822 an lval_register value instead of a not_lval value.
823
8242013-11-27 Andrew Burgess <aburgess@broadcom.com>
825
826 * frame.c: Include "valprint.h".
827 (frame_unwind_register_value): Use value_optimized_out.
828 * value.c (value_fetch_lazy): Likewise.
829
8302013-11-26 Andrew Burgess <aburgess@broadcom.com>
831
832 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
833
8342013-11-26 Tom Tromey <tromey@redhat.com>
835
836 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
837 2013-11-22.
838
8392013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
840
841 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
842 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
843 (HAS_MPX): New macro.
844 (HAS_AVX): New macro.
845 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
846
8472013-11-25 Keith Seitz <keiths@redhat.com>
848
849 PR c++/14819
850 * c-exp.y (classify_inner_name): If no matching symbol was
851 found, try looking up the token as a base class.
852 Likewise if a constructor was found.
853 * cp-namespace.c (find_type_baseclass_by_name): New function.
854 * cp-support.h (find_type_baseclass_by_name): Declare.
855 * valops.c (value_struct_elt_for_reference): If we get
856 a non-static field, try to get a value based on the
857 current instance, if any.
858
8592013-11-24 Yao Qi <yao@codesourcery.com>
860
861 * disasm.c (dis_asm_read_memory): Call target_read_code
862 instead of target_read_memory.
863
8642013-11-24 Yao Qi <yao@codesourcery.com>
865
866 * NEWS: Add note on new "set code-cache" option.
867 * target-dcache.c (code_cache_enabled_1): New variable.
868 (code_cache_enabled): New variable.
869 (show_code_cache, set_code_cache): New function.
870 (code_cache_enabled_p): New function.
871 (_initialize_target_dcache): Register command.
872 * target-dcache.h (code_cache_enabled_p): Declare.
873 * target.c (memory_xfer_partial_1):Handle
874 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
875 (target_read_code): New function.
876 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
877 New.
878 (target_read_code): Declare.
879
8802013-11-24 Yao Qi <yao@codesourcery.com>
881
882 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
883 (stack_cache_enabled_1): ... this. New variable.
884 (stack_cache_enabled_p): Rename to ...
885 (stack_cache_enabled): ... this. New variable.
886 (set_stack_cache_enabled_p): Rename to ...
887 (set_stack_cache): ... this. Update caller.
888 (show_stack_cache_enabled_p): Rename to ...
889 (show_stack_cache): ... this. Update caller.
890 (stack_cache_enabled): Rename to ...
891 (stack_cache_enabled_p): ... this. Update caller.
892 (_initialize_target_dcache): Replace "data cache" with
893 "target memory cache".
894 * target-dcache.h (stack_cache_enabled): Remove declaration.
895 (stack_cache_enabled_p): Add declaration.
896
8972013-11-23 Doug Evans <xdje42@gmail.com>
898
899 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
900 superfluous.
901
9022013-11-23 Doug Evans <xdje42@gmail.com>
903
904 * python/py-frame.c (frapy_block): Fix error message text.
905
9062013-11-23 Doug Evans <xdje42@gmail.com>
907
908 * cli/cli-script.c (multi_line_command_p): New function.
909 (recurse_read_control_structure, read_command_lines_1): Call it.
910 (execute_control_command): Consistently have a blank line between
911 each case.
912
9132013-11-22 Sterling Augustine <saugustine@google.com>
914
915 PR gdb/16196:
916 * valprint.c (read_string): Set new variable fetchlen based on
917 fetchlimit and size. Use it in call to partial_memory_read.
918 Update comment.
919
9202013-11-22 Tom Tromey <tromey@redhat.com>
921
922 PR backtrace/16155:
923 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
924 the return address column is unspecified.
925
9262013-11-22 Tom Tromey <tromey@redhat.com>
927 Pedro Alves <palves@redhat.com>
928
929 PR backtrace/16155
930 * value.c (value_fetch_lazy): Internal error if
931 get_frame_register_value returns the same register.
932
9332013-11-22 Pedro Alves <palves@redhat.com>
934 Tom Tromey <tromey@redhat.com>
935
936 * frame.c (frame_stash_add): Now returns whether a frame with the
937 same ID was already known.
938 (compute_frame_id): New function, factored out from get_frame_id.
939 (get_frame_id): No longer lazilly compute the frame id here.
940 (get_prev_frame_if_no_cycle): New function. Detects wider stack
941 cycles.
942 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
943 and checking for stack cycles here.
944
9452013-11-22 Pedro Alves <palves@redhat.com>
946
947 PR 16155
948 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
949 this frame and the new previous frame, not between this frame and
950 the next frame.
951
9522013-11-22 Pedro Alves <palves@redhat.com>
953
954 PR 16155
955 * dwarf2-frame.c (struct dwarf2_frame_cache)
956 <checked_tailcall_bottom, entry_cfa_sp_offset,
957 entry_cfa_sp_offset_p>: New fields.
958 (dwarf2_frame_cache): Adjust to use the new cache fields instead
959 of locals. Don't call dwarf2_tailcall_sniffer_first here.
960 (dwarf2_frame_prev_register): Call it here, but only once.
961
9622013-11-21 Doug Evans <xdje42@gmail.com>
963
964 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
965 (type_equality_entry): Move here from python/py-type.c.
966 (type_equality_entry_d): Ditto.
967 (compare_maybe_null_strings, check_types_equal): Ditto.
968 (check_types_worklist, types_deeply_equal): Ditto.
969 * gdbtypes.h (types_deeply_equal): Declare.
970 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
971 (typy_richcompare): Update.
972
9732013-11-20 Joel Brobecker <brobecker@adacore.com>
974
975 * python/py-value.c (is_intlike): Delete.
976 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
977 by use of is_integral_type.
978 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
979 by use of is_integral_type and check for TYPE_CODE_PTR.
980
9812013-11-20 Tom Tromey <tromey@redhat.com>
982
983 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
984 strerror module.
985 * gnulib/aclocal.m4: Update.
986 * gnulib/config.in: Update.
987 * gnulib/configure: Update.
988 * gnulib/import/Makefile.am: Update.
989 * gnulib/import/Makefile.in: Update.
990 * gnulib/import/errno.in.h: Remove.
991 * gnulib/import/intprops.h: Remove.
992 * gnulib/import/m4/errno_h.m4: Remove.
993 * gnulib/import/m4/gnulib-cache.m4: Update.
994 * gnulib/import/m4/gnulib-comp.m4: Update.
995 * gnulib/import/m4/strerror.m4: Remove.
996 * gnulib/import/m4/sys_socket_h.m4: Remove.
997 * gnulib/import/strerror-override.c: Remove.
998 * gnulib/import/strerror-override.h: Remove.
999 * gnulib/import/strerror.c: Remove.
1000 * gnulib/update-gnulib.sh: Update.
1001
10022013-11-20 Yao Qi <yao@codesourcery.com>
1003
1004 * target-dcache.c (target_dcache_get_or_init): Call
1005 set_address_space_data if 'dcache' is NULL.
1006
10072013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1008
1009 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
1010
10112013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1012
1013 * python/lib/gdb/command/bound_register.py: New file.
1014 * data-directory/Makefile.in: Copy bond_register.py to the right path
1015 to be initialized at gdb startup.
1016
10172013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1018
1019 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
1020 Add MPX registers.
1021 (amd64_linux_read_description): Add initialization for MPX and
1022 AVX independently.
1023 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
1024 (amd64_linux_gregset_reg_offset): Add MPX registers.
1025 (amd64_linux_core_read_description): Add initialization for MPX
1026 registers.
1027 (_initialize_amd64_linux_tdep): Initialize MPX targets.
1028 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
1029 register on the list.
1030 (tdesc_amd64_mpx_linux) Add new target for MPX.
1031 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
1032 (amd64_mpx_names): MPX register names.
1033 (amd64_init_abi): Add MPX register while initializing the ABI.
1034 (_initialize_amd64_tdep): Initialize MPX targets.
1035 * amd64-tdep.h (amd64_regnum): Add MPX registers.
1036 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
1037
10382013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1039
1040 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
1041 registers on the range of registers to be read from
1042 xsave buffer.
1043 (i386_linux_read_description): Add case for MPX.
1044 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
1045 (i386_linux_gregset_reg_offset): Add MPX registers.
1046 (i386_linux_core_read_description): Initialize also MPX.
1047 (_initialize_i386_linux_tdep): Add mpx initialization.
1048 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
1049 mpx_register_names.
1050 (i386_regnum): Add MPX registers.
1051 (I386_MPX_NUM_REGS): New macro.
1052 (i386_bnd_regnum_p): New function.
1053 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
1054 number of registers to be the number of BNDSTATUS.
1055 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
1056 * i386-tdep.c: Include features/i386/i386-mpx.c.
1057 (i386_mpx_names): Add MPX register names array.
1058 (i386_bnd_names): Add bnd pseudo register names array.
1059 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1060 registers.
1061 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1062 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1063 registers.
1064 (i386_bnd_type): New function.
1065 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1066 register types.
1067 (i386_pseudo_register_read_into_value): Add bnd case.
1068 (i386_pseudo_register_write): Add bnd pseudo registers.
1069 (i386_register_reggroup_p): Add MPX register to the group all.
1070 (i386_validate_tdesc_p): Add MPX to the target description
1071 validation.
1072 (i386_pseudo_register_name): Add bnd pseudo registers.
1073 (i386_gdbarch_init): Add MPX for architecture initialization.
1074 (_initia_initialize_i386_tdep): Add mpx initialization.
1075 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1076 XSAVE buffer.
1077 (XSAVE_MPX_ADDR): New macro.
1078 (i387_supply_xsave): Add MPX case.
1079 (i387_collect_xsave): Add MPX case.
1080 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1081 (I387_BNDCFGU_REGNUM): New macro.
1082 (I387_NUM_MPX_REGS): New macro.
1083 (I387_NUM_BND_REGS): New macro.
1084 (I387_NUM_MPX_CTRL_REGS): New macro.
1085 (I387_MPXEND_REGNUM): New macro.
1086 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1087 (I386_XSTATE_BNDCFG): Likewise.
1088 (I386_XSTATE_MPX_MASK): Likewise.
1089 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1090 (I386_XSTATE_BNDREGS_SIZE): New macro.
1091 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1092 (I386_XSTATE_SIZE): Adapt for MPX.
1093 (I386_XSTATE_MAX_SIZE): Likewise.
1094
10952013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1096
1097 * features/i386/Makefile: Adapts for using MPX registers.
1098 * features/i386/32bit-mpx.xml: New file.
1099 * features/i386/64bit-mpx.xml: Likewise.
1100 * features/i386/amd64-mpx-linux.c: Likewise.
1101 * features/i386/amd64-mpx-linux.xml: Likewise.
1102 * features/i386/amd64-mpx.c: Likewise.
1103 * features/i386/amd64-mpx.xml: Likewise.
1104 * features/i386/i386-mpx-linux.c: Likewise.
1105 * features/i386/i386-mpx-linux.xml: Likewise.
1106 * features/i386/i386-mpx.c: Likewise.
1107 * features/i386/i386-mpx.xml: Likewise.
1108 * regformats/i386/amd64-mpx-linux.dat: New file.
1109 * regformats/i386/amd64-mpx.dat: Likewise.
1110 * regformats/i386/i386-mpx-linux.dat: Likewise.
1111 * regformats/i386/i386-mpx.dat: Likewise.
1112
11132013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1114
1115 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1116 Modified logic of creating a bitfield to be in sync with
1117 tdesc_gdb_type.
1118
11192013-11-20 Will Newton <will.newton@linaro.org>
1120
1121 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1122 error message.
1123
11242013-11-20 Yao Qi <yao@codesourcery.com>
1125
1126 * progspace.h (struct address_space_data): Declare.
1127 * target-dcache.c: Include "progspace.h".
1128 (target_dache): Remove.
1129 (target_dcache_aspace_key): New.
1130 (target_dcache_cleanup): New function.
1131 (target_dcache_init_p): Get data through
1132 target_dcache_aspace_key.
1133 (target_dcache_invalidate): Likewise.
1134 (target_dcache_get): Likewise.
1135 (target_dcache_get_or_init): Likewise.
1136 (_initialize_target_dcache): Initialize
1137 target_dcache_aspace_key.
1138
11392013-11-20 Yao Qi <yao@codesourcery.com>
1140
1141 * progspace.c (struct address_space): Update comments.
1142 <REGISTRY_FIELDS>: New fields.
1143 DEFINE_REGISTRY for address_space.
1144 (new_address_space): Call address_space_alloc_data.
1145 (free_address_space): Call address_space_free_data.
1146 * progspace.h: Use DECLARE_REGISTRY.
1147
11482013-11-20 Yao Qi <yao@codesourcery.com>
1149
1150 * Makefile.in (SFILES):Add target-dcache.c.
1151 (HFILES_NO_SRCDIR): Add target-dcache.h.
1152 (COMMON_OBS): Add target-dcache.o.
1153 * dcache.c: Remove inclusion to "target.h". Include
1154 "target-dcache.h".
1155 * memattr.c: Include "target-dcache.h".
1156 * top.c: Likewise.
1157 * tracepoint.c: Likewise.
1158 * target.c: (stack_cache_enabled_p_1): Move to
1159 target-dcache.c.
1160 (stack_cache_enabled_p): Likewise.
1161 (set_stack_cache_enabled_p): Likewise.
1162 (show_stack_cache_enabled_p): Likewise.
1163 (target_dcache, target_dcache_init_p): Likewise.
1164 (target_dcache_invalidate): Likewise.
1165 (target_dcache_get, target_dcache_get_or_init): Likewise.
1166 (memory_xfer_partial_1): Call function stack_cache_enabled.
1167 (initialize_target): Move code to target-dcache.c.
1168 * target.h (target_dcache_invalidate): Move to
1169 target-dcache.h.
1170 (target_dcache_get): Likewise.
1171 * target-dcache.c: New.
1172 * target-dcache.h: New.
1173
11742013-11-20 Yao Qi <yao@codesourcery.com>
1175
1176 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1177 it is initialized.
1178
11792013-11-20 Yao Qi <yao@codesourcery.com>
1180
1181 * dcache.c (last_cache): Remove.
1182 (dcache_free, dcache_init): Update.
1183 (dcache_update):
1184 (dcache_print_line): Add parameter 'dcache'. Replace
1185 'target_dcache' with 'dcache'.
1186 (dcache_info): Move code to dcache_info_1. Call
1187 'dcache_info_1'.
1188 (dcache_info_1): New function.
1189 (set_dcache_size): Call target_dcache_invalidate.
1190 (set_dcache_line_size): Call target_dcache_invalidate.
1191 * target.c (target_dcache_init_p): New function.
1192 (target_dcache_invalidate): Check target_dcache_init_p first.
1193 (target_dcache_get, target_dcache_get_or_init): New function.
1194 (memory_xfer_partial_1): Adjust.
1195 (initialize_target): Don't initialize 'target_dcache'.
1196 * target.h (struct dcache_struct): Declare.
1197 (target_dcache_get): Declare.
1198
11992013-11-19 Yao Qi <yao@codesourcery.com>
1200
1201 * varobj.c (varobj_get_type): Fix typo.
1202
12032013-11-19 Joel Brobecker <brobecker@adacore.com>
1204
1205 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1206
12072013-11-19 Joel Brobecker <brobecker@adacore.com>
1208
1209 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1210 "stat.h".
1211
12122013-11-18 Tom Tromey <tromey@redhat.com>
1213
1214 * common/gdb_stat.h: Remove.
1215 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1216 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1217 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1218 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1219 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1220 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1221 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1222 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1223 * exec.c: Use sys/stat.h, not gdb_stat.h.
1224 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1225 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1226 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1227 * jit.c: Use sys/stat.h, not gdb_stat.h.
1228 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1229 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1230 * main.c: Use sys/stat.h, not gdb_stat.h.
1231 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1232 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1233 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1234 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1235 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1236 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1237 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1238 * remote.c: Use sys/stat.h, not gdb_stat.h.
1239 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1240 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1241 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1242 * source.c: Use sys/stat.h, not gdb_stat.h.
1243 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1244 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1245 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1246 * top.c: Use sys/stat.h, not gdb_stat.h.
1247 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1248
12492013-11-18 Tom Tromey <tromey@redhat.com>
1250
1251 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1252 sys_stat.
1253 * gnulib/aclocal.m4: Update.
1254 * gnulib/config.in: Update.
1255 * gnulib/configure: Update.
1256 * gnulib/import/Makefile.am: Update.
1257 * gnulib/import/Makefile.in: Update.
1258 * gnulib/import/m4/gnulib-cache.m4: Update.
1259 * gnulib/import/m4/gnulib-comp.m4: Update.
1260 * gnulib/import/m4/sys_stat_h.m4: New.
1261 * gnulib/import/m4/time_h.m4: New.
1262 * gnulib/import/sys_stat.in.h: New.
1263 * gnulib/import/time.in.h: New.
1264
12652013-11-18 Tom Tromey <tromey@redhat.com>
1266
1267 * configure: Rebuild.
1268 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1269
12702013-11-18 Tom Tromey <tromey@redhat.com>
1271
1272 * configure: Rebuild.
1273 * configure.ac: Don't check for unistd.h.
1274
12752013-11-18 Tom Tromey <tromey@redhat.com>
1276
1277 * configure: Rebuild.
1278 * configure.ac: Don't check for stdlib.h
1279 * defs.h: Include stdlib.h unconditionally.
1280
12812013-11-18 Tom Tromey <tromey@redhat.com>
1282
1283 * config.in: Rebuild.
1284 * configure: Rebuild.
1285 * configure.ac: Don't check for stddef.h.
1286 * defs.h: Unconditionally include stddef.h. Remove duplicate
1287 inclusion.
1288
12892013-11-18 Tom Tromey <tromey@redhat.com>
1290
1291 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1292 * common/gdb_dirent.h: Remove.
1293 * common/filestuff.c: Use dirent.h.
1294 * common/linux-osdata.c: Use dirent.h.
1295 (NAMELEN): Define.
1296 * config.in: Rebuild.
1297 * configure: Rebuild.
1298 * configure.ac: Don't use AC_HEADER_DIRENT.
1299 * linux-fork.c: Use dirent.h
1300 * linux-nat.c: Use dirent.h.
1301 * nto-procfs.c: Use dirent.h.
1302 * procfs.c: Use dirent.h.
1303
13042013-11-18 Tom Tromey <tromey@redhat.com>
1305
1306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1307 * gnulib/aclocal.m4: Update.
1308 * gnulib/config.in: Update.
1309 * gnulib/configure: Update.
1310 * gnulib/import/Makefile.am: Update.
1311 * gnulib/import/Makefile.in: Update.
1312 * gnulib/import/dirent.in.h: New.
1313 * gnulib/import/m4/dirent_h.m4: New.
1314 * gnulib/import/m4/gnulib-cache.m4: Update.
1315 * gnulib/import/m4/gnulib-comp.m4: Update.
1316
13172013-11-18 Tom Tromey <tromey@redhat.com>
1318
1319 * configure: Rebuild.
1320 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1321 strings.h.
1322
13232013-11-18 Tom Tromey <tromey@redhat.com>
1324
1325 * common/gdb_string.h: Remove.
1326 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1327 * ada-exp.y: Use string.h, not gdb_string.h.
1328 * ada-lang.c: Use string.h, not gdb_string.h.
1329 * ada-lex.l: Use string.h, not gdb_string.h.
1330 * ada-typeprint.c: Use string.h, not gdb_string.h.
1331 * ada-valprint.c: Use string.h, not gdb_string.h.
1332 * aix-thread.c: Use string.h, not gdb_string.h.
1333 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1334 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1335 * alpha-nat.c: Use string.h, not gdb_string.h.
1336 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1337 * alpha-tdep.c: Use string.h, not gdb_string.h.
1338 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1339 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1340 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1341 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1342 * amd64-nat.c: Use string.h, not gdb_string.h.
1343 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1344 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1345 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1346 * arch-utils.c: Use string.h, not gdb_string.h.
1347 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1348 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1349 * arm-tdep.c: Use string.h, not gdb_string.h.
1350 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1351 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1352 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1353 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1354 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1355 * avr-tdep.c: Use string.h, not gdb_string.h.
1356 * ax-gdb.c: Use string.h, not gdb_string.h.
1357 * ax-general.c: Use string.h, not gdb_string.h.
1358 * bcache.c: Use string.h, not gdb_string.h.
1359 * bfin-tdep.c: Use string.h, not gdb_string.h.
1360 * breakpoint.c: Use string.h, not gdb_string.h.
1361 * build-id.c: Use string.h, not gdb_string.h.
1362 * buildsym.c: Use string.h, not gdb_string.h.
1363 * c-exp.y: Use string.h, not gdb_string.h.
1364 * c-lang.c: Use string.h, not gdb_string.h.
1365 * c-typeprint.c: Use string.h, not gdb_string.h.
1366 * c-valprint.c: Use string.h, not gdb_string.h.
1367 * charset.c: Use string.h, not gdb_string.h.
1368 * cli-out.c: Use string.h, not gdb_string.h.
1369 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1370 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1371 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1372 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1373 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1374 * cli/cli-script.c: Use string.h, not gdb_string.h.
1375 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1376 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1377 * coffread.c: Use string.h, not gdb_string.h.
1378 * common/common-utils.c: Use string.h, not gdb_string.h.
1379 * common/filestuff.c: Use string.h, not gdb_string.h.
1380 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1381 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1382 * common/signals.c: Use string.h, not gdb_string.h.
1383 * common/vec.h: Use string.h, not gdb_string.h.
1384 * core-regset.c: Use string.h, not gdb_string.h.
1385 * corefile.c: Use string.h, not gdb_string.h.
1386 * corelow.c: Use string.h, not gdb_string.h.
1387 * cp-abi.c: Use string.h, not gdb_string.h.
1388 * cp-support.c: Use string.h, not gdb_string.h.
1389 * cp-valprint.c: Use string.h, not gdb_string.h.
1390 * cris-tdep.c: Use string.h, not gdb_string.h.
1391 * d-lang.c: Use string.h, not gdb_string.h.
1392 * dbxread.c: Use string.h, not gdb_string.h.
1393 * dcache.c: Use string.h, not gdb_string.h.
1394 * demangle.c: Use string.h, not gdb_string.h.
1395 * dicos-tdep.c: Use string.h, not gdb_string.h.
1396 * disasm.c: Use string.h, not gdb_string.h.
1397 * doublest.c: Use string.h, not gdb_string.h.
1398 * dsrec.c: Use string.h, not gdb_string.h.
1399 * dummy-frame.c: Use string.h, not gdb_string.h.
1400 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1401 * dwarf2loc.c: Use string.h, not gdb_string.h.
1402 * dwarf2read.c: Use string.h, not gdb_string.h.
1403 * elfread.c: Use string.h, not gdb_string.h.
1404 * environ.c: Use string.h, not gdb_string.h.
1405 * eval.c: Use string.h, not gdb_string.h.
1406 * event-loop.c: Use string.h, not gdb_string.h.
1407 * exceptions.c: Use string.h, not gdb_string.h.
1408 * exec.c: Use string.h, not gdb_string.h.
1409 * expprint.c: Use string.h, not gdb_string.h.
1410 * f-exp.y: Use string.h, not gdb_string.h.
1411 * f-lang.c: Use string.h, not gdb_string.h.
1412 * f-typeprint.c: Use string.h, not gdb_string.h.
1413 * f-valprint.c: Use string.h, not gdb_string.h.
1414 * fbsd-nat.c: Use string.h, not gdb_string.h.
1415 * findcmd.c: Use string.h, not gdb_string.h.
1416 * findvar.c: Use string.h, not gdb_string.h.
1417 * fork-child.c: Use string.h, not gdb_string.h.
1418 * frame.c: Use string.h, not gdb_string.h.
1419 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1420 * frv-tdep.c: Use string.h, not gdb_string.h.
1421 * gdb.c: Use string.h, not gdb_string.h.
1422 * gdb_bfd.c: Use string.h, not gdb_string.h.
1423 * gdbarch.c: Use string.h, not gdb_string.h.
1424 * gdbtypes.c: Use string.h, not gdb_string.h.
1425 * gnu-nat.c: Use string.h, not gdb_string.h.
1426 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1427 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1428 * go-exp.y: Use string.h, not gdb_string.h.
1429 * go-lang.c: Use string.h, not gdb_string.h.
1430 * go32-nat.c: Use string.h, not gdb_string.h.
1431 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1432 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1433 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1434 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1435 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1436 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1437 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1438 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1439 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1440 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1441 * i386-tdep.c: Use string.h, not gdb_string.h.
1442 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1443 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1444 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1445 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1446 * i387-tdep.c: Use string.h, not gdb_string.h.
1447 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1448 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1449 * inf-child.c: Use string.h, not gdb_string.h.
1450 * inf-ptrace.c: Use string.h, not gdb_string.h.
1451 * inf-ttrace.c: Use string.h, not gdb_string.h.
1452 * infcall.c: Use string.h, not gdb_string.h.
1453 * infcmd.c: Use string.h, not gdb_string.h.
1454 * inflow.c: Use string.h, not gdb_string.h.
1455 * infrun.c: Use string.h, not gdb_string.h.
1456 * interps.c: Use string.h, not gdb_string.h.
1457 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1458 * irix5-nat.c: Use string.h, not gdb_string.h.
1459 * jv-exp.y: Use string.h, not gdb_string.h.
1460 * jv-lang.c: Use string.h, not gdb_string.h.
1461 * jv-typeprint.c: Use string.h, not gdb_string.h.
1462 * jv-valprint.c: Use string.h, not gdb_string.h.
1463 * language.c: Use string.h, not gdb_string.h.
1464 * linux-fork.c: Use string.h, not gdb_string.h.
1465 * linux-nat.c: Use string.h, not gdb_string.h.
1466 * lm32-tdep.c: Use string.h, not gdb_string.h.
1467 * m2-exp.y: Use string.h, not gdb_string.h.
1468 * m2-typeprint.c: Use string.h, not gdb_string.h.
1469 * m32c-tdep.c: Use string.h, not gdb_string.h.
1470 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1471 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1472 * m32r-rom.c: Use string.h, not gdb_string.h.
1473 * m32r-tdep.c: Use string.h, not gdb_string.h.
1474 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1475 * m68k-tdep.c: Use string.h, not gdb_string.h.
1476 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1477 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1478 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1479 * m88k-tdep.c: Use string.h, not gdb_string.h.
1480 * macrocmd.c: Use string.h, not gdb_string.h.
1481 * main.c: Use string.h, not gdb_string.h.
1482 * mdebugread.c: Use string.h, not gdb_string.h.
1483 * mem-break.c: Use string.h, not gdb_string.h.
1484 * memattr.c: Use string.h, not gdb_string.h.
1485 * memory-map.c: Use string.h, not gdb_string.h.
1486 * mep-tdep.c: Use string.h, not gdb_string.h.
1487 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1488 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1489 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1490 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1491 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1492 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1493 * mi/mi-console.c: Use string.h, not gdb_string.h.
1494 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1495 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1496 * mi/mi-main.c: Use string.h, not gdb_string.h.
1497 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1498 * microblaze-rom.c: Use string.h, not gdb_string.h.
1499 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1500 * mingw-hdep.c: Use string.h, not gdb_string.h.
1501 * minidebug.c: Use string.h, not gdb_string.h.
1502 * minsyms.c: Use string.h, not gdb_string.h.
1503 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1504 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1505 * mips-tdep.c: Use string.h, not gdb_string.h.
1506 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1507 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1508 * mipsread.c: Use string.h, not gdb_string.h.
1509 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1510 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1511 * monitor.c: Use string.h, not gdb_string.h.
1512 * moxie-tdep.c: Use string.h, not gdb_string.h.
1513 * mt-tdep.c: Use string.h, not gdb_string.h.
1514 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1515 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1516 * nto-procfs.c: Use string.h, not gdb_string.h.
1517 * nto-tdep.c: Use string.h, not gdb_string.h.
1518 * objc-lang.c: Use string.h, not gdb_string.h.
1519 * objfiles.c: Use string.h, not gdb_string.h.
1520 * opencl-lang.c: Use string.h, not gdb_string.h.
1521 * osabi.c: Use string.h, not gdb_string.h.
1522 * osdata.c: Use string.h, not gdb_string.h.
1523 * p-exp.y: Use string.h, not gdb_string.h.
1524 * p-lang.c: Use string.h, not gdb_string.h.
1525 * p-typeprint.c: Use string.h, not gdb_string.h.
1526 * parse.c: Use string.h, not gdb_string.h.
1527 * posix-hdep.c: Use string.h, not gdb_string.h.
1528 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1529 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1530 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1531 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1532 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1533 * printcmd.c: Use string.h, not gdb_string.h.
1534 * procfs.c: Use string.h, not gdb_string.h.
1535 * prologue-value.c: Use string.h, not gdb_string.h.
1536 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1537 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1538 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1539 * regcache.c: Use string.h, not gdb_string.h.
1540 * registry.c: Use string.h, not gdb_string.h.
1541 * remote-fileio.c: Use string.h, not gdb_string.h.
1542 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1543 * remote-mips.c: Use string.h, not gdb_string.h.
1544 * remote-sim.c: Use string.h, not gdb_string.h.
1545 * remote.c: Use string.h, not gdb_string.h.
1546 * reverse.c: Use string.h, not gdb_string.h.
1547 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1548 * ser-base.c: Use string.h, not gdb_string.h.
1549 * ser-go32.c: Use string.h, not gdb_string.h.
1550 * ser-mingw.c: Use string.h, not gdb_string.h.
1551 * ser-pipe.c: Use string.h, not gdb_string.h.
1552 * ser-tcp.c: Use string.h, not gdb_string.h.
1553 * ser-unix.c: Use string.h, not gdb_string.h.
1554 * serial.c: Use string.h, not gdb_string.h.
1555 * sh-tdep.c: Use string.h, not gdb_string.h.
1556 * sh64-tdep.c: Use string.h, not gdb_string.h.
1557 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1558 * skip.c: Use string.h, not gdb_string.h.
1559 * sol-thread.c: Use string.h, not gdb_string.h.
1560 * solib-dsbt.c: Use string.h, not gdb_string.h.
1561 * solib-frv.c: Use string.h, not gdb_string.h.
1562 * solib-osf.c: Use string.h, not gdb_string.h.
1563 * solib-spu.c: Use string.h, not gdb_string.h.
1564 * solib-target.c: Use string.h, not gdb_string.h.
1565 * solib.c: Use string.h, not gdb_string.h.
1566 * somread.c: Use string.h, not gdb_string.h.
1567 * source.c: Use string.h, not gdb_string.h.
1568 * sparc-nat.c: Use string.h, not gdb_string.h.
1569 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1570 * sparc-tdep.c: Use string.h, not gdb_string.h.
1571 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1572 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1573 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1574 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1575 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1576 * spu-multiarch.c: Use string.h, not gdb_string.h.
1577 * spu-tdep.c: Use string.h, not gdb_string.h.
1578 * stabsread.c: Use string.h, not gdb_string.h.
1579 * stack.c: Use string.h, not gdb_string.h.
1580 * std-regs.c: Use string.h, not gdb_string.h.
1581 * symfile.c: Use string.h, not gdb_string.h.
1582 * symmisc.c: Use string.h, not gdb_string.h.
1583 * symtab.c: Use string.h, not gdb_string.h.
1584 * target.c: Use string.h, not gdb_string.h.
1585 * thread.c: Use string.h, not gdb_string.h.
1586 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1587 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1588 * top.c: Use string.h, not gdb_string.h.
1589 * tracepoint.c: Use string.h, not gdb_string.h.
1590 * tui/tui-command.c: Use string.h, not gdb_string.h.
1591 * tui/tui-data.c: Use string.h, not gdb_string.h.
1592 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1593 * tui/tui-file.c: Use string.h, not gdb_string.h.
1594 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1595 * tui/tui-out.c: Use string.h, not gdb_string.h.
1596 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1597 * tui/tui-source.c: Use string.h, not gdb_string.h.
1598 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1599 * tui/tui-win.c: Use string.h, not gdb_string.h.
1600 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1601 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1602 * typeprint.c: Use string.h, not gdb_string.h.
1603 * ui-file.c: Use string.h, not gdb_string.h.
1604 * ui-out.c: Use string.h, not gdb_string.h.
1605 * user-regs.c: Use string.h, not gdb_string.h.
1606 * utils.c: Use string.h, not gdb_string.h.
1607 * v850-tdep.c: Use string.h, not gdb_string.h.
1608 * valarith.c: Use string.h, not gdb_string.h.
1609 * valops.c: Use string.h, not gdb_string.h.
1610 * valprint.c: Use string.h, not gdb_string.h.
1611 * value.c: Use string.h, not gdb_string.h.
1612 * varobj.c: Use string.h, not gdb_string.h.
1613 * vax-tdep.c: Use string.h, not gdb_string.h.
1614 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1615 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1616 * windows-nat.c: Use string.h, not gdb_string.h.
1617 * xcoffread.c: Use string.h, not gdb_string.h.
1618 * xml-support.c: Use string.h, not gdb_string.h.
1619 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1620 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1621
16222013-11-18 Tom Tromey <tromey@redhat.com>
1623
1624 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1625 and strstr.
1626 * gnulib/aclocal.m4: Update.
1627 * gnulib/config.in: Update.
1628 * gnulib/configure: Update.
1629 * gnulib/import/Makefile.am: Update.
1630 * gnulib/import/Makefile.in: Update.
1631 * gnulib/import/errno.in.h: New.
1632 * gnulib/import/intprops.h: New.
1633 * gnulib/import/m4/errno_h.m4: New.
1634 * gnulib/import/m4/gnulib-cache.m4: Update.
1635 * gnulib/import/m4/gnulib-comp.m4: Update.
1636 * gnulib/import/m4/strerror.m4: New.
1637 * gnulib/import/m4/strstr.m4: New.
1638 * gnulib/import/m4/sys_socket_h.m4: New.
1639 * gnulib/import/strerror-override.c: New.
1640 * gnulib/import/strerror-override.h: New.
1641 * gnulib/import/strerror.c: New.
1642 * gnulib/import/strstr.c: New.
1643
16442013-11-18 Tom Tromey <tromey@redhat.com>
1645
1646 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1647 multiple lines.
1648
16492013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1650
1651 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1652 * sparc-tdep.h: And its prototype.
1653
1654 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1655 function.
1656 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1657
16582013-11-18 Pedro Alves <palves@redhat.com>
1659
1660 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1661 use unpack_pointer.
1662
16632013-11-18 Joel Brobecker <brobecker@adacore.com>
1664
1665 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1666 to -list-features output.
1667
16682013-11-17 Joel Brobecker <brobecker@adacore.com>
1669
1670 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1671 <read_addr_from_reg>: Renames "read_reg".
1672 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1673 Adjust comment.
1674 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1675 Use read_addr_from_reg in place of read_reg.
1676 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1677 in place of read_reg.
1678 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1679 dwarf_expr_read_reg.
1680 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1681 with dwarf_expr_read_addr_from_reg.
1682 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1683 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1684 needs_frame_read_addr_from_reg.
1685
16862013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1689
16902013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1691
1692 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1693 NULL.
1694
16952013-11-15 Tom Tromey <tromey@redhat.com>
1696
1697 PR c++/16117:
1698 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1699 (classify_name): Likewise. Prefer a field of "this" over a
1700 filename.
1701 (classify_inner_name, yylex): Update.
1702
17032013-11-15 Joel Brobecker <brobecker@adacore.com>
1704
1705 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1706 Extend the documentation a bit.
1707 <get_reg_value>: New field.
1708 * dwarf2loc.c (dwarf_expr_get_reg_value)
1709 (needs_frame_get_reg_value): New functions.
1710 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1711 callback.
1712 * dwarf2-frame.c (get_reg_value): New function.
1713 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1714 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1715 Use new callback to compute result_val.
1716
17172013-11-15 Alan Modra <amodra@gmail.com>
1718
1719 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1720 (ppc64_desc_entry_point): ..this. Update comments here and at
1721 call points.
1722 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1723 ppc64_standard_linkage3): Update comments.
1724 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1725 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1726 patterns.
1727 (ppc64_standard_linkage4_target): New function.
1728 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1729 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1730 nop match. Fix comment wrap.
1731
17322013-11-14 Pedro Alves <palves@redhat.com>
1733
1734 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1735 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1736
17372013-11-14 Pedro Alves <palves@redhat.com>
1738
1739 * infrun.c (struct execution_control_state)
1740 <stepped_after_stopped_by_watchpoint>: New field.
1741 (get_inferior_stop_soon): New function.
1742 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1743 moved to struct execution_control_state -- adjust. Use
1744 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1745 new function.
1746 (handle_signal_stop): New function, factored out from
1747 handle_inferior_event.
1748
17492013-11-14 Pedro Alves <palves@redhat.com>
1750
1751 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1752 return a boolean.
1753 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1754 boolean.
1755 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1756 Adjust to return a boolean.
1757 * breakpoint.h (enum bpstat_signal_value): Delete.
1758 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1759 (bpstat_explains_signal): Likewise.
1760 * infrun.c (handle_inferior_event) <random signal checks>:
1761 bpstat_explains_signal now returns a boolean - adjust. No longer
1762 consider hiding signals.
1763
17642013-11-14 Pedro Alves <palves@redhat.com>
1765
1766 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1767 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1768 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1769 BPSTAT_SIGNAL_HIDE.
1770 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1771 instead of BPSTAT_SIGNAL_HIDE.
1772 * infrun.c (handle_inferior_event): Rework random signal checks.
1773
17742013-11-14 Pedro Alves <palves@redhat.com>
1775
1776 * infrun.c (struct execution_control_state): Remove
1777 'random_signal' field.
1778 (handle_syscall_event): Use bpstat_causes_stop instead of
1779 bpstat_explains_signal. Don't set ecs->random_signal.
1780 (handle_inferior_event): New 'random_signal' local.
1781 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1782 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1783 bpstat_explains_signal. Don't set ecs->random_signal.
1784 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1785 ecs->random_signal.
1786
17872013-11-14 Pedro Alves <palves@redhat.com>
1788
1789 * infrun.c (handle_inferior_event): Move comment from the
1790 function's body to the function's description, adjusted.
1791
17922013-11-14 Pedro Alves <palves@redhat.com>
1793
1794 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1795 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1796 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1797 case.
1798
17992013-11-14 Tom Tromey <tromey@redhat.com>
1800
1801 * python/py-linetable.c (ltpy_has_line)
1802 (ltpy_get_all_source_lines): Fix loop termination condition.
1803
18042013-11-14 Joel Brobecker <brobecker@adacore.com>
1805
1806 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1807 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1808 PARSE->LANGUAGE during command execution, if set.
1809 * mi/mi-parse.c: Add "language.h" #include.
1810 (mi_parse): Add parsing of "--language" command option.
1811
1812 * NEWS: Add entry mentioning the new "--language" command option.
1813
18142013-11-14 Pedro Alves <palves@redhat.com>
1815 Joel Brobecker <brobecker@adacore.com>
1816
1817 * cli/cli-utils.h (extract_arg_const): Add declaration.
1818 * cli/cli-utils.c (extract_arg_const): New function.
1819 (extract_arg): Reimplement using extract_arg_const.
1820
18212013-11-14 Joel Brobecker <brobecker@adacore.com>
1822
1823 * language.h: Add "symtab.h" #include.
1824
18252013-11-13 Doug Evans <xdje42@gmail.com>
1826
1827 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1828 specific breakpoints, don't evaluate breakpoint condition if
1829 different thread.
1830
18312013-11-13 Keith Seitz <keiths@redhat.com>
1832
1833 PR c++/7935
1834 PR c++/10541
1835 * cp-support.c (insepct_type): Add support for substituting
1836 namespace aliases, too.
1837 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1838 for DW_TAG_imported_declaration.
1839 (add_partial_symbol): Likewise.
1840 (process_die): Handle namespace aliases with
1841 read_namespace_alias.
1842 (die_needs_namespace): Add DW_TAG_imported_declaration.
1843 (read_namespace_alias): New function.
1844 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1845 (new_symbol_full): Handle DW_TAG_imported_declaration.
1846
18472013-11-13 Keith Seitz <keiths@redhat.com>
1848
1849 * p-exp.y (uptok): Make first parameter const.
1850 (yylex): Make `tokstart' and `tokptr' const.
1851 Don't copy the lexer input to a temporary buffer.
1852 Make `p' const.
1853 Remove const workaround for parse_escape.
1854 Create a temporary buffer for a convenience variable instead
1855 of doing in-place modification of the input.
1856 If a match is found with a different case from the input,
1857 do not change the input at all.
1858 Use `tmp' to construct the resultant stoken instead of
1859 `tokstart'.
1860
18612013-11-13 Doug Evans <xdje42@gmail.com>
1862
1863 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1864
18652013-11-13 Joel Brobecker <brobecker@adacore.com>
1866
1867 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1868 entry with "ada-exceptions".
1869
18702013-11-13 Joel Brobecker <brobecker@adacore.com>
1871
1872 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1873 after re-initialization of OBJFILE's obstack.
1874
18752013-11-12 Doug Evans <xdje42@gmail.com>
1876
1877 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1878 bs->stop != 0 on entry. Update function comment. Simplify early
1879 exit for frame mismatch. Reindent rest of function.
1880
18812013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1882
1883 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1884 NULL.
1885
18862013-11-12 Doug Evans <dje@google.com>
1887
1888 Work around gold/15646.
1889 * dwarf2read.c (read_index_from_section): Update comment.
1890 (struct dw2_symtab_iterator): New member global_seen.
1891 (dw2_symtab_iter_init): Initialize it.
1892 (dw2_symtab_iter_next): Skip duplicate global symbols.
1893 (dw2_expand_symtabs_matching): Ditto.
1894
18952013-11-12 Joel Brobecker <brobecker@adacore.com>
1896
1897 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1898 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1899 command.
1900 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1901 (mi_cmd_info_ada_exceptions): New function.
1902 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1903
19042013-11-12 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.h: #include "vec.h".
1907 (struct ada_exc_info): New.
1908 (ada_exc_info): New typedef.
1909 (DEF_VEC_O(ada_exc_info)): New vector.
1910 (ada_exceptions_list): Add declaration.
1911 * ada-lang.c (ada_is_exception_sym)
1912 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1913 (sort_remove_dups_ada_exceptions_list)
1914 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1915 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1916 (ada_exceptions_list_1, ada_exceptions_list)
1917 (info_exceptions_command): New function.
1918 (_initialize_ada_language): Add "info exception" command.
1919
19202013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1921
1922 PR python/15629
1923 * NEWS: Add linetable feature.
1924 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1925 * python/py-linetable.c: New file.
1926 * python/py-symtab.c (stpy_get_linetable): New function.
1927 * python/python-internal.h (symtab_to_linetable_object): Declare.
1928 (gdbpy_initialize_linetable): Ditto.
1929 * python/python.c (_initialize_python): Call
1930 gdbpy_initialize_linetable.
1931
19322013-11-11 Joel Brobecker <brobecker@adacore.com>
1933
1934 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1935 the documentation of fields "except_string" and "condition".
1936 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1937 CONDITION on the heap before passing it to
1938 create_ada_exception_catchpoint.
1939 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1940 CONDITION.
1941
19422013-11-11 Tom Tromey <tromey@redhat.com>
1943
1944 * config.in, configure: Rebuild.
1945 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1946
19472013-11-11 Joel Brobecker <brobecker@adacore.com>
1948
1949 * remote-sim.c (gdbsim_detach): Break declaration into
1950 shorter lines. No code change.
1951
19522013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1953
1954 * remote-sim.c (gdbsim_detach): Fix prototype.
1955
19562013-11-08 Doug Evans <dje@google.com>
1957
1958 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1959 (create_debug_types_hash_table): Only print debugging messages for
1960 each TU if dwarf2-read >= 2.
1961 (process_queue): Ditto.
1962 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1963 Update doc string.
1964
19652013-11-08 Tom Tromey <tromey@redhat.com>
1966
1967 * configure: Rebuild.
1968 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1969
19702013-11-08 Tom Tromey <tromey@redhat.com>
1971
1972 * configure, config.in: Rebuild.
1973 * configure.ac: Remove unused configury.
1974
19752013-11-08 Tom Tromey <tromey@redhat.com>
1976
1977 * m32c-tdep.c: Use gdb_string.h.
1978
19792013-11-08 Tom Tromey <tromey@redhat.com>
1980
1981 * configure, config.in: Rebuild.
1982 * configure.ac: Remove all link.h-related checks.
1983
19842013-11-08 Tom Tromey <tromey@redhat.com>
1985
1986 * acinclude.m4: Include common.m4.
1987 * common/common.m4: New file.
1988 * configure, config.in: Rebuild.
1989 * configure.ac: Use GDB_AC_COMMON.
1990
19912013-11-08 Doug Evans <dje@google.com>
1992
1993 * NEWS: Mention that "set debug symtab-create" now accepts a
1994 verbosity level.
1995 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1996 to set the symtab's primary flag.
1997 * jit.c (finalize_symtab): Ditto.
1998 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1999 * symfile.c (allocate_symtab): Only print debugging messages for
2000 symtab_create_debug levels 2 and higher.
2001 * symtab.c (symtab_create_debug): Change type to unsigned int.
2002 (set_symtab_primary): New function.
2003 (_initialize_symtab): Change "set debug symtab-create" to a
2004 zuinteger option.
2005 * symtab.h (set_symtab_primary): Declare.
2006 (symtab_create_debug): Update decl.
2007
20082013-11-08 Tom Tromey <tromey@redhat.com>
2009
2010 * aix-thread.c (aix_thread_detach): Update.
2011 * corelow.c (core_detach): Update.
2012 * darwin-nat.c (darwin_detach): Update.
2013 * dec-thread.c (dec_thread_detach): Update.
2014 * gnu-nat.c (gnu_detach): Update.
2015 * go32-nat.c (go32_detach): Update.
2016 * inf-ptrace.c (inf_ptrace_detach): Update.
2017 * inf-ttrace.c (inf_ttrace_detach): Update.
2018 * linux-fork.c (linux_fork_detach): Update.
2019 * linux-fork.h (linux_fork_detach): Update.
2020 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
2021 local for const-correctness.
2022 * linux-thread-db.c (thread_db_detach): Update.
2023 * monitor.c (monitor_detach): Update.
2024 * nto-procfs.c (procfs_detach): Update.
2025 * procfs.c (procfs_detach): Update.
2026 * record.c (record_detach): Update.
2027 * record.h (record_detach): Update.
2028 * remote-m32r-sdi.c (m32r_detach): Update.
2029 * remote-mips.c (mips_detach): Update.
2030 * remote-sim.c (gdbsim_detach): Update.
2031 * remote.c (remote_detach_1, remote_detach)
2032 (extended_remote_detach): Update.
2033 * sol-thread.c (sol_thread_detach): Update.
2034 * target.c (target_detach): Make "args" const.
2035 (init_dummy_target): Update.
2036 * target.h (struct target_ops) <to_detach>: Make argument const.
2037 (target_detach): Likewise.
2038 * windows-nat.c (windows_detach): Update.
2039
20402013-11-07 Doug Evans <dje@google.com>
2041
2042 PR 11786
2043 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
2044 and align fields for PT_GNU_RELRO segments.
2045
20462013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2047
2048 PR python/15747
2049 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
2050
20512013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2052
2053 * NEWS: Document Python temporary breakpoint support.
2054 * python/py-breakpoint.c (bppy_get_temporary): New function.
2055 (bppy_init): New keyword: temporary. Parse it and set breakpoint
2056 to temporary if True.
2057
20582013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2059
2060 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2061 removed to allow analyzing unconditional branch instructions
2062 with PC-relative offsets of zero.
2063
20642013-11-07 Yao Qi <yao@codesourcery.com>
2065
2066 * mi/mi-cmd-var.c: Include "language.h".
2067 (mi_cmd_var_info_expression): Get language name from
2068 language_defn.
2069 * varobj.c (varobj_language_string): Remove.
2070 (variable_language): Remove declaration.
2071 (languages): Remove.
2072 (varobj_get_language): Change the type of return value.
2073 (variable_language): Remove.
2074 * varobj.h (enum varobj_languages): Remove.
2075 (varobj_language_string): Remove declaration.
2076 (varobj_get_language): Update declaration.
2077
20782013-11-07 Yao Qi <yao@codesourcery.com>
2079
2080 * language.h (struct language_defn) <la_natural_name>: New
2081 field.
2082 * ada-lang.c (ada_language_defn): Initialize field
2083 'la_natural_name'.
2084 * c-lang.c (c_language_defn): Likewise.
2085 (cplus_language_defn, asm_language_defn): Likewise.
2086 * d-lang.c (d_language_defn): Likewise.
2087 * f-lang.c (f_language_defn): Likewise.
2088 * go-lang.c (go_language_defn): Likewise.
2089 * jv-lang.c (java_language_defn): Likewise.
2090 * language.c (unknown_language_defn ): Likewise.
2091 (auto_language_defn): Likewise.
2092 * m2-lang.c (m2_language_defn): Likewise.
2093 * objc-lang.c (objc_language_defn): Likewise.
2094 * opencl-lang.c (opencl_language_defn): Likewise.
2095 * p-lang.c (pascal_language_defn): Likewise.
2096
20972013-11-07 Yao Qi <yao@codesourcery.com>
2098
2099 * language.c (language_str): Return const char *.
2100 (add_language): Add const to 'language_names'
2101 * language.h (struct language_defn) <la_name>: Add const.
2102 (language_str: Update declaration.
2103
21042013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2105
2106 * s390-linux-nat.c (s390_read_description): Consider the TE field
2107 in the HWCAP for determining 'have_regset_tdb'.
2108
21092013-11-06 Will Newton <will.newton@linaro.org>
2110
2111 PR gdb/12866
2112 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2113 values. (read_partial_die): Likewise.
2114
21152013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2116
2117 PR cli/16122
2118 * top.c (command_line_input): Unify interactivity tests to use
2119 input_from_terminal_p.
2120 * event-top.c (command_line_handler): Likewise.
2121
21222013-11-06 Yao Qi <yao@codesourcery.com>
2123
2124 * Makefile.in (check-perf): New target.
2125
21262013-11-05 Will Newton <will.newton@linaro.org>
2127
2128 PR gdb/7670
2129 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2130 (arm_print_float_info): Likewise.
2131
21322013-11-04 Anton Blanchard <anton@samba.org>
2133
2134 * target.c (memory_xfer_partial): Cap write to 4KB.
2135
21362013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2137
2138 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2139 probe scan even when the arch provides no get_longjmp_target.
2140
21412013-10-31 Pedro Alves <palves@redhat.com>
2142
2143 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2144 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2145 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2146 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2147 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2148 <bpstat handling>: If the bpstat chain wants the signal to be
2149 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2150 GDB_SIGNAL_TRAP.
2151
21522013-10-31 Andrew Burgess <aburgess@broadcom.com>
2153
2154 * breakpoint.c (update_watchpoint): Update error message and add
2155 an additional error message.
2156
21572013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2158
2159 * s390-tdep.h: Rename to...
2160 * s390-linux-tdep.h: ...here.
2161 * s390-tdep.c: Rename to...
2162 * s390-linux-tdep.c: ...here. Adjust #include.
2163 * s390-nat.c: Rename to...
2164 * s390-linux-nat.c: ...here. Adjust #include.
2165 * config/s390/s390.mh: Rename to...
2166 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2167 s390-linux-nat.o.
2168 * configure.host: Reflect host rename "s390" -> "linux".
2169 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2170 * Makefile.in (ALL_TARGET_OBS): Likewise.
2171 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2172 s390-linux-tdep.h.
2173 (ALLDEPFILES): Reflect rename of .c files.
2174
21752013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2176
2177 * s390-nat.c: Whitespace cleanup.
2178 * s390-tdep.c: Likewise.
2179 * s390-tdep.h: Remove empty line at end of file.
2180
21812013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2182
2183 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2184 siginfo_size.
2185
21862013-10-29 Tom Tromey <tromey@redhat.com>
2187
2188 * utils.c (reg): Move undefinition...
2189 * gdb_curses.h: ... here. Update comment to mention AIX.
2190
21912013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2192
2193 * exec.h (add_target_sections_of_objfile): New declaration.
2194 * exec.c (add_target_sections_of_objfile): New function.
2195 * symfile.c (add_symbol_file_command): Update current target sections.
2196 (remove_symbol_file_command): New command.
2197 (symfile_free_objfile): New function.
2198 (_initialize_symfile): Register observer for free_objfile events.
2199 * NEWS: Add description of the remove-symbol-file command.
2200 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2201 * objfiles.c (free_objfile): Notify free_objfile.
2202 (is_addr_in_objfile): New function.
2203 * objfiles.h (is_addr_in_objfile): New declaration.
2204 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2205 events instead of solib_unloaded events.
2206 (_initialize_printcmd): Register observer for free_objfile instead
2207 of solib_unloaded notifications.
2208 * solib.c (remove_user_added_objfile): New function.
2209 (_initialize_symfile): Add remove-symbol-file.
2210
22112013-10-29 Andrew Burgess <aburgess@broadcom.com>
2212
2213 * infcmd.c (default_print_one_register_info): Use val_print to
2214 print all values even optimized out or unavailable ones. Don't
2215 try to print a raw form of optimized out or unavailable values.
2216
22172013-10-29 Yao Qi <yao@codesourcery.com>
2218
2219 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2220 parameter 'arg' instead of from program_space_data.
2221 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2222 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2223 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2224 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2225 * inflow.c (inflow_inferior_data_cleanup): Get data from
2226 parameter 'arg' instead of inferior_data.
2227 * registry.h: Add comments.
2228
22292013-10-28 Pedro Alves <palves@redhat.com>
2230
2231 * breakpoint.c (watchpoints_triggered)
2232 <!target_stopped_data_address>: Hardcode return 1.
2233
22342013-10-28 Pedro Alves <palves@redhat.com>
2235
2236 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2237 level and reindent.
2238
22392013-10-28 Pedro Alves <palves@redhat.com>
2240
2241 * infrun.c (process_event_stop_test): New function, factored out
2242 from handle_inferior_event.
2243 (handle_inferior_event): 'process_event_stop_test' is now a
2244 function instead of a goto label -- adjust.
2245
22462013-10-28 Pedro Alves <palves@redhat.com>
2247
2248 * infrun.c (handle_inferior_event): Move process_event_stop_test
2249 goto label to the else branch of the ecs->random_signal check,
2250 along with FRAME and GDBARCH re-fetching.
2251
22522013-10-28 Pedro Alves <palves@redhat.com>
2253
2254 * infrun.c (switch_back_to_stepped_thread): New function, factored
2255 out from handle_inferior_event.
2256 (handle_inferior_event): Adjust to call
2257 switch_back_to_stepped_thread. Call it also at the tail of the
2258 random signal handling, and return, instead of also handling
2259 random signals just before the stepping tests.
2260
22612013-10-28 Pedro Alves <palves@redhat.com>
2262
2263 * infrun.c (clear_stop_func): Delete.
2264 (handle_inferior_event): Don't call clear_stop_func and don't
2265 clear 'ecs->random_signal'.
2266
22672013-10-27 Yao Qi <yao@codesourcery.com>
2268
2269 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2270 (varobj_create, varobj_get_path_expr): Update.
2271 (varobj_value_has_mutated, varobj_update): Likewise.
2272 (create_child_with_value, new_root_variable): Likewise.
2273 (number_of_children, name_of_variable): Likewise.
2274 (value_of_child, my_value_of_variable): Likewise.
2275 (varobj_value_is_changeable_p): Likewise.
2276
22772013-10-25 Yao Qi <yao@codesourcery.com>
2278
2279 * language.h (struct lang_varobj_ops): Declare.
2280 (struct language_defn) <la_varobj_ops>: New field.
2281 * ada-lang.c: Include "varobj.h"
2282 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2283 ada_varobj_ops.
2284 * c-lang.c: Include "varobj.h"
2285 (c_language_defn): Initialize field 'la_varobj_ops' with
2286 c_varobj_ops.
2287 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2288 cplus_varobj_ops.
2289 (asm_language_defn): Initialize field 'la_varobj_ops' with
2290 default_varobj_ops.
2291 (minimal_language_defn): Likewise.
2292 * d-lang.c (d_language_defn): Likewise.
2293 * f-lang.c (f_language_defn): Likewise.
2294 * go-lang.c (go_language_defn): Likewise.
2295 * m2-lang.c (m2_language_defn): Likewise.
2296 * objc-lang.c (objc_language_defn): Likewise.
2297 * opencl-lang.c (opencl_language_defn): Likewise.
2298 * p-lang.c (pascal_language_defn): Likewise.
2299 * language.c (unknown_language_defn): Likewise.
2300 (auto_language_defn): Likewise.
2301 (local_language_defn): Likewise.
2302 * jv-lang.c (java_language_defn): Initialize field
2303 'la_varobj_ops' with java_varobj_ops.
2304 * varobj.c (varobj_create): Update.
2305 * varobj.h (default_varobj_ops): Define macro.
2306
23072013-10-25 Pedro Alves <palves@redhat.com>
2308
2309 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2310 static field value.
2311 (cp_print_static_field): If the value is entirely optimized out,
2312 print <optimized out> here.
2313 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2314 static field value.
2315 * p-valprint.c (pascal_object_print_static_field): If the value is
2316 entirely optimized out, print <optimized out> here.
2317 * valops.c (do_search_struct_field)
2318 (value_struct_elt_for_reference): No longer handle a NULL static
2319 field value.
2320 * value.c (value_static_field): Return an optimized out value
2321 instead of NULL.
2322
23232013-10-25 Yao Qi <yao@codesourcery.com>
2324
2325 * remote.c (remote_traceframe_info): Return early if
2326 traceframe is not selected.
2327
23282013-10-25 Yao Qi <yao@codesourcery.com>
2329
2330 * tracepoint.c (traceframe_fun): Remove.
2331 (traceframe_sal): Remove.
2332 (set_traceframe_context): Add local variables.
2333
23342013-10-25 Joel Brobecker <brobecker@adacore.com>
2335
2336 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2337 and parameter name.
2338
23392013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2340
2341 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2342 failure from register information collection.
2343
23442013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2345
2346 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2347 member.
2348 (linux_corefile_thread_callback): Update accordingly.
2349 (linux_make_corefile_notes): Likewise.
2350
23512013-10-24 Pedro Alves <palves@redhat.com>
2352
2353 * NEWS (New options): Mention set/show startup-with-shell.
2354 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2355 instead of 3.
2356 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2357 startup-with-shell'.
2358 (show_startup_with_shell): New function.
2359 (_initialize_fork_child): Register the set/show startup-with-shell
2360 commands.
2361 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2362 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2363 * procfs.c (procfs_init_inferior): Remove comment.
2364 * infcmd.c (startup_with_shell): New global.
2365 * inferior.h (startup_with_shell): Declare global.
2366 (STARTUP_WITH_SHELL): Delete.
2367 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2368
23692013-10-23 Pedro Alves <palves@redhat.com>
2370
2371 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2372 * common/signals.c: Include "gdb_assert.h".
2373 (signals): New field 'symbol'.
2374 (SET): Use the 'symbol' parameter.
2375 (gdb_signal_to_symbol_string): New function.
2376 * infrun.c (handle_inferior_event) <random signal>: In debug
2377 output, print the random signal enum as string in addition to its
2378 number.
2379 * target/waitstatus.c (target_waitstatus_to_string): Print the
2380 signal's enum value as string instead of the (POSIX) signal name.
2381
23822013-10-23 Gary Benson <gbenson@redhat.com>
2383
2384 PR 16013
2385 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2386 from 32 to 18. Adjusted fscanf format string accordingly.
2387 (Avoids leaving cmd unterminated.)
2388 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2389 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2390 that local_address and remote_address will not overflow.
2391 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2392 leaving dependencies unterminated. Parse size as "%u" to match
2393 definition.
2394
23952013-10-22 Pedro Alves <palves@redhat.com>
2396
2397 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2398 set ecs->random signal.
2399
24002013-10-22 Pedro Alves <palves@redhat.com>
2401
2402 * infrun.c (keep_going): Update comments.
2403
24042013-10-22 Pedro Alves <palves@redhat.com>
2405
2406 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2407 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2408
24092013-10-22 Pedro Alves <palves@redhat.com>
2410
2411 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2412 GDB_EXC_BAD_ACCESS.
2413 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2414 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2415 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2416 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2417 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2418 (GDB_SIGNAL_LAST): Change description string.
2419 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2420 Adjust to signal renaming.
2421 * darwin-nat.c (darwin_decode_message): Likewise.
2422
24232013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2424
2425 * MAINTAINERS (Write After Approval): Add myself to the list.
2426
24272013-10-18 Andrew Burgess <aburgess@broadcom.com>
2428
2429 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2430 forced off, downgrade them to software watchpoints if possible,
2431 and error out if not possible.
2432 (watch_command_1): Move watchpoint type selection closer to
2433 watchpoint creation, and extend the comments.
2434
24352013-10-18 Pedro Alves <palves@redhat.com>
2436
2437 PR gdb/16062
2438 * infrun.c (handle_inferior_event): Keep going if we got a random
2439 signal we should not stop for, instead of falling through to the
2440 step tests.
2441
24422013-10-18 Yao Qi <yao@codesourcery.com>
2443
2444 * c-varobj.c (cplus_number_of_children): Fix indentation.
2445
24462013-10-17 Tom Tromey <tromey@redhat.com>
2447
2448 PR gdb/15995:
2449 * printcmd.c (printcmd): Call gdb_flush.
2450
24512013-10-17 Tom Tromey <tromey@redhat.com>
2452
2453 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2454 (elf_locate_sections): Update.
2455
24562013-10-17 Yao Qi <yao@codesourcery.com>
2457
2458 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2459 * ada-varobj.c: Remove the include of ada-varobj.h.
2460 (ada_varobj_get_number_of_children): Declare.
2461 (ada_varobj_get_name_of_child): Make it static.
2462 (ada_varobj_get_path_expr_of_child): Likewise.
2463 (ada_varobj_get_value_of_child): Likewise.
2464 (ada_varobj_get_type_of_child): Likewise.
2465 (ada_varobj_get_value_of_array_variable): Likewise.
2466 * ada-varobj.h: Remove.
2467
24682013-10-17 Yao Qi <yao@codesourcery.com>
2469
2470 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2471 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2472 * ada-varobj.c: Include "varobj.h".
2473 (ada_number_of_children): New. Moved from varobj.c.
2474 (ada_name_of_variable, ada_name_of_child): Likewise.
2475 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2476 (ada_type_of_child, ada_value_of_variable): Likewise.
2477 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2478 (ada_varobj_ops): New.
2479 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2480 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2481 * gdbtypes.h (get_target_type): Declare.
2482 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2483 "ada-lang.h".
2484 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2485 (ANONYMOUS_UNION_NAME): Likewise.
2486 (get_type, get_value_type, get_target_type): Remove declarations.
2487 (value_get_print_value, varobj_value_get_print_value): Likewise.
2488 (c_number_of_children, c_name_of_variable): Likewise.
2489 (c_name_of_child, c_path_expr_of_child): Likewise.
2490 (c_value_of_child, c_type_of_child): Likewise.
2491 (c_value_of_variable, cplus_number_of_children): Likewise.
2492 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2493 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2494 (cplus_value_of_child, cplus_type_of_child): Likewise.
2495 (cplus_value_of_variable, java_number_of_children): Likewise.
2496 (java_name_of_variable, java_name_of_child): Likewise.
2497 (java_path_expr_of_child, java_value_of_child): Likewise.
2498 (java_type_of_child, java_value_of_variable): Likewise.
2499 (ada_number_of_children, ada_name_of_variable): Likewise.
2500 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2501 (ada_value_of_child, ada_type_of_child): Likewise.
2502 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2503 (ada_value_has_mutated): Likewise.
2504 (struct language_specific): Move it to varobj.h.
2505 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2506 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2507 Callers update.
2508 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2509 Make it extern.
2510 (is_anonymous_child): Move it to c-varobj.c and rename to
2511 varobj_is_anonymous_child. Caller update.
2512 (get_type): Move it to c-varobj.c.
2513 (get_value_type): Rename it varobj_get_value_type. Make it
2514 extern.
2515 (get_target_type): Move it gdbtypes.c.
2516 (varobj_formatted_print_options): New function.
2517 (value_get_print_value): Rename it to
2518 varobj_value_get_print_value and make it extern.
2519 (varobj_value_is_changeable_p): Make it extern.
2520 (adjust_value_for_child_access): Move it to c-varobj.c.
2521 (default_value_is_changeable_p): Rename it to
2522 varobj_default_value_is_changeable_p. Make it extern.
2523 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2524 (c_name_of_child, c_path_expr_of_child): Likewise.
2525 (c_value_of_child, c_type_of_child): Likewise.
2526 (c_value_of_variable, cplus_number_of_children): Likewise.
2527 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2528 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2529 (cplus_value_of_child, cplus_type_of_child): Likewise.
2530 (cplus_value_of_variable): Likewise.
2531 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2532 (java_name_of_child, java_path_expr_of_child): Likewise.
2533 (java_value_of_child, java_type_of_child): Likewise.
2534 (java_value_of_variable): Likewise.
2535 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2536 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2537 (ada_value_of_child, ada_type_of_child): Likewise.
2538 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2539 (ada_value_has_mutated): Likewise.
2540 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2541 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2542 (c_varobj_ops, cplus_varobj_ops): Declare.
2543 (java_varobj_ops, ada_varobj_ops): Declare.
2544 (varobj_default_value_is_changeable_p): Declare.
2545 (varobj_value_is_changeable_p): Declare.
2546 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2547 (varobj_get_path_expr_parent): Declare.
2548 (varobj_value_get_print_value): Declare.
2549 (varobj_formatted_print_options): Declare.
2550 (varobj_restrict_range): Declare.
2551
25522013-10-17 Luis Machado <lgustavo@codesourcery.com>
2553
2554 * target/waitstatus.h (target_waitkind): Remove spurious
2555 character from the comments.
2556
25572013-10-17 Joel Brobecker <brobecker@adacore.com>
2558
2559 * gdbarch.sh (get_longjmp_target): Add method documentation.
2560 * gdbarch.h: Regenerate.
2561
25622013-10-16 Tom Tromey <tromey@redhat.com>
2563
2564 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2565 label.
2566
25672013-10-16 Luis Machado <lgustavo@codesourcery.com>
2568
2569 * gcore.in: Call GDB using the full path to the gcore script.
2570 Error out if the GDB binary is not found.
2571
25722013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2573
2574 PR gdb/16014
2575 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2576 sizeof.
2577
25782013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2579
2580 PR gdb/16042
2581 * target.c (target_disable_btrace): Fix invalid return value for
2582 void function.
2583 (target_teardown_btrace): Likewise.
2584
25852013-10-14 Yao Qi <yao@codesourcery.com>
2586
2587 * varobj.c (struct varobj): Move most of the fields to
2588 varobj.h.
2589 (struct varobj_dynamic): New struct.
2590 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2591 (varobj_has_more): Likewise.
2592 (dynamic_varobj_has_child_method): Likewise.
2593 (update_dynamic_varobj_children): Likewise.
2594 (varobj_get_num_children): Likewise.
2595 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2596 (install_new_value_visualizer): Likewise.
2597 (install_new_value_visualizer, install_new_value): Likewise.
2598 (varobj_update, new_variable, free_variable): Likewise.
2599 (my_value_of_variable, value_get_print_value): Likewise.
2600 (install_visualizer): Change the type of parameter 'var' to
2601 'struct varobjd_dynamic *'. Callers update.
2602 * varobj.h (struct varobj): Moved from varobj.c.
2603 (struct varobj) <dynamic>: New field.
2604
26052013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2606
2607 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2608 as the preferred name of r30.
2609 * nios2-linux-tdep.c (reg_offsets): Likewise.
2610 * features/nios2-cpu.xml: Likewise.
2611 * features/nios2-linux.c: Regenerated.
2612 * features/nios2.c: Regenerated.
2613 * regformats/nios2-linux.dat: Regenerated.
2614
26152013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 Canonicalize directories for EXEC_FILENAME.
2618 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2619 exec_filename.
2620 * utils.c (gdb_realpath_keepfile): New function.
2621 * utils.h (gdb_realpath_keepfile): New declaration.
2622
26232013-10-11 Doug Evans <dje@google.com>
2624
2625 * Makefile.in (GDBFLAGS): New variable.
2626 (run): New rule.
2627
26282013-10-11 Joel Brobecker <brobecker@adacore.com>
2629
2630 * NEWS: Add entry documenting the new "-catch-assert" and
2631 "-catch-exception" GDB/MI commands.
2632
26332013-10-11 Joel Brobecker <brobecker@adacore.com>
2634
2635 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2636 "enabled".
2637 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2638 "enabled". Set B->ENABLE_STATE accordingly.
2639 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2640 ada-lang.c.
2641 (create_ada_exception_catchpoint): Add declaration.
2642 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2643 (create_ada_exception_catchpoint): Make non-static. Add new
2644 parameter "disabled". Use it in call to
2645 init_ada_exception_breakpoint.
2646 (catch_ada_exception_command): Add parameter "enabled" in call
2647 to create_ada_exception_catchpoint.
2648 (catch_assert_command): Likewise.
2649
2650 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2651 Add declarations.
2652 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2653 "catch-exception" commands.
2654 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2655 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2656
26572013-10-11 Joel Brobecker <brobecker@adacore.com>
2658
2659 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2660 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2661 of all its enumerates with "ada_". Update the rest of this
2662 file throughout.
2663
26642013-10-11 Joel Brobecker <brobecker@adacore.com>
2665
2666 * ada-lang.c (ada_decode_exception_location): Delete.
2667 (create_ada_exception_catchpoint): Remove arguments "sal",
2668 "addr_string" and "ops". Add argument "ex_kind" instead.
2669 Adjust implementation accordingly, calling ada_exception_sal
2670 to get the entities it no longer gets passed as arguments.
2671 Document the function's arguments.
2672 (catch_ada_exception_command): Use catch_ada_exception_command_split
2673 instead of ada_decode_exception_location, and update call to
2674 create_ada_exception_catchpoint.
2675 (catch_ada_assert_command_split): Renames
2676 ada_decode_assert_location. Remove parameters "addr_string" and
2677 "ops", and now returns void. Adjust implementation accordingly.
2678 Update the function documentation.
2679 (catch_assert_command): Use catch_ada_assert_command_split
2680 instead of ada_decode_assert_location. Update call to
2681 create_ada_exception_catchpoint.
2682
26832013-10-11 Joel Brobecker <brobecker@adacore.com>
2684
2685 * utils.h (perror_warning_with_name): Add declaration.
2686 * utils.c (perror_warning_with_name): New function.
2687 * cli/cli-cmds.c (source_script_with_search): Add call to
2688 perror_warning_with_name if from_tty is nul.
2689
26902013-10-11 Joel Brobecker <brobecker@adacore.com>
2691
2692 * utils.c (perror_string): New function, extracted out of
2693 throw_perror_with_name.
2694 (throw_perror_with_name): Rework to use perror_string.
2695
26962013-10-11 Yao Qi <yao@codesourcery.com>
2697
2698 * remote.c (discard_pending_stop_replies_in_queue): Update
2699 declaration.
2700 (struct stop_reply) <rs>: New field.
2701 (remove_stop_reply_of_remote_state): New function.
2702 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2703 Callers update. Pass remove_stop_reply_of_remote_state to
2704 QUEUE_iterate.
2705 (remote_parse_stop_reply): Initialize field 'rs'.
2706
27072013-10-10 Will Newton <will.newton@linaro.org>
2708
2709 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2710 linux_init_abi.
2711
27122013-10-10 Joel Brobecker <brobecker@adacore.com>
2713
2714 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2715 serial_baud_show_cmd.
2716 (_initialize_cli_cmds): Delete the code creating the
2717 "set/show remotebaud" commands.
2718 * serial.c (baud_rate): Move here from top.c.
2719 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2720 (_initialize_serial): Create "set/show serial baud" commands.
2721 Add "set/show remotebaud" command aliases.
2722 * top.c (baud_rate): Moved to serial.c.
2723 * NEWS: Document the new "set/show serial baud" commands,
2724 replacing "set/show remotebaud".
2725
27262013-10-09 Pedro Alves <palves@redhat.com>
2727
2728 * breakpoint.c (insert_bp_location): Use memory_error_message to
2729 build the memory error string.
2730 * c-lang.c: Include "gdbcore.h".
2731 (c_get_string): Use memory_error to throw error.
2732 (target_xfer_memory_error): Delete.
2733 (memory_error_message): New, factored out from
2734 target_xfer_memory_error.
2735 (memory_error): Change parameter type to target_xfer_error.
2736 Rewrite.
2737 (read_memory): Use memory_error instead of
2738 target_xfer_memory_error.
2739 * gdbcore.h: Include "target.h".
2740 (memory_error): Change parameter type to target_xfer_error.
2741 (memory_error_message): Declare function.
2742 * target.c (target_read_memory, target_read_stack)
2743 (target_write_memory, target_write_raw_memory): Return
2744 TARGET_XFER_E_IO on error. Adjust comments.
2745 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2746 instead of EIO.
2747 * target.h (target_read, target_insert_breakpoint)
2748 (target_remove_breakpoint): Adjust comments.
2749 * valprint.c (partial_memory_read): Rename parameter, and adjust
2750 comment.
2751 (val_print_string): Use memory_error_message to build the memory
2752 error string.
2753
27542013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2755
2756 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2757 result variable. Rename variable fopen_e_ever_failed to
2758 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2759
27602013-10-09 Pedro Alves <palves@redhat.com>
2761
2762 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2763 (monitor_write_memory_longlongs, monitor_write_memory_block):
2764 Constify 'myaddr' parameter.
2765 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2766 helper.
2767 (monitor_xfer_partial): New function.
2768 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2769 hook. Install a to_xfer_partial hook.
2770
27712013-10-09 Tom Tromey <tromey@redhat.com>
2772
2773 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2774 bfd_get_alt_debug_link_info.
2775
27762013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 New flag OBJF_NOT_FILENAME.
2779 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2780 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2781 allocate_objfile.
2782 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2783 symbol_file_add_from_bfd.
2784 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2785 allocate_objfile.
2786 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2787 NULL.
2788 * objfiles.h (OBJF_NOT_FILENAME): New.
2789
27902013-10-08 Tom Tromey <tromey@redhat.com>
2791
2792 * Makefile.in (SFILES): Add build-id.c.
2793 (HFILES_NO_SRCDIR): Add build-id.h.
2794 * build-id.c: New file, largely from elfread.c. Modified
2795 most functions.
2796 * build-id.h: New file.
2797 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2798 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2799 Search for dwz file using build-id.
2800 * elfread.c (build_id_bfd_get, build_id_verify)
2801 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2802
28032013-10-08 Joel Brobecker <brobecker@adacore.com>
2804
2805 * ada-lang.c (compare_names_with_case): Renamed from
2806 compare_names, adding a new parameter "casing" and its handling.
2807 New function documentation.
2808 (compare_names): New function, implemented using
2809 compare_names_with_case.
2810
28112013-10-08 Joel Brobecker <brobecker@adacore.com>
2812
2813 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2814
28152013-10-07 Tom Tromey <tromey@redhat.com>
2816
2817 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2818 demangled_names_hash.
2819 (free_objfile): Don't delete the demangled_names_hash.
2820 * objfiles.h (struct objfile_per_bfd_storage)
2821 <demangled_names_hash>: New field.
2822 (struct objfile) <demangled_names_hash>: Move to
2823 objfile_per_bfd_storage.
2824 * symfile.c (reread_symbols): Don't delete the
2825 demangled_names_hash.
2826 * symtab.c (create_demangled_names_hash): Update.
2827 (symbol_set_names): Update.
2828
28292013-10-07 Tom Tromey <tromey@redhat.com>
2830
2831 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2832 needs_relocations>: New fields.
2833 (gdb_bfd_requires_relocations): New function.
2834 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2835 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2836 the BFD needs relocations applied.
2837
28382013-10-07 Pedro Alves <palves@redhat.com>
2839
2840 PR breakpoints/11568
2841 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2842 the thread list" instead of "gone".
2843
28442013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2845
2846 * NEWS: Mention new convenience variable $_exitsignal.
2847 * corelow.c (core_open): Reset exit convenience variables. Set
2848 $_exitsignal to the uncaught signal which generated the corefile.
2849 * infrun.c (handle_inferior_event): Reset exit convenience
2850 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2851 (clear_exit_convenience_vars): New function.
2852 * inferior.h (clear_exit_convenience_vars): New prototype.
2853
28542013-10-06 Yao Qi <yao@codesourcery.com>
2855
2856 * varobj.h: Add comments to enum varobj_languages.
2857
28582013-10-04 Doug Evans <dje@google.com>
2859
2860 Add support for DWP file format version 2.
2861 * NEWS: Mention support for DWP file format version 2.
2862 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2863 union of asection, containing_section. New fields virtual_offset
2864 and is_virtual. Change type of readin filed from int to char.
2865 (dwo_sections, dwo_file): Tweak comments.
2866 (dwp_v2_section_ids): New enum.
2867 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2868 str_offsets, types.
2869 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2870 All uses updated.
2871 (virtual_v2_dwo_sections): New struct.
2872 (dwp_hash_table): New fields version, nr_columns. Change type of
2873 section_pool field to a union.
2874 (dwp_file): New field version.
2875 (dwarf2_has_info): Check for virtual sections.
2876 (get_containing_section): New function.
2877 (get_section_bfd_owner, get_section_bfd_section): Call it.
2878 (dwarf2_locate_sections): Update.
2879 (dwarf2_section_empty_p): Update.
2880 (dwarf2_read_section): Handle virtual sections.
2881 (locate_dwz_sections): Update.
2882 (create_dwp_hash_table): Document and handle V2 format.
2883 (locate_v1_virtual_dwo_sections): Renamed from
2884 locate_virtual_dwo_sections and update. All callers updated.
2885 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2886 Delete arg htab. Rename arg section_index to unit_index.
2887 All callers updated.
2888 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2889 All uses updated.
2890 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2891 (lookup_dwo_unit_in_dwp): Add V2 support.
2892 (dwarf2_locate_dwo_sections): Update.
2893 (dwarf2_locate_common_dwp_sections): Renamed from
2894 dwarf2_locate_dwp_sections and update. All callers updated.
2895 (dwarf2_locate_v2_dwp_sections): New function.
2896 (open_and_init_dwp_file): Add V2 support.
2897 (read_str_index): New locals str_section, str_offsets_section.
2898
28992013-10-04 Pedro Alves <palves@redhat.com>
2900
2901 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2902 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2903 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2904 describing comments with references to ptid.h.
2905 * common/ptid.h: Remove intro description of constructors,
2906 accessors and predicates.
2907 (struct ptid): Reformat.
2908 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2909 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2910 describing comments.
2911
29122013-10-04 Joel Brobecker <brobecker@adacore.com>
2913
2914 * aix-thread.c (sync_threadlists): Add missing ')' in call
2915 to ptid_build.
2916
29172013-10-04 Joel Brobecker <brobecker@adacore.com>
2918
2919 * procfs.c (procfs_init_inferior): Fix typo causing the build
2920 to fail.
2921
29222013-10-04 Joel Brobecker <brobecker@adacore.com>
2923
2924 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2925
29262013-10-04 Joel Brobecker <brobecker@adacore.com>
2927
2928 * mi/mi-main.c (run_one_inferior): Add function description.
2929 Make ARG a pointer to an integer whose value determines whether
2930 we should "run" or "start" the program.
2931 (mi_cmd_exec_run): Add handling of the "--start" option.
2932 Reject all other command-line options.
2933 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2934
29352013-10-04 Yao Qi <yao@codesourcery.com>
2936
2937 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2938 (struct notif_client) <pending_event>: Moved
2939 to struct remote_notif_state.
2940 <id>: New field.
2941 (struct remote_notif_state) <pending_event>: New field.
2942 (notif_event_xfree): Declare.
2943 * remote-notif.c (handle_notification): Adjust.
2944 (notif_event_xfree): New function.
2945 (do_notif_event_xfree): Call notif_event_xfree.
2946 (remote_notif_state_xfree): Call notif_event_xfree to free
2947 each element in field pending_event.
2948 * remote.c (discard_pending_stop_replies): Remove declaration.
2949 (discard_pending_stop_replies_in_queue): Declare.
2950 (remote_close): Call discard_pending_stop_replies_in_queue
2951 instead of discard_pending_stop_replies.
2952 (remote_start_remote): Adjust.
2953 (stop_reply_xfree): Call notif_event_xfree.
2954 (notif_client_stop): Adjust initialization.
2955 (remote_notif_remove_all): Rename it to ...
2956 (remove_stop_reply_for_inferior): ... this. Update comments.
2957 Don't check INF is NULL.
2958 (discard_pending_stop_replies): Return early if notif_state is
2959 NULL. Adjust. Don't check INF is NULL.
2960 (remote_notif_get_pending_events): Adjust.
2961 (discard_pending_stop_replies_in_queue): New function.
2962 (remote_wait_ns): Likewise.
2963
29642013-10-04 Yao Qi <yao@codesourcery.com>
2965
2966 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2967 (notif_queue): Remove.
2968 (remote_notif_process): Add one parameter 'notif_queue'.
2969 Update comments. Callers update.
2970 (remote_async_get_pending_events_token): Remove.
2971 (remote_notif_register_async_event_handler): Remove.
2972 (remote_notif_unregister_async_event_handler): Remove.
2973 (handle_notification): Add parameter 'notif_queue'. Update
2974 comments. Callers update.
2975 (notif_xfree): Remove.
2976 (remote_notif_state_allocate): New function.
2977 (remote_notif_state_xfree): New function.
2978 (_initialize_notif): Remove code to allocate queue.
2979 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2980 (struct remote_notif_state): New.
2981 (handle_notification): Update declaration.
2982 (remote_notif_process): Likewise.
2983 (remote_notif_register_async_event_handler): Remove.
2984 (remote_notif_unregister_async_event_handler): Remove.
2985 (remote_notif_state_allocate): Declare.
2986 (remote_notif_state_xfree): Declare.
2987 * remote.c (struct remote_state) <notif_state>: New field.
2988 (remote_close): Don't call
2989 remote_notif_unregister_async_event_handler. Call
2990 remote_notif_state_xfree.
2991 (remote_open_1): Don't call
2992 remote_notif_register_async_event_handler. Call
2993 remote_notif_state_allocate.
2994
29952013-10-04 Yao Qi <yao@codesourcery.com>
2996
2997 * varobj.c (create_child_with_value): Remove 'const' from the
2998 type of parameter 'name'.
2999 (varobj_add_child): Likewise.
3000 (install_dynamic_child): Remove 'const' from the type of
3001 parameter 'name'.
3002 (varobj_add_child): Likewise.
3003 (create_child_with_value): Likewise. Update comments. Don't
3004 duplicate 'name'.
3005 (update_dynamic_varobj_children): Duplicate 'name'
3006 and pass it to install_dynamic_child.
3007
30082013-10-03 Phil Muldoon <pmuldoon@redhat.com>
3009
3010 * python/py-value.c (convert_value_from_python): Move PyInt_Check
3011 conversion logic to occur after PyLong_Check. Comment on order
3012 change significance.
3013 * python/py-arch.c (archpy_disassemble): Comment on order of
3014 conversion for integers and longs.
3015
30162013-10-03 Pedro Alves <palves@redhat.com>
3017
3018 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
3019 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
3020 functions. Always test for PTRACE_O_TRACESYSGOOD even if
3021 PTRACE_O_TRACEFORK is not supported.
3022 (linux_test_for_tracesysgood): New function.
3023 (linux_test_for_tracefork): New function, factored out from
3024 linux_check_ptrace_features, and also don't kill child_pid here.
3025
30262013-10-03 Tristan Gingold <gingold@adacore.com>
3027
3028 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
3029 Remove verbose error reporting. Use detected state to
3030 thread_set_state call.
3031 (i386_darwin_dr_get): Fix return type. Remove verbose error
3032 report.
3033 Remove trailing spaces.
3034
30352013-10-02 Pedro Alves <palves@redhat.com>
3036
3037 * cp-valprint.c (cp_print_value_fields): Adjust calls to
3038 val_print_optimized_out.
3039 * jv-valprint.c (java_print_value_fields): Likewise.
3040 * p-valprint.c (pascal_object_print_value_fields): Likewise.
3041 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
3042 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
3043 new optimized out value.
3044 * findvar.c (address_from_register): Likewise.
3045 * frame.c (put_frame_register): Tweak error string to say the
3046 register was not saved, rather than optimized out.
3047 * infcmd.c (default_print_one_register_info): Adjust call to
3048 val_print_optimized_out. Use value_of_register instead of
3049 get_frame_register_value.
3050 * mi/mi-main.c (output_register): Use value_of_register instead of
3051 get_frame_register_value.
3052 * valprint.c (valprint_check_validity): Likewise.
3053 (val_print_optimized_out): New value parameter. If the value is
3054 lval_register, print <not saved> instead.
3055 (value_check_printable, val_print_scalar_formatted): Adjust calls
3056 to val_print_optimized_out.
3057 * valprint.h (val_print_optimized_out): New value parameter.
3058 * value.c (struct value) <optimized_out>: Extend comment.
3059 (error_value_optimized_out): New function.
3060 (require_not_optimized_out): Use it. Use a different string for
3061 lval_register values.
3062 * value.h (error_value_optimized_out): New declaration.
3063 * NEWS: Mention <not saved>.
3064
30652013-10-02 Joel Brobecker <brobecker@adacore.com>
3066
3067 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3068 strcmp to compare two symtab filenames.
3069
30702013-10-02 Joel Brobecker <brobecker@adacore.com>
3071
3072 * symtab.c (search_symbols_equal): Delete.
3073 (sort_search_symbols_remove_dups): Replace call to
3074 search_symbols_equal by call to compare_search_syms,
3075 adjusting as necessary.
3076
30772013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3078
3079 PR python/15579
3080 * python/python.c: Document gdb.execute command in Python help.
3081
30822013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3083
3084 * python/py-frame.c (frame_info_to_frame_object): Use
3085 gdbpy_convert_exception. Clean up Python object on failure.
3086
30872013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3088
3089 * python/lib/gdb/command/frame_filters.py
3090 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3091 (ShowFrameFilterPriority.invoke): Ditto.
3092
30932013-10-01 Keith Seitz <keiths@redhat.com>
3094
3095 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3096 (parse_linespec): Make 'argptr' const.
3097 Remove temporary cast of 'argptr' to const char **.
3098 (decode_line_full): Pass const pointer to parse_linespec.
3099 (decode_line_1): Likewise.
3100 (decode_objc): Make local variable 'new_argptr' const.
3101 (find_function_symbols): Remove temporary cast to char *
3102 to find_imps.
3103 * objc-lang.c (find_imps): Make argument 'method' const.
3104 Return const.
3105 * objc-lang.h (find_imps): Likewise.
3106
31072013-10-01 Keith Seitz <keiths@redhat.com>
3108
3109 * completer.c (skip_quoted_chars): Make all arguments const.
3110 Return const.
3111 (skip_quoted): Likewise.
3112 * completer.h (skip_quoted_chars): Likewise.
3113 (skip_quoted): Likewise.
3114 * defs.h (skip_quoted): Remove duplicate declaration.
3115 * jv-exp.y: Include completer.h.
3116 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3117 * p-exp.y: Include completer.h.
3118
31192013-10-01 Keith Seitz <keiths@redhat.com>
3120
3121 * c-exp.y (parse_number): Make first argument const.
3122 Make a copy of the input to manipulate.
3123 (c_parse_escape): Make first argument const.
3124 Make local variable 'tokptr' const.
3125 (parse_string_or_char): Make first two arguments const.
3126 (macro_original_text): Make const.
3127 (lex_one_token): Make local variable 'tokstart' const.
3128 Likewise for local variables named 'p'.
3129 Cast away const for struct stoken (temporary).
3130 * c-lang.h (c_parse_escpae): Make first argument const.
3131 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3132 const.
3133 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3134 var_string case.
3135 * f-exp.y (parse_number): Make first argument const.
3136 (match_string_literal): Make local variable 'tokstart'
3137 const.
3138 (yylex): Make local variable 'p' const.
3139 Cast away const for struct stoken (temporary).
3140 * go-exp.y (parse_number): Make first argument const.
3141 (parse_string_or_char): Likewise.
3142 Make local variable 'tokstart' const.
3143 (lex_one_token): Likewise for numerous locals called 'p'.
3144 Cast away const for struct stoken (temporary).
3145 * jv-exp.y (parse_number): Make first argument const.
3146 Make local variables 'tokstart' and 'tokptr' const.
3147 Cast away const for call to skip_quoted (temporary).
3148 (yylex): Make local variable 'p' const.
3149 Cast away const for struct stoken (temporary).
3150 * m2-exp.y (parse_number): Make local variable 'p' const.
3151 (yylex): Likewise for 'tokstart'.
3152 Cast away const for struct stoken (temporary).
3153 Make local variable 'p' const.
3154 * macroexp.c (get_character_constant): Pass a const string
3155 to c_parse_escape.
3156 (get_string_literal): Likewise.
3157 (macro_expand_next): Make first argument const.
3158 Cast away const for init_shared_buffer.
3159 * macroexp.h (macro_expand_next): Make first argument const.
3160 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3161 Pass a const string to c_parse_escape.
3162 Make local variables 'p' and 'namestart' const.
3163 * parse.c (lexptr): Make const.
3164 (prev_lexptr): Likewise.
3165 (find_template_name_end): Return const.
3166 Make argument const, too.
3167 (parse_exp_in_context): Make first argument const.
3168 Remove the entire const_hack.
3169 (parse_exp_in_context_1): Make first argument const.
3170 * parser-defs.h (find_template_name_end): Return const.
3171 Make argument const, too.
3172 (lexptr): Make const.
3173 (prev_lexptr): Likewise.
3174 * utils.c (parse_escape): Make second argument const.
3175 * utils.h (parse_escape): Likewise.
3176
31772013-10-01 Keith Seitz <keiths@redhat.com>
3178
3179 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3180 is now const.
3181 (block_lookup): Make 'raw_name' and 'name' const.
3182 * ada-lex.l (processString): Update for struct stoken.ptr.
3183 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3184 (operator_stoken): Likewise.
3185 (lex_one_token): Remove temporary cast to char * for
3186 'yylval.sval.ptr'.
3187 * f-exp.y (yylex): Likewise.
3188 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3189 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3190 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3191 'yylval.sval.ptr'.
3192 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3193 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3194 * linespec.c (struct ls_parser): Make 'stream' const.
3195 (find_parameter_list_end): Make argument 'input' and local
3196 variable 'p' const.
3197 (linespec_lexer_lex_string): Make local variables 'start' and
3198 'p' const.
3199 Use skip_spaces_const instead of skip_spaces.
3200 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3201 const.
3202 (parse_linespec): Temporarily cast 'argptr' to const for
3203 'parser->lexer.stream'.
3204 * m2-exp.y (yylex): Remove temporary cast to char * for
3205 'yylval.sval.ptr'.
3206 * objc-lang.c (add_msglist): Make local variable 'p' const.
3207 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3208 (exp : STRING): Make 'sp' const.
3209 (parse_number): Make argument 'p' const.
3210 * parser-defs.h (struct stoken): Make 'ptr' const.
3211
32122013-10-01 Doug Evans <dje@google.com>
3213
3214 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3215
32162013-10-01 Yao Qi <yao@codesourcery.com>
3217
3218 * varobj.c (c_value_of_root): Remove declaration.
3219 (cplus_value_of_root, java_value_of_root): Likewise.
3220 (ada_value_of_root): Likewise.
3221 (struct language_specific) <value_of_root>: Remove.
3222 (languages): Update initialization.
3223 (check_scope): Move earlier.
3224 (c_value_of_root): Move earlier and rename to ...
3225 (value_of_root_1): ... this.
3226 (value_of_root): Caller update.
3227 (cplus_value_of_root, java_value_of_root): Remove.
3228 (ada_value_of_root): Remove.
3229
32302013-10-01 Yao Qi <yao@codesourcery.com>
3231
3232 * varobj.c (varobj_format_string): Remove "unknown".
3233 (languages): Remove the first element.
3234 * varobj.h (enum varobj_languages): Remove vlang_c.
3235
32362013-10-01 Yao Qi <yao@codesourcery.com>
3237
3238 * varobj.c (struct language_specific) <language>: Remove.
3239 (languages): Update the initialization.
3240
32412013-10-01 Yao Qi <yao@codesourcery.com>
3242
3243 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3244 "solib-target.h". Include "windows-tdep.h".
3245 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3246 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3247 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3248 windows-tdep.o to gdb_target_obs.
3249
32502013-10-01 Yao Qi <yao@codesourcery.com>
3251
3252 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3253 "solib-target.h".
3254 (amd64_windows_init_abi): Don't call set_solib_ops and
3255 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3256 windows_init_abi instead.
3257 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3258 "solib-target.h".
3259 (i386_cygwin_init_abi): Don't call set_solib_ops,
3260 set_gdbarch_has_dos_based_file_system and
3261 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3262 windows_init_abi instead.
3263 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3264 (windows_init_abi): New function.
3265 (windows_iterate_over_objfiles_in_search_order): Make it
3266 static.
3267 * windows-tdep.h (windows_init_abi): Declare.
3268 (windows_iterate_over_objfiles_in_search_order): Remove
3269 declaration.
3270
32712013-10-01 Jerome Guitton <guitton@adacore.com>
3272
3273 Checked in by Joel Brobecker <brobecker@adacore.com>
3274 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3275 incomplete dictionnary instead of None in case of missing
3276 environment variables.
3277 (elinos_init): in case of an incomplete environment, best
3278 effort to load system libraries instead of abort.
3279
32802013-10-01 Joel Brobecker <brobecker@adacore.com>
3281
3282 * ada-lang.c (ada_has_this_exception_support): Ignore
3283 mst_solib_trampoline minimal symbols.
3284
32852013-09-30 Tristan Gingold <gingold@adacore.com>
3286
3287 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3288 hardware watchpoint.
3289 (i386_darwin_dr_set): Support 32 and 64 bit states.
3290 (i386_darwin_dr_get): Likewise.
3291 (i386_darwin_dr_set_control): Make static.
3292 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3293 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3294
32952013-09-30 Luis Machado <lgustavo@codesourcery.com>
3296
3297 * aarch64-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 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3301 Replace BUILD_THREAD with ptid_build.
3302 Replace BUILD_LWP with ptid_build.
3303 Replace PIDGET with ptid_get_pid.
3304 Replace TIDGET with ptid_get_lwp.
3305 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3306 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3307 Replace TIDGET with ptid_get_lwp.
3308 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3309 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3310 Replace TIDGET with ptid_get_lwp.
3311 Replace GET_LWP with ptid_get_lwp.
3312 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3313 * auxv.c: Likewise.
3314 * breakpoint.c: Likewise.
3315 * common/ptid.c (ptid_is_pid): Condense check for
3316 null_ptid and minus_one_ptid.
3317 (ptid_lwp_p): New function.
3318 (ptid_tid_p): New function.
3319 * common/ptid.h: Update comments for accessors.
3320 (ptid_lwp_p): New prototype.
3321 (ptid_tid_p): New prototype.
3322 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3323 * gcore.c: Replace PIDGET with ptid_get_pid.
3324 * gdbthread.h: Likewise.
3325 * gnu-nat.c: Likewise.
3326 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3327 Replace TIDGET with ptid_get_lwp.
3328 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3329 * hppanbsd-nat.c: Likewise.
3330 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3331 Replace TIDGET with ptid_get_lwp.
3332 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3333 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3334 * infcmd.c: Likewise.
3335 * inferior.h: Likewise.
3336 * inflow.c: Likewise.
3337 * infrun.c: Likewise.
3338 * linux-fork.c: Likewise.
3339 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3340 Replace GET_PID with ptid_get_pid.
3341 Replace is_lwp with ptid_lwp_p.
3342 Replace GET_LWP with ptid_get_lwp.
3343 Replace BUILD_LWP with ptid_build.
3344
33452013-09-28 Mike Frysinger <vapier@gentoo.org>
3346
3347 * common/linux-btrace.c: Move sys/syscall.h out of the
3348 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3349 Also check for SYS_perf_event_open before attempting to buid.
3350
33512013-09-27 Doug Evans <dje@google.com>
3352
3353 * dwarf2read.c (dwarf2_section_info): Add comment.
3354 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3355 All uses updated.
3356 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3357 (dwarf2_read_section): Delete unused local "header". Add section
3358 name to error message.
3359 (create_dwo_in_dwp): Tweak comment.
3360 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3361
3362 * dwarf2read.c (die_reader_specs): Tweak comment.
3363 (get_section_bfd_owner, get_section_bfd_section): New functions.
3364 (get_section_name, get_section_file_name): New functions.
3365 (get_section_id, get_section_flags): New functions.
3366 (*): Use new functions to access section fields.
3367
3368 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3369 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3370 arg "htab". All callers updated.
3371 (create_debug_types_hash_table): Remove redundant copy of
3372 abbrev_section.
3373 (create_dwo_in_dwp): Tweak comments.
3374 (read_str_index): Tweak comment. Record dwarf form name in static
3375 local.
3376
33772013-09-27 Pedro Alves <palves@redhat.com>
3378
3379 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3380 (remote_filename_p): Add comment.
3381 * remote.c (remote_filename_p): Adjust to use
3382 REMOTE_SYSROOT_PREFIX.
3383 * solib.c (solib_find): When deciding whether we need to add a
3384 directory separator, check whether the sysroot is "remote:"
3385 instead of checking whether the patch has a drive spec. Add
3386 comments.
3387
33882013-09-27 Pedro Alves <palves@redhat.com>
3389
3390 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3391 Delete fields.
3392 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3393 directly.
3394
33952013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 Fix set debug frame output.
3398 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3399 SENTINEL_FRAME entry lower to match enum frame_type order.
3400
34012013-09-26 Pierre Muller <muller@sourceware.org>
3402
3403 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3404 AMD64_R15_REGNUM when a register index is expected.
3405 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3406 Substitute in array.
3407 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3408 (amd64_push_arguments): Substitute in integer_regnum array.
3409
34102013-09-25 Doug Evans <dje@google.com>
3411
3412 * objfiles.c (allocate_objfile): Move comment to better place.
3413
3414 New option "set debug symfile on".
3415 * NEWS: Mention "set debug symfile".
3416 * Makefile.in (SFILES): Add symfile-debug.c.
3417 (COMMON_OBS): Add symfile-debug.o.
3418 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3419 objfile's symbol functions.
3420 * objfiles.h (objfile_set_sym_fns): Declare.
3421 * symfile-debug.c: New file.
3422 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3423 objfile's symbol functions.
3424 (reread_symbols): Ditto.
3425
3426 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3427 All uses updated.
3428 (add_symtab_fns): Update prototype.
3429 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3430 (registered_sym_fns): ... this.
3431 (symtab_fns): Update.
3432 (add_symtab_fns): New arg "flavour". All callers updated.
3433 (find_sym_fns): Rewrite to use new sym_fns registry.
3434
3435 * symfile.h (struct sym_fns): Add "objfile" argument to
3436 sym_read_linetable. All uses updated.
3437
3438 * symtab.c (domain_name, search_domain_name): New functions.
3439 * symtab.h (domain_name, search_domain_name): Declare.
3440
3441 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3442 map_matching_symbols so objfile is first. All uses updated.
3443 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3444 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3445
34462013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3447
3448 PR shlibs/8882
3449 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3450 link map entries.
3451
34522013-09-24 Doug Evans <dje@google.com>
3453
3454 * objfiles.c (free_objfile): Move comment.
3455
34562013-09-24 Joel Brobecker <brobecker@adacore.com>
3457
3458 * ada-exp.y (string_to_operator): Delete.
3459 (dummy_string_to_ada_operator): Delete.
3460
34612013-09-24 Joel Brobecker <brobecker@adacore.com>
3462
3463 Revert:
3464 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3465 amd64-tdep.c.
3466 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3467 call_dummy_integer_regs, and classify.
3468 * amd64-tdep.h (amd64_classify): Add declaration.
3469 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3470 (amd64_reg_class): Delete, moved to i386-tdep.h.
3471 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3472 Replace call to amd64_classify by call to tdep->classify.
3473 (amd64_push_arguments): Get the list of registers to use for
3474 passing integer parameters from the gdbarch tdep structure,
3475 rather than using a hardcoded one. Replace calls to amd64_classify
3476 by calls to tdep->classify.
3477 (amd64_push_dummy_call): Get the register number used for
3478 the "hidden" argument from tdep->call_dummy_integer_regs.
3479 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3480 and tdep->call_dummy_integer_regs. Set tdep->classify.
3481
34822013-09-24 Joel Brobecker <brobecker@adacore.com>
3483
3484 Revert:
3485 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3486 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3487 where tdep->memory_args_by_pointer is non-zero.
3488
34892013-09-24 Joel Brobecker <brobecker@adacore.com>
3490
3491 Revert:
3492 * i386-tdep.h (struct gdbarch_tdep): Add new field
3493 integer_param_regs_saved_in_caller_frame.
3494 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3495 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3496
34972013-09-24 Joel Brobecker <brobecker@adacore.com>
3498
3499 * amd64-windows-tdep.c: #include "value.h"
3500 (amd64_windows_classify): Delete.
3501 (amd64_windows_passed_by_integer_register)
3502 (amd64_windows_passed_by_xmm_register)
3503 (amd64_windows_passed_by_pointer)
3504 (amd64_windows_adjust_args_passed_by_pointer)
3505 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3506 (amd64_windows_push_dummy_call): New functions.
3507 (amd64_windows_init_abi): Remove setting of
3508 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3509 tdep->classify, tdep->memory_args_by_pointer and
3510 tdep->integer_param_regs_saved_in_caller_frame.
3511 Add call to set_gdbarch_push_dummy_call.
3512
35132013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3516 objfile->original_name.
3517
35182013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 Pass down original filename for objfile.
3521 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3522 * elfread.c (elf_symfile_read): Likewise.
3523 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3524 longer set ORIGINAL_NAME.
3525 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3526 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3527 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3528 symbol_file_add_from_bfd call.
3529 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3530 (macho_check_dsym): Add parameter filenamep. Change function comment.
3531 Set *filenamep.
3532 (macho_symfile_read): New variable dsym_filename. Update
3533 macho_check_dsym call. Use it for symbol_file_add_separate.
3534 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3535 it. Use it for objfile->original_name.
3536 (objfile_name): Return OBFD's filename, if available.
3537 * objfiles.h (allocate_objfile): Add new parameter name.
3538 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3539 * symfile-mem.c (symbol_file_add_from_memory): Update
3540 symbol_file_add_from_bfd call.
3541 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3542 comment for it.
3543 (symbol_file_add_with_addrs): New parameter name, add function comment
3544 for it. Remove variable name. Update allocate_objfile call.
3545 (symbol_file_add_separate): New parameter name, add function comment
3546 for it. Update symbol_file_add_with_addrs call.
3547 (symbol_file_add_from_bfd): New parameter name. Update
3548 symbol_file_add_with_addrs call.
3549 (symbol_file_add): Update symbol_file_add_from_bfd call.
3550 (reread_symbols): New variable original_name. Save
3551 objfile->original_name by it.
3552 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3553 second parameter.
3554
35552013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 Code cleanup: Add objfile_name accessor function.
3558 * ada-lang.c (is_known_support_routine): Use objfile_name.
3559 * auto-load.c (source_gdb_script_for_objfile)
3560 (auto_load_objfile_script): Likewise.
3561 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3562 * dbxread.c (dbx_symfile_read): Likewise.
3563 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3564 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3565 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3566 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3567 (lookup_dwp_signatured_type, lookup_dwo_unit)
3568 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3569 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3570 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3571 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3572 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3573 (read_subrange_type, load_partial_dies, read_partial_die)
3574 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3575 (die_containing_type, build_error_marker_type, lookup_die_type)
3576 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3577 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3578 (get_DW_AT_signature_type, write_psymtabs_to_index)
3579 (save_gdb_index_command): Likewise.
3580 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3581 Likewise.
3582 * expprint.c (dump_subexp_body_standard): Likewise.
3583 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3584 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3585 original_name.
3586 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3587 obj_name, use objfile_name for it, use the variable.
3588 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3589 Use objfile_name.
3590 * machoread.c (macho_symtab_read, macho_check_dsym)
3591 (macho_symfile_relocate): Likewise.
3592 * maint.c (maintenance_translate_address): Likewise.
3593 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3594 * minsyms.c (install_minimal_symbols): Likewise.
3595 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3596 original_name.
3597 (filter_overlapping_sections): Use objfile_name.
3598 (objfile_name): New function.
3599 * objfiles.h (struct objfile): Rename field name to original_name.
3600 (objfile_name): New prototype.
3601 * printcmd.c (sym_info, address_info): Use objfile_name.
3602 * probe.c (parse_probes, collect_probes, compare_probes)
3603 (info_probes_for_ops): Likewise.
3604 * progspace.c (clone_program_space): Likewise.
3605 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3606 (maintenance_info_psymtabs): Likewise.
3607 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3608 (source_section_scripts): Likewise.
3609 * python/py-objfile.c (objfpy_get_filename): Likewise.
3610 * python/py-progspace.c (pspy_get_filename): Likewise.
3611 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3612 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3613 * solib.c (solib_read_symbols): Likewise.
3614 * stabsread.c (scan_file_globals): Likewise.
3615 * stap-probe.c (handle_stap_probe): Likewise.
3616 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3617 (find_separate_debug_file_by_debuglink): Likewise.
3618 (reread_symbols): Likewise. Use the objfile field name renamed to
3619 original_name.
3620 (allocate_symtab): Use objfile_name.
3621 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3622 (dump_objfile, dump_msymbols, dump_symtab_1)
3623 (maintenance_print_msymbols, maintenance_print_objfiles)
3624 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3625 * target.c (target_translate_tls_address, target_info): Likewise.
3626 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3627 objfile_name.
3628
36292013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3630
3631 Code cleanup.
3632 * probe.c (parse_probes): Rename variable objfile_name to
3633 objfile_namestr.
3634
36352013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3636
3637 Remove solib-sunos.c.
3638 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3639 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3640 * objfiles.c (rt_common_objfile): Remove.
3641 (free_objfile): Remove rt_common_objfile comparison.
3642 * objfiles.h (rt_common_objfile): Remove.
3643 * solib-sunos.c: Remove.
3644 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3645
36462013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 Remove a.out NetBSD and OpenBSD hosts.
3649 * NEWS (Removed native configurations): New.
3650 * config/arm/nbsdaout.mh: Remove.
3651 * config/i386/nbsdaout.mh: Remove.
3652 * config/i386/obsdaout.mh: Remove.
3653 * config/m68k/nbsdaout.mh: Remove.
3654 * config/sparc/nbsdaout.mh: Remove.
3655 * config/vax/nbsdaout.mh: Remove.
3656 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3657 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3658 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3659 error.
3660 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3661 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3662 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3663
36642013-09-23 Tom Tromey <tromey@redhat.com>
3665
3666 * linespec.c (struct minsym_and_objfile): Remove.
3667 (minsym_and_objfile_d): Remove.
3668 (struct linespec, struct collect_info, linespec_parse_basic)
3669 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3670 (compare_msymbols, find_method, find_function_symbols)
3671 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3672 (add_minsym, search_minsyms_for_name): Update.
3673
36742013-09-23 Andrew Burgess <aburgess@broadcom.com>
3675
3676 * regcache.c: Add include of valprint.h.
3677 (dump_endian_bytes): Delete.
3678 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3679
36802013-09-23 Andrew Burgess <aburgess@broadcom.com>
3681
3682 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3683
36842013-09-19 Pedro Alves <palves@redhat.com>
3685
3686 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3687 breakpoints.
3688
36892013-09-19 Pedro Alves <palves@redhat.com>
3690 Thomas Schwinge <thomas@codesourcery.com>
3691 Yue Lu <hacklu.newborn@gmail.com>
3692
3693 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3694 Take a gdb_byte pointer instead of a char pointer.
3695
3696 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3697 gnu_xfer_partial helper.
3698 (gnu_xfer_partial): New function.
3699 (gnu_target): Don't install a deprecated_xfer_memory hook.
3700 Install a to_xfer_partial hook.
3701
37022013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 Constification.
3705 * main.c (captured_main): Replace catch_command_errors by
3706 catch_command_errors_const. Twice.
3707 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3708 (symbol_file_add): Make name parameter const.
3709 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3710 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3711 variable name. Change their usage accordingly.
3712 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3713 const.
3714 (symbol_file_add_main): Make args parameter const.
3715
37162013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3717 Ulrich Weigand <uweigand@de.ibm.com>
3718
3719 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3720 of c_value member.
3721 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3722
37232013-09-18 Pedro Alves <palves@redhat.com>
3724 Yue Lu <hacklu.newborn@gmail.com>
3725
3726 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3727 (gnu_create_inferior)
3728 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3729 (set_sig_thread_cmd): Use the lwpid field of ptids to
3730 store/extract thread ids instead of the tid field.
3731 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3732
37332013-09-18 Andrew Burgess <aburgess@broadcom.com>
3734
3735 * infcmd.c (default_print_one_register_info): Add detection of
3736 optimized out values.
3737 (default_print_registers_info): Switch to using
3738 get_frame_register_value.
3739
37402013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3741
3742 * infrun.c (handle_inferior_event): Check if we know the
3743 function start address before setting a resume breakpoint.
3744
37452013-09-18 Pedro Alves <palves@redhat.com>
3746
3747 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3748 minus_one_ptid instead of looking at the ptid's tid field and
3749 comparing that to -1.
3750
37512013-09-18 Andrew Burgess <aburgess@broadcom.com>
3752
3753 * main.h (get_gdb_program_name): Remove extra whitespace.
3754
37552013-09-18 Andrew Burgess <aburgess@broadcom.com>
3756
3757 * main.h (get_gdb_program_name): Add declaration.
3758 * main.c (get_gdb_program_name): Add definition.
3759
37602013-09-17 Doug Evans <dje@google.com>
3761
3762 * dwarf2read.c: Move definitions of complaint functions to after
3763 forward declarations of local functions.
3764
37652013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3766 Pedro Alves <palves@redhat.com>
3767
3768 PR gdb/11568
3769 * breakpoint.c (remove_threaded_breakpoints): New function.
3770 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3771 as thread_exit observer.
3772
37732013-09-17 Pedro Alves <palves@redhat.com>
3774
3775 PR gdb/15911
3776 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3777 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3778 * corelow.c (core_open):
3779 * frame.h (print_stack_frame, print_frame_info): New
3780 'set_current_sal' parameter.
3781 * infcmd.c (finish_command, kill_command): Adjust call to
3782 print_stack_frame.
3783 * inferior.c (inferior_command): Likewise.
3784 * infrun.c (normal_stop): Likewise.
3785 * linux-fork.c (linux_fork_context): Likewise.
3786 * record-full.c (record_full_goto_entry, record_full_restore):
3787 Likewise.
3788 * remote-mips.c (common_open): Likewise.
3789 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3790 Use it.
3791 (print_frame_info): New 'set_current_sal' parameter. Set the last
3792 displayed sal depending on the new paremeter instead of looking at
3793 print_what.
3794 (backtrace_command_1, select_and_print_frame, frame_command)
3795 (current_frame_command, up_command, down_command): Adjust call to
3796 print_stack_frame.
3797 * thread.c (print_thread_info, restore_selected_frame)
3798 (do_captured_thread_select): Adjust call to print_stack_frame.
3799 * tracepoint.c (tfind_1): Likewise.
3800 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3801 (mi_cmd_stack_info_frame): Likewise.
3802 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3803 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3804
38052013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3806
3807 * value.c (isvoid_internal_fn): Replace "parameter" with
3808 "argument".
3809
38102013-09-16 Stan Shebs <stan@codesourcery.com>
3811
3812 * README: Update references to writing code for GDB.
3813 * configure.ac (build_warnings): Remove obsolete comment.
3814 * configure: Regenerate.
3815 * gdbarch.sh: Remove references to gdbint.texinfo.
3816 * gdbarch.h: Regenerate.
3817 * gdbtypes.c (objfile_type): Remove comments referencing internals
3818 manual and D10V.
3819
38202013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3821
3822 * NEWS: Mention new convenience function $_isvoid.
3823 * value.c (isvoid_internal_fn): New function.
3824 (_initialize_values): Add new convenience function $_isvoid.
3825
38262013-09-16 Pierre Muller <muller@sourceware.org>
3827
3828 * arm-linux-tdep.c: Add "elf/common.h" header.
3829 Remove AT_HWCAP macro definintion as it is provided in
3830 added include file.
3831 * s390-tdep.c: Remove system header <elf.h>
3832 Add "elf/common.h" header for AT_HWCAP definition.
3833 (s390_core_read_description): Use correct CORE_ADDR
3834 for hwcap local variable used as third parameter
3835 of function target_auxv_search.
3836
38372013-09-14 Pierre Muller <muller@sourceware.org>
3838 Tom Tromey <tromey@redhat.com>
3839 Pedro Alves <palves@redhat.com>
3840
3841 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3842 mode if operating system doesn't know O_CLOEXEC.
3843
38442013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3845
3846 Code cleanup.
3847 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3848 inner block.
3849
38502013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3851
3852 * NEWS: Mention TDB support.
3853 * features/s390-tdb.xml: New file.
3854 * features/s390-te-linux64.xml: New file.
3855 * features/s390x-te-linux64.xml: New file.
3856 * features/Makefile (WHICH): Add new tdescs above.
3857 (s390-te-linux64-expedite): Set.
3858 (s390x-te-linux64-expedite): Set.
3859 * features/s390-te-linux64.c: New file (generated).
3860 * features/s390x-te-linux64.c: New file (generated).
3861 * regformats/s390-te-linux64.dat: New file (generated).
3862 * regformats/s390x-te-linux64.dat: New file (generated).
3863 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3864 (HWCAP_S390_TE): Likewise.
3865 (S390_TDB_DWORD0_REGNUM): Likewise.
3866 (S390_TDB_DWORD0_REGNUM): Likewise.
3867 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3868 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3869 (S390_TDB_ATIA_REGNUM): Likewise.
3870 (S390_TDB_R0_REGNUM): Likewise.
3871 (S390_TDB_R1_REGNUM): Likewise.
3872 (S390_TDB_R2_REGNUM): Likewise.
3873 (S390_TDB_R3_REGNUM): Likewise.
3874 (S390_TDB_R4_REGNUM): Likewise.
3875 (S390_TDB_R5_REGNUM): Likewise.
3876 (S390_TDB_R6_REGNUM): Likewise.
3877 (S390_TDB_R7_REGNUM): Likewise.
3878 (S390_TDB_R8_REGNUM): Likewise.
3879 (S390_TDB_R9_REGNUM): Likewise.
3880 (S390_TDB_R10_REGNUM): Likewise.
3881 (S390_TDB_R11_REGNUM): Likewise.
3882 (S390_TDB_R12_REGNUM): Likewise.
3883 (S390_TDB_R13_REGNUM): Likewise.
3884 (S390_TDB_R14_REGNUM): Likewise.
3885 (S390_TDB_R15_REGNUM): Likewise.
3886 (S390_NUM_REGS): Increase.
3887 (S390_IS_TDBREGSET_REGNUM): New macro.
3888 (s390_regmap_tdb): Declare.
3889 (s390_sizeof_tdbregset): Define.
3890 (tdesc_s390_te_linux64): Declare.
3891 (tdesc_s390x_te_linux64): Likewise.
3892 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3893 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3894 (s390_regmap_tdb): New regmap.
3895 (s390_supply_tdb_regset): New function.
3896 (s390_tdb_regset): New regset.
3897 (s390_linux64v2_regset_sections): Add TDB regset to list.
3898 (s390x_linux64v2_regset_sections): Likewise.
3899 (s390_regset_from_core_section): Recognize TDB core note section.
3900 (s390_core_read_description): If HWCAP indicates TE support,
3901 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3902 (s390_gdbarch_init): Handle TDB regset.
3903 (_initialize_s390_tdep): Initialize new tdescs.
3904 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3905 (have_regset_tdb): New variable.
3906 (s390_native_supply): Support register invalidation.
3907 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3908 (check_regset): Treat ENODATA as "regset exists".
3909 (s390_linux_fetch_inferior_registers): Add TDB.
3910 (s390_read_description): Check for TDB existence and select
3911 appropriate tdesc.
3912 * gdbserver/Makefile.in (clean): Add removal of new makefile
3913 targets.
3914 (s390-te-linux64.c): New makefile target.
3915 (s390x-te-linux64.c): Likewise.
3916 * gdbserver/configure.srv (srv_regobj): Append new objects
3917 s390-te-linux64.o and s390x-te-linux64.o.
3918 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3919 s390x-te-linux64.xml, and s390-tdb.xml.
3920 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3921 declaration.
3922 (tdesc_s390_te_linux64): Likewise.
3923 (init_registers_s390x_te_linux64): Likewise.
3924 (tdesc_s390x_te_linux64): Likewise.
3925 (s390_check_regset): Treat ENODATA as "regset exists".
3926 (s390_arch_setup): Add TDB regset support.
3927 (initialize_low_arch): Initialize registers for new tdescs.
3928
39292013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3930
3931 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3932 (S390_IS_FPREGSET_REGNUM): New macro.
3933 * s390-tdep.c (s390_dwarf_regmap): Make const.
3934 (regnum_is_gpr_full): New function for replacing repeated code.
3935 (s390_pseudo_register_name): Use it.
3936 (s390_pseudo_register_type): Likewise.
3937 (s390_pseudo_register_read): Likewise.
3938 (s390_pseudo_register_write): Likewise.
3939 (s390_unwind_pseudo_register): Likewise.
3940 (s390_regmap_gregset): New format for regmap.
3941 (s390x_regmap_gregset): Likewise.
3942 (s390_regmap_fpregset): Likewise.
3943 (s390_regmap_upper): Likewise.
3944 (s390_regmap_last_break): Likewise.
3945 (s390_regmap_system_call): Likewise.
3946 (s390_supply_regset): Adjust to new regmap format.
3947 (s390_collect_regset): Likewise.
3948 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3949 (s390_native_collect): Likewise.
3950 (supply_gregset): Likewise.
3951 (fill_gregset): Likewise.
3952 (supply_fpregset): Likewise.
3953 (fill_fpregset): Likewise.
3954 (fetch_regset): Likewise.
3955 (store_regset): Likewise.
3956 (s390_linux_fetch_inferior_registers): Likewise.
3957 (s390_linux_fetch_inferior_registers): Likewise.
3958
39592013-09-12 Andrew Pinski <apinski@cavium.com>
3960
3961 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3962
39632013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3964
3965 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3966
39672013-09-09 Andrew Burgess <aburgess@broadcom.com>
3968
3969 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3970
39712013-09-06 Pedro Alves <palves@redhat.com>
3972
3973 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3974 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3975 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3976 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3977 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3978 gdb_stdlog.
3979
39802013-09-06 Pedro Alves <palves@redhat.com>
3981
3982 * remote-sim.c (dump_mem): Constify buf parameter.
3983 gdbsim_xfer_inferior_memory): Rename to ...
3984 (gdbsim_xfer_memory): ... this. Adjust interface as
3985 target_xfer_partial helper.
3986 (gdbsim_xfer_partial): New function.
3987 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3988 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3989
39902013-09-06 Pedro Alves <palves@redhat.com>
3991
3992 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3993 host_address_to_string, and send debug output to gdb_stdlog.
3994
39952013-09-06 Ricard Wanderlof <ricardw@axis.com>
3996
3997 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3998 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3999 gdb_target_obs for cris target.
4000 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
4001 (cris_gdbarch_init): Move calls to
4002 set_gdbarch_fetch_tls_load_module_address and
4003 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
4004 Add call to gdbarch_init_osabi.
4005 * cris-linux-tdep.c: New file.
4006 * cris-tdep.h: New file.
4007
40082013-09-06 Andrew Burgess <aburgess@broadcom.com>
4009
4010 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
4011 to deprecated_init_ui_hook.
4012
40132013-09-06 Andrew Burgess <aburgess@broadcom.com>
4014
4015 * cli/cli-interp.c (_initialize_cli_interp): Add a
4016 command_loop_proc to interp_procs.
4017 * event-top.c (cli_command_loop): Change signature to match
4018 interp_command_loop_ftype.
4019 * event-top.h (cli_command_loop): Same.
4020 * interps.c (interp_new): Require every interpreter to have a
4021 command_loop_proc.
4022 (current_interp_command_loop): Just call the command_loop_proc on
4023 the current interpreter.
4024 * tui/tui-interp.c (_initialize_tui_interp): Add a
4025 command_loop_proc to interp_procs.
4026
40272013-09-06 Ricard Wanderlof <ricardw@axis.com>
4028
4029 * cris-tdep.c (cris_gdbarch_init): Add call to
4030 get_gdbarch_fetch_tls_load_module_address.
4031
40322013-09-06 Ricard Wanderlof <ricardw@axis.com>
4033
4034 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
4035 (cris_elf_gregset_t): Rename from elf_gregset_t.
4036 (crisv32_elf_gregset_t): Adjust.
4037 (cris_supply_gregset, fetch_core_registers): Adjust.
4038
40392013-09-06 Ricard Wanderlof <ricardw@axis.com>
4040
4041 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
4042
40432013-09-05 Andrew Burgess <aburgess@broadcom.com>
4044
4045 * defs.h (deprecated_command_loop_hook): Remove, including
4046 references in comments.
4047 * interps.c (current_interp_command_loop): No longer use
4048 deprecated_command_loop_hook.
4049 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
4050 setup.
4051 * top.c (deprecated_command_loop_hook): Remove.
4052
40532013-09-05 Pedro Alves <palves@redhat.com>
4054
4055 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
4056 local is now int instead of ULONGEST. Print it with %d
4057 instead of paddress.
4058
40592013-09-05 Tristan Gingold <gingold@adacore.com>
4060
4061 * MAINTAINERS: Remove avr maintainership.
4062
40632013-09-05 Pedro Alves <palves@redhat.com>
4064
4065 * findvar.c (value_of_register): Rework in terms of
4066 value_of_register_lazy.
4067
40682013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4069
4070 * symfile.c (add_symbol_file_command): Remove trailing
4071 whitespaces and blank line after comment.
4072
40732013-09-05 Pedro Alves <palves@redhat.com>
4074
4075 * tui/tui-regs.c (tui_register_format): Don't look at the
4076 register's name here. Return string representing register
4077 value instead of storing it in the data element.
4078 (tui_get_register): Compare register string representations
4079 instead of register value states and contents.
4080
40812013-09-05 Pedro Alves <palves@redhat.com>
4082
4083 PR tui/15933
4084 * tui/tui-regs.c (tui_show_registers): Show registers of the
4085 selected frame, not the current frame.
4086
40872013-09-05 Ricard Wanderlof <ricardw@axis.com>
4088
4089 * MAINTAINERS (Write After Approval): Add myself to the list.
4090
40912013-09-04 Doug Evans <dje@google.com>
4092
4093 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4094 (queue_and_load_dwo_tu): New function.
4095 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4096 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4097 Make dependent_cu optional.
4098 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4099 and an older .gdb_index is in use, queue and load all its TUs too.
4100
41012013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4102
4103 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4104 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4105 variable search_flags.
4106 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4107 (OPF_RETURN_REALPATH): ... here.
4108 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4109 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4110 call. Twice.
4111 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4112 openp call.
4113 * solib.c (solib_find): Likewise. Four times.
4114 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4115 in the function comment and for the realpath_fptr variable.
4116 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4117 (find_and_open_source): Likewise. Twice.
4118 * symfile.c (symfile_bfd_open): Likewise, also twice.
4119
41202013-09-04 Doug Evans <dje@google.com>
4121
4122 * progspace.c (save_current_space_and_thread): Remove unnecessary
4123 call to save_current_inferior.
4124
41252013-09-04 Andrew Burgess <aburgess@broadcom.com>
4126
4127 * sh64-tdep.c (sh64_do_register): Return after printing message
4128 about unavailable register contents.
4129
41302013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4131 Pedro Alves <palves@redhat.com>
4132
4133 * symfile.c (add_symbol_file_command): Error out on unknown
4134 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4135 options and collapse into single conditional branch.
4136
41372013-09-03 Luis Machado <lgustavo@codesourcery.com>
4138
4139 * inf-child.c (inf_child_follow_fork): New parameter
4140 detach_fork.
4141 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4142 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4143 * inferior.h (detach_fork): Remove.
4144 * infrun.c (detach_fork): Adjust comment and make it
4145 static.
4146 (follow_fork): Pass detach_fork parameter to
4147 target_follow_fork.
4148 * linux-nat.c (linux_child_follow_fork): New parameter
4149 detach_fork.
4150 * target.c (target_follow_fork): New parameter detach_fork.
4151 Pass detach_fork as parameter and print its value.
4152 * target.h (struct target_ops) <to_follow_fork>: New int
4153 parameter.
4154 (target_follow_fork): New parameter detach_fork.
4155
41562013-09-03 Joel Brobecker <brobecker@adacore.com>
4157
4158 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4159 Replace sec->bfd by sec->the_bfd_section->owner.
4160
41612013-09-03 Yao Qi <yao@codesourcery.com>
4162
4163 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4164 from linux_has_shared_address_space.
4165 (linux_has_shared_address_space): Call linux_is_uclinux.
4166 * linux-tdep.h (linux_is_uclinux): Declare.
4167 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4168 linux_is_uclinux.
4169
41702013-09-03 Yao Qi <yao@codesourcery.com>
4171
4172 * config/djgpp/fnchange.lst: Remove entry of
4173 i386-interix-nat.c and i386-interix-tdep.c.
4174 * configure.ac: Remove '*-*-interix*'.
4175 * configure: Re-generated.
4176 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4177 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4178 obsolete comments.
4179 * osabi.c (gdb_osabi_names): Remove "Interix".
4180
41812013-09-03 Yao Qi <yao@codesourcery.com>
4182
4183 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4184
41852013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4186
4187 * record.h (record_print_flag) <record_print_src_line,
4188 record_print_insn_range>: Rename into ...
4189 (record_print_flag) <record_print_src_line,
4190 record_print_insn_range>: ... this. Update all users.
4191
41922013-09-02 Pierre Muller <muller@sourceware.org>
4193
4194 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4195 error code.
4196
41972013-09-02 Pierre Muller <muller@sourceware.org>
4198
4199 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4200 by use of plongest function.
4201
42022013-09-02 Tristan Gingold <gingold@adacore.com>
4203
4204 * NEWS: Add entry mentioning support for native Windows x64
4205 SEH data.
4206
4207 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4208 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4209 (struct amd64_windows_frame_cache): New struct.
4210 (amd64_windows_w2gdb_regnum): New global.
4211 (pc_in_range, amd64_windows_frame_decode_epilogue)
4212 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4213 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4214 (amd64_windows_frame_this_id): New functions.
4215 (amd64_windows_frame_unwind): New static global.
4216 (amd64_windows_skip_prologue): New function.
4217 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4218 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4219 with amd64_windows_skip_prologue.
4220
42212013-08-30 Joel Brobecker <brobecker@adacore.com>
4222
4223 GDB 7.6.1 released.
4224
42252013-08-30 Pedro Alves <palves@redhat.com>
4226
4227 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4228 SRC_AND_LOC.
4229
42302013-08-30 Pedro Alves <palves@redhat.com>
4231
4232 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4233 warning text.
4234
42352013-08-30 Pedro Alves <palves@redhat.com>
4236
4237 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4238 Adjust arguments to print_stack_frame.
4239
42402013-08-30 Pedro Alves <palves@redhat.com>
4241
4242 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4243
42442013-08-30 Pedro Alves <palves@redhat.com>
4245
4246 * frame.h (show_and_print_stack_frame): Delete declaration.
4247
42482013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4249
4250 PR python/15461
4251 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4252 (archpy_name): Check for valid architecture.
4253 (archpy_disassemble): Ditto.
4254
42552013-08-29 Joel Brobecker <brobecker@adacore.com>
4256
4257 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4258 instead of "long long" in call to ptrace64.
4259
42602013-08-29 Andrew Burgess <aburgess@broadcom.com>
4261
4262 * mi/mi-interp.c (mi_command_loop): Change signature to match
4263 interp_command_loop_ftype.
4264 (mi1_command_loop): Remove.
4265 (mi2_command_loop): Remove.
4266 (mi3_command_loop): Remove.
4267 (mi_interpreter_resume): Remove setting of
4268 deprecated_command_loop_hook.
4269 (_initialize_mi_interp): Set mi_command_loop as the command loop
4270 callback.
4271
42722013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4273
4274 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4275 value_type.
4276
42772013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4278
4279 * value.c (allocate_value_contents): Make static.
4280 * value.h (allocate_value_contents): Remove prototype.
4281
42822013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4283
4284 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4285 of assembling value via allocate_value_lazy and attribute setter.
4286 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4287 assembling value via allocate_value_lazy and attribute setter.
4288 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4289 assembling value via allocate_value_lazy and attribute setter.
4290
42912013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4292
4293 * value.c (value_from_contents_and_address): Replace allocate_value and
4294 memcpy with value_from_contents.
4295
42962013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4297
4298 * python/py-framefilter.c (py_print_frame): Remove usage of
4299 PyString_AsString. Use python_string_to_host_string instead.
4300 Refactor function to work with a string as a new allocation
4301 instead of a pointer.
4302 (py_print_frame): Ditto.
4303 * python/lib/gdb/frames.py (return_list): Cain iterators together
4304 instead of adding them as a list.
4305 (_sort_list): Call return_list, and remove duplicate code.
4306 (execute_frame_filters): Convert iterator to a list with list().
4307 * python/lib/gdb/command/frame_filters.py
4308 (SetFrameFilterPriority._set_filter_priority): Convert priority
4309 attribute to an integer.
4310 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4311 wrapper function __next__.
4312 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4313 define as "str".
4314
43152013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4316
4317 PR python/15752
4318 * python/py-framefilter.c (apply_frame_filter): Check
4319 gdb_python_initialized. Exit if the Python frame-filter code
4320 cannot be initialized.
4321
43222013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4323
4324 PR cli/15842
4325 * top.c (print_gdb_version): Remove erroneous newline after help
4326 text.
4327
43282013-08-29 Yao Qi <yao@codesourcery.com>
4329
4330 * varobj.c (install_dynamic_child): Remove trailing space.
4331 Add one blank line after variable declaration.
4332
43332013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4334
4335 PR gdb/15415
4336 * corefile.c (get_exec_file): Use exec_filename.
4337 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4338 * exec.c (exec_close): Free EXEC_FILENAME.
4339 (exec_file_attach): New variable canonical_pathname. Use
4340 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4341 EXEC_FILENAME.
4342 * exec.h (exec_filename): New.
4343 * inferior.c (print_inferior, inferior_command): Use
4344 PSPACE_EXEC_FILENAME.
4345 * mi/mi-main.c (print_one_inferior): Likewise.
4346 * progspace.c (clone_program_space, print_program_space): Likewise.
4347 * progspace.h (struct program_space): New field pspace_exec_filename.
4348 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4349 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4350
43512013-08-28 Will Newton <will.newton@linaro.org>
4352
4353 * common/linux-ptrace.c: Include stdint.h unconditionally.
4354
43552013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 Code cleanup.
4358 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4359
43602013-08-28 Yao Qi <yao@codesourcery.com>
4361 Pedro Alves <palves@redhat.com>
4362
4363 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4364 instead of stdio_fileopen.
4365 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4366 .Call stderr_fileopen instead of stdio_fileopen.
4367 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4368 [__MINGW32__] (stderr_file_fputs): New function.
4369 (stderr_fileopen): New function.
4370 * ui-file.h (stderr_fileopen): Declare.
4371
43722013-08-27 Doug Evans <dje@google.com>
4373
4374 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4375 (struct dwarf2_per_cu_data): Ditto.
4376 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4377 (process_imported_unit_die): Ditto.
4378 (follow_die_sig_1): Simplify assert.
4379
43802013-08-27 Pedro Alves <palves@redhat.com>
4381
4382 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4383 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4384 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4385 windows_xfer_memory directly.
4386 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4387
43882013-08-27 Pedro Alves <palves@redhat.com>
4389
4390 * darwin-nat.c (darwin_xfer_memory): Delete.
4391 (_initialize_darwin_inferior): Don't install a
4392 deprecated_xfer_memory method.
4393
43942013-08-27 Pedro Alves <pedro@codesourcery.com>
4395 Yao Qi <yao@codesourcery.com>
4396
4397 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4398 (parse_no_frames_option): Remove.
4399 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4400 (mi_cmd_stack_list_args): Adjust.
4401 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4402 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4403 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4404 Caller update.
4405 (list_args_or_locals): New parameter 'skip_unavailable'.
4406 Handle it.
4407 * valprint.c (scalar_type_p): Rename to ...
4408 (val_print_scalar_type_p): ... this. Make extern.
4409 (val_print, value_check_printable): Adjust.
4410 * valprint.h (val_print_scalar_type_p): Declare.
4411 * value.c (value_entirely_unavailable): New function.
4412 * value.h (value_entirely_unavailable): Declare.
4413
4414 * NEWS: Mention the new option "--skip-unavailable" to MI
4415 commands '-stack-list-locals', '-stack-list-arguments' and
4416 '-stack-list-variables'.
4417
44182013-08-27 Yao Qi <yao@codesourcery.com>
4419
4420 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4421 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4422 options.
4423 * mi/mi-getopt.c (mi_getopt): Remove.
4424 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4425 'error_on_unknown'.
4426 (mi_getopt): Call mi_getopt_1.
4427 (mi_getopt_silent): New.
4428 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4429
44302013-08-26 Doug Evans <dje@google.com>
4431
4432 PR symtab/15885
4433 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4434 .gdb_index is in use.
4435 * symfile.c (reread_symbols): Reset objfile->sf.
4436
4437 * NEWS: Document "mt print objfiles" now takes optional regexp.
4438 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4439 regexp of objfiles to print.
4440 (_initialize_symmisc): Update doc string for "mt print objfiles".
4441
4442 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4443 missing debug info checks.
4444
44452013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4446 Ulrich Weigand <uweigand@de.ibm.com>
4447
4448 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4449 line tables generated by XLC compiled binaries.
4450
44512013-08-23 Doug Evans <dje@google.com>
4452
4453 * symmisc.c (dump_symtab): Delete prototype.
4454 (dump_msymbols, dump_objfile): Ditto.
4455 (maintenance_info_symtabs): Mark as dont_repeat.
4456 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4457
4458 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4459 debugging printf to better location.
4460
44612013-08-23 Pedro Alves <palves@redhat.com>
4462
4463 * target.c (target_read_live_memory): Change type of 'ret' local
4464 to LONGEST.
4465
44662013-08-23 Pedro Alves <palves@redhat.com>
4467
4468 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4469 (remote_read_bytes): Change return type to LONGEST, and adjust to
4470 return a target_xfer_error on error.
4471 (remote_xfer_memory): Delete.
4472 (remote_flash_write): Change type of 'ret' local to LONGEST.
4473 (remote_xfer_partial, remote_xfer_partial): Adjust.
4474 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4475
44762013-08-23 Pierre Muller <muller@sourceware.org>
4477
4478 ARI fix: Push # directives to start of line.
4479 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4480
44812013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4482
4483 PR gdb/15501
4484 * breakpoint.c (enable_command, disable_command): Iterate over
4485 all specified breakpoint locations.
4486
44872013-08-22 Luis Machado <lgustavo@codesourcery.com>
4488
4489 * common/linux-ptrace.c (linux_fork_to_function): Push #
4490 directives to the start of the line.
4491 (linux_check_ptrace_features): Fix warning message to use
4492 the "_" markup.
4493
44942013-08-22 Luis Machado <lgustavo@codesourcery.com>
4495
4496 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4497 nat/linux-waitpid.h.
4498 (linux-waitpid.o): New object file rule.
4499 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4500 (current_ptrace_options): Moved from linux-nat.c.
4501 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4502 parameters.
4503 (linux_fork_to_function): New function.
4504 (linux_grandchild_function): Likewise.
4505 (linux_child_function): Likewise.
4506 (linux_check_ptrace_features): New function, heavily
4507 based on linux-nat.c:linux_test_for_tracefork.
4508 (linux_enable_event_reporting): New function.
4509 (ptrace_supports_feature): Likewise.
4510 (linux_supports_tracefork): Likewise.
4511 (linux_supports_traceclone): Likewise.
4512 (linux_supports_tracevforkdone): Likewise.
4513 (linux_supports_tracesysgood): Likewise.
4514 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4515 gdbserver/linux-low.c.
4516 (linux_enable_event_reporting): New declaration.
4517 (linux_supports_tracefork): Likewise.
4518 (linux_supports_traceclone): Likewise.
4519 (linux_supports_tracevforkdone): Likewise.
4520 (linux_supports_tracesysgood): Likewise.
4521 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4522 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4523 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4524 * config/arm/linux.mh (NATDEPFILES): Likewise.
4525 * config/i386/linux.mh (NATDEPFILES): Likewise.
4526 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4527 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4528 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4529 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4530 * config/mips/linux.mh (NATDEPFILES): Likewise.
4531 * config/pa/linux.mh (NATDEPFILES): Likewise..
4532 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4533 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4534 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4535 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4536 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4537 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4538 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4539 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4540 ptrace's 4th argument's types.
4541 Check the type of PTRACE_TYPE_ARG4.
4542 * configure: Regenerate.
4543 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4544 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4545 (linux_supports_tracefork_flag): Remove.
4546 (linux_supports_tracesysgood_flag): Likewise.
4547 (linux_supports_tracevforkdone_flag): Likewise.
4548 (current_ptrace_options): Moved to
4549 common/linux-ptrace.c.
4550 (linux_tracefork_child): Remove.
4551 (my_waitpid): Remove.
4552 (linux_test_for_tracefork): Renamed to
4553 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4554 (linux_test_for_tracesysgood): Remove.
4555 (linux_supports_tracesysgood): Remove.
4556 (linux_supports_tracefork): Remove.
4557 (linux_supports_tracevforkdone): Remove.
4558 (linux_enable_tracesysgood): Remove.
4559 (linux_enable_event_reporting): Remove.
4560 (linux_init_ptrace): New function.
4561 (linux_child_post_attach): Call linux_init_ptrace.
4562 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4563 (linux_child_follow_fork): Call linux_supports_tracefork
4564 and linux_supports_tracevforkdone.
4565 (linux_child_insert_fork_catchpoint): Call
4566 linux_supports_tracefork.
4567 (linux_child_insert_vfork_catchpoint): Likewise.
4568 (linux_child_set_syscall_catchpoint): Call
4569 linux_supports_tracesysgood.
4570 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4571 * nat/linux-nat.h: New file.
4572 * nat/linux-waitpid.c: New file.
4573 * nat/linux-waitpid.h: New file.
4574
45752013-08-22 Samuel Bronson <naesten@gmail.com>
4576
4577 ARM Linux support for `catch syscall'.
4578 * syscalls/arm-linux.py: New file.
4579 * syscalls/arm-linux.xml: Likewise.
4580 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4581 (arm_linux_init_abi): Register the new function and syscall xml file.
4582 * data-directory/Makefile.in: Install the new syscall xml file.
4583 * NEWS: Brag about this.
4584
45852013-08-22 Pedro Alves <palves@redhat.com>
4586
4587 PR gdb/15871
4588 * corefile.c (target_xfer_memory_error): New function.
4589 (memory_error): Defer EIO to target_memory_error.
4590 (read_memory): Use target_xfer_partial, and handle finer-grained
4591 target xfer errors.
4592 * target.c (target_xfer_error_to_string): New function.
4593 (memory_xfer_partial_1): If memory is known to be
4594 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4595 (target_xfer_partial): Make extern.
4596 * target.h (enum target_xfer_error): New enum.
4597 (target_xfer_error_to_string): Declare function.
4598 (target_xfer_partial): Declare function.
4599 (struct target_ops) <xfer_partial>: Adjust describing comment.
4600
46012013-08-22 Alan Modra <amodra@gmail.com>
4602
4603 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4604 * configure.tgt: Likewise as targets.
4605
46062013-08-20 Doug Evans <dje@google.com>
4607
4608 * buildsym.c (subfile_stack): Move here from buildsym.h.
4609 (pending_macros): Ditto.
4610 (get_macro_table): New function.
4611 (buildsym_init): Initialize subfile_stack.
4612 * coffread.c (type_vector,type_vector_length): Moved here from
4613 buildsym.h.
4614 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4615 (coff_symtab_read): Use it.
4616 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4617 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4618 with call to get_macro_table.
4619 * stabsread.c (type_vector,type_vector_length): Moved here from
4620 buildsym.h.
4621 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4622 * buildsym.h (get_macro_table): Declare.
4623
46242013-08-20 Tom Tromey <tromey@redhat.com>
4625
4626 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4627 Update.
4628 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4629
46302013-08-20 Doug Evans <dje@google.com>
4631
4632 * blockframe.c: Remove #include "psymtab.h".
4633 * cp-support.c: Ditto.
4634 * source.c: Ditto.
4635 * stack.c: Ditto.
4636
46372013-08-20 Tom Tromey <tromey@redhat.com>
4638
4639 PR python/15816:
4640 * exceptions.h (return_mask): Now an enum.
4641 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4642 enum constants.
4643
46442013-08-20 Tom Tromey <tromey@redhat.com>
4645
4646 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4647 get_objfile_arch.
4648 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4649 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4650 * jit.c (jit_object_close_impl): Update.
4651 * jv-lang.c (get_dynamics_objfile): Update.
4652 * linespec.c (add_minsym): Use get_dynamics_objfile.
4653 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4654 (allocate_objfile): Don't initialize 'gdbarch' field.
4655 (get_objfile_arch): Update.
4656 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4657 moved from...
4658 (struct objfile) <gdbarch>: ... here. Remove.
4659 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4660 get_objfile_arch.
4661 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4662
46632013-08-20 Alan Modra <amodra@gmail.com>
4664
4665 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4666 for IBM long double nan and inf.
4667 (floatformat_is_negative, floatformat_classify,
4668 floatformat_mantissa): Similarly.
4669 (floatformat_ieee_single, floatformat_ieee_double,
4670 floatformat_ieee_quad, floatformat_arm_ext,
4671 floatformat_ia64_spill): Delete unused vars.
4672 (_initialize_doublest): Delete unused function.
4673 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4674 little-endian variants of floatformat_ibm_long_double.
4675
46762013-08-19 Luis Machado <lgustavo@codesourcery.com>
4677
4678 * Makefile.in (SFILES): Remove common/target-common.c and
4679 add target/waitstatus.c.
4680 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4681 target/resume.h, target/wait.h and target/waitstatus.h.
4682 (COMMON_OBS): Remove target-common.o and add
4683 waitstatus.o.
4684 (target-common.o): Remove.
4685 (waitstatus.o): New target object file.
4686 * common/target-common.c: Move contents to
4687 target/waitstatus.c and remove.
4688 * common/target-common.h: Move contents to other files and
4689 remove.
4690 (enum resume_kind: Move to target/resume.h.
4691 (TARGET_WNOHANG): Move to target/wait.h.
4692 (enum target_waitkind): Move to target/waitstatus.h.
4693 (struct target_waitstatus): Likewise.
4694 * target.h: Do not include target-common.h and
4695 include target/resume.h, target/wait.h and
4696 target/waitstatus.h.
4697 * target/resume.h: New file.
4698 * target/wait.h: New file.
4699 * target/waitstatus.h: New file.
4700 * target/waitstatus.c: New file.
4701
47022013-08-19 Pedro Alves <palves@redhat.com>
4703
4704 * linux-nat.c (linux_test_for_tracefork)
4705 (linux_test_for_tracesysgood, linux_child_follow_fork)
4706 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4707 (linux_nat_wait_1): Extend comment.
4708 (linux_async_pipe): Add comment.
4709
47102013-08-15 Kevin Buettner <kevinb@redhat.com>
4711
4712 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4713 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4714 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4715 Update to account for fact that PC is now a pseudo-register.
4716 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4717 cases for RL78_PC_REGNUM.
4718
47192013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4720
4721 PR cli/15841
4722 * top.c (quit_force): Skip writing history file
4723 if input is not from terminal.
4724
47252013-08-14 Tom Tromey <tromey@redhat.com>
4726
4727 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4728 resultthreadlist>: New fields.
4729 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4730 (remote_get_threadlist, remote_threadlist_iterator): Use
4731 new fields. Remove static variables.
4732
47332013-08-14 Tom Tromey <tromey@redhat.com>
4734
4735 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4736 remote_watch_data_address>: New fields.
4737 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4738 (process_stop_reply, remote_wait_as)
4739 (remote_check_watch_resources, remote_stopped_data_address): Update.
4740
47412013-08-14 Tom Tromey <tromey@redhat.com>
4742
4743 * remote.c (struct remote_state) <async_client_callback,
4744 async_client_context>: New fields.
4745 (async_client_callback, async_client_context): Remove.
4746 (remote_async_serial_handler, remote_async): Update.
4747
47482013-08-14 Tom Tromey <tromey@redhat.com>
4749
4750 * remote.c (sizeof_pkt): Remove.
4751 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4752
47532013-08-14 Tom Tromey <tromey@redhat.com>
4754
4755 * remote.c (struct remote_state) <use_threadinfo_query,
4756 use_threadextra_query>: New fields.
4757 (remote_threads_info, remote_threads_extra_info)
4758 (remote_open_1): Update.
4759
47602013-08-14 Tom Tromey <tromey@redhat.com>
4761
4762 * remote.c (struct remote_state) <finished_object,
4763 finished_annex, finished_offset>: New fields.
4764 (remote_read_qxfer): Use remote_state fields; remove static
4765 variables.
4766
47672013-08-14 Tom Tromey <tromey@redhat.com>
4768
4769 * remote.c (struct remote_state) <last_sent_step>:
4770 New field.
4771 (last_sent_step): Remove.
4772 (remote_resume, remote_wait_as): Update.
4773
47742013-08-14 Tom Tromey <tromey@redhat.com>
4775
4776 * remote.c (struct remote_state) <last_sent_signal>:
4777 New field.
4778 (last_sent_signal): Remove.
4779 (new_remote_state, remote_resume, remote_wait_as): Update.
4780
47812013-08-14 Tom Tromey <tromey@redhat.com>
4782
4783 * remote.c (struct remote_state) <last_program_signals_packet>:
4784 New field.
4785 (last_program_signals_packet): Remove.
4786 (remote_program_signals, remote_open_1): Update.
4787
47882013-08-14 Tom Tromey <tromey@redhat.com>
4789
4790 * remote.c (struct remote_state) <last_pass_packet>:
4791 New field.
4792 (last_pass_packet): Remove.
4793 (remote_pass_signals, remote_open_1): Update.
4794
47952013-08-14 Tom Tromey <tromey@redhat.com>
4796
4797 * remote.c (struct remote_state) <remote_traceframe_number>:
4798 New field.
4799 (remote_traceframe_number): Remove.
4800 (new_remote_state, remote_open_1, set_remote_traceframe)
4801 (remote_trace_find): Update.
4802
48032013-08-14 Tom Tromey <tromey@redhat.com>
4804
4805 * remote.c (struct remote_state) <general_thread, continue_thread>:
4806 New fields.
4807 (general_thread, continue_thread): Remove.
4808 (record_currthread, set_thread, set_general_process)
4809 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4810 (extended_remote_mourn_1): Update.
4811
48122013-08-14 Tom Tromey <tromey@redhat.com>
4813
4814 * remote.c (struct remote_state) <remote_desc>: New field.
4815 (remote_desc): Remove.
4816 (remote_threads_info, remote_threads_extra_info, remote_close)
4817 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4818 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4819 (remote_hostio_send_command, remote_file_put, remote_file_get)
4820 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4821 (remote_async, remote_new_objfile, set_range_stepping): Update.
4822
48232013-08-14 Tom Tromey <tromey@redhat.com>
4824
4825 * remote.c (remote_state): Now a pointer.
4826 (get_remote_state_raw): Update.
4827 (new_remote_state): New function.
4828 (_initialize_remote): Use new_remote_state.
4829
48302013-08-14 Tom Tromey <tromey@redhat.com>
4831
4832 * remote.c (remote_protocol_features): Now const.
4833
48342013-08-14 Tom Tromey <tromey@redhat.com>
4835
4836 * remote.c (crc32_table, crc32): Remove.
4837 (remote_verify_memory): Use xcrc32.
4838
48392013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4840
4841 * value.h (create_internalvar_type_lazy): Adjust prototype
4842 declaration.
4843
48442013-08-13 Andrew Burgess <aburgess@broadcom.com>
4845
4846 * common/format.c (parse_format_string): Don't allow '#' flag for
4847 pointer arguments in format string.
4848
48492013-08-13 Pierre Muller <muller@sourceware.org>
4850
4851 * utils.c (init_page_info): Only call tgetnum function
4852 if rl_get_screen_size did not return useful values.
4853
48542013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4855
4856 PR breakpoints/15117
4857 * linespec.c (linespec_parse_basic): Check for convenience
4858 variable or history value while parsing.
4859
48602013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4861
4862 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4863 AVR.
4864 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4865 different signals between the generic Linux kernel implementation
4866 and AVR's.
4867 (avr_linux_gdb_signal_from_target): Delete.
4868 (avr_linux_gdb_signal_to_target): Delete.
4869 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4870
48712013-08-09 Doug Evans <dje@google.com>
4872
4873 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4874 entries.
4875
48762013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4877
4878 * linux-tdep.c: Define enum with generic signal numbers.
4879 (linux_gdb_signal_from_target): New function.
4880 (linux_gdb_signal_to_target): Likewise.
4881 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4882 methods to the functions above.
4883 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4884 (linux_gdb_signal_to_target): Likewise.
4885 * alpha-linux-tdep.c: Define new enum with signals different
4886 from generic Linux kernel.
4887 (alpha_linux_gdb_signal_from_target): New function.
4888 (alpha_linux_gdb_signal_to_target): Likewise.
4889 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4890 with the functions mentioned above.
4891 * avr-tdep.c: Define enum with differences between Linux kernel
4892 and AVR signals.
4893 (avr_linux_gdb_signal_from_target): New function.
4894 (avr_linux_gdb_signal_to_target): Likewise.
4895 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4896 the functions mentioned above.
4897 * sparc-linux-tdep.c: Define enum with differences between SPARC
4898 and generic Linux kernel signal numbers.
4899 (sparc32_linux_gdb_signal_from_target): New function.
4900 (sparc32_linux_gdb_signal_to_target): Likewise.
4901 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4902 to the functions defined above.
4903 * xtensa-linux-tdep.c: Define enum with differences between
4904 Xtensa and Linux kernel generic signals.
4905 (xtensa_linux_gdb_signal_from_target): New function.
4906 (xtensa_linux_gdb_signal_to_target): Likewise.
4907 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4908 to the functions defined above.
4909 * mips-linux-tdep.c: Define enum with differences between
4910 signals in MIPS and Linux kernel generic ones.
4911 (mips_gdb_signal_to_target): New function.
4912 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4913 only different signals from the Linux kernel generic.
4914 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4915 the functions defined above.
4916 * mips-linux-tdep.h (enum mips_signals): Remove.
4917
49182013-08-09 Pedro Alves <palves@redhat.com>
4919
4920 * avr-tdep.c (XMALLOC): Delete macro.
4921 * cli/cli-dump.c (XMALLOC): Delete macro.
4922
49232013-08-09 Pedro Alves <palves@redhat.com>
4924
4925 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4926 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4927 (fopen_with_cleanup, add_dump_command): Make static.
4928 * cli/cli-dump.h: Delete file.
4929 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4930 cli/cli-dump.h.
4931
49322013-08-09 Pedro Alves <palves@redhat.com>
4933
4934 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4935 error message.
4936
49372013-08-09 Pedro Alves <palves@redhat.com>
4938
4939 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4940 error message.
4941
49422013-08-09 Pedro Alves <palves@redhat.com>
4943
4944 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4945 (gcore_command): Use tilde_expand here, and when showing the
4946 filename to the user, show the expanded version.
4947
49482013-08-09 Yao Qi <yao@codesourcery.com>
4949
4950 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4951 'entryval' is set.
4952
49532013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4954
4955 * gcore.c (create_gcore_bfd): Use tilde_expand.
4956
49572013-08-08 Yao Qi <yao@codesourcery.com>
4958
4959 * frame.h (read_frame_local): Declare.
4960 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4961 read_frame_local.
4962 * stack.c (read_frame_local): New.
4963
49642013-08-08 Yao Qi <yao@codesourcery.com>
4965
4966 * mi/mi-cmd-stack.c: Update comments to function
4967 list_args_or_locals.
4968
49692013-08-07 Tom Tromey <tromey@redhat.com>
4970
4971 PR symtab/15028:
4972 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4973 (process_psymtab_comp_unit_reader): Use it.
4974 (process_psymtab_comp_unit): Update. Add "pretend_language"
4975 argument.
4976 (dwarf2_build_psymtabs_hard): Update.
4977 (scan_partial_symbols): Pass CU's language to
4978 process_psymtab_comp_unit.
4979
49802013-08-07 Tom Tromey <tromey@redhat.com>
4981
4982 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4983 (dwarf2_gdb_index_functions): Update.
4984 * psymtab.c (find_symbol_file_from_partial): Remove.
4985 (psym_functions): Update.
4986 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4987 Remove.
4988
49892013-08-07 Tom Tromey <tromey@redhat.com>
4990
4991 * symfile.c (set_initial_language): Look up "main" symbol
4992 and use its language.
4993 * symtab.c (find_main_filename): Remove.
4994 * symtab.h (find_main_filename): Remove.
4995
49962013-08-07 Tom Tromey <tromey@redhat.com>
4997
4998 * dwarf2read.c (recursively_compute_inclusions): Add
4999 "immediate_parent" argument. Set symtab's "user" field
5000 if not set.
5001 (compute_symtab_includes): Update.
5002
50032013-08-07 Tom Tromey <tromey@redhat.com>
5004
5005 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
5006 when adding label symbols.
5007
50082013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5009 Ulrich Weigand <uweigand@de.ibm.com>
5010
5011 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
5012 * configure.host (powerpc64-*-aix*): Likewise.
5013
50142013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5015 Ulrich Weigand <uweigand@de.ibm.com>
5016
5017 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
5018 is defined.
5019 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
5020 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
5021 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
5022 * configure.ac: Check for ptrace64.
5023 * configure, config.in: Regenerate.
5024
50252013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5026 Ulrich Weigand <uweigand@de.ibm.com>
5027
5028 * aixthread.c: Call ptrace64 instead of ptracex if defined.
5029 Call ptrace64 instead of ptrace if defined.
5030 Add macro addr_ptr to take care of ptrace address argument.
5031 (pdc_read_regs): Likewise.
5032 (pdc_write_regs): Likewise.
5033 (aix_thread_resume): Likewise.
5034 (fetch_regs_kernel_thread): Likewise.
5035 (store_regs_kernel_thread): Likewise.
5036
50372013-08-07 Anton Blanchard <anton@samba.org>
5038
5039 * MAINTAINERS: Add myself to Write After Approval.
5040
50412013-08-05 Tom Tromey <tromey@redhat.com>
5042
5043 * aix-thread.c (_initialize_aix_thread): Use
5044 complete_target_initialization.
5045 * bsd-uthread.c (_initialize_bsd_uthread): Use
5046 complete_target_initialization.
5047 * dec-thread.c (_initialize_dec_thread): Use
5048 complete_target_initialization.
5049 * ravenscar-thread.c (_initialize_ravenscar): Use
5050 complete_target_initialization.
5051 * sol-thread.c (_initialize_sol_thread): Use
5052 complete_target_initialization.
5053 * spu-multiarch.c (_initialize_spu_multiarch): Use
5054 complete_target_initialization.
5055
50562013-08-05 Tom Tromey <tromey@redhat.com>
5057
5058 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
5059 * ada-lang.c (ada_lookup_simple_minsym): Return
5060 bound_minimal_symbol.
5061 * ada-lang.h (ada_lookup_simple_minsym): Update.
5062 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5063 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5064 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5065 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5066 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5067 * minsyms.c (msymbol_objfile): Remove.
5068 (lookup_minimal_symbol_internal): New function, from
5069 lookup_minimal_symbol.
5070 (lookup_minimal_symbol): Rewrite using
5071 lookup_minimal_symbol_internal.
5072 (lookup_bound_minimal_symbol): New function.
5073 * minsyms.h (msymbol_objfile): Remove.
5074 (lookup_bound_minimal_symbol): Declare.
5075 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5076 * parse.c (write_exp_msymbol): Change parameter to a
5077 bound_minimal_symbol.
5078 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5079 * parser-defs.h (write_exp_msymbol): Update.
5080 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5081 * symfile.c (simple_read_overlay_table): Use
5082 lookup_bound_minimal_symbol.
5083 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5084 (search_symbols): Likewise.
5085 (print_msymbol_info): Take a bound_minimal_symbol argument.
5086 (symtab_symbol_info, rbreak_command): Update.
5087 * symtab.h (struct symbol_search) <msymbol>: Change type
5088 to bound_minimal_symbol.
5089 * valops.c (find_function_in_inferior): Use
5090 lookup_bound_minimal_symbol.
5091 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5092
50932013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5094
5095 Code cleanup.
5096 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5097 to ...
5098 (async_cleanup_sigint_signal_handler): ... this.
5099 (initialize_sigint_signal_handler): Remove declaration.
5100 (handle_remote_sigint): Rename the declaration to ...
5101 (async_handle_remote_sigint): ... this.
5102 (handle_remote_sigint_twice): Rename the declaration to ...
5103 (async_handle_remote_sigint_twice): ... this.
5104 (async_remote_interrupt, async_remote_interrupt_twice)
5105 (remote_interrupt): Remove the declarations.
5106 (remote_interrupt_twice): Rename the declaration ...
5107 (sync_remote_interrupt_twice): ... this.
5108 (sigint_remote_twice_token): Rename the variable to ...
5109 (async_sigint_remote_twice_token): ... this.
5110 (sigint_remote_token): Rename the variable to ...
5111 (async_sigint_remote_token): ... this.
5112 (initialize_sigint_signal_handler): Rename the function to ...
5113 (async_initialize_sigint_signal_handler): ... this. Update the name
5114 inside.
5115 (handle_remote_sigint): Rename the function to ...
5116 (async_handle_remote_sigint): ... this. Update the names inside.
5117 (handle_remote_sigint_twice): Rename the function to ...
5118 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5119 (cleanup_sigint_signal_handler): Rename the function to ...
5120 (async_cleanup_sigint_signal_handler): ... this.
5121 (remote_interrupt): Rename the function to ...
5122 (sync_remote_interrupt): this. Update the names inside.
5123 (remote_interrupt_twice): Rename the function to ...
5124 (sync_remote_interrupt_twice): this. Update the names inside.
5125 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5126 (_initialize_remote): Update the names inside.
5127
51282013-08-02 Tom Tromey <tromey@redhat.com>
5129
5130 PR symtab/15719:
5131 * breakpoint.c (update_watchpoint, watchpoint_check)
5132 (watch_command_1): Update.
5133 * eval.c (fetch_subexp_value): Add "preserve_errors"
5134 parameter.
5135 * ppc-linux-nat.c (check_condition): Update.
5136 * value.h (fetch_subexp_value): Update.
5137
51382013-08-02 Andrew Burgess <aburgess@broadcom.com>
5139
5140 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5141 add_file_handler.
5142
51432013-08-01 Doug Evans <dje@google.com>
5144
5145 PR symtab/15691
5146 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5147 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5148 Add assert of sig_entry->dwo_unit == NULL.
5149 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5150 had already been read.
5151 (read_signatured_type): Set per_cu.tu_read.
5152
5153 PR symtab/15695
5154 * valops.c (value_struct_elt): Add missing call to check_typedef.
5155 (value_find_oload_method_list): Ditto.
5156
5157 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5158 effectively, struct symbol_search **.
5159 (make_cleanup_free_search_symbols): Change arg to struct
5160 symbol_search **. All callers updated.
5161 (compare_search_syms): Compare symtab file name and block as well.
5162 (search_symbols_equal): New function.
5163 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5164 New args new_head, new_tail. Result is now void. Remove dups after
5165 sorting the symbols.
5166 (search_symbols): Sort all found symbols once, after all have been
5167 found, and remove duplicates. Simplify cleanup tracking of result.
5168 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5169
5170 Further workarounds for binutils/15021.
5171 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5172 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5173 Watch for duplicate symtabs coming from type units.
5174 (compute_symtab_includes): Update call to
5175 recursively_compute_inclusions. Build vector of included symtabs
5176 instead of per_cus.
5177 * symtab.h (symtab_ptr): New typedef.
5178 (DEF_VEC_P (symtab_ptr)): New VEC type.
5179 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5180 instead.
5181
51822013-08-01 Andrew Burgess <aburgess@broadcom.com>
5183
5184 * cli/cli-script.c (script_from_file): Remove use of
5185 error_pre_print.
5186 * main.c (captured_main): Remove use of error_pre_print and
5187 quit_pre_print.
5188 * utils.c (error_pre_print, quit_pre_print): Remove.
5189 * utils.h (error_pre_print, quit_pre_print): Likewise.
5190
51912013-08-01 Yao Qi <yao@codesourcery.com>
5192
5193 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5194 with mi_getopt.
5195 (mi_cmd_stack_list_variables): Likewise.
5196
51972013-07-31 Andrew Burgess <aburgess@broadcom.com>
5198
5199 * exceptions.c (deprecated_throw_reason): Remove.
5200 * exceptions.h (deprecated_throw_reason): Remove.
5201
52022013-07-31 Andrew Burgess <aburgess@broadcom.com>
5203
5204 * remote-mips.c (mips_error): Replace use of
5205 deprecated_throw_reason with throw_verror. Use the error message
5206 passed to mips_error as the error message for throw_verror.
5207
52082013-07-31 Andrew Burgess <aburgess@broadcom.com>
5209
5210 * monitor.c (monitor_interrupt_query): Replace use of
5211 deprecated_throw_reason with quit.
5212 * nto-procfs.c (interrupt_query): Likewise.
5213 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5214 * remote-mips.c (mips_kill): Likewise.
5215 * remote.c (interrupt_query): Likewise.
5216
52172013-07-31 Andrew Burgess <aburgess@broadcom.com>
5218
5219 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5220 with call to fatal.
5221
52222013-07-31 Pedro Alves <pedro@codesourcery.com>
5223 Yao Qi <yao@codesourcery.com>
5224
5225 * tracepoint.c (trace_dump_command): Select the current frame.
5226
52272013-07-30 Doug Evans <dje@google.com>
5228
5229 * dwarf2read.c (process_queue): Add type signature to debug output.
5230
52312013-07-30 Andrew Burgess <aburgess@broadcom.com>
5232
5233 * value.c (value_fetch_lazy): Mark optimized out values as such
5234 rather than raising an error.
5235
52362013-07-30 Andrew Burgess <aburgess@broadcom.com>
5237
5238 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5239 before checking which bits of the parent, not the child, value are
5240 valid.
5241
52422013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5243
5244 PR gdb/15715
5245 * top.c: Include "filenames.h".
5246 (set_history_filename): New function.
5247 (init_main): Install it as set hook of the "set history filename"
5248 command.
5249
52502013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5251
5252 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5253 attribute parameter.
5254 (dwarf2_const_value_data): Constify struct attribute parameter.
5255 (dwarf2_const_value): Constify struct attribute parameter.
5256 (dwarf2_const_value_attr): Constify struct attribute parameter.
5257 (lookup_die_type): Constify struct attribute parameter.
5258 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5259 (follow_die_ref_or_sig): Constify struct attribute parameter.
5260 (follow_die_ref): Constify struct attribute parameter.
5261 (follow_die_sig): Constify struct attribute parameter.
5262 (get_DW_AT_signature_type): Constify struct attribute parameter.
5263 (get_type_unit_group): Constify struct attribute parameter.
5264 (fill_in_loclist_baton): Constify struct attribute parameter.
5265 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5266 (type_unit_group): Constify struct attribute parameter.
5267
52682013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5269
5270 * dwarf2read.c (attr_form_is_block): Make argument const.
5271 (attr_form_is_section_offset): Make argument const.
5272 (attr_form_is_constant): Make argument const.
5273 (attr_form_is_ref): Make argument const.
5274
52752013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5276
5277 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5278 All uses updated.
5279 (attr_form_is_ref): Moved below attr_form_is_constant.
5280
52812013-07-29 Doug Evans <dje@google.com>
5282
5283 * main.c (captured_command_loop): Tweak comment.
5284
5285 * target.c (target_async_permitted_1): Fix comment.
5286
5287 * symtab.c (iterate_over_some_symtabs): Add comment.
5288
5289 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5290
52912013-07-27 Yao Qi <yao@codesourcery.com>
5292
5293 * NEWS: Mention that GDBserver now supports hardware
5294 watchpoints on the MIPS GNU/Linux target.
5295
52962013-07-27 Yao Qi <yao@codesourcery.com>
5297
5298 * Makefile.in (HFILES_NO_SRCDIR): Add
5299 common/mips-linux-watch.h.
5300 (mips-linux-watch.o): New rule.
5301 * common/mips-linux-watch.c: New.
5302 * common/mips-linux-watch.h: New.
5303 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5304 * mips-linux-nat.c: Include mips-linux-watch.h.
5305 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5306 to common/mips-linux-watch.h.
5307 (MAX_DEBUG_REGISTER): Likewise.
5308 (enum pt_watch_style): Likewise.
5309 (struct mips32_watch_regs): Likewise.
5310 (struct mips64_watch_regs): Likewise.
5311 (struct pt_watch_regs): Likewise.
5312 (struct mips_watchpoint): Likewise.
5313 (mips_linux_watch_get_irw_mask): Move to
5314 common/mips-linux-watch.c.
5315 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5316 (mips_linux_watch_get_watchlo): Likewise.
5317 (mips_linux_watch_set_watchlo): Likewise.
5318 (mips_linux_watch_get_watchhi): Likewise.
5319 (mips_linux_watch_set_watchhi): Likewise.
5320 (mips_linux_read_watch_registers): Likewise.
5321 (mips_linux_watch_type_to_irw): Likewise.
5322 (mips_linux_stopped_data_address, fill_mask): Likewise.
5323 (mips_linux_watch_try_one_watch): Likewise.
5324 (mips_linux_watch_populate_regs): Likewise.
5325
53262013-07-27 Yao Qi <yao@codesourcery.com>
5327
5328 * mips-linux-nat.c (get_irw_mask): Rename to ...
5329 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5330 'set' to 'n'. Update function comment. All callers changed.
5331 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5332 function comment. All callers changed.
5333 (get_num_valid): Rename to ...
5334 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5335 'set' to 'n'. Update function comment. All callers changed.
5336 (get_watchlo): Rename to ...
5337 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5338 'set' to 'n'. Update function comment. All callers changed.
5339 (set_watchlo): Rename to ...
5340 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5341 'set' to 'n'. Update function comment. All callers changed.
5342 (get_watchhi): Rename to ...
5343 (mips_linux_watch_get_watchhi): ... this. Update function
5344 comment. All callers changed.
5345 (set_watchhi): Rename to ...
5346 (mips_linux_watch_set_watchhi): ... this. Update function
5347 comment. All callers changed.
5348 (mips_linux_read_watch_registers): Update function comment.
5349 Add new parameters 'lwpid', 'watch_readback', and
5350 'watch_readback_valid'. Update.
5351 (type_to_irw): Rename to ...
5352 (mips_linux_watch_type_to_irw): ... this. Update function
5353 comment. All callers changed.
5354 (fill_mask): Update function comment.
5355 (try_one_watch): Rename to ...
5356 (mips_linux_watch_try_one_watch): ... this. Change the type
5357 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5358 (populate_regs_from_watches): Rename to ...
5359 (mips_linux_watch_populate_regs): ... this. Add parameter
5360 'current_watches'. All callers changed.
5361
53622013-07-27 Yao Qi <yao@codesourcery.com>
5363
5364 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5365 the code.
5366 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5367 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5368 (struct pt_watch_regs): Likewise.
5369 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5370 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5371 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5372 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5373 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5374
53752013-07-27 Yao Qi <yao@codesourcery.com>
5376
5377 * breakpoint.h: Include break-common.h.
5378 (enum target_hw_bp_type): Move to ...
5379 * common/break-common.h: ... here. New.
5380
53812013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5382
5383 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5384 process group regardless of having tty on stdin.
5385
53862013-07-25 Doug Evans <dje@google.com>
5387
5388 * linux-fork.h (detach_fork): Delete.
5389
53902013-07-25 Tom Tromey <tromey@redhat.com>
5391
5392 PR remote/15256, PR remote/15266:
5393 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5394 * monitor.c (monitor_detach): Use unpush_target.
5395 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5396 * remote-mips.c (mips_detach): Use unpush_target. Don't
5397 call mips_close.
5398 * remote-sim.c (gdbsim_detach): Use unpush_target.
5399 * target.c (pop_target): Remove.
5400 (pop_all_targets_above): Don't call target_close.
5401 (target_close): Assert that the target is unpushed.
5402 * target.h (pop_target): Don't declare.
5403 * tracepoint.c (tfile_open): Use unpush_target.
5404
54052013-07-25 Tom Tromey <tromey@redhat.com>
5406
5407 * linux-thread-db.c (init_thread_db_ops): Call
5408 complete_target_initialization.
5409 (_initialize_thread_db): Don't call add_target.
5410 * target.c (complete_target_initialization): New function.
5411 (add_target_with_completer): Call it.
5412 * target.h (complete_target_initialization): Declare.
5413
54142013-07-25 Mark Kettenis <kettenis@gnu.org>
5415
5416 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5417 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5418 (HPPANBSD_SIZEOF_GREGS): New define.
5419 (hppaobsd_supply_gregset): Handle additional registers.
5420 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5421 we provide more registers now.
5422 (hppabsd_supply_gregset): Supply additional registers.
5423 (hppabsd_collect_gregset): Collect additional registers.
5424
54252013-07-25 Mark Kettenis <kettenis@gnu.org>
5426
5427 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5428 (hppabsd_dwarf2_frame_init_reg): New function.
5429 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5430
54312013-07-25 Andrew Burgess <aburgess@broadcom.com>
5432
5433 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5434 'z' format code. Remove error for optimized out values, standard
5435 code will handle these fine.
5436
54372013-07-25 Andrew Burgess <aburgess@broadcom.com>
5438
5439 * NEWS: Mention new 'z' formatter.
5440 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5441 (_initialize_printcmd): Mention 'z' formatter in help text of the
5442 'x' command.
5443
54442013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5445
5446 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5447 formatting.
5448
54492013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5450
5451 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5452 interface can evaluate arguments. Fallback to the old mode if it
5453 cannot.
5454 (create_exception_master_breakpoint): Likewise.
5455 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5456 (struct sym_probe_fns elf_probe_fns): Export function above to the
5457 probe interface.
5458 * probe.c (can_evaluate_probe_arguments): New function.
5459 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5460 function pointer.
5461 (can_evaluate_probe_arguments): New function prototype.
5462 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5463 probe interface can evaluate arguments. Fallback to the old mode
5464 if it cannot.
5465 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5466 interface can evaluate arguments. Warning the user if it cannot.
5467 (stap_can_evaluate_probe_arguments): New function.
5468 (struct probe_ops stap_probe_ops): Export function above to the
5469 probe interface.
5470 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5471 New function pointer.
5472
54732013-07-24 Luis Machado <lgustavo@codesourcery.com>
5474
5475 * Makefile.in (SFILES): Add common/target-common.c.
5476 Add common/target-common.h to headers.
5477 (COMMON_OBS): Add target-common.o.
5478 (target-common.o): New target.
5479 * linux-nat.h (resume_kind): Move to common/target-common.h.
5480 * target.c (target_waitstatus_to_string): Move to
5481 common/target-common.c.
5482 * target.h: Include target-common.h.
5483 (target_waitkind): Move to common/target-common.h.
5484 (target_waitstatus): Likewise.
5485 (TARGET_WNOHANG): Likewise.
5486 * common/target-common.c: New file.
5487 * common/target-common.h: New file.
5488
54892013-07-24 Doug Evans <dje@google.com>
5490
5491 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5492 a warning.
5493
54942013-07-23 Yao Qi <yao@codesourcery.com>
5495
5496 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5497 parameter 'gdbarch'.
5498 (i386_stack_tramp_frame_sniffer): Caller update.
5499 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5500 parameter 'gdbarch' and 'target'.
5501 (i386_linux_core_read_description): Caller update.
5502 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5503 Likewise.
5504 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5505 declaration.
5506
55072013-07-23 Tom Tromey <tromey@redhat.com>
5508
5509 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5510 2013-07-22.
5511
55122013-07-22 Doug Evans <dje@google.com>
5513
5514 * exec.h (remove_target_sections): Delete arg abfd.
5515 * exec.c (exec_close): Update call to remove_target_sections.
5516 (remove_target_sections): Delete arg abfd.
5517 * solib.c (update_solib_list): Ditto.
5518 (reload_shared_libraries_1): Ditto.
5519 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5520 * target.h (struct target_section): Rename key to owner.
5521 All uses updated.
5522
55232013-07-22 Tom Tromey <tromey@redhat.com>
5524
5525 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5526
55272013-07-22 Tom Tromey <tromey@redhat.com>
5528
5529 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5530 Simplify cleanup handling.
5531
55322013-07-22 Tom Tromey <tromey@redhat.com>
5533
5534 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5535 on all return paths.
5536
55372013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5538
5539 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5540 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5541 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5542
55432013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5544
5545 * top.c (print_gdb_version): Add help, apropos description and
5546 url to online documentation.
5547
55482013-07-19 Hui Zhu <hui@codesourcery.com>
5549
5550 PR gdb/15692
5551 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5552
55532013-07-19 Yao Qi <yao@codesourcery.com>
5554
5555 * target.c (update_current_target): Change the default action
5556 of 'to_traceframe_info' from tcomplain to return_zero.
5557 * target.h (struct target_ops) <to_traceframe_info>: Add more
5558 comments.
5559 * valops.c (read_value_memory): Call
5560 traceframe_available_memory unconditionally.
5561
55622013-07-18 Yao Qi <yao@codesourcery.com>
5563
5564 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5565 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5566 symbol without prefix. If found, set its type to
5567 'mst_solib_trampoline'.
5568
55692013-07-17 Doug Evans <dje@google.com>
5570
5571 * NEWS: Mention "set print raw frame-arguments".
5572 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5573 * stack.c (print_raw_frame_arguments): New static global.
5574 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5575 (_initialize_stack): New command "set/show print raw frame-arguments".
5576 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5577 (set_print_raw, show_print_raw): New functions.
5578 (_initialize_valprint): New prefix command "set/show print raw".
5579 * valprint.h (value_print_options): Improve comments.
5580
5581 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5582 of all *list variables.
5583
5584 * gdbcmd.h (togglelist): Delete.
5585 * cli/cli-cmds.c (togglelist): Delete.
5586 (init_cmd_lists): Update.
5587 * cli/cli-cmds.h (togglelist): Delete.
5588
55892013-07-17 Tom Tromey <tromey@redhat.com>
5590
5591 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5592 dwarf2_per_objfile.
5593
55942013-07-16 Doug Evans <dje@google.com>
5595
5596 * nto-tdep.c (nto_relocate_section_addresses): Update,
5597 target_section.bfd deleted.
5598 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5599 * s390-tdep.c (s390_load): Ditto.
5600 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5601
56022013-07-16 Andrew Burgess <aburgess@broadcom.com>
5603
5604 * common/format.c (parse_format_string): Add checks for NULL
5605 character before calling strchr.
5606
56072013-07-16 Doug Evans <dje@google.com>
5608
5609 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5610 temp_pathname argument.
5611 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5612 when opening the file fails.
5613
5614 * target.h (struct target_section): Delete member bfd.
5615 All users updated to use the_bfd_section->owner instead.
5616 * exec.c (add_to_section_table): Assert bfd is expected value.
5617 Remove initialization of target_section.bfd.
5618 (remove_target_sections): Update.
5619 (section_table_available_memory): Update.
5620 (section_table_xfer_memory_partial): Update.
5621 (print_section_info): Update.
5622 (exec_set_section_address): Update.
5623 * record-full.c (record_full_core_xfer_partial): Update.
5624 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5625 * solib-target.c (solib_target_relocate_section_addresses): Update.
5626 * symfile.c (build_section_addr_info_from_section_table): Update.
5627 * target.c (memory_xfer_live_readonly_partial): Update.
5628 (memory_xfer_partial_1): Update.
5629
56302013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5631
5632 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5633 now available for embedded (BookE) and server (BookS) processors,
5634 correct mentions of 'booke' and adjust comments accordingly in order to
5635 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5636 (have_ptrace_booke_interface): Rename function and variable
5637 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5638 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5639 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5640 'hwdebug_point_cmp'. Update all uses.
5641 (booke_find_thread_points_by_tid): Rename function
5642 'booke_find_thread_points_by_tid' to
5643 'hwdebug_find_thread_points_by_tid'. Update all uses.
5644 (booke_insert_point): Rename function 'booke_insert_point' to
5645 'hwdebug_insert_point'. Update all uses.
5646 (booke_remove_point): Rename function 'booke_remove_point' to
5647 'hwdebug_remove_point'. Update all uses.
5648
56492013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5650
5651 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5652 numbers with enum values.
5653
56542013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5655
5656 PR threads/13217
5657 * thread.c (thread_apply_all_command): Check for valid threads
5658 and thread count.
5659 (thread_array_cleanup): New struct.
5660 (set_thread_refcount): New function.
5661
56622013-07-11 Andrew Burgess <aburgess@broadcom.com>
5663
5664 * infcmd.c (default_print_one_register_info): Reuse function
5665 print_hex_chars.
5666
56672013-07-10 Tom Tromey <tromey@redhat.com>
5668
5669 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5670 (ada-exp.o): New target.
5671
56722013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5673
5674 * mt-tdep.c (mt_registers_info): Call
5675 get_no_prettyformat_print_options instead of
5676 get_raw_print_options (regression by last patch from Doug
5677 Evans).
5678
56792013-07-09 Pedro Alves <palves@redhat.com>
5680
5681 Checked in by Joel Brobecker <brobecker@adacore.com>.
5682 * ada-lang.c (coerce_unspec_val_to_type): Use
5683 value_optimized_out_const.
5684 * value.c (value_optimized_out_const): New function.
5685 * value.h (value_optimized_out_const): New declaration.
5686
56872013-07-09 Doug Evans <dje@google.com>
5688
5689 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5690 Enum values rename as well. All uses updated.
5691 * valprint.h (value_print_options): Rename member pretty to
5692 pretty format. Rename member prettyprint_arrays to
5693 prettyformat_arrays. Rename member prettyprint_structs to
5694 prettyformat_structs. All uses updated.
5695 (get_no_prettyformat_print_options): Renamed from
5696 get_raw_print_options.
5697 * valprint.c (get_no_prettyformat_print_options): Renamed from
5698 get_raw_print_options. All callers updated.
5699 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5700 All callers updated.
5701 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5702 All callers updated.
5703 (_initialize_valprint): Improve help text for "set print pretty" and
5704 "set print arrays".
5705
57062013-07-09 Andrew Burgess <aburgess@broadcom.com>
5707
5708 * value.c (value_bits_valid): Revert previous change, and change
5709 by Pedro on 2013-07-04, due to regressions in
5710 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5711
57122013-07-08 Andrew Burgess <aburgess@broadcom.com>
5713 Pedro Alves <palves@redhat.com>
5714
5715 * value.c (value_bits_valid): If the value is not lval_computed
5716 or has no check validity handler then the answer is the
5717 optimized_out flag, otherwise defer to the handler.
5718
57192013-07-06 Eli Zaretskii <eliz@gnu.org>
5720
5721 * top.c (print_gdb_configuration): Explain in output of
5722 --configuration what does "relocatable" mean.
5723
5724 * main.c (print_gdb_help): Regroup options in the --help text.
5725 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5726 the relevant discussions.
5727
57282013-07-06 Yao Qi <yao@codesourcery.com>
5729
5730 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5731 Remove parameter 'lsal'.
5732 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5733 to inner block. Caller update.
5734 (base_breakpoint_create_breakpoints_sal): Update.
5735 (bkpt_create_breakpoints_sal): Likewise.
5736 (tracepoint_create_breakpoints_sal): Likewise.
5737 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5738 element 0 of vector 'canonical->sals'.
5739
57402013-07-05 Luis Machado <lgustavo@codesourcery.com>
5741
5742 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5743 register number instead of the pseudo register one.
5744 (rs6000_dwarf2_reg_to_regnum): Likewise.
5745
57462013-07-04 Pedro Alves <palves@redhat.com>
5747
5748 * findvar.c (value_of_register): Use allocate_optimized_out_value
5749 if the register has been optimized out, instead of
5750 set_value_optimized_out.
5751 * frame-unwind.c (frame_unwind_got_optimized): Use
5752 allocate_optimized_out_value.
5753
57542013-07-04 Pedro Alves <palves@redhat.com>
5755
5756 * value.c (value_bits_valid): If the value is not lval_computed,
5757 or doesn't have a check_validity hook, assume the value is entirely
5758 valid.
5759
57602013-07-04 Andrew Burgess <aburgess@broadcom.com>
5761
5762 * stack.c (read_frame_arg): No longer fetch lazy values.
5763 * value.c (value_optimized_out): If the value is not already
5764 marked optimized out, and is lazy then fetch it.
5765 (value_primitive_field): Move optimized out check to later in the
5766 function, after we have loaded any lazy values.
5767 (value_fetch_lazy): Use optimized out flag directly rather than
5768 calling optimized_out method.
5769
57702013-07-04 Andrew Burgess <aburgess@broadcom.com>
5771
5772 * valops.c: Don't include "user-regs.h".
5773 (value_fetch_lazy): Moved to value.c.
5774 * value.c: Include "user-regs.h".
5775 (value_fetch_lazy): Moved from valops.c.
5776
57772013-07-04 Yao Qi <yao@codesourcery.com>
5778
5779 Revert:
5780 2013-06-27 Yao Qi <yao@codesourcery.com>
5781
5782 * common/create-version.sh: Update comments. Handle the case
5783 that TARGET_ALIAS is empty.
5784
57852013-07-03 Pedro Alves <palves@redhat.com>
5786
5787 * Makefile.in (config.status): Depend on development.sh.
5788 (aclocal_m4_deps): Add libmcheck.m4.
5789 * acinclude.m4: Include libmcheck.m4.
5790 * configure.ac: Source development.sh instead of setting
5791 'development' here. --enable-libmcheck/--disable-libmcheck code
5792 factored out to GDB_AC_LIBMCHECK. Run it.
5793 * development.sh: New file.
5794 * libmcheck.m4: New file.
5795 * configure: Regenerate.
5796
57972013-07-02 Tom Tromey <tromey@redhat.com>
5798
5799 * contrib/ari/update-web-ari.sh: Update for version.in change.
5800
58012013-07-02 Tom Tromey <tromey@redhat.com>
5802
5803 * common/ptid.h: Comment fixes.
5804
58052013-07-01 Tom Tromey <tromey@redhat.com>
5806
5807 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5808 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5809 (dwarf2_read_index, create_all_comp_units): Update.
5810
58112013-07-01 Tom Tromey <tromey@redhat.com>
5812
5813 * configure.ac (build_warnings): Add -Wold-style-definition.
5814 * configure: Rebuild.
5815 * machoread.c (_initialize_machoread): Use "(void)".
5816 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5817 use "(void)".
5818
58192013-07-01 Tom Tromey <tromey@redhat.com>
5820
5821 * configure.ac (build_warnings): Add -Wold-style-declaration.
5822 * configure: Rebuild.
5823 * dsrec.c (make_srec): Use "static const", not "const static".
5824 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5825 not "const static".
5826 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5827 Use "static const", not "const static".
5828 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5829 not "const static".
5830 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5831 not "const static".
5832 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5833 not "const static".
5834 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5835 not "const static".
5836 (v850_dbtrap_breakpoint_from_pc): Likewise.
5837 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5838 not "const static".
5839
58402013-07-01 Tom Tromey <tromey@redhat.com>
5841
5842 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5843 * configure: Rebuild.
5844
58452013-07-01 Pedro Alves <palves@redhat.com>
5846
5847 * defs.h: Include "pathmax.h".
5848 * utils.c: Don't include sys/param.h.
5849 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5850 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5851 instead of MAXPATHLEN.
5852 * solib-sunos.c: Don't include sys/param.h.
5853 * xcoffread.c: Don't include sys/param.h.
5854 * bsd-kvm.c: Don't include sys/param.h.
5855 * darwin-nat.c: Don't include sys/param.h.
5856 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5857 * darwin-nat-info.c: Don't include sys/param.h.
5858 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5859 MAXPATHLEN.
5860 * i386obsd-nat.c: Don't include sys/param.h.
5861 * inf-child.c: Don't include sys/param.h.
5862 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5863 * linux-fork.c: Don't include sys/param.h.
5864 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5865 * linux-nat.c: Don't include sys/param.h.
5866 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5867 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5868 * m68klinux-nat.c: Don't include sys/param.h.
5869 * nbsd-nat.c: Don't include sys/param.h.
5870 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5871 * ppc-linux-nat.c: Don't include sys/param.h.
5872 * rs6000-nat.c: Don't include sys/param.h.
5873 * spu-linux-nat.c. Don't include sys/param.h.
5874 * windows-nat.c: Don't include sys/param.h.
5875 * xtensa-linux-nat.c: Don't include sys/param.h.
5876 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5877
58782013-07-01 Pedro Alves <palves@redhat.com>
5879
5880 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5881 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5882 * gnulib/aclocal.m4: Regenerate.
5883 * gnulib/config.in: Regenerate.
5884 * gnulib/configure: Regenerate.
5885 * gnulib/import/pathmax.h: New file.
5886 * gnulib/import/Makefile.am: Regenerate.
5887 * gnulib/import/Makefile.in: Regenerate.
5888 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5889 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5890 * gnulib/import/m4/pathmax.m4: New file.
5891
58922013-07-01 Pedro Alves <palves@redhat.com>
5893
5894 * configure.ac (GDBINIT): Define, depending on host.
5895 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5896 * top.c (PATH_MAX): Delete fallback definition.
5897 (GDBINIT_FILENAME): Delete.
5898 (gdbinit): Reimplement as const char array set to the GDBINIT
5899 string constant.
5900 * top.h (gdbinit): Make const.
5901 * configure, config.in: Regenerate.
5902
59032013-07-01 Pedro Alves <palves@redhat.com>
5904
5905 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5906 * cli/cli-cmds.h (source_script): Likewise.
5907 * exceptions.c (catch_command_errors_const): New function.
5908 * exceptions.h (catch_command_errors_const): Declare.
5909 * main.c (get_init_files): Make parameters const, and adjust.
5910 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5911 'local_gdbinit' locals const. Adjust to use
5912 catch_command_errors_const.
5913 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5914 'local_gdbinit' locals const.
5915
59162013-07-01 Pedro Alves <palves@redhat.com>
5917
5918 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5919 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5920 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5921 <unistd.h>.
5922
59232013-07-01 Pedro Alves <palves@redhat.com>
5924
5925 Import the "unistd" gnulib module.
5926 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5927 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5928 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5929 import/m4/unistd_h.m4.
5930 * gnulib/aclocal.m4: Renenerate.
5931 * gnulib/config.in: Renenerate.
5932 * gnulib/configure: Renenerate.
5933 * gnulib/import/Makefile.am: Renenerate.
5934 * gnulib/import/Makefile.in: Renenerate.
5935 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5936 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5937 * gnulib/import/m4/off_t.m4: New file.
5938 * gnulib/import/m4/ssize_t.m4: New file.
5939 * gnulib/import/m4/sys_types_h.m4: New file.
5940 * gnulib/import/m4/unistd_h.m4: New file.
5941 * gnulib/import/sys_types.in.h: New file.
5942 * gnulib/import/unistd.c: New file.
5943 * gnulib/import/unistd.in.h: New file.
5944
59452013-07-01 Pedro Alves <palves@redhat.com>
5946
5947 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5948 defined instead of checking HAVE_UNISTD_H.
5949
59502013-07-01 Pedro Alves <palves@redhat.com>
5951
5952 Reimport gnulib from scratch.
5953 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5954 import/m4/onceonly.m4.
5955 * gnulib/aclocal.m4: Renegerate.
5956 * gnulib/config.in: Renegerate.
5957 * gnulib/configure: Renegerate.
5958 * gnulib/import/Makefile.in: Renegerate.
5959 * gnulib/import/extra/update-copyright: Renegerate.
5960 * gnulib/import/m4/onceonly.m4: Delete.
5961
59622013-07-01 Pedro Alves <palves@redhat.com>
5963
5964 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5965
59662013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 Code cleanup.
5969 * remote.c (async_remote_interrupt_twice): Make it static.
5970 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5971
59722013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5973
5974 * ia64-linux-tdep.c: Include <ctype.h>.
5975 (ia64_linux_stap_is_single_operand): New function.
5976 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5977
59782013-06-28 Tom Tromey <tromey@redhat.com>
5979
5980 * Makefile.in (version.c): Use version.in, not
5981 common/version.in.
5982 * common/create-version.sh: Likewise.
5983 * common/version.in: Move...
5984 * version.in: ...here.
5985
59862013-06-28 Pedro Alves <palves@redhat.com>
5987
5988 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5989 here.
5990 * utils.h (pagination_enabled): Declare.
5991
59922013-06-28 Pedro Alves <palves@redhat.com>
5993
5994 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5995 Move higher up in file.
5996
59972013-06-28 Tom Tromey <tromey@redhat.com>
5998
5999 * tracepoint.c (deprecated_readline_begin_hook)
6000 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
6001 declare.
6002
60032013-06-28 Pedro Alves <palves@redhat.com>
6004
6005 PR tui/14880
6006 * tui/tui-regs.c (tui_get_register): Fetch value contents before
6007 checking if they're available.
6008 * value.c (value_available_contents_eq): Change comment.
6009 * value.h (value_available_contents_eq): Expand comment.
6010
60112013-06-27 Tom Tromey <tromey@redhat.com>
6012
6013 * target.c (find_run_target): Remove.
6014 * target.h (find_run_target): Remove.
6015
60162013-06-27 Tom Tromey <tromey@redhat.com>
6017
6018 * corelow.c (core_gdbarch): Now static.
6019
60202013-06-27 Tom Tromey <tromey@redhat.com>
6021
6022 * target.c (target_struct_index): Remove.
6023
60242013-06-27 Pedro Alves <palves@redhat.com>
6025
6026 * infrun.c: Remove comment describing the 'stepping over runtime
6027 loader dynamic symbol resolution code' mechanism; moved to
6028 gdbint.texinfo.
6029
60302013-06-27 Pedro Alves <palves@redhat.com>
6031
6032 * exceptions.c (catch_command_errors): Remove spurious space.
6033 * exceptions.h (catch_command_errors): Second parameter is "arg",
6034 not "command".
6035
60362013-06-27 Yao Qi <yao@codesourcery.com>
6037
6038 * common/create-version.sh: Update comments. Handle the case
6039 that TARGET_ALIAS is empty.
6040
60412013-06-26 Pedro Alves <palves@redhat.com>
6042
6043 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
6044 comment.
6045
60462013-06-26 Pedro Alves <palves@redhat.com>
6047
6048 * infrun.c: Update comments on stepping over runtime loader
6049 dynamic symbol resolution code.
6050
60512013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
6052
6053 * ax-gdb.h (union exp_element): Forward declare.
6054 * parser-defs.h: Include expression.h.
6055
60562013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6057
6058 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6059
60602013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6061
6062 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6063
60642013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6065
6066 Fix trace-status to output proper start-time and stop-time.
6067 * tracepoint.c (trace_status_command): Fix type of printf arg to
6068 prevent improper type conversion.
6069 (trace_status_mi): Likewise.
6070
60712013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6072
6073 * mips-tdep.c (mips_next_pc): Fix a typo.
6074
60752013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6076
6077 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6078
60792013-06-26 Pedro Alves <pedro@codesourcery.com>
6080 Yao Qi <yao@codesourcery.com>
6081
6082 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6083 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6084 * mi/mi-main.c (print_variable_or_computed): New function.
6085 (mi_cmd_trace_frame_collected): New function.
6086 * tracepoint.c (find_trace_state_variable_by_number): New.
6087 (struct traceframe_info): Move to tracepoint.h
6088 (struct collection_list): Likewise.
6089 (do_collect_symbol): Include locals and arguments in the
6090 collected variables list.
6091 (clear_collection_list): Clear wholly collected variables list
6092 and computed variables list.
6093 (append_exp): New function.
6094 (encode_actions_1): Include variables in the wholly
6095 collected variables list. Include memory ranges and
6096 full-fledged expressions in the computed expressions list.
6097 (encode_actions): Move some code to ...
6098 Return the cleanup chain.
6099 (encode_actions_rsp): ... here. New function.
6100 (get_traceframe_location, get_traceframe_info): Remove static.
6101 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6102 (struct collection_list): Moved from tracepoint.c. Add two
6103 new fields 'wholly_collected' and 'computed'.
6104 (find_trace_state_variable_by_number): Declare.
6105 (encode_actions): Adjust declaration.
6106 (encode_actions_rsp): Declare.
6107 (get_traceframe_info, get_traceframe_location): Declare.
6108
6109 * NEWS: Mention new MI command -trace-frame-collected.
6110
61112013-06-26 Pedro Alves <pedro@codesourcery.com>
6112 Yao Qi <yao@codesourcery.com>
6113
6114 * ctf.c (ctf_traceframe_info): Push trace state variables
6115 present in the trace data into the traceframe info object.
6116 * breakpoint.c (DEF_VEC_I): Remove.
6117 * common/filestuff.c (DEF_VEC_I): Likewise.
6118 * dwarf2loc.c (DEF_VEC_I): Likewise.
6119 * mi/mi-main.c (DEF_VEC_I): Likewise.
6120 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6121 * features/traceframe-info.dtd: Add tvar element and its
6122 attributes.
6123 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6124 (build_traceframe_info): Push trace state variables present in
6125 the trace data into the traceframe info object.
6126 (traceframe_info_start_tvar): New function.
6127 (tvar_attributes): New.
6128 (traceframe_info_children): Add "tvar" element.
6129 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6130
6131 * NEWS: Mention the change in GDB and GDBserver.
6132
61332013-06-26 Pedro Alves <pedro@codesourcery.com>
6134 Yao Qi <yao@codesourcery.com>
6135
6136 * tracepoint.c (trace_dump_command): Move code to ...
6137 (get_traceframe_location): ... here. New.
6138
61392013-06-26 Pedro Alves <pedro@codesourcery.com>
6140 Yao Qi <yao@codesourcery.com>
6141
6142 * tracepoint.c (trace_dump_command): GDB emits an error
6143 instead of a warning when a traceframe is not selected.
6144
61452013-06-26 Pedro Alves <pedro@codesourcery.com>
6146 Yao Qi <yao@codesourcery.com>
6147
6148 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6149 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6150 in collection_list.
6151 (do_clear_collection_list, init_collection_list): New.
6152 (encode_actions): Add local variables 'tracepoint_list' and
6153 'stepping_list'. Call init_collection_list and make cleanup
6154 which calls do_clear_collection_list. Don't call
6155 clear_collection_list.
6156 (_initialize_tracepoint): Delete references to
6157 'tracepoint_list' and 'stepping_list'.
6158
61592013-06-25 Tom Tromey <tromey@redhat.com>
6160
6161 * common/create-version.sh (date): Use "$", not "$$" in sed
6162 expression.
6163
61642013-06-25 Kevin Buettner <kevinb@redhat.com>
6165
6166 * NEWS (New targets): Add entry for TI MSP430.
6167
61682013-06-25 Yao Qi <yao@codesourcery.com>
6169
6170 * remote.c (remote_start_remote): Move code to upload tsv
6171 earlier.
6172
61732013-06-25 Yao Qi <yao@codesourcery.com>
6174 Hui Zhu <hui@codesourcery.com>
6175 Pedro Alves <palves@redhat.com>
6176
6177 PR breakpoints/15075
6178 PR breakpoints/15434
6179 * breakpoint.c (bpstat_stop_status): Call
6180 b->ops->after_condition_true.
6181 (update_dprintf_command_list): Don't append "continue" command
6182 to the command list of dprintf breakpoint.
6183 (base_breakpoint_after_condition_true): New function.
6184 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6185 (dprintf_after_condition_true): New function.
6186 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6187 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6188
61892013-06-24 Kevin Buettner <kevinb@redhat.com>
6190
6191 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6192 (ALLDEPFILES): Add msp430-tdep.c.
6193 * configure.tgt (msp430*-*-elf): New target.
6194 * msp430-tdep.c: New file.
6195
61962013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6197
6198 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6199 microMIPS synthetic symbols.
6200
62012013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6202
6203 * objfiles.h (pc_in_section): New prototype.
6204 (in_plt_section): Remove name argument, replace prototype with
6205 static inline function.
6206 * mips-tdep.h: Include "objfiles.h".
6207 (in_mips_stubs_section): New function.
6208 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6209 in_solib_call_trampoline member.
6210 (hppa_in_solib_call_trampoline): Remove name argument.
6211 * objfiles.c (pc_in_section): New function.
6212 (in_plt_section): Remove function.
6213 * mips-linux-tdep.c: Include "objfiles.h".
6214 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6215 name argument. Return 1 rather than the low 16-bit halfword of
6216 any instruction examined.
6217 (mips_linux_in_dynsym_resolve_code): Update
6218 mips_linux_in_dynsym_stub call accordingly.
6219 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6220 rather than an equivalent hand-coded sequence.
6221 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6222 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6223 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6224 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6225 in_opd_section.
6226 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6227 on call to tdep->in_solib_call_trampoline.
6228 (hppa_in_solib_call_trampoline): Remove name argument, update
6229 according to in_plt_section change.
6230 (hppa_skip_trampoline_code): Update according to in_plt_section
6231 change.
6232 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6233 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6234 Likewise.
6235 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6236 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6237 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6238 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6239 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6240 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6241 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6242 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6243 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6244 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6245 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6246 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6247 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6248
62492013-06-24 Joel Brobecker <brobecker@adacore.com>
6250
6251 * common/create-version.sh: Fix expansion of $host_alias
6252 and $target_alias in generation of HOST_NAME and TARGET_NAME
6253 (resp.).
6254
62552013-06-24 Tom Tromey <tromey@redhat.com>
6256
6257 * common/create-version.sh: New file.
6258 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6259 create-version.sh.
6260 (HFILES_NO_SRCDIR): Use common/version.h.
6261 * version.in: Move to ...
6262 * common/version.in: ... here. Replace date with "DATE".
6263 * version.h: Move to ...
6264 * common/version.h: ... here.
6265
62662013-06-21 Joel Brobecker <brobecker@adacore.com>
6267
701adfb0
PA
6268 * gnulib/Makefile.in: Update date in copyright header.
6269 * gnulib/configure.ac: Ditto.
6270 * gnulib/update-gnulib.sh: Ditto.
df96af55
JB
6271
62722013-06-21 Joel Brobecker <brobecker@adacore.com>
6273
6274 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6275 "gdb/gnulib/import".
6276
62772013-06-21 Will Newton <will.newton@linaro.org>
6278
6279 * doublest.c (ldfrexp): Remove function.
6280 (convert_doublest_to_floatformat): Call frexpl instead of
6281 ldfrexp.
6282
62832013-06-21 Will Newton <will.newton@linaro.org>
6284
6285 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6286 * gnulib/aclocal.m4: Regenerate.
6287 * gnulib/config.in: Regenerate.
6288 * gnulib/configure: Regenerate.
6289 * gnulib/import/Makefile.am: Update.
6290 * gnulib/import/Makefile.in: Update.
6291 * gnulib/import/m4/gnulib-cache.m4: Update.
6292 * gnulib/import/m4/gnulib-comp.m4: Update.
6293 * gnulib/import/float+.h: Import.
6294 * gnulib/import/float.c: Import.
6295 * gnulib/import/float.in.h: Import.
6296 * gnulib/import/fpucw.h: Import.
6297 * gnulib/import/frexp.c: Import.
6298 * gnulib/import/frexpl.c: Import.
6299 * gnulib/import/isnan.c: Import.
6300 * gnulib/import/isnand-nolibm.h: Import.
6301 * gnulib/import/isnand.c: Import.
6302 * gnulib/import/isnanl-nolibm.h: Import.
6303 * gnulib/import/isnanl.c: Import.
6304 * gnulib/import/itold.c: Import.
6305 * gnulib/import/m4/exponentd.m4: Import.
6306 * gnulib/import/m4/exponentl.m4: Import.
6307 * gnulib/import/m4/float_h.m4: Import.
6308 * gnulib/import/m4/fpieee.m4: Import.
6309 * gnulib/import/m4/frexp.m4: Import.
6310 * gnulib/import/m4/frexpl.m4: Import.
6311 * gnulib/import/m4/isnand.m4: Import.
6312 * gnulib/import/m4/isnanl.m4: Import.
6313 * gnulib/import/m4/math_h.m4: Import.
6314 * gnulib/import/math.c: Import.
6315 * gnulib/import/math.in.h: Import.
6316
63172013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6318
6319 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6320 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6321 signature_INTEL_edx comparisons.
6322
63232013-06-20 Doug Evans <dje@google.com>
6324
6325 symtab/15652
6326 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6327 All callers updated.
6328 (open_dwp_file): If we can't find the dwp file, search the basename
6329 in debug-file-directory.
6330
6331 * dwarf2read.c (struct dwp_file): Fix comment.
6332 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6333
6334 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6335 better.
6336
63372013-06-20 Yao Qi <yao@codesourcery.com>
6338
6339 * breakpoint.c (create_breakpoint): Fix code indentation.
6340
63412013-06-20 Yao Qi <yao@codesourcery.com>
6342
6343 * breakpoint.c (create_breakpoints_sal_default): Remove
6344 parameter 'lsal'. Update declaration.
6345 (bkpt_create_breakpoints_sal): Caller update.
6346 (tracepoint_create_breakpoints_sal): Likewise.
6347
63482013-06-20 Pedro Alves <pedro@codesourcery.com>
6349 Yao Qi <yao@codesourcery.com>
6350
6351 * NEWS: Mention the new option '--skip-unavailable' of command
6352 -data-list-register-values.
6353 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6354 --skip-unavailable option. Adjust to use output_register.
6355 (output_register): Add new 'skip_unavailable' parameter.
6356 Handle it.
6357
63582013-06-19 Mike Frysinger <vapier@gentoo.org>
6359
6360 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6361 common/i386-gcc-cpuid.h.
6362 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6363 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6364 Copy the latest version from upstream gcc.
6365 * common/linux-btrace.c: Include i386-cpuid.h.
6366 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6367 call to i386_cpuid.
6368 (cpu_supports_btrace): Likewise.
6369 * go32-nat.c: Include i386-cpuid.h.
6370 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6371
63722013-06-19 Doug Evans <dje@google.com>
6373
6374 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6375 (get_section_index): Ditto.
6376
63772013-06-19 Tom Tromey <tromey@redhat.com>
6378
6379 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6380 "dprintf" help.
6381
63822013-06-18 Doug Evans <dje@google.com>
6383
6384 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6385 before using it.
6386 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6387 Move test of cu_index closer to use. Print complaint if cu_index
6388 is bad.
6389
63902013-06-18 Joel Brobecker <brobecker@adacore.com>
6391
6392 * machoread.c (oso_vector): Delete this global.
6393 (macho_register_oso): Add new parameter "oso_vector_ptr".
6394 Use it instead of the "oso_vector" global.
6395 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6396 (macho_symfile_read): Use a local oso_vector, to be free'ed
6397 at the end of this function, in place of the old "oso_vector"
6398 global. Update various function calls accordingly. Use one
6399 single cleanup chain for the entire function.
6400
64012013-06-18 Joel Brobecker <brobecker@adacore.com>
6402
6403 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6404 DWARF2_PER_OBJFILE by uses of DATA instead.
6405
64062013-06-18 Tom Tromey <tromey@redhat.com>
6407
6408 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6409 argument.
6410 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6411 Special case signals other than GDB_SIGNAL_TRAP.
6412 (explains_signal_watchpoint): New function.
6413 (base_breakpoint_explains_signal): Add 'sig' argument.
6414 (initialize_breakpoint_ops): Set 'explains_signal' method for
6415 watchpoints.
6416 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6417 signal argument.
6418 (bpstat_explains_signal): Likewise.
6419 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6420
64212013-06-18 Tom Tromey <tromey@redhat.com>
6422
6423 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6424
64252013-06-18 Tom Tromey <tromey@redhat.com>
6426
6427 * python/python.c (finish_python_initialization): Decref
6428 'pythondir' on failure path as well.
6429
64302013-06-18 Tom Tromey <tromey@redhat.com>
6431
6432 PR symtab/15391:
6433 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6434 after taking bits_to_skip into account. Sign extend byte_offset.
6435 * utils.h (gdb_sign_extend): Declare.
6436 * utils.c (gdb_sign_extend): New function.
6437
64382013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6439
6440 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6441
64422013-06-17 Pierre Muller <muller@sourceware.org>
6443
6444 * corelow.c (core_open): Print GDB signal name instead of target
6445 signal number.
6446
64472013-06-17 Mike Frysinger <vapier@gentoo.org>
6448
6449 * .gitignore: Add /gcore.
6450
64512013-06-13 Doug Evans <dje@google.com>
6452
6453 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6454 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6455
64562013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6457
6458 * stack.c (backtrace_command_1): Fix indentation.
6459
64602013-06-11 Joel Brobecker <brobecker@adacore.com>
6461
6462 * window-nat.c (thread_rec): Add missing empty line after
6463 local variable declaration.
6464
64652013-06-11 Joel Brobecker <brobecker@adacore.com>
6466
6467 * windows-nat.c (thread_rec): Revert format used to print
6468 error code returned by SuspendThread from %d back to %u.
6469
64702013-06-11 Joel Brobecker <brobecker@adacore.com>
6471
6472 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6473 ID in debug trace.
6474 (get_windows_debug_event): Likewise, for all debug traces.
6475
64762013-06-11 Joel Brobecker <brobecker@adacore.com>
6477
6478 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6479 warning message.
6480
64812013-06-08 Pedro Alves <pedro@codesourcery.com>
6482 Yao Qi <yao@codesourcery.com>
6483
6484 * mi/mi-main.c (get_register): Remove declaration.
6485 (output_register): Declare.
6486 (mi_cmd_data_list_register_values): Remove local variable
6487 'tuple_cleanup'. Move some code into output_register.
6488 (get_register): Renamed to ...
6489 (output_register): ... this. Output the register's
6490 "number" ui_out tuple here.
6491
64922013-06-07 Pedro Alves <palves@redhat.com>
6493
6494 * darwin-nat.c: Fix formating in copyright header.
6495 * darwin-nat.h: Likewise.
6496 * gnu-nat.c: Likewise.
6497 * machoread.c: Likewise.
6498
64992013-06-07 Pedro Alves <palves@redhat.com>
6500
6501 PR server/14823
6502 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6503 static. Output a global target description pointer.
6504 (init_registers_${name}): Adjust to initialize a
6505 target description structure.
6506
65072013-06-07 Will Newton <will.newton@linaro.org>
6508
6509 * printcmd.c (build_address_symbolic): Call
6510 gdbarch_addr_bits_remove for text minimal symbols.
6511
65122013-06-07 Will Newton <will.newton@linaro.org>
6513
6514 * MAINTAINERS: Add myself to Write After Approval.
6515
65162013-06-07 Yao Qi <yao@codesourcery.com>
6517
6518 * tracepoint.c (start_tracing): Move code to ...
6519 (trace_reset_local_state): ... here. New.
6520 (disconnect_tracing): Don't call set_current_traceframe,
6521 set_tracepoint_num, and set_traceframe_context. Call
6522 trace_reset_local_state instead.
6523 (tfile_close): Call trace_reset_local_state.
6524 * ctf.c (ctf_close): Likewise.
6525 * remote.c (remote_close): Likewise.
6526 * tracepoint.h (trace_reset_local_state): Declare.
6527
65282013-06-06 Doug Evans <dje@google.com>
6529
6530 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6531 and fix header docs.
6532
65332013-06-05 Doug Evans <dje@google.com>
6534 Keith Seitz <keiths@redhat.com>
6535
6536 PR 15519
6537 * cp-namespace.c (find_symbol_in_baseclass): Call
6538 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6539 Check result of call to lookup_symbol_static.
6540 Call lookup_static_symbol_aux unconditionally.
6541 Call check_typedef on base types before accessing them.
6542 (cp_lookup_nested_symbol): Fix comment.
6543
65442013-06-05 Luis Machado <lgustavo@codesourcery.com>
6545
6546 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6547 minimal symbols pointing to function descriptors.
6548
65492013-06-05 Tom Tromey <tromey@redhat.com>
6550
6551 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6552
65532013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6554 Pedro Alves <palves@redhat.com>
6555
6556 * remote.c (remote_wait_as): Restore signal handler before returning
6557 when GDB gets a notification.
6558
65592013-06-04 Gary Benson <gbenson@redhat.com>
6560
6561 PR 2328
6562 * breakpoint.h (handle_solib_event): Moved function declaration
6563 to solib.h.
6564 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6565 (bpstat_stop_status): Pass new argument to handle_solib_event.
6566 * solib.h (update_solib_breakpoints): New function declaration.
6567 (handle_solib_event): Moved function declaration from
6568 breakpoint.h.
6569 * solib.c (update_solib_breakpoints): New function.
6570 (handle_solib_event): Moved function from breakpoint.c.
6571 Updated to call solib_ops->handle_event if not NULL.
6572 * solist.h (target_so_ops): New fields "update_breakpoints" and
6573 "handle_event".
6574 * infrun.c (set_stop_on_solib_events): New function.
6575 (_initialize_infrun): Use the above for "set
6576 stop-on-solib-events".
6577 (handle_inferior_event): Pass new argument to handle_solib_event.
6578 * solib-svr4.c (probe.h): New include.
6579 (svr4_free_library_list): New forward declaration.
6580 (probe_action): New enum.
6581 (probe_info): New struct.
6582 (probe_info): New static variable.
6583 (NUM_PROBES): New definition.
6584 (svr4_info): New fields "using_xfer", "probes_table" and
6585 "solib_list".
6586 (free_probes_table): New function.
6587 (free_solib_list): New function.
6588 (svr4_pspace_data_cleanup): Free probes table and solib list.
6589 (svr4_copy_library_list): New function.
6590 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6591 (svr4_read_so_list): New parameter "prev_lm".
6592 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6593 (svr4_current_sos): New function.
6594 (probe_and_action): New struct.
6595 (hash_probe_and_action): New function.
6596 (equal_probe_and_action): Likewise.
6597 (register_solib_event_probe): Likewise.
6598 (solib_event_probe_at): Likewise.
6599 (solib_event_probe_action): Likewise.
6600 (solist_update_full): Likewise.
6601 (solist_update_incremental): Likewise.
6602 (disable_probes_interface_cleanup): Likewise.
6603 (svr4_handle_solib_event): Likewise.
6604 (svr4_update_solib_event_breakpoint): Likewise.
6605 (svr4_update_solib_event_breakpoints): Likewise.
6606 (svr4_create_solib_event_breakpoints): Likewise.
6607 (enable_break): Free probes table before creating breakpoints.
6608 Use svr4_create_solib_event_breakpoints to create breakpoints.
6609 (svr4_solib_create_inferior_hook): Free the solib list.
6610 (_initialize_svr4_solib): Initialise
6611 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6612
66132013-06-04 Gary Benson <gbenson@redhat.com>
6614
6615 * target.h (target_ops): New field
6616 "to_augmented_libraries_svr4_read".
6617 (target_augmented_libraries_svr4_read): New macro.
6618 * target.c (update_current_target): Handle
6619 to_augmented_libraries_svr4_read.
6620 * remote.c (remote_state): New field
6621 "augmented_libraries_svr4_read".
6622 (remote_augmented_libraries_svr4_read_feature): New function.
6623 (remote_protocol_features): Add entry for
6624 "augmented-libraries-svr4-read".
6625 (remote_augmented_libraries_svr4_read): New function.
6626 (init_remote_ops): Initialize
6627 remote_ops.to_augmented_libraries_svr4_read.
6628
66292013-06-04 Gary Benson <gbenson@redhat.com>
6630
6631 * NEWS: Update.
6632
66332013-06-04 Gary Benson <gbenson@redhat.com>
6634
6635 * objfiles.h (inhibit_section_map_updates): New function
6636 declaration.
6637 (resume_section_map_updates): Likewise.
6638 (resume_section_map_updates_cleanup): Likewise.
6639 * objfiles.c (objfile_pspace_info): Removed field
6640 "objfiles_changed_p". New fields "new_objfiles_available",
6641 "section_map_dirty" and "inhibit_updates".
6642 (allocate_objfile): Set new_objfiles_available.
6643 (free_objfile): Set section_map_dirty.
6644 (objfile_relocate1): Likewise.
6645 (in_plt_section): Likewise.
6646 (find_pc_section): Update the conditions under which the
6647 section map will be updated.
6648 (inhibit_section_map_updates): New function.
6649 (resume_section_map_updates): Likewise.
6650 (resume_section_map_updates_cleanup): Likewise.
6651
66522013-06-04 Gary Benson <gbenson@redhat.com>
6653
6654 * probe.h (get_probe_argument_count): New declaration.
6655 (evaluate_probe_argument): Likewise.
6656 * probe.c (get_probe_argument_count): New function.
6657 (evaluate_probe_argument): Likewise.
6658 (probe_safe_evaluate_at_pc): Use the above new functions.
6659
66602013-06-04 Alan Modra <amodra@gmail.com>
6661
6662 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6663 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6664 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6665 target mem reads on optional insns.
6666 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6667 ppc_insns_match_pattern calls.
6668 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6669 Add match for power7 thread safety insns, and new order of
6670 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6671 invocation in comment, and update rest of comment.
6672 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6673 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6674 (ppc64_standard_linkage2_target): Update insn offsets.
6675 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6676 stubs first. Update calls.
6677
66782013-06-04 Yao Qi <yao@codesourcery.com>
6679
6680 * solib.c (solib_find): Don't need dir separator if path has
6681 drive spec.
6682
66832013-06-03 Joel Brobecker <brobecker@adacore.com>
6684
6685 Revert (indirectly causes a SIGSEGV):
6686 * machoread.c (macho_symfile_read): Assign first cleanup to
6687 'back_to'.
6688
66892013-06-03 Yao Qi <yao@codesourcery.com>
6690
6691 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6692 mi-parse.c. Make them static.
6693 (mi_all_values): Likewise.
6694 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6695 mi_parse_print_values. Make it external.
6696 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6697 Remove the declarations.
6698 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6699 * mi/mi-parse.h (mi_parse_print_values): Declare.
6700 * mi/mi-cmd-stack.c: Include mi-parse.h.
6701 (parse_print_values): Remove
6702 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6703 of parse_print_values.
6704 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6705
67062013-05-31 Pedro Alves <pedro@codesourcery.com>
6707 Yao Qi <yao@codesourcery.com>
6708
6709 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6710 (encode_actions): Move code to ...
6711 (all_tracepoint_actions_and_cleanup): ... here. New.
6712 (trace_dump_command): Likewise.
6713
67142013-05-30 Tom Tromey <tromey@redhat.com>
6715
6716 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6717
67182013-05-30 Tom Tromey <tromey@redhat.com>
6719
6720 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6721 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6722 'old_chain' argument. Add 'parser_result' argument.
6723 (gdb_xml_create_parser_and_cleanup): Remove old version.
6724 (gdb_xml_parse_quick): Update.
6725 (xml_process_xincludes): Update.
6726 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6727 declare.
6728
67292013-05-30 Tom Tromey <tromey@redhat.com>
6730
6731 * probe.c (collect_probes): Check arguments for NULL before
6732 calling compile_rx_or_error.
6733 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6734 Remove NULL return.
6735
67362013-05-30 Tom Tromey <tromey@redhat.com>
6737
6738 * infrun.c (adjust_pc_after_break): Introduce an outer null
6739 cleanup.
6740
67412013-05-30 Tom Tromey <tromey@redhat.com>
6742
6743 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6744
67452013-05-30 Tom Tromey <tromey@redhat.com>
6746
6747 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6748 for 'old_chain'. Do not check 'head' before processing
6749 cleanups.
6750
67512013-05-30 Tom Tromey <tromey@redhat.com>
6752
6753 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6754 "cleanup_tuple".
6755
67562013-05-30 Tom Tromey <tromey@redhat.com>
6757
6758 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6759 inner scope. Unconditionally call do_cleanups.
6760
67612013-05-30 Tom Tromey <tromey@redhat.com>
6762
6763 * source.c (find_and_open_source): Call do_cleanups.
6764
67652013-05-30 Tom Tromey <tromey@redhat.com>
6766
6767 * linux-thread-db.c (thread_db_load_search): Unconditionally
6768 call do_cleanups.
6769
67702013-05-30 Tom Tromey <tromey@redhat.com>
6771
6772 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6773 for 'cleanup'; instead use a later one.
6774
67752013-05-30 Tom Tromey <tromey@redhat.com>
6776
6777 * python/py-breakpoint.c (bppy_get_commands): Use
6778 explicit, unconditional return.
6779 * python/py-frame.c (frapy_read_var): Likewise.
6780 * python/python.c (gdbpy_decode_line): Likewise.
6781
67822013-05-30 Tom Tromey <tromey@redhat.com>
6783
6784 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6785 do_cleanups on all return paths.
6786
67872013-05-30 Tom Tromey <tromey@redhat.com>
6788
6789 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6790
67912013-05-30 Tom Tromey <tromey@redhat.com>
6792
6793 * stabsread.c (read_struct_type): Call do_cleanups along
6794 all return paths.
6795
67962013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6797
6798 * mips-linux-tdep.c: Adjust formatting throughout.
6799
68002013-05-30 Tom Tromey <tromey@redhat.com>
6801
6802 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6803 along all return paths.
6804
68052013-05-30 Tom Tromey <tromey@redhat.com>
6806
6807 * symfile.c (find_separate_debug_file): Call do_cleanups
6808 along all return paths.
6809
68102013-05-30 Tom Tromey <tromey@redhat.com>
6811
6812 * symtab.c (search_symbols): Introduce a null cleanup for
6813 'retval_chain'.
6814
68152013-05-30 Tom Tromey <tromey@redhat.com>
6816
6817 * python/py-value.c (valpy_binop): Call do_cleanups before
6818 exiting loop.
6819
68202013-05-30 Tom Tromey <tromey@redhat.com>
6821
6822 * python/py-prettyprint.c (print_children): Remove extra
6823 do_cleanups call.
6824
68252013-05-30 Tom Tromey <tromey@redhat.com>
6826
6827 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6828 all return paths.
6829
68302013-05-30 Tom Tromey <tromey@redhat.com>
6831
6832 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6833 along all return paths.
6834
68352013-05-30 Tom Tromey <tromey@redhat.com>
6836
6837 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6838 call do_cleanups.
6839
68402013-05-30 Tom Tromey <tromey@redhat.com>
6841
6842 * varobj.c (c_value_of_root): Call do_cleanups along all
6843 return paths.
6844
68452013-05-30 Tom Tromey <tromey@redhat.com>
6846
6847 * tracepoint.c (trace_dump_command): Unconditionally call
6848 do_cleanups.
6849
68502013-05-30 Tom Tromey <tromey@redhat.com>
6851
6852 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6853 do_cleanups earlier.
6854
68552013-05-30 Tom Tromey <tromey@redhat.com>
6856
6857 * machoread.c (macho_symfile_read): Assign first cleanup to
6858 'back_to'.
6859
68602013-05-30 Tom Tromey <tromey@redhat.com>
6861
6862 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6863
68642013-05-30 Tom Tromey <tromey@redhat.com>
6865
6866 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6867
68682013-05-30 Tom Tromey <tromey@redhat.com>
6869
6870 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6871 call discard_cleanups.
6872 (inf_ptrace_attach): Likewise.
6873
68742013-05-30 Tom Tromey <tromey@redhat.com>
6875
6876 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6877 return paths.
6878 (mips_initialize): Likewise.
6879 (common_open): Call do_cleanups.
6880
68812013-05-30 Tom Tromey <tromey@redhat.com>
6882
6883 * utils.c (internal_vproblem): Call do_cleanups.
6884
68852013-05-30 Tom Tromey <tromey@redhat.com>
6886
6887 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6888
68892013-05-30 Tom Tromey <tromey@redhat.com>
6890
6891 * cli/cli-script.c (setup_user_args): Don't return after error.
6892
68932013-05-30 Tom Tromey <tromey@redhat.com>
6894
6895 * somread.c (som_symtab_read): Call do_cleanups.
6896
68972013-05-30 Tom Tromey <tromey@redhat.com>
6898
6899 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6900
69012013-05-30 Tom Tromey <tromey@redhat.com>
6902
6903 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6904 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6905 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6906 * source.c (show_substitute_path_command): Call do_cleanups.
6907 (unset_substitute_path_command, set_substitute_path_command):
6908 Likewise.
6909 * symfile.c (load_command): Call do_cleanups.
6910
69112013-05-30 Tom Tromey <tromey@redhat.com>
6912
6913 * contrib/cleanup_check.py: New file.
6914 * contrib/gcc-with-excheck: Add option parsing.
6915
69162013-05-30 Joel Brobecker <brobecker@adacore.com>
6917
6918 * windows-nat.c (windows_delete_thread): Add missing space
6919 in cast expression.
6920
69212013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6922
6923 * inferior.c (top level): Include tilde.h.
6924 (add_inferior_command): Call tilde_expand on the value of 'exec'
6925 argument.
6926
69272013-05-30 Pedro Alves <pedro@codesourcery.com>
6928 Yao Qi <yao@codesourcery.com>
6929
6930 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6931 Caller update.
6932 (encode_actions): Likewise.
6933 * remote.c (remote_download_tracepoint): Caller update.
6934 * tracepoint.h (encode_actions): Update declaration.
6935
69362013-05-30 Pedro Alves <palves@redhat.com>
6937
6938 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6939 pointer.
6940
69412013-05-30 Yao Qi <yao@codesourcery.com>
6942
6943 * remote.c (remote_check_symbols): Remove unused parameter
6944 'objfile'.
6945 Declaration update.
6946 (remote_start_remote, remote_new_objfile): Caller update.
6947
69482013-05-30 Yao Qi <yao@codesourcery.com>
6949
6950 * mi/mi-cmds.c (mi_cmds): Define MI command
6951 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6952 DEF_MI_CMD_CLI.
6953
69542013-05-29 Pedro Alves <palves@redhat.com>
6955
6956 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6957 (remote_insert_watchpoint, remote_remove_watchpoint)
6958 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6959 (remote_verify_memory, compare_sections_command)
6960 (remote_search_memory): Set the general process/thread on the
6961 remote side.
6962
69632013-05-29 Pedro Alves <palves@redhat.com>
6964
6965 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6966 (_initialize_aarch64_tdep): Don't call
6967 initialize_tdesc_aarch64_without_fpu.
6968 * features/Makefile (WHICH): Remove reference to
6969 aarch64-without-fpu.
6970 * features/aarch64-without-fpu.c: Delete file.
6971 * regformats/aarch64-without-fpu.dat: Delete file.
6972
69732013-05-28 Yao Qi <yao@codesourcery.com>
6974
6975 * tracepoint.c (stringify_collection_list): Remove parameter
6976 'string'.
6977 (encode_actions): Caller update. Remove local variables.
6978
69792013-05-24 Yao Qi <yao@codesourcery.com>
6980
6981 * tracepoint.c (TFILE_PID): Remove.
6982 (tfile_open): Don't add thread and inferior.
6983 (tfile_close): Don't set 'inferior_ptid'. Don't call
6984 exit_inferior_silent.
6985 (tfile_thread_alive): Remove.
6986 (init_tfile_ops): Don't set field 'to_thread_alive' of
6987 tfile_ops.
6988
69892013-05-23 Doug Evans <dje@google.com>
6990
6991 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6992
69932013-05-23 Pedro Alves <palves@redhat.com>
6994
6995 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6996 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6997 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6998 Only define if HAVE_SOCKETS is defined.
6999 * configure.ac: Check for sys/socket.h.
7000 * config.in, configure: Regenerate.
7001
70022013-05-23 Pedro Alves <palves@redhat.com>
7003
7004 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
7005 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
7006 printing uint32_t variables.
7007
70082013-05-23 Pedro Alves <palves@redhat.com>
7009
7010 * NEWS: Mention GDBserver range stepping support.
7011
70122013-05-23 Yao Qi <yao@codesourcery.com>
7013 Pedro Alves <palves@redhat.com>
7014
7015 * gdbthread.h (struct thread_control_state) <may_range_step>: New
7016 field.
7017 * infcmd.c (step_once, until_next_command): Enable range stepping.
7018 * infrun.c (displaced_step_prepare): Disable range stepping.
7019 (resume): Disable range stepping if stepping over a breakpoint or
7020 we have software watchpoints. If range stepping is enabled,
7021 assert the thread is in the stepping range.
7022 (clear_proceed_status_thread): Clear may_range_step.
7023 (handle_inferior_event): Disable range stepping as soon as we know
7024 the thread that hit the event. Re-enable it whenever we're going
7025 to step with a step range.
7026 * remote.c (struct vCont_action_support) <r>: New field.
7027 (use_range_stepping): New global.
7028 (remote_vcont_probe): Handle 'r' action.
7029 (append_resumption): Append an 'r' action if the thread may range
7030 step.
7031 (show_range_stepping): New function.
7032 (set_range_stepping): New function.
7033 (_initialize_remote): Call add_setshow_boolean_cmd to register the
7034 'set range-stepping' and 'show range-stepping' commands.
7035 * NEWS: Mention range stepping, the new vCont;r action, and the
7036 new "set/show range-stepping" commands.
7037
70382013-05-23 Yao Qi <yao@codesourcery.com>
7039 Pedro Alves <palves@redhat.com>
7040
7041 * remote.c (struct vCont_action_support): New struct.
7042 (struct remote_state) <support_vCont_t>: Remove field.
7043 <vCont_actions_support>: New field.
7044 (remote_vcont_probe, remote_stop_ns): Update.
7045
70462013-05-23 Yao Qi <yao@codesourcery.com>
7047 Pedro Alves <palves@redhat.com>
7048
7049 * gdbthread.h (pc_in_thread_step_range): New declaration.
7050 * thread.c (pc_in_thread_step_range): New function.
7051 * infrun.c (handle_inferior_event): Use it.
7052
70532013-05-23 Joel Brobecker <brobecker@adacore.com>
7054
7055 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
7056 of sprintf.
7057
70582013-05-22 Keith Seitz <keiths@redhat.com>
7059
7060 * ada-lang.c (is_known_support_routine): Add explicit free of
7061 'func_name' from find_frame_funname.
7062 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7063 for func_name from find_frame_funname.
7064 * python/py-frame.c (frapy_name): Add explicit free of
7065 'name' from find_frame_funname.
7066 * stack.c (find_frame_funname): Add comment explaining that
7067 funcp must be freed by the caller.
7068 Return copy of symbol names instead of pointers.
7069 (print_frame): Add a cleanup for 'funname' from
7070 find_frame_funname.
7071 * stack.h (find_frame_funname): Remove "const" from
7072 'funname' parameter.
7073
70742013-05-22 Tom Tromey <tromey@redhat.com>
7075
7076 PR c++/15401:
7077 * c-valprint.c (c_value_print): Use value_addr for
7078 references. Convert back to reference type with value_ref.
7079
70802013-05-22 Eli Zaretskii <eliz@gnu.org>
7081
7082 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7083 unloaded DLL, it will be done by handle_solib_event. See
7084 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7085 details.
7086
70872013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7088
7089 * ui-out.c: Create typedef ui_out_level_p and define vector
7090 operations for that type.
7091 (struct ui_out): Use a vector instead of an array.
7092 (current_level): Return level from a vector.
7093 (push_level): Create a level in a vector.
7094 (pop_level): Delete a level in a vector.
7095 (ui_out_new): Create initial level zero level, and store in a
7096 vector.
7097 (ui_out_destroy): Add vector cleanup.
7098
70992013-05-22 Pedro Alves <palves@redhat.com>
7100
7101 * python/python-internal.h (gdb_Py_DECREF): Tag with
7102 "ARI: editCase function".
7103
71042013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7105
7106 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7107
71082013-05-21 Pedro Alves <palves@redhat.com>
7109
7110 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7111 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7112 * python/py-utils.c (py_decref): Don't check for NULL before
7113 calling Py_DECREF.
7114
71152013-05-21 Pedro Alves <palves@redhat.com>
7116
7117 * python/py-utils.c (py_decref): Remove extra braces.
7118 (gdb_pymodule_addobject): Remove extra braces.
7119 * python-internal.h (gdb_Py_DECREF): New static inline function.
7120 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7121
71222013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7123
7124 * breakpoints.c (detach_breakpoints): Do not
7125 detach breakpoints locations with loc_type bp_loc_other.
7126
71272013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7128
7129 Workaround Python 2.6.
7130 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7131 a block.
7132
71332013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 Code cleanup: constification.
7136 * solib.c (solib_ops): Make return type and ops variable type const.
7137 (set_solib_ops): Make the new_ops parameter and ops variable const.
7138 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7139 (solib_add, solib_keep_data_in_core, clear_solib)
7140 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7141 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7142 const.
7143 * solib.h (set_solib_ops): Make the new_ops parameter const.
7144
71452013-05-21 Joel Brobecker <brobecker@adacore.com>
7146
7147 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7148 variable.
7149 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7150 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7151 (SYSTEM_GDBINIT_FILES): New variables.
7152 (all): Add stamp-system-gdbinit.
7153 (stamp-system-gdbinit): New rule.
7154 (clean-system-gdbinit, install-system-gdbinit)
7155 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7156 (install-only): Add dependency on install-system-gdbinit.
7157 (uninstall): Add dependency on uninstall-system-gdbinit.
7158 (clean): Add dependency on clean-system-gdbinit.
7159 * system-gdbinit/elinos.py: New file.
7160 * system-gdbinit/wrs-linux.py: New file.
7161
71622013-05-21 Joel Brobecker <brobecker@adacore.com>
7163
7164 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7165
71662013-05-21 Hui Zhu <hui@codesourcery.com>
7167
7168 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7169 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7170 * mi/mi-cmd-break.c (ctype.h): New include.
7171 (gdb_obstack.h): New include.
7172 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7173 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7174 (mi_cmd_dprintf_insert): New.
7175 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7176 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7177
71782013-05-20 Tom Tromey <tromey@redhat.com>
7179
7180 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7181
71822013-05-20 Tom Tromey <tromey@redhat.com>
7183
7184 * python/py-value.c (valpy_get_dynamic_type): Simplify
7185 dynamic_type assignment. Use Py_XINCREF.
7186
71872013-05-20 Tom Tromey <tromey@redhat.com>
7188
7189 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7190
71912013-05-20 Tom Tromey <tromey@redhat.com>
7192
7193 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7194 (gdbpy_selected_frame): Move object-construction code
7195 out of TRY_CATCH.
7196
71972013-05-20 Tom Tromey <tromey@redhat.com>
7198
7199 * python/py-arch.c (gdbpy_initialize_arch): Use
7200 gdb_pymodule_addobject.
7201 * python/py-block.c (gdbpy_initialize_blocks): Use
7202 gdb_pymodule_addobject.
7203 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7204 gdb_pymodule_addobject.
7205 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7206 gdb_pymodule_addobject.
7207 * python/py-event.c (gdbpy_initialize_event_generic): Use
7208 gdb_pymodule_addobject.
7209 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7210 gdb_pymodule_addobject.
7211 * python/py-evts.c (add_new_registry): Use
7212 gdb_pymodule_addobject.
7213 (gdbpy_initialize_py_events): Likewise.
7214 * python/py-finishbreakpoint.c
7215 (gdbpy_initialize_finishbreakpoints): Use
7216 gdb_pymodule_addobject.
7217 * python/py-frame.c (gdbpy_initialize_frames): Use
7218 gdb_pymodule_addobject.
7219 * python/py-function.c (gdbpy_initialize_functions): Use
7220 gdb_pymodule_addobject.
7221 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7222 gdb_pymodule_addobject.
7223 * python/py-infthread.c (gdbpy_initialize_thread): Use
7224 gdb_pymodule_addobject.
7225 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7226 gdb_pymodule_addobject.
7227 * python/py-param.c (gdbpy_initialize_parameters): Use
7228 gdb_pymodule_addobject.
7229 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7230 gdb_pymodule_addobject.
7231 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7232 gdb_pymodule_addobject.
7233 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7234 gdb_pymodule_addobject.
7235 * python/py-type.c (gdbpy_initialize_types): Use
7236 gdb_pymodule_addobject.
7237 * python/py-utils.c (gdb_pymodule_addobject): New function.
7238 * python/py-value.c (gdbpy_initialize_values): Use
7239 gdb_pymodule_addobject.
7240 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7241 * python/python.c (_initialize_python): Use
7242 gdb_pymodule_addobject.
7243
72442013-05-20 Tom Tromey <tromey@redhat.com>
7245
7246 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7247 * python/py-param.c (get_set_value, get_show_value): Use
7248 explicit decrefs.
7249 * python/python.c (start_type_printers, apply_type_printers):
7250 Use explicit decrefs.
7251
72522013-05-20 Tom Tromey <tromey@redhat.com>
7253
7254 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7255 incref the module.
7256
72572013-05-20 Tom Tromey <tromey@redhat.com>
7258
7259 * python/python.c (gdbpy_run_events): Decref the result
7260 of PyObject_CallObject.
7261
72622013-05-20 Tom Tromey <tromey@redhat.com>
7263
7264 * python/py-symtab.c (set_sal): Use
7265 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7266 (symtab_and_line_to_sal_object): Update.
7267
72682013-05-20 Tom Tromey <tromey@redhat.com>
7269
7270 * python/py-param.c (compute_enum_values): Decref 'item'.
7271
72722013-05-20 Tom Tromey <tromey@redhat.com>
7273
7274 * mi/mi-main.c: Include python-internal.h.
7275 (mi_cmd_list_features): Check gdb_python_initialized.
7276 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7277 (python_inferior_exit, python_new_objfile, add_thread_object)
7278 (delete_thread_object, py_free_inferior): Check
7279 gdb_python_initialized.
7280 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7281 gdb_python_initialized.
7282 * python/py-type.c (save_objfile_types): Check
7283 gdb_python_initialized.
7284 * python/python-internal.h (gdb_python_initialized): Declare.
7285 * python/python.c (ensure_python_env): Throw exception if
7286 Python not initialized.
7287 (before_prompt_hook, source_python_script_for_objfile)
7288 (start_type_printers, apply_type_printers,
7289 free_type_printers): Check gdb_python_initialized.
7290 * varobj.c (varobj_get_display_hint)
7291 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7292 (install_new_value_visualizer, varobj_set_visualizer)
7293 (value_get_print_value): Check gdb_python_initialized.
7294
72952013-05-20 Tom Tromey <tromey@redhat.com>
7296
7297 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7298 Check errors.
7299 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7300 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7301 Check errors.
7302 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7303 Check errors.
7304 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7305 Check errors.
7306 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7307 Check errors.
7308 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7309 init function to return 'int'.
7310 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7311 Return 'int'. Check errors.
7312 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7313 Check errors.
7314 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7315 Return 'int'. Check errors.
7316 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7317 Check errors.
7318 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7319 Check errors.
7320 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7321 Check errors.
7322 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7323 Check errors.
7324 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7325 Check errors.
7326 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7327 Check errors.
7328 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7329 Check errors.
7330 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7331 Check errors.
7332 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7333 Check errors.
7334 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7335 Check errors.
7336 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7337 Check errors.
7338 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7339 Check errors.
7340 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7341 Check errors.
7342 * python/python-internal.h (gdbpy_initialize_auto_load,
7343 gdbpy_initialize_values, gdbpy_initialize_frames,
7344 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7345 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7346 gdbpy_initialize_blocks, gdbpy_initialize_types,
7347 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7348 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7349 gdbpy_initialize_finishbreakpoints,
7350 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7351 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7352 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7353 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7354 gdbpy_initialize_signal_event,
7355 gdbpy_initialize_breakpoint_event,
7356 gdbpy_initialize_continue_event,
7357 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7358 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7359 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7360 * python/python.c (gdb_python_initialized): New global.
7361 (gdbpy_initialize_events): Return 'int'. Check errors.
7362 (_initialize_python): Check errors. Set
7363 gdb_python_initialized.
7364
73652013-05-20 Tom Tromey <tromey@redhat.com>
7366
7367 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7368 Decref the reslut of PyObject_CallMethod.
7369
73702013-05-20 Tom Tromey <tromey@redhat.com>
7371
7372 * python/py-event.c (gdbpy_initialize_event_generic): Return
7373 early if PyType_Ready fails.
7374
73752013-05-20 Tom Tromey <tromey@redhat.com>
7376
7377 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7378 as 'default' in the switch.
7379
73802013-05-20 Tom Tromey <tromey@redhat.com>
7381
7382 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7383 get_addr_from_python calls out of TRY_CATCH.
7384 (infpy_write_memory, infpy_search_memory): Likewise.
7385 * python/py-utils.c (get_addr_from_python): Return negative
7386 value on error. Use TRY_CATCH.
7387 * python/python-internal.h (get_addr_from_python): Use
7388 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7389
73902013-05-20 Tom Tromey <tromey@redhat.com>
7391
7392 * python/py-event.c (evpy_emit_event): Decref the
7393 result of PyObject_CallFunctionObjArgs.
7394
73952013-05-20 Tom Tromey <tromey@redhat.com>
7396
7397 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7398 Correctly decref.
7399
74002013-05-20 Tom Tromey <tromey@redhat.com>
7401
7402 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7403
74042013-05-20 Tom Tromey <tromey@redhat.com>
7405
7406 * python/py-event.h (gdbpy_initialize_event_generic): Use
7407 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7408 * python/py-evts.c (add_new_registry): Use
7409 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7410 * python/python-internal.h
7411 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7412
74132013-05-20 Tom Tromey <tromey@redhat.com>
7414
7415 * python/py-arch.c (archpy_disassemble): Update.
7416 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7417 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7418 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7419 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7420 macro.
7421 (GDB_PY_HANDLE_EXCEPTION): Update.
7422 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7423
74242013-05-20 Tom Tromey <tromey@redhat.com>
7425
7426 * python/python-internal.h (events_object_type): Remove.
7427
74282013-05-20 Tom Tromey <tromey@redhat.com>
7429
7430 * python/py-event.h (evpy_emit_event): Use
7431 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7432 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7433 New macro.
7434
74352013-05-20 Tom Tromey <tromey@redhat.com>
7436
7437 * py-evtregistry.c (create_event_object): Decref
7438 eventregistry_object if PyList_New fails.
7439
74402013-05-20 Tom Tromey <tromey@redhat.com>
7441
7442 * py-cmd.c (gdbpy_string_to_argv): Check result of
7443 PyList_New.
7444
74452013-05-20 Tom Tromey <tromey@redhat.com>
7446
7447 * python/python.c (before_prompt_hook): Add cleanup to
7448 decref 'hook'.
7449
74502013-05-20 Tom Tromey <tromey@redhat.com>
7451
7452 * python/py-function.c (fnpy_init): Decref result of
7453 PyObject_GetAttrString.
7454
74552013-05-20 Tom Tromey <tromey@redhat.com>
7456
7457 * python/py-threadevent.c (get_event_thread): Use
7458 CPYCHECKER_RETURNS_BORROWED_REF.
7459 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7460 New define.
7461 (pspace_to_pspace_object, objfile_to_objfile_object)
7462 (find_thread_object): Use it.
7463
74642013-05-20 Tom Tromey <tromey@redhat.com>
7465
7466 * python/py-arch.c (arch_object_type): Use
7467 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7468 * python/py-block.c (block_syms_iterator_object_type):
7469 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7470 * python/py-bpevent.c (breakpoint_event_object_type):
7471 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7472 * python/py-cmd.c (cmdpy_object_type): Use
7473 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7474 * python/py-continueevent.c (continue_event_object_type):
7475 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7476 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7477 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7478 * python/py-events.h (thread_event_object_type):
7479 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7480 * python/py-evtregistry.c (eventregistry_object_type): Use
7481 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7482 * python/py-exitedevent.c (exited_event_object_type):
7483 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7484 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7485 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7486 * python/py-function.c (fnpy_object_type): Use
7487 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7488 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7489 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7490 * python/py-infthread.c (thread_object_type): Use
7491 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7492 * python/py-lazy-string.c (lazy_string_object_type):
7493 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7494 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7495 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7496 * python/py-objfile.c (objfile_object_type): Use
7497 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7498 * python/py-param.c (parmpy_object_type):
7499 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7500 * python/py-progspace.c (pspace_object_type):
7501 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7502 * python/py-signalevent.c (signal_event_object_type):
7503 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7504 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7505 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7506 * python/py-type.c (type_object_type, field_object_type)
7507 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7508 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7509 define.
7510 (value_object_type, block_object_type, symbol_object_type)
7511 (event_object_type, stop_event_object_type, breakpoint_object_type)
7512 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7513
75142013-05-20 Andreas Tobler <andreas@fgznet.ch>
7515
7516 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7517 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7518
75192013-05-20 Doug Evans <dje@google.com>
7520
7521 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7522 For Fission.
7523 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7524 reading_dwo_directly.
7525 (struct signatured_type): New member dwo_unit.
7526 (struct die_reader_specs): New member comp_dir.
7527 (create_signatured_type_table_from_index): Use malloc for
7528 all_type_units instead of objfile's obstack.
7529 (create_all_type_units): Ditto.
7530 (fill_in_sig_entry_from_dwo_entry): New function.
7531 (add_type_unit): New function.
7532 (lookup_dwo_signatured_type): New function.
7533 (lookup_dwp_signatured_type): New function.
7534 (lookup_signatured_type): New arg cu. All callers updated.
7535 (init_cu_die_reader): Initialize comp_dir.
7536 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7537 Change assert of matching type signatures to call error on mismatch.
7538 (lookup_dwo_unit): Add assert.
7539 (init_tu_and_read_dwo_dies): New function.
7540 (init_cutu_and_read_dies): Call it.
7541 (build_type_unit_groups): Handle case of no type unit groups created.
7542 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7543 (lookup_dwo_cutu): Tweak complaint.
7544 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7545 (dwarf2_per_objfile_free): Free all_type_units.
7546
75472013-05-20 Joel Brobecker <brobecker@adacore.com>
7548
7549 * windows-nat.c (handle_unload_dll): Add missing empty line.
7550
75512013-05-20 Joel Brobecker <brobecker@adacore.com>
7552
7553 * dwarf2read.c (prototyped_function_p): New function.
7554 (read_subroutine_type): Use it.
7555
75562013-05-20 Joel Brobecker <brobecker@adacore.com>
7557
7558 * rs6000-aix-tdep.c: De-indent some example code provided
7559 as a comment.
7560
75612013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7562
7563 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7564 region is ok for a hardware watchpoint using the new ptrace interface
7565 on Power servers.
7566
75672013-05-17 Doug Evans <dje@google.com>
7568
7569 * NEWS: Mention new maintenance commands check-symtabs, and
7570 expand-symtabs, and renamed check-psymtabs.
7571 * psymtab.c (maintenance_check_psymtabs): Renamed from
7572 maintenance_check_symtabs. Only process already-expanded symbol
7573 tables.
7574 (_initialize_psymtab): Update.
7575 * symmisc.c (maintenance_check_symtabs): New function.
7576 (maintenance_expand_name_matcher): New function
7577 (maintenance_expand_file_matcher): New function
7578 (maintenance_expand_symtabs): New function.
7579 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7580 commands.
7581
75822013-05-17 Tom Tromey <tromey@redhat.com>
7583
7584 * python/py-inferior.c (infpy_read_memory): Don't call
7585 PyErr_SetString if PyObject_New fails.
7586 * python/py-frame.c (frame_info_to_frame_object): Don't call
7587 PyErr_SetString if PyObject_New fails.
7588
75892013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7590
7591 * acinclude.m4: Add check for dlopen in libdl.
7592 * configure.ac: Ditto.
7593 * configure: Regenerate.
7594
75952013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7596
7597 * frame.c (frame_stash): Convert to htab.
7598 (frame_addr_hash): New function.
7599 (frame_addr_hash_eq): New function.
7600 (frame_stash_create): Convert function to create
7601 a hash table.
7602 (frame_stash_add): Convert function to add an entry to a hash
7603 table.
7604 (frame_stash_find): Convert function to search the hash table.
7605 (frame_stash_invalidate): Convert function to empty the hash
7606 table.
7607 (get_frame_id): Only add to stash if a frame_id is created.
7608 (_initialize_frame): Call frame_stash_create.
7609
76102013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7611
7612 * configure.ac: Ensure MIG is available when building for GNU Hurd
7613 hosts.
7614 * configure: Regenerate.
7615
76162013-05-16 Joel Brobecker <brobecker@adacore.com>
7617
7618 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7619
76202013-05-16 Joel Brobecker <brobecker@adacore.com>
7621
7622 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7623 all cleanups are done before returning from this function.
7624
76252013-05-15 Joel Brobecker <brobecker@adacore.com>
7626
7627 * utils.h: #include "exceptions.h".
7628 (enum errors): Remove partial declaration.
7629
76302013-05-15 Joel Brobecker <brobecker@adacore.com>
7631
7632 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7633 * gdbarch.h, gdbarch.c: Regenerate.
7634 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7635 handling.
7636
7637 * rs6000-aix-tdep.h: New file.
7638 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7639 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7640 "xml-utils.h".
7641 (struct field_info, struct ld_info_desc): New types.
7642 (ld_info32_desc, ld_info64_desc): New static constants.
7643 (struct ld_info): New type.
7644 (rs6000_aix_extract_ld_info): New function.
7645 (rs6000_aix_shared_library_to_xml): Likewise.
7646 (rs6000_aix_ld_info_to_xml): Likewise.
7647 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7648 (rs6000_aix_init_osabi): Add call to
7649 set_gdbarch_core_xfer_shared_libraries_aix.
7650 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7651 Remove "xml-utils.h" include.
7652 (LdInfo): Delete typedef.
7653 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7654 Delete macros.
7655 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7656 Adjust code accordingly.
7657 (rs6000_core_ldinfo): Delete, folded into
7658 rs6000_aix_core_xfer_shared_libraries_aix.
7659 (rs6000_xfer_shared_library): Delete.
7660 (rs6000_xfer_shared_libraries): Reimplement.
7661
76622013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7663
7664 * record.c (record_goto_cmdlist): New.
7665 (cmd_record_goto): Split into this ...
7666 (cmd_record_goto_begin): ... this
7667 (cmd_record_goto_end): ... and this.
7668 (_initialize_record): Change "record goto" to prefix command.
7669 Add commands for "record goto begin" and "record goto end".
7670 Add an alias for "record goto start" to "record goto begin".
7671
76722013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
7674 * linespec.c (convert_linespec_to_sals): New comment for
7675 SOURCE_FILENAME assignment.
7676
76772013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7678
7679 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7680 internal_warning.
7681
76822013-05-14 Tom Tromey <tromey@redhat.com>
7683
7684 * eval.c (parse_and_eval_long): Make 'exp' const.
7685 * value.h (parse_and_eval_long): Update.
7686
76872013-05-14 Tom Tromey <tromey@redhat.com>
7688
7689 * ui-file.c (gdb_fopen): Make arguments const.
7690 * ui-file.h (gdb_fopen): Make arguments const.
7691
76922013-05-14 Tom Tromey <tromey@redhat.com>
7693
7694 * remote.c (remote_set_trace_notes): Make arguments const.
7695 * target.c (update_current_target): Update cast.
7696 * target.h (to_set_trace_notes): Make arguments const.
7697
76982013-05-14 Tom Tromey <tromey@redhat.com>
7699
7700 * go32-nat.c (go32_terminal_info): Make 'args' const.
7701 * inferior.h (child_terminal_info): Update.
7702 * inflow.c (child_terminal_info): Make 'args' const.
7703 * target.c (default_terminal_info): Make 'args' const.
7704 (debug_to_terminal_save_ours): Likewise.
7705 * target.h (struct target_ops) <to_terminal_info>: Make argument
7706 const.
7707
77082013-05-13 Tom Tromey <tromey@redhat.com>
7709
7710 * gcore.c (create_gcore_bfd): Make 'filename' const.
7711 * gcore.h (create_gcore_bfd): Make 'filename' const.
7712 * record-full.c (record_full_save): Make 'recfilename' const.
7713 * target.c (target_save_record): Make 'filename' const.
7714 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7715 const.
7716 (target_save_record): Likewise.
7717
77182013-05-13 Tom Tromey <tromey@redhat.com>
7719
7720 PR gdb/15338:
7721 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7722 ranges section has been read.
7723
77242013-05-13 Tom Tromey <tromey@redhat.com>
7725
7726 PR exp/15364:
7727 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7728 STRUCTOP_PTR>: Return a not_lval value for
7729 EVAL_AVOID_SIDE_EFFECTS.
7730 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7731 for EVAL_AVOID_SIDE_EFFECTS.
7732
77332013-05-13 Joel Brobecker <brobecker@adacore.com>
7734
7735 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7736 floating point registers to register type before storing
7737 value.
7738 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7739 Likewise.
7740
77412013-05-10 Joel Brobecker <brobecker@adacore.com>
7742 Tom Tromey <tromey@redhat.com>
7743
7744 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7745 New functions.
7746 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7747 Declare.
7748 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7749 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7750 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7751 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7752
77532013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7754 Tom Tromey <tromey@redhat.com>
7755
7756 PR build/15414:
7757 * configure: Rebuild.
7758 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7759 with -Wno-format.
7760
77612013-05-10 Pedro Alves <palves@redhat.com>
7762
7763 * remote.c (_initialize_remote): Fix spelling of
7764 qXfer:traceframe-info:read packet in packet config command.
7765
77662013-05-10 David Taylor <dtaylor@emc.com>
7767
7768 PR remote/15455
7769
7770 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7771 "QTro" at start of packet.
7772
77732013-05-10 Joel Brobecker <brobecker@adacore.com>
7774
7775 * solib-aix.c (solib_aix_relocate_section_addresses):
7776 For the .bss section action, apply the same offset as
7777 the .data section.
7778
77792013-05-10 Joel Brobecker <brobecker@adacore.com>
7780
7781 * solib-aix.c (solib_aix_relocate_section_addresses):
7782 Remove FIXME comment.
7783
77842013-05-10 Joel Brobecker <brobecker@adacore.com>
7785
7786 PR tdep/15420:
7787 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7788 New functions, directly copied from sparc-sol-thread.c.
7789 * sparc-sol-thread.c: Delete.
7790 * configure.ac: Remove code handling sparc-solaris-thread.c.
7791 * configure: Regenerate.
7792
77932013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7794
7795 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7796 filter logic.
7797 (backtrace_command): Add "no-filters" option parsing.
7798 (_initialize_stack): Alter help to reflect "no-filters" option.
7799 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7800 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7801 (py-frame.o): Add target
7802 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7803 filter files.
7804 * python/python.h: Add new frame filter constants, and flag enum.
7805 (apply_frame_filter): Add definition.
7806 * python/python.c (apply_frame_filter): New non-Python
7807 enabled function.
7808 * python/py-utils.c (py_xdecref): New function.
7809 (make_cleanup_py_xdecref): Ditto.
7810 * python/py-objfile.c: Declare frame_filters dictionary.
7811 (objfpy_dealloc): Add frame_filters dealloc.
7812 (objfpy_new): Initialize frame_filters attribute.
7813 (objfile_to_objfile_object): Ditto.
7814 (objfpy_get_frame_filters): New function.
7815 (objfpy_set_frame_filters): New function.
7816 * python/py-progspace.c: Declare frame_filters dictionary.
7817 (pspy_dealloc): Add frame_filters dealloc.
7818 (pspy_new): Initialize frame_filters attribute.
7819 (pspacee_to_pspace_object): Ditto.
7820 (pspy_get_frame_filters): New function.
7821 (pspy_set_frame_filters): New function.
7822 * python/py-framefilter.c: New file.
7823 * python/lib/gdb/command/frame_filters.py: New file.
7824 * python/lib/gdb/frames.py: New file.
7825 * python/lib/gdb/__init__.py: Initialize global frame_filters
7826 dictionary
7827 * python/lib/gdb/FrameDecorator.py: New file.
7828 * python/lib/gdb/FrameIterator.py: New file.
7829 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7830 * mi/mi-cmds.h: Declare.
7831 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7832 --no-frame-filter logic, and Python frame filter logic.
7833 (stack_enable_frame_filters): New function.
7834 (parse_no_frame_option): Ditto.
7835 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7836 filter logic.
7837 (mi_cmd_stack_list_locals): Ditto.
7838 (mi_cmd_stack_list_args): Ditto.
7839 (mi_cmd_stack_list_variables): Ditto.
7840 * NEWS: Add frame filter note.
7841
78422013-05-09 Doug Evans <dje@google.com>
7843
7844 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7845 All callers updated.
7846 (syms_from_objfile): Ditto. Make static.
7847 (symbol_file_add_with_addrs): Renamed from
7848 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7849 num_offsets. All callers updated.
7850 * symfile.h (syms_from_objfile): Delete.
7851
7852 * symfile.c (decrement_reading_symtab): Add assert.
7853 (increment_reading_symtab): Ditto.
7854
78552013-05-09 Joel Brobecker <brobecker@adacore.com>
7856
7857 * source.c (forward_search_command): Replace call to getc
7858 by call to fgetc.
7859 (reverse_search_command): Likewise.
7860
78612013-05-08 Doug Evans <dje@google.com>
7862
7863 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7864 matching test.
7865
78662013-05-08 Joel Brobecker <brobecker@adacore.com>
7867
7868 * sol-thread.c (info_cb): Factorize the code a little.
7869
78702013-05-08 Joel Brobecker <brobecker@adacore.com>
7871
7872 * sol-thread.c (info_cb): Rework the output of the "maintenance
7873 info sol-threads" command a bit.
7874
78752013-05-08 Joel Brobecker <brobecker@adacore.com>
7876
7877 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7878 Replace ti.ti_startfunc by ti.ti_pc.
7879
78802013-05-08 Joel Brobecker <brobecker@adacore.com>
7881
7882 * solib-aix.c (solib_aix_free_library_list): New function
7883 for the case where HAVE_LIBEXPAT is not defined.
7884
78852013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7886
7887 PR breakpoints/15413:
7888 * breakpoint.c (condition_completer): Simplify the code to
7889 disconsider multiple locations of breakpoints when completing the
7890 "condition" command.
7891
78922013-05-07 Pierre Muller <muller@sourceware.org>
7893
7894 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7895 instead of <sys/wait.h>.
7896
78972013-05-07 Pierre Muller <muller@sourceware.org>
7898
7899 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7900 trailing new line from warning message.
7901
79022013-05-07 Pierre Muller <muller@sourceware.org>
7903
7904 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7905 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7906
79072013-05-07 Joel Brobecker <brobecker@adacore.com>
7908
7909 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7910 error message (ARI fix).
7911
79122013-05-07 Joel Brobecker <brobecker@adacore.com>
7913
7914 * features/library-list-aix.dtd: Replace library-list by
7915 library-list-aix.
7916 * rs6000-nat.c: Replace library-list by library-list-aix
7917 throughout.
7918 * solib-aix.c: Likewise.
7919
79202013-05-07 Joel Brobecker <brobecker@adacore.com>
7921
7922 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7923 Renames TARGET_OBJECT_AIX_LIBRARIES.
7924 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7925 TARGET_OBJECT_LIBRARIES_AIX throughout.
7926 * solib-aix.c: Likwise.
7927
79282013-05-07 Yao Qi <yao@codesourcery.com>
7929
7930 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7931 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7932
79332013-05-07 Yao Qi <yao@codesourcery.com>
7934
7935 * solib-dsbt.c (enable_break): Declare.
7936 (dsbt_current_sos): Remove call to enable_break2.
7937 (enable_break2): Rename to enable_break. Set solib breakpoint
7938 on '_dl_debug_state'.
7939 (enable_break): Remove.
7940
79412013-05-07 Luis Machado <lgustavo@codesourcery.com>
7942
7943 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7944 debug state prior to replicating existing hardware watchpoints or
7945 breakpoints.
7946
79472013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7948
7949 * gcore.c (gcore_create_callback): Ignore sections with
7950 separate_debug_objfile_backlink != NULL.
7951
79522013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7953 Andrew Jenner <andrew@codesourcery.com>
7954 Chung-Lin Tang <cltang@codesourcery.com>
7955 Julian Brown <julian@codesourcery.com>
7956
7957 Based on the nios2-elf port from Altera Corporation.
7958
7959 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7960 nios2-linux-tdep.o.
7961 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7962 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7963 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7964 * nios2-tdep.h: New.
7965 * nios2-tdep.c: New.
7966 * nios2-linux-tdep.c: New.
7967 * features/Makefile (WHICH): Add nios2-linux.
7968 (nios2-linux-expedite): Set.
7969 * features/nios2-cpu.xml: New.
7970 * features/nios2.xml: New.
7971 * features/nios2-linux.xml: New.
7972 * features/nios2.c: New (autogenerated).
7973 * features/nios2-linux.c: New (autogenerated).
7974 * regformats/nios2-linux.dat: New (autogenerated).
7975 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7976 and commands.
7977
79782013-05-06 Doug Evans <dje@google.com>
7979
7980 * symfile.c: Whitespace cleanup.
7981
7982 * solist.h (struct target_so_ops): New member clear_so.
7983 * solib-svr4.c (svr4_clear_so): New function.
7984 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7985 * solib.c (clear_so): Renamed from free_so_symbols.
7986 All callers updated. Call target clear_so if it exists.
7987
79882013-05-06 Tom Tromey <tromey@redhat.com>
7989
7990 * ada-lang.c (ada_value_primitive_packed_val): Don't
7991 call value_incref.
7992 * value.c (set_value_parent): Incref the new parent and decref
7993 the old parent.
7994 (value_copy, value_primitive_field): Use set_value_parent.
7995
79962013-05-06 Tom Tromey <tromey@redhat.com>
7997
7998 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7999 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
8000 if needed.
8001 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
8002 * dwarf2read.c (write_constant_as_bytes)
8003 (dwarf2_fetch_constant_bytes): New functions.
8004
80052013-05-06 Tom Tromey <tromey@redhat.com>
8006
8007 * dwarf2read.c (dwarf2_const_value_data): Remove unused
8008 parameters.
8009 (dwarf2_const_value_attr): Update.
8010
80112013-05-06 Tom Tromey <tromey@redhat.com>
8012
8013 * somread.c (som_symfile_offsets): Add 'const' to addrs.
8014 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
8015 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
8016 Remove declaration.
8017
80182013-05-06 Tom Tromey <tromey@redhat.com>
8019
8020 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
8021 objfile's obstack.
8022
80232013-05-06 Doug Evans <dje@google.com>
8024
8025 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
8026 * stabsread.h (process_one_symbol): Update declaration.
8027 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
8028 * elfread.c (elf_symfile_relocate_probe): Ditto.
8029 * psymtab.c (relocate_psymtabs): Ditto.
8030 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
8031 (objfile_relocate): Ditto.
8032 * objfiles.h (objfile_relocate): Update declaration.
8033 * symfile.c (relative_addr_info_to_section_offsets): Constify
8034 addrs parameter.
8035 (default_symfile_offsets): Ditto.
8036 (syms_from_objfile_1): Constify offsets parameter.
8037 (syms_from_objfile): Ditto.
8038 (symbol_file_add_with_addrs_or_offsets): Ditto.
8039 (symfile_map_offsets_to_segments): Constify data parameter.
8040 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
8041 delta parameters of member relocate.
8042 (struct sym_probe_fns): Constify new_offsets,
8043 delta parameters of member sym_relocate_probe.
8044 (struct sym_fns): Constify section_addr_info parameter of member
8045 sym_offsets.
8046 (relative_addr_info_to_section_offsets): Update declaration.
8047 (default_symfile_offsets): Ditto.
8048 (syms_from_objfile): Ditto.
8049 (symfile_map_offsets_to_segments): Ditto.
8050
8051 * symfile.c (syms_from_objfile_1): Use correct section count when
8052 objfile->sf == NULL.
8053
80542013-05-06 Mike Frysinger <vapier@gentoo.org>
8055
8056 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
8057
80582013-05-06 Doug Evans <dje@google.com>
8059
8060 * psympriv.h (struct partial_symtab): Augment comment for member
8061 section_offsets.
8062
80632013-05-06 Joel Brobecker <brobecker@adacore.com>
8064
8065 Reimplement shared library support on ppc-aix...
8066 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8067 * features/library-list-aix.dtd: New file.
8068 * solib-aix.h, solib-aix.c: New file.
8069 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8070 (rs6000_find_toc_address_hook): Delete.
8071 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8072 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8073 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8074 "xml-utils.h".
8075 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8076 (vmap_symtab, fixup_breakpoints): Delete.
8077 (rs6000_xfer_shared_libraries): New function.
8078 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8079 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8080 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8081 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8082 (rs6000_xfer_shared_library): New function.
8083 (find_toc_address): Delete.
8084 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8085 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8086 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8087 before creating minimal symbol. Adjust function description
8088 accordingly.
8089 (scan_xcoff_symtab): Replace call to
8090 prim_record_minimal_symbol_and_info by call to
8091 record_minimal_symbol.
8092 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8093 around default_symfile_offsets.
8094 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8095 powerpc-aix targets.
8096 * config/rs6000/nm-rs6000.h: Delete.
8097 * config/powerpc/aix.mh (NAT_FILE): Delete.
8098 (NATDEPFILES): Remove xcoffsolib.o.
8099 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8100 (ALL_TARGET_OBS): Add solib-aix.o.
8101 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8102 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8103 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8104 * xcoffsolib.h, xcoffsolib.c: Delete.
8105
8106 * solib.c (reload_shared_libraries): Remove reference to
8107 SOLIB_CREATE_INFERIOR_HOOK.
8108 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8109 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8110 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8111 comment.
8112 * corelow.c (deprecated_core_resize_section_table): Delete.
8113 * exec.c: Remove include of xcoffsolib.h".
8114 (map_vmap, vmap): Delete.
8115 (exec_close_1): Remove references to vmap.
8116 (exec_file_attach): Remove vmap handling code, and reference
8117 to DEPRECATED_IBM6000_TARGET.
8118 (bfdsec_to_vmap): Delete.
8119 (exec_files_info): Remove block of code handling VMAP.
8120 * infcmd.c (post_create_inferior): Remove reference to
8121 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8122 * infrun.c (follow_exec): Remove reference to
8123 SOLIB_CREATE_INFERIOR_HOOK.
8124 * stack.c (print_frame): Remove reference to PC_SOLIB.
8125 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8126 (dsbt_relocate_main_executable): Likewise.
8127 * solib-frv.c (frv_current_sos): Likewise.
8128
81292013-05-06 Joel Brobecker <brobecker@adacore.com>
8130
8131 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8132 to target_write_memory and target_read_memory.
8133
81342013-05-06 Joel Brobecker <brobecker@adacore.com>
8135
8136 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8137 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8138
81392013-05-06 Joel Brobecker <brobecker@adacore.com>
8140
8141 * darwin-nat.c: Replace all "%x" instances in format strings
8142 into "0x%x" throughout.
8143
81442013-05-06 Joel Brobecker <brobecker@adacore.com>
8145
8146 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8147 gdb_assert by call to MACH_CHECK_ERROR.
8148 (darwin_attach_pid): Raise an error rather than a failed
8149 assertion when various system calls failed. Report a warning
8150 instead of raising a failed assertion when PREV_NOT is not NULL
8151 after call to mach_port_request_notification.
8152 (darwin_ptrace_me): Raise an error rather than a failed
8153 assertion when read returns nonzero.
8154
81552013-05-06 Joel Brobecker <brobecker@adacore.com>
8156
8157 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8158
81592013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8160
8161 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8162
81632013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8164
8165 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8166 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8167 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8168 a stale cleanup. Fix double free of NAME.
8169
81702013-05-04 Eli Zaretskii <eliz@gnu.org>
8171
8172 * windows-nat.c (windows_delete_thread): Accept an additional
8173 argument, the thread's exit code, and announce thread death when
8174 print_thread_events is non-zero and we are deleting a thread that
8175 is not the main thread.
8176 (get_windows_debug_event): Pass thread exit code to
8177 windows_delete_thread.
8178
81792013-05-03 Kevin Buettner <kevinb@redhat.com>
8180
8181 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8182 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8183 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8184 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8185 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8186 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8187 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8188 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8189 (gdbarch_tdep): New struct.
8190 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8191 E_NUM_REGS.
8192 (v850e3v5_register_name): New function.
8193 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8194 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8195 code handling the struct return conventions for the RH850 ABI.
8196 Update all callers.
8197 (v850_eight_byte_align_p): New function.
8198 (v850_push_call_dummy): Push structs by value, not by reference
8199 for the RH850 ABI. Add support for eight byte alignment.
8200 (v850_dbtrap_breakpoint_from_pc): New function.
8201 (v850_gdbarch_init): Add ABI detection code. Register
8202 v850e3v5_register_name for the v850e3v5 architecture. Set the
8203 number of registers for v850e3v5. Register
8204 v850_dbtrap_breakpoint_from_pc as appropriate.
8205 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8206
82072013-05-03 Doug Evans <dje@google.com>
8208
8209 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8210 of bfd_count_sections.
8211 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8212 * symfile.c (default_symfile_offsets): Ditto.
8213 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8214 one entry, not bfd_count_sections entries.
8215
82162013-05-03 Kevin Buettner <kevinb@redhat.com>
8217
8218 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8219 `save' and `restore' register groups. Don't include SPL
8220 or SPH in these groups.
8221 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8222 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8223 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8224 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8225 dwarf2_append_unwinders().
8226
82272013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8228
8229 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8230 ignore SIGINT and SIGTRAP in case these internal signals are
8231 caught explicitely.
8232
82332013-05-01 Joel Brobecker <brobecker@adacore.com>
8234
8235 * darwin-nat.c (darwin_read_write_inferior): Change types
8236 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8237 of copy_count to "mach_msg_type_number_t".
8238 (darwin_read_dyld_info): Change type of parameter
8239 rdaddr to "gdb_byte *".
8240
82412013-05-01 Joel Brobecker <brobecker@adacore.com>
8242
8243 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8244 of &info->load_map from "char *" to "gdb_byte *".
8245
82462013-05-01 Joel Brobecker <brobecker@adacore.com>
8247
8248 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8249 from "char *" to "gdb_byte *".
8250 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8251
82522013-04-30 Doug Evans <dje@google.com>
8253
8254 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8255 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8256 DWO stub. If DWO isn't found, just use stub.
8257 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8258
8259 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8260 calling init_cutu_and_read_dies.
8261
82622013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8263
8264 * target-descriptions.c (maint_print_c_tdesc_cmd):
8265 Add case to parse structures as register types and
8266 bitfields.
8267
82682013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8269
8270 * MAINTAINERS (Write After Approval): Add myself to the list.
8271
82722013-04-30 Joel Brobecker <brobecker@adacore.com>
8273
8274 * sol-thread.c (rw_common): Change type of parameter "buf"
8275 to "gdb_byte *".
8276 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8277 rw_common to "gdb_byte *" instead of "char *".
8278
82792013-04-30 Joel Brobecker <brobecker@adacore.com>
8280
8281 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8282 of local variable msym to const struct bound_minimal_symbol.
8283 Adjust use accordingly.
8284 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8285
82862013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8287
8288 * i386gnu-nat.c (CREG_OFFSET): New macro.
8289 (creg_offset): New array.
8290 (CREG_ADDR): Use creg_offset instead of reg_offset.
8291
82922013-04-30 Joel Brobecker <brobecker@adacore.com>
8293
8294 * mep-tdep.c (mep_write_pc): Delete.
8295 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8296 Add call to set_gdbarch_pc_regnum.
8297
82982013-04-30 Joel Brobecker <brobecker@adacore.com>
8299
8300 * common/filestuff.c: Replace #include <dirent.h> by
8301 #include "gdb_dirent.h".
8302
83032013-04-30 Joel Brobecker <brobecker@adacore.com>
8304
8305 * common/filestuff.c: Replace #include <sys/stat.h> by
8306 #include "gdb_stat.h".
8307
83082013-04-29 Pierre Muller <muller@sourceware.org>
8309
8310 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8311 editCase function rule.
8312 (get_DW_AT_signature_type): Likewise.
8313
83142013-04-29 Joel Brobecker <brobecker@adacore.com>
8315
8316 * m32r-tdep.c (m32r_write_pc): Delete.
8317 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8318 Add call to set_gdbarch_pc_regnum.
8319
83202013-04-29 Pierre Muller <muller@sourceware.org>
8321
8322 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8323
83242013-04-29 Joel Brobecker <brobecker@adacore.com>
8325
8326 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8327
83282013-04-28 Yao Qi <yao@codesourcery.com>
8329
8330 * solib-dsbt.c (fetch_loadmap): Re-indent.
8331 (displacement_from_map, enable_break2): Likewise.
8332 (dsbt_relocate_section_addresses): Likewise.
8333
83342013-04-26 Joel Brobecker <brobecker@adacore.com>
8335
8336 GDB 7.6 released.
8337
83382013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8339
8340 PR corefiles/14983:
8341 * dwarf2read.c (process_full_comp_unit): Always create a static
8342 block.
8343
83442013-04-25 Hui Zhu <hui@codesourcery.com>
8345
8346 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8347 to loc->cmd_bytecode.
8348
83492013-04-24 Doug Evans <dje@google.com>
8350
8351 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8352
83532013-04-22 Keith Seitz <keiths@redhat.com>
8354
8355 * tracepoint.c (trace_save): Call the writer's start method.
8356
83572013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8358
8359 PR gdb/10462
8360 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8361 before argument.
8362
83632013-04-23 Tom Tromey <tromey@redhat.com>
8364
8365 * common/filestuff.c: Check USE_WIN32API before including
8366 sys/socket.h.
8367 (HAVE_F_GETFD): New define.
8368 (mark_cloexec): Check HAVE_F_GETFD.
8369 (gdb_open_cloexec): Change 'mode' to unsigned long.
8370 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8371 (gdb_pipe_cloexec): Check HAVE_PIPE.
8372 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8373 long.
8374
83752013-04-23 Hui Zhu <hui@codesourcery.com>
8376
8377 PR gdb/15293
8378 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8379
83802013-04-23 Hui Zhu <hui@codesourcery.com>
8381
8382 PR gdb/15165
8383 * breakpoint.c (dprintf_print_recreate): New.
8384 (save_breakpoints): Let it not save dprintf commands.
8385 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8386
83872013-04-22 Tom Tromey <tromey@redhat.com>
8388
8389 PR gdb/7912:
8390 * Makefile.in (SFILES): Add filestuff.c
8391 (COMMON_OBS): Add filestuff.o.
8392 (filestuff.o): New target.
8393 * auto-load.c (auto_load_objfile_script_1): Use
8394 gdb_fopen_cloexec.
8395 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8396 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8397 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8398 * common/agent.c (gdb_connect_sync_socket): Use
8399 gdb_socket_cloexec.
8400 * common/filestuff.c: New file.
8401 * common/filestuff.h: New file.
8402 * common/linux-osdata.c (linux_common_core_of_thread)
8403 (command_from_pid, commandline_from_pid, print_source_lines)
8404 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8405 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8406 gdb_fopen_cloexec.
8407 * common/linux-procfs.c (linux_proc_get_int)
8408 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8409 * config.in, configure: Rebuild.
8410 * configure.ac: Don't check for sys/socket.h. Check for
8411 fdwalk, pipe2.
8412 * corelow.c (core_open): Use gdb_open_cloexec.
8413 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8414 * fork-child.c (fork_inferior): Call close_most_fds.
8415 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8416 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8417 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8418 Use gdb_fopen_cloexec.
8419 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8420 gdb_open_cloexec.
8421 (linux_async_pipe): Use gdb_pipe_cloexec.
8422 * remote-fileio.c (remote_fileio_func_open): Use
8423 gdb_open_cloexec.
8424 * remote.c (remote_file_put, remote_file_get): Use
8425 gdb_fopen_cloexec.
8426 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8427 close_most_fds.
8428 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8429 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8430 * solib.c (solib_find): Use gdb_open_cloexec.
8431 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8432 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8433 (tfile_open): Use gdb_open_cloexec.
8434 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8435 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8436 * xml-support.c (xml_fetch_content_from_file): Use
8437 gdb_fopen_cloexec.
8438 * main.c (captured_main): Call notice_open_fds.
8439
84402013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8441
8442 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8443 'char *' to 'gdb_byte *'.
8444 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8445 'gdb_byte'.
8446
84472013-04-22 Yao Qi <yao@codesourcery.com>
8448
8449 * infrun.c: Fix typo in comment.
8450
84512013-04-22 Andrew Haley <aph@redhat.com>
8452
8453 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8454 instead of "long".
8455
84562013-04-20 Yao Qi <yao@codesourcery.com>
8457
8458 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8459 'char *' to 'gdb_byte *'. Cast the return value of
8460 'bt_ctf_get_char_array' to 'gdb_byte *'.
8461
84622013-04-19 Pedro Alves <palves@redhat.com>
8463
8464 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8465 -Wpointer-sign.
8466 * configure: Regenerate.
8467
84682013-04-19 Pedro Alves <palves@redhat.com>
8469
8470 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8471 'void *'.
8472
84732013-04-19 Pedro Alves <palves@redhat.com>
8474
8475 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8476 Change type of 'myaddr' parameter to gdb_byte pointer.
8477 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8478 to 'long long' pointer instead of to 'unsigned long long'.
8479 (monitor_write_memory_block, monitor_read_memory_single)
8480 (monitor_read_memory): Change type of 'myaddr' parameter to
8481 gdb_byte pointer.
8482
84832013-04-19 Pedro Alves <palves@redhat.com>
8484
8485 * record.c (validate_history_size): Make parameter 'setting'
8486 unsigned.
8487
84882013-04-19 Pedro Alves <palves@redhat.com>
8489
8490 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8491 to 'gdb_byte *'.
8492
84932013-04-19 Pedro Alves <palves@redhat.com>
8494
8495 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8496 local to int.
8497
84982013-04-19 Pedro Alves <palves@redhat.com>
8499
8500 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8501 * ada-tasks.c (read_fat_string_value): Likewise.
8502
85032013-04-19 Pedro Alves <palves@redhat.com>
8504
8505 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8506 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8507 'offset', and adjust.
8508
85092013-04-19 Pedro Alves <palves@redhat.com>
8510
8511 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8512 (read_index_from_section): Add cast to 'char *'.
8513
85142013-04-19 Pedro Alves <palves@redhat.com>
8515
8516 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8517
85182013-04-19 Pedro Alves <palves@redhat.com>
8519
8520 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8521
85222013-04-19 Pedro Alves <palves@redhat.com>
8523
8524 * record-full.c (record_full_get_bookmark): Change local 'ret'
8525 type to char * and add cast to gdb_byte *.
8526 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8527 string.
8528 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8529
85302013-04-19 Pedro Alves <palves@redhat.com>
8531
8532 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8533 * python/py-prettyprint.c (print_string_repr): Change type of
8534 'output' local to char *. Add cast to gdb_byte * in
8535 LA_PRINT_STRING call.
8536 (print_children): Change type of 'output' local to char *.
8537 * python/py-value.c (valpy_string): Add cast to const char * in
8538 PyUnicode_Decode call.
8539
85402013-04-19 Pedro Alves <palves@redhat.com>
8541
8542 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8543 and change its type to 'const char *'. Adjust.
8544 (mips_send_packet): Add cast to 'char *', and remove cast to
8545 'unsigned char *'.
8546 (mips_receive_packet): Remove cast to 'unsigned char *'.
8547 (mips_load_srec): Use bfd_byte.
8548 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8549 (pmon_checkset): Make 'value' parameter unsigned.
8550
85512013-04-19 Pedro Alves <palves@redhat.com>
8552
8553 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8554
85552013-04-19 Pedro Alves <palves@redhat.com>
8556
8557 * remote.c (remote_write_bytes_aux, compare_sections_command)
8558 (remote_read_qxfer)
8559 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8560 (remote_hostio_readlink, remote_bfd_iovec_pread)
8561 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8562 binary buffer, and char when buffer is used as string.
8563 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8564 (trace_save, tfile_open, traceframe_walk_blocks)
8565 (tfile_fetch_registers): Likewise.
8566
85672013-04-19 Pedro Alves <palves@redhat.com>
8568
8569 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8570 buffer and size_t size. Adjust.
8571 * ser-base.h (ser_base_write): Adjust.
8572 * ser-go32.c (cnts): Change type to size_t.
8573 (dos_write): Change prototype -- take 'void *'
8574 buffer and size_t size. Adjust.
8575 (dos_info): Print elements of 'cnts' as unsigned long.
8576 * serial.c (serial_write): Likewise.
8577 * serial.h (serial_write): Adjust.
8578 (struct serial_ops) <write>: Change prototype -- take 'void *'
8579 buffer and size_t size. Adjust.
8580
85812013-04-19 Pedro Alves <palves@redhat.com>
8582
8583 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8584 gdb_byte *.
8585 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8586
85872013-04-19 Pedro Alves <palves@redhat.com>
8588
8589 * alpha-tdep.c (alpha_extract_return_value): Use
8590 regcache_cooked_read_unsigned to read 'v0'.
8591
85922013-04-19 Pedro Alves <palves@redhat.com>
8593
8594 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8595 parameters 'at', 'as' and 'offset' to uint32_t.
8596
85972013-04-19 Pedro Alves <palves@redhat.com>
8598
8599 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8600 'is64' to signed 'int'.
8601
86022013-04-19 Pedro Alves <palves@redhat.com>
8603
8604 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8605 parameter to int *.
8606
86072013-04-19 Pedro Alves <palves@redhat.com>
8608
8609 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8610 'insnbuf' buffer type to unsigned int[].
8611
86122013-04-19 Pedro Alves <palves@redhat.com>
8613
8614 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8615
86162013-04-19 Pedro Alves <palves@redhat.com>
8617
8618 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8619 unsigned long *.
8620
86212013-04-19 Pedro Alves <palves@redhat.com>
8622
8623 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8624 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8625 UINT_MAX.
8626 * mips-tdep.c (heuristic_fence_post): Change type to int.
8627 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8628
86292013-04-19 Pedro Alves <palves@redhat.com>
8630
8631 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8632 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8633 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8634
86352013-04-19 Pedro Alves <palves@redhat.com>
8636
8637 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8638 it to get a string view of the byte buffer.
8639 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8640 type to gdb_byte *. Adjust.
8641 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8642 Change local to char *.
8643 * solib-darwin.c (find_program_interpreter): Change return type to
8644 char *. Adjust.
8645 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8646 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8647 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8648 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8649 * solib-svr4.c (find_program_interpreter): Change return type to
8650 char *. Adjust.
8651 (enable_break): Change local 'interp_name' to char *.
8652 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8653 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8654 (spu_pseudo_register_write_spu): Use char for string buffer.
8655 Adjust.
8656 (info_spu_event_command, info_spu_signal_command): Add casts to
8657 'char *'.
8658
86592013-04-19 Pedro Alves <palves@redhat.com>
8660
8661 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8662 gdb_byte[].
8663 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8664 * ada-lang.c (ada_value_assign): Use gdb_byte.
8665 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8666 (alphanbsd_sigtramp_offset): Use gdb_byte.
8667 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8668 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8669 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8670 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8671 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8672 * arm-tdep.c (arm_stub_unwind_sniffer)
8673 (arm_displaced_init_closure): Use gdb_byte.
8674 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8675 (arm_default_thumb_le_breakpoint)
8676 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8677 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8678 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8679 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8680 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8681 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8682 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8683 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8684 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8685 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8686 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8687 (cris_store_return_value, cris_extract_return_value): Use
8688 gdb_byte.
8689 (constraint): Change type of parameter to char * from signed
8690 char*. Use gdb_byte.
8691 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8692 of local buffer to gdb_byte *.
8693 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8694 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8695 (add_address_entry): Change type of local buffer to gdb_byte[].
8696 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8697 (frv_push_dummy_call): Use gdb_byte.
8698 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8699 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8700 (hppa_hpux_supply_save_state): Use gdb_byte.
8701 * hppa-tdep.c (hppa32_push_dummy_call)
8702 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8703 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8704 (slotN_contents, replace_slotN_contents): Change type of parameter
8705 to gdb_byte *.
8706 (fetch_instruction, ia64_pseudo_register_write)
8707 (ia64_register_to_value, ia64_value_to_register)
8708 (ia64_extract_return_value, ia64_store_return_value)
8709 (ia64_push_dummy_call): Use gdb_byte.
8710 * m32c-tdep.c (m32c_return_value): Remove cast.
8711 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8712 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8713 gdb_byte.
8714 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8715 * mn10300-tdep.c (mn10300_store_return_value)
8716 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8717 gdb_byte.
8718 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8719 (moxie_process_record): Remove casts.
8720 * ppc-ravenscar-thread.c (supply_register_at_address)
8721 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8722 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8723 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8724 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8725 * remote.c (compare_sections_command): Use gdb_byte.
8726 * score-tdep.c (score7_free_memblock): Change type of parameter to
8727 gdb_byte *.
8728 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8729 gdb_byte *. Use gdb_byte.
8730 (sh_push_dummy_call_fpu): Use gdb_byte.
8731 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8732 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8733 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8734 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8735 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8736 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8737 (sh64_store_return_value, sh64_register_convert_to_virtual):
8738 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8739 (sh64_pseudo_register_write): Use gdb_byte.
8740 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8741 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8742 buffer.
8743 (irix_current_sos): Use gdb_byte.
8744 * solib-som.c (som_current_sos): Use gdb_byte.
8745 * sparc-ravenscar-thread.c (supply_register_at_address)
8746 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8747 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8748 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8749 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8750 'gdb_byte *'.
8751 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8752 'gdb_byte *'.
8753 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8754 * xstormy16-tdep.c (xstormy16_extract_return_value)
8755 (xstormy16_store_return_value): Change parameter type to
8756 'gdb_byte *'. Adjust.
8757 (xstormy16_push_dummy_call): Use gdb_byte.
8758 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8759 (call0_analyze_prologue, execute_code): Use gdb_byte.
8760
87612013-04-19 Vladimir Kargov <kargov@gmail.com>
8762 Pedro Alves <palves@redhat.com>
8763
8764 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8765 value contents.
8766
87672013-04-17 Doug Evans <dje@google.com>
8768
8769 * dwarf2read.c (struct signatured_type): New member type.
8770 (struct attribute): Replace member signatured_type with signature.
8771 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8772 (read_call_site_scope): Call follow_die_ref instead of
8773 follow_die_ref_or_sig.
8774 (read_structure_type): Rewrite handling of signatured types.
8775 (read_enumeration_type): Ditto.
8776 (read_attribute_value): Update.
8777 (build_error_marker_type): New function.
8778 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8779 Don't call error for bad types, just build an error marker type.
8780 (dump_die_shallow): Update.
8781 (follow_die_sig_1): Renamed from follow_die_sig.
8782 Don't call error for bad types, instead return NULL.
8783 (follow_die_sig): New function.
8784 (get_signatured_type, get_DW_AT_signature_type): New functions.
8785
87862013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8787
8788 * aarch64-tdep.c (aarch64_write_pc): Removed.
8789 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8790 function.
8791
87922013-04-17 Yao Qi <yao@codesourcery.com>
8793
8794 * top.c (print_gdb_configuration): Print configure-time
8795 parameter on using libbabeltrace or not.
8796
87972013-04-16 Pedro Alves <palves@redhat.com>
8798
8799 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8800
88012013-04-16 Pedro Alves <palves@redhat.com>
8802
8803 * common/glibc_thread_db.h: Update from upstream glibc
8804 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8805
88062013-04-16 Pedro Alves <palves@redhat.com>
8807
8808 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8809 * common/glibc_thread_db.h: ... this new file ...
8810 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8811
88122013-04-16 Will Newton <will.newton@gmail.com>
8813 Pedro Alves <palves@redhat.com>
8814
8815 PR build/11881
8816
8817 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8818 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8819 HAVE_THREAD_DB_H.
8820
88212013-04-16 Pedro Alves <palves@redhat.com>
8822 Eli Zaretskii <eliz@gnu.org>
8823
8824 * NEWS: Mention "set foo unlimited".
8825
88262013-04-15 Doug Evans <dje@google.com>
8827
8828 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8829 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8830 (create_dwo_cu_reader): Renamed from
8831 create_dwo_debug_info_hash_table_reader.
8832 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8833 Remove support for multiple CUs in a DWO file.
8834 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8835
8836 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8837 instead of phex.
8838 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8839 (create_dwo_in_dwp): Ditto.
8840
88412013-04-15 Tom Tromey <tromey@redhat.com>
8842
8843 * NEWS: Move recent entries into "since 7.6" section.
8844
88452013-04-15 Tom Tromey <tromey@redhat.com>
8846
8847 PR c++/13588:
8848 * NEWS: Update.
8849 * break-catch-throw.c (struct exception_catchpoint)
8850 <exception_rx, pattern>: New fields.
8851 (fetch_probe_arguments, dtor_exception_catchpoint)
8852 (check_status_exception_catchpoint)
8853 (print_one_detail_exception_catchpoint): New functions.
8854 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8855 Compile regular expression if needed.
8856 (extract_exception_regexp): New function.
8857 (catch_exception_command_1): Use extract_exception_regexp.
8858 (compute_exception): Use fetch_probe_arguments.
8859 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8860 and check_status fields.
8861 * cp-abi.c (cplus_typename_from_type_info): New function.
8862 * cp-abi.h (cplus_typename_from_type_info): Declare.
8863 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8864 * gdb_regex.h (compile_rx_or_error): Declare.
8865 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8866 comment.
8867 (init_gnuv3_ops): Set get_type_from_type_info field.
8868 * probe.c (compile_rx_or_error): Move...
8869 * utils.c (compile_rx_or_error): ... here.
8870
88712013-04-15 Tom Tromey <tromey@redhat.com>
8872
8873 PR c++/15176:
8874 * NEWS: Update.
8875 * break-catch-throw.c (compute_exception): New function.
8876 (exception_funcs): New global.
8877 (_initialize_break_catch_throw): Create $_exception.
8878 * cp-abi.c (cplus_type_from_type_info): New function.
8879 * cp-abi.h (cplus_type_from_type_info): Declare.
8880 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8881 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8882 (gnuv3_get_type_from_type_info): New functions.
8883 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8884
88852013-04-15 Tom Tromey <tromey@redhat.com>
8886
8887 * break-catch-throw.c (struct exception_names): New.
8888 (exception_functions): Change type.
8889 (re_set_exception_catchpoint): Look for SDT probes.
8890
88912013-04-15 Tom Tromey <tromey@redhat.com>
8892
8893 PR c++/10119:
8894 * break-catch-throw.c (exception_functions): New global.
8895 (gnu_v3_exception_catchpoint_ops): Move earlier.
8896 (struct exception_catchpoint): New.
8897 (classify_exception_breakpoint): Rewrite.
8898 (re_set_exception_catchpoint): New function.
8899 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8900 Allocate a struct exception_catchpoint.
8901 (catch_exception_command_1): Update.
8902 (initialize_throw_catchpoint_ops): Set 're_set' method.
8903
89042013-04-15 Tom Tromey <tromey@redhat.com>
8905
8906 * Makefile.in (SFILES): Add break-catch-throw.c
8907 (COMMON_OBS): Add break-catch-throw.o.
8908 * break-catch-throw.c: New file.
8909 * breakpoint.c: Move exception-catching code to new file.
8910 (ep_parse_optional_if_clause): No longer static.
8911 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8912
89132013-04-15 Tom Tromey <tromey@redhat.com>
8914
8915 PR c++/9065:
8916 * NEWS: Update.
8917 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8918 * c-exp.y (TYPEID): New token.
8919 (exp): Add new TYPEID productions.
8920 (ident_tokens): Add "typeid".
8921 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8922 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8923 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8924 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8925 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8926 case.
8927 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8928 (build_std_type_info_type, gnuv3_get_typeid_type)
8929 (gnuv3_get_typeid): New functions.
8930 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8931 new fields on ABI object.
8932 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8933 * std-operator.def (OP_TYPEID): New.
8934
89352013-04-15 Tom Tromey <tromey@redhat.com>
8936
8937 * elfread.c (elf_symtab_read): Install versioned symbol under
8938 unversioned name as well.
8939
89402013-04-15 Tom Tromey <tromey@redhat.com>
8941
8942 PR c++/11990:
8943 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8944 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8945 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8946 (gdb_demangle): New function.
8947 * cp-support.h (gdb_demangle): Declare.
8948 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8949 (dwarf2_name): Use gdb_demangle.
8950 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8951 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8952 suffixes from name.
8953 (gnuv3_print_method_ptr): Use gdb_demangle.
8954 * jv-lang.c (java_demangle): Use gdb_demangle.
8955 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8956 * language.c (unk_lang_demangle): Use gdb_demangle.
8957 * symtab.c (symbol_find_demangled_name)
8958 (demangle_for_lookup): Use gdb_demangle.
8959
89602013-04-15 Tom Tromey <tromey@redhat.com>
8961
8962 PR c++/12824:
8963 * NEWS: Update.
8964 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8965 New constant.
8966 (classify_exception_breakpoint): New function.
8967 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8968 (print_mention_exception_catchpoint)
8969 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8970 (catch_exception_command_1): Handle "rethrow" catchpoint.
8971 (catch_rethrow_command): New function.
8972 (_initialize_breakpoint): Add "catch rethrow" command.
8973
89742013-04-15 Pierre Muller <muller@sourceware.org>
8975
8976 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8977 set_gdbarch_write_pc as deprecated anymore.
8978
89792013-04-15 Joel Brobecker <brobecker@adacore.com>
8980
8981 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8982 declarations.
8983
89842013-04-13 Yao Qi <yao@codesourcery.com>
8985
8986 * ctf.c (_initialize_ctf): Include "completer.h".
8987 Call add_target_with_completer instead of add_target.
8988
89892013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 Fix GDB regression related to PR binutils/14813.
8992 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8993 * minidebug.c (lzma_close): Add return value comment.
8994 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8995 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8996 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8997
89982013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8999
9000 * config.in: Regenerate.
9001
90022013-04-12 Tom Tromey <tromey@redhat.com>
9003
9004 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
9005 const.
9006 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
9007 (struct die_reader_specs) <buffer>: Likewise.
9008 (die_reader_func_ftype): Make 'info_ptr' const.
9009 (struct line_header) <include_dirs, statement_program_start,
9010 statement_program_end>: Now const.
9011 (struct file_entry) <name>: Likewise.
9012 (struct partial_die_info) <sibling>: Likewise.
9013 (struct dwarf_block) <data>: Likewise.
9014 (dwarf2_read_section): Remove cast.
9015 (dwarf2_get_section_info): Make 'bufp' const.
9016 (read_index_from_section): Constify.
9017 (dw2_get_file_names_reader): Make 'info_ptr' const.
9018 (dw2_get_primary_filename_reader): Likewise.
9019 (read_comp_unit_head): Make 'info_ptr' and return type const.
9020 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
9021 Likewise.
9022 (read_abbrev_offset): Constify.
9023 (dwarf2_create_include_psymtab): Make 'name' const.
9024 (create_debug_types_hash_table): Update.
9025 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
9026 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
9027 Constify.
9028 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
9029 (load_partial_comp_unit_reader): Make 'info_ptr' const.
9030 (read_comp_units_from_section): Constify.
9031 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
9032 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
9033 const.
9034 (dwarf2_compute_name, setup_type_unit_groups): Constify.
9035 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
9036 (create_dwp_hash_table, dwarf2_ranges_read)
9037 (dwarf2_record_block_ranges): Constify.
9038 (read_die_and_children, read_die_and_siblings_1)
9039 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
9040 const.
9041 (read_full_die_1, read_full_die): Make 'info_ptr' const.
9042 (abbrev_table_read_table): Constify.
9043 (load_partial_dies): Make 'info_ptr' const.
9044 (read_partial_die, read_attribute_value, read_attribute): Make
9045 'info_ptr' and return type const.
9046 (read_address, read_initial_length)
9047 (read_checked_initial_length_and_offset, read_offset)
9048 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
9049 const.
9050 (read_direct_string): Make 'buf' and return type const.
9051 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
9052 (read_indirect_string): Make return type const.
9053 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
9054 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
9055 'info_ptr' const.
9056 (read_str_index): Make return type const.
9057 (add_include_dir): Make 'include_dir' const.
9058 (add_file_name): Make 'name' const.
9059 (dwarf_decode_line_header): Constify.
9060 (psymtab_include_file_name): Make return type const.
9061 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9062 (dwarf2_start_subfile): Make 'filename' const.
9063 (dwarf2_const_value_attr): Make 'bytes' const.
9064 (read_signatured_type_reader): Make 'info_ptr' const.
9065 (decode_locdesc): Constify.
9066 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9067 const.
9068 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9069 'mac_end', and return type const.
9070 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9071 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9072 type const.
9073 (per_cu_header_read_in): Constify.
9074 * symfile.h (dwarf2_get_section_info): Update.
9075
90762013-04-12 Tom Tromey <tromey@redhat.com>
9077
9078 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9079
90802013-04-12 Eli Zaretskii <eliz@gnu.org>
9081
9082 * NEWS: Mention "show configuration", --configuration.
9083 * top.c (print_gdb_configuration): New function, displays the
9084 details about GDB configure-time parameters.
9085 (print_gdb_version): Mention "show configuration".
9086 * cli/cli-cmds.c (show_configuration): New function.
9087 (_initialize_cli_cmds): Add the "show configuration" command.
9088 * main.c (captured_main) <print_configuration>: New static var.
9089 <long_options>: Use it.
9090 If --configuration was given, call print_gdb_configuration.
9091
90922013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9093 Pedro Alves <palves@redhat.com>
9094
9095 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9096 (generated_files): Add gcore.
9097 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9098 HAVE_NATIVE_GCORE_HOST.
9099 (gcore): New.
9100 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9101 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9102 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9103 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9104 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9105 Add HAVE_NATIVE_GCORE_HOST.
9106 * configure: Regenerate.
9107 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9108 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9109 AC_CONFIG_FILES for gcore.
9110 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9111 gdb_have_gcore.
9112 * gdb_gcore.sh: Rename to ...
9113 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9114 and GCORE_TRANSFORM_NAME substitutions.
9115
9116 Fix parsing tabs in ${gdb_target_obs}.
9117 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9118
91192013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9120
9121 * remote.c (unpush_and_perror): Add output message final dot.
9122
91232013-04-11 Yao Qi <yao@codesourcery.com>
9124
9125 * tracepoint.c (tfile_interp_line): Fit parameters line and
9126 utpp in one line.
9127
91282013-04-10 Joel Brobecker <brobecker@adacore.com>
9129
9130 * solib.c (solib_map_sections): Remove code overwriting
9131 SO->SO_NAME with the bfd's filename.
9132
91332013-04-10 Pedro Alves <palves@redhat.com>
9134
9135 * cli/cli-decode.c (integer_unlimited_completer): New function.
9136 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9137 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9138 completer.
9139 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9140 (is_unlimited_literal): New function.
9141 (do_set_command): Handle literal "unlimited" arguments.
9142 * frame.c (_initialize_frame) <set backtrace limit>: Document
9143 "unlimited".
9144 * printcmd.c (_initialize_printcmd) <set print
9145 max-symbolic-offset>: Add help text.
9146 * record-full.c (_initialize_record_full) <set record full
9147 insn-number-max>: Likewise.
9148 * record.c (_initialize_record) <set record
9149 instruction-history-size, set record function-call-history-size>:
9150 Add help text.
9151 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9152 help text.
9153 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9154 Likewise.
9155 * source.c (_initialize_source) <set listsize>: Add help text.
9156 * utils.c (initialize_utils) <set height, set width>: Likewise.
9157 <set pagination>: Mention "set height unlimited".
9158 * valprint.c (_initialize_valprint) <set print elements, set print
9159 repeats>: Document "unlimited".
9160
91612013-04-10 Pedro Alves <palves@redhat.com>
9162
9163 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9164 instead of disconnect_tracing.
9165 * infcmd.c (detach_command, disconnect_command): Call
9166 query_if_trace_running. Adjust.
9167 * top.c: Include "tracepoint.h".
9168 (quit_target): Delete. Contents moved ...
9169 (quit_force): ... here. Wrap each stage of teardown in
9170 TRY_CATCH. Call disconnect_tracing before detaching.
9171
91722013-04-10 Hui Zhu <hui@codesourcery.com>
9173 Yao Qi <yao@codesourcery.com>
9174
9175 * configure.ac: Check libbabeltrace is installed.
9176 * config.in: Regenerate.
9177 * configure: Regenerate.
9178 * Makefile.in (LIBBABELTRACE): New.
9179 (CLIBS): Add LIBBABELTRACE.
9180 * ctf.c: Include "exec.h".
9181 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9182 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9183 (ctf_save_metadata_header): Define new type aliases in
9184 metadata.
9185 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9186 in metadata. Start a new faked packet for trace status.
9187 (ctf_write_status): Write trace status to CTF.
9188 (ctf_write_uploaded_tsv): Write TSV to CTF.
9189 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9190 (ctf_write_definition_end): End the faked packet.
9191
9192 (ctx, ctf_iter, trace_dirname): New.
9193 (start_pos): New variable.
9194 (ctf_destroy, ctf_open_dir, ctf_open): New.
9195 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9196 macros.
9197 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9198 (ctf_fetch_registers, ctf_xfer_partial): New.
9199 (ctf_get_trace_state_variable_value): New.
9200 (ctf_get_tpnum_from_frame_event): New.
9201 (ctf_get_traceframe_address): New.
9202 (ctf_trace_find, ctf_has_stack): New.
9203 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9204 (ctf_get_trace_status, ctf_read_status): New.
9205 (_initialize_ctf): New.
9206 * tracepoint.c (get_tracepoint_number): New
9207 (get_uploaded_tsv): Remove 'static'.
9208 (struct traceframe_info, trace_regblock_size): Move it to ...
9209 * tracepoint.h: ... here.
9210 (get_tracepoint_number): Declare it.
9211 (get_uploaded_tsv): Declare it.
9212
9213 * NEWS: Mention new configure option.
9214
92152013-04-10 Pedro Alves <palves@redhat.com>
9216 Hui Zhu <hui@codesourcery.com>
9217
9218 * breakpoint.c (dprintf_re_set): New.
9219 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9220 to dprintf_re_set.
9221
92222013-04-09 Joel Brobecker <brobecker@adacore.com>
9223
9224 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9225 Remove solib-svr4.o from the list.
9226
92272013-04-09 Joel Brobecker <brobecker@adacore.com>
9228
9229 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9230 Use gdb_assert_not_reached instead of invalid boolean expression.
9231
92322013-04-09 Pedro Alves <palves@redhat.com>
9233
9234 * remote.c (unpush_and_perror): New function.
9235 (readchar, remote_serial_write): Use it.
9236
92372013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9238
9239 * NEWS: Mention new btrace RSP packets.
9240
92412013-04-08 Tom Tromey <tromey@redhat.com>
9242
9243 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9244 long.
9245
92462013-04-08 Tom Tromey <tromey@redhat.com>
9247
9248 * maint.c (print_bfd_section_info): Print the section index.
9249 * symmisc.c (dump_msymbols): Print the section index.
9250
92512013-04-08 Tom Tromey <tromey@redhat.com>
9252
9253 PR symtab/8424:
9254 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9255 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9256 * breakpoint.c (resolve_sal_pc): Update.
9257 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9258 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9259 (minsym_lookup_iterator_cb): Use it.
9260 (default_read_var_value): Update.
9261 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9262 Update.
9263 * infcmd.c (jump_command): Update.
9264 * linespec.c (minsym_found): Update.
9265 * maint.c (maintenance_translate_address): Update.
9266 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9267 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9268 * parse.c (write_exp_msymbol): Update.
9269 * printcmd.c (address_info): Update.
9270 * psymtab.c (find_pc_sect_psymbol): Update.
9271 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9272 SYMBOL_OBJ_SECTION.
9273 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9274 Don't initialize SYMBOL_OBJ_SECTION.
9275 * spu-tdep.c (spu_catch_start): Update.
9276 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9277 * symmisc.c (dump_msymbols, print_symbol): Update.
9278 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9279 how fallback section is computed.
9280 (fixup_symbol_section): Update.
9281 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9282 Update.
9283 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9284 Initialize SYMBOL_SECTION.
9285 * symtab.h (struct general_symbol_info) <section>: Update comment.
9286 <obj_section>: Remove.
9287 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9288 (SYMBOL_OBJFILE): New macro.
9289
92902013-04-08 Tom Tromey <tromey@redhat.com>
9291
9292 * coffread.c (record_minimal_symbol): Update.
9293 * dbxread.c (record_minimal_symbol): Update.
9294 * elfread.c (record_minimal_symbol): Update.
9295 * machoread.c (macho_symtab_add_minsym): Update.
9296 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9297 Update.
9298 * minsyms.c (prim_record_minimal_symbol): Update.
9299 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9300 argument.
9301 (prim_record_minimal_symbol_and_info): Likewise.
9302 * minsyms.h (prim_record_minimal_symbol_full)
9303 (prim_record_minimal_symbol_and_info): Update.
9304 * symtab.c (allocate_symbol, initialize_symbol)
9305 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9306 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9307 Update.
9308
93092013-04-08 Tom Tromey <tromey@redhat.com>
9310
9311 PR symtab/8423:
9312 * solib-som.c (som_solib_section_offsets): Use BFD section
9313 indices. Set offsets for all sections.
9314 * somread.c (som_symtab_read): Compute BFD section for
9315 symbol. Use prim_record_minimal_symbol_and_info.
9316 (som_symfile_read): Fix comment.
9317 (struct find_section_offset_arg): New.
9318 (find_section_offset, set_section_index): New functions.
9319 (som_symfile_offsets): Use set_section_index to compute
9320 section indices.
9321
93222013-04-08 Tom Tromey <tromey@redhat.com>
9323
9324 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9325 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9326 gdb_bfd_section_index.
9327 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9328 New functions.
9329 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9330 Declare.
9331 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9332 Update.
9333 * objfiles.c (add_to_objfile_sections_full): New function.
9334 (add_to_objfile_sections): Use it.
9335 (build_section_table): Rewrite.
9336 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9337 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9338 (struct objfile) <sections>: Update comment.
9339 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9340 is NULL.
9341 (ALL_OBJSECTIONS): Use it.
9342 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9343 * solib-frv.c (frv_relocate_main_executable): Update.
9344 * solib-target.c (solib_target_relocate_section_addresses):
9345 Use gdb_bfd_section_index.
9346 * symfile.c (build_section_addr_info_from_section_table):
9347 Use gdb_bfd_section_index.
9348 (build_section_addr_info_from_bfd, place_section): Likewise.
9349 * symtab.c (fixup_section): Update.
9350 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9351
93522013-04-08 Tom Tromey <tromey@redhat.com>
9353
9354 * minsyms.h (struct bound_minimal_symbol): New.
9355 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9356 Remove objfile argument.
9357 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9358 Return bound_minimal_symbol.
9359 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9360 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9361 Return bound_minimal_symbol.
9362 (in_gnu_ifunc_stub): Update.
9363 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9364 Remove 'objfile_p' argument.
9365 (lookup_solib_trampoline_symbol_by_pc): Update.
9366 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9367 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9368 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9369 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9370 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9371 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9372 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9373 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9374 stack.c, symtab.c, tui/tui-disasm.c: Update.
9375
93762013-04-08 Tom Tromey <tromey@redhat.com>
9377
9378 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9379 Use symbol's obstack, not an objfile.
9380 * coffread.c (process_coff_symbol): Update.
9381 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9382 * jv-lang.c (add_class_symbol): Update.
9383 * mdebugread.c (new_symbol): Update.
9384 * minsyms.c (prim_record_minimal_symbol_full)
9385 (terminate_minimal_symbol_table): Update.
9386 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9387 * stabsread.c (define_symbol, read_enum_type): Update.
9388 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9389 Handle Ada specially.
9390 (symbol_set_language): Add 'obstack' argument.
9391 (symbol_set_names): Update.
9392 (symbol_natural_name, symbol_demangled_name): Always use
9393 ada_decode_symbol.
9394 * symtab.h (struct general_symbol_info)
9395 <language_specific::obstack>: New field.
9396 <ada_mangled>: New field.
9397 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9398 (symbol_set_language): Update.
9399
94002013-04-08 Tom Tromey <tromey@redhat.com>
9401
9402 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9403 Take an obstack, not an objfile.
9404 (symbol_set_names): Update.
9405 * symtab.h (symbol_set_demangled_name): Update.
9406
94072013-04-08 Tom Tromey <tromey@redhat.com>
9408
9409 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9410 allocate_symbol.
9411 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9412 (read_func_scope): Call allocate_template_symbol.
9413 (new_symbol_full): Call allocate_symbol.
9414 * jit.c (finalize_symtab): Call allocate_symbol.
9415 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9416 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9417 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9418 (common_block_end): Call allocate_symbol.
9419 * symtab.c (allocate_symbol, initialize_symbol)
9420 (allocate_template_symbol): New functions.
9421 * symtab.c (allocate_symbol, initialize_symbol)
9422 (allocate_template_symbol): Declare.
9423 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9424
94252013-04-08 Pedro Alves <palves@redhat.com>
9426 Keith Seitz <keiths@redhat.com>
9427
9428 * breakpoint.c (create_breakpoint): Rename
9429 "parse_condition_and_thread" parameter to "parse_arg". Update
9430 describing comment. If !PARSE_ARG, then error out if ARG is not
9431 the empty string after extracting the location.
9432 * breakpoint.h (create_breakpoint): Rename
9433 "parse_condition_and_thread" parameter to "parse_arg".
9434
94352013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9436
9437 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9438
94392013-04-07 Yao Qi <yao@codesourcery.com>
9440
9441 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9442 and 'addr2' to CORE_ADDR.
9443 * target.c (update_current_target): Update.
9444 * target.h (struct target_ops) <to_trace_find>: Change parameter
9445 type to CORE_ADDR.
9446 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9447 'addr2' to CORE_ADDR.
9448 (tfile_trace_find): Likewise.
9449 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9450 Change local variable 'addr' to type CORE_ADDR.
9451 * tracepoint.h (tfind_1): Update declaration.
9452
94532013-04-06 Eli Zaretskii <eliz@gnu.org>
9454
9455 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9456 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9457 Include main.h.
9458
9459 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9460 here...
9461 * main.h (windows_get_absolute_argv0): ...to here.
9462
94632013-04-05 Doug Evans <dje@google.com>
9464
9465 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9466 (read_cutu_die_from_dwo): Add comments.
9467 (read_structure_type): Update comment.
9468 (read_enumeration_type, read_namespace_type): Update comment.
9469 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9470
94712013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9474 * Makefile.in (gdb.z): Remove.
9475 (install-only): Remove $(man1dir) and gdb.1 installation.
9476 * gdb.1: Remove.
9477
94782013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9479
9480 Fix compatibility with Linux kernel 3.8.3.
9481 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9482 to more inner block. Remove parsing of NUMBER from outer block.
9483 Parse NUMBER only if KEYWORD has been identified.
9484
94852013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9486
9487 Fix variable name shadowing.
9488 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9489 filename to mapsfilename and update its uses.
9490
94912013-04-05 Eli Zaretskii <eliz@gnu.org>
9492
9493 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9494 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9495 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9496 details of the problem.
9497
94982013-04-04 Pedro Alves <palves@redhat.com>
9499 Hui Zhu <hui@codesourcery.com>
9500
9501 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9502 tracepoint, reset its STEP_COUNT and call validate_actionline.
9503
95042013-04-03 Doug Evans <dje@google.com>
9505
9506 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9507 read_die_and_siblings.
9508 (read_die_and_siblings): New function.
9509 (read_cutu_die_from_dwo): Dump die if requested.
9510 (read_die_and_children): Call read_full_die_1 and
9511 read_die_and_siblings_1.
9512 (read_full_die): Dump die if requested.
9513
9514 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9515
9516 * dwarf2read.c (struct dwo_file): New member comp_dir.
9517 Rename member name to dwo_name. All uses updated.
9518 (hash_dwo_file): Include comp_dir in computation.
9519 (eq_dwo_file): Ditto.
9520 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9521 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9522
9523 * psymtab.c (read_psymtabs_with_fullname): Don't call
9524 psymtab_to_fullname if the basenames are different.
9525
95262013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9529 New entry about "fullname" presence.
9530
95312013-04-03 Pedro Alves <palves@redhat.com>
9532
9533 * NEWS: Mention x86_64/Cygwin as new native configuration.
9534
95352013-04-02 Doug Evans <dje@google.com>
9536
9537 * dwarf2read.c (read_structure_type): Fix typo in comment.
9538
95392013-04-02 Pedro Alves <palves@redhat.com>
9540
9541 * NEWS: Mention "set/show debug aarch64", "set/show debug
9542 coff-pe-read" and "set/show debug mach-o".
9543
95442013-04-02 Pedro Alves <palves@redhat.com>
9545
9546 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9547
95482013-04-02 Eli Zaretskii <eliz@gnu.org>
9549
9550 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9551 gdb_string.h is now in common/.
9552
95532013-04-02 Pedro Alves <palves@redhat.com>
9554
9555 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9556 under "New options".
9557
95582013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9559
9560 Revert this patch:
9561 PR gdb/15275
9562 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9563
95642013-04-02 Pedro Alves <palves@redhat.com>
9565
9566 PR gdb/15275
9567
9568 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9569 (remote_serial_write): New function.
9570 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9571
95722013-04-01 Jiong Wang <jiwang@tilera.com>
9573
9574 * NEWS: Mention TILE-Gx in "New native configurations" and
9575 "New targets" sections.
9576
95772013-04-01 Doug Evans <dje@google.com>
9578
9579 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9580 (process_enumeration_scope): Simplify.
9581
9582 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9583 type_unit_group ...
9584 (struct signatured_type): ... to here.
9585 (sig_type_ptr): New typedef.
9586 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9587 out of union 't'. All uses updated.
9588 (dw2_get_file_names_reader): Assert not called for a type unit.
9589 (dw2_get_file_names): Assert not called for a type unit or type
9590 unit group.
9591 (build_type_psymtabs_reader): Assert called for a type unit.
9592 (build_type_psymtab_dependencies): Assert called for a type unit group.
9593
9594 * dwarf2read.c (free_dwo_file): Add comment.
9595 (dwarf2_per_objfile_free): Unref dwp bfd.
9596
95972013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9598
9599 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9600 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9601 (read_pe_exported_syms): Remove unused 'exportix'.
9602 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9603 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9604 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9605
96062013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9607
9608 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9609 (print_it_watchpoint): Remove unused 'bl'.
9610 (say_where): Remove unused 'uiout'.
9611 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9612 (bkpt_breakpoint_hit): Remove unused 'b'.
9613 (internal_bkpt_print_it): Remove unused 'uiout'.
9614 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9615
96162013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9617
9618 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9619 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9620
96212013-03-29 Doug Evans <dje@google.com>
9622
9623 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9624 Delete arg is_dwp. All callers updated.
9625 (open_dwp_file): New function.
9626 (open_and_init_dwp_file): Call it.
9627 (get_dwp_file): New function.
9628 (lookup_dwo_cutu): Call it.
9629
9630 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9631 unnecessary, cleanup.
9632
9633 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9634
9635 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9636 (lookup_dwo_unit): New function.
9637 (init_cutu_and_read_dies): Move DWO handling to new functions.
9638
9639 * dwarf2read.c (struct signatured_type): Tweak comment.
9640 (struct dwo_unit): Tweak comment.
9641 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9642 (create_dwo_debug_info_hash_table): Tweak comment.
9643 (dwarf2_per_cu_offset_and_type): Tweak comment.
9644
9645 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9646 missing .debug_types section.
9647
96482013-03-29 Yao Qi <yao@codesourcery.com>
9649
9650 * corelow.c: Include "completer.h".
9651 (_initialize_corelow): Call add_target_with_completer with
9652 argument 'filename_completer'.
9653 * tracepoint.c: Likewise.
9654 * exec.c (_initialize_exec): Likewise.
9655 * target.c (add_target): Rename to ...
9656 (add_target_with_completer): ... this. Call set_cmd_completer
9657 if parameter completer is not NULL.
9658 (add_target): New.
9659 * target.h: Include "command.h".
9660 (add_target_with_completer): Declare it.
9661
96622013-03-28 Joel Brobecker <brobecker@adacore.com>
9663
9664 * coffread.c (is_import_fixup_symbol): New function.
9665 (record_minimal_symbol): Use is_import_fixup_symbol to
9666 detect import fixup symbols, and discard them.
9667
96682013-03-28 Doug Evans <dje@google.com>
9669
9670 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9671 types hash table until we know we need it.
9672
9673 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9674 index numbers.
9675
9676 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9677 All callers updated.
9678 (dw2_print_stats): Print #read CUs too.
9679 (dump_die_shallow): Print signatured types better.
9680
9681 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9682 info_or_types_section to section. All uses updated.
9683 (struct dwo_unit): Ditto.
9684
96852013-03-28 Pedro Alves <palves@redhat.com>
9686
9687 * NEWS (New options): New section.
9688 (New options): Mention set/show remote trace-status-packet.
9689 * remote.c (PACKET_qTStatus): New enumeration value.
9690 (remote_get_trace_status): Skip sending qTStatus if the packet is
9691 disabled. Use packet_ok.
9692 (_initialize_remote): Register a configuration command for
9693 qTStatus packet.
9694
96952013-03-28 Doug Evans <dje@google.com>
9696
9697 * symfile.c (find_separate_debug_file): Add comment.
9698 (terminate_after_last_dir_separator): Tweak comment.
9699
9700 * dwarf2read.c (create_partial_symtab): Add forward decl.
9701 (create_partial_symtab): Move to be closer to other psymtab functions.
9702 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9703
9704 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9705 (compute_symtab_includes): Remove unnecessary forward declaration.
9706 (die_needs_namespace): Add comment marking group of functions for
9707 dwarf2 name computation.
9708
9709 * typeprint.c (_initialize_typeprint): Improve type help text.
9710
9711 * python/python.c (finish_python_initialization): Provide suggestion
9712 for how to tell gdb to find its python files.
9713
97142013-03-28 Pedro Alves <palves@redhat.com>
9715
9716 PR gdb/15294
9717
9718 * source.c (_initialize_source): Change back "set listsize" to an
9719 integer command.
9720
97212013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9722
9723 PR gdb/15275
9724 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9725
97262013-03-27 Pedro Alves <palves@redhat.com>
9727
9728 * top.c (history_size): Rename to ...
9729 (history_size_setshow_var): ... this. Add comment.
9730 (show_commands): Use readline's 'history_length' instead of
9731 computing the history length by calling history_get in a loop.
9732 (set_history_size_command): Error out for sizes over INT_MAX.
9733 Restore previous history size on invalid size.
9734 (init_history): If HISTSIZE is negative, leave the history size as
9735 zero. Add comments.
9736 (init_main): Adjust.
9737
97382013-03-27 Pedro Alves <palves@redhat.com>
9739
9740 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9741 coff_pe_read" command to "set debug coff-pe-read".
9742
97432013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9744
9745 * record.c (command_size_to_target_size): Fix size comparison.
9746 Change parameter type from pointer to integer to integer.
9747 Update all users.
9748
97492013-03-27 Pierre Muller <muller@sourceware.org>
9750
9751 * windows-nat.c (handle_output_debug_string): Avoid typecast
9752 from integer of different size warning.
9753
97542013-03-26 Joel Brobecker <brobecker@adacore.com>
9755
9756 * windows-nat.c (handle_output_debug_string): Add empty line
9757 after local block variable definition.
9758
97592013-03-26 Pedro Alves <palves@redhat.com>
9760
9761 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9762 (net_open): Make 'polls' local unsigned.
9763
97642013-03-26 Pedro Alves <palves@redhat.com>
9765
9766 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9767 a zuinteger command instead of uinteger.
9768
97692013-03-26 Pedro Alves <palves@redhat.com>
9770
9771 * record-full.c (record_full_insn_num): Make it unsigned.
9772 (record_full_check_insn_num, record_full_message)
9773 (record_full_registers_change, record_full_xfer_partial): Remove
9774 record_full_insn_max_num check (it's always != 0).
9775 (record_full_info, record_full_restore): Use %u as format string.
9776 (): Use %u as format string.
9777 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9778 check (it's always != 0).
9779
97802013-03-26 Pedro Alves <palves@redhat.com>
9781
9782 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9783 and "set dcache size" commands zuinteger instead of uinteger.
9784
97852013-03-26 Pedro Alves <palves@redhat.com>
9786
9787 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9788 command zuinteger instead of uinteger.
9789
97902013-03-26 Pedro Alves <palves@redhat.com>
9791
9792 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9793 zuinteger instead of uinteger.
9794
97952013-03-26 Pedro Alves <palves@redhat.com>
9796
9797 * record.c (record_insn_history_size_setshow_var)
9798 (record_call_history_size_setshow_var): New globals.
9799 (command_size_to_target_size): New function.
9800 (cmd_record_insn_history, cmd_record_call_history): Use
9801 command_size_to_target_size instead of cast.
9802 (validate_history_size, set_record_insn_history_size)
9803 (set_record_call_history_size): New functions.
9804 (_initialize_record): Install set_record_insn_history_size and
9805 set_record_call_history_size as "set" hooks of "set record
9806 instruction-history-size" and "set record
9807 function-call-history-size".
9808
98092013-03-26 Pedro Alves <palves@redhat.com>
9810
9811 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9812 use with history_max_entries use. Remove FIXME note.
9813
98142013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9815
9816 * record-btrace.c (record_btrace_close): Call
9817 record_btrace_auto_disable.
9818
98192013-03-25 Joel Brobecker <brobecker@adacore.com>
9820
9821 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9822
98232013-03-25 Doug Evans <dje@google.com>
9824
9825 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9826
98272013-03-25 Tom Tromey <tromey@redhat.com>
9828
9829 PR symtab/11462:
9830 * c-exp.y (exp): Add new productions for destructors after '.' and
9831 '->'.
9832 (write_destructor_name): New function.
9833
98342013-03-25 Tom Tromey <tromey@redhat.com>
9835
9836 PR c++/9197:
9837 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9838 value_struct_elt, not lookup_struct_elt_type.
9839 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9840 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9841 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9842
98432013-03-25 Yao Qi <yao@codesourcery.com>
9844
9845 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9846 instead of '_mkdir'.
9847
98482013-03-23 Eli Zaretskii <eliz@gnu.org>
9849
9850 * windows-nat.c (windows_get_absolute_argv0): New function.
9851 * windows-nat.h: Add its prototype.
9852
9853 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9854 Use IS_DIR_SEPARATOR instead of looking for a character inside
9855 SLASH_STRING. Include filenames.h.
9856 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9857 relocate_gdb_directory works when passed gdb_program_name.
9858 Include windows-nat.h.
9859
98602013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9861
9862 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9863 * remote.c (trace_error): Remove the special handling of '2'.
9864 (readchar) <SERIAL_EOF>
9865 (readchar) <SERIAL_ERROR>
9866 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9867 (remote_get_trace_status): Call throw_exception if EX is
9868 TARGET_CLOSE_ERROR.
9869 * utils.c (perror_with_name): Rename to ...
9870 (throw_perror_with_name): ... here. New parameter errcode, describe it
9871 in the function comment.
9872 (perror_with_name): New function wrapper.
9873 * utils.h (enum errors): New stub declaration.
9874 (throw_perror_with_name): New declaration.
9875
98762013-03-22 Pedro Alves <palves@redhat.com>
9877 Yao Qi <yao@codesourcery.com>
9878 Mark Kettenis <kettenis@gnu.org>
9879
9880 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9881 Don't let the user set the value to UINT_MAX directly.
9882 <var_integer>: Don't let the user set the value to INT_MAX
9883 directly.
9884
98852013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 * remote.c (remote_unpush_target): New function.
9888 (remote_open_1): Remove two pop_target calls, update one comment, add
9889 comment to target_preopen call. Replace pop_target call by
9890 remote_unpush_target call.
9891 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9892 pop_target calls by remote_unpush_target calls.
9893
98942013-03-22 Pedro Alves <palves@redhat.com>
9895
9896 * linux-nat.c (linux_child_follow_fork): Don't call
9897 linux_enable_event_reporting.
9898 (linux_handle_extended_wait): Don't call
9899 linux_enable_event_reporting.
9900
99012013-03-22 Pedro Alves <palves@redhat.com>
9902
9903 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9904 use it to rewrite the trampoline buffers with type gdb_byte[], and
9905 undefine the macro. Remove char* cast.
9906
99072013-03-21 Doug Evans <dje@google.com>
9908
9909 New commands "mt set per-command {space,time,symtab} {on,off}".
9910 * NEWS: Add entry.
9911 * event-top.c: #include "maint.h".
9912 * main.c: #include "maint.h".
9913 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9914 timeval-utils.h, maint.h, cli/cli-setshow.h.
9915 (per_command_time, per_command_space): New static globals.
9916 (per_command_symtab): New static global.
9917 (per_command_setlist, per_command_showlist): New static globals.
9918 (struct cmd_stats): Move here from utils.c.
9919 (set_per_command_time): Renamed from set_display_time in utils.c
9920 and moved here. All callers updated.
9921 (set_per_command_space): Renamed from set_display_space in utils.c
9922 and moved here. All callers updated.
9923 (count_symtabs_and_blocks): New function.
9924 (report_command_stats): Moved here from utils.c. Add support for
9925 printing symtab stats. Only print data if enabled before command
9926 executed.
9927 (make_command_stats_cleanup): Ditto.
9928 (sert_per_command_cmd, show_per_command_cmd): New functions.
9929 (_initialize_maint_cmds): Add new commands
9930 mt set per-command {space,time,symtab} {on,off}.
9931 * maint.h: New file.
9932 * top.c: #include "maint.h".
9933 * utils.c (reset_prompt_for_continue_wait_time): New function.
9934 (get_prompt_for_continue_wait_time): New function.
9935 * utils.h (reset_prompt_for_continue_wait_time): Declare
9936 (get_prompt_for_continue_wait_time): Declare.
9937 (make_command_stats_cleanup): Moved to maint.h.
9938 (set_display_time, set_display_space): Moved to maint.h and renamed
9939 to set_per_command_time, set_per_command_space.
9940 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9941 parse_binary_operation and made non-static. Don't call error,
9942 just return an error marker. All callers updated.
9943 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9944
99452013-03-21 Tom Tromey <tromey@redhat.com>
9946
9947 * symfile.c (alloc_section_addr_info): Update header. Don't set
9948 'num_sections' field.
9949 (build_section_addr_info_from_section_table): Set 'num_sections'.
9950 (build_section_addr_info_from_bfd): Likewise.
9951 (build_section_addr_info_from_objfile): Remove dead loop
9952 condition.
9953 (free_section_addr_info): Unconditionally call xfree.
9954 (relative_addr_info_to_section_offsets, addrs_section_sort)
9955 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9956 condition.
9957 (syms_from_objfile_1): Remove dead 'if' condition. Check
9958 'num_sections'.
9959 (add_symbol_file_command): Set 'num_sections'.
9960 * symfile-mem.c (symbol_file_add_from_memory): Set
9961 'num_sections'.
9962 * somread.c (som_symfile_offsets): Remove dead loop condition.
9963 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9964 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9965
99662013-03-21 Tom Tromey <tromey@redhat.com>
9967
9968 * tracepoint.h (decode_agent_options): Add 'trace_string'
9969 argument.
9970 * tracepoint.c (decode_agent_options): Add 'trace_string'
9971 argument.
9972 (validate_actionline): Update.
9973 (collect_symbol): Add 'trace_string' argument.
9974 (struct add_local_symbols_data) <trace_string>: New field.
9975 (do_collect_symbol): Update.
9976 (add_local_symbols): Add 'trace_string' argument.
9977 (encode_actions_1): Update.
9978 (trace_dump_actions): Update.
9979 * dwarf2loc.c (access_memory): Update.
9980 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9981 * ax-general.c (new_agent_expr): Update.
9982 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9983 (gen_trace_for_return_address): Add argument.
9984 (trace_kludge, trace_string_kludge): Remove.
9985 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9986 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9987 (gen_trace_for_var): Add 'trace_string' argument.
9988 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9989 (gen_printf, agent_eval_command_one): Update.
9990
99912013-03-21 Tom Tromey <tromey@redhat.com>
9992
9993 PR exp/15109:
9994 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9995 Handle FILENAME token.
9996
99972013-03-21 Tom Tromey <tromey@redhat.com>
9998
9999 * c-exp.y (YYPRINT): Define.
10000 (c_print_token): New function.
10001
100022013-03-21 Tom Tromey <tromey@redhat.com>
10003
10004 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
10005
100062013-03-21 Yao Qi <yao@codesourcery.com>
10007
10008 * ctf.c: Include "gdb_stat.h".
10009 [USE_WIN32API]: New macro 'mkdir'.
10010 (ctf_start): Use permission bits macros if they are defined.
10011
100122013-03-20 Keith Seitz <keiths@redhat.com>
10013
10014 * breakpoint.h (struct breakpoint): Add comment to
10015 extra_string indicating that this member is mallod'd.
10016 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
10017
100182013-03-20 Pedro Alves <palves@redhat.com>
10019
10020 PR gdb/15289
10021
10022 * cli/cli-setshow.c (do_set_command)
10023 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
10024 the result of parsing the command argument. Throw error if the
10025 value is greater than UINT_MAX. Print the invalid value with
10026 plongest.
10027 <var_integer, var_zinteger>: Use LONGEST for variable holding the
10028 result of parsing the command argument. Throw error if the value
10029 is greater than INT_MAX, not greater or equal. Also throw error
10030 if the value is less than INT_MIN. Print the invalid value with
10031 plongest.
10032 <var_zuinteger_unlimited>: Throw error if the value is greater
10033 than INT_MAX, not greater or equal.
10034 (do_show_command) <var_integer, var_zinteger,
10035 var_zuinteger_unlimited>: Use %d for printing int, not %u.
10036
100372013-03-20 Tom Tromey <tromey@redhat.com>
10038
10039 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
10040 if possible.
10041 * dwarf2read.c (read_func_scope): Remove old FIXME.
10042 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
10043 not LOC_COMPUTED.
10044 * findvar.c (symbol_read_needs_frame, default_read_var_value):
10045 Unconditionally call via computed ops, if possible.
10046 * printcmd.c (address_info): Unconditionally call via computed ops,
10047 if possible.
10048 * stack.c (read_frame_arg): Unconditionally call via computed ops,
10049 if possible.
10050 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
10051 * tracepoint.c (scope_info): Unconditionally call via computed ops,
10052 if possible.
10053
100542013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10055 Tom Tromey <tromey@redhat.com>
10056
10057 PR symtab/8421:
10058 * coffread.c (coff_register_index): New global.
10059 (process_coff_symbol, coff_read_enum_type): Set
10060 SYMBOL_ACLASS_INDEX.
10061 (_initialize_coffread): Initialize new global.
10062 * dwarf2loc.c (locexpr_find_frame_base_location)
10063 (dwarf2_block_frame_base_locexpr_funcs)
10064 (loclist_find_frame_base_location)
10065 (dwarf2_block_frame_base_loclist_funcs): New.
10066 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10067 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10068 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10069 (dwarf2_block_frame_base_loclist_funcs): New.
10070 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10071 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10072 globals.
10073 (read_func_scope): Update.
10074 (fixup_go_packaging, mark_common_block_symbol_computed)
10075 (var_decode_location, new_symbol_full, dwarf2_const_value):
10076 Set SYMBOL_ACLASS_INDEX.
10077 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10078 (_initialize_dwarf2_read): Initialize new globals.
10079 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10080 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10081 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10082 globals.
10083 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10084 (_initialize_mdebugread): Initialize new globals.
10085 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10086 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10087 (stab_register_index, stab_regparm_index): New globals.
10088 (define_symbol, read_enum_type, common_block_end): Set
10089 SYMBOL_ACLASS_INDEX.
10090 (_initialize_stabsread): Initialize new globals.
10091 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10092 globals.
10093 (MAX_SYMBOL_IMPLS): New define.
10094 (register_symbol_computed_impl, register_symbol_block_impl)
10095 (register_symbol_register_impl)
10096 (initialize_ordinary_address_classes): New functions.
10097 (_initialize_symtab): Call initialize_ordinary_address_classes.
10098 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10099 (struct symbol_impl): New.
10100 (SYMBOL_ACLASS_BITS): New define.
10101 (struct symbol) <aclass, ops>: Remove fields.
10102 <aclass_index>: New field.
10103 (symbol_impls): Declare.
10104 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10105 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10106 (register_symbol_computed_impl, register_symbol_block_impl)
10107 (register_symbol_register_impl): Declare.
10108 (struct symbol_computed_ops): Add location_has_loclist.
10109 (struct symbol_block_ops): New.
10110 (SYMBOL_BLOCK_OPS): New.
10111 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10112
101132013-03-20 Tom Tromey <tromey@redhat.com>
10114
10115 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10116 (print_partial_symbols, recursively_search_psymtabs): Use
10117 PSYMBOL_CLASS.
10118
101192013-03-20 Pierre Muller <muller@sourceware.org>
10120
10121 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10122 addtion, subtraction, multiplication and division binary operator.
10123
101242013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10125
10126 Code cleanup.
10127 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10128 * bsd-kvm.c (bsd_kvm_close): Likewise.
10129 * bsd-uthread.c (bsd_uthread_close): Likewise.
10130 * corelow.c (core_close): Likewise.
10131 (core_close_cleanup): Remove parameter quitting from a caller.
10132 * event-top.c (async_disconnect): Likewise.
10133 * exec.c (exec_close_1): Remove parameter quitting.
10134 * go32-nat.c (go32_close): Likewise.
10135 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10136 parameter quitting from a caller.
10137 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10138 variable.
10139 (mips_linux_close): Remove parameter quitting. Remove parameter
10140 quitting from a caller.
10141 * monitor.c (monitor_close): Remove parameter quitting.
10142 * monitor.h (monitor_close): Likewise.
10143 * record-btrace.c (record_btrace_close): Likewise.
10144 * record-full.c (record_full_close): Likewise.
10145 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10146 it also from fprintf_unfiltered.
10147 * remote-mips.c (mips_close): Remove parameter quitting.
10148 (mips_detach): Remove parameter quitting from a caller.
10149 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10150 (gdbsim_close): Remove duplicate function comment. Remove parameter
10151 quitting and remove it also from printf_filtered.
10152 * remote.c (remote_close): Remove parameter quitting.
10153 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10154 * target.c (update_current_target): Remove parameter int from to_close
10155 de_fault.
10156 (push_target, unpush_target, pop_target): Remove parameter quitting from
10157 a caller.
10158 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10159 Remove parameter quitting from a caller.
10160 (target_preopen): Remove parameter quitting from a caller.
10161 (target_close): Remove parameter quitting. Remove parameter quitting
10162 from a caller two times. Remove parameter quitting also from
10163 fprintf_unfiltered.
10164 * target.h (struct target_ops): Remove parameter quitting and as int
10165 from fields to_xclose and to_close.
10166 (extern struct target_ops current_target):
10167 (target_close, pop_all_targets): Remove parameter quitting. Update the
10168 comment.
10169 (pop_all_targets_above): Remove parameter quitting.
10170 * top.c (quit_target): Remove parameter quitting from a caller.
10171 * tracepoint.c (tfile_close): Remove parameter quitting.
10172 * windows-nat.c (windows_close): Remove parameter quitting.
10173
101742013-03-20 Corinna Vinschen <vinschen@redhat.com>
10175
10176 * windows-nat.c (handle_output_debug_string): Replace call
10177 to string_to_core_addr with call to strtoull.
10178
101792013-03-20 Yao Qi <yao@codesourcery.com>
10180
10181 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10182 and write it to CTF metadata.
10183
101842013-03-19 Corinna Vinschen <vinschen@redhat.com>
10185
10186 * windows-nat.c (handle_output_debug_string): Change type of n to
10187 SIZE_T to avoid crash on 64 bit systems.
10188
101892013-03-17 Eli Zaretskii <eliz@gnu.org>
10190
10191 * python/python-internal.h (HAVE_SNPRINTF)
10192 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10193 about redefinition of snprintf by pyerrors.h.
10194
101952013-03-15 Steve Ellcey <sellcey@mips.com>
10196
10197 * remote-sim.c (sim_command_completer): Make char arguments const.
10198
101992013-03-15 Tom Tromey <tromey@redhat.com>
10200
10201 PR c++/15116:
10202 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10203
102042013-03-14 Tom Tromey <tromey@redhat.com>
10205
10206 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10207 New fields.
10208 (get_file_crc): Move from symfile.c.
10209 (gdb_bfd_crc): New function.
10210 * gdb_bfd.h (gdb_bfd_crc): Declare.
10211 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10212 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10213 (separate_debug_file_exists): Use gdb_bfd_crc.
10214
102152013-03-14 Tom Tromey <tromey@redhat.com>
10216
10217 * symfile.c (get_debug_link_info): Remove.
10218 (find_separate_debug_file_by_debuglink): Use
10219 bfd_get_debug_link_info.
10220
102212013-03-14 Tom Tromey <tromey@redhat.com>
10222
10223 * symtab.c (error_in_psymtab_expansion): New function.
10224 (lookup_symbol_aux_quick)
10225 (basic_lookup_transparent_type_quick): Remove "last resort"
10226 code. Use error_in_psymtab_expansion.
10227
102282013-03-14 Doug Evans <dje@google.com>
10229 Jan Kratochvil <jan.kratochvil@redhat.com>
10230
10231 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10232 any successful compare_filenames_for_search or FILENAME_CMP.
10233 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10234 * symtab.c (iterate_over_some_symtabs): Likewise.
10235
102362013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10237
10238 * source.c (print_source_lines_base): Make a local copy of
10239 symtab_to_fullname.
10240
102412013-03-14 Hui Zhu <hui_zhu@mentor.com>
10242 Jan Kratochvil <jan.kratochvil@redhat.com>
10243
10244 * source.c (print_source_lines_base): Suppress "file" for TUI.
10245
102462013-03-14 Keith Seitz <keiths@redhat.com>
10247 Alan Matsuoka <alanm@redhat.com>
10248
10249 PR c++/15203
10250 PR c++/15210
10251 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10252 TYPE_CODE_METHOD.
10253 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10254 symbols.
10255
102562013-03-14 Yao Qi <yao@codesourcery.com>
10257
10258 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10259 status to tfile if trace is stopped by command 'tstop'.
10260
102612013-03-14 Yao Qi <yao@codesourcery.com>
10262
10263 * tracepoint.c (tfile_write_status): Write trace notes and user
10264 name into tfile if they are not NULL.
10265
102662013-03-14 Hui Zhu <hui@codesourcery.com>
10267 Yao Qi <yao@codesourcery.com>
10268
10269 * Makefile.in (REMOTE_OBS): Add ctf.o.
10270 (SFILES): Add ctf.c.
10271 (HFILES_NO_SRCDIR): Add ctf.h.
10272 * ctf.c, ctf.h: New files.
10273 * tracepoint.c: Include 'ctf.h'.
10274 (collect_pseudocommand): Remove static.
10275 (trace_save_command): Parse option "-ctf".
10276 Produce different trace file writers per option.
10277 Adjust output message.
10278 (trace_save_tfile, trace_save_ctf): New.
10279 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10280 * mi/mi-main.c: Include 'ctf.h'.
10281 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10282 trace_save_tfile or trace_save_ctf.
10283 * NEWS: Mention these changes.
10284
102852013-03-14 Yao Qi <yao@codesourcery.com>
10286
10287 * tracepoint.c (trace_file_writer_xfree): New.
10288 (struct tfile_writer_data): New.
10289 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10290 (tfile_write_header, tfile_write_regblock_type): New.
10291 (tfile_write_status, tfile_write_uploaded_tsv): New.
10292 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10293 (tfile_write_raw_data, (tfile_end): New.
10294 (tfile_write_ops): New global variable.
10295 (TRACE_WRITE_R_BLOCK): New macro.
10296 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10297 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10298 (TRACE_WRITE_V_BLOCK): New macro.
10299 (trace_save): Add extra one parameter WRITER. Make it static.
10300 Use WRITER to writer trace.
10301 (tfile_trace_file_writer_new): New.
10302 (trace_save_command): Caller update.
10303 (trace_save_tfile): Write trace data in TFILE format.
10304 * tracepoint.h (struct trace_frame_write_ops): New.
10305 (struct trace_file_write_ops): New.
10306 (struct trace_file_writer): New.
10307 (trace_save): Remove its declaration.
10308 (trace_save_tfile): Declare it.
10309 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10310 instead of trace_save.
10311
103122013-03-13 Pedro Alves <palves@redhat.com>
10313
10314 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10315
103162013-03-13 Pedro Alves <palves@redhat.com>
10317
10318 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10319 commented out code.
10320 * demangle.c (current_demangling_style_string): Make it const.
10321 (set_demangling_command): Assert the demangling style is known.
10322 Remove all handling of unknown styles. Set
10323 'current_demangling_style_string' to an element of the
10324 demangling_style_names array.
10325 (set_demangling_style): Delete.
10326 (_initialize_demangler): Set current_demangling_style_string to the
10327 element of the demangling_style_names array that corresponds to
10328 the default demangling style. Remove FIXME note. Don't call
10329 set_demangling_style.
10330 * gdb-demangle.h (set_demangling_style): Remove declaration.
10331
103322013-03-13 Pedro Alves <palves@redhat.com>
10333
10334 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10335 fields const.
10336 (ada_make_symbol_completion_list): Make "text0" parameter const.
10337 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10338 * breakpoint.c (condition_completer): Make "text" and "word"
10339 parameters const. Adjust.
10340 (check_tracepoint_command): Adjust to validate_actionline
10341 prototype change.
10342 (catch_syscall_completer): Make "text" and "word" parameters
10343 const.
10344 * cli/cli-cmds.c (show_user): Make "comname" local const.
10345 (valid_command_p): Make "command" parameter const.
10346 (alias_command): Make "alias_prefix" and "command_prefix" locals
10347 const.
10348 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10349 (add_alias_cmd): Make "name" and "oldname" parameters const.
10350 Adjust. No longer make copy of OLDNAME.
10351 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10352 (add_setshow_cmd_full, add_setshow_enum_cmd)
10353 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10354 (add_setshow_filename_cmd, add_setshow_string_cmd)
10355 (add_setshow_string_noescape_cmd)
10356 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10357 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10358 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10359 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10360 Make "name" parameter const.
10361 (help_cmd): Rename "command" parameter to "arg". New const local
10362 "command".
10363 (find_cmd): Make "command" parameter const.
10364 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10365 deprecated_cmd_warning prototype change.
10366 (undef_cmd_error): Make "cmdtype" parameter const.
10367 (lookup_cmd): Make "line" parameter const.
10368 (deprecated_cmd_warning): Change type of "text" parameter to
10369 pointer to const char, from pointer to pointer to char. Adjust.
10370 (lookup_cmd_composition): Make "text" parameter const.
10371 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10372 parameters const.
10373 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10374 const.
10375 * cli/cli-script.c (validate_comname): Make "tem" local const.
10376 (define_command): New const local "tem_c". Use it in calls to
10377 lookup_cmd.
10378 (document_command): Make "tem" and "comfull" locals const.
10379 (show_user_1): Make "prefix" and "name" parameters const.
10380 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10381 const.
10382 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10383 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10384 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10385 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10386 (complete_on_enum, add_setshow_enum_cmd)
10387 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10388 (add_setshow_filename_cmd, add_setshow_string_cmd)
10389 (add_setshow_string_noescape_cmd)
10390 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10391 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10392 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10393 Change prototypes, constifying strings.
10394 * completer.c (noop_completer, filename_completer): Make "text"
10395 and "prefix" parameters const.
10396 (location_completer, expression_completer)
10397 (complete_line_internal): Make "text" and "prefix" parameters
10398 const and adjust.
10399 (command_completer, signal_completer): Make "text" and "prefix"
10400 parameters const.
10401 * completer.h (noop_completer, filename_completer)
10402 (expression_completer, location_completer, command_completer)
10403 (signal_completer): Change prototypes.
10404 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10405 parameters const.
10406 * cp-abi.c (cp_abi_completer): Likewise.
10407 * expression.h (parse_expression_for_completion): Change
10408 prototype.
10409 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10410 parameters const.
10411 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10412 * infrun.c (handle_completer): Make "text" and "word" parameters
10413 const.
10414 * interps.c (interpreter_completer): Make "text" and "word"
10415 parameters const.
10416 * language.h (struct language_defn)
10417 <la_make_symbol_completion_list>: Make "text" and "word"
10418 parameters const.
10419 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10420 (parse_exp_in_context): Rename to ...
10421 (parse_exp_in_context_1): ... this.
10422 (parse_exp_in_context): Reimplement, with const hack from
10423 parse_exp_1.
10424 (parse_expression_for_completion): Make "string" parameter const.
10425 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10426 to pointer to const char. Adjust.
10427 (print_command_1): Make "exp" parameter const.
10428 (output_command): Rename to ...
10429 (output_command_const): ... this. Make "exp" parameter const.
10430 (output_command): Reimplement.
10431 (x_command): Adjust.
10432 (display_command): Rename "exp" parameter to "arg". New "exp"
10433 local, const version of "arg".
10434 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10435 "cmd_name" local const.
10436 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10437 call.
10438 (cmdpy_completer): Make "text" and "word" parameters const.
10439 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10440 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10441 const.
10442 * remote.c (_initialize_remote): Make "cmd_name" local const.
10443 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10444 parameters const. Adjust.
10445 (completion_list_add_fields): Make "sym_text", "text" and "word"
10446 parameters const.
10447 (struct add_name_data) <sym_text, text, word>: Make fields const.
10448 (default_make_symbol_completion_list_break_on): Make "text" and
10449 "word" parameters const. Adjust locals.
10450 (default_make_symbol_completion_list)
10451 (make_symbol_completion_list, make_symbol_completion_type)
10452 (make_symbol_completion_list_fn): Make "text" and "word"
10453 parameters const.
10454 (make_file_symbol_completion_list): Make "text", "word" and
10455 "srcfile" parameters const. Adjust locals.
10456 (add_filename_to_list): Make "text" and "word" parameters const.
10457 (struct add_partial_filename_data) <text, word>: Make fields
10458 const.
10459 (make_source_files_completion_list): Make "text" and "word"
10460 parameters const.
10461 * symtab.h (default_make_symbol_completion_list_break_on)
10462 (default_make_symbol_completion_list, make_symbol_completion_list)
10463 (make_symbol_completion_type enum type_code)
10464 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10465 (make_source_files_completion_list): Change prototype.
10466 * top.c (execute_command): Adjust to pass pointer to pointer to
10467 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10468 change.
10469 (set_verbose): Make "cmdname" local const.
10470 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10471 and adjust.
10472 (validate_actionline): Make "line" parameter a pointer to const
10473 char, and adjust.
10474 (encode_actions_1): Make "action_exp" local const, and adjust.
10475 (encode_actions): Adjust.
10476 (replace_comma): Delete.
10477 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10478 const, and adjust. Don't frob the action string while splitting
10479 it at commas. Instead, make a copy of each split substring in
10480 turn.
10481 (trace_dump_command): Adjust to validate_actionline prototype
10482 change.
10483 * tracepoint.h (decode_agent_options, decode_agent_options)
10484 (encode_actions, validate_actionline): Change prototypes.
10485 * valprint.h (output_command): Delete declaration.
10486 (output_command_const): Declare.
10487 * value.c (function_destroyer): Cast const away in xfree call.
10488
104892013-03-13 Pedro Alves <palves@redhat.com>
10490
10491 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10492 rather than casting 'const char * const *' to 'const char **'.
10493 * ada-lex.l (processInt): Make "trailer" local const. Remove
10494 'const char **' cast.
10495 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10496 locals, and use those as strtol output pointer, instead than doing
10497 invalid casts to from 'const char **' to 'char **'.
10498 (_initialize_demangle): Remove cast.
10499 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10500 locals, and use those as strtol output pointer, instead than doing
10501 invalid casts to from 'const char **' to 'char **'.
10502 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10503 casts.
10504 * stap-probe.c (stap_parse_register_operand)
10505 (stap_parse_single_operand): Likewise.
10506
105072013-03-13 Yao Qi <yao@codesourcery.com>
10508
10509 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10510 the last matched 'V' blcok in trace frame.
10511
105122013-03-12 Joel Brobecker <brobecker@adacore.com>
10513
10514 * NEWS: Create a new section for the next release branch.
10515 Rename the section of the current branch, now that it has
10516 been cut.
10517
105182013-03-12 Joel Brobecker <brobecker@adacore.com>
10519
10520 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10521 * version.in: Bump version to 7.6.50.20130312-cvs.
10522
105232013-03-12 Keith Seitz <keiths@redhat.com>
10524
10525 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10526 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10527 Remove temporary copy of input string.
10528 (mi_execute_command_wrapper): Make "cmd" const.
10529 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10530 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10531 Use const strings.
10532 (mi_parse): Make "cmd" const.
10533 Use const strings.
10534 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10535
105362013-03-12 Keith Seitz <keiths@redhat.com>
10537
10538 * ada-lang.c (ada_read_renaming_var_value): Pass const
10539 pointer to expression string to parse_exp_1.
10540 (create_excep_cond_exprs): Likewise.
10541 * ax-gdb.c (agent_eval_command_one): Likewise.
10542 (maint_agent_printf_command): Likewise.
10543 Constify much of the string handling/parsing.
10544 * breakpoint.c (set_breakpoint_condition): Pass const
10545 pointer to expression string to parse_exp_1.
10546 (update_watchpoint): Likewise.
10547 (parse_cmd_to_aexpr): Constify string handling.
10548 Pass const pointer to parse_exp_1.
10549 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10550 (find_condition_and_thread): Likewise.
10551 Make TOK const.
10552 (watch_command_1): Make "arg" const.
10553 Constify string handling.
10554 Copy the expression string instead of changing the input
10555 string.
10556 (update_breakpoint_location): Pass const pointer to
10557 parse_exp_1.
10558 * eval.c (parse_and_eval_address): Make "exp" const.
10559 (parse_to_comma_and_eval): Make "expp" const.
10560 (parse_and_eval): Make "exp" const.
10561 * expression.h (parse_expression): Make argument const.
10562 (parse_exp_1): Make first argument const.
10563 * findcmd.c (parse_find_args): Treat "args" as const.
10564 * linespec.c (parse_linespec): Pass const pointer to
10565 linespec_expression_to_pc.
10566 (linespec_expression_to_pc): Make "exp_ptr" const.
10567 * parse.c (parse_exp_1): Make "stringptr" const.
10568 Make a copy of the expression to pass to parse_exp_in_context until
10569 this whole interface can be constified.
10570 (parse_expression): Make "string" const.
10571 * printcmd.c (ui_printf): Treat "arg" as const.
10572 Handle const strings.
10573 * tracepoint.c (validate_actionline): Pass const pointer to
10574 all calls to parse_exp_1.
10575 (encode_actions_1): Likewise.
10576 * value.h (parse_to_comma_and_eval): Make argument const.
10577 (parse_and_eval_address): Likewise.
10578 (parse_and_eval): Likewise.
10579 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10580 (varobj_set_value): Likewise.
10581 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10582 constify string handling.
10583 Pass const pointers to parse_and_eval_address and
10584 parse_to_comman_and_eval.
10585 * cli/cli-utils.c (skip_to_space): Rename to ...
10586 (skip_to_space_const): ... this. Handle const strings.
10587 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10588 skip_to_space_const.
10589 (skip_to_space_const): Declare.
10590 * common/format.c (parse_format_string): Make "arg" const.
10591 Handle const strings.
10592 * common/format.h (parse_format_string): Make "arg" const.
10593 * gdbserver/ax.c (ax_printf): Make "format" const.
10594 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10595 of the expression string.
10596
105972013-03-12 Hui Zhu <hui@codesourcery.com>
10598
10599 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10600
106012013-03-12 Yao Qi <yao@codesourcery.com>
10602 Hui Zhu <hui@codesourcery.com>
10603
10604 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10605 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10606 DW_OP_deref_size.
10607
106082013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10609
10610 * ada-lex.l (rules): Only recognize 'thread' as a
10611 delimiter when followed by numerals, as for c-exp.y.
10612 Use new rewind_to_char function to rewind the input for
10613 expression-delimiting tokens.
10614 (rewind_to_char): New function.
10615
106162013-03-11 Pedro Alves <palves@redhat.com>
10617 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * configure: Regenerate.
10620 * configure.ac (check dynamic export flag): Link python test with
10621 $PYTHON_LIBS.
10622
106232013-03-11 Doug Evans <dje@google.com>
10624 Keith Seitz <keiths@redhat.com>
10625
10626 * linespec.c (find_linespec_symbols): Call find_function_symbols
10627 first, and then call lookup_prefix_sym/find_method.
10628
106292013-03-11 Pedro Alves <palves@redhat.com>
10630
10631 * charset.c (convert_between_encodings): Don't cast between
10632 different pointer to pointer types. Instead, make the 'inp' local
10633 be of the type iconv expects.
10634 (wchar_iterate): Don't cast between different pointer to pointer
10635 types. Instead, use new pointer local of the type iconv expects.
10636 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10637 Add new local of type char pointer, and use it to get a
10638 char/string view of the byte buffer, instead of casting between
10639 pointer to pointer types.
10640
106412013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10642
10643 * remote.c (remote_set_trace_buffer_size): Move != operator
10644 to the start of next line to fix an ARI warning.
10645
106462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10647
10648 * NEWS: Add record changes.
10649
106502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10651
10652 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10653 the instruction history disassembly.
10654 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10655 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10656
106572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10658
10659 * Makefile.in (SFILES): Add record-btrace.c
10660 (COMMON_OBS): Add record-btrace.o
10661 * record-btrace.c: New.
10662 * objfiles.c: Include btrace.h.
10663 (free_objfile): call btrace_free_objfile.
10664
106652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10666
10667 * target.c (target_call_history, target_call_history_from,
10668 target_call_history_range): New.
10669 * target.h (target_ops) <to_call_history, to_call_history_from,
10670 to_call_history_range>: New fields.
10671 (target_call_history, target_call_history_from,
10672 target_call_history_range): New declaration.
10673 * record.c (get_call_history_modifiers, cmd_record_call_history,
10674 record_call_history_size): New.
10675 (_initialize_record): Add the "record function-call-history" command.
10676 Add "set/show record function-call-history-size" commands.
10677 * record.h (record_print_flag): New.
10678
106792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10680
10681 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10682 to_insn_history_range>: New fields.
10683 (target_insn_history): New.
10684 (target_insn_history_from): New.
10685 (target_insn_history_range): New.
10686 * target.c (target_insn_history): New.
10687 (target_insn_history_from): New.
10688 (target_insn_history_range): New.
10689 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10690 (record_insn_history_size): New.
10691 (get_insn_number): New.
10692 (get_context_size): New.
10693 (no_chunk): New.
10694 (get_insn_history_modifiers): New.
10695 (cmd_record_insn_history): New.
10696 (_initialize_record): Add "set/show record instruction-history-size"
10697 command. Add "record instruction-history" command.
10698
106992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10700
10701 * record.h (record_disconnect): New.
10702 (record_detach): New.
10703 (record_mourn_inferior): New.
10704 (record_kill): New.
10705 * record-full.c (record_disconnect, record_detach,
10706 record_mourn_inferior, record_kill): Move to...
10707 * record.c: ...here.
10708 (DEBUG): New.
10709 (record_stop): New.
10710 (record_unpush): New.
10711 (cmd_record_stop): Call record_stop. Replace unpush_target
10712 call with record_unpush call.
10713 (record_disconnect, record_detach): Assert that the target
10714 is of record stratum. Call record_unpush, record_stop, and
10715 DEBUG.
10716 (record_mourn_inferior, record_kill): Assert that the target
10717 is of record stratum. Call record_unpush and DEBUG.
10718
107192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10720
10721 * record-full.h, record-full.c (record_memory_query): Rename
10722 to ...
10723 (record_full_memory_query): ...this. Update all users.
10724 (record_arch_list_add_reg): Rename to ...
10725 (record_full_arch_list_add_reg): ...this. Update all users.
10726 (record_arch_list_add_mem): Rename to ...
10727 (record_full_arch_list_add_mem): ...this. Update all users.
10728 (record_arch_list_add_end): Rename to ...
10729 (record_full_arch_list_add_end): ...this. Update all users.
10730 (record_gdb_operation_disable_set): Rename to ...
10731 (record_full_gdb_operation_disable_set): ...this.
10732 Update all users.
10733
107342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10735
10736 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10737 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10738 (RECORD_IS_REPLAY): Renamed to ...
10739 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10740 (RECORD_FILE_MAGIC): Renamed to ...
10741 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10742 (record_mem_entry): Renamed to ...
10743 (record_full_mem_entry): ... this. Updated all users.
10744 (record_reg_entry): Renamed to ...
10745 (record_full_reg_entry): ... this. Updated all users.
10746 (record_end_entry): Renamed to ...
10747 (record_full_end_entry): ... this. Updated all users.
10748 (record_type) <record_end, record_reg, record_mem>: Renamed
10749 to ...
10750 (record_full_type) <record_full_end, record_full_reg,
10751 record_full_mem>: ... this. Updated all users.
10752 (record_entry): Renamed to ...
10753 (record_full_entry): ... this. Updated all users.
10754 (record_core_buf_entry): Renamed to ...
10755 (record_full_core_buf_entry): ... this. Updated all users.
10756 (record_core_regbuf): Renamed to ...
10757 (record_full_core_regbuf): ... this. Updated all users.
10758 (record_core_start): Renamed to ...
10759 (record_full_core_start): ... this. Updated all users.
10760 (record_core_end): Renamed to ...
10761 (record_full_core_end): ... this. Updated all users.
10762 (record_core_buf_list): Renamed to ...
10763 (record_full_core_buf_list): ... this. Updated all users.
10764 (record_first): Renamed to ...
10765 (record_full_first): ... this. Updated all users.
10766 (record_list): Renamed to ...
10767 (record_full_list): ... this. Updated all users.
10768 (record_arch_list_head): Renamed to ...
10769 (record_full_arch_list_head): ... this. Updated all users.
10770 (record_arch_list_tail): Renamed to ...
10771 (record_full_arch_list_tail): ... this. Updated all users.
10772 (record_stop_at_limit): Renamed to ...
10773 (record_full_stop_at_limit): ... this. Updated all users.
10774 (record_insn_max_num): Renamed to ...
10775 (record_full_insn_max_num): ... this. Updated all users.
10776 (record_insn_num): Renamed to ...
10777 (record_full_insn_num): ... this. Updated all users.
10778 (record_insn_count): Renamed to ...
10779 (record_full_insn_count): ... this. Updated all users.
10780 (record_ops): Renamed to ...
10781 (record_full_ops): ... this. Updated all users.
10782 (record_core_ops): Renamed to ...
10783 (record_full_core_ops): ... this. Updated all users.
10784 (set_record_cmdlist): Renamed to ...
10785 (set_record_full_cmdlist): ... this. Updated all users.
10786 (show_record_cmdlist): Renamed to ...
10787 (show_record_full_cmdlist): ... this. Updated all users.
10788 (record_cmdlist): Renamed to ...
10789 (record_full_cmdlist): ... this. Updated all users.
10790 (record_beneath_to_resume_ops): Renamed to ...
10791 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10792 (record_beneath_to_resume): Renamed to ...
10793 (record_full_beneath_to_resume): ... this. Updated all users.
10794 (record_beneath_to_wait_ops): Renamed to ...
10795 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10796 (record_beneath_to_wait): Renamed to ...
10797 (record_full_beneath_to_wait): ... this. Updated all users.
10798 (record_beneath_to_store_registers_ops): Renamed to ...
10799 (record_full_beneath_to_store_registers_ops): ... this.
10800 Updated all users.
10801 (record_beneath_to_store_registers): Renamed to ...
10802 (record_full_beneath_to_store_registers): ... this.
10803 Updated all users.
10804 (record_beneath_to_xfer_partial_ops): Renamed to ...
10805 (record_full_beneath_to_xfer_partial_ops): ... this.
10806 Updated all users.
10807 (record_beneath_to_xfer_partial): Renamed to ...
10808 (record_full_beneath_to_xfer_partial): ... this.
10809 Updated all users.
10810 (record_beneath_to_insert_breakpoint): Renamed to ...
10811 (record_full_beneath_to_insert_breakpoint): ... this.
10812 Updated all users.
10813 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10814 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10815 Updated all users.
10816 (record_beneath_to_stopped_data_address): Renamed to ...
10817 (record_full_beneath_to_stopped_data_address): ... this.
10818 Updated all users.
10819 (record_beneath_to_async): Renamed to ...
10820 (record_full_beneath_to_async): ... this. Updated all users.
10821 (record_goto_insn): Renamed to ...
10822 (record_full_goto_insn): ... this. Updated all users.
10823 (record_save): Renamed to ...
10824 (record_full_save): ... this. Updated all users.
10825 (record_reg_alloc): Renamed to ...
10826 (record_full_reg_alloc): ... this. Updated all users.
10827 (record_reg_release): Renamed to ...
10828 (record_full_reg_release): ... this. Updated all users.
10829 (record_mem_alloc): Renamed to ...
10830 (record_full_mem_alloc): ... this. Updated all users.
10831 (record_mem_release): Renamed to ...
10832 (record_full_mem_release): ... this. Updated all users.
10833 (record_end_alloc): Renamed to ...
10834 (record_full_end_alloc): ... this. Updated all users.
10835 (record_end_release): Renamed to ...
10836 (record_full_end_release): ... this. Updated all users.
10837 (record_entry_release): Renamed to ...
10838 (record_full_entry_release): ... this. Updated all users.
10839 (record_list_release): Renamed to ...
10840 (record_full_list_release): ... this. Updated all users.
10841 (record_list_release_following): Renamed to ...
10842 (record_full_list_release_following): ... this.
10843 Updated all users.
10844 (record_list_release_first): Renamed to ...
10845 (record_full_list_release_first): ... this. Updated all users.
10846 (record_arch_list_add): Renamed to ...
10847 (record_full_arch_list_add): ... this. Updated all users.
10848 (record_get_loc): Renamed to ...
10849 (record_full_get_loc): ... this. Updated all users.
10850 (record_check_insn_num): Renamed to ...
10851 (record_full_check_insn_num): ... this. Updated all users.
10852 (record_arch_list_cleanups): Renamed to ...
10853 (record_full_arch_list_cleanups): ... this. Updated all users.
10854 (record_message): Renamed to ...
10855 (record_full_message): ... this. Updated all users.
10856 (record_message_wrapper): Renamed to ...
10857 (record_full_message_wrapper): ... this. Updated all users.
10858 (record_message_wrapper_safe): Renamed to ...
10859 (record_full_message_wrapper_safe): ... this. Updated all users.
10860 (record_gdb_operation_disable): Renamed to ...
10861 (record_full_gdb_operation_disable): ... this. Updated all users.
10862 (record_hw_watchpoint): Renamed to ...
10863 (record_full_hw_watchpoint): ... this. Updated all users.
10864 (record_exec_insn): Renamed to ...
10865 (record_full_exec_insn): ... this. Updated all users.
10866 (record_restore): Renamed to ...
10867 (record_full_restore): ... this. Updated all users.
10868 (record_async_inferior_event_token): Renamed to ...
10869 (record_full_async_inferior_event_token): ... this.
10870 Updated all users.
10871 (record_async_inferior_event_handler): Renamed to ...
10872 (record_full_async_inferior_event_handler): ... this.
10873 Updated all users.
10874 (record_core_open_1): Renamed to ...
10875 (record_full_core_open_1): ... this. Updated all users.
10876 (record_open_1): Renamed to ...
10877 (record_full_open_1): ... this. Updated all users.
10878 (record_open): Renamed to ...
10879 (record_full_open): ... this. Updated all users.
10880 (record_close): Renamed to ...
10881 (record_full_close): ... this. Updated all users.
10882 (record_resume_step): Renamed to ...
10883 (record_full_resume_step): ... this. Updated all users.
10884 (record_resumed): Renamed to ...
10885 (record_full_resumed): ... this. Updated all users.
10886 (record_execution_dir): Renamed to ...
10887 (record_full_execution_dir): ... this. Updated all users.
10888 (record_resume): Renamed to ...
10889 (record_full_resume): ... this. Updated all users.
10890 (record_get_sig): Renamed to ...
10891 (record_full_get_sig): ... this. Updated all users.
10892 (record_sig_handler): Renamed to ...
10893 (record_full_sig_handler): ... this. Updated all users.
10894 (record_wait_cleanups): Renamed to ...
10895 (record_full_wait_cleanups): ... this. Updated all users.
10896 (record_wait_1): Renamed to ...
10897 (record_full_wait_1): ... this. Updated all users.
10898 (record_wait): Renamed to ...
10899 (record_full_wait): ... this. Updated all users.
10900 (record_stopped_by_watchpoint): Renamed to ...
10901 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10902 (record_disconnect): Renamed to ...
10903 (record_full_disconnect): ... this. Updated all users.
10904 (record_detach): Renamed to ...
10905 (record_full_detach): ... this. Updated all users.
10906 (record_mourn_inferior): Renamed to ...
10907 (record_full_mourn_inferior): ... this. Updated all users.
10908 (record_kill): Renamed to ...
10909 (record_full_kill): ... this. Updated all users.
10910 (record_stopped_data_address): Renamed to ...
10911 (record_full_stopped_data_address): ... this. Updated all users.
10912 (record_registers_change): Renamed to ...
10913 (record_full_registers_change): ... this. Updated all users.
10914 (record_store_registers): Renamed to ...
10915 (record_full_store_registers): ... this. Updated all users.
10916 (record_xfer_partial): Renamed to ...
10917 (record_full_xfer_partial): ... this. Updated all users.
10918 (record_breakpoint): Renamed to ...
10919 (record_full_breakpoint): ... this. Updated all users.
10920 (record_breakpoint_p): Renamed to ...
10921 (record_full_breakpoint_p): ... this. Updated all users.
10922 (record_breakpoints): Renamed to ...
10923 (record_full_breakpoints): ... this. Updated all users.
10924 (record_sync_record_breakpoints): Renamed to ...
10925 (record_full_sync_record_breakpoints): ... this.
10926 Updated all users.
10927 (record_init_record_breakpoints): Renamed to ...
10928 (record_full_init_record_breakpoints): ... this.
10929 Updated all users.
10930 (record_insert_breakpoint): Renamed to ...
10931 (record_full_insert_breakpoint): ... this. Updated all users.
10932 (record_remove_breakpoint): Renamed to ...
10933 (record_full_remove_breakpoint): ... this. Updated all users.
10934 (record_can_execute_reverse): Renamed to ...
10935 (record_full_can_execute_reverse): ... this. Updated all users.
10936 (record_get_bookmark): Renamed to ...
10937 (record_full_get_bookmark): ... this. Updated all users.
10938 (record_goto_bookmark): Renamed to ...
10939 (record_full_goto_bookmark): ... this. Updated all users.
10940 (record_async): Renamed to ...
10941 (record_full_async): ... this. Updated all users.
10942 (record_can_async_p): Renamed to ...
10943 (record_full_can_async_p): ... this. Updated all users.
10944 (record_is_async_p): Renamed to ...
10945 (record_full_is_async_p): ... this. Updated all users.
10946 (record_execution_direction): Renamed to ...
10947 (record_full_execution_direction): ... this. Updated all users.
10948 (record_info): Renamed to ...
10949 (record_full_info): ... this. Updated all users.
10950 (record_delete): Renamed to ...
10951 (record_full_delete): ... this. Updated all users.
10952 (record_is_replaying): Renamed to ...
10953 (record_full_is_replaying): ... this. Updated all users.
10954 (record_goto_entry): Renamed to ...
10955 (record_full_goto_entry): ... this. Updated all users.
10956 (record_goto_begin): Renamed to ...
10957 (record_full_goto_begin): ... this. Updated all users.
10958 (record_goto_end): Renamed to ...
10959 (record_full_goto_end): ... this. Updated all users.
10960 (record_goto): Renamed to ...
10961 (record_full_goto): ... this. Updated all users.
10962 (init_record_ops): Renamed to ...
10963 (init_record_full_ops): ... this. Updated all users.
10964 (record_core_resume): Renamed to ...
10965 (record_full_core_resume): ... this. Updated all users.
10966 (record_core_kill): Renamed to ...
10967 (record_full_core_kill): ... this. Updated all users.
10968 (record_core_fetch_registers): Renamed to ...
10969 (record_full_core_fetch_registers): ... this. Updated all users.
10970 (record_core_prepare_to_store): Renamed to ...
10971 (record_full_core_prepare_to_store): ... this. Updated all users.
10972 (record_core_store_registers): Renamed to ...
10973 (record_full_core_store_registers): ... this. Updated all users.
10974 (record_core_xfer_partial): Renamed to ...
10975 (record_full_core_xfer_partial): ... this. Updated all users.
10976 (record_core_insert_breakpoint): Renamed to ...
10977 (record_full_core_insert_breakpoint): ... this. Updated all users.
10978 (record_core_remove_breakpoint): Renamed to ...
10979 (record_full_core_remove_breakpoint): ... this. Updated all users.
10980 (record_core_has_execution): Renamed to ...
10981 (record_full_core_has_execution): ... this. Updated all users.
10982 (init_record_core_ops): Renamed to ...
10983 (init_record_full_core_ops): ... this. Updated all users.
10984 (cmd_record_restore): Renamed to ...
10985 (cmd_record_full_restore): ... this. Updated all users.
10986 (record_save_cleanups): Renamed to ...
10987 (record_full_save_cleanups): ... this. Updated all users.
10988 (cmd_record_start): Renamed to ...
10989 (cmd_record_full_start): ... this. Updated all users.
10990 (set_record_insn_max_num): Renamed to ...
10991 (set_record_full_insn_max_num): ... this. Updated all users.
10992 (set_record_command): Renamed to ...
10993 (set_record_full_command): ... this. Updated all users.
10994 (show_record_command): Renamed to ...
10995 (show_record_full_command): ... this. Updated all users.
10996 (_initialize_record): Renamed to ...
10997 (_initialize_record_full): ... this. Updated all users.
10998
109992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11000
11001 * record.h: Split into this and ...
11002 * record-full.h: ... this.
11003 * record.c: Split into this and ...
11004 * record-full.c: ... this.
11005 * target.h (target_ops): Add new fields to_info_record,
11006 to_save_record, to_delete_record, to_record_is_replaying,
11007 to_goto_record_begin, to_goto_record_end, to_goto_record.
11008 (target_info_record): New.
11009 (target_save_record): New.
11010 (target_supports_delete_record): New.
11011 (target_delete_record): New.
11012 (target_record_is_replaying): New.
11013 (target_goto_record_begin): New.
11014 (target_goto_record_end): New.
11015 (target_goto_record): New.
11016 * target.c (target_info_record): New.
11017 (target_save_record): New.
11018 (target_supports_delete_record): New.
11019 (target_delete_record): New.
11020 (target_record_is_replaying): New.
11021 (target_goto_record_begin): New.
11022 (target_goto_record_end): New.
11023 (target_goto_record): New.
11024 * record.h: Declare struct cmd_list_element.
11025 (record_cmdlist): New declaration.
11026 (set_record_cmdlist): New declaration.
11027 (show_record_cmdlist): New declaration.
11028 (info_record_cmdlist): New declaration.
11029 (cmd_record_goto): New declaration.
11030 * record.c: Remove unnecessary includes.
11031 Include inferior.h.
11032 (cmd_record_goto): Remove declaration.
11033 (record_cmdlist): Now extern. Initialize.
11034 (set_record_cmdlist): Now extern. Initialize.
11035 (show_record_cmdlist): Now extern. Initialize.
11036 (info_record_cmdlist): Now extern. Initialize.
11037 (find_record_target): New.
11038 (require_record_target): New.
11039 (cmd_record_start): Update.
11040 (cmd_record_delete): Remove target-specific code.
11041 Call target_delete_record.
11042 (cmd_record_stop): Unpush any record target.
11043 (set_record_insn_max_num): Move to record-full.c
11044 (set_record_command): Add comment.
11045 (show_record_command): Add comment.
11046 (info_record_command): Update comment.
11047 Remove target-specific code.
11048 Call the record target's to_info_record.
11049 (cmd_record_start): New.
11050 (cmd_record_goto): Now extern.
11051 Remove target-specific code.
11052 Call target_goto_begin, target_goto_end, or target_goto.
11053 (_initialize_record): Move record target ops initialization to
11054 record-full.c.
11055 Change "record" command help text.
11056 Move "record restore", "record set", and "record show" commands to
11057 record-full.c.
11058 * Makefile.in (SFILES): Add record-full.c.
11059 (HFILES_NO_SRCDIR): Add record-full.h.
11060 (COMMON_OBS): Add record-full.o.
11061 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11062 * arm-tdep.c: Include record-full.h.
11063 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11064 * i386-tdep.c: Include record-full.h.
11065 * infrun.c: Include record-full.h.
11066 * linux-record.c: Include record-full.h.
11067 * moxie-tdep.c: Include record-full.h.
11068 * record-full.c: Include record-full.h.
11069 Change module comment.
11070 (set_record_full_cmdlist): New.
11071 (show_record_full_cmdlist): New.
11072 (record_full_cmdlist): New.
11073 (record_goto_insn): New declaration.
11074 (record_save): New declaration.
11075 (record_check_insn_num): Change query string.
11076 (record_info): New.
11077 (record_delete): New.
11078 (record_is_replaying): New.
11079 (record_goto_entry): New.
11080 (record_goto_begin): New.
11081 (record_goto_end): New.
11082 (record_goto): New.
11083 (init_record_ops): Update.
11084 (init_record_core_ops): Update.
11085 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11086 (cmd_record_start): New.
11087 (set_record_insn_max_num): Moved from record.c
11088 (set_record_full_command): New.
11089 (show_record_full_command): New.
11090 (_initialize_record_full): New.
11091
110922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11093
11094 * target.h (add_deprecated_target_alias): New.
11095 * target.c (add_deprecated_target_alias): New.
11096
110972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11098
11099 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11100 and signal.h.
11101 (linux_supports_btrace): Add kernel and
11102 cpuid check.
11103 (kernel_supports_btrace): New function.
11104 (cpu_supports_btrace): New function.
11105 (intel_supports_btrace): New function.
11106
111072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11108
11109 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11110 * remote.c: Include btrace.h.
11111 (struct btrace_target_info): New struct.
11112 (remote_supports_btrace): New function.
11113 (send_Qbtrace): New function.
11114 (remote_enable_btrace): New function.
11115 (remote_disable_btrace): New function.
11116 (remote_teardown_btrace): New function.
11117 (remote_read_btrace): New function.
11118 (init_remote_ops): Add btrace ops.
11119 (enum <unnamed>): Add btrace packets.
11120 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11121 (_initialize_remote): Add packet configuration for branch tracing.
11122
111232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11124
11125 * features/btrace.dtd: New file.
11126 * Makefile.in (XMLFILES): Add btrace.dtd.
11127 * btrace.h (parse_xml_btrace): New declaration.
11128 * btrace.c: Include xml-support.h.
11129 (parse_xml_btrace): New function.
11130 (parse_xml_btrace_block): New function.
11131 (block_attributes): New struct.
11132 (btrace_attributes): New struct.
11133 (btrace_children): New struct.
11134 (btrace_elements): New struct.
11135
111362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11139 (amd64_linux_enable_btrace): New.
11140 (amd64_linux_disable_btrace): New.
11141 (amd64_linux_teardown_btrace): New.
11142 (_initialize_amd64_linux_nat): Initialize btrace ops.
11143 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11144 (i386_linux_enable_btrace): New.
11145 (i386_linux_disable_btrace): New.
11146 (i386_linux_teardown_btrace): New.
11147 (_initialize_i386_linux_nat): Initialize btrace ops.
11148 * config/i386/linux.mh: Add linux-btrace.o.
11149 * config/i386/linux64.mh: Add linux-btrace.o.
11150
111512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * common/linux_btrace.h: New file.
11154 * common/linux_btrace.c: New file.
11155 * Makefile.in (SFILES): Add btrace.c.
11156 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11157 (COMMON_OBS): Add btrace.o.
11158 (linux-btrace.o): New rule.
11159
111602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11161
11162 * target.h: Include btrace.h.
11163 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11164 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11165 * target.c (target_supports_btrace): New function.
11166 (target_enable_btrace): New function.
11167 (target_disable_btrace): New function.
11168 (target_teardown_btrace): New function.
11169 (target_read_btrace): New function.
11170 * btrace.h: New file.
11171 * btrace.c: New file.
11172 * Makefile.in: Add btrace.c.
11173 * gdbthread.h: Include btrace.h.
11174 (struct thread_info): Add btrace field.
11175 * thread.c: Include btrace.h.
11176 (clear_thread_inferior_resources): Call target_teardown_btrace.
11177 * common/btrace-common.h: New file.
11178
111792013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11182 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11183 kill_status to outer block.
11184
111852013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11186
11187 Fix entry-values if the callee called a noreturn function.
11188 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11189 get_frame_address_in_block. Add new comment.
11190
111912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11192
11193 Fix entry-values in C++ across CUs.
11194 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11195 lookup_minimal_symbol. Add a comment.
11196 * dwarf2read.c
11197 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11198 DW_AT_linkage_name.
11199
112002013-03-08 Yao Qi <yao@codesourcery.com>
11201
11202 * tracepoint.c (_initialize_tracepoint): Indent the code.
11203
112042013-03-08 Pedro Alves <palves@redhat.com>
11205
11206 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11207 (parse_find_args, find_command): Change type of pattern buffer
11208 locals to 'gdb_byte *'.
11209
112102013-03-08 Stan Shebs <stan@codesourcery.com>
11211 Hafiz Abid Qadeer <abidh@codesourcery.com>
11212
11213 * NEWS: Mention set and show trace-buffer-size commands.
11214 Mention new packet.
11215 * target.h (struct target_ops): New method
11216 to_set_trace_buffer_size.
11217 (target_set_trace_buffer_size): New macro.
11218 * target.c (update_current_target): Set up new method.
11219 * tracepoint.c (trace_buffer_size): New global.
11220 (start_tracing): Send it to the target.
11221 (set_trace_buffer_size): New function.
11222 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11223 * remote.c (remote_set_trace_buffer_size): New function.
11224 (_initialize_remote): Use it.
11225 (QTBuffer:size) New remote command.
11226 (PACKET_QTBuffer_size): New enum.
11227 (remote_protocol_features): Add an entry for
11228 PACKET_QTBuffer_size.
11229
112302013-03-08 Tom Tromey <tromey@redhat.com>
11231
11232 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11233 variable.
11234
112352013-03-07 Pedro Alves <palves@redhat.com>
11236
11237 * target.c (target_read_stralloc, target_fileio_read_alloc):
11238 *Cast pointer to 'gdb_byte *' in target call.
11239
112402013-03-07 Pedro Alves <palves@redhat.com>
11241
11242 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11243 call.
11244
112452013-03-07 Keith Seitz <keiths@redhat.com>
11246
11247 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11248 (trace_pass_command): Likewise.
11249 * cli/cli-cmds.c: Include cli/cli-utils.h.
11250 (source_command): Use skip-spaces.
11251 (disassemble_command): Likewise.
11252 * findcmd.c: Include cli/cli-utils.h.
11253 (parse_find_args): Use skip_spaces.
11254 * go32-nat.c: Include cli/cli-utils.h.
11255 (go32_sldt): Use skip_spaces.
11256 (go32_sgdt): Likewise.
11257 (go32_sidt): Likewise.
11258 (go32_pde): Likewise.
11259 (go32_pte): Likewise.
11260 (go32_pte_for_address): Likewise.
11261 * infcmd.c: Include cli/cli-utils.h.
11262 (registers_info): Use skip_spaces.
11263 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11264 (linux_info_proc): Likewise.
11265 * linux-thread-db.c: Include cli/cli-utils.h.
11266 (info_auto_load_libthread_db): Use skip_spaces_const.
11267 * m32r-rom.c: Include cli/cli-utils.h.
11268 (m32r_upload_command): Use skip_spaces.
11269 * maint.c: Include cli/cli-utils.h.
11270 (maintenance_translate_address): Use skip_spaces.
11271 * mi/mi-parse.c: Include cli/cli-utils.h.
11272 (mi_parse_argv): Use skip_spaces.
11273 (mi_parse): Likewise.
11274 * minsyms.c: Include cli/cli-utils.h.
11275 (msymbol_hash_iw): Use skip_spaces_const.
11276 * objc-lang.c: Include cli/cli-utils.h.
11277 (parse_selector): Use skip_spaces.
11278 (parse_method): Likewise.
11279 * python/python.c: Include cli/cli-utils.h.
11280 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11281 (python_command)[HAVE_PYTHON]: Likewise.
11282 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11283 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11284 (m32r_load): Use skip_spaces.
11285 * serial.c: Include cli/cli-utils.h.
11286 (serial_open): Use skip_spaces_const.
11287 * stack.c: Include cli/cli-utils.h.
11288 (parse_frame_specification_1): Use skip_spaces_const.
11289 * symfile.c: Include cli/cli-utils.h.
11290 (set_ext_lang_command): Use skip_spaces.
11291 * symtab.c: Include cli/cli-utils.h.
11292 (rbreak_command): Use skip_spaces.
11293 * thread.c (thread_name_command): Use skip_spaces.
11294 * tracepoint.c (validate_actionline): Use skip_spaces.
11295 (encode_actions_1): Likewise.
11296 (trace_find_range_command): Likewise.
11297 (trace_find_outside_command): Likewise.
11298 (trace_dump_actions): Likewise.
11299
113002013-03-07 Pedro Alves <palves@redhat.com>
11301
11302 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11303 * expprint.c (print_subexp_standard): Likewise.
11304 * utils.c (host_char_to_target): Likewise.
11305 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11306 * varobj.c (value_get_print_value): Change type of local to char*.
11307 Cast it gdb_byte * in call to language printer.
11308
113092013-03-07 Pedro Alves <palves@redhat.com>
11310
11311 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11312 gdb_byte *'.
11313 (make_wchar_iterator): Remove cast to char*.
11314 (wchar_iterate): Change type of local.
11315
113162013-03-07 Pedro Alves <palves@redhat.com>
11317
11318 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11319 for 'regcache->register_status'.
11320
113212013-03-07 Pedro Alves <palves@redhat.com>
11322
11323 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11324 int.
11325
113262013-03-07 Pedro Alves <palves@redhat.com>
11327
11328 * stap-probe.c (handle_stap_probe): Add cast to char*.
11329
113302013-03-07 Pedro Alves <palves@redhat.com>
11331
11332 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11333 RECORD_MSGRCV>: Pass a signed variable to
11334 regcache_raw_read_signed, instead of an unsigned one.
11335
113362013-03-07 Pedro Alves <palves@redhat.com>
11337
11338 * remote-notif.c (notif_debug): Change type to int.
11339 * remote-notif.h (notif_debug): Likewise.
11340
113412013-03-07 Pedro Alves <palves@redhat.com>
11342
11343 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11344
113452013-03-07 Pedro Alves <palves@redhat.com>
11346
11347 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11348 * remote.h (hex2bin, bin2hex): ... here.
11349 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11350
113512013-03-07 Eli Zaretskii <eliz@gnu.org>
11352
11353 * utils.c (initialize_utils): Improve doc strings of "set/show
11354 width", "set/show height", and "set/show pagination".
11355
113562013-03-06 Keith Seitz <keiths@redhat.com>
11357
11358 * ax-gdb.c (gen_printf): Make FORMAT const.
11359 * ax-gdb.h (gen_printf): Likewise.
11360 * ax-general.c (ax_string): Make STR const.
11361 * ax.h (ax_string): Likewise.
11362
113632013-03-06 Doug Evans <dje@google.com>
11364
11365 * elfread.c (elf_symfile_read): Move debugging printf to more
11366 logical location.
11367
113682013-03-06 Pedro Alves <palves@redhat.com>
11369
11370 * python/py-utils.c (target_string_to_unicode): Delete function.
11371 * python/python-internal.h (target_string_to_unicode): Delete
11372 declaration.
11373
113742013-03-06 Pierre Muller <muller@sourceware.org>
11375
11376 * linespec.c (get_current_search_block): ARI fix, use (void)
11377 for empty parameter list.
11378
113792013-03-05 Doug Evans <dje@google.com>
11380
11381 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11382 of old ada_lookup_symbol_list. In !full_search case, don't
11383 search superblocks.
11384 (ada_lookup_symbol_list): Delete arg full_search, all callers
11385 updated. Call ada_lookup_symbol_list_worker.
11386 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11387 * ada-lang.h (ada_lookup_symbol_list): Update.
11388 * language.h (language_defn): Update comment for
11389 la_iterate_over_symbols.
11390 * linespec.c (iterate_over_file_blocks): New function.
11391 (iterate_over_all_matching_symtabs): Call it.
11392 (lookup_prefix_sym): Ditto.
11393 (get_current_search_block): New function.
11394 (get_search_block): Delete.
11395 (find_label_symbols): Call get_current_search_block.
11396 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11397 * symtab.c (iterate_over_symbols): Don't search superblocks.
11398
113992013-03-05 Yao Qi <yao@codesourcery.com>
11400
11401 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11402 parameter VAR's type from "unsigned int" to "int".
11403 * command.h (var_zuinteger_unlimited): Update its comments.
11404 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11405
114062013-03-05 Corinna Vinschen <vinschen@redhat.de>
11407
11408 * NEWS: Mention new target x86_64-*-cygwin*.
11409
114102013-03-05 Corinna Vinschen <vinschen@redhat.de>
11411
11412 * configure.host: Add x86_64-*-cygwin* as host.
11413 * configure.tgt: Add x86_64-*-cygwin* as target.
11414 * config/i386/cygwin64.mh: New file.
11415
114162013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11417
11418 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11419
114202013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 * linespec.c (struct linespec_canonical_name): New.
11423 (struct linespec_state): Change canonical_names type to it.
11424 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11425 xrealloc element size. Initialize the different CANONICAL fields.
11426 (canonical_to_fullform): New.
11427 (filter_results): Use it. Add variables canonical, fullform and
11428 cleanup.
11429 (struct decode_line_2_item, decode_line_2_compare_items): New.
11430 (decode_line_2): Remove variables iter and item_names, add variables
11431 items and items_count. Modify the code for these new variables.
11432
114332013-03-04 Corinna Vinschen <vinschen@redhat.com>
11434
11435 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11436 calling do_cleanup.
11437
114382013-03-04 Luis Machado <lgustavo@codesourcery.com>
11439
11440 * tracepoint.c (build_traceframe_info): Add code for byte order.
11441
114422013-03-02 Kevin Buettner <kevinb@redhat.com>
11443
11444 * v850-tdep.c: (v850e2_register_name): Revise system register
11445 names to match current V850E2M architecture specifications.
11446 Update register number enum comments too.
11447
114482013-03-01 Jiong Wang <jiwang@tilera.com>
11449 Pedro Alves <palves@redhat.com>
11450
11451 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11452 to END_ADDR.
11453 (tilegx_skip_prologue): Limit prologue analysis to section end.
11454
114552013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11456
11457 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11458 use it.
11459
114602013-03-01 Pedro Alves <palves@redhat.com>
11461
11462 Use gdb_byte for bytes from the program being debugged.
11463
11464 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11465 Change type of local 'buf' to gdb_byte.
11466 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11467 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11468 * cris-tdep.c (cris_sigcontext_addr)
11469 (cris_sigtramp_frame_unwind_cache): Likewise.
11470 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11471 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11472 Likewise.
11473 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11474 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11475 (hppa32_hpux_search_dummy_call_sequence)
11476 (hppa_hpux_supply_save_state): Likewise.
11477 * hppa-linux-tdep.c (insns_match_pattern)
11478 (hppa_linux_find_global_pointer): Likewise.
11479 * hppa-tdep.c (hppa_in_function_epilogue_p)
11480 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11481 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11482 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11483 (i386fbsd_collect_uthread): Likewise.
11484 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11485 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11486 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11487 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11488 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11489 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11490 (ia64_libunwind_frame_prev_register)
11491 (ia64_libunwind_sigtramp_frame_this_id)
11492 (ia64_find_global_pointer_from_dynamic_section)
11493 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11494 (ia64_unwind_pc): Likewise.
11495 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11496 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11497 (m68hc11_extract_return_value): Likewise.
11498 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11499 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11500 (mep_get_insn, mep_push_dummy_call): Likewise.
11501 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11502 (mips_linux_in_dynsym_stub): Likewise.
11503 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11504 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11505 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11506 to gdb_byte.
11507 * remote-mips.c (mips_set_register): Likewise.
11508 * remote-sim.c (gdbsim_fetch_register): Likewise.
11509 * score-tdep.c (score7_fetch_inst): Change type of parameter
11510 'memblock' and local 'buf' to gdb_byte.
11511 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11512 Change type of local 'buf' to gdb_byte. Adjust.
11513 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11514 to gdb_byte**.
11515 (score7_analyze_prologue): Change type of 'memblock' and
11516 'memblock_ptr' locals to gdb_byte*.
11517 * sh64-tdep.c (sh64_extract_return_value)
11518 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11519 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11520 * solib-pa64.c (pa64_solib_create_inferior_hook)
11521 (pa64_open_symbol_file_object): Remove local 'buf'.
11522 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11523 (som_open_symbol_file_object): Likewise.
11524 * solib-spu.c (spu_current_sos): Likewise.
11525 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11526 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11527 (spu_store_registers): Likewise.
11528 * target.c (debug_print_register): Likewise.
11529 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11530 * xstormy16-tdep.c (xstormy16_store_return_value)
11531 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11532 (xstormy16_find_jmp_table_entry): Likewise.
11533
115342013-03-01 Jiong Wang <jiwang@tilera.com>
11535
11536 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11537 (tilegx_gdbarch_init): Install it.
11538
115392013-02-28 Tom Tromey <tromey@redhat.com>
11540
11541 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11542 PyLong_Check.
11543
115442013-02-28 Doug Evans <dje@google.com>
11545
11546 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11547 * python/python.c (gdbpy_find_pc_line): Ditto.
11548
115492013-02-28 Tom Tromey <tromey@redhat.com>
11550
11551 * contrib/excheck.py: New file.
11552 * contrib/exsummary.py: New file.
11553 * contrib/gcc-with-excheck: New file.
11554
115552013-02-28 Tom Tromey <tromey@redhat.com>
11556
11557 * python/python.c (gdbpy_print_stack): Call begin_line and
11558 fprintf_filtered inside TRY_CATCH.
11559
115602013-02-28 Tom Tromey <tromey@redhat.com>
11561
11562 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11563 inside TRY_CATCH.
11564
115652013-02-28 Tom Tromey <tromey@redhat.com>
11566
11567 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11568 frame_object_to_frame_info inside TRY_CATCH.
11569
115702013-02-28 Tom Tromey <tromey@redhat.com>
11571
11572 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11573 TRY_CATCH.
11574
115752013-02-28 Tom Tromey <tromey@redhat.com>
11576
11577 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11578
115792013-02-27 Corinna Vinschen <vinschen@redhat.com>
11580
11581 * windows-nat.c: Throughout, fix format strings and casts of
11582 printf-like functions to avoid type related warnings on all
11583 platforms.
11584 (handle_output_debug_string): Fetch context information address
11585 from debug string using string_to_core_addr.
11586
115872013-02-27 Jiong Wang <jiwang@tilera.com>
11588
11589 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11590 * regformats/reg-tilegx32.dat: New.
11591
115922013-02-27 Jiong Wang <jiwang@tilera.com>
11593
11594 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11595
115962013-02-27 Jiong Wang <jiwang@tilera.com>
11597
11598 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11599
116002013-02-27 Yao Qi <yao@codesourcery.com>
11601 Pedro Alves <palves@redhat.com>
11602
11603 * tracepoint.c (tfile_trace_find): For tfind
11604 pc/tp/range/outside, look for the next trace frame instead of
11605 always starting from frame 0.
11606
116072013-02-26 Anthony Green <green@moxielogic.com>
11608
11609 * configure.tgt: Add support for moxie-*-rtems* target.
11610
116112013-02-25 Pedro Alves <palves@redhat.com>
11612
11613 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11614 warning text.
11615
116162013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11617
11618 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11619 if $fp is used as the virtual frame pointer.
11620
116212013-02-23 Alan Modra <amodra@gmail.com>
11622
11623 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11624 symbol size.
11625 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11626 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11627 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11628 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11629
116302013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11631
11632 Code cleanup.
11633 * elfread.c (build_id_bfd_get): Make the return type const.
11634 (build_id_verify): Make the check parameter const.
11635 (build_id_to_debug_filename): Make the build_id parameter and variable
11636 data const.
11637 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11638
116392013-02-21 Alan Modra <amodra@gmail.com>
11640
11641 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11642
116432013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11644
11645 Add a new method 'disassemble' to gdb.Architecture class.
11646 * python/py-arch.c (archpy_disassmble): Implementation of the
11647 new method gdb.Architecture.disassemble.
11648 (arch_object_methods): Add entry for the new method.
11649
116502013-02-20 Jiong Wang <jiwang@tilera.com>
11651
11652 * MAINTAINERS (Write After Approval): Add myself to the list.
11653
116542013-02-19 Pedro Alves <palves@redhat.com>
11655
11656 Garbage collect 'struct monitor_ops'::load_routine.
11657
11658 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11659 * monitor.c (monitor_load): No longer call
11660 current_monitor->load_routine.
11661 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11662 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11663 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11664
116652013-02-19 Pedro Alves <palves@redhat.com>
11666
11667 PR gdb/15161
11668
11669 Harmonize with generic_load.
11670
11671 * monitor.c: Include "readline/readline.h".
11672 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11673 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11674 long/strtol for the 'load_offset' local. Error out if no argument
11675 is given or if too many arguments are given. Tilde expand the
11676 passed in file name.
11677
116782013-02-19 Kai Tietz <ktietz@redhat.com>
11679
11680 PR gdb/15161
11681 * symfile.c (load_section_data): Change type of load_offset
11682 to CORE_ADDR.
11683 (generic_load): User strtoulst instead of strtoul for conversion
11684 of load_offset.
11685
116862013-02-19 Jiong Wang <jiwang@tilera.com>
11687
11688 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11689 for return address, "lr" register, saved on stack.
11690 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11691 after we invoke tilegx_analyze_prologue.
11692
116932013-02-19 Jiong Wang <jiwang@tilera.com>
11694
11695 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11696
116972013-02-19 Jiong Wang <jiwang@tilera.com>
11698
11699 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11700
117012013-02-19 Jiong Wang <jiwang@tilera.com>
11702
11703 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11704 (tilegx_write_pc): New function.
11705 (tilegx_cannot_reference_register): Return zero if REGNO
11706 is TILEGX_FAULTNUM_REGNUM.
11707 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11708 (tilegx_register_name): Add handling of "faultnum" register.
11709 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11710 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11711 handling of TILEGX_FAULTNUM_REGNUM.
11712 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11713
117142013-02-19 Jiong Wang <jiwang@tilera.com>
11715
11716 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11717 should be aligned to 64bit.
11718
117192013-02-19 Kai Tietz <ktietz@redhat.com>
11720
11721 * windows-nat.c (windows_xfer_memory): Fix debug-output
11722 for LLP64.
11723
117242013-02-19 Lei Liu <lei.liu2@windriver.com>
11725
11726 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11727 Don't check DSP register number if HAVE_DSP is not set.
11728
117292013-02-19 Alan Modra <amodra@gmail.com>
11730
11731 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11732 throughout file instead.
11733 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11734 Don't xmalloc return value.
11735 (build_id_verify): Similarly. Don't xfree.
11736 (build_id_to_debug_filename): Update.
11737 (find_separate_debug_file_by_buildid): Update, don't xfree.
11738
117392013-02-18 Tom Tromey <tromey@redhat.com>
11740
11741 PR gdb/15102:
11742 * dwarf2read.c (read_subrange_type): Use result of
11743 'check_typedef'.
11744
117452013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11746
11747 * frame.c: Remove one extra white space after #include
11748 directive.
11749
117502013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11751
11752 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11753
117542013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11755
11756 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11757 and dir commands into an if block.
11758
117592013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11760
11761 * python/py-breakpoint (struct pybp_code): Use int instead of
11762 enum type_code.
11763
117642013-02-15 Pedro Alves <pedro@codesourcery.com>
11765 Hafiz Abid Qadeer <abidh@codesourcery.com>
11766
11767 * NEWS: Mention new field "trace-file".
11768 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11769 (tfile_open): Record the trace file's filename in the trace
11770 status.
11771 (tfile_files_info): Mention the name of the trace file.
11772 Check the "filename" field explicitely.
11773 (trace_status_command): Explicitely check "filename" field.
11774 (trace_find_command): Ditto.
11775 (trace_find_pc_command): Ditto.
11776 (trace_find_tracepoint_command): Ditto.
11777 (trace_find_line_command): Ditto.
11778 (trace_find_range_command): Ditto.
11779 (trace_find_outside_command): Ditto.
11780 * tracepoint.h (struct trace_status) <from_file>: Rename it
11781 to "filename" and make it hold the trace file's filename
11782 instead of a boolean.
11783 * remote.c (remote_get_trace_status): Initialize "filename"
11784 field with NULL instead of 0.
11785
117862013-02-15 Yao Qi <yao@codesourcery.com>
11787
11788 * remote.c: Fix a typo.
11789
117902013-02-14 Pierre Muller <muller@sourceware.org>
11791
11792 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11793
117942013-02-14 Pedro Alves <palves@redhat.com>
11795
11796 * utils.c (savestring): Don't #undef it. Move function to
11797 common/common-utils.c.
11798 * common/common-utils.c: Include gdb_string.h.
11799 (savestring): Move here from utils.c.
11800 * common/common-utils.h (savestring): Declare.
11801
118022013-02-14 Pedro Alves <palves@redhat.com>
11803
11804 * utils.c (savestring): Rename parameter 'size' to 'len'.
11805
118062013-02-14 Pedro Alves <palves@redhat.com>
11807 Yufeng Zhang <yufeng.zhang@arm.com>
11808
11809 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11810 (aarch64_inferior_data, struct aarch64_inferior_data):
11811 Delete.
11812 (struct aarch64_process_info): New.
11813 (aarch64_process_list): New global.
11814 (aarch64_find_process_pid, aarch64_add_process)
11815 (aarch64_process_info_get): New functions.
11816 (aarch64_inferior_data_get): Delete.
11817 (aarch64_process_info_get): New function.
11818 (aarch64_forget_process): New function.
11819 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11820 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11821 aarch64_get_debug_reg_state.
11822 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11823 instead of linux_nat_iterate_watchpoint_lwps.
11824 (aarch64_linux_new_fork): New function.
11825 (aarch64_linux_child_post_startup_inferior): Use
11826 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11827 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11828 (aarch64_linux_remove_hw_breakpoint)
11829 (aarch64_handle_aligned_watchpoint)
11830 (aarch64_handle_unaligned_watchpoint)
11831 (aarch64_linux_insert_watchpoint)
11832 (aarch64_linux_remove_watchpoint)
11833 (aarch64_linux_stopped_data_address): Adjust to pass the current
11834 process id to aarch64_debug_reg_state.
11835 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11836 linux_nat_new_fork hook, and aarch64_forget_process as
11837 linux_nat_forget_process hook; remove the call to
11838 register_inferior_data_with_cleanup.
11839
118402013-02-14 Pedro Alves <palves@redhat.com>
11841
11842 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11843 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11844 lval_memory.
11845
118462013-02-14 Pedro Alves <pedro@codesourcery.com>
11847 Hafiz Abid Qadeer <abidh@codesourcery.com>
11848
11849 * tracepoint.h (validate_trace_state_variable_name): Declare.
11850 * tracepoint.c (validate_trace_state_variable_name): New.
11851 (trace_variable_command): Parse the trace state variable's name
11852 without using parse_expression. Do several validations.
11853 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11854 trace state variable's name with parse_expression. Validate it.
11855
118562013-02-14 Yao Qi <yao@codesourcery.com>
11857
11858 * infcmd.c (breakpoint_proceeded): Remove it.
11859
118602013-02-14 Yao Qi <yao@codesourcery.com>
11861
11862 * tracepoint.c (end_actions_pseudocommand): Make it static.
11863 (while_stepping_pseudocommand): Likewise.
11864 * tracepoint.h (end_actions_pseudocommand): Remove the
11865 declaration.
11866 (while_stepping_pseudocommand): Likewise.
11867
118682013-02-14 Yao Qi <yao@codesourcery.com>
11869
11870 * cli/cli-decode.c (help_cmd): Remove the declaration of
11871 "cmdlist".
11872 (help_all): Likewise.
11873
118742013-02-13 Pedro Alves <palves@redhat.com>
11875
11876 * amd64-linux-nat.c (update_debug_registers_callback):
11877 Update comment.
11878 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11879 iterate_over_lwps.
11880 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11881 i386_debug_reg_state.
11882 (amd64_linux_new_fork): New function.
11883 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11884 linux_nat_new_fork hook, and i386_forget_process as
11885 linux_nat_forget_process hook.
11886 * i386-linux-nat.c (update_debug_registers_callback):
11887 Update comment.
11888 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11889 iterate_over_lwps.
11890 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11891 i386_debug_reg_state.
11892 (i386_linux_new_fork): New function.
11893 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11894 linux_nat_new_fork hook, and i386_forget_process as
11895 linux_nat_forget_process hook.
11896 * i386-nat.c (i386_init_dregs): Delete.
11897 (i386_inferior_data, struct i386_inferior_data):
11898 Delete.
11899 (struct i386_process_info): New.
11900 (i386_process_list): New global.
11901 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11902 New functions.
11903 (i386_inferior_data_get): Delete.
11904 (i386_process_info_get): New function.
11905 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11906 (i386_forget_process): New function.
11907 (i386_cleanup_dregs): Rewrite.
11908 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11909 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11910 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11911 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11912 to i386_debug_reg_state.
11913 (i386_use_watchpoints): Don't register inferior data.
11914 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11915 adjust comment.
11916 (i386_forget_process): Declare.
11917 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11918 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11919 New static globals.
11920 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11921 (add_initial_lwp): New, factored out from ...
11922 (add_lwp): ... this. Don't check the number of lwps before
11923 calling linux_nat_new_thread.
11924 (linux_nat_iterate_watchpoint_lwps): Delete.
11925 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11926 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11927 forks and vforks.
11928 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11929 initial lwp.
11930 (linux_nat_kill, linux_nat_mourn_inferior): Call
11931 linux_nat_forget_process.
11932 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11933 (linux_nat_forget_process): New functions.
11934 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11935 type.
11936 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11937 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11938 types.
11939 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11940 (linux_nat_forget_process): New declarations.
11941
11942 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11943 (amd64fbsd_mourn_inferior): New function.
11944 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11945 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11946
119472013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11948
11949 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11950 Adding _().
11951
119522013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11953
11954 * aarch64-linux-nat.c (debug_reg_change_callback)
11955 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11956 %s and phex().
11957
119582013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11959
11960 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11961 with LONGEST.
11962
119632013-02-13 Pedro Alves <palves@redhat.com>
11964 Hafiz Abid Qadeer <abidh@codesourcery.com>
11965
11966 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11967
119682013-02-12 Tom Tromey <tromey@redhat.com>
11969
11970 PR symtab/11464:
11971 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11972 NAME return.
11973 (classify_inner_name): Remove 'first_name' argument, add
11974 'context'. Remove unused variable.
11975 (yylex): Explicitly maintain the context type. Exit loop earlier
11976 if NAME result is seen.
11977
119782013-02-12 Pedro Alves <palves@redhat.com>
11979
11980 * amd64-darwin-tdep.c: Add (C) after Copyright.
11981 * cli/cli-cmds.h: Ditto.
11982 * cli/cli-decode.c: Ditto.
11983 * cli/cli-decode.h: Ditto.
11984 * cli/cli-dump.c: Ditto.
11985 * cli/cli-dump.h: Ditto.
11986 * cli/cli-interp.c: Ditto.
11987 * cli/cli-logging.c: Ditto.
11988 * cli/cli-script.c: Ditto.
11989 * cli/cli-script.h: Ditto.
11990 * cli/cli-setshow.c: Ditto.
11991 * cli/cli-setshow.h: Ditto.
11992 * cli/cli-utils.c: Ditto.
11993 * cli/cli-utils.h: Ditto.
11994 * config/alpha/nm-osf3.h: Ditto.
11995 * config/djgpp/djconfig.sh: Ditto.
11996 * config/i386/nm-fbsd.h: Ditto.
11997 * config/i386/nm-i386gnu.h: Ditto.
11998 * config/nm-linux.h: Ditto.
11999 * config/nm-nto.h: Ditto.
12000 * config/rs6000/nm-rs6000.h: Ditto.
12001 * config/sparc/nm-sol2.h: Ditto.
12002 * darwin-nat-info.c: Ditto.
12003 * dfp.c: Ditto.
12004 * dfp.h: Ditto.
12005 * gdb-demangle.h: Ditto.
12006 * i386-darwin-nat.c: Ditto.
12007 * i386-darwin-tdep.c: Ditto.
12008 * linux-fork.h: Ditto.
12009 * m32c-tdep.c: Ditto.
12010 * microblaze-linux-tdep.c: Ditto.
12011 * microblaze-rom.c: Ditto.
12012 * microblaze-tdep.c: Ditto.
12013 * microblaze-tdep.h: Ditto.
12014 * mips-linux-tdep.h: Ditto.
12015 * ppc-ravenscar-thread.c: Ditto.
12016 * ppc-ravenscar-thread.h: Ditto.
12017 * prologue-value.c: Ditto.
12018 * prologue-value.h: Ditto.
12019 * ravenscar-thread.c: Ditto.
12020 * ravenscar-thread.h: Ditto.
12021 * sparc-ravenscar-thread.c: Ditto.
12022 * sparc-ravenscar-thread.h: Ditto.
12023 * tilegx-linux-tdep.c: Ditto.
12024 * unwind_stop_reasons.def: Ditto.
12025 * windows-nat.h: Ditto.
12026 * xtensa-linux-tdep.c: Ditto.
12027 * xtensa-xtregs.c: Ditto.
12028 * regformats/regdat.sh: Ditto.
12029 * regformats/regdef.h: Ditto.
12030
120312013-02-12 Pedro Alves <palves@redhat.com>
12032
12033 * break-catch-sig.c: Update copyright years.
12034
120352013-02-11 Siva Chandra Reddy <sivachandra@google.com>
12036
12037 Add support for a destructor for ui_out data and use it to
12038 provide a ui_out destructor.
12039 * ui-out.h: Declare the new ui_out destructor.
12040 (ui_out_impl): Add a field for data destructor in ui_out_impl.
12041 * ui-out.c (default_data_destroy): Add a default data destructor
12042 which does nothing.
12043 (default_ui_out_impl): Set the new data_destroy field to
12044 default_data_destroy
12045 (uo_data_destroy): Local function which invokes the data
12046 destructor if present.
12047 (clear_table): Local function which clears the table data of a
12048 ui_out object.
12049 (ui_out_destroy): Public function which frees a ui_out object.
12050 (ui_out_table_end): Use the new clear_table function.
12051 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
12052 NULL.
12053 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
12054 to NULL.
12055
120562013-02-11 Doug Evans <dje@google.com>
12057
12058 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
12059 (printf_decfloat): New function. Broken out from ui_printf.
12060 Remove unnecessary code to shift the entire format string down.
12061 (printf_pointer): New function.
12062 (ui_printf): Code to print C strings, wide C strings, decfloats,
12063 and pointers moved to separate functions.
12064
120652013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12066
12067 * valops.c (value_assign): Handling bitfield offset in
12068 `lval_internalvar_component' case.
12069
120702013-02-08 Doug Evans <dje@google.com>
12071
12072 * common/format.c (parse_format_string): Fix whitespace.
12073
120742013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12075
12076 * stack.c (return_command): Work around uninitialized variable
12077 warning.
12078
120792013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12080
12081 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12082 number of the registers from 36 to 34.
12083
120842013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12085
12086 * NEWS: Mention new AArch64 native and target support.
12087
120882013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12089
12090 * MAINTAINERS (Write After Approval): Add myself.
12091
120922013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12093 Marcus Shawcroft <marcus.shawcroft@arm.com>
12094 Nigel Stephens <nigel.stephens@arm.com>
12095 Yufeng Zhang <yufeng.zhang@arm.com>
12096
12097 * aarch64-linux-nat.c: New file.
12098 * config/aarch64/linux.mh: New file.
12099 * configure.host: Add AArch64.
12100 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12101
121022013-02-07 Doug Evans <dje@google.com>
12103
12104 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12105 disassemble command.
12106
121072013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12108
12109 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12110 set_gdbarch_fetch_tls_load_module_address.
12111
121122013-02-06 David S. Miller <davem@davemloft.net>
12113
12114 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12115 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12116 * value.c (struct_return_convention): New function.
12117 (using_struct_return): Implement in terms of struct_return_convention.
12118 * value.h (struct_return_convention): Declare.
12119 * stack.c (return_command): Allow successful overriding of the return
12120 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12121
121222013-02-06 Tom Tromey <tromey@redhat.com>
12123
12124 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12125 outside of TRY_CATCH.
12126
121272013-02-06 Yao Qi <yao@codesourcery.com>
12128
12129 * mi/mi-interp.c: Include "tracepoint.h".
12130 (mi_tsv_modified): Declare.
12131 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12132 (mi_interpreter_init): Call observer_attach_tsv_modified.
12133 (mi_tsv_modified): New.
12134 (mi_tsv_created, mi_tsv_deleted): Update.
12135 * tracepoint.c (trace_variable_command): Call
12136 observer_notify_tsv_modified if the initial value of tsv is
12137 changed.
12138 (delete_trace_state_variable): Call
12139 observer_notify_tsv_deleted earlier.
12140 (trace_variable_command): Caller update.
12141 (create_tsv_from_upload): Likewise.
12142 * observer.sh: Declare "struct trace_state_variable".
12143
12144 * NEWS: Mention the new MI notification "=tsv-modified".
12145
121462013-02-05 Doug Evans <dje@google.com>
12147
12148 * completer.c (location_completer): Fix typo in comment.
12149
121502013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12151
12152 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12153 ADDRESS sorted.
12154
121552013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12156
12157 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12158 Refactor if statement to avoid trailing || operator.
12159
121602013-02-05 Andreas Tobler <andreast@fgznet.ch>
12161
12162 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12163
121642013-02-04 Andreas Tobler <andreast@fgznet.ch>
12165
12166 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12167 * configure.host: Add powerpc*-*-freebsd* target.
12168 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12169 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12170 * config/powerpc/fbsd.mh: New file.
12171
121722013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12173 Denys Vlasenko <dvlasenk@redhat.com>
12174 Pedro Alves <palves@redhat.com>
12175
12176 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12177 (struct elf_internal_linux_prpsinfo): Forward declare.
12178 * gdbarch.h, gdbarch.c: Regenerate.
12179 * linux-tdep.c: Include `cli/cli-utils.h'.
12180 (linux_fill_prpsinfo): New function.
12181 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12182 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12183 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12184 depending on gdbarch pointer bitness.
12185 * ppc-linux-tdep.c: Include elf-bfd.h.
12186 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12187 on 32-bit.
12188
121892013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12190 Marcus Shawcroft <marcus.shawcroft@arm.com>
12191 Nigel Stephens <nigel.stephens@arm.com>
12192 Yufeng Zhang <yufeng.zhang@arm.com>
12193
12194 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12195
121962013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12197 Marcus Shawcroft <marcus.shawcroft@arm.com>
12198 Nigel Stephens <nigel.stephens@arm.com>
12199 Yufeng Zhang <yufeng.zhang@arm.com>
12200
12201 * aarch64-newlib-tdep.c: New file.
12202 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12203 aarch64*-*-elf.
12204 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12205 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12206 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12207 * osabi.c (gdb_osabi_names): Add "Newlib".
12208
122092013-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 aarch64-linux-tdep.o.
12215 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12216 * aarch64-linux-tdep.c: New file.
12217 * aarch64-linux-tdep.h: New file.
12218 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12219 * configure.tgt: Add aarch64-none-linux-gnu.
12220
122212013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12222 Marcus Shawcroft <marcus.shawcroft@arm.com>
12223 Nigel Stephens <nigel.stephens@arm.com>
12224 Yufeng Zhang <yufeng.zhang@arm.com>
12225
12226 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12227 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12228 (ALLDEPFILES): Add aarch64-tdep.c.
12229 * aarch64-tdep.c: New file.
12230 * aarch64-tdep.h: New file.
12231 * configure.tgt: Add AArch64.
12232 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12233 (aarch64-expedite): New definition.
12234 * features/aarch64-core.xml: New file.
12235 * features/aarch64-fpu.xml: New file.
12236 * features/aarch64-without-fpu.c: New file (generated).
12237 * features/aarch64-without-fpu.xml: New file.
12238 * features/aarch64.c: New file (generated).
12239 * features/aarch64.xml: New file.
12240 * regformats/aarch64-without-fpu.dat: New file (generated).
12241 * regformats/aarch64.dat: New file (generated).
12242
122432013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12244
12245 * contrib/expect-read1.c: New file.
12246 * contrib/expect-read1.sh: New file.
12247
122482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12249
12250 * dwarf2read.c (file_file_name): New function with code from
12251 file_full_name.
12252 (file_full_name): Move most of the code to file_file_name.
12253 (macro_start_file): Rename variable full_name to file_name and use
12254 file_file_name for it. Add comp_dir parameter to new_macro_table.
12255 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12256 macro_source_file->filename access by macro_source_fullname call.
12257 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12258 caller.
12259 * macrotab.c (struct macro_table): New field comp_dir.
12260 (macro_include): New variables link_fullname and source_fullname.
12261 Replace any macro_source_file->filename access by macro_source_fullname
12262 call.
12263 (macro_lookup_inclusion): Remove the partial filenames checking code.
12264 (check_for_redefinition): New variables source_fullname and
12265 found_key_fullname. Replace any macro_source_file->filename access by
12266 macro_source_fullname call.
12267 (macro_undef): New variables source_fullname and key_fullname. Replace
12268 any macro_source_file->filename access by macro_source_fullname call.
12269 (macro_lookup_definition): New variables retval and source_fullname.
12270 Replace any macro_source_file->filename access by macro_source_fullname
12271 call.
12272 (foreach_macro): New variable key_fullname. Replace any
12273 macro_source_file->filename access by macro_source_fullname call.
12274 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12275 macro_source_file->filename access by macro_source_fullname call.
12276 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12277 (macro_source_fullname): New function.
12278 * macrotab.h (struct macro_source_file): Extent the filename field
12279 comment.
12280 (new_macro_table): New parameter comp_dir, add a comment for it.
12281 (macro_source_fullname): new declaration.
12282
122832013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12284
12285 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12286 this_real_name to outer block. Use it also for
12287 compare_filenames_for_search.
12288 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12289 with dw2_get_real_path for file_matcher, considering also
12290 BASENAMES_MAY_DIFFER.
12291 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12292
122932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12294
12295 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12296 to the file_matcher parameter. Pass 0 to it.
12297 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12298 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12299 NULL psymtab_to_fullname result.
12300 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12301 an expected filename instead.
12302 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12303 file_matcher parameter. Call also psymtab_to_fullname, after newly
12304 considering BASENAMES_MAY_DIFFER.
12305 * source.c (rewrite_source_path): Remove static.
12306 * source.h (rewrite_source_path): New declaration.
12307 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12308 the expand_symtabs_matching field. Comment it.
12309 * symtab.c (file_matches): New function comment. Add parameter
12310 basenames, implement it.
12311 (search_symbols_file_matches): Add basenames parameter. Update the
12312 file_matches caller.
12313 (search_symbols): Match FILES also against symtab_to_fullname.
12314 Optimize it for BASENAMES_MAY_DIFFER.
12315
123162013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12317
12318 * source.c (print_source_lines_base): Print for TUI also "fullname".
12319 * tui/tui-data.c (init_content_element): Change tui_locator_element
12320 field to full_name.
12321 * tui/tui-data.h (struct tui_locator_element): Likewise.
12322 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12323 tui_update_locator_filename calls to tui_update_locator_fullname.
12324 Replace symtab->filename refererence by symtab_to_fullname call.
12325 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12326 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12327 field to full_name. Replace symtab->filename refererence by
12328 symtab_to_fullname call.
12329 (tui_show_symtab_source): Rename parameter to fullname. Change
12330 tui_locator_element field to full_name.
12331 * tui/tui-stack.c: Include source.h.
12332 (tui_set_locator_filename): Rename the declaration to ...
12333 (tui_set_locator_fullname): ... here. Rename its parameter to
12334 fullname, updates its comment.
12335 (tui_set_locator_info): Rename its parameter to fullname.
12336 (tui_set_locator_filename): Rename the definition to ...
12337 (tui_set_locator_fullname): ... here. Rename its parameter to
12338 fullname, updates its comment. Change tui_locator_element field to
12339 full_name.
12340 (tui_set_locator_info): Rename its parameter to fullname.
12341 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12342 (tui_update_locator_filename): Rename to ...
12343 (tui_update_locator_fullname): ... here. Rename callee to
12344 tui_set_locator_fullname.
12345 (tui_show_frame_info): Replace symtab->filename refererence by
12346 symtab_to_fullname call.
12347 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12348 (tui_update_locator_fullname): ... here.
12349 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12350 tui_update_locator_fullname. Replace symtab->filename refererence by
12351 symtab_to_fullname call.
12352 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12353 Rename the callee to tui_update_locator_fullname.
12354 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12355
123562013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12357
12358 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12359 by symtab_to_filename_for_display calls.
12360 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12361 (clear_command): New variable sal_fullname, initialize it. Replace
12362 compare_filenames_for_search by filename_cmp with sal_fullname.
12363 (say_where, update_static_tracepoint): Replace symtab->filename
12364 refererences by symtab_to_filename_for_display calls.
12365 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12366 Likewise.
12367 * dwarf2read.c: Include source.h.
12368 (fixup_go_packaging): Replace symtab->filename refererences by
12369 symtab_to_filename_for_display calls.
12370 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12371 Replace symtab->filename refererences by symtab_to_filename_for_display
12372 calls.
12373 (create_sals_line_offset, convert_linespec_to_sals): New variable
12374 fullname, initialize it, replace symtab->filename reference by the
12375 variable.
12376 * linux-fork.c: Include source.h.
12377 (info_checkpoints_command): Replace symtab->filename refererences by
12378 symtab_to_filename_for_display calls.
12379 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12380 by symtab_to_filename_for_display calls.
12381 * mdebugread.c: Include source.h.
12382 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12383 symtab_to_filename_for_display calls.
12384 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12385 (mi_cmd_file_list_exec_source_files): Likewise.
12386 * printcmd.c: Include source.h.
12387 (build_address_symbolic): Replace symtab->filename refererences by
12388 symtab_to_filename_for_display calls.
12389 * psymtab.c (partial_map_symtabs_matching_filename)
12390 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12391 with psymtab_to_fullname.
12392 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12393 by symtab_to_filename_for_display calls.
12394 (stpy_get_filename): New variable filename, initialize it, use instead
12395 of symtab->filename refererences.
12396 (salpy_str): Make variable filename const char *. Replace
12397 symtab->filename refererences by symtab_to_filename_for_display calls.
12398 * skip.c: Include source.h and filenames.h.
12399 (skip_file_command): Remove const from the symtab variable. Replace
12400 symtab->filename refererences by symtab_to_fullname call.
12401 (function_name_is_marked_for_skip): New variables searched_for_fullname
12402 and fullname. Use them to search also with symtab's fullname.
12403 * source.c (find_source_lines): Replace symtab->filename refererences
12404 by symtab_to_filename_for_display calls.
12405 (print_source_lines_base): New variable filename, use it instead of
12406 symtab->filename. Replace symtab->filename refererences by
12407 symtab_to_filename_for_display calls.
12408 (line_info, forward_search_command): Replace symtab->filename
12409 refererences by symtab_to_filename_for_display calls.
12410 (reverse_search_command): Replace symtab->filename refererences by
12411 symtab_to_filename_for_display calls. New variable filename for it.
12412 * stack.c (frame_info): Likewise.
12413 * symmisc.c: Include source.h.
12414 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12415 (maintenance_info_symtabs): Replace symtab->filename refererences by
12416 symtab_to_filename_for_display calls.
12417 * symtab.c (iterate_over_some_symtabs): Call
12418 compare_filenames_for_search also with symtab_to_fullname.
12419 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12420 symtab->filename refererences by symtab_to_filename_for_display calls.
12421 (find_line_symtab): Replace symtab->filename refererences by
12422 symtab_to_filename_for_display calls.
12423 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12424 (print_symbol_info): Make the last parameter const char *. New
12425 variable s_filename. Use it in the function.
12426 (symtab_symbol_info): Make the last_filename variable const char *.
12427 Replace symtab->filename refererences by symtab_to_filename_for_display
12428 calls.
12429 (rbreak_command): New variable fullname. Use it. Replace
12430 symtab->filename refererence by symtab_to_filename_for_display call.
12431 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12432 (print_one_static_tracepoint_marker): Replace symtab->filename
12433 refererences by symtab_to_filename_for_display calls.
12434 * tui/tui-source.c (tui_set_source_content): New variables filename and
12435 s_filename. Replace symtab->filename refererences by this variable.
12436 Replace other symtab->filename refererences by
12437 symtab_to_filename_for_display calls.
12438
124392013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12440 Jan Kratochvil <jan.kratochvil@redhat.com>
12441
12442 Add a new variable that controls a way in which filenames are
12443 displayed.
12444 * NEWS (set filename-display): New entry.
12445 * source.c (filename_display_basename, filename_display_relative)
12446 (filename_display_absolute, filename_display_kind_names)
12447 (filename_display_string, show_filename_display_string)
12448 (symtab_to_filename_for_display): New.
12449 (_initialize_source): Added initialization of 'filename-display'
12450 variable.
12451 * source.h (symtab_to_filename_for_display): Added declaration.
12452 * stack.c (print_frame): Added new variable and calling of a new
12453 function and condition with this variable. Changed third argument of
12454 calling of a function.
12455
124562013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12457
12458 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12459 Rename field reference filename to fullname.
12460 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12461 fullname. New comment for it.
12462 * tui/tui-source.c (tui_set_source_content): Rename field reference
12463 filename to fullname. Initialize field by symtab_to_fullname now.
12464 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12465 reference filename to fullname. Use symtab_to_fullname during
12466 comparison.
12467
124682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12469
12470 Code cleanup.
12471 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12472 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12473 filename to fullname. Rename variable this_name to this_fullname.
12474 Lowercase FILENAME_CMP call.
12475 (dw2_find_symbol_file): New comment for the returned string.
12476 (dwarf2_gdb_index_functions): Rename the function to
12477 dw2_expand_symtabs_with_fullname.
12478 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12479 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12480 fullname.
12481 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12482 * symfile.h (struct quick_symbol_functions): Rename field
12483 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12484 parameter filename to fullname. Document returned string meaning for
12485 find_symbol_file.
12486 * symtab.c (find_line_symtab): Rename the called function to
12487 expand_symtabs_with_fullname.
12488
124892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12490
12491 Code cleanup.
12492 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12493 call of filename_cmp with compare_filenames_for_search.
12494 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12495 is_abs, unify the call of FILENAME_CMP with
12496 compare_filenames_for_search. New gdb_asserts for real_path and name.
12497 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12498 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12499 * symfile.h (struct quick_symbol_functions): Extend the comment for
12500 map_symtabs_matching_filename.
12501 * symtab.c (compare_filenames_for_search): Remove the function comment
12502 relative path requirement. Handle absolute filenames, with a comment.
12503 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12504 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12505 real_path and name. Unify the call of compare_filenames_for_search
12506 with FILENAME_CMP.
12507 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12508
125092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12510
12511 Code cleanup.
12512 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12513 source_file references by symtab field references. Remove variables
12514 sal and fullname.
12515 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12516 (clear_command, say_where): Replace bp_location field source_file
12517 references by symtab field references.
12518 (bp_location_dtor): Remove the source_file reference.
12519 (update_static_tracepoint): Replace bp_location field source_file
12520 references by symtab field references.
12521 (breakpoint_free_objfile): New function.
12522 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12523 Replace the field source_file by field symtab, extend its comment.
12524 (breakpoint_free_objfile): New declaration.
12525 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12526 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12527 field source_file references by symtab field references.
12528
125292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12530
12531 Replace xfullpath calls by gdb_realpath calls.
12532 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12533 function comment.
12534 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12535 Remove it from the iterate_over_some_symtabs call.
12536 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12537 Remove it from the dw2_map_expand_apply calls, remove a block handling
12538 it.
12539 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12540 Remove it from the iterate_over_some_symtabs call.
12541 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12542 Remove it from the partial_map_expand_apply calls, remove a block
12543 handling it. Drop gdb_realpath call and cleanups from the real_path
12544 handling.
12545 * source.c (openp): Drop the comment part about xfullpath. Replace
12546 xfullpath calls by gdb_realpath calls.
12547 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12548 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12549 from method map_symtabs_matching_filename and its comment.
12550 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12551 gdb_realpath call.
12552 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12553 remove it also from the function comment, remove a block handling it.
12554 Drop gdb_realpath call and cleanups from the real_path handling.
12555 (iterate_over_symtabs): Drop variable full_path and its use.
12556 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12557 * utils.c (xfullpath): Remove.
12558 * utils.h (xfullpath): Remove.
12559
125602013-02-01 Andreas Tobler <andreast@fgznet.ch>
12561
12562 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12563 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12564 (ALLDEPFILES): Add ppc64-tdep.c.
12565 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12566 ppc64-tdep.o to gdb_target_obs.
12567 * ppc64-tdep.h: New file.
12568 * ppc64-tdep.c: New file.
12569 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12570 ppc-linux-tdep.c to here.
12571 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12572 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12573 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12574 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12575 from ppc-linux-tdep.c to here.
12576 (ppc64_convert_from_func_ptr_addr): Rename from
12577 ppc64_linux_convert_from_func_ptr_addr to
12578 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12579 here.
12580 * rs6000-tdep.c:
12581 (read_insn): Move from ppc-linux-tdep.c to here.
12582 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12583 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12584 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12585 Removed above functions.
12586 (ppc_linux_init_abi): Adjust.
12587
125882013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12589
12590 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12591
125922013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12593
12594 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12595
125962013-02-01 Pedro Alves <palves@redhat.com>
12597
12598 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12599 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12600
126012013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12602
12603 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12604 files with no separate debug info.
12605 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12606 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12607 only for files with no separate debug info.
12608
126092013-01-31 Tom Tromey <tromey@redhat.com>
12610
12611 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12612 change type.
12613 (struct jit_program_space_data): Rename from jit_inferior_data.
12614 Update comments.
12615 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12616 Change return type. Attach data to program space.
12617 (jit_program_space_data_cleanup): Rename from
12618 jit_inferior_data_cleanup; change argument type.
12619 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12620 change type.
12621 (jit_register_code): Update.
12622 (jit_update_inferior_cache): Remove.
12623 (jit_breakpoint_deleted): Get jit data from the location's program
12624 space.
12625 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12626 'ps_data', change type.
12627 (jit_inferior_init, jit_breakpoint_re_set_internal)
12628 (jit_event_handler): Update.
12629 (free_objfile_data): Get data from objfile's program space.
12630 (_initialize_jit): Update.
12631
126322013-01-31 Tom Tromey <tromey@redhat.com>
12633
12634 PR gdb/13987:
12635 * jit.c (struct jit_inferior_data) <cached_code_address,
12636 jit_breakpoint>: New fields.
12637 (jit_breakpoint_re_set_internal): Fix logging. Only create
12638 breakpoint if cached address has changed.
12639 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12640 functions.
12641 (_initialize_jit): Register breakpoint deleted observer.
12642
126432013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12644
12645 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12646 (save_infcall_suspend_state): Ifdef out unused inf.
12647 (restore_infcall_suspend_state): Ifdef out unused inf.
12648 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12649 (jit_frame_sniffer): Remove unused inf_data.
12650
126512013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12652
12653 * c-exp.y (classify_inner_name): Remove unused type.
12654 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12655 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12656 need_escape.
12657 (c_get_string): Remove unused kind.
12658 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12659
126602013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12661
12662 * charset.c (intermediate_encoding): Remove unused i.
12663 * completer.c (signal_completer): Remove unused i.
12664 * continuations.c (discard_my_continuations_1): Remove unused
12665 continuation_ptr.
12666 * corelow.c (core_close): Remove unuseD name.
12667 (get_core_siginfo): Remove unused pid.
12668 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12669 i, cps.
12670 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12671 (loclist_describe_location): Remove unused first.
12672 * event-top.c (command_line_handler): Remove unused got_eof.
12673 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12674 (resize_section_table): Remove unused old_value.
12675 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12676 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12677 * i386-tdep.c (i386_process_record): Remove unused rex.
12678 * infcmd.c (get_return_value): Remove unused uiout.
12679 * jv-lang.c (type_from_class): Remove unused is_array.
12680 * jv-valprint.c (java_val_print): Remove unused i.
12681 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12682 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12683 * m2-typeprint.c (m2_print_type): Remove unused code.
12684 * macroexp.c (get_character_constant): Remove unused body_start.
12685 (macro_stringify): Remove unused result.
12686 * objc-lang.c (find_methods): Remove unused gdbarch.
12687 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12688 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12689 * stack.c (print_frame_args): Remove unused summary.
12690 * thread.c (thread_apply_command): Remove unused p.
12691 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12692 * valops.c (search_struct_method): Remove unused skip.
12693 * valprint.c (generic_val_print): Remove unused byte_order.
12694 * varobj.c (varobj_update): Remove unused changed.
12695 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12696 (alias_command): Remove unused c.
12697 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12698 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12699 format.
12700 (mi_cmd_data_write_memory): Remove unused word_format.
12701 (mi_cmd_data_write_memory_bytes): Remove unused r.
12702 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12703 p_start, p_end.
12704 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12705 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12706 line_width.
12707
127082013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12709
12710 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12711 * symtab.c (iterate_over_symtabs): Remove unused s.
12712 (find_pc_sect_symtab): Remove unused pspAce.
12713 (find_pc_sect_line): Remove unused alt_symtab.
12714 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12715 (completion_list_add_name): Remove unused newsize.
12716
127172013-01-31 Tom Tromey <tromey@redhat.com>
12718
12719 PR c++/14998:
12720 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12721 TYPE_CODE_FUNC.
12722
127232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12724
12725 * target.c (target_read_string): Remove unused origlen.
12726
127272013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12728
12729 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12730 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12731 * ax-general.c (ax_print): Remove unused is_float.
12732 * blockframe.c (block_innermost_frame): Remove unused start, end.
12733 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12734
127352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12736
12737 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12738 (svr4_read_so_list): Remove unused lmo.
12739 * solib-target.c (solib_target_relocate_section_addresses): Remove
12740 unused flags.
12741
127422013-01-30 Tom Tromey <tromey@redhat.com>
12743
12744 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12745
127462013-01-30 Tom Tromey <tromey@redhat.com>
12747
12748 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12749 * utils.c (gnu_debuglink_crc32): Remove.
12750 * utils.h (gnu_debuglink_crc32): Don't declare.
12751
127522013-01-30 Tom Tromey <tromey@redhat.com>
12753
12754 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12755 (read_structure_type, read_enumeration_type): Remove cast.
12756
127572013-01-30 Tom Tromey <tromey@redhat.com>
12758
12759 * dwarf2read.c (read_namespace_type): Remove cast.
12760 (read_typedef): Likewise.
12761
127622013-01-29 Tom Tromey <tromey@redhat.com>
12763
12764 * dwarf2read.c (free_dwo_file): Remove assert.
12765
127662013-01-29 Tom Tromey <tromey@redhat.com>
12767
12768 * value.c (deprecated_set_value_modifiable): Remove.
12769 * value.h (deprecated_set_value_modifiable): Remove.
12770
127712013-01-28 Doug Evans <dje@google.com>
12772
12773 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12774 to addresses from dwo files.
12775
127762013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12777
12778 * valops.c (find_overload_match): Remove unused argument 'lax'.
12779 * value.h: Remove unused argument 'lax' from the declaration of
12780 find_overload_match.
12781 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12782 to find_overload_match.
12783 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12784 argument to find_overload_match.
12785
127862013-01-25 Tom Tromey <tromey@redhat.com>
12787
12788 * dwarf2read.c (processing_has_namespace_info): Remove.
12789 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12790 (process_die, read_func_scope, dwarf2_start_symtab)
12791 (new_symbol_full): Update.
12792
127932013-01-25 Tom Tromey <tromey@redhat.com>
12794
12795 * cp-namespace.c (cp_set_block_scope): Remove.
12796 * cp-support.h (cp_set_block_scope): Remove.
12797 * dbxread.c: Include block.h.
12798 (cp_set_block_scope): New function.
12799 (process_one_symbol): Update.
12800 * dwarf2read.c (read_func_scope): Use block_set_scope.
12801
128022013-01-25 Pedro Alves <palves@redhat.com>
12803
12804 * remote.c (add_current_inferior_and_thread): Tweak comment.
12805
128062013-01-25 Tom Tromey <tromey@redhat.com>
12807
12808 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12809 (cp_add_using_directive): Add 'copy_names' argument.
12810 * cp-support.h (cp_add_using_directive): Update.
12811 (struct using_direct) <import_src, import_dest, alias,
12812 declaration>: Now const.
12813 * dwarf2read.c (read_import_statement): Use obconcat.
12814 Don't copy names passed to cp_add_using_directive.
12815
128162013-01-25 Tom Tromey <tromey@redhat.com>
12817
12818 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12819
128202013-01-25 Pedro Alves <palves@redhat.com>
12821
12822 * remote.c (stop_reply_extract_thread): New.
12823 (add_current_inferior_and_thread): New parameter 'wait_status'.
12824 Handle it.
12825 (remote_start_remote): Pass wait status to
12826 add_current_inferior_and_thread.
12827 (extended_remote_run): Update comment.
12828 (extended_remote_create_inferior_1): Pass wait status to
12829 add_current_inferior_and_thread.
12830
128312013-01-25 Andrew Burgess <aburgess@broadcom.com>
12832 Ulrich Weigand <uweigand@de.ibm.com>
12833
12834 * valarith.c (value_vector_widen): New function for replicating a
12835 scalar into a vector.
12836 (value_binop): Use value_vector_widen to widen scalar to vector
12837 rather than casting, this better matches gcc C behaviour.
12838 * valops.c (value_casst): Update logic for casting between vector
12839 types, and for casting from scalar to vector, try to match gcc C
12840 behaviour.
12841 * value.h (value_vector_widen): Declare.
12842 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12843 function, handle special case for casting scalar to vector.
12844 (opencl_relop): Use opencl_value_cast.
12845 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12846 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12847 in order to use opencl_value_cast.
12848
128492013-01-25 Yao Qi <yao@codesourcery.com>
12850
12851 * event-loop.c: Include "queue.h".
12852 (gdb_event_p): New typedef.
12853 (DECLARE_QUEUE_P): Use.
12854 (DEFINE_QUEUE_P): Use.
12855 (async_queue_event): Remove.
12856 (gdb_event_xfree): New.
12857 (initialize_event_loop): New.
12858 (process_event): Use QUEUE macros.
12859 (event_queue): Remove.
12860 (gdb_wait_for_event): Caller update.
12861 (check_async_event_handlers): Likewise.
12862 (poll_timers): Likewise.
12863 * event-loop.h (initialize_event_loop): Declare.
12864 * event-loop.c (gdb_event_xfree): New.
12865 * top.c (gdb_init): Call initialize_event_loop.
12866
128672013-01-25 Yao Qi <yao@codesourcery.com>
12868
12869 * event-loop.c (async_queue_event): Remove one parameter
12870 'position'. Remove code handling 'position' == TAIL.
12871 (gdb_wait_for_event): Caller update.
12872 (check_async_event_handlers): Caller update.
12873 (poll_timers): Caller update.
12874 * event-loop.h (enum queue_position): Remove.
12875
128762013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12877
12878 * MAINTAINERS: Update my email.
12879
128802013-01-25 Yao Qi <yao@codesourcery.com>
12881
12882 * main.c (print_gdb_help): Remove "--epoch" from the help
12883 message.
12884
128852013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12886
12887 * symtab.c (skip_prologue_using_sal): Consider a file
12888 change the same as an increased line number
12889
128902013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12891
12892 * MAINTAINERS (Write After Approval): Add myself to the list.
12893
128942013-01-24 Tom Tromey <tromey@redhat.com>
12895
12896 * ada-lang.h (ada_decode_symbol): Make return type const.
12897 * ada-lang.c (ada_decode_symbol): Likewise.
12898
128992013-01-23 Doug Evans <dje@google.com>
12900
12901 * linespec.c (find_linespec_symbols): Make static.
12902
129032013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12904
12905 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12906 type on float conversion for complex type.
12907
129082013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12909
12910 Add a new class gdb.Architecture which exposes GDB's
12911 internal representation of architecture via GDB Python API.
12912 * Makefile.in: Add entries corresponding to the new file
12913 python/py-arch.c.
12914 * NEWS (Python Scripting): Add entries for the new class
12915 gdb.Architecture and the new method gdb.Frame.architecture.
12916 * python/py-arch.c: Implement gdb.Architecture class.
12917 * python/py-frame.c (frapy_arch): Implement the method
12918 gdb.Frame.architecture().
12919 (frame_object_methods): Add 'architecture' to the method table.
12920 * python/python-internal.h: Add declarations of new utility
12921 functions.
12922 * python/python.c (_initialize_python): Initialize
12923 gdb.Architecture class.
12924
129252013-01-23 Doug Evans <dje@google.com>
12926
12927 Work around binutils/15021.
12928 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12929 type_unit_group out of union s. All uses updated.
12930 (read_index_from_section): Watch for index version 8.
12931 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12932 an imported symtab.
12933 (write_psymtabs_to_index): Increment version number to 8.
12934
129352013-01-22 Pedro Alves <palves@redhat.com>
12936
12937 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12938 user-visible.
12939
129402013-01-22 Pedro Alves <palves@redhat.com>
12941
12942 * annotate.c (annotate_breakpoints_changed): Rename to ...
12943 (annotate_breakpoints_invalid): ... this. Make static.
12944 (breakpoint_changed): Adjust.
12945 (_initialize_annotate): Always install the observers. Install a
12946 "breakpoint_created" observer.
12947 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12948 * breakpoint.c (set_breakpoint_condition)
12949 (breakpoint_set_commands, do_map_commands_command)
12950 (init_raw_breakpoint, clear_command, set_ignore_count)
12951 (enable_breakpoint_disp): No longer call
12952 annotate_breakpoints_changed.
12953
129542013-01-22 Pedro Alves <palves@redhat.com>
12955
12956 * annotate.c: Include "inferior.h".
12957 (frames_invalid_emitted)
12958 (breakpoints_invalid_emitted): New globals.
12959 (async_background_execution_p): New function.
12960 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12961 emitting the annotation if it has already been emitted.
12962 (annotate_display_prompt): New function.
12963 * annotate.h (annotate_display_prompt): New declaration.
12964 * event-top.c: Include annotate.h.
12965 (display_gdb_prompt): Call annotate_display_prompt.
12966
129672013-01-22 Pedro Alves <palves@redhat.com>
12968
12969 * annotate.c (ignore_count_changed): Delete.
12970 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12971 (annotate_ignore_count_change): Delete.
12972 (annotate_stopped): Don't emit a delayed breakpoints-changed
12973 annotation.
12974 * annotate.h (annotate_ignore_count_change): Delete.
12975 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12976 annotate_ignore_count_change.
12977
129782013-01-22 Tom Tromey <tromey@redhat.com>
12979
12980 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12981 require_rvalue for a register location.
12982
129832013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12984
12985 * breakpoint.c (print_one_breakpoint_location): Add MI
12986 field 'thread-groups' when printing a breakpoint.
12987 (output_thread_groups): New function.
12988
129892013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12990
12991 * python/lib/gdb/commands/explore.py
12992 (CompoundExplorer.explore_expr): Correct the name of a method
12993 being invoked.
12994 (ExploreTypeCommand.invoke): Add a missing 'return'.
12995
129962013-01-21 Tom Tromey <tromey@redhat.com>
12997
12998 * gdb_obstack.h (obconcat): Move declaration here, from...
12999 * symfile.h (obconcat): ... here.
13000 * gdb_obstack.c: New file.
13001 (obconcat): Move from...
13002 * symfile.c (obconcat): ... here.
13003 * Makefile.in (SFILES): Add gdb_obstack.c.
13004 (COMMON_OBS): Add gdb_obstack.o.
13005
130062013-01-21 Tom Tromey <tromey@redhat.com>
13007
13008 * symfile.h (obsavestring): Don't declare.
13009 * symfile.c (obsavestring): Remove.
13010 * ada-exp.y: Use obstack_copy0, not obsavestring.
13011 * ada-lang.c: Use obstack_copy0, not obsavestring.
13012 * coffread.c: Use obstack_copy0, not obsavestring.
13013 * cp-namespace.c: Use obstack_copy0, not obsavestring.
13014 * dbxread.c: Use obstack_copy0, not obsavestring.
13015 * dwarf2read.c: Use obstack_copy0, not obsavestring.
13016 * jit.c: Use obstack_copy0, not obsavestring.
13017 * mdebugread.c: Use obstack_copy0, not obsavestring.
13018 * psymtab.c: Use obstack_copy0, not obsavestring.
13019 * stabsread.c: Use obstack_copy0, not obsavestring.
13020 * xcoffread.c: Use obstack_copy0, not obsavestring.
13021
130222013-01-21 Tom Tromey <tromey@redhat.com>
13023
13024 * dwarf2read.c (fixup_go_packaging): Save package name
13025 on objfile obstack.
13026 * gdbtypes.c (init_type): Don't copy name.
13027
130282013-01-21 Tom Tromey <tromey@redhat.com>
13029
13030 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
13031 const.
13032 (struct attribute) <u.str>: Now const.
13033 (struct fnfieldlist) <name>: Now const.
13034 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
13035 (partial_die_parent_scope): Make return type const.
13036 (partial_die_full_name, add_partial_symbol): Update.
13037 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
13038 'name' const.
13039 (find_file_and_directory): Make 'name' and 'comp_dir' const.
13040 (read_file_scope, read_func_scope, dwarf2_add_field)
13041 (dwarf2_add_member_fn, read_structure_type)
13042 (process_enumeration_scope, read_array_type, read_module_type)
13043 (read_base_type, read_subrange_type): Update.
13044 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
13045 (new_symbol_full, guess_full_die_structure_name): Update.
13046 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
13047 (dwarf2_name): Return const type.
13048 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
13049 const.
13050
130512013-01-21 Tom Tromey <tromey@redhat.com>
13052
13053 * gdbtypes.c (init_type): Make 'name' const.
13054 * gdbtypes.h (init_type): Update.
13055
130562013-01-21 Tom Tromey <tromey@redhat.com>
13057
13058 * buildsym.c (patch_subfile_names): Use set_last_source_file.
13059 (start_symtab): Make 'name' and 'dirname' const. Use
13060 set_last_source_file.
13061 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13062 (last_source_file): Define. Now static.
13063 (set_last_source_file, get_last_source_file): New functions.
13064 * buildsym.h (last_source_file): Don't declare.
13065 (start_symtab): Update.
13066 (set_last_source_file, get_last_source_file): Declare.
13067 * coffread.c (complete_symtab): Use set_last_source_file.
13068 (coff_end_symtab): Likewise.
13069 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13070 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13071 set_last_source_file.
13072 (process_one_symbol): Use get_last_source_file.
13073 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13074 (psymtab_to_symtab_1): Use get_last_source_file.
13075 * xcoffread.c (process_linenos): Use get_last_source_file.
13076 (complete_symtab): Use set_last_source_file.
13077 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13078 (scan_xcoff_symtab): Use set_last_source_file.
13079
130802013-01-21 Tom Tromey <tromey@redhat.com>
13081
13082 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13083 (symbol_set_names): Remove casts. Handle field const-ness.
13084
130852013-01-21 Tom Tromey <tromey@redhat.com>
13086
13087 * dwarf2read.c (new_symbol_full): Remove cast.
13088 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13089 * symtab.h (symbol_set_demangled_name): Update.
13090
130912013-01-21 Tom Tromey <tromey@redhat.com>
13092
13093 * main.c (captured_main): Call bfd_init.
13094
130952013-01-21 Tom Tromey <tromey@redhat.com>
13096
13097 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13098 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13099 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13100 * NEWS: Update.
13101
131022013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13103
13104 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13105
131062013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13107
13108 Fix gdb.fortran/common-block.exp crash in PIE mode.
13109 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13110 LOC_COMMON_BLOCK.
13111 * f-valprint.c (info_common_command_for_block): Expect
13112 LOC_COMMON_BLOCK in gdb_assert.
13113 * symtab.h (struct general_symbol_info): Update comment for the
13114 common_block member.
13115 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13116 (enum address_class): New member LOC_COMMON_BLOCK.
13117
131182013-01-18 David Blaikie <dblaikie@gmail.com>
13119
13120 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13121
131222013-01-18 Tom Tromey <tromey@redhat.com>
13123
13124 PR c++/14999:
13125 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13126 Call require_rvalue.
13127
131282013-01-18 Yao Qi <yao@codesourcery.com>
13129
13130 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13131 (dbx_read_symtab): New declaration.
13132 (dbx_psymtab_to_symtab): Delete.
13133 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13134 Rename parameter PST to SELF. Exchanged two parameters.
13135 (start_psymtab): Caller update.
13136 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13137 (dwarf2_read_symtab): New declaration.
13138 (dwarf2_psymtab_to_symtab): Delete.
13139 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13140 Rename parameter PST to SELF. Exchanged two parameters.
13141 (create_partial_symtab): Caller update.
13142 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13143 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13144 Rename parameter PST to SELF. Exchanged two parameters.
13145 (parse_partial_symbols, new_psymtab): Caller update.
13146 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13147 two parameters.
13148 * psymtab.c (psymtab_to_symtab): Caller update.
13149 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13150 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13151 Rename parameter PST to SELF. Exchanged two parameters.
13152 (xcoff_start_psymtab): Caller update.
13153
131542013-01-18 Yao Qi <yao@codesourcery.com>
13155
13156 * infrun.c (proceed): Rename local variable 'oneproc' to
13157 'force_step'.
13158
131592013-01-17 Doug Evans <dje@google.com>
13160
13161 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13162 (dw2_build_type_unit_groups): Delete. All uses updated.
13163
13164 * symtab.h (struct symbol_search): Add comment.
13165
131662013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13167
13168 * symtab.c (compare_filenames_for_search): New comment for
13169 HAS_DRIVE_SPEC.
13170
131712013-01-17 Tom Tromey <tromey@redhat.com>
13172
13173 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13174
131752013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13176
13177 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13178 initialize it by existing make_cleanup. Call new do_cleanups.
13179
131802013-01-17 Tom Tromey <tromey@redhat.com>
13181
13182 * cp-abi.c (cp_abi_completer): New function.
13183 (_initialize_cp_abi): Set completer for "set cp-abi".
13184
131852013-01-17 Tom Tromey <tromey@redhat.com>
13186
13187 * mem-break.c: Remove obsolete comment.
13188 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13189
131902012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13191
13192 * jit.c (jit_reader_load_command): Interpret the jit reader name
13193 as an absolute path if it begins with a forward slash.
13194
131952012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13196
13197 PR gdb/14550
13198
13199 * jit.c (finalize_symtab): Ensure that only the global block has a
13200 NULL superblock.
13201
132022013-01-17 Pedro Alves <palves@redhat.com>
13203
13204 * acinclude.m4: Include ../config/plugins.m4,
13205 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13206 * Makefile.in (aclocal_m4_deps): Update.
13207 * aclocal.m4: Renegerate.
13208
132092013-01-16 Doug Evans <dje@google.com>
13210
13211 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13212
132132013-01-16 Pedro Alves <palves@redhat.com>
13214 Tom Tromey <tromey@redhat.com>
13215
13216 PR cli/7221:
13217 * NEWS: Add "catch signal".
13218 * breakpoint.c (base_breakpoint_ops): No longer static.
13219 (bpstat_explains_signal): New function.
13220 (init_catchpoint): No longer static.
13221 (base_breakpoint_explains_signal): New function.
13222 (base_breakpoint_ops): Initialize new field.
13223 * breakpoint.h (enum bpstat_signal_value): New.
13224 (struct breakpoint_ops) <explains_signal>: New field.
13225 (bpstat_explains_signal): Remove macro, declare as function.
13226 (base_breakpoint_ops, init_catchpoint): Declare.
13227 * break-catch-sig.c: New file.
13228 * inferior.h (signal_catch_update): Declare.
13229 * infrun.c (signal_catch): New global.
13230 (handle_syscall_event): Update for change to
13231 bpstat_explains_signal.
13232 (handle_inferior_event): Likewise. Always handle random signals
13233 via bpstats.
13234 (signal_cache_update): Check signal_catch.
13235 (signal_catch_update): New function.
13236 (_initialize_infrun): Initialize signal_catch.
13237 * Makefile.in (SFILES): Add break-catch-sig.c.
13238 (COMMON_OBS): Add break-catch-sig.o.
13239
132402013-01-16 Tom Tromey <tromey@redhat.com>
13241
13242 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13243 (print_one_catch_solib, print_one_catch_syscall)
13244 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13245 "catch-type".
13246
132472013-01-16 Yao Qi <yao@codesourcery.com>
13248
13249 * printcmd.c (current_display_number): Make it static.
13250
132512013-01-16 Yao Qi <yao@codesourcery.com>
13252
13253 * infcmd.c (step_once): Don't check '!single_inst' as it was
13254 checked before.
13255
132562013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13257
13258 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13259
132602013-01-14 Tom Tromey <tromey@redhat.com>
13261
13262 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13263 set command.
13264 * command.h (add_setshow_string_noescape_cmd): Update.
13265 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13266 (complete_set_gnutarget): New function.
13267 (_initialize_core): Set the "set gnutarget" completer.
13268
132692013-01-14 Tom Tromey <tromey@redhat.com>
13270
13271 PR symtab/14442:
13272 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13273 (c_type_print_modifier): Likewise.
13274 * dwarf2read.c (read_tag_restrict_type): New function.
13275 (read_type_die_1): Handle DW_TAG_restrict_type.
13276 * gdbtypes.c (make_restrict_type): New function.
13277 (recursive_dump_type): Handle TYPE_RESTRICT.
13278 * gdbtypes.h (enum type_flag_values): Renumber.
13279 (enum type_instance_flag_value): Add
13280 TYPE_INSTANCE_FLAG_RESTRICT.
13281 (TYPE_RESTRICT): New macro.
13282 (make_restrict_type): Declare.
13283
132842013-01-14 Tom Tromey <tromey@redhat.com>
13285
13286 PR symtab/14931:
13287 * psymtab.c (struct psymtab_state): New.
13288 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13289 functions.
13290 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13291 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13292
132932013-01-14 Richard Sharman <richard_sharman@mitel.com>
13294 Pedro Alves <palves@redhat.com>
13295
13296 PR remote/14786
13297
13298 * remote.c (remote_threads_info): Make a copy of the reply from
13299 qfThreadInfo and use that instead of rs->buf.
13300
133012013-01-14 Yao Qi <yao@codesourcery.com>
13302
13303 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13304 (dbx_psymtab_to_symtab): Likewise.
13305 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13306 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13307 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13308
133092013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13310
13311 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13312 make_cleanup_restore_current_language. Call set_language. Move
13313 OLD_CHAIN and INNER_CHAIN cleanups.
13314 * utils.c (do_restore_current_language)
13315 (make_cleanup_restore_current_language): New functions.
13316 * utils.h (make_cleanup_restore_current_language): New declaration.
13317
133182013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13319
13320 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13321 non-existing files.
13322
13323 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13324 non-existing files if FILENAME is already absolute.
13325
133262013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13327
13328 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13329 fputs_filtered. Append trailing newline.
13330
133312013-01-11 Yao Qi <yao@codesourcery.com>
13332 Stan Shebs <stan@codesourcery.com>
13333
13334 * psymtab.c (init_psymbol_list): Clarify the comment.
13335
133362013-01-11 Yao Qi <yao@codesourcery.com>
13337
13338 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13339 (update_dprintf_command_list): Assert that 'printf_line' is
13340 non-null. Remove condition check.
13341
133422013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13343
13344 Code cleanup.
13345 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13346 type const char *.
13347 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13348 const char *.
13349 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13350
133512013-01-09 Anthony Green <green@moxielogic.com>
13352
13353 * cp-abi.c (cplus_print_vtable): Don't return value from void
13354 function.
13355 * ada-lang.c (re_set_catch_assert): Ditto.
13356
133572013-01-09 Doug Evans <dje@google.com>
13358
13359 * symfile.h (quick_symbol_functions): Delete member
13360 pre_expand_symtabs_matching. All uses removed.
13361 * dwarf2read.c (dw2_lookup_symbol): Implement.
13362 (dw2_do_expand_symtabs_matching): Delete.
13363 (dw2_pre_expand_symtabs_matching): Delete.
13364 (struct dw2_symtab_iterator): New type.
13365 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13366 (dw2_expand_symtabs_for_function): Rewrite.
13367 (dwarf2_gdb_index_functions): Update.
13368 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13369 (psym_functions): Update.
13370
133712013-01-09 Tom Tromey <tromey@redhat.com>
13372
13373 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13374 * configure: Rebuild.
13375 * configure.ac: Add somread.o to the build if BFD has SOM
13376 support.
13377 * somread.c: Include som/aout.h, not syms.h.
13378 (som_symtab_read): Use som_external_symbol_dictionary_record.
13379 Unpack records manually.
13380 (_initialize_somread): Declare.
13381
133822012-01-08 Mike Frysinger <vapier@gentoo.org>
13383
13384 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13385 Cast return_address to 64bits.
13386
133872013-01-08 Hui Zhu <hui_zhu@mentor.com>
13388
13389 * printcmd.c: Remove define of function output_command.
13390 * tracepoint.c: Remove extern of function output_command.
13391 * valprint.h: (output_command): New extern.
13392
133932013-01-07 Tom Tromey <tromey@redhat.com>
13394
13395 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13396 Remove.
13397 (objc_language_defn): Use c_printchar, c_printstr,
13398 c_emit_char.
13399
134002013-01-07 Tom Tromey <tromey@redhat.com>
13401
13402 PR cli/7719:
13403 * NEWS: Update.
13404 * ada-valprint.c (printstr, print_field_values): Remove
13405 "inspect_it" code.
13406 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13407 code.
13408 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13409 code.
13410 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13411 * main.c (captured_main): Remove "epoch" argument.
13412 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13413 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13414 * p-valprint.c (pascal_object_print_value_fields): Remove
13415 "inspect_it" code.
13416 * printcmd.c (print_command_1): Remove 'inspect' argument.
13417 (print_command, call_command): Update.
13418 (inspect_command): Remove.
13419 (_initialize_printcmd): Make "inspect" an alias for "print".
13420 * top.c (epoch_interface): Remove.
13421 * top.h (epoch_interface): Remove.
13422 * valprint.c (user_print_options): Update.
13423 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13424 * valprint.h (struct value_print_options) <inspect_it>: Remove
13425 field.
13426
134272013-01-04 Tom Tromey <tromey@redhat.com>
13428
13429 * valprint.h (read_string): Add 'extern'.
13430
134312013-01-07 Joel Brobecker <brobecker@adacore.com>
13432
13433 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13434 used to decide whether to define darwin_read_dyld_info or not.
13435
134362013-01-03 Pierre Muller <muller@sourceware.org>
13437
13438 * main.c (relocate_gdb_directory): Avoid calling stat function
13439 if DIR is empty.
13440
134412013-01-03 Yao Qi <yao@codesourcery.com>
13442
13443 * psymtab.c (fixup_psymbol_section): Update declaration.
13444 (fixup_psymbol_section): Remove code returning value.
13445
134462013-01-03 Yao Qi <yao@codesourcery.com>
13447
13448 * symtab.h: Remove some out of date comments.
13449 (enum exception_event_kind): Move it ...
13450 * breakpoint.c: ... here.
13451
134522013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13453
13454 PR gdb/14405
13455 * darwin-nat.c (darwin_read_dyld_info): Only build if
13456 TASK_DYLD_INFO_COUNT is defined.
13457 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13458 TASK_DYLD_INFO_COUNT is defined.
13459
134602013-01-02 Tom Tromey <tromey@redhat.com>
13461
13462 * symfile.h (struct ecoff_debug_hack): Remove.
13463 * objfiles.c: Don't include mdebugread.h.
13464
134652013-01-02 Tom Tromey <tromey@redhat.com>
13466
13467 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13468 * configure.ac: Check for Mach-O support in BFD. Update
13469 CONFIG_OBS.
13470 * configure: Rebuild.
13471
134722013-01-02 Tom Tromey <tromey@redhat.com>
13473
13474 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13475 * configure.ac: Use GDB_AC_CHECK_BFD.
13476 * configure: Rebuild.
13477
134782013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13479
13480 * MAINTAINERS: Update my email.
13481
134822013-01-01 Joel Brobecker <brobecker@adacore.com>
13483
13484 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13485
134862013-01-01 Joel Brobecker <brobecker@adacore.com>
13487
13488 * rs6000-nat.c (bss_data_overlap): New function.
13489 (vmap_symtab): Use it to adjust the .bss section's offset.
13490
134912013-01-01 Joel Brobecker <brobecker@adacore.com>
13492
13493 Update year range in copyright notice of all files.
13494
134952013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13496
13497 * top.c (print_gdb_version): Update copyright year.
13498
13499For older changes see ChangeLog-2012.
13500\f
13501Local Variables:
13502mode: change-log
13503left-margin: 8
13504fill-column: 74
13505version-control: never
13506coding: utf-8
13507End:
This page took 0.881739 seconds and 4 git commands to generate.