Fix PR breakpoints/16297: catch syscall with syscall 0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4924df79
GKB
12013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
2
3 PR breakpoints/16297
4 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
5 when expected syscall is hit.
6
12e8c7d7
TT
72013-12-19 Tom Tromey <tromey@redhat.com>
8
9 * ser-unix.c (hardwire_ops): New global.
10 (_initialize_ser_hardwire): Use it.
11 * ser-tcp.c (tcp_ops): New global.
12 (_initialize_ser_tcp): Use it.
13 * ser-pipe.c (pipe_ops): New global.
14 (_initialize_ser_pipe): Use it.
15 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
16 globals.
17 (_initialize_ser_windows): Use them.
18
fcd488ca
TT
192013-12-19 Tom Tromey <tromey@redhat.com>
20
21 * serial.c (serial_ops_p): New typedef.
22 (serial_ops_list): Now a VEC.
23 (serial_interface_lookup): Return const. Use VEC_iterate.
24 (serial_add_interface): Make parameter const.
25 (serial_open): Update.
26 (serial_fdopen_ops): Make 'ops' const.
27 (serial_pipe): Update.
28 * ser-tcp.c (_initialize_ser_tcp): Update.
29 * ser-pipe.c (_initialize_ser_pipe): Update.
30 * ser-unix.c (_initialize_ser_hardwire): Update.
31 * ser-mingw.c (_initialize_ser_windows): Update.
32 * ser-go32.c (dos_ops): Now const. Update.
33 * serial.h (struct serial) <ops>: Now const.
34 (struct serial_ops) <next>: Remove.
35 (serial_add_interface): Make parameter const.
36
f45c82da
YZ
372013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
38
39 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
40 iov.iov_len with the real length in use.
41
4ac248ca
YQ
422013-12-18 Yao Qi <yao@codesourcery.com>
43
44 * target.h (target_xfer_partial_ftype): New typedef.
45 (target_xfer_partial): Update declaration.
46 * auxv.h (memory_xfer_auxv): Likewise.
47 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
48 * ia64-linux-nat.c (super_xfer_partial): Likewise.
49 * linux-nat.c (super_xfer_partial): Likewise.
50 * procfs.c (procfs_xfer_partial): Likewise.
51 * record-full.c (record_full_beneath_to_xfer_partial):
52 (tmp_to_xfer_partial): Likewise.
53 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
54 * target.c (default_xfer_partial): Likewise.
55 (current_xfer_partial): Likewise.
56 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
57
cde33bf1
YQ
582013-12-18 Yao Qi <yao@codesourcery.com>
59
60 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
61 of sprintf.
62 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
63 (linux_proc_pending_signals): Likewise.
64
64c46ce4
JB
652013-12-18 Joel Brobecker <brobecker@adacore.com>
66
67 * value.c (value_entirely_unavailable): ARI fix: Move trailing
68 binary operator to the next line. No actual code change.
69
5ce0145d
PA
702013-12-17 Pedro Alves <palves@redhat.com>
71
72 * frame.h (enum frame_id_stack_status): New enum.
73 (struct frame_id) <stack_addr>: Adjust comment.
74 <stack_addr_p>: Delete field, replaced with ...
75 <stack_status>: ... this new field.
76 (frame_id_build_unavailable_stack): Declare.
77 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
78 (frame_id_build_special): Adjust.
79 (frame_id_build_unavailable_stack): New function.
80 (frame_id_build, frame_id_build_wild): Adjust.
81 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
82 account frames with unavailable stack.
83
84 * amd64-tdep.c (amd64_frame_this_id)
85 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
86 frame_id_build_unavailable_stack.
87 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
88 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
89 (i386_sigtramp_frame_this_id): Likewise.
90
bdf22206
AB
912013-12-17 Andrew Burgess <aburgess@broadcom.com>
92
93 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
94 unavailable, use correct bit length.
95 * value.c (struct value): Extend comment on unavailable to
96 indicate that it is bit based.
97 (value_bits_available): New function.
98 (value_bytes_available): Call value_bits_available.
99 (value_entirely_available): Check against the bit length, not byte
100 length.
101 (mark_value_bits_unavailable): New function.
102 (mark_value_bytes_unavailable): Move contents to
103 mark_value_bits_unavailable, call to same.
104 (memcmp_with_bit_offsets): New function.
105 (value_available_contents_bits_eq): New function, takes the
106 functionality from value_available_contents_eq but uses
107 memcmp_with_bit_offsets now, and is bit not byte based.
108 (value_available_contents_eq): Move implementation into
109 value_available_contents_bits_eq, call to same.
110 (value_contents_copy_raw): Work on bits, not bytes.
111 (unpack_value_bits_as_long_1): Check availability in bits, not
112 bytes.
113 * value.h (value_bits_available): Declare new function.
114 (mark_value_bits_unavailable): Declare new function.
115
774f74c2
PM
1162013-12-16 Pierre Muller <muller@sourceware.org>
117
230de03a
YQ
118 Fix compilation error for cygwin native build.
119 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
774f74c2
PM
120 Call wcstombs.
121
9a362b9a
PA
1222013-12-16 Pedro Alves <palves@redhat.com>
123
124 PR 16329
125 * sol-thread.c (check_for_thread_db): If the target can't run or
126 isn't a core, return without pushing.
127
b030cf11
JB
1282013-12-15 Joel Brobecker <brobecker@adacore.com>
129
130 Revert the following commit:
131 * solib.c (solib_map_sections): Remove code overwriting
132 SO->SO_NAME with the bfd's filename.
133
134 Make the following changes required after the revert above:
135 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
136 returned bfd to a copy of the synthetic pathname.
137 * solib-darwin.c (darwin_bfd_open): Set the filename of the
138 returned bfd to a copy of PATHNAME.
139
8a48ac95
JB
1402013-12-13 Joel Brobecker <brobecker@adacore.com>
141
142 * ada-lang.c (ada_array_bound_from_type): Move the declaration
143 and assignment of variable "elt_type" inside the else block
144 where it is used. Add two missing check_typedef calls.
145 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
146 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
147
fb5e3d5c
JB
1482013-12-13 Joel Brobecker <brobecker@adacore.com>
149
150 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
151 between 'struct type *' and 'arr_type'.
152
a16b0e22
SC
1532013-12-12 Siva Chandra Reddy <sivachandra@google.com>
154
155 PR python/16113
156 * NEWS (Python Scripting): Add entry for the new feature and the
157 new attribute of gdb.Field objects.
158 * python/py-type.c (gdbpy_is_field): New function
159 (convert_field): Add 'parent_type' attribute to gdb.Field
160 objects.
161 * python/py-value.c (valpy_getitem): Allow subscript value to be
162 a gdb.Field object.
163 (value_has_field): New function
164 (get_field_flag): New function
165 * python/python-internal.h (gdbpy_is_field): Add declaration.
166
b15e5c54
PA
1672013-12-12 Pedro Alves <palves@redhat.com>
168
169 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
170 const, and remove casts.
171
f23981e9
PA
1722013-12-12 Pedro Alves <palves@redhat.com>
173
174 * cli/cli-cmds.c (source_script_from_stream) Use have_python
175 instead of catching UNSUPPORTED_ERROR.
176 * exceptions.h (UNSUPPORTED_ERROR): Delete.
177 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
178 error if called.
179 * python/python.h (have_python): New static inline function.
180
43942612
DE
1812013-12-11 Doug Evans <dje@google.com>
182
183 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
184 "can't find DWO" warning.
185
08a6411c
SDJ
1862013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
187
188 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
189 to get_probe_argument_count and evaluate_probe_argument.
190 * probe.c (get_probe_argument_count): Adjust declaration to accept
191 frame. Pass frame to probe_ops's get_probe_argument_count.
192 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
193 (probe_safe_evaluate_at_pc): Pass frame to
194 get_probe_argument_count and evaluate_probe_argument.
195 * probe.h (struct probe_ops) <get_probe_argument_count,
196 evaluate_probe_argument>: Adjust declarations to accept frame.
197 (get_probe_argument_count, evaluate_probe_argument): Likewise.
198 * solib-svr4.c (solib_event_probe_action): Get current frame.
199 Pass it to get_probe_argument_count.
200 (svr4_handle_solib_event): Get current frame. Pass it to
201 get_probe_argument_count and evaluate_probe_argument.
202 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
203 accept gdbarch. Do not obtain it from the probe's objfile.
204 (stap_get_probe_argument_count): Adjust declaration to accept
205 frame. Obtain gdbarch from the frame. Call generic
206 can_evaluate_probe_arguments. Pass gdbarch to
207 stap_parse_probe_arguments.
208 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
209 stap_parse_probe_arguments.
210 (stap_evaluate_probe_argument): Adjust declaration to accept
211 frame. Obtain gdbarch from the frame. Pass gdbarch to
212 stap_get_arg.
213 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
214 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
215 get_probe_argument_count and evaluate_probe_argument.
216
0987cf35
DE
2172013-12-10 Doug Evans <dje@google.com>
218
219 PR 16286
220 * c-lang.c (c_get_string): Ignore the declared size of the object
221 if a specific length is requested.
222
34dc884e
DE
2232013-12-10 Doug Evans <dje@google.com>
224
225 * interps.h (interp_exec_p): Delete.
226 * interps.c (interp_exec_p): Delete.
227 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
228 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
229
bae8a07a
YQ
2302013-12-10 Yao Qi <yao@codesourcery.com>
231
232 * amd64-tdep.c (amd64_analyze_stack_align): Call
233 target_read_code instead of target_read_memory.
234 (amd64_analyze_prologue): Call read_code_unsigned_integer
235 instead of read_memory_unsigned_integer. Call read_code
236 instead of read_memory.
237 (amd64_skip_xmm_prologue): Likewise.
238
0865b04a
YQ
2392013-12-10 Yao Qi <yao@codesourcery.com>
240
241 * corefile.c (read_code): New function.
242 (read_code_integer): New function.
243 (read_code_unsigned_integer): New function.
244 * gdbcore.h (read_code): Declare.
245 (read_code_integer): Declare.
246 (read_code_unsigned_integer): Declare.
247 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
248 of target_read_memory. Call read_code_unsigned_integer instead
249 of read_memory_unsigned_integer.
250 (i386_analyze_struct_return): Likewise.
251 (i386_skip_probe): Likewise.
252 (i386_analyze_stack_align): Likewise.
253 (i386_match_pattern): Likewise.
254 (i386_skip_noop): Likewise.
255 (i386_analyze_frame_setup): Likewise.
256 (i386_analyze_register_saves): Likewise.
257 (i386_skip_prologue): Likewise.
258 (i386_skip_main_prologue): Likewise.
259 (i386_frame_cache_1): Likewise.
260
f15cb84a
YQ
2612013-12-10 Yao Qi <yao@codesourcery.com>
262
263 * infrun.c: Include "target-dcache.h".
264 (prepare_for_detach): Call target_dcache_invalidate.
265 (wait_for_inferior): Likewise.
266 (fetch_inferior_event): Likewise.
267 (infrun_thread_stop_requested_callback): Likewise. Set
268 overlay_cache_invalid to 1.
269
036e93df
JB
2702013-12-10 Joel Brobecker <brobecker@adacore.com>
271
272 * symtab.c (symbol_find_demangled_name): Add handling of
273 Ada symbols.
274
72bfa06c
JB
2752013-12-10 Joel Brobecker <brobecker@adacore.com>
276
277 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
278 * NEWS: Expand the entry documenting the new -exec-run --start
279 option to mention the corresponding new entry in the output of
280 "-list-features".
281
94481b8c
JB
2822013-12-10 Joel Brobecker <brobecker@adacore.com>
283
284 * windows-nat.c (handle_load_dll): Add comments.
285 (windows_ensure_ntdll_loaded): New function.
286 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
287 Add FIXME comment.
288
ebeec1e9 2892013-12-08 Joel Brobecker <brobecker@adacore.com>
0c2242c1
JB
290
291 GDB 7.6.2 released.
292
e5e6f788
YQ
2932013-12-08 Yao Qi <yao@codesourcery.com>
294
295 * stack.c (frame_info): Initialize variable caller_pc.
296
782d47df
PA
2972013-12-06 Pedro Alves <palves@redhat.com>
298
299 * frame.c (enum cached_copy_status): New enum.
300 (struct frame_info) <prev_pc.p>: Change type to enum
301 cached_copy_status.
302 (fprint_frame): Handle not saved and unavailable prev_pc values.
303 (frame_unwind_pc_if_available): Delete and merge contents into ...
304 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
305 to use enum cached_copy_status.
306 (frame_unwind_caller_pc_if_available): Delete.
307 (create_new_frame): Adjust.
308 * frame.h (frame_unwind_caller_pc_if_available): Delete
309 declaration.
310 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
311 frame_unwind_caller_pc_if_available, and handle
312 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
313 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
314 (val_print_not_saved): New function.
315 * valprint.h (val_print_not_saved): Declare.
316
710409a2
PA
3172013-12-06 Andrew Burgess <aburgess@broadcom.com>
318 Pedro Alves <palves@redhat.com>
319
320 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
321 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
322 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
323 * spu-tdep.c (spu_software_single_step): Throw
324 OPTIMIZED_OUT_ERROR.
325 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
326
7580e917
TT
3272013-12-06 Tom Tromey <tromey@redhat.com>
328
329 * objfiles.c (free_objfile): Update comment.
330
53e0e56d
TT
3312013-12-06 Tom Tromey <tromey@redhat.com>
332
333 * objfiles.h (objfile_to_front): Remove.
334 * objfiles.c (objfile_to_front): Remove.
335
830f7a41
TT
3362013-12-06 Tom Tromey <tromey@redhat.com>
337
338 * minsyms.c (get_symbol_leading_char): Remove unnecessary
339 declaration.
340
e1b06ae2
TT
3412013-12-06 Tom Tromey <tromey@redhat.com>
342
343 * psympriv.h (struct partial_symtab) <user>: Move earlier.
344
2b69941d
TT
3452013-12-06 Tom Tromey <tromey@redhat.com>
346
347 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
348 (list_command): Likewise.
349
bf121224
TT
3502013-12-06 Tom Tromey <tromey@redhat.com>
351
352 * psymtab.c (allocate_psymtab): Put the filename in the filename
353 bcache.
354
8e96694e
TT
3552013-12-06 Tom Tromey <tromey@redhat.com>
356
357 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
358 * symtab.h (struct symtab) <dirname>: Now const.
359
21ea9eec
TT
3602013-12-06 Tom Tromey <tromey@redhat.com>
361
362 * symfile.c (allocate_symtab): Remove cast.
363 * symtab.h (struct symtab) <filename>: Now const.
364
37fbcad0
TT
3652013-12-06 Tom Tromey <tromey@redhat.com>
366
367 * break-catch-throw.c (fetch_probe_arguments): Use
368 get_probe_argument_count and evaluate_probe_argument.
369 * elfread.c (elf_get_probe_argument_count)
370 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
371 (elf_compile_to_ax): Remove.
372 (elf_probe_fns): Update.
373 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
374 (evaluate_probe_argument): Call method on probe, not via sym
375 functions.
376 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
377 evaluate_probe_argument.
378 (compile_probe_arg): Use get_probe_argument_count. Call method on
379 probe, not via sym functions.
380 * symfile-debug.c (debug_sym_get_probe_argument_count)
381 (debug_can_evaluate_probe_arguments)
382 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
383 Remove.
384 (debug_sym_probe_fns): Remove.
385 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
386 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
387 sym_compile_to_ax>: Remove fields.
388
8662d513
PM
3892013-12-06 Pierre Muller <muller@sourceware.org>
390
391 Fix completion for pascal language.
392 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
393 (exp : field_exp name COMPLETE): New rule.
394 (exp : SIZEOF): Set correct current_type.
395 (last_was_structop): Remove static variable.
396 (yylex): Remove saw_structop local variable.
397 Adapt code to removal of variables above.
398
da361ebd
JB
3992013-12-06 Joel Brobecker <brobecker@adacore.com>
400
401 * frame.c (get_prev_frame_1): Delete variable "this_id".
402 Replace its use by a call to get_frame_id.
403
6ed1ff02
AG
4042013-12-05 Anthony Green <green@moxielogic.com>
405
406 * moxie-tdep.c (moxie_software_single_step): New function.
407 (INST2OFFSET): New helper macro.
408 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
409 (moxie_process_readu): Move this up in the file.
410
39d7494a 4112013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
412
413 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
414
170d82c9
JB
4152013-12-05 Joel Brobecker <brobecker@adacore.com>
416 Tristan Gingold <gingold@adacore.com>
417
418 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
419 Accept version 2. Ignore operations using opcode 6.
420
a5e619ec
JB
4212013-12-05 Joel Brobecker <brobecker@adacore.com>
422
423 * ada-lex.l (find_dot_all): Fix coding style violations.
424
ca8941bb
WT
4252013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
426
427 * NEWS: Add section for Intel(R) Architecture Instructions
428 Extesions mentioning MPX.
429
7fb1b8b1
JB
4302013-12-03 Joel Brobecker <brobecker@adacore.com>
431
432 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
433
849f2b52
JB
4342013-12-03 Joel Brobecker <brobecker@adacore.com>
435
436 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
437 when parse_exp_1 threw an error. Add comment.
438
4e35e808
JB
4392013-12-03 Joel Brobecker <brobecker@adacore.com>
440
441 * NEWS: Mention "-list-features" in the entry documenting
442 the support for the "--language" option.
443
caf26be9
SB
4442013-12-03 Tom Tromey <tromey@redhat.com>
445 Jan Kratochvil <jan.kratochvil@redhat.com>
446 Doug Evans <dje@google.com>
447 Samuel Bronson <naesten@gmail.com>
448
449 Bring back gdb-add-index as a contrib script.
450 * contrib/gdb-add-index.sh: New file.
451 * NEWS: Note the addition.
452
34a4fb3a
SB
4532013-12-03 Samuel Bronson <naesten@gmail.com>
454
455 * MAINTAINERS (Write After Approval): Add myself to the list.
456
688981c9
JB
4572013-12-03 Joel Brobecker <brobecker@adacore.com>
458
459 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
460
c1244769
JB
4612013-12-03 Joel Brobecker <brobecker@adacore.com>
462
463 * mi/mi-main.c: Remove trailing spaces throughout.
464
2ea126fa
JB
4652013-12-03 Pedro Alves <palves@redhat.com>
466 Joel Brobecker <brobecker@adacore.com>
467
468 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
469 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
470 of a regular error when the GDB/MI command does not exist.
471 * mi/mi-main.c (mi_cmd_list_features): Add
472 "undefined-command-error-code".
473 (mi_print_exception): Print an "undefined-command"
474 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
475 * NEWS: Add entry documenting the new "code" variable in
476 "^error" result records.
477
6b7cbff1
JB
4782013-12-03 Joel Brobecker <brobecker@adacore.com>
479
480 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
481 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
482 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
483 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
484 field to output of "-list-features".
485
486 * NEWS: Add entry for new -info-gdb-mi-command.
487
04affae3
JK
4882013-12-02 Doug Evans <dje@google.com>
489 Jan Kratochvil <jan.kratochvil@redhat.com>
490
491 * objfiles.c (allocate_objfile): Save original_name as an absolute
492 path.
493 * objfiles.h (struct objfile): Expand comment on original_name.
494 * source.c (openp): Call gdb_abspath.
495 * utils.c (gdb_abspath): New function.
496 * utils.h (gdb_abspath): Declare.
497
aee4bf85
PA
4982013-12-02 Pedro Alves <palves@redhat.com>
499
500 * dcache.c (dcache_read_line): Use target_read_raw_memory.
501 * target.c (target_read_raw_memory): New function.
502 (target_read_stack, target_write_memory, target_write_raw_memory):
503 Update comment.
504 (target_read_code): Add comment.
505 * target.h (target_read_raw_memory): Declare.
506
840207d8
PA
5072013-12-02 Pedro Alves <palves@redhat.com>
508
509 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
510 unconditionally.
511
0fdf84ca
PA
5122013-12-02 Pedro Alves <pedro@codesourcery.com>
513 Maciej W. Rozycki <macro@codesourcery.com>
514
515 * remote.c (putpkt_for_catch_errors): Remove function.
516 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
517 gracefully.
518
62972e0b
YQ
5192013-12-02 Pedro Alves <palves@redhat.com>
520
521 PR remote/15974
522 * remote-notif.c (handle_notification): Return early if no
523 notification is found.
524
f9b0da3d
JB
5252013-12-02 Joel Brobecker <brobecker@adacore.com>
526
527 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
528 preprocessor check.
529
2dd4d422
JB
5302013-12-02 Joel Brobecker <brobecker@adacore.com>
531
532 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
533
e72eff80
JB
5342013-12-02 Joel Brobecker <brobecker@adacore.com>
535
536 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
537 * ctf.c (ctf_start): Remove obsolete comment.
538
844ad005
JB
5392013-12-02 Joel Brobecker <brobecker@adacore.com>
540
541 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
542
5b2bf947
DE
5432013-11-30 Doug Evans <xdje42@gmail.com>
544
545 * auto-load.h (script_language): New members name, auto_load_enabled.
546 Add missing comments on struct members.
547 (auto_load_objfile_script): Delete.
548 * auto-load.c: #include "cli/cli-cmds.h".
549 (auto_load_gdb_scripts_enabled): New function.
550 (script_language_gdb): Update, add new members.
551 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
552 and call to maybe_add_script moved to caller.
553 (auto_load_objfile_script_1): Auto-load safe-checking and
554 call to maybe_add_script moved here.
555 (auto_load_objfile_script): Make static. Early exit if support for
556 scripting language hasn't been compiled in, or auto-loading has been
557 disabled.
558 (source_section_scripts): Argument "source_name" renamed to
559 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
560 with section_name. Skip loading script if support for scripting
561 language hasn't been compiled in, or auto-loading has been disabled.
562 Call language->source_script_for_objfile instead of calling
563 source_python_script_for_objfile directly.
564 (load_auto_scripts_for_objfile): Update.
565 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
566 (gdbpy_load_auto_script_for_objfile): Delete.
567 (auto_load_python_scripts_enabled): New function.
568 (script_language_python): Update, add new members.
569 (gdbpy_script_language_defn): New function.
570 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
571 (gdbpy_script_language_defn): Declare.
572
573 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
574 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
575 (source_section_scripts): Moved here from py-auto-load.c.
576 (auto_load_section_scripts): Ditto.
577 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
578 auto-load.c, renamed AUTO_SECTION_NAME.
579 (source_section_scripts, auto_load_section_scripts): Moved to
580 auto-load.c.
581
d9c43928
YQ
5822013-11-30 Yao Qi <yao@codesourcery.com>
583
584 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
585
e7b12392
SDJ
5862013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
587
588 * gdbarch.sh: Remove include of "gdb_string.h", replace by
589 <string.h>.
590
256458bc
DE
5912013-11-29 Doug Evans <xdje42@gmail.com>
592
7b2d3abf
DE
593 * python/py-auto-load.c (source_section_scripts): Move comment to
594 more relevant location.
595
256458bc
DE
596 Whitespace cleanup.
597 * python/py-breakpoint.c: Remove trailing whitespace.
598 * python/py-cmd.c: Ditto.
599 * python/py-evts.c: Ditto.
600 * python/py-finishbreakpoint.c: Ditto.
601 * python/py-frame.c: Ditto.
602 * python/py-function.c: Ditto.
603 * python/py-inferior.c: Ditto.
604 * python/py-infthread.c: Ditto.
605 * python/py-param.c: Ditto.
606 * python/py-prettyprint.c: Ditto.
607 * python/py-symbol.c: Ditto.
608 * python/py-type.c: Ditto.
609 * python/py-utils.c: Ditto.
610 * python/py-value.c: Ditto.
611 * python/python-internal.h: Ditto.
612 * python/python.c: Ditto.
613
20e1ca3b
PA
6142013-11-29 Pedro Alves <palves@redhat.com>
615
616 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
617
8b4f3082
PA
6182013-11-29 Pedro Alves <palves@redhat.com>
619
620 * breakpoint.c (build_target_condition_list): Release previous
621 conditions.
622 (build_target_command_list): Release previous commands.
623 (bp_location_dtor): Release target conditions and commands.
624 * remote.c (remote_add_target_side_condition): Don't release
625 conditions.
626 (remote_add_target_side_commands): Don't release commands.
627
9f713294
YQ
6282013-11-29 Yao Qi <yao@codesourcery.com>
629 Pedro Alves <palves@redhat.com>
630
631 * dcache.c (dcache_read_line): Use current_target.beneath
632 instead of &current_target.
633 * target.c (memory_xfer_partial_1): Factor code out to ...
634 (raw_memory_xfer_partial): ... it. New function.
635 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
636 is TARGET_OBJECT_RAW_MEMORY.
637
4cb0213d
DE
6382013-11-28 Doug Evans <xdje42@gmail.com>
639
640 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
641 breakpoint_object. All uses updated.
642 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
643 breakpoint_object. All uses updated.
644 * python.c (*): All uses of breakpoint_object updated.
645 * python.h (*): All uses of breakpoint_object updated.
646 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
647 * python/py-finishbreakpoint.c (*): Ditto.
648
d344e670
DE
6492013-11-28 Doug Evans <xdje42@gmail.com>
650
d729aae0 651 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
652 * configure: Regenerate.
653
eebc056c
AB
6542013-11-28 Andrew Burgess <aburgess@broadcom.com>
655 Pedro Alves <palves@redhat.com>
656
657 * valprint.c (value_check_printable): If the value is entirely
658 unavailable, print a single "<unavailable>" instead of printing
659 all subfields.
660
a7300869
PA
6612013-11-28 Pedro Alves <palves@redhat.com>
662
663 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
664 Add "set debug frame" output.
665 (frame_stop_reason_symbol_string): New function.
666
50fd528a
PA
6672013-11-28 Pedro Alves <palves@redhat.com>
668
669 * frame-unwind.c (default_frame_unwind_stop_reason): Return
670 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
671 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
672
5de51581
PA
6732013-11-28 Pedro Alves <palves@redhat.com>
674
675 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
676 set the unwind stop reason to UNWIND_OUTERMOST, not
677 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
678
739cb10c
PA
6792013-11-28 Pedro Alves <palves@redhat.com>
680
681 * frame.c (frame_unwind_register): Say the register was "not
682 saved" instead of "optimized out".
683
514c0aa6 6842013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 685
514c0aa6 686 PR 16152
92a021de 687 * configure: Rebuild.
514c0aa6 688 * configure.ac: Tighten cygwin detection check.
92a021de 689
908fa2aa
PA
6902013-11-27 Pedro Alves <palves@redhat.com>
691
692 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
693 register in the previous frame's arch.
694
6bd273ae
PA
6952013-11-27 Pedro Alves <palves@redhat.com>
696
697 * frame-unwind.c (frame_unwind_got_optimized): Return
698 an lval_register value instead of a not_lval value.
699
f6c01fc5
AB
7002013-11-27 Andrew Burgess <aburgess@broadcom.com>
701
702 * frame.c: Include "valprint.h".
703 (frame_unwind_register_value): Use value_optimized_out.
704 * value.c (value_fetch_lazy): Likewise.
705
4f14910f
AB
7062013-11-26 Andrew Burgess <aburgess@broadcom.com>
707
708 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
709
15859968
TT
7102013-11-26 Tom Tromey <tromey@redhat.com>
711
712 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
713 2013-11-22.
714
244ec0da
WT
7152013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
716
717 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
718 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
719 (HAS_MPX): New macro.
720 (HAS_AVX): New macro.
721 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
722
f7e3ecae
KS
7232013-11-25 Keith Seitz <keiths@redhat.com>
724
725 PR c++/14819
726 * c-exp.y (classify_inner_name): If no matching symbol was
727 found, try looking up the token as a base class.
728 Likewise if a constructor was found.
729 * cp-namespace.c (find_type_baseclass_by_name): New function.
730 * cp-support.h (find_type_baseclass_by_name): Declare.
731 * valops.c (value_struct_elt_for_reference): If we get
732 a non-static field, try to get a value based on the
733 current instance, if any.
734
283f7163
YQ
7352013-11-24 Yao Qi <yao@codesourcery.com>
736
737 * disasm.c (dis_asm_read_memory): Call target_read_code
738 instead of target_read_memory.
739
29453a14
YQ
7402013-11-24 Yao Qi <yao@codesourcery.com>
741
742 * NEWS: Add note on new "set code-cache" option.
743 * target-dcache.c (code_cache_enabled_1): New variable.
744 (code_cache_enabled): New variable.
745 (show_code_cache, set_code_cache): New function.
746 (code_cache_enabled_p): New function.
747 (_initialize_target_dcache): Register command.
748 * target-dcache.h (code_cache_enabled_p): Declare.
749 * target.c (memory_xfer_partial_1):Handle
750 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
751 (target_read_code): New function.
752 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
753 New.
754 (target_read_code): Declare.
755
0fb14d8f
YQ
7562013-11-24 Yao Qi <yao@codesourcery.com>
757
758 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
759 (stack_cache_enabled_1): ... this. New variable.
760 (stack_cache_enabled_p): Rename to ...
761 (stack_cache_enabled): ... this. New variable.
762 (set_stack_cache_enabled_p): Rename to ...
763 (set_stack_cache): ... this. Update caller.
764 (show_stack_cache_enabled_p): Rename to ...
765 (show_stack_cache): ... this. Update caller.
766 (stack_cache_enabled): Rename to ...
767 (stack_cache_enabled_p): ... this. Update caller.
768 (_initialize_target_dcache): Replace "data cache" with
769 "target memory cache".
770 * target-dcache.h (stack_cache_enabled): Remove declaration.
771 (stack_cache_enabled_p): Add declaration.
772
a12361b9
DE
7732013-11-23 Doug Evans <xdje42@gmail.com>
774
775 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
776 superfluous.
777
1e1d6920
DE
7782013-11-23 Doug Evans <xdje42@gmail.com>
779
780 * python/py-frame.c (frapy_block): Fix error message text.
781
1e9c71b8
DE
7822013-11-23 Doug Evans <xdje42@gmail.com>
783
784 * cli/cli-script.c (multi_line_command_p): New function.
785 (recurse_read_control_structure, read_command_lines_1): Call it.
786 (execute_control_command): Consistently have a blank line between
787 each case.
788
f380848e
SA
7892013-11-22 Sterling Augustine <saugustine@google.com>
790
38e1f2a7 791 PR gdb/16196:
f380848e
SA
792 * valprint.c (read_string): Set new variable fetchlen based on
793 fetchlimit and size. Use it in call to partial_memory_read.
794 Update comment.
795
da2b2fdf
TT
7962013-11-22 Tom Tromey <tromey@redhat.com>
797
798 PR backtrace/16155:
799 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
800 the return address column is unspecified.
801
6eeee81c
TT
8022013-11-22 Tom Tromey <tromey@redhat.com>
803 Pedro Alves <palves@redhat.com>
804
805 PR backtrace/16155
806 * value.c (value_fetch_lazy): Internal error if
807 get_frame_register_value returns the same register.
808
194cca41
PA
8092013-11-22 Pedro Alves <palves@redhat.com>
810 Tom Tromey <tromey@redhat.com>
811
812 * frame.c (frame_stash_add): Now returns whether a frame with the
813 same ID was already known.
814 (compute_frame_id): New function, factored out from get_frame_id.
815 (get_frame_id): No longer lazilly compute the frame id here.
816 (get_prev_frame_if_no_cycle): New function. Detects wider stack
817 cycles.
818 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
819 and checking for stack cycles here.
820
33f8fe58
PA
8212013-11-22 Pedro Alves <palves@redhat.com>
822
823 PR 16155
824 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
825 this frame and the new previous frame, not between this frame and
826 the next frame.
827
1ec56e88
PA
8282013-11-22 Pedro Alves <palves@redhat.com>
829
830 PR 16155
831 * dwarf2-frame.c (struct dwarf2_frame_cache)
832 <checked_tailcall_bottom, entry_cfa_sp_offset,
833 entry_cfa_sp_offset_p>: New fields.
834 (dwarf2_frame_cache): Adjust to use the new cache fields instead
835 of locals. Don't call dwarf2_tailcall_sniffer_first here.
836 (dwarf2_frame_prev_register): Call it here, but only once.
837
ca092b61
DE
8382013-11-21 Doug Evans <xdje42@gmail.com>
839
840 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
841 (type_equality_entry): Move here from python/py-type.c.
842 (type_equality_entry_d): Ditto.
843 (compare_maybe_null_strings, check_types_equal): Ditto.
844 (check_types_worklist, types_deeply_equal): Ditto.
845 * gdbtypes.h (types_deeply_equal): Declare.
846 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
847 (typy_richcompare): Update.
848
7c245c24
JB
8492013-11-20 Joel Brobecker <brobecker@adacore.com>
850
851 * python/py-value.c (is_intlike): Delete.
852 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
853 by use of is_integral_type.
854 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
855 by use of is_integral_type and check for TYPE_CODE_PTR.
856
8986e351
TT
8572013-11-20 Tom Tromey <tromey@redhat.com>
858
859 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
860 strerror module.
861 * gnulib/aclocal.m4: Update.
862 * gnulib/config.in: Update.
863 * gnulib/configure: Update.
864 * gnulib/import/Makefile.am: Update.
865 * gnulib/import/Makefile.in: Update.
866 * gnulib/import/errno.in.h: Remove.
867 * gnulib/import/intprops.h: Remove.
868 * gnulib/import/m4/errno_h.m4: Remove.
869 * gnulib/import/m4/gnulib-cache.m4: Update.
870 * gnulib/import/m4/gnulib-comp.m4: Update.
871 * gnulib/import/m4/strerror.m4: Remove.
872 * gnulib/import/m4/sys_socket_h.m4: Remove.
873 * gnulib/import/strerror-override.c: Remove.
874 * gnulib/import/strerror-override.h: Remove.
875 * gnulib/import/strerror.c: Remove.
876 * gnulib/update-gnulib.sh: Update.
877
6b1141e3
YQ
8782013-11-20 Yao Qi <yao@codesourcery.com>
879
880 * target-dcache.c (target_dcache_get_or_init): Call
881 set_address_space_data if 'dcache' is NULL.
882
60650f2e
WT
8832013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
884
885 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
886
09748966
WT
8872013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
888
889 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
890 * data-directory/Makefile.in: Copy bond_register.py to the right path
891 to be initialized at gdb startup.
09748966 892
e43e105e
WT
8932013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
894
895 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
896 Add MPX registers.
897 (amd64_linux_read_description): Add initialization for MPX and
898 AVX independently.
899 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
900 (amd64_linux_gregset_reg_offset): Add MPX registers.
901 (amd64_linux_core_read_description): Add initialization for MPX
902 registers.
903 (_initialize_amd64_linux_tdep): Initialize MPX targets.
904 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
905 register on the list.
906 (tdesc_amd64_mpx_linux) Add new target for MPX.
907 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
908 (amd64_mpx_names): MPX register names.
909 (amd64_init_abi): Add MPX register while initializing the ABI.
910 (_initialize_amd64_tdep): Initialize MPX targets.
911 * amd64-tdep.h (amd64_regnum): Add MPX registers.
912 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
913
1dbcd68c
WT
9142013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
915
916 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
917 registers on the range of registers to be read from
918 xsave buffer.
919 (i386_linux_read_description): Add case for MPX.
920 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
921 (i386_linux_gregset_reg_offset): Add MPX registers.
922 (i386_linux_core_read_description): Initialize also MPX.
923 (_initialize_i386_linux_tdep): Add mpx initialization.
924 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
925 mpx_register_names.
926 (i386_regnum): Add MPX registers.
927 (I386_MPX_NUM_REGS): New macro.
928 (i386_bnd_regnum_p): New function.
929 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
930 number of registers to be the number of BNDSTATUS.
931 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
932 * i386-tdep.c: Include features/i386/i386-mpx.c.
933 (i386_mpx_names): Add MPX register names array.
934 (i386_bnd_names): Add bnd pseudo register names array.
935 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
936 registers.
937 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
938 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
939 registers.
940 (i386_bnd_type): New function.
941 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
942 register types.
943 (i386_pseudo_register_read_into_value): Add bnd case.
944 (i386_pseudo_register_write): Add bnd pseudo registers.
945 (i386_register_reggroup_p): Add MPX register to the group all.
946 (i386_validate_tdesc_p): Add MPX to the target description
947 validation.
948 (i386_pseudo_register_name): Add bnd pseudo registers.
949 (i386_gdbarch_init): Add MPX for architecture initialization.
950 (_initia_initialize_i386_tdep): Add mpx initialization.
951 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
952 XSAVE buffer.
953 (XSAVE_MPX_ADDR): New macro.
954 (i387_supply_xsave): Add MPX case.
955 (i387_collect_xsave): Add MPX case.
956 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
957 (I387_BNDCFGU_REGNUM): New macro.
958 (I387_NUM_MPX_REGS): New macro.
959 (I387_NUM_BND_REGS): New macro.
960 (I387_NUM_MPX_CTRL_REGS): New macro.
961 (I387_MPXEND_REGNUM): New macro.
962 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
963 (I386_XSTATE_BNDCFG): Likewise.
964 (I386_XSTATE_MPX_MASK): Likewise.
965 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
966 (I386_XSTATE_BNDREGS_SIZE): New macro.
967 (I386_XSTATE_BNDCFG_SIZE): Likewise.
968 (I386_XSTATE_SIZE): Adapt for MPX.
969 (I386_XSTATE_MAX_SIZE): Likewise.
970
ccc42043
WT
9712013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
972
973 * features/i386/Makefile: Adapts for using MPX registers.
974 * features/i386/32bit-mpx.xml: New file.
975 * features/i386/64bit-mpx.xml: Likewise.
976 * features/i386/amd64-mpx-linux.c: Likewise.
977 * features/i386/amd64-mpx-linux.xml: Likewise.
978 * features/i386/amd64-mpx.c: Likewise.
979 * features/i386/amd64-mpx.xml: Likewise.
980 * features/i386/i386-mpx-linux.c: Likewise.
981 * features/i386/i386-mpx-linux.xml: Likewise.
982 * features/i386/i386-mpx.c: Likewise.
983 * features/i386/i386-mpx.xml: Likewise.
984 * regformats/i386/amd64-mpx-linux.dat: New file.
985 * regformats/i386/amd64-mpx.dat: Likewise.
986 * regformats/i386/i386-mpx-linux.dat: Likewise.
987 * regformats/i386/i386-mpx.dat: Likewise.
988
57803a3c
WT
9892013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
990
991 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
992 Modified logic of creating a bitfield to be in sync with
993 tdesc_gdb_type.
994
2b59118e
WN
9952013-11-20 Will Newton <will.newton@linaro.org>
996
997 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
998 error message.
999
b26dfc9a
YQ
10002013-11-20 Yao Qi <yao@codesourcery.com>
1001
1002 * progspace.h (struct address_space_data): Declare.
1003 * target-dcache.c: Include "progspace.h".
1004 (target_dache): Remove.
1005 (target_dcache_aspace_key): New.
1006 (target_dcache_cleanup): New function.
1007 (target_dcache_init_p): Get data through
1008 target_dcache_aspace_key.
1009 (target_dcache_invalidate): Likewise.
1010 (target_dcache_get): Likewise.
1011 (target_dcache_get_or_init): Likewise.
1012 (_initialize_target_dcache): Initialize
1013 target_dcache_aspace_key.
1014
3a8356ff
YQ
10152013-11-20 Yao Qi <yao@codesourcery.com>
1016
1017 * progspace.c (struct address_space): Update comments.
1018 <REGISTRY_FIELDS>: New fields.
1019 DEFINE_REGISTRY for address_space.
1020 (new_address_space): Call address_space_alloc_data.
1021 (free_address_space): Call address_space_free_data.
1022 * progspace.h: Use DECLARE_REGISTRY.
1023
68c765e2
YQ
10242013-11-20 Yao Qi <yao@codesourcery.com>
1025
1026 * Makefile.in (SFILES):Add target-dcache.c.
1027 (HFILES_NO_SRCDIR): Add target-dcache.h.
1028 (COMMON_OBS): Add target-dcache.o.
1029 * dcache.c: Remove inclusion to "target.h". Include
1030 "target-dcache.h".
1031 * memattr.c: Include "target-dcache.h".
1032 * top.c: Likewise.
1033 * tracepoint.c: Likewise.
1034 * target.c: (stack_cache_enabled_p_1): Move to
1035 target-dcache.c.
1036 (stack_cache_enabled_p): Likewise.
1037 (set_stack_cache_enabled_p): Likewise.
1038 (show_stack_cache_enabled_p): Likewise.
1039 (target_dcache, target_dcache_init_p): Likewise.
1040 (target_dcache_invalidate): Likewise.
1041 (target_dcache_get, target_dcache_get_or_init): Likewise.
1042 (memory_xfer_partial_1): Call function stack_cache_enabled.
1043 (initialize_target): Move code to target-dcache.c.
1044 * target.h (target_dcache_invalidate): Move to
1045 target-dcache.h.
1046 (target_dcache_get): Likewise.
1047 * target-dcache.c: New.
1048 * target-dcache.h: New.
1049
f2de9785
YQ
10502013-11-20 Yao Qi <yao@codesourcery.com>
1051
1052 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1053 it is initialized.
1054
2a2f9fe4
YQ
10552013-11-20 Yao Qi <yao@codesourcery.com>
1056
1057 * dcache.c (last_cache): Remove.
1058 (dcache_free, dcache_init): Update.
1059 (dcache_update):
1060 (dcache_print_line): Add parameter 'dcache'. Replace
1061 'target_dcache' with 'dcache'.
1062 (dcache_info): Move code to dcache_info_1. Call
1063 'dcache_info_1'.
1064 (dcache_info_1): New function.
1065 (set_dcache_size): Call target_dcache_invalidate.
1066 (set_dcache_line_size): Call target_dcache_invalidate.
1067 * target.c (target_dcache_init_p): New function.
1068 (target_dcache_invalidate): Check target_dcache_init_p first.
1069 (target_dcache_get, target_dcache_get_or_init): New function.
1070 (memory_xfer_partial_1): Adjust.
1071 (initialize_target): Don't initialize 'target_dcache'.
1072 * target.h (struct dcache_struct): Declare.
1073 (target_dcache_get): Declare.
1074
8ab91b96
YQ
10752013-11-19 Yao Qi <yao@codesourcery.com>
1076
1077 * varobj.c (varobj_get_type): Fix typo.
1078
df7752b0
JB
10792013-11-19 Joel Brobecker <brobecker@adacore.com>
1080
1081 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1082
4a0a886a
JB
10832013-11-19 Joel Brobecker <brobecker@adacore.com>
1084
1085 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1086 "stat.h".
1087
53ce3c39
TT
10882013-11-18 Tom Tromey <tromey@redhat.com>
1089
1090 * common/gdb_stat.h: Remove.
1091 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1092 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1093 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1094 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1095 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1096 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1097 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1098 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1099 * exec.c: Use sys/stat.h, not gdb_stat.h.
1100 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1101 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1102 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1103 * jit.c: Use sys/stat.h, not gdb_stat.h.
1104 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1105 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1106 * main.c: Use sys/stat.h, not gdb_stat.h.
1107 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1108 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1109 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1110 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1111 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1112 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1113 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1114 * remote.c: Use sys/stat.h, not gdb_stat.h.
1115 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1116 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1117 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1118 * source.c: Use sys/stat.h, not gdb_stat.h.
1119 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1120 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1121 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1122 * top.c: Use sys/stat.h, not gdb_stat.h.
1123 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1124
09607c9e
TT
11252013-11-18 Tom Tromey <tromey@redhat.com>
1126
1127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1128 sys_stat.
1129 * gnulib/aclocal.m4: Update.
1130 * gnulib/config.in: Update.
1131 * gnulib/configure: Update.
1132 * gnulib/import/Makefile.am: Update.
1133 * gnulib/import/Makefile.in: Update.
1134 * gnulib/import/m4/gnulib-cache.m4: Update.
1135 * gnulib/import/m4/gnulib-comp.m4: Update.
1136 * gnulib/import/m4/sys_stat_h.m4: New.
1137 * gnulib/import/m4/time_h.m4: New.
1138 * gnulib/import/sys_stat.in.h: New.
1139 * gnulib/import/time.in.h: New.
1140
4ff70b84
TT
11412013-11-18 Tom Tromey <tromey@redhat.com>
1142
1143 * configure: Rebuild.
1144 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1145
3447c057
TT
11462013-11-18 Tom Tromey <tromey@redhat.com>
1147
1148 * configure: Rebuild.
1149 * configure.ac: Don't check for unistd.h.
1150
0080a2f6
TT
11512013-11-18 Tom Tromey <tromey@redhat.com>
1152
1153 * configure: Rebuild.
1154 * configure.ac: Don't check for stdlib.h
1155 * defs.h: Include stdlib.h unconditionally.
1156
161d1bec
TT
11572013-11-18 Tom Tromey <tromey@redhat.com>
1158
1159 * config.in: Rebuild.
1160 * configure: Rebuild.
1161 * configure.ac: Don't check for stddef.h.
1162 * defs.h: Unconditionally include stddef.h. Remove duplicate
1163 inclusion.
1164
2978b111
TT
11652013-11-18 Tom Tromey <tromey@redhat.com>
1166
1167 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1168 * common/gdb_dirent.h: Remove.
1169 * common/filestuff.c: Use dirent.h.
1170 * common/linux-osdata.c: Use dirent.h.
1171 (NAMELEN): Define.
1172 * config.in: Rebuild.
1173 * configure: Rebuild.
1174 * configure.ac: Don't use AC_HEADER_DIRENT.
1175 * linux-fork.c: Use dirent.h
1176 * linux-nat.c: Use dirent.h.
1177 * nto-procfs.c: Use dirent.h.
1178 * procfs.c: Use dirent.h.
1179
e26b6bb0
TT
11802013-11-18 Tom Tromey <tromey@redhat.com>
1181
1182 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1183 * gnulib/aclocal.m4: Update.
1184 * gnulib/config.in: Update.
1185 * gnulib/configure: Update.
1186 * gnulib/import/Makefile.am: Update.
1187 * gnulib/import/Makefile.in: Update.
1188 * gnulib/import/dirent.in.h: New.
1189 * gnulib/import/m4/dirent_h.m4: New.
1190 * gnulib/import/m4/gnulib-cache.m4: Update.
1191 * gnulib/import/m4/gnulib-comp.m4: Update.
1192
a3d08894
TT
11932013-11-18 Tom Tromey <tromey@redhat.com>
1194
1195 * configure: Rebuild.
1196 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1197 strings.h.
1198
0e9f083f
TT
11992013-11-18 Tom Tromey <tromey@redhat.com>
1200
1201 * common/gdb_string.h: Remove.
1202 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1203 * ada-exp.y: Use string.h, not gdb_string.h.
1204 * ada-lang.c: Use string.h, not gdb_string.h.
1205 * ada-lex.l: Use string.h, not gdb_string.h.
1206 * ada-typeprint.c: Use string.h, not gdb_string.h.
1207 * ada-valprint.c: Use string.h, not gdb_string.h.
1208 * aix-thread.c: Use string.h, not gdb_string.h.
1209 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1210 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1211 * alpha-nat.c: Use string.h, not gdb_string.h.
1212 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1213 * alpha-tdep.c: Use string.h, not gdb_string.h.
1214 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1215 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1216 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1217 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1218 * amd64-nat.c: Use string.h, not gdb_string.h.
1219 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1220 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1221 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1222 * arch-utils.c: Use string.h, not gdb_string.h.
1223 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1224 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1225 * arm-tdep.c: Use string.h, not gdb_string.h.
1226 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1227 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1228 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1229 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1230 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1231 * avr-tdep.c: Use string.h, not gdb_string.h.
1232 * ax-gdb.c: Use string.h, not gdb_string.h.
1233 * ax-general.c: Use string.h, not gdb_string.h.
1234 * bcache.c: Use string.h, not gdb_string.h.
1235 * bfin-tdep.c: Use string.h, not gdb_string.h.
1236 * breakpoint.c: Use string.h, not gdb_string.h.
1237 * build-id.c: Use string.h, not gdb_string.h.
1238 * buildsym.c: Use string.h, not gdb_string.h.
1239 * c-exp.y: Use string.h, not gdb_string.h.
1240 * c-lang.c: Use string.h, not gdb_string.h.
1241 * c-typeprint.c: Use string.h, not gdb_string.h.
1242 * c-valprint.c: Use string.h, not gdb_string.h.
1243 * charset.c: Use string.h, not gdb_string.h.
1244 * cli-out.c: Use string.h, not gdb_string.h.
1245 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1246 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1247 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1248 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1249 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1250 * cli/cli-script.c: Use string.h, not gdb_string.h.
1251 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1252 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1253 * coffread.c: Use string.h, not gdb_string.h.
1254 * common/common-utils.c: Use string.h, not gdb_string.h.
1255 * common/filestuff.c: Use string.h, not gdb_string.h.
1256 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1257 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1258 * common/signals.c: Use string.h, not gdb_string.h.
1259 * common/vec.h: Use string.h, not gdb_string.h.
1260 * core-regset.c: Use string.h, not gdb_string.h.
1261 * corefile.c: Use string.h, not gdb_string.h.
1262 * corelow.c: Use string.h, not gdb_string.h.
1263 * cp-abi.c: Use string.h, not gdb_string.h.
1264 * cp-support.c: Use string.h, not gdb_string.h.
1265 * cp-valprint.c: Use string.h, not gdb_string.h.
1266 * cris-tdep.c: Use string.h, not gdb_string.h.
1267 * d-lang.c: Use string.h, not gdb_string.h.
1268 * dbxread.c: Use string.h, not gdb_string.h.
1269 * dcache.c: Use string.h, not gdb_string.h.
1270 * demangle.c: Use string.h, not gdb_string.h.
1271 * dicos-tdep.c: Use string.h, not gdb_string.h.
1272 * disasm.c: Use string.h, not gdb_string.h.
1273 * doublest.c: Use string.h, not gdb_string.h.
1274 * dsrec.c: Use string.h, not gdb_string.h.
1275 * dummy-frame.c: Use string.h, not gdb_string.h.
1276 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1277 * dwarf2loc.c: Use string.h, not gdb_string.h.
1278 * dwarf2read.c: Use string.h, not gdb_string.h.
1279 * elfread.c: Use string.h, not gdb_string.h.
1280 * environ.c: Use string.h, not gdb_string.h.
1281 * eval.c: Use string.h, not gdb_string.h.
1282 * event-loop.c: Use string.h, not gdb_string.h.
1283 * exceptions.c: Use string.h, not gdb_string.h.
1284 * exec.c: Use string.h, not gdb_string.h.
1285 * expprint.c: Use string.h, not gdb_string.h.
1286 * f-exp.y: Use string.h, not gdb_string.h.
1287 * f-lang.c: Use string.h, not gdb_string.h.
1288 * f-typeprint.c: Use string.h, not gdb_string.h.
1289 * f-valprint.c: Use string.h, not gdb_string.h.
1290 * fbsd-nat.c: Use string.h, not gdb_string.h.
1291 * findcmd.c: Use string.h, not gdb_string.h.
1292 * findvar.c: Use string.h, not gdb_string.h.
1293 * fork-child.c: Use string.h, not gdb_string.h.
1294 * frame.c: Use string.h, not gdb_string.h.
1295 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1296 * frv-tdep.c: Use string.h, not gdb_string.h.
1297 * gdb.c: Use string.h, not gdb_string.h.
1298 * gdb_bfd.c: Use string.h, not gdb_string.h.
1299 * gdbarch.c: Use string.h, not gdb_string.h.
1300 * gdbtypes.c: Use string.h, not gdb_string.h.
1301 * gnu-nat.c: Use string.h, not gdb_string.h.
1302 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1303 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1304 * go-exp.y: Use string.h, not gdb_string.h.
1305 * go-lang.c: Use string.h, not gdb_string.h.
1306 * go32-nat.c: Use string.h, not gdb_string.h.
1307 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1308 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1309 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1310 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1311 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1312 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1313 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1314 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1315 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1316 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1317 * i386-tdep.c: Use string.h, not gdb_string.h.
1318 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1319 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1320 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1321 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1322 * i387-tdep.c: Use string.h, not gdb_string.h.
1323 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1324 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1325 * inf-child.c: Use string.h, not gdb_string.h.
1326 * inf-ptrace.c: Use string.h, not gdb_string.h.
1327 * inf-ttrace.c: Use string.h, not gdb_string.h.
1328 * infcall.c: Use string.h, not gdb_string.h.
1329 * infcmd.c: Use string.h, not gdb_string.h.
1330 * inflow.c: Use string.h, not gdb_string.h.
1331 * infrun.c: Use string.h, not gdb_string.h.
1332 * interps.c: Use string.h, not gdb_string.h.
1333 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1334 * irix5-nat.c: Use string.h, not gdb_string.h.
1335 * jv-exp.y: Use string.h, not gdb_string.h.
1336 * jv-lang.c: Use string.h, not gdb_string.h.
1337 * jv-typeprint.c: Use string.h, not gdb_string.h.
1338 * jv-valprint.c: Use string.h, not gdb_string.h.
1339 * language.c: Use string.h, not gdb_string.h.
1340 * linux-fork.c: Use string.h, not gdb_string.h.
1341 * linux-nat.c: Use string.h, not gdb_string.h.
1342 * lm32-tdep.c: Use string.h, not gdb_string.h.
1343 * m2-exp.y: Use string.h, not gdb_string.h.
1344 * m2-typeprint.c: Use string.h, not gdb_string.h.
1345 * m32c-tdep.c: Use string.h, not gdb_string.h.
1346 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1347 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1348 * m32r-rom.c: Use string.h, not gdb_string.h.
1349 * m32r-tdep.c: Use string.h, not gdb_string.h.
1350 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1351 * m68k-tdep.c: Use string.h, not gdb_string.h.
1352 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1353 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1354 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1355 * m88k-tdep.c: Use string.h, not gdb_string.h.
1356 * macrocmd.c: Use string.h, not gdb_string.h.
1357 * main.c: Use string.h, not gdb_string.h.
1358 * mdebugread.c: Use string.h, not gdb_string.h.
1359 * mem-break.c: Use string.h, not gdb_string.h.
1360 * memattr.c: Use string.h, not gdb_string.h.
1361 * memory-map.c: Use string.h, not gdb_string.h.
1362 * mep-tdep.c: Use string.h, not gdb_string.h.
1363 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1364 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1365 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1366 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1367 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1368 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1369 * mi/mi-console.c: Use string.h, not gdb_string.h.
1370 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1371 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1372 * mi/mi-main.c: Use string.h, not gdb_string.h.
1373 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1374 * microblaze-rom.c: Use string.h, not gdb_string.h.
1375 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1376 * mingw-hdep.c: Use string.h, not gdb_string.h.
1377 * minidebug.c: Use string.h, not gdb_string.h.
1378 * minsyms.c: Use string.h, not gdb_string.h.
1379 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1380 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1381 * mips-tdep.c: Use string.h, not gdb_string.h.
1382 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1383 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1384 * mipsread.c: Use string.h, not gdb_string.h.
1385 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1386 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1387 * monitor.c: Use string.h, not gdb_string.h.
1388 * moxie-tdep.c: Use string.h, not gdb_string.h.
1389 * mt-tdep.c: Use string.h, not gdb_string.h.
1390 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1391 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1392 * nto-procfs.c: Use string.h, not gdb_string.h.
1393 * nto-tdep.c: Use string.h, not gdb_string.h.
1394 * objc-lang.c: Use string.h, not gdb_string.h.
1395 * objfiles.c: Use string.h, not gdb_string.h.
1396 * opencl-lang.c: Use string.h, not gdb_string.h.
1397 * osabi.c: Use string.h, not gdb_string.h.
1398 * osdata.c: Use string.h, not gdb_string.h.
1399 * p-exp.y: Use string.h, not gdb_string.h.
1400 * p-lang.c: Use string.h, not gdb_string.h.
1401 * p-typeprint.c: Use string.h, not gdb_string.h.
1402 * parse.c: Use string.h, not gdb_string.h.
1403 * posix-hdep.c: Use string.h, not gdb_string.h.
1404 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1405 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1406 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1407 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1408 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1409 * printcmd.c: Use string.h, not gdb_string.h.
1410 * procfs.c: Use string.h, not gdb_string.h.
1411 * prologue-value.c: Use string.h, not gdb_string.h.
1412 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1413 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1414 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1415 * regcache.c: Use string.h, not gdb_string.h.
1416 * registry.c: Use string.h, not gdb_string.h.
1417 * remote-fileio.c: Use string.h, not gdb_string.h.
1418 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1419 * remote-mips.c: Use string.h, not gdb_string.h.
1420 * remote-sim.c: Use string.h, not gdb_string.h.
1421 * remote.c: Use string.h, not gdb_string.h.
1422 * reverse.c: Use string.h, not gdb_string.h.
1423 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1424 * ser-base.c: Use string.h, not gdb_string.h.
1425 * ser-go32.c: Use string.h, not gdb_string.h.
1426 * ser-mingw.c: Use string.h, not gdb_string.h.
1427 * ser-pipe.c: Use string.h, not gdb_string.h.
1428 * ser-tcp.c: Use string.h, not gdb_string.h.
1429 * ser-unix.c: Use string.h, not gdb_string.h.
1430 * serial.c: Use string.h, not gdb_string.h.
1431 * sh-tdep.c: Use string.h, not gdb_string.h.
1432 * sh64-tdep.c: Use string.h, not gdb_string.h.
1433 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1434 * skip.c: Use string.h, not gdb_string.h.
1435 * sol-thread.c: Use string.h, not gdb_string.h.
1436 * solib-dsbt.c: Use string.h, not gdb_string.h.
1437 * solib-frv.c: Use string.h, not gdb_string.h.
1438 * solib-osf.c: Use string.h, not gdb_string.h.
1439 * solib-spu.c: Use string.h, not gdb_string.h.
1440 * solib-target.c: Use string.h, not gdb_string.h.
1441 * solib.c: Use string.h, not gdb_string.h.
1442 * somread.c: Use string.h, not gdb_string.h.
1443 * source.c: Use string.h, not gdb_string.h.
1444 * sparc-nat.c: Use string.h, not gdb_string.h.
1445 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1446 * sparc-tdep.c: Use string.h, not gdb_string.h.
1447 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1448 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1449 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1450 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1451 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1452 * spu-multiarch.c: Use string.h, not gdb_string.h.
1453 * spu-tdep.c: Use string.h, not gdb_string.h.
1454 * stabsread.c: Use string.h, not gdb_string.h.
1455 * stack.c: Use string.h, not gdb_string.h.
1456 * std-regs.c: Use string.h, not gdb_string.h.
1457 * symfile.c: Use string.h, not gdb_string.h.
1458 * symmisc.c: Use string.h, not gdb_string.h.
1459 * symtab.c: Use string.h, not gdb_string.h.
1460 * target.c: Use string.h, not gdb_string.h.
1461 * thread.c: Use string.h, not gdb_string.h.
1462 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1463 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1464 * top.c: Use string.h, not gdb_string.h.
1465 * tracepoint.c: Use string.h, not gdb_string.h.
1466 * tui/tui-command.c: Use string.h, not gdb_string.h.
1467 * tui/tui-data.c: Use string.h, not gdb_string.h.
1468 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1469 * tui/tui-file.c: Use string.h, not gdb_string.h.
1470 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1471 * tui/tui-out.c: Use string.h, not gdb_string.h.
1472 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1473 * tui/tui-source.c: Use string.h, not gdb_string.h.
1474 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1475 * tui/tui-win.c: Use string.h, not gdb_string.h.
1476 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1477 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1478 * typeprint.c: Use string.h, not gdb_string.h.
1479 * ui-file.c: Use string.h, not gdb_string.h.
1480 * ui-out.c: Use string.h, not gdb_string.h.
1481 * user-regs.c: Use string.h, not gdb_string.h.
1482 * utils.c: Use string.h, not gdb_string.h.
1483 * v850-tdep.c: Use string.h, not gdb_string.h.
1484 * valarith.c: Use string.h, not gdb_string.h.
1485 * valops.c: Use string.h, not gdb_string.h.
1486 * valprint.c: Use string.h, not gdb_string.h.
1487 * value.c: Use string.h, not gdb_string.h.
1488 * varobj.c: Use string.h, not gdb_string.h.
1489 * vax-tdep.c: Use string.h, not gdb_string.h.
1490 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1491 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1492 * windows-nat.c: Use string.h, not gdb_string.h.
1493 * xcoffread.c: Use string.h, not gdb_string.h.
1494 * xml-support.c: Use string.h, not gdb_string.h.
1495 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1496 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1497
63ce7108
TT
14982013-11-18 Tom Tromey <tromey@redhat.com>
1499
1500 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1501 and strstr.
1502 * gnulib/aclocal.m4: Update.
1503 * gnulib/config.in: Update.
1504 * gnulib/configure: Update.
1505 * gnulib/import/Makefile.am: Update.
1506 * gnulib/import/Makefile.in: Update.
1507 * gnulib/import/errno.in.h: New.
1508 * gnulib/import/intprops.h: New.
1509 * gnulib/import/m4/errno_h.m4: New.
1510 * gnulib/import/m4/gnulib-cache.m4: Update.
1511 * gnulib/import/m4/gnulib-comp.m4: Update.
1512 * gnulib/import/m4/strerror.m4: New.
1513 * gnulib/import/m4/strstr.m4: New.
1514 * gnulib/import/m4/sys_socket_h.m4: New.
1515 * gnulib/import/strerror-override.c: New.
1516 * gnulib/import/strerror-override.h: New.
1517 * gnulib/import/strerror.c: New.
1518 * gnulib/import/strstr.c: New.
1519
a7c11ee1
TT
15202013-11-18 Tom Tromey <tromey@redhat.com>
1521
1522 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1523 multiple lines.
1524
d0b5971a
JM
15252013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1526
1527 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1528 * sparc-tdep.h: And its prototype.
1529
1530 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1531 function.
1532 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1533
4b4589ad
PA
15342013-11-18 Pedro Alves <palves@redhat.com>
1535
1536 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1537 use unpack_pointer.
1538
422ad5c2
JB
15392013-11-18 Joel Brobecker <brobecker@adacore.com>
1540
1541 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1542 to -list-features output.
1543
b1370418
JB
15442013-11-17 Joel Brobecker <brobecker@adacore.com>
1545
1546 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1547 <read_addr_from_reg>: Renames "read_reg".
1548 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1549 Adjust comment.
1550 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1551 Use read_addr_from_reg in place of read_reg.
1552 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1553 in place of read_reg.
1554 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1555 dwarf_expr_read_reg.
1556 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1557 with dwarf_expr_read_addr_from_reg.
1558 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1559 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1560 needs_frame_read_addr_from_reg.
1561
6ea71545
JK
15622013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1563
1564 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1565
19a1b230
AA
15662013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1567
1568 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1569 NULL.
1570
805e1f19
TT
15712013-11-15 Tom Tromey <tromey@redhat.com>
1572
1573 PR c++/16117:
1574 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1575 (classify_name): Likewise. Prefer a field of "this" over a
1576 filename.
1577 (classify_inner_name, yylex): Update.
1578
0acf8b65
JB
15792013-11-15 Joel Brobecker <brobecker@adacore.com>
1580
1581 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1582 Extend the documentation a bit.
1583 <get_reg_value>: New field.
1584 * dwarf2loc.c (dwarf_expr_get_reg_value)
1585 (needs_frame_get_reg_value): New functions.
1586 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1587 callback.
1588 * dwarf2-frame.c (get_reg_value): New function.
1589 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1590 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1591 Use new callback to compute result_val.
1592
ef1bc9e7
AM
15932013-11-15 Alan Modra <amodra@gmail.com>
1594
1595 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1596 (ppc64_desc_entry_point): ..this. Update comments here and at
1597 call points.
1598 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1599 ppc64_standard_linkage3): Update comments.
1600 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1601 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1602 patterns.
1603 (ppc64_standard_linkage4_target): New function.
1604 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1605 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1606 nop match. Fix comment wrap.
1607
36fa8042
PA
16082013-11-14 Pedro Alves <palves@redhat.com>
1609
1610 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1611 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1612
4f5d7f63
PA
16132013-11-14 Pedro Alves <palves@redhat.com>
1614
1615 * infrun.c (struct execution_control_state)
1616 <stepped_after_stopped_by_watchpoint>: New field.
1617 (get_inferior_stop_soon): New function.
1618 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1619 moved to struct execution_control_state -- adjust. Use
1620 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1621 new function.
1622 (handle_signal_stop): New function, factored out from
1623 handle_inferior_event.
1624
47591c29
PA
16252013-11-14 Pedro Alves <palves@redhat.com>
1626
1627 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1628 return a boolean.
1629 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1630 boolean.
1631 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1632 Adjust to return a boolean.
1633 * breakpoint.h (enum bpstat_signal_value): Delete.
1634 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1635 (bpstat_explains_signal): Likewise.
1636 * infrun.c (handle_inferior_event) <random signal checks>:
1637 bpstat_explains_signal now returns a boolean - adjust. No longer
1638 consider hiding signals.
1639
bac7d97b
PA
16402013-11-14 Pedro Alves <palves@redhat.com>
1641
1642 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1643 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1644 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1645 BPSTAT_SIGNAL_HIDE.
1646 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1647 instead of BPSTAT_SIGNAL_HIDE.
1648 * infrun.c (handle_inferior_event): Rework random signal checks.
1649
ce12b012
PA
16502013-11-14 Pedro Alves <palves@redhat.com>
1651
1652 * infrun.c (struct execution_control_state): Remove
1653 'random_signal' field.
1654 (handle_syscall_event): Use bpstat_causes_stop instead of
1655 bpstat_explains_signal. Don't set ecs->random_signal.
1656 (handle_inferior_event): New 'random_signal' local.
1657 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1658 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1659 bpstat_explains_signal. Don't set ecs->random_signal.
1660 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1661 ecs->random_signal.
1662
05ba8510
PA
16632013-11-14 Pedro Alves <palves@redhat.com>
1664
1665 * infrun.c (handle_inferior_event): Move comment from the
1666 function's body to the function's description, adjusted.
1667
5c09a2c5
PA
16682013-11-14 Pedro Alves <palves@redhat.com>
1669
1670 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1671 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1672 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1673 case.
1674
91822956
TT
16752013-11-14 Tom Tromey <tromey@redhat.com>
1676
1677 * python/py-linetable.c (ltpy_has_line)
1678 (ltpy_get_all_source_lines): Fix loop termination condition.
1679
403cb6b1
JB
16802013-11-14 Joel Brobecker <brobecker@adacore.com>
1681
1682 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1683 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1684 PARSE->LANGUAGE during command execution, if set.
1685 * mi/mi-parse.c: Add "language.h" #include.
1686 (mi_parse): Add parsing of "--language" command option.
1687
1688 * NEWS: Add entry mentioning the new "--language" command option.
1689
b5be8ce0
JB
16902013-11-14 Pedro Alves <palves@redhat.com>
1691 Joel Brobecker <brobecker@adacore.com>
1692
1693 * cli/cli-utils.h (extract_arg_const): Add declaration.
1694 * cli/cli-utils.c (extract_arg_const): New function.
1695 (extract_arg): Reimplement using extract_arg_const.
1696
671afef6
JB
16972013-11-14 Joel Brobecker <brobecker@adacore.com>
1698
1699 * language.h: Add "symtab.h" #include.
1700
6c1b0f7b
DE
17012013-11-13 Doug Evans <xdje42@gmail.com>
1702
1703 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1704 specific breakpoints, don't evaluate breakpoint condition if
1705 different thread.
1706
74921315
KS
17072013-11-13 Keith Seitz <keiths@redhat.com>
1708
248ace2e 1709 PR c++/7935
74921315
KS
1710 PR c++/10541
1711 * cp-support.c (insepct_type): Add support for substituting
1712 namespace aliases, too.
1713 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1714 for DW_TAG_imported_declaration.
1715 (add_partial_symbol): Likewise.
1716 (process_die): Handle namespace aliases with
1717 read_namespace_alias.
1718 (die_needs_namespace): Add DW_TAG_imported_declaration.
1719 (read_namespace_alias): New function.
1720 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1721 (new_symbol_full): Handle DW_TAG_imported_declaration.
1722
793156e6
KS
17232013-11-13 Keith Seitz <keiths@redhat.com>
1724
1725 * p-exp.y (uptok): Make first parameter const.
1726 (yylex): Make `tokstart' and `tokptr' const.
1727 Don't copy the lexer input to a temporary buffer.
1728 Make `p' const.
1729 Remove const workaround for parse_escape.
1730 Create a temporary buffer for a convenience variable instead
1731 of doing in-place modification of the input.
1732 If a match is found with a different case from the input,
1733 do not change the input at all.
1734 Use `tmp' to construct the resultant stoken instead of
1735 `tokstart'.
1736
c42bd95a
DE
17372013-11-13 Doug Evans <xdje42@gmail.com>
1738
1739 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1740
93973826
JB
17412013-11-13 Joel Brobecker <brobecker@adacore.com>
1742
1743 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1744 entry with "ada-exceptions".
1745
846060df
JB
17462013-11-13 Joel Brobecker <brobecker@adacore.com>
1747
1748 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1749 after re-initialization of OBJFILE's obstack.
1750
5efd1b2b 17512013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1752
1753 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1754 bs->stop != 0 on entry. Update function comment. Simplify early
1755 exit for frame mismatch. Reindent rest of function.
1756
ee7615e1
AA
17572013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1758
1759 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1760 NULL.
1761
8943b874
DE
17622013-11-12 Doug Evans <dje@google.com>
1763
1764 Work around gold/15646.
1765 * dwarf2read.c (read_index_from_section): Update comment.
1766 (struct dw2_symtab_iterator): New member global_seen.
1767 (dw2_symtab_iter_init): Initialize it.
1768 (dw2_symtab_iter_next): Skip duplicate global symbols.
1769 (dw2_expand_symtabs_matching): Ditto.
1770
a8a9844d
JB
17712013-11-12 Joel Brobecker <brobecker@adacore.com>
1772
1773 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1774 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1775 command.
1776 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1777 (mi_cmd_info_ada_exceptions): New function.
1778 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1779
778865d3
JB
17802013-11-12 Joel Brobecker <brobecker@adacore.com>
1781
1782 * ada-lang.h: #include "vec.h".
1783 (struct ada_exc_info): New.
1784 (ada_exc_info): New typedef.
1785 (DEF_VEC_O(ada_exc_info)): New vector.
1786 (ada_exceptions_list): Add declaration.
1787 * ada-lang.c (ada_is_exception_sym)
1788 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1789 (sort_remove_dups_ada_exceptions_list)
1790 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1791 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1792 (ada_exceptions_list_1, ada_exceptions_list)
1793 (info_exceptions_command): New function.
1794 (_initialize_ada_language): Add "info exception" command.
1795
bc79de95
PM
17962013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1797
1798 PR python/15629
1799 * NEWS: Add linetable feature.
1800 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1801 * python/py-linetable.c: New file.
1802 * python/py-symtab.c (stpy_get_linetable): New function.
1803 * python/python-internal.h (symtab_to_linetable_object): Declare.
1804 (gdbpy_initialize_linetable): Ditto.
1805 * python/python.c (_initialize_python): Call
1806 gdbpy_initialize_linetable.
1807
2df4d1d5
JB
18082013-11-11 Joel Brobecker <brobecker@adacore.com>
1809
1810 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1811 the documentation of fields "except_string" and "condition".
1812 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1813 CONDITION on the heap before passing it to
1814 create_ada_exception_catchpoint.
1815 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1816 CONDITION.
1817
99c1d451
TT
18182013-11-11 Tom Tromey <tromey@redhat.com>
1819
1820 * config.in, configure: Rebuild.
1821 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1822
8ca5801b
JB
18232013-11-11 Joel Brobecker <brobecker@adacore.com>
1824
1825 * remote-sim.c (gdbsim_detach): Break declaration into
1826 shorter lines. No code change.
1827
7a06d430
EBM
18282013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1829
1830 * remote-sim.c (gdbsim_detach): Fix prototype.
1831
73be47f5
DE
18322013-11-08 Doug Evans <dje@google.com>
1833
1834 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1835 (create_debug_types_hash_table): Only print debugging messages for
1836 each TU if dwarf2-read >= 2.
1837 (process_queue): Ditto.
1838 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1839 Update doc string.
1840
a18d8f10
TT
18412013-11-08 Tom Tromey <tromey@redhat.com>
1842
1843 * configure: Rebuild.
1844 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1845
9467110b
TT
18462013-11-08 Tom Tromey <tromey@redhat.com>
1847
1848 * configure, config.in: Rebuild.
1849 * configure.ac: Remove unused configury.
1850
69706679
TT
18512013-11-08 Tom Tromey <tromey@redhat.com>
1852
1853 * m32c-tdep.c: Use gdb_string.h.
1854
9b4bea72
TT
18552013-11-08 Tom Tromey <tromey@redhat.com>
1856
1857 * configure, config.in: Rebuild.
1858 * configure.ac: Remove all link.h-related checks.
1859
3266f10b
TT
18602013-11-08 Tom Tromey <tromey@redhat.com>
1861
1862 * acinclude.m4: Include common.m4.
1863 * common/common.m4: New file.
1864 * configure, config.in: Rebuild.
1865 * configure.ac: Use GDB_AC_COMMON.
1866
db0fec5c
DE
18672013-11-08 Doug Evans <dje@google.com>
1868
1869 * NEWS: Mention that "set debug symtab-create" now accepts a
1870 verbosity level.
1871 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1872 to set the symtab's primary flag.
1873 * jit.c (finalize_symtab): Ditto.
1874 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1875 * symfile.c (allocate_symtab): Only print debugging messages for
1876 symtab_create_debug levels 2 and higher.
1877 * symtab.c (symtab_create_debug): Change type to unsigned int.
1878 (set_symtab_primary): New function.
1879 (_initialize_symtab): Change "set debug symtab-create" to a
1880 zuinteger option.
1881 * symtab.h (set_symtab_primary): Declare.
1882 (symtab_create_debug): Update decl.
1883
52554a0e
TT
18842013-11-08 Tom Tromey <tromey@redhat.com>
1885
1886 * aix-thread.c (aix_thread_detach): Update.
1887 * corelow.c (core_detach): Update.
1888 * darwin-nat.c (darwin_detach): Update.
1889 * dec-thread.c (dec_thread_detach): Update.
1890 * gnu-nat.c (gnu_detach): Update.
1891 * go32-nat.c (go32_detach): Update.
1892 * inf-ptrace.c (inf_ptrace_detach): Update.
1893 * inf-ttrace.c (inf_ttrace_detach): Update.
1894 * linux-fork.c (linux_fork_detach): Update.
1895 * linux-fork.h (linux_fork_detach): Update.
1896 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1897 local for const-correctness.
1898 * linux-thread-db.c (thread_db_detach): Update.
1899 * monitor.c (monitor_detach): Update.
1900 * nto-procfs.c (procfs_detach): Update.
1901 * procfs.c (procfs_detach): Update.
1902 * record.c (record_detach): Update.
1903 * record.h (record_detach): Update.
1904 * remote-m32r-sdi.c (m32r_detach): Update.
1905 * remote-mips.c (mips_detach): Update.
1906 * remote-sim.c (gdbsim_detach): Update.
1907 * remote.c (remote_detach_1, remote_detach)
1908 (extended_remote_detach): Update.
1909 * sol-thread.c (sol_thread_detach): Update.
1910 * target.c (target_detach): Make "args" const.
1911 (init_dummy_target): Update.
1912 * target.h (struct target_ops) <to_detach>: Make argument const.
1913 (target_detach): Likewise.
1914 * windows-nat.c (windows_detach): Update.
1915
204b5331
DE
19162013-11-07 Doug Evans <dje@google.com>
1917
1918 PR 11786
1919 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1920 and align fields for PT_GNU_RELRO segments.
1921
92e32e33
PM
19222013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1923
ef1bc9e7
AM
1924 PR python/15747
1925 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1926
f76c27b5
PM
19272013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1928
1929 * NEWS: Document Python temporary breakpoint support.
1930 * python/py-breakpoint.c (bppy_get_temporary): New function.
1931 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1932 to temporary if True.
1933
d52cd232
JM
19342013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1935
1936 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1937 removed to allow analyzing unconditional branch instructions
1938 with PC-relative offsets of zero.
1939
fa4d0c40
YQ
19402013-11-07 Yao Qi <yao@codesourcery.com>
1941
1942 * mi/mi-cmd-var.c: Include "language.h".
1943 (mi_cmd_var_info_expression): Get language name from
1944 language_defn.
1945 * varobj.c (varobj_language_string): Remove.
1946 (variable_language): Remove declaration.
1947 (languages): Remove.
1948 (varobj_get_language): Change the type of return value.
1949 (variable_language): Remove.
1950 * varobj.h (enum varobj_languages): Remove.
1951 (varobj_language_string): Remove declaration.
1952 (varobj_get_language): Update declaration.
1953
6abde28f
YQ
19542013-11-07 Yao Qi <yao@codesourcery.com>
1955
1956 * language.h (struct language_defn) <la_natural_name>: New
1957 field.
1958 * ada-lang.c (ada_language_defn): Initialize field
1959 'la_natural_name'.
1960 * c-lang.c (c_language_defn): Likewise.
1961 (cplus_language_defn, asm_language_defn): Likewise.
1962 * d-lang.c (d_language_defn): Likewise.
1963 * f-lang.c (f_language_defn): Likewise.
1964 * go-lang.c (go_language_defn): Likewise.
1965 * jv-lang.c (java_language_defn): Likewise.
1966 * language.c (unknown_language_defn ): Likewise.
1967 (auto_language_defn): Likewise.
1968 * m2-lang.c (m2_language_defn): Likewise.
1969 * objc-lang.c (objc_language_defn): Likewise.
1970 * opencl-lang.c (opencl_language_defn): Likewise.
1971 * p-lang.c (pascal_language_defn): Likewise.
1972
27cd387b
YQ
19732013-11-07 Yao Qi <yao@codesourcery.com>
1974
1975 * language.c (language_str): Return const char *.
1976 (add_language): Add const to 'language_names'
1977 * language.h (struct language_defn) <la_name>: Add const.
1978 (language_str: Update declaration.
1979
6682d959
AA
19802013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1981
1982 * s390-linux-nat.c (s390_read_description): Consider the TE field
1983 in the HWCAP for determining 'have_regset_tdb'.
1984
b9502d3f
WN
19852013-11-06 Will Newton <will.newton@linaro.org>
1986
1987 PR gdb/12866
1988 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1989 values. (read_partial_die): Likewise.
1990
840da61a
MB
19912013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1992
1993 PR cli/16122
1994 * top.c (command_line_input): Unify interactivity tests to use
1995 input_from_terminal_p.
1996 * event-top.c (command_line_handler): Likewise.
1997
7636ccf9
YQ
19982013-11-06 Yao Qi <yao@codesourcery.com>
1999
2000 * Makefile.in (check-perf): New target.
2001
12b27276
WN
20022013-11-05 Will Newton <will.newton@linaro.org>
2003
2004 PR gdb/7670
2005 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2006 (arm_print_float_info): Likewise.
2007
67c059c2
AB
20082013-11-04 Anton Blanchard <anton@samba.org>
2009
2010 * target.c (memory_xfer_partial): Cap write to 4KB.
2011
0569175e
TSD
20122013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2013
2014 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2015 probe scan even when the arch provides no get_longjmp_target.
2016
b18e90f5
PA
20172013-10-31 Pedro Alves <palves@redhat.com>
2018
2019 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2020 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2021 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2022 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2023 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2024 <bpstat handling>: If the bpstat chain wants the signal to be
2025 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2026 GDB_SIGNAL_TRAP.
2027
638aa5a1
AB
20282013-10-31 Andrew Burgess <aburgess@broadcom.com>
2029
2030 * breakpoint.c (update_watchpoint): Update error message and add
2031 an additional error message.
2032
0e5fae36
UW
20332013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2034
2035 * s390-tdep.h: Rename to...
2036 * s390-linux-tdep.h: ...here.
2037 * s390-tdep.c: Rename to...
2038 * s390-linux-tdep.c: ...here. Adjust #include.
2039 * s390-nat.c: Rename to...
2040 * s390-linux-nat.c: ...here. Adjust #include.
2041 * config/s390/s390.mh: Rename to...
2042 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2043 s390-linux-nat.o.
2044 * configure.host: Reflect host rename "s390" -> "linux".
2045 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2046 * Makefile.in (ALL_TARGET_OBS): Likewise.
2047 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2048 s390-linux-tdep.h.
2049 (ALLDEPFILES): Reflect rename of .c files.
2050
34201ae3
UW
20512013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2052
2053 * s390-nat.c: Whitespace cleanup.
2054 * s390-tdep.c: Likewise.
2055 * s390-tdep.h: Remove empty line at end of file.
2056
e17aaa33
MR
20572013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2058
2059 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2060 siginfo_size.
2061
aee17e42
TT
20622013-10-29 Tom Tromey <tromey@redhat.com>
2063
2064 * utils.c (reg): Move undefinition...
2065 * gdb_curses.h: ... here. Update comment to mention AIX.
2066
9ac69859
NB
20672013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2068
2069 * exec.h (add_target_sections_of_objfile): New declaration.
2070 * exec.c (add_target_sections_of_objfile): New function.
2071 * symfile.c (add_symbol_file_command): Update current target sections.
2072 (remove_symbol_file_command): New command.
2073 (symfile_free_objfile): New function.
2074 (_initialize_symfile): Register observer for free_objfile events.
2075 * NEWS: Add description of the remove-symbol-file command.
2076 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2077 * objfiles.c (free_objfile): Notify free_objfile.
2078 (is_addr_in_objfile): New function.
2079 * objfiles.h (is_addr_in_objfile): New declaration.
2080 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2081 events instead of solib_unloaded events.
2082 (_initialize_printcmd): Register observer for free_objfile instead
2083 of solib_unloaded notifications.
2084 * solib.c (remove_user_added_objfile): New function.
2085 (_initialize_symfile): Add remove-symbol-file.
2086
f69d9aef
AB
20872013-10-29 Andrew Burgess <aburgess@broadcom.com>
2088
2089 * infcmd.c (default_print_one_register_info): Use val_print to
2090 print all values even optimized out or unavailable ones. Don't
2091 try to print a raw form of optimized out or unavailable values.
2092
487ad57c
YQ
20932013-10-29 Yao Qi <yao@codesourcery.com>
2094
2095 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2096 parameter 'arg' instead of from program_space_data.
2097 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2098 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2099 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2100 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2101 * inflow.c (inflow_inferior_data_cleanup): Get data from
2102 parameter 'arg' instead of inferior_data.
2103 * registry.h: Add comments.
2104
3c4797ba
PA
21052013-10-28 Pedro Alves <palves@redhat.com>
2106
2107 * breakpoint.c (watchpoints_triggered)
2108 <!target_stopped_data_address>: Hardcode return 1.
2109
cdaa5b73
PA
21102013-10-28 Pedro Alves <palves@redhat.com>
2111
2112 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2113 level and reindent.
2114
94c57d6a
PA
21152013-10-28 Pedro Alves <palves@redhat.com>
2116
2117 * infrun.c (process_event_stop_test): New function, factored out
2118 from handle_inferior_event.
2119 (handle_inferior_event): 'process_event_stop_test' is now a
2120 function instead of a goto label -- adjust.
2121
fcf3daef
PA
21222013-10-28 Pedro Alves <palves@redhat.com>
2123
2124 * infrun.c (handle_inferior_event): Move process_event_stop_test
2125 goto label to the else branch of the ecs->random_signal check,
2126 along with FRAME and GDBARCH re-fetching.
2127
c447ac0b
PA
21282013-10-28 Pedro Alves <palves@redhat.com>
2129
2130 * infrun.c (switch_back_to_stepped_thread): New function, factored
2131 out from handle_inferior_event.
2132 (handle_inferior_event): Adjust to call
2133 switch_back_to_stepped_thread. Call it also at the tail of the
2134 random signal handling, and return, instead of also handling
2135 random signals just before the stepping tests.
2136
f05e4c11
PA
21372013-10-28 Pedro Alves <palves@redhat.com>
2138
2139 * infrun.c (clear_stop_func): Delete.
2140 (handle_inferior_event): Don't call clear_stop_func and don't
2141 clear 'ecs->random_signal'.
2142
ca20d462
YQ
21432013-10-27 Yao Qi <yao@codesourcery.com>
2144
2145 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2146 (varobj_create, varobj_get_path_expr): Update.
2147 (varobj_value_has_mutated, varobj_update): Likewise.
2148 (create_child_with_value, new_root_variable): Likewise.
2149 (number_of_children, name_of_variable): Likewise.
2150 (value_of_child, my_value_of_variable): Likewise.
2151 (varobj_value_is_changeable_p): Likewise.
2152
a53b64ea
YQ
21532013-10-25 Yao Qi <yao@codesourcery.com>
2154
2155 * language.h (struct lang_varobj_ops): Declare.
2156 (struct language_defn) <la_varobj_ops>: New field.
2157 * ada-lang.c: Include "varobj.h"
2158 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2159 ada_varobj_ops.
2160 * c-lang.c: Include "varobj.h"
2161 (c_language_defn): Initialize field 'la_varobj_ops' with
2162 c_varobj_ops.
2163 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2164 cplus_varobj_ops.
2165 (asm_language_defn): Initialize field 'la_varobj_ops' with
2166 default_varobj_ops.
2167 (minimal_language_defn): Likewise.
2168 * d-lang.c (d_language_defn): Likewise.
2169 * f-lang.c (f_language_defn): Likewise.
2170 * go-lang.c (go_language_defn): Likewise.
2171 * m2-lang.c (m2_language_defn): Likewise.
2172 * objc-lang.c (objc_language_defn): Likewise.
2173 * opencl-lang.c (opencl_language_defn): Likewise.
2174 * p-lang.c (pascal_language_defn): Likewise.
2175 * language.c (unknown_language_defn): Likewise.
2176 (auto_language_defn): Likewise.
2177 (local_language_defn): Likewise.
2178 * jv-lang.c (java_language_defn): Initialize field
2179 'la_varobj_ops' with java_varobj_ops.
2180 * varobj.c (varobj_create): Update.
2181 * varobj.h (default_varobj_ops): Define macro.
2182
686d4def
PA
21832013-10-25 Pedro Alves <palves@redhat.com>
2184
2185 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2186 static field value.
2187 (cp_print_static_field): If the value is entirely optimized out,
2188 print <optimized out> here.
2189 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2190 static field value.
2191 * p-valprint.c (pascal_object_print_static_field): If the value is
2192 entirely optimized out, print <optimized out> here.
2193 * valops.c (do_search_struct_field)
2194 (value_struct_elt_for_reference): No longer handle a NULL static
2195 field value.
2196 * value.c (value_static_field): Return an optimized out value
2197 instead of NULL.
2198
6c177e28
YQ
21992013-10-25 Yao Qi <yao@codesourcery.com>
2200
2201 * remote.c (remote_traceframe_info): Return early if
2202 traceframe is not selected.
2203
98322bfa
YQ
22042013-10-25 Yao Qi <yao@codesourcery.com>
2205
2206 * tracepoint.c (traceframe_fun): Remove.
2207 (traceframe_sal): Remove.
2208 (set_traceframe_context): Add local variables.
2209
6ba1f115
JB
22102013-10-25 Joel Brobecker <brobecker@adacore.com>
2211
2212 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2213 and parameter name.
2214
bbe769cc
MR
22152013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2216
2217 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2218 failure from register information collection.
2219
72ee4495 22202013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
2221
2222 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2223 member.
2224 (linux_corefile_thread_callback): Update accordingly.
2225 (linux_make_corefile_notes): Likewise.
2226
98882a26
PA
22272013-10-24 Pedro Alves <palves@redhat.com>
2228
2229 * NEWS (New options): Mention set/show startup-with-shell.
2230 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2231 instead of 3.
2232 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2233 startup-with-shell'.
2234 (show_startup_with_shell): New function.
2235 (_initialize_fork_child): Register the set/show startup-with-shell
2236 commands.
2237 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2238 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2239 * procfs.c (procfs_init_inferior): Remove comment.
2240 * infcmd.c (startup_with_shell): New global.
2241 * inferior.h (startup_with_shell): Declare global.
2242 (STARTUP_WITH_SHELL): Delete.
2243 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2244
c9737c08
PA
22452013-10-23 Pedro Alves <palves@redhat.com>
2246
2247 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2248 * common/signals.c: Include "gdb_assert.h".
2249 (signals): New field 'symbol'.
2250 (SET): Use the 'symbol' parameter.
2251 (gdb_signal_to_symbol_string): New function.
2252 * infrun.c (handle_inferior_event) <random signal>: In debug
2253 output, print the random signal enum as string in addition to its
2254 number.
2255 * target/waitstatus.c (target_waitstatus_to_string): Print the
2256 signal's enum value as string instead of the (POSIX) signal name.
2257
f60db4f0
GB
22582013-10-23 Gary Benson <gbenson@redhat.com>
2259
2260 PR 16013
2261 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2262 from 32 to 18. Adjusted fscanf format string accordingly.
2263 (Avoids leaving cmd unterminated.)
2264 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2265 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2266 that local_address and remote_address will not overflow.
2267 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2268 leaving dependencies unterminated. Parse size as "%u" to match
2269 definition.
2270
6d3e7a94
PA
22712013-10-22 Pedro Alves <palves@redhat.com>
2272
2273 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2274 set ecs->random signal.
2275
42ec045f
PA
22762013-10-22 Pedro Alves <palves@redhat.com>
2277
2278 * infrun.c (keep_going): Update comments.
2279
22802013-10-22 Pedro Alves <palves@redhat.com>
2281
2282 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2283 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2284
22852013-10-22 Pedro Alves <palves@redhat.com>
2286
2287 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2288 GDB_EXC_BAD_ACCESS.
2289 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2290 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2291 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2292 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2293 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2294 (GDB_SIGNAL_LAST): Change description string.
2295 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2296 Adjust to signal renaming.
2297 * darwin-nat.c (darwin_decode_message): Likewise.
2298
c8fde1b1
JM
22992013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2300
2301 * MAINTAINERS (Write After Approval): Add myself to the list.
2302
e8369a73
AB
23032013-10-18 Andrew Burgess <aburgess@broadcom.com>
2304
2305 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2306 forced off, downgrade them to software watchpoints if possible,
2307 and error out if not possible.
2308 (watch_command_1): Move watchpoint type selection closer to
2309 watchpoint creation, and extend the comments.
2310
776f04fa
PA
23112013-10-18 Pedro Alves <palves@redhat.com>
2312
2313 PR gdb/16062
2314 * infrun.c (handle_inferior_event): Keep going if we got a random
2315 signal we should not stop for, instead of falling through to the
2316 step tests.
2317
0c6faab5
YQ
23182013-10-18 Yao Qi <yao@codesourcery.com>
2319
2320 * c-varobj.c (cplus_number_of_children): Fix indentation.
2321
50b34a18
TT
23222013-10-17 Tom Tromey <tromey@redhat.com>
2323
2324 PR gdb/15995:
2325 * printcmd.c (printcmd): Call gdb_flush.
2326
5c4c8a59
TT
23272013-10-17 Tom Tromey <tromey@redhat.com>
2328
2329 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2330 (elf_locate_sections): Update.
2331
c4124bf1
YQ
23322013-10-17 Yao Qi <yao@codesourcery.com>
2333
2334 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2335 * ada-varobj.c: Remove the include of ada-varobj.h.
2336 (ada_varobj_get_number_of_children): Declare.
2337 (ada_varobj_get_name_of_child): Make it static.
2338 (ada_varobj_get_path_expr_of_child): Likewise.
2339 (ada_varobj_get_value_of_child): Likewise.
2340 (ada_varobj_get_type_of_child): Likewise.
2341 (ada_varobj_get_value_of_array_variable): Likewise.
2342 * ada-varobj.h: Remove.
2343
99ad9427
YQ
23442013-10-17 Yao Qi <yao@codesourcery.com>
2345
2346 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2347 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2348 * ada-varobj.c: Include "varobj.h".
2349 (ada_number_of_children): New. Moved from varobj.c.
2350 (ada_name_of_variable, ada_name_of_child): Likewise.
2351 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2352 (ada_type_of_child, ada_value_of_variable): Likewise.
2353 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2354 (ada_varobj_ops): New.
2355 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2356 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2357 * gdbtypes.h (get_target_type): Declare.
2358 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2359 "ada-lang.h".
2360 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2361 (ANONYMOUS_UNION_NAME): Likewise.
2362 (get_type, get_value_type, get_target_type): Remove declarations.
2363 (value_get_print_value, varobj_value_get_print_value): Likewise.
2364 (c_number_of_children, c_name_of_variable): Likewise.
2365 (c_name_of_child, c_path_expr_of_child): Likewise.
2366 (c_value_of_child, c_type_of_child): Likewise.
2367 (c_value_of_variable, cplus_number_of_children): Likewise.
2368 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2369 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2370 (cplus_value_of_child, cplus_type_of_child): Likewise.
2371 (cplus_value_of_variable, java_number_of_children): Likewise.
2372 (java_name_of_variable, java_name_of_child): Likewise.
2373 (java_path_expr_of_child, java_value_of_child): Likewise.
2374 (java_type_of_child, java_value_of_variable): Likewise.
2375 (ada_number_of_children, ada_name_of_variable): Likewise.
2376 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2377 (ada_value_of_child, ada_type_of_child): Likewise.
2378 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2379 (ada_value_has_mutated): Likewise.
2380 (struct language_specific): Move it to varobj.h.
2381 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2382 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2383 Callers update.
2384 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2385 Make it extern.
2386 (is_anonymous_child): Move it to c-varobj.c and rename to
2387 varobj_is_anonymous_child. Caller update.
2388 (get_type): Move it to c-varobj.c.
2389 (get_value_type): Rename it varobj_get_value_type. Make it
2390 extern.
2391 (get_target_type): Move it gdbtypes.c.
2392 (varobj_formatted_print_options): New function.
2393 (value_get_print_value): Rename it to
2394 varobj_value_get_print_value and make it extern.
2395 (varobj_value_is_changeable_p): Make it extern.
2396 (adjust_value_for_child_access): Move it to c-varobj.c.
2397 (default_value_is_changeable_p): Rename it to
2398 varobj_default_value_is_changeable_p. Make it extern.
2399 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2400 (c_name_of_child, c_path_expr_of_child): Likewise.
2401 (c_value_of_child, c_type_of_child): Likewise.
2402 (c_value_of_variable, cplus_number_of_children): Likewise.
2403 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2404 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2405 (cplus_value_of_child, cplus_type_of_child): Likewise.
2406 (cplus_value_of_variable): Likewise.
2407 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2408 (java_name_of_child, java_path_expr_of_child): Likewise.
2409 (java_value_of_child, java_type_of_child): Likewise.
2410 (java_value_of_variable): Likewise.
2411 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2412 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2413 (ada_value_of_child, ada_type_of_child): Likewise.
2414 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2415 (ada_value_has_mutated): Likewise.
2416 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2417 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2418 (c_varobj_ops, cplus_varobj_ops): Declare.
2419 (java_varobj_ops, ada_varobj_ops): Declare.
2420 (varobj_default_value_is_changeable_p): Declare.
2421 (varobj_value_is_changeable_p): Declare.
2422 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2423 (varobj_get_path_expr_parent): Declare.
2424 (varobj_value_get_print_value): Declare.
2425 (varobj_formatted_print_options): Declare.
2426 (varobj_restrict_range): Declare.
2427
c8a62302
LM
24282013-10-17 Luis Machado <lgustavo@codesourcery.com>
2429
2430 * target/waitstatus.h (target_waitkind): Remove spurious
2431 character from the comments.
2432
eade6471
JB
24332013-10-17 Joel Brobecker <brobecker@adacore.com>
2434
2435 * gdbarch.sh (get_longjmp_target): Add method documentation.
2436 * gdbarch.h: Regenerate.
2437
5411b26c
TT
24382013-10-16 Tom Tromey <tromey@redhat.com>
2439
2440 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2441 label.
2442
87326c87
LM
24432013-10-16 Luis Machado <lgustavo@codesourcery.com>
2444
2445 * gcore.in: Call GDB using the full path to the gcore script.
2446 Error out if the GDB binary is not found.
2447
fd0a4d76
SDJ
24482013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2449
2450 PR gdb/16014
2451 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2452 sizeof.
2453
d92f7ee3
SDJ
24542013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2455
2456 PR gdb/16042
2457 * target.c (target_disable_btrace): Fix invalid return value for
2458 void function.
2459 (target_teardown_btrace): Likewise.
2460
bb5ce47a
YQ
24612013-10-14 Yao Qi <yao@codesourcery.com>
2462
2463 * varobj.c (struct varobj): Move most of the fields to
2464 varobj.h.
2465 (struct varobj_dynamic): New struct.
2466 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2467 (varobj_has_more): Likewise.
2468 (dynamic_varobj_has_child_method): Likewise.
2469 (update_dynamic_varobj_children): Likewise.
2470 (varobj_get_num_children): Likewise.
2471 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2472 (install_new_value_visualizer): Likewise.
2473 (install_new_value_visualizer, install_new_value): Likewise.
2474 (varobj_update, new_variable, free_variable): Likewise.
2475 (my_value_of_variable, value_get_print_value): Likewise.
2476 (install_visualizer): Change the type of parameter 'var' to
2477 'struct varobjd_dynamic *'. Callers update.
2478 * varobj.h (struct varobj): Moved from varobj.c.
2479 (struct varobj) <dynamic>: New field.
2480
0b76b0ce
SL
24812013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2482
2483 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2484 as the preferred name of r30.
2485 * nios2-linux-tdep.c (reg_offsets): Likewise.
2486 * features/nios2-cpu.xml: Likewise.
2487 * features/nios2-linux.c: Regenerated.
2488 * features/nios2.c: Regenerated.
2489 * regformats/nios2-linux.dat: Regenerated.
2490
4856b6bc
JK
24912013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Canonicalize directories for EXEC_FILENAME.
2494 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2495 exec_filename.
2496 * utils.c (gdb_realpath_keepfile): New function.
2497 * utils.h (gdb_realpath_keepfile): New declaration.
2498
9b557b58
DE
24992013-10-11 Doug Evans <dje@google.com>
2500
2501 * Makefile.in (GDBFLAGS): New variable.
2502 (run): New rule.
2503
ce13fade
JB
25042013-10-11 Joel Brobecker <brobecker@adacore.com>
2505
2506 * NEWS: Add entry documenting the new "-catch-assert" and
2507 "-catch-exception" GDB/MI commands.
2508
349774ef
JB
25092013-10-11 Joel Brobecker <brobecker@adacore.com>
2510
2511 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2512 "enabled".
2513 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2514 "enabled". Set B->ENABLE_STATE accordingly.
2515 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2516 ada-lang.c.
2517 (create_ada_exception_catchpoint): Add declaration.
2518 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2519 (create_ada_exception_catchpoint): Make non-static. Add new
2520 parameter "disabled". Use it in call to
2521 init_ada_exception_breakpoint.
2522 (catch_ada_exception_command): Add parameter "enabled" in call
2523 to create_ada_exception_catchpoint.
2524 (catch_assert_command): Likewise.
2525
2526 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2527 Add declarations.
2528 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2529 "catch-exception" commands.
2530 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2531 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2532
761269c8
JB
25332013-10-11 Joel Brobecker <brobecker@adacore.com>
2534
2535 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2536 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2537 of all its enumerates with "ada_". Update the rest of this
2538 file throughout.
2539
b4a5b78b
JB
25402013-10-11 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-lang.c (ada_decode_exception_location): Delete.
2543 (create_ada_exception_catchpoint): Remove arguments "sal",
2544 "addr_string" and "ops". Add argument "ex_kind" instead.
2545 Adjust implementation accordingly, calling ada_exception_sal
2546 to get the entities it no longer gets passed as arguments.
2547 Document the function's arguments.
2548 (catch_ada_exception_command): Use catch_ada_exception_command_split
2549 instead of ada_decode_exception_location, and update call to
2550 create_ada_exception_catchpoint.
2551 (catch_ada_assert_command_split): Renames
2552 ada_decode_assert_location. Remove parameters "addr_string" and
2553 "ops", and now returns void. Adjust implementation accordingly.
2554 Update the function documentation.
2555 (catch_assert_command): Use catch_ada_assert_command_split
2556 instead of ada_decode_assert_location. Update call to
2557 create_ada_exception_catchpoint.
2558
7ad1d32c 25592013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2560
2561 * utils.h (perror_warning_with_name): Add declaration.
2562 * utils.c (perror_warning_with_name): New function.
2563 * cli/cli-cmds.c (source_script_with_search): Add call to
2564 perror_warning_with_name if from_tty is nul.
2565
7ad1d32c 25662013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2567
2568 * utils.c (perror_string): New function, extracted out of
2569 throw_perror_with_name.
2570 (throw_perror_with_name): Rework to use perror_string.
2571
bcc75809
YQ
25722013-10-11 Yao Qi <yao@codesourcery.com>
2573
2574 * remote.c (discard_pending_stop_replies_in_queue): Update
2575 declaration.
2576 (struct stop_reply) <rs>: New field.
2577 (remove_stop_reply_of_remote_state): New function.
2578 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2579 Callers update. Pass remove_stop_reply_of_remote_state to
2580 QUEUE_iterate.
2581 (remote_parse_stop_reply): Initialize field 'rs'.
2582
05feb193
WN
25832013-10-10 Will Newton <will.newton@linaro.org>
2584
2585 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2586 linux_init_abi.
2587
0d12017b
JB
25882013-10-10 Joel Brobecker <brobecker@adacore.com>
2589
2590 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2591 serial_baud_show_cmd.
2592 (_initialize_cli_cmds): Delete the code creating the
2593 "set/show remotebaud" commands.
2594 * serial.c (baud_rate): Move here from top.c.
2595 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2596 (_initialize_serial): Create "set/show serial baud" commands.
2597 Add "set/show remotebaud" command aliases.
2598 * top.c (baud_rate): Moved to serial.c.
2599 * NEWS: Document the new "set/show serial baud" commands,
2600 replacing "set/show remotebaud".
2601
578d3588
PA
26022013-10-09 Pedro Alves <palves@redhat.com>
2603
2604 * breakpoint.c (insert_bp_location): Use memory_error_message to
2605 build the memory error string.
2606 * c-lang.c: Include "gdbcore.h".
2607 (c_get_string): Use memory_error to throw error.
2608 (target_xfer_memory_error): Delete.
2609 (memory_error_message): New, factored out from
2610 target_xfer_memory_error.
2611 (memory_error): Change parameter type to target_xfer_error.
2612 Rewrite.
2613 (read_memory): Use memory_error instead of
2614 target_xfer_memory_error.
2615 * gdbcore.h: Include "target.h".
2616 (memory_error): Change parameter type to target_xfer_error.
2617 (memory_error_message): Declare function.
2618 * target.c (target_read_memory, target_read_stack)
2619 (target_write_memory, target_write_raw_memory): Return
2620 TARGET_XFER_E_IO on error. Adjust comments.
2621 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2622 instead of EIO.
2623 * target.h (target_read, target_insert_breakpoint)
2624 (target_remove_breakpoint): Adjust comments.
2625 * valprint.c (partial_memory_read): Rename parameter, and adjust
2626 comment.
2627 (val_print_string): Use memory_error_message to build the memory
2628 error string.
2629
c74e1ccf
JK
26302013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2633 result variable. Rename variable fopen_e_ever_failed to
2634 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2635
915215be
PA
26362013-10-09 Pedro Alves <palves@redhat.com>
2637
2638 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2639 (monitor_write_memory_longlongs, monitor_write_memory_block):
2640 Constify 'myaddr' parameter.
2641 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2642 helper.
2643 (monitor_xfer_partial): New function.
2644 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2645 hook. Install a to_xfer_partial hook.
2646
acd13123
TT
26472013-10-09 Tom Tromey <tromey@redhat.com>
2648
2649 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2650 bfd_get_alt_debug_link_info.
2651
40135bb1
JK
26522013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 New flag OBJF_NOT_FILENAME.
2655 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2656 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2657 allocate_objfile.
2658 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2659 symbol_file_add_from_bfd.
2660 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2661 allocate_objfile.
2662 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2663 NULL.
2664 * objfiles.h (OBJF_NOT_FILENAME): New.
2665
dc294be5
TT
26662013-10-08 Tom Tromey <tromey@redhat.com>
2667
2668 * Makefile.in (SFILES): Add build-id.c.
2669 (HFILES_NO_SRCDIR): Add build-id.h.
2670 * build-id.c: New file, largely from elfread.c. Modified
2671 most functions.
2672 * build-id.h: New file.
2673 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2674 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2675 Search for dwz file using build-id.
2676 * elfread.c (build_id_bfd_get, build_id_verify)
2677 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2678
db230ce3
JB
26792013-10-08 Joel Brobecker <brobecker@adacore.com>
2680
2681 * ada-lang.c (compare_names_with_case): Renamed from
2682 compare_names, adding a new parameter "casing" and its handling.
2683 New function documentation.
2684 (compare_names): New function, implemented using
2685 compare_names_with_case.
2686
6501c98a
JB
26872013-10-08 Joel Brobecker <brobecker@adacore.com>
2688
2689 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2690
84a1243b
TT
26912013-10-07 Tom Tromey <tromey@redhat.com>
2692
2693 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2694 demangled_names_hash.
2695 (free_objfile): Don't delete the demangled_names_hash.
2696 * objfiles.h (struct objfile_per_bfd_storage)
2697 <demangled_names_hash>: New field.
2698 (struct objfile) <demangled_names_hash>: Move to
2699 objfile_per_bfd_storage.
2700 * symfile.c (reread_symbols): Don't delete the
2701 demangled_names_hash.
2702 * symtab.c (create_demangled_names_hash): Update.
2703 (symbol_set_names): Update.
2704
1da77581
TT
27052013-10-07 Tom Tromey <tromey@redhat.com>
2706
2707 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2708 needs_relocations>: New fields.
2709 (gdb_bfd_requires_relocations): New function.
2710 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2711 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2712 the BFD needs relocations applied.
2713
46ecd527
PA
27142013-10-07 Pedro Alves <palves@redhat.com>
2715
2716 PR breakpoints/11568
2717 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2718 the thread list" instead of "gone".
2719
0c557179
SDJ
27202013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2721
2722 * NEWS: Mention new convenience variable $_exitsignal.
2723 * corelow.c (core_open): Reset exit convenience variables. Set
2724 $_exitsignal to the uncaught signal which generated the corefile.
2725 * infrun.c (handle_inferior_event): Reset exit convenience
2726 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2727 (clear_exit_convenience_vars): New function.
2728 * inferior.h (clear_exit_convenience_vars): New prototype.
2729
1cc47d81
YQ
27302013-10-06 Yao Qi <yao@codesourcery.com>
2731
2732 * varobj.h: Add comments to enum varobj_languages.
2733
73869dc2
DE
27342013-10-04 Doug Evans <dje@google.com>
2735
2736 Add support for DWP file format version 2.
2737 * NEWS: Mention support for DWP file format version 2.
2738 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2739 union of asection, containing_section. New fields virtual_offset
2740 and is_virtual. Change type of readin filed from int to char.
2741 (dwo_sections, dwo_file): Tweak comments.
2742 (dwp_v2_section_ids): New enum.
2743 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2744 str_offsets, types.
2745 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2746 All uses updated.
2747 (virtual_v2_dwo_sections): New struct.
2748 (dwp_hash_table): New fields version, nr_columns. Change type of
2749 section_pool field to a union.
2750 (dwp_file): New field version.
2751 (dwarf2_has_info): Check for virtual sections.
2752 (get_containing_section): New function.
2753 (get_section_bfd_owner, get_section_bfd_section): Call it.
2754 (dwarf2_locate_sections): Update.
2755 (dwarf2_section_empty_p): Update.
2756 (dwarf2_read_section): Handle virtual sections.
2757 (locate_dwz_sections): Update.
2758 (create_dwp_hash_table): Document and handle V2 format.
2759 (locate_v1_virtual_dwo_sections): Renamed from
2760 locate_virtual_dwo_sections and update. All callers updated.
2761 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2762 Delete arg htab. Rename arg section_index to unit_index.
2763 All callers updated.
2764 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2765 All uses updated.
2766 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2767 (lookup_dwo_unit_in_dwp): Add V2 support.
2768 (dwarf2_locate_dwo_sections): Update.
2769 (dwarf2_locate_common_dwp_sections): Renamed from
2770 dwarf2_locate_dwp_sections and update. All callers updated.
2771 (dwarf2_locate_v2_dwp_sections): New function.
2772 (open_and_init_dwp_file): Add V2 support.
2773 (read_str_index): New locals str_section, str_offsets_section.
2774
9a2c3737
PA
27752013-10-04 Pedro Alves <palves@redhat.com>
2776
2777 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2778 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2779 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2780 describing comments with references to ptid.h.
2781 * common/ptid.h: Remove intro description of constructors,
2782 accessors and predicates.
2783 (struct ptid): Reformat.
2784 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2785 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2786 describing comments.
2787
f5371440
JB
27882013-10-04 Joel Brobecker <brobecker@adacore.com>
2789
2790 * aix-thread.c (sync_threadlists): Add missing ')' in call
2791 to ptid_build.
2792
793e1c06
JB
27932013-10-04 Joel Brobecker <brobecker@adacore.com>
2794
2795 * procfs.c (procfs_init_inferior): Fix typo causing the build
2796 to fail.
2797
26f0edc1
JB
27982013-10-04 Joel Brobecker <brobecker@adacore.com>
2799
2800 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2801
5713b9b5
JB
28022013-10-04 Joel Brobecker <brobecker@adacore.com>
2803
2804 * mi/mi-main.c (run_one_inferior): Add function description.
2805 Make ARG a pointer to an integer whose value determines whether
2806 we should "run" or "start" the program.
2807 (mi_cmd_exec_run): Add handling of the "--start" option.
2808 Reject all other command-line options.
2809 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2810
f48ff2a7
YQ
28112013-10-04 Yao Qi <yao@codesourcery.com>
2812
2813 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2814 (struct notif_client) <pending_event>: Moved
2815 to struct remote_notif_state.
2816 <id>: New field.
2817 (struct remote_notif_state) <pending_event>: New field.
2818 (notif_event_xfree): Declare.
2819 * remote-notif.c (handle_notification): Adjust.
2820 (notif_event_xfree): New function.
2821 (do_notif_event_xfree): Call notif_event_xfree.
2822 (remote_notif_state_xfree): Call notif_event_xfree to free
2823 each element in field pending_event.
2824 * remote.c (discard_pending_stop_replies): Remove declaration.
2825 (discard_pending_stop_replies_in_queue): Declare.
2826 (remote_close): Call discard_pending_stop_replies_in_queue
2827 instead of discard_pending_stop_replies.
2828 (remote_start_remote): Adjust.
2829 (stop_reply_xfree): Call notif_event_xfree.
2830 (notif_client_stop): Adjust initialization.
2831 (remote_notif_remove_all): Rename it to ...
2832 (remove_stop_reply_for_inferior): ... this. Update comments.
2833 Don't check INF is NULL.
2834 (discard_pending_stop_replies): Return early if notif_state is
2835 NULL. Adjust. Don't check INF is NULL.
2836 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2837 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2838 (remote_wait_ns): Likewise.
2839
5965e028
YQ
28402013-10-04 Yao Qi <yao@codesourcery.com>
2841
2842 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2843 (notif_queue): Remove.
2844 (remote_notif_process): Add one parameter 'notif_queue'.
2845 Update comments. Callers update.
2846 (remote_async_get_pending_events_token): Remove.
2847 (remote_notif_register_async_event_handler): Remove.
2848 (remote_notif_unregister_async_event_handler): Remove.
2849 (handle_notification): Add parameter 'notif_queue'. Update
2850 comments. Callers update.
2851 (notif_xfree): Remove.
2852 (remote_notif_state_allocate): New function.
2853 (remote_notif_state_xfree): New function.
2854 (_initialize_notif): Remove code to allocate queue.
2855 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2856 (struct remote_notif_state): New.
2857 (handle_notification): Update declaration.
2858 (remote_notif_process): Likewise.
2859 (remote_notif_register_async_event_handler): Remove.
2860 (remote_notif_unregister_async_event_handler): Remove.
2861 (remote_notif_state_allocate): Declare.
2862 (remote_notif_state_xfree): Declare.
2863 * remote.c (struct remote_state) <notif_state>: New field.
2864 (remote_close): Don't call
2865 remote_notif_unregister_async_event_handler. Call
2866 remote_notif_state_xfree.
2867 (remote_open_1): Don't call
2868 remote_notif_register_async_event_handler. Call
2869 remote_notif_state_allocate.
2870
5e5ac9a5
YQ
28712013-10-04 Yao Qi <yao@codesourcery.com>
2872
2873 * varobj.c (create_child_with_value): Remove 'const' from the
2874 type of parameter 'name'.
2875 (varobj_add_child): Likewise.
2876 (install_dynamic_child): Remove 'const' from the type of
2877 parameter 'name'.
2878 (varobj_add_child): Likewise.
2879 (create_child_with_value): Likewise. Update comments. Don't
2880 duplicate 'name'.
2881 (update_dynamic_varobj_children): Duplicate 'name'
2882 and pass it to install_dynamic_child.
2883
06ab7b19
PM
28842013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2885
2886 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2887 conversion logic to occur after PyLong_Check. Comment on order
2888 change significance.
2889 * python/py-arch.c (archpy_disassemble): Comment on order of
2890 conversion for integers and longs.
2891
8ae377e8
PA
28922013-10-03 Pedro Alves <palves@redhat.com>
2893
2894 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2895 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2896 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2897 PTRACE_O_TRACEFORK is not supported.
2898 (linux_test_for_tracesysgood): New function.
2899 (linux_test_for_tracefork): New function, factored out from
2900 linux_check_ptrace_features, and also don't kill child_pid here.
2901
b1328b1b
TG
29022013-10-03 Tristan Gingold <gingold@adacore.com>
2903
2904 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2905 Remove verbose error reporting. Use detected state to
2906 thread_set_state call.
2907 (i386_darwin_dr_get): Fix return type. Remove verbose error
2908 report.
2909 Remove trailing spaces.
2910
901461f8
PA
29112013-10-02 Pedro Alves <palves@redhat.com>
2912
2913 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2914 val_print_optimized_out.
2915 * jv-valprint.c (java_print_value_fields): Likewise.
2916 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2917 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2918 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2919 new optimized out value.
2920 * findvar.c (address_from_register): Likewise.
2921 * frame.c (put_frame_register): Tweak error string to say the
2922 register was not saved, rather than optimized out.
2923 * infcmd.c (default_print_one_register_info): Adjust call to
2924 val_print_optimized_out. Use value_of_register instead of
2925 get_frame_register_value.
2926 * mi/mi-main.c (output_register): Use value_of_register instead of
2927 get_frame_register_value.
2928 * valprint.c (valprint_check_validity): Likewise.
2929 (val_print_optimized_out): New value parameter. If the value is
2930 lval_register, print <not saved> instead.
2931 (value_check_printable, val_print_scalar_formatted): Adjust calls
2932 to val_print_optimized_out.
2933 * valprint.h (val_print_optimized_out): New value parameter.
2934 * value.c (struct value) <optimized_out>: Extend comment.
2935 (error_value_optimized_out): New function.
2936 (require_not_optimized_out): Use it. Use a different string for
2937 lval_register values.
2938 * value.h (error_value_optimized_out): New declaration.
2939 * NEWS: Mention <not saved>.
2940
042a84d9
JB
29412013-10-02 Joel Brobecker <brobecker@adacore.com>
2942
2943 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2944 strcmp to compare two symtab filenames.
2945
6b9780fb
JB
29462013-10-02 Joel Brobecker <brobecker@adacore.com>
2947
2948 * symtab.c (search_symbols_equal): Delete.
2949 (sort_search_symbols_remove_dups): Replace call to
2950 search_symbols_equal by call to compare_search_syms,
2951 adjusting as necessary.
2952
751e7549
PM
29532013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2954
2955 PR python/15579
751e7549
PM
2956 * python/python.c: Document gdb.execute command in Python help.
2957
1efd7661
PM
29582013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2959
2960 * python/py-frame.c (frame_info_to_frame_object): Use
2961 gdbpy_convert_exception. Clean up Python object on failure.
2962
562fc849
PM
29632013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2964
2965 * python/lib/gdb/command/frame_filters.py
2966 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2967 (ShowFrameFilterPriority.invoke): Ditto.
2968
d7561cbb
KS
29692013-10-01 Keith Seitz <keiths@redhat.com>
2970
2971 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2972 (parse_linespec): Make 'argptr' const.
2973 Remove temporary cast of 'argptr' to const char **.
2974 (decode_line_full): Pass const pointer to parse_linespec.
2975 (decode_line_1): Likewise.
2976 (decode_objc): Make local variable 'new_argptr' const.
2977 (find_function_symbols): Remove temporary cast to char *
2978 to find_imps.
2979 * objc-lang.c (find_imps): Make argument 'method' const.
2980 Return const.
2981 * objc-lang.h (find_imps): Likewise.
2982
29832013-10-01 Keith Seitz <keiths@redhat.com>
2984
2985 * completer.c (skip_quoted_chars): Make all arguments const.
2986 Return const.
2987 (skip_quoted): Likewise.
2988 * completer.h (skip_quoted_chars): Likewise.
2989 (skip_quoted): Likewise.
2990 * defs.h (skip_quoted): Remove duplicate declaration.
2991 * jv-exp.y: Include completer.h.
2992 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2993 * p-exp.y: Include completer.h.
2994
29952013-10-01 Keith Seitz <keiths@redhat.com>
2996
2997 * c-exp.y (parse_number): Make first argument const.
2998 Make a copy of the input to manipulate.
2999 (c_parse_escape): Make first argument const.
3000 Make local variable 'tokptr' const.
3001 (parse_string_or_char): Make first two arguments const.
3002 (macro_original_text): Make const.
3003 (lex_one_token): Make local variable 'tokstart' const.
3004 Likewise for local variables named 'p'.
3005 Cast away const for struct stoken (temporary).
3006 * c-lang.h (c_parse_escpae): Make first argument const.
3007 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3008 const.
3009 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3010 var_string case.
3011 * f-exp.y (parse_number): Make first argument const.
3012 (match_string_literal): Make local variable 'tokstart'
3013 const.
3014 (yylex): Make local variable 'p' const.
3015 Cast away const for struct stoken (temporary).
3016 * go-exp.y (parse_number): Make first argument const.
3017 (parse_string_or_char): Likewise.
3018 Make local variable 'tokstart' const.
3019 (lex_one_token): Likewise for numerous locals called 'p'.
3020 Cast away const for struct stoken (temporary).
3021 * jv-exp.y (parse_number): Make first argument const.
3022 Make local variables 'tokstart' and 'tokptr' const.
3023 Cast away const for call to skip_quoted (temporary).
3024 (yylex): Make local variable 'p' const.
3025 Cast away const for struct stoken (temporary).
3026 * m2-exp.y (parse_number): Make local variable 'p' const.
3027 (yylex): Likewise for 'tokstart'.
3028 Cast away const for struct stoken (temporary).
3029 Make local variable 'p' const.
3030 * macroexp.c (get_character_constant): Pass a const string
3031 to c_parse_escape.
3032 (get_string_literal): Likewise.
3033 (macro_expand_next): Make first argument const.
3034 Cast away const for init_shared_buffer.
3035 * macroexp.h (macro_expand_next): Make first argument const.
3036 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3037 Pass a const string to c_parse_escape.
3038 Make local variables 'p' and 'namestart' const.
3039 * parse.c (lexptr): Make const.
3040 (prev_lexptr): Likewise.
3041 (find_template_name_end): Return const.
3042 Make argument const, too.
3043 (parse_exp_in_context): Make first argument const.
3044 Remove the entire const_hack.
3045 (parse_exp_in_context_1): Make first argument const.
3046 * parser-defs.h (find_template_name_end): Return const.
3047 Make argument const, too.
3048 (lexptr): Make const.
3049 (prev_lexptr): Likewise.
3050 * utils.c (parse_escape): Make second argument const.
3051 * utils.h (parse_escape): Likewise.
3052
30532013-10-01 Keith Seitz <keiths@redhat.com>
3054
3055 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3056 is now const.
3057 (block_lookup): Make 'raw_name' and 'name' const.
3058 * ada-lex.l (processString): Update for struct stoken.ptr.
3059 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3060 (operator_stoken): Likewise.
3061 (lex_one_token): Remove temporary cast to char * for
3062 'yylval.sval.ptr'.
3063 * f-exp.y (yylex): Likewise.
3064 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3065 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3066 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3067 'yylval.sval.ptr'.
3068 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3069 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3070 * linespec.c (struct ls_parser): Make 'stream' const.
3071 (find_parameter_list_end): Make argument 'input' and local
3072 variable 'p' const.
3073 (linespec_lexer_lex_string): Make local variables 'start' and
3074 'p' const.
3075 Use skip_spaces_const instead of skip_spaces.
3076 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3077 const.
3078 (parse_linespec): Temporarily cast 'argptr' to const for
3079 'parser->lexer.stream'.
3080 * m2-exp.y (yylex): Remove temporary cast to char * for
3081 'yylval.sval.ptr'.
3082 * objc-lang.c (add_msglist): Make local variable 'p' const.
3083 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3084 (exp : STRING): Make 'sp' const.
3085 (parse_number): Make argument 'p' const.
3086 * parser-defs.h (struct stoken): Make 'ptr' const.
3087
193a8eac
DE
30882013-10-01 Doug Evans <dje@google.com>
3089
3090 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3091
2213e2be
YQ
30922013-10-01 Yao Qi <yao@codesourcery.com>
3093
3094 * varobj.c (c_value_of_root): Remove declaration.
3095 (cplus_value_of_root, java_value_of_root): Likewise.
3096 (ada_value_of_root): Likewise.
3097 (struct language_specific) <value_of_root>: Remove.
3098 (languages): Update initialization.
3099 (check_scope): Move earlier.
3100 (c_value_of_root): Move earlier and rename to ...
3101 (value_of_root_1): ... this.
3102 (value_of_root): Caller update.
3103 (cplus_value_of_root, java_value_of_root): Remove.
3104 (ada_value_of_root): Remove.
3105
c573f273
YQ
31062013-10-01 Yao Qi <yao@codesourcery.com>
3107
3108 * varobj.c (varobj_format_string): Remove "unknown".
3109 (languages): Remove the first element.
3110 * varobj.h (enum varobj_languages): Remove vlang_c.
3111
56250258
YQ
31122013-10-01 Yao Qi <yao@codesourcery.com>
3113
3114 * varobj.c (struct language_specific) <language>: Remove.
3115 (languages): Update the initialization.
3116
29f9ebfa
YQ
31172013-10-01 Yao Qi <yao@codesourcery.com>
3118
3119 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3120 "solib-target.h". Include "windows-tdep.h".
3121 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3122 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3123 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3124 windows-tdep.o to gdb_target_obs.
3125
64870a42
YQ
31262013-10-01 Yao Qi <yao@codesourcery.com>
3127
3128 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3129 "solib-target.h".
3130 (amd64_windows_init_abi): Don't call set_solib_ops and
3131 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3132 windows_init_abi instead.
3133 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3134 "solib-target.h".
3135 (i386_cygwin_init_abi): Don't call set_solib_ops,
3136 set_gdbarch_has_dos_based_file_system and
3137 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3138 windows_init_abi instead.
3139 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3140 (windows_init_abi): New function.
3141 (windows_iterate_over_objfiles_in_search_order): Make it
3142 static.
3143 * windows-tdep.h (windows_init_abi): Declare.
3144 (windows_iterate_over_objfiles_in_search_order): Remove
3145 declaration.
3146
0aebdefa
JB
31472013-10-01 Jerome Guitton <guitton@adacore.com>
3148
3149 Checked in by Joel Brobecker <brobecker@adacore.com>
3150 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3151 incomplete dictionnary instead of None in case of missing
3152 environment variables.
3153 (elinos_init): in case of an incomplete environment, best
3154 effort to load system libraries instead of abort.
3155
1c8e84b0
JB
31562013-10-01 Joel Brobecker <brobecker@adacore.com>
3157
3158 * ada-lang.c (ada_has_this_exception_support): Ignore
3159 mst_solib_trampoline minimal symbols.
3160
61d82a0d
TG
31612013-09-30 Tristan Gingold <gingold@adacore.com>
3162
3163 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3164 hardware watchpoint.
3165 (i386_darwin_dr_set): Support 32 and 64 bit states.
3166 (i386_darwin_dr_get): Likewise.
3167 (i386_darwin_dr_set_control): Make static.
3168 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3169 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3170
dfd4cc63
LM
31712013-09-30 Luis Machado <lgustavo@codesourcery.com>
3172
3173 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3174 Replace TIDGET with ptid_get_lwp.
3175 Replace GET_LWP with ptid_get_lwp.
3176 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3177 Replace BUILD_THREAD with ptid_build.
3178 Replace BUILD_LWP with ptid_build.
3179 Replace PIDGET with ptid_get_pid.
3180 Replace TIDGET with ptid_get_lwp.
3181 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3182 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3183 Replace TIDGET with ptid_get_lwp.
3184 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3185 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3186 Replace TIDGET with ptid_get_lwp.
3187 Replace GET_LWP with ptid_get_lwp.
3188 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3189 * auxv.c: Likewise.
3190 * breakpoint.c: Likewise.
3191 * common/ptid.c (ptid_is_pid): Condense check for
3192 null_ptid and minus_one_ptid.
3193 (ptid_lwp_p): New function.
3194 (ptid_tid_p): New function.
3195 * common/ptid.h: Update comments for accessors.
3196 (ptid_lwp_p): New prototype.
3197 (ptid_tid_p): New prototype.
3198 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3199 * gcore.c: Replace PIDGET with ptid_get_pid.
3200 * gdbthread.h: Likewise.
3201 * gnu-nat.c: Likewise.
3202 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3203 Replace TIDGET with ptid_get_lwp.
3204 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3205 * hppanbsd-nat.c: Likewise.
3206 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3207 Replace TIDGET with ptid_get_lwp.
3208 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3209 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3210 * infcmd.c: Likewise.
3211 * inferior.h: Likewise.
3212 * inflow.c: Likewise.
3213 * infrun.c: Likewise.
3214 * linux-fork.c: Likewise.
3215 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3216 Replace GET_PID with ptid_get_pid.
3217 Replace is_lwp with ptid_lwp_p.
3218 Replace GET_LWP with ptid_get_lwp.
3219 Replace BUILD_LWP with ptid_build.
3220
5b4e221c
MF
32212013-09-28 Mike Frysinger <vapier@gentoo.org>
3222
3223 * common/linux-btrace.c: Move sys/syscall.h out of the
3224 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3225 Also check for SYS_perf_event_open before attempting to buid.
3226
57d63ce2
DE
32272013-09-27 Doug Evans <dje@google.com>
3228
19ac8c2e
DE
3229 * dwarf2read.c (dwarf2_section_info): Add comment.
3230 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3231 All uses updated.
3232 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3233 (dwarf2_read_section): Delete unused local "header". Add section
3234 name to error message.
3235 (create_dwo_in_dwp): Tweak comment.
3236 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3237
a32a8923
DE
3238 * dwarf2read.c (die_reader_specs): Tweak comment.
3239 (get_section_bfd_owner, get_section_bfd_section): New functions.
3240 (get_section_name, get_section_file_name): New functions.
3241 (get_section_id, get_section_flags): New functions.
3242 (*): Use new functions to access section fields.
3243
57d63ce2
DE
3244 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3245 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3246 arg "htab". All callers updated.
3247 (create_debug_types_hash_table): Remove redundant copy of
3248 abbrev_section.
3249 (create_dwo_in_dwp): Tweak comments.
3250 (read_str_index): Tweak comment. Record dwarf form name in static
3251 local.
3252
3736004f
PA
32532013-09-27 Pedro Alves <palves@redhat.com>
3254
3255 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3256 (remote_filename_p): Add comment.
3257 * remote.c (remote_filename_p): Adjust to use
3258 REMOTE_SYSROOT_PREFIX.
3259 * solib.c (solib_find): When deciding whether we need to add a
3260 directory separator, check whether the sysroot is "remote:"
3261 instead of checking whether the patch has a drive spec. Add
3262 comments.
3263
5b5596ff
PA
32642013-09-27 Pedro Alves <palves@redhat.com>
3265
3266 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3267 Delete fields.
3268 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3269 directly.
3270
b5eef7aa
JK
32712013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3272
3273 Fix set debug frame output.
3274 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3275 SENTINEL_FRAME entry lower to match enum frame_type order.
3276
5b856f36
PM
32772013-09-26 Pierre Muller <muller@sourceware.org>
3278
3279 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3280 AMD64_R15_REGNUM when a register index is expected.
3281 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3282 Substitute in array.
3283 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3284 (amd64_push_arguments): Substitute in integer_regnum array.
3285
ade7ed9e
DE
32862013-09-25 Doug Evans <dje@google.com>
3287
d3e81981
DE
3288 * objfiles.c (allocate_objfile): Move comment to better place.
3289
8fb8eb5c
DE
3290 New option "set debug symfile on".
3291 * NEWS: Mention "set debug symfile".
3292 * Makefile.in (SFILES): Add symfile-debug.c.
3293 (COMMON_OBS): Add symfile-debug.o.
3294 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3295 objfile's symbol functions.
3296 * objfiles.h (objfile_set_sym_fns): Declare.
3297 * symfile-debug.c: New file.
3298 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3299 objfile's symbol functions.
3300 (reread_symbols): Ditto.
3301
c256e171
DE
3302 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3303 All uses updated.
3304 (add_symtab_fns): Update prototype.
3305 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3306 (registered_sym_fns): ... this.
3307 (symtab_fns): Update.
3308 (add_symtab_fns): New arg "flavour". All callers updated.
3309 (find_sym_fns): Rewrite to use new sym_fns registry.
3310
f56ce883
DE
3311 * symfile.h (struct sym_fns): Add "objfile" argument to
3312 sym_read_linetable. All uses updated.
3313
20c681d1
DE
3314 * symtab.c (domain_name, search_domain_name): New functions.
3315 * symtab.h (domain_name, search_domain_name): Declare.
3316
ade7ed9e
DE
3317 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3318 map_matching_symbols so objfile is first. All uses updated.
3319 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3320 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3321
7d760051
UW
33222013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3323
3324 PR shlibs/8882
3325 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3326 link map entries.
3327
020f7036
DE
33282013-09-24 Doug Evans <dje@google.com>
3329
3330 * objfiles.c (free_objfile): Move comment.
3331
598402f0
JB
33322013-09-24 Joel Brobecker <brobecker@adacore.com>
3333
3334 * ada-exp.y (string_to_operator): Delete.
3335 (dummy_string_to_ada_operator): Delete.
3336
bf4d6c1c
JB
33372013-09-24 Joel Brobecker <brobecker@adacore.com>
3338
3339 Revert:
3340 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3341 amd64-tdep.c.
3342 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3343 call_dummy_integer_regs, and classify.
3344 * amd64-tdep.h (amd64_classify): Add declaration.
3345 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3346 (amd64_reg_class): Delete, moved to i386-tdep.h.
3347 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3348 Replace call to amd64_classify by call to tdep->classify.
3349 (amd64_push_arguments): Get the list of registers to use for
3350 passing integer parameters from the gdbarch tdep structure,
3351 rather than using a hardcoded one. Replace calls to amd64_classify
3352 by calls to tdep->classify.
3353 (amd64_push_dummy_call): Get the register number used for
3354 the "hidden" argument from tdep->call_dummy_integer_regs.
3355 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3356 and tdep->call_dummy_integer_regs. Set tdep->classify.
3357
849e9755
JB
33582013-09-24 Joel Brobecker <brobecker@adacore.com>
3359
3360 Revert:
3361 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3362 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3363 where tdep->memory_args_by_pointer is non-zero.
3364
c1459fd6
JB
33652013-09-24 Joel Brobecker <brobecker@adacore.com>
3366
3367 Revert:
3368 * i386-tdep.h (struct gdbarch_tdep): Add new field
3369 integer_param_regs_saved_in_caller_frame.
3370 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3371 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3372
20c2e3e0
JB
33732013-09-24 Joel Brobecker <brobecker@adacore.com>
3374
874440b8 3375 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3376 (amd64_windows_classify): Delete.
3377 (amd64_windows_passed_by_integer_register)
3378 (amd64_windows_passed_by_xmm_register)
3379 (amd64_windows_passed_by_pointer)
3380 (amd64_windows_adjust_args_passed_by_pointer)
3381 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3382 (amd64_windows_push_dummy_call): New functions.
3383 (amd64_windows_init_abi): Remove setting of
3384 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3385 tdep->classify, tdep->memory_args_by_pointer and
3386 tdep->integer_param_regs_saved_in_caller_frame.
3387 Add call to set_gdbarch_push_dummy_call.
3388
82bf32bc
JK
33892013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3390
3391 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3392 objfile->original_name.
3393
24ba069a
JK
33942013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Pass down original filename for objfile.
3397 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3398 * elfread.c (elf_symfile_read): Likewise.
3399 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3400 longer set ORIGINAL_NAME.
3401 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3402 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3403 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3404 symbol_file_add_from_bfd call.
3405 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3406 (macho_check_dsym): Add parameter filenamep. Change function comment.
3407 Set *filenamep.
3408 (macho_symfile_read): New variable dsym_filename. Update
3409 macho_check_dsym call. Use it for symbol_file_add_separate.
3410 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3411 it. Use it for objfile->original_name.
3412 (objfile_name): Return OBFD's filename, if available.
3413 * objfiles.h (allocate_objfile): Add new parameter name.
3414 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3415 * symfile-mem.c (symbol_file_add_from_memory): Update
3416 symbol_file_add_from_bfd call.
3417 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3418 comment for it.
3419 (symbol_file_add_with_addrs): New parameter name, add function comment
3420 for it. Remove variable name. Update allocate_objfile call.
3421 (symbol_file_add_separate): New parameter name, add function comment
3422 for it. Update symbol_file_add_with_addrs call.
3423 (symbol_file_add_from_bfd): New parameter name. Update
3424 symbol_file_add_with_addrs call.
3425 (symbol_file_add): Update symbol_file_add_from_bfd call.
3426 (reread_symbols): New variable original_name. Save
3427 objfile->original_name by it.
3428 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3429 second parameter.
3430
4262abfb
JK
34312013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3432
3433 Code cleanup: Add objfile_name accessor function.
3434 * ada-lang.c (is_known_support_routine): Use objfile_name.
3435 * auto-load.c (source_gdb_script_for_objfile)
3436 (auto_load_objfile_script): Likewise.
3437 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3438 * dbxread.c (dbx_symfile_read): Likewise.
3439 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3440 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3441 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3442 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3443 (lookup_dwp_signatured_type, lookup_dwo_unit)
3444 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3445 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3446 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3447 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3448 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3449 (read_subrange_type, load_partial_dies, read_partial_die)
3450 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3451 (die_containing_type, build_error_marker_type, lookup_die_type)
3452 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3453 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3454 (get_DW_AT_signature_type, write_psymtabs_to_index)
3455 (save_gdb_index_command): Likewise.
3456 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3457 Likewise.
3458 * expprint.c (dump_subexp_body_standard): Likewise.
3459 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3460 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3461 original_name.
3462 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3463 obj_name, use objfile_name for it, use the variable.
3464 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3465 Use objfile_name.
3466 * machoread.c (macho_symtab_read, macho_check_dsym)
3467 (macho_symfile_relocate): Likewise.
3468 * maint.c (maintenance_translate_address): Likewise.
3469 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3470 * minsyms.c (install_minimal_symbols): Likewise.
3471 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3472 original_name.
3473 (filter_overlapping_sections): Use objfile_name.
3474 (objfile_name): New function.
3475 * objfiles.h (struct objfile): Rename field name to original_name.
3476 (objfile_name): New prototype.
3477 * printcmd.c (sym_info, address_info): Use objfile_name.
3478 * probe.c (parse_probes, collect_probes, compare_probes)
3479 (info_probes_for_ops): Likewise.
3480 * progspace.c (clone_program_space): Likewise.
3481 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3482 (maintenance_info_psymtabs): Likewise.
3483 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3484 (source_section_scripts): Likewise.
3485 * python/py-objfile.c (objfpy_get_filename): Likewise.
3486 * python/py-progspace.c (pspy_get_filename): Likewise.
3487 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3488 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3489 * solib.c (solib_read_symbols): Likewise.
3490 * stabsread.c (scan_file_globals): Likewise.
3491 * stap-probe.c (handle_stap_probe): Likewise.
3492 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3493 (find_separate_debug_file_by_debuglink): Likewise.
3494 (reread_symbols): Likewise. Use the objfile field name renamed to
3495 original_name.
3496 (allocate_symtab): Use objfile_name.
3497 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3498 (dump_objfile, dump_msymbols, dump_symtab_1)
3499 (maintenance_print_msymbols, maintenance_print_objfiles)
3500 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3501 * target.c (target_translate_tls_address, target_info): Likewise.
3502 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3503 objfile_name.
3504
4721dc18
JK
35052013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 Code cleanup.
3508 * probe.c (parse_probes): Rename variable objfile_name to
3509 objfile_namestr.
3510
a61d6db8
JK
35112013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 Remove solib-sunos.c.
3514 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3515 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3516 * objfiles.c (rt_common_objfile): Remove.
3517 (free_objfile): Remove rt_common_objfile comparison.
3518 * objfiles.h (rt_common_objfile): Remove.
3519 * solib-sunos.c: Remove.
3520 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3521
2659903b
JK
35222013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 Remove a.out NetBSD and OpenBSD hosts.
3525 * NEWS (Removed native configurations): New.
3526 * config/arm/nbsdaout.mh: Remove.
3527 * config/i386/nbsdaout.mh: Remove.
3528 * config/i386/obsdaout.mh: Remove.
3529 * config/m68k/nbsdaout.mh: Remove.
3530 * config/sparc/nbsdaout.mh: Remove.
3531 * config/vax/nbsdaout.mh: Remove.
3532 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3533 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3534 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3535 error.
3536 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3537 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3538 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3539
f60e2d5c
TT
35402013-09-23 Tom Tromey <tromey@redhat.com>
3541
3542 * linespec.c (struct minsym_and_objfile): Remove.
3543 (minsym_and_objfile_d): Remove.
3544 (struct linespec, struct collect_info, linespec_parse_basic)
3545 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3546 (compare_msymbols, find_method, find_function_symbols)
3547 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3548 (add_minsym, search_minsyms_for_name): Update.
3549
d3eaaf66
AB
35502013-09-23 Andrew Burgess <aburgess@broadcom.com>
3551
3552 * regcache.c: Add include of valprint.h.
3553 (dump_endian_bytes): Delete.
3554 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3555
2cc762b5
AB
35562013-09-23 Andrew Burgess <aburgess@broadcom.com>
3557
3558 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3559
96181529
PA
35602013-09-19 Pedro Alves <palves@redhat.com>
3561
3562 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3563 breakpoints.
3564
9b3f3ee6
TS
35652013-09-19 Pedro Alves <palves@redhat.com>
3566 Thomas Schwinge <thomas@codesourcery.com>
3567 Yue Lu <hacklu.newborn@gmail.com>
3568
3569 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3570 Take a gdb_byte pointer instead of a char pointer.
3571
3572 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3573 gnu_xfer_partial helper.
3574 (gnu_xfer_partial): New function.
3575 (gnu_target): Don't install a deprecated_xfer_memory hook.
3576 Install a to_xfer_partial hook.
3577
69150c3d
JK
35782013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3579
3580 Constification.
3581 * main.c (captured_main): Replace catch_command_errors by
3582 catch_command_errors_const. Twice.
3583 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3584 (symbol_file_add): Make name parameter const.
3585 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3586 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3587 variable name. Change their usage accordingly.
3588 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3589 const.
3590 (symbol_file_add_main): Make args parameter const.
3591
086850b2
UW
35922013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3593 Ulrich Weigand <uweigand@de.ibm.com>
3594
3595 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3596 of c_value member.
3597 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3598
ca08a94c 35992013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3600 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3601
3602 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3603 (gnu_create_inferior)
3604 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3605 (set_sig_thread_cmd): Use the lwpid field of ptids to
3606 store/extract thread ids instead of the tid field.
3607 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3608
e4c6a2c4
AB
36092013-09-18 Andrew Burgess <aburgess@broadcom.com>
3610
3611 * infcmd.c (default_print_one_register_info): Add detection of
3612 optimized out values.
3613 (default_print_registers_info): Switch to using
3614 get_frame_register_value.
3615
58c48e72
MM
36162013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3617
3618 * infrun.c (handle_inferior_event): Check if we know the
3619 function start address before setting a resume breakpoint.
3620
c8d37639
PA
36212013-09-18 Pedro Alves <palves@redhat.com>
3622
3623 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3624 minus_one_ptid instead of looking at the ptid's tid field and
3625 comparing that to -1.
3626
71926e28
AB
36272013-09-18 Andrew Burgess <aburgess@broadcom.com>
3628
3629 * main.h (get_gdb_program_name): Remove extra whitespace.
3630
c88a1531
AB
36312013-09-18 Andrew Burgess <aburgess@broadcom.com>
3632
3633 * main.h (get_gdb_program_name): Add declaration.
3634 * main.c (get_gdb_program_name): Add definition.
3635
4390d890
DE
36362013-09-17 Doug Evans <dje@google.com>
3637
3638 * dwarf2read.c: Move definitions of complaint functions to after
3639 forward declarations of local functions.
3640
49fa26b0
PA
36412013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3642 Pedro Alves <palves@redhat.com>
3643
3644 PR gdb/11568
3645 * breakpoint.c (remove_threaded_breakpoints): New function.
3646 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3647 as thread_exit observer.
3648
08d72866
PA
36492013-09-17 Pedro Alves <palves@redhat.com>
3650
3651 PR gdb/15911
3652 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3653 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3654 * corelow.c (core_open):
3655 * frame.h (print_stack_frame, print_frame_info): New
3656 'set_current_sal' parameter.
3657 * infcmd.c (finish_command, kill_command): Adjust call to
3658 print_stack_frame.
3659 * inferior.c (inferior_command): Likewise.
3660 * infrun.c (normal_stop): Likewise.
3661 * linux-fork.c (linux_fork_context): Likewise.
3662 * record-full.c (record_full_goto_entry, record_full_restore):
3663 Likewise.
3664 * remote-mips.c (common_open): Likewise.
3665 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3666 Use it.
3667 (print_frame_info): New 'set_current_sal' parameter. Set the last
3668 displayed sal depending on the new paremeter instead of looking at
3669 print_what.
3670 (backtrace_command_1, select_and_print_frame, frame_command)
3671 (current_frame_command, up_command, down_command): Adjust call to
3672 print_stack_frame.
3673 * thread.c (print_thread_info, restore_selected_frame)
3674 (do_captured_thread_select): Adjust call to print_stack_frame.
3675 * tracepoint.c (tfind_1): Likewise.
3676 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3677 (mi_cmd_stack_info_frame): Likewise.
3678 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3679 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3680
6bc305f5
SDJ
36812013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3682
3683 * value.c (isvoid_internal_fn): Replace "parameter" with
3684 "argument".
3685
0a7cfe2c
SS
36862013-09-16 Stan Shebs <stan@codesourcery.com>
3687
3688 * README: Update references to writing code for GDB.
3689 * configure.ac (build_warnings): Remove obsolete comment.
3690 * configure: Regenerate.
3691 * gdbarch.sh: Remove references to gdbint.texinfo.
3692 * gdbarch.h: Regenerate.
3693 * gdbtypes.c (objfile_type): Remove comments referencing internals
3694 manual and D10V.
3695
a280dbd1
SDJ
36962013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3697
3698 * NEWS: Mention new convenience function $_isvoid.
3699 * value.c (isvoid_internal_fn): New function.
3700 (_initialize_values): Add new convenience function $_isvoid.
3701
04a83fee
PM
37022013-09-16 Pierre Muller <muller@sourceware.org>
3703
3704 * arm-linux-tdep.c: Add "elf/common.h" header.
3705 Remove AT_HWCAP macro definintion as it is provided in
3706 added include file.
3707 * s390-tdep.c: Remove system header <elf.h>
3708 Add "elf/common.h" header for AT_HWCAP definition.
3709 (s390_core_read_description): Use correct CORE_ADDR
3710 for hwcap local variable used as third parameter
3711 of function target_auxv_search.
3712
88505fac
PM
37132013-09-14 Pierre Muller <muller@sourceware.org>
3714 Tom Tromey <tromey@redhat.com>
3715 Pedro Alves <palves@redhat.com>
3716
3717 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3718 mode if operating system doesn't know O_CLOEXEC.
3719
d3846e71
JK
37202013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 Code cleanup.
3723 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3724 inner block.
3725
4ac33720
UW
37262013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3727
3728 * NEWS: Mention TDB support.
3729 * features/s390-tdb.xml: New file.
3730 * features/s390-te-linux64.xml: New file.
3731 * features/s390x-te-linux64.xml: New file.
3732 * features/Makefile (WHICH): Add new tdescs above.
3733 (s390-te-linux64-expedite): Set.
3734 (s390x-te-linux64-expedite): Set.
3735 * features/s390-te-linux64.c: New file (generated).
3736 * features/s390x-te-linux64.c: New file (generated).
3737 * regformats/s390-te-linux64.dat: New file (generated).
3738 * regformats/s390x-te-linux64.dat: New file (generated).
3739 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3740 (HWCAP_S390_TE): Likewise.
3741 (S390_TDB_DWORD0_REGNUM): Likewise.
3742 (S390_TDB_DWORD0_REGNUM): Likewise.
3743 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3744 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3745 (S390_TDB_ATIA_REGNUM): Likewise.
3746 (S390_TDB_R0_REGNUM): Likewise.
3747 (S390_TDB_R1_REGNUM): Likewise.
3748 (S390_TDB_R2_REGNUM): Likewise.
3749 (S390_TDB_R3_REGNUM): Likewise.
3750 (S390_TDB_R4_REGNUM): Likewise.
3751 (S390_TDB_R5_REGNUM): Likewise.
3752 (S390_TDB_R6_REGNUM): Likewise.
3753 (S390_TDB_R7_REGNUM): Likewise.
3754 (S390_TDB_R8_REGNUM): Likewise.
3755 (S390_TDB_R9_REGNUM): Likewise.
3756 (S390_TDB_R10_REGNUM): Likewise.
3757 (S390_TDB_R11_REGNUM): Likewise.
3758 (S390_TDB_R12_REGNUM): Likewise.
3759 (S390_TDB_R13_REGNUM): Likewise.
3760 (S390_TDB_R14_REGNUM): Likewise.
3761 (S390_TDB_R15_REGNUM): Likewise.
3762 (S390_NUM_REGS): Increase.
3763 (S390_IS_TDBREGSET_REGNUM): New macro.
3764 (s390_regmap_tdb): Declare.
3765 (s390_sizeof_tdbregset): Define.
3766 (tdesc_s390_te_linux64): Declare.
3767 (tdesc_s390x_te_linux64): Likewise.
3768 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3769 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3770 (s390_regmap_tdb): New regmap.
3771 (s390_supply_tdb_regset): New function.
3772 (s390_tdb_regset): New regset.
3773 (s390_linux64v2_regset_sections): Add TDB regset to list.
3774 (s390x_linux64v2_regset_sections): Likewise.
3775 (s390_regset_from_core_section): Recognize TDB core note section.
3776 (s390_core_read_description): If HWCAP indicates TE support,
3777 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3778 (s390_gdbarch_init): Handle TDB regset.
3779 (_initialize_s390_tdep): Initialize new tdescs.
3780 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3781 (have_regset_tdb): New variable.
3782 (s390_native_supply): Support register invalidation.
3783 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3784 (check_regset): Treat ENODATA as "regset exists".
3785 (s390_linux_fetch_inferior_registers): Add TDB.
3786 (s390_read_description): Check for TDB existence and select
3787 appropriate tdesc.
3788 * gdbserver/Makefile.in (clean): Add removal of new makefile
3789 targets.
3790 (s390-te-linux64.c): New makefile target.
3791 (s390x-te-linux64.c): Likewise.
3792 * gdbserver/configure.srv (srv_regobj): Append new objects
3793 s390-te-linux64.o and s390x-te-linux64.o.
3794 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3795 s390x-te-linux64.xml, and s390-tdb.xml.
3796 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3797 declaration.
3798 (tdesc_s390_te_linux64): Likewise.
3799 (init_registers_s390x_te_linux64): Likewise.
3800 (tdesc_s390x_te_linux64): Likewise.
3801 (s390_check_regset): Treat ENODATA as "regset exists".
3802 (s390_arch_setup): Add TDB regset support.
3803 (initialize_low_arch): Initialize registers for new tdescs.
3804
2ccd1468
UW
38052013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3806
3807 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3808 (S390_IS_FPREGSET_REGNUM): New macro.
3809 * s390-tdep.c (s390_dwarf_regmap): Make const.
3810 (regnum_is_gpr_full): New function for replacing repeated code.
3811 (s390_pseudo_register_name): Use it.
3812 (s390_pseudo_register_type): Likewise.
3813 (s390_pseudo_register_read): Likewise.
3814 (s390_pseudo_register_write): Likewise.
3815 (s390_unwind_pseudo_register): Likewise.
3816 (s390_regmap_gregset): New format for regmap.
3817 (s390x_regmap_gregset): Likewise.
3818 (s390_regmap_fpregset): Likewise.
3819 (s390_regmap_upper): Likewise.
3820 (s390_regmap_last_break): Likewise.
3821 (s390_regmap_system_call): Likewise.
3822 (s390_supply_regset): Adjust to new regmap format.
3823 (s390_collect_regset): Likewise.
3824 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3825 (s390_native_collect): Likewise.
3826 (supply_gregset): Likewise.
3827 (fill_gregset): Likewise.
3828 (supply_fpregset): Likewise.
3829 (fill_fpregset): Likewise.
3830 (fetch_regset): Likewise.
3831 (store_regset): Likewise.
3832 (s390_linux_fetch_inferior_registers): Likewise.
3833 (s390_linux_fetch_inferior_registers): Likewise.
3834
1aa4cd77
AP
38352013-09-12 Andrew Pinski <apinski@cavium.com>
3836
3837 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3838
d91fab15
UW
38392013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3840
3841 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3842
5a5d8ead
AB
38432013-09-09 Andrew Burgess <aburgess@broadcom.com>
3844
3845 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3846
1385f66c
PA
38472013-09-06 Pedro Alves <palves@redhat.com>
3848
3849 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3850 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3851 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3852 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3853 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3854 gdb_stdlog.
3855
146ec4db
PA
38562013-09-06 Pedro Alves <palves@redhat.com>
3857
3858 * remote-sim.c (dump_mem): Constify buf parameter.
3859 gdbsim_xfer_inferior_memory): Rename to ...
3860 (gdbsim_xfer_memory): ... this. Adjust interface as
3861 target_xfer_partial helper.
3862 (gdbsim_xfer_partial): New function.
3863 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3864 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3865
fcde0081
PA
38662013-09-06 Pedro Alves <palves@redhat.com>
3867
3868 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3869 host_address_to_string, and send debug output to gdb_stdlog.
3870
749c8b38
RW
38712013-09-06 Ricard Wanderlof <ricardw@axis.com>
3872
3873 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3874 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3875 gdb_target_obs for cris target.
3876 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3877 (cris_gdbarch_init): Move calls to
3878 set_gdbarch_fetch_tls_load_module_address and
3879 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3880 Add call to gdbarch_init_osabi.
3881 * cris-linux-tdep.c: New file.
3882 * cris-tdep.h: New file.
3883
43df09d9
AB
38842013-09-06 Andrew Burgess <aburgess@broadcom.com>
3885
3886 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3887 to deprecated_init_ui_hook.
3888
4d09c5b4
AB
38892013-09-06 Andrew Burgess <aburgess@broadcom.com>
3890
3891 * cli/cli-interp.c (_initialize_cli_interp): Add a
3892 command_loop_proc to interp_procs.
3893 * event-top.c (cli_command_loop): Change signature to match
3894 interp_command_loop_ftype.
3895 * event-top.h (cli_command_loop): Same.
3896 * interps.c (interp_new): Require every interpreter to have a
3897 command_loop_proc.
3898 (current_interp_command_loop): Just call the command_loop_proc on
3899 the current interpreter.
3900 * tui/tui-interp.c (_initialize_tui_interp): Add a
3901 command_loop_proc to interp_procs.
3902
8eb3d7b6
RW
39032013-09-06 Ricard Wanderlof <ricardw@axis.com>
3904
3905 * cris-tdep.c (cris_gdbarch_init): Add call to
3906 get_gdbarch_fetch_tls_load_module_address.
3907
18b3c2f5
RW
39082013-09-06 Ricard Wanderlof <ricardw@axis.com>
3909
3910 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3911 (cris_elf_gregset_t): Rename from elf_gregset_t.
3912 (crisv32_elf_gregset_t): Adjust.
3913 (cris_supply_gregset, fetch_core_registers): Adjust.
3914
dc8636ef
RW
39152013-09-06 Ricard Wanderlof <ricardw@axis.com>
3916
3917 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3918
257e6d53
AB
39192013-09-05 Andrew Burgess <aburgess@broadcom.com>
3920
1581d8a7 3921 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3922 references in comments.
1581d8a7 3923 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3924 deprecated_command_loop_hook.
3925 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3926 setup.
1581d8a7 3927 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3928
7c33b57c
PA
39292013-09-05 Pedro Alves <palves@redhat.com>
3930
3931 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3932 local is now int instead of ULONGEST. Print it with %d
3933 instead of paddress.
3934
9f8edbd5
TG
39352013-09-05 Tristan Gingold <gingold@adacore.com>
3936
3937 * MAINTAINERS: Remove avr maintainership.
3938
d5b495b4
PA
39392013-09-05 Pedro Alves <palves@redhat.com>
3940
3941 * findvar.c (value_of_register): Rework in terms of
3942 value_of_register_lazy.
3943
40b91786
MB
39442013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3945
3946 * symfile.c (add_symbol_file_command): Remove trailing
3947 whitespaces and blank line after comment.
3948
6eed1678
PA
39492013-09-05 Pedro Alves <palves@redhat.com>
3950
3951 * tui/tui-regs.c (tui_register_format): Don't look at the
3952 register's name here. Return string representing register
3953 value instead of storing it in the data element.
3954 (tui_get_register): Compare register string representations
3955 instead of register value states and contents.
3956
8eb6bda2
PA
39572013-09-05 Pedro Alves <palves@redhat.com>
3958
3959 PR tui/15933
3960 * tui/tui-regs.c (tui_show_registers): Show registers of the
3961 selected frame, not the current frame.
3962
48b1f08c
RW
39632013-09-05 Ricard Wanderlof <ricardw@axis.com>
3964
3965 * MAINTAINERS (Write After Approval): Add myself to the list.
3966
89e63ee4
DE
39672013-09-04 Doug Evans <dje@google.com>
3968
3969 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3970 (queue_and_load_dwo_tu): New function.
3971 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3972 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3973 Make dependent_cu optional.
3974 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3975 and an older .gdb_index is in use, queue and load all its TUs too.
3976
492c0ab7
JK
39772013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3978
3979 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3980 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3981 variable search_flags.
3982 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3983 (OPF_RETURN_REALPATH): ... here.
3984 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3985 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3986 call. Twice.
3987 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3988 openp call.
3989 * solib.c (solib_find): Likewise. Four times.
3990 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3991 in the function comment and for the realpath_fptr variable.
3992 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3993 (find_and_open_source): Likewise. Twice.
3994 * symfile.c (symfile_bfd_open): Likewise, also twice.
3995
23a44de8
DE
39962013-09-04 Doug Evans <dje@google.com>
3997
3998 * progspace.c (save_current_space_and_thread): Remove unnecessary
3999 call to save_current_inferior.
4000
47061676
AB
40012013-09-04 Andrew Burgess <aburgess@broadcom.com>
4002
4003 * sh64-tdep.c (sh64_do_register): Return after printing message
4004 about unavailable register contents.
4005
41dc8db8
MB
40062013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4007 Pedro Alves <palves@redhat.com>
4008
4009 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
4010 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4011 options and collapse into single conditional branch.
41dc8db8 4012
07107ca6
LM
40132013-09-03 Luis Machado <lgustavo@codesourcery.com>
4014
a7ea61cf 4015 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
4016 detach_fork.
4017 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4018 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4019 * inferior.h (detach_fork): Remove.
4020 * infrun.c (detach_fork): Adjust comment and make it
4021 static.
4022 (follow_fork): Pass detach_fork parameter to
4023 target_follow_fork.
4024 * linux-nat.c (linux_child_follow_fork): New parameter
4025 detach_fork.
4026 * target.c (target_follow_fork): New parameter detach_fork.
4027 Pass detach_fork as parameter and print its value.
4028 * target.h (struct target_ops) <to_follow_fork>: New int
4029 parameter.
4030 (target_follow_fork): New parameter detach_fork.
4031
3bec2768
JB
40322013-09-03 Joel Brobecker <brobecker@adacore.com>
4033
4034 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4035 Replace sec->bfd by sec->the_bfd_section->owner.
4036
c01cbb3d
YQ
40372013-09-03 Yao Qi <yao@codesourcery.com>
4038
4039 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4040 from linux_has_shared_address_space.
4041 (linux_has_shared_address_space): Call linux_is_uclinux.
4042 * linux-tdep.h (linux_is_uclinux): Declare.
4043 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4044 linux_is_uclinux.
4045
7b00db47
YQ
40462013-09-03 Yao Qi <yao@codesourcery.com>
4047
4048 * config/djgpp/fnchange.lst: Remove entry of
4049 i386-interix-nat.c and i386-interix-tdep.c.
4050 * configure.ac: Remove '*-*-interix*'.
4051 * configure: Re-generated.
4052 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4053 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4054 obsolete comments.
4055 * osabi.c (gdb_osabi_names): Remove "Interix".
4056
0f9741f2
YQ
40572013-09-03 Yao Qi <yao@codesourcery.com>
4058
4059 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4060
1e038f67
MM
40612013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4062
4063 * record.h (record_print_flag) <record_print_src_line,
4064 record_print_insn_range>: Rename into ...
4065 (record_print_flag) <record_print_src_line,
4066 record_print_insn_range>: ... this. Update all users.
4067
9e52adf9
PM
40682013-09-02 Pierre Muller <muller@sourceware.org>
4069
4070 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4071 error code.
4072
a2388568
PM
40732013-09-02 Pierre Muller <muller@sourceware.org>
4074
4075 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4076 by use of plongest function.
4077
9058cc3a
TG
40782013-09-02 Tristan Gingold <gingold@adacore.com>
4079
4080 * NEWS: Add entry mentioning support for native Windows x64
4081 SEH data.
4082
4083 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4084 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4085 (struct amd64_windows_frame_cache): New struct.
4086 (amd64_windows_w2gdb_regnum): New global.
4087 (pc_in_range, amd64_windows_frame_decode_epilogue)
4088 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4089 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4090 (amd64_windows_frame_this_id): New functions.
4091 (amd64_windows_frame_unwind): New static global.
4092 (amd64_windows_skip_prologue): New function.
4093 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4094 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4095 with amd64_windows_skip_prologue.
4096
3161820b 40972013-08-30 Joel Brobecker <brobecker@adacore.com>
4098
4099 GDB 7.6.1 released.
4100
02457c76
PA
41012013-08-30 Pedro Alves <palves@redhat.com>
4102
4103 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4104 SRC_AND_LOC.
4105
e0162910
PA
41062013-08-30 Pedro Alves <palves@redhat.com>
4107
4108 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4109 warning text.
4110
6391ce51
PA
41112013-08-30 Pedro Alves <palves@redhat.com>
4112
4113 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4114 Adjust arguments to print_stack_frame.
4115
d1da0587
PA
41162013-08-30 Pedro Alves <palves@redhat.com>
4117
4118 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4119
adfd8245
PA
41202013-08-30 Pedro Alves <palves@redhat.com>
4121
4122 * frame.h (show_and_print_stack_frame): Delete declaration.
4123
96d9056e
PM
41242013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4125
4126 PR python/15461
96d9056e
PM
4127 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4128 (archpy_name): Check for valid architecture.
4129 (archpy_disassemble): Ditto.
4130
11cb8762
JB
41312013-08-29 Joel Brobecker <brobecker@adacore.com>
4132
4133 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4134 instead of "long long" in call to ptrace64.
4135
1af12a7d
AB
41362013-08-29 Andrew Burgess <aburgess@broadcom.com>
4137
4138 * mi/mi-interp.c (mi_command_loop): Change signature to match
4139 interp_command_loop_ftype.
4140 (mi1_command_loop): Remove.
4141 (mi2_command_loop): Remove.
4142 (mi3_command_loop): Remove.
4143 (mi_interpreter_resume): Remove setting of
4144 deprecated_command_loop_hook.
4145 (_initialize_mi_interp): Set mi_command_loop as the command loop
4146 callback.
4147
acc900c2
SA
41482013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4149
4150 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4151 value_type.
4152
548b762d
SA
41532013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4154
4155 * value.c (allocate_value_contents): Make static.
4156 * value.h (allocate_value_contents): Remove prototype.
4157
08039c9e
SA
41582013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4159
4160 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4161 of assembling value via allocate_value_lazy and attribute setter.
4162 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4163 assembling value via allocate_value_lazy and attribute setter.
4164 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4165 assembling value via allocate_value_lazy and attribute setter.
4166
314c7de9
SA
41672013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4168
4169 * value.c (value_from_contents_and_address): Replace allocate_value and
4170 memcpy with value_from_contents.
4171
8f28f522
PM
41722013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4173
4174 * python/py-framefilter.c (py_print_frame): Remove usage of
4175 PyString_AsString. Use python_string_to_host_string instead.
4176 Refactor function to work with a string as a new allocation
4177 instead of a pointer.
4178 (py_print_frame): Ditto.
4179 * python/lib/gdb/frames.py (return_list): Cain iterators together
4180 instead of adding them as a list.
4181 (_sort_list): Call return_list, and remove duplicate code.
4182 (execute_frame_filters): Convert iterator to a list with list().
4183 * python/lib/gdb/command/frame_filters.py
4184 (SetFrameFilterPriority._set_filter_priority): Convert priority
4185 attribute to an integer.
4186 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4187 wrapper function __next__.
4188 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4189 define as "str".
4190
8ee002df
PM
41912013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4192
4193 PR python/15752
8ee002df
PM
4194 * python/py-framefilter.c (apply_frame_filter): Check
4195 gdb_python_initialized. Exit if the Python frame-filter code
4196 cannot be initialized.
4197
af4c453a
PM
41982013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4199
4200 PR cli/15842
af4c453a
PM
4201 * top.c (print_gdb_version): Remove erroneous newline after help
4202 text.
4203
bf8793bb
YQ
42042013-08-29 Yao Qi <yao@codesourcery.com>
4205
4206 * varobj.c (install_dynamic_child): Remove trailing space.
4207 Add one blank line after variable declaration.
4208
1f0c4988
JK
42092013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4210
4211 PR gdb/15415
4212 * corefile.c (get_exec_file): Use exec_filename.
4213 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4214 * exec.c (exec_close): Free EXEC_FILENAME.
4215 (exec_file_attach): New variable canonical_pathname. Use
4216 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4217 EXEC_FILENAME.
4218 * exec.h (exec_filename): New.
4219 * inferior.c (print_inferior, inferior_command): Use
4220 PSPACE_EXEC_FILENAME.
4221 * mi/mi-main.c (print_one_inferior): Likewise.
4222 * progspace.c (clone_program_space, print_program_space): Likewise.
4223 * progspace.h (struct program_space): New field pspace_exec_filename.
4224 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4225 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4226
59ee9f94
WN
42272013-08-28 Will Newton <will.newton@linaro.org>
4228
4229 * common/linux-ptrace.c: Include stdint.h unconditionally.
4230
c8a2a419
JK
42312013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 Code cleanup.
4234 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4235
ffa4ac95
YQ
42362013-08-28 Yao Qi <yao@codesourcery.com>
4237 Pedro Alves <palves@redhat.com>
4238
4239 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4240 instead of stdio_fileopen.
4241 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4242 .Call stderr_fileopen instead of stdio_fileopen.
4243 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4244 [__MINGW32__] (stderr_file_fputs): New function.
4245 (stderr_fileopen): New function.
4246 * ui-file.h (stderr_fileopen): Declare.
4247
69d751e3
DE
42482013-08-27 Doug Evans <dje@google.com>
4249
4250 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4251 (struct dwarf2_per_cu_data): Ditto.
4252 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4253 (process_imported_unit_die): Ditto.
4254 (follow_die_sig_1): Simplify assert.
4255
44f38867
PA
42562013-08-27 Pedro Alves <palves@redhat.com>
4257
4258 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4259 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4260 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4261 windows_xfer_memory directly.
4262 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4263
d28d46b5
PA
42642013-08-27 Pedro Alves <palves@redhat.com>
4265
4266 * darwin-nat.c (darwin_xfer_memory): Delete.
4267 (_initialize_darwin_inferior): Don't install a
4268 deprecated_xfer_memory method.
4269
6211c335
YQ
42702013-08-27 Pedro Alves <pedro@codesourcery.com>
4271 Yao Qi <yao@codesourcery.com>
4272
4273 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4274 (parse_no_frames_option): Remove.
4275 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4276 (mi_cmd_stack_list_args): Adjust.
4277 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4278 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4279 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4280 Caller update.
4281 (list_args_or_locals): New parameter 'skip_unavailable'.
4282 Handle it.
4283 * valprint.c (scalar_type_p): Rename to ...
4284 (val_print_scalar_type_p): ... this. Make extern.
4285 (val_print, value_check_printable): Adjust.
4286 * valprint.h (val_print_scalar_type_p): Declare.
4287 * value.c (value_entirely_unavailable): New function.
4288 * value.h (value_entirely_unavailable): Declare.
4289
4290 * NEWS: Mention the new option "--skip-unavailable" to MI
4291 commands '-stack-list-locals', '-stack-list-arguments' and
4292 '-stack-list-variables'.
4293
242f1fd7
YQ
42942013-08-27 Yao Qi <yao@codesourcery.com>
4295
4296 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4297 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4298 options.
4299 * mi/mi-getopt.c (mi_getopt): Remove.
4300 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4301 'error_on_unknown'.
4302 (mi_getopt): Call mi_getopt_1.
4303 (mi_getopt_silent): New.
4304 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4305
260b681b
DE
43062013-08-26 Doug Evans <dje@google.com>
4307
779bd270
DE
4308 PR symtab/15885
4309 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4310 .gdb_index is in use.
4311 * symfile.c (reread_symbols): Reset objfile->sf.
4312
52e260a3
DE
4313 * NEWS: Document "mt print objfiles" now takes optional regexp.
4314 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4315 regexp of objfiles to print.
4316 (_initialize_symmisc): Update doc string for "mt print objfiles".
4317
260b681b
DE
4318 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4319 missing debug info checks.
4320
a85c52f2
UW
43212013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4322 Ulrich Weigand <uweigand@de.ibm.com>
4323
4324 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4325 line tables generated by XLC compiled binaries.
4326
4f00dda3
DE
43272013-08-23 Doug Evans <dje@google.com>
4328
db68bbae
DE
4329 * symmisc.c (dump_symtab): Delete prototype.
4330 (dump_msymbols, dump_objfile): Ditto.
4331 (maintenance_info_symtabs): Mark as dont_repeat.
4332 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4333
4f00dda3
DE
4334 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4335 debugging printf to better location.
4336
23d577b0
PA
43372013-08-23 Pedro Alves <palves@redhat.com>
4338
4339 * target.c (target_read_live_memory): Change type of 'ret' local
4340 to LONGEST.
4341
00d84524
PA
43422013-08-23 Pedro Alves <palves@redhat.com>
4343
4344 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4345 (remote_read_bytes): Change return type to LONGEST, and adjust to
4346 return a target_xfer_error on error.
4347 (remote_xfer_memory): Delete.
4348 (remote_flash_write): Change type of 'ret' local to LONGEST.
4349 (remote_xfer_partial, remote_xfer_partial): Adjust.
4350 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4351
1ed3ee94
PM
43522013-08-23 Pierre Muller <muller@sourceware.org>
4353
4354 ARI fix: Push # directives to start of line.
4355 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4356
9eaabc75
MW
43572013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4358
4359 PR gdb/15501
4360 * breakpoint.c (enable_command, disable_command): Iterate over
4361 all specified breakpoint locations.
4362
101158d9
LM
43632013-08-22 Luis Machado <lgustavo@codesourcery.com>
4364
4365 * common/linux-ptrace.c (linux_fork_to_function): Push #
4366 directives to the start of the line.
4367 (linux_check_ptrace_features): Fix warning message to use
4368 the "_" markup.
4369
96d7229d
LM
43702013-08-22 Luis Machado <lgustavo@codesourcery.com>
4371
4372 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4373 nat/linux-waitpid.h.
4374 (linux-waitpid.o): New object file rule.
4375 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4376 (current_ptrace_options): Moved from linux-nat.c.
4377 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4378 parameters.
4379 (linux_fork_to_function): New function.
4380 (linux_grandchild_function): Likewise.
4381 (linux_child_function): Likewise.
4382 (linux_check_ptrace_features): New function, heavily
4383 based on linux-nat.c:linux_test_for_tracefork.
4384 (linux_enable_event_reporting): New function.
4385 (ptrace_supports_feature): Likewise.
4386 (linux_supports_tracefork): Likewise.
4387 (linux_supports_traceclone): Likewise.
4388 (linux_supports_tracevforkdone): Likewise.
4389 (linux_supports_tracesysgood): Likewise.
4390 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4391 gdbserver/linux-low.c.
4392 (linux_enable_event_reporting): New declaration.
4393 (linux_supports_tracefork): Likewise.
4394 (linux_supports_traceclone): Likewise.
4395 (linux_supports_tracevforkdone): Likewise.
4396 (linux_supports_tracesysgood): Likewise.
4397 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4398 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4399 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4400 * config/arm/linux.mh (NATDEPFILES): Likewise.
4401 * config/i386/linux.mh (NATDEPFILES): Likewise.
4402 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4403 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4404 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4405 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4406 * config/mips/linux.mh (NATDEPFILES): Likewise.
4407 * config/pa/linux.mh (NATDEPFILES): Likewise..
4408 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4409 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4410 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4411 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4412 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4413 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4414 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4415 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4416 ptrace's 4th argument's types.
4417 Check the type of PTRACE_TYPE_ARG4.
4418 * configure: Regenerate.
4419 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4420 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4421 (linux_supports_tracefork_flag): Remove.
4422 (linux_supports_tracesysgood_flag): Likewise.
4423 (linux_supports_tracevforkdone_flag): Likewise.
4424 (current_ptrace_options): Moved to
4425 common/linux-ptrace.c.
4426 (linux_tracefork_child): Remove.
4427 (my_waitpid): Remove.
4428 (linux_test_for_tracefork): Renamed to
4429 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4430 (linux_test_for_tracesysgood): Remove.
4431 (linux_supports_tracesysgood): Remove.
4432 (linux_supports_tracefork): Remove.
4433 (linux_supports_tracevforkdone): Remove.
4434 (linux_enable_tracesysgood): Remove.
4435 (linux_enable_event_reporting): Remove.
4436 (linux_init_ptrace): New function.
4437 (linux_child_post_attach): Call linux_init_ptrace.
4438 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4439 (linux_child_follow_fork): Call linux_supports_tracefork
4440 and linux_supports_tracevforkdone.
4441 (linux_child_insert_fork_catchpoint): Call
4442 linux_supports_tracefork.
4443 (linux_child_insert_vfork_catchpoint): Likewise.
4444 (linux_child_set_syscall_catchpoint): Call
4445 linux_supports_tracesysgood.
4446 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4447 * nat/linux-nat.h: New file.
4448 * nat/linux-waitpid.c: New file.
4449 * nat/linux-waitpid.h: New file.
4450
9f948660
SDJ
44512013-08-22 Samuel Bronson <naesten@gmail.com>
4452
4453 ARM Linux support for `catch syscall'.
4454 * syscalls/arm-linux.py: New file.
4455 * syscalls/arm-linux.xml: Likewise.
4456 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4457 (arm_linux_init_abi): Register the new function and syscall xml file.
4458 * data-directory/Makefile.in: Install the new syscall xml file.
4459 * NEWS: Brag about this.
4460
6be7b56e
PA
44612013-08-22 Pedro Alves <palves@redhat.com>
4462
4463 PR gdb/15871
4464 * corefile.c (target_xfer_memory_error): New function.
4465 (memory_error): Defer EIO to target_memory_error.
4466 (read_memory): Use target_xfer_partial, and handle finer-grained
4467 target xfer errors.
4468 * target.c (target_xfer_error_to_string): New function.
4469 (memory_xfer_partial_1): If memory is known to be
4470 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4471 (target_xfer_partial): Make extern.
4472 * target.h (enum target_xfer_error): New enum.
4473 (target_xfer_error_to_string): Declare function.
4474 (target_xfer_partial): Declare function.
4475 (struct target_ops) <xfer_partial>: Adjust describing comment.
4476
bcbec14e
AM
44772013-08-22 Alan Modra <amodra@gmail.com>
4478
4479 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4480 * configure.tgt: Likewise as targets.
4481
fc474241
DE
44822013-08-20 Doug Evans <dje@google.com>
4483
4484 * buildsym.c (subfile_stack): Move here from buildsym.h.
4485 (pending_macros): Ditto.
4486 (get_macro_table): New function.
4487 (buildsym_init): Initialize subfile_stack.
4488 * coffread.c (type_vector,type_vector_length): Moved here from
4489 buildsym.h.
4490 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4491 (coff_symtab_read): Use it.
4492 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4493 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4494 with call to get_macro_table.
4495 * stabsread.c (type_vector,type_vector_length): Moved here from
4496 buildsym.h.
4497 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4498 * buildsym.h (get_macro_table): Declare.
4499
bec71544
TT
45002013-08-20 Tom Tromey <tromey@redhat.com>
4501
4502 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4503 Update.
4504 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4505
0002ad5f
DE
45062013-08-20 Doug Evans <dje@google.com>
4507
4508 * blockframe.c: Remove #include "psymtab.h".
4509 * cp-support.c: Ditto.
4510 * source.c: Ditto.
4511 * stack.c: Ditto.
4512
df302446
TT
45132013-08-20 Tom Tromey <tromey@redhat.com>
4514
4515 PR python/15816:
4516 * exceptions.h (return_mask): Now an enum.
4517 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4518 enum constants.
4519
df6d5441
TT
45202013-08-20 Tom Tromey <tromey@redhat.com>
4521
4522 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4523 get_objfile_arch.
4524 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4525 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4526 * jit.c (jit_object_close_impl): Update.
4527 * jv-lang.c (get_dynamics_objfile): Update.
4528 * linespec.c (add_minsym): Use get_dynamics_objfile.
4529 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4530 (allocate_objfile): Don't initialize 'gdbarch' field.
4531 (get_objfile_arch): Update.
4532 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4533 moved from...
4534 (struct objfile) <gdbarch>: ... here. Remove.
4535 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4536 get_objfile_arch.
4537 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4538
f5aee5ee
AM
45392013-08-20 Alan Modra <amodra@gmail.com>
4540
4541 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4542 for IBM long double nan and inf.
4543 (floatformat_is_negative, floatformat_classify,
4544 floatformat_mantissa): Similarly.
4545 (floatformat_ieee_single, floatformat_ieee_double,
4546 floatformat_ieee_quad, floatformat_arm_ext,
4547 floatformat_ia64_spill): Delete unused vars.
4548 (_initialize_doublest): Delete unused function.
4549 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4550 little-endian variants of floatformat_ibm_long_double.
4551
33b60d58 45522013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4553
33b60d58
LM
4554 * Makefile.in (SFILES): Remove common/target-common.c and
4555 add target/waitstatus.c.
4556 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4557 target/resume.h, target/wait.h and target/waitstatus.h.
4558 (COMMON_OBS): Remove target-common.o and add
4559 waitstatus.o.
4560 (target-common.o): Remove.
4561 (waitstatus.o): New target object file.
4562 * common/target-common.c: Move contents to
4563 target/waitstatus.c and remove.
4564 * common/target-common.h: Move contents to other files and
4565 remove.
4566 (enum resume_kind: Move to target/resume.h.
4567 (TARGET_WNOHANG): Move to target/wait.h.
4568 (enum target_waitkind): Move to target/waitstatus.h.
4569 (struct target_waitstatus): Likewise.
4570 * target.h: Do not include target-common.h and
4571 include target/resume.h, target/wait.h and
4572 target/waitstatus.h.
4573 * target/resume.h: New file.
4574 * target/wait.h: New file.
4575 * target/waitstatus.h: New file.
4576 * target/waitstatus.c: New file.
4577
12696c10
PA
45782013-08-19 Pedro Alves <palves@redhat.com>
4579
4580 * linux-nat.c (linux_test_for_tracefork)
4581 (linux_test_for_tracesysgood, linux_child_follow_fork)
4582 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4583 (linux_nat_wait_1): Extend comment.
4584 (linux_async_pipe): Add comment.
4585
ba89f962
KB
45862013-08-15 Kevin Buettner <kevinb@redhat.com>
4587
4588 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4589 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4590 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4591 Update to account for fact that PC is now a pseudo-register.
4592 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4593 cases for RL78_PC_REGNUM.
4594
35ab155d
MB
45952013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4596
4597 PR cli/15841
4598 * top.c (quit_force): Skip writing history file
4599 if input is not from terminal.
4600
0d031856
TT
46012013-08-14 Tom Tromey <tromey@redhat.com>
4602
4603 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4604 resultthreadlist>: New fields.
4605 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4606 (remote_get_threadlist, remote_threadlist_iterator): Use
4607 new fields. Remove static variables.
4608
ee154bee
TT
46092013-08-14 Tom Tromey <tromey@redhat.com>
4610
4611 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4612 remote_watch_data_address>: New fields.
4613 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4614 (process_stop_reply, remote_wait_as)
4615 (remote_check_watch_resources, remote_stopped_data_address): Update.
4616
88b496c3
TT
46172013-08-14 Tom Tromey <tromey@redhat.com>
4618
4619 * remote.c (struct remote_state) <async_client_callback,
4620 async_client_context>: New fields.
4621 (async_client_callback, async_client_context): Remove.
4622 (remote_async_serial_handler, remote_async): Update.
4623
2f65bcb7
TT
46242013-08-14 Tom Tromey <tromey@redhat.com>
4625
4626 * remote.c (sizeof_pkt): Remove.
4627 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4628
b80fafe3
TT
46292013-08-14 Tom Tromey <tromey@redhat.com>
4630
4631 * remote.c (struct remote_state) <use_threadinfo_query,
4632 use_threadextra_query>: New fields.
4633 (remote_threads_info, remote_threads_extra_info)
4634 (remote_open_1): Update.
4635
8e88304f
TT
46362013-08-14 Tom Tromey <tromey@redhat.com>
4637
4638 * remote.c (struct remote_state) <finished_object,
4639 finished_annex, finished_offset>: New fields.
4640 (remote_read_qxfer): Use remote_state fields; remove static
4641 variables.
4642
280ceea3
TT
46432013-08-14 Tom Tromey <tromey@redhat.com>
4644
4645 * remote.c (struct remote_state) <last_sent_step>:
4646 New field.
4647 (last_sent_step): Remove.
4648 (remote_resume, remote_wait_as): Update.
4649
b73be471
TT
46502013-08-14 Tom Tromey <tromey@redhat.com>
4651
4652 * remote.c (struct remote_state) <last_sent_signal>:
4653 New field.
4654 (last_sent_signal): Remove.
4655 (new_remote_state, remote_resume, remote_wait_as): Update.
4656
5e4a05c4
TT
46572013-08-14 Tom Tromey <tromey@redhat.com>
4658
4659 * remote.c (struct remote_state) <last_program_signals_packet>:
4660 New field.
4661 (last_program_signals_packet): Remove.
4662 (remote_program_signals, remote_open_1): Update.
4663
747dc59d
TT
46642013-08-14 Tom Tromey <tromey@redhat.com>
4665
4666 * remote.c (struct remote_state) <last_pass_packet>:
4667 New field.
4668 (last_pass_packet): Remove.
4669 (remote_pass_signals, remote_open_1): Update.
4670
262e1174
TT
46712013-08-14 Tom Tromey <tromey@redhat.com>
4672
4673 * remote.c (struct remote_state) <remote_traceframe_number>:
4674 New field.
4675 (remote_traceframe_number): Remove.
4676 (new_remote_state, remote_open_1, set_remote_traceframe)
4677 (remote_trace_find): Update.
4678
47f8a51d
TT
46792013-08-14 Tom Tromey <tromey@redhat.com>
4680
4681 * remote.c (struct remote_state) <general_thread, continue_thread>:
4682 New fields.
4683 (general_thread, continue_thread): Remove.
4684 (record_currthread, set_thread, set_general_process)
4685 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4686 (extended_remote_mourn_1): Update.
4687
5d93a237
TT
46882013-08-14 Tom Tromey <tromey@redhat.com>
4689
4690 * remote.c (struct remote_state) <remote_desc>: New field.
4691 (remote_desc): Remove.
4692 (remote_threads_info, remote_threads_extra_info, remote_close)
4693 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4694 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4695 (remote_hostio_send_command, remote_file_put, remote_file_get)
4696 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4697 (remote_async, remote_new_objfile, set_range_stepping): Update.
4698
cf792862
TT
46992013-08-14 Tom Tromey <tromey@redhat.com>
4700
4701 * remote.c (remote_state): Now a pointer.
4702 (get_remote_state_raw): Update.
4703 (new_remote_state): New function.
4704 (_initialize_remote): Use new_remote_state.
4705
dc473cfb
TT
47062013-08-14 Tom Tromey <tromey@redhat.com>
4707
4708 * remote.c (remote_protocol_features): Now const.
4709
85ec6ce7
TT
47102013-08-14 Tom Tromey <tromey@redhat.com>
4711
4712 * remote.c (crc32_table, crc32): Remove.
4713 (remote_verify_memory): Use xcrc32.
4714
73033f12
SDJ
47152013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4716
4717 * value.h (create_internalvar_type_lazy): Adjust prototype
4718 declaration.
4719
5c30d39a
AB
47202013-08-13 Andrew Burgess <aburgess@broadcom.com>
4721
4722 * common/format.c (parse_format_string): Don't allow '#' flag for
4723 pointer arguments in format string.
4724
1a66331e
PM
47252013-08-13 Pierre Muller <muller@sourceware.org>
4726
fde605f3 4727 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4728 if rl_get_screen_size did not return useful values.
4729
b4013987
AA
47302013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4731
4732 PR breakpoints/15117
4733 * linespec.c (linespec_parse_basic): Check for convenience
4734 variable or history value while parsing.
4735
959b6a66
SDJ
47362013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4737
4738 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4739 AVR.
4740 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4741 different signals between the generic Linux kernel implementation
4742 and AVR's.
4743 (avr_linux_gdb_signal_from_target): Delete.
4744 (avr_linux_gdb_signal_to_target): Delete.
4745 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4746
24a55014
DE
47472013-08-09 Doug Evans <dje@google.com>
4748
4749 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4750 entries.
4751
eb14d406
SDJ
47522013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4753
4754 * linux-tdep.c: Define enum with generic signal numbers.
4755 (linux_gdb_signal_from_target): New function.
4756 (linux_gdb_signal_to_target): Likewise.
4757 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4758 methods to the functions above.
4759 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4760 (linux_gdb_signal_to_target): Likewise.
4761 * alpha-linux-tdep.c: Define new enum with signals different
4762 from generic Linux kernel.
4763 (alpha_linux_gdb_signal_from_target): New function.
4764 (alpha_linux_gdb_signal_to_target): Likewise.
4765 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4766 with the functions mentioned above.
4767 * avr-tdep.c: Define enum with differences between Linux kernel
4768 and AVR signals.
4769 (avr_linux_gdb_signal_from_target): New function.
4770 (avr_linux_gdb_signal_to_target): Likewise.
4771 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4772 the functions mentioned above.
4773 * sparc-linux-tdep.c: Define enum with differences between SPARC
4774 and generic Linux kernel signal numbers.
4775 (sparc32_linux_gdb_signal_from_target): New function.
4776 (sparc32_linux_gdb_signal_to_target): Likewise.
4777 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4778 to the functions defined above.
4779 * xtensa-linux-tdep.c: Define enum with differences between
4780 Xtensa and Linux kernel generic signals.
4781 (xtensa_linux_gdb_signal_from_target): New function.
4782 (xtensa_linux_gdb_signal_to_target): Likewise.
4783 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4784 to the functions defined above.
4785 * mips-linux-tdep.c: Define enum with differences between
4786 signals in MIPS and Linux kernel generic ones.
4787 (mips_gdb_signal_to_target): New function.
4788 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4789 only different signals from the Linux kernel generic.
4790 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4791 the functions defined above.
4792 * mips-linux-tdep.h (enum mips_signals): Remove.
4793
156d08c8
PA
47942013-08-09 Pedro Alves <palves@redhat.com>
4795
4796 * avr-tdep.c (XMALLOC): Delete macro.
4797 * cli/cli-dump.c (XMALLOC): Delete macro.
4798
db229724
PA
47992013-08-09 Pedro Alves <palves@redhat.com>
4800
4801 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4802 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4803 (fopen_with_cleanup, add_dump_command): Make static.
4804 * cli/cli-dump.h: Delete file.
4805 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4806 cli/cli-dump.h.
4807
3f12a589
PA
48082013-08-09 Pedro Alves <palves@redhat.com>
4809
4810 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4811 error message.
4812
c718be47
PA
48132013-08-09 Pedro Alves <palves@redhat.com>
4814
156d08c8 4815 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4816 error message.
4817
1e351ed1
PA
48182013-08-09 Pedro Alves <palves@redhat.com>
4819
4820 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4821 (gcore_command): Use tilde_expand here, and when showing the
4822 filename to the user, show the expanded version.
4823
1ed8d800
YQ
48242013-08-09 Yao Qi <yao@codesourcery.com>
4825
4826 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4827 'entryval' is set.
4828
47ecca85
PA
48292013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4830
4831 * gcore.c (create_gcore_bfd): Use tilde_expand.
4832
82a0a75f
YQ
48332013-08-08 Yao Qi <yao@codesourcery.com>
4834
4835 * frame.h (read_frame_local): Declare.
4836 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4837 read_frame_local.
4838 * stack.c (read_frame_local): New.
4839
5c4aa40b
YQ
48402013-08-08 Yao Qi <yao@codesourcery.com>
4841
4842 * mi/mi-cmd-stack.c: Update comments to function
4843 list_args_or_locals.
4844
b93601f3
TT
48452013-08-07 Tom Tromey <tromey@redhat.com>
4846
4847 PR symtab/15028:
4848 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4849 (process_psymtab_comp_unit_reader): Use it.
4850 (process_psymtab_comp_unit): Update. Add "pretend_language"
4851 argument.
4852 (dwarf2_build_psymtabs_hard): Update.
4853 (scan_partial_symbols): Pass CU's language to
4854 process_psymtab_comp_unit.
4855
fa760f46
TT
48562013-08-07 Tom Tromey <tromey@redhat.com>
4857
4858 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4859 (dwarf2_gdb_index_functions): Update.
4860 * psymtab.c (find_symbol_file_from_partial): Remove.
4861 (psym_functions): Update.
4862 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4863 Remove.
4864
bf6d8a91
TT
48652013-08-07 Tom Tromey <tromey@redhat.com>
4866
4867 * symfile.c (set_initial_language): Look up "main" symbol
4868 and use its language.
4869 * symtab.c (find_main_filename): Remove.
4870 * symtab.h (find_main_filename): Remove.
4871
f9125b6c
TT
48722013-08-07 Tom Tromey <tromey@redhat.com>
4873
4874 * dwarf2read.c (recursively_compute_inclusions): Add
4875 "immediate_parent" argument. Set symtab's "user" field
4876 if not set.
4877 (compute_symtab_includes): Update.
4878
fdbb204b
TT
48792013-08-07 Tom Tromey <tromey@redhat.com>
4880
4881 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4882 when adding label symbols.
4883
49de1690
UW
48842013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4885 Ulrich Weigand <uweigand@de.ibm.com>
4886
4887 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4888 * configure.host (powerpc64-*-aix*): Likewise.
4889
b08ee99f
UW
48902013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4891 Ulrich Weigand <uweigand@de.ibm.com>
4892
4893 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4894 is defined.
4895 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4896 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4897 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4898 * configure.ac: Check for ptrace64.
4899 * configure, config.in: Regenerate.
4900
fecf803e
UW
49012013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4902 Ulrich Weigand <uweigand@de.ibm.com>
4903
4904 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4905 Call ptrace64 instead of ptrace if defined.
4906 Add macro addr_ptr to take care of ptrace address argument.
4907 (pdc_read_regs): Likewise.
4908 (pdc_write_regs): Likewise.
4909 (aix_thread_resume): Likewise.
4910 (fetch_regs_kernel_thread): Likewise.
4911 (store_regs_kernel_thread): Likewise.
4912
3bb5e4a8
AB
49132013-08-07 Anton Blanchard <anton@samba.org>
4914
4915 * MAINTAINERS: Add myself to Write After Approval.
4916
12070676
TT
49172013-08-05 Tom Tromey <tromey@redhat.com>
4918
4919 * aix-thread.c (_initialize_aix_thread): Use
4920 complete_target_initialization.
4921 * bsd-uthread.c (_initialize_bsd_uthread): Use
4922 complete_target_initialization.
4923 * dec-thread.c (_initialize_dec_thread): Use
4924 complete_target_initialization.
4925 * ravenscar-thread.c (_initialize_ravenscar): Use
4926 complete_target_initialization.
4927 * sol-thread.c (_initialize_sol_thread): Use
4928 complete_target_initialization.
4929 * spu-multiarch.c (_initialize_spu_multiarch): Use
4930 complete_target_initialization.
4931
7c7b6655
TT
49322013-08-05 Tom Tromey <tromey@redhat.com>
4933
4934 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4935 * ada-lang.c (ada_lookup_simple_minsym): Return
4936 bound_minimal_symbol.
4937 * ada-lang.h (ada_lookup_simple_minsym): Update.
4938 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4939 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4940 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4941 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4942 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4943 * minsyms.c (msymbol_objfile): Remove.
4944 (lookup_minimal_symbol_internal): New function, from
4945 lookup_minimal_symbol.
4946 (lookup_minimal_symbol): Rewrite using
4947 lookup_minimal_symbol_internal.
4948 (lookup_bound_minimal_symbol): New function.
4949 * minsyms.h (msymbol_objfile): Remove.
4950 (lookup_bound_minimal_symbol): Declare.
4951 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4952 * parse.c (write_exp_msymbol): Change parameter to a
4953 bound_minimal_symbol.
4954 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4955 * parser-defs.h (write_exp_msymbol): Update.
4956 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4957 * symfile.c (simple_read_overlay_table): Use
4958 lookup_bound_minimal_symbol.
4959 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4960 (search_symbols): Likewise.
4961 (print_msymbol_info): Take a bound_minimal_symbol argument.
4962 (symtab_symbol_info, rbreak_command): Update.
4963 * symtab.h (struct symbol_search) <msymbol>: Change type
4964 to bound_minimal_symbol.
4965 * valops.c (find_function_in_inferior): Use
4966 lookup_bound_minimal_symbol.
4967 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4968
934b9bac
JK
49692013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4970
4971 Code cleanup.
4972 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4973 to ...
4974 (async_cleanup_sigint_signal_handler): ... this.
4975 (initialize_sigint_signal_handler): Remove declaration.
4976 (handle_remote_sigint): Rename the declaration to ...
4977 (async_handle_remote_sigint): ... this.
4978 (handle_remote_sigint_twice): Rename the declaration to ...
4979 (async_handle_remote_sigint_twice): ... this.
4980 (async_remote_interrupt, async_remote_interrupt_twice)
4981 (remote_interrupt): Remove the declarations.
4982 (remote_interrupt_twice): Rename the declaration ...
4983 (sync_remote_interrupt_twice): ... this.
4984 (sigint_remote_twice_token): Rename the variable to ...
4985 (async_sigint_remote_twice_token): ... this.
4986 (sigint_remote_token): Rename the variable to ...
4987 (async_sigint_remote_token): ... this.
4988 (initialize_sigint_signal_handler): Rename the function to ...
4989 (async_initialize_sigint_signal_handler): ... this. Update the name
4990 inside.
4991 (handle_remote_sigint): Rename the function to ...
4992 (async_handle_remote_sigint): ... this. Update the names inside.
4993 (handle_remote_sigint_twice): Rename the function to ...
4994 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4995 (cleanup_sigint_signal_handler): Rename the function to ...
4996 (async_cleanup_sigint_signal_handler): ... this.
4997 (remote_interrupt): Rename the function to ...
4998 (sync_remote_interrupt): this. Update the names inside.
4999 (remote_interrupt_twice): Rename the function to ...
5000 (sync_remote_interrupt_twice): this. Update the names inside.
5001 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5002 (_initialize_remote): Update the names inside.
5003
3a1115a0
TT
50042013-08-02 Tom Tromey <tromey@redhat.com>
5005
5006 PR symtab/15719:
5007 * breakpoint.c (update_watchpoint, watchpoint_check)
5008 (watch_command_1): Update.
5009 * eval.c (fetch_subexp_value): Add "preserve_errors"
5010 parameter.
5011 * ppc-linux-nat.c (check_condition): Update.
5012 * value.h (fetch_subexp_value): Update.
5013
58b19776
AB
50142013-08-02 Andrew Burgess <aburgess@broadcom.com>
5015
5016 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5017 add_file_handler.
5018
ec94af83
DE
50192013-08-01 Doug Evans <dje@google.com>
5020
7ee85ab1
DE
5021 PR symtab/15691
5022 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5023 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5024 Add assert of sig_entry->dwo_unit == NULL.
5025 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5026 had already been read.
5027 (read_signatured_type): Set per_cu.tu_read.
5028
b846d303
DE
5029 PR symtab/15695
5030 * valops.c (value_struct_elt): Add missing call to check_typedef.
5031 (value_find_oload_method_list): Ditto.
5032
b52109bc
DE
5033 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5034 effectively, struct symbol_search **.
5035 (make_cleanup_free_search_symbols): Change arg to struct
5036 symbol_search **. All callers updated.
5037 (compare_search_syms): Compare symtab file name and block as well.
5038 (search_symbols_equal): New function.
5039 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5040 New args new_head, new_tail. Result is now void. Remove dups after
5041 sorting the symbols.
5042 (search_symbols): Sort all found symbols once, after all have been
5043 found, and remove duplicates. Simplify cleanup tracking of result.
5044 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5045
ec94af83
DE
5046 Further workarounds for binutils/15021.
5047 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5048 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5049 Watch for duplicate symtabs coming from type units.
5050 (compute_symtab_includes): Update call to
5051 recursively_compute_inclusions. Build vector of included symtabs
5052 instead of per_cus.
5053 * symtab.h (symtab_ptr): New typedef.
5054 (DEF_VEC_P (symtab_ptr)): New VEC type.
5055 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5056 instead.
5057
b2ae85cf
AB
50582013-08-01 Andrew Burgess <aburgess@broadcom.com>
5059
5060 * cli/cli-script.c (script_from_file): Remove use of
5061 error_pre_print.
5062 * main.c (captured_main): Remove use of error_pre_print and
5063 quit_pre_print.
5064 * utils.c (error_pre_print, quit_pre_print): Remove.
5065 * utils.h (error_pre_print, quit_pre_print): Likewise.
5066
645eab03
YQ
50672013-08-01 Yao Qi <yao@codesourcery.com>
5068
5069 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5070 with mi_getopt.
5071 (mi_cmd_stack_list_variables): Likewise.
5072
16f92dd4
AB
50732013-07-31 Andrew Burgess <aburgess@broadcom.com>
5074
5075 * exceptions.c (deprecated_throw_reason): Remove.
5076 * exceptions.h (deprecated_throw_reason): Remove.
5077
13f78033
AB
50782013-07-31 Andrew Burgess <aburgess@broadcom.com>
5079
5080 * remote-mips.c (mips_error): Replace use of
5081 deprecated_throw_reason with throw_verror. Use the error message
5082 passed to mips_error as the error message for throw_verror.
5083
039e3c22
AB
50842013-07-31 Andrew Burgess <aburgess@broadcom.com>
5085
5086 * monitor.c (monitor_interrupt_query): Replace use of
5087 deprecated_throw_reason with quit.
5088 * nto-procfs.c (interrupt_query): Likewise.
5089 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5090 * remote-mips.c (mips_kill): Likewise.
5091 * remote.c (interrupt_query): Likewise.
5092
8150913b
AB
50932013-07-31 Andrew Burgess <aburgess@broadcom.com>
5094
5095 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5096 with call to fatal.
5097
de74e63a
YQ
50982013-07-31 Pedro Alves <pedro@codesourcery.com>
5099 Yao Qi <yao@codesourcery.com>
5100
5101 * tracepoint.c (trace_dump_command): Select the current frame.
5102
247f5c4f
DE
51032013-07-30 Doug Evans <dje@google.com>
5104
5105 * dwarf2read.c (process_queue): Add type signature to debug output.
5106
11b4b7cc
AB
51072013-07-30 Andrew Burgess <aburgess@broadcom.com>
5108
5109 * value.c (value_fetch_lazy): Mark optimized out values as such
5110 rather than raising an error.
5111
b0c54aa5
AB
51122013-07-30 Andrew Burgess <aburgess@broadcom.com>
5113
5114 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5115 before checking which bits of the parent, not the child, value are
5116 valid.
5117
97c85fc6
MB
51182013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5119
5120 PR gdb/15715
5121 * top.c: Include "filenames.h".
5122 (set_history_filename): New function.
5123 (init_main): Install it as set hook of the "set history filename"
5124 command.
5125
ff39bb5e
SA
51262013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5127
5128 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5129 attribute parameter.
5130 (dwarf2_const_value_data): Constify struct attribute parameter.
5131 (dwarf2_const_value): Constify struct attribute parameter.
5132 (dwarf2_const_value_attr): Constify struct attribute parameter.
5133 (lookup_die_type): Constify struct attribute parameter.
5134 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5135 (follow_die_ref_or_sig): Constify struct attribute parameter.
5136 (follow_die_ref): Constify struct attribute parameter.
5137 (follow_die_sig): Constify struct attribute parameter.
5138 (get_DW_AT_signature_type): Constify struct attribute parameter.
5139 (get_type_unit_group): Constify struct attribute parameter.
5140 (fill_in_loclist_baton): Constify struct attribute parameter.
5141 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5142 (type_unit_group): Constify struct attribute parameter.
5143
6e5a29e1
SA
51442013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5145
5146 * dwarf2read.c (attr_form_is_block): Make argument const.
5147 (attr_form_is_section_offset): Make argument const.
5148 (attr_form_is_constant): Make argument const.
5149 (attr_form_is_ref): Make argument const.
5150
7771576e
SA
51512013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5152
5153 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5154 All uses updated.
5155 (attr_form_is_ref): Moved below attr_form_is_constant.
5156
a94e8645
DE
51572013-07-29 Doug Evans <dje@google.com>
5158
bb5291d0
DE
5159 * main.c (captured_command_loop): Tweak comment.
5160
b5419e49
DE
5161 * target.c (target_async_permitted_1): Fix comment.
5162
b2d23133
DE
5163 * symtab.c (iterate_over_some_symtabs): Add comment.
5164
a94e8645
DE
5165 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5166
7a60ad40
YQ
51672013-07-27 Yao Qi <yao@codesourcery.com>
5168
5169 * NEWS: Mention that GDBserver now supports hardware
5170 watchpoints on the MIPS GNU/Linux target.
5171
aaee2056
YQ
51722013-07-27 Yao Qi <yao@codesourcery.com>
5173
5174 * Makefile.in (HFILES_NO_SRCDIR): Add
5175 common/mips-linux-watch.h.
5176 (mips-linux-watch.o): New rule.
5177 * common/mips-linux-watch.c: New.
5178 * common/mips-linux-watch.h: New.
5179 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5180 * mips-linux-nat.c: Include mips-linux-watch.h.
5181 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5182 to common/mips-linux-watch.h.
5183 (MAX_DEBUG_REGISTER): Likewise.
5184 (enum pt_watch_style): Likewise.
5185 (struct mips32_watch_regs): Likewise.
5186 (struct mips64_watch_regs): Likewise.
5187 (struct pt_watch_regs): Likewise.
5188 (struct mips_watchpoint): Likewise.
5189 (mips_linux_watch_get_irw_mask): Move to
5190 common/mips-linux-watch.c.
5191 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5192 (mips_linux_watch_get_watchlo): Likewise.
5193 (mips_linux_watch_set_watchlo): Likewise.
5194 (mips_linux_watch_get_watchhi): Likewise.
5195 (mips_linux_watch_set_watchhi): Likewise.
5196 (mips_linux_read_watch_registers): Likewise.
5197 (mips_linux_watch_type_to_irw): Likewise.
5198 (mips_linux_stopped_data_address, fill_mask): Likewise.
5199 (mips_linux_watch_try_one_watch): Likewise.
5200 (mips_linux_watch_populate_regs): Likewise.
5201
b3436450
YQ
52022013-07-27 Yao Qi <yao@codesourcery.com>
5203
5204 * mips-linux-nat.c (get_irw_mask): Rename to ...
5205 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5206 'set' to 'n'. Update function comment. All callers changed.
5207 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5208 function comment. All callers changed.
5209 (get_num_valid): Rename to ...
5210 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5211 'set' to 'n'. Update function comment. All callers changed.
5212 (get_watchlo): Rename to ...
5213 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5214 'set' to 'n'. Update function comment. All callers changed.
5215 (set_watchlo): Rename to ...
5216 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5217 'set' to 'n'. Update function comment. All callers changed.
5218 (get_watchhi): Rename to ...
5219 (mips_linux_watch_get_watchhi): ... this. Update function
5220 comment. All callers changed.
5221 (set_watchhi): Rename to ...
5222 (mips_linux_watch_set_watchhi): ... this. Update function
5223 comment. All callers changed.
5224 (mips_linux_read_watch_registers): Update function comment.
5225 Add new parameters 'lwpid', 'watch_readback', and
5226 'watch_readback_valid'. Update.
5227 (type_to_irw): Rename to ...
5228 (mips_linux_watch_type_to_irw): ... this. Update function
5229 comment. All callers changed.
5230 (fill_mask): Update function comment.
5231 (try_one_watch): Rename to ...
5232 (mips_linux_watch_try_one_watch): ... this. Change the type
5233 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5234 (populate_regs_from_watches): Rename to ...
5235 (mips_linux_watch_populate_regs): ... this. Add parameter
5236 'current_watches'. All callers changed.
5237
9be14b81
YQ
52382013-07-27 Yao Qi <yao@codesourcery.com>
5239
5240 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5241 the code.
5242 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5243 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5244 (struct pt_watch_regs): Likewise.
5245 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5246 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5247 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5248 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5249 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5250
de6f69ad
YQ
52512013-07-27 Yao Qi <yao@codesourcery.com>
5252
5253 * breakpoint.h: Include break-common.h.
5254 (enum target_hw_bp_type): Move to ...
5255 * common/break-common.h: ... here. New.
5256
6f64ef53
PA
52572013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5258
5259 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5260 process group regardless of having tty on stdin.
5261
6107e809
DE
52622013-07-25 Doug Evans <dje@google.com>
5263
5264 * linux-fork.h (detach_fork): Delete.
5265
7fdc1521
TT
52662013-07-25 Tom Tromey <tromey@redhat.com>
5267
5268 PR remote/15256, PR remote/15266:
5269 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5270 * monitor.c (monitor_detach): Use unpush_target.
5271 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5272 * remote-mips.c (mips_detach): Use unpush_target. Don't
5273 call mips_close.
5274 * remote-sim.c (gdbsim_detach): Use unpush_target.
5275 * target.c (pop_target): Remove.
5276 (pop_all_targets_above): Don't call target_close.
5277 (target_close): Assert that the target is unpushed.
5278 * target.h (pop_target): Don't declare.
5279 * tracepoint.c (tfile_open): Use unpush_target.
5280
c22a2b88
TT
52812013-07-25 Tom Tromey <tromey@redhat.com>
5282
5283 * linux-thread-db.c (init_thread_db_ops): Call
5284 complete_target_initialization.
5285 (_initialize_thread_db): Don't call add_target.
5286 * target.c (complete_target_initialization): New function.
5287 (add_target_with_completer): Call it.
5288 * target.h (complete_target_initialization): Declare.
5289
cbb6aada
MK
52902013-07-25 Mark Kettenis <kettenis@gnu.org>
5291
5292 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5293 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5294 (HPPANBSD_SIZEOF_GREGS): New define.
5295 (hppaobsd_supply_gregset): Handle additional registers.
5296 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5297 we provide more registers now.
5298 (hppabsd_supply_gregset): Supply additional registers.
5299 (hppabsd_collect_gregset): Collect additional registers.
5300
17767988
MK
53012013-07-25 Mark Kettenis <kettenis@gnu.org>
5302
5303 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5304 (hppabsd_dwarf2_frame_init_reg): New function.
5305 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5306
fdc8aae8
AB
53072013-07-25 Andrew Burgess <aburgess@broadcom.com>
5308
5309 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5310 'z' format code. Remove error for optimized out values, standard
5311 code will handle these fine.
5312
6fbe845e
AB
53132013-07-25 Andrew Burgess <aburgess@broadcom.com>
5314
5315 * NEWS: Mention new 'z' formatter.
5316 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5317 (_initialize_printcmd): Mention 'z' formatter in help text of the
5318 'x' command.
5319
3373342d
MR
53202013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5321
5322 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5323 formatting.
5324
25f9533e
SDJ
53252013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5326
5327 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5328 interface can evaluate arguments. Fallback to the old mode if it
5329 cannot.
5330 (create_exception_master_breakpoint): Likewise.
5331 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5332 (struct sym_probe_fns elf_probe_fns): Export function above to the
5333 probe interface.
5334 * probe.c (can_evaluate_probe_arguments): New function.
5335 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5336 function pointer.
5337 (can_evaluate_probe_arguments): New function prototype.
5338 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5339 probe interface can evaluate arguments. Fallback to the old mode
5340 if it cannot.
5341 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5342 interface can evaluate arguments. Warning the user if it cannot.
5343 (stap_can_evaluate_probe_arguments): New function.
5344 (struct probe_ops stap_probe_ops): Export function above to the
5345 probe interface.
5346 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5347 New function pointer.
5348
3360c0bf
LM
53492013-07-24 Luis Machado <lgustavo@codesourcery.com>
5350
5351 * Makefile.in (SFILES): Add common/target-common.c.
5352 Add common/target-common.h to headers.
5353 (COMMON_OBS): Add target-common.o.
5354 (target-common.o): New target.
5355 * linux-nat.h (resume_kind): Move to common/target-common.h.
5356 * target.c (target_waitstatus_to_string): Move to
5357 common/target-common.c.
5358 * target.h: Include target-common.h.
5359 (target_waitkind): Move to common/target-common.h.
5360 (target_waitstatus): Likewise.
5361 (TARGET_WNOHANG): Likewise.
5362 * common/target-common.c: New file.
5363 * common/target-common.h: New file.
5364
6656a72d
DE
53652013-07-24 Doug Evans <dje@google.com>
5366
5367 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5368 a warning.
5369
6df81a63
YQ
53702013-07-23 Yao Qi <yao@codesourcery.com>
5371
5372 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5373 parameter 'gdbarch'.
5374 (i386_stack_tramp_frame_sniffer): Caller update.
5375 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5376 parameter 'gdbarch' and 'target'.
5377 (i386_linux_core_read_description): Caller update.
5378 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5379 Likewise.
5380 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5381 declaration.
5382
365156ad
TT
53832013-07-23 Tom Tromey <tromey@redhat.com>
5384
5385 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5386 2013-07-22.
5387
046ac79f
JK
53882013-07-22 Doug Evans <dje@google.com>
5389
5390 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5391 * exec.c (exec_close): Update call to remove_target_sections.
5392 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5393 * solib.c (update_solib_list): Ditto.
5394 (reload_shared_libraries_1): Ditto.
5395 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5396 * target.h (struct target_section): Rename key to owner.
5397 All uses updated.
046ac79f 5398
29b2cc46
TT
53992013-07-22 Tom Tromey <tromey@redhat.com>
5400
5401 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5402
d1160018
TT
54032013-07-22 Tom Tromey <tromey@redhat.com>
5404
5405 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5406 Simplify cleanup handling.
5407
2f324bf6
TT
54082013-07-22 Tom Tromey <tromey@redhat.com>
5409
5410 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5411 on all return paths.
5412
e23b9d6e
UW
54132013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5414
5415 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5416 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5417 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5418
1cf55f60
PM
54192013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5420
5421 * top.c (print_gdb_version): Add help, apropos description and
5422 url to online documentation.
5423
fa876972
HZ
54242013-07-19 Hui Zhu <hui@codesourcery.com>
5425
5426 PR gdb/15692
5427 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5428
1527aea8
YQ
54292013-07-19 Yao Qi <yao@codesourcery.com>
5430
5431 * target.c (update_current_target): Change the default action
5432 of 'to_traceframe_info' from tcomplain to return_zero.
5433 * target.h (struct target_ops) <to_traceframe_info>: Add more
5434 comments.
5435 * valops.c (read_value_memory): Call
5436 traceframe_available_memory unconditionally.
5437
886f230e
YQ
54382013-07-18 Yao Qi <yao@codesourcery.com>
5439
5440 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5441 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5442 symbol without prefix. If found, set its type to
5443 'mst_solib_trampoline'.
5444
16419bae
DE
54452013-07-17 Doug Evans <dje@google.com>
5446
e7045703
DE
5447 * NEWS: Mention "set print raw frame-arguments".
5448 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5449 * stack.c (print_raw_frame_arguments): New static global.
5450 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5451 (_initialize_stack): New command "set/show print raw frame-arguments".
5452 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5453 (set_print_raw, show_print_raw): New functions.
5454 (_initialize_valprint): New prefix command "set/show print raw".
5455 * valprint.h (value_print_options): Improve comments.
5456
453e48a5
DE
5457 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5458 of all *list variables.
5459
16419bae
DE
5460 * gdbcmd.h (togglelist): Delete.
5461 * cli/cli-cmds.c (togglelist): Delete.
5462 (init_cmd_lists): Update.
5463 * cli/cli-cmds.h (togglelist): Delete.
5464
626f2d1c
TT
54652013-07-17 Tom Tromey <tromey@redhat.com>
5466
5467 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5468 dwarf2_per_objfile.
5469
57e6060e
DE
54702013-07-16 Doug Evans <dje@google.com>
5471
5472 * nto-tdep.c (nto_relocate_section_addresses): Update,
5473 target_section.bfd deleted.
5474 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5475 * s390-tdep.c (s390_load): Ditto.
5476 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5477
5ea5559b
AB
54782013-07-16 Andrew Burgess <aburgess@broadcom.com>
5479
5480 * common/format.c (parse_format_string): Add checks for NULL
5481 character before calling strchr.
5482
2b2848e2
DE
54832013-07-16 Doug Evans <dje@google.com>
5484
2c571006
DE
5485 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5486 temp_pathname argument.
5487 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5488 when opening the file fails.
5489
2b2848e2
DE
5490 * target.h (struct target_section): Delete member bfd.
5491 All users updated to use the_bfd_section->owner instead.
5492 * exec.c (add_to_section_table): Assert bfd is expected value.
5493 Remove initialization of target_section.bfd.
5494 (remove_target_sections): Update.
5495 (section_table_available_memory): Update.
5496 (section_table_xfer_memory_partial): Update.
5497 (print_section_info): Update.
5498 (exec_set_section_address): Update.
5499 * record-full.c (record_full_core_xfer_partial): Update.
5500 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5501 * solib-target.c (solib_target_relocate_section_addresses): Update.
5502 * symfile.c (build_section_addr_info_from_section_table): Update.
5503 * target.c (memory_xfer_live_readonly_partial): Update.
5504 (memory_xfer_partial_1): Update.
5505
926bf92d
UW
55062013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5507
5508 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5509 now available for embedded (BookE) and server (BookS) processors,
5510 correct mentions of 'booke' and adjust comments accordingly in order to
5511 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5512 (have_ptrace_booke_interface): Rename function and variable
5513 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5514 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5515 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5516 'hwdebug_point_cmp'. Update all uses.
5517 (booke_find_thread_points_by_tid): Rename function
5518 'booke_find_thread_points_by_tid' to
5519 'hwdebug_find_thread_points_by_tid'. Update all uses.
5520 (booke_insert_point): Rename function 'booke_insert_point' to
5521 'hwdebug_insert_point'. Update all uses.
5522 (booke_remove_point): Rename function 'booke_remove_point' to
5523 'hwdebug_remove_point'. Update all uses.
5524
d929bc19
MR
55252013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5526
5527 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5528 numbers with enum values.
5529
054e8d9e
AA
55302013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5531
5532 PR threads/13217
5533 * thread.c (thread_apply_all_command): Check for valid threads
5534 and thread count.
5535 (thread_array_cleanup): New struct.
5536 (set_thread_refcount): New function.
5537
cf006359
AB
55382013-07-11 Andrew Burgess <aburgess@broadcom.com>
5539
5540 * infcmd.c (default_print_one_register_info): Reuse function
5541 print_hex_chars.
5542
94e36acc
TT
55432013-07-10 Tom Tromey <tromey@redhat.com>
5544
5545 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5546 (ada-exp.o): New target.
5547
915dd369
SDJ
55482013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5549
5550 * mt-tdep.c (mt_registers_info): Call
5551 get_no_prettyformat_print_options instead of
5552 get_raw_print_options (regression by last patch from Doug
5553 Evans).
5554
eca07816
JB
55552013-07-09 Pedro Alves <palves@redhat.com>
5556
5557 Checked in by Joel Brobecker <brobecker@adacore.com>.
5558 * ada-lang.c (coerce_unspec_val_to_type): Use
5559 value_optimized_out_const.
5560 * value.c (value_optimized_out_const): New function.
5561 * value.h (value_optimized_out_const): New declaration.
5562
2a998fc0
DE
55632013-07-09 Doug Evans <dje@google.com>
5564
5565 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5566 Enum values rename as well. All uses updated.
5567 * valprint.h (value_print_options): Rename member pretty to
5568 pretty format. Rename member prettyprint_arrays to
5569 prettyformat_arrays. Rename member prettyprint_structs to
5570 prettyformat_structs. All uses updated.
5571 (get_no_prettyformat_print_options): Renamed from
5572 get_raw_print_options.
5573 * valprint.c (get_no_prettyformat_print_options): Renamed from
5574 get_raw_print_options. All callers updated.
5575 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5576 All callers updated.
5577 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5578 All callers updated.
5579 (_initialize_valprint): Improve help text for "set print pretty" and
5580 "set print arrays".
5581
466c1fca
AB
55822013-07-09 Andrew Burgess <aburgess@broadcom.com>
5583
5584 * value.c (value_bits_valid): Revert previous change, and change
5585 by Pedro on 2013-07-04, due to regressions in
5586 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5587
ad0f0303
AB
55882013-07-08 Andrew Burgess <aburgess@broadcom.com>
5589 Pedro Alves <palves@redhat.com>
5590
5591 * value.c (value_bits_valid): If the value is not lval_computed
5592 or has no check validity handler then the answer is the
5593 optimized_out flag, otherwise defer to the handler.
5594
b187bec1
EZ
55952013-07-06 Eli Zaretskii <eliz@gnu.org>
5596
48d1d6f5
EZ
5597 * top.c (print_gdb_configuration): Explain in output of
5598 --configuration what does "relocatable" mean.
5599
b187bec1
EZ
5600 * main.c (print_gdb_help): Regroup options in the --help text.
5601 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5602 the relevant discussions.
5603
52d361e1
YQ
56042013-07-06 Yao Qi <yao@codesourcery.com>
5605
5606 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5607 Remove parameter 'lsal'.
5608 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5609 to inner block. Caller update.
5610 (base_breakpoint_create_breakpoints_sal): Update.
5611 (bkpt_create_breakpoints_sal): Likewise.
5612 (tracepoint_create_breakpoints_sal): Likewise.
5613 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5614 element 0 of vector 'canonical->sals'.
5615
e1ec1b42
LM
56162013-07-05 Luis Machado <lgustavo@codesourcery.com>
5617
5618 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5619 register number instead of the pseudo register one.
5620 (rs6000_dwarf2_reg_to_regnum): Likewise.
5621
7195e6f0
PA
56222013-07-04 Pedro Alves <palves@redhat.com>
5623
5624 * findvar.c (value_of_register): Use allocate_optimized_out_value
5625 if the register has been optimized out, instead of
5626 set_value_optimized_out.
5627 * frame-unwind.c (frame_unwind_got_optimized): Use
5628 allocate_optimized_out_value.
5629
58722cac
PA
56302013-07-04 Pedro Alves <palves@redhat.com>
5631
5632 * value.c (value_bits_valid): If the value is not lval_computed,
5633 or doesn't have a check_validity hook, assume the value is entirely
5634 valid.
5635
691a26f5
AB
56362013-07-04 Andrew Burgess <aburgess@broadcom.com>
5637
5638 * stack.c (read_frame_arg): No longer fetch lazy values.
5639 * value.c (value_optimized_out): If the value is not already
5640 marked optimized out, and is lazy then fetch it.
5641 (value_primitive_field): Move optimized out check to later in the
5642 function, after we have loaded any lazy values.
5643 (value_fetch_lazy): Use optimized out flag directly rather than
5644 calling optimized_out method.
5645
a58e2656
AB
56462013-07-04 Andrew Burgess <aburgess@broadcom.com>
5647
5648 * valops.c: Don't include "user-regs.h".
5649 (value_fetch_lazy): Moved to value.c.
5650 * value.c: Include "user-regs.h".
5651 (value_fetch_lazy): Moved from valops.c.
5652
bd885420
YQ
56532013-07-04 Yao Qi <yao@codesourcery.com>
5654
5655 Revert:
5656 2013-06-27 Yao Qi <yao@codesourcery.com>
5657
5658 * common/create-version.sh: Update comments. Handle the case
5659 that TARGET_ALIAS is empty.
5660
17ef446e
PA
56612013-07-03 Pedro Alves <palves@redhat.com>
5662
5663 * Makefile.in (config.status): Depend on development.sh.
5664 (aclocal_m4_deps): Add libmcheck.m4.
5665 * acinclude.m4: Include libmcheck.m4.
5666 * configure.ac: Source development.sh instead of setting
5667 'development' here. --enable-libmcheck/--disable-libmcheck code
5668 factored out to GDB_AC_LIBMCHECK. Run it.
5669 * development.sh: New file.
5670 * libmcheck.m4: New file.
5671 * configure: Regenerate.
5672
ac6dd50f
TT
56732013-07-02 Tom Tromey <tromey@redhat.com>
5674
5675 * contrib/ari/update-web-ari.sh: Update for version.in change.
5676
bd1df410
TT
56772013-07-02 Tom Tromey <tromey@redhat.com>
5678
5679 * common/ptid.h: Comment fixes.
5680
4db1a1dc
TT
56812013-07-01 Tom Tromey <tromey@redhat.com>
5682
5683 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5684 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5685 (dwarf2_read_index, create_all_comp_units): Update.
5686
dd9aa048
TT
56872013-07-01 Tom Tromey <tromey@redhat.com>
5688
5689 * configure.ac (build_warnings): Add -Wold-style-definition.
5690 * configure: Rebuild.
5691 * machoread.c (_initialize_machoread): Use "(void)".
5692 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5693 use "(void)".
5694
44d100c3
TT
56952013-07-01 Tom Tromey <tromey@redhat.com>
5696
5697 * configure.ac (build_warnings): Add -Wold-style-declaration.
5698 * configure: Rebuild.
5699 * dsrec.c (make_srec): Use "static const", not "const static".
5700 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5701 not "const static".
5702 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5703 Use "static const", not "const static".
5704 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5705 not "const static".
5706 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5707 not "const static".
5708 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5709 not "const static".
5710 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5711 not "const static".
5712 (v850_dbtrap_breakpoint_from_pc): Likewise.
5713 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5714 not "const static".
5715
2945b807
TT
57162013-07-01 Tom Tromey <tromey@redhat.com>
5717
5718 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5719 * configure: Rebuild.
5720
d8d2a3ee
PA
57212013-07-01 Pedro Alves <palves@redhat.com>
5722
5723 * defs.h: Include "pathmax.h".
5724 * utils.c: Don't include sys/param.h.
5725 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5726 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5727 instead of MAXPATHLEN.
5728 * solib-sunos.c: Don't include sys/param.h.
5729 * xcoffread.c: Don't include sys/param.h.
5730 * bsd-kvm.c: Don't include sys/param.h.
5731 * darwin-nat.c: Don't include sys/param.h.
5732 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5733 * darwin-nat-info.c: Don't include sys/param.h.
5734 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5735 MAXPATHLEN.
5736 * i386obsd-nat.c: Don't include sys/param.h.
5737 * inf-child.c: Don't include sys/param.h.
5738 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5739 * linux-fork.c: Don't include sys/param.h.
5740 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5741 * linux-nat.c: Don't include sys/param.h.
5742 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5743 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5744 * m68klinux-nat.c: Don't include sys/param.h.
5745 * nbsd-nat.c: Don't include sys/param.h.
5746 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5747 * ppc-linux-nat.c: Don't include sys/param.h.
5748 * rs6000-nat.c: Don't include sys/param.h.
5749 * spu-linux-nat.c. Don't include sys/param.h.
5750 * windows-nat.c: Don't include sys/param.h.
5751 * xtensa-linux-nat.c: Don't include sys/param.h.
5752 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5753
38ec2207
PA
57542013-07-01 Pedro Alves <palves@redhat.com>
5755
5756 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5757 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5758 * gnulib/aclocal.m4: Regenerate.
5759 * gnulib/config.in: Regenerate.
5760 * gnulib/configure: Regenerate.
5761 * gnulib/import/pathmax.h: New file.
5762 * gnulib/import/Makefile.am: Regenerate.
5763 * gnulib/import/Makefile.in: Regenerate.
5764 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5765 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5766 * gnulib/import/m4/pathmax.m4: New file.
5767
e655c1a2
PA
57682013-07-01 Pedro Alves <palves@redhat.com>
5769
5770 * configure.ac (GDBINIT): Define, depending on host.
5771 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5772 * top.c (PATH_MAX): Delete fallback definition.
5773 (GDBINIT_FILENAME): Delete.
5774 (gdbinit): Reimplement as const char array set to the GDBINIT
5775 string constant.
5776 * top.h (gdbinit): Make const.
5777 * configure, config.in: Regenerate.
5778
50dd9793
PA
57792013-07-01 Pedro Alves <palves@redhat.com>
5780
5781 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5782 * cli/cli-cmds.h (source_script): Likewise.
5783 * exceptions.c (catch_command_errors_const): New function.
5784 * exceptions.h (catch_command_errors_const): Declare.
5785 * main.c (get_init_files): Make parameters const, and adjust.
5786 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5787 'local_gdbinit' locals const. Adjust to use
5788 catch_command_errors_const.
5789 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5790 'local_gdbinit' locals const.
5791
bc7dea8d
PA
57922013-07-01 Pedro Alves <palves@redhat.com>
5793
5794 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5795 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5796 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5797 <unistd.h>.
5798
8839a007
PA
57992013-07-01 Pedro Alves <palves@redhat.com>
5800
5801 Import the "unistd" gnulib module.
5802 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5803 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5804 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5805 import/m4/unistd_h.m4.
5806 * gnulib/aclocal.m4: Renenerate.
5807 * gnulib/config.in: Renenerate.
5808 * gnulib/configure: Renenerate.
5809 * gnulib/import/Makefile.am: Renenerate.
5810 * gnulib/import/Makefile.in: Renenerate.
5811 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5812 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5813 * gnulib/import/m4/off_t.m4: New file.
5814 * gnulib/import/m4/ssize_t.m4: New file.
5815 * gnulib/import/m4/sys_types_h.m4: New file.
5816 * gnulib/import/m4/unistd_h.m4: New file.
5817 * gnulib/import/sys_types.in.h: New file.
5818 * gnulib/import/unistd.c: New file.
5819 * gnulib/import/unistd.in.h: New file.
5820
8c0da261
PA
58212013-07-01 Pedro Alves <palves@redhat.com>
5822
5823 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5824 defined instead of checking HAVE_UNISTD_H.
5825
3574124b
PA
58262013-07-01 Pedro Alves <palves@redhat.com>
5827
5828 Reimport gnulib from scratch.
5829 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5830 import/m4/onceonly.m4.
5831 * gnulib/aclocal.m4: Renegerate.
5832 * gnulib/config.in: Renegerate.
5833 * gnulib/configure: Renegerate.
5834 * gnulib/import/Makefile.in: Renegerate.
5835 * gnulib/import/extra/update-copyright: Renegerate.
5836 * gnulib/import/m4/onceonly.m4: Delete.
5837
702dc4fd
PA
58382013-07-01 Pedro Alves <palves@redhat.com>
5839
5840 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5841
47e1ce27
JK
58422013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 Code cleanup.
5845 * remote.c (async_remote_interrupt_twice): Make it static.
5846 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5847
e82839d4
SDJ
58482013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5849
5850 * ia64-linux-tdep.c: Include <ctype.h>.
5851 (ia64_linux_stap_is_single_operand): New function.
5852 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5853
d6c2da54
TT
58542013-06-28 Tom Tromey <tromey@redhat.com>
5855
5856 * Makefile.in (version.c): Use version.in, not
5857 common/version.in.
5858 * common/create-version.sh: Likewise.
5859 * common/version.in: Move...
5860 * version.in: ...here.
5861
74da6f00
PA
58622013-06-28 Pedro Alves <palves@redhat.com>
5863
5864 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5865 here.
5866 * utils.h (pagination_enabled): Declare.
5867
d32dc48e
PA
58682013-06-28 Pedro Alves <palves@redhat.com>
5869
5870 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5871 Move higher up in file.
5872
0edd9e3b
TT
58732013-06-28 Tom Tromey <tromey@redhat.com>
5874
5875 * tracepoint.c (deprecated_readline_begin_hook)
5876 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5877 declare.
5878
4eb59108
PA
58792013-06-28 Pedro Alves <palves@redhat.com>
5880
5881 PR tui/14880
5882 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5883 checking if they're available.
5884 * value.c (value_available_contents_eq): Change comment.
5885 * value.h (value_available_contents_eq): Expand comment.
5886
97b17156
TT
58872013-06-27 Tom Tromey <tromey@redhat.com>
5888
5889 * target.c (find_run_target): Remove.
5890 * target.h (find_run_target): Remove.
5891
6a3bfc5c
TT
58922013-06-27 Tom Tromey <tromey@redhat.com>
5893
5894 * corelow.c (core_gdbarch): Now static.
5895
c9ef825d
TT
58962013-06-27 Tom Tromey <tromey@redhat.com>
5897
5898 * target.c (target_struct_index): Remove.
5899
e5823f1c
PA
59002013-06-27 Pedro Alves <palves@redhat.com>
5901
5902 * infrun.c: Remove comment describing the 'stepping over runtime
5903 loader dynamic symbol resolution code' mechanism; moved to
5904 gdbint.texinfo.
5905
97f8dd09
PA
59062013-06-27 Pedro Alves <palves@redhat.com>
5907
5908 * exceptions.c (catch_command_errors): Remove spurious space.
5909 * exceptions.h (catch_command_errors): Second parameter is "arg",
5910 not "command".
5911
02b1871e
YQ
59122013-06-27 Yao Qi <yao@codesourcery.com>
5913
5914 * common/create-version.sh: Update comments. Handle the case
5915 that TARGET_ALIAS is empty.
5916
bb1b1cf1
PA
59172013-06-26 Pedro Alves <palves@redhat.com>
5918
5919 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5920 comment.
5921
7b624e71
PA
59222013-06-26 Pedro Alves <palves@redhat.com>
5923
5924 * infrun.c: Update comments on stepping over runtime loader
5925 dynamic symbol resolution code.
5926
74e5a346
SDJ
59272013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5928
5929 * ax-gdb.h (union exp_element): Forward declare.
5930 * parser-defs.h: Include expression.h.
5931
a2fb2cee
MR
59322013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5933
5934 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5935
cdba14e0
DK
59362013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5937
5938 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5939
f30aa5af
DK
59402013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5941
5942 Fix trace-status to output proper start-time and stop-time.
5943 * tracepoint.c (trace_status_command): Fix type of printf arg to
5944 prevent improper type conversion.
5945 (trace_status_mi): Likewise.
5946
1aee363c
MR
59472013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5948
5949 * mips-tdep.c (mips_next_pc): Fix a typo.
5950
3356937a
MR
59512013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5952
5953 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5954
dc673c81
YQ
59552013-06-26 Pedro Alves <pedro@codesourcery.com>
5956 Yao Qi <yao@codesourcery.com>
5957
5958 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5959 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5960 * mi/mi-main.c (print_variable_or_computed): New function.
5961 (mi_cmd_trace_frame_collected): New function.
5962 * tracepoint.c (find_trace_state_variable_by_number): New.
5963 (struct traceframe_info): Move to tracepoint.h
5964 (struct collection_list): Likewise.
5965 (do_collect_symbol): Include locals and arguments in the
5966 collected variables list.
5967 (clear_collection_list): Clear wholly collected variables list
5968 and computed variables list.
5969 (append_exp): New function.
5970 (encode_actions_1): Include variables in the wholly
5971 collected variables list. Include memory ranges and
5972 full-fledged expressions in the computed expressions list.
5973 (encode_actions): Move some code to ...
5974 Return the cleanup chain.
5975 (encode_actions_rsp): ... here. New function.
5976 (get_traceframe_location, get_traceframe_info): Remove static.
5977 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5978 (struct collection_list): Moved from tracepoint.c. Add two
5979 new fields 'wholly_collected' and 'computed'.
5980 (find_trace_state_variable_by_number): Declare.
5981 (encode_actions): Adjust declaration.
5982 (encode_actions_rsp): Declare.
5983 (get_traceframe_info, get_traceframe_location): Declare.
5984
5985 * NEWS: Mention new MI command -trace-frame-collected.
5986
28a93511
YQ
59872013-06-26 Pedro Alves <pedro@codesourcery.com>
5988 Yao Qi <yao@codesourcery.com>
5989
5990 * ctf.c (ctf_traceframe_info): Push trace state variables
5991 present in the trace data into the traceframe info object.
5992 * breakpoint.c (DEF_VEC_I): Remove.
5993 * common/filestuff.c (DEF_VEC_I): Likewise.
5994 * dwarf2loc.c (DEF_VEC_I): Likewise.
5995 * mi/mi-main.c (DEF_VEC_I): Likewise.
5996 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5997 * features/traceframe-info.dtd: Add tvar element and its
5998 attributes.
5999 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6000 (build_traceframe_info): Push trace state variables present in
6001 the trace data into the traceframe info object.
6002 (traceframe_info_start_tvar): New function.
6003 (tvar_attributes): New.
6004 (traceframe_info_children): Add "tvar" element.
6005 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6006
6007 * NEWS: Mention the change in GDB and GDBserver.
6008
ddacd3c8
YQ
60092013-06-26 Pedro Alves <pedro@codesourcery.com>
6010 Yao Qi <yao@codesourcery.com>
6011
6012 * tracepoint.c (trace_dump_command): Move code to ...
6013 (get_traceframe_location): ... here. New.
6014
05796b35
YQ
60152013-06-26 Pedro Alves <pedro@codesourcery.com>
6016 Yao Qi <yao@codesourcery.com>
6017
6018 * tracepoint.c (trace_dump_command): GDB emits an error
6019 instead of a warning when a traceframe is not selected.
6020
cbfa3b61
YQ
60212013-06-26 Pedro Alves <pedro@codesourcery.com>
6022 Yao Qi <yao@codesourcery.com>
6023
6024 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6025 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6026 in collection_list.
6027 (do_clear_collection_list, init_collection_list): New.
6028 (encode_actions): Add local variables 'tracepoint_list' and
6029 'stepping_list'. Call init_collection_list and make cleanup
6030 which calls do_clear_collection_list. Don't call
6031 clear_collection_list.
6032 (_initialize_tracepoint): Delete references to
6033 'tracepoint_list' and 'stepping_list'.
6034
6e2048d3
TT
60352013-06-25 Tom Tromey <tromey@redhat.com>
6036
6037 * common/create-version.sh (date): Use "$", not "$$" in sed
6038 expression.
6039
42059f0e
KB
60402013-06-25 Kevin Buettner <kevinb@redhat.com>
6041
6042 * NEWS (New targets): Add entry for TI MSP430.
6043
a0743c90
YQ
60442013-06-25 Yao Qi <yao@codesourcery.com>
6045
6046 * remote.c (remote_start_remote): Move code to upload tsv
6047 earlier.
6048
9d6e6e84
HZ
60492013-06-25 Yao Qi <yao@codesourcery.com>
6050 Hui Zhu <hui@codesourcery.com>
6051 Pedro Alves <palves@redhat.com>
6052
6053 PR breakpoints/15075
6054 PR breakpoints/15434
6055 * breakpoint.c (bpstat_stop_status): Call
6056 b->ops->after_condition_true.
6057 (update_dprintf_command_list): Don't append "continue" command
6058 to the command list of dprintf breakpoint.
6059 (base_breakpoint_after_condition_true): New function.
6060 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6061 (dprintf_after_condition_true): New function.
6062 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6063 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6064
586cf749
KB
60652013-06-24 Kevin Buettner <kevinb@redhat.com>
6066
6067 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6068 (ALLDEPFILES): Add msp430-tdep.c.
6069 * configure.tgt (msp430*-*-elf): New target.
6070 * msp430-tdep.c: New file.
6071
1bbce132
MR
60722013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6073
6074 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6075 microMIPS synthetic symbols.
6076
3e5d3a5a
MR
60772013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6078
6079 * objfiles.h (pc_in_section): New prototype.
6080 (in_plt_section): Remove name argument, replace prototype with
6081 static inline function.
6082 * mips-tdep.h: Include "objfiles.h".
6083 (in_mips_stubs_section): New function.
6084 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6085 in_solib_call_trampoline member.
6086 (hppa_in_solib_call_trampoline): Remove name argument.
6087 * objfiles.c (pc_in_section): New function.
6088 (in_plt_section): Remove function.
6089 * mips-linux-tdep.c: Include "objfiles.h".
6090 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6091 name argument. Return 1 rather than the low 16-bit halfword of
6092 any instruction examined.
6093 (mips_linux_in_dynsym_resolve_code): Update
6094 mips_linux_in_dynsym_stub call accordingly.
6095 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6096 rather than an equivalent hand-coded sequence.
6097 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6098 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6099 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6100 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6101 in_opd_section.
6102 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6103 on call to tdep->in_solib_call_trampoline.
6104 (hppa_in_solib_call_trampoline): Remove name argument, update
6105 according to in_plt_section change.
6106 (hppa_skip_trampoline_code): Update according to in_plt_section
6107 change.
6108 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6109 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6110 Likewise.
6111 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6112 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6113 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6114 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6115 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6116 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6117 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6118 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6119 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6120 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6121 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6122 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6123 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6124
b9b26a16
JB
61252013-06-24 Joel Brobecker <brobecker@adacore.com>
6126
6127 * common/create-version.sh: Fix expansion of $host_alias
6128 and $target_alias in generation of HOST_NAME and TARGET_NAME
6129 (resp.).
6130
01208463
TT
61312013-06-24 Tom Tromey <tromey@redhat.com>
6132
6133 * common/create-version.sh: New file.
6134 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6135 create-version.sh.
6136 (HFILES_NO_SRCDIR): Use common/version.h.
6137 * version.in: Move to ...
6138 * common/version.in: ... here. Replace date with "DATE".
6139 * version.h: Move to ...
6140 * common/version.h: ... here.
6141
bb6b9a5e
JB
61422013-06-21 Joel Brobecker <brobecker@adacore.com>
6143
6144 * gdb/gnulib/Makefile.in: Update date in copyright header.
6145 * gdb/gnulib/configure.ac: Ditto.
6146 * gdb/gnulib/update-gnulib.sh: Ditto.
6147
c3b18ee7
JB
61482013-06-21 Joel Brobecker <brobecker@adacore.com>
6149
6150 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6151 "gdb/gnulib/import".
6152
85d3b769
WN
61532013-06-21 Will Newton <will.newton@linaro.org>
6154
6155 * doublest.c (ldfrexp): Remove function.
6156 (convert_doublest_to_floatformat): Call frexpl instead of
6157 ldfrexp.
6158
88b48903
WN
61592013-06-21 Will Newton <will.newton@linaro.org>
6160
6161 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6162 * gnulib/aclocal.m4: Regenerate.
6163 * gnulib/config.in: Regenerate.
6164 * gnulib/configure: Regenerate.
6165 * gnulib/import/Makefile.am: Update.
6166 * gnulib/import/Makefile.in: Update.
6167 * gnulib/import/m4/gnulib-cache.m4: Update.
6168 * gnulib/import/m4/gnulib-comp.m4: Update.
6169 * gnulib/import/float+.h: Import.
6170 * gnulib/import/float.c: Import.
6171 * gnulib/import/float.in.h: Import.
6172 * gnulib/import/fpucw.h: Import.
6173 * gnulib/import/frexp.c: Import.
6174 * gnulib/import/frexpl.c: Import.
6175 * gnulib/import/isnan.c: Import.
6176 * gnulib/import/isnand-nolibm.h: Import.
6177 * gnulib/import/isnand.c: Import.
6178 * gnulib/import/isnanl-nolibm.h: Import.
6179 * gnulib/import/isnanl.c: Import.
6180 * gnulib/import/itold.c: Import.
6181 * gnulib/import/m4/exponentd.m4: Import.
6182 * gnulib/import/m4/exponentl.m4: Import.
6183 * gnulib/import/m4/float_h.m4: Import.
6184 * gnulib/import/m4/fpieee.m4: Import.
6185 * gnulib/import/m4/frexp.m4: Import.
6186 * gnulib/import/m4/frexpl.m4: Import.
6187 * gnulib/import/m4/isnand.m4: Import.
6188 * gnulib/import/m4/isnanl.m4: Import.
6189 * gnulib/import/m4/math_h.m4: Import.
6190 * gnulib/import/math.c: Import.
6191 * gnulib/import/math.in.h: Import.
6192
4353c9e6
JK
61932013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6196 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6197 signature_INTEL_edx comparisons.
6198
e3e06db3
DE
61992013-06-20 Doug Evans <dje@google.com>
6200
6ac97d4c
DE
6201 symtab/15652
6202 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6203 All callers updated.
6204 (open_dwp_file): If we can't find the dwp file, search the basename
6205 in debug-file-directory.
6206
93417882
DE
6207 * dwarf2read.c (struct dwp_file): Fix comment.
6208 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6209
e3e06db3
DE
6210 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6211 better.
6212
0878d0fa
YQ
62132013-06-20 Yao Qi <yao@codesourcery.com>
6214
6215 * breakpoint.c (create_breakpoint): Fix code indentation.
6216
023fa29b
YQ
62172013-06-20 Yao Qi <yao@codesourcery.com>
6218
6219 * breakpoint.c (create_breakpoints_sal_default): Remove
6220 parameter 'lsal'. Update declaration.
6221 (bkpt_create_breakpoints_sal): Caller update.
6222 (tracepoint_create_breakpoints_sal): Likewise.
6223
c898adb7
YQ
62242013-06-20 Pedro Alves <pedro@codesourcery.com>
6225 Yao Qi <yao@codesourcery.com>
6226
6227 * NEWS: Mention the new option '--skip-unavailable' of command
6228 -data-list-register-values.
6229 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6230 --skip-unavailable option. Adjust to use output_register.
6231 (output_register): Add new 'skip_unavailable' parameter.
6232 Handle it.
6233
4d157a3d
MF
62342013-06-19 Mike Frysinger <vapier@gentoo.org>
6235
6236 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6237 common/i386-gcc-cpuid.h.
6238 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6239 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6240 Copy the latest version from upstream gcc.
6241 * common/linux-btrace.c: Include i386-cpuid.h.
6242 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6243 call to i386_cpuid.
6244 (cpu_supports_btrace): Likewise.
6245 * go32-nat.c: Include i386-cpuid.h.
6246 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6247
1ce4db08
DE
62482013-06-19 Doug Evans <dje@google.com>
6249
6250 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6251 (get_section_index): Ditto.
6252
0e4777df
TT
62532013-06-19 Tom Tromey <tromey@redhat.com>
6254
6255 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6256 "dprintf" help.
6257
3190f0c6
DE
62582013-06-18 Doug Evans <dje@google.com>
6259
6260 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6261 before using it.
6262 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6263 Move test of cu_index closer to use. Print complaint if cu_index
6264 is bad.
6265
8b89a20a
JB
62662013-06-18 Joel Brobecker <brobecker@adacore.com>
6267
6268 * machoread.c (oso_vector): Delete this global.
6269 (macho_register_oso): Add new parameter "oso_vector_ptr".
6270 Use it instead of the "oso_vector" global.
6271 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6272 (macho_symfile_read): Use a local oso_vector, to be free'ed
6273 at the end of this function, in place of the old "oso_vector"
6274 global. Update various function calls accordingly. Use one
6275 single cleanup chain for the entire function.
6276
59b0c7c1
JB
62772013-06-18 Joel Brobecker <brobecker@adacore.com>
6278
937c708c 6279 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
6280 DWARF2_PER_OBJFILE by uses of DATA instead.
6281
427cd150
TT
62822013-06-18 Tom Tromey <tromey@redhat.com>
6283
6284 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6285 argument.
6286 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6287 Special case signals other than GDB_SIGNAL_TRAP.
6288 (explains_signal_watchpoint): New function.
6289 (base_breakpoint_explains_signal): Add 'sig' argument.
6290 (initialize_breakpoint_ops): Set 'explains_signal' method for
6291 watchpoints.
6292 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6293 signal argument.
6294 (bpstat_explains_signal): Likewise.
6295 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6296
2d57700b
TT
62972013-06-18 Tom Tromey <tromey@redhat.com>
6298
6299 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6300
ac475191
TT
63012013-06-18 Tom Tromey <tromey@redhat.com>
6302
6303 * python/python.c (finish_python_initialization): Decref
6304 'pythondir' on failure path as well.
6305
5bd1ef56
TT
63062013-06-18 Tom Tromey <tromey@redhat.com>
6307
6308 PR symtab/15391:
6309 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6310 after taking bits_to_skip into account. Sign extend byte_offset.
6311 * utils.h (gdb_sign_extend): Declare.
6312 * utils.c (gdb_sign_extend): New function.
6313
92fac807
JK
63142013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6317
2d503272
PM
63182013-06-17 Pierre Muller <muller@sourceware.org>
6319
6320 * corelow.c (core_open): Print GDB signal name instead of target
6321 signal number.
6322
6916fd98
MF
63232013-06-17 Mike Frysinger <vapier@gentoo.org>
6324
6325 * .gitignore: Add /gcore.
6326
9c02c129
DE
63272013-06-13 Doug Evans <dje@google.com>
6328
6329 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6330 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6331
d0548fa2
PM
63322013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6333
6334 * stack.c (backtrace_command_1): Fix indentation.
6335
22128028
JB
63362013-06-11 Joel Brobecker <brobecker@adacore.com>
6337
6338 * window-nat.c (thread_rec): Add missing empty line after
6339 local variable declaration.
6340
2ed3e009
JB
63412013-06-11 Joel Brobecker <brobecker@adacore.com>
6342
6343 * windows-nat.c (thread_rec): Revert format used to print
6344 error code returned by SuspendThread from %d back to %u.
6345
0c3d84be
JB
63462013-06-11 Joel Brobecker <brobecker@adacore.com>
6347
6348 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6349 ID in debug trace.
6350 (get_windows_debug_event): Likewise, for all debug traces.
6351
80e88e1a
JB
63522013-06-11 Joel Brobecker <brobecker@adacore.com>
6353
6354 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6355 warning message.
6356
1edebdbf
YQ
63572013-06-08 Pedro Alves <pedro@codesourcery.com>
6358 Yao Qi <yao@codesourcery.com>
6359
6360 * mi/mi-main.c (get_register): Remove declaration.
6361 (output_register): Declare.
6362 (mi_cmd_data_list_register_values): Remove local variable
6363 'tuple_cleanup'. Move some code into output_register.
6364 (get_register): Renamed to ...
6365 (output_register): ... this. Output the register's
6366 "number" ui_out tuple here.
6367
47d48711
PA
63682013-06-07 Pedro Alves <palves@redhat.com>
6369
6370 * darwin-nat.c: Fix formating in copyright header.
6371 * darwin-nat.h: Likewise.
6372 * gnu-nat.c: Likewise.
6373 * machoread.c: Likewise.
6374
3aee8918
PA
63752013-06-07 Pedro Alves <palves@redhat.com>
6376
5f2b57b5 6377 PR server/14823
3aee8918
PA
6378 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6379 static. Output a global target description pointer.
6380 (init_registers_${name}): Adjust to initialize a
6381 target description structure.
6382
fe8400b4
WN
63832013-06-07 Will Newton <will.newton@linaro.org>
6384
6385 * printcmd.c (build_address_symbolic): Call
6386 gdbarch_addr_bits_remove for text minimal symbols.
6387
20df6206
WN
63882013-06-07 Will Newton <will.newton@linaro.org>
6389
6390 * MAINTAINERS: Add myself to Write After Approval.
6391
aef525cb
YQ
63922013-06-07 Yao Qi <yao@codesourcery.com>
6393
6394 * tracepoint.c (start_tracing): Move code to ...
6395 (trace_reset_local_state): ... here. New.
6396 (disconnect_tracing): Don't call set_current_traceframe,
6397 set_tracepoint_num, and set_traceframe_context. Call
6398 trace_reset_local_state instead.
6399 (tfile_close): Call trace_reset_local_state.
6400 * ctf.c (ctf_close): Likewise.
6401 * remote.c (remote_close): Likewise.
6402 * tracepoint.h (trace_reset_local_state): Declare.
6403
d2415c6c
DE
64042013-06-06 Doug Evans <dje@google.com>
6405
6406 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6407 and fix header docs.
6408
69fc87c2
DE
64092013-06-05 Doug Evans <dje@google.com>
6410 Keith Seitz <keiths@redhat.com>
6411
6412 PR 15519
6413 * cp-namespace.c (find_symbol_in_baseclass): Call
6414 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6415 Check result of call to lookup_symbol_static.
6416 Call lookup_static_symbol_aux unconditionally.
6417 Call check_typedef on base types before accessing them.
6418 (cp_lookup_nested_symbol): Fix comment.
6419
a513d1e8
LM
64202013-06-05 Luis Machado <lgustavo@codesourcery.com>
6421
6422 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6423 minimal symbols pointing to function descriptors.
6424
351a6f02
TT
64252013-06-05 Tom Tromey <tromey@redhat.com>
6426
6427 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6428
5e1b953b 64292013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6430 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6431
6432 * remote.c (remote_wait_as): Restore signal handler before returning
6433 when GDB gets a notification.
6434
f9e14852
GB
64352013-06-04 Gary Benson <gbenson@redhat.com>
6436
8445cbf1 6437 PR 2328
f9e14852
GB
6438 * breakpoint.h (handle_solib_event): Moved function declaration
6439 to solib.h.
6440 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6441 (bpstat_stop_status): Pass new argument to handle_solib_event.
6442 * solib.h (update_solib_breakpoints): New function declaration.
6443 (handle_solib_event): Moved function declaration from
6444 breakpoint.h.
6445 * solib.c (update_solib_breakpoints): New function.
6446 (handle_solib_event): Moved function from breakpoint.c.
6447 Updated to call solib_ops->handle_event if not NULL.
6448 * solist.h (target_so_ops): New fields "update_breakpoints" and
6449 "handle_event".
6450 * infrun.c (set_stop_on_solib_events): New function.
6451 (_initialize_infrun): Use the above for "set
6452 stop-on-solib-events".
6453 (handle_inferior_event): Pass new argument to handle_solib_event.
6454 * solib-svr4.c (probe.h): New include.
6455 (svr4_free_library_list): New forward declaration.
6456 (probe_action): New enum.
6457 (probe_info): New struct.
6458 (probe_info): New static variable.
6459 (NUM_PROBES): New definition.
6460 (svr4_info): New fields "using_xfer", "probes_table" and
6461 "solib_list".
6462 (free_probes_table): New function.
6463 (free_solib_list): New function.
6464 (svr4_pspace_data_cleanup): Free probes table and solib list.
6465 (svr4_copy_library_list): New function.
6466 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6467 (svr4_read_so_list): New parameter "prev_lm".
6468 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6469 (svr4_current_sos): New function.
6470 (probe_and_action): New struct.
6471 (hash_probe_and_action): New function.
6472 (equal_probe_and_action): Likewise.
6473 (register_solib_event_probe): Likewise.
6474 (solib_event_probe_at): Likewise.
6475 (solib_event_probe_action): Likewise.
6476 (solist_update_full): Likewise.
6477 (solist_update_incremental): Likewise.
6478 (disable_probes_interface_cleanup): Likewise.
6479 (svr4_handle_solib_event): Likewise.
6480 (svr4_update_solib_event_breakpoint): Likewise.
6481 (svr4_update_solib_event_breakpoints): Likewise.
6482 (svr4_create_solib_event_breakpoints): Likewise.
6483 (enable_break): Free probes table before creating breakpoints.
6484 Use svr4_create_solib_event_breakpoints to create breakpoints.
6485 (svr4_solib_create_inferior_hook): Free the solib list.
6486 (_initialize_svr4_solib): Initialise
6487 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6488
ced63ec0
GB
64892013-06-04 Gary Benson <gbenson@redhat.com>
6490
6491 * target.h (target_ops): New field
6492 "to_augmented_libraries_svr4_read".
6493 (target_augmented_libraries_svr4_read): New macro.
6494 * target.c (update_current_target): Handle
6495 to_augmented_libraries_svr4_read.
6496 * remote.c (remote_state): New field
6497 "augmented_libraries_svr4_read".
6498 (remote_augmented_libraries_svr4_read_feature): New function.
6499 (remote_protocol_features): Add entry for
6500 "augmented-libraries-svr4-read".
6501 (remote_augmented_libraries_svr4_read): New function.
6502 (init_remote_ops): Initialize
6503 remote_ops.to_augmented_libraries_svr4_read.
6504
7f91dbec
GB
65052013-06-04 Gary Benson <gbenson@redhat.com>
6506
6507 * NEWS: Update.
6508
607ece04
GB
65092013-06-04 Gary Benson <gbenson@redhat.com>
6510
6511 * objfiles.h (inhibit_section_map_updates): New function
6512 declaration.
6513 (resume_section_map_updates): Likewise.
6514 (resume_section_map_updates_cleanup): Likewise.
6515 * objfiles.c (objfile_pspace_info): Removed field
6516 "objfiles_changed_p". New fields "new_objfiles_available",
6517 "section_map_dirty" and "inhibit_updates".
6518 (allocate_objfile): Set new_objfiles_available.
6519 (free_objfile): Set section_map_dirty.
6520 (objfile_relocate1): Likewise.
6521 (in_plt_section): Likewise.
6522 (find_pc_section): Update the conditions under which the
6523 section map will be updated.
6524 (inhibit_section_map_updates): New function.
6525 (resume_section_map_updates): Likewise.
6526 (resume_section_map_updates_cleanup): Likewise.
6527
9ee6a5ac
GB
65282013-06-04 Gary Benson <gbenson@redhat.com>
6529
6530 * probe.h (get_probe_argument_count): New declaration.
6531 (evaluate_probe_argument): Likewise.
6532 * probe.c (get_probe_argument_count): New function.
6533 (evaluate_probe_argument): Likewise.
6534 (probe_safe_evaluate_at_pc): Use the above new functions.
6535
845d4708
AM
65362013-06-04 Alan Modra <amodra@gmail.com>
6537
6538 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6539 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6540 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6541 target mem reads on optional insns.
6542 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6543 ppc_insns_match_pattern calls.
6544 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6545 Add match for power7 thread safety insns, and new order of
6546 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6547 invocation in comment, and update rest of comment.
6548 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6549 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6550 (ppc64_standard_linkage2_target): Update insn offsets.
6551 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6552 stubs first. Update calls.
6553
404e278f
YQ
65542013-06-04 Yao Qi <yao@codesourcery.com>
6555
6556 * solib.c (solib_find): Don't need dir separator if path has
6557 drive spec.
6558
f6aea118
JB
65592013-06-03 Joel Brobecker <brobecker@adacore.com>
6560
6561 Revert (indirectly causes a SIGSEGV):
6562 * machoread.c (macho_symfile_read): Assign first cleanup to
6563 'back_to'.
6564
87967e27
YQ
65652013-06-03 Yao Qi <yao@codesourcery.com>
6566
6567 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6568 mi-parse.c. Make them static.
6569 (mi_all_values): Likewise.
6570 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6571 mi_parse_print_values. Make it external.
6572 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6573 Remove the declarations.
6574 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6575 * mi/mi-parse.h (mi_parse_print_values): Declare.
6576 * mi/mi-cmd-stack.c: Include mi-parse.h.
6577 (parse_print_values): Remove
6578 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6579 of parse_print_values.
6580 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6581
3ca73e0c
YQ
65822013-05-31 Pedro Alves <pedro@codesourcery.com>
6583 Yao Qi <yao@codesourcery.com>
6584
6585 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6586 (encode_actions): Move code to ...
6587 (all_tracepoint_actions_and_cleanup): ... here. New.
6588 (trace_dump_command): Likewise.
6589
4e993a19
TT
65902013-05-30 Tom Tromey <tromey@redhat.com>
6591
6592 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6593
e3b76b4f
TT
65942013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6597 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6598 'old_chain' argument. Add 'parser_result' argument.
6599 (gdb_xml_create_parser_and_cleanup): Remove old version.
6600 (gdb_xml_parse_quick): Update.
6601 (xml_process_xincludes): Update.
6602 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6603 declare.
6604
db26349c
TT
66052013-05-30 Tom Tromey <tromey@redhat.com>
6606
6607 * probe.c (collect_probes): Check arguments for NULL before
6608 calling compile_rx_or_error.
6609 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6610 Remove NULL return.
6611
77f9e713
TT
66122013-05-30 Tom Tromey <tromey@redhat.com>
6613
6614 * infrun.c (adjust_pc_after_break): Introduce an outer null
6615 cleanup.
6616
45475de7
TT
66172013-05-30 Tom Tromey <tromey@redhat.com>
6618
6619 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6620
ac5007fd
TT
66212013-05-30 Tom Tromey <tromey@redhat.com>
6622
6623 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6624 for 'old_chain'. Do not check 'head' before processing
6625 cleanups.
6626
cd82eddc
TT
66272013-05-30 Tom Tromey <tromey@redhat.com>
6628
6629 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6630 "cleanup_tuple".
6631
57cee33a
TT
66322013-05-30 Tom Tromey <tromey@redhat.com>
6633
6634 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6635 inner scope. Unconditionally call do_cleanups.
6636
795d915c
TT
66372013-05-30 Tom Tromey <tromey@redhat.com>
6638
6639 * source.c (find_and_open_source): Call do_cleanups.
6640
1fc3cf4a
TT
66412013-05-30 Tom Tromey <tromey@redhat.com>
6642
6643 * linux-thread-db.c (thread_db_load_search): Unconditionally
6644 call do_cleanups.
6645
e35ac9bf
TT
66462013-05-30 Tom Tromey <tromey@redhat.com>
6647
6648 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6649 for 'cleanup'; instead use a later one.
6650
f3300387
TT
66512013-05-30 Tom Tromey <tromey@redhat.com>
6652
6653 * python/py-breakpoint.c (bppy_get_commands): Use
6654 explicit, unconditional return.
6655 * python/py-frame.c (frapy_read_var): Likewise.
6656 * python/python.c (gdbpy_decode_line): Likewise.
6657
c27e16e3
TT
66582013-05-30 Tom Tromey <tromey@redhat.com>
6659
6660 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6661 do_cleanups on all return paths.
6662
5ae85e44
TT
66632013-05-30 Tom Tromey <tromey@redhat.com>
6664
6665 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6666
73b8d9da
TT
66672013-05-30 Tom Tromey <tromey@redhat.com>
6668
6669 * stabsread.c (read_struct_type): Call do_cleanups along
6670 all return paths.
6671
7d266584
MR
66722013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6673
6674 * mips-linux-tdep.c: Adjust formatting throughout.
6675
0f900f54
TT
66762013-05-30 Tom Tromey <tromey@redhat.com>
6677
6678 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6679 along all return paths.
6680
a991ac28
TT
66812013-05-30 Tom Tromey <tromey@redhat.com>
6682
6683 * symfile.c (find_separate_debug_file): Call do_cleanups
6684 along all return paths.
6685
1abaf042
TT
66862013-05-30 Tom Tromey <tromey@redhat.com>
6687
6688 * symtab.c (search_symbols): Introduce a null cleanup for
6689 'retval_chain'.
6690
edefe1da
TT
66912013-05-30 Tom Tromey <tromey@redhat.com>
6692
6693 * python/py-value.c (valpy_binop): Call do_cleanups before
6694 exiting loop.
6695
54f72dcc
TT
66962013-05-30 Tom Tromey <tromey@redhat.com>
6697
6698 * python/py-prettyprint.c (print_children): Remove extra
6699 do_cleanups call.
6700
af1c6971
TT
67012013-05-30 Tom Tromey <tromey@redhat.com>
6702
6703 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6704 all return paths.
6705
b862ce75
TT
67062013-05-30 Tom Tromey <tromey@redhat.com>
6707
6708 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6709 along all return paths.
6710
e12fefc8
TT
67112013-05-30 Tom Tromey <tromey@redhat.com>
6712
6713 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6714 call do_cleanups.
6715
4867f990
TT
67162013-05-30 Tom Tromey <tromey@redhat.com>
6717
6718 * varobj.c (c_value_of_root): Call do_cleanups along all
6719 return paths.
6720
4fd2d6af
TT
67212013-05-30 Tom Tromey <tromey@redhat.com>
6722
6723 * tracepoint.c (trace_dump_command): Unconditionally call
6724 do_cleanups.
6725
752eb8b4
TT
67262013-05-30 Tom Tromey <tromey@redhat.com>
6727
6728 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6729 do_cleanups earlier.
6730
e42d0aa5
TT
67312013-05-30 Tom Tromey <tromey@redhat.com>
6732
6733 * machoread.c (macho_symfile_read): Assign first cleanup to
6734 'back_to'.
6735
4bbc010a
TT
67362013-05-30 Tom Tromey <tromey@redhat.com>
6737
6738 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6739
b9635925
TT
67402013-05-30 Tom Tromey <tromey@redhat.com>
6741
6742 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6743
25f43500
TT
67442013-05-30 Tom Tromey <tromey@redhat.com>
6745
6746 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6747 call discard_cleanups.
6748 (inf_ptrace_attach): Likewise.
6749
d6a2e54a
TT
67502013-05-30 Tom Tromey <tromey@redhat.com>
6751
6752 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6753 return paths.
6754 (mips_initialize): Likewise.
6755 (common_open): Call do_cleanups.
6756
48be7c1b
TT
67572013-05-30 Tom Tromey <tromey@redhat.com>
6758
6759 * utils.c (internal_vproblem): Call do_cleanups.
6760
e61727ab
TT
67612013-05-30 Tom Tromey <tromey@redhat.com>
6762
6763 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6764
b81b921f
TT
67652013-05-30 Tom Tromey <tromey@redhat.com>
6766
6767 * cli/cli-script.c (setup_user_args): Don't return after error.
6768
fe48dfb1
TT
67692013-05-30 Tom Tromey <tromey@redhat.com>
6770
6771 * somread.c (som_symtab_read): Call do_cleanups.
6772
27833de7
TT
67732013-05-30 Tom Tromey <tromey@redhat.com>
6774
6775 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6776
5b3fca71
TT
67772013-05-30 Tom Tromey <tromey@redhat.com>
6778
6779 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6780 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6781 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6782 * source.c (show_substitute_path_command): Call do_cleanups.
6783 (unset_substitute_path_command, set_substitute_path_command):
6784 Likewise.
6785 * symfile.c (load_command): Call do_cleanups.
6786
af83e3f8
TT
67872013-05-30 Tom Tromey <tromey@redhat.com>
6788
6789 * contrib/cleanup_check.py: New file.
6790 * contrib/gcc-with-excheck: Add option parsing.
6791
564eac42
JB
67922013-05-30 Joel Brobecker <brobecker@adacore.com>
6793
6794 * windows-nat.c (windows_delete_thread): Add missing space
6795 in cast expression.
6796
47902076
HAQ
67972013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6798
6799 * inferior.c (top level): Include tilde.h.
6800 (add_inferior_command): Call tilde_expand on the value of 'exec'
6801 argument.
6802
23da373a
YQ
68032013-05-30 Pedro Alves <pedro@codesourcery.com>
6804 Yao Qi <yao@codesourcery.com>
6805
6806 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6807 Caller update.
6808 (encode_actions): Likewise.
6809 * remote.c (remote_download_tracepoint): Caller update.
6810 * tracepoint.h (encode_actions): Update declaration.
6811
a6e6f791
PA
68122013-05-30 Pedro Alves <palves@redhat.com>
6813
6814 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6815 pointer.
6816
36d25514
YQ
68172013-05-30 Yao Qi <yao@codesourcery.com>
6818
6819 * remote.c (remote_check_symbols): Remove unused parameter
6820 'objfile'.
6821 Declaration update.
6822 (remote_start_remote, remote_new_objfile): Caller update.
6823
62a813cc
YQ
68242013-05-30 Yao Qi <yao@codesourcery.com>
6825
6826 * mi/mi-cmds.c (mi_cmds): Define MI command
6827 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6828 DEF_MI_CMD_CLI.
6829
28439a30
PA
68302013-05-29 Pedro Alves <palves@redhat.com>
6831
6832 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6833 (remote_insert_watchpoint, remote_remove_watchpoint)
6834 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6835 (remote_verify_memory, compare_sections_command)
6836 (remote_search_memory): Set the general process/thread on the
6837 remote side.
6838
6ac1c082
PA
68392013-05-29 Pedro Alves <palves@redhat.com>
6840
6841 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6842 (_initialize_aarch64_tdep): Don't call
6843 initialize_tdesc_aarch64_without_fpu.
6844 * features/Makefile (WHICH): Remove reference to
6845 aarch64-without-fpu.
6846 * features/aarch64-without-fpu.c: Delete file.
6847 * regformats/aarch64-without-fpu.dat: Delete file.
6848
a73e3634
YQ
68492013-05-28 Yao Qi <yao@codesourcery.com>
6850
6851 * tracepoint.c (stringify_collection_list): Remove parameter
6852 'string'.
6853 (encode_actions): Caller update. Remove local variables.
6854
c0ea94eb
YQ
68552013-05-24 Yao Qi <yao@codesourcery.com>
6856
6857 * tracepoint.c (TFILE_PID): Remove.
6858 (tfile_open): Don't add thread and inferior.
6859 (tfile_close): Don't set 'inferior_ptid'. Don't call
6860 exit_inferior_silent.
6861 (tfile_thread_alive): Remove.
6862 (init_tfile_ops): Don't set field 'to_thread_alive' of
6863 tfile_ops.
6864
20d7f211
DE
68652013-05-23 Doug Evans <dje@google.com>
6866
6867 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6868
8658d16d
PA
68692013-05-23 Pedro Alves <palves@redhat.com>
6870
6871 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6872 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6873 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6874 Only define if HAVE_SOCKETS is defined.
6875 * configure.ac: Check for sys/socket.h.
6876 * config.in, configure: Regenerate.
6877
21aa081e
PA
68782013-05-23 Pedro Alves <palves@redhat.com>
6879
6880 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6881 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6882 printing uint32_t variables.
6883
c2d6af84
PA
68842013-05-23 Pedro Alves <palves@redhat.com>
6885
6886 * NEWS: Mention GDBserver range stepping support.
6887
c1e36e3e
PA
68882013-05-23 Yao Qi <yao@codesourcery.com>
6889 Pedro Alves <palves@redhat.com>
6890
6891 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6892 field.
6893 * infcmd.c (step_once, until_next_command): Enable range stepping.
6894 * infrun.c (displaced_step_prepare): Disable range stepping.
6895 (resume): Disable range stepping if stepping over a breakpoint or
6896 we have software watchpoints. If range stepping is enabled,
6897 assert the thread is in the stepping range.
6898 (clear_proceed_status_thread): Clear may_range_step.
6899 (handle_inferior_event): Disable range stepping as soon as we know
6900 the thread that hit the event. Re-enable it whenever we're going
6901 to step with a step range.
6902 * remote.c (struct vCont_action_support) <r>: New field.
6903 (use_range_stepping): New global.
6904 (remote_vcont_probe): Handle 'r' action.
6905 (append_resumption): Append an 'r' action if the thread may range
6906 step.
6907 (show_range_stepping): New function.
6908 (set_range_stepping): New function.
6909 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6910 'set range-stepping' and 'show range-stepping' commands.
6911 * NEWS: Mention range stepping, the new vCont;r action, and the
6912 new "set/show range-stepping" commands.
6913
d458bd84
PA
69142013-05-23 Yao Qi <yao@codesourcery.com>
6915 Pedro Alves <palves@redhat.com>
6916
6917 * remote.c (struct vCont_action_support): New struct.
6918 (struct remote_state) <support_vCont_t>: Remove field.
6919 <vCont_actions_support>: New field.
6920 (remote_vcont_probe, remote_stop_ns): Update.
6921
ce4c476a
PA
69222013-05-23 Yao Qi <yao@codesourcery.com>
6923 Pedro Alves <palves@redhat.com>
6924
6925 * gdbthread.h (pc_in_thread_step_range): New declaration.
6926 * thread.c (pc_in_thread_step_range): New function.
6927 * infrun.c (handle_inferior_event): Use it.
6928
ce70887a
JB
69292013-05-23 Joel Brobecker <brobecker@adacore.com>
6930
6931 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6932 of sprintf.
6933
55b87a52
KS
69342013-05-22 Keith Seitz <keiths@redhat.com>
6935
6936 * ada-lang.c (is_known_support_routine): Add explicit free of
6937 'func_name' from find_frame_funname.
6938 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6939 for func_name from find_frame_funname.
6940 * python/py-frame.c (frapy_name): Add explicit free of
6941 'name' from find_frame_funname.
6942 * stack.c (find_frame_funname): Add comment explaining that
6943 funcp must be freed by the caller.
6944 Return copy of symbol names instead of pointers.
6945 (print_frame): Add a cleanup for 'funname' from
6946 find_frame_funname.
6947 * stack.h (find_frame_funname): Remove "const" from
6948 'funname' parameter.
6949
5f2e6b00
TT
69502013-05-22 Tom Tromey <tromey@redhat.com>
6951
6952 PR c++/15401:
6953 * c-valprint.c (c_value_print): Use value_addr for
6954 references. Convert back to reference type with value_ref.
6955
d85c4847
EZ
69562013-05-22 Eli Zaretskii <eliz@gnu.org>
6957
6958 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6959 unloaded DLL, it will be done by handle_solib_event. See
6960 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6961 details.
6962
54eb231c
PM
69632013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6964
6965 * ui-out.c: Create typedef ui_out_level_p and define vector
6966 operations for that type.
6967 (struct ui_out): Use a vector instead of an array.
6968 (current_level): Return level from a vector.
6969 (push_level): Create a level in a vector.
6970 (pop_level): Delete a level in a vector.
6971 (ui_out_new): Create initial level zero level, and store in a
6972 vector.
6973 (ui_out_destroy): Add vector cleanup.
6974
ac90359c
PA
69752013-05-22 Pedro Alves <palves@redhat.com>
6976
6977 * python/python-internal.h (gdb_Py_DECREF): Tag with
6978 "ARI: editCase function".
6979
6dcc1893
PP
69802013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6981
6982 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6983
c8c735b9
PA
69842013-05-21 Pedro Alves <palves@redhat.com>
6985
6986 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6987 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6988 * python/py-utils.c (py_decref): Don't check for NULL before
6989 calling Py_DECREF.
6990
1915daeb
PA
69912013-05-21 Pedro Alves <palves@redhat.com>
6992
6993 * python/py-utils.c (py_decref): Remove extra braces.
6994 (gdb_pymodule_addobject): Remove extra braces.
6995 * python-internal.h (gdb_Py_DECREF): New static inline function.
6996 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6997
bd9673a4
PW
69982013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6999
7000 * breakpoints.c (detach_breakpoints): Do not
7001 detach breakpoints locations with loc_type bp_loc_other.
7002
ff6009d0
JK
70032013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 Workaround Python 2.6.
7006 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7007 a block.
7008
3641da11
JK
70092013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7010
7011 Code cleanup: constification.
7012 * solib.c (solib_ops): Make return type and ops variable type const.
7013 (set_solib_ops): Make the new_ops parameter and ops variable const.
7014 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7015 (solib_add, solib_keep_data_in_core, clear_solib)
7016 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7017 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7018 const.
7019 * solib.h (set_solib_ops): Make the new_ops parameter const.
7020
776af39e
JB
70212013-05-21 Joel Brobecker <brobecker@adacore.com>
7022
7023 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7024 variable.
7025 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7026 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7027 (SYSTEM_GDBINIT_FILES): New variables.
7028 (all): Add stamp-system-gdbinit.
7029 (stamp-system-gdbinit): New rule.
7030 (clean-system-gdbinit, install-system-gdbinit)
7031 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7032 (install-only): Add dependency on install-system-gdbinit.
7033 (uninstall): Add dependency on uninstall-system-gdbinit.
7034 (clean): Add dependency on clean-system-gdbinit.
7035 * system-gdbinit/elinos.py: New file.
7036 * system-gdbinit/wrs-linux.py: New file.
7037
1509e573
JB
70382013-05-21 Joel Brobecker <brobecker@adacore.com>
7039
7040 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7041
c5867ab6
HZ
70422013-05-21 Hui Zhu <hui@codesourcery.com>
7043
7044 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7045 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7046 * mi/mi-cmd-break.c (ctype.h): New include.
7047 (gdb_obstack.h): New include.
7048 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7049 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7050 (mi_cmd_dprintf_insert): New.
7051 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7052 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7053
7d38e38f
TT
70542013-05-20 Tom Tromey <tromey@redhat.com>
7055
7056 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7057
97b77b39
TT
70582013-05-20 Tom Tromey <tromey@redhat.com>
7059
7060 * python/py-value.c (valpy_get_dynamic_type): Simplify
7061 dynamic_type assignment. Use Py_XINCREF.
7062
53e66479
TT
70632013-05-20 Tom Tromey <tromey@redhat.com>
7064
7065 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7066
dcf87832
TT
70672013-05-20 Tom Tromey <tromey@redhat.com>
7068
7069 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7070 (gdbpy_selected_frame): Move object-construction code
7071 out of TRY_CATCH.
7072
aa36459a
TT
70732013-05-20 Tom Tromey <tromey@redhat.com>
7074
7075 * python/py-arch.c (gdbpy_initialize_arch): Use
7076 gdb_pymodule_addobject.
7077 * python/py-block.c (gdbpy_initialize_blocks): Use
7078 gdb_pymodule_addobject.
7079 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7080 gdb_pymodule_addobject.
7081 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7082 gdb_pymodule_addobject.
7083 * python/py-event.c (gdbpy_initialize_event_generic): Use
7084 gdb_pymodule_addobject.
7085 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7086 gdb_pymodule_addobject.
7087 * python/py-evts.c (add_new_registry): Use
7088 gdb_pymodule_addobject.
7089 (gdbpy_initialize_py_events): Likewise.
7090 * python/py-finishbreakpoint.c
7091 (gdbpy_initialize_finishbreakpoints): Use
7092 gdb_pymodule_addobject.
7093 * python/py-frame.c (gdbpy_initialize_frames): Use
7094 gdb_pymodule_addobject.
7095 * python/py-function.c (gdbpy_initialize_functions): Use
7096 gdb_pymodule_addobject.
7097 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7098 gdb_pymodule_addobject.
7099 * python/py-infthread.c (gdbpy_initialize_thread): Use
7100 gdb_pymodule_addobject.
7101 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7102 gdb_pymodule_addobject.
7103 * python/py-param.c (gdbpy_initialize_parameters): Use
7104 gdb_pymodule_addobject.
7105 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7106 gdb_pymodule_addobject.
7107 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7108 gdb_pymodule_addobject.
7109 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7110 gdb_pymodule_addobject.
7111 * python/py-type.c (gdbpy_initialize_types): Use
7112 gdb_pymodule_addobject.
7113 * python/py-utils.c (gdb_pymodule_addobject): New function.
7114 * python/py-value.c (gdbpy_initialize_values): Use
7115 gdb_pymodule_addobject.
7116 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7117 * python/python.c (_initialize_python): Use
7118 gdb_pymodule_addobject.
7119
3d4a3c3e
TT
71202013-05-20 Tom Tromey <tromey@redhat.com>
7121
7122 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7123 * python/py-param.c (get_set_value, get_show_value): Use
7124 explicit decrefs.
7125 * python/python.c (start_type_printers, apply_type_printers):
7126 Use explicit decrefs.
7127
72ff8829
TT
71282013-05-20 Tom Tromey <tromey@redhat.com>
7129
7130 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7131 incref the module.
7132
02146ba5
TT
71332013-05-20 Tom Tromey <tromey@redhat.com>
7134
7135 * python/python.c (gdbpy_run_events): Decref the result
7136 of PyObject_CallObject.
7137
33ee792f
TT
71382013-05-20 Tom Tromey <tromey@redhat.com>
7139
7140 * python/py-symtab.c (set_sal): Use
7141 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7142 (symtab_and_line_to_sal_object): Update.
7143
fcb49fc8
TT
71442013-05-20 Tom Tromey <tromey@redhat.com>
7145
7146 * python/py-param.c (compute_enum_values): Decref 'item'.
7147
0646da15
TT
71482013-05-20 Tom Tromey <tromey@redhat.com>
7149
7150 * mi/mi-main.c: Include python-internal.h.
7151 (mi_cmd_list_features): Check gdb_python_initialized.
7152 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7153 (python_inferior_exit, python_new_objfile, add_thread_object)
7154 (delete_thread_object, py_free_inferior): Check
7155 gdb_python_initialized.
7156 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7157 gdb_python_initialized.
7158 * python/py-type.c (save_objfile_types): Check
7159 gdb_python_initialized.
7160 * python/python-internal.h (gdb_python_initialized): Declare.
7161 * python/python.c (ensure_python_env): Throw exception if
7162 Python not initialized.
7163 (before_prompt_hook, source_python_script_for_objfile)
7164 (start_type_printers, apply_type_printers,
7165 free_type_printers): Check gdb_python_initialized.
7166 * varobj.c (varobj_get_display_hint)
7167 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7168 (install_new_value_visualizer, varobj_set_visualizer)
7169 (value_get_print_value): Check gdb_python_initialized.
7170
999633ed
TT
71712013-05-20 Tom Tromey <tromey@redhat.com>
7172
7173 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7174 Check errors.
7175 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7176 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7177 Check errors.
7178 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7179 Check errors.
7180 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7181 Check errors.
7182 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7183 Check errors.
7184 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7185 init function to return 'int'.
7186 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7187 Return 'int'. Check errors.
7188 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7189 Check errors.
7190 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7191 Return 'int'. Check errors.
7192 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7193 Check errors.
7194 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7195 Check errors.
7196 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7197 Check errors.
7198 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7199 Check errors.
7200 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7201 Check errors.
7202 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7203 Check errors.
7204 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7205 Check errors.
7206 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7207 Check errors.
7208 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7209 Check errors.
7210 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7211 Check errors.
7212 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7213 Check errors.
7214 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7215 Check errors.
7216 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7217 Check errors.
7218 * python/python-internal.h (gdbpy_initialize_auto_load,
7219 gdbpy_initialize_values, gdbpy_initialize_frames,
7220 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7221 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7222 gdbpy_initialize_blocks, gdbpy_initialize_types,
7223 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7224 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7225 gdbpy_initialize_finishbreakpoints,
7226 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7227 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7228 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7229 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7230 gdbpy_initialize_signal_event,
7231 gdbpy_initialize_breakpoint_event,
7232 gdbpy_initialize_continue_event,
7233 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7234 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7235 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7236 * python/python.c (gdb_python_initialized): New global.
7237 (gdbpy_initialize_events): Return 'int'. Check errors.
7238 (_initialize_python): Check errors. Set
7239 gdb_python_initialized.
7240
18868860
TT
72412013-05-20 Tom Tromey <tromey@redhat.com>
7242
7243 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7244 Decref the reslut of PyObject_CallMethod.
7245
9f4ff0c2
TT
72462013-05-20 Tom Tromey <tromey@redhat.com>
7247
7248 * python/py-event.c (gdbpy_initialize_event_generic): Return
7249 early if PyType_Ready fails.
7250
0d3a2e8a
TT
72512013-05-20 Tom Tromey <tromey@redhat.com>
7252
7253 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7254 as 'default' in the switch.
7255
b86af38a
TT
72562013-05-20 Tom Tromey <tromey@redhat.com>
7257
7258 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7259 get_addr_from_python calls out of TRY_CATCH.
7260 (infpy_write_memory, infpy_search_memory): Likewise.
7261 * python/py-utils.c (get_addr_from_python): Return negative
7262 value on error. Use TRY_CATCH.
7263 * python/python-internal.h (get_addr_from_python): Use
7264 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7265
c127ec58
TT
72662013-05-20 Tom Tromey <tromey@redhat.com>
7267
7268 * python/py-event.c (evpy_emit_event): Decref the
7269 result of PyObject_CallFunctionObjArgs.
7270
ba327838
TT
72712013-05-20 Tom Tromey <tromey@redhat.com>
7272
7273 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7274 Correctly decref.
7275
d8191432
TT
72762013-05-20 Tom Tromey <tromey@redhat.com>
7277
7278 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7279
5d153bd1
TT
72802013-05-20 Tom Tromey <tromey@redhat.com>
7281
7282 * python/py-event.h (gdbpy_initialize_event_generic): Use
7283 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7284 * python/py-evts.c (add_new_registry): Use
7285 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7286 * python/python-internal.h
7287 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7288
56cc411c
TT
72892013-05-20 Tom Tromey <tromey@redhat.com>
7290
7291 * python/py-arch.c (archpy_disassemble): Update.
7292 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7293 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7294 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7295 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7296 macro.
7297 (GDB_PY_HANDLE_EXCEPTION): Update.
7298 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7299
8919e174
TT
73002013-05-20 Tom Tromey <tromey@redhat.com>
7301
7302 * python/python-internal.h (events_object_type): Remove.
7303
9b08f225
TT
73042013-05-20 Tom Tromey <tromey@redhat.com>
7305
f5aee5ee
AM
7306 * python/py-event.h (evpy_emit_event): Use
7307 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7308 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7309 New macro.
9b08f225 7310
f04010ff
TT
73112013-05-20 Tom Tromey <tromey@redhat.com>
7312
7313 * py-evtregistry.c (create_event_object): Decref
7314 eventregistry_object if PyList_New fails.
7315
3919fd96
TT
73162013-05-20 Tom Tromey <tromey@redhat.com>
7317
7318 * py-cmd.c (gdbpy_string_to_argv): Check result of
7319 PyList_New.
7320
0430e8cb
TT
73212013-05-20 Tom Tromey <tromey@redhat.com>
7322
7323 * python/python.c (before_prompt_hook): Add cleanup to
7324 decref 'hook'.
7325
764123e4
TT
73262013-05-20 Tom Tromey <tromey@redhat.com>
7327
7328 * python/py-function.c (fnpy_init): Decref result of
7329 PyObject_GetAttrString.
7330
634c58be
TT
73312013-05-20 Tom Tromey <tromey@redhat.com>
7332
7333 * python/py-threadevent.c (get_event_thread): Use
7334 CPYCHECKER_RETURNS_BORROWED_REF.
7335 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7336 New define.
7337 (pspace_to_pspace_object, objfile_to_objfile_object)
7338 (find_thread_object): Use it.
7339
62eec1a5
TT
73402013-05-20 Tom Tromey <tromey@redhat.com>
7341
7342 * python/py-arch.c (arch_object_type): Use
7343 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7344 * python/py-block.c (block_syms_iterator_object_type):
7345 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7346 * python/py-bpevent.c (breakpoint_event_object_type):
7347 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7348 * python/py-cmd.c (cmdpy_object_type): Use
7349 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7350 * python/py-continueevent.c (continue_event_object_type):
7351 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7352 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7353 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7354 * python/py-events.h (thread_event_object_type):
7355 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7356 * python/py-evtregistry.c (eventregistry_object_type): Use
7357 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7358 * python/py-exitedevent.c (exited_event_object_type):
7359 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7360 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7361 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7362 * python/py-function.c (fnpy_object_type): Use
7363 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7364 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7365 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7366 * python/py-infthread.c (thread_object_type): Use
7367 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7368 * python/py-lazy-string.c (lazy_string_object_type):
7369 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7370 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7371 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7372 * python/py-objfile.c (objfile_object_type): Use
7373 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7374 * python/py-param.c (parmpy_object_type):
7375 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7376 * python/py-progspace.c (pspace_object_type):
7377 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7378 * python/py-signalevent.c (signal_event_object_type):
7379 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7380 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7381 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7382 * python/py-type.c (type_object_type, field_object_type)
7383 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7384 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7385 define.
7386 (value_object_type, block_object_type, symbol_object_type)
7387 (event_object_type, stop_event_object_type, breakpoint_object_type)
7388 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7389
81ea8796
AT
73902013-05-20 Andreas Tobler <andreas@fgznet.ch>
7391
7392 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7393 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7394
a2ce51a0
DE
73952013-05-20 Doug Evans <dje@google.com>
7396
7397 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7398 For Fission.
7399 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7400 reading_dwo_directly.
7401 (struct signatured_type): New member dwo_unit.
7402 (struct die_reader_specs): New member comp_dir.
7403 (create_signatured_type_table_from_index): Use malloc for
7404 all_type_units instead of objfile's obstack.
7405 (create_all_type_units): Ditto.
7406 (fill_in_sig_entry_from_dwo_entry): New function.
7407 (add_type_unit): New function.
7408 (lookup_dwo_signatured_type): New function.
7409 (lookup_dwp_signatured_type): New function.
7410 (lookup_signatured_type): New arg cu. All callers updated.
7411 (init_cu_die_reader): Initialize comp_dir.
7412 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7413 Change assert of matching type signatures to call error on mismatch.
7414 (lookup_dwo_unit): Add assert.
7415 (init_tu_and_read_dwo_dies): New function.
7416 (init_cutu_and_read_dies): Call it.
7417 (build_type_unit_groups): Handle case of no type unit groups created.
7418 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7419 (lookup_dwo_cutu): Tweak complaint.
7420 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7421 (dwarf2_per_objfile_free): Free all_type_units.
7422
a25cd31f
JB
74232013-05-20 Joel Brobecker <brobecker@adacore.com>
7424
7425 * windows-nat.c (handle_unload_dll): Add missing empty line.
7426
4d804846
JB
74272013-05-20 Joel Brobecker <brobecker@adacore.com>
7428
7429 * dwarf2read.c (prototyped_function_p): New function.
7430 (read_subroutine_type): Use it.
7431
1c432e72
JB
74322013-05-20 Joel Brobecker <brobecker@adacore.com>
7433
7434 * rs6000-aix-tdep.c: De-indent some example code provided
7435 as a comment.
7436
4feebbdd
EBM
74372013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7438
7439 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7440 region is ok for a hardware watchpoint using the new ptrace interface
7441 on Power servers.
7442
7d0c9981
DE
74432013-05-17 Doug Evans <dje@google.com>
7444
7445 * NEWS: Mention new maintenance commands check-symtabs, and
7446 expand-symtabs, and renamed check-psymtabs.
7447 * psymtab.c (maintenance_check_psymtabs): Renamed from
7448 maintenance_check_symtabs. Only process already-expanded symbol
7449 tables.
7450 (_initialize_psymtab): Update.
7451 * symmisc.c (maintenance_check_symtabs): New function.
7452 (maintenance_expand_name_matcher): New function
7453 (maintenance_expand_file_matcher): New function
7454 (maintenance_expand_symtabs): New function.
7455 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7456 commands.
7457
6cbc7c3d
TT
74582013-05-17 Tom Tromey <tromey@redhat.com>
7459
7460 * python/py-inferior.c (infpy_read_memory): Don't call
7461 PyErr_SetString if PyObject_New fails.
7462 * python/py-frame.c (frame_info_to_frame_object): Don't call
7463 PyErr_SetString if PyObject_New fails.
7464
a48b32c0
L
74652013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7466
7467 * acinclude.m4: Add check for dlopen in libdl.
7468 * configure.ac: Ditto.
7469 * configure: Regenerate.
7470
3de661e6
PM
74712013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7472
7473 * frame.c (frame_stash): Convert to htab.
7474 (frame_addr_hash): New function.
7475 (frame_addr_hash_eq): New function.
7476 (frame_stash_create): Convert function to create
7477 a hash table.
7478 (frame_stash_add): Convert function to add an entry to a hash
7479 table.
7480 (frame_stash_find): Convert function to search the hash table.
7481 (frame_stash_invalidate): Convert function to empty the hash
7482 table.
7483 (get_frame_id): Only add to stash if a frame_id is created.
7484 (_initialize_frame): Call frame_stash_create.
7485
bb4168a9 74862013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7487
7488 * configure.ac: Ensure MIG is available when building for GNU Hurd
7489 hosts.
7490 * configure: Regenerate.
7491
d1be3247
JB
74922013-05-16 Joel Brobecker <brobecker@adacore.com>
7493
7494 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7495
b8fea896
JB
74962013-05-16 Joel Brobecker <brobecker@adacore.com>
7497
7498 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7499 all cleanups are done before returning from this function.
7500
af880d85
JB
75012013-05-15 Joel Brobecker <brobecker@adacore.com>
7502
7503 * utils.h: #include "exceptions.h".
7504 (enum errors): Remove partial declaration.
7505
356a5233
JB
75062013-05-15 Joel Brobecker <brobecker@adacore.com>
7507
7508 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7509 * gdbarch.h, gdbarch.c: Regenerate.
7510 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7511 handling.
7512
7513 * rs6000-aix-tdep.h: New file.
7514 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7515 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7516 "xml-utils.h".
7517 (struct field_info, struct ld_info_desc): New types.
7518 (ld_info32_desc, ld_info64_desc): New static constants.
7519 (struct ld_info): New type.
7520 (rs6000_aix_extract_ld_info): New function.
7521 (rs6000_aix_shared_library_to_xml): Likewise.
7522 (rs6000_aix_ld_info_to_xml): Likewise.
7523 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7524 (rs6000_aix_init_osabi): Add call to
7525 set_gdbarch_core_xfer_shared_libraries_aix.
7526 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7527 Remove "xml-utils.h" include.
7528 (LdInfo): Delete typedef.
7529 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7530 Delete macros.
7531 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7532 Adjust code accordingly.
7533 (rs6000_core_ldinfo): Delete, folded into
7534 rs6000_aix_core_xfer_shared_libraries_aix.
7535 (rs6000_xfer_shared_library): Delete.
7536 (rs6000_xfer_shared_libraries): Reimplement.
7537
742ce053
MM
75382013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7539
7540 * record.c (record_goto_cmdlist): New.
7541 (cmd_record_goto): Split into this ...
7542 (cmd_record_goto_begin): ... this
7543 (cmd_record_goto_end): ... and this.
7544 (_initialize_record): Change "record goto" to prefix command.
7545 Add commands for "record goto begin" and "record goto end".
7546 Add an alias for "record goto start" to "record goto begin".
7547
e93ba630
JK
75482013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7549
7550 * linespec.c (convert_linespec_to_sals): New comment for
7551 SOURCE_FILENAME assignment.
7552
5821aace
JK
75532013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7554
7555 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7556 internal_warning.
7557
a1b8c4cc
TT
75582013-05-14 Tom Tromey <tromey@redhat.com>
7559
7560 * eval.c (parse_and_eval_long): Make 'exp' const.
7561 * value.h (parse_and_eval_long): Update.
7562
23b3a2c3
TT
75632013-05-14 Tom Tromey <tromey@redhat.com>
7564
7565 * ui-file.c (gdb_fopen): Make arguments const.
7566 * ui-file.h (gdb_fopen): Make arguments const.
7567
ca623f82
TT
75682013-05-14 Tom Tromey <tromey@redhat.com>
7569
7570 * remote.c (remote_set_trace_notes): Make arguments const.
7571 * target.c (update_current_target): Update cast.
7572 * target.h (to_set_trace_notes): Make arguments const.
7573
503ebb2c
TT
75742013-05-14 Tom Tromey <tromey@redhat.com>
7575
7576 * go32-nat.c (go32_terminal_info): Make 'args' const.
7577 * inferior.h (child_terminal_info): Update.
7578 * inflow.c (child_terminal_info): Make 'args' const.
7579 * target.c (default_terminal_info): Make 'args' const.
7580 (debug_to_terminal_save_ours): Likewise.
7581 * target.h (struct target_ops) <to_terminal_info>: Make argument
7582 const.
7583
85e1311a
TT
75842013-05-13 Tom Tromey <tromey@redhat.com>
7585
7586 * gcore.c (create_gcore_bfd): Make 'filename' const.
7587 * gcore.h (create_gcore_bfd): Make 'filename' const.
7588 * record-full.c (record_full_save): Make 'recfilename' const.
7589 * target.c (target_save_record): Make 'filename' const.
7590 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7591 const.
7592 (target_save_record): Likewise.
7593
d62bfeaf
TT
75942013-05-13 Tom Tromey <tromey@redhat.com>
7595
f5aee5ee 7596 PR gdb/15338:
d62bfeaf
TT
7597 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7598 ranges section has been read.
7599
ac1ca910
TT
76002013-05-13 Tom Tromey <tromey@redhat.com>
7601
7602 PR exp/15364:
7603 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7604 STRUCTOP_PTR>: Return a not_lval value for
7605 EVAL_AVOID_SIDE_EFFECTS.
7606 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7607 for EVAL_AVOID_SIDE_EFFECTS.
7608
36d1c68c
JB
76092013-05-13 Joel Brobecker <brobecker@adacore.com>
7610
7611 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7612 floating point registers to register type before storing
7613 value.
7614 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7615 Likewise.
7616
21ff4686
TT
76172013-05-10 Joel Brobecker <brobecker@adacore.com>
7618 Tom Tromey <tromey@redhat.com>
7619
7620 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7621 New functions.
7622 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7623 Declare.
7624 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7625 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7626 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7627 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7628
d3685d60
TT
76292013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7630 Tom Tromey <tromey@redhat.com>
7631
7632 PR build/15414:
7633 * configure: Rebuild.
7634 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7635 with -Wno-format.
7636
eb9fe518
PA
76372013-05-10 Pedro Alves <palves@redhat.com>
7638
7639 * remote.c (_initialize_remote): Fix spelling of
7640 qXfer:traceframe-info:read packet in packet config command.
7641
9779ab84
PA
76422013-05-10 David Taylor <dtaylor@emc.com>
7643
7644 PR remote/15455
7645
7646 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7647 "QTro" at start of packet.
7648
060cfbef
JB
76492013-05-10 Joel Brobecker <brobecker@adacore.com>
7650
7651 * solib-aix.c (solib_aix_relocate_section_addresses):
7652 For the .bss section action, apply the same offset as
7653 the .data section.
7654
ab1c4e88
JB
76552013-05-10 Joel Brobecker <brobecker@adacore.com>
7656
7657 * solib-aix.c (solib_aix_relocate_section_addresses):
7658 Remove FIXME comment.
7659
c1357578
JB
76602013-05-10 Joel Brobecker <brobecker@adacore.com>
7661
7662 PR tdep/15420:
7663 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7664 New functions, directly copied from sparc-sol-thread.c.
7665 * sparc-sol-thread.c: Delete.
7666 * configure.ac: Remove code handling sparc-solaris-thread.c.
7667 * configure: Regenerate.
7668
1e611234
PM
76692013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7670
7671 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7672 filter logic.
7673 (backtrace_command): Add "no-filters" option parsing.
7674 (_initialize_stack): Alter help to reflect "no-filters" option.
7675 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7676 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7677 (py-frame.o): Add target
7678 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7679 filter files.
7680 * python/python.h: Add new frame filter constants, and flag enum.
7681 (apply_frame_filter): Add definition.
7682 * python/python.c (apply_frame_filter): New non-Python
7683 enabled function.
7684 * python/py-utils.c (py_xdecref): New function.
7685 (make_cleanup_py_xdecref): Ditto.
7686 * python/py-objfile.c: Declare frame_filters dictionary.
7687 (objfpy_dealloc): Add frame_filters dealloc.
7688 (objfpy_new): Initialize frame_filters attribute.
7689 (objfile_to_objfile_object): Ditto.
7690 (objfpy_get_frame_filters): New function.
7691 (objfpy_set_frame_filters): New function.
7692 * python/py-progspace.c: Declare frame_filters dictionary.
7693 (pspy_dealloc): Add frame_filters dealloc.
7694 (pspy_new): Initialize frame_filters attribute.
7695 (pspacee_to_pspace_object): Ditto.
7696 (pspy_get_frame_filters): New function.
7697 (pspy_set_frame_filters): New function.
7698 * python/py-framefilter.c: New file.
7699 * python/lib/gdb/command/frame_filters.py: New file.
7700 * python/lib/gdb/frames.py: New file.
7701 * python/lib/gdb/__init__.py: Initialize global frame_filters
7702 dictionary
7703 * python/lib/gdb/FrameDecorator.py: New file.
7704 * python/lib/gdb/FrameIterator.py: New file.
7705 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7706 * mi/mi-cmds.h: Declare.
7707 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7708 --no-frame-filter logic, and Python frame filter logic.
7709 (stack_enable_frame_filters): New function.
7710 (parse_no_frame_option): Ditto.
7711 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7712 filter logic.
7713 (mi_cmd_stack_list_locals): Ditto.
7714 (mi_cmd_stack_list_args): Ditto.
7715 (mi_cmd_stack_list_variables): Ditto.
7716 * NEWS: Add frame filter note.
7717
2cb9c859
DE
77182013-05-09 Doug Evans <dje@google.com>
7719
6bf667bb
DE
7720 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7721 All callers updated.
7722 (syms_from_objfile): Ditto. Make static.
7723 (symbol_file_add_with_addrs): Renamed from
7724 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7725 num_offsets. All callers updated.
7726 * symfile.h (syms_from_objfile): Delete.
7727
2cb9c859
DE
7728 * symfile.c (decrement_reading_symtab): Add assert.
7729 (increment_reading_symtab): Ditto.
7730
40aea477
JB
77312013-05-09 Joel Brobecker <brobecker@adacore.com>
7732
7733 * source.c (forward_search_command): Replace call to getc
7734 by call to fgetc.
7735 (reverse_search_command): Likewise.
7736
680d1742
DE
77372013-05-08 Doug Evans <dje@google.com>
7738
7739 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7740 matching test.
7741
17e760ae
JB
77422013-05-08 Joel Brobecker <brobecker@adacore.com>
7743
7744 * sol-thread.c (info_cb): Factorize the code a little.
7745
c0f5f490
JB
77462013-05-08 Joel Brobecker <brobecker@adacore.com>
7747
7748 * sol-thread.c (info_cb): Rework the output of the "maintenance
7749 info sol-threads" command a bit.
7750
5d74e061
JB
77512013-05-08 Joel Brobecker <brobecker@adacore.com>
7752
7753 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7754 Replace ti.ti_startfunc by ti.ti_pc.
7755
814a3ff7
JB
77562013-05-08 Joel Brobecker <brobecker@adacore.com>
7757
7758 * solib-aix.c (solib_aix_free_library_list): New function
7759 for the case where HAVE_LIBEXPAT is not defined.
7760
58ce7251
SDJ
77612013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7762
7763 PR breakpoints/15413:
7764 * breakpoint.c (condition_completer): Simplify the code to
7765 disconsider multiple locations of breakpoints when completing the
7766 "condition" command.
7767
be8b1ea6
PM
77682013-05-07 Pierre Muller <muller@sourceware.org>
7769
7770 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7771 instead of <sys/wait.h>.
7772
1e52bda6
PM
77732013-05-07 Pierre Muller <muller@sourceware.org>
7774
7775 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7776 trailing new line from warning message.
7777
27fd0c6b
PM
77782013-05-07 Pierre Muller <muller@sourceware.org>
7779
7780 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7781 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7782
e228ac87
JB
77832013-05-07 Joel Brobecker <brobecker@adacore.com>
7784
7785 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7786 error message (ARI fix).
7787
77882013-05-07 Joel Brobecker <brobecker@adacore.com>
7789
7790 * features/library-list-aix.dtd: Replace library-list by
7791 library-list-aix.
7792 * rs6000-nat.c: Replace library-list by library-list-aix
7793 throughout.
7794 * solib-aix.c: Likewise.
7795
77962013-05-07 Joel Brobecker <brobecker@adacore.com>
7797
7798 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7799 Renames TARGET_OBJECT_AIX_LIBRARIES.
7800 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7801 TARGET_OBJECT_LIBRARIES_AIX throughout.
7802 * solib-aix.c: Likwise.
7803
26a4dda9
YQ
78042013-05-07 Yao Qi <yao@codesourcery.com>
7805
7806 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7807 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7808
3582629f
YQ
78092013-05-07 Yao Qi <yao@codesourcery.com>
7810
7811 * solib-dsbt.c (enable_break): Declare.
7812 (dsbt_current_sos): Remove call to enable_break2.
7813 (enable_break2): Rename to enable_break. Set solib breakpoint
7814 on '_dl_debug_state'.
7815 (enable_break): Remove.
7816
aacbb8a5
LM
78172013-05-07 Luis Machado <lgustavo@codesourcery.com>
7818
7819 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7820 debug state prior to replicating existing hardware watchpoints or
7821 breakpoints.
7822
0c013353
JK
78232013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7824
7825 * gcore.c (gcore_create_callback): Ignore sections with
7826 separate_debug_objfile_backlink != NULL.
7827
a1217d97
SL
78282013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7829 Andrew Jenner <andrew@codesourcery.com>
7830 Chung-Lin Tang <cltang@codesourcery.com>
7831 Julian Brown <julian@codesourcery.com>
7832
7833 Based on the nios2-elf port from Altera Corporation.
7834
7835 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7836 nios2-linux-tdep.o.
7837 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7838 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7839 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7840 * nios2-tdep.h: New.
7841 * nios2-tdep.c: New.
7842 * nios2-linux-tdep.c: New.
7843 * features/Makefile (WHICH): Add nios2-linux.
7844 (nios2-linux-expedite): Set.
7845 * features/nios2-cpu.xml: New.
7846 * features/nios2.xml: New.
7847 * features/nios2-linux.xml: New.
7848 * features/nios2.c: New (autogenerated).
7849 * features/nios2-linux.c: New (autogenerated).
7850 * regformats/nios2-linux.dat: New (autogenerated).
7851 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7852 and commands.
7853
0892cb63
DE
78542013-05-06 Doug Evans <dje@google.com>
7855
3b7bacac
DE
7856 * symfile.c: Whitespace cleanup.
7857
0892cb63
DE
7858 * solist.h (struct target_so_ops): New member clear_so.
7859 * solib-svr4.c (svr4_clear_so): New function.
7860 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7861 * solib.c (clear_so): Renamed from free_so_symbols.
7862 All callers updated. Call target clear_so if it exists.
7863
40501e00
TT
78642013-05-06 Tom Tromey <tromey@redhat.com>
7865
7866 * ada-lang.c (ada_value_primitive_packed_val): Don't
7867 call value_incref.
7868 * value.c (set_value_parent): Incref the new parent and decref
7869 the old parent.
7870 (value_copy, value_primitive_field): Use set_value_parent.
7871
b6807d98
TT
78722013-05-06 Tom Tromey <tromey@redhat.com>
7873
7874 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7875 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7876 if needed.
7877 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7878 * dwarf2read.c (write_constant_as_bytes)
7879 (dwarf2_fetch_constant_bytes): New functions.
7880
3aef2284
TT
78812013-05-06 Tom Tromey <tromey@redhat.com>
7882
7883 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7884 parameters.
7885 (dwarf2_const_value_attr): Update.
7886
66f65e2b
TT
78872013-05-06 Tom Tromey <tromey@redhat.com>
7888
7889 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7890 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7891 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7892 Remove declaration.
7893
7919a973
TT
78942013-05-06 Tom Tromey <tromey@redhat.com>
7895
7896 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7897 objfile's obstack.
7898
a7bfba49
DE
78992013-05-06 Doug Evans <dje@google.com>
7900
3189cb12
DE
7901 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7902 * stabsread.h (process_one_symbol): Update declaration.
7903 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7904 * elfread.c (elf_symfile_relocate_probe): Ditto.
7905 * psymtab.c (relocate_psymtabs): Ditto.
7906 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7907 (objfile_relocate): Ditto.
7908 * objfiles.h (objfile_relocate): Update declaration.
7909 * symfile.c (relative_addr_info_to_section_offsets): Constify
7910 addrs parameter.
7911 (default_symfile_offsets): Ditto.
7912 (syms_from_objfile_1): Constify offsets parameter.
7913 (syms_from_objfile): Ditto.
7914 (symbol_file_add_with_addrs_or_offsets): Ditto.
7915 (symfile_map_offsets_to_segments): Constify data parameter.
7916 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7917 delta parameters of member relocate.
7918 (struct sym_probe_fns): Constify new_offsets,
7919 delta parameters of member sym_relocate_probe.
7920 (struct sym_fns): Constify section_addr_info parameter of member
7921 sym_offsets.
7922 (relative_addr_info_to_section_offsets): Update declaration.
7923 (default_symfile_offsets): Ditto.
7924 (syms_from_objfile): Ditto.
7925 (symfile_map_offsets_to_segments): Ditto.
7926
a7bfba49
DE
7927 * symfile.c (syms_from_objfile_1): Use correct section count when
7928 objfile->sf == NULL.
7929
5f8e0b8f
MF
79302013-05-06 Mike Frysinger <vapier@gentoo.org>
7931
7932 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7933
ea52d893
DE
79342013-05-06 Doug Evans <dje@google.com>
7935
7936 * psympriv.h (struct partial_symtab): Augment comment for member
7937 section_offsets.
7938
4d1eb6b4
JB
79392013-05-06 Joel Brobecker <brobecker@adacore.com>
7940
7941 Reimplement shared library support on ppc-aix...
7942 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7943 * features/library-list-aix.dtd: New file.
7944 * solib-aix.h, solib-aix.c: New file.
7945 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7946 (rs6000_find_toc_address_hook): Delete.
7947 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7948 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7949 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7950 "xml-utils.h".
7951 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7952 (vmap_symtab, fixup_breakpoints): Delete.
7953 (rs6000_xfer_shared_libraries): New function.
7954 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7955 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7956 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7957 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7958 (rs6000_xfer_shared_library): New function.
7959 (find_toc_address): Delete.
7960 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7961 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7962 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7963 before creating minimal symbol. Adjust function description
7964 accordingly.
7965 (scan_xcoff_symtab): Replace call to
7966 prim_record_minimal_symbol_and_info by call to
7967 record_minimal_symbol.
7968 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7969 around default_symfile_offsets.
7970 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7971 powerpc-aix targets.
7972 * config/rs6000/nm-rs6000.h: Delete.
7973 * config/powerpc/aix.mh (NAT_FILE): Delete.
7974 (NATDEPFILES): Remove xcoffsolib.o.
7975 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7976 (ALL_TARGET_OBS): Add solib-aix.o.
7977 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7978 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7979 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7980 * xcoffsolib.h, xcoffsolib.c: Delete.
7981
7982 * solib.c (reload_shared_libraries): Remove reference to
7983 SOLIB_CREATE_INFERIOR_HOOK.
7984 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7985 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7986 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7987 comment.
7988 * corelow.c (deprecated_core_resize_section_table): Delete.
7989 * exec.c: Remove include of xcoffsolib.h".
7990 (map_vmap, vmap): Delete.
7991 (exec_close_1): Remove references to vmap.
7992 (exec_file_attach): Remove vmap handling code, and reference
7993 to DEPRECATED_IBM6000_TARGET.
7994 (bfdsec_to_vmap): Delete.
7995 (exec_files_info): Remove block of code handling VMAP.
7996 * infcmd.c (post_create_inferior): Remove reference to
7997 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7998 * infrun.c (follow_exec): Remove reference to
7999 SOLIB_CREATE_INFERIOR_HOOK.
8000 * stack.c (print_frame): Remove reference to PC_SOLIB.
8001 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8002 (dsbt_relocate_main_executable): Likewise.
8003 * solib-frv.c (frv_current_sos): Likewise.
8004
0c4f667c
JB
80052013-05-06 Joel Brobecker <brobecker@adacore.com>
8006
8007 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8008 to target_write_memory and target_read_memory.
8009
726ce67c
JB
80102013-05-06 Joel Brobecker <brobecker@adacore.com>
8011
8012 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8013 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8014
c8c9911f
JB
80152013-05-06 Joel Brobecker <brobecker@adacore.com>
8016
8017 * darwin-nat.c: Replace all "%x" instances in format strings
8018 into "0x%x" throughout.
8019
fda184b6
JB
80202013-05-06 Joel Brobecker <brobecker@adacore.com>
8021
8022 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8023 gdb_assert by call to MACH_CHECK_ERROR.
8024 (darwin_attach_pid): Raise an error rather than a failed
8025 assertion when various system calls failed. Report a warning
8026 instead of raising a failed assertion when PREV_NOT is not NULL
8027 after call to mach_port_request_notification.
8028 (darwin_ptrace_me): Raise an error rather than a failed
8029 assertion when read returns nonzero.
8030
d1d69afb
JB
80312013-05-06 Joel Brobecker <brobecker@adacore.com>
8032
8033 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8034
dc90b24d
JK
80352013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8038
faab9922
JK
80392013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8040
8041 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8042 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8043 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8044 a stale cleanup. Fix double free of NAME.
8045
e0ea48a0
EZ
80462013-05-04 Eli Zaretskii <eliz@gnu.org>
8047
8048 * windows-nat.c (windows_delete_thread): Accept an additional
8049 argument, the thread's exit code, and announce thread death when
8050 print_thread_events is non-zero and we are deleting a thread that
8051 is not the main thread.
8052 (get_windows_debug_event): Pass thread exit code to
8053 windows_delete_thread.
8054
83b2706a
KB
80552013-05-03 Kevin Buettner <kevinb@redhat.com>
8056
8057 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8058 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8059 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8060 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8061 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8062 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8063 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8064 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8065 (gdbarch_tdep): New struct.
8066 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8067 E_NUM_REGS.
8068 (v850e3v5_register_name): New function.
8069 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8070 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8071 code handling the struct return conventions for the RH850 ABI.
8072 Update all callers.
8073 (v850_eight_byte_align_p): New function.
8074 (v850_push_call_dummy): Push structs by value, not by reference
8075 for the RH850 ABI. Add support for eight byte alignment.
8076 (v850_dbtrap_breakpoint_from_pc): New function.
8077 (v850_gdbarch_init): Add ABI detection code. Register
8078 v850e3v5_register_name for the v850e3v5 architecture. Set the
8079 number of registers for v850e3v5. Register
8080 v850_dbtrap_breakpoint_from_pc as appropriate.
8081 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8082
d445b2f6
DE
80832013-05-03 Doug Evans <dje@google.com>
8084
8085 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8086 of bfd_count_sections.
8087 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8088 * symfile.c (default_symfile_offsets): Ditto.
8089 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8090 one entry, not bfd_count_sections entries.
8091
b3ce41ea
KB
80922013-05-03 Kevin Buettner <kevinb@redhat.com>
8093
8094 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8095 `save' and `restore' register groups. Don't include SPL
8096 or SPH in these groups.
8097 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8098 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8099 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8100 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8101 dwarf2_append_unwinders().
8102
96f7d3f1
PW
81032013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8104
8105 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8106 ignore SIGINT and SIGTRAP in case these internal signals are
8107 caught explicitely.
8108
b9dd1947
JB
81092013-05-01 Joel Brobecker <brobecker@adacore.com>
8110
8111 * darwin-nat.c (darwin_read_write_inferior): Change types
8112 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8113 of copy_count to "mach_msg_type_number_t".
8114 (darwin_read_dyld_info): Change type of parameter
8115 rdaddr to "gdb_byte *".
8116
4ca18a63
JB
81172013-05-01 Joel Brobecker <brobecker@adacore.com>
8118
8119 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8120 of &info->load_map from "char *" to "gdb_byte *".
8121
2b692d32
JB
81222013-05-01 Joel Brobecker <brobecker@adacore.com>
8123
8124 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8125 from "char *" to "gdb_byte *".
8126 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8127
a98c29a0
DE
81282013-04-30 Doug Evans <dje@google.com>
8129
6a506a2d
DE
8130 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8131 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8132 DWO stub. If DWO isn't found, just use stub.
8133 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8134
a98c29a0
DE
8135 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8136 calling init_cutu_and_read_dies.
8137
f92b06da
WT
81382013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8139
8140 * target-descriptions.c (maint_print_c_tdesc_cmd):
8141 Add case to parse structures as register types and
8142 bitfields.
8143
95eebdcc
WT
81442013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8145
8146 * MAINTAINERS (Write After Approval): Add myself to the list.
8147
019c1128
JB
81482013-04-30 Joel Brobecker <brobecker@adacore.com>
8149
8150 * sol-thread.c (rw_common): Change type of parameter "buf"
8151 to "gdb_byte *".
8152 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8153 rw_common to "gdb_byte *" instead of "char *".
8154
5812197c
JB
81552013-04-30 Joel Brobecker <brobecker@adacore.com>
8156
8157 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8158 of local variable msym to const struct bound_minimal_symbol.
8159 Adjust use accordingly.
8160 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8161
ecccb813
TS
81622013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8163
8164 * i386gnu-nat.c (CREG_OFFSET): New macro.
8165 (creg_offset): New array.
8166 (CREG_ADDR): Use creg_offset instead of reg_offset.
8167
f1d02dd4 81682013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
8169
8170 * mep-tdep.c (mep_write_pc): Delete.
8171 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8172 Add call to set_gdbarch_pc_regnum.
8173
f1d02dd4 81742013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
8175
8176 * common/filestuff.c: Replace #include <dirent.h> by
8177 #include "gdb_dirent.h".
8178
f1d02dd4 81792013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
8180
8181 * common/filestuff.c: Replace #include <sys/stat.h> by
8182 #include "gdb_stat.h".
8183
b385a60d
PM
81842013-04-29 Pierre Muller <muller@sourceware.org>
8185
8186 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8187 editCase function rule.
8188 (get_DW_AT_signature_type): Likewise.
8189
d27b54ad
JB
81902013-04-29 Joel Brobecker <brobecker@adacore.com>
8191
8192 * m32r-tdep.c (m32r_write_pc): Delete.
8193 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8194 Add call to set_gdbarch_pc_regnum.
8195
47d21dc5
PM
81962013-04-29 Pierre Muller <muller@sourceware.org>
8197
8198 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8199
9056882e
JB
82002013-04-29 Joel Brobecker <brobecker@adacore.com>
8201
8202 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8203
7ee4732a
YQ
82042013-04-28 Yao Qi <yao@codesourcery.com>
8205
8206 * solib-dsbt.c (fetch_loadmap): Re-indent.
8207 (displacement_from_map, enable_break2): Likewise.
8208 (dsbt_relocate_section_addresses): Likewise.
8209
2260af53 82102013-04-26 Joel Brobecker <brobecker@adacore.com>
8211
8212 GDB 7.6 released.
8213
ff546935
TT
82142013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8215
8216 PR corefiles/14983:
8217 * dwarf2read.c (process_full_comp_unit): Always create a static
8218 block.
8219
40fb6c5e
HZ
82202013-04-25 Hui Zhu <hui@codesourcery.com>
8221
8222 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8223 to loc->cmd_bytecode.
8224
74e04d1c
DE
82252013-04-24 Doug Evans <dje@google.com>
8226
8227 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8228
3cf62c1d
KS
82292013-04-22 Keith Seitz <keiths@redhat.com>
8230
8231 * tracepoint.c (trace_save): Call the writer's start method.
8232
bf9e4d0c
MB
82332013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8234
8235 PR gdb/10462
8236 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8237 before argument.
8238
5d71132c
TT
82392013-04-23 Tom Tromey <tromey@redhat.com>
8240
8241 * common/filestuff.c: Check USE_WIN32API before including
8242 sys/socket.h.
8243 (HAVE_F_GETFD): New define.
8244 (mark_cloexec): Check HAVE_F_GETFD.
8245 (gdb_open_cloexec): Change 'mode' to unsigned long.
8246 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8247 (gdb_pipe_cloexec): Check HAVE_PIPE.
8248 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8249 long.
8250
a11cfd87
HZ
82512013-04-23 Hui Zhu <hui@codesourcery.com>
8252
8253 PR gdb/15293
a11cfd87
HZ
8254 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8255
2d9442cc
HZ
82562013-04-23 Hui Zhu <hui@codesourcery.com>
8257
8258 PR gdb/15165
2d9442cc
HZ
8259 * breakpoint.c (dprintf_print_recreate): New.
8260 (save_breakpoints): Let it not save dprintf commands.
8261 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8262
614c279d
TT
82632013-04-22 Tom Tromey <tromey@redhat.com>
8264
8265 PR gdb/7912:
8266 * Makefile.in (SFILES): Add filestuff.c
8267 (COMMON_OBS): Add filestuff.o.
8268 (filestuff.o): New target.
8269 * auto-load.c (auto_load_objfile_script_1): Use
8270 gdb_fopen_cloexec.
8271 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8272 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8273 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8274 * common/agent.c (gdb_connect_sync_socket): Use
8275 gdb_socket_cloexec.
8276 * common/filestuff.c: New file.
8277 * common/filestuff.h: New file.
8278 * common/linux-osdata.c (linux_common_core_of_thread)
8279 (command_from_pid, commandline_from_pid, print_source_lines)
8280 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8281 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8282 gdb_fopen_cloexec.
8283 * common/linux-procfs.c (linux_proc_get_int)
8284 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8285 * config.in, configure: Rebuild.
8286 * configure.ac: Don't check for sys/socket.h. Check for
8287 fdwalk, pipe2.
8288 * corelow.c (core_open): Use gdb_open_cloexec.
8289 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8290 * fork-child.c (fork_inferior): Call close_most_fds.
8291 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8292 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8293 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8294 Use gdb_fopen_cloexec.
8295 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8296 gdb_open_cloexec.
8297 (linux_async_pipe): Use gdb_pipe_cloexec.
8298 * remote-fileio.c (remote_fileio_func_open): Use
8299 gdb_open_cloexec.
8300 * remote.c (remote_file_put, remote_file_get): Use
8301 gdb_fopen_cloexec.
8302 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8303 close_most_fds.
8304 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8305 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8306 * solib.c (solib_find): Use gdb_open_cloexec.
8307 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8308 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8309 (tfile_open): Use gdb_open_cloexec.
8310 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8311 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8312 * xml-support.c (xml_fetch_content_from_file): Use
8313 gdb_fopen_cloexec.
8314 * main.c (captured_main): Call notice_open_fds.
8315
5fda2332
EBM
83162013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8317
8318 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8319 'char *' to 'gdb_byte *'.
8320 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8321 'gdb_byte'.
8322
eb6c553b
YQ
83232013-04-22 Yao Qi <yao@codesourcery.com>
8324
8325 * infrun.c: Fix typo in comment.
8326
9991b207
SDJ
83272013-04-22 Andrew Haley <aph@redhat.com>
8328
8329 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8330 instead of "long".
8331
8b4833e3
YQ
83322013-04-20 Yao Qi <yao@codesourcery.com>
8333
8334 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8335 'char *' to 'gdb_byte *'. Cast the return value of
8336 'bt_ctf_get_char_array' to 'gdb_byte *'.
8337
bd3f3b55
PA
83382013-04-19 Pedro Alves <palves@redhat.com>
8339
8340 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8341 -Wpointer-sign.
8342 * configure: Regenerate.
8343
c49e7f76
PA
83442013-04-19 Pedro Alves <palves@redhat.com>
8345
8346 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8347 'void *'.
8348
12ff8552
PA
83492013-04-19 Pedro Alves <palves@redhat.com>
8350
8351 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8352 Change type of 'myaddr' parameter to gdb_byte pointer.
8353 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8354 to 'long long' pointer instead of to 'unsigned long long'.
8355 (monitor_write_memory_block, monitor_read_memory_single)
8356 (monitor_read_memory): Change type of 'myaddr' parameter to
8357 gdb_byte pointer.
8358
9c37696b
PA
83592013-04-19 Pedro Alves <palves@redhat.com>
8360
8361 * record.c (validate_history_size): Make parameter 'setting'
8362 unsigned.
8363
a398505b
PA
83642013-04-19 Pedro Alves <palves@redhat.com>
8365
8366 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8367 to 'gdb_byte *'.
8368
9f8afa72
PA
83692013-04-19 Pedro Alves <palves@redhat.com>
8370
8371 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8372 local to int.
8373
c714b426
PA
83742013-04-19 Pedro Alves <palves@redhat.com>
8375
8376 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8377 * ada-tasks.c (read_fat_string_value): Likewise.
8378
507a579c
PA
83792013-04-19 Pedro Alves <palves@redhat.com>
8380
8381 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8382 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8383 'offset', and adjust.
8384
f9d83a0b
PA
83852013-04-19 Pedro Alves <palves@redhat.com>
8386
8387 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8388 (read_index_from_section): Add cast to 'char *'.
8389
745eb4fd
PA
83902013-04-19 Pedro Alves <palves@redhat.com>
8391
8392 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8393
db5be46f
PA
83942013-04-19 Pedro Alves <palves@redhat.com>
8395
8396 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8397
0f928d68
PA
83982013-04-19 Pedro Alves <palves@redhat.com>
8399
8400 * record-full.c (record_full_get_bookmark): Change local 'ret'
8401 type to char * and add cast to gdb_byte *.
8402 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8403 string.
8404 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8405
89f6d837
PA
84062013-04-19 Pedro Alves <palves@redhat.com>
8407
8408 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8409 * python/py-prettyprint.c (print_string_repr): Change type of
8410 'output' local to char *. Add cast to gdb_byte * in
8411 LA_PRINT_STRING call.
8412 (print_children): Change type of 'output' local to char *.
8413 * python/py-value.c (valpy_string): Add cast to const char * in
8414 PyUnicode_Decode call.
8415
ce6ec7d8
PA
84162013-04-19 Pedro Alves <palves@redhat.com>
8417
8418 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8419 and change its type to 'const char *'. Adjust.
8420 (mips_send_packet): Add cast to 'char *', and remove cast to
8421 'unsigned char *'.
8422 (mips_receive_packet): Remove cast to 'unsigned char *'.
8423 (mips_load_srec): Use bfd_byte.
8424 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8425 (pmon_checkset): Make 'value' parameter unsigned.
8426
fda0389f
PA
84272013-04-19 Pedro Alves <palves@redhat.com>
8428
8429 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8430
bc20a4af
PA
84312013-04-19 Pedro Alves <palves@redhat.com>
8432
8433 * remote.c (remote_write_bytes_aux, compare_sections_command)
8434 (remote_read_qxfer)
8435 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8436 (remote_hostio_readlink, remote_bfd_iovec_pread)
8437 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8438 binary buffer, and char when buffer is used as string.
8439 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8440 (trace_save, tfile_open, traceframe_walk_blocks)
8441 (tfile_fetch_registers): Likewise.
8442
c628b528
PA
84432013-04-19 Pedro Alves <palves@redhat.com>
8444
8445 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8446 buffer and size_t size. Adjust.
8447 * ser-base.h (ser_base_write): Adjust.
8448 * ser-go32.c (cnts): Change type to size_t.
8449 (dos_write): Change prototype -- take 'void *'
8450 buffer and size_t size. Adjust.
8451 (dos_info): Print elements of 'cnts' as unsigned long.
8452 * serial.c (serial_write): Likewise.
8453 * serial.h (serial_write): Adjust.
8454 (struct serial_ops) <write>: Change prototype -- take 'void *'
8455 buffer and size_t size. Adjust.
8456
51a5cd90
PA
84572013-04-19 Pedro Alves <palves@redhat.com>
8458
8459 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8460 gdb_byte *.
8461 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8462
a9933661
PA
84632013-04-19 Pedro Alves <palves@redhat.com>
8464
8465 * alpha-tdep.c (alpha_extract_return_value): Use
8466 regcache_cooked_read_unsigned to read 'v0'.
8467
19afdd07
PA
84682013-04-19 Pedro Alves <palves@redhat.com>
8469
8470 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8471 parameters 'at', 'as' and 'offset' to uint32_t.
8472
96b32e50
PA
84732013-04-19 Pedro Alves <palves@redhat.com>
8474
8475 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8476 'is64' to signed 'int'.
8477
eb1bd1fb
PA
84782013-04-19 Pedro Alves <palves@redhat.com>
8479
8480 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8481 parameter to int *.
8482
463920bf
PA
84832013-04-19 Pedro Alves <palves@redhat.com>
8484
8485 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8486 'insnbuf' buffer type to unsigned int[].
8487
70242eb1
PA
84882013-04-19 Pedro Alves <palves@redhat.com>
8489
8490 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8491
9d1dd0e2
PA
84922013-04-19 Pedro Alves <palves@redhat.com>
8493
8494 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8495 unsigned long *.
8496
44096aee
PA
84972013-04-19 Pedro Alves <palves@redhat.com>
8498
8499 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8500 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8501 UINT_MAX.
8502 * mips-tdep.c (heuristic_fence_post): Change type to int.
8503 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8504
e4286e57
PA
85052013-04-19 Pedro Alves <palves@redhat.com>
8506
8507 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8508 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8509 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8510
001f13d8
PA
85112013-04-19 Pedro Alves <palves@redhat.com>
8512
8513 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8514 it to get a string view of the byte buffer.
8515 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8516 type to gdb_byte *. Adjust.
8517 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8518 Change local to char *.
8519 * solib-darwin.c (find_program_interpreter): Change return type to
8520 char *. Adjust.
8521 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8522 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8523 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8524 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8525 * solib-svr4.c (find_program_interpreter): Change return type to
8526 char *. Adjust.
8527 (enable_break): Change local 'interp_name' to char *.
8528 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8529 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8530 (spu_pseudo_register_write_spu): Use char for string buffer.
8531 Adjust.
8532 (info_spu_event_command, info_spu_signal_command): Add casts to
8533 'char *'.
8534
948f8e3d
PA
85352013-04-19 Pedro Alves <palves@redhat.com>
8536
8537 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8538 gdb_byte[].
8539 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8540 * ada-lang.c (ada_value_assign): Use gdb_byte.
8541 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8542 (alphanbsd_sigtramp_offset): Use gdb_byte.
8543 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8544 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8545 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8546 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8547 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8548 * arm-tdep.c (arm_stub_unwind_sniffer)
8549 (arm_displaced_init_closure): Use gdb_byte.
8550 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8551 (arm_default_thumb_le_breakpoint)
8552 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8553 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8554 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8555 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8556 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8557 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8558 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8559 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8560 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8561 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8562 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8563 (cris_store_return_value, cris_extract_return_value): Use
8564 gdb_byte.
8565 (constraint): Change type of parameter to char * from signed
8566 char*. Use gdb_byte.
8567 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8568 of local buffer to gdb_byte *.
8569 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8570 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8571 (add_address_entry): Change type of local buffer to gdb_byte[].
8572 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8573 (frv_push_dummy_call): Use gdb_byte.
8574 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8575 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8576 (hppa_hpux_supply_save_state): Use gdb_byte.
8577 * hppa-tdep.c (hppa32_push_dummy_call)
8578 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8579 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8580 (slotN_contents, replace_slotN_contents): Change type of parameter
8581 to gdb_byte *.
8582 (fetch_instruction, ia64_pseudo_register_write)
8583 (ia64_register_to_value, ia64_value_to_register)
8584 (ia64_extract_return_value, ia64_store_return_value)
8585 (ia64_push_dummy_call): Use gdb_byte.
8586 * m32c-tdep.c (m32c_return_value): Remove cast.
8587 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8588 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8589 gdb_byte.
8590 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8591 * mn10300-tdep.c (mn10300_store_return_value)
8592 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8593 gdb_byte.
8594 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8595 (moxie_process_record): Remove casts.
8596 * ppc-ravenscar-thread.c (supply_register_at_address)
8597 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8598 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8599 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8600 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8601 * remote.c (compare_sections_command): Use gdb_byte.
8602 * score-tdep.c (score7_free_memblock): Change type of parameter to
8603 gdb_byte *.
8604 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8605 gdb_byte *. Use gdb_byte.
8606 (sh_push_dummy_call_fpu): Use gdb_byte.
8607 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8608 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8609 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8610 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8611 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8612 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8613 (sh64_store_return_value, sh64_register_convert_to_virtual):
8614 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8615 (sh64_pseudo_register_write): Use gdb_byte.
8616 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8617 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8618 buffer.
8619 (irix_current_sos): Use gdb_byte.
8620 * solib-som.c (som_current_sos): Use gdb_byte.
8621 * sparc-ravenscar-thread.c (supply_register_at_address)
8622 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8623 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8624 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8625 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8626 'gdb_byte *'.
8627 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8628 'gdb_byte *'.
8629 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8630 * xstormy16-tdep.c (xstormy16_extract_return_value)
8631 (xstormy16_store_return_value): Change parameter type to
8632 'gdb_byte *'. Adjust.
8633 (xstormy16_push_dummy_call): Use gdb_byte.
8634 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8635 (call0_analyze_prologue, execute_code): Use gdb_byte.
8636
433730c9
PA
86372013-04-19 Vladimir Kargov <kargov@gmail.com>
8638 Pedro Alves <palves@redhat.com>
8639
8640 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8641 value contents.
8642
ac9ec31b
DE
86432013-04-17 Doug Evans <dje@google.com>
8644
8645 * dwarf2read.c (struct signatured_type): New member type.
8646 (struct attribute): Replace member signatured_type with signature.
8647 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8648 (read_call_site_scope): Call follow_die_ref instead of
8649 follow_die_ref_or_sig.
8650 (read_structure_type): Rewrite handling of signatured types.
8651 (read_enumeration_type): Ditto.
8652 (read_attribute_value): Update.
8653 (build_error_marker_type): New function.
8654 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8655 Don't call error for bad types, just build an error marker type.
8656 (dump_die_shallow): Update.
8657 (follow_die_sig_1): Renamed from follow_die_sig.
8658 Don't call error for bad types, instead return NULL.
8659 (follow_die_sig): New function.
8660 (get_signatured_type, get_DW_AT_signature_type): New functions.
8661
e546e8bb
YZ
86622013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8663
8664 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8665 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8666 function.
e546e8bb 8667
ab116149
YQ
86682013-04-17 Yao Qi <yao@codesourcery.com>
8669
8670 * top.c (print_gdb_configuration): Print configure-time
8671 parameter on using libbabeltrace or not.
8672
488a42b8
PA
86732013-04-16 Pedro Alves <palves@redhat.com>
8674
8675 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8676
f5fb825b
PA
86772013-04-16 Pedro Alves <palves@redhat.com>
8678
85d494ea 8679 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8680 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8681
e1154999
PA
86822013-04-16 Pedro Alves <palves@redhat.com>
8683
8684 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8685 * common/glibc_thread_db.h: ... this new file ...
8686 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8687
e3b50a7f
PA
86882013-04-16 Will Newton <will.newton@gmail.com>
8689 Pedro Alves <palves@redhat.com>
8690
8691 PR build/11881
8692
8693 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8694 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8695 HAVE_THREAD_DB_H.
8696
1c2e4450
PA
86972013-04-16 Pedro Alves <palves@redhat.com>
8698 Eli Zaretskii <eliz@gnu.org>
8699
8700 * NEWS: Mention "set foo unlimited".
8701
4031ecc5
DE
87022013-04-15 Doug Evans <dje@google.com>
8703
19c3d4c9
DE
8704 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8705 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8706 (create_dwo_cu_reader): Renamed from
8707 create_dwo_debug_info_hash_table_reader.
8708 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8709 Remove support for multiple CUs in a DWO file.
8710 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8711
4031ecc5
DE
8712 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8713 instead of phex.
8714 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8715 (create_dwo_in_dwp): Ditto.
8716
b340913d
TT
87172013-04-15 Tom Tromey <tromey@redhat.com>
8718
8719 * NEWS: Move recent entries into "since 7.6" section.
8720
cc16e6c9
TT
87212013-04-15 Tom Tromey <tromey@redhat.com>
8722
8723 PR c++/13588:
8724 * NEWS: Update.
8725 * break-catch-throw.c (struct exception_catchpoint)
8726 <exception_rx, pattern>: New fields.
8727 (fetch_probe_arguments, dtor_exception_catchpoint)
8728 (check_status_exception_catchpoint)
8729 (print_one_detail_exception_catchpoint): New functions.
8730 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8731 Compile regular expression if needed.
8732 (extract_exception_regexp): New function.
8733 (catch_exception_command_1): Use extract_exception_regexp.
8734 (compute_exception): Use fetch_probe_arguments.
8735 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8736 and check_status fields.
8737 * cp-abi.c (cplus_typename_from_type_info): New function.
8738 * cp-abi.h (cplus_typename_from_type_info): Declare.
8739 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8740 * gdb_regex.h (compile_rx_or_error): Declare.
8741 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8742 comment.
8743 (init_gnuv3_ops): Set get_type_from_type_info field.
8744 * probe.c (compile_rx_or_error): Move...
8745 * utils.c (compile_rx_or_error): ... here.
8746
72f1fe8a
TT
87472013-04-15 Tom Tromey <tromey@redhat.com>
8748
8749 PR c++/15176:
8750 * NEWS: Update.
8751 * break-catch-throw.c (compute_exception): New function.
8752 (exception_funcs): New global.
8753 (_initialize_break_catch_throw): Create $_exception.
8754 * cp-abi.c (cplus_type_from_type_info): New function.
8755 * cp-abi.h (cplus_type_from_type_info): Declare.
8756 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8757 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8758 (gnuv3_get_type_from_type_info): New functions.
8759 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8760
fc4746a2
TT
87612013-04-15 Tom Tromey <tromey@redhat.com>
8762
8763 * break-catch-throw.c (struct exception_names): New.
8764 (exception_functions): Change type.
8765 (re_set_exception_catchpoint): Look for SDT probes.
8766
15a73f56
TT
87672013-04-15 Tom Tromey <tromey@redhat.com>
8768
8769 PR c++/10119:
8770 * break-catch-throw.c (exception_functions): New global.
8771 (gnu_v3_exception_catchpoint_ops): Move earlier.
8772 (struct exception_catchpoint): New.
8773 (classify_exception_breakpoint): Rewrite.
8774 (re_set_exception_catchpoint): New function.
8775 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8776 Allocate a struct exception_catchpoint.
8777 (catch_exception_command_1): Update.
8778 (initialize_throw_catchpoint_ops): Set 're_set' method.
8779
916703c0
TT
87802013-04-15 Tom Tromey <tromey@redhat.com>
8781
8782 * Makefile.in (SFILES): Add break-catch-throw.c
8783 (COMMON_OBS): Add break-catch-throw.o.
8784 * break-catch-throw.c: New file.
8785 * breakpoint.c: Move exception-catching code to new file.
8786 (ep_parse_optional_if_clause): No longer static.
8787 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8788
6e72ca20
TT
87892013-04-15 Tom Tromey <tromey@redhat.com>
8790
8791 PR c++/9065:
8792 * NEWS: Update.
8793 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8794 * c-exp.y (TYPEID): New token.
8795 (exp): Add new TYPEID productions.
8796 (ident_tokens): Add "typeid".
8797 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8798 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8799 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8800 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8801 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8802 case.
8803 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8804 (build_std_type_info_type, gnuv3_get_typeid_type)
8805 (gnuv3_get_typeid): New functions.
8806 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8807 new fields on ABI object.
8808 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8809 * std-operator.def (OP_TYPEID): New.
8810
715c6909
TT
88112013-04-15 Tom Tromey <tromey@redhat.com>
8812
8813 * elfread.c (elf_symtab_read): Install versioned symbol under
8814 unversioned name as well.
8815
8de20a37
TT
88162013-04-15 Tom Tromey <tromey@redhat.com>
8817
8818 PR c++/11990:
8819 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8820 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8821 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8822 (gdb_demangle): New function.
8823 * cp-support.h (gdb_demangle): Declare.
8824 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8825 (dwarf2_name): Use gdb_demangle.
8826 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8827 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8828 suffixes from name.
8829 (gnuv3_print_method_ptr): Use gdb_demangle.
8830 * jv-lang.c (java_demangle): Use gdb_demangle.
8831 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8832 * language.c (unk_lang_demangle): Use gdb_demangle.
8833 * symtab.c (symbol_find_demangled_name)
8834 (demangle_for_lookup): Use gdb_demangle.
8835
591f19e8
TT
88362013-04-15 Tom Tromey <tromey@redhat.com>
8837
8838 PR c++/12824:
8839 * NEWS: Update.
8840 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8841 New constant.
8842 (classify_exception_breakpoint): New function.
8843 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8844 (print_mention_exception_catchpoint)
8845 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8846 (catch_exception_command_1): Handle "rethrow" catchpoint.
8847 (catch_rethrow_command): New function.
8848 (_initialize_breakpoint): Add "catch rethrow" command.
8849
4d40cad2
PM
88502013-04-15 Pierre Muller <muller@sourceware.org>
8851
8852 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8853 set_gdbarch_write_pc as deprecated anymore.
8854
30bcb456
JB
88552013-04-15 Joel Brobecker <brobecker@adacore.com>
8856
8857 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8858 declarations.
8859
da9160e4
YQ
88602013-04-13 Yao Qi <yao@codesourcery.com>
8861
8862 * ctf.c (_initialize_ctf): Include "completer.h".
8863 Call add_target_with_completer instead of add_target.
8864
39ed5604
JK
88652013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8866
8867 Fix GDB regression related to PR binutils/14813.
8868 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8869 * minidebug.c (lzma_close): Add return value comment.
8870 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8871 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8872 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8873
88742013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8875
8876 * config.in: Regenerate.
8877
d521ce57
TT
88782013-04-12 Tom Tromey <tromey@redhat.com>
8879
8880 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8881 const.
8882 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8883 (struct die_reader_specs) <buffer>: Likewise.
8884 (die_reader_func_ftype): Make 'info_ptr' const.
8885 (struct line_header) <include_dirs, statement_program_start,
8886 statement_program_end>: Now const.
8887 (struct file_entry) <name>: Likewise.
8888 (struct partial_die_info) <sibling>: Likewise.
8889 (struct dwarf_block) <data>: Likewise.
8890 (dwarf2_read_section): Remove cast.
8891 (dwarf2_get_section_info): Make 'bufp' const.
8892 (read_index_from_section): Constify.
8893 (dw2_get_file_names_reader): Make 'info_ptr' const.
8894 (dw2_get_primary_filename_reader): Likewise.
8895 (read_comp_unit_head): Make 'info_ptr' and return type const.
8896 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8897 Likewise.
8898 (read_abbrev_offset): Constify.
8899 (dwarf2_create_include_psymtab): Make 'name' const.
8900 (create_debug_types_hash_table): Update.
8901 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8902 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8903 Constify.
8904 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8905 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8906 (read_comp_units_from_section): Constify.
8907 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8908 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8909 const.
8910 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8911 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8912 (create_dwp_hash_table, dwarf2_ranges_read)
8913 (dwarf2_record_block_ranges): Constify.
8914 (read_die_and_children, read_die_and_siblings_1)
8915 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8916 const.
8917 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8918 (abbrev_table_read_table): Constify.
8919 (load_partial_dies): Make 'info_ptr' const.
8920 (read_partial_die, read_attribute_value, read_attribute): Make
8921 'info_ptr' and return type const.
8922 (read_address, read_initial_length)
8923 (read_checked_initial_length_and_offset, read_offset)
8924 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8925 const.
8926 (read_direct_string): Make 'buf' and return type const.
8927 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8928 (read_indirect_string): Make return type const.
8929 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8930 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8931 'info_ptr' const.
8932 (read_str_index): Make return type const.
8933 (add_include_dir): Make 'include_dir' const.
8934 (add_file_name): Make 'name' const.
8935 (dwarf_decode_line_header): Constify.
8936 (psymtab_include_file_name): Make return type const.
8937 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8938 (dwarf2_start_subfile): Make 'filename' const.
8939 (dwarf2_const_value_attr): Make 'bytes' const.
8940 (read_signatured_type_reader): Make 'info_ptr' const.
8941 (decode_locdesc): Constify.
8942 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8943 const.
8944 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8945 'mac_end', and return type const.
8946 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8947 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8948 type const.
8949 (per_cu_header_read_in): Constify.
8950 * symfile.h (dwarf2_get_section_info): Update.
8951
d47a1bc1
TT
89522013-04-12 Tom Tromey <tromey@redhat.com>
8953
8954 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8955
6eaaf48b
EZ
89562013-04-12 Eli Zaretskii <eliz@gnu.org>
8957
fc4c25bf 8958 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8959 * top.c (print_gdb_configuration): New function, displays the
8960 details about GDB configure-time parameters.
8961 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8962 * cli/cli-cmds.c (show_configuration): New function.
8963 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8964 * main.c (captured_main) <print_configuration>: New static var.
8965 <long_options>: Use it.
8966 If --configuration was given, call print_gdb_configuration.
8967
b292c783
JK
89682013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8969 Pedro Alves <palves@redhat.com>
8970
8971 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8972 (generated_files): Add gcore.
8973 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8974 HAVE_NATIVE_GCORE_HOST.
8975 (gcore): New.
8976 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8977 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8978 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8979 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8980 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8981 Add HAVE_NATIVE_GCORE_HOST.
8982 * configure: Regenerate.
8983 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8984 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8985 AC_CONFIG_FILES for gcore.
8986 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8987 gdb_have_gcore.
8988 * gdb_gcore.sh: Rename to ...
8989 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8990 and GCORE_TRANSFORM_NAME substitutions.
8991
c96b3c4f
JK
8992 Fix parsing tabs in ${gdb_target_obs}.
8993 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8994
d6cb50a2
JK
89952013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8996
8997 * remote.c (unpush_and_perror): Add output message final dot.
8998
cf2cb5ec
YQ
89992013-04-11 Yao Qi <yao@codesourcery.com>
9000
9001 * tracepoint.c (tfile_interp_line): Fit parameters line and
9002 utpp in one line.
9003
07293be4
JB
90042013-04-10 Joel Brobecker <brobecker@adacore.com>
9005
9006 * solib.c (solib_map_sections): Remove code overwriting
9007 SO->SO_NAME with the bfd's filename.
9008
f81d1120
PA
90092013-04-10 Pedro Alves <palves@redhat.com>
9010
9011 * cli/cli-decode.c (integer_unlimited_completer): New function.
9012 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9013 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9014 completer.
9015 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9016 (is_unlimited_literal): New function.
9017 (do_set_command): Handle literal "unlimited" arguments.
9018 * frame.c (_initialize_frame) <set backtrace limit>: Document
9019 "unlimited".
9020 * printcmd.c (_initialize_printcmd) <set print
9021 max-symbolic-offset>: Add help text.
9022 * record-full.c (_initialize_record_full) <set record full
9023 insn-number-max>: Likewise.
9024 * record.c (_initialize_record) <set record
9025 instruction-history-size, set record function-call-history-size>:
9026 Add help text.
9027 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9028 help text.
9029 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9030 Likewise.
9031 * source.c (_initialize_source) <set listsize>: Add help text.
9032 * utils.c (initialize_utils) <set height, set width>: Likewise.
9033 <set pagination>: Mention "set height unlimited".
9034 * valprint.c (_initialize_valprint) <set print elements, set print
9035 repeats>: Document "unlimited".
9036
2f9d54cf
PA
90372013-04-10 Pedro Alves <palves@redhat.com>
9038
9039 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9040 instead of disconnect_tracing.
9041 * infcmd.c (detach_command, disconnect_command): Call
9042 query_if_trace_running. Adjust.
9043 * top.c: Include "tracepoint.h".
9044 (quit_target): Delete. Contents moved ...
9045 (quit_force): ... here. Wrap each stage of teardown in
9046 TRY_CATCH. Call disconnect_tracing before detaching.
9047
393fd4c3
YQ
90482013-04-10 Hui Zhu <hui@codesourcery.com>
9049 Yao Qi <yao@codesourcery.com>
9050
9051 * configure.ac: Check libbabeltrace is installed.
9052 * config.in: Regenerate.
9053 * configure: Regenerate.
9054 * Makefile.in (LIBBABELTRACE): New.
9055 (CLIBS): Add LIBBABELTRACE.
9056 * ctf.c: Include "exec.h".
9057 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9058 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9059 (ctf_save_metadata_header): Define new type aliases in
9060 metadata.
9061 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9062 in metadata. Start a new faked packet for trace status.
9063 (ctf_write_status): Write trace status to CTF.
9064 (ctf_write_uploaded_tsv): Write TSV to CTF.
9065 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9066 (ctf_write_definition_end): End the faked packet.
9067
9068 (ctx, ctf_iter, trace_dirname): New.
9069 (start_pos): New variable.
9070 (ctf_destroy, ctf_open_dir, ctf_open): New.
9071 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9072 macros.
9073 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9074 (ctf_fetch_registers, ctf_xfer_partial): New.
9075 (ctf_get_trace_state_variable_value): New.
9076 (ctf_get_tpnum_from_frame_event): New.
9077 (ctf_get_traceframe_address): New.
9078 (ctf_trace_find, ctf_has_stack): New.
9079 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9080 (ctf_get_trace_status, ctf_read_status): New.
9081 (_initialize_ctf): New.
9082 * tracepoint.c (get_tracepoint_number): New
9083 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 9084 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
9085 * tracepoint.h: ... here.
9086 (get_tracepoint_number): Declare it.
9087 (get_uploaded_tsv): Declare it.
9088
9089 * NEWS: Mention new configure option.
9090
5c2b4418
HZ
90912013-04-10 Pedro Alves <palves@redhat.com>
9092 Hui Zhu <hui@codesourcery.com>
9093
9094 * breakpoint.c (dprintf_re_set): New.
9095 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9096 to dprintf_re_set.
9097
a5c66735
JB
90982013-04-09 Joel Brobecker <brobecker@adacore.com>
9099
9100 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9101 Remove solib-svr4.o from the list.
9102
9e77999c
JB
91032013-04-09 Joel Brobecker <brobecker@adacore.com>
9104
9105 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9106 Use gdb_assert_not_reached instead of invalid boolean expression.
9107
1927e618
PA
91082013-04-09 Pedro Alves <palves@redhat.com>
9109
9110 * remote.c (unpush_and_perror): New function.
9111 (readchar, remote_serial_write): Use it.
9112
10782d74
MM
91132013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9114
9115 * NEWS: Mention new btrace RSP packets.
9116
4c8429ef
TT
91172013-04-08 Tom Tromey <tromey@redhat.com>
9118
9119 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9120 long.
9121
8625fc1b
TT
91222013-04-08 Tom Tromey <tromey@redhat.com>
9123
9124 * maint.c (print_bfd_section_info): Print the section index.
9125 * symmisc.c (dump_msymbols): Print the section index.
9126
e27d198c
TT
91272013-04-08 Tom Tromey <tromey@redhat.com>
9128
9129 PR symtab/8424:
9130 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9131 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9132 * breakpoint.c (resolve_sal_pc): Update.
9133 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9134 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9135 (minsym_lookup_iterator_cb): Use it.
9136 (default_read_var_value): Update.
9137 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9138 Update.
9139 * infcmd.c (jump_command): Update.
9140 * linespec.c (minsym_found): Update.
9141 * maint.c (maintenance_translate_address): Update.
9142 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9143 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9144 * parse.c (write_exp_msymbol): Update.
9145 * printcmd.c (address_info): Update.
9146 * psymtab.c (find_pc_sect_psymbol): Update.
9147 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9148 SYMBOL_OBJ_SECTION.
9149 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9150 Don't initialize SYMBOL_OBJ_SECTION.
9151 * spu-tdep.c (spu_catch_start): Update.
9152 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9153 * symmisc.c (dump_msymbols, print_symbol): Update.
9154 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9155 how fallback section is computed.
9156 (fixup_symbol_section): Update.
9157 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9158 Update.
9159 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9160 Initialize SYMBOL_SECTION.
9161 * symtab.h (struct general_symbol_info) <section>: Update comment.
9162 <obj_section>: Remove.
9163 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9164 (SYMBOL_OBJFILE): New macro.
9165
e6dc44a8
TT
91662013-04-08 Tom Tromey <tromey@redhat.com>
9167
9168 * coffread.c (record_minimal_symbol): Update.
9169 * dbxread.c (record_minimal_symbol): Update.
9170 * elfread.c (record_minimal_symbol): Update.
9171 * machoread.c (macho_symtab_add_minsym): Update.
9172 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9173 Update.
9174 * minsyms.c (prim_record_minimal_symbol): Update.
9175 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9176 argument.
9177 (prim_record_minimal_symbol_and_info): Likewise.
9178 * minsyms.h (prim_record_minimal_symbol_full)
9179 (prim_record_minimal_symbol_and_info): Update.
9180 * symtab.c (allocate_symbol, initialize_symbol)
9181 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9182 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9183 Update.
9184
36192a8d
TT
91852013-04-08 Tom Tromey <tromey@redhat.com>
9186
9187 PR symtab/8423:
9188 * solib-som.c (som_solib_section_offsets): Use BFD section
9189 indices. Set offsets for all sections.
9190 * somread.c (som_symtab_read): Compute BFD section for
9191 symbol. Use prim_record_minimal_symbol_and_info.
9192 (som_symfile_read): Fix comment.
9193 (struct find_section_offset_arg): New.
9194 (find_section_offset, set_section_index): New functions.
9195 (som_symfile_offsets): Use set_section_index to compute
9196 section indices.
9197
65cf3563
TT
91982013-04-08 Tom Tromey <tromey@redhat.com>
9199
9200 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9201 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9202 gdb_bfd_section_index.
9203 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9204 New functions.
9205 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9206 Declare.
9207 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9208 Update.
9209 * objfiles.c (add_to_objfile_sections_full): New function.
9210 (add_to_objfile_sections): Use it.
9211 (build_section_table): Rewrite.
9212 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9213 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9214 (struct objfile) <sections>: Update comment.
9215 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9216 is NULL.
9217 (ALL_OBJSECTIONS): Use it.
9218 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9219 * solib-frv.c (frv_relocate_main_executable): Update.
9220 * solib-target.c (solib_target_relocate_section_addresses):
9221 Use gdb_bfd_section_index.
9222 * symfile.c (build_section_addr_info_from_section_table):
9223 Use gdb_bfd_section_index.
9224 (build_section_addr_info_from_bfd, place_section): Likewise.
9225 * symtab.c (fixup_section): Update.
9226 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9227
7cbd4a93
TT
92282013-04-08 Tom Tromey <tromey@redhat.com>
9229
9230 * minsyms.h (struct bound_minimal_symbol): New.
9231 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9232 Remove objfile argument.
9233 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9234 Return bound_minimal_symbol.
9235 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9236 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9237 Return bound_minimal_symbol.
9238 (in_gnu_ifunc_stub): Update.
9239 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9240 Remove 'objfile_p' argument.
9241 (lookup_solib_trampoline_symbol_by_pc): Update.
9242 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9243 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9244 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9245 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9246 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9247 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9248 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9249 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9250 stack.c, symtab.c, tui/tui-disasm.c: Update.
9251
f85f34ed
TT
92522013-04-08 Tom Tromey <tromey@redhat.com>
9253
9254 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9255 Use symbol's obstack, not an objfile.
9256 * coffread.c (process_coff_symbol): Update.
9257 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9258 * jv-lang.c (add_class_symbol): Update.
9259 * mdebugread.c (new_symbol): Update.
9260 * minsyms.c (prim_record_minimal_symbol_full)
9261 (terminate_minimal_symbol_table): Update.
9262 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9263 * stabsread.c (define_symbol, read_enum_type): Update.
9264 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9265 Handle Ada specially.
9266 (symbol_set_language): Add 'obstack' argument.
9267 (symbol_set_names): Update.
9268 (symbol_natural_name, symbol_demangled_name): Always use
9269 ada_decode_symbol.
9270 * symtab.h (struct general_symbol_info)
9271 <language_specific::obstack>: New field.
9272 <ada_mangled>: New field.
9273 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9274 (symbol_set_language): Update.
9275
ccde22c0
TT
92762013-04-08 Tom Tromey <tromey@redhat.com>
9277
9278 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9279 Take an obstack, not an objfile.
9280 (symbol_set_names): Update.
9281 * symtab.h (symbol_set_demangled_name): Update.
9282
e623cf5d
TT
92832013-04-08 Tom Tromey <tromey@redhat.com>
9284
9285 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9286 allocate_symbol.
9287 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9288 (read_func_scope): Call allocate_template_symbol.
9289 (new_symbol_full): Call allocate_symbol.
9290 * jit.c (finalize_symtab): Call allocate_symbol.
9291 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9292 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9293 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9294 (common_block_end): Call allocate_symbol.
9295 * symtab.c (allocate_symbol, initialize_symbol)
9296 (allocate_template_symbol): New functions.
9297 * symtab.c (allocate_symbol, initialize_symbol)
9298 (allocate_template_symbol): Declare.
9299 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9300
f6de8ec2
PA
93012013-04-08 Pedro Alves <palves@redhat.com>
9302 Keith Seitz <keiths@redhat.com>
9303
9304 * breakpoint.c (create_breakpoint): Rename
9305 "parse_condition_and_thread" parameter to "parse_arg". Update
9306 describing comment. If !PARSE_ARG, then error out if ARG is not
9307 the empty string after extracting the location.
9308 * breakpoint.h (create_breakpoint): Rename
9309 "parse_condition_and_thread" parameter to "parse_arg".
9310
f65ce5fb
AR
93112013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9312
9313 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9314
cc5925ad
YQ
93152013-04-07 Yao Qi <yao@codesourcery.com>
9316
9317 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9318 and 'addr2' to CORE_ADDR.
9319 * target.c (update_current_target): Update.
9320 * target.h (struct target_ops) <to_trace_find>: Change parameter
9321 type to CORE_ADDR.
9322 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9323 'addr2' to CORE_ADDR.
9324 (tfile_trace_find): Likewise.
9325 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9326 Change local variable 'addr' to type CORE_ADDR.
9327 * tracepoint.h (tfind_1): Update declaration.
9328
d9ac0664
EZ
93292013-04-06 Eli Zaretskii <eliz@gnu.org>
9330
9331 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9332 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9333 Include main.h.
9334
9335 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9336 here...
9337 * main.h (windows_get_absolute_argv0): ...to here.
9338
02142a6c
DE
93392013-04-05 Doug Evans <dje@google.com>
9340
9341 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9342 (read_cutu_die_from_dwo): Add comments.
9343 (read_structure_type): Update comment.
9344 (read_enumeration_type, read_namespace_type): Update comment.
9345 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9346
43662968
JK
93472013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9350 * Makefile.in (gdb.z): Remove.
9351 (install-only): Remove $(man1dir) and gdb.1 installation.
9352 * gdb.1: Remove.
9353
9ead1b84
JK
93542013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 Fix compatibility with Linux kernel 3.8.3.
9357 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9358 to more inner block. Remove parsing of NUMBER from outer block.
9359 Parse NUMBER only if KEYWORD has been identified.
9360
d1794952
JK
93612013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9362
9363 Fix variable name shadowing.
9364 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9365 filename to mapsfilename and update its uses.
9366
9025569e
EZ
93672013-04-05 Eli Zaretskii <eliz@gnu.org>
9368
9369 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9370 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9371 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9372 details of the problem.
9373
c9a6ce02
PA
93742013-04-04 Pedro Alves <palves@redhat.com>
9375 Hui Zhu <hui@codesourcery.com>
9376
9377 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9378 tracepoint, reset its STEP_COUNT and call validate_actionline.
9379
5ff888ce
DE
93802013-04-03 Doug Evans <dje@google.com>
9381
bf6af496
DE
9382 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9383 read_die_and_siblings.
9384 (read_die_and_siblings): New function.
9385 (read_cutu_die_from_dwo): Dump die if requested.
9386 (read_die_and_children): Call read_full_die_1 and
9387 read_die_and_siblings_1.
9388 (read_full_die): Dump die if requested.
9389
9390 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9391
0ac5b59e
DE
9392 * dwarf2read.c (struct dwo_file): New member comp_dir.
9393 Rename member name to dwo_name. All uses updated.
9394 (hash_dwo_file): Include comp_dir in computation.
9395 (eq_dwo_file): Ditto.
9396 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9397 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9398
5ff888ce
DE
9399 * psymtab.c (read_psymtabs_with_fullname): Don't call
9400 psymtab_to_fullname if the basenames are different.
9401
ec83d211
JK
94022013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9403
9404 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9405 New entry about "fullname" presence.
9406
4f4352f7
PA
94072013-04-03 Pedro Alves <palves@redhat.com>
9408
9409 * NEWS: Mention x86_64/Cygwin as new native configuration.
9410
3d1d5ea3
DE
94112013-04-02 Doug Evans <dje@google.com>
9412
9413 * dwarf2read.c (read_structure_type): Fix typo in comment.
9414
be9a8770
PA
94152013-04-02 Pedro Alves <palves@redhat.com>
9416
9417 * NEWS: Mention "set/show debug aarch64", "set/show debug
9418 coff-pe-read" and "set/show debug mach-o".
9419
a46c1e42
PA
94202013-04-02 Pedro Alves <palves@redhat.com>
9421
9422 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9423
3ad18b19
EZ
94242013-04-02 Eli Zaretskii <eliz@gnu.org>
9425
9426 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9427 gdb_string.h is now in common/.
9428
e9f1758d
PA
94292013-04-02 Pedro Alves <palves@redhat.com>
9430
9431 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9432 under "New options".
9433
049dc89b
JK
94342013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9435
9436 Revert this patch:
9437 PR gdb/15275
9438 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9439
c33e31fd
PA
94402013-04-02 Pedro Alves <palves@redhat.com>
9441
9442 PR gdb/15275
9443
9444 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9445 (remote_serial_write): New function.
9446 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9447
ea5f3910
JW
94482013-04-01 Jiong Wang <jiwang@tilera.com>
9449
9450 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9451 "New targets" sections.
ea5f3910 9452
5c6fa7ab
DE
94532013-04-01 Doug Evans <dje@google.com>
9454
c0f78cd4
DE
9455 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9456 (process_enumeration_scope): Simplify.
9457
0186c6a7
DE
9458 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9459 type_unit_group ...
9460 (struct signatured_type): ... to here.
9461 (sig_type_ptr): New typedef.
9462 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9463 out of union 't'. All uses updated.
9464 (dw2_get_file_names_reader): Assert not called for a type unit.
9465 (dw2_get_file_names): Assert not called for a type unit or type
9466 unit group.
9467 (build_type_psymtabs_reader): Assert called for a type unit.
9468 (build_type_psymtab_dependencies): Assert called for a type unit group.
9469
5c6fa7ab
DE
9470 * dwarf2read.c (free_dwo_file): Add comment.
9471 (dwarf2_per_objfile_free): Unref dwp bfd.
9472
b3c0ad67 94732013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9474
9475 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9476 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9477 (read_pe_exported_syms): Remove unused 'exportix'.
9478 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9479 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9480 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9481
e2df1547
AR
94822013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9483
9484 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9485 (print_it_watchpoint): Remove unused 'bl'.
9486 (say_where): Remove unused 'uiout'.
9487 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9488 (bkpt_breakpoint_hit): Remove unused 'b'.
9489 (internal_bkpt_print_it): Remove unused 'uiout'.
9490 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9491
d81e75c0
TD
94922013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9493
9494 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9495 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9496
5a8b3f62
DE
94972013-03-29 Doug Evans <dje@google.com>
9498
ab5088bf
DE
9499 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9500 Delete arg is_dwp. All callers updated.
9501 (open_dwp_file): New function.
9502 (open_and_init_dwp_file): Call it.
9503 (get_dwp_file): New function.
9504 (lookup_dwo_cutu): Call it.
9505
a8ad1e57
DE
9506 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9507 unnecessary, cleanup.
9508
6296d8c1
DE
9509 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9510
b0c7bfa9
DE
9511 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9512 (lookup_dwo_unit): New function.
9513 (init_cutu_and_read_dies): Move DWO handling to new functions.
9514
c88ee1f0
DE
9515 * dwarf2read.c (struct signatured_type): Tweak comment.
9516 (struct dwo_unit): Tweak comment.
9517 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9518 (create_dwo_debug_info_hash_table): Tweak comment.
9519 (dwarf2_per_cu_offset_and_type): Tweak comment.
9520
5a8b3f62
DE
9521 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9522 missing .debug_types section.
9523
9852c492
YQ
95242013-03-29 Yao Qi <yao@codesourcery.com>
9525
9526 * corelow.c: Include "completer.h".
9527 (_initialize_corelow): Call add_target_with_completer with
9528 argument 'filename_completer'.
9529 * tracepoint.c: Likewise.
9530 * exec.c (_initialize_exec): Likewise.
9531 * target.c (add_target): Rename to ...
9532 (add_target_with_completer): ... this. Call set_cmd_completer
9533 if parameter completer is not NULL.
9534 (add_target): New.
9535 * target.h: Include "command.h".
9536 (add_target_with_completer): Declare it.
9537
af312be7
JB
95382013-03-28 Joel Brobecker <brobecker@adacore.com>
9539
9540 * coffread.c (is_import_fixup_symbol): New function.
9541 (record_minimal_symbol): Use is_import_fixup_symbol to
9542 detect import fixup symbols, and discard them.
9543
8a0459fd
DE
95442013-03-28 Doug Evans <dje@google.com>
9545
0349ea22
DE
9546 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9547 types hash table until we know we need it.
9548
f652bce2
DE
9549 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9550 index numbers.
9551
e4a48d9d
DE
9552 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9553 All callers updated.
9554 (dw2_print_stats): Print #read CUs too.
9555 (dump_die_shallow): Print signatured types better.
9556
8a0459fd
DE
9557 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9558 info_or_types_section to section. All uses updated.
9559 (struct dwo_unit): Ditto.
9560
bd3eecc3
PA
95612013-03-28 Pedro Alves <palves@redhat.com>
9562
9563 * NEWS (New options): New section.
9564 (New options): Mention set/show remote trace-status-packet.
9565 * remote.c (PACKET_qTStatus): New enumeration value.
9566 (remote_get_trace_status): Skip sending qTStatus if the packet is
9567 disabled. Use packet_ok.
9568 (_initialize_remote): Register a configuration command for
9569 qTStatus packet.
9570
41245087
DE
95712013-03-28 Doug Evans <dje@google.com>
9572
7edbb660
DE
9573 * symfile.c (find_separate_debug_file): Add comment.
9574 (terminate_after_last_dir_separator): Tweak comment.
9575
0018ea6f
DE
9576 * dwarf2read.c (create_partial_symtab): Add forward decl.
9577 (create_partial_symtab): Move to be closer to other psymtab functions.
9578 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9579
ca69b9e6
DE
9580 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9581 (compute_symtab_includes): Remove unnecessary forward declaration.
9582 (die_needs_namespace): Add comment marking group of functions for
9583 dwarf2 name computation.
9584
a9375afe
DE
9585 * typeprint.c (_initialize_typeprint): Improve type help text.
9586
41245087
DE
9587 * python/python.c (finish_python_initialization): Provide suggestion
9588 for how to tell gdb to find its python files.
9589
7f7cc265
PA
95902013-03-28 Pedro Alves <palves@redhat.com>
9591
9592 PR gdb/15294
9593
9594 * source.c (_initialize_source): Change back "set listsize" to an
9595 integer command.
9596
ec21308c
JK
95972013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9598
9599 PR gdb/15275
9600 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9601
840a9a1f
PA
96022013-03-27 Pedro Alves <palves@redhat.com>
9603
9604 * top.c (history_size): Rename to ...
9605 (history_size_setshow_var): ... this. Add comment.
9606 (show_commands): Use readline's 'history_length' instead of
9607 computing the history length by calling history_get in a loop.
9608 (set_history_size_command): Error out for sizes over INT_MAX.
9609 Restore previous history size on invalid size.
9610 (init_history): If HISTSIZE is negative, leave the history size as
9611 zero. Add comments.
9612 (init_main): Adjust.
9613
826ecc4d
PA
96142013-03-27 Pedro Alves <palves@redhat.com>
9615
9616 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9617 coff_pe_read" command to "set debug coff-pe-read".
9618
0ccfeeae
MM
96192013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9620
9621 * record.c (command_size_to_target_size): Fix size comparison.
9622 Change parameter type from pointer to integer to integer.
9623 Update all users.
9624
40653b35
PM
96252013-03-27 Pierre Muller <muller@sourceware.org>
9626
9627 * windows-nat.c (handle_output_debug_string): Avoid typecast
9628 from integer of different size warning.
9629
c62fa0e2
JB
96302013-03-26 Joel Brobecker <brobecker@adacore.com>
9631
9632 * windows-nat.c (handle_output_debug_string): Add empty line
9633 after local block variable definition.
9634
2c619be2
PA
96352013-03-26 Pedro Alves <palves@redhat.com>
9636
9637 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9638 (net_open): Make 'polls' local unsigned.
9639
1b493192
PA
96402013-03-26 Pedro Alves <palves@redhat.com>
9641
9642 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9643 a zuinteger command instead of uinteger.
9644
7ee70bf5
PA
96452013-03-26 Pedro Alves <palves@redhat.com>
9646
9647 * record-full.c (record_full_insn_num): Make it unsigned.
9648 (record_full_check_insn_num, record_full_message)
9649 (record_full_registers_change, record_full_xfer_partial): Remove
9650 record_full_insn_max_num check (it's always != 0).
9651 (record_full_info, record_full_restore): Use %u as format string.
9652 (): Use %u as format string.
9653 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9654 check (it's always != 0).
9655
dfd1f9bb
PA
96562013-03-26 Pedro Alves <palves@redhat.com>
9657
9658 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9659 and "set dcache size" commands zuinteger instead of uinteger.
9660
addb4faf
PA
96612013-03-26 Pedro Alves <palves@redhat.com>
9662
9663 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9664 command zuinteger instead of uinteger.
9665
b75bf488
PA
96662013-03-26 Pedro Alves <palves@redhat.com>
9667
9668 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9669 zuinteger instead of uinteger.
9670
42c634cb
PA
96712013-03-26 Pedro Alves <palves@redhat.com>
9672
9673 * record.c (record_insn_history_size_setshow_var)
9674 (record_call_history_size_setshow_var): New globals.
9675 (command_size_to_target_size): New function.
9676 (cmd_record_insn_history, cmd_record_call_history): Use
9677 command_size_to_target_size instead of cast.
9678 (validate_history_size, set_record_insn_history_size)
9679 (set_record_call_history_size): New functions.
9680 (_initialize_record): Install set_record_insn_history_size and
9681 set_record_call_history_size as "set" hooks of "set record
9682 instruction-history-size" and "set record
9683 function-call-history-size".
9684
1fb2e2b5
PA
96852013-03-26 Pedro Alves <palves@redhat.com>
9686
9687 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9688 use with history_max_entries use. Remove FIXME note.
9689
99c819ee
MM
96902013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9691
9692 * record-btrace.c (record_btrace_close): Call
9693 record_btrace_auto_disable.
9694
9f9e404c
JB
96952013-03-25 Joel Brobecker <brobecker@adacore.com>
9696
9697 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9698
ebcdfe33
DE
96992013-03-25 Doug Evans <dje@google.com>
9700
9701 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9702
24955f63
TT
97032013-03-25 Tom Tromey <tromey@redhat.com>
9704
9705 PR symtab/11462:
9706 * c-exp.y (exp): Add new productions for destructors after '.' and
9707 '->'.
9708 (write_destructor_name): New function.
9709
fce632b6
TT
97102013-03-25 Tom Tromey <tromey@redhat.com>
9711
9712 PR c++/9197:
9713 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9714 value_struct_elt, not lookup_struct_elt_type.
9715 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9716 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9717 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9718
a4341769
YQ
97192013-03-25 Yao Qi <yao@codesourcery.com>
9720
9721 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9722 instead of '_mkdir'.
9723
b5981e5a
EZ
97242013-03-23 Eli Zaretskii <eliz@gnu.org>
9725
9726 * windows-nat.c (windows_get_absolute_argv0): New function.
9727 * windows-nat.h: Add its prototype.
9728
9729 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9730 Use IS_DIR_SEPARATOR instead of looking for a character inside
9731 SLASH_STRING. Include filenames.h.
9732 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9733 relocate_gdb_directory works when passed gdb_program_name.
9734 Include windows-nat.h.
9735
598d3636
JK
97362013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9737
9738 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9739 * remote.c (trace_error): Remove the special handling of '2'.
9740 (readchar) <SERIAL_EOF>
9741 (readchar) <SERIAL_ERROR>
9742 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9743 (remote_get_trace_status): Call throw_exception if EX is
9744 TARGET_CLOSE_ERROR.
9745 * utils.c (perror_with_name): Rename to ...
9746 (throw_perror_with_name): ... here. New parameter errcode, describe it
9747 in the function comment.
9748 (perror_with_name): New function wrapper.
9749 * utils.h (enum errors): New stub declaration.
9750 (throw_perror_with_name): New declaration.
9751
82b821e9
PA
97522013-03-22 Pedro Alves <palves@redhat.com>
9753 Yao Qi <yao@codesourcery.com>
9754 Mark Kettenis <kettenis@gnu.org>
9755
9756 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9757 Don't let the user set the value to UINT_MAX directly.
9758 <var_integer>: Don't let the user set the value to INT_MAX
9759 directly.
9760
78a095c3
JK
97612013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 * remote.c (remote_unpush_target): New function.
9764 (remote_open_1): Remove two pop_target calls, update one comment, add
9765 comment to target_preopen call. Replace pop_target call by
9766 remote_unpush_target call.
9767 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9768 pop_target calls by remote_unpush_target calls.
9769
3e74e146
PA
97702013-03-22 Pedro Alves <palves@redhat.com>
9771
9772 * linux-nat.c (linux_child_follow_fork): Don't call
9773 linux_enable_event_reporting.
9774 (linux_handle_extended_wait): Don't call
9775 linux_enable_event_reporting.
9776
a2213dca
PA
97772013-03-22 Pedro Alves <palves@redhat.com>
9778
9779 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9780 use it to rewrite the trampoline buffers with type gdb_byte[], and
9781 undefine the macro. Remove char* cast.
9782
bd712aed
DE
97832013-03-21 Doug Evans <dje@google.com>
9784
9785 New commands "mt set per-command {space,time,symtab} {on,off}".
9786 * NEWS: Add entry.
9787 * event-top.c: #include "maint.h".
9788 * main.c: #include "maint.h".
9789 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9790 timeval-utils.h, maint.h, cli/cli-setshow.h.
9791 (per_command_time, per_command_space): New static globals.
9792 (per_command_symtab): New static global.
9793 (per_command_setlist, per_command_showlist): New static globals.
9794 (struct cmd_stats): Move here from utils.c.
9795 (set_per_command_time): Renamed from set_display_time in utils.c
9796 and moved here. All callers updated.
9797 (set_per_command_space): Renamed from set_display_space in utils.c
9798 and moved here. All callers updated.
9799 (count_symtabs_and_blocks): New function.
9800 (report_command_stats): Moved here from utils.c. Add support for
9801 printing symtab stats. Only print data if enabled before command
9802 executed.
9803 (make_command_stats_cleanup): Ditto.
9804 (sert_per_command_cmd, show_per_command_cmd): New functions.
9805 (_initialize_maint_cmds): Add new commands
9806 mt set per-command {space,time,symtab} {on,off}.
9807 * maint.h: New file.
9808 * top.c: #include "maint.h".
9809 * utils.c (reset_prompt_for_continue_wait_time): New function.
9810 (get_prompt_for_continue_wait_time): New function.
9811 * utils.h (reset_prompt_for_continue_wait_time): Declare
9812 (get_prompt_for_continue_wait_time): Declare.
9813 (make_command_stats_cleanup): Moved to maint.h.
9814 (set_display_time, set_display_space): Moved to maint.h and renamed
9815 to set_per_command_time, set_per_command_space.
9816 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9817 parse_binary_operation and made non-static. Don't call error,
9818 just return an error marker. All callers updated.
9819 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9820
d76488d8
TT
98212013-03-21 Tom Tromey <tromey@redhat.com>
9822
9823 * symfile.c (alloc_section_addr_info): Update header. Don't set
9824 'num_sections' field.
9825 (build_section_addr_info_from_section_table): Set 'num_sections'.
9826 (build_section_addr_info_from_bfd): Likewise.
9827 (build_section_addr_info_from_objfile): Remove dead loop
9828 condition.
9829 (free_section_addr_info): Unconditionally call xfree.
9830 (relative_addr_info_to_section_offsets, addrs_section_sort)
9831 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9832 condition.
9833 (syms_from_objfile_1): Remove dead 'if' condition. Check
9834 'num_sections'.
9835 (add_symbol_file_command): Set 'num_sections'.
9836 * symfile-mem.c (symbol_file_add_from_memory): Set
9837 'num_sections'.
9838 * somread.c (som_symfile_offsets): Remove dead loop condition.
9839 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9840 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9841
a72e5169 98422013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9843
9844 * tracepoint.h (decode_agent_options): Add 'trace_string'
9845 argument.
9846 * tracepoint.c (decode_agent_options): Add 'trace_string'
9847 argument.
9848 (validate_actionline): Update.
9849 (collect_symbol): Add 'trace_string' argument.
9850 (struct add_local_symbols_data) <trace_string>: New field.
9851 (do_collect_symbol): Update.
9852 (add_local_symbols): Add 'trace_string' argument.
9853 (encode_actions_1): Update.
9854 (trace_dump_actions): Update.
9855 * dwarf2loc.c (access_memory): Update.
9856 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9857 * ax-general.c (new_agent_expr): Update.
9858 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9859 (gen_trace_for_return_address): Add argument.
9860 (trace_kludge, trace_string_kludge): Remove.
9861 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9862 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9863 (gen_trace_for_var): Add 'trace_string' argument.
9864 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9865 (gen_printf, agent_eval_command_one): Update.
9866
b2f83c08
TT
98672013-03-21 Tom Tromey <tromey@redhat.com>
9868
9869 PR exp/15109:
9870 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9871 Handle FILENAME token.
9872
9507860e
TT
98732013-03-21 Tom Tromey <tromey@redhat.com>
9874
9875 * c-exp.y (YYPRINT): Define.
9876 (c_print_token): New function.
9877
e403aa4b
TT
98782013-03-21 Tom Tromey <tromey@redhat.com>
9879
9880 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9881
af307d6a
YQ
98822013-03-21 Yao Qi <yao@codesourcery.com>
9883
9884 * ctf.c: Include "gdb_stat.h".
9885 [USE_WIN32API]: New macro 'mkdir'.
9886 (ctf_start): Use permission bits macros if they are defined.
9887
fb81d016
KS
98882013-03-20 Keith Seitz <keiths@redhat.com>
9889
9890 * breakpoint.h (struct breakpoint): Add comment to
9891 extra_string indicating that this member is mallod'd.
9892 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9893
ef0026f0
PA
98942013-03-20 Pedro Alves <palves@redhat.com>
9895
9896 PR gdb/15289
9897
9898 * cli/cli-setshow.c (do_set_command)
9899 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9900 the result of parsing the command argument. Throw error if the
9901 value is greater than UINT_MAX. Print the invalid value with
9902 plongest.
9903 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9904 result of parsing the command argument. Throw error if the value
9905 is greater than INT_MAX, not greater or equal. Also throw error
9906 if the value is less than INT_MIN. Print the invalid value with
9907 plongest.
9908 <var_zuinteger_unlimited>: Throw error if the value is greater
9909 than INT_MAX, not greater or equal.
9910 (do_show_command) <var_integer, var_zinteger,
9911 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9912
24d6c2a0
TT
99132013-03-20 Tom Tromey <tromey@redhat.com>
9914
9915 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9916 if possible.
9917 * dwarf2read.c (read_func_scope): Remove old FIXME.
9918 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9919 not LOC_COMPUTED.
9920 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9921 Unconditionally call via computed ops, if possible.
9922 * printcmd.c (address_info): Unconditionally call via computed ops,
9923 if possible.
9924 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9925 if possible.
9926 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9927 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9928 if possible.
9929
f1e6e072
TT
99302013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9931 Tom Tromey <tromey@redhat.com>
9932
9933 PR symtab/8421:
9934 * coffread.c (coff_register_index): New global.
9935 (process_coff_symbol, coff_read_enum_type): Set
9936 SYMBOL_ACLASS_INDEX.
9937 (_initialize_coffread): Initialize new global.
9938 * dwarf2loc.c (locexpr_find_frame_base_location)
9939 (dwarf2_block_frame_base_locexpr_funcs)
9940 (loclist_find_frame_base_location)
9941 (dwarf2_block_frame_base_loclist_funcs): New.
9942 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9943 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9944 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9945 (dwarf2_block_frame_base_loclist_funcs): New.
9946 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9947 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9948 globals.
9949 (read_func_scope): Update.
9950 (fixup_go_packaging, mark_common_block_symbol_computed)
9951 (var_decode_location, new_symbol_full, dwarf2_const_value):
9952 Set SYMBOL_ACLASS_INDEX.
9953 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9954 (_initialize_dwarf2_read): Initialize new globals.
9955 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9956 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9957 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9958 globals.
9959 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9960 (_initialize_mdebugread): Initialize new globals.
9961 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9962 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9963 (stab_register_index, stab_regparm_index): New globals.
9964 (define_symbol, read_enum_type, common_block_end): Set
9965 SYMBOL_ACLASS_INDEX.
9966 (_initialize_stabsread): Initialize new globals.
9967 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9968 globals.
9969 (MAX_SYMBOL_IMPLS): New define.
9970 (register_symbol_computed_impl, register_symbol_block_impl)
9971 (register_symbol_register_impl)
9972 (initialize_ordinary_address_classes): New functions.
9973 (_initialize_symtab): Call initialize_ordinary_address_classes.
9974 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9975 (struct symbol_impl): New.
9976 (SYMBOL_ACLASS_BITS): New define.
9977 (struct symbol) <aclass, ops>: Remove fields.
9978 <aclass_index>: New field.
9979 (symbol_impls): Declare.
9980 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9981 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9982 (register_symbol_computed_impl, register_symbol_block_impl)
9983 (register_symbol_register_impl): Declare.
9984 (struct symbol_computed_ops): Add location_has_loclist.
9985 (struct symbol_block_ops): New.
9986 (SYMBOL_BLOCK_OPS): New.
9987 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9988
dbccfd4c
TT
99892013-03-20 Tom Tromey <tromey@redhat.com>
9990
9991 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9992 (print_partial_symbols, recursively_search_psymtabs): Use
9993 PSYMBOL_CLASS.
9994
e3f1ad4f
PM
99952013-03-20 Pierre Muller <muller@sourceware.org>
9996
9997 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9998 addtion, subtraction, multiplication and division binary operator.
9999
460014f5
JK
100002013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10001
10002 Code cleanup.
10003 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10004 * bsd-kvm.c (bsd_kvm_close): Likewise.
10005 * bsd-uthread.c (bsd_uthread_close): Likewise.
10006 * corelow.c (core_close): Likewise.
10007 (core_close_cleanup): Remove parameter quitting from a caller.
10008 * event-top.c (async_disconnect): Likewise.
10009 * exec.c (exec_close_1): Remove parameter quitting.
10010 * go32-nat.c (go32_close): Likewise.
10011 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10012 parameter quitting from a caller.
10013 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10014 variable.
10015 (mips_linux_close): Remove parameter quitting. Remove parameter
10016 quitting from a caller.
10017 * monitor.c (monitor_close): Remove parameter quitting.
10018 * monitor.h (monitor_close): Likewise.
10019 * record-btrace.c (record_btrace_close): Likewise.
10020 * record-full.c (record_full_close): Likewise.
10021 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10022 it also from fprintf_unfiltered.
10023 * remote-mips.c (mips_close): Remove parameter quitting.
10024 (mips_detach): Remove parameter quitting from a caller.
10025 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10026 (gdbsim_close): Remove duplicate function comment. Remove parameter
10027 quitting and remove it also from printf_filtered.
10028 * remote.c (remote_close): Remove parameter quitting.
10029 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10030 * target.c (update_current_target): Remove parameter int from to_close
10031 de_fault.
10032 (push_target, unpush_target, pop_target): Remove parameter quitting from
10033 a caller.
10034 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10035 Remove parameter quitting from a caller.
10036 (target_preopen): Remove parameter quitting from a caller.
10037 (target_close): Remove parameter quitting. Remove parameter quitting
10038 from a caller two times. Remove parameter quitting also from
10039 fprintf_unfiltered.
10040 * target.h (struct target_ops): Remove parameter quitting and as int
10041 from fields to_xclose and to_close.
10042 (extern struct target_ops current_target):
10043 (target_close, pop_all_targets): Remove parameter quitting. Update the
10044 comment.
10045 (pop_all_targets_above): Remove parameter quitting.
10046 * top.c (quit_target): Remove parameter quitting from a caller.
10047 * tracepoint.c (tfile_close): Remove parameter quitting.
10048 * windows-nat.c (windows_close): Remove parameter quitting.
10049
35a7120b
CV
100502013-03-20 Corinna Vinschen <vinschen@redhat.com>
10051
10052 * windows-nat.c (handle_output_debug_string): Replace call
10053 to string_to_core_addr with call to strtoull.
10054
8249a5a9
YQ
100552013-03-20 Yao Qi <yao@codesourcery.com>
10056
10057 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10058 and write it to CTF metadata.
10059
2c15ef43
CV
100602013-03-19 Corinna Vinschen <vinschen@redhat.com>
10061
10062 * windows-nat.c (handle_output_debug_string): Change type of n to
10063 SIZE_T to avoid crash on 64 bit systems.
10064
1cdd3232
EZ
100652013-03-17 Eli Zaretskii <eliz@gnu.org>
10066
10067 * python/python-internal.h (HAVE_SNPRINTF)
10068 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10069 about redefinition of snprintf by pyerrors.h.
10070
3cb2ab1a
SE
100712013-03-15 Steve Ellcey <sellcey@mips.com>
10072
10073 * remote-sim.c (sim_command_completer): Make char arguments const.
10074
9ce98649
TT
100752013-03-15 Tom Tromey <tromey@redhat.com>
10076
10077 PR c++/15116:
10078 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10079
dccee2de
TT
100802013-03-14 Tom Tromey <tromey@redhat.com>
10081
10082 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10083 New fields.
10084 (get_file_crc): Move from symfile.c.
10085 (gdb_bfd_crc): New function.
10086 * gdb_bfd.h (gdb_bfd_crc): Declare.
10087 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10088 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10089 (separate_debug_file_exists): Use gdb_bfd_crc.
10090
cc0ea93c
TT
100912013-03-14 Tom Tromey <tromey@redhat.com>
10092
10093 * symfile.c (get_debug_link_info): Remove.
10094 (find_separate_debug_file_by_debuglink): Use
10095 bfd_get_debug_link_info.
10096
08c23b0d
TT
100972013-03-14 Tom Tromey <tromey@redhat.com>
10098
10099 * symtab.c (error_in_psymtab_expansion): New function.
10100 (lookup_symbol_aux_quick)
10101 (basic_lookup_transparent_type_quick): Remove "last resort"
10102 code. Use error_in_psymtab_expansion.
10103
288e77a7
JK
101042013-03-14 Doug Evans <dje@google.com>
10105 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10108 any successful compare_filenames_for_search or FILENAME_CMP.
10109 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10110 * symtab.c (iterate_over_some_symtabs): Likewise.
10111
8f1b8b82
JK
101122013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10113
10114 * source.c (print_source_lines_base): Make a local copy of
10115 symtab_to_fullname.
10116
23eb71e4
JK
101172013-03-14 Hui Zhu <hui_zhu@mentor.com>
10118 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 * source.c (print_source_lines_base): Suppress "file" for TUI.
10121
bb869963
SDJ
101222013-03-14 Keith Seitz <keiths@redhat.com>
10123 Alan Matsuoka <alanm@redhat.com>
10124
10125 PR c++/15203
10126 PR c++/15210
10127 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10128 TYPE_CODE_METHOD.
10129 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10130 symbols.
10131
d6682f9e
YQ
101322013-03-14 Yao Qi <yao@codesourcery.com>
10133
10134 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10135 status to tfile if trace is stopped by command 'tstop'.
10136
a22fa6e4
YQ
101372013-03-14 Yao Qi <yao@codesourcery.com>
10138
10139 * tracepoint.c (tfile_write_status): Write trace notes and user
10140 name into tfile if they are not NULL.
10141
d0353e76
YQ
101422013-03-14 Hui Zhu <hui@codesourcery.com>
10143 Yao Qi <yao@codesourcery.com>
10144
10145 * Makefile.in (REMOTE_OBS): Add ctf.o.
10146 (SFILES): Add ctf.c.
10147 (HFILES_NO_SRCDIR): Add ctf.h.
10148 * ctf.c, ctf.h: New files.
10149 * tracepoint.c: Include 'ctf.h'.
10150 (collect_pseudocommand): Remove static.
10151 (trace_save_command): Parse option "-ctf".
10152 Produce different trace file writers per option.
10153 Adjust output message.
10154 (trace_save_tfile, trace_save_ctf): New.
10155 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10156 * mi/mi-main.c: Include 'ctf.h'.
10157 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10158 trace_save_tfile or trace_save_ctf.
10159 * NEWS: Mention these changes.
10160
3f43bc09
YQ
101612013-03-14 Yao Qi <yao@codesourcery.com>
10162
10163 * tracepoint.c (trace_file_writer_xfree): New.
10164 (struct tfile_writer_data): New.
10165 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10166 (tfile_write_header, tfile_write_regblock_type): New.
10167 (tfile_write_status, tfile_write_uploaded_tsv): New.
10168 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10169 (tfile_write_raw_data, (tfile_end): New.
10170 (tfile_write_ops): New global variable.
10171 (TRACE_WRITE_R_BLOCK): New macro.
10172 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10173 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10174 (TRACE_WRITE_V_BLOCK): New macro.
10175 (trace_save): Add extra one parameter WRITER. Make it static.
10176 Use WRITER to writer trace.
10177 (tfile_trace_file_writer_new): New.
10178 (trace_save_command): Caller update.
10179 (trace_save_tfile): Write trace data in TFILE format.
10180 * tracepoint.h (struct trace_frame_write_ops): New.
10181 (struct trace_file_write_ops): New.
10182 (struct trace_file_writer): New.
10183 (trace_save): Remove its declaration.
10184 (trace_save_tfile): Declare it.
10185 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10186 instead of trace_save.
10187
58665b40
PA
101882013-03-13 Pedro Alves <palves@redhat.com>
10189
10190 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10191
10217050
PA
101922013-03-13 Pedro Alves <palves@redhat.com>
10193
10194 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10195 commented out code.
10196 * demangle.c (current_demangling_style_string): Make it const.
10197 (set_demangling_command): Assert the demangling style is known.
10198 Remove all handling of unknown styles. Set
10199 'current_demangling_style_string' to an element of the
10200 demangling_style_names array.
10201 (set_demangling_style): Delete.
10202 (_initialize_demangler): Set current_demangling_style_string to the
10203 element of the demangling_style_names array that corresponds to
10204 the default demangling style. Remove FIXME note. Don't call
10205 set_demangling_style.
10206 * gdb-demangle.h (set_demangling_style): Remove declaration.
10207
6f937416
PA
102082013-03-13 Pedro Alves <palves@redhat.com>
10209
10210 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10211 fields const.
10212 (ada_make_symbol_completion_list): Make "text0" parameter const.
10213 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10214 * breakpoint.c (condition_completer): Make "text" and "word"
10215 parameters const. Adjust.
10216 (check_tracepoint_command): Adjust to validate_actionline
10217 prototype change.
10218 (catch_syscall_completer): Make "text" and "word" parameters
10219 const.
10220 * cli/cli-cmds.c (show_user): Make "comname" local const.
10221 (valid_command_p): Make "command" parameter const.
10222 (alias_command): Make "alias_prefix" and "command_prefix" locals
10223 const.
10224 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10225 (add_alias_cmd): Make "name" and "oldname" parameters const.
10226 Adjust. No longer make copy of OLDNAME.
10227 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10228 (add_setshow_cmd_full, add_setshow_enum_cmd)
10229 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10230 (add_setshow_filename_cmd, add_setshow_string_cmd)
10231 (add_setshow_string_noescape_cmd)
10232 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10233 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10234 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10235 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10236 Make "name" parameter const.
10237 (help_cmd): Rename "command" parameter to "arg". New const local
10238 "command".
10239 (find_cmd): Make "command" parameter const.
10240 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10241 deprecated_cmd_warning prototype change.
10242 (undef_cmd_error): Make "cmdtype" parameter const.
10243 (lookup_cmd): Make "line" parameter const.
10244 (deprecated_cmd_warning): Change type of "text" parameter to
10245 pointer to const char, from pointer to pointer to char. Adjust.
10246 (lookup_cmd_composition): Make "text" parameter const.
10247 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10248 parameters const.
10249 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10250 const.
10251 * cli/cli-script.c (validate_comname): Make "tem" local const.
10252 (define_command): New const local "tem_c". Use it in calls to
10253 lookup_cmd.
10254 (document_command): Make "tem" and "comfull" locals const.
10255 (show_user_1): Make "prefix" and "name" parameters const.
10256 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10257 const.
10258 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10259 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10260 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10261 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10262 (complete_on_enum, add_setshow_enum_cmd)
10263 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10264 (add_setshow_filename_cmd, add_setshow_string_cmd)
10265 (add_setshow_string_noescape_cmd)
10266 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10267 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10268 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10269 Change prototypes, constifying strings.
10270 * completer.c (noop_completer, filename_completer): Make "text"
10271 and "prefix" parameters const.
10272 (location_completer, expression_completer)
10273 (complete_line_internal): Make "text" and "prefix" parameters
10274 const and adjust.
10275 (command_completer, signal_completer): Make "text" and "prefix"
10276 parameters const.
10277 * completer.h (noop_completer, filename_completer)
10278 (expression_completer, location_completer, command_completer)
10279 (signal_completer): Change prototypes.
10280 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10281 parameters const.
10282 * cp-abi.c (cp_abi_completer): Likewise.
10283 * expression.h (parse_expression_for_completion): Change
10284 prototype.
10285 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10286 parameters const.
10287 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10288 * infrun.c (handle_completer): Make "text" and "word" parameters
10289 const.
10290 * interps.c (interpreter_completer): Make "text" and "word"
10291 parameters const.
10292 * language.h (struct language_defn)
10293 <la_make_symbol_completion_list>: Make "text" and "word"
10294 parameters const.
10295 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10296 (parse_exp_in_context): Rename to ...
10297 (parse_exp_in_context_1): ... this.
10298 (parse_exp_in_context): Reimplement, with const hack from
10299 parse_exp_1.
10300 (parse_expression_for_completion): Make "string" parameter const.
10301 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10302 to pointer to const char. Adjust.
10303 (print_command_1): Make "exp" parameter const.
10304 (output_command): Rename to ...
10305 (output_command_const): ... this. Make "exp" parameter const.
10306 (output_command): Reimplement.
10307 (x_command): Adjust.
10308 (display_command): Rename "exp" parameter to "arg". New "exp"
10309 local, const version of "arg".
10310 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10311 "cmd_name" local const.
10312 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10313 call.
10314 (cmdpy_completer): Make "text" and "word" parameters const.
10315 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10316 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10317 const.
10318 * remote.c (_initialize_remote): Make "cmd_name" local const.
10319 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10320 parameters const. Adjust.
10321 (completion_list_add_fields): Make "sym_text", "text" and "word"
10322 parameters const.
10323 (struct add_name_data) <sym_text, text, word>: Make fields const.
10324 (default_make_symbol_completion_list_break_on): Make "text" and
10325 "word" parameters const. Adjust locals.
10326 (default_make_symbol_completion_list)
10327 (make_symbol_completion_list, make_symbol_completion_type)
10328 (make_symbol_completion_list_fn): Make "text" and "word"
10329 parameters const.
10330 (make_file_symbol_completion_list): Make "text", "word" and
10331 "srcfile" parameters const. Adjust locals.
10332 (add_filename_to_list): Make "text" and "word" parameters const.
10333 (struct add_partial_filename_data) <text, word>: Make fields
10334 const.
10335 (make_source_files_completion_list): Make "text" and "word"
10336 parameters const.
10337 * symtab.h (default_make_symbol_completion_list_break_on)
10338 (default_make_symbol_completion_list, make_symbol_completion_list)
10339 (make_symbol_completion_type enum type_code)
10340 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10341 (make_source_files_completion_list): Change prototype.
10342 * top.c (execute_command): Adjust to pass pointer to pointer to
10343 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10344 change.
10345 (set_verbose): Make "cmdname" local const.
10346 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10347 and adjust.
10348 (validate_actionline): Make "line" parameter a pointer to const
10349 char, and adjust.
10350 (encode_actions_1): Make "action_exp" local const, and adjust.
10351 (encode_actions): Adjust.
10352 (replace_comma): Delete.
10353 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10354 const, and adjust. Don't frob the action string while splitting
10355 it at commas. Instead, make a copy of each split substring in
10356 turn.
10357 (trace_dump_command): Adjust to validate_actionline prototype
10358 change.
10359 * tracepoint.h (decode_agent_options, decode_agent_options)
10360 (encode_actions, validate_actionline): Change prototypes.
10361 * valprint.h (output_command): Delete declaration.
10362 (output_command_const): Declare.
10363 * value.c (function_destroyer): Cast const away in xfree call.
10364
a0bcdaa7
PA
103652013-03-13 Pedro Alves <palves@redhat.com>
10366
10367 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10368 rather than casting 'const char * const *' to 'const char **'.
10369 * ada-lex.l (processInt): Make "trailer" local const. Remove
10370 'const char **' cast.
10371 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10372 locals, and use those as strtol output pointer, instead than doing
10373 invalid casts to from 'const char **' to 'char **'.
10374 (_initialize_demangle): Remove cast.
10375 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10376 locals, and use those as strtol output pointer, instead than doing
10377 invalid casts to from 'const char **' to 'char **'.
10378 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10379 casts.
10380 * stap-probe.c (stap_parse_register_operand)
10381 (stap_parse_single_operand): Likewise.
10382
8ddb1965
YQ
103832013-03-13 Yao Qi <yao@codesourcery.com>
10384
10385 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10386 the last matched 'V' blcok in trace frame.
10387
2d450646
JB
103882013-03-12 Joel Brobecker <brobecker@adacore.com>
10389
10390 * NEWS: Create a new section for the next release branch.
10391 Rename the section of the current branch, now that it has
10392 been cut.
10393
b4b79973 103942013-03-12 Joel Brobecker <brobecker@adacore.com>
10395
10396 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10397 * version.in: Bump version to 7.6.50.20130312-cvs.
10398
ee047554
KS
103992013-03-12 Keith Seitz <keiths@redhat.com>
10400
10401 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10402 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10403 Remove temporary copy of input string.
10404 (mi_execute_command_wrapper): Make "cmd" const.
10405 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10406 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10407 Use const strings.
10408 (mi_parse): Make "cmd" const.
10409 Use const strings.
10410 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10411
bbc13ae3
KS
104122013-03-12 Keith Seitz <keiths@redhat.com>
10413
10414 * ada-lang.c (ada_read_renaming_var_value): Pass const
10415 pointer to expression string to parse_exp_1.
10416 (create_excep_cond_exprs): Likewise.
10417 * ax-gdb.c (agent_eval_command_one): Likewise.
10418 (maint_agent_printf_command): Likewise.
10419 Constify much of the string handling/parsing.
10420 * breakpoint.c (set_breakpoint_condition): Pass const
10421 pointer to expression string to parse_exp_1.
10422 (update_watchpoint): Likewise.
10423 (parse_cmd_to_aexpr): Constify string handling.
10424 Pass const pointer to parse_exp_1.
10425 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10426 (find_condition_and_thread): Likewise.
10427 Make TOK const.
10428 (watch_command_1): Make "arg" const.
10429 Constify string handling.
10430 Copy the expression string instead of changing the input
10431 string.
10432 (update_breakpoint_location): Pass const pointer to
10433 parse_exp_1.
10434 * eval.c (parse_and_eval_address): Make "exp" const.
10435 (parse_to_comma_and_eval): Make "expp" const.
10436 (parse_and_eval): Make "exp" const.
10437 * expression.h (parse_expression): Make argument const.
10438 (parse_exp_1): Make first argument const.
10439 * findcmd.c (parse_find_args): Treat "args" as const.
10440 * linespec.c (parse_linespec): Pass const pointer to
10441 linespec_expression_to_pc.
10442 (linespec_expression_to_pc): Make "exp_ptr" const.
10443 * parse.c (parse_exp_1): Make "stringptr" const.
10444 Make a copy of the expression to pass to parse_exp_in_context until
10445 this whole interface can be constified.
10446 (parse_expression): Make "string" const.
10447 * printcmd.c (ui_printf): Treat "arg" as const.
10448 Handle const strings.
10449 * tracepoint.c (validate_actionline): Pass const pointer to
10450 all calls to parse_exp_1.
10451 (encode_actions_1): Likewise.
10452 * value.h (parse_to_comma_and_eval): Make argument const.
10453 (parse_and_eval_address): Likewise.
10454 (parse_and_eval): Likewise.
10455 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10456 (varobj_set_value): Likewise.
10457 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10458 constify string handling.
10459 Pass const pointers to parse_and_eval_address and
10460 parse_to_comman_and_eval.
10461 * cli/cli-utils.c (skip_to_space): Rename to ...
10462 (skip_to_space_const): ... this. Handle const strings.
10463 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10464 skip_to_space_const.
10465 (skip_to_space_const): Declare.
10466 * common/format.c (parse_format_string): Make "arg" const.
10467 Handle const strings.
10468 * common/format.h (parse_format_string): Make "arg" const.
10469 * gdbserver/ax.c (ax_printf): Make "format" const.
10470 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10471 of the expression string.
10472
f3cec7e6
HZ
104732013-03-12 Hui Zhu <hui@codesourcery.com>
10474
10475 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10476
9df7235c
HZ
104772013-03-12 Yao Qi <yao@codesourcery.com>
10478 Hui Zhu <hui@codesourcery.com>
10479
10480 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10481 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10482 DW_OP_deref_size.
10483
82d049ab
PH
104842013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10485
5f8e0b8f
MF
10486 * ada-lex.l (rules): Only recognize 'thread' as a
10487 delimiter when followed by numerals, as for c-exp.y.
10488 Use new rewind_to_char function to rewind the input for
10489 expression-delimiting tokens.
10490 (rewind_to_char): New function.
82d049ab 10491
8c1fb155
JK
104922013-03-11 Pedro Alves <palves@redhat.com>
10493 Jan Kratochvil <jan.kratochvil@redhat.com>
10494
10495 * configure: Regenerate.
10496 * configure.ac (check dynamic export flag): Link python test with
10497 $PYTHON_LIBS.
10498
cc81e1c6
DE
104992013-03-11 Doug Evans <dje@google.com>
10500 Keith Seitz <keiths@redhat.com>
10501
10502 * linespec.c (find_linespec_symbols): Call find_function_symbols
10503 first, and then call lookup_prefix_sym/find_method.
10504
39086a0e
PA
105052013-03-11 Pedro Alves <palves@redhat.com>
10506
10507 * charset.c (convert_between_encodings): Don't cast between
10508 different pointer to pointer types. Instead, make the 'inp' local
10509 be of the type iconv expects.
10510 (wchar_iterate): Don't cast between different pointer to pointer
10511 types. Instead, use new pointer local of the type iconv expects.
10512 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10513 Add new local of type char pointer, and use it to get a
10514 char/string view of the byte buffer, instead of casting between
10515 pointer to pointer types.
10516
90585175
HAQ
105172013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10518
10519 * remote.c (remote_set_trace_buffer_size): Move != operator
10520 to the start of next line to fix an ARI warning.
10521
59ea5688
MM
105222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10523
10524 * NEWS: Add record changes.
10525
946287b7
MM
105262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10527
10528 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10529 the instruction history disassembly.
10530 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10531 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10532
afedecd3
MM
105332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10534
10535 * Makefile.in (SFILES): Add record-btrace.c
10536 (COMMON_OBS): Add record-btrace.o
10537 * record-btrace.c: New.
10538 * objfiles.c: Include btrace.h.
10539 (free_objfile): call btrace_free_objfile.
10540
15984c13
MM
105412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10542
10543 * target.c (target_call_history, target_call_history_from,
10544 target_call_history_range): New.
10545 * target.h (target_ops) <to_call_history, to_call_history_from,
10546 to_call_history_range>: New fields.
10547 (target_call_history, target_call_history_from,
10548 target_call_history_range): New declaration.
10549 * record.c (get_call_history_modifiers, cmd_record_call_history,
10550 record_call_history_size): New.
10551 (_initialize_record): Add the "record function-call-history" command.
10552 Add "set/show record function-call-history-size" commands.
10553 * record.h (record_print_flag): New.
10554
67c86d06
MM
105552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10556
10557 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10558 to_insn_history_range>: New fields.
10559 (target_insn_history): New.
10560 (target_insn_history_from): New.
10561 (target_insn_history_range): New.
10562 * target.c (target_insn_history): New.
10563 (target_insn_history_from): New.
10564 (target_insn_history_range): New.
10565 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10566 (record_insn_history_size): New.
10567 (get_insn_number): New.
10568 (get_context_size): New.
10569 (no_chunk): New.
10570 (get_insn_history_modifiers): New.
10571 (cmd_record_insn_history): New.
10572 (_initialize_record): Add "set/show record instruction-history-size"
10573 command. Add "record instruction-history" command.
10574
7c1687a9
MM
105752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10576
10577 * record.h (record_disconnect): New.
10578 (record_detach): New.
10579 (record_mourn_inferior): New.
10580 (record_kill): New.
10581 * record-full.c (record_disconnect, record_detach,
10582 record_mourn_inferior, record_kill): Move to...
10583 * record.c: ...here.
10584 (DEBUG): New.
10585 (record_stop): New.
10586 (record_unpush): New.
10587 (cmd_record_stop): Call record_stop. Replace unpush_target
10588 call with record_unpush call.
10589 (record_disconnect, record_detach): Assert that the target
10590 is of record stratum. Call record_unpush, record_stop, and
10591 DEBUG.
10592 (record_mourn_inferior, record_kill): Assert that the target
10593 is of record stratum. Call record_unpush and DEBUG.
10594
25ea693b
MM
105952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10596
10597 * record-full.h, record-full.c (record_memory_query): Rename
10598 to ...
10599 (record_full_memory_query): ...this. Update all users.
10600 (record_arch_list_add_reg): Rename to ...
10601 (record_full_arch_list_add_reg): ...this. Update all users.
10602 (record_arch_list_add_mem): Rename to ...
10603 (record_full_arch_list_add_mem): ...this. Update all users.
10604 (record_arch_list_add_end): Rename to ...
10605 (record_full_arch_list_add_end): ...this. Update all users.
10606 (record_gdb_operation_disable_set): Rename to ...
10607 (record_full_gdb_operation_disable_set): ...this.
10608 Update all users.
10609
88d1aa9d
MM
106102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10611
10612 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10613 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10614 (RECORD_IS_REPLAY): Renamed to ...
10615 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10616 (RECORD_FILE_MAGIC): Renamed to ...
10617 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10618 (record_mem_entry): Renamed to ...
10619 (record_full_mem_entry): ... this. Updated all users.
10620 (record_reg_entry): Renamed to ...
10621 (record_full_reg_entry): ... this. Updated all users.
10622 (record_end_entry): Renamed to ...
10623 (record_full_end_entry): ... this. Updated all users.
10624 (record_type) <record_end, record_reg, record_mem>: Renamed
10625 to ...
10626 (record_full_type) <record_full_end, record_full_reg,
10627 record_full_mem>: ... this. Updated all users.
10628 (record_entry): Renamed to ...
10629 (record_full_entry): ... this. Updated all users.
10630 (record_core_buf_entry): Renamed to ...
10631 (record_full_core_buf_entry): ... this. Updated all users.
10632 (record_core_regbuf): Renamed to ...
10633 (record_full_core_regbuf): ... this. Updated all users.
10634 (record_core_start): Renamed to ...
10635 (record_full_core_start): ... this. Updated all users.
10636 (record_core_end): Renamed to ...
10637 (record_full_core_end): ... this. Updated all users.
10638 (record_core_buf_list): Renamed to ...
10639 (record_full_core_buf_list): ... this. Updated all users.
10640 (record_first): Renamed to ...
10641 (record_full_first): ... this. Updated all users.
10642 (record_list): Renamed to ...
10643 (record_full_list): ... this. Updated all users.
10644 (record_arch_list_head): Renamed to ...
10645 (record_full_arch_list_head): ... this. Updated all users.
10646 (record_arch_list_tail): Renamed to ...
10647 (record_full_arch_list_tail): ... this. Updated all users.
10648 (record_stop_at_limit): Renamed to ...
10649 (record_full_stop_at_limit): ... this. Updated all users.
10650 (record_insn_max_num): Renamed to ...
10651 (record_full_insn_max_num): ... this. Updated all users.
10652 (record_insn_num): Renamed to ...
10653 (record_full_insn_num): ... this. Updated all users.
10654 (record_insn_count): Renamed to ...
10655 (record_full_insn_count): ... this. Updated all users.
10656 (record_ops): Renamed to ...
10657 (record_full_ops): ... this. Updated all users.
10658 (record_core_ops): Renamed to ...
10659 (record_full_core_ops): ... this. Updated all users.
10660 (set_record_cmdlist): Renamed to ...
10661 (set_record_full_cmdlist): ... this. Updated all users.
10662 (show_record_cmdlist): Renamed to ...
10663 (show_record_full_cmdlist): ... this. Updated all users.
10664 (record_cmdlist): Renamed to ...
10665 (record_full_cmdlist): ... this. Updated all users.
10666 (record_beneath_to_resume_ops): Renamed to ...
10667 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10668 (record_beneath_to_resume): Renamed to ...
10669 (record_full_beneath_to_resume): ... this. Updated all users.
10670 (record_beneath_to_wait_ops): Renamed to ...
10671 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10672 (record_beneath_to_wait): Renamed to ...
10673 (record_full_beneath_to_wait): ... this. Updated all users.
10674 (record_beneath_to_store_registers_ops): Renamed to ...
10675 (record_full_beneath_to_store_registers_ops): ... this.
10676 Updated all users.
10677 (record_beneath_to_store_registers): Renamed to ...
10678 (record_full_beneath_to_store_registers): ... this.
10679 Updated all users.
10680 (record_beneath_to_xfer_partial_ops): Renamed to ...
10681 (record_full_beneath_to_xfer_partial_ops): ... this.
10682 Updated all users.
10683 (record_beneath_to_xfer_partial): Renamed to ...
10684 (record_full_beneath_to_xfer_partial): ... this.
10685 Updated all users.
10686 (record_beneath_to_insert_breakpoint): Renamed to ...
10687 (record_full_beneath_to_insert_breakpoint): ... this.
10688 Updated all users.
10689 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10690 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10691 Updated all users.
10692 (record_beneath_to_stopped_data_address): Renamed to ...
10693 (record_full_beneath_to_stopped_data_address): ... this.
10694 Updated all users.
10695 (record_beneath_to_async): Renamed to ...
10696 (record_full_beneath_to_async): ... this. Updated all users.
10697 (record_goto_insn): Renamed to ...
10698 (record_full_goto_insn): ... this. Updated all users.
10699 (record_save): Renamed to ...
10700 (record_full_save): ... this. Updated all users.
10701 (record_reg_alloc): Renamed to ...
10702 (record_full_reg_alloc): ... this. Updated all users.
10703 (record_reg_release): Renamed to ...
10704 (record_full_reg_release): ... this. Updated all users.
10705 (record_mem_alloc): Renamed to ...
10706 (record_full_mem_alloc): ... this. Updated all users.
10707 (record_mem_release): Renamed to ...
10708 (record_full_mem_release): ... this. Updated all users.
10709 (record_end_alloc): Renamed to ...
10710 (record_full_end_alloc): ... this. Updated all users.
10711 (record_end_release): Renamed to ...
10712 (record_full_end_release): ... this. Updated all users.
10713 (record_entry_release): Renamed to ...
10714 (record_full_entry_release): ... this. Updated all users.
10715 (record_list_release): Renamed to ...
10716 (record_full_list_release): ... this. Updated all users.
10717 (record_list_release_following): Renamed to ...
10718 (record_full_list_release_following): ... this.
10719 Updated all users.
10720 (record_list_release_first): Renamed to ...
10721 (record_full_list_release_first): ... this. Updated all users.
10722 (record_arch_list_add): Renamed to ...
10723 (record_full_arch_list_add): ... this. Updated all users.
10724 (record_get_loc): Renamed to ...
10725 (record_full_get_loc): ... this. Updated all users.
10726 (record_check_insn_num): Renamed to ...
10727 (record_full_check_insn_num): ... this. Updated all users.
10728 (record_arch_list_cleanups): Renamed to ...
10729 (record_full_arch_list_cleanups): ... this. Updated all users.
10730 (record_message): Renamed to ...
10731 (record_full_message): ... this. Updated all users.
10732 (record_message_wrapper): Renamed to ...
10733 (record_full_message_wrapper): ... this. Updated all users.
10734 (record_message_wrapper_safe): Renamed to ...
10735 (record_full_message_wrapper_safe): ... this. Updated all users.
10736 (record_gdb_operation_disable): Renamed to ...
10737 (record_full_gdb_operation_disable): ... this. Updated all users.
10738 (record_hw_watchpoint): Renamed to ...
10739 (record_full_hw_watchpoint): ... this. Updated all users.
10740 (record_exec_insn): Renamed to ...
10741 (record_full_exec_insn): ... this. Updated all users.
10742 (record_restore): Renamed to ...
10743 (record_full_restore): ... this. Updated all users.
10744 (record_async_inferior_event_token): Renamed to ...
10745 (record_full_async_inferior_event_token): ... this.
10746 Updated all users.
10747 (record_async_inferior_event_handler): Renamed to ...
10748 (record_full_async_inferior_event_handler): ... this.
10749 Updated all users.
10750 (record_core_open_1): Renamed to ...
10751 (record_full_core_open_1): ... this. Updated all users.
10752 (record_open_1): Renamed to ...
10753 (record_full_open_1): ... this. Updated all users.
10754 (record_open): Renamed to ...
10755 (record_full_open): ... this. Updated all users.
10756 (record_close): Renamed to ...
10757 (record_full_close): ... this. Updated all users.
10758 (record_resume_step): Renamed to ...
10759 (record_full_resume_step): ... this. Updated all users.
10760 (record_resumed): Renamed to ...
10761 (record_full_resumed): ... this. Updated all users.
10762 (record_execution_dir): Renamed to ...
10763 (record_full_execution_dir): ... this. Updated all users.
10764 (record_resume): Renamed to ...
10765 (record_full_resume): ... this. Updated all users.
10766 (record_get_sig): Renamed to ...
10767 (record_full_get_sig): ... this. Updated all users.
10768 (record_sig_handler): Renamed to ...
10769 (record_full_sig_handler): ... this. Updated all users.
10770 (record_wait_cleanups): Renamed to ...
10771 (record_full_wait_cleanups): ... this. Updated all users.
10772 (record_wait_1): Renamed to ...
10773 (record_full_wait_1): ... this. Updated all users.
10774 (record_wait): Renamed to ...
10775 (record_full_wait): ... this. Updated all users.
10776 (record_stopped_by_watchpoint): Renamed to ...
10777 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10778 (record_disconnect): Renamed to ...
10779 (record_full_disconnect): ... this. Updated all users.
10780 (record_detach): Renamed to ...
10781 (record_full_detach): ... this. Updated all users.
10782 (record_mourn_inferior): Renamed to ...
10783 (record_full_mourn_inferior): ... this. Updated all users.
10784 (record_kill): Renamed to ...
10785 (record_full_kill): ... this. Updated all users.
10786 (record_stopped_data_address): Renamed to ...
10787 (record_full_stopped_data_address): ... this. Updated all users.
10788 (record_registers_change): Renamed to ...
10789 (record_full_registers_change): ... this. Updated all users.
10790 (record_store_registers): Renamed to ...
10791 (record_full_store_registers): ... this. Updated all users.
10792 (record_xfer_partial): Renamed to ...
10793 (record_full_xfer_partial): ... this. Updated all users.
10794 (record_breakpoint): Renamed to ...
10795 (record_full_breakpoint): ... this. Updated all users.
10796 (record_breakpoint_p): Renamed to ...
10797 (record_full_breakpoint_p): ... this. Updated all users.
10798 (record_breakpoints): Renamed to ...
10799 (record_full_breakpoints): ... this. Updated all users.
10800 (record_sync_record_breakpoints): Renamed to ...
10801 (record_full_sync_record_breakpoints): ... this.
10802 Updated all users.
10803 (record_init_record_breakpoints): Renamed to ...
10804 (record_full_init_record_breakpoints): ... this.
10805 Updated all users.
10806 (record_insert_breakpoint): Renamed to ...
10807 (record_full_insert_breakpoint): ... this. Updated all users.
10808 (record_remove_breakpoint): Renamed to ...
10809 (record_full_remove_breakpoint): ... this. Updated all users.
10810 (record_can_execute_reverse): Renamed to ...
10811 (record_full_can_execute_reverse): ... this. Updated all users.
10812 (record_get_bookmark): Renamed to ...
10813 (record_full_get_bookmark): ... this. Updated all users.
10814 (record_goto_bookmark): Renamed to ...
10815 (record_full_goto_bookmark): ... this. Updated all users.
10816 (record_async): Renamed to ...
10817 (record_full_async): ... this. Updated all users.
10818 (record_can_async_p): Renamed to ...
10819 (record_full_can_async_p): ... this. Updated all users.
10820 (record_is_async_p): Renamed to ...
10821 (record_full_is_async_p): ... this. Updated all users.
10822 (record_execution_direction): Renamed to ...
10823 (record_full_execution_direction): ... this. Updated all users.
10824 (record_info): Renamed to ...
10825 (record_full_info): ... this. Updated all users.
10826 (record_delete): Renamed to ...
10827 (record_full_delete): ... this. Updated all users.
10828 (record_is_replaying): Renamed to ...
10829 (record_full_is_replaying): ... this. Updated all users.
10830 (record_goto_entry): Renamed to ...
10831 (record_full_goto_entry): ... this. Updated all users.
10832 (record_goto_begin): Renamed to ...
10833 (record_full_goto_begin): ... this. Updated all users.
10834 (record_goto_end): Renamed to ...
10835 (record_full_goto_end): ... this. Updated all users.
10836 (record_goto): Renamed to ...
10837 (record_full_goto): ... this. Updated all users.
10838 (init_record_ops): Renamed to ...
10839 (init_record_full_ops): ... this. Updated all users.
10840 (record_core_resume): Renamed to ...
10841 (record_full_core_resume): ... this. Updated all users.
10842 (record_core_kill): Renamed to ...
10843 (record_full_core_kill): ... this. Updated all users.
10844 (record_core_fetch_registers): Renamed to ...
10845 (record_full_core_fetch_registers): ... this. Updated all users.
10846 (record_core_prepare_to_store): Renamed to ...
10847 (record_full_core_prepare_to_store): ... this. Updated all users.
10848 (record_core_store_registers): Renamed to ...
10849 (record_full_core_store_registers): ... this. Updated all users.
10850 (record_core_xfer_partial): Renamed to ...
10851 (record_full_core_xfer_partial): ... this. Updated all users.
10852 (record_core_insert_breakpoint): Renamed to ...
10853 (record_full_core_insert_breakpoint): ... this. Updated all users.
10854 (record_core_remove_breakpoint): Renamed to ...
10855 (record_full_core_remove_breakpoint): ... this. Updated all users.
10856 (record_core_has_execution): Renamed to ...
10857 (record_full_core_has_execution): ... this. Updated all users.
10858 (init_record_core_ops): Renamed to ...
10859 (init_record_full_core_ops): ... this. Updated all users.
10860 (cmd_record_restore): Renamed to ...
10861 (cmd_record_full_restore): ... this. Updated all users.
10862 (record_save_cleanups): Renamed to ...
10863 (record_full_save_cleanups): ... this. Updated all users.
10864 (cmd_record_start): Renamed to ...
10865 (cmd_record_full_start): ... this. Updated all users.
10866 (set_record_insn_max_num): Renamed to ...
10867 (set_record_full_insn_max_num): ... this. Updated all users.
10868 (set_record_command): Renamed to ...
10869 (set_record_full_command): ... this. Updated all users.
10870 (show_record_command): Renamed to ...
10871 (show_record_full_command): ... this. Updated all users.
10872 (_initialize_record): Renamed to ...
10873 (_initialize_record_full): ... this. Updated all users.
10874
d02ed0bb
MM
108752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10876
10877 * record.h: Split into this and ...
10878 * record-full.h: ... this.
10879 * record.c: Split into this and ...
10880 * record-full.c: ... this.
10881 * target.h (target_ops): Add new fields to_info_record,
10882 to_save_record, to_delete_record, to_record_is_replaying,
10883 to_goto_record_begin, to_goto_record_end, to_goto_record.
10884 (target_info_record): New.
10885 (target_save_record): New.
10886 (target_supports_delete_record): New.
10887 (target_delete_record): New.
10888 (target_record_is_replaying): New.
10889 (target_goto_record_begin): New.
10890 (target_goto_record_end): New.
10891 (target_goto_record): New.
10892 * target.c (target_info_record): New.
10893 (target_save_record): New.
10894 (target_supports_delete_record): New.
10895 (target_delete_record): New.
10896 (target_record_is_replaying): New.
10897 (target_goto_record_begin): New.
10898 (target_goto_record_end): New.
10899 (target_goto_record): New.
10900 * record.h: Declare struct cmd_list_element.
10901 (record_cmdlist): New declaration.
10902 (set_record_cmdlist): New declaration.
10903 (show_record_cmdlist): New declaration.
10904 (info_record_cmdlist): New declaration.
10905 (cmd_record_goto): New declaration.
10906 * record.c: Remove unnecessary includes.
10907 Include inferior.h.
10908 (cmd_record_goto): Remove declaration.
10909 (record_cmdlist): Now extern. Initialize.
10910 (set_record_cmdlist): Now extern. Initialize.
10911 (show_record_cmdlist): Now extern. Initialize.
10912 (info_record_cmdlist): Now extern. Initialize.
10913 (find_record_target): New.
10914 (require_record_target): New.
10915 (cmd_record_start): Update.
10916 (cmd_record_delete): Remove target-specific code.
10917 Call target_delete_record.
10918 (cmd_record_stop): Unpush any record target.
10919 (set_record_insn_max_num): Move to record-full.c
10920 (set_record_command): Add comment.
10921 (show_record_command): Add comment.
10922 (info_record_command): Update comment.
10923 Remove target-specific code.
10924 Call the record target's to_info_record.
10925 (cmd_record_start): New.
10926 (cmd_record_goto): Now extern.
10927 Remove target-specific code.
10928 Call target_goto_begin, target_goto_end, or target_goto.
10929 (_initialize_record): Move record target ops initialization to
10930 record-full.c.
10931 Change "record" command help text.
10932 Move "record restore", "record set", and "record show" commands to
10933 record-full.c.
10934 * Makefile.in (SFILES): Add record-full.c.
10935 (HFILES_NO_SRCDIR): Add record-full.h.
10936 (COMMON_OBS): Add record-full.o.
10937 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10938 * arm-tdep.c: Include record-full.h.
10939 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10940 * i386-tdep.c: Include record-full.h.
10941 * infrun.c: Include record-full.h.
10942 * linux-record.c: Include record-full.h.
10943 * moxie-tdep.c: Include record-full.h.
10944 * record-full.c: Include record-full.h.
10945 Change module comment.
10946 (set_record_full_cmdlist): New.
10947 (show_record_full_cmdlist): New.
10948 (record_full_cmdlist): New.
10949 (record_goto_insn): New declaration.
10950 (record_save): New declaration.
10951 (record_check_insn_num): Change query string.
10952 (record_info): New.
10953 (record_delete): New.
10954 (record_is_replaying): New.
10955 (record_goto_entry): New.
10956 (record_goto_begin): New.
10957 (record_goto_end): New.
10958 (record_goto): New.
10959 (init_record_ops): Update.
10960 (init_record_core_ops): Update.
10961 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10962 (cmd_record_start): New.
10963 (set_record_insn_max_num): Moved from record.c
10964 (set_record_full_command): New.
10965 (show_record_full_command): New.
10966 (_initialize_record_full): New.
10967
b48d48eb
MM
109682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10969
10970 * target.h (add_deprecated_target_alias): New.
10971 * target.c (add_deprecated_target_alias): New.
10972
a950d57c
MM
109732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10974
10975 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10976 and signal.h.
10977 (linux_supports_btrace): Add kernel and
10978 cpuid check.
10979 (kernel_supports_btrace): New function.
10980 (cpu_supports_btrace): New function.
10981 (intel_supports_btrace): New function.
10982
9accd112
MM
109832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10984
10985 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10986 * remote.c: Include btrace.h.
10987 (struct btrace_target_info): New struct.
10988 (remote_supports_btrace): New function.
10989 (send_Qbtrace): New function.
10990 (remote_enable_btrace): New function.
10991 (remote_disable_btrace): New function.
10992 (remote_teardown_btrace): New function.
10993 (remote_read_btrace): New function.
10994 (init_remote_ops): Add btrace ops.
10995 (enum <unnamed>): Add btrace packets.
10996 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10997 (_initialize_remote): Add packet configuration for branch tracing.
10998
c12a2917
MM
109992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11000
11001 * features/btrace.dtd: New file.
11002 * Makefile.in (XMLFILES): Add btrace.dtd.
11003 * btrace.h (parse_xml_btrace): New declaration.
11004 * btrace.c: Include xml-support.h.
11005 (parse_xml_btrace): New function.
11006 (parse_xml_btrace_block): New function.
11007 (block_attributes): New struct.
11008 (btrace_attributes): New struct.
11009 (btrace_children): New struct.
11010 (btrace_elements): New struct.
11011
3e3aea48
MM
110122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11013
11014 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11015 (amd64_linux_enable_btrace): New.
11016 (amd64_linux_disable_btrace): New.
11017 (amd64_linux_teardown_btrace): New.
11018 (_initialize_amd64_linux_nat): Initialize btrace ops.
11019 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11020 (i386_linux_enable_btrace): New.
11021 (i386_linux_disable_btrace): New.
11022 (i386_linux_teardown_btrace): New.
11023 (_initialize_i386_linux_nat): Initialize btrace ops.
11024 * config/i386/linux.mh: Add linux-btrace.o.
11025 * config/i386/linux64.mh: Add linux-btrace.o.
11026
7c97f91e
MM
110272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11028
11029 * common/linux_btrace.h: New file.
11030 * common/linux_btrace.c: New file.
11031 * Makefile.in (SFILES): Add btrace.c.
11032 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11033 (COMMON_OBS): Add btrace.o.
11034 (linux-btrace.o): New rule.
11035
1999790b 110362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
11037
11038 * target.h: Include btrace.h.
11039 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11040 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11041 * target.c (target_supports_btrace): New function.
11042 (target_enable_btrace): New function.
11043 (target_disable_btrace): New function.
11044 (target_teardown_btrace): New function.
11045 (target_read_btrace): New function.
11046 * btrace.h: New file.
11047 * btrace.c: New file.
11048 * Makefile.in: Add btrace.c.
11049 * gdbthread.h: Include btrace.h.
11050 (struct thread_info): Add btrace field.
11051 * thread.c: Include btrace.h.
11052 (clear_thread_inferior_resources): Call target_teardown_btrace.
11053 * common/btrace-common.h: New file.
11054
61a31a67
JK
110552013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11056
11057 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11058 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11059 kill_status to outer block.
11060
05c56a9d
JK
110612013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11062
11063 Fix entry-values if the callee called a noreturn function.
11064 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11065 get_frame_address_in_block. Add new comment.
11066
9112db09
JK
110672013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11068
11069 Fix entry-values in C++ across CUs.
11070 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11071 lookup_minimal_symbol. Add a comment.
11072 * dwarf2read.c
11073 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11074 DW_AT_linkage_name.
11075
9b67fcec
YQ
110762013-03-08 Yao Qi <yao@codesourcery.com>
11077
11078 * tracepoint.c (_initialize_tracepoint): Indent the code.
11079
6221be90
PA
110802013-03-08 Pedro Alves <palves@redhat.com>
11081
11082 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11083 (parse_find_args, find_command): Change type of pattern buffer
11084 locals to 'gdb_byte *'.
11085
be9a119c 110862013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11087 Hafiz Abid Qadeer <abidh@codesourcery.com>
11088
11089 * NEWS: Mention set and show trace-buffer-size commands.
11090 Mention new packet.
11091 * target.h (struct target_ops): New method
11092 to_set_trace_buffer_size.
11093 (target_set_trace_buffer_size): New macro.
11094 * target.c (update_current_target): Set up new method.
11095 * tracepoint.c (trace_buffer_size): New global.
11096 (start_tracing): Send it to the target.
11097 (set_trace_buffer_size): New function.
11098 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11099 * remote.c (remote_set_trace_buffer_size): New function.
11100 (_initialize_remote): Use it.
11101 (QTBuffer:size) New remote command.
11102 (PACKET_QTBuffer_size): New enum.
11103 (remote_protocol_features): Add an entry for
11104 PACKET_QTBuffer_size.
11105
7da3ab79
TT
111062013-03-08 Tom Tromey <tromey@redhat.com>
11107
11108 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11109 variable.
11110
0c1f71e7
PA
111112013-03-07 Pedro Alves <palves@redhat.com>
11112
11113 * target.c (target_read_stralloc, target_fileio_read_alloc):
11114 *Cast pointer to 'gdb_byte *' in target call.
11115
c8af03a2
PA
111162013-03-07 Pedro Alves <palves@redhat.com>
11117
11118 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11119 call.
11120
529480d0
KS
111212013-03-07 Keith Seitz <keiths@redhat.com>
11122
11123 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11124 (trace_pass_command): Likewise.
11125 * cli/cli-cmds.c: Include cli/cli-utils.h.
11126 (source_command): Use skip-spaces.
11127 (disassemble_command): Likewise.
11128 * findcmd.c: Include cli/cli-utils.h.
11129 (parse_find_args): Use skip_spaces.
11130 * go32-nat.c: Include cli/cli-utils.h.
11131 (go32_sldt): Use skip_spaces.
11132 (go32_sgdt): Likewise.
11133 (go32_sidt): Likewise.
11134 (go32_pde): Likewise.
11135 (go32_pte): Likewise.
11136 (go32_pte_for_address): Likewise.
11137 * infcmd.c: Include cli/cli-utils.h.
11138 (registers_info): Use skip_spaces.
11139 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11140 (linux_info_proc): Likewise.
11141 * linux-thread-db.c: Include cli/cli-utils.h.
11142 (info_auto_load_libthread_db): Use skip_spaces_const.
11143 * m32r-rom.c: Include cli/cli-utils.h.
11144 (m32r_upload_command): Use skip_spaces.
11145 * maint.c: Include cli/cli-utils.h.
11146 (maintenance_translate_address): Use skip_spaces.
11147 * mi/mi-parse.c: Include cli/cli-utils.h.
11148 (mi_parse_argv): Use skip_spaces.
11149 (mi_parse): Likewise.
11150 * minsyms.c: Include cli/cli-utils.h.
11151 (msymbol_hash_iw): Use skip_spaces_const.
11152 * objc-lang.c: Include cli/cli-utils.h.
11153 (parse_selector): Use skip_spaces.
11154 (parse_method): Likewise.
11155 * python/python.c: Include cli/cli-utils.h.
11156 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11157 (python_command)[HAVE_PYTHON]: Likewise.
11158 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11159 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11160 (m32r_load): Use skip_spaces.
11161 * serial.c: Include cli/cli-utils.h.
11162 (serial_open): Use skip_spaces_const.
11163 * stack.c: Include cli/cli-utils.h.
11164 (parse_frame_specification_1): Use skip_spaces_const.
11165 * symfile.c: Include cli/cli-utils.h.
11166 (set_ext_lang_command): Use skip_spaces.
11167 * symtab.c: Include cli/cli-utils.h.
11168 (rbreak_command): Use skip_spaces.
11169 * thread.c (thread_name_command): Use skip_spaces.
11170 * tracepoint.c (validate_actionline): Use skip_spaces.
11171 (encode_actions_1): Likewise.
11172 (trace_find_range_command): Likewise.
11173 (trace_find_outside_command): Likewise.
11174 (trace_dump_actions): Likewise.
11175
ac91cd70
PA
111762013-03-07 Pedro Alves <palves@redhat.com>
11177
11178 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11179 * expprint.c (print_subexp_standard): Likewise.
11180 * utils.c (host_char_to_target): Likewise.
11181 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11182 * varobj.c (value_get_print_value): Change type of local to char*.
11183 Cast it gdb_byte * in call to language printer.
11184
2898e560
PA
111852013-03-07 Pedro Alves <palves@redhat.com>
11186
11187 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11188 gdb_byte *'.
11189 (make_wchar_iterator): Remove cast to char*.
11190 (wchar_iterate): Change type of local.
11191
a09b4448
PA
111922013-03-07 Pedro Alves <palves@redhat.com>
11193
11194 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11195 for 'regcache->register_status'.
11196
20ced3e4
PA
111972013-03-07 Pedro Alves <palves@redhat.com>
11198
c2d6a675 11199 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
11200 int.
11201
fe106009
PA
112022013-03-07 Pedro Alves <palves@redhat.com>
11203
11204 * stap-probe.c (handle_stap_probe): Add cast to char*.
11205
8ac2c12b
PA
112062013-03-07 Pedro Alves <palves@redhat.com>
11207
11208 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11209 RECORD_MSGRCV>: Pass a signed variable to
11210 regcache_raw_read_signed, instead of an unsigned one.
11211
99f0a309
PA
112122013-03-07 Pedro Alves <palves@redhat.com>
11213
11214 * remote-notif.c (notif_debug): Change type to int.
11215 * remote-notif.h (notif_debug): Likewise.
11216
964b8317
PA
112172013-03-07 Pedro Alves <palves@redhat.com>
11218
11219 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11220
f0cc8ad4
PA
112212013-03-07 Pedro Alves <palves@redhat.com>
11222
11223 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11224 * remote.h (hex2bin, bin2hex): ... here.
11225 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11226
77dec115
EZ
112272013-03-07 Eli Zaretskii <eliz@gnu.org>
11228
11229 * utils.c (initialize_utils): Improve doc strings of "set/show
11230 width", "set/show height", and "set/show pagination".
11231
741d92cf
KS
112322013-03-06 Keith Seitz <keiths@redhat.com>
11233
11234 * ax-gdb.c (gen_printf): Make FORMAT const.
11235 * ax-gdb.h (gen_printf): Likewise.
11236 * ax-general.c (ax_string): Make STR const.
11237 * ax.h (ax_string): Likewise.
11238
7b6c814e
DE
112392013-03-06 Doug Evans <dje@google.com>
11240
11241 * elfread.c (elf_symfile_read): Move debugging printf to more
11242 logical location.
11243
634334ab
PA
112442013-03-06 Pedro Alves <palves@redhat.com>
11245
11246 * python/py-utils.c (target_string_to_unicode): Delete function.
11247 * python/python-internal.h (target_string_to_unicode): Delete
11248 declaration.
11249
e482a1a7
PM
112502013-03-06 Pierre Muller <muller@sourceware.org>
11251
11252 * linespec.c (get_current_search_block): ARI fix, use (void)
11253 for empty parameter list.
11254
4eeaa230
DE
112552013-03-05 Doug Evans <dje@google.com>
11256
11257 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11258 of old ada_lookup_symbol_list. In !full_search case, don't
11259 search superblocks.
11260 (ada_lookup_symbol_list): Delete arg full_search, all callers
11261 updated. Call ada_lookup_symbol_list_worker.
11262 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11263 * ada-lang.h (ada_lookup_symbol_list): Update.
11264 * language.h (language_defn): Update comment for
11265 la_iterate_over_symbols.
11266 * linespec.c (iterate_over_file_blocks): New function.
11267 (iterate_over_all_matching_symtabs): Call it.
11268 (lookup_prefix_sym): Ditto.
11269 (get_current_search_block): New function.
11270 (get_search_block): Delete.
11271 (find_label_symbols): Call get_current_search_block.
11272 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11273 * symtab.c (iterate_over_symbols): Don't search superblocks.
11274
b69b1fb1
YQ
112752013-03-05 Yao Qi <yao@codesourcery.com>
11276
11277 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11278 parameter VAR's type from "unsigned int" to "int".
11279 * command.h (var_zuinteger_unlimited): Update its comments.
11280 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11281
3c095f49
CV
112822013-03-05 Corinna Vinschen <vinschen@redhat.de>
11283
11284 * NEWS: Mention new target x86_64-*-cygwin*.
11285
b5b0b0af
CV
112862013-03-05 Corinna Vinschen <vinschen@redhat.de>
11287
11288 * configure.host: Add x86_64-*-cygwin* as host.
11289 * configure.tgt: Add x86_64-*-cygwin* as target.
11290 * config/i386/cygwin64.mh: New file.
11291
f6f99966
JK
112922013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11293
11294 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11295
33f448b1
JK
112962013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11297
11298 * linespec.c (struct linespec_canonical_name): New.
11299 (struct linespec_state): Change canonical_names type to it.
11300 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11301 xrealloc element size. Initialize the different CANONICAL fields.
11302 (canonical_to_fullform): New.
11303 (filter_results): Use it. Add variables canonical, fullform and
11304 cleanup.
11305 (struct decode_line_2_item, decode_line_2_compare_items): New.
11306 (decode_line_2): Remove variables iter and item_names, add variables
11307 items and items_count. Modify the code for these new variables.
11308
feb14725
CV
113092013-03-04 Corinna Vinschen <vinschen@redhat.com>
11310
11311 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11312 calling do_cleanup.
11313
e83b17ba
HZ
113142013-03-04 Luis Machado <lgustavo@codesourcery.com>
11315
11316 * tracepoint.c (build_traceframe_info): Add code for byte order.
11317
a2d13a0d
KB
113182013-03-02 Kevin Buettner <kevinb@redhat.com>
11319
8dddcae8
KB
11320 * v850-tdep.c: (v850e2_register_name): Revise system register
11321 names to match current V850E2M architecture specifications.
11322 Update register number enum comments too.
f5aee5ee 11323
d79e58d8
JW
113242013-03-01 Jiong Wang <jiwang@tilera.com>
11325 Pedro Alves <palves@redhat.com>
11326
11327 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11328 to END_ADDR.
11329 (tilegx_skip_prologue): Limit prologue analysis to section end.
11330
c4be5165
JK
113312013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11334 use it.
11335
e362b510
PA
113362013-03-01 Pedro Alves <palves@redhat.com>
11337
11338 Use gdb_byte for bytes from the program being debugged.
11339
11340 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11341 Change type of local 'buf' to gdb_byte.
11342 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11343 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11344 * cris-tdep.c (cris_sigcontext_addr)
11345 (cris_sigtramp_frame_unwind_cache): Likewise.
11346 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11347 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11348 Likewise.
11349 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11350 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11351 (hppa32_hpux_search_dummy_call_sequence)
11352 (hppa_hpux_supply_save_state): Likewise.
11353 * hppa-linux-tdep.c (insns_match_pattern)
11354 (hppa_linux_find_global_pointer): Likewise.
11355 * hppa-tdep.c (hppa_in_function_epilogue_p)
11356 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11357 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11358 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11359 (i386fbsd_collect_uthread): Likewise.
11360 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11361 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11362 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11363 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11364 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11365 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11366 (ia64_libunwind_frame_prev_register)
11367 (ia64_libunwind_sigtramp_frame_this_id)
11368 (ia64_find_global_pointer_from_dynamic_section)
11369 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11370 (ia64_unwind_pc): Likewise.
11371 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11372 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11373 (m68hc11_extract_return_value): Likewise.
11374 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11375 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11376 (mep_get_insn, mep_push_dummy_call): Likewise.
11377 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11378 (mips_linux_in_dynsym_stub): Likewise.
11379 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11380 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11381 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11382 to gdb_byte.
11383 * remote-mips.c (mips_set_register): Likewise.
11384 * remote-sim.c (gdbsim_fetch_register): Likewise.
11385 * score-tdep.c (score7_fetch_inst): Change type of parameter
11386 'memblock' and local 'buf' to gdb_byte.
11387 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11388 Change type of local 'buf' to gdb_byte. Adjust.
11389 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11390 to gdb_byte**.
11391 (score7_analyze_prologue): Change type of 'memblock' and
11392 'memblock_ptr' locals to gdb_byte*.
11393 * sh64-tdep.c (sh64_extract_return_value)
11394 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11395 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11396 * solib-pa64.c (pa64_solib_create_inferior_hook)
11397 (pa64_open_symbol_file_object): Remove local 'buf'.
11398 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11399 (som_open_symbol_file_object): Likewise.
11400 * solib-spu.c (spu_current_sos): Likewise.
11401 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11402 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11403 (spu_store_registers): Likewise.
11404 * target.c (debug_print_register): Likewise.
11405 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11406 * xstormy16-tdep.c (xstormy16_store_return_value)
11407 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11408 (xstormy16_find_jmp_table_entry): Likewise.
11409
75cc61ca 114102013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11411
11412 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11413 (tilegx_gdbarch_init): Install it.
11414
ddb08e9c
TT
114152013-02-28 Tom Tromey <tromey@redhat.com>
11416
11417 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11418 PyLong_Check.
11419
62d7fb51
DE
114202013-02-28 Doug Evans <dje@google.com>
11421
11422 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11423 * python/python.c (gdbpy_find_pc_line): Ditto.
11424
c4a9e8b4
TT
114252013-02-28 Tom Tromey <tromey@redhat.com>
11426
11427 * contrib/excheck.py: New file.
11428 * contrib/exsummary.py: New file.
11429 * contrib/gcc-with-excheck: New file.
11430
7f6a5dde
TT
114312013-02-28 Tom Tromey <tromey@redhat.com>
11432
11433 * python/python.c (gdbpy_print_stack): Call begin_line and
11434 fprintf_filtered inside TRY_CATCH.
11435
9e974e55
TT
114362013-02-28 Tom Tromey <tromey@redhat.com>
11437
11438 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11439 inside TRY_CATCH.
11440
dd5fa3e7
TT
114412013-02-28 Tom Tromey <tromey@redhat.com>
11442
11443 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11444 frame_object_to_frame_info inside TRY_CATCH.
11445
86a3263f
TT
114462013-02-28 Tom Tromey <tromey@redhat.com>
11447
11448 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11449 TRY_CATCH.
11450
81b52a3a
TT
114512013-02-28 Tom Tromey <tromey@redhat.com>
11452
11453 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11454
d50a0ce2
CV
114552013-02-27 Corinna Vinschen <vinschen@redhat.com>
11456
11457 * windows-nat.c: Throughout, fix format strings and casts of
11458 printf-like functions to avoid type related warnings on all
11459 platforms.
11460 (handle_output_debug_string): Fetch context information address
11461 from debug string using string_to_core_addr.
11462
e1f58301
JW
114632013-02-27 Jiong Wang <jiwang@tilera.com>
11464
11465 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11466 * regformats/reg-tilegx32.dat: New.
11467
4fcd89fc
JW
114682013-02-27 Jiong Wang <jiwang@tilera.com>
11469
11470 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11471
748d24e6
JW
114722013-02-27 Jiong Wang <jiwang@tilera.com>
11473
11474 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11475
6c8e944d
YQ
114762013-02-27 Yao Qi <yao@codesourcery.com>
11477 Pedro Alves <palves@redhat.com>
11478
11479 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11480 pc/tp/range/outside, look for the next trace frame instead of
11481 always starting from frame 0.
6c8e944d 11482
acd7db30
AG
114832013-02-26 Anthony Green <green@moxielogic.com>
11484
11485 * configure.tgt: Add support for moxie-*-rtems* target.
11486
025e6dce
PA
114872013-02-25 Pedro Alves <palves@redhat.com>
11488
11489 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11490 warning text.
11491
ca9c94ef
MR
114922013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11493
11494 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11495 if $fp is used as the virtual frame pointer.
11496
24c274a1
AM
114972013-02-23 Alan Modra <amodra@gmail.com>
11498
11499 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11500 symbol size.
11501 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11502 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11503 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11504 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11505
bfada189
JK
115062013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11507
11508 Code cleanup.
11509 * elfread.c (build_id_bfd_get): Make the return type const.
11510 (build_id_verify): Make the check parameter const.
11511 (build_id_to_debug_filename): Make the build_id parameter and variable
11512 data const.
11513 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11514
c0355132
AM
115152013-02-21 Alan Modra <amodra@gmail.com>
11516
11517 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11518
9f44fbc0
SCR
115192013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11520
11521 Add a new method 'disassemble' to gdb.Architecture class.
11522 * python/py-arch.c (archpy_disassmble): Implementation of the
11523 new method gdb.Architecture.disassemble.
11524 (arch_object_methods): Add entry for the new method.
11525
b74ea3eb
JW
115262013-02-20 Jiong Wang <jiwang@tilera.com>
11527
11528 * MAINTAINERS (Write After Approval): Add myself to the list.
11529
61a672f1
PA
115302013-02-19 Pedro Alves <palves@redhat.com>
11531
11532 Garbage collect 'struct monitor_ops'::load_routine.
11533
11534 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11535 * monitor.c (monitor_load): No longer call
11536 current_monitor->load_routine.
11537 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11538 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11539 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11540
40e397df
PA
115412013-02-19 Pedro Alves <palves@redhat.com>
11542
11543 PR gdb/15161
11544
11545 Harmonize with generic_load.
11546
11547 * monitor.c: Include "readline/readline.h".
11548 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11549 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11550 long/strtol for the 'load_offset' local. Error out if no argument
11551 is given or if too many arguments are given. Tilde expand the
11552 passed in file name.
11553
f698ca8e
KT
115542013-02-19 Kai Tietz <ktietz@redhat.com>
11555
11556 PR gdb/15161
11557 * symfile.c (load_section_data): Change type of load_offset
11558 to CORE_ADDR.
11559 (generic_load): User strtoulst instead of strtoul for conversion
11560 of load_offset.
11561
3361b059
WL
115622013-02-19 Jiong Wang <jiwang@tilera.com>
11563
11564 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11565 for return address, "lr" register, saved on stack.
11566 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11567 after we invoke tilegx_analyze_prologue.
11568
3e9d5130
WL
115692013-02-19 Jiong Wang <jiwang@tilera.com>
11570
bb1bcd86
WL
11571 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11572
3361b059 115732013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11574
b74ea3eb 11575 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11576
4aaf2503
WL
115772013-02-19 Jiong Wang <jiwang@tilera.com>
11578
b74ea3eb 11579 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11580 (tilegx_write_pc): New function.
11581 (tilegx_cannot_reference_register): Return zero if REGNO
11582 is TILEGX_FAULTNUM_REGNUM.
11583 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11584 (tilegx_register_name): Add handling of "faultnum" register.
11585 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11586 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11587 handling of TILEGX_FAULTNUM_REGNUM.
11588 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11589
bc23a956
WL
115902013-02-19 Jiong Wang <jiwang@tilera.com>
11591
11592 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11593 should be aligned to 64bit.
bc23a956 11594
42f45f1a
KT
115952013-02-19 Kai Tietz <ktietz@redhat.com>
11596
11597 * windows-nat.c (windows_xfer_memory): Fix debug-output
11598 for LLP64.
11599
6ce4c112
LL
116002013-02-19 Lei Liu <lei.liu2@windriver.com>
11601
11602 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11603 Don't check DSP register number if HAVE_DSP is not set.
11604
30e8ee25
AM
116052013-02-19 Alan Modra <amodra@gmail.com>
11606
11607 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11608 throughout file instead.
11609 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11610 Don't xmalloc return value.
11611 (build_id_verify): Similarly. Don't xfree.
11612 (build_id_to_debug_filename): Update.
11613 (find_separate_debug_file_by_buildid): Update, don't xfree.
11614
4c9ad8c2
TT
116152013-02-18 Tom Tromey <tromey@redhat.com>
11616
11617 PR gdb/15102:
11618 * dwarf2read.c (read_subrange_type): Use result of
11619 'check_typedef'.
11620
983dc440
YQ
116212013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11622
11623 * frame.c: Remove one extra white space after #include
11624 directive.
11625
7fb2b84a
JK
116262013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11627
11628 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11629
edceb2a9
JK
116302013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11631
11632 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11633 and dir commands into an if block.
11634
e81b7af8
TT
116352013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11636
11637 * python/py-breakpoint (struct pybp_code): Use int instead of
11638 enum type_code.
11639
f5911ea1
HAQ
116402013-02-15 Pedro Alves <pedro@codesourcery.com>
11641 Hafiz Abid Qadeer <abidh@codesourcery.com>
11642
11643 * NEWS: Mention new field "trace-file".
11644 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11645 (tfile_open): Record the trace file's filename in the trace
11646 status.
11647 (tfile_files_info): Mention the name of the trace file.
11648 Check the "filename" field explicitely.
11649 (trace_status_command): Explicitely check "filename" field.
11650 (trace_find_command): Ditto.
11651 (trace_find_pc_command): Ditto.
11652 (trace_find_tracepoint_command): Ditto.
11653 (trace_find_line_command): Ditto.
11654 (trace_find_range_command): Ditto.
11655 (trace_find_outside_command): Ditto.
11656 * tracepoint.h (struct trace_status) <from_file>: Rename it
11657 to "filename" and make it hold the trace file's filename
11658 instead of a boolean.
11659 * remote.c (remote_get_trace_status): Initialize "filename"
11660 field with NULL instead of 0.
11661
796cb314
YQ
116622013-02-15 Yao Qi <yao@codesourcery.com>
11663
11664 * remote.c: Fix a typo.
11665
42e79b1d
PM
116662013-02-14 Pierre Muller <muller@sourceware.org>
11667
11668 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11669
baea0dae
PA
116702013-02-14 Pedro Alves <palves@redhat.com>
11671
11672 * utils.c (savestring): Don't #undef it. Move function to
11673 common/common-utils.c.
11674 * common/common-utils.c: Include gdb_string.h.
11675 (savestring): Move here from utils.c.
11676 * common/common-utils.h (savestring): Declare.
11677
57c3b6ed
PA
116782013-02-14 Pedro Alves <palves@redhat.com>
11679
11680 * utils.c (savestring): Rename parameter 'size' to 'len'.
11681
d6c44983
YZ
116822013-02-14 Pedro Alves <palves@redhat.com>
11683 Yufeng Zhang <yufeng.zhang@arm.com>
11684
11685 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11686 (aarch64_inferior_data, struct aarch64_inferior_data):
11687 Delete.
11688 (struct aarch64_process_info): New.
11689 (aarch64_process_list): New global.
11690 (aarch64_find_process_pid, aarch64_add_process)
11691 (aarch64_process_info_get): New functions.
11692 (aarch64_inferior_data_get): Delete.
11693 (aarch64_process_info_get): New function.
11694 (aarch64_forget_process): New function.
11695 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11696 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11697 aarch64_get_debug_reg_state.
11698 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11699 instead of linux_nat_iterate_watchpoint_lwps.
11700 (aarch64_linux_new_fork): New function.
11701 (aarch64_linux_child_post_startup_inferior): Use
11702 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11703 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11704 (aarch64_linux_remove_hw_breakpoint)
11705 (aarch64_handle_aligned_watchpoint)
11706 (aarch64_handle_unaligned_watchpoint)
11707 (aarch64_linux_insert_watchpoint)
11708 (aarch64_linux_remove_watchpoint)
11709 (aarch64_linux_stopped_data_address): Adjust to pass the current
11710 process id to aarch64_debug_reg_state.
11711 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11712 linux_nat_new_fork hook, and aarch64_forget_process as
11713 linux_nat_forget_process hook; remove the call to
11714 register_inferior_data_with_cleanup.
11715
4819b3f8
PA
117162013-02-14 Pedro Alves <palves@redhat.com>
11717
11718 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11719 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11720 lval_memory.
11721
1773c82c
HAQ
117222013-02-14 Pedro Alves <pedro@codesourcery.com>
11723 Hafiz Abid Qadeer <abidh@codesourcery.com>
11724
11725 * tracepoint.h (validate_trace_state_variable_name): Declare.
11726 * tracepoint.c (validate_trace_state_variable_name): New.
11727 (trace_variable_command): Parse the trace state variable's name
11728 without using parse_expression. Do several validations.
11729 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11730 trace state variable's name with parse_expression. Validate it.
11731
53778a97
YQ
117322013-02-14 Yao Qi <yao@codesourcery.com>
11733
11734 * infcmd.c (breakpoint_proceeded): Remove it.
11735
7b3ae3a6
YQ
117362013-02-14 Yao Qi <yao@codesourcery.com>
11737
11738 * tracepoint.c (end_actions_pseudocommand): Make it static.
11739 (while_stepping_pseudocommand): Likewise.
11740 * tracepoint.h (end_actions_pseudocommand): Remove the
11741 declaration.
11742 (while_stepping_pseudocommand): Likewise.
11743
64580925
YQ
117442013-02-14 Yao Qi <yao@codesourcery.com>
11745
11746 * cli/cli-decode.c (help_cmd): Remove the declaration of
11747 "cmdlist".
11748 (help_all): Likewise.
11749
26cb8b7c
PA
117502013-02-13 Pedro Alves <palves@redhat.com>
11751
11752 * amd64-linux-nat.c (update_debug_registers_callback):
11753 Update comment.
11754 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11755 iterate_over_lwps.
11756 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11757 i386_debug_reg_state.
11758 (amd64_linux_new_fork): New function.
11759 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11760 linux_nat_new_fork hook, and i386_forget_process as
11761 linux_nat_forget_process hook.
11762 * i386-linux-nat.c (update_debug_registers_callback):
11763 Update comment.
a8256ea1 11764 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11765 iterate_over_lwps.
11766 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11767 i386_debug_reg_state.
11768 (i386_linux_new_fork): New function.
11769 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11770 linux_nat_new_fork hook, and i386_forget_process as
11771 linux_nat_forget_process hook.
11772 * i386-nat.c (i386_init_dregs): Delete.
11773 (i386_inferior_data, struct i386_inferior_data):
11774 Delete.
11775 (struct i386_process_info): New.
11776 (i386_process_list): New global.
11777 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11778 New functions.
11779 (i386_inferior_data_get): Delete.
11780 (i386_process_info_get): New function.
11781 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11782 (i386_forget_process): New function.
11783 (i386_cleanup_dregs): Rewrite.
11784 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11785 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11786 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11787 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11788 to i386_debug_reg_state.
11789 (i386_use_watchpoints): Don't register inferior data.
11790 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11791 adjust comment.
11792 (i386_forget_process): Declare.
11793 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11794 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11795 New static globals.
11796 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11797 (add_initial_lwp): New, factored out from ...
11798 (add_lwp): ... this. Don't check the number of lwps before
11799 calling linux_nat_new_thread.
11800 (linux_nat_iterate_watchpoint_lwps): Delete.
11801 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11802 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11803 forks and vforks.
11804 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11805 initial lwp.
11806 (linux_nat_kill, linux_nat_mourn_inferior): Call
11807 linux_nat_forget_process.
11808 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11809 (linux_nat_forget_process): New functions.
11810 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11811 type.
11812 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11813 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11814 types.
11815 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11816 (linux_nat_forget_process): New declarations.
11817
11818 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11819 (amd64fbsd_mourn_inferior): New function.
11820 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11821 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11822
5befea72
MS
118232013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11824
55015247
YQ
11825 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11826 Adding _().
5befea72 11827
1d3ffd6b
MS
118282013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11829
11830 * aarch64-linux-nat.c (debug_reg_change_callback)
11831 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11832 %s and phex().
11833
6eb04473
MS
118342013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11835
11836 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11837 with LONGEST.
11838
a016fc87
HAQ
118392013-02-13 Pedro Alves <palves@redhat.com>
11840 Hafiz Abid Qadeer <abidh@codesourcery.com>
11841
11842 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11843
e234dfaf
TT
118442013-02-12 Tom Tromey <tromey@redhat.com>
11845
11846 PR symtab/11464:
11847 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11848 NAME return.
11849 (classify_inner_name): Remove 'first_name' argument, add
11850 'context'. Remove unused variable.
11851 (yylex): Explicitly maintain the context type. Exit loop earlier
11852 if NAME result is seen.
11853
0b1afbb3
PA
118542013-02-12 Pedro Alves <palves@redhat.com>
11855
11856 * amd64-darwin-tdep.c: Add (C) after Copyright.
11857 * cli/cli-cmds.h: Ditto.
11858 * cli/cli-decode.c: Ditto.
11859 * cli/cli-decode.h: Ditto.
11860 * cli/cli-dump.c: Ditto.
11861 * cli/cli-dump.h: Ditto.
11862 * cli/cli-interp.c: Ditto.
11863 * cli/cli-logging.c: Ditto.
11864 * cli/cli-script.c: Ditto.
11865 * cli/cli-script.h: Ditto.
11866 * cli/cli-setshow.c: Ditto.
11867 * cli/cli-setshow.h: Ditto.
11868 * cli/cli-utils.c: Ditto.
11869 * cli/cli-utils.h: Ditto.
11870 * config/alpha/nm-osf3.h: Ditto.
11871 * config/djgpp/djconfig.sh: Ditto.
11872 * config/i386/nm-fbsd.h: Ditto.
11873 * config/i386/nm-i386gnu.h: Ditto.
11874 * config/nm-linux.h: Ditto.
11875 * config/nm-nto.h: Ditto.
11876 * config/rs6000/nm-rs6000.h: Ditto.
11877 * config/sparc/nm-sol2.h: Ditto.
11878 * darwin-nat-info.c: Ditto.
11879 * dfp.c: Ditto.
11880 * dfp.h: Ditto.
11881 * gdb-demangle.h: Ditto.
11882 * i386-darwin-nat.c: Ditto.
11883 * i386-darwin-tdep.c: Ditto.
11884 * linux-fork.h: Ditto.
11885 * m32c-tdep.c: Ditto.
11886 * microblaze-linux-tdep.c: Ditto.
11887 * microblaze-rom.c: Ditto.
11888 * microblaze-tdep.c: Ditto.
11889 * microblaze-tdep.h: Ditto.
11890 * mips-linux-tdep.h: Ditto.
11891 * ppc-ravenscar-thread.c: Ditto.
11892 * ppc-ravenscar-thread.h: Ditto.
11893 * prologue-value.c: Ditto.
11894 * prologue-value.h: Ditto.
11895 * ravenscar-thread.c: Ditto.
11896 * ravenscar-thread.h: Ditto.
11897 * sparc-ravenscar-thread.c: Ditto.
11898 * sparc-ravenscar-thread.h: Ditto.
11899 * tilegx-linux-tdep.c: Ditto.
11900 * unwind_stop_reasons.def: Ditto.
11901 * windows-nat.h: Ditto.
11902 * xtensa-linux-tdep.c: Ditto.
11903 * xtensa-xtregs.c: Ditto.
11904 * regformats/regdat.sh: Ditto.
11905 * regformats/regdef.h: Ditto.
11906
6c01dd94
PA
119072013-02-12 Pedro Alves <palves@redhat.com>
11908
11909 * break-catch-sig.c: Update copyright years.
11910
b65a2bd9
SCR
119112013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11912
11913 Add support for a destructor for ui_out data and use it to
11914 provide a ui_out destructor.
11915 * ui-out.h: Declare the new ui_out destructor.
11916 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11917 * ui-out.c (default_data_destroy): Add a default data destructor
11918 which does nothing.
11919 (default_ui_out_impl): Set the new data_destroy field to
11920 default_data_destroy
11921 (uo_data_destroy): Local function which invokes the data
11922 destructor if present.
11923 (clear_table): Local function which clears the table data of a
11924 ui_out object.
11925 (ui_out_destroy): Public function which frees a ui_out object.
11926 (ui_out_table_end): Use the new clear_table function.
11927 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11928 NULL.
11929 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11930 to NULL.
11931
c2792f5a
DE
119322013-02-11 Doug Evans <dje@google.com>
11933
11934 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11935 (printf_decfloat): New function. Broken out from ui_printf.
11936 Remove unnecessary code to shift the entire format string down.
11937 (printf_pointer): New function.
11938 (ui_printf): Code to print C strings, wide C strings, decfloats,
11939 and pointers moved to separate functions.
11940
d9e98382
SDJ
119412013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11942
11943 * valops.c (value_assign): Handling bitfield offset in
11944 `lval_internalvar_component' case.
11945
4ff3ce77
DE
119462013-02-08 Doug Evans <dje@google.com>
11947
11948 * common/format.c (parse_format_string): Fix whitespace.
11949
901900c4
MGD
119502013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11951
11952 * stack.c (return_command): Work around uninitialized variable
11953 warning.
11954
b5dbc8d4
YZ
119552013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11956
11957 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11958 number of the registers from 36 to 34.
11959
51d66578
MS
119602013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11961
11962 * NEWS: Mention new AArch64 native and target support.
11963
176b1c95
MS
119642013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11965
11966 * MAINTAINERS (Write After Approval): Add myself.
11967
9d19df75
MS
119682013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11969 Marcus Shawcroft <marcus.shawcroft@arm.com>
11970 Nigel Stephens <nigel.stephens@arm.com>
11971 Yufeng Zhang <yufeng.zhang@arm.com>
11972
11973 * aarch64-linux-nat.c: New file.
11974 * config/aarch64/linux.mh: New file.
11975 * configure.host: Add AArch64.
11976 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11977
7e1e0340
DE
119782013-02-07 Doug Evans <dje@google.com>
11979
11980 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11981 disassemble command.
11982
45e25a36
MS
119832013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11984
11985 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11986 set_gdbarch_fetch_tls_load_module_address.
11987
bbfdfe1c
DM
119882013-02-06 David S. Miller <davem@davemloft.net>
11989
11990 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11991 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11992 * value.c (struct_return_convention): New function.
11993 (using_struct_return): Implement in terms of struct_return_convention.
11994 * value.h (struct_return_convention): Declare.
11995 * stack.c (return_command): Allow successful overriding of the return
11996 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11997
bc9abe4a
TT
119982013-02-06 Tom Tromey <tromey@redhat.com>
11999
12000 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12001 outside of TRY_CATCH.
12002
134a2066
YQ
120032013-02-06 Yao Qi <yao@codesourcery.com>
12004
12005 * mi/mi-interp.c: Include "tracepoint.h".
12006 (mi_tsv_modified): Declare.
12007 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12008 (mi_interpreter_init): Call observer_attach_tsv_modified.
12009 (mi_tsv_modified): New.
12010 (mi_tsv_created, mi_tsv_deleted): Update.
12011 * tracepoint.c (trace_variable_command): Call
12012 observer_notify_tsv_modified if the initial value of tsv is
12013 changed.
12014 (delete_trace_state_variable): Call
12015 observer_notify_tsv_deleted earlier.
12016 (trace_variable_command): Caller update.
12017 (create_tsv_from_upload): Likewise.
12018 * observer.sh: Declare "struct trace_state_variable".
12019
12020 * NEWS: Mention the new MI notification "=tsv-modified".
12021
59be2b6a
DE
120222013-02-05 Doug Evans <dje@google.com>
12023
12024 * completer.c (location_completer): Fix typo in comment.
12025
d30113d4
JK
120262013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12027
12028 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12029 ADDRESS sorted.
12030
14ac654f
MS
120312013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12032
12033 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12034 Refactor if statement to avoid trailing || operator.
12035
543bf33d
AT
120362013-02-05 Andreas Tobler <andreast@fgznet.ch>
12037
12038 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12039
dc18f110
AT
120402013-02-04 Andreas Tobler <andreast@fgznet.ch>
12041
12042 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12043 * configure.host: Add powerpc*-*-freebsd* target.
12044 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12045 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12046 * config/powerpc/fbsd.mh: New file.
12047
b3ac9c77
SDJ
120482013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12049 Denys Vlasenko <dvlasenk@redhat.com>
12050 Pedro Alves <palves@redhat.com>
12051
12052 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12053 (struct elf_internal_linux_prpsinfo): Forward declare.
12054 * gdbarch.h, gdbarch.c: Regenerate.
12055 * linux-tdep.c: Include `cli/cli-utils.h'.
12056 (linux_fill_prpsinfo): New function.
12057 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12058 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12059 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12060 depending on gdbarch pointer bitness.
12061 * ppc-linux-tdep.c: Include elf-bfd.h.
12062 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12063 on 32-bit.
12064
176eb98c
MS
120652013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12066 Marcus Shawcroft <marcus.shawcroft@arm.com>
12067 Nigel Stephens <nigel.stephens@arm.com>
12068 Yufeng Zhang <yufeng.zhang@arm.com>
12069
12070 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12071
cf0dbd6f
MS
120722013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12073 Marcus Shawcroft <marcus.shawcroft@arm.com>
12074 Nigel Stephens <nigel.stephens@arm.com>
12075 Yufeng Zhang <yufeng.zhang@arm.com>
12076
12077 * aarch64-newlib-tdep.c: New file.
12078 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12079 aarch64*-*-elf.
12080 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12081 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12082 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12083 * osabi.c (gdb_osabi_names): Add "Newlib".
12084
1ae3db19
MS
120852013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12086 Marcus Shawcroft <marcus.shawcroft@arm.com>
12087 Nigel Stephens <nigel.stephens@arm.com>
12088 Yufeng Zhang <yufeng.zhang@arm.com>
12089
12090 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12091 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12092 * aarch64-linux-tdep.c: New file.
12093 * aarch64-linux-tdep.h: New file.
12094 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12095 * configure.tgt: Add aarch64-none-linux-gnu.
12096
07b287a0
MS
120972013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12098 Marcus Shawcroft <marcus.shawcroft@arm.com>
12099 Nigel Stephens <nigel.stephens@arm.com>
12100 Yufeng Zhang <yufeng.zhang@arm.com>
12101
12102 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12103 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12104 (ALLDEPFILES): Add aarch64-tdep.c.
12105 * aarch64-tdep.c: New file.
12106 * aarch64-tdep.h: New file.
12107 * configure.tgt: Add AArch64.
12108 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12109 (aarch64-expedite): New definition.
12110 * features/aarch64-core.xml: New file.
12111 * features/aarch64-fpu.xml: New file.
12112 * features/aarch64-without-fpu.c: New file (generated).
12113 * features/aarch64-without-fpu.xml: New file.
12114 * features/aarch64.c: New file (generated).
12115 * features/aarch64.xml: New file.
12116 * regformats/aarch64-without-fpu.dat: New file (generated).
12117 * regformats/aarch64.dat: New file (generated).
12118
0f1b18ab
JK
121192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12120
12121 * contrib/expect-read1.c: New file.
12122 * contrib/expect-read1.sh: New file.
12123
233d95b5
JK
121242013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12125
12126 * dwarf2read.c (file_file_name): New function with code from
12127 file_full_name.
12128 (file_full_name): Move most of the code to file_file_name.
12129 (macro_start_file): Rename variable full_name to file_name and use
12130 file_file_name for it. Add comp_dir parameter to new_macro_table.
12131 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12132 macro_source_file->filename access by macro_source_fullname call.
12133 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12134 caller.
12135 * macrotab.c (struct macro_table): New field comp_dir.
12136 (macro_include): New variables link_fullname and source_fullname.
12137 Replace any macro_source_file->filename access by macro_source_fullname
12138 call.
12139 (macro_lookup_inclusion): Remove the partial filenames checking code.
12140 (check_for_redefinition): New variables source_fullname and
12141 found_key_fullname. Replace any macro_source_file->filename access by
12142 macro_source_fullname call.
12143 (macro_undef): New variables source_fullname and key_fullname. Replace
12144 any macro_source_file->filename access by macro_source_fullname call.
12145 (macro_lookup_definition): New variables retval and source_fullname.
12146 Replace any macro_source_file->filename access by macro_source_fullname
12147 call.
12148 (foreach_macro): New variable key_fullname. Replace any
12149 macro_source_file->filename access by macro_source_fullname call.
12150 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12151 macro_source_file->filename access by macro_source_fullname call.
12152 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12153 (macro_source_fullname): New function.
12154 * macrotab.h (struct macro_source_file): Extent the filename field
12155 comment.
12156 (new_macro_table): New parameter comp_dir, add a comment for it.
12157 (macro_source_fullname): new declaration.
12158
da235a7c
JK
121592013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12160
12161 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12162 this_real_name to outer block. Use it also for
12163 compare_filenames_for_search.
12164 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12165 with dw2_get_real_path for file_matcher, considering also
12166 BASENAMES_MAY_DIFFER.
12167 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12168
fbd9ab74
JK
121692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12170
12171 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12172 to the file_matcher parameter. Pass 0 to it.
12173 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12174 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12175 NULL psymtab_to_fullname result.
12176 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12177 an expected filename instead.
12178 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12179 file_matcher parameter. Call also psymtab_to_fullname, after newly
12180 considering BASENAMES_MAY_DIFFER.
12181 * source.c (rewrite_source_path): Remove static.
12182 * source.h (rewrite_source_path): New declaration.
12183 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12184 the expand_symtabs_matching field. Comment it.
12185 * symtab.c (file_matches): New function comment. Add parameter
12186 basenames, implement it.
12187 (search_symbols_file_matches): Add basenames parameter. Update the
12188 file_matches caller.
12189 (search_symbols): Match FILES also against symtab_to_fullname.
12190 Optimize it for BASENAMES_MAY_DIFFER.
12191
56d397a3
JK
121922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12193
12194 * source.c (print_source_lines_base): Print for TUI also "fullname".
12195 * tui/tui-data.c (init_content_element): Change tui_locator_element
12196 field to full_name.
12197 * tui/tui-data.h (struct tui_locator_element): Likewise.
12198 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12199 tui_update_locator_filename calls to tui_update_locator_fullname.
12200 Replace symtab->filename refererence by symtab_to_fullname call.
12201 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12202 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12203 field to full_name. Replace symtab->filename refererence by
12204 symtab_to_fullname call.
12205 (tui_show_symtab_source): Rename parameter to fullname. Change
12206 tui_locator_element field to full_name.
12207 * tui/tui-stack.c: Include source.h.
12208 (tui_set_locator_filename): Rename the declaration to ...
12209 (tui_set_locator_fullname): ... here. Rename its parameter to
12210 fullname, updates its comment.
12211 (tui_set_locator_info): Rename its parameter to fullname.
12212 (tui_set_locator_filename): Rename the definition to ...
12213 (tui_set_locator_fullname): ... here. Rename its parameter to
12214 fullname, updates its comment. Change tui_locator_element field to
12215 full_name.
12216 (tui_set_locator_info): Rename its parameter to fullname.
12217 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12218 (tui_update_locator_filename): Rename to ...
12219 (tui_update_locator_fullname): ... here. Rename callee to
12220 tui_set_locator_fullname.
12221 (tui_show_frame_info): Replace symtab->filename refererence by
12222 symtab_to_fullname call.
12223 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12224 (tui_update_locator_fullname): ... here.
12225 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12226 tui_update_locator_fullname. Replace symtab->filename refererence by
12227 symtab_to_fullname call.
12228 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12229 Rename the callee to tui_update_locator_fullname.
12230 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12231
05cba821
JK
122322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12233
12234 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12235 by symtab_to_filename_for_display calls.
12236 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12237 (clear_command): New variable sal_fullname, initialize it. Replace
12238 compare_filenames_for_search by filename_cmp with sal_fullname.
12239 (say_where, update_static_tracepoint): Replace symtab->filename
12240 refererences by symtab_to_filename_for_display calls.
12241 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12242 Likewise.
12243 * dwarf2read.c: Include source.h.
12244 (fixup_go_packaging): Replace symtab->filename refererences by
12245 symtab_to_filename_for_display calls.
12246 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12247 Replace symtab->filename refererences by symtab_to_filename_for_display
12248 calls.
12249 (create_sals_line_offset, convert_linespec_to_sals): New variable
12250 fullname, initialize it, replace symtab->filename reference by the
12251 variable.
12252 * linux-fork.c: Include source.h.
12253 (info_checkpoints_command): Replace symtab->filename refererences by
12254 symtab_to_filename_for_display calls.
12255 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12256 by symtab_to_filename_for_display calls.
12257 * mdebugread.c: Include source.h.
12258 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12259 symtab_to_filename_for_display calls.
12260 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12261 (mi_cmd_file_list_exec_source_files): Likewise.
12262 * printcmd.c: Include source.h.
12263 (build_address_symbolic): Replace symtab->filename refererences by
12264 symtab_to_filename_for_display calls.
12265 * psymtab.c (partial_map_symtabs_matching_filename)
12266 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12267 with psymtab_to_fullname.
12268 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12269 by symtab_to_filename_for_display calls.
12270 (stpy_get_filename): New variable filename, initialize it, use instead
12271 of symtab->filename refererences.
12272 (salpy_str): Make variable filename const char *. Replace
12273 symtab->filename refererences by symtab_to_filename_for_display calls.
12274 * skip.c: Include source.h and filenames.h.
12275 (skip_file_command): Remove const from the symtab variable. Replace
12276 symtab->filename refererences by symtab_to_fullname call.
12277 (function_name_is_marked_for_skip): New variables searched_for_fullname
12278 and fullname. Use them to search also with symtab's fullname.
12279 * source.c (find_source_lines): Replace symtab->filename refererences
12280 by symtab_to_filename_for_display calls.
12281 (print_source_lines_base): New variable filename, use it instead of
12282 symtab->filename. Replace symtab->filename refererences by
12283 symtab_to_filename_for_display calls.
12284 (line_info, forward_search_command): Replace symtab->filename
12285 refererences by symtab_to_filename_for_display calls.
12286 (reverse_search_command): Replace symtab->filename refererences by
12287 symtab_to_filename_for_display calls. New variable filename for it.
12288 * stack.c (frame_info): Likewise.
12289 * symmisc.c: Include source.h.
12290 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12291 (maintenance_info_symtabs): Replace symtab->filename refererences by
12292 symtab_to_filename_for_display calls.
12293 * symtab.c (iterate_over_some_symtabs): Call
12294 compare_filenames_for_search also with symtab_to_fullname.
12295 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12296 symtab->filename refererences by symtab_to_filename_for_display calls.
12297 (find_line_symtab): Replace symtab->filename refererences by
12298 symtab_to_filename_for_display calls.
12299 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12300 (print_symbol_info): Make the last parameter const char *. New
12301 variable s_filename. Use it in the function.
12302 (symtab_symbol_info): Make the last_filename variable const char *.
12303 Replace symtab->filename refererences by symtab_to_filename_for_display
12304 calls.
12305 (rbreak_command): New variable fullname. Use it. Replace
12306 symtab->filename refererence by symtab_to_filename_for_display call.
12307 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12308 (print_one_static_tracepoint_marker): Replace symtab->filename
12309 refererences by symtab_to_filename_for_display calls.
12310 * tui/tui-source.c (tui_set_source_content): New variables filename and
12311 s_filename. Replace symtab->filename refererences by this variable.
12312 Replace other symtab->filename refererences by
12313 symtab_to_filename_for_display calls.
12314
1b56eb55
JK
123152013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12316 Jan Kratochvil <jan.kratochvil@redhat.com>
12317
12318 Add a new variable that controls a way in which filenames are
12319 displayed.
12320 * NEWS (set filename-display): New entry.
12321 * source.c (filename_display_basename, filename_display_relative)
12322 (filename_display_absolute, filename_display_kind_names)
12323 (filename_display_string, show_filename_display_string)
12324 (symtab_to_filename_for_display): New.
12325 (_initialize_source): Added initialization of 'filename-display'
12326 variable.
12327 * source.h (symtab_to_filename_for_display): Added declaration.
12328 * stack.c (print_frame): Added new variable and calling of a new
12329 function and condition with this variable. Changed third argument of
12330 calling of a function.
12331
aa079c93
JK
123322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12333
12334 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12335 Rename field reference filename to fullname.
12336 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12337 fullname. New comment for it.
12338 * tui/tui-source.c (tui_set_source_content): Rename field reference
12339 filename to fullname. Initialize field by symtab_to_fullname now.
12340 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12341 reference filename to fullname. Use symtab_to_fullname during
12342 comparison.
12343
652a8996
JK
123442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12345
12346 Code cleanup.
12347 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12348 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12349 filename to fullname. Rename variable this_name to this_fullname.
12350 Lowercase FILENAME_CMP call.
12351 (dw2_find_symbol_file): New comment for the returned string.
12352 (dwarf2_gdb_index_functions): Rename the function to
12353 dw2_expand_symtabs_with_fullname.
12354 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12355 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12356 fullname.
12357 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12358 * symfile.h (struct quick_symbol_functions): Rename field
12359 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12360 parameter filename to fullname. Document returned string meaning for
12361 find_symbol_file.
12362 * symtab.c (find_line_symtab): Rename the called function to
12363 expand_symtabs_with_fullname.
12364
af529f8f
JK
123652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12366
12367 Code cleanup.
12368 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12369 call of filename_cmp with compare_filenames_for_search.
12370 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12371 is_abs, unify the call of FILENAME_CMP with
12372 compare_filenames_for_search. New gdb_asserts for real_path and name.
12373 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12374 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12375 * symfile.h (struct quick_symbol_functions): Extend the comment for
12376 map_symtabs_matching_filename.
12377 * symtab.c (compare_filenames_for_search): Remove the function comment
12378 relative path requirement. Handle absolute filenames, with a comment.
12379 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12380 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12381 real_path and name. Unify the call of compare_filenames_for_search
12382 with FILENAME_CMP.
12383 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12384
2f202fde
JK
123852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12386
12387 Code cleanup.
12388 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12389 source_file references by symtab field references. Remove variables
12390 sal and fullname.
12391 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12392 (clear_command, say_where): Replace bp_location field source_file
12393 references by symtab field references.
12394 (bp_location_dtor): Remove the source_file reference.
12395 (update_static_tracepoint): Replace bp_location field source_file
12396 references by symtab field references.
12397 (breakpoint_free_objfile): New function.
12398 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12399 Replace the field source_file by field symtab, extend its comment.
12400 (breakpoint_free_objfile): New declaration.
12401 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12402 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12403 field source_file references by symtab field references.
12404
f5b95b50
JK
124052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12406
12407 Replace xfullpath calls by gdb_realpath calls.
12408 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12409 function comment.
12410 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12411 Remove it from the iterate_over_some_symtabs call.
12412 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12413 Remove it from the dw2_map_expand_apply calls, remove a block handling
12414 it.
12415 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12416 Remove it from the iterate_over_some_symtabs call.
12417 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12418 Remove it from the partial_map_expand_apply calls, remove a block
12419 handling it. Drop gdb_realpath call and cleanups from the real_path
12420 handling.
12421 * source.c (openp): Drop the comment part about xfullpath. Replace
12422 xfullpath calls by gdb_realpath calls.
12423 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12424 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12425 from method map_symtabs_matching_filename and its comment.
12426 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12427 gdb_realpath call.
12428 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12429 remove it also from the function comment, remove a block handling it.
12430 Drop gdb_realpath call and cleanups from the real_path handling.
12431 (iterate_over_symtabs): Drop variable full_path and its use.
12432 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12433 * utils.c (xfullpath): Remove.
12434 * utils.h (xfullpath): Remove.
12435
d78489bf
AT
124362013-02-01 Andreas Tobler <andreast@fgznet.ch>
12437
12438 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12439 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12440 (ALLDEPFILES): Add ppc64-tdep.c.
12441 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12442 ppc64-tdep.o to gdb_target_obs.
12443 * ppc64-tdep.h: New file.
12444 * ppc64-tdep.c: New file.
12445 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12446 ppc-linux-tdep.c to here.
12447 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12448 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12449 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12450 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12451 from ppc-linux-tdep.c to here.
12452 (ppc64_convert_from_func_ptr_addr): Rename from
12453 ppc64_linux_convert_from_func_ptr_addr to
12454 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12455 here.
12456 * rs6000-tdep.c:
12457 (read_insn): Move from ppc-linux-tdep.c to here.
12458 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12459 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12460 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12461 Removed above functions.
12462 (ppc_linux_init_abi): Adjust.
12463
8db60374
AR
124642013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12465
12466 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12467
f2e5f4ce
AR
124682013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12469
12470 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12471
c1f7d745
PA
124722013-02-01 Pedro Alves <palves@redhat.com>
12473
12474 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12475 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12476
8a92335b
JK
124772013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12478
12479 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12480 files with no separate debug info.
12481 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12482 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12483 only for files with no separate debug info.
12484
8eacb197
TT
124852013-01-31 Tom Tromey <tromey@redhat.com>
12486
12487 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12488 change type.
12489 (struct jit_program_space_data): Rename from jit_inferior_data.
12490 Update comments.
12491 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12492 Change return type. Attach data to program space.
12493 (jit_program_space_data_cleanup): Rename from
12494 jit_inferior_data_cleanup; change argument type.
12495 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12496 change type.
12497 (jit_register_code): Update.
12498 (jit_update_inferior_cache): Remove.
12499 (jit_breakpoint_deleted): Get jit data from the location's program
12500 space.
12501 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12502 'ps_data', change type.
12503 (jit_inferior_init, jit_breakpoint_re_set_internal)
12504 (jit_event_handler): Update.
12505 (free_objfile_data): Get data from objfile's program space.
12506 (_initialize_jit): Update.
12507
f25c0135
TT
125082013-01-31 Tom Tromey <tromey@redhat.com>
12509
12510 PR gdb/13987:
12511 * jit.c (struct jit_inferior_data) <cached_code_address,
12512 jit_breakpoint>: New fields.
12513 (jit_breakpoint_re_set_internal): Fix logging. Only create
12514 breakpoint if cached address has changed.
12515 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12516 functions.
12517 (_initialize_jit): Register breakpoint deleted observer.
12518
974a734b
AR
125192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12520
12521 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12522 (save_infcall_suspend_state): Ifdef out unused inf.
12523 (restore_infcall_suspend_state): Ifdef out unused inf.
12524 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12525 (jit_frame_sniffer): Remove unused inf_data.
12526
df54f8eb
AR
125272013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12528
12529 * c-exp.y (classify_inner_name): Remove unused type.
12530 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12531 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12532 need_escape.
12533 (c_get_string): Remove unused kind.
12534 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12535
5799c0b9
AR
125362013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12537
12538 * charset.c (intermediate_encoding): Remove unused i.
12539 * completer.c (signal_completer): Remove unused i.
12540 * continuations.c (discard_my_continuations_1): Remove unused
12541 continuation_ptr.
12542 * corelow.c (core_close): Remove unuseD name.
12543 (get_core_siginfo): Remove unused pid.
12544 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12545 i, cps.
12546 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12547 (loclist_describe_location): Remove unused first.
12548 * event-top.c (command_line_handler): Remove unused got_eof.
12549 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12550 (resize_section_table): Remove unused old_value.
12551 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12552 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12553 * i386-tdep.c (i386_process_record): Remove unused rex.
12554 * infcmd.c (get_return_value): Remove unused uiout.
12555 * jv-lang.c (type_from_class): Remove unused is_array.
12556 * jv-valprint.c (java_val_print): Remove unused i.
12557 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12558 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12559 * m2-typeprint.c (m2_print_type): Remove unused code.
12560 * macroexp.c (get_character_constant): Remove unused body_start.
12561 (macro_stringify): Remove unused result.
12562 * objc-lang.c (find_methods): Remove unused gdbarch.
12563 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12564 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12565 * stack.c (print_frame_args): Remove unused summary.
12566 * thread.c (thread_apply_command): Remove unused p.
12567 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12568 * valops.c (search_struct_method): Remove unused skip.
12569 * valprint.c (generic_val_print): Remove unused byte_order.
12570 * varobj.c (varobj_update): Remove unused changed.
12571 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12572 (alias_command): Remove unused c.
12573 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12574 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12575 format.
12576 (mi_cmd_data_write_memory): Remove unused word_format.
12577 (mi_cmd_data_write_memory_bytes): Remove unused r.
12578 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12579 p_start, p_end.
12580 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12581 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12582 line_width.
12583
c656bca5
AR
125842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12585
12586 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12587 * symtab.c (iterate_over_symtabs): Remove unused s.
12588 (find_pc_sect_symtab): Remove unused pspAce.
12589 (find_pc_sect_line): Remove unused alt_symtab.
12590 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12591 (completion_list_add_name): Remove unused newsize.
12592
7078baeb
TT
125932013-01-31 Tom Tromey <tromey@redhat.com>
12594
12595 PR c++/14998:
12596 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12597 TYPE_CODE_FUNC.
12598
c2e8b827
AR
125992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12600
12601 * target.c (target_read_string): Remove unused origlen.
12602
0e43993a
AR
126032013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12604
12605 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12606 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12607 * ax-general.c (ax_print): Remove unused is_float.
12608 * blockframe.c (block_innermost_frame): Remove unused start, end.
12609 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12610
765a97ab
AR
126112013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12612
12613 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12614 (svr4_read_so_list): Remove unused lmo.
12615 * solib-target.c (solib_target_relocate_section_addresses): Remove
12616 unused flags.
12617
a99dad3d
TT
126182013-01-30 Tom Tromey <tromey@redhat.com>
12619
12620 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12621
3bff1ecd
TT
126222013-01-30 Tom Tromey <tromey@redhat.com>
12623
12624 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12625 * utils.c (gnu_debuglink_crc32): Remove.
12626 * utils.h (gnu_debuglink_crc32): Don't declare.
12627
7d455152
TT
126282013-01-30 Tom Tromey <tromey@redhat.com>
12629
12630 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12631 (read_structure_type, read_enumeration_type): Remove cast.
12632
abee88f2
TT
126332013-01-30 Tom Tromey <tromey@redhat.com>
12634
12635 * dwarf2read.c (read_namespace_type): Remove cast.
12636 (read_typedef): Likewise.
12637
8d9878a4
TT
126382013-01-29 Tom Tromey <tromey@redhat.com>
12639
12640 * dwarf2read.c (free_dwo_file): Remove assert.
12641
a543d2a9
TT
126422013-01-29 Tom Tromey <tromey@redhat.com>
12643
12644 * value.c (deprecated_set_value_modifiable): Remove.
12645 * value.h (deprecated_set_value_modifiable): Remove.
12646
bed911e5
DE
126472013-01-28 Doug Evans <dje@google.com>
12648
12649 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12650 to addresses from dwo files.
12651
28c64fc2
SCR
126522013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12653
12654 * valops.c (find_overload_match): Remove unused argument 'lax'.
12655 * value.h: Remove unused argument 'lax' from the declaration of
12656 find_overload_match.
12657 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12658 to find_overload_match.
12659 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12660 argument to find_overload_match.
12661
4d4ec4e5
TT
126622013-01-25 Tom Tromey <tromey@redhat.com>
12663
12664 * dwarf2read.c (processing_has_namespace_info): Remove.
12665 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12666 (process_die, read_func_scope, dwarf2_start_symtab)
12667 (new_symbol_full): Update.
12668
195a3f6c
TT
126692013-01-25 Tom Tromey <tromey@redhat.com>
12670
12671 * cp-namespace.c (cp_set_block_scope): Remove.
12672 * cp-support.h (cp_set_block_scope): Remove.
12673 * dbxread.c: Include block.h.
12674 (cp_set_block_scope): New function.
12675 (process_one_symbol): Update.
12676 * dwarf2read.c (read_func_scope): Use block_set_scope.
12677
8ba0730a
PA
126782013-01-25 Pedro Alves <palves@redhat.com>
12679
12680 * remote.c (add_current_inferior_and_thread): Tweak comment.
12681
12aaed36
TT
126822013-01-25 Tom Tromey <tromey@redhat.com>
12683
12684 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12685 (cp_add_using_directive): Add 'copy_names' argument.
12686 * cp-support.h (cp_add_using_directive): Update.
12687 (struct using_direct) <import_src, import_dest, alias,
12688 declaration>: Now const.
12689 * dwarf2read.c (read_import_statement): Use obconcat.
12690 Don't copy names passed to cp_add_using_directive.
12691
7fc75ca7
TT
126922013-01-25 Tom Tromey <tromey@redhat.com>
12693
12694 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12695
3405876a
PA
126962013-01-25 Pedro Alves <palves@redhat.com>
12697
12698 * remote.c (stop_reply_extract_thread): New.
12699 (add_current_inferior_and_thread): New parameter 'wait_status'.
12700 Handle it.
12701 (remote_start_remote): Pass wait status to
12702 add_current_inferior_and_thread.
12703 (extended_remote_run): Update comment.
12704 (extended_remote_create_inferior_1): Pass wait status to
12705 add_current_inferior_and_thread.
12706
8954db33
AB
127072013-01-25 Andrew Burgess <aburgess@broadcom.com>
12708 Ulrich Weigand <uweigand@de.ibm.com>
12709
12710 * valarith.c (value_vector_widen): New function for replicating a
12711 scalar into a vector.
12712 (value_binop): Use value_vector_widen to widen scalar to vector
12713 rather than casting, this better matches gcc C behaviour.
12714 * valops.c (value_casst): Update logic for casting between vector
12715 types, and for casting from scalar to vector, try to match gcc C
12716 behaviour.
12717 * value.h (value_vector_widen): Declare.
12718 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12719 function, handle special case for casting scalar to vector.
12720 (opencl_relop): Use opencl_value_cast.
12721 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12722 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12723 in order to use opencl_value_cast.
12724
843b20dc
YQ
127252013-01-25 Yao Qi <yao@codesourcery.com>
12726
12727 * event-loop.c: Include "queue.h".
12728 (gdb_event_p): New typedef.
12729 (DECLARE_QUEUE_P): Use.
12730 (DEFINE_QUEUE_P): Use.
12731 (async_queue_event): Remove.
12732 (gdb_event_xfree): New.
12733 (initialize_event_loop): New.
12734 (process_event): Use QUEUE macros.
12735 (event_queue): Remove.
12736 (gdb_wait_for_event): Caller update.
12737 (check_async_event_handlers): Likewise.
12738 (poll_timers): Likewise.
12739 * event-loop.h (initialize_event_loop): Declare.
12740 * event-loop.c (gdb_event_xfree): New.
12741 * top.c (gdb_init): Call initialize_event_loop.
12742
20ad8856
YQ
127432013-01-25 Yao Qi <yao@codesourcery.com>
12744
12745 * event-loop.c (async_queue_event): Remove one parameter
12746 'position'. Remove code handling 'position' == TAIL.
12747 (gdb_wait_for_event): Caller update.
12748 (check_async_event_handlers): Caller update.
12749 (poll_timers): Caller update.
12750 * event-loop.h (enum queue_position): Remove.
12751
3bbbe775
MK
127522013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12753
12754 * MAINTAINERS: Update my email.
12755
a87d9ac4
YQ
127562013-01-25 Yao Qi <yao@codesourcery.com>
12757
12758 * main.c (print_gdb_help): Remove "--epoch" from the help
12759 message.
12760
2077afdd
TD
127612013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12762
12763 * symtab.c (skip_prologue_using_sal): Consider a file
12764 change the same as an increased line number
12765
63da4037
TD
127662013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12767
30e8ee25 12768 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12769
45e6c716
TT
127702013-01-24 Tom Tromey <tromey@redhat.com>
12771
12772 * ada-lang.h (ada_decode_symbol): Make return type const.
12773 * ada-lang.c (ada_decode_symbol): Likewise.
12774
b1ae631a
DE
127752013-01-23 Doug Evans <dje@google.com>
12776
12777 * linespec.c (find_linespec_symbols): Make static.
12778
55a78401
SDJ
127792013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12780
12781 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12782 type on float conversion for complex type.
12783
bea883fd
SCR
127842013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12785
12786 Add a new class gdb.Architecture which exposes GDB's
12787 internal representation of architecture via GDB Python API.
12788 * Makefile.in: Add entries corresponding to the new file
12789 python/py-arch.c.
12790 * NEWS (Python Scripting): Add entries for the new class
12791 gdb.Architecture and the new method gdb.Frame.architecture.
12792 * python/py-arch.c: Implement gdb.Architecture class.
12793 * python/py-frame.c (frapy_arch): Implement the method
12794 gdb.Frame.architecture().
12795 (frame_object_methods): Add 'architecture' to the method table.
12796 * python/python-internal.h: Add declarations of new utility
12797 functions.
12798 * python/python.c (_initialize_python): Initialize
12799 gdb.Architecture class.
12800
796a7ff8
DE
128012013-01-23 Doug Evans <dje@google.com>
12802
12803 Work around binutils/15021.
12804 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12805 type_unit_group out of union s. All uses updated.
12806 (read_index_from_section): Watch for index version 8.
12807 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12808 an imported symtab.
12809 (write_psymtabs_to_index): Increment version number to 8.
12810
0928e93d
PA
128112013-01-22 Pedro Alves <palves@redhat.com>
12812
12813 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12814 user-visible.
12815
9c97429f
PA
128162013-01-22 Pedro Alves <palves@redhat.com>
12817
12818 * annotate.c (annotate_breakpoints_changed): Rename to ...
12819 (annotate_breakpoints_invalid): ... this. Make static.
12820 (breakpoint_changed): Adjust.
12821 (_initialize_annotate): Always install the observers. Install a
12822 "breakpoint_created" observer.
12823 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12824 * breakpoint.c (set_breakpoint_condition)
12825 (breakpoint_set_commands, do_map_commands_command)
12826 (init_raw_breakpoint, clear_command, set_ignore_count)
12827 (enable_breakpoint_disp): No longer call
12828 annotate_breakpoints_changed.
12829
bd00c694
PA
128302013-01-22 Pedro Alves <palves@redhat.com>
12831
12832 * annotate.c: Include "inferior.h".
12833 (frames_invalid_emitted)
12834 (breakpoints_invalid_emitted): New globals.
12835 (async_background_execution_p): New function.
12836 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12837 emitting the annotation if it has already been emitted.
12838 (annotate_display_prompt): New function.
12839 * annotate.h (annotate_display_prompt): New declaration.
12840 * event-top.c: Include annotate.h.
12841 (display_gdb_prompt): Call annotate_display_prompt.
12842
187d10dd
PA
128432013-01-22 Pedro Alves <palves@redhat.com>
12844
12845 * annotate.c (ignore_count_changed): Delete.
12846 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12847 (annotate_ignore_count_change): Delete.
12848 (annotate_stopped): Don't emit a delayed breakpoints-changed
12849 annotation.
12850 * annotate.h (annotate_ignore_count_change): Delete.
12851 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12852 annotate_ignore_count_change.
12853
d84cf7eb
TT
128542013-01-22 Tom Tromey <tromey@redhat.com>
12855
12856 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12857 require_rvalue for a register location.
12858
8f1d5693
MK
128592013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12860
12861 * breakpoint.c (print_one_breakpoint_location): Add MI
12862 field 'thread-groups' when printing a breakpoint.
12863 (output_thread_groups): New function.
12864
aa6199c6
SCR
128652013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12866
12867 * python/lib/gdb/commands/explore.py
12868 (CompoundExplorer.explore_expr): Correct the name of a method
12869 being invoked.
12870 (ExploreTypeCommand.invoke): Add a missing 'return'.
12871
d2afef13
TT
128722013-01-21 Tom Tromey <tromey@redhat.com>
12873
12874 * gdb_obstack.h (obconcat): Move declaration here, from...
12875 * symfile.h (obconcat): ... here.
12876 * gdb_obstack.c: New file.
12877 (obconcat): Move from...
12878 * symfile.c (obconcat): ... here.
12879 * Makefile.in (SFILES): Add gdb_obstack.c.
12880 (COMMON_OBS): Add gdb_obstack.o.
12881
10f0c4bb
TT
128822013-01-21 Tom Tromey <tromey@redhat.com>
12883
12884 * symfile.h (obsavestring): Don't declare.
12885 * symfile.c (obsavestring): Remove.
12886 * ada-exp.y: Use obstack_copy0, not obsavestring.
12887 * ada-lang.c: Use obstack_copy0, not obsavestring.
12888 * coffread.c: Use obstack_copy0, not obsavestring.
12889 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12890 * dbxread.c: Use obstack_copy0, not obsavestring.
12891 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12892 * jit.c: Use obstack_copy0, not obsavestring.
12893 * mdebugread.c: Use obstack_copy0, not obsavestring.
12894 * psymtab.c: Use obstack_copy0, not obsavestring.
12895 * stabsread.c: Use obstack_copy0, not obsavestring.
12896 * xcoffread.c: Use obstack_copy0, not obsavestring.
12897
86f62fd7
TT
128982013-01-21 Tom Tromey <tromey@redhat.com>
12899
12900 * dwarf2read.c (fixup_go_packaging): Save package name
12901 on objfile obstack.
12902 * gdbtypes.c (init_type): Don't copy name.
12903
15d034d0
TT
129042013-01-21 Tom Tromey <tromey@redhat.com>
12905
12906 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12907 const.
12908 (struct attribute) <u.str>: Now const.
12909 (struct fnfieldlist) <name>: Now const.
12910 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12911 (partial_die_parent_scope): Make return type const.
12912 (partial_die_full_name, add_partial_symbol): Update.
12913 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12914 'name' const.
12915 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12916 (read_file_scope, read_func_scope, dwarf2_add_field)
12917 (dwarf2_add_member_fn, read_structure_type)
12918 (process_enumeration_scope, read_array_type, read_module_type)
12919 (read_base_type, read_subrange_type): Update.
12920 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12921 (new_symbol_full, guess_full_die_structure_name): Update.
12922 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12923 (dwarf2_name): Return const type.
12924 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12925 const.
12926
748e18ae
TT
129272013-01-21 Tom Tromey <tromey@redhat.com>
12928
12929 * gdbtypes.c (init_type): Make 'name' const.
12930 * gdbtypes.h (init_type): Update.
12931
46212e0b
TT
129322013-01-21 Tom Tromey <tromey@redhat.com>
12933
12934 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12935 (start_symtab): Make 'name' and 'dirname' const. Use
12936 set_last_source_file.
12937 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12938 (last_source_file): Define. Now static.
12939 (set_last_source_file, get_last_source_file): New functions.
12940 * buildsym.h (last_source_file): Don't declare.
12941 (start_symtab): Update.
12942 (set_last_source_file, get_last_source_file): Declare.
12943 * coffread.c (complete_symtab): Use set_last_source_file.
12944 (coff_end_symtab): Likewise.
12945 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12946 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12947 set_last_source_file.
12948 (process_one_symbol): Use get_last_source_file.
12949 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12950 (psymtab_to_symtab_1): Use get_last_source_file.
12951 * xcoffread.c (process_linenos): Use get_last_source_file.
12952 (complete_symtab): Use set_last_source_file.
12953 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12954 (scan_xcoff_symtab): Use set_last_source_file.
12955
9d2ceabe
TT
129562013-01-21 Tom Tromey <tromey@redhat.com>
12957
12958 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12959 (symbol_set_names): Remove casts. Handle field const-ness.
12960
cfc594ee
TT
129612013-01-21 Tom Tromey <tromey@redhat.com>
12962
12963 * dwarf2read.c (new_symbol_full): Remove cast.
12964 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12965 * symtab.h (symbol_set_demangled_name): Update.
12966
5484b13a
TT
129672013-01-21 Tom Tromey <tromey@redhat.com>
12968
12969 * main.c (captured_main): Call bfd_init.
12970
1605ef26
TT
129712013-01-21 Tom Tromey <tromey@redhat.com>
12972
12973 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12974 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12975 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12976 * NEWS: Update.
12977
3b74cdc3
JK
129782013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12979
12980 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12981
5a352474
JK
129822013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12983
12984 Fix gdb.fortran/common-block.exp crash in PIE mode.
12985 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12986 LOC_COMMON_BLOCK.
12987 * f-valprint.c (info_common_command_for_block): Expect
12988 LOC_COMMON_BLOCK in gdb_assert.
12989 * symtab.h (struct general_symbol_info): Update comment for the
12990 common_block member.
12991 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12992 (enum address_class): New member LOC_COMMON_BLOCK.
12993
c60797fd
DB
129942013-01-18 David Blaikie <dblaikie@gmail.com>
12995
12996 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12997
46f35228
TT
129982013-01-18 Tom Tromey <tromey@redhat.com>
12999
13000 PR c++/14999:
13001 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13002 Call require_rvalue.
13003
257e7a09
YQ
130042013-01-18 Yao Qi <yao@codesourcery.com>
13005
13006 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13007 (dbx_read_symtab): New declaration.
13008 (dbx_psymtab_to_symtab): Delete.
13009 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13010 Rename parameter PST to SELF. Exchanged two parameters.
13011 (start_psymtab): Caller update.
13012 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13013 (dwarf2_read_symtab): New declaration.
13014 (dwarf2_psymtab_to_symtab): Delete.
13015 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13016 Rename parameter PST to SELF. Exchanged two parameters.
13017 (create_partial_symtab): Caller update.
13018 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13019 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13020 Rename parameter PST to SELF. Exchanged two parameters.
13021 (parse_partial_symbols, new_psymtab): Caller update.
13022 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13023 two parameters.
13024 * psymtab.c (psymtab_to_symtab): Caller update.
13025 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13026 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13027 Rename parameter PST to SELF. Exchanged two parameters.
13028 (xcoff_start_psymtab): Caller update.
13029
0de5618e
YQ
130302013-01-18 Yao Qi <yao@codesourcery.com>
13031
13032 * infrun.c (proceed): Rename local variable 'oneproc' to
13033 'force_step'.
13034
5c04624b
DE
130352013-01-17 Doug Evans <dje@google.com>
13036
848e3e78
DE
13037 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13038 (dw2_build_type_unit_groups): Delete. All uses updated.
13039
5c04624b
DE
13040 * symtab.h (struct symbol_search): Add comment.
13041
d84fca2c
JK
130422013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13043
13044 * symtab.c (compare_filenames_for_search): New comment for
13045 HAS_DRIVE_SPEC.
13046
6108433d
TT
130472013-01-17 Tom Tromey <tromey@redhat.com>
13048
13049 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13050
c89ffd86
JK
130512013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13052
13053 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13054 initialize it by existing make_cleanup. Call new do_cleanups.
13055
db2b2972
TT
130562013-01-17 Tom Tromey <tromey@redhat.com>
13057
13058 * cp-abi.c (cp_abi_completer): New function.
13059 (_initialize_cp_abi): Set completer for "set cp-abi".
13060
be7d37a2
TT
130612013-01-17 Tom Tromey <tromey@redhat.com>
13062
13063 * mem-break.c: Remove obsolete comment.
13064 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13065
c9fb1240
SD
130662012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13067
13068 * jit.c (jit_reader_load_command): Interpret the jit reader name
13069 as an absolute path if it begins with a forward slash.
13070
db334a01
SD
130712012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13072
13073 PR gdb/14550
13074
13075 * jit.c (finalize_symtab): Ensure that only the global block has a
13076 NULL superblock.
13077
7d928dac
PA
130782013-01-17 Pedro Alves <palves@redhat.com>
13079
13080 * acinclude.m4: Include ../config/plugins.m4,
13081 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13082 * Makefile.in (aclocal_m4_deps): Update.
13083 * aclocal.m4: Renegerate.
13084
fb8cf7c5
DE
130852013-01-16 Doug Evans <dje@google.com>
13086
13087 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13088
ab04a2af
TT
130892013-01-16 Pedro Alves <palves@redhat.com>
13090 Tom Tromey <tromey@redhat.com>
13091
13092 PR cli/7221:
13093 * NEWS: Add "catch signal".
13094 * breakpoint.c (base_breakpoint_ops): No longer static.
13095 (bpstat_explains_signal): New function.
13096 (init_catchpoint): No longer static.
13097 (base_breakpoint_explains_signal): New function.
13098 (base_breakpoint_ops): Initialize new field.
13099 * breakpoint.h (enum bpstat_signal_value): New.
13100 (struct breakpoint_ops) <explains_signal>: New field.
13101 (bpstat_explains_signal): Remove macro, declare as function.
13102 (base_breakpoint_ops, init_catchpoint): Declare.
13103 * break-catch-sig.c: New file.
13104 * inferior.h (signal_catch_update): Declare.
13105 * infrun.c (signal_catch): New global.
13106 (handle_syscall_event): Update for change to
13107 bpstat_explains_signal.
13108 (handle_inferior_event): Likewise. Always handle random signals
13109 via bpstats.
13110 (signal_cache_update): Check signal_catch.
13111 (signal_catch_update): New function.
13112 (_initialize_infrun): Initialize signal_catch.
13113 * Makefile.in (SFILES): Add break-catch-sig.c.
13114 (COMMON_OBS): Add break-catch-sig.o.
13115
8ac3646f
TT
131162013-01-16 Tom Tromey <tromey@redhat.com>
13117
13118 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13119 (print_one_catch_solib, print_one_catch_syscall)
13120 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13121 "catch-type".
13122
5a18e302
YQ
131232013-01-16 Yao Qi <yao@codesourcery.com>
13124
13125 * printcmd.c (current_display_number): Make it static.
13126
3f01d0d0
YQ
131272013-01-16 Yao Qi <yao@codesourcery.com>
13128
13129 * infcmd.c (step_once): Don't check '!single_inst' as it was
13130 checked before.
13131
1ed59174
JK
131322013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13133
13134 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13135
44478ab3
TT
131362013-01-14 Tom Tromey <tromey@redhat.com>
13137
13138 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13139 set command.
13140 * command.h (add_setshow_string_noescape_cmd): Update.
13141 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13142 (complete_set_gnutarget): New function.
13143 (_initialize_core): Set the "set gnutarget" completer.
13144
06d66ee9
TT
131452013-01-14 Tom Tromey <tromey@redhat.com>
13146
13147 PR symtab/14442:
13148 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13149 (c_type_print_modifier): Likewise.
13150 * dwarf2read.c (read_tag_restrict_type): New function.
13151 (read_type_die_1): Handle DW_TAG_restrict_type.
13152 * gdbtypes.c (make_restrict_type): New function.
13153 (recursive_dump_type): Handle TYPE_RESTRICT.
13154 * gdbtypes.h (enum type_flag_values): Renumber.
13155 (enum type_instance_flag_value): Add
13156 TYPE_INSTANCE_FLAG_RESTRICT.
13157 (TYPE_RESTRICT): New macro.
13158 (make_restrict_type): Declare.
13159
c9bf0622
TT
131602013-01-14 Tom Tromey <tromey@redhat.com>
13161
13162 PR symtab/14931:
13163 * psymtab.c (struct psymtab_state): New.
13164 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13165 functions.
13166 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13167 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13168
44d594fd
PA
131692013-01-14 Richard Sharman <richard_sharman@mitel.com>
13170 Pedro Alves <palves@redhat.com>
13171
13172 PR remote/14786
13173
13174 * remote.c (remote_threads_info): Make a copy of the reply from
13175 qfThreadInfo and use that instead of rs->buf.
13176
442e4d9c
YQ
131772013-01-14 Yao Qi <yao@codesourcery.com>
13178
13179 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13180 (dbx_psymtab_to_symtab): Likewise.
13181 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13182 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13184
5b12a61c
JK
131852013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13186
13187 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13188 make_cleanup_restore_current_language. Call set_language. Move
13189 OLD_CHAIN and INNER_CHAIN cleanups.
13190 * utils.c (do_restore_current_language)
13191 (make_cleanup_restore_current_language): New functions.
13192 * utils.h (make_cleanup_restore_current_language): New declaration.
13193
f0a4b570
JK
131942013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13195
13196 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13197 non-existing files.
13198
57b3c00c
JK
13199 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13200 non-existing files if FILENAME is already absolute.
13201
daefa854
JK
132022013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13203
13204 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13205 fputs_filtered. Append trailing newline.
13206
ca9c6ee2
YQ
132072013-01-11 Yao Qi <yao@codesourcery.com>
13208 Stan Shebs <stan@codesourcery.com>
13209
13210 * psymtab.c (init_psymbol_list): Clarify the comment.
13211
f28045c2
YQ
132122013-01-11 Yao Qi <yao@codesourcery.com>
13213
13214 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13215 (update_dprintf_command_list): Assert that 'printf_line' is
13216 non-null. Remove condition check.
13217
da5132d3
JK
132182013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13219
13220 Code cleanup.
13221 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13222 type const char *.
13223 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13224 const char *.
13225 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13226
843e694d
AG
132272013-01-09 Anthony Green <green@moxielogic.com>
13228
13229 * cp-abi.c (cplus_print_vtable): Don't return value from void
13230 function.
13231 * ada-lang.c (re_set_catch_assert): Ditto.
13232
da51c347
DE
132332013-01-09 Doug Evans <dje@google.com>
13234
13235 * symfile.h (quick_symbol_functions): Delete member
13236 pre_expand_symtabs_matching. All uses removed.
13237 * dwarf2read.c (dw2_lookup_symbol): Implement.
13238 (dw2_do_expand_symtabs_matching): Delete.
13239 (dw2_pre_expand_symtabs_matching): Delete.
13240 (struct dw2_symtab_iterator): New type.
13241 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13242 (dw2_expand_symtabs_for_function): Rewrite.
13243 (dwarf2_gdb_index_functions): Update.
13244 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13245 (psym_functions): Update.
13246
b2259038
TT
132472013-01-09 Tom Tromey <tromey@redhat.com>
13248
13249 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13250 * configure: Rebuild.
13251 * configure.ac: Add somread.o to the build if BFD has SOM
13252 support.
13253 * somread.c: Include som/aout.h, not syms.h.
13254 (som_symtab_read): Use som_external_symbol_dictionary_record.
13255 Unpack records manually.
13256 (_initialize_somread): Declare.
13257
bdad4180
MF
132582012-01-08 Mike Frysinger <vapier@gentoo.org>
13259
13260 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13261 Cast return_address to 64bits.
13262
03cdf680
HZ
132632013-01-08 Hui Zhu <hui_zhu@mentor.com>
13264
13265 * printcmd.c: Remove define of function output_command.
13266 * tracepoint.c: Remove extern of function output_command.
13267 * valprint.h: (output_command): New extern.
13268
8a808554
TT
132692013-01-07 Tom Tromey <tromey@redhat.com>
13270
13271 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13272 Remove.
13273 (objc_language_defn): Use c_printchar, c_printstr,
13274 c_emit_char.
13275
e93a8774
TT
132762013-01-07 Tom Tromey <tromey@redhat.com>
13277
13278 PR cli/7719:
13279 * NEWS: Update.
13280 * ada-valprint.c (printstr, print_field_values): Remove
13281 "inspect_it" code.
13282 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13283 code.
13284 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13285 code.
13286 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13287 * main.c (captured_main): Remove "epoch" argument.
13288 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13289 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13290 * p-valprint.c (pascal_object_print_value_fields): Remove
13291 "inspect_it" code.
13292 * printcmd.c (print_command_1): Remove 'inspect' argument.
13293 (print_command, call_command): Update.
13294 (inspect_command): Remove.
13295 (_initialize_printcmd): Make "inspect" an alias for "print".
13296 * top.c (epoch_interface): Remove.
13297 * top.h (epoch_interface): Remove.
13298 * valprint.c (user_print_options): Update.
13299 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13300 * valprint.h (struct value_print_options) <inspect_it>: Remove
13301 field.
13302
133032013-01-04 Tom Tromey <tromey@redhat.com>
13304
13305 * valprint.h (read_string): Add 'extern'.
13306
b967eb24
JB
133072013-01-07 Joel Brobecker <brobecker@adacore.com>
13308
13309 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13310 used to decide whether to define darwin_read_dyld_info or not.
13311
78a8b30e
PM
133122013-01-03 Pierre Muller <muller@sourceware.org>
13313
13314 * main.c (relocate_gdb_directory): Avoid calling stat function
13315 if DIR is empty.
13316
50da2f25
YQ
133172013-01-03 Yao Qi <yao@codesourcery.com>
13318
13319 * psymtab.c (fixup_psymbol_section): Update declaration.
13320 (fixup_psymbol_section): Remove code returning value.
13321
e7e8980f
YQ
133222013-01-03 Yao Qi <yao@codesourcery.com>
13323
13324 * symtab.h: Remove some out of date comments.
13325 (enum exception_event_kind): Move it ...
13326 * breakpoint.c: ... here.
13327
569283d4
MF
133282013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13329
9f9d9a96 13330 PR gdb/14405
569283d4
MF
13331 * darwin-nat.c (darwin_read_dyld_info): Only build if
13332 TASK_DYLD_INFO_COUNT is defined.
13333 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13334 TASK_DYLD_INFO_COUNT is defined.
13335
2e36fbea
TT
133362013-01-02 Tom Tromey <tromey@redhat.com>
13337
13338 * symfile.h (struct ecoff_debug_hack): Remove.
13339 * objfiles.c: Don't include mdebugread.h.
13340
4f05add4
TT
133412013-01-02 Tom Tromey <tromey@redhat.com>
13342
13343 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13344 * configure.ac: Check for Mach-O support in BFD. Update
13345 CONFIG_OBS.
13346 * configure: Rebuild.
13347
def63ff0
TT
133482013-01-02 Tom Tromey <tromey@redhat.com>
13349
13350 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13351 * configure.ac: Use GDB_AC_CHECK_BFD.
13352 * configure: Rebuild.
13353
60c5dd93
MK
133542013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13355
13356 * MAINTAINERS: Update my email.
13357
6e58437e
JB
133582013-01-01 Joel Brobecker <brobecker@adacore.com>
13359
13360 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13361
627fe805
JB
133622013-01-01 Joel Brobecker <brobecker@adacore.com>
13363
13364 * rs6000-nat.c (bss_data_overlap): New function.
13365 (vmap_symtab): Use it to adjust the .bss section's offset.
13366
28e7fd62
JB
133672013-01-01 Joel Brobecker <brobecker@adacore.com>
13368
13369 Update year range in copyright notice of all files.
13370
e93a8774 133712013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13372
13373 * top.c (print_gdb_version): Update copyright year.
13374
72b20e9c 13375For older changes see ChangeLog-2012.
c906108c
SS
13376\f
13377Local Variables:
13378mode: change-log
13379left-margin: 8
13380fill-column: 74
13381version-control: never
57da7796 13382coding: utf-8
c906108c 13383End:
This page took 2.259867 seconds and 4 git commands to generate.