c12e90766af24062e1b9e68bdf1deb0f94524820
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gdb/16304
4 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
5 address to 64-bit in 64-bit mode.
6
7 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR gdb/16304
10 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
11 system calls.
12 (amd64_x32_linux_record_tdep): New.
13 (amd64_linux_syscall_record_common): New function.
14 (amd64_linux_syscall_record): Call
15 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
16 (amd64_x32_linux_syscall_record): Call
17 amd64_linux_syscall_record_common with
18 amd64_x32_linux_record_tdep.
19 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
20 initialization and tdep->i386_syscall_record setup to ...
21 (amd64_linux_init_abi): Here.
22 (amd64_x32_linux_init_abi): Initialize
23 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
24 amd64_x32_linux_syscall_record.
25 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
26
27 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
28
29 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
30 argument prefixes and suffixes. Initialize gdbarch with them.
31 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
32 * gdbarch.c: Regenerate.
33 * gdbarch.h: Regenerate.
34 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
35 (stap_register_prefix, stap_register_suffix)
36 (stap_register_indirection_prefix)
37 (stap_register_indirection_suffix): Declare as "const char *const
38 *" instead of "const char *". Adjust printing function. Rename
39 all of the variables to the plural.
40 (pstring_list): New function.
41 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
42 argument prefixes and suffixes. Initialize gdbarch with them.
43 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
44 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
45 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
46 * stap-probe.c (stap_is_generic_prefix): New function.
47 (stap_is_register_prefix): Likewise.
48 (stap_is_register_indirection_prefix): Likewise.
49 (stap_is_integer_prefix): Likewise.
50 (stap_generic_check_suffix): Likewise.
51 (stap_check_integer_suffix): Likewise.
52 (stap_check_register_suffix): Likewise.
53 (stap_check_register_indirection_suffix): Likewise.
54 (stap_parse_register_operand): Remove unecessary declarations for
55 variables holding prefix and suffix information. Use the new
56 functions listed above for checking for prefixes and suffixes.
57 (stap_parse_single_operand): Likewise.
58
59 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
60
61 PR breakpoints/16297
62 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
63 when expected syscall is hit.
64
65 2013-12-19 Tom Tromey <tromey@redhat.com>
66
67 * ser-unix.c (hardwire_ops): New global.
68 (_initialize_ser_hardwire): Use it.
69 * ser-tcp.c (tcp_ops): New global.
70 (_initialize_ser_tcp): Use it.
71 * ser-pipe.c (pipe_ops): New global.
72 (_initialize_ser_pipe): Use it.
73 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
74 globals.
75 (_initialize_ser_windows): Use them.
76
77 2013-12-19 Tom Tromey <tromey@redhat.com>
78
79 * serial.c (serial_ops_p): New typedef.
80 (serial_ops_list): Now a VEC.
81 (serial_interface_lookup): Return const. Use VEC_iterate.
82 (serial_add_interface): Make parameter const.
83 (serial_open): Update.
84 (serial_fdopen_ops): Make 'ops' const.
85 (serial_pipe): Update.
86 * ser-tcp.c (_initialize_ser_tcp): Update.
87 * ser-pipe.c (_initialize_ser_pipe): Update.
88 * ser-unix.c (_initialize_ser_hardwire): Update.
89 * ser-mingw.c (_initialize_ser_windows): Update.
90 * ser-go32.c (dos_ops): Now const. Update.
91 * serial.h (struct serial) <ops>: Now const.
92 (struct serial_ops) <next>: Remove.
93 (serial_add_interface): Make parameter const.
94
95 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
96
97 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
98 iov.iov_len with the real length in use.
99
100 2013-12-18 Yao Qi <yao@codesourcery.com>
101
102 * target.h (target_xfer_partial_ftype): New typedef.
103 (target_xfer_partial): Update declaration.
104 * auxv.h (memory_xfer_auxv): Likewise.
105 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
106 * ia64-linux-nat.c (super_xfer_partial): Likewise.
107 * linux-nat.c (super_xfer_partial): Likewise.
108 * procfs.c (procfs_xfer_partial): Likewise.
109 * record-full.c (record_full_beneath_to_xfer_partial):
110 (tmp_to_xfer_partial): Likewise.
111 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
112 * target.c (default_xfer_partial): Likewise.
113 (current_xfer_partial): Likewise.
114 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
115
116 2013-12-18 Yao Qi <yao@codesourcery.com>
117
118 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
119 of sprintf.
120 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
121 (linux_proc_pending_signals): Likewise.
122
123 2013-12-18 Joel Brobecker <brobecker@adacore.com>
124
125 * value.c (value_entirely_unavailable): ARI fix: Move trailing
126 binary operator to the next line. No actual code change.
127
128 2013-12-17 Pedro Alves <palves@redhat.com>
129
130 * frame.h (enum frame_id_stack_status): New enum.
131 (struct frame_id) <stack_addr>: Adjust comment.
132 <stack_addr_p>: Delete field, replaced with ...
133 <stack_status>: ... this new field.
134 (frame_id_build_unavailable_stack): Declare.
135 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
136 (frame_id_build_special): Adjust.
137 (frame_id_build_unavailable_stack): New function.
138 (frame_id_build, frame_id_build_wild): Adjust.
139 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
140 account frames with unavailable stack.
141
142 * amd64-tdep.c (amd64_frame_this_id)
143 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
144 frame_id_build_unavailable_stack.
145 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
146 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
147 (i386_sigtramp_frame_this_id): Likewise.
148
149 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
150
151 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
152 unavailable, use correct bit length.
153 * value.c (struct value): Extend comment on unavailable to
154 indicate that it is bit based.
155 (value_bits_available): New function.
156 (value_bytes_available): Call value_bits_available.
157 (value_entirely_available): Check against the bit length, not byte
158 length.
159 (mark_value_bits_unavailable): New function.
160 (mark_value_bytes_unavailable): Move contents to
161 mark_value_bits_unavailable, call to same.
162 (memcmp_with_bit_offsets): New function.
163 (value_available_contents_bits_eq): New function, takes the
164 functionality from value_available_contents_eq but uses
165 memcmp_with_bit_offsets now, and is bit not byte based.
166 (value_available_contents_eq): Move implementation into
167 value_available_contents_bits_eq, call to same.
168 (value_contents_copy_raw): Work on bits, not bytes.
169 (unpack_value_bits_as_long_1): Check availability in bits, not
170 bytes.
171 * value.h (value_bits_available): Declare new function.
172 (mark_value_bits_unavailable): Declare new function.
173
174 2013-12-16 Pierre Muller <muller@sourceware.org>
175
176 Fix compilation error for cygwin native build.
177 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
178 Call wcstombs.
179
180 2013-12-16 Pedro Alves <palves@redhat.com>
181
182 PR 16329
183 * sol-thread.c (check_for_thread_db): If the target can't run or
184 isn't a core, return without pushing.
185
186 2013-12-15 Joel Brobecker <brobecker@adacore.com>
187
188 Revert the following commit:
189 * solib.c (solib_map_sections): Remove code overwriting
190 SO->SO_NAME with the bfd's filename.
191
192 Make the following changes required after the revert above:
193 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
194 returned bfd to a copy of the synthetic pathname.
195 * solib-darwin.c (darwin_bfd_open): Set the filename of the
196 returned bfd to a copy of PATHNAME.
197
198 2013-12-13 Joel Brobecker <brobecker@adacore.com>
199
200 * ada-lang.c (ada_array_bound_from_type): Move the declaration
201 and assignment of variable "elt_type" inside the else block
202 where it is used. Add two missing check_typedef calls.
203 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
204 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
205
206 2013-12-13 Joel Brobecker <brobecker@adacore.com>
207
208 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
209 between 'struct type *' and 'arr_type'.
210
211 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
212
213 PR python/16113
214 * NEWS (Python Scripting): Add entry for the new feature and the
215 new attribute of gdb.Field objects.
216 * python/py-type.c (gdbpy_is_field): New function
217 (convert_field): Add 'parent_type' attribute to gdb.Field
218 objects.
219 * python/py-value.c (valpy_getitem): Allow subscript value to be
220 a gdb.Field object.
221 (value_has_field): New function
222 (get_field_flag): New function
223 * python/python-internal.h (gdbpy_is_field): Add declaration.
224
225 2013-12-12 Pedro Alves <palves@redhat.com>
226
227 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
228 const, and remove casts.
229
230 2013-12-12 Pedro Alves <palves@redhat.com>
231
232 * cli/cli-cmds.c (source_script_from_stream) Use have_python
233 instead of catching UNSUPPORTED_ERROR.
234 * exceptions.h (UNSUPPORTED_ERROR): Delete.
235 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
236 error if called.
237 * python/python.h (have_python): New static inline function.
238
239 2013-12-11 Doug Evans <dje@google.com>
240
241 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
242 "can't find DWO" warning.
243
244 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
245
246 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
247 to get_probe_argument_count and evaluate_probe_argument.
248 * probe.c (get_probe_argument_count): Adjust declaration to accept
249 frame. Pass frame to probe_ops's get_probe_argument_count.
250 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
251 (probe_safe_evaluate_at_pc): Pass frame to
252 get_probe_argument_count and evaluate_probe_argument.
253 * probe.h (struct probe_ops) <get_probe_argument_count,
254 evaluate_probe_argument>: Adjust declarations to accept frame.
255 (get_probe_argument_count, evaluate_probe_argument): Likewise.
256 * solib-svr4.c (solib_event_probe_action): Get current frame.
257 Pass it to get_probe_argument_count.
258 (svr4_handle_solib_event): Get current frame. Pass it to
259 get_probe_argument_count and evaluate_probe_argument.
260 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
261 accept gdbarch. Do not obtain it from the probe's objfile.
262 (stap_get_probe_argument_count): Adjust declaration to accept
263 frame. Obtain gdbarch from the frame. Call generic
264 can_evaluate_probe_arguments. Pass gdbarch to
265 stap_parse_probe_arguments.
266 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
267 stap_parse_probe_arguments.
268 (stap_evaluate_probe_argument): Adjust declaration to accept
269 frame. Obtain gdbarch from the frame. Pass gdbarch to
270 stap_get_arg.
271 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
272 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
273 get_probe_argument_count and evaluate_probe_argument.
274
275 2013-12-10 Doug Evans <dje@google.com>
276
277 PR 16286
278 * c-lang.c (c_get_string): Ignore the declared size of the object
279 if a specific length is requested.
280
281 2013-12-10 Doug Evans <dje@google.com>
282
283 * interps.h (interp_exec_p): Delete.
284 * interps.c (interp_exec_p): Delete.
285 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
286 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
287
288 2013-12-10 Yao Qi <yao@codesourcery.com>
289
290 * amd64-tdep.c (amd64_analyze_stack_align): Call
291 target_read_code instead of target_read_memory.
292 (amd64_analyze_prologue): Call read_code_unsigned_integer
293 instead of read_memory_unsigned_integer. Call read_code
294 instead of read_memory.
295 (amd64_skip_xmm_prologue): Likewise.
296
297 2013-12-10 Yao Qi <yao@codesourcery.com>
298
299 * corefile.c (read_code): New function.
300 (read_code_integer): New function.
301 (read_code_unsigned_integer): New function.
302 * gdbcore.h (read_code): Declare.
303 (read_code_integer): Declare.
304 (read_code_unsigned_integer): Declare.
305 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
306 of target_read_memory. Call read_code_unsigned_integer instead
307 of read_memory_unsigned_integer.
308 (i386_analyze_struct_return): Likewise.
309 (i386_skip_probe): Likewise.
310 (i386_analyze_stack_align): Likewise.
311 (i386_match_pattern): Likewise.
312 (i386_skip_noop): Likewise.
313 (i386_analyze_frame_setup): Likewise.
314 (i386_analyze_register_saves): Likewise.
315 (i386_skip_prologue): Likewise.
316 (i386_skip_main_prologue): Likewise.
317 (i386_frame_cache_1): Likewise.
318
319 2013-12-10 Yao Qi <yao@codesourcery.com>
320
321 * infrun.c: Include "target-dcache.h".
322 (prepare_for_detach): Call target_dcache_invalidate.
323 (wait_for_inferior): Likewise.
324 (fetch_inferior_event): Likewise.
325 (infrun_thread_stop_requested_callback): Likewise. Set
326 overlay_cache_invalid to 1.
327
328 2013-12-10 Joel Brobecker <brobecker@adacore.com>
329
330 * symtab.c (symbol_find_demangled_name): Add handling of
331 Ada symbols.
332
333 2013-12-10 Joel Brobecker <brobecker@adacore.com>
334
335 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
336 * NEWS: Expand the entry documenting the new -exec-run --start
337 option to mention the corresponding new entry in the output of
338 "-list-features".
339
340 2013-12-10 Joel Brobecker <brobecker@adacore.com>
341
342 * windows-nat.c (handle_load_dll): Add comments.
343 (windows_ensure_ntdll_loaded): New function.
344 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
345 Add FIXME comment.
346
347 2013-12-08 Joel Brobecker <brobecker@adacore.com>
348
349 GDB 7.6.2 released.
350
351 2013-12-08 Yao Qi <yao@codesourcery.com>
352
353 * stack.c (frame_info): Initialize variable caller_pc.
354
355 2013-12-06 Pedro Alves <palves@redhat.com>
356
357 * frame.c (enum cached_copy_status): New enum.
358 (struct frame_info) <prev_pc.p>: Change type to enum
359 cached_copy_status.
360 (fprint_frame): Handle not saved and unavailable prev_pc values.
361 (frame_unwind_pc_if_available): Delete and merge contents into ...
362 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
363 to use enum cached_copy_status.
364 (frame_unwind_caller_pc_if_available): Delete.
365 (create_new_frame): Adjust.
366 * frame.h (frame_unwind_caller_pc_if_available): Delete
367 declaration.
368 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
369 frame_unwind_caller_pc_if_available, and handle
370 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
371 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
372 (val_print_not_saved): New function.
373 * valprint.h (val_print_not_saved): Declare.
374
375 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
376 Pedro Alves <palves@redhat.com>
377
378 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
379 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
380 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
381 * spu-tdep.c (spu_software_single_step): Throw
382 OPTIMIZED_OUT_ERROR.
383 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
384
385 2013-12-06 Tom Tromey <tromey@redhat.com>
386
387 * objfiles.c (free_objfile): Update comment.
388
389 2013-12-06 Tom Tromey <tromey@redhat.com>
390
391 * objfiles.h (objfile_to_front): Remove.
392 * objfiles.c (objfile_to_front): Remove.
393
394 2013-12-06 Tom Tromey <tromey@redhat.com>
395
396 * minsyms.c (get_symbol_leading_char): Remove unnecessary
397 declaration.
398
399 2013-12-06 Tom Tromey <tromey@redhat.com>
400
401 * psympriv.h (struct partial_symtab) <user>: Move earlier.
402
403 2013-12-06 Tom Tromey <tromey@redhat.com>
404
405 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
406 (list_command): Likewise.
407
408 2013-12-06 Tom Tromey <tromey@redhat.com>
409
410 * psymtab.c (allocate_psymtab): Put the filename in the filename
411 bcache.
412
413 2013-12-06 Tom Tromey <tromey@redhat.com>
414
415 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
416 * symtab.h (struct symtab) <dirname>: Now const.
417
418 2013-12-06 Tom Tromey <tromey@redhat.com>
419
420 * symfile.c (allocate_symtab): Remove cast.
421 * symtab.h (struct symtab) <filename>: Now const.
422
423 2013-12-06 Tom Tromey <tromey@redhat.com>
424
425 * break-catch-throw.c (fetch_probe_arguments): Use
426 get_probe_argument_count and evaluate_probe_argument.
427 * elfread.c (elf_get_probe_argument_count)
428 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
429 (elf_compile_to_ax): Remove.
430 (elf_probe_fns): Update.
431 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
432 (evaluate_probe_argument): Call method on probe, not via sym
433 functions.
434 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
435 evaluate_probe_argument.
436 (compile_probe_arg): Use get_probe_argument_count. Call method on
437 probe, not via sym functions.
438 * symfile-debug.c (debug_sym_get_probe_argument_count)
439 (debug_can_evaluate_probe_arguments)
440 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
441 Remove.
442 (debug_sym_probe_fns): Remove.
443 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
444 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
445 sym_compile_to_ax>: Remove fields.
446
447 2013-12-06 Pierre Muller <muller@sourceware.org>
448
449 Fix completion for pascal language.
450 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
451 (exp : field_exp name COMPLETE): New rule.
452 (exp : SIZEOF): Set correct current_type.
453 (last_was_structop): Remove static variable.
454 (yylex): Remove saw_structop local variable.
455 Adapt code to removal of variables above.
456
457 2013-12-06 Joel Brobecker <brobecker@adacore.com>
458
459 * frame.c (get_prev_frame_1): Delete variable "this_id".
460 Replace its use by a call to get_frame_id.
461
462 2013-12-05 Anthony Green <green@moxielogic.com>
463
464 * moxie-tdep.c (moxie_software_single_step): New function.
465 (INST2OFFSET): New helper macro.
466 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
467 (moxie_process_readu): Move this up in the file.
468
469 2013-12-05 Doug Evans <xdje42@gmail.com>
470
471 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
472
473 2013-12-05 Joel Brobecker <brobecker@adacore.com>
474 Tristan Gingold <gingold@adacore.com>
475
476 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
477 Accept version 2. Ignore operations using opcode 6.
478
479 2013-12-05 Joel Brobecker <brobecker@adacore.com>
480
481 * ada-lex.l (find_dot_all): Fix coding style violations.
482
483 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
484
485 * NEWS: Add section for Intel(R) Architecture Instructions
486 Extesions mentioning MPX.
487
488 2013-12-03 Joel Brobecker <brobecker@adacore.com>
489
490 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
491
492 2013-12-03 Joel Brobecker <brobecker@adacore.com>
493
494 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
495 when parse_exp_1 threw an error. Add comment.
496
497 2013-12-03 Joel Brobecker <brobecker@adacore.com>
498
499 * NEWS: Mention "-list-features" in the entry documenting
500 the support for the "--language" option.
501
502 2013-12-03 Tom Tromey <tromey@redhat.com>
503 Jan Kratochvil <jan.kratochvil@redhat.com>
504 Doug Evans <dje@google.com>
505 Samuel Bronson <naesten@gmail.com>
506
507 Bring back gdb-add-index as a contrib script.
508 * contrib/gdb-add-index.sh: New file.
509 * NEWS: Note the addition.
510
511 2013-12-03 Samuel Bronson <naesten@gmail.com>
512
513 * MAINTAINERS (Write After Approval): Add myself to the list.
514
515 2013-12-03 Joel Brobecker <brobecker@adacore.com>
516
517 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
518
519 2013-12-03 Joel Brobecker <brobecker@adacore.com>
520
521 * mi/mi-main.c: Remove trailing spaces throughout.
522
523 2013-12-03 Pedro Alves <palves@redhat.com>
524 Joel Brobecker <brobecker@adacore.com>
525
526 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
527 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
528 of a regular error when the GDB/MI command does not exist.
529 * mi/mi-main.c (mi_cmd_list_features): Add
530 "undefined-command-error-code".
531 (mi_print_exception): Print an "undefined-command"
532 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
533 * NEWS: Add entry documenting the new "code" variable in
534 "^error" result records.
535
536 2013-12-03 Joel Brobecker <brobecker@adacore.com>
537
538 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
539 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
540 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
541 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
542 field to output of "-list-features".
543
544 * NEWS: Add entry for new -info-gdb-mi-command.
545
546 2013-12-02 Doug Evans <dje@google.com>
547 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 * objfiles.c (allocate_objfile): Save original_name as an absolute
550 path.
551 * objfiles.h (struct objfile): Expand comment on original_name.
552 * source.c (openp): Call gdb_abspath.
553 * utils.c (gdb_abspath): New function.
554 * utils.h (gdb_abspath): Declare.
555
556 2013-12-02 Pedro Alves <palves@redhat.com>
557
558 * dcache.c (dcache_read_line): Use target_read_raw_memory.
559 * target.c (target_read_raw_memory): New function.
560 (target_read_stack, target_write_memory, target_write_raw_memory):
561 Update comment.
562 (target_read_code): Add comment.
563 * target.h (target_read_raw_memory): Declare.
564
565 2013-12-02 Pedro Alves <palves@redhat.com>
566
567 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
568 unconditionally.
569
570 2013-12-02 Pedro Alves <pedro@codesourcery.com>
571 Maciej W. Rozycki <macro@codesourcery.com>
572
573 * remote.c (putpkt_for_catch_errors): Remove function.
574 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
575 gracefully.
576
577 2013-12-02 Pedro Alves <palves@redhat.com>
578
579 PR remote/15974
580 * remote-notif.c (handle_notification): Return early if no
581 notification is found.
582
583 2013-12-02 Joel Brobecker <brobecker@adacore.com>
584
585 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
586 preprocessor check.
587
588 2013-12-02 Joel Brobecker <brobecker@adacore.com>
589
590 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
591
592 2013-12-02 Joel Brobecker <brobecker@adacore.com>
593
594 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
595 * ctf.c (ctf_start): Remove obsolete comment.
596
597 2013-12-02 Joel Brobecker <brobecker@adacore.com>
598
599 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
600
601 2013-11-30 Doug Evans <xdje42@gmail.com>
602
603 * auto-load.h (script_language): New members name, auto_load_enabled.
604 Add missing comments on struct members.
605 (auto_load_objfile_script): Delete.
606 * auto-load.c: #include "cli/cli-cmds.h".
607 (auto_load_gdb_scripts_enabled): New function.
608 (script_language_gdb): Update, add new members.
609 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
610 and call to maybe_add_script moved to caller.
611 (auto_load_objfile_script_1): Auto-load safe-checking and
612 call to maybe_add_script moved here.
613 (auto_load_objfile_script): Make static. Early exit if support for
614 scripting language hasn't been compiled in, or auto-loading has been
615 disabled.
616 (source_section_scripts): Argument "source_name" renamed to
617 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
618 with section_name. Skip loading script if support for scripting
619 language hasn't been compiled in, or auto-loading has been disabled.
620 Call language->source_script_for_objfile instead of calling
621 source_python_script_for_objfile directly.
622 (load_auto_scripts_for_objfile): Update.
623 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
624 (gdbpy_load_auto_script_for_objfile): Delete.
625 (auto_load_python_scripts_enabled): New function.
626 (script_language_python): Update, add new members.
627 (gdbpy_script_language_defn): New function.
628 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
629 (gdbpy_script_language_defn): Declare.
630
631 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
632 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
633 (source_section_scripts): Moved here from py-auto-load.c.
634 (auto_load_section_scripts): Ditto.
635 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
636 auto-load.c, renamed AUTO_SECTION_NAME.
637 (source_section_scripts, auto_load_section_scripts): Moved to
638 auto-load.c.
639
640 2013-11-30 Yao Qi <yao@codesourcery.com>
641
642 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
643
644 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
645
646 * gdbarch.sh: Remove include of "gdb_string.h", replace by
647 <string.h>.
648
649 2013-11-29 Doug Evans <xdje42@gmail.com>
650
651 * python/py-auto-load.c (source_section_scripts): Move comment to
652 more relevant location.
653
654 Whitespace cleanup.
655 * python/py-breakpoint.c: Remove trailing whitespace.
656 * python/py-cmd.c: Ditto.
657 * python/py-evts.c: Ditto.
658 * python/py-finishbreakpoint.c: Ditto.
659 * python/py-frame.c: Ditto.
660 * python/py-function.c: Ditto.
661 * python/py-inferior.c: Ditto.
662 * python/py-infthread.c: Ditto.
663 * python/py-param.c: Ditto.
664 * python/py-prettyprint.c: Ditto.
665 * python/py-symbol.c: Ditto.
666 * python/py-type.c: Ditto.
667 * python/py-utils.c: Ditto.
668 * python/py-value.c: Ditto.
669 * python/python-internal.h: Ditto.
670 * python/python.c: Ditto.
671
672 2013-11-29 Pedro Alves <palves@redhat.com>
673
674 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
675
676 2013-11-29 Pedro Alves <palves@redhat.com>
677
678 * breakpoint.c (build_target_condition_list): Release previous
679 conditions.
680 (build_target_command_list): Release previous commands.
681 (bp_location_dtor): Release target conditions and commands.
682 * remote.c (remote_add_target_side_condition): Don't release
683 conditions.
684 (remote_add_target_side_commands): Don't release commands.
685
686 2013-11-29 Yao Qi <yao@codesourcery.com>
687 Pedro Alves <palves@redhat.com>
688
689 * dcache.c (dcache_read_line): Use current_target.beneath
690 instead of &current_target.
691 * target.c (memory_xfer_partial_1): Factor code out to ...
692 (raw_memory_xfer_partial): ... it. New function.
693 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
694 is TARGET_OBJECT_RAW_MEMORY.
695
696 2013-11-28 Doug Evans <xdje42@gmail.com>
697
698 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
699 breakpoint_object. All uses updated.
700 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
701 breakpoint_object. All uses updated.
702 * python.c (*): All uses of breakpoint_object updated.
703 * python.h (*): All uses of breakpoint_object updated.
704 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
705 * python/py-finishbreakpoint.c (*): Ditto.
706
707 2013-11-28 Doug Evans <xdje42@gmail.com>
708
709 * configure.ac: Add comments delineating libpython and libmcheck.
710 * configure: Regenerate.
711
712 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
713 Pedro Alves <palves@redhat.com>
714
715 * valprint.c (value_check_printable): If the value is entirely
716 unavailable, print a single "<unavailable>" instead of printing
717 all subfields.
718
719 2013-11-28 Pedro Alves <palves@redhat.com>
720
721 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
722 Add "set debug frame" output.
723 (frame_stop_reason_symbol_string): New function.
724
725 2013-11-28 Pedro Alves <palves@redhat.com>
726
727 * frame-unwind.c (default_frame_unwind_stop_reason): Return
728 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
729 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
730
731 2013-11-28 Pedro Alves <palves@redhat.com>
732
733 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
734 set the unwind stop reason to UNWIND_OUTERMOST, not
735 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
736
737 2013-11-28 Pedro Alves <palves@redhat.com>
738
739 * frame.c (frame_unwind_register): Say the register was "not
740 saved" instead of "optimized out".
741
742 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
743
744 PR 16152
745 * configure: Rebuild.
746 * configure.ac: Tighten cygwin detection check.
747
748 2013-11-27 Pedro Alves <palves@redhat.com>
749
750 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
751 register in the previous frame's arch.
752
753 2013-11-27 Pedro Alves <palves@redhat.com>
754
755 * frame-unwind.c (frame_unwind_got_optimized): Return
756 an lval_register value instead of a not_lval value.
757
758 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
759
760 * frame.c: Include "valprint.h".
761 (frame_unwind_register_value): Use value_optimized_out.
762 * value.c (value_fetch_lazy): Likewise.
763
764 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
765
766 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
767
768 2013-11-26 Tom Tromey <tromey@redhat.com>
769
770 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
771 2013-11-22.
772
773 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
774
775 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
776 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
777 (HAS_MPX): New macro.
778 (HAS_AVX): New macro.
779 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
780
781 2013-11-25 Keith Seitz <keiths@redhat.com>
782
783 PR c++/14819
784 * c-exp.y (classify_inner_name): If no matching symbol was
785 found, try looking up the token as a base class.
786 Likewise if a constructor was found.
787 * cp-namespace.c (find_type_baseclass_by_name): New function.
788 * cp-support.h (find_type_baseclass_by_name): Declare.
789 * valops.c (value_struct_elt_for_reference): If we get
790 a non-static field, try to get a value based on the
791 current instance, if any.
792
793 2013-11-24 Yao Qi <yao@codesourcery.com>
794
795 * disasm.c (dis_asm_read_memory): Call target_read_code
796 instead of target_read_memory.
797
798 2013-11-24 Yao Qi <yao@codesourcery.com>
799
800 * NEWS: Add note on new "set code-cache" option.
801 * target-dcache.c (code_cache_enabled_1): New variable.
802 (code_cache_enabled): New variable.
803 (show_code_cache, set_code_cache): New function.
804 (code_cache_enabled_p): New function.
805 (_initialize_target_dcache): Register command.
806 * target-dcache.h (code_cache_enabled_p): Declare.
807 * target.c (memory_xfer_partial_1):Handle
808 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
809 (target_read_code): New function.
810 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
811 New.
812 (target_read_code): Declare.
813
814 2013-11-24 Yao Qi <yao@codesourcery.com>
815
816 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
817 (stack_cache_enabled_1): ... this. New variable.
818 (stack_cache_enabled_p): Rename to ...
819 (stack_cache_enabled): ... this. New variable.
820 (set_stack_cache_enabled_p): Rename to ...
821 (set_stack_cache): ... this. Update caller.
822 (show_stack_cache_enabled_p): Rename to ...
823 (show_stack_cache): ... this. Update caller.
824 (stack_cache_enabled): Rename to ...
825 (stack_cache_enabled_p): ... this. Update caller.
826 (_initialize_target_dcache): Replace "data cache" with
827 "target memory cache".
828 * target-dcache.h (stack_cache_enabled): Remove declaration.
829 (stack_cache_enabled_p): Add declaration.
830
831 2013-11-23 Doug Evans <xdje42@gmail.com>
832
833 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
834 superfluous.
835
836 2013-11-23 Doug Evans <xdje42@gmail.com>
837
838 * python/py-frame.c (frapy_block): Fix error message text.
839
840 2013-11-23 Doug Evans <xdje42@gmail.com>
841
842 * cli/cli-script.c (multi_line_command_p): New function.
843 (recurse_read_control_structure, read_command_lines_1): Call it.
844 (execute_control_command): Consistently have a blank line between
845 each case.
846
847 2013-11-22 Sterling Augustine <saugustine@google.com>
848
849 PR gdb/16196:
850 * valprint.c (read_string): Set new variable fetchlen based on
851 fetchlimit and size. Use it in call to partial_memory_read.
852 Update comment.
853
854 2013-11-22 Tom Tromey <tromey@redhat.com>
855
856 PR backtrace/16155:
857 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
858 the return address column is unspecified.
859
860 2013-11-22 Tom Tromey <tromey@redhat.com>
861 Pedro Alves <palves@redhat.com>
862
863 PR backtrace/16155
864 * value.c (value_fetch_lazy): Internal error if
865 get_frame_register_value returns the same register.
866
867 2013-11-22 Pedro Alves <palves@redhat.com>
868 Tom Tromey <tromey@redhat.com>
869
870 * frame.c (frame_stash_add): Now returns whether a frame with the
871 same ID was already known.
872 (compute_frame_id): New function, factored out from get_frame_id.
873 (get_frame_id): No longer lazilly compute the frame id here.
874 (get_prev_frame_if_no_cycle): New function. Detects wider stack
875 cycles.
876 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
877 and checking for stack cycles here.
878
879 2013-11-22 Pedro Alves <palves@redhat.com>
880
881 PR 16155
882 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
883 this frame and the new previous frame, not between this frame and
884 the next frame.
885
886 2013-11-22 Pedro Alves <palves@redhat.com>
887
888 PR 16155
889 * dwarf2-frame.c (struct dwarf2_frame_cache)
890 <checked_tailcall_bottom, entry_cfa_sp_offset,
891 entry_cfa_sp_offset_p>: New fields.
892 (dwarf2_frame_cache): Adjust to use the new cache fields instead
893 of locals. Don't call dwarf2_tailcall_sniffer_first here.
894 (dwarf2_frame_prev_register): Call it here, but only once.
895
896 2013-11-21 Doug Evans <xdje42@gmail.com>
897
898 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
899 (type_equality_entry): Move here from python/py-type.c.
900 (type_equality_entry_d): Ditto.
901 (compare_maybe_null_strings, check_types_equal): Ditto.
902 (check_types_worklist, types_deeply_equal): Ditto.
903 * gdbtypes.h (types_deeply_equal): Declare.
904 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
905 (typy_richcompare): Update.
906
907 2013-11-20 Joel Brobecker <brobecker@adacore.com>
908
909 * python/py-value.c (is_intlike): Delete.
910 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
911 by use of is_integral_type.
912 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
913 by use of is_integral_type and check for TYPE_CODE_PTR.
914
915 2013-11-20 Tom Tromey <tromey@redhat.com>
916
917 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
918 strerror module.
919 * gnulib/aclocal.m4: Update.
920 * gnulib/config.in: Update.
921 * gnulib/configure: Update.
922 * gnulib/import/Makefile.am: Update.
923 * gnulib/import/Makefile.in: Update.
924 * gnulib/import/errno.in.h: Remove.
925 * gnulib/import/intprops.h: Remove.
926 * gnulib/import/m4/errno_h.m4: Remove.
927 * gnulib/import/m4/gnulib-cache.m4: Update.
928 * gnulib/import/m4/gnulib-comp.m4: Update.
929 * gnulib/import/m4/strerror.m4: Remove.
930 * gnulib/import/m4/sys_socket_h.m4: Remove.
931 * gnulib/import/strerror-override.c: Remove.
932 * gnulib/import/strerror-override.h: Remove.
933 * gnulib/import/strerror.c: Remove.
934 * gnulib/update-gnulib.sh: Update.
935
936 2013-11-20 Yao Qi <yao@codesourcery.com>
937
938 * target-dcache.c (target_dcache_get_or_init): Call
939 set_address_space_data if 'dcache' is NULL.
940
941 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
942
943 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
944
945 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
946
947 * python/lib/gdb/command/bound_register.py: New file.
948 * data-directory/Makefile.in: Copy bond_register.py to the right path
949 to be initialized at gdb startup.
950
951 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
952
953 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
954 Add MPX registers.
955 (amd64_linux_read_description): Add initialization for MPX and
956 AVX independently.
957 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
958 (amd64_linux_gregset_reg_offset): Add MPX registers.
959 (amd64_linux_core_read_description): Add initialization for MPX
960 registers.
961 (_initialize_amd64_linux_tdep): Initialize MPX targets.
962 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
963 register on the list.
964 (tdesc_amd64_mpx_linux) Add new target for MPX.
965 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
966 (amd64_mpx_names): MPX register names.
967 (amd64_init_abi): Add MPX register while initializing the ABI.
968 (_initialize_amd64_tdep): Initialize MPX targets.
969 * amd64-tdep.h (amd64_regnum): Add MPX registers.
970 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
971
972 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
973
974 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
975 registers on the range of registers to be read from
976 xsave buffer.
977 (i386_linux_read_description): Add case for MPX.
978 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
979 (i386_linux_gregset_reg_offset): Add MPX registers.
980 (i386_linux_core_read_description): Initialize also MPX.
981 (_initialize_i386_linux_tdep): Add mpx initialization.
982 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
983 mpx_register_names.
984 (i386_regnum): Add MPX registers.
985 (I386_MPX_NUM_REGS): New macro.
986 (i386_bnd_regnum_p): New function.
987 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
988 number of registers to be the number of BNDSTATUS.
989 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
990 * i386-tdep.c: Include features/i386/i386-mpx.c.
991 (i386_mpx_names): Add MPX register names array.
992 (i386_bnd_names): Add bnd pseudo register names array.
993 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
994 registers.
995 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
996 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
997 registers.
998 (i386_bnd_type): New function.
999 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1000 register types.
1001 (i386_pseudo_register_read_into_value): Add bnd case.
1002 (i386_pseudo_register_write): Add bnd pseudo registers.
1003 (i386_register_reggroup_p): Add MPX register to the group all.
1004 (i386_validate_tdesc_p): Add MPX to the target description
1005 validation.
1006 (i386_pseudo_register_name): Add bnd pseudo registers.
1007 (i386_gdbarch_init): Add MPX for architecture initialization.
1008 (_initia_initialize_i386_tdep): Add mpx initialization.
1009 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1010 XSAVE buffer.
1011 (XSAVE_MPX_ADDR): New macro.
1012 (i387_supply_xsave): Add MPX case.
1013 (i387_collect_xsave): Add MPX case.
1014 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1015 (I387_BNDCFGU_REGNUM): New macro.
1016 (I387_NUM_MPX_REGS): New macro.
1017 (I387_NUM_BND_REGS): New macro.
1018 (I387_NUM_MPX_CTRL_REGS): New macro.
1019 (I387_MPXEND_REGNUM): New macro.
1020 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1021 (I386_XSTATE_BNDCFG): Likewise.
1022 (I386_XSTATE_MPX_MASK): Likewise.
1023 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1024 (I386_XSTATE_BNDREGS_SIZE): New macro.
1025 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1026 (I386_XSTATE_SIZE): Adapt for MPX.
1027 (I386_XSTATE_MAX_SIZE): Likewise.
1028
1029 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1030
1031 * features/i386/Makefile: Adapts for using MPX registers.
1032 * features/i386/32bit-mpx.xml: New file.
1033 * features/i386/64bit-mpx.xml: Likewise.
1034 * features/i386/amd64-mpx-linux.c: Likewise.
1035 * features/i386/amd64-mpx-linux.xml: Likewise.
1036 * features/i386/amd64-mpx.c: Likewise.
1037 * features/i386/amd64-mpx.xml: Likewise.
1038 * features/i386/i386-mpx-linux.c: Likewise.
1039 * features/i386/i386-mpx-linux.xml: Likewise.
1040 * features/i386/i386-mpx.c: Likewise.
1041 * features/i386/i386-mpx.xml: Likewise.
1042 * regformats/i386/amd64-mpx-linux.dat: New file.
1043 * regformats/i386/amd64-mpx.dat: Likewise.
1044 * regformats/i386/i386-mpx-linux.dat: Likewise.
1045 * regformats/i386/i386-mpx.dat: Likewise.
1046
1047 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1048
1049 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1050 Modified logic of creating a bitfield to be in sync with
1051 tdesc_gdb_type.
1052
1053 2013-11-20 Will Newton <will.newton@linaro.org>
1054
1055 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1056 error message.
1057
1058 2013-11-20 Yao Qi <yao@codesourcery.com>
1059
1060 * progspace.h (struct address_space_data): Declare.
1061 * target-dcache.c: Include "progspace.h".
1062 (target_dache): Remove.
1063 (target_dcache_aspace_key): New.
1064 (target_dcache_cleanup): New function.
1065 (target_dcache_init_p): Get data through
1066 target_dcache_aspace_key.
1067 (target_dcache_invalidate): Likewise.
1068 (target_dcache_get): Likewise.
1069 (target_dcache_get_or_init): Likewise.
1070 (_initialize_target_dcache): Initialize
1071 target_dcache_aspace_key.
1072
1073 2013-11-20 Yao Qi <yao@codesourcery.com>
1074
1075 * progspace.c (struct address_space): Update comments.
1076 <REGISTRY_FIELDS>: New fields.
1077 DEFINE_REGISTRY for address_space.
1078 (new_address_space): Call address_space_alloc_data.
1079 (free_address_space): Call address_space_free_data.
1080 * progspace.h: Use DECLARE_REGISTRY.
1081
1082 2013-11-20 Yao Qi <yao@codesourcery.com>
1083
1084 * Makefile.in (SFILES):Add target-dcache.c.
1085 (HFILES_NO_SRCDIR): Add target-dcache.h.
1086 (COMMON_OBS): Add target-dcache.o.
1087 * dcache.c: Remove inclusion to "target.h". Include
1088 "target-dcache.h".
1089 * memattr.c: Include "target-dcache.h".
1090 * top.c: Likewise.
1091 * tracepoint.c: Likewise.
1092 * target.c: (stack_cache_enabled_p_1): Move to
1093 target-dcache.c.
1094 (stack_cache_enabled_p): Likewise.
1095 (set_stack_cache_enabled_p): Likewise.
1096 (show_stack_cache_enabled_p): Likewise.
1097 (target_dcache, target_dcache_init_p): Likewise.
1098 (target_dcache_invalidate): Likewise.
1099 (target_dcache_get, target_dcache_get_or_init): Likewise.
1100 (memory_xfer_partial_1): Call function stack_cache_enabled.
1101 (initialize_target): Move code to target-dcache.c.
1102 * target.h (target_dcache_invalidate): Move to
1103 target-dcache.h.
1104 (target_dcache_get): Likewise.
1105 * target-dcache.c: New.
1106 * target-dcache.h: New.
1107
1108 2013-11-20 Yao Qi <yao@codesourcery.com>
1109
1110 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1111 it is initialized.
1112
1113 2013-11-20 Yao Qi <yao@codesourcery.com>
1114
1115 * dcache.c (last_cache): Remove.
1116 (dcache_free, dcache_init): Update.
1117 (dcache_update):
1118 (dcache_print_line): Add parameter 'dcache'. Replace
1119 'target_dcache' with 'dcache'.
1120 (dcache_info): Move code to dcache_info_1. Call
1121 'dcache_info_1'.
1122 (dcache_info_1): New function.
1123 (set_dcache_size): Call target_dcache_invalidate.
1124 (set_dcache_line_size): Call target_dcache_invalidate.
1125 * target.c (target_dcache_init_p): New function.
1126 (target_dcache_invalidate): Check target_dcache_init_p first.
1127 (target_dcache_get, target_dcache_get_or_init): New function.
1128 (memory_xfer_partial_1): Adjust.
1129 (initialize_target): Don't initialize 'target_dcache'.
1130 * target.h (struct dcache_struct): Declare.
1131 (target_dcache_get): Declare.
1132
1133 2013-11-19 Yao Qi <yao@codesourcery.com>
1134
1135 * varobj.c (varobj_get_type): Fix typo.
1136
1137 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1138
1139 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1140
1141 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1142
1143 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1144 "stat.h".
1145
1146 2013-11-18 Tom Tromey <tromey@redhat.com>
1147
1148 * common/gdb_stat.h: Remove.
1149 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1150 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1151 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1152 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1153 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1154 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1155 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1156 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1157 * exec.c: Use sys/stat.h, not gdb_stat.h.
1158 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1159 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1160 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1161 * jit.c: Use sys/stat.h, not gdb_stat.h.
1162 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1163 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1164 * main.c: Use sys/stat.h, not gdb_stat.h.
1165 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1166 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1167 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1168 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1169 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1170 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1171 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1172 * remote.c: Use sys/stat.h, not gdb_stat.h.
1173 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1174 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1175 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1176 * source.c: Use sys/stat.h, not gdb_stat.h.
1177 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1178 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1179 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1180 * top.c: Use sys/stat.h, not gdb_stat.h.
1181 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1182
1183 2013-11-18 Tom Tromey <tromey@redhat.com>
1184
1185 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1186 sys_stat.
1187 * gnulib/aclocal.m4: Update.
1188 * gnulib/config.in: Update.
1189 * gnulib/configure: Update.
1190 * gnulib/import/Makefile.am: Update.
1191 * gnulib/import/Makefile.in: Update.
1192 * gnulib/import/m4/gnulib-cache.m4: Update.
1193 * gnulib/import/m4/gnulib-comp.m4: Update.
1194 * gnulib/import/m4/sys_stat_h.m4: New.
1195 * gnulib/import/m4/time_h.m4: New.
1196 * gnulib/import/sys_stat.in.h: New.
1197 * gnulib/import/time.in.h: New.
1198
1199 2013-11-18 Tom Tromey <tromey@redhat.com>
1200
1201 * configure: Rebuild.
1202 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1203
1204 2013-11-18 Tom Tromey <tromey@redhat.com>
1205
1206 * configure: Rebuild.
1207 * configure.ac: Don't check for unistd.h.
1208
1209 2013-11-18 Tom Tromey <tromey@redhat.com>
1210
1211 * configure: Rebuild.
1212 * configure.ac: Don't check for stdlib.h
1213 * defs.h: Include stdlib.h unconditionally.
1214
1215 2013-11-18 Tom Tromey <tromey@redhat.com>
1216
1217 * config.in: Rebuild.
1218 * configure: Rebuild.
1219 * configure.ac: Don't check for stddef.h.
1220 * defs.h: Unconditionally include stddef.h. Remove duplicate
1221 inclusion.
1222
1223 2013-11-18 Tom Tromey <tromey@redhat.com>
1224
1225 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1226 * common/gdb_dirent.h: Remove.
1227 * common/filestuff.c: Use dirent.h.
1228 * common/linux-osdata.c: Use dirent.h.
1229 (NAMELEN): Define.
1230 * config.in: Rebuild.
1231 * configure: Rebuild.
1232 * configure.ac: Don't use AC_HEADER_DIRENT.
1233 * linux-fork.c: Use dirent.h
1234 * linux-nat.c: Use dirent.h.
1235 * nto-procfs.c: Use dirent.h.
1236 * procfs.c: Use dirent.h.
1237
1238 2013-11-18 Tom Tromey <tromey@redhat.com>
1239
1240 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1241 * gnulib/aclocal.m4: Update.
1242 * gnulib/config.in: Update.
1243 * gnulib/configure: Update.
1244 * gnulib/import/Makefile.am: Update.
1245 * gnulib/import/Makefile.in: Update.
1246 * gnulib/import/dirent.in.h: New.
1247 * gnulib/import/m4/dirent_h.m4: New.
1248 * gnulib/import/m4/gnulib-cache.m4: Update.
1249 * gnulib/import/m4/gnulib-comp.m4: Update.
1250
1251 2013-11-18 Tom Tromey <tromey@redhat.com>
1252
1253 * configure: Rebuild.
1254 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1255 strings.h.
1256
1257 2013-11-18 Tom Tromey <tromey@redhat.com>
1258
1259 * common/gdb_string.h: Remove.
1260 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1261 * ada-exp.y: Use string.h, not gdb_string.h.
1262 * ada-lang.c: Use string.h, not gdb_string.h.
1263 * ada-lex.l: Use string.h, not gdb_string.h.
1264 * ada-typeprint.c: Use string.h, not gdb_string.h.
1265 * ada-valprint.c: Use string.h, not gdb_string.h.
1266 * aix-thread.c: Use string.h, not gdb_string.h.
1267 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1268 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1269 * alpha-nat.c: Use string.h, not gdb_string.h.
1270 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1271 * alpha-tdep.c: Use string.h, not gdb_string.h.
1272 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1273 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1274 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1275 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1276 * amd64-nat.c: Use string.h, not gdb_string.h.
1277 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1278 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1279 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1280 * arch-utils.c: Use string.h, not gdb_string.h.
1281 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1282 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1283 * arm-tdep.c: Use string.h, not gdb_string.h.
1284 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1285 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1286 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1287 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1288 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1289 * avr-tdep.c: Use string.h, not gdb_string.h.
1290 * ax-gdb.c: Use string.h, not gdb_string.h.
1291 * ax-general.c: Use string.h, not gdb_string.h.
1292 * bcache.c: Use string.h, not gdb_string.h.
1293 * bfin-tdep.c: Use string.h, not gdb_string.h.
1294 * breakpoint.c: Use string.h, not gdb_string.h.
1295 * build-id.c: Use string.h, not gdb_string.h.
1296 * buildsym.c: Use string.h, not gdb_string.h.
1297 * c-exp.y: Use string.h, not gdb_string.h.
1298 * c-lang.c: Use string.h, not gdb_string.h.
1299 * c-typeprint.c: Use string.h, not gdb_string.h.
1300 * c-valprint.c: Use string.h, not gdb_string.h.
1301 * charset.c: Use string.h, not gdb_string.h.
1302 * cli-out.c: Use string.h, not gdb_string.h.
1303 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1304 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1305 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1306 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1307 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1308 * cli/cli-script.c: Use string.h, not gdb_string.h.
1309 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1310 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1311 * coffread.c: Use string.h, not gdb_string.h.
1312 * common/common-utils.c: Use string.h, not gdb_string.h.
1313 * common/filestuff.c: Use string.h, not gdb_string.h.
1314 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1315 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1316 * common/signals.c: Use string.h, not gdb_string.h.
1317 * common/vec.h: Use string.h, not gdb_string.h.
1318 * core-regset.c: Use string.h, not gdb_string.h.
1319 * corefile.c: Use string.h, not gdb_string.h.
1320 * corelow.c: Use string.h, not gdb_string.h.
1321 * cp-abi.c: Use string.h, not gdb_string.h.
1322 * cp-support.c: Use string.h, not gdb_string.h.
1323 * cp-valprint.c: Use string.h, not gdb_string.h.
1324 * cris-tdep.c: Use string.h, not gdb_string.h.
1325 * d-lang.c: Use string.h, not gdb_string.h.
1326 * dbxread.c: Use string.h, not gdb_string.h.
1327 * dcache.c: Use string.h, not gdb_string.h.
1328 * demangle.c: Use string.h, not gdb_string.h.
1329 * dicos-tdep.c: Use string.h, not gdb_string.h.
1330 * disasm.c: Use string.h, not gdb_string.h.
1331 * doublest.c: Use string.h, not gdb_string.h.
1332 * dsrec.c: Use string.h, not gdb_string.h.
1333 * dummy-frame.c: Use string.h, not gdb_string.h.
1334 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1335 * dwarf2loc.c: Use string.h, not gdb_string.h.
1336 * dwarf2read.c: Use string.h, not gdb_string.h.
1337 * elfread.c: Use string.h, not gdb_string.h.
1338 * environ.c: Use string.h, not gdb_string.h.
1339 * eval.c: Use string.h, not gdb_string.h.
1340 * event-loop.c: Use string.h, not gdb_string.h.
1341 * exceptions.c: Use string.h, not gdb_string.h.
1342 * exec.c: Use string.h, not gdb_string.h.
1343 * expprint.c: Use string.h, not gdb_string.h.
1344 * f-exp.y: Use string.h, not gdb_string.h.
1345 * f-lang.c: Use string.h, not gdb_string.h.
1346 * f-typeprint.c: Use string.h, not gdb_string.h.
1347 * f-valprint.c: Use string.h, not gdb_string.h.
1348 * fbsd-nat.c: Use string.h, not gdb_string.h.
1349 * findcmd.c: Use string.h, not gdb_string.h.
1350 * findvar.c: Use string.h, not gdb_string.h.
1351 * fork-child.c: Use string.h, not gdb_string.h.
1352 * frame.c: Use string.h, not gdb_string.h.
1353 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1354 * frv-tdep.c: Use string.h, not gdb_string.h.
1355 * gdb.c: Use string.h, not gdb_string.h.
1356 * gdb_bfd.c: Use string.h, not gdb_string.h.
1357 * gdbarch.c: Use string.h, not gdb_string.h.
1358 * gdbtypes.c: Use string.h, not gdb_string.h.
1359 * gnu-nat.c: Use string.h, not gdb_string.h.
1360 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1361 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1362 * go-exp.y: Use string.h, not gdb_string.h.
1363 * go-lang.c: Use string.h, not gdb_string.h.
1364 * go32-nat.c: Use string.h, not gdb_string.h.
1365 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1366 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1367 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1368 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1369 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1370 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1371 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1372 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1373 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1374 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1375 * i386-tdep.c: Use string.h, not gdb_string.h.
1376 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1377 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1378 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1379 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1380 * i387-tdep.c: Use string.h, not gdb_string.h.
1381 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1382 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1383 * inf-child.c: Use string.h, not gdb_string.h.
1384 * inf-ptrace.c: Use string.h, not gdb_string.h.
1385 * inf-ttrace.c: Use string.h, not gdb_string.h.
1386 * infcall.c: Use string.h, not gdb_string.h.
1387 * infcmd.c: Use string.h, not gdb_string.h.
1388 * inflow.c: Use string.h, not gdb_string.h.
1389 * infrun.c: Use string.h, not gdb_string.h.
1390 * interps.c: Use string.h, not gdb_string.h.
1391 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1392 * irix5-nat.c: Use string.h, not gdb_string.h.
1393 * jv-exp.y: Use string.h, not gdb_string.h.
1394 * jv-lang.c: Use string.h, not gdb_string.h.
1395 * jv-typeprint.c: Use string.h, not gdb_string.h.
1396 * jv-valprint.c: Use string.h, not gdb_string.h.
1397 * language.c: Use string.h, not gdb_string.h.
1398 * linux-fork.c: Use string.h, not gdb_string.h.
1399 * linux-nat.c: Use string.h, not gdb_string.h.
1400 * lm32-tdep.c: Use string.h, not gdb_string.h.
1401 * m2-exp.y: Use string.h, not gdb_string.h.
1402 * m2-typeprint.c: Use string.h, not gdb_string.h.
1403 * m32c-tdep.c: Use string.h, not gdb_string.h.
1404 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1405 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1406 * m32r-rom.c: Use string.h, not gdb_string.h.
1407 * m32r-tdep.c: Use string.h, not gdb_string.h.
1408 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1409 * m68k-tdep.c: Use string.h, not gdb_string.h.
1410 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1411 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1412 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1413 * m88k-tdep.c: Use string.h, not gdb_string.h.
1414 * macrocmd.c: Use string.h, not gdb_string.h.
1415 * main.c: Use string.h, not gdb_string.h.
1416 * mdebugread.c: Use string.h, not gdb_string.h.
1417 * mem-break.c: Use string.h, not gdb_string.h.
1418 * memattr.c: Use string.h, not gdb_string.h.
1419 * memory-map.c: Use string.h, not gdb_string.h.
1420 * mep-tdep.c: Use string.h, not gdb_string.h.
1421 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1422 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1423 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1424 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1425 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1426 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1427 * mi/mi-console.c: Use string.h, not gdb_string.h.
1428 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1429 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1430 * mi/mi-main.c: Use string.h, not gdb_string.h.
1431 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1432 * microblaze-rom.c: Use string.h, not gdb_string.h.
1433 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1434 * mingw-hdep.c: Use string.h, not gdb_string.h.
1435 * minidebug.c: Use string.h, not gdb_string.h.
1436 * minsyms.c: Use string.h, not gdb_string.h.
1437 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1438 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1439 * mips-tdep.c: Use string.h, not gdb_string.h.
1440 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1441 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1442 * mipsread.c: Use string.h, not gdb_string.h.
1443 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1444 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1445 * monitor.c: Use string.h, not gdb_string.h.
1446 * moxie-tdep.c: Use string.h, not gdb_string.h.
1447 * mt-tdep.c: Use string.h, not gdb_string.h.
1448 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1449 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1450 * nto-procfs.c: Use string.h, not gdb_string.h.
1451 * nto-tdep.c: Use string.h, not gdb_string.h.
1452 * objc-lang.c: Use string.h, not gdb_string.h.
1453 * objfiles.c: Use string.h, not gdb_string.h.
1454 * opencl-lang.c: Use string.h, not gdb_string.h.
1455 * osabi.c: Use string.h, not gdb_string.h.
1456 * osdata.c: Use string.h, not gdb_string.h.
1457 * p-exp.y: Use string.h, not gdb_string.h.
1458 * p-lang.c: Use string.h, not gdb_string.h.
1459 * p-typeprint.c: Use string.h, not gdb_string.h.
1460 * parse.c: Use string.h, not gdb_string.h.
1461 * posix-hdep.c: Use string.h, not gdb_string.h.
1462 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1463 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1464 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1465 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1466 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1467 * printcmd.c: Use string.h, not gdb_string.h.
1468 * procfs.c: Use string.h, not gdb_string.h.
1469 * prologue-value.c: Use string.h, not gdb_string.h.
1470 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1471 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1472 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1473 * regcache.c: Use string.h, not gdb_string.h.
1474 * registry.c: Use string.h, not gdb_string.h.
1475 * remote-fileio.c: Use string.h, not gdb_string.h.
1476 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1477 * remote-mips.c: Use string.h, not gdb_string.h.
1478 * remote-sim.c: Use string.h, not gdb_string.h.
1479 * remote.c: Use string.h, not gdb_string.h.
1480 * reverse.c: Use string.h, not gdb_string.h.
1481 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1482 * ser-base.c: Use string.h, not gdb_string.h.
1483 * ser-go32.c: Use string.h, not gdb_string.h.
1484 * ser-mingw.c: Use string.h, not gdb_string.h.
1485 * ser-pipe.c: Use string.h, not gdb_string.h.
1486 * ser-tcp.c: Use string.h, not gdb_string.h.
1487 * ser-unix.c: Use string.h, not gdb_string.h.
1488 * serial.c: Use string.h, not gdb_string.h.
1489 * sh-tdep.c: Use string.h, not gdb_string.h.
1490 * sh64-tdep.c: Use string.h, not gdb_string.h.
1491 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1492 * skip.c: Use string.h, not gdb_string.h.
1493 * sol-thread.c: Use string.h, not gdb_string.h.
1494 * solib-dsbt.c: Use string.h, not gdb_string.h.
1495 * solib-frv.c: Use string.h, not gdb_string.h.
1496 * solib-osf.c: Use string.h, not gdb_string.h.
1497 * solib-spu.c: Use string.h, not gdb_string.h.
1498 * solib-target.c: Use string.h, not gdb_string.h.
1499 * solib.c: Use string.h, not gdb_string.h.
1500 * somread.c: Use string.h, not gdb_string.h.
1501 * source.c: Use string.h, not gdb_string.h.
1502 * sparc-nat.c: Use string.h, not gdb_string.h.
1503 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1504 * sparc-tdep.c: Use string.h, not gdb_string.h.
1505 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1506 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1507 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1508 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1509 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1510 * spu-multiarch.c: Use string.h, not gdb_string.h.
1511 * spu-tdep.c: Use string.h, not gdb_string.h.
1512 * stabsread.c: Use string.h, not gdb_string.h.
1513 * stack.c: Use string.h, not gdb_string.h.
1514 * std-regs.c: Use string.h, not gdb_string.h.
1515 * symfile.c: Use string.h, not gdb_string.h.
1516 * symmisc.c: Use string.h, not gdb_string.h.
1517 * symtab.c: Use string.h, not gdb_string.h.
1518 * target.c: Use string.h, not gdb_string.h.
1519 * thread.c: Use string.h, not gdb_string.h.
1520 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1521 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1522 * top.c: Use string.h, not gdb_string.h.
1523 * tracepoint.c: Use string.h, not gdb_string.h.
1524 * tui/tui-command.c: Use string.h, not gdb_string.h.
1525 * tui/tui-data.c: Use string.h, not gdb_string.h.
1526 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1527 * tui/tui-file.c: Use string.h, not gdb_string.h.
1528 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1529 * tui/tui-out.c: Use string.h, not gdb_string.h.
1530 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1531 * tui/tui-source.c: Use string.h, not gdb_string.h.
1532 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1533 * tui/tui-win.c: Use string.h, not gdb_string.h.
1534 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1535 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1536 * typeprint.c: Use string.h, not gdb_string.h.
1537 * ui-file.c: Use string.h, not gdb_string.h.
1538 * ui-out.c: Use string.h, not gdb_string.h.
1539 * user-regs.c: Use string.h, not gdb_string.h.
1540 * utils.c: Use string.h, not gdb_string.h.
1541 * v850-tdep.c: Use string.h, not gdb_string.h.
1542 * valarith.c: Use string.h, not gdb_string.h.
1543 * valops.c: Use string.h, not gdb_string.h.
1544 * valprint.c: Use string.h, not gdb_string.h.
1545 * value.c: Use string.h, not gdb_string.h.
1546 * varobj.c: Use string.h, not gdb_string.h.
1547 * vax-tdep.c: Use string.h, not gdb_string.h.
1548 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1549 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1550 * windows-nat.c: Use string.h, not gdb_string.h.
1551 * xcoffread.c: Use string.h, not gdb_string.h.
1552 * xml-support.c: Use string.h, not gdb_string.h.
1553 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1554 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1555
1556 2013-11-18 Tom Tromey <tromey@redhat.com>
1557
1558 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1559 and strstr.
1560 * gnulib/aclocal.m4: Update.
1561 * gnulib/config.in: Update.
1562 * gnulib/configure: Update.
1563 * gnulib/import/Makefile.am: Update.
1564 * gnulib/import/Makefile.in: Update.
1565 * gnulib/import/errno.in.h: New.
1566 * gnulib/import/intprops.h: New.
1567 * gnulib/import/m4/errno_h.m4: New.
1568 * gnulib/import/m4/gnulib-cache.m4: Update.
1569 * gnulib/import/m4/gnulib-comp.m4: Update.
1570 * gnulib/import/m4/strerror.m4: New.
1571 * gnulib/import/m4/strstr.m4: New.
1572 * gnulib/import/m4/sys_socket_h.m4: New.
1573 * gnulib/import/strerror-override.c: New.
1574 * gnulib/import/strerror-override.h: New.
1575 * gnulib/import/strerror.c: New.
1576 * gnulib/import/strstr.c: New.
1577
1578 2013-11-18 Tom Tromey <tromey@redhat.com>
1579
1580 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1581 multiple lines.
1582
1583 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1584
1585 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1586 * sparc-tdep.h: And its prototype.
1587
1588 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1589 function.
1590 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1591
1592 2013-11-18 Pedro Alves <palves@redhat.com>
1593
1594 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1595 use unpack_pointer.
1596
1597 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1598
1599 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1600 to -list-features output.
1601
1602 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1603
1604 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1605 <read_addr_from_reg>: Renames "read_reg".
1606 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1607 Adjust comment.
1608 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1609 Use read_addr_from_reg in place of read_reg.
1610 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1611 in place of read_reg.
1612 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1613 dwarf_expr_read_reg.
1614 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1615 with dwarf_expr_read_addr_from_reg.
1616 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1617 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1618 needs_frame_read_addr_from_reg.
1619
1620 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1621
1622 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1623
1624 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625
1626 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1627 NULL.
1628
1629 2013-11-15 Tom Tromey <tromey@redhat.com>
1630
1631 PR c++/16117:
1632 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1633 (classify_name): Likewise. Prefer a field of "this" over a
1634 filename.
1635 (classify_inner_name, yylex): Update.
1636
1637 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1638
1639 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1640 Extend the documentation a bit.
1641 <get_reg_value>: New field.
1642 * dwarf2loc.c (dwarf_expr_get_reg_value)
1643 (needs_frame_get_reg_value): New functions.
1644 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1645 callback.
1646 * dwarf2-frame.c (get_reg_value): New function.
1647 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1648 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1649 Use new callback to compute result_val.
1650
1651 2013-11-15 Alan Modra <amodra@gmail.com>
1652
1653 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1654 (ppc64_desc_entry_point): ..this. Update comments here and at
1655 call points.
1656 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1657 ppc64_standard_linkage3): Update comments.
1658 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1659 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1660 patterns.
1661 (ppc64_standard_linkage4_target): New function.
1662 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1663 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1664 nop match. Fix comment wrap.
1665
1666 2013-11-14 Pedro Alves <palves@redhat.com>
1667
1668 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1669 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1670
1671 2013-11-14 Pedro Alves <palves@redhat.com>
1672
1673 * infrun.c (struct execution_control_state)
1674 <stepped_after_stopped_by_watchpoint>: New field.
1675 (get_inferior_stop_soon): New function.
1676 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1677 moved to struct execution_control_state -- adjust. Use
1678 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1679 new function.
1680 (handle_signal_stop): New function, factored out from
1681 handle_inferior_event.
1682
1683 2013-11-14 Pedro Alves <palves@redhat.com>
1684
1685 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1686 return a boolean.
1687 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1688 boolean.
1689 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1690 Adjust to return a boolean.
1691 * breakpoint.h (enum bpstat_signal_value): Delete.
1692 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1693 (bpstat_explains_signal): Likewise.
1694 * infrun.c (handle_inferior_event) <random signal checks>:
1695 bpstat_explains_signal now returns a boolean - adjust. No longer
1696 consider hiding signals.
1697
1698 2013-11-14 Pedro Alves <palves@redhat.com>
1699
1700 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1701 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1702 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1703 BPSTAT_SIGNAL_HIDE.
1704 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1705 instead of BPSTAT_SIGNAL_HIDE.
1706 * infrun.c (handle_inferior_event): Rework random signal checks.
1707
1708 2013-11-14 Pedro Alves <palves@redhat.com>
1709
1710 * infrun.c (struct execution_control_state): Remove
1711 'random_signal' field.
1712 (handle_syscall_event): Use bpstat_causes_stop instead of
1713 bpstat_explains_signal. Don't set ecs->random_signal.
1714 (handle_inferior_event): New 'random_signal' local.
1715 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1716 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1717 bpstat_explains_signal. Don't set ecs->random_signal.
1718 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1719 ecs->random_signal.
1720
1721 2013-11-14 Pedro Alves <palves@redhat.com>
1722
1723 * infrun.c (handle_inferior_event): Move comment from the
1724 function's body to the function's description, adjusted.
1725
1726 2013-11-14 Pedro Alves <palves@redhat.com>
1727
1728 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1729 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1730 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1731 case.
1732
1733 2013-11-14 Tom Tromey <tromey@redhat.com>
1734
1735 * python/py-linetable.c (ltpy_has_line)
1736 (ltpy_get_all_source_lines): Fix loop termination condition.
1737
1738 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1739
1740 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1741 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1742 PARSE->LANGUAGE during command execution, if set.
1743 * mi/mi-parse.c: Add "language.h" #include.
1744 (mi_parse): Add parsing of "--language" command option.
1745
1746 * NEWS: Add entry mentioning the new "--language" command option.
1747
1748 2013-11-14 Pedro Alves <palves@redhat.com>
1749 Joel Brobecker <brobecker@adacore.com>
1750
1751 * cli/cli-utils.h (extract_arg_const): Add declaration.
1752 * cli/cli-utils.c (extract_arg_const): New function.
1753 (extract_arg): Reimplement using extract_arg_const.
1754
1755 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1756
1757 * language.h: Add "symtab.h" #include.
1758
1759 2013-11-13 Doug Evans <xdje42@gmail.com>
1760
1761 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1762 specific breakpoints, don't evaluate breakpoint condition if
1763 different thread.
1764
1765 2013-11-13 Keith Seitz <keiths@redhat.com>
1766
1767 PR c++/7935
1768 PR c++/10541
1769 * cp-support.c (insepct_type): Add support for substituting
1770 namespace aliases, too.
1771 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1772 for DW_TAG_imported_declaration.
1773 (add_partial_symbol): Likewise.
1774 (process_die): Handle namespace aliases with
1775 read_namespace_alias.
1776 (die_needs_namespace): Add DW_TAG_imported_declaration.
1777 (read_namespace_alias): New function.
1778 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1779 (new_symbol_full): Handle DW_TAG_imported_declaration.
1780
1781 2013-11-13 Keith Seitz <keiths@redhat.com>
1782
1783 * p-exp.y (uptok): Make first parameter const.
1784 (yylex): Make `tokstart' and `tokptr' const.
1785 Don't copy the lexer input to a temporary buffer.
1786 Make `p' const.
1787 Remove const workaround for parse_escape.
1788 Create a temporary buffer for a convenience variable instead
1789 of doing in-place modification of the input.
1790 If a match is found with a different case from the input,
1791 do not change the input at all.
1792 Use `tmp' to construct the resultant stoken instead of
1793 `tokstart'.
1794
1795 2013-11-13 Doug Evans <xdje42@gmail.com>
1796
1797 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1798
1799 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1800
1801 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1802 entry with "ada-exceptions".
1803
1804 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1805
1806 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1807 after re-initialization of OBJFILE's obstack.
1808
1809 2013-11-12 Doug Evans <xdje42@gmail.com>
1810
1811 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1812 bs->stop != 0 on entry. Update function comment. Simplify early
1813 exit for frame mismatch. Reindent rest of function.
1814
1815 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1816
1817 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1818 NULL.
1819
1820 2013-11-12 Doug Evans <dje@google.com>
1821
1822 Work around gold/15646.
1823 * dwarf2read.c (read_index_from_section): Update comment.
1824 (struct dw2_symtab_iterator): New member global_seen.
1825 (dw2_symtab_iter_init): Initialize it.
1826 (dw2_symtab_iter_next): Skip duplicate global symbols.
1827 (dw2_expand_symtabs_matching): Ditto.
1828
1829 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1830
1831 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1832 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1833 command.
1834 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1835 (mi_cmd_info_ada_exceptions): New function.
1836 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1837
1838 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1839
1840 * ada-lang.h: #include "vec.h".
1841 (struct ada_exc_info): New.
1842 (ada_exc_info): New typedef.
1843 (DEF_VEC_O(ada_exc_info)): New vector.
1844 (ada_exceptions_list): Add declaration.
1845 * ada-lang.c (ada_is_exception_sym)
1846 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1847 (sort_remove_dups_ada_exceptions_list)
1848 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1849 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1850 (ada_exceptions_list_1, ada_exceptions_list)
1851 (info_exceptions_command): New function.
1852 (_initialize_ada_language): Add "info exception" command.
1853
1854 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1855
1856 PR python/15629
1857 * NEWS: Add linetable feature.
1858 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1859 * python/py-linetable.c: New file.
1860 * python/py-symtab.c (stpy_get_linetable): New function.
1861 * python/python-internal.h (symtab_to_linetable_object): Declare.
1862 (gdbpy_initialize_linetable): Ditto.
1863 * python/python.c (_initialize_python): Call
1864 gdbpy_initialize_linetable.
1865
1866 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1867
1868 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1869 the documentation of fields "except_string" and "condition".
1870 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1871 CONDITION on the heap before passing it to
1872 create_ada_exception_catchpoint.
1873 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1874 CONDITION.
1875
1876 2013-11-11 Tom Tromey <tromey@redhat.com>
1877
1878 * config.in, configure: Rebuild.
1879 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1880
1881 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1882
1883 * remote-sim.c (gdbsim_detach): Break declaration into
1884 shorter lines. No code change.
1885
1886 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1887
1888 * remote-sim.c (gdbsim_detach): Fix prototype.
1889
1890 2013-11-08 Doug Evans <dje@google.com>
1891
1892 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1893 (create_debug_types_hash_table): Only print debugging messages for
1894 each TU if dwarf2-read >= 2.
1895 (process_queue): Ditto.
1896 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1897 Update doc string.
1898
1899 2013-11-08 Tom Tromey <tromey@redhat.com>
1900
1901 * configure: Rebuild.
1902 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1903
1904 2013-11-08 Tom Tromey <tromey@redhat.com>
1905
1906 * configure, config.in: Rebuild.
1907 * configure.ac: Remove unused configury.
1908
1909 2013-11-08 Tom Tromey <tromey@redhat.com>
1910
1911 * m32c-tdep.c: Use gdb_string.h.
1912
1913 2013-11-08 Tom Tromey <tromey@redhat.com>
1914
1915 * configure, config.in: Rebuild.
1916 * configure.ac: Remove all link.h-related checks.
1917
1918 2013-11-08 Tom Tromey <tromey@redhat.com>
1919
1920 * acinclude.m4: Include common.m4.
1921 * common/common.m4: New file.
1922 * configure, config.in: Rebuild.
1923 * configure.ac: Use GDB_AC_COMMON.
1924
1925 2013-11-08 Doug Evans <dje@google.com>
1926
1927 * NEWS: Mention that "set debug symtab-create" now accepts a
1928 verbosity level.
1929 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1930 to set the symtab's primary flag.
1931 * jit.c (finalize_symtab): Ditto.
1932 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1933 * symfile.c (allocate_symtab): Only print debugging messages for
1934 symtab_create_debug levels 2 and higher.
1935 * symtab.c (symtab_create_debug): Change type to unsigned int.
1936 (set_symtab_primary): New function.
1937 (_initialize_symtab): Change "set debug symtab-create" to a
1938 zuinteger option.
1939 * symtab.h (set_symtab_primary): Declare.
1940 (symtab_create_debug): Update decl.
1941
1942 2013-11-08 Tom Tromey <tromey@redhat.com>
1943
1944 * aix-thread.c (aix_thread_detach): Update.
1945 * corelow.c (core_detach): Update.
1946 * darwin-nat.c (darwin_detach): Update.
1947 * dec-thread.c (dec_thread_detach): Update.
1948 * gnu-nat.c (gnu_detach): Update.
1949 * go32-nat.c (go32_detach): Update.
1950 * inf-ptrace.c (inf_ptrace_detach): Update.
1951 * inf-ttrace.c (inf_ttrace_detach): Update.
1952 * linux-fork.c (linux_fork_detach): Update.
1953 * linux-fork.h (linux_fork_detach): Update.
1954 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1955 local for const-correctness.
1956 * linux-thread-db.c (thread_db_detach): Update.
1957 * monitor.c (monitor_detach): Update.
1958 * nto-procfs.c (procfs_detach): Update.
1959 * procfs.c (procfs_detach): Update.
1960 * record.c (record_detach): Update.
1961 * record.h (record_detach): Update.
1962 * remote-m32r-sdi.c (m32r_detach): Update.
1963 * remote-mips.c (mips_detach): Update.
1964 * remote-sim.c (gdbsim_detach): Update.
1965 * remote.c (remote_detach_1, remote_detach)
1966 (extended_remote_detach): Update.
1967 * sol-thread.c (sol_thread_detach): Update.
1968 * target.c (target_detach): Make "args" const.
1969 (init_dummy_target): Update.
1970 * target.h (struct target_ops) <to_detach>: Make argument const.
1971 (target_detach): Likewise.
1972 * windows-nat.c (windows_detach): Update.
1973
1974 2013-11-07 Doug Evans <dje@google.com>
1975
1976 PR 11786
1977 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1978 and align fields for PT_GNU_RELRO segments.
1979
1980 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1981
1982 PR python/15747
1983 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1984
1985 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1986
1987 * NEWS: Document Python temporary breakpoint support.
1988 * python/py-breakpoint.c (bppy_get_temporary): New function.
1989 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1990 to temporary if True.
1991
1992 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1993
1994 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1995 removed to allow analyzing unconditional branch instructions
1996 with PC-relative offsets of zero.
1997
1998 2013-11-07 Yao Qi <yao@codesourcery.com>
1999
2000 * mi/mi-cmd-var.c: Include "language.h".
2001 (mi_cmd_var_info_expression): Get language name from
2002 language_defn.
2003 * varobj.c (varobj_language_string): Remove.
2004 (variable_language): Remove declaration.
2005 (languages): Remove.
2006 (varobj_get_language): Change the type of return value.
2007 (variable_language): Remove.
2008 * varobj.h (enum varobj_languages): Remove.
2009 (varobj_language_string): Remove declaration.
2010 (varobj_get_language): Update declaration.
2011
2012 2013-11-07 Yao Qi <yao@codesourcery.com>
2013
2014 * language.h (struct language_defn) <la_natural_name>: New
2015 field.
2016 * ada-lang.c (ada_language_defn): Initialize field
2017 'la_natural_name'.
2018 * c-lang.c (c_language_defn): Likewise.
2019 (cplus_language_defn, asm_language_defn): Likewise.
2020 * d-lang.c (d_language_defn): Likewise.
2021 * f-lang.c (f_language_defn): Likewise.
2022 * go-lang.c (go_language_defn): Likewise.
2023 * jv-lang.c (java_language_defn): Likewise.
2024 * language.c (unknown_language_defn ): Likewise.
2025 (auto_language_defn): Likewise.
2026 * m2-lang.c (m2_language_defn): Likewise.
2027 * objc-lang.c (objc_language_defn): Likewise.
2028 * opencl-lang.c (opencl_language_defn): Likewise.
2029 * p-lang.c (pascal_language_defn): Likewise.
2030
2031 2013-11-07 Yao Qi <yao@codesourcery.com>
2032
2033 * language.c (language_str): Return const char *.
2034 (add_language): Add const to 'language_names'
2035 * language.h (struct language_defn) <la_name>: Add const.
2036 (language_str: Update declaration.
2037
2038 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2039
2040 * s390-linux-nat.c (s390_read_description): Consider the TE field
2041 in the HWCAP for determining 'have_regset_tdb'.
2042
2043 2013-11-06 Will Newton <will.newton@linaro.org>
2044
2045 PR gdb/12866
2046 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2047 values. (read_partial_die): Likewise.
2048
2049 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2050
2051 PR cli/16122
2052 * top.c (command_line_input): Unify interactivity tests to use
2053 input_from_terminal_p.
2054 * event-top.c (command_line_handler): Likewise.
2055
2056 2013-11-06 Yao Qi <yao@codesourcery.com>
2057
2058 * Makefile.in (check-perf): New target.
2059
2060 2013-11-05 Will Newton <will.newton@linaro.org>
2061
2062 PR gdb/7670
2063 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2064 (arm_print_float_info): Likewise.
2065
2066 2013-11-04 Anton Blanchard <anton@samba.org>
2067
2068 * target.c (memory_xfer_partial): Cap write to 4KB.
2069
2070 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2071
2072 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2073 probe scan even when the arch provides no get_longjmp_target.
2074
2075 2013-10-31 Pedro Alves <palves@redhat.com>
2076
2077 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2078 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2079 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2080 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2081 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2082 <bpstat handling>: If the bpstat chain wants the signal to be
2083 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2084 GDB_SIGNAL_TRAP.
2085
2086 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2087
2088 * breakpoint.c (update_watchpoint): Update error message and add
2089 an additional error message.
2090
2091 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2092
2093 * s390-tdep.h: Rename to...
2094 * s390-linux-tdep.h: ...here.
2095 * s390-tdep.c: Rename to...
2096 * s390-linux-tdep.c: ...here. Adjust #include.
2097 * s390-nat.c: Rename to...
2098 * s390-linux-nat.c: ...here. Adjust #include.
2099 * config/s390/s390.mh: Rename to...
2100 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2101 s390-linux-nat.o.
2102 * configure.host: Reflect host rename "s390" -> "linux".
2103 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2104 * Makefile.in (ALL_TARGET_OBS): Likewise.
2105 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2106 s390-linux-tdep.h.
2107 (ALLDEPFILES): Reflect rename of .c files.
2108
2109 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * s390-nat.c: Whitespace cleanup.
2112 * s390-tdep.c: Likewise.
2113 * s390-tdep.h: Remove empty line at end of file.
2114
2115 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2116
2117 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2118 siginfo_size.
2119
2120 2013-10-29 Tom Tromey <tromey@redhat.com>
2121
2122 * utils.c (reg): Move undefinition...
2123 * gdb_curses.h: ... here. Update comment to mention AIX.
2124
2125 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2126
2127 * exec.h (add_target_sections_of_objfile): New declaration.
2128 * exec.c (add_target_sections_of_objfile): New function.
2129 * symfile.c (add_symbol_file_command): Update current target sections.
2130 (remove_symbol_file_command): New command.
2131 (symfile_free_objfile): New function.
2132 (_initialize_symfile): Register observer for free_objfile events.
2133 * NEWS: Add description of the remove-symbol-file command.
2134 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2135 * objfiles.c (free_objfile): Notify free_objfile.
2136 (is_addr_in_objfile): New function.
2137 * objfiles.h (is_addr_in_objfile): New declaration.
2138 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2139 events instead of solib_unloaded events.
2140 (_initialize_printcmd): Register observer for free_objfile instead
2141 of solib_unloaded notifications.
2142 * solib.c (remove_user_added_objfile): New function.
2143 (_initialize_symfile): Add remove-symbol-file.
2144
2145 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2146
2147 * infcmd.c (default_print_one_register_info): Use val_print to
2148 print all values even optimized out or unavailable ones. Don't
2149 try to print a raw form of optimized out or unavailable values.
2150
2151 2013-10-29 Yao Qi <yao@codesourcery.com>
2152
2153 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2154 parameter 'arg' instead of from program_space_data.
2155 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2156 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2157 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2158 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2159 * inflow.c (inflow_inferior_data_cleanup): Get data from
2160 parameter 'arg' instead of inferior_data.
2161 * registry.h: Add comments.
2162
2163 2013-10-28 Pedro Alves <palves@redhat.com>
2164
2165 * breakpoint.c (watchpoints_triggered)
2166 <!target_stopped_data_address>: Hardcode return 1.
2167
2168 2013-10-28 Pedro Alves <palves@redhat.com>
2169
2170 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2171 level and reindent.
2172
2173 2013-10-28 Pedro Alves <palves@redhat.com>
2174
2175 * infrun.c (process_event_stop_test): New function, factored out
2176 from handle_inferior_event.
2177 (handle_inferior_event): 'process_event_stop_test' is now a
2178 function instead of a goto label -- adjust.
2179
2180 2013-10-28 Pedro Alves <palves@redhat.com>
2181
2182 * infrun.c (handle_inferior_event): Move process_event_stop_test
2183 goto label to the else branch of the ecs->random_signal check,
2184 along with FRAME and GDBARCH re-fetching.
2185
2186 2013-10-28 Pedro Alves <palves@redhat.com>
2187
2188 * infrun.c (switch_back_to_stepped_thread): New function, factored
2189 out from handle_inferior_event.
2190 (handle_inferior_event): Adjust to call
2191 switch_back_to_stepped_thread. Call it also at the tail of the
2192 random signal handling, and return, instead of also handling
2193 random signals just before the stepping tests.
2194
2195 2013-10-28 Pedro Alves <palves@redhat.com>
2196
2197 * infrun.c (clear_stop_func): Delete.
2198 (handle_inferior_event): Don't call clear_stop_func and don't
2199 clear 'ecs->random_signal'.
2200
2201 2013-10-27 Yao Qi <yao@codesourcery.com>
2202
2203 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2204 (varobj_create, varobj_get_path_expr): Update.
2205 (varobj_value_has_mutated, varobj_update): Likewise.
2206 (create_child_with_value, new_root_variable): Likewise.
2207 (number_of_children, name_of_variable): Likewise.
2208 (value_of_child, my_value_of_variable): Likewise.
2209 (varobj_value_is_changeable_p): Likewise.
2210
2211 2013-10-25 Yao Qi <yao@codesourcery.com>
2212
2213 * language.h (struct lang_varobj_ops): Declare.
2214 (struct language_defn) <la_varobj_ops>: New field.
2215 * ada-lang.c: Include "varobj.h"
2216 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2217 ada_varobj_ops.
2218 * c-lang.c: Include "varobj.h"
2219 (c_language_defn): Initialize field 'la_varobj_ops' with
2220 c_varobj_ops.
2221 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2222 cplus_varobj_ops.
2223 (asm_language_defn): Initialize field 'la_varobj_ops' with
2224 default_varobj_ops.
2225 (minimal_language_defn): Likewise.
2226 * d-lang.c (d_language_defn): Likewise.
2227 * f-lang.c (f_language_defn): Likewise.
2228 * go-lang.c (go_language_defn): Likewise.
2229 * m2-lang.c (m2_language_defn): Likewise.
2230 * objc-lang.c (objc_language_defn): Likewise.
2231 * opencl-lang.c (opencl_language_defn): Likewise.
2232 * p-lang.c (pascal_language_defn): Likewise.
2233 * language.c (unknown_language_defn): Likewise.
2234 (auto_language_defn): Likewise.
2235 (local_language_defn): Likewise.
2236 * jv-lang.c (java_language_defn): Initialize field
2237 'la_varobj_ops' with java_varobj_ops.
2238 * varobj.c (varobj_create): Update.
2239 * varobj.h (default_varobj_ops): Define macro.
2240
2241 2013-10-25 Pedro Alves <palves@redhat.com>
2242
2243 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2244 static field value.
2245 (cp_print_static_field): If the value is entirely optimized out,
2246 print <optimized out> here.
2247 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2248 static field value.
2249 * p-valprint.c (pascal_object_print_static_field): If the value is
2250 entirely optimized out, print <optimized out> here.
2251 * valops.c (do_search_struct_field)
2252 (value_struct_elt_for_reference): No longer handle a NULL static
2253 field value.
2254 * value.c (value_static_field): Return an optimized out value
2255 instead of NULL.
2256
2257 2013-10-25 Yao Qi <yao@codesourcery.com>
2258
2259 * remote.c (remote_traceframe_info): Return early if
2260 traceframe is not selected.
2261
2262 2013-10-25 Yao Qi <yao@codesourcery.com>
2263
2264 * tracepoint.c (traceframe_fun): Remove.
2265 (traceframe_sal): Remove.
2266 (set_traceframe_context): Add local variables.
2267
2268 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2269
2270 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2271 and parameter name.
2272
2273 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2274
2275 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2276 failure from register information collection.
2277
2278 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2279
2280 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2281 member.
2282 (linux_corefile_thread_callback): Update accordingly.
2283 (linux_make_corefile_notes): Likewise.
2284
2285 2013-10-24 Pedro Alves <palves@redhat.com>
2286
2287 * NEWS (New options): Mention set/show startup-with-shell.
2288 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2289 instead of 3.
2290 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2291 startup-with-shell'.
2292 (show_startup_with_shell): New function.
2293 (_initialize_fork_child): Register the set/show startup-with-shell
2294 commands.
2295 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2296 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2297 * procfs.c (procfs_init_inferior): Remove comment.
2298 * infcmd.c (startup_with_shell): New global.
2299 * inferior.h (startup_with_shell): Declare global.
2300 (STARTUP_WITH_SHELL): Delete.
2301 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2302
2303 2013-10-23 Pedro Alves <palves@redhat.com>
2304
2305 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2306 * common/signals.c: Include "gdb_assert.h".
2307 (signals): New field 'symbol'.
2308 (SET): Use the 'symbol' parameter.
2309 (gdb_signal_to_symbol_string): New function.
2310 * infrun.c (handle_inferior_event) <random signal>: In debug
2311 output, print the random signal enum as string in addition to its
2312 number.
2313 * target/waitstatus.c (target_waitstatus_to_string): Print the
2314 signal's enum value as string instead of the (POSIX) signal name.
2315
2316 2013-10-23 Gary Benson <gbenson@redhat.com>
2317
2318 PR 16013
2319 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2320 from 32 to 18. Adjusted fscanf format string accordingly.
2321 (Avoids leaving cmd unterminated.)
2322 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2323 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2324 that local_address and remote_address will not overflow.
2325 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2326 leaving dependencies unterminated. Parse size as "%u" to match
2327 definition.
2328
2329 2013-10-22 Pedro Alves <palves@redhat.com>
2330
2331 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2332 set ecs->random signal.
2333
2334 2013-10-22 Pedro Alves <palves@redhat.com>
2335
2336 * infrun.c (keep_going): Update comments.
2337
2338 2013-10-22 Pedro Alves <palves@redhat.com>
2339
2340 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2341 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2342
2343 2013-10-22 Pedro Alves <palves@redhat.com>
2344
2345 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2346 GDB_EXC_BAD_ACCESS.
2347 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2348 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2349 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2350 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2351 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2352 (GDB_SIGNAL_LAST): Change description string.
2353 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2354 Adjust to signal renaming.
2355 * darwin-nat.c (darwin_decode_message): Likewise.
2356
2357 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2358
2359 * MAINTAINERS (Write After Approval): Add myself to the list.
2360
2361 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2362
2363 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2364 forced off, downgrade them to software watchpoints if possible,
2365 and error out if not possible.
2366 (watch_command_1): Move watchpoint type selection closer to
2367 watchpoint creation, and extend the comments.
2368
2369 2013-10-18 Pedro Alves <palves@redhat.com>
2370
2371 PR gdb/16062
2372 * infrun.c (handle_inferior_event): Keep going if we got a random
2373 signal we should not stop for, instead of falling through to the
2374 step tests.
2375
2376 2013-10-18 Yao Qi <yao@codesourcery.com>
2377
2378 * c-varobj.c (cplus_number_of_children): Fix indentation.
2379
2380 2013-10-17 Tom Tromey <tromey@redhat.com>
2381
2382 PR gdb/15995:
2383 * printcmd.c (printcmd): Call gdb_flush.
2384
2385 2013-10-17 Tom Tromey <tromey@redhat.com>
2386
2387 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2388 (elf_locate_sections): Update.
2389
2390 2013-10-17 Yao Qi <yao@codesourcery.com>
2391
2392 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2393 * ada-varobj.c: Remove the include of ada-varobj.h.
2394 (ada_varobj_get_number_of_children): Declare.
2395 (ada_varobj_get_name_of_child): Make it static.
2396 (ada_varobj_get_path_expr_of_child): Likewise.
2397 (ada_varobj_get_value_of_child): Likewise.
2398 (ada_varobj_get_type_of_child): Likewise.
2399 (ada_varobj_get_value_of_array_variable): Likewise.
2400 * ada-varobj.h: Remove.
2401
2402 2013-10-17 Yao Qi <yao@codesourcery.com>
2403
2404 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2405 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2406 * ada-varobj.c: Include "varobj.h".
2407 (ada_number_of_children): New. Moved from varobj.c.
2408 (ada_name_of_variable, ada_name_of_child): Likewise.
2409 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2410 (ada_type_of_child, ada_value_of_variable): Likewise.
2411 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2412 (ada_varobj_ops): New.
2413 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2414 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2415 * gdbtypes.h (get_target_type): Declare.
2416 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2417 "ada-lang.h".
2418 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2419 (ANONYMOUS_UNION_NAME): Likewise.
2420 (get_type, get_value_type, get_target_type): Remove declarations.
2421 (value_get_print_value, varobj_value_get_print_value): Likewise.
2422 (c_number_of_children, c_name_of_variable): Likewise.
2423 (c_name_of_child, c_path_expr_of_child): Likewise.
2424 (c_value_of_child, c_type_of_child): Likewise.
2425 (c_value_of_variable, cplus_number_of_children): Likewise.
2426 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2427 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2428 (cplus_value_of_child, cplus_type_of_child): Likewise.
2429 (cplus_value_of_variable, java_number_of_children): Likewise.
2430 (java_name_of_variable, java_name_of_child): Likewise.
2431 (java_path_expr_of_child, java_value_of_child): Likewise.
2432 (java_type_of_child, java_value_of_variable): Likewise.
2433 (ada_number_of_children, ada_name_of_variable): Likewise.
2434 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2435 (ada_value_of_child, ada_type_of_child): Likewise.
2436 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2437 (ada_value_has_mutated): Likewise.
2438 (struct language_specific): Move it to varobj.h.
2439 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2440 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2441 Callers update.
2442 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2443 Make it extern.
2444 (is_anonymous_child): Move it to c-varobj.c and rename to
2445 varobj_is_anonymous_child. Caller update.
2446 (get_type): Move it to c-varobj.c.
2447 (get_value_type): Rename it varobj_get_value_type. Make it
2448 extern.
2449 (get_target_type): Move it gdbtypes.c.
2450 (varobj_formatted_print_options): New function.
2451 (value_get_print_value): Rename it to
2452 varobj_value_get_print_value and make it extern.
2453 (varobj_value_is_changeable_p): Make it extern.
2454 (adjust_value_for_child_access): Move it to c-varobj.c.
2455 (default_value_is_changeable_p): Rename it to
2456 varobj_default_value_is_changeable_p. Make it extern.
2457 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2458 (c_name_of_child, c_path_expr_of_child): Likewise.
2459 (c_value_of_child, c_type_of_child): Likewise.
2460 (c_value_of_variable, cplus_number_of_children): Likewise.
2461 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2462 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2463 (cplus_value_of_child, cplus_type_of_child): Likewise.
2464 (cplus_value_of_variable): Likewise.
2465 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2466 (java_name_of_child, java_path_expr_of_child): Likewise.
2467 (java_value_of_child, java_type_of_child): Likewise.
2468 (java_value_of_variable): Likewise.
2469 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2470 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2471 (ada_value_of_child, ada_type_of_child): Likewise.
2472 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2473 (ada_value_has_mutated): Likewise.
2474 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2475 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2476 (c_varobj_ops, cplus_varobj_ops): Declare.
2477 (java_varobj_ops, ada_varobj_ops): Declare.
2478 (varobj_default_value_is_changeable_p): Declare.
2479 (varobj_value_is_changeable_p): Declare.
2480 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2481 (varobj_get_path_expr_parent): Declare.
2482 (varobj_value_get_print_value): Declare.
2483 (varobj_formatted_print_options): Declare.
2484 (varobj_restrict_range): Declare.
2485
2486 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2487
2488 * target/waitstatus.h (target_waitkind): Remove spurious
2489 character from the comments.
2490
2491 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2492
2493 * gdbarch.sh (get_longjmp_target): Add method documentation.
2494 * gdbarch.h: Regenerate.
2495
2496 2013-10-16 Tom Tromey <tromey@redhat.com>
2497
2498 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2499 label.
2500
2501 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2502
2503 * gcore.in: Call GDB using the full path to the gcore script.
2504 Error out if the GDB binary is not found.
2505
2506 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2507
2508 PR gdb/16014
2509 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2510 sizeof.
2511
2512 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2513
2514 PR gdb/16042
2515 * target.c (target_disable_btrace): Fix invalid return value for
2516 void function.
2517 (target_teardown_btrace): Likewise.
2518
2519 2013-10-14 Yao Qi <yao@codesourcery.com>
2520
2521 * varobj.c (struct varobj): Move most of the fields to
2522 varobj.h.
2523 (struct varobj_dynamic): New struct.
2524 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2525 (varobj_has_more): Likewise.
2526 (dynamic_varobj_has_child_method): Likewise.
2527 (update_dynamic_varobj_children): Likewise.
2528 (varobj_get_num_children): Likewise.
2529 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2530 (install_new_value_visualizer): Likewise.
2531 (install_new_value_visualizer, install_new_value): Likewise.
2532 (varobj_update, new_variable, free_variable): Likewise.
2533 (my_value_of_variable, value_get_print_value): Likewise.
2534 (install_visualizer): Change the type of parameter 'var' to
2535 'struct varobjd_dynamic *'. Callers update.
2536 * varobj.h (struct varobj): Moved from varobj.c.
2537 (struct varobj) <dynamic>: New field.
2538
2539 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2540
2541 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2542 as the preferred name of r30.
2543 * nios2-linux-tdep.c (reg_offsets): Likewise.
2544 * features/nios2-cpu.xml: Likewise.
2545 * features/nios2-linux.c: Regenerated.
2546 * features/nios2.c: Regenerated.
2547 * regformats/nios2-linux.dat: Regenerated.
2548
2549 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 Canonicalize directories for EXEC_FILENAME.
2552 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2553 exec_filename.
2554 * utils.c (gdb_realpath_keepfile): New function.
2555 * utils.h (gdb_realpath_keepfile): New declaration.
2556
2557 2013-10-11 Doug Evans <dje@google.com>
2558
2559 * Makefile.in (GDBFLAGS): New variable.
2560 (run): New rule.
2561
2562 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2563
2564 * NEWS: Add entry documenting the new "-catch-assert" and
2565 "-catch-exception" GDB/MI commands.
2566
2567 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2568
2569 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2570 "enabled".
2571 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2572 "enabled". Set B->ENABLE_STATE accordingly.
2573 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2574 ada-lang.c.
2575 (create_ada_exception_catchpoint): Add declaration.
2576 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2577 (create_ada_exception_catchpoint): Make non-static. Add new
2578 parameter "disabled". Use it in call to
2579 init_ada_exception_breakpoint.
2580 (catch_ada_exception_command): Add parameter "enabled" in call
2581 to create_ada_exception_catchpoint.
2582 (catch_assert_command): Likewise.
2583
2584 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2585 Add declarations.
2586 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2587 "catch-exception" commands.
2588 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2589 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2590
2591 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2592
2593 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2594 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2595 of all its enumerates with "ada_". Update the rest of this
2596 file throughout.
2597
2598 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2599
2600 * ada-lang.c (ada_decode_exception_location): Delete.
2601 (create_ada_exception_catchpoint): Remove arguments "sal",
2602 "addr_string" and "ops". Add argument "ex_kind" instead.
2603 Adjust implementation accordingly, calling ada_exception_sal
2604 to get the entities it no longer gets passed as arguments.
2605 Document the function's arguments.
2606 (catch_ada_exception_command): Use catch_ada_exception_command_split
2607 instead of ada_decode_exception_location, and update call to
2608 create_ada_exception_catchpoint.
2609 (catch_ada_assert_command_split): Renames
2610 ada_decode_assert_location. Remove parameters "addr_string" and
2611 "ops", and now returns void. Adjust implementation accordingly.
2612 Update the function documentation.
2613 (catch_assert_command): Use catch_ada_assert_command_split
2614 instead of ada_decode_assert_location. Update call to
2615 create_ada_exception_catchpoint.
2616
2617 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2618
2619 * utils.h (perror_warning_with_name): Add declaration.
2620 * utils.c (perror_warning_with_name): New function.
2621 * cli/cli-cmds.c (source_script_with_search): Add call to
2622 perror_warning_with_name if from_tty is nul.
2623
2624 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2625
2626 * utils.c (perror_string): New function, extracted out of
2627 throw_perror_with_name.
2628 (throw_perror_with_name): Rework to use perror_string.
2629
2630 2013-10-11 Yao Qi <yao@codesourcery.com>
2631
2632 * remote.c (discard_pending_stop_replies_in_queue): Update
2633 declaration.
2634 (struct stop_reply) <rs>: New field.
2635 (remove_stop_reply_of_remote_state): New function.
2636 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2637 Callers update. Pass remove_stop_reply_of_remote_state to
2638 QUEUE_iterate.
2639 (remote_parse_stop_reply): Initialize field 'rs'.
2640
2641 2013-10-10 Will Newton <will.newton@linaro.org>
2642
2643 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2644 linux_init_abi.
2645
2646 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2647
2648 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2649 serial_baud_show_cmd.
2650 (_initialize_cli_cmds): Delete the code creating the
2651 "set/show remotebaud" commands.
2652 * serial.c (baud_rate): Move here from top.c.
2653 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2654 (_initialize_serial): Create "set/show serial baud" commands.
2655 Add "set/show remotebaud" command aliases.
2656 * top.c (baud_rate): Moved to serial.c.
2657 * NEWS: Document the new "set/show serial baud" commands,
2658 replacing "set/show remotebaud".
2659
2660 2013-10-09 Pedro Alves <palves@redhat.com>
2661
2662 * breakpoint.c (insert_bp_location): Use memory_error_message to
2663 build the memory error string.
2664 * c-lang.c: Include "gdbcore.h".
2665 (c_get_string): Use memory_error to throw error.
2666 (target_xfer_memory_error): Delete.
2667 (memory_error_message): New, factored out from
2668 target_xfer_memory_error.
2669 (memory_error): Change parameter type to target_xfer_error.
2670 Rewrite.
2671 (read_memory): Use memory_error instead of
2672 target_xfer_memory_error.
2673 * gdbcore.h: Include "target.h".
2674 (memory_error): Change parameter type to target_xfer_error.
2675 (memory_error_message): Declare function.
2676 * target.c (target_read_memory, target_read_stack)
2677 (target_write_memory, target_write_raw_memory): Return
2678 TARGET_XFER_E_IO on error. Adjust comments.
2679 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2680 instead of EIO.
2681 * target.h (target_read, target_insert_breakpoint)
2682 (target_remove_breakpoint): Adjust comments.
2683 * valprint.c (partial_memory_read): Rename parameter, and adjust
2684 comment.
2685 (val_print_string): Use memory_error_message to build the memory
2686 error string.
2687
2688 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2691 result variable. Rename variable fopen_e_ever_failed to
2692 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2693
2694 2013-10-09 Pedro Alves <palves@redhat.com>
2695
2696 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2697 (monitor_write_memory_longlongs, monitor_write_memory_block):
2698 Constify 'myaddr' parameter.
2699 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2700 helper.
2701 (monitor_xfer_partial): New function.
2702 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2703 hook. Install a to_xfer_partial hook.
2704
2705 2013-10-09 Tom Tromey <tromey@redhat.com>
2706
2707 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2708 bfd_get_alt_debug_link_info.
2709
2710 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2711
2712 New flag OBJF_NOT_FILENAME.
2713 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2714 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2715 allocate_objfile.
2716 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2717 symbol_file_add_from_bfd.
2718 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2719 allocate_objfile.
2720 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2721 NULL.
2722 * objfiles.h (OBJF_NOT_FILENAME): New.
2723
2724 2013-10-08 Tom Tromey <tromey@redhat.com>
2725
2726 * Makefile.in (SFILES): Add build-id.c.
2727 (HFILES_NO_SRCDIR): Add build-id.h.
2728 * build-id.c: New file, largely from elfread.c. Modified
2729 most functions.
2730 * build-id.h: New file.
2731 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2732 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2733 Search for dwz file using build-id.
2734 * elfread.c (build_id_bfd_get, build_id_verify)
2735 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2736
2737 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2738
2739 * ada-lang.c (compare_names_with_case): Renamed from
2740 compare_names, adding a new parameter "casing" and its handling.
2741 New function documentation.
2742 (compare_names): New function, implemented using
2743 compare_names_with_case.
2744
2745 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2746
2747 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2748
2749 2013-10-07 Tom Tromey <tromey@redhat.com>
2750
2751 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2752 demangled_names_hash.
2753 (free_objfile): Don't delete the demangled_names_hash.
2754 * objfiles.h (struct objfile_per_bfd_storage)
2755 <demangled_names_hash>: New field.
2756 (struct objfile) <demangled_names_hash>: Move to
2757 objfile_per_bfd_storage.
2758 * symfile.c (reread_symbols): Don't delete the
2759 demangled_names_hash.
2760 * symtab.c (create_demangled_names_hash): Update.
2761 (symbol_set_names): Update.
2762
2763 2013-10-07 Tom Tromey <tromey@redhat.com>
2764
2765 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2766 needs_relocations>: New fields.
2767 (gdb_bfd_requires_relocations): New function.
2768 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2769 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2770 the BFD needs relocations applied.
2771
2772 2013-10-07 Pedro Alves <palves@redhat.com>
2773
2774 PR breakpoints/11568
2775 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2776 the thread list" instead of "gone".
2777
2778 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2779
2780 * NEWS: Mention new convenience variable $_exitsignal.
2781 * corelow.c (core_open): Reset exit convenience variables. Set
2782 $_exitsignal to the uncaught signal which generated the corefile.
2783 * infrun.c (handle_inferior_event): Reset exit convenience
2784 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2785 (clear_exit_convenience_vars): New function.
2786 * inferior.h (clear_exit_convenience_vars): New prototype.
2787
2788 2013-10-06 Yao Qi <yao@codesourcery.com>
2789
2790 * varobj.h: Add comments to enum varobj_languages.
2791
2792 2013-10-04 Doug Evans <dje@google.com>
2793
2794 Add support for DWP file format version 2.
2795 * NEWS: Mention support for DWP file format version 2.
2796 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2797 union of asection, containing_section. New fields virtual_offset
2798 and is_virtual. Change type of readin filed from int to char.
2799 (dwo_sections, dwo_file): Tweak comments.
2800 (dwp_v2_section_ids): New enum.
2801 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2802 str_offsets, types.
2803 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2804 All uses updated.
2805 (virtual_v2_dwo_sections): New struct.
2806 (dwp_hash_table): New fields version, nr_columns. Change type of
2807 section_pool field to a union.
2808 (dwp_file): New field version.
2809 (dwarf2_has_info): Check for virtual sections.
2810 (get_containing_section): New function.
2811 (get_section_bfd_owner, get_section_bfd_section): Call it.
2812 (dwarf2_locate_sections): Update.
2813 (dwarf2_section_empty_p): Update.
2814 (dwarf2_read_section): Handle virtual sections.
2815 (locate_dwz_sections): Update.
2816 (create_dwp_hash_table): Document and handle V2 format.
2817 (locate_v1_virtual_dwo_sections): Renamed from
2818 locate_virtual_dwo_sections and update. All callers updated.
2819 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2820 Delete arg htab. Rename arg section_index to unit_index.
2821 All callers updated.
2822 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2823 All uses updated.
2824 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2825 (lookup_dwo_unit_in_dwp): Add V2 support.
2826 (dwarf2_locate_dwo_sections): Update.
2827 (dwarf2_locate_common_dwp_sections): Renamed from
2828 dwarf2_locate_dwp_sections and update. All callers updated.
2829 (dwarf2_locate_v2_dwp_sections): New function.
2830 (open_and_init_dwp_file): Add V2 support.
2831 (read_str_index): New locals str_section, str_offsets_section.
2832
2833 2013-10-04 Pedro Alves <palves@redhat.com>
2834
2835 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2836 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2837 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2838 describing comments with references to ptid.h.
2839 * common/ptid.h: Remove intro description of constructors,
2840 accessors and predicates.
2841 (struct ptid): Reformat.
2842 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2843 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2844 describing comments.
2845
2846 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2847
2848 * aix-thread.c (sync_threadlists): Add missing ')' in call
2849 to ptid_build.
2850
2851 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2852
2853 * procfs.c (procfs_init_inferior): Fix typo causing the build
2854 to fail.
2855
2856 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2857
2858 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2859
2860 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2861
2862 * mi/mi-main.c (run_one_inferior): Add function description.
2863 Make ARG a pointer to an integer whose value determines whether
2864 we should "run" or "start" the program.
2865 (mi_cmd_exec_run): Add handling of the "--start" option.
2866 Reject all other command-line options.
2867 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2868
2869 2013-10-04 Yao Qi <yao@codesourcery.com>
2870
2871 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2872 (struct notif_client) <pending_event>: Moved
2873 to struct remote_notif_state.
2874 <id>: New field.
2875 (struct remote_notif_state) <pending_event>: New field.
2876 (notif_event_xfree): Declare.
2877 * remote-notif.c (handle_notification): Adjust.
2878 (notif_event_xfree): New function.
2879 (do_notif_event_xfree): Call notif_event_xfree.
2880 (remote_notif_state_xfree): Call notif_event_xfree to free
2881 each element in field pending_event.
2882 * remote.c (discard_pending_stop_replies): Remove declaration.
2883 (discard_pending_stop_replies_in_queue): Declare.
2884 (remote_close): Call discard_pending_stop_replies_in_queue
2885 instead of discard_pending_stop_replies.
2886 (remote_start_remote): Adjust.
2887 (stop_reply_xfree): Call notif_event_xfree.
2888 (notif_client_stop): Adjust initialization.
2889 (remote_notif_remove_all): Rename it to ...
2890 (remove_stop_reply_for_inferior): ... this. Update comments.
2891 Don't check INF is NULL.
2892 (discard_pending_stop_replies): Return early if notif_state is
2893 NULL. Adjust. Don't check INF is NULL.
2894 (remote_notif_get_pending_events): Adjust.
2895 (discard_pending_stop_replies_in_queue): New function.
2896 (remote_wait_ns): Likewise.
2897
2898 2013-10-04 Yao Qi <yao@codesourcery.com>
2899
2900 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2901 (notif_queue): Remove.
2902 (remote_notif_process): Add one parameter 'notif_queue'.
2903 Update comments. Callers update.
2904 (remote_async_get_pending_events_token): Remove.
2905 (remote_notif_register_async_event_handler): Remove.
2906 (remote_notif_unregister_async_event_handler): Remove.
2907 (handle_notification): Add parameter 'notif_queue'. Update
2908 comments. Callers update.
2909 (notif_xfree): Remove.
2910 (remote_notif_state_allocate): New function.
2911 (remote_notif_state_xfree): New function.
2912 (_initialize_notif): Remove code to allocate queue.
2913 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2914 (struct remote_notif_state): New.
2915 (handle_notification): Update declaration.
2916 (remote_notif_process): Likewise.
2917 (remote_notif_register_async_event_handler): Remove.
2918 (remote_notif_unregister_async_event_handler): Remove.
2919 (remote_notif_state_allocate): Declare.
2920 (remote_notif_state_xfree): Declare.
2921 * remote.c (struct remote_state) <notif_state>: New field.
2922 (remote_close): Don't call
2923 remote_notif_unregister_async_event_handler. Call
2924 remote_notif_state_xfree.
2925 (remote_open_1): Don't call
2926 remote_notif_register_async_event_handler. Call
2927 remote_notif_state_allocate.
2928
2929 2013-10-04 Yao Qi <yao@codesourcery.com>
2930
2931 * varobj.c (create_child_with_value): Remove 'const' from the
2932 type of parameter 'name'.
2933 (varobj_add_child): Likewise.
2934 (install_dynamic_child): Remove 'const' from the type of
2935 parameter 'name'.
2936 (varobj_add_child): Likewise.
2937 (create_child_with_value): Likewise. Update comments. Don't
2938 duplicate 'name'.
2939 (update_dynamic_varobj_children): Duplicate 'name'
2940 and pass it to install_dynamic_child.
2941
2942 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2943
2944 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2945 conversion logic to occur after PyLong_Check. Comment on order
2946 change significance.
2947 * python/py-arch.c (archpy_disassemble): Comment on order of
2948 conversion for integers and longs.
2949
2950 2013-10-03 Pedro Alves <palves@redhat.com>
2951
2952 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2953 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2954 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2955 PTRACE_O_TRACEFORK is not supported.
2956 (linux_test_for_tracesysgood): New function.
2957 (linux_test_for_tracefork): New function, factored out from
2958 linux_check_ptrace_features, and also don't kill child_pid here.
2959
2960 2013-10-03 Tristan Gingold <gingold@adacore.com>
2961
2962 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2963 Remove verbose error reporting. Use detected state to
2964 thread_set_state call.
2965 (i386_darwin_dr_get): Fix return type. Remove verbose error
2966 report.
2967 Remove trailing spaces.
2968
2969 2013-10-02 Pedro Alves <palves@redhat.com>
2970
2971 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2972 val_print_optimized_out.
2973 * jv-valprint.c (java_print_value_fields): Likewise.
2974 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2975 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2976 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2977 new optimized out value.
2978 * findvar.c (address_from_register): Likewise.
2979 * frame.c (put_frame_register): Tweak error string to say the
2980 register was not saved, rather than optimized out.
2981 * infcmd.c (default_print_one_register_info): Adjust call to
2982 val_print_optimized_out. Use value_of_register instead of
2983 get_frame_register_value.
2984 * mi/mi-main.c (output_register): Use value_of_register instead of
2985 get_frame_register_value.
2986 * valprint.c (valprint_check_validity): Likewise.
2987 (val_print_optimized_out): New value parameter. If the value is
2988 lval_register, print <not saved> instead.
2989 (value_check_printable, val_print_scalar_formatted): Adjust calls
2990 to val_print_optimized_out.
2991 * valprint.h (val_print_optimized_out): New value parameter.
2992 * value.c (struct value) <optimized_out>: Extend comment.
2993 (error_value_optimized_out): New function.
2994 (require_not_optimized_out): Use it. Use a different string for
2995 lval_register values.
2996 * value.h (error_value_optimized_out): New declaration.
2997 * NEWS: Mention <not saved>.
2998
2999 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3000
3001 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3002 strcmp to compare two symtab filenames.
3003
3004 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3005
3006 * symtab.c (search_symbols_equal): Delete.
3007 (sort_search_symbols_remove_dups): Replace call to
3008 search_symbols_equal by call to compare_search_syms,
3009 adjusting as necessary.
3010
3011 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3012
3013 PR python/15579
3014 * python/python.c: Document gdb.execute command in Python help.
3015
3016 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3017
3018 * python/py-frame.c (frame_info_to_frame_object): Use
3019 gdbpy_convert_exception. Clean up Python object on failure.
3020
3021 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3022
3023 * python/lib/gdb/command/frame_filters.py
3024 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3025 (ShowFrameFilterPriority.invoke): Ditto.
3026
3027 2013-10-01 Keith Seitz <keiths@redhat.com>
3028
3029 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3030 (parse_linespec): Make 'argptr' const.
3031 Remove temporary cast of 'argptr' to const char **.
3032 (decode_line_full): Pass const pointer to parse_linespec.
3033 (decode_line_1): Likewise.
3034 (decode_objc): Make local variable 'new_argptr' const.
3035 (find_function_symbols): Remove temporary cast to char *
3036 to find_imps.
3037 * objc-lang.c (find_imps): Make argument 'method' const.
3038 Return const.
3039 * objc-lang.h (find_imps): Likewise.
3040
3041 2013-10-01 Keith Seitz <keiths@redhat.com>
3042
3043 * completer.c (skip_quoted_chars): Make all arguments const.
3044 Return const.
3045 (skip_quoted): Likewise.
3046 * completer.h (skip_quoted_chars): Likewise.
3047 (skip_quoted): Likewise.
3048 * defs.h (skip_quoted): Remove duplicate declaration.
3049 * jv-exp.y: Include completer.h.
3050 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3051 * p-exp.y: Include completer.h.
3052
3053 2013-10-01 Keith Seitz <keiths@redhat.com>
3054
3055 * c-exp.y (parse_number): Make first argument const.
3056 Make a copy of the input to manipulate.
3057 (c_parse_escape): Make first argument const.
3058 Make local variable 'tokptr' const.
3059 (parse_string_or_char): Make first two arguments const.
3060 (macro_original_text): Make const.
3061 (lex_one_token): Make local variable 'tokstart' const.
3062 Likewise for local variables named 'p'.
3063 Cast away const for struct stoken (temporary).
3064 * c-lang.h (c_parse_escpae): Make first argument const.
3065 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3066 const.
3067 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3068 var_string case.
3069 * f-exp.y (parse_number): Make first argument const.
3070 (match_string_literal): Make local variable 'tokstart'
3071 const.
3072 (yylex): Make local variable 'p' const.
3073 Cast away const for struct stoken (temporary).
3074 * go-exp.y (parse_number): Make first argument const.
3075 (parse_string_or_char): Likewise.
3076 Make local variable 'tokstart' const.
3077 (lex_one_token): Likewise for numerous locals called 'p'.
3078 Cast away const for struct stoken (temporary).
3079 * jv-exp.y (parse_number): Make first argument const.
3080 Make local variables 'tokstart' and 'tokptr' const.
3081 Cast away const for call to skip_quoted (temporary).
3082 (yylex): Make local variable 'p' const.
3083 Cast away const for struct stoken (temporary).
3084 * m2-exp.y (parse_number): Make local variable 'p' const.
3085 (yylex): Likewise for 'tokstart'.
3086 Cast away const for struct stoken (temporary).
3087 Make local variable 'p' const.
3088 * macroexp.c (get_character_constant): Pass a const string
3089 to c_parse_escape.
3090 (get_string_literal): Likewise.
3091 (macro_expand_next): Make first argument const.
3092 Cast away const for init_shared_buffer.
3093 * macroexp.h (macro_expand_next): Make first argument const.
3094 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3095 Pass a const string to c_parse_escape.
3096 Make local variables 'p' and 'namestart' const.
3097 * parse.c (lexptr): Make const.
3098 (prev_lexptr): Likewise.
3099 (find_template_name_end): Return const.
3100 Make argument const, too.
3101 (parse_exp_in_context): Make first argument const.
3102 Remove the entire const_hack.
3103 (parse_exp_in_context_1): Make first argument const.
3104 * parser-defs.h (find_template_name_end): Return const.
3105 Make argument const, too.
3106 (lexptr): Make const.
3107 (prev_lexptr): Likewise.
3108 * utils.c (parse_escape): Make second argument const.
3109 * utils.h (parse_escape): Likewise.
3110
3111 2013-10-01 Keith Seitz <keiths@redhat.com>
3112
3113 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3114 is now const.
3115 (block_lookup): Make 'raw_name' and 'name' const.
3116 * ada-lex.l (processString): Update for struct stoken.ptr.
3117 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3118 (operator_stoken): Likewise.
3119 (lex_one_token): Remove temporary cast to char * for
3120 'yylval.sval.ptr'.
3121 * f-exp.y (yylex): Likewise.
3122 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3123 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3124 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3125 'yylval.sval.ptr'.
3126 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3127 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3128 * linespec.c (struct ls_parser): Make 'stream' const.
3129 (find_parameter_list_end): Make argument 'input' and local
3130 variable 'p' const.
3131 (linespec_lexer_lex_string): Make local variables 'start' and
3132 'p' const.
3133 Use skip_spaces_const instead of skip_spaces.
3134 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3135 const.
3136 (parse_linespec): Temporarily cast 'argptr' to const for
3137 'parser->lexer.stream'.
3138 * m2-exp.y (yylex): Remove temporary cast to char * for
3139 'yylval.sval.ptr'.
3140 * objc-lang.c (add_msglist): Make local variable 'p' const.
3141 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3142 (exp : STRING): Make 'sp' const.
3143 (parse_number): Make argument 'p' const.
3144 * parser-defs.h (struct stoken): Make 'ptr' const.
3145
3146 2013-10-01 Doug Evans <dje@google.com>
3147
3148 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3149
3150 2013-10-01 Yao Qi <yao@codesourcery.com>
3151
3152 * varobj.c (c_value_of_root): Remove declaration.
3153 (cplus_value_of_root, java_value_of_root): Likewise.
3154 (ada_value_of_root): Likewise.
3155 (struct language_specific) <value_of_root>: Remove.
3156 (languages): Update initialization.
3157 (check_scope): Move earlier.
3158 (c_value_of_root): Move earlier and rename to ...
3159 (value_of_root_1): ... this.
3160 (value_of_root): Caller update.
3161 (cplus_value_of_root, java_value_of_root): Remove.
3162 (ada_value_of_root): Remove.
3163
3164 2013-10-01 Yao Qi <yao@codesourcery.com>
3165
3166 * varobj.c (varobj_format_string): Remove "unknown".
3167 (languages): Remove the first element.
3168 * varobj.h (enum varobj_languages): Remove vlang_c.
3169
3170 2013-10-01 Yao Qi <yao@codesourcery.com>
3171
3172 * varobj.c (struct language_specific) <language>: Remove.
3173 (languages): Update the initialization.
3174
3175 2013-10-01 Yao Qi <yao@codesourcery.com>
3176
3177 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3178 "solib-target.h". Include "windows-tdep.h".
3179 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3180 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3181 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3182 windows-tdep.o to gdb_target_obs.
3183
3184 2013-10-01 Yao Qi <yao@codesourcery.com>
3185
3186 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3187 "solib-target.h".
3188 (amd64_windows_init_abi): Don't call set_solib_ops and
3189 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3190 windows_init_abi instead.
3191 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3192 "solib-target.h".
3193 (i386_cygwin_init_abi): Don't call set_solib_ops,
3194 set_gdbarch_has_dos_based_file_system and
3195 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3196 windows_init_abi instead.
3197 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3198 (windows_init_abi): New function.
3199 (windows_iterate_over_objfiles_in_search_order): Make it
3200 static.
3201 * windows-tdep.h (windows_init_abi): Declare.
3202 (windows_iterate_over_objfiles_in_search_order): Remove
3203 declaration.
3204
3205 2013-10-01 Jerome Guitton <guitton@adacore.com>
3206
3207 Checked in by Joel Brobecker <brobecker@adacore.com>
3208 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3209 incomplete dictionnary instead of None in case of missing
3210 environment variables.
3211 (elinos_init): in case of an incomplete environment, best
3212 effort to load system libraries instead of abort.
3213
3214 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3215
3216 * ada-lang.c (ada_has_this_exception_support): Ignore
3217 mst_solib_trampoline minimal symbols.
3218
3219 2013-09-30 Tristan Gingold <gingold@adacore.com>
3220
3221 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3222 hardware watchpoint.
3223 (i386_darwin_dr_set): Support 32 and 64 bit states.
3224 (i386_darwin_dr_get): Likewise.
3225 (i386_darwin_dr_set_control): Make static.
3226 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3227 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3228
3229 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3230
3231 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3232 Replace TIDGET with ptid_get_lwp.
3233 Replace GET_LWP with ptid_get_lwp.
3234 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3235 Replace BUILD_THREAD with ptid_build.
3236 Replace BUILD_LWP with ptid_build.
3237 Replace PIDGET with ptid_get_pid.
3238 Replace TIDGET with ptid_get_lwp.
3239 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3240 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3241 Replace TIDGET with ptid_get_lwp.
3242 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3243 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3244 Replace TIDGET with ptid_get_lwp.
3245 Replace GET_LWP with ptid_get_lwp.
3246 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3247 * auxv.c: Likewise.
3248 * breakpoint.c: Likewise.
3249 * common/ptid.c (ptid_is_pid): Condense check for
3250 null_ptid and minus_one_ptid.
3251 (ptid_lwp_p): New function.
3252 (ptid_tid_p): New function.
3253 * common/ptid.h: Update comments for accessors.
3254 (ptid_lwp_p): New prototype.
3255 (ptid_tid_p): New prototype.
3256 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3257 * gcore.c: Replace PIDGET with ptid_get_pid.
3258 * gdbthread.h: Likewise.
3259 * gnu-nat.c: Likewise.
3260 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3261 Replace TIDGET with ptid_get_lwp.
3262 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3263 * hppanbsd-nat.c: Likewise.
3264 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3265 Replace TIDGET with ptid_get_lwp.
3266 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3267 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3268 * infcmd.c: Likewise.
3269 * inferior.h: Likewise.
3270 * inflow.c: Likewise.
3271 * infrun.c: Likewise.
3272 * linux-fork.c: Likewise.
3273 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3274 Replace GET_PID with ptid_get_pid.
3275 Replace is_lwp with ptid_lwp_p.
3276 Replace GET_LWP with ptid_get_lwp.
3277 Replace BUILD_LWP with ptid_build.
3278
3279 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3280
3281 * common/linux-btrace.c: Move sys/syscall.h out of the
3282 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3283 Also check for SYS_perf_event_open before attempting to buid.
3284
3285 2013-09-27 Doug Evans <dje@google.com>
3286
3287 * dwarf2read.c (dwarf2_section_info): Add comment.
3288 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3289 All uses updated.
3290 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3291 (dwarf2_read_section): Delete unused local "header". Add section
3292 name to error message.
3293 (create_dwo_in_dwp): Tweak comment.
3294 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3295
3296 * dwarf2read.c (die_reader_specs): Tweak comment.
3297 (get_section_bfd_owner, get_section_bfd_section): New functions.
3298 (get_section_name, get_section_file_name): New functions.
3299 (get_section_id, get_section_flags): New functions.
3300 (*): Use new functions to access section fields.
3301
3302 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3303 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3304 arg "htab". All callers updated.
3305 (create_debug_types_hash_table): Remove redundant copy of
3306 abbrev_section.
3307 (create_dwo_in_dwp): Tweak comments.
3308 (read_str_index): Tweak comment. Record dwarf form name in static
3309 local.
3310
3311 2013-09-27 Pedro Alves <palves@redhat.com>
3312
3313 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3314 (remote_filename_p): Add comment.
3315 * remote.c (remote_filename_p): Adjust to use
3316 REMOTE_SYSROOT_PREFIX.
3317 * solib.c (solib_find): When deciding whether we need to add a
3318 directory separator, check whether the sysroot is "remote:"
3319 instead of checking whether the patch has a drive spec. Add
3320 comments.
3321
3322 2013-09-27 Pedro Alves <palves@redhat.com>
3323
3324 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3325 Delete fields.
3326 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3327 directly.
3328
3329 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Fix set debug frame output.
3332 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3333 SENTINEL_FRAME entry lower to match enum frame_type order.
3334
3335 2013-09-26 Pierre Muller <muller@sourceware.org>
3336
3337 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3338 AMD64_R15_REGNUM when a register index is expected.
3339 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3340 Substitute in array.
3341 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3342 (amd64_push_arguments): Substitute in integer_regnum array.
3343
3344 2013-09-25 Doug Evans <dje@google.com>
3345
3346 * objfiles.c (allocate_objfile): Move comment to better place.
3347
3348 New option "set debug symfile on".
3349 * NEWS: Mention "set debug symfile".
3350 * Makefile.in (SFILES): Add symfile-debug.c.
3351 (COMMON_OBS): Add symfile-debug.o.
3352 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3353 objfile's symbol functions.
3354 * objfiles.h (objfile_set_sym_fns): Declare.
3355 * symfile-debug.c: New file.
3356 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3357 objfile's symbol functions.
3358 (reread_symbols): Ditto.
3359
3360 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3361 All uses updated.
3362 (add_symtab_fns): Update prototype.
3363 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3364 (registered_sym_fns): ... this.
3365 (symtab_fns): Update.
3366 (add_symtab_fns): New arg "flavour". All callers updated.
3367 (find_sym_fns): Rewrite to use new sym_fns registry.
3368
3369 * symfile.h (struct sym_fns): Add "objfile" argument to
3370 sym_read_linetable. All uses updated.
3371
3372 * symtab.c (domain_name, search_domain_name): New functions.
3373 * symtab.h (domain_name, search_domain_name): Declare.
3374
3375 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3376 map_matching_symbols so objfile is first. All uses updated.
3377 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3378 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3379
3380 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3381
3382 PR shlibs/8882
3383 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3384 link map entries.
3385
3386 2013-09-24 Doug Evans <dje@google.com>
3387
3388 * objfiles.c (free_objfile): Move comment.
3389
3390 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3391
3392 * ada-exp.y (string_to_operator): Delete.
3393 (dummy_string_to_ada_operator): Delete.
3394
3395 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3396
3397 Revert:
3398 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3399 amd64-tdep.c.
3400 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3401 call_dummy_integer_regs, and classify.
3402 * amd64-tdep.h (amd64_classify): Add declaration.
3403 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3404 (amd64_reg_class): Delete, moved to i386-tdep.h.
3405 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3406 Replace call to amd64_classify by call to tdep->classify.
3407 (amd64_push_arguments): Get the list of registers to use for
3408 passing integer parameters from the gdbarch tdep structure,
3409 rather than using a hardcoded one. Replace calls to amd64_classify
3410 by calls to tdep->classify.
3411 (amd64_push_dummy_call): Get the register number used for
3412 the "hidden" argument from tdep->call_dummy_integer_regs.
3413 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3414 and tdep->call_dummy_integer_regs. Set tdep->classify.
3415
3416 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3417
3418 Revert:
3419 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3420 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3421 where tdep->memory_args_by_pointer is non-zero.
3422
3423 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3424
3425 Revert:
3426 * i386-tdep.h (struct gdbarch_tdep): Add new field
3427 integer_param_regs_saved_in_caller_frame.
3428 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3429 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3430
3431 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3432
3433 * amd64-windows-tdep.c: #include "value.h"
3434 (amd64_windows_classify): Delete.
3435 (amd64_windows_passed_by_integer_register)
3436 (amd64_windows_passed_by_xmm_register)
3437 (amd64_windows_passed_by_pointer)
3438 (amd64_windows_adjust_args_passed_by_pointer)
3439 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3440 (amd64_windows_push_dummy_call): New functions.
3441 (amd64_windows_init_abi): Remove setting of
3442 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3443 tdep->classify, tdep->memory_args_by_pointer and
3444 tdep->integer_param_regs_saved_in_caller_frame.
3445 Add call to set_gdbarch_push_dummy_call.
3446
3447 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3450 objfile->original_name.
3451
3452 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 Pass down original filename for objfile.
3455 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3456 * elfread.c (elf_symfile_read): Likewise.
3457 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3458 longer set ORIGINAL_NAME.
3459 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3460 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3461 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3462 symbol_file_add_from_bfd call.
3463 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3464 (macho_check_dsym): Add parameter filenamep. Change function comment.
3465 Set *filenamep.
3466 (macho_symfile_read): New variable dsym_filename. Update
3467 macho_check_dsym call. Use it for symbol_file_add_separate.
3468 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3469 it. Use it for objfile->original_name.
3470 (objfile_name): Return OBFD's filename, if available.
3471 * objfiles.h (allocate_objfile): Add new parameter name.
3472 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3473 * symfile-mem.c (symbol_file_add_from_memory): Update
3474 symbol_file_add_from_bfd call.
3475 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3476 comment for it.
3477 (symbol_file_add_with_addrs): New parameter name, add function comment
3478 for it. Remove variable name. Update allocate_objfile call.
3479 (symbol_file_add_separate): New parameter name, add function comment
3480 for it. Update symbol_file_add_with_addrs call.
3481 (symbol_file_add_from_bfd): New parameter name. Update
3482 symbol_file_add_with_addrs call.
3483 (symbol_file_add): Update symbol_file_add_from_bfd call.
3484 (reread_symbols): New variable original_name. Save
3485 objfile->original_name by it.
3486 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3487 second parameter.
3488
3489 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3490
3491 Code cleanup: Add objfile_name accessor function.
3492 * ada-lang.c (is_known_support_routine): Use objfile_name.
3493 * auto-load.c (source_gdb_script_for_objfile)
3494 (auto_load_objfile_script): Likewise.
3495 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3496 * dbxread.c (dbx_symfile_read): Likewise.
3497 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3498 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3499 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3500 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3501 (lookup_dwp_signatured_type, lookup_dwo_unit)
3502 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3503 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3504 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3505 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3506 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3507 (read_subrange_type, load_partial_dies, read_partial_die)
3508 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3509 (die_containing_type, build_error_marker_type, lookup_die_type)
3510 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3511 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3512 (get_DW_AT_signature_type, write_psymtabs_to_index)
3513 (save_gdb_index_command): Likewise.
3514 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3515 Likewise.
3516 * expprint.c (dump_subexp_body_standard): Likewise.
3517 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3518 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3519 original_name.
3520 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3521 obj_name, use objfile_name for it, use the variable.
3522 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3523 Use objfile_name.
3524 * machoread.c (macho_symtab_read, macho_check_dsym)
3525 (macho_symfile_relocate): Likewise.
3526 * maint.c (maintenance_translate_address): Likewise.
3527 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3528 * minsyms.c (install_minimal_symbols): Likewise.
3529 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3530 original_name.
3531 (filter_overlapping_sections): Use objfile_name.
3532 (objfile_name): New function.
3533 * objfiles.h (struct objfile): Rename field name to original_name.
3534 (objfile_name): New prototype.
3535 * printcmd.c (sym_info, address_info): Use objfile_name.
3536 * probe.c (parse_probes, collect_probes, compare_probes)
3537 (info_probes_for_ops): Likewise.
3538 * progspace.c (clone_program_space): Likewise.
3539 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3540 (maintenance_info_psymtabs): Likewise.
3541 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3542 (source_section_scripts): Likewise.
3543 * python/py-objfile.c (objfpy_get_filename): Likewise.
3544 * python/py-progspace.c (pspy_get_filename): Likewise.
3545 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3546 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3547 * solib.c (solib_read_symbols): Likewise.
3548 * stabsread.c (scan_file_globals): Likewise.
3549 * stap-probe.c (handle_stap_probe): Likewise.
3550 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3551 (find_separate_debug_file_by_debuglink): Likewise.
3552 (reread_symbols): Likewise. Use the objfile field name renamed to
3553 original_name.
3554 (allocate_symtab): Use objfile_name.
3555 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3556 (dump_objfile, dump_msymbols, dump_symtab_1)
3557 (maintenance_print_msymbols, maintenance_print_objfiles)
3558 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3559 * target.c (target_translate_tls_address, target_info): Likewise.
3560 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3561 objfile_name.
3562
3563 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3564
3565 Code cleanup.
3566 * probe.c (parse_probes): Rename variable objfile_name to
3567 objfile_namestr.
3568
3569 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3570
3571 Remove solib-sunos.c.
3572 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3573 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3574 * objfiles.c (rt_common_objfile): Remove.
3575 (free_objfile): Remove rt_common_objfile comparison.
3576 * objfiles.h (rt_common_objfile): Remove.
3577 * solib-sunos.c: Remove.
3578 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3579
3580 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3581
3582 Remove a.out NetBSD and OpenBSD hosts.
3583 * NEWS (Removed native configurations): New.
3584 * config/arm/nbsdaout.mh: Remove.
3585 * config/i386/nbsdaout.mh: Remove.
3586 * config/i386/obsdaout.mh: Remove.
3587 * config/m68k/nbsdaout.mh: Remove.
3588 * config/sparc/nbsdaout.mh: Remove.
3589 * config/vax/nbsdaout.mh: Remove.
3590 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3591 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3592 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3593 error.
3594 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3595 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3596 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3597
3598 2013-09-23 Tom Tromey <tromey@redhat.com>
3599
3600 * linespec.c (struct minsym_and_objfile): Remove.
3601 (minsym_and_objfile_d): Remove.
3602 (struct linespec, struct collect_info, linespec_parse_basic)
3603 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3604 (compare_msymbols, find_method, find_function_symbols)
3605 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3606 (add_minsym, search_minsyms_for_name): Update.
3607
3608 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3609
3610 * regcache.c: Add include of valprint.h.
3611 (dump_endian_bytes): Delete.
3612 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3613
3614 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3615
3616 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3617
3618 2013-09-19 Pedro Alves <palves@redhat.com>
3619
3620 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3621 breakpoints.
3622
3623 2013-09-19 Pedro Alves <palves@redhat.com>
3624 Thomas Schwinge <thomas@codesourcery.com>
3625 Yue Lu <hacklu.newborn@gmail.com>
3626
3627 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3628 Take a gdb_byte pointer instead of a char pointer.
3629
3630 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3631 gnu_xfer_partial helper.
3632 (gnu_xfer_partial): New function.
3633 (gnu_target): Don't install a deprecated_xfer_memory hook.
3634 Install a to_xfer_partial hook.
3635
3636 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 Constification.
3639 * main.c (captured_main): Replace catch_command_errors by
3640 catch_command_errors_const. Twice.
3641 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3642 (symbol_file_add): Make name parameter const.
3643 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3644 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3645 variable name. Change their usage accordingly.
3646 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3647 const.
3648 (symbol_file_add_main): Make args parameter const.
3649
3650 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3651 Ulrich Weigand <uweigand@de.ibm.com>
3652
3653 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3654 of c_value member.
3655 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3656
3657 2013-09-18 Pedro Alves <palves@redhat.com>
3658 Yue Lu <hacklu.newborn@gmail.com>
3659
3660 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3661 (gnu_create_inferior)
3662 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3663 (set_sig_thread_cmd): Use the lwpid field of ptids to
3664 store/extract thread ids instead of the tid field.
3665 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3666
3667 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3668
3669 * infcmd.c (default_print_one_register_info): Add detection of
3670 optimized out values.
3671 (default_print_registers_info): Switch to using
3672 get_frame_register_value.
3673
3674 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3675
3676 * infrun.c (handle_inferior_event): Check if we know the
3677 function start address before setting a resume breakpoint.
3678
3679 2013-09-18 Pedro Alves <palves@redhat.com>
3680
3681 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3682 minus_one_ptid instead of looking at the ptid's tid field and
3683 comparing that to -1.
3684
3685 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3686
3687 * main.h (get_gdb_program_name): Remove extra whitespace.
3688
3689 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3690
3691 * main.h (get_gdb_program_name): Add declaration.
3692 * main.c (get_gdb_program_name): Add definition.
3693
3694 2013-09-17 Doug Evans <dje@google.com>
3695
3696 * dwarf2read.c: Move definitions of complaint functions to after
3697 forward declarations of local functions.
3698
3699 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3700 Pedro Alves <palves@redhat.com>
3701
3702 PR gdb/11568
3703 * breakpoint.c (remove_threaded_breakpoints): New function.
3704 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3705 as thread_exit observer.
3706
3707 2013-09-17 Pedro Alves <palves@redhat.com>
3708
3709 PR gdb/15911
3710 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3711 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3712 * corelow.c (core_open):
3713 * frame.h (print_stack_frame, print_frame_info): New
3714 'set_current_sal' parameter.
3715 * infcmd.c (finish_command, kill_command): Adjust call to
3716 print_stack_frame.
3717 * inferior.c (inferior_command): Likewise.
3718 * infrun.c (normal_stop): Likewise.
3719 * linux-fork.c (linux_fork_context): Likewise.
3720 * record-full.c (record_full_goto_entry, record_full_restore):
3721 Likewise.
3722 * remote-mips.c (common_open): Likewise.
3723 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3724 Use it.
3725 (print_frame_info): New 'set_current_sal' parameter. Set the last
3726 displayed sal depending on the new paremeter instead of looking at
3727 print_what.
3728 (backtrace_command_1, select_and_print_frame, frame_command)
3729 (current_frame_command, up_command, down_command): Adjust call to
3730 print_stack_frame.
3731 * thread.c (print_thread_info, restore_selected_frame)
3732 (do_captured_thread_select): Adjust call to print_stack_frame.
3733 * tracepoint.c (tfind_1): Likewise.
3734 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3735 (mi_cmd_stack_info_frame): Likewise.
3736 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3737 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3738
3739 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3740
3741 * value.c (isvoid_internal_fn): Replace "parameter" with
3742 "argument".
3743
3744 2013-09-16 Stan Shebs <stan@codesourcery.com>
3745
3746 * README: Update references to writing code for GDB.
3747 * configure.ac (build_warnings): Remove obsolete comment.
3748 * configure: Regenerate.
3749 * gdbarch.sh: Remove references to gdbint.texinfo.
3750 * gdbarch.h: Regenerate.
3751 * gdbtypes.c (objfile_type): Remove comments referencing internals
3752 manual and D10V.
3753
3754 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3755
3756 * NEWS: Mention new convenience function $_isvoid.
3757 * value.c (isvoid_internal_fn): New function.
3758 (_initialize_values): Add new convenience function $_isvoid.
3759
3760 2013-09-16 Pierre Muller <muller@sourceware.org>
3761
3762 * arm-linux-tdep.c: Add "elf/common.h" header.
3763 Remove AT_HWCAP macro definintion as it is provided in
3764 added include file.
3765 * s390-tdep.c: Remove system header <elf.h>
3766 Add "elf/common.h" header for AT_HWCAP definition.
3767 (s390_core_read_description): Use correct CORE_ADDR
3768 for hwcap local variable used as third parameter
3769 of function target_auxv_search.
3770
3771 2013-09-14 Pierre Muller <muller@sourceware.org>
3772 Tom Tromey <tromey@redhat.com>
3773 Pedro Alves <palves@redhat.com>
3774
3775 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3776 mode if operating system doesn't know O_CLOEXEC.
3777
3778 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Code cleanup.
3781 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3782 inner block.
3783
3784 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3785
3786 * NEWS: Mention TDB support.
3787 * features/s390-tdb.xml: New file.
3788 * features/s390-te-linux64.xml: New file.
3789 * features/s390x-te-linux64.xml: New file.
3790 * features/Makefile (WHICH): Add new tdescs above.
3791 (s390-te-linux64-expedite): Set.
3792 (s390x-te-linux64-expedite): Set.
3793 * features/s390-te-linux64.c: New file (generated).
3794 * features/s390x-te-linux64.c: New file (generated).
3795 * regformats/s390-te-linux64.dat: New file (generated).
3796 * regformats/s390x-te-linux64.dat: New file (generated).
3797 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3798 (HWCAP_S390_TE): Likewise.
3799 (S390_TDB_DWORD0_REGNUM): Likewise.
3800 (S390_TDB_DWORD0_REGNUM): Likewise.
3801 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3802 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3803 (S390_TDB_ATIA_REGNUM): Likewise.
3804 (S390_TDB_R0_REGNUM): Likewise.
3805 (S390_TDB_R1_REGNUM): Likewise.
3806 (S390_TDB_R2_REGNUM): Likewise.
3807 (S390_TDB_R3_REGNUM): Likewise.
3808 (S390_TDB_R4_REGNUM): Likewise.
3809 (S390_TDB_R5_REGNUM): Likewise.
3810 (S390_TDB_R6_REGNUM): Likewise.
3811 (S390_TDB_R7_REGNUM): Likewise.
3812 (S390_TDB_R8_REGNUM): Likewise.
3813 (S390_TDB_R9_REGNUM): Likewise.
3814 (S390_TDB_R10_REGNUM): Likewise.
3815 (S390_TDB_R11_REGNUM): Likewise.
3816 (S390_TDB_R12_REGNUM): Likewise.
3817 (S390_TDB_R13_REGNUM): Likewise.
3818 (S390_TDB_R14_REGNUM): Likewise.
3819 (S390_TDB_R15_REGNUM): Likewise.
3820 (S390_NUM_REGS): Increase.
3821 (S390_IS_TDBREGSET_REGNUM): New macro.
3822 (s390_regmap_tdb): Declare.
3823 (s390_sizeof_tdbregset): Define.
3824 (tdesc_s390_te_linux64): Declare.
3825 (tdesc_s390x_te_linux64): Likewise.
3826 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3827 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3828 (s390_regmap_tdb): New regmap.
3829 (s390_supply_tdb_regset): New function.
3830 (s390_tdb_regset): New regset.
3831 (s390_linux64v2_regset_sections): Add TDB regset to list.
3832 (s390x_linux64v2_regset_sections): Likewise.
3833 (s390_regset_from_core_section): Recognize TDB core note section.
3834 (s390_core_read_description): If HWCAP indicates TE support,
3835 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3836 (s390_gdbarch_init): Handle TDB regset.
3837 (_initialize_s390_tdep): Initialize new tdescs.
3838 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3839 (have_regset_tdb): New variable.
3840 (s390_native_supply): Support register invalidation.
3841 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3842 (check_regset): Treat ENODATA as "regset exists".
3843 (s390_linux_fetch_inferior_registers): Add TDB.
3844 (s390_read_description): Check for TDB existence and select
3845 appropriate tdesc.
3846 * gdbserver/Makefile.in (clean): Add removal of new makefile
3847 targets.
3848 (s390-te-linux64.c): New makefile target.
3849 (s390x-te-linux64.c): Likewise.
3850 * gdbserver/configure.srv (srv_regobj): Append new objects
3851 s390-te-linux64.o and s390x-te-linux64.o.
3852 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3853 s390x-te-linux64.xml, and s390-tdb.xml.
3854 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3855 declaration.
3856 (tdesc_s390_te_linux64): Likewise.
3857 (init_registers_s390x_te_linux64): Likewise.
3858 (tdesc_s390x_te_linux64): Likewise.
3859 (s390_check_regset): Treat ENODATA as "regset exists".
3860 (s390_arch_setup): Add TDB regset support.
3861 (initialize_low_arch): Initialize registers for new tdescs.
3862
3863 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3864
3865 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3866 (S390_IS_FPREGSET_REGNUM): New macro.
3867 * s390-tdep.c (s390_dwarf_regmap): Make const.
3868 (regnum_is_gpr_full): New function for replacing repeated code.
3869 (s390_pseudo_register_name): Use it.
3870 (s390_pseudo_register_type): Likewise.
3871 (s390_pseudo_register_read): Likewise.
3872 (s390_pseudo_register_write): Likewise.
3873 (s390_unwind_pseudo_register): Likewise.
3874 (s390_regmap_gregset): New format for regmap.
3875 (s390x_regmap_gregset): Likewise.
3876 (s390_regmap_fpregset): Likewise.
3877 (s390_regmap_upper): Likewise.
3878 (s390_regmap_last_break): Likewise.
3879 (s390_regmap_system_call): Likewise.
3880 (s390_supply_regset): Adjust to new regmap format.
3881 (s390_collect_regset): Likewise.
3882 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3883 (s390_native_collect): Likewise.
3884 (supply_gregset): Likewise.
3885 (fill_gregset): Likewise.
3886 (supply_fpregset): Likewise.
3887 (fill_fpregset): Likewise.
3888 (fetch_regset): Likewise.
3889 (store_regset): Likewise.
3890 (s390_linux_fetch_inferior_registers): Likewise.
3891 (s390_linux_fetch_inferior_registers): Likewise.
3892
3893 2013-09-12 Andrew Pinski <apinski@cavium.com>
3894
3895 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3896
3897 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3898
3899 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3900
3901 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3902
3903 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3904
3905 2013-09-06 Pedro Alves <palves@redhat.com>
3906
3907 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3908 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3909 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3910 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3911 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3912 gdb_stdlog.
3913
3914 2013-09-06 Pedro Alves <palves@redhat.com>
3915
3916 * remote-sim.c (dump_mem): Constify buf parameter.
3917 gdbsim_xfer_inferior_memory): Rename to ...
3918 (gdbsim_xfer_memory): ... this. Adjust interface as
3919 target_xfer_partial helper.
3920 (gdbsim_xfer_partial): New function.
3921 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3922 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3923
3924 2013-09-06 Pedro Alves <palves@redhat.com>
3925
3926 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3927 host_address_to_string, and send debug output to gdb_stdlog.
3928
3929 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3930
3931 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3932 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3933 gdb_target_obs for cris target.
3934 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3935 (cris_gdbarch_init): Move calls to
3936 set_gdbarch_fetch_tls_load_module_address and
3937 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3938 Add call to gdbarch_init_osabi.
3939 * cris-linux-tdep.c: New file.
3940 * cris-tdep.h: New file.
3941
3942 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3943
3944 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3945 to deprecated_init_ui_hook.
3946
3947 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3948
3949 * cli/cli-interp.c (_initialize_cli_interp): Add a
3950 command_loop_proc to interp_procs.
3951 * event-top.c (cli_command_loop): Change signature to match
3952 interp_command_loop_ftype.
3953 * event-top.h (cli_command_loop): Same.
3954 * interps.c (interp_new): Require every interpreter to have a
3955 command_loop_proc.
3956 (current_interp_command_loop): Just call the command_loop_proc on
3957 the current interpreter.
3958 * tui/tui-interp.c (_initialize_tui_interp): Add a
3959 command_loop_proc to interp_procs.
3960
3961 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3962
3963 * cris-tdep.c (cris_gdbarch_init): Add call to
3964 get_gdbarch_fetch_tls_load_module_address.
3965
3966 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3967
3968 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3969 (cris_elf_gregset_t): Rename from elf_gregset_t.
3970 (crisv32_elf_gregset_t): Adjust.
3971 (cris_supply_gregset, fetch_core_registers): Adjust.
3972
3973 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3974
3975 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3976
3977 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3978
3979 * defs.h (deprecated_command_loop_hook): Remove, including
3980 references in comments.
3981 * interps.c (current_interp_command_loop): No longer use
3982 deprecated_command_loop_hook.
3983 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3984 setup.
3985 * top.c (deprecated_command_loop_hook): Remove.
3986
3987 2013-09-05 Pedro Alves <palves@redhat.com>
3988
3989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3990 local is now int instead of ULONGEST. Print it with %d
3991 instead of paddress.
3992
3993 2013-09-05 Tristan Gingold <gingold@adacore.com>
3994
3995 * MAINTAINERS: Remove avr maintainership.
3996
3997 2013-09-05 Pedro Alves <palves@redhat.com>
3998
3999 * findvar.c (value_of_register): Rework in terms of
4000 value_of_register_lazy.
4001
4002 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4003
4004 * symfile.c (add_symbol_file_command): Remove trailing
4005 whitespaces and blank line after comment.
4006
4007 2013-09-05 Pedro Alves <palves@redhat.com>
4008
4009 * tui/tui-regs.c (tui_register_format): Don't look at the
4010 register's name here. Return string representing register
4011 value instead of storing it in the data element.
4012 (tui_get_register): Compare register string representations
4013 instead of register value states and contents.
4014
4015 2013-09-05 Pedro Alves <palves@redhat.com>
4016
4017 PR tui/15933
4018 * tui/tui-regs.c (tui_show_registers): Show registers of the
4019 selected frame, not the current frame.
4020
4021 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4022
4023 * MAINTAINERS (Write After Approval): Add myself to the list.
4024
4025 2013-09-04 Doug Evans <dje@google.com>
4026
4027 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4028 (queue_and_load_dwo_tu): New function.
4029 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4030 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4031 Make dependent_cu optional.
4032 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4033 and an older .gdb_index is in use, queue and load all its TUs too.
4034
4035 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4038 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4039 variable search_flags.
4040 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4041 (OPF_RETURN_REALPATH): ... here.
4042 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4043 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4044 call. Twice.
4045 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4046 openp call.
4047 * solib.c (solib_find): Likewise. Four times.
4048 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4049 in the function comment and for the realpath_fptr variable.
4050 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4051 (find_and_open_source): Likewise. Twice.
4052 * symfile.c (symfile_bfd_open): Likewise, also twice.
4053
4054 2013-09-04 Doug Evans <dje@google.com>
4055
4056 * progspace.c (save_current_space_and_thread): Remove unnecessary
4057 call to save_current_inferior.
4058
4059 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4060
4061 * sh64-tdep.c (sh64_do_register): Return after printing message
4062 about unavailable register contents.
4063
4064 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4065 Pedro Alves <palves@redhat.com>
4066
4067 * symfile.c (add_symbol_file_command): Error out on unknown
4068 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4069 options and collapse into single conditional branch.
4070
4071 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4072
4073 * inf-child.c (inf_child_follow_fork): New parameter
4074 detach_fork.
4075 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4076 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4077 * inferior.h (detach_fork): Remove.
4078 * infrun.c (detach_fork): Adjust comment and make it
4079 static.
4080 (follow_fork): Pass detach_fork parameter to
4081 target_follow_fork.
4082 * linux-nat.c (linux_child_follow_fork): New parameter
4083 detach_fork.
4084 * target.c (target_follow_fork): New parameter detach_fork.
4085 Pass detach_fork as parameter and print its value.
4086 * target.h (struct target_ops) <to_follow_fork>: New int
4087 parameter.
4088 (target_follow_fork): New parameter detach_fork.
4089
4090 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4091
4092 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4093 Replace sec->bfd by sec->the_bfd_section->owner.
4094
4095 2013-09-03 Yao Qi <yao@codesourcery.com>
4096
4097 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4098 from linux_has_shared_address_space.
4099 (linux_has_shared_address_space): Call linux_is_uclinux.
4100 * linux-tdep.h (linux_is_uclinux): Declare.
4101 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4102 linux_is_uclinux.
4103
4104 2013-09-03 Yao Qi <yao@codesourcery.com>
4105
4106 * config/djgpp/fnchange.lst: Remove entry of
4107 i386-interix-nat.c and i386-interix-tdep.c.
4108 * configure.ac: Remove '*-*-interix*'.
4109 * configure: Re-generated.
4110 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4111 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4112 obsolete comments.
4113 * osabi.c (gdb_osabi_names): Remove "Interix".
4114
4115 2013-09-03 Yao Qi <yao@codesourcery.com>
4116
4117 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4118
4119 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4120
4121 * record.h (record_print_flag) <record_print_src_line,
4122 record_print_insn_range>: Rename into ...
4123 (record_print_flag) <record_print_src_line,
4124 record_print_insn_range>: ... this. Update all users.
4125
4126 2013-09-02 Pierre Muller <muller@sourceware.org>
4127
4128 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4129 error code.
4130
4131 2013-09-02 Pierre Muller <muller@sourceware.org>
4132
4133 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4134 by use of plongest function.
4135
4136 2013-09-02 Tristan Gingold <gingold@adacore.com>
4137
4138 * NEWS: Add entry mentioning support for native Windows x64
4139 SEH data.
4140
4141 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4142 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4143 (struct amd64_windows_frame_cache): New struct.
4144 (amd64_windows_w2gdb_regnum): New global.
4145 (pc_in_range, amd64_windows_frame_decode_epilogue)
4146 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4147 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4148 (amd64_windows_frame_this_id): New functions.
4149 (amd64_windows_frame_unwind): New static global.
4150 (amd64_windows_skip_prologue): New function.
4151 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4152 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4153 with amd64_windows_skip_prologue.
4154
4155 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4156
4157 GDB 7.6.1 released.
4158
4159 2013-08-30 Pedro Alves <palves@redhat.com>
4160
4161 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4162 SRC_AND_LOC.
4163
4164 2013-08-30 Pedro Alves <palves@redhat.com>
4165
4166 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4167 warning text.
4168
4169 2013-08-30 Pedro Alves <palves@redhat.com>
4170
4171 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4172 Adjust arguments to print_stack_frame.
4173
4174 2013-08-30 Pedro Alves <palves@redhat.com>
4175
4176 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4177
4178 2013-08-30 Pedro Alves <palves@redhat.com>
4179
4180 * frame.h (show_and_print_stack_frame): Delete declaration.
4181
4182 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4183
4184 PR python/15461
4185 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4186 (archpy_name): Check for valid architecture.
4187 (archpy_disassemble): Ditto.
4188
4189 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4190
4191 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4192 instead of "long long" in call to ptrace64.
4193
4194 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4195
4196 * mi/mi-interp.c (mi_command_loop): Change signature to match
4197 interp_command_loop_ftype.
4198 (mi1_command_loop): Remove.
4199 (mi2_command_loop): Remove.
4200 (mi3_command_loop): Remove.
4201 (mi_interpreter_resume): Remove setting of
4202 deprecated_command_loop_hook.
4203 (_initialize_mi_interp): Set mi_command_loop as the command loop
4204 callback.
4205
4206 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4207
4208 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4209 value_type.
4210
4211 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4212
4213 * value.c (allocate_value_contents): Make static.
4214 * value.h (allocate_value_contents): Remove prototype.
4215
4216 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4217
4218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4219 of assembling value via allocate_value_lazy and attribute setter.
4220 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4221 assembling value via allocate_value_lazy and attribute setter.
4222 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4223 assembling value via allocate_value_lazy and attribute setter.
4224
4225 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4226
4227 * value.c (value_from_contents_and_address): Replace allocate_value and
4228 memcpy with value_from_contents.
4229
4230 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4231
4232 * python/py-framefilter.c (py_print_frame): Remove usage of
4233 PyString_AsString. Use python_string_to_host_string instead.
4234 Refactor function to work with a string as a new allocation
4235 instead of a pointer.
4236 (py_print_frame): Ditto.
4237 * python/lib/gdb/frames.py (return_list): Cain iterators together
4238 instead of adding them as a list.
4239 (_sort_list): Call return_list, and remove duplicate code.
4240 (execute_frame_filters): Convert iterator to a list with list().
4241 * python/lib/gdb/command/frame_filters.py
4242 (SetFrameFilterPriority._set_filter_priority): Convert priority
4243 attribute to an integer.
4244 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4245 wrapper function __next__.
4246 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4247 define as "str".
4248
4249 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4250
4251 PR python/15752
4252 * python/py-framefilter.c (apply_frame_filter): Check
4253 gdb_python_initialized. Exit if the Python frame-filter code
4254 cannot be initialized.
4255
4256 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4257
4258 PR cli/15842
4259 * top.c (print_gdb_version): Remove erroneous newline after help
4260 text.
4261
4262 2013-08-29 Yao Qi <yao@codesourcery.com>
4263
4264 * varobj.c (install_dynamic_child): Remove trailing space.
4265 Add one blank line after variable declaration.
4266
4267 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4268
4269 PR gdb/15415
4270 * corefile.c (get_exec_file): Use exec_filename.
4271 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4272 * exec.c (exec_close): Free EXEC_FILENAME.
4273 (exec_file_attach): New variable canonical_pathname. Use
4274 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4275 EXEC_FILENAME.
4276 * exec.h (exec_filename): New.
4277 * inferior.c (print_inferior, inferior_command): Use
4278 PSPACE_EXEC_FILENAME.
4279 * mi/mi-main.c (print_one_inferior): Likewise.
4280 * progspace.c (clone_program_space, print_program_space): Likewise.
4281 * progspace.h (struct program_space): New field pspace_exec_filename.
4282 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4283 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4284
4285 2013-08-28 Will Newton <will.newton@linaro.org>
4286
4287 * common/linux-ptrace.c: Include stdint.h unconditionally.
4288
4289 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4290
4291 Code cleanup.
4292 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4293
4294 2013-08-28 Yao Qi <yao@codesourcery.com>
4295 Pedro Alves <palves@redhat.com>
4296
4297 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4298 instead of stdio_fileopen.
4299 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4300 .Call stderr_fileopen instead of stdio_fileopen.
4301 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4302 [__MINGW32__] (stderr_file_fputs): New function.
4303 (stderr_fileopen): New function.
4304 * ui-file.h (stderr_fileopen): Declare.
4305
4306 2013-08-27 Doug Evans <dje@google.com>
4307
4308 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4309 (struct dwarf2_per_cu_data): Ditto.
4310 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4311 (process_imported_unit_die): Ditto.
4312 (follow_die_sig_1): Simplify assert.
4313
4314 2013-08-27 Pedro Alves <palves@redhat.com>
4315
4316 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4317 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4318 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4319 windows_xfer_memory directly.
4320 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4321
4322 2013-08-27 Pedro Alves <palves@redhat.com>
4323
4324 * darwin-nat.c (darwin_xfer_memory): Delete.
4325 (_initialize_darwin_inferior): Don't install a
4326 deprecated_xfer_memory method.
4327
4328 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4329 Yao Qi <yao@codesourcery.com>
4330
4331 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4332 (parse_no_frames_option): Remove.
4333 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4334 (mi_cmd_stack_list_args): Adjust.
4335 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4336 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4337 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4338 Caller update.
4339 (list_args_or_locals): New parameter 'skip_unavailable'.
4340 Handle it.
4341 * valprint.c (scalar_type_p): Rename to ...
4342 (val_print_scalar_type_p): ... this. Make extern.
4343 (val_print, value_check_printable): Adjust.
4344 * valprint.h (val_print_scalar_type_p): Declare.
4345 * value.c (value_entirely_unavailable): New function.
4346 * value.h (value_entirely_unavailable): Declare.
4347
4348 * NEWS: Mention the new option "--skip-unavailable" to MI
4349 commands '-stack-list-locals', '-stack-list-arguments' and
4350 '-stack-list-variables'.
4351
4352 2013-08-27 Yao Qi <yao@codesourcery.com>
4353
4354 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4355 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4356 options.
4357 * mi/mi-getopt.c (mi_getopt): Remove.
4358 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4359 'error_on_unknown'.
4360 (mi_getopt): Call mi_getopt_1.
4361 (mi_getopt_silent): New.
4362 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4363
4364 2013-08-26 Doug Evans <dje@google.com>
4365
4366 PR symtab/15885
4367 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4368 .gdb_index is in use.
4369 * symfile.c (reread_symbols): Reset objfile->sf.
4370
4371 * NEWS: Document "mt print objfiles" now takes optional regexp.
4372 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4373 regexp of objfiles to print.
4374 (_initialize_symmisc): Update doc string for "mt print objfiles".
4375
4376 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4377 missing debug info checks.
4378
4379 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4380 Ulrich Weigand <uweigand@de.ibm.com>
4381
4382 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4383 line tables generated by XLC compiled binaries.
4384
4385 2013-08-23 Doug Evans <dje@google.com>
4386
4387 * symmisc.c (dump_symtab): Delete prototype.
4388 (dump_msymbols, dump_objfile): Ditto.
4389 (maintenance_info_symtabs): Mark as dont_repeat.
4390 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4391
4392 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4393 debugging printf to better location.
4394
4395 2013-08-23 Pedro Alves <palves@redhat.com>
4396
4397 * target.c (target_read_live_memory): Change type of 'ret' local
4398 to LONGEST.
4399
4400 2013-08-23 Pedro Alves <palves@redhat.com>
4401
4402 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4403 (remote_read_bytes): Change return type to LONGEST, and adjust to
4404 return a target_xfer_error on error.
4405 (remote_xfer_memory): Delete.
4406 (remote_flash_write): Change type of 'ret' local to LONGEST.
4407 (remote_xfer_partial, remote_xfer_partial): Adjust.
4408 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4409
4410 2013-08-23 Pierre Muller <muller@sourceware.org>
4411
4412 ARI fix: Push # directives to start of line.
4413 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4414
4415 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4416
4417 PR gdb/15501
4418 * breakpoint.c (enable_command, disable_command): Iterate over
4419 all specified breakpoint locations.
4420
4421 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4422
4423 * common/linux-ptrace.c (linux_fork_to_function): Push #
4424 directives to the start of the line.
4425 (linux_check_ptrace_features): Fix warning message to use
4426 the "_" markup.
4427
4428 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4429
4430 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4431 nat/linux-waitpid.h.
4432 (linux-waitpid.o): New object file rule.
4433 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4434 (current_ptrace_options): Moved from linux-nat.c.
4435 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4436 parameters.
4437 (linux_fork_to_function): New function.
4438 (linux_grandchild_function): Likewise.
4439 (linux_child_function): Likewise.
4440 (linux_check_ptrace_features): New function, heavily
4441 based on linux-nat.c:linux_test_for_tracefork.
4442 (linux_enable_event_reporting): New function.
4443 (ptrace_supports_feature): Likewise.
4444 (linux_supports_tracefork): Likewise.
4445 (linux_supports_traceclone): Likewise.
4446 (linux_supports_tracevforkdone): Likewise.
4447 (linux_supports_tracesysgood): Likewise.
4448 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4449 gdbserver/linux-low.c.
4450 (linux_enable_event_reporting): New declaration.
4451 (linux_supports_tracefork): Likewise.
4452 (linux_supports_traceclone): Likewise.
4453 (linux_supports_tracevforkdone): Likewise.
4454 (linux_supports_tracesysgood): Likewise.
4455 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4456 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4457 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4458 * config/arm/linux.mh (NATDEPFILES): Likewise.
4459 * config/i386/linux.mh (NATDEPFILES): Likewise.
4460 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4461 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4462 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4463 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4464 * config/mips/linux.mh (NATDEPFILES): Likewise.
4465 * config/pa/linux.mh (NATDEPFILES): Likewise..
4466 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4467 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4468 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4469 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4470 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4471 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4472 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4473 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4474 ptrace's 4th argument's types.
4475 Check the type of PTRACE_TYPE_ARG4.
4476 * configure: Regenerate.
4477 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4478 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4479 (linux_supports_tracefork_flag): Remove.
4480 (linux_supports_tracesysgood_flag): Likewise.
4481 (linux_supports_tracevforkdone_flag): Likewise.
4482 (current_ptrace_options): Moved to
4483 common/linux-ptrace.c.
4484 (linux_tracefork_child): Remove.
4485 (my_waitpid): Remove.
4486 (linux_test_for_tracefork): Renamed to
4487 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4488 (linux_test_for_tracesysgood): Remove.
4489 (linux_supports_tracesysgood): Remove.
4490 (linux_supports_tracefork): Remove.
4491 (linux_supports_tracevforkdone): Remove.
4492 (linux_enable_tracesysgood): Remove.
4493 (linux_enable_event_reporting): Remove.
4494 (linux_init_ptrace): New function.
4495 (linux_child_post_attach): Call linux_init_ptrace.
4496 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4497 (linux_child_follow_fork): Call linux_supports_tracefork
4498 and linux_supports_tracevforkdone.
4499 (linux_child_insert_fork_catchpoint): Call
4500 linux_supports_tracefork.
4501 (linux_child_insert_vfork_catchpoint): Likewise.
4502 (linux_child_set_syscall_catchpoint): Call
4503 linux_supports_tracesysgood.
4504 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4505 * nat/linux-nat.h: New file.
4506 * nat/linux-waitpid.c: New file.
4507 * nat/linux-waitpid.h: New file.
4508
4509 2013-08-22 Samuel Bronson <naesten@gmail.com>
4510
4511 ARM Linux support for `catch syscall'.
4512 * syscalls/arm-linux.py: New file.
4513 * syscalls/arm-linux.xml: Likewise.
4514 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4515 (arm_linux_init_abi): Register the new function and syscall xml file.
4516 * data-directory/Makefile.in: Install the new syscall xml file.
4517 * NEWS: Brag about this.
4518
4519 2013-08-22 Pedro Alves <palves@redhat.com>
4520
4521 PR gdb/15871
4522 * corefile.c (target_xfer_memory_error): New function.
4523 (memory_error): Defer EIO to target_memory_error.
4524 (read_memory): Use target_xfer_partial, and handle finer-grained
4525 target xfer errors.
4526 * target.c (target_xfer_error_to_string): New function.
4527 (memory_xfer_partial_1): If memory is known to be
4528 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4529 (target_xfer_partial): Make extern.
4530 * target.h (enum target_xfer_error): New enum.
4531 (target_xfer_error_to_string): Declare function.
4532 (target_xfer_partial): Declare function.
4533 (struct target_ops) <xfer_partial>: Adjust describing comment.
4534
4535 2013-08-22 Alan Modra <amodra@gmail.com>
4536
4537 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4538 * configure.tgt: Likewise as targets.
4539
4540 2013-08-20 Doug Evans <dje@google.com>
4541
4542 * buildsym.c (subfile_stack): Move here from buildsym.h.
4543 (pending_macros): Ditto.
4544 (get_macro_table): New function.
4545 (buildsym_init): Initialize subfile_stack.
4546 * coffread.c (type_vector,type_vector_length): Moved here from
4547 buildsym.h.
4548 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4549 (coff_symtab_read): Use it.
4550 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4551 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4552 with call to get_macro_table.
4553 * stabsread.c (type_vector,type_vector_length): Moved here from
4554 buildsym.h.
4555 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4556 * buildsym.h (get_macro_table): Declare.
4557
4558 2013-08-20 Tom Tromey <tromey@redhat.com>
4559
4560 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4561 Update.
4562 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4563
4564 2013-08-20 Doug Evans <dje@google.com>
4565
4566 * blockframe.c: Remove #include "psymtab.h".
4567 * cp-support.c: Ditto.
4568 * source.c: Ditto.
4569 * stack.c: Ditto.
4570
4571 2013-08-20 Tom Tromey <tromey@redhat.com>
4572
4573 PR python/15816:
4574 * exceptions.h (return_mask): Now an enum.
4575 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4576 enum constants.
4577
4578 2013-08-20 Tom Tromey <tromey@redhat.com>
4579
4580 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4581 get_objfile_arch.
4582 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4583 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4584 * jit.c (jit_object_close_impl): Update.
4585 * jv-lang.c (get_dynamics_objfile): Update.
4586 * linespec.c (add_minsym): Use get_dynamics_objfile.
4587 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4588 (allocate_objfile): Don't initialize 'gdbarch' field.
4589 (get_objfile_arch): Update.
4590 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4591 moved from...
4592 (struct objfile) <gdbarch>: ... here. Remove.
4593 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4594 get_objfile_arch.
4595 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4596
4597 2013-08-20 Alan Modra <amodra@gmail.com>
4598
4599 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4600 for IBM long double nan and inf.
4601 (floatformat_is_negative, floatformat_classify,
4602 floatformat_mantissa): Similarly.
4603 (floatformat_ieee_single, floatformat_ieee_double,
4604 floatformat_ieee_quad, floatformat_arm_ext,
4605 floatformat_ia64_spill): Delete unused vars.
4606 (_initialize_doublest): Delete unused function.
4607 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4608 little-endian variants of floatformat_ibm_long_double.
4609
4610 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4611
4612 * Makefile.in (SFILES): Remove common/target-common.c and
4613 add target/waitstatus.c.
4614 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4615 target/resume.h, target/wait.h and target/waitstatus.h.
4616 (COMMON_OBS): Remove target-common.o and add
4617 waitstatus.o.
4618 (target-common.o): Remove.
4619 (waitstatus.o): New target object file.
4620 * common/target-common.c: Move contents to
4621 target/waitstatus.c and remove.
4622 * common/target-common.h: Move contents to other files and
4623 remove.
4624 (enum resume_kind: Move to target/resume.h.
4625 (TARGET_WNOHANG): Move to target/wait.h.
4626 (enum target_waitkind): Move to target/waitstatus.h.
4627 (struct target_waitstatus): Likewise.
4628 * target.h: Do not include target-common.h and
4629 include target/resume.h, target/wait.h and
4630 target/waitstatus.h.
4631 * target/resume.h: New file.
4632 * target/wait.h: New file.
4633 * target/waitstatus.h: New file.
4634 * target/waitstatus.c: New file.
4635
4636 2013-08-19 Pedro Alves <palves@redhat.com>
4637
4638 * linux-nat.c (linux_test_for_tracefork)
4639 (linux_test_for_tracesysgood, linux_child_follow_fork)
4640 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4641 (linux_nat_wait_1): Extend comment.
4642 (linux_async_pipe): Add comment.
4643
4644 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4645
4646 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4647 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4648 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4649 Update to account for fact that PC is now a pseudo-register.
4650 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4651 cases for RL78_PC_REGNUM.
4652
4653 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4654
4655 PR cli/15841
4656 * top.c (quit_force): Skip writing history file
4657 if input is not from terminal.
4658
4659 2013-08-14 Tom Tromey <tromey@redhat.com>
4660
4661 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4662 resultthreadlist>: New fields.
4663 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4664 (remote_get_threadlist, remote_threadlist_iterator): Use
4665 new fields. Remove static variables.
4666
4667 2013-08-14 Tom Tromey <tromey@redhat.com>
4668
4669 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4670 remote_watch_data_address>: New fields.
4671 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4672 (process_stop_reply, remote_wait_as)
4673 (remote_check_watch_resources, remote_stopped_data_address): Update.
4674
4675 2013-08-14 Tom Tromey <tromey@redhat.com>
4676
4677 * remote.c (struct remote_state) <async_client_callback,
4678 async_client_context>: New fields.
4679 (async_client_callback, async_client_context): Remove.
4680 (remote_async_serial_handler, remote_async): Update.
4681
4682 2013-08-14 Tom Tromey <tromey@redhat.com>
4683
4684 * remote.c (sizeof_pkt): Remove.
4685 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4686
4687 2013-08-14 Tom Tromey <tromey@redhat.com>
4688
4689 * remote.c (struct remote_state) <use_threadinfo_query,
4690 use_threadextra_query>: New fields.
4691 (remote_threads_info, remote_threads_extra_info)
4692 (remote_open_1): Update.
4693
4694 2013-08-14 Tom Tromey <tromey@redhat.com>
4695
4696 * remote.c (struct remote_state) <finished_object,
4697 finished_annex, finished_offset>: New fields.
4698 (remote_read_qxfer): Use remote_state fields; remove static
4699 variables.
4700
4701 2013-08-14 Tom Tromey <tromey@redhat.com>
4702
4703 * remote.c (struct remote_state) <last_sent_step>:
4704 New field.
4705 (last_sent_step): Remove.
4706 (remote_resume, remote_wait_as): Update.
4707
4708 2013-08-14 Tom Tromey <tromey@redhat.com>
4709
4710 * remote.c (struct remote_state) <last_sent_signal>:
4711 New field.
4712 (last_sent_signal): Remove.
4713 (new_remote_state, remote_resume, remote_wait_as): Update.
4714
4715 2013-08-14 Tom Tromey <tromey@redhat.com>
4716
4717 * remote.c (struct remote_state) <last_program_signals_packet>:
4718 New field.
4719 (last_program_signals_packet): Remove.
4720 (remote_program_signals, remote_open_1): Update.
4721
4722 2013-08-14 Tom Tromey <tromey@redhat.com>
4723
4724 * remote.c (struct remote_state) <last_pass_packet>:
4725 New field.
4726 (last_pass_packet): Remove.
4727 (remote_pass_signals, remote_open_1): Update.
4728
4729 2013-08-14 Tom Tromey <tromey@redhat.com>
4730
4731 * remote.c (struct remote_state) <remote_traceframe_number>:
4732 New field.
4733 (remote_traceframe_number): Remove.
4734 (new_remote_state, remote_open_1, set_remote_traceframe)
4735 (remote_trace_find): Update.
4736
4737 2013-08-14 Tom Tromey <tromey@redhat.com>
4738
4739 * remote.c (struct remote_state) <general_thread, continue_thread>:
4740 New fields.
4741 (general_thread, continue_thread): Remove.
4742 (record_currthread, set_thread, set_general_process)
4743 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4744 (extended_remote_mourn_1): Update.
4745
4746 2013-08-14 Tom Tromey <tromey@redhat.com>
4747
4748 * remote.c (struct remote_state) <remote_desc>: New field.
4749 (remote_desc): Remove.
4750 (remote_threads_info, remote_threads_extra_info, remote_close)
4751 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4752 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4753 (remote_hostio_send_command, remote_file_put, remote_file_get)
4754 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4755 (remote_async, remote_new_objfile, set_range_stepping): Update.
4756
4757 2013-08-14 Tom Tromey <tromey@redhat.com>
4758
4759 * remote.c (remote_state): Now a pointer.
4760 (get_remote_state_raw): Update.
4761 (new_remote_state): New function.
4762 (_initialize_remote): Use new_remote_state.
4763
4764 2013-08-14 Tom Tromey <tromey@redhat.com>
4765
4766 * remote.c (remote_protocol_features): Now const.
4767
4768 2013-08-14 Tom Tromey <tromey@redhat.com>
4769
4770 * remote.c (crc32_table, crc32): Remove.
4771 (remote_verify_memory): Use xcrc32.
4772
4773 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4774
4775 * value.h (create_internalvar_type_lazy): Adjust prototype
4776 declaration.
4777
4778 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4779
4780 * common/format.c (parse_format_string): Don't allow '#' flag for
4781 pointer arguments in format string.
4782
4783 2013-08-13 Pierre Muller <muller@sourceware.org>
4784
4785 * utils.c (init_page_info): Only call tgetnum function
4786 if rl_get_screen_size did not return useful values.
4787
4788 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4789
4790 PR breakpoints/15117
4791 * linespec.c (linespec_parse_basic): Check for convenience
4792 variable or history value while parsing.
4793
4794 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4795
4796 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4797 AVR.
4798 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4799 different signals between the generic Linux kernel implementation
4800 and AVR's.
4801 (avr_linux_gdb_signal_from_target): Delete.
4802 (avr_linux_gdb_signal_to_target): Delete.
4803 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4804
4805 2013-08-09 Doug Evans <dje@google.com>
4806
4807 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4808 entries.
4809
4810 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4811
4812 * linux-tdep.c: Define enum with generic signal numbers.
4813 (linux_gdb_signal_from_target): New function.
4814 (linux_gdb_signal_to_target): Likewise.
4815 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4816 methods to the functions above.
4817 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4818 (linux_gdb_signal_to_target): Likewise.
4819 * alpha-linux-tdep.c: Define new enum with signals different
4820 from generic Linux kernel.
4821 (alpha_linux_gdb_signal_from_target): New function.
4822 (alpha_linux_gdb_signal_to_target): Likewise.
4823 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4824 with the functions mentioned above.
4825 * avr-tdep.c: Define enum with differences between Linux kernel
4826 and AVR signals.
4827 (avr_linux_gdb_signal_from_target): New function.
4828 (avr_linux_gdb_signal_to_target): Likewise.
4829 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4830 the functions mentioned above.
4831 * sparc-linux-tdep.c: Define enum with differences between SPARC
4832 and generic Linux kernel signal numbers.
4833 (sparc32_linux_gdb_signal_from_target): New function.
4834 (sparc32_linux_gdb_signal_to_target): Likewise.
4835 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4836 to the functions defined above.
4837 * xtensa-linux-tdep.c: Define enum with differences between
4838 Xtensa and Linux kernel generic signals.
4839 (xtensa_linux_gdb_signal_from_target): New function.
4840 (xtensa_linux_gdb_signal_to_target): Likewise.
4841 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4842 to the functions defined above.
4843 * mips-linux-tdep.c: Define enum with differences between
4844 signals in MIPS and Linux kernel generic ones.
4845 (mips_gdb_signal_to_target): New function.
4846 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4847 only different signals from the Linux kernel generic.
4848 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4849 the functions defined above.
4850 * mips-linux-tdep.h (enum mips_signals): Remove.
4851
4852 2013-08-09 Pedro Alves <palves@redhat.com>
4853
4854 * avr-tdep.c (XMALLOC): Delete macro.
4855 * cli/cli-dump.c (XMALLOC): Delete macro.
4856
4857 2013-08-09 Pedro Alves <palves@redhat.com>
4858
4859 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4860 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4861 (fopen_with_cleanup, add_dump_command): Make static.
4862 * cli/cli-dump.h: Delete file.
4863 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4864 cli/cli-dump.h.
4865
4866 2013-08-09 Pedro Alves <palves@redhat.com>
4867
4868 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4869 error message.
4870
4871 2013-08-09 Pedro Alves <palves@redhat.com>
4872
4873 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4874 error message.
4875
4876 2013-08-09 Pedro Alves <palves@redhat.com>
4877
4878 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4879 (gcore_command): Use tilde_expand here, and when showing the
4880 filename to the user, show the expanded version.
4881
4882 2013-08-09 Yao Qi <yao@codesourcery.com>
4883
4884 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4885 'entryval' is set.
4886
4887 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4888
4889 * gcore.c (create_gcore_bfd): Use tilde_expand.
4890
4891 2013-08-08 Yao Qi <yao@codesourcery.com>
4892
4893 * frame.h (read_frame_local): Declare.
4894 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4895 read_frame_local.
4896 * stack.c (read_frame_local): New.
4897
4898 2013-08-08 Yao Qi <yao@codesourcery.com>
4899
4900 * mi/mi-cmd-stack.c: Update comments to function
4901 list_args_or_locals.
4902
4903 2013-08-07 Tom Tromey <tromey@redhat.com>
4904
4905 PR symtab/15028:
4906 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4907 (process_psymtab_comp_unit_reader): Use it.
4908 (process_psymtab_comp_unit): Update. Add "pretend_language"
4909 argument.
4910 (dwarf2_build_psymtabs_hard): Update.
4911 (scan_partial_symbols): Pass CU's language to
4912 process_psymtab_comp_unit.
4913
4914 2013-08-07 Tom Tromey <tromey@redhat.com>
4915
4916 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4917 (dwarf2_gdb_index_functions): Update.
4918 * psymtab.c (find_symbol_file_from_partial): Remove.
4919 (psym_functions): Update.
4920 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4921 Remove.
4922
4923 2013-08-07 Tom Tromey <tromey@redhat.com>
4924
4925 * symfile.c (set_initial_language): Look up "main" symbol
4926 and use its language.
4927 * symtab.c (find_main_filename): Remove.
4928 * symtab.h (find_main_filename): Remove.
4929
4930 2013-08-07 Tom Tromey <tromey@redhat.com>
4931
4932 * dwarf2read.c (recursively_compute_inclusions): Add
4933 "immediate_parent" argument. Set symtab's "user" field
4934 if not set.
4935 (compute_symtab_includes): Update.
4936
4937 2013-08-07 Tom Tromey <tromey@redhat.com>
4938
4939 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4940 when adding label symbols.
4941
4942 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4943 Ulrich Weigand <uweigand@de.ibm.com>
4944
4945 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4946 * configure.host (powerpc64-*-aix*): Likewise.
4947
4948 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4949 Ulrich Weigand <uweigand@de.ibm.com>
4950
4951 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4952 is defined.
4953 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4954 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4955 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4956 * configure.ac: Check for ptrace64.
4957 * configure, config.in: Regenerate.
4958
4959 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4960 Ulrich Weigand <uweigand@de.ibm.com>
4961
4962 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4963 Call ptrace64 instead of ptrace if defined.
4964 Add macro addr_ptr to take care of ptrace address argument.
4965 (pdc_read_regs): Likewise.
4966 (pdc_write_regs): Likewise.
4967 (aix_thread_resume): Likewise.
4968 (fetch_regs_kernel_thread): Likewise.
4969 (store_regs_kernel_thread): Likewise.
4970
4971 2013-08-07 Anton Blanchard <anton@samba.org>
4972
4973 * MAINTAINERS: Add myself to Write After Approval.
4974
4975 2013-08-05 Tom Tromey <tromey@redhat.com>
4976
4977 * aix-thread.c (_initialize_aix_thread): Use
4978 complete_target_initialization.
4979 * bsd-uthread.c (_initialize_bsd_uthread): Use
4980 complete_target_initialization.
4981 * dec-thread.c (_initialize_dec_thread): Use
4982 complete_target_initialization.
4983 * ravenscar-thread.c (_initialize_ravenscar): Use
4984 complete_target_initialization.
4985 * sol-thread.c (_initialize_sol_thread): Use
4986 complete_target_initialization.
4987 * spu-multiarch.c (_initialize_spu_multiarch): Use
4988 complete_target_initialization.
4989
4990 2013-08-05 Tom Tromey <tromey@redhat.com>
4991
4992 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4993 * ada-lang.c (ada_lookup_simple_minsym): Return
4994 bound_minimal_symbol.
4995 * ada-lang.h (ada_lookup_simple_minsym): Update.
4996 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4997 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4998 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4999 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5000 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5001 * minsyms.c (msymbol_objfile): Remove.
5002 (lookup_minimal_symbol_internal): New function, from
5003 lookup_minimal_symbol.
5004 (lookup_minimal_symbol): Rewrite using
5005 lookup_minimal_symbol_internal.
5006 (lookup_bound_minimal_symbol): New function.
5007 * minsyms.h (msymbol_objfile): Remove.
5008 (lookup_bound_minimal_symbol): Declare.
5009 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5010 * parse.c (write_exp_msymbol): Change parameter to a
5011 bound_minimal_symbol.
5012 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5013 * parser-defs.h (write_exp_msymbol): Update.
5014 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5015 * symfile.c (simple_read_overlay_table): Use
5016 lookup_bound_minimal_symbol.
5017 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5018 (search_symbols): Likewise.
5019 (print_msymbol_info): Take a bound_minimal_symbol argument.
5020 (symtab_symbol_info, rbreak_command): Update.
5021 * symtab.h (struct symbol_search) <msymbol>: Change type
5022 to bound_minimal_symbol.
5023 * valops.c (find_function_in_inferior): Use
5024 lookup_bound_minimal_symbol.
5025 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5026
5027 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 Code cleanup.
5030 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5031 to ...
5032 (async_cleanup_sigint_signal_handler): ... this.
5033 (initialize_sigint_signal_handler): Remove declaration.
5034 (handle_remote_sigint): Rename the declaration to ...
5035 (async_handle_remote_sigint): ... this.
5036 (handle_remote_sigint_twice): Rename the declaration to ...
5037 (async_handle_remote_sigint_twice): ... this.
5038 (async_remote_interrupt, async_remote_interrupt_twice)
5039 (remote_interrupt): Remove the declarations.
5040 (remote_interrupt_twice): Rename the declaration ...
5041 (sync_remote_interrupt_twice): ... this.
5042 (sigint_remote_twice_token): Rename the variable to ...
5043 (async_sigint_remote_twice_token): ... this.
5044 (sigint_remote_token): Rename the variable to ...
5045 (async_sigint_remote_token): ... this.
5046 (initialize_sigint_signal_handler): Rename the function to ...
5047 (async_initialize_sigint_signal_handler): ... this. Update the name
5048 inside.
5049 (handle_remote_sigint): Rename the function to ...
5050 (async_handle_remote_sigint): ... this. Update the names inside.
5051 (handle_remote_sigint_twice): Rename the function to ...
5052 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5053 (cleanup_sigint_signal_handler): Rename the function to ...
5054 (async_cleanup_sigint_signal_handler): ... this.
5055 (remote_interrupt): Rename the function to ...
5056 (sync_remote_interrupt): this. Update the names inside.
5057 (remote_interrupt_twice): Rename the function to ...
5058 (sync_remote_interrupt_twice): this. Update the names inside.
5059 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5060 (_initialize_remote): Update the names inside.
5061
5062 2013-08-02 Tom Tromey <tromey@redhat.com>
5063
5064 PR symtab/15719:
5065 * breakpoint.c (update_watchpoint, watchpoint_check)
5066 (watch_command_1): Update.
5067 * eval.c (fetch_subexp_value): Add "preserve_errors"
5068 parameter.
5069 * ppc-linux-nat.c (check_condition): Update.
5070 * value.h (fetch_subexp_value): Update.
5071
5072 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5073
5074 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5075 add_file_handler.
5076
5077 2013-08-01 Doug Evans <dje@google.com>
5078
5079 PR symtab/15691
5080 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5081 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5082 Add assert of sig_entry->dwo_unit == NULL.
5083 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5084 had already been read.
5085 (read_signatured_type): Set per_cu.tu_read.
5086
5087 PR symtab/15695
5088 * valops.c (value_struct_elt): Add missing call to check_typedef.
5089 (value_find_oload_method_list): Ditto.
5090
5091 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5092 effectively, struct symbol_search **.
5093 (make_cleanup_free_search_symbols): Change arg to struct
5094 symbol_search **. All callers updated.
5095 (compare_search_syms): Compare symtab file name and block as well.
5096 (search_symbols_equal): New function.
5097 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5098 New args new_head, new_tail. Result is now void. Remove dups after
5099 sorting the symbols.
5100 (search_symbols): Sort all found symbols once, after all have been
5101 found, and remove duplicates. Simplify cleanup tracking of result.
5102 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5103
5104 Further workarounds for binutils/15021.
5105 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5106 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5107 Watch for duplicate symtabs coming from type units.
5108 (compute_symtab_includes): Update call to
5109 recursively_compute_inclusions. Build vector of included symtabs
5110 instead of per_cus.
5111 * symtab.h (symtab_ptr): New typedef.
5112 (DEF_VEC_P (symtab_ptr)): New VEC type.
5113 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5114 instead.
5115
5116 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5117
5118 * cli/cli-script.c (script_from_file): Remove use of
5119 error_pre_print.
5120 * main.c (captured_main): Remove use of error_pre_print and
5121 quit_pre_print.
5122 * utils.c (error_pre_print, quit_pre_print): Remove.
5123 * utils.h (error_pre_print, quit_pre_print): Likewise.
5124
5125 2013-08-01 Yao Qi <yao@codesourcery.com>
5126
5127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5128 with mi_getopt.
5129 (mi_cmd_stack_list_variables): Likewise.
5130
5131 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5132
5133 * exceptions.c (deprecated_throw_reason): Remove.
5134 * exceptions.h (deprecated_throw_reason): Remove.
5135
5136 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5137
5138 * remote-mips.c (mips_error): Replace use of
5139 deprecated_throw_reason with throw_verror. Use the error message
5140 passed to mips_error as the error message for throw_verror.
5141
5142 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5143
5144 * monitor.c (monitor_interrupt_query): Replace use of
5145 deprecated_throw_reason with quit.
5146 * nto-procfs.c (interrupt_query): Likewise.
5147 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5148 * remote-mips.c (mips_kill): Likewise.
5149 * remote.c (interrupt_query): Likewise.
5150
5151 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5152
5153 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5154 with call to fatal.
5155
5156 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5157 Yao Qi <yao@codesourcery.com>
5158
5159 * tracepoint.c (trace_dump_command): Select the current frame.
5160
5161 2013-07-30 Doug Evans <dje@google.com>
5162
5163 * dwarf2read.c (process_queue): Add type signature to debug output.
5164
5165 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5166
5167 * value.c (value_fetch_lazy): Mark optimized out values as such
5168 rather than raising an error.
5169
5170 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5171
5172 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5173 before checking which bits of the parent, not the child, value are
5174 valid.
5175
5176 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5177
5178 PR gdb/15715
5179 * top.c: Include "filenames.h".
5180 (set_history_filename): New function.
5181 (init_main): Install it as set hook of the "set history filename"
5182 command.
5183
5184 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5185
5186 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5187 attribute parameter.
5188 (dwarf2_const_value_data): Constify struct attribute parameter.
5189 (dwarf2_const_value): Constify struct attribute parameter.
5190 (dwarf2_const_value_attr): Constify struct attribute parameter.
5191 (lookup_die_type): Constify struct attribute parameter.
5192 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5193 (follow_die_ref_or_sig): Constify struct attribute parameter.
5194 (follow_die_ref): Constify struct attribute parameter.
5195 (follow_die_sig): Constify struct attribute parameter.
5196 (get_DW_AT_signature_type): Constify struct attribute parameter.
5197 (get_type_unit_group): Constify struct attribute parameter.
5198 (fill_in_loclist_baton): Constify struct attribute parameter.
5199 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5200 (type_unit_group): Constify struct attribute parameter.
5201
5202 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5203
5204 * dwarf2read.c (attr_form_is_block): Make argument const.
5205 (attr_form_is_section_offset): Make argument const.
5206 (attr_form_is_constant): Make argument const.
5207 (attr_form_is_ref): Make argument const.
5208
5209 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5210
5211 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5212 All uses updated.
5213 (attr_form_is_ref): Moved below attr_form_is_constant.
5214
5215 2013-07-29 Doug Evans <dje@google.com>
5216
5217 * main.c (captured_command_loop): Tweak comment.
5218
5219 * target.c (target_async_permitted_1): Fix comment.
5220
5221 * symtab.c (iterate_over_some_symtabs): Add comment.
5222
5223 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5224
5225 2013-07-27 Yao Qi <yao@codesourcery.com>
5226
5227 * NEWS: Mention that GDBserver now supports hardware
5228 watchpoints on the MIPS GNU/Linux target.
5229
5230 2013-07-27 Yao Qi <yao@codesourcery.com>
5231
5232 * Makefile.in (HFILES_NO_SRCDIR): Add
5233 common/mips-linux-watch.h.
5234 (mips-linux-watch.o): New rule.
5235 * common/mips-linux-watch.c: New.
5236 * common/mips-linux-watch.h: New.
5237 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5238 * mips-linux-nat.c: Include mips-linux-watch.h.
5239 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5240 to common/mips-linux-watch.h.
5241 (MAX_DEBUG_REGISTER): Likewise.
5242 (enum pt_watch_style): Likewise.
5243 (struct mips32_watch_regs): Likewise.
5244 (struct mips64_watch_regs): Likewise.
5245 (struct pt_watch_regs): Likewise.
5246 (struct mips_watchpoint): Likewise.
5247 (mips_linux_watch_get_irw_mask): Move to
5248 common/mips-linux-watch.c.
5249 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5250 (mips_linux_watch_get_watchlo): Likewise.
5251 (mips_linux_watch_set_watchlo): Likewise.
5252 (mips_linux_watch_get_watchhi): Likewise.
5253 (mips_linux_watch_set_watchhi): Likewise.
5254 (mips_linux_read_watch_registers): Likewise.
5255 (mips_linux_watch_type_to_irw): Likewise.
5256 (mips_linux_stopped_data_address, fill_mask): Likewise.
5257 (mips_linux_watch_try_one_watch): Likewise.
5258 (mips_linux_watch_populate_regs): Likewise.
5259
5260 2013-07-27 Yao Qi <yao@codesourcery.com>
5261
5262 * mips-linux-nat.c (get_irw_mask): Rename to ...
5263 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5264 'set' to 'n'. Update function comment. All callers changed.
5265 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5266 function comment. All callers changed.
5267 (get_num_valid): Rename to ...
5268 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5269 'set' to 'n'. Update function comment. All callers changed.
5270 (get_watchlo): Rename to ...
5271 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5272 'set' to 'n'. Update function comment. All callers changed.
5273 (set_watchlo): Rename to ...
5274 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5275 'set' to 'n'. Update function comment. All callers changed.
5276 (get_watchhi): Rename to ...
5277 (mips_linux_watch_get_watchhi): ... this. Update function
5278 comment. All callers changed.
5279 (set_watchhi): Rename to ...
5280 (mips_linux_watch_set_watchhi): ... this. Update function
5281 comment. All callers changed.
5282 (mips_linux_read_watch_registers): Update function comment.
5283 Add new parameters 'lwpid', 'watch_readback', and
5284 'watch_readback_valid'. Update.
5285 (type_to_irw): Rename to ...
5286 (mips_linux_watch_type_to_irw): ... this. Update function
5287 comment. All callers changed.
5288 (fill_mask): Update function comment.
5289 (try_one_watch): Rename to ...
5290 (mips_linux_watch_try_one_watch): ... this. Change the type
5291 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5292 (populate_regs_from_watches): Rename to ...
5293 (mips_linux_watch_populate_regs): ... this. Add parameter
5294 'current_watches'. All callers changed.
5295
5296 2013-07-27 Yao Qi <yao@codesourcery.com>
5297
5298 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5299 the code.
5300 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5301 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5302 (struct pt_watch_regs): Likewise.
5303 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5304 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5305 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5306 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5307 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5308
5309 2013-07-27 Yao Qi <yao@codesourcery.com>
5310
5311 * breakpoint.h: Include break-common.h.
5312 (enum target_hw_bp_type): Move to ...
5313 * common/break-common.h: ... here. New.
5314
5315 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5316
5317 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5318 process group regardless of having tty on stdin.
5319
5320 2013-07-25 Doug Evans <dje@google.com>
5321
5322 * linux-fork.h (detach_fork): Delete.
5323
5324 2013-07-25 Tom Tromey <tromey@redhat.com>
5325
5326 PR remote/15256, PR remote/15266:
5327 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5328 * monitor.c (monitor_detach): Use unpush_target.
5329 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5330 * remote-mips.c (mips_detach): Use unpush_target. Don't
5331 call mips_close.
5332 * remote-sim.c (gdbsim_detach): Use unpush_target.
5333 * target.c (pop_target): Remove.
5334 (pop_all_targets_above): Don't call target_close.
5335 (target_close): Assert that the target is unpushed.
5336 * target.h (pop_target): Don't declare.
5337 * tracepoint.c (tfile_open): Use unpush_target.
5338
5339 2013-07-25 Tom Tromey <tromey@redhat.com>
5340
5341 * linux-thread-db.c (init_thread_db_ops): Call
5342 complete_target_initialization.
5343 (_initialize_thread_db): Don't call add_target.
5344 * target.c (complete_target_initialization): New function.
5345 (add_target_with_completer): Call it.
5346 * target.h (complete_target_initialization): Declare.
5347
5348 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5349
5350 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5351 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5352 (HPPANBSD_SIZEOF_GREGS): New define.
5353 (hppaobsd_supply_gregset): Handle additional registers.
5354 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5355 we provide more registers now.
5356 (hppabsd_supply_gregset): Supply additional registers.
5357 (hppabsd_collect_gregset): Collect additional registers.
5358
5359 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5360
5361 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5362 (hppabsd_dwarf2_frame_init_reg): New function.
5363 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5364
5365 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5366
5367 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5368 'z' format code. Remove error for optimized out values, standard
5369 code will handle these fine.
5370
5371 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5372
5373 * NEWS: Mention new 'z' formatter.
5374 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5375 (_initialize_printcmd): Mention 'z' formatter in help text of the
5376 'x' command.
5377
5378 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5379
5380 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5381 formatting.
5382
5383 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5384
5385 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5386 interface can evaluate arguments. Fallback to the old mode if it
5387 cannot.
5388 (create_exception_master_breakpoint): Likewise.
5389 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5390 (struct sym_probe_fns elf_probe_fns): Export function above to the
5391 probe interface.
5392 * probe.c (can_evaluate_probe_arguments): New function.
5393 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5394 function pointer.
5395 (can_evaluate_probe_arguments): New function prototype.
5396 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5397 probe interface can evaluate arguments. Fallback to the old mode
5398 if it cannot.
5399 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5400 interface can evaluate arguments. Warning the user if it cannot.
5401 (stap_can_evaluate_probe_arguments): New function.
5402 (struct probe_ops stap_probe_ops): Export function above to the
5403 probe interface.
5404 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5405 New function pointer.
5406
5407 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5408
5409 * Makefile.in (SFILES): Add common/target-common.c.
5410 Add common/target-common.h to headers.
5411 (COMMON_OBS): Add target-common.o.
5412 (target-common.o): New target.
5413 * linux-nat.h (resume_kind): Move to common/target-common.h.
5414 * target.c (target_waitstatus_to_string): Move to
5415 common/target-common.c.
5416 * target.h: Include target-common.h.
5417 (target_waitkind): Move to common/target-common.h.
5418 (target_waitstatus): Likewise.
5419 (TARGET_WNOHANG): Likewise.
5420 * common/target-common.c: New file.
5421 * common/target-common.h: New file.
5422
5423 2013-07-24 Doug Evans <dje@google.com>
5424
5425 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5426 a warning.
5427
5428 2013-07-23 Yao Qi <yao@codesourcery.com>
5429
5430 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5431 parameter 'gdbarch'.
5432 (i386_stack_tramp_frame_sniffer): Caller update.
5433 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5434 parameter 'gdbarch' and 'target'.
5435 (i386_linux_core_read_description): Caller update.
5436 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5437 Likewise.
5438 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5439 declaration.
5440
5441 2013-07-23 Tom Tromey <tromey@redhat.com>
5442
5443 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5444 2013-07-22.
5445
5446 2013-07-22 Doug Evans <dje@google.com>
5447
5448 * exec.h (remove_target_sections): Delete arg abfd.
5449 * exec.c (exec_close): Update call to remove_target_sections.
5450 (remove_target_sections): Delete arg abfd.
5451 * solib.c (update_solib_list): Ditto.
5452 (reload_shared_libraries_1): Ditto.
5453 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5454 * target.h (struct target_section): Rename key to owner.
5455 All uses updated.
5456
5457 2013-07-22 Tom Tromey <tromey@redhat.com>
5458
5459 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5460
5461 2013-07-22 Tom Tromey <tromey@redhat.com>
5462
5463 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5464 Simplify cleanup handling.
5465
5466 2013-07-22 Tom Tromey <tromey@redhat.com>
5467
5468 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5469 on all return paths.
5470
5471 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5472
5473 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5474 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5475 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5476
5477 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5478
5479 * top.c (print_gdb_version): Add help, apropos description and
5480 url to online documentation.
5481
5482 2013-07-19 Hui Zhu <hui@codesourcery.com>
5483
5484 PR gdb/15692
5485 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5486
5487 2013-07-19 Yao Qi <yao@codesourcery.com>
5488
5489 * target.c (update_current_target): Change the default action
5490 of 'to_traceframe_info' from tcomplain to return_zero.
5491 * target.h (struct target_ops) <to_traceframe_info>: Add more
5492 comments.
5493 * valops.c (read_value_memory): Call
5494 traceframe_available_memory unconditionally.
5495
5496 2013-07-18 Yao Qi <yao@codesourcery.com>
5497
5498 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5499 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5500 symbol without prefix. If found, set its type to
5501 'mst_solib_trampoline'.
5502
5503 2013-07-17 Doug Evans <dje@google.com>
5504
5505 * NEWS: Mention "set print raw frame-arguments".
5506 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5507 * stack.c (print_raw_frame_arguments): New static global.
5508 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5509 (_initialize_stack): New command "set/show print raw frame-arguments".
5510 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5511 (set_print_raw, show_print_raw): New functions.
5512 (_initialize_valprint): New prefix command "set/show print raw".
5513 * valprint.h (value_print_options): Improve comments.
5514
5515 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5516 of all *list variables.
5517
5518 * gdbcmd.h (togglelist): Delete.
5519 * cli/cli-cmds.c (togglelist): Delete.
5520 (init_cmd_lists): Update.
5521 * cli/cli-cmds.h (togglelist): Delete.
5522
5523 2013-07-17 Tom Tromey <tromey@redhat.com>
5524
5525 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5526 dwarf2_per_objfile.
5527
5528 2013-07-16 Doug Evans <dje@google.com>
5529
5530 * nto-tdep.c (nto_relocate_section_addresses): Update,
5531 target_section.bfd deleted.
5532 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5533 * s390-tdep.c (s390_load): Ditto.
5534 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5535
5536 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5537
5538 * common/format.c (parse_format_string): Add checks for NULL
5539 character before calling strchr.
5540
5541 2013-07-16 Doug Evans <dje@google.com>
5542
5543 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5544 temp_pathname argument.
5545 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5546 when opening the file fails.
5547
5548 * target.h (struct target_section): Delete member bfd.
5549 All users updated to use the_bfd_section->owner instead.
5550 * exec.c (add_to_section_table): Assert bfd is expected value.
5551 Remove initialization of target_section.bfd.
5552 (remove_target_sections): Update.
5553 (section_table_available_memory): Update.
5554 (section_table_xfer_memory_partial): Update.
5555 (print_section_info): Update.
5556 (exec_set_section_address): Update.
5557 * record-full.c (record_full_core_xfer_partial): Update.
5558 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5559 * solib-target.c (solib_target_relocate_section_addresses): Update.
5560 * symfile.c (build_section_addr_info_from_section_table): Update.
5561 * target.c (memory_xfer_live_readonly_partial): Update.
5562 (memory_xfer_partial_1): Update.
5563
5564 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5565
5566 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5567 now available for embedded (BookE) and server (BookS) processors,
5568 correct mentions of 'booke' and adjust comments accordingly in order to
5569 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5570 (have_ptrace_booke_interface): Rename function and variable
5571 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5572 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5573 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5574 'hwdebug_point_cmp'. Update all uses.
5575 (booke_find_thread_points_by_tid): Rename function
5576 'booke_find_thread_points_by_tid' to
5577 'hwdebug_find_thread_points_by_tid'. Update all uses.
5578 (booke_insert_point): Rename function 'booke_insert_point' to
5579 'hwdebug_insert_point'. Update all uses.
5580 (booke_remove_point): Rename function 'booke_remove_point' to
5581 'hwdebug_remove_point'. Update all uses.
5582
5583 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5584
5585 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5586 numbers with enum values.
5587
5588 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5589
5590 PR threads/13217
5591 * thread.c (thread_apply_all_command): Check for valid threads
5592 and thread count.
5593 (thread_array_cleanup): New struct.
5594 (set_thread_refcount): New function.
5595
5596 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5597
5598 * infcmd.c (default_print_one_register_info): Reuse function
5599 print_hex_chars.
5600
5601 2013-07-10 Tom Tromey <tromey@redhat.com>
5602
5603 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5604 (ada-exp.o): New target.
5605
5606 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5607
5608 * mt-tdep.c (mt_registers_info): Call
5609 get_no_prettyformat_print_options instead of
5610 get_raw_print_options (regression by last patch from Doug
5611 Evans).
5612
5613 2013-07-09 Pedro Alves <palves@redhat.com>
5614
5615 Checked in by Joel Brobecker <brobecker@adacore.com>.
5616 * ada-lang.c (coerce_unspec_val_to_type): Use
5617 value_optimized_out_const.
5618 * value.c (value_optimized_out_const): New function.
5619 * value.h (value_optimized_out_const): New declaration.
5620
5621 2013-07-09 Doug Evans <dje@google.com>
5622
5623 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5624 Enum values rename as well. All uses updated.
5625 * valprint.h (value_print_options): Rename member pretty to
5626 pretty format. Rename member prettyprint_arrays to
5627 prettyformat_arrays. Rename member prettyprint_structs to
5628 prettyformat_structs. All uses updated.
5629 (get_no_prettyformat_print_options): Renamed from
5630 get_raw_print_options.
5631 * valprint.c (get_no_prettyformat_print_options): Renamed from
5632 get_raw_print_options. All callers updated.
5633 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5634 All callers updated.
5635 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5636 All callers updated.
5637 (_initialize_valprint): Improve help text for "set print pretty" and
5638 "set print arrays".
5639
5640 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5641
5642 * value.c (value_bits_valid): Revert previous change, and change
5643 by Pedro on 2013-07-04, due to regressions in
5644 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5645
5646 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5647 Pedro Alves <palves@redhat.com>
5648
5649 * value.c (value_bits_valid): If the value is not lval_computed
5650 or has no check validity handler then the answer is the
5651 optimized_out flag, otherwise defer to the handler.
5652
5653 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5654
5655 * top.c (print_gdb_configuration): Explain in output of
5656 --configuration what does "relocatable" mean.
5657
5658 * main.c (print_gdb_help): Regroup options in the --help text.
5659 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5660 the relevant discussions.
5661
5662 2013-07-06 Yao Qi <yao@codesourcery.com>
5663
5664 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5665 Remove parameter 'lsal'.
5666 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5667 to inner block. Caller update.
5668 (base_breakpoint_create_breakpoints_sal): Update.
5669 (bkpt_create_breakpoints_sal): Likewise.
5670 (tracepoint_create_breakpoints_sal): Likewise.
5671 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5672 element 0 of vector 'canonical->sals'.
5673
5674 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5675
5676 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5677 register number instead of the pseudo register one.
5678 (rs6000_dwarf2_reg_to_regnum): Likewise.
5679
5680 2013-07-04 Pedro Alves <palves@redhat.com>
5681
5682 * findvar.c (value_of_register): Use allocate_optimized_out_value
5683 if the register has been optimized out, instead of
5684 set_value_optimized_out.
5685 * frame-unwind.c (frame_unwind_got_optimized): Use
5686 allocate_optimized_out_value.
5687
5688 2013-07-04 Pedro Alves <palves@redhat.com>
5689
5690 * value.c (value_bits_valid): If the value is not lval_computed,
5691 or doesn't have a check_validity hook, assume the value is entirely
5692 valid.
5693
5694 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5695
5696 * stack.c (read_frame_arg): No longer fetch lazy values.
5697 * value.c (value_optimized_out): If the value is not already
5698 marked optimized out, and is lazy then fetch it.
5699 (value_primitive_field): Move optimized out check to later in the
5700 function, after we have loaded any lazy values.
5701 (value_fetch_lazy): Use optimized out flag directly rather than
5702 calling optimized_out method.
5703
5704 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5705
5706 * valops.c: Don't include "user-regs.h".
5707 (value_fetch_lazy): Moved to value.c.
5708 * value.c: Include "user-regs.h".
5709 (value_fetch_lazy): Moved from valops.c.
5710
5711 2013-07-04 Yao Qi <yao@codesourcery.com>
5712
5713 Revert:
5714 2013-06-27 Yao Qi <yao@codesourcery.com>
5715
5716 * common/create-version.sh: Update comments. Handle the case
5717 that TARGET_ALIAS is empty.
5718
5719 2013-07-03 Pedro Alves <palves@redhat.com>
5720
5721 * Makefile.in (config.status): Depend on development.sh.
5722 (aclocal_m4_deps): Add libmcheck.m4.
5723 * acinclude.m4: Include libmcheck.m4.
5724 * configure.ac: Source development.sh instead of setting
5725 'development' here. --enable-libmcheck/--disable-libmcheck code
5726 factored out to GDB_AC_LIBMCHECK. Run it.
5727 * development.sh: New file.
5728 * libmcheck.m4: New file.
5729 * configure: Regenerate.
5730
5731 2013-07-02 Tom Tromey <tromey@redhat.com>
5732
5733 * contrib/ari/update-web-ari.sh: Update for version.in change.
5734
5735 2013-07-02 Tom Tromey <tromey@redhat.com>
5736
5737 * common/ptid.h: Comment fixes.
5738
5739 2013-07-01 Tom Tromey <tromey@redhat.com>
5740
5741 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5742 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5743 (dwarf2_read_index, create_all_comp_units): Update.
5744
5745 2013-07-01 Tom Tromey <tromey@redhat.com>
5746
5747 * configure.ac (build_warnings): Add -Wold-style-definition.
5748 * configure: Rebuild.
5749 * machoread.c (_initialize_machoread): Use "(void)".
5750 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5751 use "(void)".
5752
5753 2013-07-01 Tom Tromey <tromey@redhat.com>
5754
5755 * configure.ac (build_warnings): Add -Wold-style-declaration.
5756 * configure: Rebuild.
5757 * dsrec.c (make_srec): Use "static const", not "const static".
5758 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5759 not "const static".
5760 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5761 Use "static const", not "const static".
5762 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5763 not "const static".
5764 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5765 not "const static".
5766 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5767 not "const static".
5768 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5769 not "const static".
5770 (v850_dbtrap_breakpoint_from_pc): Likewise.
5771 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5772 not "const static".
5773
5774 2013-07-01 Tom Tromey <tromey@redhat.com>
5775
5776 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5777 * configure: Rebuild.
5778
5779 2013-07-01 Pedro Alves <palves@redhat.com>
5780
5781 * defs.h: Include "pathmax.h".
5782 * utils.c: Don't include sys/param.h.
5783 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5784 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5785 instead of MAXPATHLEN.
5786 * solib-sunos.c: Don't include sys/param.h.
5787 * xcoffread.c: Don't include sys/param.h.
5788 * bsd-kvm.c: Don't include sys/param.h.
5789 * darwin-nat.c: Don't include sys/param.h.
5790 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5791 * darwin-nat-info.c: Don't include sys/param.h.
5792 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5793 MAXPATHLEN.
5794 * i386obsd-nat.c: Don't include sys/param.h.
5795 * inf-child.c: Don't include sys/param.h.
5796 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5797 * linux-fork.c: Don't include sys/param.h.
5798 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5799 * linux-nat.c: Don't include sys/param.h.
5800 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5801 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5802 * m68klinux-nat.c: Don't include sys/param.h.
5803 * nbsd-nat.c: Don't include sys/param.h.
5804 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5805 * ppc-linux-nat.c: Don't include sys/param.h.
5806 * rs6000-nat.c: Don't include sys/param.h.
5807 * spu-linux-nat.c. Don't include sys/param.h.
5808 * windows-nat.c: Don't include sys/param.h.
5809 * xtensa-linux-nat.c: Don't include sys/param.h.
5810 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5811
5812 2013-07-01 Pedro Alves <palves@redhat.com>
5813
5814 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5815 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5816 * gnulib/aclocal.m4: Regenerate.
5817 * gnulib/config.in: Regenerate.
5818 * gnulib/configure: Regenerate.
5819 * gnulib/import/pathmax.h: New file.
5820 * gnulib/import/Makefile.am: Regenerate.
5821 * gnulib/import/Makefile.in: Regenerate.
5822 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5823 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5824 * gnulib/import/m4/pathmax.m4: New file.
5825
5826 2013-07-01 Pedro Alves <palves@redhat.com>
5827
5828 * configure.ac (GDBINIT): Define, depending on host.
5829 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5830 * top.c (PATH_MAX): Delete fallback definition.
5831 (GDBINIT_FILENAME): Delete.
5832 (gdbinit): Reimplement as const char array set to the GDBINIT
5833 string constant.
5834 * top.h (gdbinit): Make const.
5835 * configure, config.in: Regenerate.
5836
5837 2013-07-01 Pedro Alves <palves@redhat.com>
5838
5839 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5840 * cli/cli-cmds.h (source_script): Likewise.
5841 * exceptions.c (catch_command_errors_const): New function.
5842 * exceptions.h (catch_command_errors_const): Declare.
5843 * main.c (get_init_files): Make parameters const, and adjust.
5844 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5845 'local_gdbinit' locals const. Adjust to use
5846 catch_command_errors_const.
5847 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5848 'local_gdbinit' locals const.
5849
5850 2013-07-01 Pedro Alves <palves@redhat.com>
5851
5852 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5853 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5854 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5855 <unistd.h>.
5856
5857 2013-07-01 Pedro Alves <palves@redhat.com>
5858
5859 Import the "unistd" gnulib module.
5860 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5861 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5862 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5863 import/m4/unistd_h.m4.
5864 * gnulib/aclocal.m4: Renenerate.
5865 * gnulib/config.in: Renenerate.
5866 * gnulib/configure: Renenerate.
5867 * gnulib/import/Makefile.am: Renenerate.
5868 * gnulib/import/Makefile.in: Renenerate.
5869 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5870 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5871 * gnulib/import/m4/off_t.m4: New file.
5872 * gnulib/import/m4/ssize_t.m4: New file.
5873 * gnulib/import/m4/sys_types_h.m4: New file.
5874 * gnulib/import/m4/unistd_h.m4: New file.
5875 * gnulib/import/sys_types.in.h: New file.
5876 * gnulib/import/unistd.c: New file.
5877 * gnulib/import/unistd.in.h: New file.
5878
5879 2013-07-01 Pedro Alves <palves@redhat.com>
5880
5881 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5882 defined instead of checking HAVE_UNISTD_H.
5883
5884 2013-07-01 Pedro Alves <palves@redhat.com>
5885
5886 Reimport gnulib from scratch.
5887 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5888 import/m4/onceonly.m4.
5889 * gnulib/aclocal.m4: Renegerate.
5890 * gnulib/config.in: Renegerate.
5891 * gnulib/configure: Renegerate.
5892 * gnulib/import/Makefile.in: Renegerate.
5893 * gnulib/import/extra/update-copyright: Renegerate.
5894 * gnulib/import/m4/onceonly.m4: Delete.
5895
5896 2013-07-01 Pedro Alves <palves@redhat.com>
5897
5898 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5899
5900 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5901
5902 Code cleanup.
5903 * remote.c (async_remote_interrupt_twice): Make it static.
5904 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5905
5906 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5907
5908 * ia64-linux-tdep.c: Include <ctype.h>.
5909 (ia64_linux_stap_is_single_operand): New function.
5910 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5911
5912 2013-06-28 Tom Tromey <tromey@redhat.com>
5913
5914 * Makefile.in (version.c): Use version.in, not
5915 common/version.in.
5916 * common/create-version.sh: Likewise.
5917 * common/version.in: Move...
5918 * version.in: ...here.
5919
5920 2013-06-28 Pedro Alves <palves@redhat.com>
5921
5922 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5923 here.
5924 * utils.h (pagination_enabled): Declare.
5925
5926 2013-06-28 Pedro Alves <palves@redhat.com>
5927
5928 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5929 Move higher up in file.
5930
5931 2013-06-28 Tom Tromey <tromey@redhat.com>
5932
5933 * tracepoint.c (deprecated_readline_begin_hook)
5934 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5935 declare.
5936
5937 2013-06-28 Pedro Alves <palves@redhat.com>
5938
5939 PR tui/14880
5940 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5941 checking if they're available.
5942 * value.c (value_available_contents_eq): Change comment.
5943 * value.h (value_available_contents_eq): Expand comment.
5944
5945 2013-06-27 Tom Tromey <tromey@redhat.com>
5946
5947 * target.c (find_run_target): Remove.
5948 * target.h (find_run_target): Remove.
5949
5950 2013-06-27 Tom Tromey <tromey@redhat.com>
5951
5952 * corelow.c (core_gdbarch): Now static.
5953
5954 2013-06-27 Tom Tromey <tromey@redhat.com>
5955
5956 * target.c (target_struct_index): Remove.
5957
5958 2013-06-27 Pedro Alves <palves@redhat.com>
5959
5960 * infrun.c: Remove comment describing the 'stepping over runtime
5961 loader dynamic symbol resolution code' mechanism; moved to
5962 gdbint.texinfo.
5963
5964 2013-06-27 Pedro Alves <palves@redhat.com>
5965
5966 * exceptions.c (catch_command_errors): Remove spurious space.
5967 * exceptions.h (catch_command_errors): Second parameter is "arg",
5968 not "command".
5969
5970 2013-06-27 Yao Qi <yao@codesourcery.com>
5971
5972 * common/create-version.sh: Update comments. Handle the case
5973 that TARGET_ALIAS is empty.
5974
5975 2013-06-26 Pedro Alves <palves@redhat.com>
5976
5977 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5978 comment.
5979
5980 2013-06-26 Pedro Alves <palves@redhat.com>
5981
5982 * infrun.c: Update comments on stepping over runtime loader
5983 dynamic symbol resolution code.
5984
5985 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5986
5987 * ax-gdb.h (union exp_element): Forward declare.
5988 * parser-defs.h: Include expression.h.
5989
5990 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5991
5992 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5993
5994 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5995
5996 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5997
5998 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5999
6000 Fix trace-status to output proper start-time and stop-time.
6001 * tracepoint.c (trace_status_command): Fix type of printf arg to
6002 prevent improper type conversion.
6003 (trace_status_mi): Likewise.
6004
6005 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6006
6007 * mips-tdep.c (mips_next_pc): Fix a typo.
6008
6009 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6010
6011 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6012
6013 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6014 Yao Qi <yao@codesourcery.com>
6015
6016 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6017 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6018 * mi/mi-main.c (print_variable_or_computed): New function.
6019 (mi_cmd_trace_frame_collected): New function.
6020 * tracepoint.c (find_trace_state_variable_by_number): New.
6021 (struct traceframe_info): Move to tracepoint.h
6022 (struct collection_list): Likewise.
6023 (do_collect_symbol): Include locals and arguments in the
6024 collected variables list.
6025 (clear_collection_list): Clear wholly collected variables list
6026 and computed variables list.
6027 (append_exp): New function.
6028 (encode_actions_1): Include variables in the wholly
6029 collected variables list. Include memory ranges and
6030 full-fledged expressions in the computed expressions list.
6031 (encode_actions): Move some code to ...
6032 Return the cleanup chain.
6033 (encode_actions_rsp): ... here. New function.
6034 (get_traceframe_location, get_traceframe_info): Remove static.
6035 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6036 (struct collection_list): Moved from tracepoint.c. Add two
6037 new fields 'wholly_collected' and 'computed'.
6038 (find_trace_state_variable_by_number): Declare.
6039 (encode_actions): Adjust declaration.
6040 (encode_actions_rsp): Declare.
6041 (get_traceframe_info, get_traceframe_location): Declare.
6042
6043 * NEWS: Mention new MI command -trace-frame-collected.
6044
6045 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6046 Yao Qi <yao@codesourcery.com>
6047
6048 * ctf.c (ctf_traceframe_info): Push trace state variables
6049 present in the trace data into the traceframe info object.
6050 * breakpoint.c (DEF_VEC_I): Remove.
6051 * common/filestuff.c (DEF_VEC_I): Likewise.
6052 * dwarf2loc.c (DEF_VEC_I): Likewise.
6053 * mi/mi-main.c (DEF_VEC_I): Likewise.
6054 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6055 * features/traceframe-info.dtd: Add tvar element and its
6056 attributes.
6057 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6058 (build_traceframe_info): Push trace state variables present in
6059 the trace data into the traceframe info object.
6060 (traceframe_info_start_tvar): New function.
6061 (tvar_attributes): New.
6062 (traceframe_info_children): Add "tvar" element.
6063 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6064
6065 * NEWS: Mention the change in GDB and GDBserver.
6066
6067 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6068 Yao Qi <yao@codesourcery.com>
6069
6070 * tracepoint.c (trace_dump_command): Move code to ...
6071 (get_traceframe_location): ... here. New.
6072
6073 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6074 Yao Qi <yao@codesourcery.com>
6075
6076 * tracepoint.c (trace_dump_command): GDB emits an error
6077 instead of a warning when a traceframe is not selected.
6078
6079 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6080 Yao Qi <yao@codesourcery.com>
6081
6082 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6083 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6084 in collection_list.
6085 (do_clear_collection_list, init_collection_list): New.
6086 (encode_actions): Add local variables 'tracepoint_list' and
6087 'stepping_list'. Call init_collection_list and make cleanup
6088 which calls do_clear_collection_list. Don't call
6089 clear_collection_list.
6090 (_initialize_tracepoint): Delete references to
6091 'tracepoint_list' and 'stepping_list'.
6092
6093 2013-06-25 Tom Tromey <tromey@redhat.com>
6094
6095 * common/create-version.sh (date): Use "$", not "$$" in sed
6096 expression.
6097
6098 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6099
6100 * NEWS (New targets): Add entry for TI MSP430.
6101
6102 2013-06-25 Yao Qi <yao@codesourcery.com>
6103
6104 * remote.c (remote_start_remote): Move code to upload tsv
6105 earlier.
6106
6107 2013-06-25 Yao Qi <yao@codesourcery.com>
6108 Hui Zhu <hui@codesourcery.com>
6109 Pedro Alves <palves@redhat.com>
6110
6111 PR breakpoints/15075
6112 PR breakpoints/15434
6113 * breakpoint.c (bpstat_stop_status): Call
6114 b->ops->after_condition_true.
6115 (update_dprintf_command_list): Don't append "continue" command
6116 to the command list of dprintf breakpoint.
6117 (base_breakpoint_after_condition_true): New function.
6118 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6119 (dprintf_after_condition_true): New function.
6120 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6121 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6122
6123 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6124
6125 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6126 (ALLDEPFILES): Add msp430-tdep.c.
6127 * configure.tgt (msp430*-*-elf): New target.
6128 * msp430-tdep.c: New file.
6129
6130 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6131
6132 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6133 microMIPS synthetic symbols.
6134
6135 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6136
6137 * objfiles.h (pc_in_section): New prototype.
6138 (in_plt_section): Remove name argument, replace prototype with
6139 static inline function.
6140 * mips-tdep.h: Include "objfiles.h".
6141 (in_mips_stubs_section): New function.
6142 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6143 in_solib_call_trampoline member.
6144 (hppa_in_solib_call_trampoline): Remove name argument.
6145 * objfiles.c (pc_in_section): New function.
6146 (in_plt_section): Remove function.
6147 * mips-linux-tdep.c: Include "objfiles.h".
6148 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6149 name argument. Return 1 rather than the low 16-bit halfword of
6150 any instruction examined.
6151 (mips_linux_in_dynsym_resolve_code): Update
6152 mips_linux_in_dynsym_stub call accordingly.
6153 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6154 rather than an equivalent hand-coded sequence.
6155 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6156 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6157 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6158 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6159 in_opd_section.
6160 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6161 on call to tdep->in_solib_call_trampoline.
6162 (hppa_in_solib_call_trampoline): Remove name argument, update
6163 according to in_plt_section change.
6164 (hppa_skip_trampoline_code): Update according to in_plt_section
6165 change.
6166 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6167 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6168 Likewise.
6169 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6170 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6171 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6172 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6173 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6174 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6175 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6176 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6177 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6178 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6179 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6180 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6181 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6182
6183 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6184
6185 * common/create-version.sh: Fix expansion of $host_alias
6186 and $target_alias in generation of HOST_NAME and TARGET_NAME
6187 (resp.).
6188
6189 2013-06-24 Tom Tromey <tromey@redhat.com>
6190
6191 * common/create-version.sh: New file.
6192 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6193 create-version.sh.
6194 (HFILES_NO_SRCDIR): Use common/version.h.
6195 * version.in: Move to ...
6196 * common/version.in: ... here. Replace date with "DATE".
6197 * version.h: Move to ...
6198 * common/version.h: ... here.
6199
6200 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6201
6202 * gdb/gnulib/Makefile.in: Update date in copyright header.
6203 * gdb/gnulib/configure.ac: Ditto.
6204 * gdb/gnulib/update-gnulib.sh: Ditto.
6205
6206 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6207
6208 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6209 "gdb/gnulib/import".
6210
6211 2013-06-21 Will Newton <will.newton@linaro.org>
6212
6213 * doublest.c (ldfrexp): Remove function.
6214 (convert_doublest_to_floatformat): Call frexpl instead of
6215 ldfrexp.
6216
6217 2013-06-21 Will Newton <will.newton@linaro.org>
6218
6219 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6220 * gnulib/aclocal.m4: Regenerate.
6221 * gnulib/config.in: Regenerate.
6222 * gnulib/configure: Regenerate.
6223 * gnulib/import/Makefile.am: Update.
6224 * gnulib/import/Makefile.in: Update.
6225 * gnulib/import/m4/gnulib-cache.m4: Update.
6226 * gnulib/import/m4/gnulib-comp.m4: Update.
6227 * gnulib/import/float+.h: Import.
6228 * gnulib/import/float.c: Import.
6229 * gnulib/import/float.in.h: Import.
6230 * gnulib/import/fpucw.h: Import.
6231 * gnulib/import/frexp.c: Import.
6232 * gnulib/import/frexpl.c: Import.
6233 * gnulib/import/isnan.c: Import.
6234 * gnulib/import/isnand-nolibm.h: Import.
6235 * gnulib/import/isnand.c: Import.
6236 * gnulib/import/isnanl-nolibm.h: Import.
6237 * gnulib/import/isnanl.c: Import.
6238 * gnulib/import/itold.c: Import.
6239 * gnulib/import/m4/exponentd.m4: Import.
6240 * gnulib/import/m4/exponentl.m4: Import.
6241 * gnulib/import/m4/float_h.m4: Import.
6242 * gnulib/import/m4/fpieee.m4: Import.
6243 * gnulib/import/m4/frexp.m4: Import.
6244 * gnulib/import/m4/frexpl.m4: Import.
6245 * gnulib/import/m4/isnand.m4: Import.
6246 * gnulib/import/m4/isnanl.m4: Import.
6247 * gnulib/import/m4/math_h.m4: Import.
6248 * gnulib/import/math.c: Import.
6249 * gnulib/import/math.in.h: Import.
6250
6251 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6254 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6255 signature_INTEL_edx comparisons.
6256
6257 2013-06-20 Doug Evans <dje@google.com>
6258
6259 symtab/15652
6260 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6261 All callers updated.
6262 (open_dwp_file): If we can't find the dwp file, search the basename
6263 in debug-file-directory.
6264
6265 * dwarf2read.c (struct dwp_file): Fix comment.
6266 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6267
6268 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6269 better.
6270
6271 2013-06-20 Yao Qi <yao@codesourcery.com>
6272
6273 * breakpoint.c (create_breakpoint): Fix code indentation.
6274
6275 2013-06-20 Yao Qi <yao@codesourcery.com>
6276
6277 * breakpoint.c (create_breakpoints_sal_default): Remove
6278 parameter 'lsal'. Update declaration.
6279 (bkpt_create_breakpoints_sal): Caller update.
6280 (tracepoint_create_breakpoints_sal): Likewise.
6281
6282 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6283 Yao Qi <yao@codesourcery.com>
6284
6285 * NEWS: Mention the new option '--skip-unavailable' of command
6286 -data-list-register-values.
6287 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6288 --skip-unavailable option. Adjust to use output_register.
6289 (output_register): Add new 'skip_unavailable' parameter.
6290 Handle it.
6291
6292 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6293
6294 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6295 common/i386-gcc-cpuid.h.
6296 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6297 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6298 Copy the latest version from upstream gcc.
6299 * common/linux-btrace.c: Include i386-cpuid.h.
6300 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6301 call to i386_cpuid.
6302 (cpu_supports_btrace): Likewise.
6303 * go32-nat.c: Include i386-cpuid.h.
6304 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6305
6306 2013-06-19 Doug Evans <dje@google.com>
6307
6308 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6309 (get_section_index): Ditto.
6310
6311 2013-06-19 Tom Tromey <tromey@redhat.com>
6312
6313 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6314 "dprintf" help.
6315
6316 2013-06-18 Doug Evans <dje@google.com>
6317
6318 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6319 before using it.
6320 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6321 Move test of cu_index closer to use. Print complaint if cu_index
6322 is bad.
6323
6324 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6325
6326 * machoread.c (oso_vector): Delete this global.
6327 (macho_register_oso): Add new parameter "oso_vector_ptr".
6328 Use it instead of the "oso_vector" global.
6329 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6330 (macho_symfile_read): Use a local oso_vector, to be free'ed
6331 at the end of this function, in place of the old "oso_vector"
6332 global. Update various function calls accordingly. Use one
6333 single cleanup chain for the entire function.
6334
6335 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6336
6337 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6338 DWARF2_PER_OBJFILE by uses of DATA instead.
6339
6340 2013-06-18 Tom Tromey <tromey@redhat.com>
6341
6342 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6343 argument.
6344 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6345 Special case signals other than GDB_SIGNAL_TRAP.
6346 (explains_signal_watchpoint): New function.
6347 (base_breakpoint_explains_signal): Add 'sig' argument.
6348 (initialize_breakpoint_ops): Set 'explains_signal' method for
6349 watchpoints.
6350 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6351 signal argument.
6352 (bpstat_explains_signal): Likewise.
6353 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6354
6355 2013-06-18 Tom Tromey <tromey@redhat.com>
6356
6357 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6358
6359 2013-06-18 Tom Tromey <tromey@redhat.com>
6360
6361 * python/python.c (finish_python_initialization): Decref
6362 'pythondir' on failure path as well.
6363
6364 2013-06-18 Tom Tromey <tromey@redhat.com>
6365
6366 PR symtab/15391:
6367 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6368 after taking bits_to_skip into account. Sign extend byte_offset.
6369 * utils.h (gdb_sign_extend): Declare.
6370 * utils.c (gdb_sign_extend): New function.
6371
6372 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6373
6374 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6375
6376 2013-06-17 Pierre Muller <muller@sourceware.org>
6377
6378 * corelow.c (core_open): Print GDB signal name instead of target
6379 signal number.
6380
6381 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6382
6383 * .gitignore: Add /gcore.
6384
6385 2013-06-13 Doug Evans <dje@google.com>
6386
6387 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6388 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6389
6390 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6391
6392 * stack.c (backtrace_command_1): Fix indentation.
6393
6394 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6395
6396 * window-nat.c (thread_rec): Add missing empty line after
6397 local variable declaration.
6398
6399 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6400
6401 * windows-nat.c (thread_rec): Revert format used to print
6402 error code returned by SuspendThread from %d back to %u.
6403
6404 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6405
6406 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6407 ID in debug trace.
6408 (get_windows_debug_event): Likewise, for all debug traces.
6409
6410 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6411
6412 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6413 warning message.
6414
6415 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6416 Yao Qi <yao@codesourcery.com>
6417
6418 * mi/mi-main.c (get_register): Remove declaration.
6419 (output_register): Declare.
6420 (mi_cmd_data_list_register_values): Remove local variable
6421 'tuple_cleanup'. Move some code into output_register.
6422 (get_register): Renamed to ...
6423 (output_register): ... this. Output the register's
6424 "number" ui_out tuple here.
6425
6426 2013-06-07 Pedro Alves <palves@redhat.com>
6427
6428 * darwin-nat.c: Fix formating in copyright header.
6429 * darwin-nat.h: Likewise.
6430 * gnu-nat.c: Likewise.
6431 * machoread.c: Likewise.
6432
6433 2013-06-07 Pedro Alves <palves@redhat.com>
6434
6435 PR server/14823
6436 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6437 static. Output a global target description pointer.
6438 (init_registers_${name}): Adjust to initialize a
6439 target description structure.
6440
6441 2013-06-07 Will Newton <will.newton@linaro.org>
6442
6443 * printcmd.c (build_address_symbolic): Call
6444 gdbarch_addr_bits_remove for text minimal symbols.
6445
6446 2013-06-07 Will Newton <will.newton@linaro.org>
6447
6448 * MAINTAINERS: Add myself to Write After Approval.
6449
6450 2013-06-07 Yao Qi <yao@codesourcery.com>
6451
6452 * tracepoint.c (start_tracing): Move code to ...
6453 (trace_reset_local_state): ... here. New.
6454 (disconnect_tracing): Don't call set_current_traceframe,
6455 set_tracepoint_num, and set_traceframe_context. Call
6456 trace_reset_local_state instead.
6457 (tfile_close): Call trace_reset_local_state.
6458 * ctf.c (ctf_close): Likewise.
6459 * remote.c (remote_close): Likewise.
6460 * tracepoint.h (trace_reset_local_state): Declare.
6461
6462 2013-06-06 Doug Evans <dje@google.com>
6463
6464 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6465 and fix header docs.
6466
6467 2013-06-05 Doug Evans <dje@google.com>
6468 Keith Seitz <keiths@redhat.com>
6469
6470 PR 15519
6471 * cp-namespace.c (find_symbol_in_baseclass): Call
6472 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6473 Check result of call to lookup_symbol_static.
6474 Call lookup_static_symbol_aux unconditionally.
6475 Call check_typedef on base types before accessing them.
6476 (cp_lookup_nested_symbol): Fix comment.
6477
6478 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6479
6480 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6481 minimal symbols pointing to function descriptors.
6482
6483 2013-06-05 Tom Tromey <tromey@redhat.com>
6484
6485 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6486
6487 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6488 Pedro Alves <palves@redhat.com>
6489
6490 * remote.c (remote_wait_as): Restore signal handler before returning
6491 when GDB gets a notification.
6492
6493 2013-06-04 Gary Benson <gbenson@redhat.com>
6494
6495 PR 2328
6496 * breakpoint.h (handle_solib_event): Moved function declaration
6497 to solib.h.
6498 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6499 (bpstat_stop_status): Pass new argument to handle_solib_event.
6500 * solib.h (update_solib_breakpoints): New function declaration.
6501 (handle_solib_event): Moved function declaration from
6502 breakpoint.h.
6503 * solib.c (update_solib_breakpoints): New function.
6504 (handle_solib_event): Moved function from breakpoint.c.
6505 Updated to call solib_ops->handle_event if not NULL.
6506 * solist.h (target_so_ops): New fields "update_breakpoints" and
6507 "handle_event".
6508 * infrun.c (set_stop_on_solib_events): New function.
6509 (_initialize_infrun): Use the above for "set
6510 stop-on-solib-events".
6511 (handle_inferior_event): Pass new argument to handle_solib_event.
6512 * solib-svr4.c (probe.h): New include.
6513 (svr4_free_library_list): New forward declaration.
6514 (probe_action): New enum.
6515 (probe_info): New struct.
6516 (probe_info): New static variable.
6517 (NUM_PROBES): New definition.
6518 (svr4_info): New fields "using_xfer", "probes_table" and
6519 "solib_list".
6520 (free_probes_table): New function.
6521 (free_solib_list): New function.
6522 (svr4_pspace_data_cleanup): Free probes table and solib list.
6523 (svr4_copy_library_list): New function.
6524 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6525 (svr4_read_so_list): New parameter "prev_lm".
6526 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6527 (svr4_current_sos): New function.
6528 (probe_and_action): New struct.
6529 (hash_probe_and_action): New function.
6530 (equal_probe_and_action): Likewise.
6531 (register_solib_event_probe): Likewise.
6532 (solib_event_probe_at): Likewise.
6533 (solib_event_probe_action): Likewise.
6534 (solist_update_full): Likewise.
6535 (solist_update_incremental): Likewise.
6536 (disable_probes_interface_cleanup): Likewise.
6537 (svr4_handle_solib_event): Likewise.
6538 (svr4_update_solib_event_breakpoint): Likewise.
6539 (svr4_update_solib_event_breakpoints): Likewise.
6540 (svr4_create_solib_event_breakpoints): Likewise.
6541 (enable_break): Free probes table before creating breakpoints.
6542 Use svr4_create_solib_event_breakpoints to create breakpoints.
6543 (svr4_solib_create_inferior_hook): Free the solib list.
6544 (_initialize_svr4_solib): Initialise
6545 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6546
6547 2013-06-04 Gary Benson <gbenson@redhat.com>
6548
6549 * target.h (target_ops): New field
6550 "to_augmented_libraries_svr4_read".
6551 (target_augmented_libraries_svr4_read): New macro.
6552 * target.c (update_current_target): Handle
6553 to_augmented_libraries_svr4_read.
6554 * remote.c (remote_state): New field
6555 "augmented_libraries_svr4_read".
6556 (remote_augmented_libraries_svr4_read_feature): New function.
6557 (remote_protocol_features): Add entry for
6558 "augmented-libraries-svr4-read".
6559 (remote_augmented_libraries_svr4_read): New function.
6560 (init_remote_ops): Initialize
6561 remote_ops.to_augmented_libraries_svr4_read.
6562
6563 2013-06-04 Gary Benson <gbenson@redhat.com>
6564
6565 * NEWS: Update.
6566
6567 2013-06-04 Gary Benson <gbenson@redhat.com>
6568
6569 * objfiles.h (inhibit_section_map_updates): New function
6570 declaration.
6571 (resume_section_map_updates): Likewise.
6572 (resume_section_map_updates_cleanup): Likewise.
6573 * objfiles.c (objfile_pspace_info): Removed field
6574 "objfiles_changed_p". New fields "new_objfiles_available",
6575 "section_map_dirty" and "inhibit_updates".
6576 (allocate_objfile): Set new_objfiles_available.
6577 (free_objfile): Set section_map_dirty.
6578 (objfile_relocate1): Likewise.
6579 (in_plt_section): Likewise.
6580 (find_pc_section): Update the conditions under which the
6581 section map will be updated.
6582 (inhibit_section_map_updates): New function.
6583 (resume_section_map_updates): Likewise.
6584 (resume_section_map_updates_cleanup): Likewise.
6585
6586 2013-06-04 Gary Benson <gbenson@redhat.com>
6587
6588 * probe.h (get_probe_argument_count): New declaration.
6589 (evaluate_probe_argument): Likewise.
6590 * probe.c (get_probe_argument_count): New function.
6591 (evaluate_probe_argument): Likewise.
6592 (probe_safe_evaluate_at_pc): Use the above new functions.
6593
6594 2013-06-04 Alan Modra <amodra@gmail.com>
6595
6596 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6597 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6598 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6599 target mem reads on optional insns.
6600 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6601 ppc_insns_match_pattern calls.
6602 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6603 Add match for power7 thread safety insns, and new order of
6604 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6605 invocation in comment, and update rest of comment.
6606 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6607 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6608 (ppc64_standard_linkage2_target): Update insn offsets.
6609 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6610 stubs first. Update calls.
6611
6612 2013-06-04 Yao Qi <yao@codesourcery.com>
6613
6614 * solib.c (solib_find): Don't need dir separator if path has
6615 drive spec.
6616
6617 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6618
6619 Revert (indirectly causes a SIGSEGV):
6620 * machoread.c (macho_symfile_read): Assign first cleanup to
6621 'back_to'.
6622
6623 2013-06-03 Yao Qi <yao@codesourcery.com>
6624
6625 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6626 mi-parse.c. Make them static.
6627 (mi_all_values): Likewise.
6628 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6629 mi_parse_print_values. Make it external.
6630 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6631 Remove the declarations.
6632 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6633 * mi/mi-parse.h (mi_parse_print_values): Declare.
6634 * mi/mi-cmd-stack.c: Include mi-parse.h.
6635 (parse_print_values): Remove
6636 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6637 of parse_print_values.
6638 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6639
6640 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6641 Yao Qi <yao@codesourcery.com>
6642
6643 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6644 (encode_actions): Move code to ...
6645 (all_tracepoint_actions_and_cleanup): ... here. New.
6646 (trace_dump_command): Likewise.
6647
6648 2013-05-30 Tom Tromey <tromey@redhat.com>
6649
6650 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6651
6652 2013-05-30 Tom Tromey <tromey@redhat.com>
6653
6654 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6655 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6656 'old_chain' argument. Add 'parser_result' argument.
6657 (gdb_xml_create_parser_and_cleanup): Remove old version.
6658 (gdb_xml_parse_quick): Update.
6659 (xml_process_xincludes): Update.
6660 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6661 declare.
6662
6663 2013-05-30 Tom Tromey <tromey@redhat.com>
6664
6665 * probe.c (collect_probes): Check arguments for NULL before
6666 calling compile_rx_or_error.
6667 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6668 Remove NULL return.
6669
6670 2013-05-30 Tom Tromey <tromey@redhat.com>
6671
6672 * infrun.c (adjust_pc_after_break): Introduce an outer null
6673 cleanup.
6674
6675 2013-05-30 Tom Tromey <tromey@redhat.com>
6676
6677 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6678
6679 2013-05-30 Tom Tromey <tromey@redhat.com>
6680
6681 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6682 for 'old_chain'. Do not check 'head' before processing
6683 cleanups.
6684
6685 2013-05-30 Tom Tromey <tromey@redhat.com>
6686
6687 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6688 "cleanup_tuple".
6689
6690 2013-05-30 Tom Tromey <tromey@redhat.com>
6691
6692 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6693 inner scope. Unconditionally call do_cleanups.
6694
6695 2013-05-30 Tom Tromey <tromey@redhat.com>
6696
6697 * source.c (find_and_open_source): Call do_cleanups.
6698
6699 2013-05-30 Tom Tromey <tromey@redhat.com>
6700
6701 * linux-thread-db.c (thread_db_load_search): Unconditionally
6702 call do_cleanups.
6703
6704 2013-05-30 Tom Tromey <tromey@redhat.com>
6705
6706 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6707 for 'cleanup'; instead use a later one.
6708
6709 2013-05-30 Tom Tromey <tromey@redhat.com>
6710
6711 * python/py-breakpoint.c (bppy_get_commands): Use
6712 explicit, unconditional return.
6713 * python/py-frame.c (frapy_read_var): Likewise.
6714 * python/python.c (gdbpy_decode_line): Likewise.
6715
6716 2013-05-30 Tom Tromey <tromey@redhat.com>
6717
6718 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6719 do_cleanups on all return paths.
6720
6721 2013-05-30 Tom Tromey <tromey@redhat.com>
6722
6723 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6724
6725 2013-05-30 Tom Tromey <tromey@redhat.com>
6726
6727 * stabsread.c (read_struct_type): Call do_cleanups along
6728 all return paths.
6729
6730 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6731
6732 * mips-linux-tdep.c: Adjust formatting throughout.
6733
6734 2013-05-30 Tom Tromey <tromey@redhat.com>
6735
6736 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6737 along all return paths.
6738
6739 2013-05-30 Tom Tromey <tromey@redhat.com>
6740
6741 * symfile.c (find_separate_debug_file): Call do_cleanups
6742 along all return paths.
6743
6744 2013-05-30 Tom Tromey <tromey@redhat.com>
6745
6746 * symtab.c (search_symbols): Introduce a null cleanup for
6747 'retval_chain'.
6748
6749 2013-05-30 Tom Tromey <tromey@redhat.com>
6750
6751 * python/py-value.c (valpy_binop): Call do_cleanups before
6752 exiting loop.
6753
6754 2013-05-30 Tom Tromey <tromey@redhat.com>
6755
6756 * python/py-prettyprint.c (print_children): Remove extra
6757 do_cleanups call.
6758
6759 2013-05-30 Tom Tromey <tromey@redhat.com>
6760
6761 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6762 all return paths.
6763
6764 2013-05-30 Tom Tromey <tromey@redhat.com>
6765
6766 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6767 along all return paths.
6768
6769 2013-05-30 Tom Tromey <tromey@redhat.com>
6770
6771 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6772 call do_cleanups.
6773
6774 2013-05-30 Tom Tromey <tromey@redhat.com>
6775
6776 * varobj.c (c_value_of_root): Call do_cleanups along all
6777 return paths.
6778
6779 2013-05-30 Tom Tromey <tromey@redhat.com>
6780
6781 * tracepoint.c (trace_dump_command): Unconditionally call
6782 do_cleanups.
6783
6784 2013-05-30 Tom Tromey <tromey@redhat.com>
6785
6786 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6787 do_cleanups earlier.
6788
6789 2013-05-30 Tom Tromey <tromey@redhat.com>
6790
6791 * machoread.c (macho_symfile_read): Assign first cleanup to
6792 'back_to'.
6793
6794 2013-05-30 Tom Tromey <tromey@redhat.com>
6795
6796 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6797
6798 2013-05-30 Tom Tromey <tromey@redhat.com>
6799
6800 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6801
6802 2013-05-30 Tom Tromey <tromey@redhat.com>
6803
6804 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6805 call discard_cleanups.
6806 (inf_ptrace_attach): Likewise.
6807
6808 2013-05-30 Tom Tromey <tromey@redhat.com>
6809
6810 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6811 return paths.
6812 (mips_initialize): Likewise.
6813 (common_open): Call do_cleanups.
6814
6815 2013-05-30 Tom Tromey <tromey@redhat.com>
6816
6817 * utils.c (internal_vproblem): Call do_cleanups.
6818
6819 2013-05-30 Tom Tromey <tromey@redhat.com>
6820
6821 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6822
6823 2013-05-30 Tom Tromey <tromey@redhat.com>
6824
6825 * cli/cli-script.c (setup_user_args): Don't return after error.
6826
6827 2013-05-30 Tom Tromey <tromey@redhat.com>
6828
6829 * somread.c (som_symtab_read): Call do_cleanups.
6830
6831 2013-05-30 Tom Tromey <tromey@redhat.com>
6832
6833 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6834
6835 2013-05-30 Tom Tromey <tromey@redhat.com>
6836
6837 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6838 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6839 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6840 * source.c (show_substitute_path_command): Call do_cleanups.
6841 (unset_substitute_path_command, set_substitute_path_command):
6842 Likewise.
6843 * symfile.c (load_command): Call do_cleanups.
6844
6845 2013-05-30 Tom Tromey <tromey@redhat.com>
6846
6847 * contrib/cleanup_check.py: New file.
6848 * contrib/gcc-with-excheck: Add option parsing.
6849
6850 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6851
6852 * windows-nat.c (windows_delete_thread): Add missing space
6853 in cast expression.
6854
6855 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6856
6857 * inferior.c (top level): Include tilde.h.
6858 (add_inferior_command): Call tilde_expand on the value of 'exec'
6859 argument.
6860
6861 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6862 Yao Qi <yao@codesourcery.com>
6863
6864 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6865 Caller update.
6866 (encode_actions): Likewise.
6867 * remote.c (remote_download_tracepoint): Caller update.
6868 * tracepoint.h (encode_actions): Update declaration.
6869
6870 2013-05-30 Pedro Alves <palves@redhat.com>
6871
6872 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6873 pointer.
6874
6875 2013-05-30 Yao Qi <yao@codesourcery.com>
6876
6877 * remote.c (remote_check_symbols): Remove unused parameter
6878 'objfile'.
6879 Declaration update.
6880 (remote_start_remote, remote_new_objfile): Caller update.
6881
6882 2013-05-30 Yao Qi <yao@codesourcery.com>
6883
6884 * mi/mi-cmds.c (mi_cmds): Define MI command
6885 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6886 DEF_MI_CMD_CLI.
6887
6888 2013-05-29 Pedro Alves <palves@redhat.com>
6889
6890 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6891 (remote_insert_watchpoint, remote_remove_watchpoint)
6892 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6893 (remote_verify_memory, compare_sections_command)
6894 (remote_search_memory): Set the general process/thread on the
6895 remote side.
6896
6897 2013-05-29 Pedro Alves <palves@redhat.com>
6898
6899 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6900 (_initialize_aarch64_tdep): Don't call
6901 initialize_tdesc_aarch64_without_fpu.
6902 * features/Makefile (WHICH): Remove reference to
6903 aarch64-without-fpu.
6904 * features/aarch64-without-fpu.c: Delete file.
6905 * regformats/aarch64-without-fpu.dat: Delete file.
6906
6907 2013-05-28 Yao Qi <yao@codesourcery.com>
6908
6909 * tracepoint.c (stringify_collection_list): Remove parameter
6910 'string'.
6911 (encode_actions): Caller update. Remove local variables.
6912
6913 2013-05-24 Yao Qi <yao@codesourcery.com>
6914
6915 * tracepoint.c (TFILE_PID): Remove.
6916 (tfile_open): Don't add thread and inferior.
6917 (tfile_close): Don't set 'inferior_ptid'. Don't call
6918 exit_inferior_silent.
6919 (tfile_thread_alive): Remove.
6920 (init_tfile_ops): Don't set field 'to_thread_alive' of
6921 tfile_ops.
6922
6923 2013-05-23 Doug Evans <dje@google.com>
6924
6925 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6926
6927 2013-05-23 Pedro Alves <palves@redhat.com>
6928
6929 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6930 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6931 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6932 Only define if HAVE_SOCKETS is defined.
6933 * configure.ac: Check for sys/socket.h.
6934 * config.in, configure: Regenerate.
6935
6936 2013-05-23 Pedro Alves <palves@redhat.com>
6937
6938 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6939 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6940 printing uint32_t variables.
6941
6942 2013-05-23 Pedro Alves <palves@redhat.com>
6943
6944 * NEWS: Mention GDBserver range stepping support.
6945
6946 2013-05-23 Yao Qi <yao@codesourcery.com>
6947 Pedro Alves <palves@redhat.com>
6948
6949 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6950 field.
6951 * infcmd.c (step_once, until_next_command): Enable range stepping.
6952 * infrun.c (displaced_step_prepare): Disable range stepping.
6953 (resume): Disable range stepping if stepping over a breakpoint or
6954 we have software watchpoints. If range stepping is enabled,
6955 assert the thread is in the stepping range.
6956 (clear_proceed_status_thread): Clear may_range_step.
6957 (handle_inferior_event): Disable range stepping as soon as we know
6958 the thread that hit the event. Re-enable it whenever we're going
6959 to step with a step range.
6960 * remote.c (struct vCont_action_support) <r>: New field.
6961 (use_range_stepping): New global.
6962 (remote_vcont_probe): Handle 'r' action.
6963 (append_resumption): Append an 'r' action if the thread may range
6964 step.
6965 (show_range_stepping): New function.
6966 (set_range_stepping): New function.
6967 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6968 'set range-stepping' and 'show range-stepping' commands.
6969 * NEWS: Mention range stepping, the new vCont;r action, and the
6970 new "set/show range-stepping" commands.
6971
6972 2013-05-23 Yao Qi <yao@codesourcery.com>
6973 Pedro Alves <palves@redhat.com>
6974
6975 * remote.c (struct vCont_action_support): New struct.
6976 (struct remote_state) <support_vCont_t>: Remove field.
6977 <vCont_actions_support>: New field.
6978 (remote_vcont_probe, remote_stop_ns): Update.
6979
6980 2013-05-23 Yao Qi <yao@codesourcery.com>
6981 Pedro Alves <palves@redhat.com>
6982
6983 * gdbthread.h (pc_in_thread_step_range): New declaration.
6984 * thread.c (pc_in_thread_step_range): New function.
6985 * infrun.c (handle_inferior_event): Use it.
6986
6987 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6988
6989 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6990 of sprintf.
6991
6992 2013-05-22 Keith Seitz <keiths@redhat.com>
6993
6994 * ada-lang.c (is_known_support_routine): Add explicit free of
6995 'func_name' from find_frame_funname.
6996 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6997 for func_name from find_frame_funname.
6998 * python/py-frame.c (frapy_name): Add explicit free of
6999 'name' from find_frame_funname.
7000 * stack.c (find_frame_funname): Add comment explaining that
7001 funcp must be freed by the caller.
7002 Return copy of symbol names instead of pointers.
7003 (print_frame): Add a cleanup for 'funname' from
7004 find_frame_funname.
7005 * stack.h (find_frame_funname): Remove "const" from
7006 'funname' parameter.
7007
7008 2013-05-22 Tom Tromey <tromey@redhat.com>
7009
7010 PR c++/15401:
7011 * c-valprint.c (c_value_print): Use value_addr for
7012 references. Convert back to reference type with value_ref.
7013
7014 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7015
7016 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7017 unloaded DLL, it will be done by handle_solib_event. See
7018 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7019 details.
7020
7021 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7022
7023 * ui-out.c: Create typedef ui_out_level_p and define vector
7024 operations for that type.
7025 (struct ui_out): Use a vector instead of an array.
7026 (current_level): Return level from a vector.
7027 (push_level): Create a level in a vector.
7028 (pop_level): Delete a level in a vector.
7029 (ui_out_new): Create initial level zero level, and store in a
7030 vector.
7031 (ui_out_destroy): Add vector cleanup.
7032
7033 2013-05-22 Pedro Alves <palves@redhat.com>
7034
7035 * python/python-internal.h (gdb_Py_DECREF): Tag with
7036 "ARI: editCase function".
7037
7038 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7039
7040 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7041
7042 2013-05-21 Pedro Alves <palves@redhat.com>
7043
7044 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7045 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7046 * python/py-utils.c (py_decref): Don't check for NULL before
7047 calling Py_DECREF.
7048
7049 2013-05-21 Pedro Alves <palves@redhat.com>
7050
7051 * python/py-utils.c (py_decref): Remove extra braces.
7052 (gdb_pymodule_addobject): Remove extra braces.
7053 * python-internal.h (gdb_Py_DECREF): New static inline function.
7054 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7055
7056 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7057
7058 * breakpoints.c (detach_breakpoints): Do not
7059 detach breakpoints locations with loc_type bp_loc_other.
7060
7061 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Workaround Python 2.6.
7064 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7065 a block.
7066
7067 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7068
7069 Code cleanup: constification.
7070 * solib.c (solib_ops): Make return type and ops variable type const.
7071 (set_solib_ops): Make the new_ops parameter and ops variable const.
7072 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7073 (solib_add, solib_keep_data_in_core, clear_solib)
7074 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7075 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7076 const.
7077 * solib.h (set_solib_ops): Make the new_ops parameter const.
7078
7079 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7080
7081 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7082 variable.
7083 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7084 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7085 (SYSTEM_GDBINIT_FILES): New variables.
7086 (all): Add stamp-system-gdbinit.
7087 (stamp-system-gdbinit): New rule.
7088 (clean-system-gdbinit, install-system-gdbinit)
7089 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7090 (install-only): Add dependency on install-system-gdbinit.
7091 (uninstall): Add dependency on uninstall-system-gdbinit.
7092 (clean): Add dependency on clean-system-gdbinit.
7093 * system-gdbinit/elinos.py: New file.
7094 * system-gdbinit/wrs-linux.py: New file.
7095
7096 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7097
7098 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7099
7100 2013-05-21 Hui Zhu <hui@codesourcery.com>
7101
7102 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7103 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7104 * mi/mi-cmd-break.c (ctype.h): New include.
7105 (gdb_obstack.h): New include.
7106 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7107 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7108 (mi_cmd_dprintf_insert): New.
7109 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7110 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7111
7112 2013-05-20 Tom Tromey <tromey@redhat.com>
7113
7114 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7115
7116 2013-05-20 Tom Tromey <tromey@redhat.com>
7117
7118 * python/py-value.c (valpy_get_dynamic_type): Simplify
7119 dynamic_type assignment. Use Py_XINCREF.
7120
7121 2013-05-20 Tom Tromey <tromey@redhat.com>
7122
7123 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7124
7125 2013-05-20 Tom Tromey <tromey@redhat.com>
7126
7127 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7128 (gdbpy_selected_frame): Move object-construction code
7129 out of TRY_CATCH.
7130
7131 2013-05-20 Tom Tromey <tromey@redhat.com>
7132
7133 * python/py-arch.c (gdbpy_initialize_arch): Use
7134 gdb_pymodule_addobject.
7135 * python/py-block.c (gdbpy_initialize_blocks): Use
7136 gdb_pymodule_addobject.
7137 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7138 gdb_pymodule_addobject.
7139 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7140 gdb_pymodule_addobject.
7141 * python/py-event.c (gdbpy_initialize_event_generic): Use
7142 gdb_pymodule_addobject.
7143 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7144 gdb_pymodule_addobject.
7145 * python/py-evts.c (add_new_registry): Use
7146 gdb_pymodule_addobject.
7147 (gdbpy_initialize_py_events): Likewise.
7148 * python/py-finishbreakpoint.c
7149 (gdbpy_initialize_finishbreakpoints): Use
7150 gdb_pymodule_addobject.
7151 * python/py-frame.c (gdbpy_initialize_frames): Use
7152 gdb_pymodule_addobject.
7153 * python/py-function.c (gdbpy_initialize_functions): Use
7154 gdb_pymodule_addobject.
7155 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7156 gdb_pymodule_addobject.
7157 * python/py-infthread.c (gdbpy_initialize_thread): Use
7158 gdb_pymodule_addobject.
7159 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7160 gdb_pymodule_addobject.
7161 * python/py-param.c (gdbpy_initialize_parameters): Use
7162 gdb_pymodule_addobject.
7163 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7164 gdb_pymodule_addobject.
7165 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7166 gdb_pymodule_addobject.
7167 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7168 gdb_pymodule_addobject.
7169 * python/py-type.c (gdbpy_initialize_types): Use
7170 gdb_pymodule_addobject.
7171 * python/py-utils.c (gdb_pymodule_addobject): New function.
7172 * python/py-value.c (gdbpy_initialize_values): Use
7173 gdb_pymodule_addobject.
7174 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7175 * python/python.c (_initialize_python): Use
7176 gdb_pymodule_addobject.
7177
7178 2013-05-20 Tom Tromey <tromey@redhat.com>
7179
7180 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7181 * python/py-param.c (get_set_value, get_show_value): Use
7182 explicit decrefs.
7183 * python/python.c (start_type_printers, apply_type_printers):
7184 Use explicit decrefs.
7185
7186 2013-05-20 Tom Tromey <tromey@redhat.com>
7187
7188 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7189 incref the module.
7190
7191 2013-05-20 Tom Tromey <tromey@redhat.com>
7192
7193 * python/python.c (gdbpy_run_events): Decref the result
7194 of PyObject_CallObject.
7195
7196 2013-05-20 Tom Tromey <tromey@redhat.com>
7197
7198 * python/py-symtab.c (set_sal): Use
7199 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7200 (symtab_and_line_to_sal_object): Update.
7201
7202 2013-05-20 Tom Tromey <tromey@redhat.com>
7203
7204 * python/py-param.c (compute_enum_values): Decref 'item'.
7205
7206 2013-05-20 Tom Tromey <tromey@redhat.com>
7207
7208 * mi/mi-main.c: Include python-internal.h.
7209 (mi_cmd_list_features): Check gdb_python_initialized.
7210 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7211 (python_inferior_exit, python_new_objfile, add_thread_object)
7212 (delete_thread_object, py_free_inferior): Check
7213 gdb_python_initialized.
7214 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7215 gdb_python_initialized.
7216 * python/py-type.c (save_objfile_types): Check
7217 gdb_python_initialized.
7218 * python/python-internal.h (gdb_python_initialized): Declare.
7219 * python/python.c (ensure_python_env): Throw exception if
7220 Python not initialized.
7221 (before_prompt_hook, source_python_script_for_objfile)
7222 (start_type_printers, apply_type_printers,
7223 free_type_printers): Check gdb_python_initialized.
7224 * varobj.c (varobj_get_display_hint)
7225 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7226 (install_new_value_visualizer, varobj_set_visualizer)
7227 (value_get_print_value): Check gdb_python_initialized.
7228
7229 2013-05-20 Tom Tromey <tromey@redhat.com>
7230
7231 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7232 Check errors.
7233 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7234 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7235 Check errors.
7236 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7237 Check errors.
7238 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7239 Check errors.
7240 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7241 Check errors.
7242 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7243 init function to return 'int'.
7244 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7245 Return 'int'. Check errors.
7246 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7247 Check errors.
7248 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7249 Return 'int'. Check errors.
7250 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7251 Check errors.
7252 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7253 Check errors.
7254 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7255 Check errors.
7256 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7257 Check errors.
7258 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7259 Check errors.
7260 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7261 Check errors.
7262 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7263 Check errors.
7264 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7265 Check errors.
7266 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7267 Check errors.
7268 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7269 Check errors.
7270 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7271 Check errors.
7272 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7273 Check errors.
7274 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7275 Check errors.
7276 * python/python-internal.h (gdbpy_initialize_auto_load,
7277 gdbpy_initialize_values, gdbpy_initialize_frames,
7278 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7279 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7280 gdbpy_initialize_blocks, gdbpy_initialize_types,
7281 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7282 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7283 gdbpy_initialize_finishbreakpoints,
7284 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7285 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7286 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7287 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7288 gdbpy_initialize_signal_event,
7289 gdbpy_initialize_breakpoint_event,
7290 gdbpy_initialize_continue_event,
7291 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7292 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7293 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7294 * python/python.c (gdb_python_initialized): New global.
7295 (gdbpy_initialize_events): Return 'int'. Check errors.
7296 (_initialize_python): Check errors. Set
7297 gdb_python_initialized.
7298
7299 2013-05-20 Tom Tromey <tromey@redhat.com>
7300
7301 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7302 Decref the reslut of PyObject_CallMethod.
7303
7304 2013-05-20 Tom Tromey <tromey@redhat.com>
7305
7306 * python/py-event.c (gdbpy_initialize_event_generic): Return
7307 early if PyType_Ready fails.
7308
7309 2013-05-20 Tom Tromey <tromey@redhat.com>
7310
7311 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7312 as 'default' in the switch.
7313
7314 2013-05-20 Tom Tromey <tromey@redhat.com>
7315
7316 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7317 get_addr_from_python calls out of TRY_CATCH.
7318 (infpy_write_memory, infpy_search_memory): Likewise.
7319 * python/py-utils.c (get_addr_from_python): Return negative
7320 value on error. Use TRY_CATCH.
7321 * python/python-internal.h (get_addr_from_python): Use
7322 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7323
7324 2013-05-20 Tom Tromey <tromey@redhat.com>
7325
7326 * python/py-event.c (evpy_emit_event): Decref the
7327 result of PyObject_CallFunctionObjArgs.
7328
7329 2013-05-20 Tom Tromey <tromey@redhat.com>
7330
7331 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7332 Correctly decref.
7333
7334 2013-05-20 Tom Tromey <tromey@redhat.com>
7335
7336 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7337
7338 2013-05-20 Tom Tromey <tromey@redhat.com>
7339
7340 * python/py-event.h (gdbpy_initialize_event_generic): Use
7341 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7342 * python/py-evts.c (add_new_registry): Use
7343 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7344 * python/python-internal.h
7345 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7346
7347 2013-05-20 Tom Tromey <tromey@redhat.com>
7348
7349 * python/py-arch.c (archpy_disassemble): Update.
7350 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7351 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7352 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7353 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7354 macro.
7355 (GDB_PY_HANDLE_EXCEPTION): Update.
7356 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7357
7358 2013-05-20 Tom Tromey <tromey@redhat.com>
7359
7360 * python/python-internal.h (events_object_type): Remove.
7361
7362 2013-05-20 Tom Tromey <tromey@redhat.com>
7363
7364 * python/py-event.h (evpy_emit_event): Use
7365 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7366 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7367 New macro.
7368
7369 2013-05-20 Tom Tromey <tromey@redhat.com>
7370
7371 * py-evtregistry.c (create_event_object): Decref
7372 eventregistry_object if PyList_New fails.
7373
7374 2013-05-20 Tom Tromey <tromey@redhat.com>
7375
7376 * py-cmd.c (gdbpy_string_to_argv): Check result of
7377 PyList_New.
7378
7379 2013-05-20 Tom Tromey <tromey@redhat.com>
7380
7381 * python/python.c (before_prompt_hook): Add cleanup to
7382 decref 'hook'.
7383
7384 2013-05-20 Tom Tromey <tromey@redhat.com>
7385
7386 * python/py-function.c (fnpy_init): Decref result of
7387 PyObject_GetAttrString.
7388
7389 2013-05-20 Tom Tromey <tromey@redhat.com>
7390
7391 * python/py-threadevent.c (get_event_thread): Use
7392 CPYCHECKER_RETURNS_BORROWED_REF.
7393 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7394 New define.
7395 (pspace_to_pspace_object, objfile_to_objfile_object)
7396 (find_thread_object): Use it.
7397
7398 2013-05-20 Tom Tromey <tromey@redhat.com>
7399
7400 * python/py-arch.c (arch_object_type): Use
7401 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7402 * python/py-block.c (block_syms_iterator_object_type):
7403 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7404 * python/py-bpevent.c (breakpoint_event_object_type):
7405 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7406 * python/py-cmd.c (cmdpy_object_type): Use
7407 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7408 * python/py-continueevent.c (continue_event_object_type):
7409 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7410 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7411 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7412 * python/py-events.h (thread_event_object_type):
7413 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7414 * python/py-evtregistry.c (eventregistry_object_type): Use
7415 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7416 * python/py-exitedevent.c (exited_event_object_type):
7417 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7418 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7419 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7420 * python/py-function.c (fnpy_object_type): Use
7421 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7422 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7423 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7424 * python/py-infthread.c (thread_object_type): Use
7425 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7426 * python/py-lazy-string.c (lazy_string_object_type):
7427 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7428 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7429 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7430 * python/py-objfile.c (objfile_object_type): Use
7431 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7432 * python/py-param.c (parmpy_object_type):
7433 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7434 * python/py-progspace.c (pspace_object_type):
7435 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7436 * python/py-signalevent.c (signal_event_object_type):
7437 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7438 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7439 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7440 * python/py-type.c (type_object_type, field_object_type)
7441 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7442 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7443 define.
7444 (value_object_type, block_object_type, symbol_object_type)
7445 (event_object_type, stop_event_object_type, breakpoint_object_type)
7446 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7447
7448 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7449
7450 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7451 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7452
7453 2013-05-20 Doug Evans <dje@google.com>
7454
7455 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7456 For Fission.
7457 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7458 reading_dwo_directly.
7459 (struct signatured_type): New member dwo_unit.
7460 (struct die_reader_specs): New member comp_dir.
7461 (create_signatured_type_table_from_index): Use malloc for
7462 all_type_units instead of objfile's obstack.
7463 (create_all_type_units): Ditto.
7464 (fill_in_sig_entry_from_dwo_entry): New function.
7465 (add_type_unit): New function.
7466 (lookup_dwo_signatured_type): New function.
7467 (lookup_dwp_signatured_type): New function.
7468 (lookup_signatured_type): New arg cu. All callers updated.
7469 (init_cu_die_reader): Initialize comp_dir.
7470 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7471 Change assert of matching type signatures to call error on mismatch.
7472 (lookup_dwo_unit): Add assert.
7473 (init_tu_and_read_dwo_dies): New function.
7474 (init_cutu_and_read_dies): Call it.
7475 (build_type_unit_groups): Handle case of no type unit groups created.
7476 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7477 (lookup_dwo_cutu): Tweak complaint.
7478 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7479 (dwarf2_per_objfile_free): Free all_type_units.
7480
7481 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7482
7483 * windows-nat.c (handle_unload_dll): Add missing empty line.
7484
7485 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7486
7487 * dwarf2read.c (prototyped_function_p): New function.
7488 (read_subroutine_type): Use it.
7489
7490 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7491
7492 * rs6000-aix-tdep.c: De-indent some example code provided
7493 as a comment.
7494
7495 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7496
7497 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7498 region is ok for a hardware watchpoint using the new ptrace interface
7499 on Power servers.
7500
7501 2013-05-17 Doug Evans <dje@google.com>
7502
7503 * NEWS: Mention new maintenance commands check-symtabs, and
7504 expand-symtabs, and renamed check-psymtabs.
7505 * psymtab.c (maintenance_check_psymtabs): Renamed from
7506 maintenance_check_symtabs. Only process already-expanded symbol
7507 tables.
7508 (_initialize_psymtab): Update.
7509 * symmisc.c (maintenance_check_symtabs): New function.
7510 (maintenance_expand_name_matcher): New function
7511 (maintenance_expand_file_matcher): New function
7512 (maintenance_expand_symtabs): New function.
7513 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7514 commands.
7515
7516 2013-05-17 Tom Tromey <tromey@redhat.com>
7517
7518 * python/py-inferior.c (infpy_read_memory): Don't call
7519 PyErr_SetString if PyObject_New fails.
7520 * python/py-frame.c (frame_info_to_frame_object): Don't call
7521 PyErr_SetString if PyObject_New fails.
7522
7523 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7524
7525 * acinclude.m4: Add check for dlopen in libdl.
7526 * configure.ac: Ditto.
7527 * configure: Regenerate.
7528
7529 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7530
7531 * frame.c (frame_stash): Convert to htab.
7532 (frame_addr_hash): New function.
7533 (frame_addr_hash_eq): New function.
7534 (frame_stash_create): Convert function to create
7535 a hash table.
7536 (frame_stash_add): Convert function to add an entry to a hash
7537 table.
7538 (frame_stash_find): Convert function to search the hash table.
7539 (frame_stash_invalidate): Convert function to empty the hash
7540 table.
7541 (get_frame_id): Only add to stash if a frame_id is created.
7542 (_initialize_frame): Call frame_stash_create.
7543
7544 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7545
7546 * configure.ac: Ensure MIG is available when building for GNU Hurd
7547 hosts.
7548 * configure: Regenerate.
7549
7550 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7551
7552 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7553
7554 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7555
7556 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7557 all cleanups are done before returning from this function.
7558
7559 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7560
7561 * utils.h: #include "exceptions.h".
7562 (enum errors): Remove partial declaration.
7563
7564 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7565
7566 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7567 * gdbarch.h, gdbarch.c: Regenerate.
7568 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7569 handling.
7570
7571 * rs6000-aix-tdep.h: New file.
7572 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7573 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7574 "xml-utils.h".
7575 (struct field_info, struct ld_info_desc): New types.
7576 (ld_info32_desc, ld_info64_desc): New static constants.
7577 (struct ld_info): New type.
7578 (rs6000_aix_extract_ld_info): New function.
7579 (rs6000_aix_shared_library_to_xml): Likewise.
7580 (rs6000_aix_ld_info_to_xml): Likewise.
7581 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7582 (rs6000_aix_init_osabi): Add call to
7583 set_gdbarch_core_xfer_shared_libraries_aix.
7584 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7585 Remove "xml-utils.h" include.
7586 (LdInfo): Delete typedef.
7587 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7588 Delete macros.
7589 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7590 Adjust code accordingly.
7591 (rs6000_core_ldinfo): Delete, folded into
7592 rs6000_aix_core_xfer_shared_libraries_aix.
7593 (rs6000_xfer_shared_library): Delete.
7594 (rs6000_xfer_shared_libraries): Reimplement.
7595
7596 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7597
7598 * record.c (record_goto_cmdlist): New.
7599 (cmd_record_goto): Split into this ...
7600 (cmd_record_goto_begin): ... this
7601 (cmd_record_goto_end): ... and this.
7602 (_initialize_record): Change "record goto" to prefix command.
7603 Add commands for "record goto begin" and "record goto end".
7604 Add an alias for "record goto start" to "record goto begin".
7605
7606 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7607
7608 * linespec.c (convert_linespec_to_sals): New comment for
7609 SOURCE_FILENAME assignment.
7610
7611 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7612
7613 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7614 internal_warning.
7615
7616 2013-05-14 Tom Tromey <tromey@redhat.com>
7617
7618 * eval.c (parse_and_eval_long): Make 'exp' const.
7619 * value.h (parse_and_eval_long): Update.
7620
7621 2013-05-14 Tom Tromey <tromey@redhat.com>
7622
7623 * ui-file.c (gdb_fopen): Make arguments const.
7624 * ui-file.h (gdb_fopen): Make arguments const.
7625
7626 2013-05-14 Tom Tromey <tromey@redhat.com>
7627
7628 * remote.c (remote_set_trace_notes): Make arguments const.
7629 * target.c (update_current_target): Update cast.
7630 * target.h (to_set_trace_notes): Make arguments const.
7631
7632 2013-05-14 Tom Tromey <tromey@redhat.com>
7633
7634 * go32-nat.c (go32_terminal_info): Make 'args' const.
7635 * inferior.h (child_terminal_info): Update.
7636 * inflow.c (child_terminal_info): Make 'args' const.
7637 * target.c (default_terminal_info): Make 'args' const.
7638 (debug_to_terminal_save_ours): Likewise.
7639 * target.h (struct target_ops) <to_terminal_info>: Make argument
7640 const.
7641
7642 2013-05-13 Tom Tromey <tromey@redhat.com>
7643
7644 * gcore.c (create_gcore_bfd): Make 'filename' const.
7645 * gcore.h (create_gcore_bfd): Make 'filename' const.
7646 * record-full.c (record_full_save): Make 'recfilename' const.
7647 * target.c (target_save_record): Make 'filename' const.
7648 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7649 const.
7650 (target_save_record): Likewise.
7651
7652 2013-05-13 Tom Tromey <tromey@redhat.com>
7653
7654 PR gdb/15338:
7655 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7656 ranges section has been read.
7657
7658 2013-05-13 Tom Tromey <tromey@redhat.com>
7659
7660 PR exp/15364:
7661 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7662 STRUCTOP_PTR>: Return a not_lval value for
7663 EVAL_AVOID_SIDE_EFFECTS.
7664 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7665 for EVAL_AVOID_SIDE_EFFECTS.
7666
7667 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7668
7669 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7670 floating point registers to register type before storing
7671 value.
7672 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7673 Likewise.
7674
7675 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7676 Tom Tromey <tromey@redhat.com>
7677
7678 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7679 New functions.
7680 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7681 Declare.
7682 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7683 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7684 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7685 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7686
7687 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7688 Tom Tromey <tromey@redhat.com>
7689
7690 PR build/15414:
7691 * configure: Rebuild.
7692 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7693 with -Wno-format.
7694
7695 2013-05-10 Pedro Alves <palves@redhat.com>
7696
7697 * remote.c (_initialize_remote): Fix spelling of
7698 qXfer:traceframe-info:read packet in packet config command.
7699
7700 2013-05-10 David Taylor <dtaylor@emc.com>
7701
7702 PR remote/15455
7703
7704 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7705 "QTro" at start of packet.
7706
7707 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7708
7709 * solib-aix.c (solib_aix_relocate_section_addresses):
7710 For the .bss section action, apply the same offset as
7711 the .data section.
7712
7713 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7714
7715 * solib-aix.c (solib_aix_relocate_section_addresses):
7716 Remove FIXME comment.
7717
7718 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7719
7720 PR tdep/15420:
7721 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7722 New functions, directly copied from sparc-sol-thread.c.
7723 * sparc-sol-thread.c: Delete.
7724 * configure.ac: Remove code handling sparc-solaris-thread.c.
7725 * configure: Regenerate.
7726
7727 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7728
7729 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7730 filter logic.
7731 (backtrace_command): Add "no-filters" option parsing.
7732 (_initialize_stack): Alter help to reflect "no-filters" option.
7733 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7734 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7735 (py-frame.o): Add target
7736 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7737 filter files.
7738 * python/python.h: Add new frame filter constants, and flag enum.
7739 (apply_frame_filter): Add definition.
7740 * python/python.c (apply_frame_filter): New non-Python
7741 enabled function.
7742 * python/py-utils.c (py_xdecref): New function.
7743 (make_cleanup_py_xdecref): Ditto.
7744 * python/py-objfile.c: Declare frame_filters dictionary.
7745 (objfpy_dealloc): Add frame_filters dealloc.
7746 (objfpy_new): Initialize frame_filters attribute.
7747 (objfile_to_objfile_object): Ditto.
7748 (objfpy_get_frame_filters): New function.
7749 (objfpy_set_frame_filters): New function.
7750 * python/py-progspace.c: Declare frame_filters dictionary.
7751 (pspy_dealloc): Add frame_filters dealloc.
7752 (pspy_new): Initialize frame_filters attribute.
7753 (pspacee_to_pspace_object): Ditto.
7754 (pspy_get_frame_filters): New function.
7755 (pspy_set_frame_filters): New function.
7756 * python/py-framefilter.c: New file.
7757 * python/lib/gdb/command/frame_filters.py: New file.
7758 * python/lib/gdb/frames.py: New file.
7759 * python/lib/gdb/__init__.py: Initialize global frame_filters
7760 dictionary
7761 * python/lib/gdb/FrameDecorator.py: New file.
7762 * python/lib/gdb/FrameIterator.py: New file.
7763 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7764 * mi/mi-cmds.h: Declare.
7765 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7766 --no-frame-filter logic, and Python frame filter logic.
7767 (stack_enable_frame_filters): New function.
7768 (parse_no_frame_option): Ditto.
7769 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7770 filter logic.
7771 (mi_cmd_stack_list_locals): Ditto.
7772 (mi_cmd_stack_list_args): Ditto.
7773 (mi_cmd_stack_list_variables): Ditto.
7774 * NEWS: Add frame filter note.
7775
7776 2013-05-09 Doug Evans <dje@google.com>
7777
7778 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7779 All callers updated.
7780 (syms_from_objfile): Ditto. Make static.
7781 (symbol_file_add_with_addrs): Renamed from
7782 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7783 num_offsets. All callers updated.
7784 * symfile.h (syms_from_objfile): Delete.
7785
7786 * symfile.c (decrement_reading_symtab): Add assert.
7787 (increment_reading_symtab): Ditto.
7788
7789 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7790
7791 * source.c (forward_search_command): Replace call to getc
7792 by call to fgetc.
7793 (reverse_search_command): Likewise.
7794
7795 2013-05-08 Doug Evans <dje@google.com>
7796
7797 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7798 matching test.
7799
7800 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7801
7802 * sol-thread.c (info_cb): Factorize the code a little.
7803
7804 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7805
7806 * sol-thread.c (info_cb): Rework the output of the "maintenance
7807 info sol-threads" command a bit.
7808
7809 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7810
7811 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7812 Replace ti.ti_startfunc by ti.ti_pc.
7813
7814 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7815
7816 * solib-aix.c (solib_aix_free_library_list): New function
7817 for the case where HAVE_LIBEXPAT is not defined.
7818
7819 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7820
7821 PR breakpoints/15413:
7822 * breakpoint.c (condition_completer): Simplify the code to
7823 disconsider multiple locations of breakpoints when completing the
7824 "condition" command.
7825
7826 2013-05-07 Pierre Muller <muller@sourceware.org>
7827
7828 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7829 instead of <sys/wait.h>.
7830
7831 2013-05-07 Pierre Muller <muller@sourceware.org>
7832
7833 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7834 trailing new line from warning message.
7835
7836 2013-05-07 Pierre Muller <muller@sourceware.org>
7837
7838 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7839 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7840
7841 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7842
7843 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7844 error message (ARI fix).
7845
7846 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7847
7848 * features/library-list-aix.dtd: Replace library-list by
7849 library-list-aix.
7850 * rs6000-nat.c: Replace library-list by library-list-aix
7851 throughout.
7852 * solib-aix.c: Likewise.
7853
7854 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7855
7856 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7857 Renames TARGET_OBJECT_AIX_LIBRARIES.
7858 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7859 TARGET_OBJECT_LIBRARIES_AIX throughout.
7860 * solib-aix.c: Likwise.
7861
7862 2013-05-07 Yao Qi <yao@codesourcery.com>
7863
7864 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7865 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7866
7867 2013-05-07 Yao Qi <yao@codesourcery.com>
7868
7869 * solib-dsbt.c (enable_break): Declare.
7870 (dsbt_current_sos): Remove call to enable_break2.
7871 (enable_break2): Rename to enable_break. Set solib breakpoint
7872 on '_dl_debug_state'.
7873 (enable_break): Remove.
7874
7875 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7876
7877 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7878 debug state prior to replicating existing hardware watchpoints or
7879 breakpoints.
7880
7881 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7882
7883 * gcore.c (gcore_create_callback): Ignore sections with
7884 separate_debug_objfile_backlink != NULL.
7885
7886 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7887 Andrew Jenner <andrew@codesourcery.com>
7888 Chung-Lin Tang <cltang@codesourcery.com>
7889 Julian Brown <julian@codesourcery.com>
7890
7891 Based on the nios2-elf port from Altera Corporation.
7892
7893 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7894 nios2-linux-tdep.o.
7895 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7896 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7897 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7898 * nios2-tdep.h: New.
7899 * nios2-tdep.c: New.
7900 * nios2-linux-tdep.c: New.
7901 * features/Makefile (WHICH): Add nios2-linux.
7902 (nios2-linux-expedite): Set.
7903 * features/nios2-cpu.xml: New.
7904 * features/nios2.xml: New.
7905 * features/nios2-linux.xml: New.
7906 * features/nios2.c: New (autogenerated).
7907 * features/nios2-linux.c: New (autogenerated).
7908 * regformats/nios2-linux.dat: New (autogenerated).
7909 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7910 and commands.
7911
7912 2013-05-06 Doug Evans <dje@google.com>
7913
7914 * symfile.c: Whitespace cleanup.
7915
7916 * solist.h (struct target_so_ops): New member clear_so.
7917 * solib-svr4.c (svr4_clear_so): New function.
7918 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7919 * solib.c (clear_so): Renamed from free_so_symbols.
7920 All callers updated. Call target clear_so if it exists.
7921
7922 2013-05-06 Tom Tromey <tromey@redhat.com>
7923
7924 * ada-lang.c (ada_value_primitive_packed_val): Don't
7925 call value_incref.
7926 * value.c (set_value_parent): Incref the new parent and decref
7927 the old parent.
7928 (value_copy, value_primitive_field): Use set_value_parent.
7929
7930 2013-05-06 Tom Tromey <tromey@redhat.com>
7931
7932 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7933 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7934 if needed.
7935 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7936 * dwarf2read.c (write_constant_as_bytes)
7937 (dwarf2_fetch_constant_bytes): New functions.
7938
7939 2013-05-06 Tom Tromey <tromey@redhat.com>
7940
7941 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7942 parameters.
7943 (dwarf2_const_value_attr): Update.
7944
7945 2013-05-06 Tom Tromey <tromey@redhat.com>
7946
7947 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7948 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7949 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7950 Remove declaration.
7951
7952 2013-05-06 Tom Tromey <tromey@redhat.com>
7953
7954 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7955 objfile's obstack.
7956
7957 2013-05-06 Doug Evans <dje@google.com>
7958
7959 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7960 * stabsread.h (process_one_symbol): Update declaration.
7961 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7962 * elfread.c (elf_symfile_relocate_probe): Ditto.
7963 * psymtab.c (relocate_psymtabs): Ditto.
7964 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7965 (objfile_relocate): Ditto.
7966 * objfiles.h (objfile_relocate): Update declaration.
7967 * symfile.c (relative_addr_info_to_section_offsets): Constify
7968 addrs parameter.
7969 (default_symfile_offsets): Ditto.
7970 (syms_from_objfile_1): Constify offsets parameter.
7971 (syms_from_objfile): Ditto.
7972 (symbol_file_add_with_addrs_or_offsets): Ditto.
7973 (symfile_map_offsets_to_segments): Constify data parameter.
7974 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7975 delta parameters of member relocate.
7976 (struct sym_probe_fns): Constify new_offsets,
7977 delta parameters of member sym_relocate_probe.
7978 (struct sym_fns): Constify section_addr_info parameter of member
7979 sym_offsets.
7980 (relative_addr_info_to_section_offsets): Update declaration.
7981 (default_symfile_offsets): Ditto.
7982 (syms_from_objfile): Ditto.
7983 (symfile_map_offsets_to_segments): Ditto.
7984
7985 * symfile.c (syms_from_objfile_1): Use correct section count when
7986 objfile->sf == NULL.
7987
7988 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7989
7990 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7991
7992 2013-05-06 Doug Evans <dje@google.com>
7993
7994 * psympriv.h (struct partial_symtab): Augment comment for member
7995 section_offsets.
7996
7997 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7998
7999 Reimplement shared library support on ppc-aix...
8000 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8001 * features/library-list-aix.dtd: New file.
8002 * solib-aix.h, solib-aix.c: New file.
8003 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8004 (rs6000_find_toc_address_hook): Delete.
8005 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8006 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8007 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8008 "xml-utils.h".
8009 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8010 (vmap_symtab, fixup_breakpoints): Delete.
8011 (rs6000_xfer_shared_libraries): New function.
8012 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8013 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8014 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8015 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8016 (rs6000_xfer_shared_library): New function.
8017 (find_toc_address): Delete.
8018 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8019 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8020 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8021 before creating minimal symbol. Adjust function description
8022 accordingly.
8023 (scan_xcoff_symtab): Replace call to
8024 prim_record_minimal_symbol_and_info by call to
8025 record_minimal_symbol.
8026 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8027 around default_symfile_offsets.
8028 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8029 powerpc-aix targets.
8030 * config/rs6000/nm-rs6000.h: Delete.
8031 * config/powerpc/aix.mh (NAT_FILE): Delete.
8032 (NATDEPFILES): Remove xcoffsolib.o.
8033 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8034 (ALL_TARGET_OBS): Add solib-aix.o.
8035 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8036 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8037 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8038 * xcoffsolib.h, xcoffsolib.c: Delete.
8039
8040 * solib.c (reload_shared_libraries): Remove reference to
8041 SOLIB_CREATE_INFERIOR_HOOK.
8042 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8043 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8044 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8045 comment.
8046 * corelow.c (deprecated_core_resize_section_table): Delete.
8047 * exec.c: Remove include of xcoffsolib.h".
8048 (map_vmap, vmap): Delete.
8049 (exec_close_1): Remove references to vmap.
8050 (exec_file_attach): Remove vmap handling code, and reference
8051 to DEPRECATED_IBM6000_TARGET.
8052 (bfdsec_to_vmap): Delete.
8053 (exec_files_info): Remove block of code handling VMAP.
8054 * infcmd.c (post_create_inferior): Remove reference to
8055 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8056 * infrun.c (follow_exec): Remove reference to
8057 SOLIB_CREATE_INFERIOR_HOOK.
8058 * stack.c (print_frame): Remove reference to PC_SOLIB.
8059 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8060 (dsbt_relocate_main_executable): Likewise.
8061 * solib-frv.c (frv_current_sos): Likewise.
8062
8063 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8064
8065 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8066 to target_write_memory and target_read_memory.
8067
8068 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8069
8070 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8071 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8072
8073 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8074
8075 * darwin-nat.c: Replace all "%x" instances in format strings
8076 into "0x%x" throughout.
8077
8078 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8079
8080 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8081 gdb_assert by call to MACH_CHECK_ERROR.
8082 (darwin_attach_pid): Raise an error rather than a failed
8083 assertion when various system calls failed. Report a warning
8084 instead of raising a failed assertion when PREV_NOT is not NULL
8085 after call to mach_port_request_notification.
8086 (darwin_ptrace_me): Raise an error rather than a failed
8087 assertion when read returns nonzero.
8088
8089 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8090
8091 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8092
8093 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8094
8095 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8096
8097 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8098
8099 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8100 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8101 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8102 a stale cleanup. Fix double free of NAME.
8103
8104 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8105
8106 * windows-nat.c (windows_delete_thread): Accept an additional
8107 argument, the thread's exit code, and announce thread death when
8108 print_thread_events is non-zero and we are deleting a thread that
8109 is not the main thread.
8110 (get_windows_debug_event): Pass thread exit code to
8111 windows_delete_thread.
8112
8113 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8114
8115 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8116 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8117 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8118 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8119 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8120 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8121 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8122 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8123 (gdbarch_tdep): New struct.
8124 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8125 E_NUM_REGS.
8126 (v850e3v5_register_name): New function.
8127 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8128 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8129 code handling the struct return conventions for the RH850 ABI.
8130 Update all callers.
8131 (v850_eight_byte_align_p): New function.
8132 (v850_push_call_dummy): Push structs by value, not by reference
8133 for the RH850 ABI. Add support for eight byte alignment.
8134 (v850_dbtrap_breakpoint_from_pc): New function.
8135 (v850_gdbarch_init): Add ABI detection code. Register
8136 v850e3v5_register_name for the v850e3v5 architecture. Set the
8137 number of registers for v850e3v5. Register
8138 v850_dbtrap_breakpoint_from_pc as appropriate.
8139 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8140
8141 2013-05-03 Doug Evans <dje@google.com>
8142
8143 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8144 of bfd_count_sections.
8145 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8146 * symfile.c (default_symfile_offsets): Ditto.
8147 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8148 one entry, not bfd_count_sections entries.
8149
8150 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8151
8152 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8153 `save' and `restore' register groups. Don't include SPL
8154 or SPH in these groups.
8155 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8156 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8157 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8158 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8159 dwarf2_append_unwinders().
8160
8161 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8162
8163 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8164 ignore SIGINT and SIGTRAP in case these internal signals are
8165 caught explicitely.
8166
8167 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8168
8169 * darwin-nat.c (darwin_read_write_inferior): Change types
8170 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8171 of copy_count to "mach_msg_type_number_t".
8172 (darwin_read_dyld_info): Change type of parameter
8173 rdaddr to "gdb_byte *".
8174
8175 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8176
8177 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8178 of &info->load_map from "char *" to "gdb_byte *".
8179
8180 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8181
8182 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8183 from "char *" to "gdb_byte *".
8184 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8185
8186 2013-04-30 Doug Evans <dje@google.com>
8187
8188 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8189 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8190 DWO stub. If DWO isn't found, just use stub.
8191 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8192
8193 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8194 calling init_cutu_and_read_dies.
8195
8196 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8197
8198 * target-descriptions.c (maint_print_c_tdesc_cmd):
8199 Add case to parse structures as register types and
8200 bitfields.
8201
8202 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8203
8204 * MAINTAINERS (Write After Approval): Add myself to the list.
8205
8206 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8207
8208 * sol-thread.c (rw_common): Change type of parameter "buf"
8209 to "gdb_byte *".
8210 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8211 rw_common to "gdb_byte *" instead of "char *".
8212
8213 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8214
8215 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8216 of local variable msym to const struct bound_minimal_symbol.
8217 Adjust use accordingly.
8218 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8219
8220 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8221
8222 * i386gnu-nat.c (CREG_OFFSET): New macro.
8223 (creg_offset): New array.
8224 (CREG_ADDR): Use creg_offset instead of reg_offset.
8225
8226 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8227
8228 * mep-tdep.c (mep_write_pc): Delete.
8229 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8230 Add call to set_gdbarch_pc_regnum.
8231
8232 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8233
8234 * common/filestuff.c: Replace #include <dirent.h> by
8235 #include "gdb_dirent.h".
8236
8237 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8238
8239 * common/filestuff.c: Replace #include <sys/stat.h> by
8240 #include "gdb_stat.h".
8241
8242 2013-04-29 Pierre Muller <muller@sourceware.org>
8243
8244 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8245 editCase function rule.
8246 (get_DW_AT_signature_type): Likewise.
8247
8248 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8249
8250 * m32r-tdep.c (m32r_write_pc): Delete.
8251 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8252 Add call to set_gdbarch_pc_regnum.
8253
8254 2013-04-29 Pierre Muller <muller@sourceware.org>
8255
8256 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8257
8258 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8259
8260 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8261
8262 2013-04-28 Yao Qi <yao@codesourcery.com>
8263
8264 * solib-dsbt.c (fetch_loadmap): Re-indent.
8265 (displacement_from_map, enable_break2): Likewise.
8266 (dsbt_relocate_section_addresses): Likewise.
8267
8268 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8269
8270 GDB 7.6 released.
8271
8272 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8273
8274 PR corefiles/14983:
8275 * dwarf2read.c (process_full_comp_unit): Always create a static
8276 block.
8277
8278 2013-04-25 Hui Zhu <hui@codesourcery.com>
8279
8280 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8281 to loc->cmd_bytecode.
8282
8283 2013-04-24 Doug Evans <dje@google.com>
8284
8285 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8286
8287 2013-04-22 Keith Seitz <keiths@redhat.com>
8288
8289 * tracepoint.c (trace_save): Call the writer's start method.
8290
8291 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8292
8293 PR gdb/10462
8294 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8295 before argument.
8296
8297 2013-04-23 Tom Tromey <tromey@redhat.com>
8298
8299 * common/filestuff.c: Check USE_WIN32API before including
8300 sys/socket.h.
8301 (HAVE_F_GETFD): New define.
8302 (mark_cloexec): Check HAVE_F_GETFD.
8303 (gdb_open_cloexec): Change 'mode' to unsigned long.
8304 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8305 (gdb_pipe_cloexec): Check HAVE_PIPE.
8306 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8307 long.
8308
8309 2013-04-23 Hui Zhu <hui@codesourcery.com>
8310
8311 PR gdb/15293
8312 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8313
8314 2013-04-23 Hui Zhu <hui@codesourcery.com>
8315
8316 PR gdb/15165
8317 * breakpoint.c (dprintf_print_recreate): New.
8318 (save_breakpoints): Let it not save dprintf commands.
8319 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8320
8321 2013-04-22 Tom Tromey <tromey@redhat.com>
8322
8323 PR gdb/7912:
8324 * Makefile.in (SFILES): Add filestuff.c
8325 (COMMON_OBS): Add filestuff.o.
8326 (filestuff.o): New target.
8327 * auto-load.c (auto_load_objfile_script_1): Use
8328 gdb_fopen_cloexec.
8329 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8330 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8331 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8332 * common/agent.c (gdb_connect_sync_socket): Use
8333 gdb_socket_cloexec.
8334 * common/filestuff.c: New file.
8335 * common/filestuff.h: New file.
8336 * common/linux-osdata.c (linux_common_core_of_thread)
8337 (command_from_pid, commandline_from_pid, print_source_lines)
8338 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8339 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8340 gdb_fopen_cloexec.
8341 * common/linux-procfs.c (linux_proc_get_int)
8342 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8343 * config.in, configure: Rebuild.
8344 * configure.ac: Don't check for sys/socket.h. Check for
8345 fdwalk, pipe2.
8346 * corelow.c (core_open): Use gdb_open_cloexec.
8347 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8348 * fork-child.c (fork_inferior): Call close_most_fds.
8349 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8350 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8351 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8352 Use gdb_fopen_cloexec.
8353 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8354 gdb_open_cloexec.
8355 (linux_async_pipe): Use gdb_pipe_cloexec.
8356 * remote-fileio.c (remote_fileio_func_open): Use
8357 gdb_open_cloexec.
8358 * remote.c (remote_file_put, remote_file_get): Use
8359 gdb_fopen_cloexec.
8360 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8361 close_most_fds.
8362 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8363 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8364 * solib.c (solib_find): Use gdb_open_cloexec.
8365 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8366 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8367 (tfile_open): Use gdb_open_cloexec.
8368 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8369 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8370 * xml-support.c (xml_fetch_content_from_file): Use
8371 gdb_fopen_cloexec.
8372 * main.c (captured_main): Call notice_open_fds.
8373
8374 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8375
8376 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8377 'char *' to 'gdb_byte *'.
8378 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8379 'gdb_byte'.
8380
8381 2013-04-22 Yao Qi <yao@codesourcery.com>
8382
8383 * infrun.c: Fix typo in comment.
8384
8385 2013-04-22 Andrew Haley <aph@redhat.com>
8386
8387 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8388 instead of "long".
8389
8390 2013-04-20 Yao Qi <yao@codesourcery.com>
8391
8392 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8393 'char *' to 'gdb_byte *'. Cast the return value of
8394 'bt_ctf_get_char_array' to 'gdb_byte *'.
8395
8396 2013-04-19 Pedro Alves <palves@redhat.com>
8397
8398 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8399 -Wpointer-sign.
8400 * configure: Regenerate.
8401
8402 2013-04-19 Pedro Alves <palves@redhat.com>
8403
8404 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8405 'void *'.
8406
8407 2013-04-19 Pedro Alves <palves@redhat.com>
8408
8409 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8410 Change type of 'myaddr' parameter to gdb_byte pointer.
8411 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8412 to 'long long' pointer instead of to 'unsigned long long'.
8413 (monitor_write_memory_block, monitor_read_memory_single)
8414 (monitor_read_memory): Change type of 'myaddr' parameter to
8415 gdb_byte pointer.
8416
8417 2013-04-19 Pedro Alves <palves@redhat.com>
8418
8419 * record.c (validate_history_size): Make parameter 'setting'
8420 unsigned.
8421
8422 2013-04-19 Pedro Alves <palves@redhat.com>
8423
8424 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8425 to 'gdb_byte *'.
8426
8427 2013-04-19 Pedro Alves <palves@redhat.com>
8428
8429 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8430 local to int.
8431
8432 2013-04-19 Pedro Alves <palves@redhat.com>
8433
8434 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8435 * ada-tasks.c (read_fat_string_value): Likewise.
8436
8437 2013-04-19 Pedro Alves <palves@redhat.com>
8438
8439 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8440 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8441 'offset', and adjust.
8442
8443 2013-04-19 Pedro Alves <palves@redhat.com>
8444
8445 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8446 (read_index_from_section): Add cast to 'char *'.
8447
8448 2013-04-19 Pedro Alves <palves@redhat.com>
8449
8450 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8451
8452 2013-04-19 Pedro Alves <palves@redhat.com>
8453
8454 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8455
8456 2013-04-19 Pedro Alves <palves@redhat.com>
8457
8458 * record-full.c (record_full_get_bookmark): Change local 'ret'
8459 type to char * and add cast to gdb_byte *.
8460 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8461 string.
8462 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8463
8464 2013-04-19 Pedro Alves <palves@redhat.com>
8465
8466 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8467 * python/py-prettyprint.c (print_string_repr): Change type of
8468 'output' local to char *. Add cast to gdb_byte * in
8469 LA_PRINT_STRING call.
8470 (print_children): Change type of 'output' local to char *.
8471 * python/py-value.c (valpy_string): Add cast to const char * in
8472 PyUnicode_Decode call.
8473
8474 2013-04-19 Pedro Alves <palves@redhat.com>
8475
8476 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8477 and change its type to 'const char *'. Adjust.
8478 (mips_send_packet): Add cast to 'char *', and remove cast to
8479 'unsigned char *'.
8480 (mips_receive_packet): Remove cast to 'unsigned char *'.
8481 (mips_load_srec): Use bfd_byte.
8482 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8483 (pmon_checkset): Make 'value' parameter unsigned.
8484
8485 2013-04-19 Pedro Alves <palves@redhat.com>
8486
8487 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8488
8489 2013-04-19 Pedro Alves <palves@redhat.com>
8490
8491 * remote.c (remote_write_bytes_aux, compare_sections_command)
8492 (remote_read_qxfer)
8493 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8494 (remote_hostio_readlink, remote_bfd_iovec_pread)
8495 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8496 binary buffer, and char when buffer is used as string.
8497 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8498 (trace_save, tfile_open, traceframe_walk_blocks)
8499 (tfile_fetch_registers): Likewise.
8500
8501 2013-04-19 Pedro Alves <palves@redhat.com>
8502
8503 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8504 buffer and size_t size. Adjust.
8505 * ser-base.h (ser_base_write): Adjust.
8506 * ser-go32.c (cnts): Change type to size_t.
8507 (dos_write): Change prototype -- take 'void *'
8508 buffer and size_t size. Adjust.
8509 (dos_info): Print elements of 'cnts' as unsigned long.
8510 * serial.c (serial_write): Likewise.
8511 * serial.h (serial_write): Adjust.
8512 (struct serial_ops) <write>: Change prototype -- take 'void *'
8513 buffer and size_t size. Adjust.
8514
8515 2013-04-19 Pedro Alves <palves@redhat.com>
8516
8517 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8518 gdb_byte *.
8519 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8520
8521 2013-04-19 Pedro Alves <palves@redhat.com>
8522
8523 * alpha-tdep.c (alpha_extract_return_value): Use
8524 regcache_cooked_read_unsigned to read 'v0'.
8525
8526 2013-04-19 Pedro Alves <palves@redhat.com>
8527
8528 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8529 parameters 'at', 'as' and 'offset' to uint32_t.
8530
8531 2013-04-19 Pedro Alves <palves@redhat.com>
8532
8533 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8534 'is64' to signed 'int'.
8535
8536 2013-04-19 Pedro Alves <palves@redhat.com>
8537
8538 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8539 parameter to int *.
8540
8541 2013-04-19 Pedro Alves <palves@redhat.com>
8542
8543 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8544 'insnbuf' buffer type to unsigned int[].
8545
8546 2013-04-19 Pedro Alves <palves@redhat.com>
8547
8548 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8549
8550 2013-04-19 Pedro Alves <palves@redhat.com>
8551
8552 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8553 unsigned long *.
8554
8555 2013-04-19 Pedro Alves <palves@redhat.com>
8556
8557 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8558 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8559 UINT_MAX.
8560 * mips-tdep.c (heuristic_fence_post): Change type to int.
8561 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8562
8563 2013-04-19 Pedro Alves <palves@redhat.com>
8564
8565 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8566 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8567 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8568
8569 2013-04-19 Pedro Alves <palves@redhat.com>
8570
8571 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8572 it to get a string view of the byte buffer.
8573 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8574 type to gdb_byte *. Adjust.
8575 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8576 Change local to char *.
8577 * solib-darwin.c (find_program_interpreter): Change return type to
8578 char *. Adjust.
8579 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8580 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8581 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8582 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8583 * solib-svr4.c (find_program_interpreter): Change return type to
8584 char *. Adjust.
8585 (enable_break): Change local 'interp_name' to char *.
8586 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8587 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8588 (spu_pseudo_register_write_spu): Use char for string buffer.
8589 Adjust.
8590 (info_spu_event_command, info_spu_signal_command): Add casts to
8591 'char *'.
8592
8593 2013-04-19 Pedro Alves <palves@redhat.com>
8594
8595 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8596 gdb_byte[].
8597 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8598 * ada-lang.c (ada_value_assign): Use gdb_byte.
8599 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8600 (alphanbsd_sigtramp_offset): Use gdb_byte.
8601 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8602 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8603 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8604 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8605 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8606 * arm-tdep.c (arm_stub_unwind_sniffer)
8607 (arm_displaced_init_closure): Use gdb_byte.
8608 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8609 (arm_default_thumb_le_breakpoint)
8610 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8611 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8612 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8613 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8614 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8615 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8616 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8617 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8618 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8619 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8620 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8621 (cris_store_return_value, cris_extract_return_value): Use
8622 gdb_byte.
8623 (constraint): Change type of parameter to char * from signed
8624 char*. Use gdb_byte.
8625 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8626 of local buffer to gdb_byte *.
8627 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8628 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8629 (add_address_entry): Change type of local buffer to gdb_byte[].
8630 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8631 (frv_push_dummy_call): Use gdb_byte.
8632 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8633 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8634 (hppa_hpux_supply_save_state): Use gdb_byte.
8635 * hppa-tdep.c (hppa32_push_dummy_call)
8636 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8637 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8638 (slotN_contents, replace_slotN_contents): Change type of parameter
8639 to gdb_byte *.
8640 (fetch_instruction, ia64_pseudo_register_write)
8641 (ia64_register_to_value, ia64_value_to_register)
8642 (ia64_extract_return_value, ia64_store_return_value)
8643 (ia64_push_dummy_call): Use gdb_byte.
8644 * m32c-tdep.c (m32c_return_value): Remove cast.
8645 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8646 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8647 gdb_byte.
8648 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8649 * mn10300-tdep.c (mn10300_store_return_value)
8650 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8651 gdb_byte.
8652 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8653 (moxie_process_record): Remove casts.
8654 * ppc-ravenscar-thread.c (supply_register_at_address)
8655 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8656 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8657 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8658 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8659 * remote.c (compare_sections_command): Use gdb_byte.
8660 * score-tdep.c (score7_free_memblock): Change type of parameter to
8661 gdb_byte *.
8662 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8663 gdb_byte *. Use gdb_byte.
8664 (sh_push_dummy_call_fpu): Use gdb_byte.
8665 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8666 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8667 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8668 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8669 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8670 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8671 (sh64_store_return_value, sh64_register_convert_to_virtual):
8672 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8673 (sh64_pseudo_register_write): Use gdb_byte.
8674 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8675 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8676 buffer.
8677 (irix_current_sos): Use gdb_byte.
8678 * solib-som.c (som_current_sos): Use gdb_byte.
8679 * sparc-ravenscar-thread.c (supply_register_at_address)
8680 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8681 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8682 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8683 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8684 'gdb_byte *'.
8685 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8686 'gdb_byte *'.
8687 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8688 * xstormy16-tdep.c (xstormy16_extract_return_value)
8689 (xstormy16_store_return_value): Change parameter type to
8690 'gdb_byte *'. Adjust.
8691 (xstormy16_push_dummy_call): Use gdb_byte.
8692 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8693 (call0_analyze_prologue, execute_code): Use gdb_byte.
8694
8695 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8696 Pedro Alves <palves@redhat.com>
8697
8698 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8699 value contents.
8700
8701 2013-04-17 Doug Evans <dje@google.com>
8702
8703 * dwarf2read.c (struct signatured_type): New member type.
8704 (struct attribute): Replace member signatured_type with signature.
8705 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8706 (read_call_site_scope): Call follow_die_ref instead of
8707 follow_die_ref_or_sig.
8708 (read_structure_type): Rewrite handling of signatured types.
8709 (read_enumeration_type): Ditto.
8710 (read_attribute_value): Update.
8711 (build_error_marker_type): New function.
8712 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8713 Don't call error for bad types, just build an error marker type.
8714 (dump_die_shallow): Update.
8715 (follow_die_sig_1): Renamed from follow_die_sig.
8716 Don't call error for bad types, instead return NULL.
8717 (follow_die_sig): New function.
8718 (get_signatured_type, get_DW_AT_signature_type): New functions.
8719
8720 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8721
8722 * aarch64-tdep.c (aarch64_write_pc): Removed.
8723 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8724 function.
8725
8726 2013-04-17 Yao Qi <yao@codesourcery.com>
8727
8728 * top.c (print_gdb_configuration): Print configure-time
8729 parameter on using libbabeltrace or not.
8730
8731 2013-04-16 Pedro Alves <palves@redhat.com>
8732
8733 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8734
8735 2013-04-16 Pedro Alves <palves@redhat.com>
8736
8737 * common/glibc_thread_db.h: Update from upstream glibc
8738 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8739
8740 2013-04-16 Pedro Alves <palves@redhat.com>
8741
8742 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8743 * common/glibc_thread_db.h: ... this new file ...
8744 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8745
8746 2013-04-16 Will Newton <will.newton@gmail.com>
8747 Pedro Alves <palves@redhat.com>
8748
8749 PR build/11881
8750
8751 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8752 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8753 HAVE_THREAD_DB_H.
8754
8755 2013-04-16 Pedro Alves <palves@redhat.com>
8756 Eli Zaretskii <eliz@gnu.org>
8757
8758 * NEWS: Mention "set foo unlimited".
8759
8760 2013-04-15 Doug Evans <dje@google.com>
8761
8762 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8763 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8764 (create_dwo_cu_reader): Renamed from
8765 create_dwo_debug_info_hash_table_reader.
8766 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8767 Remove support for multiple CUs in a DWO file.
8768 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8769
8770 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8771 instead of phex.
8772 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8773 (create_dwo_in_dwp): Ditto.
8774
8775 2013-04-15 Tom Tromey <tromey@redhat.com>
8776
8777 * NEWS: Move recent entries into "since 7.6" section.
8778
8779 2013-04-15 Tom Tromey <tromey@redhat.com>
8780
8781 PR c++/13588:
8782 * NEWS: Update.
8783 * break-catch-throw.c (struct exception_catchpoint)
8784 <exception_rx, pattern>: New fields.
8785 (fetch_probe_arguments, dtor_exception_catchpoint)
8786 (check_status_exception_catchpoint)
8787 (print_one_detail_exception_catchpoint): New functions.
8788 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8789 Compile regular expression if needed.
8790 (extract_exception_regexp): New function.
8791 (catch_exception_command_1): Use extract_exception_regexp.
8792 (compute_exception): Use fetch_probe_arguments.
8793 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8794 and check_status fields.
8795 * cp-abi.c (cplus_typename_from_type_info): New function.
8796 * cp-abi.h (cplus_typename_from_type_info): Declare.
8797 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8798 * gdb_regex.h (compile_rx_or_error): Declare.
8799 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8800 comment.
8801 (init_gnuv3_ops): Set get_type_from_type_info field.
8802 * probe.c (compile_rx_or_error): Move...
8803 * utils.c (compile_rx_or_error): ... here.
8804
8805 2013-04-15 Tom Tromey <tromey@redhat.com>
8806
8807 PR c++/15176:
8808 * NEWS: Update.
8809 * break-catch-throw.c (compute_exception): New function.
8810 (exception_funcs): New global.
8811 (_initialize_break_catch_throw): Create $_exception.
8812 * cp-abi.c (cplus_type_from_type_info): New function.
8813 * cp-abi.h (cplus_type_from_type_info): Declare.
8814 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8815 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8816 (gnuv3_get_type_from_type_info): New functions.
8817 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8818
8819 2013-04-15 Tom Tromey <tromey@redhat.com>
8820
8821 * break-catch-throw.c (struct exception_names): New.
8822 (exception_functions): Change type.
8823 (re_set_exception_catchpoint): Look for SDT probes.
8824
8825 2013-04-15 Tom Tromey <tromey@redhat.com>
8826
8827 PR c++/10119:
8828 * break-catch-throw.c (exception_functions): New global.
8829 (gnu_v3_exception_catchpoint_ops): Move earlier.
8830 (struct exception_catchpoint): New.
8831 (classify_exception_breakpoint): Rewrite.
8832 (re_set_exception_catchpoint): New function.
8833 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8834 Allocate a struct exception_catchpoint.
8835 (catch_exception_command_1): Update.
8836 (initialize_throw_catchpoint_ops): Set 're_set' method.
8837
8838 2013-04-15 Tom Tromey <tromey@redhat.com>
8839
8840 * Makefile.in (SFILES): Add break-catch-throw.c
8841 (COMMON_OBS): Add break-catch-throw.o.
8842 * break-catch-throw.c: New file.
8843 * breakpoint.c: Move exception-catching code to new file.
8844 (ep_parse_optional_if_clause): No longer static.
8845 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8846
8847 2013-04-15 Tom Tromey <tromey@redhat.com>
8848
8849 PR c++/9065:
8850 * NEWS: Update.
8851 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8852 * c-exp.y (TYPEID): New token.
8853 (exp): Add new TYPEID productions.
8854 (ident_tokens): Add "typeid".
8855 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8856 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8857 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8858 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8859 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8860 case.
8861 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8862 (build_std_type_info_type, gnuv3_get_typeid_type)
8863 (gnuv3_get_typeid): New functions.
8864 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8865 new fields on ABI object.
8866 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8867 * std-operator.def (OP_TYPEID): New.
8868
8869 2013-04-15 Tom Tromey <tromey@redhat.com>
8870
8871 * elfread.c (elf_symtab_read): Install versioned symbol under
8872 unversioned name as well.
8873
8874 2013-04-15 Tom Tromey <tromey@redhat.com>
8875
8876 PR c++/11990:
8877 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8878 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8879 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8880 (gdb_demangle): New function.
8881 * cp-support.h (gdb_demangle): Declare.
8882 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8883 (dwarf2_name): Use gdb_demangle.
8884 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8885 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8886 suffixes from name.
8887 (gnuv3_print_method_ptr): Use gdb_demangle.
8888 * jv-lang.c (java_demangle): Use gdb_demangle.
8889 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8890 * language.c (unk_lang_demangle): Use gdb_demangle.
8891 * symtab.c (symbol_find_demangled_name)
8892 (demangle_for_lookup): Use gdb_demangle.
8893
8894 2013-04-15 Tom Tromey <tromey@redhat.com>
8895
8896 PR c++/12824:
8897 * NEWS: Update.
8898 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8899 New constant.
8900 (classify_exception_breakpoint): New function.
8901 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8902 (print_mention_exception_catchpoint)
8903 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8904 (catch_exception_command_1): Handle "rethrow" catchpoint.
8905 (catch_rethrow_command): New function.
8906 (_initialize_breakpoint): Add "catch rethrow" command.
8907
8908 2013-04-15 Pierre Muller <muller@sourceware.org>
8909
8910 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8911 set_gdbarch_write_pc as deprecated anymore.
8912
8913 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8914
8915 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8916 declarations.
8917
8918 2013-04-13 Yao Qi <yao@codesourcery.com>
8919
8920 * ctf.c (_initialize_ctf): Include "completer.h".
8921 Call add_target_with_completer instead of add_target.
8922
8923 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8924
8925 Fix GDB regression related to PR binutils/14813.
8926 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8927 * minidebug.c (lzma_close): Add return value comment.
8928 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8929 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8930 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8931
8932 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 * config.in: Regenerate.
8935
8936 2013-04-12 Tom Tromey <tromey@redhat.com>
8937
8938 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8939 const.
8940 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8941 (struct die_reader_specs) <buffer>: Likewise.
8942 (die_reader_func_ftype): Make 'info_ptr' const.
8943 (struct line_header) <include_dirs, statement_program_start,
8944 statement_program_end>: Now const.
8945 (struct file_entry) <name>: Likewise.
8946 (struct partial_die_info) <sibling>: Likewise.
8947 (struct dwarf_block) <data>: Likewise.
8948 (dwarf2_read_section): Remove cast.
8949 (dwarf2_get_section_info): Make 'bufp' const.
8950 (read_index_from_section): Constify.
8951 (dw2_get_file_names_reader): Make 'info_ptr' const.
8952 (dw2_get_primary_filename_reader): Likewise.
8953 (read_comp_unit_head): Make 'info_ptr' and return type const.
8954 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8955 Likewise.
8956 (read_abbrev_offset): Constify.
8957 (dwarf2_create_include_psymtab): Make 'name' const.
8958 (create_debug_types_hash_table): Update.
8959 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8960 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8961 Constify.
8962 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8963 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8964 (read_comp_units_from_section): Constify.
8965 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8966 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8967 const.
8968 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8969 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8970 (create_dwp_hash_table, dwarf2_ranges_read)
8971 (dwarf2_record_block_ranges): Constify.
8972 (read_die_and_children, read_die_and_siblings_1)
8973 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8974 const.
8975 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8976 (abbrev_table_read_table): Constify.
8977 (load_partial_dies): Make 'info_ptr' const.
8978 (read_partial_die, read_attribute_value, read_attribute): Make
8979 'info_ptr' and return type const.
8980 (read_address, read_initial_length)
8981 (read_checked_initial_length_and_offset, read_offset)
8982 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8983 const.
8984 (read_direct_string): Make 'buf' and return type const.
8985 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8986 (read_indirect_string): Make return type const.
8987 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8988 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8989 'info_ptr' const.
8990 (read_str_index): Make return type const.
8991 (add_include_dir): Make 'include_dir' const.
8992 (add_file_name): Make 'name' const.
8993 (dwarf_decode_line_header): Constify.
8994 (psymtab_include_file_name): Make return type const.
8995 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8996 (dwarf2_start_subfile): Make 'filename' const.
8997 (dwarf2_const_value_attr): Make 'bytes' const.
8998 (read_signatured_type_reader): Make 'info_ptr' const.
8999 (decode_locdesc): Constify.
9000 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9001 const.
9002 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9003 'mac_end', and return type const.
9004 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9005 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9006 type const.
9007 (per_cu_header_read_in): Constify.
9008 * symfile.h (dwarf2_get_section_info): Update.
9009
9010 2013-04-12 Tom Tromey <tromey@redhat.com>
9011
9012 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9013
9014 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9015
9016 * NEWS: Mention "show configuration", --configuration.
9017 * top.c (print_gdb_configuration): New function, displays the
9018 details about GDB configure-time parameters.
9019 (print_gdb_version): Mention "show configuration".
9020 * cli/cli-cmds.c (show_configuration): New function.
9021 (_initialize_cli_cmds): Add the "show configuration" command.
9022 * main.c (captured_main) <print_configuration>: New static var.
9023 <long_options>: Use it.
9024 If --configuration was given, call print_gdb_configuration.
9025
9026 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9027 Pedro Alves <palves@redhat.com>
9028
9029 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9030 (generated_files): Add gcore.
9031 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9032 HAVE_NATIVE_GCORE_HOST.
9033 (gcore): New.
9034 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9035 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9036 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9037 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9038 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9039 Add HAVE_NATIVE_GCORE_HOST.
9040 * configure: Regenerate.
9041 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9042 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9043 AC_CONFIG_FILES for gcore.
9044 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9045 gdb_have_gcore.
9046 * gdb_gcore.sh: Rename to ...
9047 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9048 and GCORE_TRANSFORM_NAME substitutions.
9049
9050 Fix parsing tabs in ${gdb_target_obs}.
9051 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9052
9053 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9054
9055 * remote.c (unpush_and_perror): Add output message final dot.
9056
9057 2013-04-11 Yao Qi <yao@codesourcery.com>
9058
9059 * tracepoint.c (tfile_interp_line): Fit parameters line and
9060 utpp in one line.
9061
9062 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9063
9064 * solib.c (solib_map_sections): Remove code overwriting
9065 SO->SO_NAME with the bfd's filename.
9066
9067 2013-04-10 Pedro Alves <palves@redhat.com>
9068
9069 * cli/cli-decode.c (integer_unlimited_completer): New function.
9070 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9071 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9072 completer.
9073 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9074 (is_unlimited_literal): New function.
9075 (do_set_command): Handle literal "unlimited" arguments.
9076 * frame.c (_initialize_frame) <set backtrace limit>: Document
9077 "unlimited".
9078 * printcmd.c (_initialize_printcmd) <set print
9079 max-symbolic-offset>: Add help text.
9080 * record-full.c (_initialize_record_full) <set record full
9081 insn-number-max>: Likewise.
9082 * record.c (_initialize_record) <set record
9083 instruction-history-size, set record function-call-history-size>:
9084 Add help text.
9085 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9086 help text.
9087 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9088 Likewise.
9089 * source.c (_initialize_source) <set listsize>: Add help text.
9090 * utils.c (initialize_utils) <set height, set width>: Likewise.
9091 <set pagination>: Mention "set height unlimited".
9092 * valprint.c (_initialize_valprint) <set print elements, set print
9093 repeats>: Document "unlimited".
9094
9095 2013-04-10 Pedro Alves <palves@redhat.com>
9096
9097 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9098 instead of disconnect_tracing.
9099 * infcmd.c (detach_command, disconnect_command): Call
9100 query_if_trace_running. Adjust.
9101 * top.c: Include "tracepoint.h".
9102 (quit_target): Delete. Contents moved ...
9103 (quit_force): ... here. Wrap each stage of teardown in
9104 TRY_CATCH. Call disconnect_tracing before detaching.
9105
9106 2013-04-10 Hui Zhu <hui@codesourcery.com>
9107 Yao Qi <yao@codesourcery.com>
9108
9109 * configure.ac: Check libbabeltrace is installed.
9110 * config.in: Regenerate.
9111 * configure: Regenerate.
9112 * Makefile.in (LIBBABELTRACE): New.
9113 (CLIBS): Add LIBBABELTRACE.
9114 * ctf.c: Include "exec.h".
9115 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9116 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9117 (ctf_save_metadata_header): Define new type aliases in
9118 metadata.
9119 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9120 in metadata. Start a new faked packet for trace status.
9121 (ctf_write_status): Write trace status to CTF.
9122 (ctf_write_uploaded_tsv): Write TSV to CTF.
9123 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9124 (ctf_write_definition_end): End the faked packet.
9125
9126 (ctx, ctf_iter, trace_dirname): New.
9127 (start_pos): New variable.
9128 (ctf_destroy, ctf_open_dir, ctf_open): New.
9129 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9130 macros.
9131 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9132 (ctf_fetch_registers, ctf_xfer_partial): New.
9133 (ctf_get_trace_state_variable_value): New.
9134 (ctf_get_tpnum_from_frame_event): New.
9135 (ctf_get_traceframe_address): New.
9136 (ctf_trace_find, ctf_has_stack): New.
9137 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9138 (ctf_get_trace_status, ctf_read_status): New.
9139 (_initialize_ctf): New.
9140 * tracepoint.c (get_tracepoint_number): New
9141 (get_uploaded_tsv): Remove 'static'.
9142 (struct traceframe_info, trace_regblock_size): Move it to ...
9143 * tracepoint.h: ... here.
9144 (get_tracepoint_number): Declare it.
9145 (get_uploaded_tsv): Declare it.
9146
9147 * NEWS: Mention new configure option.
9148
9149 2013-04-10 Pedro Alves <palves@redhat.com>
9150 Hui Zhu <hui@codesourcery.com>
9151
9152 * breakpoint.c (dprintf_re_set): New.
9153 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9154 to dprintf_re_set.
9155
9156 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9157
9158 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9159 Remove solib-svr4.o from the list.
9160
9161 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9162
9163 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9164 Use gdb_assert_not_reached instead of invalid boolean expression.
9165
9166 2013-04-09 Pedro Alves <palves@redhat.com>
9167
9168 * remote.c (unpush_and_perror): New function.
9169 (readchar, remote_serial_write): Use it.
9170
9171 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9172
9173 * NEWS: Mention new btrace RSP packets.
9174
9175 2013-04-08 Tom Tromey <tromey@redhat.com>
9176
9177 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9178 long.
9179
9180 2013-04-08 Tom Tromey <tromey@redhat.com>
9181
9182 * maint.c (print_bfd_section_info): Print the section index.
9183 * symmisc.c (dump_msymbols): Print the section index.
9184
9185 2013-04-08 Tom Tromey <tromey@redhat.com>
9186
9187 PR symtab/8424:
9188 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9189 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9190 * breakpoint.c (resolve_sal_pc): Update.
9191 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9192 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9193 (minsym_lookup_iterator_cb): Use it.
9194 (default_read_var_value): Update.
9195 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9196 Update.
9197 * infcmd.c (jump_command): Update.
9198 * linespec.c (minsym_found): Update.
9199 * maint.c (maintenance_translate_address): Update.
9200 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9201 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9202 * parse.c (write_exp_msymbol): Update.
9203 * printcmd.c (address_info): Update.
9204 * psymtab.c (find_pc_sect_psymbol): Update.
9205 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9206 SYMBOL_OBJ_SECTION.
9207 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9208 Don't initialize SYMBOL_OBJ_SECTION.
9209 * spu-tdep.c (spu_catch_start): Update.
9210 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9211 * symmisc.c (dump_msymbols, print_symbol): Update.
9212 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9213 how fallback section is computed.
9214 (fixup_symbol_section): Update.
9215 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9216 Update.
9217 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9218 Initialize SYMBOL_SECTION.
9219 * symtab.h (struct general_symbol_info) <section>: Update comment.
9220 <obj_section>: Remove.
9221 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9222 (SYMBOL_OBJFILE): New macro.
9223
9224 2013-04-08 Tom Tromey <tromey@redhat.com>
9225
9226 * coffread.c (record_minimal_symbol): Update.
9227 * dbxread.c (record_minimal_symbol): Update.
9228 * elfread.c (record_minimal_symbol): Update.
9229 * machoread.c (macho_symtab_add_minsym): Update.
9230 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9231 Update.
9232 * minsyms.c (prim_record_minimal_symbol): Update.
9233 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9234 argument.
9235 (prim_record_minimal_symbol_and_info): Likewise.
9236 * minsyms.h (prim_record_minimal_symbol_full)
9237 (prim_record_minimal_symbol_and_info): Update.
9238 * symtab.c (allocate_symbol, initialize_symbol)
9239 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9240 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9241 Update.
9242
9243 2013-04-08 Tom Tromey <tromey@redhat.com>
9244
9245 PR symtab/8423:
9246 * solib-som.c (som_solib_section_offsets): Use BFD section
9247 indices. Set offsets for all sections.
9248 * somread.c (som_symtab_read): Compute BFD section for
9249 symbol. Use prim_record_minimal_symbol_and_info.
9250 (som_symfile_read): Fix comment.
9251 (struct find_section_offset_arg): New.
9252 (find_section_offset, set_section_index): New functions.
9253 (som_symfile_offsets): Use set_section_index to compute
9254 section indices.
9255
9256 2013-04-08 Tom Tromey <tromey@redhat.com>
9257
9258 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9259 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9260 gdb_bfd_section_index.
9261 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9262 New functions.
9263 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9264 Declare.
9265 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9266 Update.
9267 * objfiles.c (add_to_objfile_sections_full): New function.
9268 (add_to_objfile_sections): Use it.
9269 (build_section_table): Rewrite.
9270 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9271 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9272 (struct objfile) <sections>: Update comment.
9273 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9274 is NULL.
9275 (ALL_OBJSECTIONS): Use it.
9276 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9277 * solib-frv.c (frv_relocate_main_executable): Update.
9278 * solib-target.c (solib_target_relocate_section_addresses):
9279 Use gdb_bfd_section_index.
9280 * symfile.c (build_section_addr_info_from_section_table):
9281 Use gdb_bfd_section_index.
9282 (build_section_addr_info_from_bfd, place_section): Likewise.
9283 * symtab.c (fixup_section): Update.
9284 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9285
9286 2013-04-08 Tom Tromey <tromey@redhat.com>
9287
9288 * minsyms.h (struct bound_minimal_symbol): New.
9289 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9290 Remove objfile argument.
9291 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9292 Return bound_minimal_symbol.
9293 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9294 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9295 Return bound_minimal_symbol.
9296 (in_gnu_ifunc_stub): Update.
9297 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9298 Remove 'objfile_p' argument.
9299 (lookup_solib_trampoline_symbol_by_pc): Update.
9300 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9301 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9302 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9303 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9304 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9305 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9306 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9307 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9308 stack.c, symtab.c, tui/tui-disasm.c: Update.
9309
9310 2013-04-08 Tom Tromey <tromey@redhat.com>
9311
9312 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9313 Use symbol's obstack, not an objfile.
9314 * coffread.c (process_coff_symbol): Update.
9315 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9316 * jv-lang.c (add_class_symbol): Update.
9317 * mdebugread.c (new_symbol): Update.
9318 * minsyms.c (prim_record_minimal_symbol_full)
9319 (terminate_minimal_symbol_table): Update.
9320 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9321 * stabsread.c (define_symbol, read_enum_type): Update.
9322 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9323 Handle Ada specially.
9324 (symbol_set_language): Add 'obstack' argument.
9325 (symbol_set_names): Update.
9326 (symbol_natural_name, symbol_demangled_name): Always use
9327 ada_decode_symbol.
9328 * symtab.h (struct general_symbol_info)
9329 <language_specific::obstack>: New field.
9330 <ada_mangled>: New field.
9331 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9332 (symbol_set_language): Update.
9333
9334 2013-04-08 Tom Tromey <tromey@redhat.com>
9335
9336 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9337 Take an obstack, not an objfile.
9338 (symbol_set_names): Update.
9339 * symtab.h (symbol_set_demangled_name): Update.
9340
9341 2013-04-08 Tom Tromey <tromey@redhat.com>
9342
9343 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9344 allocate_symbol.
9345 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9346 (read_func_scope): Call allocate_template_symbol.
9347 (new_symbol_full): Call allocate_symbol.
9348 * jit.c (finalize_symtab): Call allocate_symbol.
9349 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9350 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9351 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9352 (common_block_end): Call allocate_symbol.
9353 * symtab.c (allocate_symbol, initialize_symbol)
9354 (allocate_template_symbol): New functions.
9355 * symtab.c (allocate_symbol, initialize_symbol)
9356 (allocate_template_symbol): Declare.
9357 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9358
9359 2013-04-08 Pedro Alves <palves@redhat.com>
9360 Keith Seitz <keiths@redhat.com>
9361
9362 * breakpoint.c (create_breakpoint): Rename
9363 "parse_condition_and_thread" parameter to "parse_arg". Update
9364 describing comment. If !PARSE_ARG, then error out if ARG is not
9365 the empty string after extracting the location.
9366 * breakpoint.h (create_breakpoint): Rename
9367 "parse_condition_and_thread" parameter to "parse_arg".
9368
9369 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9370
9371 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9372
9373 2013-04-07 Yao Qi <yao@codesourcery.com>
9374
9375 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9376 and 'addr2' to CORE_ADDR.
9377 * target.c (update_current_target): Update.
9378 * target.h (struct target_ops) <to_trace_find>: Change parameter
9379 type to CORE_ADDR.
9380 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9381 'addr2' to CORE_ADDR.
9382 (tfile_trace_find): Likewise.
9383 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9384 Change local variable 'addr' to type CORE_ADDR.
9385 * tracepoint.h (tfind_1): Update declaration.
9386
9387 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9388
9389 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9390 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9391 Include main.h.
9392
9393 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9394 here...
9395 * main.h (windows_get_absolute_argv0): ...to here.
9396
9397 2013-04-05 Doug Evans <dje@google.com>
9398
9399 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9400 (read_cutu_die_from_dwo): Add comments.
9401 (read_structure_type): Update comment.
9402 (read_enumeration_type, read_namespace_type): Update comment.
9403 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9404
9405 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9406
9407 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9408 * Makefile.in (gdb.z): Remove.
9409 (install-only): Remove $(man1dir) and gdb.1 installation.
9410 * gdb.1: Remove.
9411
9412 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9413
9414 Fix compatibility with Linux kernel 3.8.3.
9415 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9416 to more inner block. Remove parsing of NUMBER from outer block.
9417 Parse NUMBER only if KEYWORD has been identified.
9418
9419 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9420
9421 Fix variable name shadowing.
9422 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9423 filename to mapsfilename and update its uses.
9424
9425 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9426
9427 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9428 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9429 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9430 details of the problem.
9431
9432 2013-04-04 Pedro Alves <palves@redhat.com>
9433 Hui Zhu <hui@codesourcery.com>
9434
9435 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9436 tracepoint, reset its STEP_COUNT and call validate_actionline.
9437
9438 2013-04-03 Doug Evans <dje@google.com>
9439
9440 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9441 read_die_and_siblings.
9442 (read_die_and_siblings): New function.
9443 (read_cutu_die_from_dwo): Dump die if requested.
9444 (read_die_and_children): Call read_full_die_1 and
9445 read_die_and_siblings_1.
9446 (read_full_die): Dump die if requested.
9447
9448 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9449
9450 * dwarf2read.c (struct dwo_file): New member comp_dir.
9451 Rename member name to dwo_name. All uses updated.
9452 (hash_dwo_file): Include comp_dir in computation.
9453 (eq_dwo_file): Ditto.
9454 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9455 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9456
9457 * psymtab.c (read_psymtabs_with_fullname): Don't call
9458 psymtab_to_fullname if the basenames are different.
9459
9460 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9461
9462 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9463 New entry about "fullname" presence.
9464
9465 2013-04-03 Pedro Alves <palves@redhat.com>
9466
9467 * NEWS: Mention x86_64/Cygwin as new native configuration.
9468
9469 2013-04-02 Doug Evans <dje@google.com>
9470
9471 * dwarf2read.c (read_structure_type): Fix typo in comment.
9472
9473 2013-04-02 Pedro Alves <palves@redhat.com>
9474
9475 * NEWS: Mention "set/show debug aarch64", "set/show debug
9476 coff-pe-read" and "set/show debug mach-o".
9477
9478 2013-04-02 Pedro Alves <palves@redhat.com>
9479
9480 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9481
9482 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9483
9484 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9485 gdb_string.h is now in common/.
9486
9487 2013-04-02 Pedro Alves <palves@redhat.com>
9488
9489 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9490 under "New options".
9491
9492 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9493
9494 Revert this patch:
9495 PR gdb/15275
9496 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9497
9498 2013-04-02 Pedro Alves <palves@redhat.com>
9499
9500 PR gdb/15275
9501
9502 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9503 (remote_serial_write): New function.
9504 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9505
9506 2013-04-01 Jiong Wang <jiwang@tilera.com>
9507
9508 * NEWS: Mention TILE-Gx in "New native configurations" and
9509 "New targets" sections.
9510
9511 2013-04-01 Doug Evans <dje@google.com>
9512
9513 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9514 (process_enumeration_scope): Simplify.
9515
9516 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9517 type_unit_group ...
9518 (struct signatured_type): ... to here.
9519 (sig_type_ptr): New typedef.
9520 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9521 out of union 't'. All uses updated.
9522 (dw2_get_file_names_reader): Assert not called for a type unit.
9523 (dw2_get_file_names): Assert not called for a type unit or type
9524 unit group.
9525 (build_type_psymtabs_reader): Assert called for a type unit.
9526 (build_type_psymtab_dependencies): Assert called for a type unit group.
9527
9528 * dwarf2read.c (free_dwo_file): Add comment.
9529 (dwarf2_per_objfile_free): Unref dwp bfd.
9530
9531 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9532
9533 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9534 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9535 (read_pe_exported_syms): Remove unused 'exportix'.
9536 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9537 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9538 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9539
9540 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9541
9542 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9543 (print_it_watchpoint): Remove unused 'bl'.
9544 (say_where): Remove unused 'uiout'.
9545 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9546 (bkpt_breakpoint_hit): Remove unused 'b'.
9547 (internal_bkpt_print_it): Remove unused 'uiout'.
9548 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9549
9550 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9551
9552 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9553 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9554
9555 2013-03-29 Doug Evans <dje@google.com>
9556
9557 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9558 Delete arg is_dwp. All callers updated.
9559 (open_dwp_file): New function.
9560 (open_and_init_dwp_file): Call it.
9561 (get_dwp_file): New function.
9562 (lookup_dwo_cutu): Call it.
9563
9564 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9565 unnecessary, cleanup.
9566
9567 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9568
9569 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9570 (lookup_dwo_unit): New function.
9571 (init_cutu_and_read_dies): Move DWO handling to new functions.
9572
9573 * dwarf2read.c (struct signatured_type): Tweak comment.
9574 (struct dwo_unit): Tweak comment.
9575 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9576 (create_dwo_debug_info_hash_table): Tweak comment.
9577 (dwarf2_per_cu_offset_and_type): Tweak comment.
9578
9579 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9580 missing .debug_types section.
9581
9582 2013-03-29 Yao Qi <yao@codesourcery.com>
9583
9584 * corelow.c: Include "completer.h".
9585 (_initialize_corelow): Call add_target_with_completer with
9586 argument 'filename_completer'.
9587 * tracepoint.c: Likewise.
9588 * exec.c (_initialize_exec): Likewise.
9589 * target.c (add_target): Rename to ...
9590 (add_target_with_completer): ... this. Call set_cmd_completer
9591 if parameter completer is not NULL.
9592 (add_target): New.
9593 * target.h: Include "command.h".
9594 (add_target_with_completer): Declare it.
9595
9596 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9597
9598 * coffread.c (is_import_fixup_symbol): New function.
9599 (record_minimal_symbol): Use is_import_fixup_symbol to
9600 detect import fixup symbols, and discard them.
9601
9602 2013-03-28 Doug Evans <dje@google.com>
9603
9604 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9605 types hash table until we know we need it.
9606
9607 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9608 index numbers.
9609
9610 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9611 All callers updated.
9612 (dw2_print_stats): Print #read CUs too.
9613 (dump_die_shallow): Print signatured types better.
9614
9615 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9616 info_or_types_section to section. All uses updated.
9617 (struct dwo_unit): Ditto.
9618
9619 2013-03-28 Pedro Alves <palves@redhat.com>
9620
9621 * NEWS (New options): New section.
9622 (New options): Mention set/show remote trace-status-packet.
9623 * remote.c (PACKET_qTStatus): New enumeration value.
9624 (remote_get_trace_status): Skip sending qTStatus if the packet is
9625 disabled. Use packet_ok.
9626 (_initialize_remote): Register a configuration command for
9627 qTStatus packet.
9628
9629 2013-03-28 Doug Evans <dje@google.com>
9630
9631 * symfile.c (find_separate_debug_file): Add comment.
9632 (terminate_after_last_dir_separator): Tweak comment.
9633
9634 * dwarf2read.c (create_partial_symtab): Add forward decl.
9635 (create_partial_symtab): Move to be closer to other psymtab functions.
9636 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9637
9638 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9639 (compute_symtab_includes): Remove unnecessary forward declaration.
9640 (die_needs_namespace): Add comment marking group of functions for
9641 dwarf2 name computation.
9642
9643 * typeprint.c (_initialize_typeprint): Improve type help text.
9644
9645 * python/python.c (finish_python_initialization): Provide suggestion
9646 for how to tell gdb to find its python files.
9647
9648 2013-03-28 Pedro Alves <palves@redhat.com>
9649
9650 PR gdb/15294
9651
9652 * source.c (_initialize_source): Change back "set listsize" to an
9653 integer command.
9654
9655 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9656
9657 PR gdb/15275
9658 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9659
9660 2013-03-27 Pedro Alves <palves@redhat.com>
9661
9662 * top.c (history_size): Rename to ...
9663 (history_size_setshow_var): ... this. Add comment.
9664 (show_commands): Use readline's 'history_length' instead of
9665 computing the history length by calling history_get in a loop.
9666 (set_history_size_command): Error out for sizes over INT_MAX.
9667 Restore previous history size on invalid size.
9668 (init_history): If HISTSIZE is negative, leave the history size as
9669 zero. Add comments.
9670 (init_main): Adjust.
9671
9672 2013-03-27 Pedro Alves <palves@redhat.com>
9673
9674 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9675 coff_pe_read" command to "set debug coff-pe-read".
9676
9677 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9678
9679 * record.c (command_size_to_target_size): Fix size comparison.
9680 Change parameter type from pointer to integer to integer.
9681 Update all users.
9682
9683 2013-03-27 Pierre Muller <muller@sourceware.org>
9684
9685 * windows-nat.c (handle_output_debug_string): Avoid typecast
9686 from integer of different size warning.
9687
9688 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9689
9690 * windows-nat.c (handle_output_debug_string): Add empty line
9691 after local block variable definition.
9692
9693 2013-03-26 Pedro Alves <palves@redhat.com>
9694
9695 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9696 (net_open): Make 'polls' local unsigned.
9697
9698 2013-03-26 Pedro Alves <palves@redhat.com>
9699
9700 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9701 a zuinteger command instead of uinteger.
9702
9703 2013-03-26 Pedro Alves <palves@redhat.com>
9704
9705 * record-full.c (record_full_insn_num): Make it unsigned.
9706 (record_full_check_insn_num, record_full_message)
9707 (record_full_registers_change, record_full_xfer_partial): Remove
9708 record_full_insn_max_num check (it's always != 0).
9709 (record_full_info, record_full_restore): Use %u as format string.
9710 (): Use %u as format string.
9711 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9712 check (it's always != 0).
9713
9714 2013-03-26 Pedro Alves <palves@redhat.com>
9715
9716 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9717 and "set dcache size" commands zuinteger instead of uinteger.
9718
9719 2013-03-26 Pedro Alves <palves@redhat.com>
9720
9721 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9722 command zuinteger instead of uinteger.
9723
9724 2013-03-26 Pedro Alves <palves@redhat.com>
9725
9726 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9727 zuinteger instead of uinteger.
9728
9729 2013-03-26 Pedro Alves <palves@redhat.com>
9730
9731 * record.c (record_insn_history_size_setshow_var)
9732 (record_call_history_size_setshow_var): New globals.
9733 (command_size_to_target_size): New function.
9734 (cmd_record_insn_history, cmd_record_call_history): Use
9735 command_size_to_target_size instead of cast.
9736 (validate_history_size, set_record_insn_history_size)
9737 (set_record_call_history_size): New functions.
9738 (_initialize_record): Install set_record_insn_history_size and
9739 set_record_call_history_size as "set" hooks of "set record
9740 instruction-history-size" and "set record
9741 function-call-history-size".
9742
9743 2013-03-26 Pedro Alves <palves@redhat.com>
9744
9745 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9746 use with history_max_entries use. Remove FIXME note.
9747
9748 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9749
9750 * record-btrace.c (record_btrace_close): Call
9751 record_btrace_auto_disable.
9752
9753 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9754
9755 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9756
9757 2013-03-25 Doug Evans <dje@google.com>
9758
9759 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9760
9761 2013-03-25 Tom Tromey <tromey@redhat.com>
9762
9763 PR symtab/11462:
9764 * c-exp.y (exp): Add new productions for destructors after '.' and
9765 '->'.
9766 (write_destructor_name): New function.
9767
9768 2013-03-25 Tom Tromey <tromey@redhat.com>
9769
9770 PR c++/9197:
9771 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9772 value_struct_elt, not lookup_struct_elt_type.
9773 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9774 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9775 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9776
9777 2013-03-25 Yao Qi <yao@codesourcery.com>
9778
9779 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9780 instead of '_mkdir'.
9781
9782 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9783
9784 * windows-nat.c (windows_get_absolute_argv0): New function.
9785 * windows-nat.h: Add its prototype.
9786
9787 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9788 Use IS_DIR_SEPARATOR instead of looking for a character inside
9789 SLASH_STRING. Include filenames.h.
9790 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9791 relocate_gdb_directory works when passed gdb_program_name.
9792 Include windows-nat.h.
9793
9794 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9797 * remote.c (trace_error): Remove the special handling of '2'.
9798 (readchar) <SERIAL_EOF>
9799 (readchar) <SERIAL_ERROR>
9800 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9801 (remote_get_trace_status): Call throw_exception if EX is
9802 TARGET_CLOSE_ERROR.
9803 * utils.c (perror_with_name): Rename to ...
9804 (throw_perror_with_name): ... here. New parameter errcode, describe it
9805 in the function comment.
9806 (perror_with_name): New function wrapper.
9807 * utils.h (enum errors): New stub declaration.
9808 (throw_perror_with_name): New declaration.
9809
9810 2013-03-22 Pedro Alves <palves@redhat.com>
9811 Yao Qi <yao@codesourcery.com>
9812 Mark Kettenis <kettenis@gnu.org>
9813
9814 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9815 Don't let the user set the value to UINT_MAX directly.
9816 <var_integer>: Don't let the user set the value to INT_MAX
9817 directly.
9818
9819 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9820
9821 * remote.c (remote_unpush_target): New function.
9822 (remote_open_1): Remove two pop_target calls, update one comment, add
9823 comment to target_preopen call. Replace pop_target call by
9824 remote_unpush_target call.
9825 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9826 pop_target calls by remote_unpush_target calls.
9827
9828 2013-03-22 Pedro Alves <palves@redhat.com>
9829
9830 * linux-nat.c (linux_child_follow_fork): Don't call
9831 linux_enable_event_reporting.
9832 (linux_handle_extended_wait): Don't call
9833 linux_enable_event_reporting.
9834
9835 2013-03-22 Pedro Alves <palves@redhat.com>
9836
9837 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9838 use it to rewrite the trampoline buffers with type gdb_byte[], and
9839 undefine the macro. Remove char* cast.
9840
9841 2013-03-21 Doug Evans <dje@google.com>
9842
9843 New commands "mt set per-command {space,time,symtab} {on,off}".
9844 * NEWS: Add entry.
9845 * event-top.c: #include "maint.h".
9846 * main.c: #include "maint.h".
9847 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9848 timeval-utils.h, maint.h, cli/cli-setshow.h.
9849 (per_command_time, per_command_space): New static globals.
9850 (per_command_symtab): New static global.
9851 (per_command_setlist, per_command_showlist): New static globals.
9852 (struct cmd_stats): Move here from utils.c.
9853 (set_per_command_time): Renamed from set_display_time in utils.c
9854 and moved here. All callers updated.
9855 (set_per_command_space): Renamed from set_display_space in utils.c
9856 and moved here. All callers updated.
9857 (count_symtabs_and_blocks): New function.
9858 (report_command_stats): Moved here from utils.c. Add support for
9859 printing symtab stats. Only print data if enabled before command
9860 executed.
9861 (make_command_stats_cleanup): Ditto.
9862 (sert_per_command_cmd, show_per_command_cmd): New functions.
9863 (_initialize_maint_cmds): Add new commands
9864 mt set per-command {space,time,symtab} {on,off}.
9865 * maint.h: New file.
9866 * top.c: #include "maint.h".
9867 * utils.c (reset_prompt_for_continue_wait_time): New function.
9868 (get_prompt_for_continue_wait_time): New function.
9869 * utils.h (reset_prompt_for_continue_wait_time): Declare
9870 (get_prompt_for_continue_wait_time): Declare.
9871 (make_command_stats_cleanup): Moved to maint.h.
9872 (set_display_time, set_display_space): Moved to maint.h and renamed
9873 to set_per_command_time, set_per_command_space.
9874 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9875 parse_binary_operation and made non-static. Don't call error,
9876 just return an error marker. All callers updated.
9877 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9878
9879 2013-03-21 Tom Tromey <tromey@redhat.com>
9880
9881 * symfile.c (alloc_section_addr_info): Update header. Don't set
9882 'num_sections' field.
9883 (build_section_addr_info_from_section_table): Set 'num_sections'.
9884 (build_section_addr_info_from_bfd): Likewise.
9885 (build_section_addr_info_from_objfile): Remove dead loop
9886 condition.
9887 (free_section_addr_info): Unconditionally call xfree.
9888 (relative_addr_info_to_section_offsets, addrs_section_sort)
9889 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9890 condition.
9891 (syms_from_objfile_1): Remove dead 'if' condition. Check
9892 'num_sections'.
9893 (add_symbol_file_command): Set 'num_sections'.
9894 * symfile-mem.c (symbol_file_add_from_memory): Set
9895 'num_sections'.
9896 * somread.c (som_symfile_offsets): Remove dead loop condition.
9897 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9898 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9899
9900 2013-03-21 Tom Tromey <tromey@redhat.com>
9901
9902 * tracepoint.h (decode_agent_options): Add 'trace_string'
9903 argument.
9904 * tracepoint.c (decode_agent_options): Add 'trace_string'
9905 argument.
9906 (validate_actionline): Update.
9907 (collect_symbol): Add 'trace_string' argument.
9908 (struct add_local_symbols_data) <trace_string>: New field.
9909 (do_collect_symbol): Update.
9910 (add_local_symbols): Add 'trace_string' argument.
9911 (encode_actions_1): Update.
9912 (trace_dump_actions): Update.
9913 * dwarf2loc.c (access_memory): Update.
9914 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9915 * ax-general.c (new_agent_expr): Update.
9916 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9917 (gen_trace_for_return_address): Add argument.
9918 (trace_kludge, trace_string_kludge): Remove.
9919 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9920 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9921 (gen_trace_for_var): Add 'trace_string' argument.
9922 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9923 (gen_printf, agent_eval_command_one): Update.
9924
9925 2013-03-21 Tom Tromey <tromey@redhat.com>
9926
9927 PR exp/15109:
9928 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9929 Handle FILENAME token.
9930
9931 2013-03-21 Tom Tromey <tromey@redhat.com>
9932
9933 * c-exp.y (YYPRINT): Define.
9934 (c_print_token): New function.
9935
9936 2013-03-21 Tom Tromey <tromey@redhat.com>
9937
9938 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9939
9940 2013-03-21 Yao Qi <yao@codesourcery.com>
9941
9942 * ctf.c: Include "gdb_stat.h".
9943 [USE_WIN32API]: New macro 'mkdir'.
9944 (ctf_start): Use permission bits macros if they are defined.
9945
9946 2013-03-20 Keith Seitz <keiths@redhat.com>
9947
9948 * breakpoint.h (struct breakpoint): Add comment to
9949 extra_string indicating that this member is mallod'd.
9950 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9951
9952 2013-03-20 Pedro Alves <palves@redhat.com>
9953
9954 PR gdb/15289
9955
9956 * cli/cli-setshow.c (do_set_command)
9957 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9958 the result of parsing the command argument. Throw error if the
9959 value is greater than UINT_MAX. Print the invalid value with
9960 plongest.
9961 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9962 result of parsing the command argument. Throw error if the value
9963 is greater than INT_MAX, not greater or equal. Also throw error
9964 if the value is less than INT_MIN. Print the invalid value with
9965 plongest.
9966 <var_zuinteger_unlimited>: Throw error if the value is greater
9967 than INT_MAX, not greater or equal.
9968 (do_show_command) <var_integer, var_zinteger,
9969 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9970
9971 2013-03-20 Tom Tromey <tromey@redhat.com>
9972
9973 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9974 if possible.
9975 * dwarf2read.c (read_func_scope): Remove old FIXME.
9976 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9977 not LOC_COMPUTED.
9978 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9979 Unconditionally call via computed ops, if possible.
9980 * printcmd.c (address_info): Unconditionally call via computed ops,
9981 if possible.
9982 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9983 if possible.
9984 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9985 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9986 if possible.
9987
9988 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9989 Tom Tromey <tromey@redhat.com>
9990
9991 PR symtab/8421:
9992 * coffread.c (coff_register_index): New global.
9993 (process_coff_symbol, coff_read_enum_type): Set
9994 SYMBOL_ACLASS_INDEX.
9995 (_initialize_coffread): Initialize new global.
9996 * dwarf2loc.c (locexpr_find_frame_base_location)
9997 (dwarf2_block_frame_base_locexpr_funcs)
9998 (loclist_find_frame_base_location)
9999 (dwarf2_block_frame_base_loclist_funcs): New.
10000 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10001 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10002 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10003 (dwarf2_block_frame_base_loclist_funcs): New.
10004 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10005 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10006 globals.
10007 (read_func_scope): Update.
10008 (fixup_go_packaging, mark_common_block_symbol_computed)
10009 (var_decode_location, new_symbol_full, dwarf2_const_value):
10010 Set SYMBOL_ACLASS_INDEX.
10011 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10012 (_initialize_dwarf2_read): Initialize new globals.
10013 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10014 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10015 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10016 globals.
10017 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10018 (_initialize_mdebugread): Initialize new globals.
10019 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10020 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10021 (stab_register_index, stab_regparm_index): New globals.
10022 (define_symbol, read_enum_type, common_block_end): Set
10023 SYMBOL_ACLASS_INDEX.
10024 (_initialize_stabsread): Initialize new globals.
10025 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10026 globals.
10027 (MAX_SYMBOL_IMPLS): New define.
10028 (register_symbol_computed_impl, register_symbol_block_impl)
10029 (register_symbol_register_impl)
10030 (initialize_ordinary_address_classes): New functions.
10031 (_initialize_symtab): Call initialize_ordinary_address_classes.
10032 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10033 (struct symbol_impl): New.
10034 (SYMBOL_ACLASS_BITS): New define.
10035 (struct symbol) <aclass, ops>: Remove fields.
10036 <aclass_index>: New field.
10037 (symbol_impls): Declare.
10038 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10039 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10040 (register_symbol_computed_impl, register_symbol_block_impl)
10041 (register_symbol_register_impl): Declare.
10042 (struct symbol_computed_ops): Add location_has_loclist.
10043 (struct symbol_block_ops): New.
10044 (SYMBOL_BLOCK_OPS): New.
10045 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10046
10047 2013-03-20 Tom Tromey <tromey@redhat.com>
10048
10049 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10050 (print_partial_symbols, recursively_search_psymtabs): Use
10051 PSYMBOL_CLASS.
10052
10053 2013-03-20 Pierre Muller <muller@sourceware.org>
10054
10055 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10056 addtion, subtraction, multiplication and division binary operator.
10057
10058 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10059
10060 Code cleanup.
10061 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10062 * bsd-kvm.c (bsd_kvm_close): Likewise.
10063 * bsd-uthread.c (bsd_uthread_close): Likewise.
10064 * corelow.c (core_close): Likewise.
10065 (core_close_cleanup): Remove parameter quitting from a caller.
10066 * event-top.c (async_disconnect): Likewise.
10067 * exec.c (exec_close_1): Remove parameter quitting.
10068 * go32-nat.c (go32_close): Likewise.
10069 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10070 parameter quitting from a caller.
10071 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10072 variable.
10073 (mips_linux_close): Remove parameter quitting. Remove parameter
10074 quitting from a caller.
10075 * monitor.c (monitor_close): Remove parameter quitting.
10076 * monitor.h (monitor_close): Likewise.
10077 * record-btrace.c (record_btrace_close): Likewise.
10078 * record-full.c (record_full_close): Likewise.
10079 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10080 it also from fprintf_unfiltered.
10081 * remote-mips.c (mips_close): Remove parameter quitting.
10082 (mips_detach): Remove parameter quitting from a caller.
10083 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10084 (gdbsim_close): Remove duplicate function comment. Remove parameter
10085 quitting and remove it also from printf_filtered.
10086 * remote.c (remote_close): Remove parameter quitting.
10087 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10088 * target.c (update_current_target): Remove parameter int from to_close
10089 de_fault.
10090 (push_target, unpush_target, pop_target): Remove parameter quitting from
10091 a caller.
10092 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10093 Remove parameter quitting from a caller.
10094 (target_preopen): Remove parameter quitting from a caller.
10095 (target_close): Remove parameter quitting. Remove parameter quitting
10096 from a caller two times. Remove parameter quitting also from
10097 fprintf_unfiltered.
10098 * target.h (struct target_ops): Remove parameter quitting and as int
10099 from fields to_xclose and to_close.
10100 (extern struct target_ops current_target):
10101 (target_close, pop_all_targets): Remove parameter quitting. Update the
10102 comment.
10103 (pop_all_targets_above): Remove parameter quitting.
10104 * top.c (quit_target): Remove parameter quitting from a caller.
10105 * tracepoint.c (tfile_close): Remove parameter quitting.
10106 * windows-nat.c (windows_close): Remove parameter quitting.
10107
10108 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10109
10110 * windows-nat.c (handle_output_debug_string): Replace call
10111 to string_to_core_addr with call to strtoull.
10112
10113 2013-03-20 Yao Qi <yao@codesourcery.com>
10114
10115 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10116 and write it to CTF metadata.
10117
10118 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10119
10120 * windows-nat.c (handle_output_debug_string): Change type of n to
10121 SIZE_T to avoid crash on 64 bit systems.
10122
10123 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10124
10125 * python/python-internal.h (HAVE_SNPRINTF)
10126 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10127 about redefinition of snprintf by pyerrors.h.
10128
10129 2013-03-15 Steve Ellcey <sellcey@mips.com>
10130
10131 * remote-sim.c (sim_command_completer): Make char arguments const.
10132
10133 2013-03-15 Tom Tromey <tromey@redhat.com>
10134
10135 PR c++/15116:
10136 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10137
10138 2013-03-14 Tom Tromey <tromey@redhat.com>
10139
10140 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10141 New fields.
10142 (get_file_crc): Move from symfile.c.
10143 (gdb_bfd_crc): New function.
10144 * gdb_bfd.h (gdb_bfd_crc): Declare.
10145 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10146 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10147 (separate_debug_file_exists): Use gdb_bfd_crc.
10148
10149 2013-03-14 Tom Tromey <tromey@redhat.com>
10150
10151 * symfile.c (get_debug_link_info): Remove.
10152 (find_separate_debug_file_by_debuglink): Use
10153 bfd_get_debug_link_info.
10154
10155 2013-03-14 Tom Tromey <tromey@redhat.com>
10156
10157 * symtab.c (error_in_psymtab_expansion): New function.
10158 (lookup_symbol_aux_quick)
10159 (basic_lookup_transparent_type_quick): Remove "last resort"
10160 code. Use error_in_psymtab_expansion.
10161
10162 2013-03-14 Doug Evans <dje@google.com>
10163 Jan Kratochvil <jan.kratochvil@redhat.com>
10164
10165 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10166 any successful compare_filenames_for_search or FILENAME_CMP.
10167 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10168 * symtab.c (iterate_over_some_symtabs): Likewise.
10169
10170 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10171
10172 * source.c (print_source_lines_base): Make a local copy of
10173 symtab_to_fullname.
10174
10175 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10176 Jan Kratochvil <jan.kratochvil@redhat.com>
10177
10178 * source.c (print_source_lines_base): Suppress "file" for TUI.
10179
10180 2013-03-14 Keith Seitz <keiths@redhat.com>
10181 Alan Matsuoka <alanm@redhat.com>
10182
10183 PR c++/15203
10184 PR c++/15210
10185 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10186 TYPE_CODE_METHOD.
10187 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10188 symbols.
10189
10190 2013-03-14 Yao Qi <yao@codesourcery.com>
10191
10192 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10193 status to tfile if trace is stopped by command 'tstop'.
10194
10195 2013-03-14 Yao Qi <yao@codesourcery.com>
10196
10197 * tracepoint.c (tfile_write_status): Write trace notes and user
10198 name into tfile if they are not NULL.
10199
10200 2013-03-14 Hui Zhu <hui@codesourcery.com>
10201 Yao Qi <yao@codesourcery.com>
10202
10203 * Makefile.in (REMOTE_OBS): Add ctf.o.
10204 (SFILES): Add ctf.c.
10205 (HFILES_NO_SRCDIR): Add ctf.h.
10206 * ctf.c, ctf.h: New files.
10207 * tracepoint.c: Include 'ctf.h'.
10208 (collect_pseudocommand): Remove static.
10209 (trace_save_command): Parse option "-ctf".
10210 Produce different trace file writers per option.
10211 Adjust output message.
10212 (trace_save_tfile, trace_save_ctf): New.
10213 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10214 * mi/mi-main.c: Include 'ctf.h'.
10215 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10216 trace_save_tfile or trace_save_ctf.
10217 * NEWS: Mention these changes.
10218
10219 2013-03-14 Yao Qi <yao@codesourcery.com>
10220
10221 * tracepoint.c (trace_file_writer_xfree): New.
10222 (struct tfile_writer_data): New.
10223 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10224 (tfile_write_header, tfile_write_regblock_type): New.
10225 (tfile_write_status, tfile_write_uploaded_tsv): New.
10226 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10227 (tfile_write_raw_data, (tfile_end): New.
10228 (tfile_write_ops): New global variable.
10229 (TRACE_WRITE_R_BLOCK): New macro.
10230 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10231 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10232 (TRACE_WRITE_V_BLOCK): New macro.
10233 (trace_save): Add extra one parameter WRITER. Make it static.
10234 Use WRITER to writer trace.
10235 (tfile_trace_file_writer_new): New.
10236 (trace_save_command): Caller update.
10237 (trace_save_tfile): Write trace data in TFILE format.
10238 * tracepoint.h (struct trace_frame_write_ops): New.
10239 (struct trace_file_write_ops): New.
10240 (struct trace_file_writer): New.
10241 (trace_save): Remove its declaration.
10242 (trace_save_tfile): Declare it.
10243 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10244 instead of trace_save.
10245
10246 2013-03-13 Pedro Alves <palves@redhat.com>
10247
10248 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10249
10250 2013-03-13 Pedro Alves <palves@redhat.com>
10251
10252 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10253 commented out code.
10254 * demangle.c (current_demangling_style_string): Make it const.
10255 (set_demangling_command): Assert the demangling style is known.
10256 Remove all handling of unknown styles. Set
10257 'current_demangling_style_string' to an element of the
10258 demangling_style_names array.
10259 (set_demangling_style): Delete.
10260 (_initialize_demangler): Set current_demangling_style_string to the
10261 element of the demangling_style_names array that corresponds to
10262 the default demangling style. Remove FIXME note. Don't call
10263 set_demangling_style.
10264 * gdb-demangle.h (set_demangling_style): Remove declaration.
10265
10266 2013-03-13 Pedro Alves <palves@redhat.com>
10267
10268 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10269 fields const.
10270 (ada_make_symbol_completion_list): Make "text0" parameter const.
10271 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10272 * breakpoint.c (condition_completer): Make "text" and "word"
10273 parameters const. Adjust.
10274 (check_tracepoint_command): Adjust to validate_actionline
10275 prototype change.
10276 (catch_syscall_completer): Make "text" and "word" parameters
10277 const.
10278 * cli/cli-cmds.c (show_user): Make "comname" local const.
10279 (valid_command_p): Make "command" parameter const.
10280 (alias_command): Make "alias_prefix" and "command_prefix" locals
10281 const.
10282 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10283 (add_alias_cmd): Make "name" and "oldname" parameters const.
10284 Adjust. No longer make copy of OLDNAME.
10285 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10286 (add_setshow_cmd_full, add_setshow_enum_cmd)
10287 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10288 (add_setshow_filename_cmd, add_setshow_string_cmd)
10289 (add_setshow_string_noescape_cmd)
10290 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10291 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10292 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10293 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10294 Make "name" parameter const.
10295 (help_cmd): Rename "command" parameter to "arg". New const local
10296 "command".
10297 (find_cmd): Make "command" parameter const.
10298 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10299 deprecated_cmd_warning prototype change.
10300 (undef_cmd_error): Make "cmdtype" parameter const.
10301 (lookup_cmd): Make "line" parameter const.
10302 (deprecated_cmd_warning): Change type of "text" parameter to
10303 pointer to const char, from pointer to pointer to char. Adjust.
10304 (lookup_cmd_composition): Make "text" parameter const.
10305 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10306 parameters const.
10307 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10308 const.
10309 * cli/cli-script.c (validate_comname): Make "tem" local const.
10310 (define_command): New const local "tem_c". Use it in calls to
10311 lookup_cmd.
10312 (document_command): Make "tem" and "comfull" locals const.
10313 (show_user_1): Make "prefix" and "name" parameters const.
10314 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10315 const.
10316 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10317 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10318 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10319 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10320 (complete_on_enum, add_setshow_enum_cmd)
10321 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10322 (add_setshow_filename_cmd, add_setshow_string_cmd)
10323 (add_setshow_string_noescape_cmd)
10324 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10325 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10326 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10327 Change prototypes, constifying strings.
10328 * completer.c (noop_completer, filename_completer): Make "text"
10329 and "prefix" parameters const.
10330 (location_completer, expression_completer)
10331 (complete_line_internal): Make "text" and "prefix" parameters
10332 const and adjust.
10333 (command_completer, signal_completer): Make "text" and "prefix"
10334 parameters const.
10335 * completer.h (noop_completer, filename_completer)
10336 (expression_completer, location_completer, command_completer)
10337 (signal_completer): Change prototypes.
10338 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10339 parameters const.
10340 * cp-abi.c (cp_abi_completer): Likewise.
10341 * expression.h (parse_expression_for_completion): Change
10342 prototype.
10343 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10344 parameters const.
10345 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10346 * infrun.c (handle_completer): Make "text" and "word" parameters
10347 const.
10348 * interps.c (interpreter_completer): Make "text" and "word"
10349 parameters const.
10350 * language.h (struct language_defn)
10351 <la_make_symbol_completion_list>: Make "text" and "word"
10352 parameters const.
10353 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10354 (parse_exp_in_context): Rename to ...
10355 (parse_exp_in_context_1): ... this.
10356 (parse_exp_in_context): Reimplement, with const hack from
10357 parse_exp_1.
10358 (parse_expression_for_completion): Make "string" parameter const.
10359 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10360 to pointer to const char. Adjust.
10361 (print_command_1): Make "exp" parameter const.
10362 (output_command): Rename to ...
10363 (output_command_const): ... this. Make "exp" parameter const.
10364 (output_command): Reimplement.
10365 (x_command): Adjust.
10366 (display_command): Rename "exp" parameter to "arg". New "exp"
10367 local, const version of "arg".
10368 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10369 "cmd_name" local const.
10370 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10371 call.
10372 (cmdpy_completer): Make "text" and "word" parameters const.
10373 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10374 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10375 const.
10376 * remote.c (_initialize_remote): Make "cmd_name" local const.
10377 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10378 parameters const. Adjust.
10379 (completion_list_add_fields): Make "sym_text", "text" and "word"
10380 parameters const.
10381 (struct add_name_data) <sym_text, text, word>: Make fields const.
10382 (default_make_symbol_completion_list_break_on): Make "text" and
10383 "word" parameters const. Adjust locals.
10384 (default_make_symbol_completion_list)
10385 (make_symbol_completion_list, make_symbol_completion_type)
10386 (make_symbol_completion_list_fn): Make "text" and "word"
10387 parameters const.
10388 (make_file_symbol_completion_list): Make "text", "word" and
10389 "srcfile" parameters const. Adjust locals.
10390 (add_filename_to_list): Make "text" and "word" parameters const.
10391 (struct add_partial_filename_data) <text, word>: Make fields
10392 const.
10393 (make_source_files_completion_list): Make "text" and "word"
10394 parameters const.
10395 * symtab.h (default_make_symbol_completion_list_break_on)
10396 (default_make_symbol_completion_list, make_symbol_completion_list)
10397 (make_symbol_completion_type enum type_code)
10398 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10399 (make_source_files_completion_list): Change prototype.
10400 * top.c (execute_command): Adjust to pass pointer to pointer to
10401 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10402 change.
10403 (set_verbose): Make "cmdname" local const.
10404 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10405 and adjust.
10406 (validate_actionline): Make "line" parameter a pointer to const
10407 char, and adjust.
10408 (encode_actions_1): Make "action_exp" local const, and adjust.
10409 (encode_actions): Adjust.
10410 (replace_comma): Delete.
10411 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10412 const, and adjust. Don't frob the action string while splitting
10413 it at commas. Instead, make a copy of each split substring in
10414 turn.
10415 (trace_dump_command): Adjust to validate_actionline prototype
10416 change.
10417 * tracepoint.h (decode_agent_options, decode_agent_options)
10418 (encode_actions, validate_actionline): Change prototypes.
10419 * valprint.h (output_command): Delete declaration.
10420 (output_command_const): Declare.
10421 * value.c (function_destroyer): Cast const away in xfree call.
10422
10423 2013-03-13 Pedro Alves <palves@redhat.com>
10424
10425 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10426 rather than casting 'const char * const *' to 'const char **'.
10427 * ada-lex.l (processInt): Make "trailer" local const. Remove
10428 'const char **' cast.
10429 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10430 locals, and use those as strtol output pointer, instead than doing
10431 invalid casts to from 'const char **' to 'char **'.
10432 (_initialize_demangle): Remove cast.
10433 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10434 locals, and use those as strtol output pointer, instead than doing
10435 invalid casts to from 'const char **' to 'char **'.
10436 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10437 casts.
10438 * stap-probe.c (stap_parse_register_operand)
10439 (stap_parse_single_operand): Likewise.
10440
10441 2013-03-13 Yao Qi <yao@codesourcery.com>
10442
10443 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10444 the last matched 'V' blcok in trace frame.
10445
10446 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10447
10448 * NEWS: Create a new section for the next release branch.
10449 Rename the section of the current branch, now that it has
10450 been cut.
10451
10452 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10453
10454 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10455 * version.in: Bump version to 7.6.50.20130312-cvs.
10456
10457 2013-03-12 Keith Seitz <keiths@redhat.com>
10458
10459 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10460 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10461 Remove temporary copy of input string.
10462 (mi_execute_command_wrapper): Make "cmd" const.
10463 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10464 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10465 Use const strings.
10466 (mi_parse): Make "cmd" const.
10467 Use const strings.
10468 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10469
10470 2013-03-12 Keith Seitz <keiths@redhat.com>
10471
10472 * ada-lang.c (ada_read_renaming_var_value): Pass const
10473 pointer to expression string to parse_exp_1.
10474 (create_excep_cond_exprs): Likewise.
10475 * ax-gdb.c (agent_eval_command_one): Likewise.
10476 (maint_agent_printf_command): Likewise.
10477 Constify much of the string handling/parsing.
10478 * breakpoint.c (set_breakpoint_condition): Pass const
10479 pointer to expression string to parse_exp_1.
10480 (update_watchpoint): Likewise.
10481 (parse_cmd_to_aexpr): Constify string handling.
10482 Pass const pointer to parse_exp_1.
10483 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10484 (find_condition_and_thread): Likewise.
10485 Make TOK const.
10486 (watch_command_1): Make "arg" const.
10487 Constify string handling.
10488 Copy the expression string instead of changing the input
10489 string.
10490 (update_breakpoint_location): Pass const pointer to
10491 parse_exp_1.
10492 * eval.c (parse_and_eval_address): Make "exp" const.
10493 (parse_to_comma_and_eval): Make "expp" const.
10494 (parse_and_eval): Make "exp" const.
10495 * expression.h (parse_expression): Make argument const.
10496 (parse_exp_1): Make first argument const.
10497 * findcmd.c (parse_find_args): Treat "args" as const.
10498 * linespec.c (parse_linespec): Pass const pointer to
10499 linespec_expression_to_pc.
10500 (linespec_expression_to_pc): Make "exp_ptr" const.
10501 * parse.c (parse_exp_1): Make "stringptr" const.
10502 Make a copy of the expression to pass to parse_exp_in_context until
10503 this whole interface can be constified.
10504 (parse_expression): Make "string" const.
10505 * printcmd.c (ui_printf): Treat "arg" as const.
10506 Handle const strings.
10507 * tracepoint.c (validate_actionline): Pass const pointer to
10508 all calls to parse_exp_1.
10509 (encode_actions_1): Likewise.
10510 * value.h (parse_to_comma_and_eval): Make argument const.
10511 (parse_and_eval_address): Likewise.
10512 (parse_and_eval): Likewise.
10513 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10514 (varobj_set_value): Likewise.
10515 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10516 constify string handling.
10517 Pass const pointers to parse_and_eval_address and
10518 parse_to_comman_and_eval.
10519 * cli/cli-utils.c (skip_to_space): Rename to ...
10520 (skip_to_space_const): ... this. Handle const strings.
10521 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10522 skip_to_space_const.
10523 (skip_to_space_const): Declare.
10524 * common/format.c (parse_format_string): Make "arg" const.
10525 Handle const strings.
10526 * common/format.h (parse_format_string): Make "arg" const.
10527 * gdbserver/ax.c (ax_printf): Make "format" const.
10528 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10529 of the expression string.
10530
10531 2013-03-12 Hui Zhu <hui@codesourcery.com>
10532
10533 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10534
10535 2013-03-12 Yao Qi <yao@codesourcery.com>
10536 Hui Zhu <hui@codesourcery.com>
10537
10538 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10539 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10540 DW_OP_deref_size.
10541
10542 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10543
10544 * ada-lex.l (rules): Only recognize 'thread' as a
10545 delimiter when followed by numerals, as for c-exp.y.
10546 Use new rewind_to_char function to rewind the input for
10547 expression-delimiting tokens.
10548 (rewind_to_char): New function.
10549
10550 2013-03-11 Pedro Alves <palves@redhat.com>
10551 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 * configure: Regenerate.
10554 * configure.ac (check dynamic export flag): Link python test with
10555 $PYTHON_LIBS.
10556
10557 2013-03-11 Doug Evans <dje@google.com>
10558 Keith Seitz <keiths@redhat.com>
10559
10560 * linespec.c (find_linespec_symbols): Call find_function_symbols
10561 first, and then call lookup_prefix_sym/find_method.
10562
10563 2013-03-11 Pedro Alves <palves@redhat.com>
10564
10565 * charset.c (convert_between_encodings): Don't cast between
10566 different pointer to pointer types. Instead, make the 'inp' local
10567 be of the type iconv expects.
10568 (wchar_iterate): Don't cast between different pointer to pointer
10569 types. Instead, use new pointer local of the type iconv expects.
10570 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10571 Add new local of type char pointer, and use it to get a
10572 char/string view of the byte buffer, instead of casting between
10573 pointer to pointer types.
10574
10575 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10576
10577 * remote.c (remote_set_trace_buffer_size): Move != operator
10578 to the start of next line to fix an ARI warning.
10579
10580 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10581
10582 * NEWS: Add record changes.
10583
10584 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10585
10586 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10587 the instruction history disassembly.
10588 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10589 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10590
10591 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10592
10593 * Makefile.in (SFILES): Add record-btrace.c
10594 (COMMON_OBS): Add record-btrace.o
10595 * record-btrace.c: New.
10596 * objfiles.c: Include btrace.h.
10597 (free_objfile): call btrace_free_objfile.
10598
10599 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10600
10601 * target.c (target_call_history, target_call_history_from,
10602 target_call_history_range): New.
10603 * target.h (target_ops) <to_call_history, to_call_history_from,
10604 to_call_history_range>: New fields.
10605 (target_call_history, target_call_history_from,
10606 target_call_history_range): New declaration.
10607 * record.c (get_call_history_modifiers, cmd_record_call_history,
10608 record_call_history_size): New.
10609 (_initialize_record): Add the "record function-call-history" command.
10610 Add "set/show record function-call-history-size" commands.
10611 * record.h (record_print_flag): New.
10612
10613 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10614
10615 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10616 to_insn_history_range>: New fields.
10617 (target_insn_history): New.
10618 (target_insn_history_from): New.
10619 (target_insn_history_range): New.
10620 * target.c (target_insn_history): New.
10621 (target_insn_history_from): New.
10622 (target_insn_history_range): New.
10623 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10624 (record_insn_history_size): New.
10625 (get_insn_number): New.
10626 (get_context_size): New.
10627 (no_chunk): New.
10628 (get_insn_history_modifiers): New.
10629 (cmd_record_insn_history): New.
10630 (_initialize_record): Add "set/show record instruction-history-size"
10631 command. Add "record instruction-history" command.
10632
10633 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10634
10635 * record.h (record_disconnect): New.
10636 (record_detach): New.
10637 (record_mourn_inferior): New.
10638 (record_kill): New.
10639 * record-full.c (record_disconnect, record_detach,
10640 record_mourn_inferior, record_kill): Move to...
10641 * record.c: ...here.
10642 (DEBUG): New.
10643 (record_stop): New.
10644 (record_unpush): New.
10645 (cmd_record_stop): Call record_stop. Replace unpush_target
10646 call with record_unpush call.
10647 (record_disconnect, record_detach): Assert that the target
10648 is of record stratum. Call record_unpush, record_stop, and
10649 DEBUG.
10650 (record_mourn_inferior, record_kill): Assert that the target
10651 is of record stratum. Call record_unpush and DEBUG.
10652
10653 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10654
10655 * record-full.h, record-full.c (record_memory_query): Rename
10656 to ...
10657 (record_full_memory_query): ...this. Update all users.
10658 (record_arch_list_add_reg): Rename to ...
10659 (record_full_arch_list_add_reg): ...this. Update all users.
10660 (record_arch_list_add_mem): Rename to ...
10661 (record_full_arch_list_add_mem): ...this. Update all users.
10662 (record_arch_list_add_end): Rename to ...
10663 (record_full_arch_list_add_end): ...this. Update all users.
10664 (record_gdb_operation_disable_set): Rename to ...
10665 (record_full_gdb_operation_disable_set): ...this.
10666 Update all users.
10667
10668 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10669
10670 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10671 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10672 (RECORD_IS_REPLAY): Renamed to ...
10673 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10674 (RECORD_FILE_MAGIC): Renamed to ...
10675 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10676 (record_mem_entry): Renamed to ...
10677 (record_full_mem_entry): ... this. Updated all users.
10678 (record_reg_entry): Renamed to ...
10679 (record_full_reg_entry): ... this. Updated all users.
10680 (record_end_entry): Renamed to ...
10681 (record_full_end_entry): ... this. Updated all users.
10682 (record_type) <record_end, record_reg, record_mem>: Renamed
10683 to ...
10684 (record_full_type) <record_full_end, record_full_reg,
10685 record_full_mem>: ... this. Updated all users.
10686 (record_entry): Renamed to ...
10687 (record_full_entry): ... this. Updated all users.
10688 (record_core_buf_entry): Renamed to ...
10689 (record_full_core_buf_entry): ... this. Updated all users.
10690 (record_core_regbuf): Renamed to ...
10691 (record_full_core_regbuf): ... this. Updated all users.
10692 (record_core_start): Renamed to ...
10693 (record_full_core_start): ... this. Updated all users.
10694 (record_core_end): Renamed to ...
10695 (record_full_core_end): ... this. Updated all users.
10696 (record_core_buf_list): Renamed to ...
10697 (record_full_core_buf_list): ... this. Updated all users.
10698 (record_first): Renamed to ...
10699 (record_full_first): ... this. Updated all users.
10700 (record_list): Renamed to ...
10701 (record_full_list): ... this. Updated all users.
10702 (record_arch_list_head): Renamed to ...
10703 (record_full_arch_list_head): ... this. Updated all users.
10704 (record_arch_list_tail): Renamed to ...
10705 (record_full_arch_list_tail): ... this. Updated all users.
10706 (record_stop_at_limit): Renamed to ...
10707 (record_full_stop_at_limit): ... this. Updated all users.
10708 (record_insn_max_num): Renamed to ...
10709 (record_full_insn_max_num): ... this. Updated all users.
10710 (record_insn_num): Renamed to ...
10711 (record_full_insn_num): ... this. Updated all users.
10712 (record_insn_count): Renamed to ...
10713 (record_full_insn_count): ... this. Updated all users.
10714 (record_ops): Renamed to ...
10715 (record_full_ops): ... this. Updated all users.
10716 (record_core_ops): Renamed to ...
10717 (record_full_core_ops): ... this. Updated all users.
10718 (set_record_cmdlist): Renamed to ...
10719 (set_record_full_cmdlist): ... this. Updated all users.
10720 (show_record_cmdlist): Renamed to ...
10721 (show_record_full_cmdlist): ... this. Updated all users.
10722 (record_cmdlist): Renamed to ...
10723 (record_full_cmdlist): ... this. Updated all users.
10724 (record_beneath_to_resume_ops): Renamed to ...
10725 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10726 (record_beneath_to_resume): Renamed to ...
10727 (record_full_beneath_to_resume): ... this. Updated all users.
10728 (record_beneath_to_wait_ops): Renamed to ...
10729 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10730 (record_beneath_to_wait): Renamed to ...
10731 (record_full_beneath_to_wait): ... this. Updated all users.
10732 (record_beneath_to_store_registers_ops): Renamed to ...
10733 (record_full_beneath_to_store_registers_ops): ... this.
10734 Updated all users.
10735 (record_beneath_to_store_registers): Renamed to ...
10736 (record_full_beneath_to_store_registers): ... this.
10737 Updated all users.
10738 (record_beneath_to_xfer_partial_ops): Renamed to ...
10739 (record_full_beneath_to_xfer_partial_ops): ... this.
10740 Updated all users.
10741 (record_beneath_to_xfer_partial): Renamed to ...
10742 (record_full_beneath_to_xfer_partial): ... this.
10743 Updated all users.
10744 (record_beneath_to_insert_breakpoint): Renamed to ...
10745 (record_full_beneath_to_insert_breakpoint): ... this.
10746 Updated all users.
10747 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10748 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10749 Updated all users.
10750 (record_beneath_to_stopped_data_address): Renamed to ...
10751 (record_full_beneath_to_stopped_data_address): ... this.
10752 Updated all users.
10753 (record_beneath_to_async): Renamed to ...
10754 (record_full_beneath_to_async): ... this. Updated all users.
10755 (record_goto_insn): Renamed to ...
10756 (record_full_goto_insn): ... this. Updated all users.
10757 (record_save): Renamed to ...
10758 (record_full_save): ... this. Updated all users.
10759 (record_reg_alloc): Renamed to ...
10760 (record_full_reg_alloc): ... this. Updated all users.
10761 (record_reg_release): Renamed to ...
10762 (record_full_reg_release): ... this. Updated all users.
10763 (record_mem_alloc): Renamed to ...
10764 (record_full_mem_alloc): ... this. Updated all users.
10765 (record_mem_release): Renamed to ...
10766 (record_full_mem_release): ... this. Updated all users.
10767 (record_end_alloc): Renamed to ...
10768 (record_full_end_alloc): ... this. Updated all users.
10769 (record_end_release): Renamed to ...
10770 (record_full_end_release): ... this. Updated all users.
10771 (record_entry_release): Renamed to ...
10772 (record_full_entry_release): ... this. Updated all users.
10773 (record_list_release): Renamed to ...
10774 (record_full_list_release): ... this. Updated all users.
10775 (record_list_release_following): Renamed to ...
10776 (record_full_list_release_following): ... this.
10777 Updated all users.
10778 (record_list_release_first): Renamed to ...
10779 (record_full_list_release_first): ... this. Updated all users.
10780 (record_arch_list_add): Renamed to ...
10781 (record_full_arch_list_add): ... this. Updated all users.
10782 (record_get_loc): Renamed to ...
10783 (record_full_get_loc): ... this. Updated all users.
10784 (record_check_insn_num): Renamed to ...
10785 (record_full_check_insn_num): ... this. Updated all users.
10786 (record_arch_list_cleanups): Renamed to ...
10787 (record_full_arch_list_cleanups): ... this. Updated all users.
10788 (record_message): Renamed to ...
10789 (record_full_message): ... this. Updated all users.
10790 (record_message_wrapper): Renamed to ...
10791 (record_full_message_wrapper): ... this. Updated all users.
10792 (record_message_wrapper_safe): Renamed to ...
10793 (record_full_message_wrapper_safe): ... this. Updated all users.
10794 (record_gdb_operation_disable): Renamed to ...
10795 (record_full_gdb_operation_disable): ... this. Updated all users.
10796 (record_hw_watchpoint): Renamed to ...
10797 (record_full_hw_watchpoint): ... this. Updated all users.
10798 (record_exec_insn): Renamed to ...
10799 (record_full_exec_insn): ... this. Updated all users.
10800 (record_restore): Renamed to ...
10801 (record_full_restore): ... this. Updated all users.
10802 (record_async_inferior_event_token): Renamed to ...
10803 (record_full_async_inferior_event_token): ... this.
10804 Updated all users.
10805 (record_async_inferior_event_handler): Renamed to ...
10806 (record_full_async_inferior_event_handler): ... this.
10807 Updated all users.
10808 (record_core_open_1): Renamed to ...
10809 (record_full_core_open_1): ... this. Updated all users.
10810 (record_open_1): Renamed to ...
10811 (record_full_open_1): ... this. Updated all users.
10812 (record_open): Renamed to ...
10813 (record_full_open): ... this. Updated all users.
10814 (record_close): Renamed to ...
10815 (record_full_close): ... this. Updated all users.
10816 (record_resume_step): Renamed to ...
10817 (record_full_resume_step): ... this. Updated all users.
10818 (record_resumed): Renamed to ...
10819 (record_full_resumed): ... this. Updated all users.
10820 (record_execution_dir): Renamed to ...
10821 (record_full_execution_dir): ... this. Updated all users.
10822 (record_resume): Renamed to ...
10823 (record_full_resume): ... this. Updated all users.
10824 (record_get_sig): Renamed to ...
10825 (record_full_get_sig): ... this. Updated all users.
10826 (record_sig_handler): Renamed to ...
10827 (record_full_sig_handler): ... this. Updated all users.
10828 (record_wait_cleanups): Renamed to ...
10829 (record_full_wait_cleanups): ... this. Updated all users.
10830 (record_wait_1): Renamed to ...
10831 (record_full_wait_1): ... this. Updated all users.
10832 (record_wait): Renamed to ...
10833 (record_full_wait): ... this. Updated all users.
10834 (record_stopped_by_watchpoint): Renamed to ...
10835 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10836 (record_disconnect): Renamed to ...
10837 (record_full_disconnect): ... this. Updated all users.
10838 (record_detach): Renamed to ...
10839 (record_full_detach): ... this. Updated all users.
10840 (record_mourn_inferior): Renamed to ...
10841 (record_full_mourn_inferior): ... this. Updated all users.
10842 (record_kill): Renamed to ...
10843 (record_full_kill): ... this. Updated all users.
10844 (record_stopped_data_address): Renamed to ...
10845 (record_full_stopped_data_address): ... this. Updated all users.
10846 (record_registers_change): Renamed to ...
10847 (record_full_registers_change): ... this. Updated all users.
10848 (record_store_registers): Renamed to ...
10849 (record_full_store_registers): ... this. Updated all users.
10850 (record_xfer_partial): Renamed to ...
10851 (record_full_xfer_partial): ... this. Updated all users.
10852 (record_breakpoint): Renamed to ...
10853 (record_full_breakpoint): ... this. Updated all users.
10854 (record_breakpoint_p): Renamed to ...
10855 (record_full_breakpoint_p): ... this. Updated all users.
10856 (record_breakpoints): Renamed to ...
10857 (record_full_breakpoints): ... this. Updated all users.
10858 (record_sync_record_breakpoints): Renamed to ...
10859 (record_full_sync_record_breakpoints): ... this.
10860 Updated all users.
10861 (record_init_record_breakpoints): Renamed to ...
10862 (record_full_init_record_breakpoints): ... this.
10863 Updated all users.
10864 (record_insert_breakpoint): Renamed to ...
10865 (record_full_insert_breakpoint): ... this. Updated all users.
10866 (record_remove_breakpoint): Renamed to ...
10867 (record_full_remove_breakpoint): ... this. Updated all users.
10868 (record_can_execute_reverse): Renamed to ...
10869 (record_full_can_execute_reverse): ... this. Updated all users.
10870 (record_get_bookmark): Renamed to ...
10871 (record_full_get_bookmark): ... this. Updated all users.
10872 (record_goto_bookmark): Renamed to ...
10873 (record_full_goto_bookmark): ... this. Updated all users.
10874 (record_async): Renamed to ...
10875 (record_full_async): ... this. Updated all users.
10876 (record_can_async_p): Renamed to ...
10877 (record_full_can_async_p): ... this. Updated all users.
10878 (record_is_async_p): Renamed to ...
10879 (record_full_is_async_p): ... this. Updated all users.
10880 (record_execution_direction): Renamed to ...
10881 (record_full_execution_direction): ... this. Updated all users.
10882 (record_info): Renamed to ...
10883 (record_full_info): ... this. Updated all users.
10884 (record_delete): Renamed to ...
10885 (record_full_delete): ... this. Updated all users.
10886 (record_is_replaying): Renamed to ...
10887 (record_full_is_replaying): ... this. Updated all users.
10888 (record_goto_entry): Renamed to ...
10889 (record_full_goto_entry): ... this. Updated all users.
10890 (record_goto_begin): Renamed to ...
10891 (record_full_goto_begin): ... this. Updated all users.
10892 (record_goto_end): Renamed to ...
10893 (record_full_goto_end): ... this. Updated all users.
10894 (record_goto): Renamed to ...
10895 (record_full_goto): ... this. Updated all users.
10896 (init_record_ops): Renamed to ...
10897 (init_record_full_ops): ... this. Updated all users.
10898 (record_core_resume): Renamed to ...
10899 (record_full_core_resume): ... this. Updated all users.
10900 (record_core_kill): Renamed to ...
10901 (record_full_core_kill): ... this. Updated all users.
10902 (record_core_fetch_registers): Renamed to ...
10903 (record_full_core_fetch_registers): ... this. Updated all users.
10904 (record_core_prepare_to_store): Renamed to ...
10905 (record_full_core_prepare_to_store): ... this. Updated all users.
10906 (record_core_store_registers): Renamed to ...
10907 (record_full_core_store_registers): ... this. Updated all users.
10908 (record_core_xfer_partial): Renamed to ...
10909 (record_full_core_xfer_partial): ... this. Updated all users.
10910 (record_core_insert_breakpoint): Renamed to ...
10911 (record_full_core_insert_breakpoint): ... this. Updated all users.
10912 (record_core_remove_breakpoint): Renamed to ...
10913 (record_full_core_remove_breakpoint): ... this. Updated all users.
10914 (record_core_has_execution): Renamed to ...
10915 (record_full_core_has_execution): ... this. Updated all users.
10916 (init_record_core_ops): Renamed to ...
10917 (init_record_full_core_ops): ... this. Updated all users.
10918 (cmd_record_restore): Renamed to ...
10919 (cmd_record_full_restore): ... this. Updated all users.
10920 (record_save_cleanups): Renamed to ...
10921 (record_full_save_cleanups): ... this. Updated all users.
10922 (cmd_record_start): Renamed to ...
10923 (cmd_record_full_start): ... this. Updated all users.
10924 (set_record_insn_max_num): Renamed to ...
10925 (set_record_full_insn_max_num): ... this. Updated all users.
10926 (set_record_command): Renamed to ...
10927 (set_record_full_command): ... this. Updated all users.
10928 (show_record_command): Renamed to ...
10929 (show_record_full_command): ... this. Updated all users.
10930 (_initialize_record): Renamed to ...
10931 (_initialize_record_full): ... this. Updated all users.
10932
10933 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10934
10935 * record.h: Split into this and ...
10936 * record-full.h: ... this.
10937 * record.c: Split into this and ...
10938 * record-full.c: ... this.
10939 * target.h (target_ops): Add new fields to_info_record,
10940 to_save_record, to_delete_record, to_record_is_replaying,
10941 to_goto_record_begin, to_goto_record_end, to_goto_record.
10942 (target_info_record): New.
10943 (target_save_record): New.
10944 (target_supports_delete_record): New.
10945 (target_delete_record): New.
10946 (target_record_is_replaying): New.
10947 (target_goto_record_begin): New.
10948 (target_goto_record_end): New.
10949 (target_goto_record): New.
10950 * target.c (target_info_record): New.
10951 (target_save_record): New.
10952 (target_supports_delete_record): New.
10953 (target_delete_record): New.
10954 (target_record_is_replaying): New.
10955 (target_goto_record_begin): New.
10956 (target_goto_record_end): New.
10957 (target_goto_record): New.
10958 * record.h: Declare struct cmd_list_element.
10959 (record_cmdlist): New declaration.
10960 (set_record_cmdlist): New declaration.
10961 (show_record_cmdlist): New declaration.
10962 (info_record_cmdlist): New declaration.
10963 (cmd_record_goto): New declaration.
10964 * record.c: Remove unnecessary includes.
10965 Include inferior.h.
10966 (cmd_record_goto): Remove declaration.
10967 (record_cmdlist): Now extern. Initialize.
10968 (set_record_cmdlist): Now extern. Initialize.
10969 (show_record_cmdlist): Now extern. Initialize.
10970 (info_record_cmdlist): Now extern. Initialize.
10971 (find_record_target): New.
10972 (require_record_target): New.
10973 (cmd_record_start): Update.
10974 (cmd_record_delete): Remove target-specific code.
10975 Call target_delete_record.
10976 (cmd_record_stop): Unpush any record target.
10977 (set_record_insn_max_num): Move to record-full.c
10978 (set_record_command): Add comment.
10979 (show_record_command): Add comment.
10980 (info_record_command): Update comment.
10981 Remove target-specific code.
10982 Call the record target's to_info_record.
10983 (cmd_record_start): New.
10984 (cmd_record_goto): Now extern.
10985 Remove target-specific code.
10986 Call target_goto_begin, target_goto_end, or target_goto.
10987 (_initialize_record): Move record target ops initialization to
10988 record-full.c.
10989 Change "record" command help text.
10990 Move "record restore", "record set", and "record show" commands to
10991 record-full.c.
10992 * Makefile.in (SFILES): Add record-full.c.
10993 (HFILES_NO_SRCDIR): Add record-full.h.
10994 (COMMON_OBS): Add record-full.o.
10995 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10996 * arm-tdep.c: Include record-full.h.
10997 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10998 * i386-tdep.c: Include record-full.h.
10999 * infrun.c: Include record-full.h.
11000 * linux-record.c: Include record-full.h.
11001 * moxie-tdep.c: Include record-full.h.
11002 * record-full.c: Include record-full.h.
11003 Change module comment.
11004 (set_record_full_cmdlist): New.
11005 (show_record_full_cmdlist): New.
11006 (record_full_cmdlist): New.
11007 (record_goto_insn): New declaration.
11008 (record_save): New declaration.
11009 (record_check_insn_num): Change query string.
11010 (record_info): New.
11011 (record_delete): New.
11012 (record_is_replaying): New.
11013 (record_goto_entry): New.
11014 (record_goto_begin): New.
11015 (record_goto_end): New.
11016 (record_goto): New.
11017 (init_record_ops): Update.
11018 (init_record_core_ops): Update.
11019 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11020 (cmd_record_start): New.
11021 (set_record_insn_max_num): Moved from record.c
11022 (set_record_full_command): New.
11023 (show_record_full_command): New.
11024 (_initialize_record_full): New.
11025
11026 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11027
11028 * target.h (add_deprecated_target_alias): New.
11029 * target.c (add_deprecated_target_alias): New.
11030
11031 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11032
11033 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11034 and signal.h.
11035 (linux_supports_btrace): Add kernel and
11036 cpuid check.
11037 (kernel_supports_btrace): New function.
11038 (cpu_supports_btrace): New function.
11039 (intel_supports_btrace): New function.
11040
11041 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11042
11043 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11044 * remote.c: Include btrace.h.
11045 (struct btrace_target_info): New struct.
11046 (remote_supports_btrace): New function.
11047 (send_Qbtrace): New function.
11048 (remote_enable_btrace): New function.
11049 (remote_disable_btrace): New function.
11050 (remote_teardown_btrace): New function.
11051 (remote_read_btrace): New function.
11052 (init_remote_ops): Add btrace ops.
11053 (enum <unnamed>): Add btrace packets.
11054 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11055 (_initialize_remote): Add packet configuration for branch tracing.
11056
11057 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11058
11059 * features/btrace.dtd: New file.
11060 * Makefile.in (XMLFILES): Add btrace.dtd.
11061 * btrace.h (parse_xml_btrace): New declaration.
11062 * btrace.c: Include xml-support.h.
11063 (parse_xml_btrace): New function.
11064 (parse_xml_btrace_block): New function.
11065 (block_attributes): New struct.
11066 (btrace_attributes): New struct.
11067 (btrace_children): New struct.
11068 (btrace_elements): New struct.
11069
11070 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11071
11072 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11073 (amd64_linux_enable_btrace): New.
11074 (amd64_linux_disable_btrace): New.
11075 (amd64_linux_teardown_btrace): New.
11076 (_initialize_amd64_linux_nat): Initialize btrace ops.
11077 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11078 (i386_linux_enable_btrace): New.
11079 (i386_linux_disable_btrace): New.
11080 (i386_linux_teardown_btrace): New.
11081 (_initialize_i386_linux_nat): Initialize btrace ops.
11082 * config/i386/linux.mh: Add linux-btrace.o.
11083 * config/i386/linux64.mh: Add linux-btrace.o.
11084
11085 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11086
11087 * common/linux_btrace.h: New file.
11088 * common/linux_btrace.c: New file.
11089 * Makefile.in (SFILES): Add btrace.c.
11090 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11091 (COMMON_OBS): Add btrace.o.
11092 (linux-btrace.o): New rule.
11093
11094 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11095
11096 * target.h: Include btrace.h.
11097 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11098 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11099 * target.c (target_supports_btrace): New function.
11100 (target_enable_btrace): New function.
11101 (target_disable_btrace): New function.
11102 (target_teardown_btrace): New function.
11103 (target_read_btrace): New function.
11104 * btrace.h: New file.
11105 * btrace.c: New file.
11106 * Makefile.in: Add btrace.c.
11107 * gdbthread.h: Include btrace.h.
11108 (struct thread_info): Add btrace field.
11109 * thread.c: Include btrace.h.
11110 (clear_thread_inferior_resources): Call target_teardown_btrace.
11111 * common/btrace-common.h: New file.
11112
11113 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11116 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11117 kill_status to outer block.
11118
11119 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Fix entry-values if the callee called a noreturn function.
11122 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11123 get_frame_address_in_block. Add new comment.
11124
11125 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11126
11127 Fix entry-values in C++ across CUs.
11128 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11129 lookup_minimal_symbol. Add a comment.
11130 * dwarf2read.c
11131 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11132 DW_AT_linkage_name.
11133
11134 2013-03-08 Yao Qi <yao@codesourcery.com>
11135
11136 * tracepoint.c (_initialize_tracepoint): Indent the code.
11137
11138 2013-03-08 Pedro Alves <palves@redhat.com>
11139
11140 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11141 (parse_find_args, find_command): Change type of pattern buffer
11142 locals to 'gdb_byte *'.
11143
11144 2013-03-08 Stan Shebs <stan@codesourcery.com>
11145 Hafiz Abid Qadeer <abidh@codesourcery.com>
11146
11147 * NEWS: Mention set and show trace-buffer-size commands.
11148 Mention new packet.
11149 * target.h (struct target_ops): New method
11150 to_set_trace_buffer_size.
11151 (target_set_trace_buffer_size): New macro.
11152 * target.c (update_current_target): Set up new method.
11153 * tracepoint.c (trace_buffer_size): New global.
11154 (start_tracing): Send it to the target.
11155 (set_trace_buffer_size): New function.
11156 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11157 * remote.c (remote_set_trace_buffer_size): New function.
11158 (_initialize_remote): Use it.
11159 (QTBuffer:size) New remote command.
11160 (PACKET_QTBuffer_size): New enum.
11161 (remote_protocol_features): Add an entry for
11162 PACKET_QTBuffer_size.
11163
11164 2013-03-08 Tom Tromey <tromey@redhat.com>
11165
11166 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11167 variable.
11168
11169 2013-03-07 Pedro Alves <palves@redhat.com>
11170
11171 * target.c (target_read_stralloc, target_fileio_read_alloc):
11172 *Cast pointer to 'gdb_byte *' in target call.
11173
11174 2013-03-07 Pedro Alves <palves@redhat.com>
11175
11176 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11177 call.
11178
11179 2013-03-07 Keith Seitz <keiths@redhat.com>
11180
11181 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11182 (trace_pass_command): Likewise.
11183 * cli/cli-cmds.c: Include cli/cli-utils.h.
11184 (source_command): Use skip-spaces.
11185 (disassemble_command): Likewise.
11186 * findcmd.c: Include cli/cli-utils.h.
11187 (parse_find_args): Use skip_spaces.
11188 * go32-nat.c: Include cli/cli-utils.h.
11189 (go32_sldt): Use skip_spaces.
11190 (go32_sgdt): Likewise.
11191 (go32_sidt): Likewise.
11192 (go32_pde): Likewise.
11193 (go32_pte): Likewise.
11194 (go32_pte_for_address): Likewise.
11195 * infcmd.c: Include cli/cli-utils.h.
11196 (registers_info): Use skip_spaces.
11197 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11198 (linux_info_proc): Likewise.
11199 * linux-thread-db.c: Include cli/cli-utils.h.
11200 (info_auto_load_libthread_db): Use skip_spaces_const.
11201 * m32r-rom.c: Include cli/cli-utils.h.
11202 (m32r_upload_command): Use skip_spaces.
11203 * maint.c: Include cli/cli-utils.h.
11204 (maintenance_translate_address): Use skip_spaces.
11205 * mi/mi-parse.c: Include cli/cli-utils.h.
11206 (mi_parse_argv): Use skip_spaces.
11207 (mi_parse): Likewise.
11208 * minsyms.c: Include cli/cli-utils.h.
11209 (msymbol_hash_iw): Use skip_spaces_const.
11210 * objc-lang.c: Include cli/cli-utils.h.
11211 (parse_selector): Use skip_spaces.
11212 (parse_method): Likewise.
11213 * python/python.c: Include cli/cli-utils.h.
11214 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11215 (python_command)[HAVE_PYTHON]: Likewise.
11216 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11217 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11218 (m32r_load): Use skip_spaces.
11219 * serial.c: Include cli/cli-utils.h.
11220 (serial_open): Use skip_spaces_const.
11221 * stack.c: Include cli/cli-utils.h.
11222 (parse_frame_specification_1): Use skip_spaces_const.
11223 * symfile.c: Include cli/cli-utils.h.
11224 (set_ext_lang_command): Use skip_spaces.
11225 * symtab.c: Include cli/cli-utils.h.
11226 (rbreak_command): Use skip_spaces.
11227 * thread.c (thread_name_command): Use skip_spaces.
11228 * tracepoint.c (validate_actionline): Use skip_spaces.
11229 (encode_actions_1): Likewise.
11230 (trace_find_range_command): Likewise.
11231 (trace_find_outside_command): Likewise.
11232 (trace_dump_actions): Likewise.
11233
11234 2013-03-07 Pedro Alves <palves@redhat.com>
11235
11236 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11237 * expprint.c (print_subexp_standard): Likewise.
11238 * utils.c (host_char_to_target): Likewise.
11239 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11240 * varobj.c (value_get_print_value): Change type of local to char*.
11241 Cast it gdb_byte * in call to language printer.
11242
11243 2013-03-07 Pedro Alves <palves@redhat.com>
11244
11245 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11246 gdb_byte *'.
11247 (make_wchar_iterator): Remove cast to char*.
11248 (wchar_iterate): Change type of local.
11249
11250 2013-03-07 Pedro Alves <palves@redhat.com>
11251
11252 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11253 for 'regcache->register_status'.
11254
11255 2013-03-07 Pedro Alves <palves@redhat.com>
11256
11257 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11258 int.
11259
11260 2013-03-07 Pedro Alves <palves@redhat.com>
11261
11262 * stap-probe.c (handle_stap_probe): Add cast to char*.
11263
11264 2013-03-07 Pedro Alves <palves@redhat.com>
11265
11266 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11267 RECORD_MSGRCV>: Pass a signed variable to
11268 regcache_raw_read_signed, instead of an unsigned one.
11269
11270 2013-03-07 Pedro Alves <palves@redhat.com>
11271
11272 * remote-notif.c (notif_debug): Change type to int.
11273 * remote-notif.h (notif_debug): Likewise.
11274
11275 2013-03-07 Pedro Alves <palves@redhat.com>
11276
11277 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11278
11279 2013-03-07 Pedro Alves <palves@redhat.com>
11280
11281 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11282 * remote.h (hex2bin, bin2hex): ... here.
11283 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11284
11285 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11286
11287 * utils.c (initialize_utils): Improve doc strings of "set/show
11288 width", "set/show height", and "set/show pagination".
11289
11290 2013-03-06 Keith Seitz <keiths@redhat.com>
11291
11292 * ax-gdb.c (gen_printf): Make FORMAT const.
11293 * ax-gdb.h (gen_printf): Likewise.
11294 * ax-general.c (ax_string): Make STR const.
11295 * ax.h (ax_string): Likewise.
11296
11297 2013-03-06 Doug Evans <dje@google.com>
11298
11299 * elfread.c (elf_symfile_read): Move debugging printf to more
11300 logical location.
11301
11302 2013-03-06 Pedro Alves <palves@redhat.com>
11303
11304 * python/py-utils.c (target_string_to_unicode): Delete function.
11305 * python/python-internal.h (target_string_to_unicode): Delete
11306 declaration.
11307
11308 2013-03-06 Pierre Muller <muller@sourceware.org>
11309
11310 * linespec.c (get_current_search_block): ARI fix, use (void)
11311 for empty parameter list.
11312
11313 2013-03-05 Doug Evans <dje@google.com>
11314
11315 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11316 of old ada_lookup_symbol_list. In !full_search case, don't
11317 search superblocks.
11318 (ada_lookup_symbol_list): Delete arg full_search, all callers
11319 updated. Call ada_lookup_symbol_list_worker.
11320 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11321 * ada-lang.h (ada_lookup_symbol_list): Update.
11322 * language.h (language_defn): Update comment for
11323 la_iterate_over_symbols.
11324 * linespec.c (iterate_over_file_blocks): New function.
11325 (iterate_over_all_matching_symtabs): Call it.
11326 (lookup_prefix_sym): Ditto.
11327 (get_current_search_block): New function.
11328 (get_search_block): Delete.
11329 (find_label_symbols): Call get_current_search_block.
11330 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11331 * symtab.c (iterate_over_symbols): Don't search superblocks.
11332
11333 2013-03-05 Yao Qi <yao@codesourcery.com>
11334
11335 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11336 parameter VAR's type from "unsigned int" to "int".
11337 * command.h (var_zuinteger_unlimited): Update its comments.
11338 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11339
11340 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11341
11342 * NEWS: Mention new target x86_64-*-cygwin*.
11343
11344 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11345
11346 * configure.host: Add x86_64-*-cygwin* as host.
11347 * configure.tgt: Add x86_64-*-cygwin* as target.
11348 * config/i386/cygwin64.mh: New file.
11349
11350 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11351
11352 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11353
11354 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 * linespec.c (struct linespec_canonical_name): New.
11357 (struct linespec_state): Change canonical_names type to it.
11358 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11359 xrealloc element size. Initialize the different CANONICAL fields.
11360 (canonical_to_fullform): New.
11361 (filter_results): Use it. Add variables canonical, fullform and
11362 cleanup.
11363 (struct decode_line_2_item, decode_line_2_compare_items): New.
11364 (decode_line_2): Remove variables iter and item_names, add variables
11365 items and items_count. Modify the code for these new variables.
11366
11367 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11368
11369 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11370 calling do_cleanup.
11371
11372 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11373
11374 * tracepoint.c (build_traceframe_info): Add code for byte order.
11375
11376 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11377
11378 * v850-tdep.c: (v850e2_register_name): Revise system register
11379 names to match current V850E2M architecture specifications.
11380 Update register number enum comments too.
11381
11382 2013-03-01 Jiong Wang <jiwang@tilera.com>
11383 Pedro Alves <palves@redhat.com>
11384
11385 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11386 to END_ADDR.
11387 (tilegx_skip_prologue): Limit prologue analysis to section end.
11388
11389 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11390
11391 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11392 use it.
11393
11394 2013-03-01 Pedro Alves <palves@redhat.com>
11395
11396 Use gdb_byte for bytes from the program being debugged.
11397
11398 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11399 Change type of local 'buf' to gdb_byte.
11400 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11401 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11402 * cris-tdep.c (cris_sigcontext_addr)
11403 (cris_sigtramp_frame_unwind_cache): Likewise.
11404 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11405 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11406 Likewise.
11407 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11408 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11409 (hppa32_hpux_search_dummy_call_sequence)
11410 (hppa_hpux_supply_save_state): Likewise.
11411 * hppa-linux-tdep.c (insns_match_pattern)
11412 (hppa_linux_find_global_pointer): Likewise.
11413 * hppa-tdep.c (hppa_in_function_epilogue_p)
11414 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11415 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11416 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11417 (i386fbsd_collect_uthread): Likewise.
11418 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11419 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11420 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11421 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11422 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11423 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11424 (ia64_libunwind_frame_prev_register)
11425 (ia64_libunwind_sigtramp_frame_this_id)
11426 (ia64_find_global_pointer_from_dynamic_section)
11427 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11428 (ia64_unwind_pc): Likewise.
11429 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11430 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11431 (m68hc11_extract_return_value): Likewise.
11432 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11433 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11434 (mep_get_insn, mep_push_dummy_call): Likewise.
11435 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11436 (mips_linux_in_dynsym_stub): Likewise.
11437 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11438 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11439 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11440 to gdb_byte.
11441 * remote-mips.c (mips_set_register): Likewise.
11442 * remote-sim.c (gdbsim_fetch_register): Likewise.
11443 * score-tdep.c (score7_fetch_inst): Change type of parameter
11444 'memblock' and local 'buf' to gdb_byte.
11445 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11446 Change type of local 'buf' to gdb_byte. Adjust.
11447 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11448 to gdb_byte**.
11449 (score7_analyze_prologue): Change type of 'memblock' and
11450 'memblock_ptr' locals to gdb_byte*.
11451 * sh64-tdep.c (sh64_extract_return_value)
11452 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11453 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11454 * solib-pa64.c (pa64_solib_create_inferior_hook)
11455 (pa64_open_symbol_file_object): Remove local 'buf'.
11456 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11457 (som_open_symbol_file_object): Likewise.
11458 * solib-spu.c (spu_current_sos): Likewise.
11459 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11460 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11461 (spu_store_registers): Likewise.
11462 * target.c (debug_print_register): Likewise.
11463 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11464 * xstormy16-tdep.c (xstormy16_store_return_value)
11465 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11466 (xstormy16_find_jmp_table_entry): Likewise.
11467
11468 2013-03-01 Jiong Wang <jiwang@tilera.com>
11469
11470 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11471 (tilegx_gdbarch_init): Install it.
11472
11473 2013-02-28 Tom Tromey <tromey@redhat.com>
11474
11475 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11476 PyLong_Check.
11477
11478 2013-02-28 Doug Evans <dje@google.com>
11479
11480 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11481 * python/python.c (gdbpy_find_pc_line): Ditto.
11482
11483 2013-02-28 Tom Tromey <tromey@redhat.com>
11484
11485 * contrib/excheck.py: New file.
11486 * contrib/exsummary.py: New file.
11487 * contrib/gcc-with-excheck: New file.
11488
11489 2013-02-28 Tom Tromey <tromey@redhat.com>
11490
11491 * python/python.c (gdbpy_print_stack): Call begin_line and
11492 fprintf_filtered inside TRY_CATCH.
11493
11494 2013-02-28 Tom Tromey <tromey@redhat.com>
11495
11496 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11497 inside TRY_CATCH.
11498
11499 2013-02-28 Tom Tromey <tromey@redhat.com>
11500
11501 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11502 frame_object_to_frame_info inside TRY_CATCH.
11503
11504 2013-02-28 Tom Tromey <tromey@redhat.com>
11505
11506 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11507 TRY_CATCH.
11508
11509 2013-02-28 Tom Tromey <tromey@redhat.com>
11510
11511 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11512
11513 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11514
11515 * windows-nat.c: Throughout, fix format strings and casts of
11516 printf-like functions to avoid type related warnings on all
11517 platforms.
11518 (handle_output_debug_string): Fetch context information address
11519 from debug string using string_to_core_addr.
11520
11521 2013-02-27 Jiong Wang <jiwang@tilera.com>
11522
11523 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11524 * regformats/reg-tilegx32.dat: New.
11525
11526 2013-02-27 Jiong Wang <jiwang@tilera.com>
11527
11528 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11529
11530 2013-02-27 Jiong Wang <jiwang@tilera.com>
11531
11532 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11533
11534 2013-02-27 Yao Qi <yao@codesourcery.com>
11535 Pedro Alves <palves@redhat.com>
11536
11537 * tracepoint.c (tfile_trace_find): For tfind
11538 pc/tp/range/outside, look for the next trace frame instead of
11539 always starting from frame 0.
11540
11541 2013-02-26 Anthony Green <green@moxielogic.com>
11542
11543 * configure.tgt: Add support for moxie-*-rtems* target.
11544
11545 2013-02-25 Pedro Alves <palves@redhat.com>
11546
11547 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11548 warning text.
11549
11550 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11551
11552 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11553 if $fp is used as the virtual frame pointer.
11554
11555 2013-02-23 Alan Modra <amodra@gmail.com>
11556
11557 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11558 symbol size.
11559 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11560 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11561 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11562 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11563
11564 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11565
11566 Code cleanup.
11567 * elfread.c (build_id_bfd_get): Make the return type const.
11568 (build_id_verify): Make the check parameter const.
11569 (build_id_to_debug_filename): Make the build_id parameter and variable
11570 data const.
11571 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11572
11573 2013-02-21 Alan Modra <amodra@gmail.com>
11574
11575 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11576
11577 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11578
11579 Add a new method 'disassemble' to gdb.Architecture class.
11580 * python/py-arch.c (archpy_disassmble): Implementation of the
11581 new method gdb.Architecture.disassemble.
11582 (arch_object_methods): Add entry for the new method.
11583
11584 2013-02-20 Jiong Wang <jiwang@tilera.com>
11585
11586 * MAINTAINERS (Write After Approval): Add myself to the list.
11587
11588 2013-02-19 Pedro Alves <palves@redhat.com>
11589
11590 Garbage collect 'struct monitor_ops'::load_routine.
11591
11592 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11593 * monitor.c (monitor_load): No longer call
11594 current_monitor->load_routine.
11595 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11596 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11597 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11598
11599 2013-02-19 Pedro Alves <palves@redhat.com>
11600
11601 PR gdb/15161
11602
11603 Harmonize with generic_load.
11604
11605 * monitor.c: Include "readline/readline.h".
11606 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11607 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11608 long/strtol for the 'load_offset' local. Error out if no argument
11609 is given or if too many arguments are given. Tilde expand the
11610 passed in file name.
11611
11612 2013-02-19 Kai Tietz <ktietz@redhat.com>
11613
11614 PR gdb/15161
11615 * symfile.c (load_section_data): Change type of load_offset
11616 to CORE_ADDR.
11617 (generic_load): User strtoulst instead of strtoul for conversion
11618 of load_offset.
11619
11620 2013-02-19 Jiong Wang <jiwang@tilera.com>
11621
11622 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11623 for return address, "lr" register, saved on stack.
11624 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11625 after we invoke tilegx_analyze_prologue.
11626
11627 2013-02-19 Jiong Wang <jiwang@tilera.com>
11628
11629 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11630
11631 2013-02-19 Jiong Wang <jiwang@tilera.com>
11632
11633 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11634
11635 2013-02-19 Jiong Wang <jiwang@tilera.com>
11636
11637 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11638 (tilegx_write_pc): New function.
11639 (tilegx_cannot_reference_register): Return zero if REGNO
11640 is TILEGX_FAULTNUM_REGNUM.
11641 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11642 (tilegx_register_name): Add handling of "faultnum" register.
11643 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11644 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11645 handling of TILEGX_FAULTNUM_REGNUM.
11646 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11647
11648 2013-02-19 Jiong Wang <jiwang@tilera.com>
11649
11650 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11651 should be aligned to 64bit.
11652
11653 2013-02-19 Kai Tietz <ktietz@redhat.com>
11654
11655 * windows-nat.c (windows_xfer_memory): Fix debug-output
11656 for LLP64.
11657
11658 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11659
11660 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11661 Don't check DSP register number if HAVE_DSP is not set.
11662
11663 2013-02-19 Alan Modra <amodra@gmail.com>
11664
11665 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11666 throughout file instead.
11667 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11668 Don't xmalloc return value.
11669 (build_id_verify): Similarly. Don't xfree.
11670 (build_id_to_debug_filename): Update.
11671 (find_separate_debug_file_by_buildid): Update, don't xfree.
11672
11673 2013-02-18 Tom Tromey <tromey@redhat.com>
11674
11675 PR gdb/15102:
11676 * dwarf2read.c (read_subrange_type): Use result of
11677 'check_typedef'.
11678
11679 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11680
11681 * frame.c: Remove one extra white space after #include
11682 directive.
11683
11684 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11685
11686 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11687
11688 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11689
11690 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11691 and dir commands into an if block.
11692
11693 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11694
11695 * python/py-breakpoint (struct pybp_code): Use int instead of
11696 enum type_code.
11697
11698 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11699 Hafiz Abid Qadeer <abidh@codesourcery.com>
11700
11701 * NEWS: Mention new field "trace-file".
11702 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11703 (tfile_open): Record the trace file's filename in the trace
11704 status.
11705 (tfile_files_info): Mention the name of the trace file.
11706 Check the "filename" field explicitely.
11707 (trace_status_command): Explicitely check "filename" field.
11708 (trace_find_command): Ditto.
11709 (trace_find_pc_command): Ditto.
11710 (trace_find_tracepoint_command): Ditto.
11711 (trace_find_line_command): Ditto.
11712 (trace_find_range_command): Ditto.
11713 (trace_find_outside_command): Ditto.
11714 * tracepoint.h (struct trace_status) <from_file>: Rename it
11715 to "filename" and make it hold the trace file's filename
11716 instead of a boolean.
11717 * remote.c (remote_get_trace_status): Initialize "filename"
11718 field with NULL instead of 0.
11719
11720 2013-02-15 Yao Qi <yao@codesourcery.com>
11721
11722 * remote.c: Fix a typo.
11723
11724 2013-02-14 Pierre Muller <muller@sourceware.org>
11725
11726 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11727
11728 2013-02-14 Pedro Alves <palves@redhat.com>
11729
11730 * utils.c (savestring): Don't #undef it. Move function to
11731 common/common-utils.c.
11732 * common/common-utils.c: Include gdb_string.h.
11733 (savestring): Move here from utils.c.
11734 * common/common-utils.h (savestring): Declare.
11735
11736 2013-02-14 Pedro Alves <palves@redhat.com>
11737
11738 * utils.c (savestring): Rename parameter 'size' to 'len'.
11739
11740 2013-02-14 Pedro Alves <palves@redhat.com>
11741 Yufeng Zhang <yufeng.zhang@arm.com>
11742
11743 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11744 (aarch64_inferior_data, struct aarch64_inferior_data):
11745 Delete.
11746 (struct aarch64_process_info): New.
11747 (aarch64_process_list): New global.
11748 (aarch64_find_process_pid, aarch64_add_process)
11749 (aarch64_process_info_get): New functions.
11750 (aarch64_inferior_data_get): Delete.
11751 (aarch64_process_info_get): New function.
11752 (aarch64_forget_process): New function.
11753 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11754 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11755 aarch64_get_debug_reg_state.
11756 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11757 instead of linux_nat_iterate_watchpoint_lwps.
11758 (aarch64_linux_new_fork): New function.
11759 (aarch64_linux_child_post_startup_inferior): Use
11760 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11761 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11762 (aarch64_linux_remove_hw_breakpoint)
11763 (aarch64_handle_aligned_watchpoint)
11764 (aarch64_handle_unaligned_watchpoint)
11765 (aarch64_linux_insert_watchpoint)
11766 (aarch64_linux_remove_watchpoint)
11767 (aarch64_linux_stopped_data_address): Adjust to pass the current
11768 process id to aarch64_debug_reg_state.
11769 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11770 linux_nat_new_fork hook, and aarch64_forget_process as
11771 linux_nat_forget_process hook; remove the call to
11772 register_inferior_data_with_cleanup.
11773
11774 2013-02-14 Pedro Alves <palves@redhat.com>
11775
11776 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11777 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11778 lval_memory.
11779
11780 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11781 Hafiz Abid Qadeer <abidh@codesourcery.com>
11782
11783 * tracepoint.h (validate_trace_state_variable_name): Declare.
11784 * tracepoint.c (validate_trace_state_variable_name): New.
11785 (trace_variable_command): Parse the trace state variable's name
11786 without using parse_expression. Do several validations.
11787 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11788 trace state variable's name with parse_expression. Validate it.
11789
11790 2013-02-14 Yao Qi <yao@codesourcery.com>
11791
11792 * infcmd.c (breakpoint_proceeded): Remove it.
11793
11794 2013-02-14 Yao Qi <yao@codesourcery.com>
11795
11796 * tracepoint.c (end_actions_pseudocommand): Make it static.
11797 (while_stepping_pseudocommand): Likewise.
11798 * tracepoint.h (end_actions_pseudocommand): Remove the
11799 declaration.
11800 (while_stepping_pseudocommand): Likewise.
11801
11802 2013-02-14 Yao Qi <yao@codesourcery.com>
11803
11804 * cli/cli-decode.c (help_cmd): Remove the declaration of
11805 "cmdlist".
11806 (help_all): Likewise.
11807
11808 2013-02-13 Pedro Alves <palves@redhat.com>
11809
11810 * amd64-linux-nat.c (update_debug_registers_callback):
11811 Update comment.
11812 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11813 iterate_over_lwps.
11814 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11815 i386_debug_reg_state.
11816 (amd64_linux_new_fork): New function.
11817 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11818 linux_nat_new_fork hook, and i386_forget_process as
11819 linux_nat_forget_process hook.
11820 * i386-linux-nat.c (update_debug_registers_callback):
11821 Update comment.
11822 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11823 iterate_over_lwps.
11824 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11825 i386_debug_reg_state.
11826 (i386_linux_new_fork): New function.
11827 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11828 linux_nat_new_fork hook, and i386_forget_process as
11829 linux_nat_forget_process hook.
11830 * i386-nat.c (i386_init_dregs): Delete.
11831 (i386_inferior_data, struct i386_inferior_data):
11832 Delete.
11833 (struct i386_process_info): New.
11834 (i386_process_list): New global.
11835 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11836 New functions.
11837 (i386_inferior_data_get): Delete.
11838 (i386_process_info_get): New function.
11839 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11840 (i386_forget_process): New function.
11841 (i386_cleanup_dregs): Rewrite.
11842 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11843 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11844 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11845 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11846 to i386_debug_reg_state.
11847 (i386_use_watchpoints): Don't register inferior data.
11848 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11849 adjust comment.
11850 (i386_forget_process): Declare.
11851 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11852 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11853 New static globals.
11854 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11855 (add_initial_lwp): New, factored out from ...
11856 (add_lwp): ... this. Don't check the number of lwps before
11857 calling linux_nat_new_thread.
11858 (linux_nat_iterate_watchpoint_lwps): Delete.
11859 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11860 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11861 forks and vforks.
11862 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11863 initial lwp.
11864 (linux_nat_kill, linux_nat_mourn_inferior): Call
11865 linux_nat_forget_process.
11866 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11867 (linux_nat_forget_process): New functions.
11868 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11869 type.
11870 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11871 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11872 types.
11873 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11874 (linux_nat_forget_process): New declarations.
11875
11876 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11877 (amd64fbsd_mourn_inferior): New function.
11878 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11879 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11880
11881 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11882
11883 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11884 Adding _().
11885
11886 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11887
11888 * aarch64-linux-nat.c (debug_reg_change_callback)
11889 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11890 %s and phex().
11891
11892 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11893
11894 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11895 with LONGEST.
11896
11897 2013-02-13 Pedro Alves <palves@redhat.com>
11898 Hafiz Abid Qadeer <abidh@codesourcery.com>
11899
11900 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11901
11902 2013-02-12 Tom Tromey <tromey@redhat.com>
11903
11904 PR symtab/11464:
11905 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11906 NAME return.
11907 (classify_inner_name): Remove 'first_name' argument, add
11908 'context'. Remove unused variable.
11909 (yylex): Explicitly maintain the context type. Exit loop earlier
11910 if NAME result is seen.
11911
11912 2013-02-12 Pedro Alves <palves@redhat.com>
11913
11914 * amd64-darwin-tdep.c: Add (C) after Copyright.
11915 * cli/cli-cmds.h: Ditto.
11916 * cli/cli-decode.c: Ditto.
11917 * cli/cli-decode.h: Ditto.
11918 * cli/cli-dump.c: Ditto.
11919 * cli/cli-dump.h: Ditto.
11920 * cli/cli-interp.c: Ditto.
11921 * cli/cli-logging.c: Ditto.
11922 * cli/cli-script.c: Ditto.
11923 * cli/cli-script.h: Ditto.
11924 * cli/cli-setshow.c: Ditto.
11925 * cli/cli-setshow.h: Ditto.
11926 * cli/cli-utils.c: Ditto.
11927 * cli/cli-utils.h: Ditto.
11928 * config/alpha/nm-osf3.h: Ditto.
11929 * config/djgpp/djconfig.sh: Ditto.
11930 * config/i386/nm-fbsd.h: Ditto.
11931 * config/i386/nm-i386gnu.h: Ditto.
11932 * config/nm-linux.h: Ditto.
11933 * config/nm-nto.h: Ditto.
11934 * config/rs6000/nm-rs6000.h: Ditto.
11935 * config/sparc/nm-sol2.h: Ditto.
11936 * darwin-nat-info.c: Ditto.
11937 * dfp.c: Ditto.
11938 * dfp.h: Ditto.
11939 * gdb-demangle.h: Ditto.
11940 * i386-darwin-nat.c: Ditto.
11941 * i386-darwin-tdep.c: Ditto.
11942 * linux-fork.h: Ditto.
11943 * m32c-tdep.c: Ditto.
11944 * microblaze-linux-tdep.c: Ditto.
11945 * microblaze-rom.c: Ditto.
11946 * microblaze-tdep.c: Ditto.
11947 * microblaze-tdep.h: Ditto.
11948 * mips-linux-tdep.h: Ditto.
11949 * ppc-ravenscar-thread.c: Ditto.
11950 * ppc-ravenscar-thread.h: Ditto.
11951 * prologue-value.c: Ditto.
11952 * prologue-value.h: Ditto.
11953 * ravenscar-thread.c: Ditto.
11954 * ravenscar-thread.h: Ditto.
11955 * sparc-ravenscar-thread.c: Ditto.
11956 * sparc-ravenscar-thread.h: Ditto.
11957 * tilegx-linux-tdep.c: Ditto.
11958 * unwind_stop_reasons.def: Ditto.
11959 * windows-nat.h: Ditto.
11960 * xtensa-linux-tdep.c: Ditto.
11961 * xtensa-xtregs.c: Ditto.
11962 * regformats/regdat.sh: Ditto.
11963 * regformats/regdef.h: Ditto.
11964
11965 2013-02-12 Pedro Alves <palves@redhat.com>
11966
11967 * break-catch-sig.c: Update copyright years.
11968
11969 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11970
11971 Add support for a destructor for ui_out data and use it to
11972 provide a ui_out destructor.
11973 * ui-out.h: Declare the new ui_out destructor.
11974 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11975 * ui-out.c (default_data_destroy): Add a default data destructor
11976 which does nothing.
11977 (default_ui_out_impl): Set the new data_destroy field to
11978 default_data_destroy
11979 (uo_data_destroy): Local function which invokes the data
11980 destructor if present.
11981 (clear_table): Local function which clears the table data of a
11982 ui_out object.
11983 (ui_out_destroy): Public function which frees a ui_out object.
11984 (ui_out_table_end): Use the new clear_table function.
11985 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11986 NULL.
11987 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11988 to NULL.
11989
11990 2013-02-11 Doug Evans <dje@google.com>
11991
11992 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11993 (printf_decfloat): New function. Broken out from ui_printf.
11994 Remove unnecessary code to shift the entire format string down.
11995 (printf_pointer): New function.
11996 (ui_printf): Code to print C strings, wide C strings, decfloats,
11997 and pointers moved to separate functions.
11998
11999 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12000
12001 * valops.c (value_assign): Handling bitfield offset in
12002 `lval_internalvar_component' case.
12003
12004 2013-02-08 Doug Evans <dje@google.com>
12005
12006 * common/format.c (parse_format_string): Fix whitespace.
12007
12008 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12009
12010 * stack.c (return_command): Work around uninitialized variable
12011 warning.
12012
12013 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12014
12015 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12016 number of the registers from 36 to 34.
12017
12018 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12019
12020 * NEWS: Mention new AArch64 native and target support.
12021
12022 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12023
12024 * MAINTAINERS (Write After Approval): Add myself.
12025
12026 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12027 Marcus Shawcroft <marcus.shawcroft@arm.com>
12028 Nigel Stephens <nigel.stephens@arm.com>
12029 Yufeng Zhang <yufeng.zhang@arm.com>
12030
12031 * aarch64-linux-nat.c: New file.
12032 * config/aarch64/linux.mh: New file.
12033 * configure.host: Add AArch64.
12034 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12035
12036 2013-02-07 Doug Evans <dje@google.com>
12037
12038 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12039 disassemble command.
12040
12041 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12042
12043 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12044 set_gdbarch_fetch_tls_load_module_address.
12045
12046 2013-02-06 David S. Miller <davem@davemloft.net>
12047
12048 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12049 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12050 * value.c (struct_return_convention): New function.
12051 (using_struct_return): Implement in terms of struct_return_convention.
12052 * value.h (struct_return_convention): Declare.
12053 * stack.c (return_command): Allow successful overriding of the return
12054 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12055
12056 2013-02-06 Tom Tromey <tromey@redhat.com>
12057
12058 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12059 outside of TRY_CATCH.
12060
12061 2013-02-06 Yao Qi <yao@codesourcery.com>
12062
12063 * mi/mi-interp.c: Include "tracepoint.h".
12064 (mi_tsv_modified): Declare.
12065 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12066 (mi_interpreter_init): Call observer_attach_tsv_modified.
12067 (mi_tsv_modified): New.
12068 (mi_tsv_created, mi_tsv_deleted): Update.
12069 * tracepoint.c (trace_variable_command): Call
12070 observer_notify_tsv_modified if the initial value of tsv is
12071 changed.
12072 (delete_trace_state_variable): Call
12073 observer_notify_tsv_deleted earlier.
12074 (trace_variable_command): Caller update.
12075 (create_tsv_from_upload): Likewise.
12076 * observer.sh: Declare "struct trace_state_variable".
12077
12078 * NEWS: Mention the new MI notification "=tsv-modified".
12079
12080 2013-02-05 Doug Evans <dje@google.com>
12081
12082 * completer.c (location_completer): Fix typo in comment.
12083
12084 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12085
12086 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12087 ADDRESS sorted.
12088
12089 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12090
12091 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12092 Refactor if statement to avoid trailing || operator.
12093
12094 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12095
12096 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12097
12098 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12099
12100 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12101 * configure.host: Add powerpc*-*-freebsd* target.
12102 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12103 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12104 * config/powerpc/fbsd.mh: New file.
12105
12106 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12107 Denys Vlasenko <dvlasenk@redhat.com>
12108 Pedro Alves <palves@redhat.com>
12109
12110 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12111 (struct elf_internal_linux_prpsinfo): Forward declare.
12112 * gdbarch.h, gdbarch.c: Regenerate.
12113 * linux-tdep.c: Include `cli/cli-utils.h'.
12114 (linux_fill_prpsinfo): New function.
12115 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12116 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12117 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12118 depending on gdbarch pointer bitness.
12119 * ppc-linux-tdep.c: Include elf-bfd.h.
12120 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12121 on 32-bit.
12122
12123 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12124 Marcus Shawcroft <marcus.shawcroft@arm.com>
12125 Nigel Stephens <nigel.stephens@arm.com>
12126 Yufeng Zhang <yufeng.zhang@arm.com>
12127
12128 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12129
12130 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12131 Marcus Shawcroft <marcus.shawcroft@arm.com>
12132 Nigel Stephens <nigel.stephens@arm.com>
12133 Yufeng Zhang <yufeng.zhang@arm.com>
12134
12135 * aarch64-newlib-tdep.c: New file.
12136 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12137 aarch64*-*-elf.
12138 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12139 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12140 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12141 * osabi.c (gdb_osabi_names): Add "Newlib".
12142
12143 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12144 Marcus Shawcroft <marcus.shawcroft@arm.com>
12145 Nigel Stephens <nigel.stephens@arm.com>
12146 Yufeng Zhang <yufeng.zhang@arm.com>
12147
12148 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12149 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12150 * aarch64-linux-tdep.c: New file.
12151 * aarch64-linux-tdep.h: New file.
12152 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12153 * configure.tgt: Add aarch64-none-linux-gnu.
12154
12155 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12156 Marcus Shawcroft <marcus.shawcroft@arm.com>
12157 Nigel Stephens <nigel.stephens@arm.com>
12158 Yufeng Zhang <yufeng.zhang@arm.com>
12159
12160 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12161 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12162 (ALLDEPFILES): Add aarch64-tdep.c.
12163 * aarch64-tdep.c: New file.
12164 * aarch64-tdep.h: New file.
12165 * configure.tgt: Add AArch64.
12166 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12167 (aarch64-expedite): New definition.
12168 * features/aarch64-core.xml: New file.
12169 * features/aarch64-fpu.xml: New file.
12170 * features/aarch64-without-fpu.c: New file (generated).
12171 * features/aarch64-without-fpu.xml: New file.
12172 * features/aarch64.c: New file (generated).
12173 * features/aarch64.xml: New file.
12174 * regformats/aarch64-without-fpu.dat: New file (generated).
12175 * regformats/aarch64.dat: New file (generated).
12176
12177 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12178
12179 * contrib/expect-read1.c: New file.
12180 * contrib/expect-read1.sh: New file.
12181
12182 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12183
12184 * dwarf2read.c (file_file_name): New function with code from
12185 file_full_name.
12186 (file_full_name): Move most of the code to file_file_name.
12187 (macro_start_file): Rename variable full_name to file_name and use
12188 file_file_name for it. Add comp_dir parameter to new_macro_table.
12189 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12190 macro_source_file->filename access by macro_source_fullname call.
12191 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12192 caller.
12193 * macrotab.c (struct macro_table): New field comp_dir.
12194 (macro_include): New variables link_fullname and source_fullname.
12195 Replace any macro_source_file->filename access by macro_source_fullname
12196 call.
12197 (macro_lookup_inclusion): Remove the partial filenames checking code.
12198 (check_for_redefinition): New variables source_fullname and
12199 found_key_fullname. Replace any macro_source_file->filename access by
12200 macro_source_fullname call.
12201 (macro_undef): New variables source_fullname and key_fullname. Replace
12202 any macro_source_file->filename access by macro_source_fullname call.
12203 (macro_lookup_definition): New variables retval and source_fullname.
12204 Replace any macro_source_file->filename access by macro_source_fullname
12205 call.
12206 (foreach_macro): New variable key_fullname. Replace any
12207 macro_source_file->filename access by macro_source_fullname call.
12208 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12209 macro_source_file->filename access by macro_source_fullname call.
12210 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12211 (macro_source_fullname): New function.
12212 * macrotab.h (struct macro_source_file): Extent the filename field
12213 comment.
12214 (new_macro_table): New parameter comp_dir, add a comment for it.
12215 (macro_source_fullname): new declaration.
12216
12217 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12218
12219 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12220 this_real_name to outer block. Use it also for
12221 compare_filenames_for_search.
12222 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12223 with dw2_get_real_path for file_matcher, considering also
12224 BASENAMES_MAY_DIFFER.
12225 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12226
12227 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12228
12229 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12230 to the file_matcher parameter. Pass 0 to it.
12231 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12232 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12233 NULL psymtab_to_fullname result.
12234 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12235 an expected filename instead.
12236 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12237 file_matcher parameter. Call also psymtab_to_fullname, after newly
12238 considering BASENAMES_MAY_DIFFER.
12239 * source.c (rewrite_source_path): Remove static.
12240 * source.h (rewrite_source_path): New declaration.
12241 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12242 the expand_symtabs_matching field. Comment it.
12243 * symtab.c (file_matches): New function comment. Add parameter
12244 basenames, implement it.
12245 (search_symbols_file_matches): Add basenames parameter. Update the
12246 file_matches caller.
12247 (search_symbols): Match FILES also against symtab_to_fullname.
12248 Optimize it for BASENAMES_MAY_DIFFER.
12249
12250 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12251
12252 * source.c (print_source_lines_base): Print for TUI also "fullname".
12253 * tui/tui-data.c (init_content_element): Change tui_locator_element
12254 field to full_name.
12255 * tui/tui-data.h (struct tui_locator_element): Likewise.
12256 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12257 tui_update_locator_filename calls to tui_update_locator_fullname.
12258 Replace symtab->filename refererence by symtab_to_fullname call.
12259 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12260 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12261 field to full_name. Replace symtab->filename refererence by
12262 symtab_to_fullname call.
12263 (tui_show_symtab_source): Rename parameter to fullname. Change
12264 tui_locator_element field to full_name.
12265 * tui/tui-stack.c: Include source.h.
12266 (tui_set_locator_filename): Rename the declaration to ...
12267 (tui_set_locator_fullname): ... here. Rename its parameter to
12268 fullname, updates its comment.
12269 (tui_set_locator_info): Rename its parameter to fullname.
12270 (tui_set_locator_filename): Rename the definition to ...
12271 (tui_set_locator_fullname): ... here. Rename its parameter to
12272 fullname, updates its comment. Change tui_locator_element field to
12273 full_name.
12274 (tui_set_locator_info): Rename its parameter to fullname.
12275 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12276 (tui_update_locator_filename): Rename to ...
12277 (tui_update_locator_fullname): ... here. Rename callee to
12278 tui_set_locator_fullname.
12279 (tui_show_frame_info): Replace symtab->filename refererence by
12280 symtab_to_fullname call.
12281 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12282 (tui_update_locator_fullname): ... here.
12283 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12284 tui_update_locator_fullname. Replace symtab->filename refererence by
12285 symtab_to_fullname call.
12286 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12287 Rename the callee to tui_update_locator_fullname.
12288 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12289
12290 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12291
12292 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12293 by symtab_to_filename_for_display calls.
12294 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12295 (clear_command): New variable sal_fullname, initialize it. Replace
12296 compare_filenames_for_search by filename_cmp with sal_fullname.
12297 (say_where, update_static_tracepoint): Replace symtab->filename
12298 refererences by symtab_to_filename_for_display calls.
12299 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12300 Likewise.
12301 * dwarf2read.c: Include source.h.
12302 (fixup_go_packaging): Replace symtab->filename refererences by
12303 symtab_to_filename_for_display calls.
12304 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12305 Replace symtab->filename refererences by symtab_to_filename_for_display
12306 calls.
12307 (create_sals_line_offset, convert_linespec_to_sals): New variable
12308 fullname, initialize it, replace symtab->filename reference by the
12309 variable.
12310 * linux-fork.c: Include source.h.
12311 (info_checkpoints_command): Replace symtab->filename refererences by
12312 symtab_to_filename_for_display calls.
12313 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12314 by symtab_to_filename_for_display calls.
12315 * mdebugread.c: Include source.h.
12316 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12317 symtab_to_filename_for_display calls.
12318 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12319 (mi_cmd_file_list_exec_source_files): Likewise.
12320 * printcmd.c: Include source.h.
12321 (build_address_symbolic): Replace symtab->filename refererences by
12322 symtab_to_filename_for_display calls.
12323 * psymtab.c (partial_map_symtabs_matching_filename)
12324 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12325 with psymtab_to_fullname.
12326 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12327 by symtab_to_filename_for_display calls.
12328 (stpy_get_filename): New variable filename, initialize it, use instead
12329 of symtab->filename refererences.
12330 (salpy_str): Make variable filename const char *. Replace
12331 symtab->filename refererences by symtab_to_filename_for_display calls.
12332 * skip.c: Include source.h and filenames.h.
12333 (skip_file_command): Remove const from the symtab variable. Replace
12334 symtab->filename refererences by symtab_to_fullname call.
12335 (function_name_is_marked_for_skip): New variables searched_for_fullname
12336 and fullname. Use them to search also with symtab's fullname.
12337 * source.c (find_source_lines): Replace symtab->filename refererences
12338 by symtab_to_filename_for_display calls.
12339 (print_source_lines_base): New variable filename, use it instead of
12340 symtab->filename. Replace symtab->filename refererences by
12341 symtab_to_filename_for_display calls.
12342 (line_info, forward_search_command): Replace symtab->filename
12343 refererences by symtab_to_filename_for_display calls.
12344 (reverse_search_command): Replace symtab->filename refererences by
12345 symtab_to_filename_for_display calls. New variable filename for it.
12346 * stack.c (frame_info): Likewise.
12347 * symmisc.c: Include source.h.
12348 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12349 (maintenance_info_symtabs): Replace symtab->filename refererences by
12350 symtab_to_filename_for_display calls.
12351 * symtab.c (iterate_over_some_symtabs): Call
12352 compare_filenames_for_search also with symtab_to_fullname.
12353 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12354 symtab->filename refererences by symtab_to_filename_for_display calls.
12355 (find_line_symtab): Replace symtab->filename refererences by
12356 symtab_to_filename_for_display calls.
12357 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12358 (print_symbol_info): Make the last parameter const char *. New
12359 variable s_filename. Use it in the function.
12360 (symtab_symbol_info): Make the last_filename variable const char *.
12361 Replace symtab->filename refererences by symtab_to_filename_for_display
12362 calls.
12363 (rbreak_command): New variable fullname. Use it. Replace
12364 symtab->filename refererence by symtab_to_filename_for_display call.
12365 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12366 (print_one_static_tracepoint_marker): Replace symtab->filename
12367 refererences by symtab_to_filename_for_display calls.
12368 * tui/tui-source.c (tui_set_source_content): New variables filename and
12369 s_filename. Replace symtab->filename refererences by this variable.
12370 Replace other symtab->filename refererences by
12371 symtab_to_filename_for_display calls.
12372
12373 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12374 Jan Kratochvil <jan.kratochvil@redhat.com>
12375
12376 Add a new variable that controls a way in which filenames are
12377 displayed.
12378 * NEWS (set filename-display): New entry.
12379 * source.c (filename_display_basename, filename_display_relative)
12380 (filename_display_absolute, filename_display_kind_names)
12381 (filename_display_string, show_filename_display_string)
12382 (symtab_to_filename_for_display): New.
12383 (_initialize_source): Added initialization of 'filename-display'
12384 variable.
12385 * source.h (symtab_to_filename_for_display): Added declaration.
12386 * stack.c (print_frame): Added new variable and calling of a new
12387 function and condition with this variable. Changed third argument of
12388 calling of a function.
12389
12390 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12391
12392 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12393 Rename field reference filename to fullname.
12394 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12395 fullname. New comment for it.
12396 * tui/tui-source.c (tui_set_source_content): Rename field reference
12397 filename to fullname. Initialize field by symtab_to_fullname now.
12398 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12399 reference filename to fullname. Use symtab_to_fullname during
12400 comparison.
12401
12402 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12403
12404 Code cleanup.
12405 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12406 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12407 filename to fullname. Rename variable this_name to this_fullname.
12408 Lowercase FILENAME_CMP call.
12409 (dw2_find_symbol_file): New comment for the returned string.
12410 (dwarf2_gdb_index_functions): Rename the function to
12411 dw2_expand_symtabs_with_fullname.
12412 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12413 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12414 fullname.
12415 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12416 * symfile.h (struct quick_symbol_functions): Rename field
12417 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12418 parameter filename to fullname. Document returned string meaning for
12419 find_symbol_file.
12420 * symtab.c (find_line_symtab): Rename the called function to
12421 expand_symtabs_with_fullname.
12422
12423 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12424
12425 Code cleanup.
12426 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12427 call of filename_cmp with compare_filenames_for_search.
12428 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12429 is_abs, unify the call of FILENAME_CMP with
12430 compare_filenames_for_search. New gdb_asserts for real_path and name.
12431 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12432 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12433 * symfile.h (struct quick_symbol_functions): Extend the comment for
12434 map_symtabs_matching_filename.
12435 * symtab.c (compare_filenames_for_search): Remove the function comment
12436 relative path requirement. Handle absolute filenames, with a comment.
12437 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12438 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12439 real_path and name. Unify the call of compare_filenames_for_search
12440 with FILENAME_CMP.
12441 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12442
12443 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12444
12445 Code cleanup.
12446 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12447 source_file references by symtab field references. Remove variables
12448 sal and fullname.
12449 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12450 (clear_command, say_where): Replace bp_location field source_file
12451 references by symtab field references.
12452 (bp_location_dtor): Remove the source_file reference.
12453 (update_static_tracepoint): Replace bp_location field source_file
12454 references by symtab field references.
12455 (breakpoint_free_objfile): New function.
12456 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12457 Replace the field source_file by field symtab, extend its comment.
12458 (breakpoint_free_objfile): New declaration.
12459 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12460 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12461 field source_file references by symtab field references.
12462
12463 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12464
12465 Replace xfullpath calls by gdb_realpath calls.
12466 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12467 function comment.
12468 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12469 Remove it from the iterate_over_some_symtabs call.
12470 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12471 Remove it from the dw2_map_expand_apply calls, remove a block handling
12472 it.
12473 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12474 Remove it from the iterate_over_some_symtabs call.
12475 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12476 Remove it from the partial_map_expand_apply calls, remove a block
12477 handling it. Drop gdb_realpath call and cleanups from the real_path
12478 handling.
12479 * source.c (openp): Drop the comment part about xfullpath. Replace
12480 xfullpath calls by gdb_realpath calls.
12481 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12482 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12483 from method map_symtabs_matching_filename and its comment.
12484 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12485 gdb_realpath call.
12486 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12487 remove it also from the function comment, remove a block handling it.
12488 Drop gdb_realpath call and cleanups from the real_path handling.
12489 (iterate_over_symtabs): Drop variable full_path and its use.
12490 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12491 * utils.c (xfullpath): Remove.
12492 * utils.h (xfullpath): Remove.
12493
12494 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12495
12496 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12497 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12498 (ALLDEPFILES): Add ppc64-tdep.c.
12499 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12500 ppc64-tdep.o to gdb_target_obs.
12501 * ppc64-tdep.h: New file.
12502 * ppc64-tdep.c: New file.
12503 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12504 ppc-linux-tdep.c to here.
12505 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12506 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12507 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12508 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12509 from ppc-linux-tdep.c to here.
12510 (ppc64_convert_from_func_ptr_addr): Rename from
12511 ppc64_linux_convert_from_func_ptr_addr to
12512 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12513 here.
12514 * rs6000-tdep.c:
12515 (read_insn): Move from ppc-linux-tdep.c to here.
12516 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12517 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12518 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12519 Removed above functions.
12520 (ppc_linux_init_abi): Adjust.
12521
12522 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12523
12524 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12525
12526 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12527
12528 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12529
12530 2013-02-01 Pedro Alves <palves@redhat.com>
12531
12532 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12533 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12534
12535 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12536
12537 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12538 files with no separate debug info.
12539 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12540 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12541 only for files with no separate debug info.
12542
12543 2013-01-31 Tom Tromey <tromey@redhat.com>
12544
12545 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12546 change type.
12547 (struct jit_program_space_data): Rename from jit_inferior_data.
12548 Update comments.
12549 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12550 Change return type. Attach data to program space.
12551 (jit_program_space_data_cleanup): Rename from
12552 jit_inferior_data_cleanup; change argument type.
12553 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12554 change type.
12555 (jit_register_code): Update.
12556 (jit_update_inferior_cache): Remove.
12557 (jit_breakpoint_deleted): Get jit data from the location's program
12558 space.
12559 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12560 'ps_data', change type.
12561 (jit_inferior_init, jit_breakpoint_re_set_internal)
12562 (jit_event_handler): Update.
12563 (free_objfile_data): Get data from objfile's program space.
12564 (_initialize_jit): Update.
12565
12566 2013-01-31 Tom Tromey <tromey@redhat.com>
12567
12568 PR gdb/13987:
12569 * jit.c (struct jit_inferior_data) <cached_code_address,
12570 jit_breakpoint>: New fields.
12571 (jit_breakpoint_re_set_internal): Fix logging. Only create
12572 breakpoint if cached address has changed.
12573 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12574 functions.
12575 (_initialize_jit): Register breakpoint deleted observer.
12576
12577 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12578
12579 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12580 (save_infcall_suspend_state): Ifdef out unused inf.
12581 (restore_infcall_suspend_state): Ifdef out unused inf.
12582 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12583 (jit_frame_sniffer): Remove unused inf_data.
12584
12585 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12586
12587 * c-exp.y (classify_inner_name): Remove unused type.
12588 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12589 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12590 need_escape.
12591 (c_get_string): Remove unused kind.
12592 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12593
12594 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12595
12596 * charset.c (intermediate_encoding): Remove unused i.
12597 * completer.c (signal_completer): Remove unused i.
12598 * continuations.c (discard_my_continuations_1): Remove unused
12599 continuation_ptr.
12600 * corelow.c (core_close): Remove unuseD name.
12601 (get_core_siginfo): Remove unused pid.
12602 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12603 i, cps.
12604 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12605 (loclist_describe_location): Remove unused first.
12606 * event-top.c (command_line_handler): Remove unused got_eof.
12607 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12608 (resize_section_table): Remove unused old_value.
12609 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12610 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12611 * i386-tdep.c (i386_process_record): Remove unused rex.
12612 * infcmd.c (get_return_value): Remove unused uiout.
12613 * jv-lang.c (type_from_class): Remove unused is_array.
12614 * jv-valprint.c (java_val_print): Remove unused i.
12615 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12616 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12617 * m2-typeprint.c (m2_print_type): Remove unused code.
12618 * macroexp.c (get_character_constant): Remove unused body_start.
12619 (macro_stringify): Remove unused result.
12620 * objc-lang.c (find_methods): Remove unused gdbarch.
12621 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12622 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12623 * stack.c (print_frame_args): Remove unused summary.
12624 * thread.c (thread_apply_command): Remove unused p.
12625 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12626 * valops.c (search_struct_method): Remove unused skip.
12627 * valprint.c (generic_val_print): Remove unused byte_order.
12628 * varobj.c (varobj_update): Remove unused changed.
12629 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12630 (alias_command): Remove unused c.
12631 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12632 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12633 format.
12634 (mi_cmd_data_write_memory): Remove unused word_format.
12635 (mi_cmd_data_write_memory_bytes): Remove unused r.
12636 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12637 p_start, p_end.
12638 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12639 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12640 line_width.
12641
12642 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12643
12644 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12645 * symtab.c (iterate_over_symtabs): Remove unused s.
12646 (find_pc_sect_symtab): Remove unused pspAce.
12647 (find_pc_sect_line): Remove unused alt_symtab.
12648 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12649 (completion_list_add_name): Remove unused newsize.
12650
12651 2013-01-31 Tom Tromey <tromey@redhat.com>
12652
12653 PR c++/14998:
12654 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12655 TYPE_CODE_FUNC.
12656
12657 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12658
12659 * target.c (target_read_string): Remove unused origlen.
12660
12661 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12662
12663 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12664 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12665 * ax-general.c (ax_print): Remove unused is_float.
12666 * blockframe.c (block_innermost_frame): Remove unused start, end.
12667 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12668
12669 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12670
12671 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12672 (svr4_read_so_list): Remove unused lmo.
12673 * solib-target.c (solib_target_relocate_section_addresses): Remove
12674 unused flags.
12675
12676 2013-01-30 Tom Tromey <tromey@redhat.com>
12677
12678 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12679
12680 2013-01-30 Tom Tromey <tromey@redhat.com>
12681
12682 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12683 * utils.c (gnu_debuglink_crc32): Remove.
12684 * utils.h (gnu_debuglink_crc32): Don't declare.
12685
12686 2013-01-30 Tom Tromey <tromey@redhat.com>
12687
12688 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12689 (read_structure_type, read_enumeration_type): Remove cast.
12690
12691 2013-01-30 Tom Tromey <tromey@redhat.com>
12692
12693 * dwarf2read.c (read_namespace_type): Remove cast.
12694 (read_typedef): Likewise.
12695
12696 2013-01-29 Tom Tromey <tromey@redhat.com>
12697
12698 * dwarf2read.c (free_dwo_file): Remove assert.
12699
12700 2013-01-29 Tom Tromey <tromey@redhat.com>
12701
12702 * value.c (deprecated_set_value_modifiable): Remove.
12703 * value.h (deprecated_set_value_modifiable): Remove.
12704
12705 2013-01-28 Doug Evans <dje@google.com>
12706
12707 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12708 to addresses from dwo files.
12709
12710 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12711
12712 * valops.c (find_overload_match): Remove unused argument 'lax'.
12713 * value.h: Remove unused argument 'lax' from the declaration of
12714 find_overload_match.
12715 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12716 to find_overload_match.
12717 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12718 argument to find_overload_match.
12719
12720 2013-01-25 Tom Tromey <tromey@redhat.com>
12721
12722 * dwarf2read.c (processing_has_namespace_info): Remove.
12723 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12724 (process_die, read_func_scope, dwarf2_start_symtab)
12725 (new_symbol_full): Update.
12726
12727 2013-01-25 Tom Tromey <tromey@redhat.com>
12728
12729 * cp-namespace.c (cp_set_block_scope): Remove.
12730 * cp-support.h (cp_set_block_scope): Remove.
12731 * dbxread.c: Include block.h.
12732 (cp_set_block_scope): New function.
12733 (process_one_symbol): Update.
12734 * dwarf2read.c (read_func_scope): Use block_set_scope.
12735
12736 2013-01-25 Pedro Alves <palves@redhat.com>
12737
12738 * remote.c (add_current_inferior_and_thread): Tweak comment.
12739
12740 2013-01-25 Tom Tromey <tromey@redhat.com>
12741
12742 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12743 (cp_add_using_directive): Add 'copy_names' argument.
12744 * cp-support.h (cp_add_using_directive): Update.
12745 (struct using_direct) <import_src, import_dest, alias,
12746 declaration>: Now const.
12747 * dwarf2read.c (read_import_statement): Use obconcat.
12748 Don't copy names passed to cp_add_using_directive.
12749
12750 2013-01-25 Tom Tromey <tromey@redhat.com>
12751
12752 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12753
12754 2013-01-25 Pedro Alves <palves@redhat.com>
12755
12756 * remote.c (stop_reply_extract_thread): New.
12757 (add_current_inferior_and_thread): New parameter 'wait_status'.
12758 Handle it.
12759 (remote_start_remote): Pass wait status to
12760 add_current_inferior_and_thread.
12761 (extended_remote_run): Update comment.
12762 (extended_remote_create_inferior_1): Pass wait status to
12763 add_current_inferior_and_thread.
12764
12765 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12766 Ulrich Weigand <uweigand@de.ibm.com>
12767
12768 * valarith.c (value_vector_widen): New function for replicating a
12769 scalar into a vector.
12770 (value_binop): Use value_vector_widen to widen scalar to vector
12771 rather than casting, this better matches gcc C behaviour.
12772 * valops.c (value_casst): Update logic for casting between vector
12773 types, and for casting from scalar to vector, try to match gcc C
12774 behaviour.
12775 * value.h (value_vector_widen): Declare.
12776 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12777 function, handle special case for casting scalar to vector.
12778 (opencl_relop): Use opencl_value_cast.
12779 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12780 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12781 in order to use opencl_value_cast.
12782
12783 2013-01-25 Yao Qi <yao@codesourcery.com>
12784
12785 * event-loop.c: Include "queue.h".
12786 (gdb_event_p): New typedef.
12787 (DECLARE_QUEUE_P): Use.
12788 (DEFINE_QUEUE_P): Use.
12789 (async_queue_event): Remove.
12790 (gdb_event_xfree): New.
12791 (initialize_event_loop): New.
12792 (process_event): Use QUEUE macros.
12793 (event_queue): Remove.
12794 (gdb_wait_for_event): Caller update.
12795 (check_async_event_handlers): Likewise.
12796 (poll_timers): Likewise.
12797 * event-loop.h (initialize_event_loop): Declare.
12798 * event-loop.c (gdb_event_xfree): New.
12799 * top.c (gdb_init): Call initialize_event_loop.
12800
12801 2013-01-25 Yao Qi <yao@codesourcery.com>
12802
12803 * event-loop.c (async_queue_event): Remove one parameter
12804 'position'. Remove code handling 'position' == TAIL.
12805 (gdb_wait_for_event): Caller update.
12806 (check_async_event_handlers): Caller update.
12807 (poll_timers): Caller update.
12808 * event-loop.h (enum queue_position): Remove.
12809
12810 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12811
12812 * MAINTAINERS: Update my email.
12813
12814 2013-01-25 Yao Qi <yao@codesourcery.com>
12815
12816 * main.c (print_gdb_help): Remove "--epoch" from the help
12817 message.
12818
12819 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12820
12821 * symtab.c (skip_prologue_using_sal): Consider a file
12822 change the same as an increased line number
12823
12824 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12825
12826 * MAINTAINERS (Write After Approval): Add myself to the list.
12827
12828 2013-01-24 Tom Tromey <tromey@redhat.com>
12829
12830 * ada-lang.h (ada_decode_symbol): Make return type const.
12831 * ada-lang.c (ada_decode_symbol): Likewise.
12832
12833 2013-01-23 Doug Evans <dje@google.com>
12834
12835 * linespec.c (find_linespec_symbols): Make static.
12836
12837 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12838
12839 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12840 type on float conversion for complex type.
12841
12842 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12843
12844 Add a new class gdb.Architecture which exposes GDB's
12845 internal representation of architecture via GDB Python API.
12846 * Makefile.in: Add entries corresponding to the new file
12847 python/py-arch.c.
12848 * NEWS (Python Scripting): Add entries for the new class
12849 gdb.Architecture and the new method gdb.Frame.architecture.
12850 * python/py-arch.c: Implement gdb.Architecture class.
12851 * python/py-frame.c (frapy_arch): Implement the method
12852 gdb.Frame.architecture().
12853 (frame_object_methods): Add 'architecture' to the method table.
12854 * python/python-internal.h: Add declarations of new utility
12855 functions.
12856 * python/python.c (_initialize_python): Initialize
12857 gdb.Architecture class.
12858
12859 2013-01-23 Doug Evans <dje@google.com>
12860
12861 Work around binutils/15021.
12862 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12863 type_unit_group out of union s. All uses updated.
12864 (read_index_from_section): Watch for index version 8.
12865 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12866 an imported symtab.
12867 (write_psymtabs_to_index): Increment version number to 8.
12868
12869 2013-01-22 Pedro Alves <palves@redhat.com>
12870
12871 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12872 user-visible.
12873
12874 2013-01-22 Pedro Alves <palves@redhat.com>
12875
12876 * annotate.c (annotate_breakpoints_changed): Rename to ...
12877 (annotate_breakpoints_invalid): ... this. Make static.
12878 (breakpoint_changed): Adjust.
12879 (_initialize_annotate): Always install the observers. Install a
12880 "breakpoint_created" observer.
12881 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12882 * breakpoint.c (set_breakpoint_condition)
12883 (breakpoint_set_commands, do_map_commands_command)
12884 (init_raw_breakpoint, clear_command, set_ignore_count)
12885 (enable_breakpoint_disp): No longer call
12886 annotate_breakpoints_changed.
12887
12888 2013-01-22 Pedro Alves <palves@redhat.com>
12889
12890 * annotate.c: Include "inferior.h".
12891 (frames_invalid_emitted)
12892 (breakpoints_invalid_emitted): New globals.
12893 (async_background_execution_p): New function.
12894 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12895 emitting the annotation if it has already been emitted.
12896 (annotate_display_prompt): New function.
12897 * annotate.h (annotate_display_prompt): New declaration.
12898 * event-top.c: Include annotate.h.
12899 (display_gdb_prompt): Call annotate_display_prompt.
12900
12901 2013-01-22 Pedro Alves <palves@redhat.com>
12902
12903 * annotate.c (ignore_count_changed): Delete.
12904 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12905 (annotate_ignore_count_change): Delete.
12906 (annotate_stopped): Don't emit a delayed breakpoints-changed
12907 annotation.
12908 * annotate.h (annotate_ignore_count_change): Delete.
12909 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12910 annotate_ignore_count_change.
12911
12912 2013-01-22 Tom Tromey <tromey@redhat.com>
12913
12914 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12915 require_rvalue for a register location.
12916
12917 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12918
12919 * breakpoint.c (print_one_breakpoint_location): Add MI
12920 field 'thread-groups' when printing a breakpoint.
12921 (output_thread_groups): New function.
12922
12923 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12924
12925 * python/lib/gdb/commands/explore.py
12926 (CompoundExplorer.explore_expr): Correct the name of a method
12927 being invoked.
12928 (ExploreTypeCommand.invoke): Add a missing 'return'.
12929
12930 2013-01-21 Tom Tromey <tromey@redhat.com>
12931
12932 * gdb_obstack.h (obconcat): Move declaration here, from...
12933 * symfile.h (obconcat): ... here.
12934 * gdb_obstack.c: New file.
12935 (obconcat): Move from...
12936 * symfile.c (obconcat): ... here.
12937 * Makefile.in (SFILES): Add gdb_obstack.c.
12938 (COMMON_OBS): Add gdb_obstack.o.
12939
12940 2013-01-21 Tom Tromey <tromey@redhat.com>
12941
12942 * symfile.h (obsavestring): Don't declare.
12943 * symfile.c (obsavestring): Remove.
12944 * ada-exp.y: Use obstack_copy0, not obsavestring.
12945 * ada-lang.c: Use obstack_copy0, not obsavestring.
12946 * coffread.c: Use obstack_copy0, not obsavestring.
12947 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12948 * dbxread.c: Use obstack_copy0, not obsavestring.
12949 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12950 * jit.c: Use obstack_copy0, not obsavestring.
12951 * mdebugread.c: Use obstack_copy0, not obsavestring.
12952 * psymtab.c: Use obstack_copy0, not obsavestring.
12953 * stabsread.c: Use obstack_copy0, not obsavestring.
12954 * xcoffread.c: Use obstack_copy0, not obsavestring.
12955
12956 2013-01-21 Tom Tromey <tromey@redhat.com>
12957
12958 * dwarf2read.c (fixup_go_packaging): Save package name
12959 on objfile obstack.
12960 * gdbtypes.c (init_type): Don't copy name.
12961
12962 2013-01-21 Tom Tromey <tromey@redhat.com>
12963
12964 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12965 const.
12966 (struct attribute) <u.str>: Now const.
12967 (struct fnfieldlist) <name>: Now const.
12968 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12969 (partial_die_parent_scope): Make return type const.
12970 (partial_die_full_name, add_partial_symbol): Update.
12971 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12972 'name' const.
12973 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12974 (read_file_scope, read_func_scope, dwarf2_add_field)
12975 (dwarf2_add_member_fn, read_structure_type)
12976 (process_enumeration_scope, read_array_type, read_module_type)
12977 (read_base_type, read_subrange_type): Update.
12978 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12979 (new_symbol_full, guess_full_die_structure_name): Update.
12980 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12981 (dwarf2_name): Return const type.
12982 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12983 const.
12984
12985 2013-01-21 Tom Tromey <tromey@redhat.com>
12986
12987 * gdbtypes.c (init_type): Make 'name' const.
12988 * gdbtypes.h (init_type): Update.
12989
12990 2013-01-21 Tom Tromey <tromey@redhat.com>
12991
12992 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12993 (start_symtab): Make 'name' and 'dirname' const. Use
12994 set_last_source_file.
12995 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12996 (last_source_file): Define. Now static.
12997 (set_last_source_file, get_last_source_file): New functions.
12998 * buildsym.h (last_source_file): Don't declare.
12999 (start_symtab): Update.
13000 (set_last_source_file, get_last_source_file): Declare.
13001 * coffread.c (complete_symtab): Use set_last_source_file.
13002 (coff_end_symtab): Likewise.
13003 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13004 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13005 set_last_source_file.
13006 (process_one_symbol): Use get_last_source_file.
13007 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13008 (psymtab_to_symtab_1): Use get_last_source_file.
13009 * xcoffread.c (process_linenos): Use get_last_source_file.
13010 (complete_symtab): Use set_last_source_file.
13011 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13012 (scan_xcoff_symtab): Use set_last_source_file.
13013
13014 2013-01-21 Tom Tromey <tromey@redhat.com>
13015
13016 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13017 (symbol_set_names): Remove casts. Handle field const-ness.
13018
13019 2013-01-21 Tom Tromey <tromey@redhat.com>
13020
13021 * dwarf2read.c (new_symbol_full): Remove cast.
13022 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13023 * symtab.h (symbol_set_demangled_name): Update.
13024
13025 2013-01-21 Tom Tromey <tromey@redhat.com>
13026
13027 * main.c (captured_main): Call bfd_init.
13028
13029 2013-01-21 Tom Tromey <tromey@redhat.com>
13030
13031 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13032 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13033 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13034 * NEWS: Update.
13035
13036 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13037
13038 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13039
13040 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13041
13042 Fix gdb.fortran/common-block.exp crash in PIE mode.
13043 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13044 LOC_COMMON_BLOCK.
13045 * f-valprint.c (info_common_command_for_block): Expect
13046 LOC_COMMON_BLOCK in gdb_assert.
13047 * symtab.h (struct general_symbol_info): Update comment for the
13048 common_block member.
13049 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13050 (enum address_class): New member LOC_COMMON_BLOCK.
13051
13052 2013-01-18 David Blaikie <dblaikie@gmail.com>
13053
13054 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13055
13056 2013-01-18 Tom Tromey <tromey@redhat.com>
13057
13058 PR c++/14999:
13059 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13060 Call require_rvalue.
13061
13062 2013-01-18 Yao Qi <yao@codesourcery.com>
13063
13064 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13065 (dbx_read_symtab): New declaration.
13066 (dbx_psymtab_to_symtab): Delete.
13067 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13068 Rename parameter PST to SELF. Exchanged two parameters.
13069 (start_psymtab): Caller update.
13070 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13071 (dwarf2_read_symtab): New declaration.
13072 (dwarf2_psymtab_to_symtab): Delete.
13073 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13074 Rename parameter PST to SELF. Exchanged two parameters.
13075 (create_partial_symtab): Caller update.
13076 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13077 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13078 Rename parameter PST to SELF. Exchanged two parameters.
13079 (parse_partial_symbols, new_psymtab): Caller update.
13080 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13081 two parameters.
13082 * psymtab.c (psymtab_to_symtab): Caller update.
13083 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13084 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13085 Rename parameter PST to SELF. Exchanged two parameters.
13086 (xcoff_start_psymtab): Caller update.
13087
13088 2013-01-18 Yao Qi <yao@codesourcery.com>
13089
13090 * infrun.c (proceed): Rename local variable 'oneproc' to
13091 'force_step'.
13092
13093 2013-01-17 Doug Evans <dje@google.com>
13094
13095 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13096 (dw2_build_type_unit_groups): Delete. All uses updated.
13097
13098 * symtab.h (struct symbol_search): Add comment.
13099
13100 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13101
13102 * symtab.c (compare_filenames_for_search): New comment for
13103 HAS_DRIVE_SPEC.
13104
13105 2013-01-17 Tom Tromey <tromey@redhat.com>
13106
13107 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13108
13109 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13110
13111 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13112 initialize it by existing make_cleanup. Call new do_cleanups.
13113
13114 2013-01-17 Tom Tromey <tromey@redhat.com>
13115
13116 * cp-abi.c (cp_abi_completer): New function.
13117 (_initialize_cp_abi): Set completer for "set cp-abi".
13118
13119 2013-01-17 Tom Tromey <tromey@redhat.com>
13120
13121 * mem-break.c: Remove obsolete comment.
13122 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13123
13124 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13125
13126 * jit.c (jit_reader_load_command): Interpret the jit reader name
13127 as an absolute path if it begins with a forward slash.
13128
13129 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13130
13131 PR gdb/14550
13132
13133 * jit.c (finalize_symtab): Ensure that only the global block has a
13134 NULL superblock.
13135
13136 2013-01-17 Pedro Alves <palves@redhat.com>
13137
13138 * acinclude.m4: Include ../config/plugins.m4,
13139 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13140 * Makefile.in (aclocal_m4_deps): Update.
13141 * aclocal.m4: Renegerate.
13142
13143 2013-01-16 Doug Evans <dje@google.com>
13144
13145 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13146
13147 2013-01-16 Pedro Alves <palves@redhat.com>
13148 Tom Tromey <tromey@redhat.com>
13149
13150 PR cli/7221:
13151 * NEWS: Add "catch signal".
13152 * breakpoint.c (base_breakpoint_ops): No longer static.
13153 (bpstat_explains_signal): New function.
13154 (init_catchpoint): No longer static.
13155 (base_breakpoint_explains_signal): New function.
13156 (base_breakpoint_ops): Initialize new field.
13157 * breakpoint.h (enum bpstat_signal_value): New.
13158 (struct breakpoint_ops) <explains_signal>: New field.
13159 (bpstat_explains_signal): Remove macro, declare as function.
13160 (base_breakpoint_ops, init_catchpoint): Declare.
13161 * break-catch-sig.c: New file.
13162 * inferior.h (signal_catch_update): Declare.
13163 * infrun.c (signal_catch): New global.
13164 (handle_syscall_event): Update for change to
13165 bpstat_explains_signal.
13166 (handle_inferior_event): Likewise. Always handle random signals
13167 via bpstats.
13168 (signal_cache_update): Check signal_catch.
13169 (signal_catch_update): New function.
13170 (_initialize_infrun): Initialize signal_catch.
13171 * Makefile.in (SFILES): Add break-catch-sig.c.
13172 (COMMON_OBS): Add break-catch-sig.o.
13173
13174 2013-01-16 Tom Tromey <tromey@redhat.com>
13175
13176 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13177 (print_one_catch_solib, print_one_catch_syscall)
13178 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13179 "catch-type".
13180
13181 2013-01-16 Yao Qi <yao@codesourcery.com>
13182
13183 * printcmd.c (current_display_number): Make it static.
13184
13185 2013-01-16 Yao Qi <yao@codesourcery.com>
13186
13187 * infcmd.c (step_once): Don't check '!single_inst' as it was
13188 checked before.
13189
13190 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13191
13192 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13193
13194 2013-01-14 Tom Tromey <tromey@redhat.com>
13195
13196 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13197 set command.
13198 * command.h (add_setshow_string_noescape_cmd): Update.
13199 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13200 (complete_set_gnutarget): New function.
13201 (_initialize_core): Set the "set gnutarget" completer.
13202
13203 2013-01-14 Tom Tromey <tromey@redhat.com>
13204
13205 PR symtab/14442:
13206 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13207 (c_type_print_modifier): Likewise.
13208 * dwarf2read.c (read_tag_restrict_type): New function.
13209 (read_type_die_1): Handle DW_TAG_restrict_type.
13210 * gdbtypes.c (make_restrict_type): New function.
13211 (recursive_dump_type): Handle TYPE_RESTRICT.
13212 * gdbtypes.h (enum type_flag_values): Renumber.
13213 (enum type_instance_flag_value): Add
13214 TYPE_INSTANCE_FLAG_RESTRICT.
13215 (TYPE_RESTRICT): New macro.
13216 (make_restrict_type): Declare.
13217
13218 2013-01-14 Tom Tromey <tromey@redhat.com>
13219
13220 PR symtab/14931:
13221 * psymtab.c (struct psymtab_state): New.
13222 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13223 functions.
13224 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13225 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13226
13227 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13228 Pedro Alves <palves@redhat.com>
13229
13230 PR remote/14786
13231
13232 * remote.c (remote_threads_info): Make a copy of the reply from
13233 qfThreadInfo and use that instead of rs->buf.
13234
13235 2013-01-14 Yao Qi <yao@codesourcery.com>
13236
13237 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13238 (dbx_psymtab_to_symtab): Likewise.
13239 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13240 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13241 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13242
13243 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13244
13245 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13246 make_cleanup_restore_current_language. Call set_language. Move
13247 OLD_CHAIN and INNER_CHAIN cleanups.
13248 * utils.c (do_restore_current_language)
13249 (make_cleanup_restore_current_language): New functions.
13250 * utils.h (make_cleanup_restore_current_language): New declaration.
13251
13252 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13253
13254 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13255 non-existing files.
13256
13257 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13258 non-existing files if FILENAME is already absolute.
13259
13260 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13261
13262 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13263 fputs_filtered. Append trailing newline.
13264
13265 2013-01-11 Yao Qi <yao@codesourcery.com>
13266 Stan Shebs <stan@codesourcery.com>
13267
13268 * psymtab.c (init_psymbol_list): Clarify the comment.
13269
13270 2013-01-11 Yao Qi <yao@codesourcery.com>
13271
13272 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13273 (update_dprintf_command_list): Assert that 'printf_line' is
13274 non-null. Remove condition check.
13275
13276 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13277
13278 Code cleanup.
13279 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13280 type const char *.
13281 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13282 const char *.
13283 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13284
13285 2013-01-09 Anthony Green <green@moxielogic.com>
13286
13287 * cp-abi.c (cplus_print_vtable): Don't return value from void
13288 function.
13289 * ada-lang.c (re_set_catch_assert): Ditto.
13290
13291 2013-01-09 Doug Evans <dje@google.com>
13292
13293 * symfile.h (quick_symbol_functions): Delete member
13294 pre_expand_symtabs_matching. All uses removed.
13295 * dwarf2read.c (dw2_lookup_symbol): Implement.
13296 (dw2_do_expand_symtabs_matching): Delete.
13297 (dw2_pre_expand_symtabs_matching): Delete.
13298 (struct dw2_symtab_iterator): New type.
13299 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13300 (dw2_expand_symtabs_for_function): Rewrite.
13301 (dwarf2_gdb_index_functions): Update.
13302 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13303 (psym_functions): Update.
13304
13305 2013-01-09 Tom Tromey <tromey@redhat.com>
13306
13307 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13308 * configure: Rebuild.
13309 * configure.ac: Add somread.o to the build if BFD has SOM
13310 support.
13311 * somread.c: Include som/aout.h, not syms.h.
13312 (som_symtab_read): Use som_external_symbol_dictionary_record.
13313 Unpack records manually.
13314 (_initialize_somread): Declare.
13315
13316 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13317
13318 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13319 Cast return_address to 64bits.
13320
13321 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13322
13323 * printcmd.c: Remove define of function output_command.
13324 * tracepoint.c: Remove extern of function output_command.
13325 * valprint.h: (output_command): New extern.
13326
13327 2013-01-07 Tom Tromey <tromey@redhat.com>
13328
13329 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13330 Remove.
13331 (objc_language_defn): Use c_printchar, c_printstr,
13332 c_emit_char.
13333
13334 2013-01-07 Tom Tromey <tromey@redhat.com>
13335
13336 PR cli/7719:
13337 * NEWS: Update.
13338 * ada-valprint.c (printstr, print_field_values): Remove
13339 "inspect_it" code.
13340 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13341 code.
13342 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13343 code.
13344 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13345 * main.c (captured_main): Remove "epoch" argument.
13346 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13347 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13348 * p-valprint.c (pascal_object_print_value_fields): Remove
13349 "inspect_it" code.
13350 * printcmd.c (print_command_1): Remove 'inspect' argument.
13351 (print_command, call_command): Update.
13352 (inspect_command): Remove.
13353 (_initialize_printcmd): Make "inspect" an alias for "print".
13354 * top.c (epoch_interface): Remove.
13355 * top.h (epoch_interface): Remove.
13356 * valprint.c (user_print_options): Update.
13357 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13358 * valprint.h (struct value_print_options) <inspect_it>: Remove
13359 field.
13360
13361 2013-01-04 Tom Tromey <tromey@redhat.com>
13362
13363 * valprint.h (read_string): Add 'extern'.
13364
13365 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13366
13367 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13368 used to decide whether to define darwin_read_dyld_info or not.
13369
13370 2013-01-03 Pierre Muller <muller@sourceware.org>
13371
13372 * main.c (relocate_gdb_directory): Avoid calling stat function
13373 if DIR is empty.
13374
13375 2013-01-03 Yao Qi <yao@codesourcery.com>
13376
13377 * psymtab.c (fixup_psymbol_section): Update declaration.
13378 (fixup_psymbol_section): Remove code returning value.
13379
13380 2013-01-03 Yao Qi <yao@codesourcery.com>
13381
13382 * symtab.h: Remove some out of date comments.
13383 (enum exception_event_kind): Move it ...
13384 * breakpoint.c: ... here.
13385
13386 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13387
13388 PR gdb/14405
13389 * darwin-nat.c (darwin_read_dyld_info): Only build if
13390 TASK_DYLD_INFO_COUNT is defined.
13391 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13392 TASK_DYLD_INFO_COUNT is defined.
13393
13394 2013-01-02 Tom Tromey <tromey@redhat.com>
13395
13396 * symfile.h (struct ecoff_debug_hack): Remove.
13397 * objfiles.c: Don't include mdebugread.h.
13398
13399 2013-01-02 Tom Tromey <tromey@redhat.com>
13400
13401 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13402 * configure.ac: Check for Mach-O support in BFD. Update
13403 CONFIG_OBS.
13404 * configure: Rebuild.
13405
13406 2013-01-02 Tom Tromey <tromey@redhat.com>
13407
13408 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13409 * configure.ac: Use GDB_AC_CHECK_BFD.
13410 * configure: Rebuild.
13411
13412 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13413
13414 * MAINTAINERS: Update my email.
13415
13416 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13417
13418 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13419
13420 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13421
13422 * rs6000-nat.c (bss_data_overlap): New function.
13423 (vmap_symtab): Use it to adjust the .bss section's offset.
13424
13425 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13426
13427 Update year range in copyright notice of all files.
13428
13429 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13430
13431 * top.c (print_gdb_version): Update copyright year.
13432
13433 For older changes see ChangeLog-2012.
13434 \f
13435 Local Variables:
13436 mode: change-log
13437 left-margin: 8
13438 fill-column: 74
13439 version-control: never
13440 coding: utf-8
13441 End:
This page took 0.303921 seconds and 4 git commands to generate.