Add amd64_x32_linux_record_tdep and amd64_x32_sys
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8ee5199a
L
12013-12-19 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gdb/16304
4 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
5 system calls.
6 (amd64_x32_linux_record_tdep): New.
7 (amd64_linux_syscall_record_common): New function.
8 (amd64_linux_syscall_record): Call
9 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
10 (amd64_x32_linux_syscall_record): Call
11 amd64_linux_syscall_record_common with
12 amd64_x32_linux_record_tdep.
13 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
14 initialization and tdep->i386_syscall_record setup to ...
15 (amd64_linux_init_abi): Here.
16 (amd64_x32_linux_init_abi): Initialize
17 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
18 amd64_x32_linux_syscall_record.
19 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
20
05c0465e
SDJ
212013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
22
23 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
24 argument prefixes and suffixes. Initialize gdbarch with them.
25 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
26 * gdbarch.c: Regenerate.
27 * gdbarch.h: Regenerate.
28 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
29 (stap_register_prefix, stap_register_suffix)
30 (stap_register_indirection_prefix)
31 (stap_register_indirection_suffix): Declare as "const char *const
32 *" instead of "const char *". Adjust printing function. Rename
33 all of the variables to the plural.
34 (pstring_list): New function.
35 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
36 argument prefixes and suffixes. Initialize gdbarch with them.
37 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
38 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
39 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
40 * stap-probe.c (stap_is_generic_prefix): New function.
41 (stap_is_register_prefix): Likewise.
42 (stap_is_register_indirection_prefix): Likewise.
43 (stap_is_integer_prefix): Likewise.
44 (stap_generic_check_suffix): Likewise.
45 (stap_check_integer_suffix): Likewise.
46 (stap_check_register_suffix): Likewise.
47 (stap_check_register_indirection_suffix): Likewise.
48 (stap_parse_register_operand): Remove unecessary declarations for
49 variables holding prefix and suffix information. Use the new
50 functions listed above for checking for prefixes and suffixes.
51 (stap_parse_single_operand): Likewise.
52
4924df79
GKB
532013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
54
55 PR breakpoints/16297
56 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
57 when expected syscall is hit.
58
12e8c7d7
TT
592013-12-19 Tom Tromey <tromey@redhat.com>
60
61 * ser-unix.c (hardwire_ops): New global.
62 (_initialize_ser_hardwire): Use it.
63 * ser-tcp.c (tcp_ops): New global.
64 (_initialize_ser_tcp): Use it.
65 * ser-pipe.c (pipe_ops): New global.
66 (_initialize_ser_pipe): Use it.
67 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
68 globals.
69 (_initialize_ser_windows): Use them.
70
fcd488ca
TT
712013-12-19 Tom Tromey <tromey@redhat.com>
72
73 * serial.c (serial_ops_p): New typedef.
74 (serial_ops_list): Now a VEC.
75 (serial_interface_lookup): Return const. Use VEC_iterate.
76 (serial_add_interface): Make parameter const.
77 (serial_open): Update.
78 (serial_fdopen_ops): Make 'ops' const.
79 (serial_pipe): Update.
80 * ser-tcp.c (_initialize_ser_tcp): Update.
81 * ser-pipe.c (_initialize_ser_pipe): Update.
82 * ser-unix.c (_initialize_ser_hardwire): Update.
83 * ser-mingw.c (_initialize_ser_windows): Update.
84 * ser-go32.c (dos_ops): Now const. Update.
85 * serial.h (struct serial) <ops>: Now const.
86 (struct serial_ops) <next>: Remove.
87 (serial_add_interface): Make parameter const.
88
f45c82da
YZ
892013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
90
91 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
92 iov.iov_len with the real length in use.
93
4ac248ca
YQ
942013-12-18 Yao Qi <yao@codesourcery.com>
95
96 * target.h (target_xfer_partial_ftype): New typedef.
97 (target_xfer_partial): Update declaration.
98 * auxv.h (memory_xfer_auxv): Likewise.
99 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
100 * ia64-linux-nat.c (super_xfer_partial): Likewise.
101 * linux-nat.c (super_xfer_partial): Likewise.
102 * procfs.c (procfs_xfer_partial): Likewise.
103 * record-full.c (record_full_beneath_to_xfer_partial):
104 (tmp_to_xfer_partial): Likewise.
105 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
106 * target.c (default_xfer_partial): Likewise.
107 (current_xfer_partial): Likewise.
108 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
109
cde33bf1
YQ
1102013-12-18 Yao Qi <yao@codesourcery.com>
111
112 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
113 of sprintf.
114 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
115 (linux_proc_pending_signals): Likewise.
116
64c46ce4
JB
1172013-12-18 Joel Brobecker <brobecker@adacore.com>
118
119 * value.c (value_entirely_unavailable): ARI fix: Move trailing
120 binary operator to the next line. No actual code change.
121
5ce0145d
PA
1222013-12-17 Pedro Alves <palves@redhat.com>
123
124 * frame.h (enum frame_id_stack_status): New enum.
125 (struct frame_id) <stack_addr>: Adjust comment.
126 <stack_addr_p>: Delete field, replaced with ...
127 <stack_status>: ... this new field.
128 (frame_id_build_unavailable_stack): Declare.
129 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
130 (frame_id_build_special): Adjust.
131 (frame_id_build_unavailable_stack): New function.
132 (frame_id_build, frame_id_build_wild): Adjust.
133 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
134 account frames with unavailable stack.
135
136 * amd64-tdep.c (amd64_frame_this_id)
137 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
138 frame_id_build_unavailable_stack.
139 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
140 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
141 (i386_sigtramp_frame_this_id): Likewise.
142
bdf22206
AB
1432013-12-17 Andrew Burgess <aburgess@broadcom.com>
144
145 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
146 unavailable, use correct bit length.
147 * value.c (struct value): Extend comment on unavailable to
148 indicate that it is bit based.
149 (value_bits_available): New function.
150 (value_bytes_available): Call value_bits_available.
151 (value_entirely_available): Check against the bit length, not byte
152 length.
153 (mark_value_bits_unavailable): New function.
154 (mark_value_bytes_unavailable): Move contents to
155 mark_value_bits_unavailable, call to same.
156 (memcmp_with_bit_offsets): New function.
157 (value_available_contents_bits_eq): New function, takes the
158 functionality from value_available_contents_eq but uses
159 memcmp_with_bit_offsets now, and is bit not byte based.
160 (value_available_contents_eq): Move implementation into
161 value_available_contents_bits_eq, call to same.
162 (value_contents_copy_raw): Work on bits, not bytes.
163 (unpack_value_bits_as_long_1): Check availability in bits, not
164 bytes.
165 * value.h (value_bits_available): Declare new function.
166 (mark_value_bits_unavailable): Declare new function.
167
774f74c2
PM
1682013-12-16 Pierre Muller <muller@sourceware.org>
169
230de03a
YQ
170 Fix compilation error for cygwin native build.
171 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
774f74c2
PM
172 Call wcstombs.
173
9a362b9a
PA
1742013-12-16 Pedro Alves <palves@redhat.com>
175
176 PR 16329
177 * sol-thread.c (check_for_thread_db): If the target can't run or
178 isn't a core, return without pushing.
179
b030cf11
JB
1802013-12-15 Joel Brobecker <brobecker@adacore.com>
181
182 Revert the following commit:
183 * solib.c (solib_map_sections): Remove code overwriting
184 SO->SO_NAME with the bfd's filename.
185
186 Make the following changes required after the revert above:
187 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
188 returned bfd to a copy of the synthetic pathname.
189 * solib-darwin.c (darwin_bfd_open): Set the filename of the
190 returned bfd to a copy of PATHNAME.
191
8a48ac95
JB
1922013-12-13 Joel Brobecker <brobecker@adacore.com>
193
194 * ada-lang.c (ada_array_bound_from_type): Move the declaration
195 and assignment of variable "elt_type" inside the else block
196 where it is used. Add two missing check_typedef calls.
197 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
198 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
199
fb5e3d5c
JB
2002013-12-13 Joel Brobecker <brobecker@adacore.com>
201
202 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
203 between 'struct type *' and 'arr_type'.
204
a16b0e22
SC
2052013-12-12 Siva Chandra Reddy <sivachandra@google.com>
206
207 PR python/16113
208 * NEWS (Python Scripting): Add entry for the new feature and the
209 new attribute of gdb.Field objects.
210 * python/py-type.c (gdbpy_is_field): New function
211 (convert_field): Add 'parent_type' attribute to gdb.Field
212 objects.
213 * python/py-value.c (valpy_getitem): Allow subscript value to be
214 a gdb.Field object.
215 (value_has_field): New function
216 (get_field_flag): New function
217 * python/python-internal.h (gdbpy_is_field): Add declaration.
218
b15e5c54
PA
2192013-12-12 Pedro Alves <palves@redhat.com>
220
221 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
222 const, and remove casts.
223
f23981e9
PA
2242013-12-12 Pedro Alves <palves@redhat.com>
225
226 * cli/cli-cmds.c (source_script_from_stream) Use have_python
227 instead of catching UNSUPPORTED_ERROR.
228 * exceptions.h (UNSUPPORTED_ERROR): Delete.
229 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
230 error if called.
231 * python/python.h (have_python): New static inline function.
232
43942612
DE
2332013-12-11 Doug Evans <dje@google.com>
234
235 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
236 "can't find DWO" warning.
237
08a6411c
SDJ
2382013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
239
240 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
241 to get_probe_argument_count and evaluate_probe_argument.
242 * probe.c (get_probe_argument_count): Adjust declaration to accept
243 frame. Pass frame to probe_ops's get_probe_argument_count.
244 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
245 (probe_safe_evaluate_at_pc): Pass frame to
246 get_probe_argument_count and evaluate_probe_argument.
247 * probe.h (struct probe_ops) <get_probe_argument_count,
248 evaluate_probe_argument>: Adjust declarations to accept frame.
249 (get_probe_argument_count, evaluate_probe_argument): Likewise.
250 * solib-svr4.c (solib_event_probe_action): Get current frame.
251 Pass it to get_probe_argument_count.
252 (svr4_handle_solib_event): Get current frame. Pass it to
253 get_probe_argument_count and evaluate_probe_argument.
254 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
255 accept gdbarch. Do not obtain it from the probe's objfile.
256 (stap_get_probe_argument_count): Adjust declaration to accept
257 frame. Obtain gdbarch from the frame. Call generic
258 can_evaluate_probe_arguments. Pass gdbarch to
259 stap_parse_probe_arguments.
260 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
261 stap_parse_probe_arguments.
262 (stap_evaluate_probe_argument): Adjust declaration to accept
263 frame. Obtain gdbarch from the frame. Pass gdbarch to
264 stap_get_arg.
265 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
266 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
267 get_probe_argument_count and evaluate_probe_argument.
268
0987cf35
DE
2692013-12-10 Doug Evans <dje@google.com>
270
271 PR 16286
272 * c-lang.c (c_get_string): Ignore the declared size of the object
273 if a specific length is requested.
274
34dc884e
DE
2752013-12-10 Doug Evans <dje@google.com>
276
277 * interps.h (interp_exec_p): Delete.
278 * interps.c (interp_exec_p): Delete.
279 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
280 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
281
bae8a07a
YQ
2822013-12-10 Yao Qi <yao@codesourcery.com>
283
284 * amd64-tdep.c (amd64_analyze_stack_align): Call
285 target_read_code instead of target_read_memory.
286 (amd64_analyze_prologue): Call read_code_unsigned_integer
287 instead of read_memory_unsigned_integer. Call read_code
288 instead of read_memory.
289 (amd64_skip_xmm_prologue): Likewise.
290
0865b04a
YQ
2912013-12-10 Yao Qi <yao@codesourcery.com>
292
293 * corefile.c (read_code): New function.
294 (read_code_integer): New function.
295 (read_code_unsigned_integer): New function.
296 * gdbcore.h (read_code): Declare.
297 (read_code_integer): Declare.
298 (read_code_unsigned_integer): Declare.
299 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
300 of target_read_memory. Call read_code_unsigned_integer instead
301 of read_memory_unsigned_integer.
302 (i386_analyze_struct_return): Likewise.
303 (i386_skip_probe): Likewise.
304 (i386_analyze_stack_align): Likewise.
305 (i386_match_pattern): Likewise.
306 (i386_skip_noop): Likewise.
307 (i386_analyze_frame_setup): Likewise.
308 (i386_analyze_register_saves): Likewise.
309 (i386_skip_prologue): Likewise.
310 (i386_skip_main_prologue): Likewise.
311 (i386_frame_cache_1): Likewise.
312
f15cb84a
YQ
3132013-12-10 Yao Qi <yao@codesourcery.com>
314
315 * infrun.c: Include "target-dcache.h".
316 (prepare_for_detach): Call target_dcache_invalidate.
317 (wait_for_inferior): Likewise.
318 (fetch_inferior_event): Likewise.
319 (infrun_thread_stop_requested_callback): Likewise. Set
320 overlay_cache_invalid to 1.
321
036e93df
JB
3222013-12-10 Joel Brobecker <brobecker@adacore.com>
323
324 * symtab.c (symbol_find_demangled_name): Add handling of
325 Ada symbols.
326
72bfa06c
JB
3272013-12-10 Joel Brobecker <brobecker@adacore.com>
328
329 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
330 * NEWS: Expand the entry documenting the new -exec-run --start
331 option to mention the corresponding new entry in the output of
332 "-list-features".
333
94481b8c
JB
3342013-12-10 Joel Brobecker <brobecker@adacore.com>
335
336 * windows-nat.c (handle_load_dll): Add comments.
337 (windows_ensure_ntdll_loaded): New function.
338 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
339 Add FIXME comment.
340
ebeec1e9 3412013-12-08 Joel Brobecker <brobecker@adacore.com>
0c2242c1
JB
342
343 GDB 7.6.2 released.
344
e5e6f788
YQ
3452013-12-08 Yao Qi <yao@codesourcery.com>
346
347 * stack.c (frame_info): Initialize variable caller_pc.
348
782d47df
PA
3492013-12-06 Pedro Alves <palves@redhat.com>
350
351 * frame.c (enum cached_copy_status): New enum.
352 (struct frame_info) <prev_pc.p>: Change type to enum
353 cached_copy_status.
354 (fprint_frame): Handle not saved and unavailable prev_pc values.
355 (frame_unwind_pc_if_available): Delete and merge contents into ...
356 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
357 to use enum cached_copy_status.
358 (frame_unwind_caller_pc_if_available): Delete.
359 (create_new_frame): Adjust.
360 * frame.h (frame_unwind_caller_pc_if_available): Delete
361 declaration.
362 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
363 frame_unwind_caller_pc_if_available, and handle
364 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
365 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
366 (val_print_not_saved): New function.
367 * valprint.h (val_print_not_saved): Declare.
368
710409a2
PA
3692013-12-06 Andrew Burgess <aburgess@broadcom.com>
370 Pedro Alves <palves@redhat.com>
371
372 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
373 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
374 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
375 * spu-tdep.c (spu_software_single_step): Throw
376 OPTIMIZED_OUT_ERROR.
377 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
378
7580e917
TT
3792013-12-06 Tom Tromey <tromey@redhat.com>
380
381 * objfiles.c (free_objfile): Update comment.
382
53e0e56d
TT
3832013-12-06 Tom Tromey <tromey@redhat.com>
384
385 * objfiles.h (objfile_to_front): Remove.
386 * objfiles.c (objfile_to_front): Remove.
387
830f7a41
TT
3882013-12-06 Tom Tromey <tromey@redhat.com>
389
390 * minsyms.c (get_symbol_leading_char): Remove unnecessary
391 declaration.
392
e1b06ae2
TT
3932013-12-06 Tom Tromey <tromey@redhat.com>
394
395 * psympriv.h (struct partial_symtab) <user>: Move earlier.
396
2b69941d
TT
3972013-12-06 Tom Tromey <tromey@redhat.com>
398
399 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
400 (list_command): Likewise.
401
bf121224
TT
4022013-12-06 Tom Tromey <tromey@redhat.com>
403
404 * psymtab.c (allocate_psymtab): Put the filename in the filename
405 bcache.
406
8e96694e
TT
4072013-12-06 Tom Tromey <tromey@redhat.com>
408
409 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
410 * symtab.h (struct symtab) <dirname>: Now const.
411
21ea9eec
TT
4122013-12-06 Tom Tromey <tromey@redhat.com>
413
414 * symfile.c (allocate_symtab): Remove cast.
415 * symtab.h (struct symtab) <filename>: Now const.
416
37fbcad0
TT
4172013-12-06 Tom Tromey <tromey@redhat.com>
418
419 * break-catch-throw.c (fetch_probe_arguments): Use
420 get_probe_argument_count and evaluate_probe_argument.
421 * elfread.c (elf_get_probe_argument_count)
422 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
423 (elf_compile_to_ax): Remove.
424 (elf_probe_fns): Update.
425 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
426 (evaluate_probe_argument): Call method on probe, not via sym
427 functions.
428 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
429 evaluate_probe_argument.
430 (compile_probe_arg): Use get_probe_argument_count. Call method on
431 probe, not via sym functions.
432 * symfile-debug.c (debug_sym_get_probe_argument_count)
433 (debug_can_evaluate_probe_arguments)
434 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
435 Remove.
436 (debug_sym_probe_fns): Remove.
437 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
438 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
439 sym_compile_to_ax>: Remove fields.
440
8662d513
PM
4412013-12-06 Pierre Muller <muller@sourceware.org>
442
443 Fix completion for pascal language.
444 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
445 (exp : field_exp name COMPLETE): New rule.
446 (exp : SIZEOF): Set correct current_type.
447 (last_was_structop): Remove static variable.
448 (yylex): Remove saw_structop local variable.
449 Adapt code to removal of variables above.
450
da361ebd
JB
4512013-12-06 Joel Brobecker <brobecker@adacore.com>
452
453 * frame.c (get_prev_frame_1): Delete variable "this_id".
454 Replace its use by a call to get_frame_id.
455
6ed1ff02
AG
4562013-12-05 Anthony Green <green@moxielogic.com>
457
458 * moxie-tdep.c (moxie_software_single_step): New function.
459 (INST2OFFSET): New helper macro.
460 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
461 (moxie_process_readu): Move this up in the file.
462
39d7494a 4632013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
464
465 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
466
170d82c9
JB
4672013-12-05 Joel Brobecker <brobecker@adacore.com>
468 Tristan Gingold <gingold@adacore.com>
469
470 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
471 Accept version 2. Ignore operations using opcode 6.
472
a5e619ec
JB
4732013-12-05 Joel Brobecker <brobecker@adacore.com>
474
475 * ada-lex.l (find_dot_all): Fix coding style violations.
476
ca8941bb
WT
4772013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
478
479 * NEWS: Add section for Intel(R) Architecture Instructions
480 Extesions mentioning MPX.
481
7fb1b8b1
JB
4822013-12-03 Joel Brobecker <brobecker@adacore.com>
483
484 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
485
849f2b52
JB
4862013-12-03 Joel Brobecker <brobecker@adacore.com>
487
488 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
489 when parse_exp_1 threw an error. Add comment.
490
4e35e808
JB
4912013-12-03 Joel Brobecker <brobecker@adacore.com>
492
493 * NEWS: Mention "-list-features" in the entry documenting
494 the support for the "--language" option.
495
caf26be9
SB
4962013-12-03 Tom Tromey <tromey@redhat.com>
497 Jan Kratochvil <jan.kratochvil@redhat.com>
498 Doug Evans <dje@google.com>
499 Samuel Bronson <naesten@gmail.com>
500
501 Bring back gdb-add-index as a contrib script.
502 * contrib/gdb-add-index.sh: New file.
503 * NEWS: Note the addition.
504
34a4fb3a
SB
5052013-12-03 Samuel Bronson <naesten@gmail.com>
506
507 * MAINTAINERS (Write After Approval): Add myself to the list.
508
688981c9
JB
5092013-12-03 Joel Brobecker <brobecker@adacore.com>
510
511 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
512
c1244769
JB
5132013-12-03 Joel Brobecker <brobecker@adacore.com>
514
515 * mi/mi-main.c: Remove trailing spaces throughout.
516
2ea126fa
JB
5172013-12-03 Pedro Alves <palves@redhat.com>
518 Joel Brobecker <brobecker@adacore.com>
519
520 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
521 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
522 of a regular error when the GDB/MI command does not exist.
523 * mi/mi-main.c (mi_cmd_list_features): Add
524 "undefined-command-error-code".
525 (mi_print_exception): Print an "undefined-command"
526 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
527 * NEWS: Add entry documenting the new "code" variable in
528 "^error" result records.
529
6b7cbff1
JB
5302013-12-03 Joel Brobecker <brobecker@adacore.com>
531
532 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
533 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
534 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
535 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
536 field to output of "-list-features".
537
538 * NEWS: Add entry for new -info-gdb-mi-command.
539
04affae3
JK
5402013-12-02 Doug Evans <dje@google.com>
541 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 * objfiles.c (allocate_objfile): Save original_name as an absolute
544 path.
545 * objfiles.h (struct objfile): Expand comment on original_name.
546 * source.c (openp): Call gdb_abspath.
547 * utils.c (gdb_abspath): New function.
548 * utils.h (gdb_abspath): Declare.
549
aee4bf85
PA
5502013-12-02 Pedro Alves <palves@redhat.com>
551
552 * dcache.c (dcache_read_line): Use target_read_raw_memory.
553 * target.c (target_read_raw_memory): New function.
554 (target_read_stack, target_write_memory, target_write_raw_memory):
555 Update comment.
556 (target_read_code): Add comment.
557 * target.h (target_read_raw_memory): Declare.
558
840207d8
PA
5592013-12-02 Pedro Alves <palves@redhat.com>
560
561 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
562 unconditionally.
563
0fdf84ca
PA
5642013-12-02 Pedro Alves <pedro@codesourcery.com>
565 Maciej W. Rozycki <macro@codesourcery.com>
566
567 * remote.c (putpkt_for_catch_errors): Remove function.
568 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
569 gracefully.
570
62972e0b
YQ
5712013-12-02 Pedro Alves <palves@redhat.com>
572
573 PR remote/15974
574 * remote-notif.c (handle_notification): Return early if no
575 notification is found.
576
f9b0da3d
JB
5772013-12-02 Joel Brobecker <brobecker@adacore.com>
578
579 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
580 preprocessor check.
581
2dd4d422
JB
5822013-12-02 Joel Brobecker <brobecker@adacore.com>
583
584 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
585
e72eff80
JB
5862013-12-02 Joel Brobecker <brobecker@adacore.com>
587
588 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
589 * ctf.c (ctf_start): Remove obsolete comment.
590
844ad005
JB
5912013-12-02 Joel Brobecker <brobecker@adacore.com>
592
593 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
594
5b2bf947
DE
5952013-11-30 Doug Evans <xdje42@gmail.com>
596
597 * auto-load.h (script_language): New members name, auto_load_enabled.
598 Add missing comments on struct members.
599 (auto_load_objfile_script): Delete.
600 * auto-load.c: #include "cli/cli-cmds.h".
601 (auto_load_gdb_scripts_enabled): New function.
602 (script_language_gdb): Update, add new members.
603 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
604 and call to maybe_add_script moved to caller.
605 (auto_load_objfile_script_1): Auto-load safe-checking and
606 call to maybe_add_script moved here.
607 (auto_load_objfile_script): Make static. Early exit if support for
608 scripting language hasn't been compiled in, or auto-loading has been
609 disabled.
610 (source_section_scripts): Argument "source_name" renamed to
611 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
612 with section_name. Skip loading script if support for scripting
613 language hasn't been compiled in, or auto-loading has been disabled.
614 Call language->source_script_for_objfile instead of calling
615 source_python_script_for_objfile directly.
616 (load_auto_scripts_for_objfile): Update.
617 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
618 (gdbpy_load_auto_script_for_objfile): Delete.
619 (auto_load_python_scripts_enabled): New function.
620 (script_language_python): Update, add new members.
621 (gdbpy_script_language_defn): New function.
622 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
623 (gdbpy_script_language_defn): Declare.
624
625 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
626 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
627 (source_section_scripts): Moved here from py-auto-load.c.
628 (auto_load_section_scripts): Ditto.
629 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
630 auto-load.c, renamed AUTO_SECTION_NAME.
631 (source_section_scripts, auto_load_section_scripts): Moved to
632 auto-load.c.
633
d9c43928
YQ
6342013-11-30 Yao Qi <yao@codesourcery.com>
635
636 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
637
e7b12392
SDJ
6382013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
639
640 * gdbarch.sh: Remove include of "gdb_string.h", replace by
641 <string.h>.
642
256458bc
DE
6432013-11-29 Doug Evans <xdje42@gmail.com>
644
7b2d3abf
DE
645 * python/py-auto-load.c (source_section_scripts): Move comment to
646 more relevant location.
647
256458bc
DE
648 Whitespace cleanup.
649 * python/py-breakpoint.c: Remove trailing whitespace.
650 * python/py-cmd.c: Ditto.
651 * python/py-evts.c: Ditto.
652 * python/py-finishbreakpoint.c: Ditto.
653 * python/py-frame.c: Ditto.
654 * python/py-function.c: Ditto.
655 * python/py-inferior.c: Ditto.
656 * python/py-infthread.c: Ditto.
657 * python/py-param.c: Ditto.
658 * python/py-prettyprint.c: Ditto.
659 * python/py-symbol.c: Ditto.
660 * python/py-type.c: Ditto.
661 * python/py-utils.c: Ditto.
662 * python/py-value.c: Ditto.
663 * python/python-internal.h: Ditto.
664 * python/python.c: Ditto.
665
20e1ca3b
PA
6662013-11-29 Pedro Alves <palves@redhat.com>
667
668 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
669
8b4f3082
PA
6702013-11-29 Pedro Alves <palves@redhat.com>
671
672 * breakpoint.c (build_target_condition_list): Release previous
673 conditions.
674 (build_target_command_list): Release previous commands.
675 (bp_location_dtor): Release target conditions and commands.
676 * remote.c (remote_add_target_side_condition): Don't release
677 conditions.
678 (remote_add_target_side_commands): Don't release commands.
679
9f713294
YQ
6802013-11-29 Yao Qi <yao@codesourcery.com>
681 Pedro Alves <palves@redhat.com>
682
683 * dcache.c (dcache_read_line): Use current_target.beneath
684 instead of &current_target.
685 * target.c (memory_xfer_partial_1): Factor code out to ...
686 (raw_memory_xfer_partial): ... it. New function.
687 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
688 is TARGET_OBJECT_RAW_MEMORY.
689
4cb0213d
DE
6902013-11-28 Doug Evans <xdje42@gmail.com>
691
692 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
693 breakpoint_object. All uses updated.
694 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
695 breakpoint_object. All uses updated.
696 * python.c (*): All uses of breakpoint_object updated.
697 * python.h (*): All uses of breakpoint_object updated.
698 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
699 * python/py-finishbreakpoint.c (*): Ditto.
700
d344e670
DE
7012013-11-28 Doug Evans <xdje42@gmail.com>
702
d729aae0 703 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
704 * configure: Regenerate.
705
eebc056c
AB
7062013-11-28 Andrew Burgess <aburgess@broadcom.com>
707 Pedro Alves <palves@redhat.com>
708
709 * valprint.c (value_check_printable): If the value is entirely
710 unavailable, print a single "<unavailable>" instead of printing
711 all subfields.
712
a7300869
PA
7132013-11-28 Pedro Alves <palves@redhat.com>
714
715 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
716 Add "set debug frame" output.
717 (frame_stop_reason_symbol_string): New function.
718
50fd528a
PA
7192013-11-28 Pedro Alves <palves@redhat.com>
720
721 * frame-unwind.c (default_frame_unwind_stop_reason): Return
722 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
723 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
724
5de51581
PA
7252013-11-28 Pedro Alves <palves@redhat.com>
726
727 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
728 set the unwind stop reason to UNWIND_OUTERMOST, not
729 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
730
739cb10c
PA
7312013-11-28 Pedro Alves <palves@redhat.com>
732
733 * frame.c (frame_unwind_register): Say the register was "not
734 saved" instead of "optimized out".
735
514c0aa6 7362013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 737
514c0aa6 738 PR 16152
92a021de 739 * configure: Rebuild.
514c0aa6 740 * configure.ac: Tighten cygwin detection check.
92a021de 741
908fa2aa
PA
7422013-11-27 Pedro Alves <palves@redhat.com>
743
744 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
745 register in the previous frame's arch.
746
6bd273ae
PA
7472013-11-27 Pedro Alves <palves@redhat.com>
748
749 * frame-unwind.c (frame_unwind_got_optimized): Return
750 an lval_register value instead of a not_lval value.
751
f6c01fc5
AB
7522013-11-27 Andrew Burgess <aburgess@broadcom.com>
753
754 * frame.c: Include "valprint.h".
755 (frame_unwind_register_value): Use value_optimized_out.
756 * value.c (value_fetch_lazy): Likewise.
757
4f14910f
AB
7582013-11-26 Andrew Burgess <aburgess@broadcom.com>
759
760 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
761
15859968
TT
7622013-11-26 Tom Tromey <tromey@redhat.com>
763
764 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
765 2013-11-22.
766
244ec0da
WT
7672013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
768
769 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
770 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
771 (HAS_MPX): New macro.
772 (HAS_AVX): New macro.
773 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
774
f7e3ecae
KS
7752013-11-25 Keith Seitz <keiths@redhat.com>
776
777 PR c++/14819
778 * c-exp.y (classify_inner_name): If no matching symbol was
779 found, try looking up the token as a base class.
780 Likewise if a constructor was found.
781 * cp-namespace.c (find_type_baseclass_by_name): New function.
782 * cp-support.h (find_type_baseclass_by_name): Declare.
783 * valops.c (value_struct_elt_for_reference): If we get
784 a non-static field, try to get a value based on the
785 current instance, if any.
786
283f7163
YQ
7872013-11-24 Yao Qi <yao@codesourcery.com>
788
789 * disasm.c (dis_asm_read_memory): Call target_read_code
790 instead of target_read_memory.
791
29453a14
YQ
7922013-11-24 Yao Qi <yao@codesourcery.com>
793
794 * NEWS: Add note on new "set code-cache" option.
795 * target-dcache.c (code_cache_enabled_1): New variable.
796 (code_cache_enabled): New variable.
797 (show_code_cache, set_code_cache): New function.
798 (code_cache_enabled_p): New function.
799 (_initialize_target_dcache): Register command.
800 * target-dcache.h (code_cache_enabled_p): Declare.
801 * target.c (memory_xfer_partial_1):Handle
802 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
803 (target_read_code): New function.
804 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
805 New.
806 (target_read_code): Declare.
807
0fb14d8f
YQ
8082013-11-24 Yao Qi <yao@codesourcery.com>
809
810 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
811 (stack_cache_enabled_1): ... this. New variable.
812 (stack_cache_enabled_p): Rename to ...
813 (stack_cache_enabled): ... this. New variable.
814 (set_stack_cache_enabled_p): Rename to ...
815 (set_stack_cache): ... this. Update caller.
816 (show_stack_cache_enabled_p): Rename to ...
817 (show_stack_cache): ... this. Update caller.
818 (stack_cache_enabled): Rename to ...
819 (stack_cache_enabled_p): ... this. Update caller.
820 (_initialize_target_dcache): Replace "data cache" with
821 "target memory cache".
822 * target-dcache.h (stack_cache_enabled): Remove declaration.
823 (stack_cache_enabled_p): Add declaration.
824
a12361b9
DE
8252013-11-23 Doug Evans <xdje42@gmail.com>
826
827 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
828 superfluous.
829
1e1d6920
DE
8302013-11-23 Doug Evans <xdje42@gmail.com>
831
832 * python/py-frame.c (frapy_block): Fix error message text.
833
1e9c71b8
DE
8342013-11-23 Doug Evans <xdje42@gmail.com>
835
836 * cli/cli-script.c (multi_line_command_p): New function.
837 (recurse_read_control_structure, read_command_lines_1): Call it.
838 (execute_control_command): Consistently have a blank line between
839 each case.
840
f380848e
SA
8412013-11-22 Sterling Augustine <saugustine@google.com>
842
38e1f2a7 843 PR gdb/16196:
f380848e
SA
844 * valprint.c (read_string): Set new variable fetchlen based on
845 fetchlimit and size. Use it in call to partial_memory_read.
846 Update comment.
847
da2b2fdf
TT
8482013-11-22 Tom Tromey <tromey@redhat.com>
849
850 PR backtrace/16155:
851 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
852 the return address column is unspecified.
853
6eeee81c
TT
8542013-11-22 Tom Tromey <tromey@redhat.com>
855 Pedro Alves <palves@redhat.com>
856
857 PR backtrace/16155
858 * value.c (value_fetch_lazy): Internal error if
859 get_frame_register_value returns the same register.
860
194cca41
PA
8612013-11-22 Pedro Alves <palves@redhat.com>
862 Tom Tromey <tromey@redhat.com>
863
864 * frame.c (frame_stash_add): Now returns whether a frame with the
865 same ID was already known.
866 (compute_frame_id): New function, factored out from get_frame_id.
867 (get_frame_id): No longer lazilly compute the frame id here.
868 (get_prev_frame_if_no_cycle): New function. Detects wider stack
869 cycles.
870 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
871 and checking for stack cycles here.
872
33f8fe58
PA
8732013-11-22 Pedro Alves <palves@redhat.com>
874
875 PR 16155
876 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
877 this frame and the new previous frame, not between this frame and
878 the next frame.
879
1ec56e88
PA
8802013-11-22 Pedro Alves <palves@redhat.com>
881
882 PR 16155
883 * dwarf2-frame.c (struct dwarf2_frame_cache)
884 <checked_tailcall_bottom, entry_cfa_sp_offset,
885 entry_cfa_sp_offset_p>: New fields.
886 (dwarf2_frame_cache): Adjust to use the new cache fields instead
887 of locals. Don't call dwarf2_tailcall_sniffer_first here.
888 (dwarf2_frame_prev_register): Call it here, but only once.
889
ca092b61
DE
8902013-11-21 Doug Evans <xdje42@gmail.com>
891
892 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
893 (type_equality_entry): Move here from python/py-type.c.
894 (type_equality_entry_d): Ditto.
895 (compare_maybe_null_strings, check_types_equal): Ditto.
896 (check_types_worklist, types_deeply_equal): Ditto.
897 * gdbtypes.h (types_deeply_equal): Declare.
898 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
899 (typy_richcompare): Update.
900
7c245c24
JB
9012013-11-20 Joel Brobecker <brobecker@adacore.com>
902
903 * python/py-value.c (is_intlike): Delete.
904 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
905 by use of is_integral_type.
906 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
907 by use of is_integral_type and check for TYPE_CODE_PTR.
908
8986e351
TT
9092013-11-20 Tom Tromey <tromey@redhat.com>
910
911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
912 strerror module.
913 * gnulib/aclocal.m4: Update.
914 * gnulib/config.in: Update.
915 * gnulib/configure: Update.
916 * gnulib/import/Makefile.am: Update.
917 * gnulib/import/Makefile.in: Update.
918 * gnulib/import/errno.in.h: Remove.
919 * gnulib/import/intprops.h: Remove.
920 * gnulib/import/m4/errno_h.m4: Remove.
921 * gnulib/import/m4/gnulib-cache.m4: Update.
922 * gnulib/import/m4/gnulib-comp.m4: Update.
923 * gnulib/import/m4/strerror.m4: Remove.
924 * gnulib/import/m4/sys_socket_h.m4: Remove.
925 * gnulib/import/strerror-override.c: Remove.
926 * gnulib/import/strerror-override.h: Remove.
927 * gnulib/import/strerror.c: Remove.
928 * gnulib/update-gnulib.sh: Update.
929
6b1141e3
YQ
9302013-11-20 Yao Qi <yao@codesourcery.com>
931
932 * target-dcache.c (target_dcache_get_or_init): Call
933 set_address_space_data if 'dcache' is NULL.
934
60650f2e
WT
9352013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
936
937 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
938
09748966
WT
9392013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
940
941 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
942 * data-directory/Makefile.in: Copy bond_register.py to the right path
943 to be initialized at gdb startup.
09748966 944
e43e105e
WT
9452013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
946
947 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
948 Add MPX registers.
949 (amd64_linux_read_description): Add initialization for MPX and
950 AVX independently.
951 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
952 (amd64_linux_gregset_reg_offset): Add MPX registers.
953 (amd64_linux_core_read_description): Add initialization for MPX
954 registers.
955 (_initialize_amd64_linux_tdep): Initialize MPX targets.
956 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
957 register on the list.
958 (tdesc_amd64_mpx_linux) Add new target for MPX.
959 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
960 (amd64_mpx_names): MPX register names.
961 (amd64_init_abi): Add MPX register while initializing the ABI.
962 (_initialize_amd64_tdep): Initialize MPX targets.
963 * amd64-tdep.h (amd64_regnum): Add MPX registers.
964 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
965
1dbcd68c
WT
9662013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
967
968 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
969 registers on the range of registers to be read from
970 xsave buffer.
971 (i386_linux_read_description): Add case for MPX.
972 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
973 (i386_linux_gregset_reg_offset): Add MPX registers.
974 (i386_linux_core_read_description): Initialize also MPX.
975 (_initialize_i386_linux_tdep): Add mpx initialization.
976 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
977 mpx_register_names.
978 (i386_regnum): Add MPX registers.
979 (I386_MPX_NUM_REGS): New macro.
980 (i386_bnd_regnum_p): New function.
981 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
982 number of registers to be the number of BNDSTATUS.
983 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
984 * i386-tdep.c: Include features/i386/i386-mpx.c.
985 (i386_mpx_names): Add MPX register names array.
986 (i386_bnd_names): Add bnd pseudo register names array.
987 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
988 registers.
989 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
990 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
991 registers.
992 (i386_bnd_type): New function.
993 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
994 register types.
995 (i386_pseudo_register_read_into_value): Add bnd case.
996 (i386_pseudo_register_write): Add bnd pseudo registers.
997 (i386_register_reggroup_p): Add MPX register to the group all.
998 (i386_validate_tdesc_p): Add MPX to the target description
999 validation.
1000 (i386_pseudo_register_name): Add bnd pseudo registers.
1001 (i386_gdbarch_init): Add MPX for architecture initialization.
1002 (_initia_initialize_i386_tdep): Add mpx initialization.
1003 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1004 XSAVE buffer.
1005 (XSAVE_MPX_ADDR): New macro.
1006 (i387_supply_xsave): Add MPX case.
1007 (i387_collect_xsave): Add MPX case.
1008 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1009 (I387_BNDCFGU_REGNUM): New macro.
1010 (I387_NUM_MPX_REGS): New macro.
1011 (I387_NUM_BND_REGS): New macro.
1012 (I387_NUM_MPX_CTRL_REGS): New macro.
1013 (I387_MPXEND_REGNUM): New macro.
1014 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1015 (I386_XSTATE_BNDCFG): Likewise.
1016 (I386_XSTATE_MPX_MASK): Likewise.
1017 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1018 (I386_XSTATE_BNDREGS_SIZE): New macro.
1019 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1020 (I386_XSTATE_SIZE): Adapt for MPX.
1021 (I386_XSTATE_MAX_SIZE): Likewise.
1022
ccc42043
WT
10232013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1024
1025 * features/i386/Makefile: Adapts for using MPX registers.
1026 * features/i386/32bit-mpx.xml: New file.
1027 * features/i386/64bit-mpx.xml: Likewise.
1028 * features/i386/amd64-mpx-linux.c: Likewise.
1029 * features/i386/amd64-mpx-linux.xml: Likewise.
1030 * features/i386/amd64-mpx.c: Likewise.
1031 * features/i386/amd64-mpx.xml: Likewise.
1032 * features/i386/i386-mpx-linux.c: Likewise.
1033 * features/i386/i386-mpx-linux.xml: Likewise.
1034 * features/i386/i386-mpx.c: Likewise.
1035 * features/i386/i386-mpx.xml: Likewise.
1036 * regformats/i386/amd64-mpx-linux.dat: New file.
1037 * regformats/i386/amd64-mpx.dat: Likewise.
1038 * regformats/i386/i386-mpx-linux.dat: Likewise.
1039 * regformats/i386/i386-mpx.dat: Likewise.
1040
57803a3c
WT
10412013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1042
1043 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1044 Modified logic of creating a bitfield to be in sync with
1045 tdesc_gdb_type.
1046
2b59118e
WN
10472013-11-20 Will Newton <will.newton@linaro.org>
1048
1049 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1050 error message.
1051
b26dfc9a
YQ
10522013-11-20 Yao Qi <yao@codesourcery.com>
1053
1054 * progspace.h (struct address_space_data): Declare.
1055 * target-dcache.c: Include "progspace.h".
1056 (target_dache): Remove.
1057 (target_dcache_aspace_key): New.
1058 (target_dcache_cleanup): New function.
1059 (target_dcache_init_p): Get data through
1060 target_dcache_aspace_key.
1061 (target_dcache_invalidate): Likewise.
1062 (target_dcache_get): Likewise.
1063 (target_dcache_get_or_init): Likewise.
1064 (_initialize_target_dcache): Initialize
1065 target_dcache_aspace_key.
1066
3a8356ff
YQ
10672013-11-20 Yao Qi <yao@codesourcery.com>
1068
1069 * progspace.c (struct address_space): Update comments.
1070 <REGISTRY_FIELDS>: New fields.
1071 DEFINE_REGISTRY for address_space.
1072 (new_address_space): Call address_space_alloc_data.
1073 (free_address_space): Call address_space_free_data.
1074 * progspace.h: Use DECLARE_REGISTRY.
1075
68c765e2
YQ
10762013-11-20 Yao Qi <yao@codesourcery.com>
1077
1078 * Makefile.in (SFILES):Add target-dcache.c.
1079 (HFILES_NO_SRCDIR): Add target-dcache.h.
1080 (COMMON_OBS): Add target-dcache.o.
1081 * dcache.c: Remove inclusion to "target.h". Include
1082 "target-dcache.h".
1083 * memattr.c: Include "target-dcache.h".
1084 * top.c: Likewise.
1085 * tracepoint.c: Likewise.
1086 * target.c: (stack_cache_enabled_p_1): Move to
1087 target-dcache.c.
1088 (stack_cache_enabled_p): Likewise.
1089 (set_stack_cache_enabled_p): Likewise.
1090 (show_stack_cache_enabled_p): Likewise.
1091 (target_dcache, target_dcache_init_p): Likewise.
1092 (target_dcache_invalidate): Likewise.
1093 (target_dcache_get, target_dcache_get_or_init): Likewise.
1094 (memory_xfer_partial_1): Call function stack_cache_enabled.
1095 (initialize_target): Move code to target-dcache.c.
1096 * target.h (target_dcache_invalidate): Move to
1097 target-dcache.h.
1098 (target_dcache_get): Likewise.
1099 * target-dcache.c: New.
1100 * target-dcache.h: New.
1101
f2de9785
YQ
11022013-11-20 Yao Qi <yao@codesourcery.com>
1103
1104 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1105 it is initialized.
1106
2a2f9fe4
YQ
11072013-11-20 Yao Qi <yao@codesourcery.com>
1108
1109 * dcache.c (last_cache): Remove.
1110 (dcache_free, dcache_init): Update.
1111 (dcache_update):
1112 (dcache_print_line): Add parameter 'dcache'. Replace
1113 'target_dcache' with 'dcache'.
1114 (dcache_info): Move code to dcache_info_1. Call
1115 'dcache_info_1'.
1116 (dcache_info_1): New function.
1117 (set_dcache_size): Call target_dcache_invalidate.
1118 (set_dcache_line_size): Call target_dcache_invalidate.
1119 * target.c (target_dcache_init_p): New function.
1120 (target_dcache_invalidate): Check target_dcache_init_p first.
1121 (target_dcache_get, target_dcache_get_or_init): New function.
1122 (memory_xfer_partial_1): Adjust.
1123 (initialize_target): Don't initialize 'target_dcache'.
1124 * target.h (struct dcache_struct): Declare.
1125 (target_dcache_get): Declare.
1126
8ab91b96
YQ
11272013-11-19 Yao Qi <yao@codesourcery.com>
1128
1129 * varobj.c (varobj_get_type): Fix typo.
1130
df7752b0
JB
11312013-11-19 Joel Brobecker <brobecker@adacore.com>
1132
1133 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1134
4a0a886a
JB
11352013-11-19 Joel Brobecker <brobecker@adacore.com>
1136
1137 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1138 "stat.h".
1139
53ce3c39
TT
11402013-11-18 Tom Tromey <tromey@redhat.com>
1141
1142 * common/gdb_stat.h: Remove.
1143 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1144 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1145 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1146 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1147 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1148 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1149 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1150 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1151 * exec.c: Use sys/stat.h, not gdb_stat.h.
1152 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1153 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1154 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1155 * jit.c: Use sys/stat.h, not gdb_stat.h.
1156 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1157 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1158 * main.c: Use sys/stat.h, not gdb_stat.h.
1159 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1160 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1161 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1162 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1163 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1164 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1165 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1166 * remote.c: Use sys/stat.h, not gdb_stat.h.
1167 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1168 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1169 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1170 * source.c: Use sys/stat.h, not gdb_stat.h.
1171 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1172 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1173 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1174 * top.c: Use sys/stat.h, not gdb_stat.h.
1175 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1176
09607c9e
TT
11772013-11-18 Tom Tromey <tromey@redhat.com>
1178
1179 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1180 sys_stat.
1181 * gnulib/aclocal.m4: Update.
1182 * gnulib/config.in: Update.
1183 * gnulib/configure: Update.
1184 * gnulib/import/Makefile.am: Update.
1185 * gnulib/import/Makefile.in: Update.
1186 * gnulib/import/m4/gnulib-cache.m4: Update.
1187 * gnulib/import/m4/gnulib-comp.m4: Update.
1188 * gnulib/import/m4/sys_stat_h.m4: New.
1189 * gnulib/import/m4/time_h.m4: New.
1190 * gnulib/import/sys_stat.in.h: New.
1191 * gnulib/import/time.in.h: New.
1192
4ff70b84
TT
11932013-11-18 Tom Tromey <tromey@redhat.com>
1194
1195 * configure: Rebuild.
1196 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1197
3447c057
TT
11982013-11-18 Tom Tromey <tromey@redhat.com>
1199
1200 * configure: Rebuild.
1201 * configure.ac: Don't check for unistd.h.
1202
0080a2f6
TT
12032013-11-18 Tom Tromey <tromey@redhat.com>
1204
1205 * configure: Rebuild.
1206 * configure.ac: Don't check for stdlib.h
1207 * defs.h: Include stdlib.h unconditionally.
1208
161d1bec
TT
12092013-11-18 Tom Tromey <tromey@redhat.com>
1210
1211 * config.in: Rebuild.
1212 * configure: Rebuild.
1213 * configure.ac: Don't check for stddef.h.
1214 * defs.h: Unconditionally include stddef.h. Remove duplicate
1215 inclusion.
1216
2978b111
TT
12172013-11-18 Tom Tromey <tromey@redhat.com>
1218
1219 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1220 * common/gdb_dirent.h: Remove.
1221 * common/filestuff.c: Use dirent.h.
1222 * common/linux-osdata.c: Use dirent.h.
1223 (NAMELEN): Define.
1224 * config.in: Rebuild.
1225 * configure: Rebuild.
1226 * configure.ac: Don't use AC_HEADER_DIRENT.
1227 * linux-fork.c: Use dirent.h
1228 * linux-nat.c: Use dirent.h.
1229 * nto-procfs.c: Use dirent.h.
1230 * procfs.c: Use dirent.h.
1231
e26b6bb0
TT
12322013-11-18 Tom Tromey <tromey@redhat.com>
1233
1234 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1235 * gnulib/aclocal.m4: Update.
1236 * gnulib/config.in: Update.
1237 * gnulib/configure: Update.
1238 * gnulib/import/Makefile.am: Update.
1239 * gnulib/import/Makefile.in: Update.
1240 * gnulib/import/dirent.in.h: New.
1241 * gnulib/import/m4/dirent_h.m4: New.
1242 * gnulib/import/m4/gnulib-cache.m4: Update.
1243 * gnulib/import/m4/gnulib-comp.m4: Update.
1244
a3d08894
TT
12452013-11-18 Tom Tromey <tromey@redhat.com>
1246
1247 * configure: Rebuild.
1248 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1249 strings.h.
1250
0e9f083f
TT
12512013-11-18 Tom Tromey <tromey@redhat.com>
1252
1253 * common/gdb_string.h: Remove.
1254 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1255 * ada-exp.y: Use string.h, not gdb_string.h.
1256 * ada-lang.c: Use string.h, not gdb_string.h.
1257 * ada-lex.l: Use string.h, not gdb_string.h.
1258 * ada-typeprint.c: Use string.h, not gdb_string.h.
1259 * ada-valprint.c: Use string.h, not gdb_string.h.
1260 * aix-thread.c: Use string.h, not gdb_string.h.
1261 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1262 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1263 * alpha-nat.c: Use string.h, not gdb_string.h.
1264 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1265 * alpha-tdep.c: Use string.h, not gdb_string.h.
1266 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1267 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1268 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1269 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1270 * amd64-nat.c: Use string.h, not gdb_string.h.
1271 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1272 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1273 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1274 * arch-utils.c: Use string.h, not gdb_string.h.
1275 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1276 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1277 * arm-tdep.c: Use string.h, not gdb_string.h.
1278 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1279 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1280 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1281 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1282 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1283 * avr-tdep.c: Use string.h, not gdb_string.h.
1284 * ax-gdb.c: Use string.h, not gdb_string.h.
1285 * ax-general.c: Use string.h, not gdb_string.h.
1286 * bcache.c: Use string.h, not gdb_string.h.
1287 * bfin-tdep.c: Use string.h, not gdb_string.h.
1288 * breakpoint.c: Use string.h, not gdb_string.h.
1289 * build-id.c: Use string.h, not gdb_string.h.
1290 * buildsym.c: Use string.h, not gdb_string.h.
1291 * c-exp.y: Use string.h, not gdb_string.h.
1292 * c-lang.c: Use string.h, not gdb_string.h.
1293 * c-typeprint.c: Use string.h, not gdb_string.h.
1294 * c-valprint.c: Use string.h, not gdb_string.h.
1295 * charset.c: Use string.h, not gdb_string.h.
1296 * cli-out.c: Use string.h, not gdb_string.h.
1297 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1298 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1299 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1300 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1301 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1302 * cli/cli-script.c: Use string.h, not gdb_string.h.
1303 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1304 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1305 * coffread.c: Use string.h, not gdb_string.h.
1306 * common/common-utils.c: Use string.h, not gdb_string.h.
1307 * common/filestuff.c: Use string.h, not gdb_string.h.
1308 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1309 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1310 * common/signals.c: Use string.h, not gdb_string.h.
1311 * common/vec.h: Use string.h, not gdb_string.h.
1312 * core-regset.c: Use string.h, not gdb_string.h.
1313 * corefile.c: Use string.h, not gdb_string.h.
1314 * corelow.c: Use string.h, not gdb_string.h.
1315 * cp-abi.c: Use string.h, not gdb_string.h.
1316 * cp-support.c: Use string.h, not gdb_string.h.
1317 * cp-valprint.c: Use string.h, not gdb_string.h.
1318 * cris-tdep.c: Use string.h, not gdb_string.h.
1319 * d-lang.c: Use string.h, not gdb_string.h.
1320 * dbxread.c: Use string.h, not gdb_string.h.
1321 * dcache.c: Use string.h, not gdb_string.h.
1322 * demangle.c: Use string.h, not gdb_string.h.
1323 * dicos-tdep.c: Use string.h, not gdb_string.h.
1324 * disasm.c: Use string.h, not gdb_string.h.
1325 * doublest.c: Use string.h, not gdb_string.h.
1326 * dsrec.c: Use string.h, not gdb_string.h.
1327 * dummy-frame.c: Use string.h, not gdb_string.h.
1328 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1329 * dwarf2loc.c: Use string.h, not gdb_string.h.
1330 * dwarf2read.c: Use string.h, not gdb_string.h.
1331 * elfread.c: Use string.h, not gdb_string.h.
1332 * environ.c: Use string.h, not gdb_string.h.
1333 * eval.c: Use string.h, not gdb_string.h.
1334 * event-loop.c: Use string.h, not gdb_string.h.
1335 * exceptions.c: Use string.h, not gdb_string.h.
1336 * exec.c: Use string.h, not gdb_string.h.
1337 * expprint.c: Use string.h, not gdb_string.h.
1338 * f-exp.y: Use string.h, not gdb_string.h.
1339 * f-lang.c: Use string.h, not gdb_string.h.
1340 * f-typeprint.c: Use string.h, not gdb_string.h.
1341 * f-valprint.c: Use string.h, not gdb_string.h.
1342 * fbsd-nat.c: Use string.h, not gdb_string.h.
1343 * findcmd.c: Use string.h, not gdb_string.h.
1344 * findvar.c: Use string.h, not gdb_string.h.
1345 * fork-child.c: Use string.h, not gdb_string.h.
1346 * frame.c: Use string.h, not gdb_string.h.
1347 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1348 * frv-tdep.c: Use string.h, not gdb_string.h.
1349 * gdb.c: Use string.h, not gdb_string.h.
1350 * gdb_bfd.c: Use string.h, not gdb_string.h.
1351 * gdbarch.c: Use string.h, not gdb_string.h.
1352 * gdbtypes.c: Use string.h, not gdb_string.h.
1353 * gnu-nat.c: Use string.h, not gdb_string.h.
1354 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1355 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1356 * go-exp.y: Use string.h, not gdb_string.h.
1357 * go-lang.c: Use string.h, not gdb_string.h.
1358 * go32-nat.c: Use string.h, not gdb_string.h.
1359 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1360 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1361 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1362 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1363 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1364 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1365 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1366 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1367 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1368 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1369 * i386-tdep.c: Use string.h, not gdb_string.h.
1370 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1371 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1372 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1373 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1374 * i387-tdep.c: Use string.h, not gdb_string.h.
1375 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1376 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1377 * inf-child.c: Use string.h, not gdb_string.h.
1378 * inf-ptrace.c: Use string.h, not gdb_string.h.
1379 * inf-ttrace.c: Use string.h, not gdb_string.h.
1380 * infcall.c: Use string.h, not gdb_string.h.
1381 * infcmd.c: Use string.h, not gdb_string.h.
1382 * inflow.c: Use string.h, not gdb_string.h.
1383 * infrun.c: Use string.h, not gdb_string.h.
1384 * interps.c: Use string.h, not gdb_string.h.
1385 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1386 * irix5-nat.c: Use string.h, not gdb_string.h.
1387 * jv-exp.y: Use string.h, not gdb_string.h.
1388 * jv-lang.c: Use string.h, not gdb_string.h.
1389 * jv-typeprint.c: Use string.h, not gdb_string.h.
1390 * jv-valprint.c: Use string.h, not gdb_string.h.
1391 * language.c: Use string.h, not gdb_string.h.
1392 * linux-fork.c: Use string.h, not gdb_string.h.
1393 * linux-nat.c: Use string.h, not gdb_string.h.
1394 * lm32-tdep.c: Use string.h, not gdb_string.h.
1395 * m2-exp.y: Use string.h, not gdb_string.h.
1396 * m2-typeprint.c: Use string.h, not gdb_string.h.
1397 * m32c-tdep.c: Use string.h, not gdb_string.h.
1398 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1399 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1400 * m32r-rom.c: Use string.h, not gdb_string.h.
1401 * m32r-tdep.c: Use string.h, not gdb_string.h.
1402 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1403 * m68k-tdep.c: Use string.h, not gdb_string.h.
1404 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1405 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1406 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1407 * m88k-tdep.c: Use string.h, not gdb_string.h.
1408 * macrocmd.c: Use string.h, not gdb_string.h.
1409 * main.c: Use string.h, not gdb_string.h.
1410 * mdebugread.c: Use string.h, not gdb_string.h.
1411 * mem-break.c: Use string.h, not gdb_string.h.
1412 * memattr.c: Use string.h, not gdb_string.h.
1413 * memory-map.c: Use string.h, not gdb_string.h.
1414 * mep-tdep.c: Use string.h, not gdb_string.h.
1415 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1416 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1417 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1418 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1419 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1420 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1421 * mi/mi-console.c: Use string.h, not gdb_string.h.
1422 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1423 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1424 * mi/mi-main.c: Use string.h, not gdb_string.h.
1425 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1426 * microblaze-rom.c: Use string.h, not gdb_string.h.
1427 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1428 * mingw-hdep.c: Use string.h, not gdb_string.h.
1429 * minidebug.c: Use string.h, not gdb_string.h.
1430 * minsyms.c: Use string.h, not gdb_string.h.
1431 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1432 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1433 * mips-tdep.c: Use string.h, not gdb_string.h.
1434 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1435 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1436 * mipsread.c: Use string.h, not gdb_string.h.
1437 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1438 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1439 * monitor.c: Use string.h, not gdb_string.h.
1440 * moxie-tdep.c: Use string.h, not gdb_string.h.
1441 * mt-tdep.c: Use string.h, not gdb_string.h.
1442 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1443 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1444 * nto-procfs.c: Use string.h, not gdb_string.h.
1445 * nto-tdep.c: Use string.h, not gdb_string.h.
1446 * objc-lang.c: Use string.h, not gdb_string.h.
1447 * objfiles.c: Use string.h, not gdb_string.h.
1448 * opencl-lang.c: Use string.h, not gdb_string.h.
1449 * osabi.c: Use string.h, not gdb_string.h.
1450 * osdata.c: Use string.h, not gdb_string.h.
1451 * p-exp.y: Use string.h, not gdb_string.h.
1452 * p-lang.c: Use string.h, not gdb_string.h.
1453 * p-typeprint.c: Use string.h, not gdb_string.h.
1454 * parse.c: Use string.h, not gdb_string.h.
1455 * posix-hdep.c: Use string.h, not gdb_string.h.
1456 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1457 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1458 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1459 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1460 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1461 * printcmd.c: Use string.h, not gdb_string.h.
1462 * procfs.c: Use string.h, not gdb_string.h.
1463 * prologue-value.c: Use string.h, not gdb_string.h.
1464 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1465 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1466 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1467 * regcache.c: Use string.h, not gdb_string.h.
1468 * registry.c: Use string.h, not gdb_string.h.
1469 * remote-fileio.c: Use string.h, not gdb_string.h.
1470 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1471 * remote-mips.c: Use string.h, not gdb_string.h.
1472 * remote-sim.c: Use string.h, not gdb_string.h.
1473 * remote.c: Use string.h, not gdb_string.h.
1474 * reverse.c: Use string.h, not gdb_string.h.
1475 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1476 * ser-base.c: Use string.h, not gdb_string.h.
1477 * ser-go32.c: Use string.h, not gdb_string.h.
1478 * ser-mingw.c: Use string.h, not gdb_string.h.
1479 * ser-pipe.c: Use string.h, not gdb_string.h.
1480 * ser-tcp.c: Use string.h, not gdb_string.h.
1481 * ser-unix.c: Use string.h, not gdb_string.h.
1482 * serial.c: Use string.h, not gdb_string.h.
1483 * sh-tdep.c: Use string.h, not gdb_string.h.
1484 * sh64-tdep.c: Use string.h, not gdb_string.h.
1485 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1486 * skip.c: Use string.h, not gdb_string.h.
1487 * sol-thread.c: Use string.h, not gdb_string.h.
1488 * solib-dsbt.c: Use string.h, not gdb_string.h.
1489 * solib-frv.c: Use string.h, not gdb_string.h.
1490 * solib-osf.c: Use string.h, not gdb_string.h.
1491 * solib-spu.c: Use string.h, not gdb_string.h.
1492 * solib-target.c: Use string.h, not gdb_string.h.
1493 * solib.c: Use string.h, not gdb_string.h.
1494 * somread.c: Use string.h, not gdb_string.h.
1495 * source.c: Use string.h, not gdb_string.h.
1496 * sparc-nat.c: Use string.h, not gdb_string.h.
1497 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1498 * sparc-tdep.c: Use string.h, not gdb_string.h.
1499 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1500 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1501 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1502 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1503 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1504 * spu-multiarch.c: Use string.h, not gdb_string.h.
1505 * spu-tdep.c: Use string.h, not gdb_string.h.
1506 * stabsread.c: Use string.h, not gdb_string.h.
1507 * stack.c: Use string.h, not gdb_string.h.
1508 * std-regs.c: Use string.h, not gdb_string.h.
1509 * symfile.c: Use string.h, not gdb_string.h.
1510 * symmisc.c: Use string.h, not gdb_string.h.
1511 * symtab.c: Use string.h, not gdb_string.h.
1512 * target.c: Use string.h, not gdb_string.h.
1513 * thread.c: Use string.h, not gdb_string.h.
1514 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1515 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1516 * top.c: Use string.h, not gdb_string.h.
1517 * tracepoint.c: Use string.h, not gdb_string.h.
1518 * tui/tui-command.c: Use string.h, not gdb_string.h.
1519 * tui/tui-data.c: Use string.h, not gdb_string.h.
1520 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1521 * tui/tui-file.c: Use string.h, not gdb_string.h.
1522 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1523 * tui/tui-out.c: Use string.h, not gdb_string.h.
1524 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1525 * tui/tui-source.c: Use string.h, not gdb_string.h.
1526 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1527 * tui/tui-win.c: Use string.h, not gdb_string.h.
1528 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1529 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1530 * typeprint.c: Use string.h, not gdb_string.h.
1531 * ui-file.c: Use string.h, not gdb_string.h.
1532 * ui-out.c: Use string.h, not gdb_string.h.
1533 * user-regs.c: Use string.h, not gdb_string.h.
1534 * utils.c: Use string.h, not gdb_string.h.
1535 * v850-tdep.c: Use string.h, not gdb_string.h.
1536 * valarith.c: Use string.h, not gdb_string.h.
1537 * valops.c: Use string.h, not gdb_string.h.
1538 * valprint.c: Use string.h, not gdb_string.h.
1539 * value.c: Use string.h, not gdb_string.h.
1540 * varobj.c: Use string.h, not gdb_string.h.
1541 * vax-tdep.c: Use string.h, not gdb_string.h.
1542 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1543 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1544 * windows-nat.c: Use string.h, not gdb_string.h.
1545 * xcoffread.c: Use string.h, not gdb_string.h.
1546 * xml-support.c: Use string.h, not gdb_string.h.
1547 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1548 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1549
63ce7108
TT
15502013-11-18 Tom Tromey <tromey@redhat.com>
1551
1552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1553 and strstr.
1554 * gnulib/aclocal.m4: Update.
1555 * gnulib/config.in: Update.
1556 * gnulib/configure: Update.
1557 * gnulib/import/Makefile.am: Update.
1558 * gnulib/import/Makefile.in: Update.
1559 * gnulib/import/errno.in.h: New.
1560 * gnulib/import/intprops.h: New.
1561 * gnulib/import/m4/errno_h.m4: New.
1562 * gnulib/import/m4/gnulib-cache.m4: Update.
1563 * gnulib/import/m4/gnulib-comp.m4: Update.
1564 * gnulib/import/m4/strerror.m4: New.
1565 * gnulib/import/m4/strstr.m4: New.
1566 * gnulib/import/m4/sys_socket_h.m4: New.
1567 * gnulib/import/strerror-override.c: New.
1568 * gnulib/import/strerror-override.h: New.
1569 * gnulib/import/strerror.c: New.
1570 * gnulib/import/strstr.c: New.
1571
a7c11ee1
TT
15722013-11-18 Tom Tromey <tromey@redhat.com>
1573
1574 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1575 multiple lines.
1576
d0b5971a
JM
15772013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1578
1579 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1580 * sparc-tdep.h: And its prototype.
1581
1582 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1583 function.
1584 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1585
4b4589ad
PA
15862013-11-18 Pedro Alves <palves@redhat.com>
1587
1588 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1589 use unpack_pointer.
1590
422ad5c2
JB
15912013-11-18 Joel Brobecker <brobecker@adacore.com>
1592
1593 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1594 to -list-features output.
1595
b1370418
JB
15962013-11-17 Joel Brobecker <brobecker@adacore.com>
1597
1598 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1599 <read_addr_from_reg>: Renames "read_reg".
1600 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1601 Adjust comment.
1602 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1603 Use read_addr_from_reg in place of read_reg.
1604 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1605 in place of read_reg.
1606 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1607 dwarf_expr_read_reg.
1608 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1609 with dwarf_expr_read_addr_from_reg.
1610 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1611 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1612 needs_frame_read_addr_from_reg.
1613
6ea71545
JK
16142013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1615
1616 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1617
19a1b230
AA
16182013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1619
1620 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1621 NULL.
1622
805e1f19
TT
16232013-11-15 Tom Tromey <tromey@redhat.com>
1624
1625 PR c++/16117:
1626 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1627 (classify_name): Likewise. Prefer a field of "this" over a
1628 filename.
1629 (classify_inner_name, yylex): Update.
1630
0acf8b65
JB
16312013-11-15 Joel Brobecker <brobecker@adacore.com>
1632
1633 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1634 Extend the documentation a bit.
1635 <get_reg_value>: New field.
1636 * dwarf2loc.c (dwarf_expr_get_reg_value)
1637 (needs_frame_get_reg_value): New functions.
1638 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1639 callback.
1640 * dwarf2-frame.c (get_reg_value): New function.
1641 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1642 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1643 Use new callback to compute result_val.
1644
ef1bc9e7
AM
16452013-11-15 Alan Modra <amodra@gmail.com>
1646
1647 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1648 (ppc64_desc_entry_point): ..this. Update comments here and at
1649 call points.
1650 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1651 ppc64_standard_linkage3): Update comments.
1652 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1653 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1654 patterns.
1655 (ppc64_standard_linkage4_target): New function.
1656 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1657 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1658 nop match. Fix comment wrap.
1659
36fa8042
PA
16602013-11-14 Pedro Alves <palves@redhat.com>
1661
1662 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1663 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1664
4f5d7f63
PA
16652013-11-14 Pedro Alves <palves@redhat.com>
1666
1667 * infrun.c (struct execution_control_state)
1668 <stepped_after_stopped_by_watchpoint>: New field.
1669 (get_inferior_stop_soon): New function.
1670 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1671 moved to struct execution_control_state -- adjust. Use
1672 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1673 new function.
1674 (handle_signal_stop): New function, factored out from
1675 handle_inferior_event.
1676
47591c29
PA
16772013-11-14 Pedro Alves <palves@redhat.com>
1678
1679 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1680 return a boolean.
1681 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1682 boolean.
1683 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1684 Adjust to return a boolean.
1685 * breakpoint.h (enum bpstat_signal_value): Delete.
1686 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1687 (bpstat_explains_signal): Likewise.
1688 * infrun.c (handle_inferior_event) <random signal checks>:
1689 bpstat_explains_signal now returns a boolean - adjust. No longer
1690 consider hiding signals.
1691
bac7d97b
PA
16922013-11-14 Pedro Alves <palves@redhat.com>
1693
1694 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1695 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1696 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1697 BPSTAT_SIGNAL_HIDE.
1698 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1699 instead of BPSTAT_SIGNAL_HIDE.
1700 * infrun.c (handle_inferior_event): Rework random signal checks.
1701
ce12b012
PA
17022013-11-14 Pedro Alves <palves@redhat.com>
1703
1704 * infrun.c (struct execution_control_state): Remove
1705 'random_signal' field.
1706 (handle_syscall_event): Use bpstat_causes_stop instead of
1707 bpstat_explains_signal. Don't set ecs->random_signal.
1708 (handle_inferior_event): New 'random_signal' local.
1709 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1710 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1711 bpstat_explains_signal. Don't set ecs->random_signal.
1712 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1713 ecs->random_signal.
1714
05ba8510
PA
17152013-11-14 Pedro Alves <palves@redhat.com>
1716
1717 * infrun.c (handle_inferior_event): Move comment from the
1718 function's body to the function's description, adjusted.
1719
5c09a2c5
PA
17202013-11-14 Pedro Alves <palves@redhat.com>
1721
1722 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1723 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1724 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1725 case.
1726
91822956
TT
17272013-11-14 Tom Tromey <tromey@redhat.com>
1728
1729 * python/py-linetable.c (ltpy_has_line)
1730 (ltpy_get_all_source_lines): Fix loop termination condition.
1731
403cb6b1
JB
17322013-11-14 Joel Brobecker <brobecker@adacore.com>
1733
1734 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1735 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1736 PARSE->LANGUAGE during command execution, if set.
1737 * mi/mi-parse.c: Add "language.h" #include.
1738 (mi_parse): Add parsing of "--language" command option.
1739
1740 * NEWS: Add entry mentioning the new "--language" command option.
1741
b5be8ce0
JB
17422013-11-14 Pedro Alves <palves@redhat.com>
1743 Joel Brobecker <brobecker@adacore.com>
1744
1745 * cli/cli-utils.h (extract_arg_const): Add declaration.
1746 * cli/cli-utils.c (extract_arg_const): New function.
1747 (extract_arg): Reimplement using extract_arg_const.
1748
671afef6
JB
17492013-11-14 Joel Brobecker <brobecker@adacore.com>
1750
1751 * language.h: Add "symtab.h" #include.
1752
6c1b0f7b
DE
17532013-11-13 Doug Evans <xdje42@gmail.com>
1754
1755 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1756 specific breakpoints, don't evaluate breakpoint condition if
1757 different thread.
1758
74921315
KS
17592013-11-13 Keith Seitz <keiths@redhat.com>
1760
248ace2e 1761 PR c++/7935
74921315
KS
1762 PR c++/10541
1763 * cp-support.c (insepct_type): Add support for substituting
1764 namespace aliases, too.
1765 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1766 for DW_TAG_imported_declaration.
1767 (add_partial_symbol): Likewise.
1768 (process_die): Handle namespace aliases with
1769 read_namespace_alias.
1770 (die_needs_namespace): Add DW_TAG_imported_declaration.
1771 (read_namespace_alias): New function.
1772 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1773 (new_symbol_full): Handle DW_TAG_imported_declaration.
1774
793156e6
KS
17752013-11-13 Keith Seitz <keiths@redhat.com>
1776
1777 * p-exp.y (uptok): Make first parameter const.
1778 (yylex): Make `tokstart' and `tokptr' const.
1779 Don't copy the lexer input to a temporary buffer.
1780 Make `p' const.
1781 Remove const workaround for parse_escape.
1782 Create a temporary buffer for a convenience variable instead
1783 of doing in-place modification of the input.
1784 If a match is found with a different case from the input,
1785 do not change the input at all.
1786 Use `tmp' to construct the resultant stoken instead of
1787 `tokstart'.
1788
c42bd95a
DE
17892013-11-13 Doug Evans <xdje42@gmail.com>
1790
1791 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1792
93973826
JB
17932013-11-13 Joel Brobecker <brobecker@adacore.com>
1794
1795 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1796 entry with "ada-exceptions".
1797
846060df
JB
17982013-11-13 Joel Brobecker <brobecker@adacore.com>
1799
1800 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1801 after re-initialization of OBJFILE's obstack.
1802
5efd1b2b 18032013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1804
1805 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1806 bs->stop != 0 on entry. Update function comment. Simplify early
1807 exit for frame mismatch. Reindent rest of function.
1808
ee7615e1
AA
18092013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1810
1811 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1812 NULL.
1813
8943b874
DE
18142013-11-12 Doug Evans <dje@google.com>
1815
1816 Work around gold/15646.
1817 * dwarf2read.c (read_index_from_section): Update comment.
1818 (struct dw2_symtab_iterator): New member global_seen.
1819 (dw2_symtab_iter_init): Initialize it.
1820 (dw2_symtab_iter_next): Skip duplicate global symbols.
1821 (dw2_expand_symtabs_matching): Ditto.
1822
a8a9844d
JB
18232013-11-12 Joel Brobecker <brobecker@adacore.com>
1824
1825 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1826 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1827 command.
1828 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1829 (mi_cmd_info_ada_exceptions): New function.
1830 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1831
778865d3
JB
18322013-11-12 Joel Brobecker <brobecker@adacore.com>
1833
1834 * ada-lang.h: #include "vec.h".
1835 (struct ada_exc_info): New.
1836 (ada_exc_info): New typedef.
1837 (DEF_VEC_O(ada_exc_info)): New vector.
1838 (ada_exceptions_list): Add declaration.
1839 * ada-lang.c (ada_is_exception_sym)
1840 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1841 (sort_remove_dups_ada_exceptions_list)
1842 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1843 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1844 (ada_exceptions_list_1, ada_exceptions_list)
1845 (info_exceptions_command): New function.
1846 (_initialize_ada_language): Add "info exception" command.
1847
bc79de95
PM
18482013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1849
1850 PR python/15629
1851 * NEWS: Add linetable feature.
1852 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1853 * python/py-linetable.c: New file.
1854 * python/py-symtab.c (stpy_get_linetable): New function.
1855 * python/python-internal.h (symtab_to_linetable_object): Declare.
1856 (gdbpy_initialize_linetable): Ditto.
1857 * python/python.c (_initialize_python): Call
1858 gdbpy_initialize_linetable.
1859
2df4d1d5
JB
18602013-11-11 Joel Brobecker <brobecker@adacore.com>
1861
1862 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1863 the documentation of fields "except_string" and "condition".
1864 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1865 CONDITION on the heap before passing it to
1866 create_ada_exception_catchpoint.
1867 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1868 CONDITION.
1869
99c1d451
TT
18702013-11-11 Tom Tromey <tromey@redhat.com>
1871
1872 * config.in, configure: Rebuild.
1873 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1874
8ca5801b
JB
18752013-11-11 Joel Brobecker <brobecker@adacore.com>
1876
1877 * remote-sim.c (gdbsim_detach): Break declaration into
1878 shorter lines. No code change.
1879
7a06d430
EBM
18802013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1881
1882 * remote-sim.c (gdbsim_detach): Fix prototype.
1883
73be47f5
DE
18842013-11-08 Doug Evans <dje@google.com>
1885
1886 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1887 (create_debug_types_hash_table): Only print debugging messages for
1888 each TU if dwarf2-read >= 2.
1889 (process_queue): Ditto.
1890 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1891 Update doc string.
1892
a18d8f10
TT
18932013-11-08 Tom Tromey <tromey@redhat.com>
1894
1895 * configure: Rebuild.
1896 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1897
9467110b
TT
18982013-11-08 Tom Tromey <tromey@redhat.com>
1899
1900 * configure, config.in: Rebuild.
1901 * configure.ac: Remove unused configury.
1902
69706679
TT
19032013-11-08 Tom Tromey <tromey@redhat.com>
1904
1905 * m32c-tdep.c: Use gdb_string.h.
1906
9b4bea72
TT
19072013-11-08 Tom Tromey <tromey@redhat.com>
1908
1909 * configure, config.in: Rebuild.
1910 * configure.ac: Remove all link.h-related checks.
1911
3266f10b
TT
19122013-11-08 Tom Tromey <tromey@redhat.com>
1913
1914 * acinclude.m4: Include common.m4.
1915 * common/common.m4: New file.
1916 * configure, config.in: Rebuild.
1917 * configure.ac: Use GDB_AC_COMMON.
1918
db0fec5c
DE
19192013-11-08 Doug Evans <dje@google.com>
1920
1921 * NEWS: Mention that "set debug symtab-create" now accepts a
1922 verbosity level.
1923 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1924 to set the symtab's primary flag.
1925 * jit.c (finalize_symtab): Ditto.
1926 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1927 * symfile.c (allocate_symtab): Only print debugging messages for
1928 symtab_create_debug levels 2 and higher.
1929 * symtab.c (symtab_create_debug): Change type to unsigned int.
1930 (set_symtab_primary): New function.
1931 (_initialize_symtab): Change "set debug symtab-create" to a
1932 zuinteger option.
1933 * symtab.h (set_symtab_primary): Declare.
1934 (symtab_create_debug): Update decl.
1935
52554a0e
TT
19362013-11-08 Tom Tromey <tromey@redhat.com>
1937
1938 * aix-thread.c (aix_thread_detach): Update.
1939 * corelow.c (core_detach): Update.
1940 * darwin-nat.c (darwin_detach): Update.
1941 * dec-thread.c (dec_thread_detach): Update.
1942 * gnu-nat.c (gnu_detach): Update.
1943 * go32-nat.c (go32_detach): Update.
1944 * inf-ptrace.c (inf_ptrace_detach): Update.
1945 * inf-ttrace.c (inf_ttrace_detach): Update.
1946 * linux-fork.c (linux_fork_detach): Update.
1947 * linux-fork.h (linux_fork_detach): Update.
1948 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1949 local for const-correctness.
1950 * linux-thread-db.c (thread_db_detach): Update.
1951 * monitor.c (monitor_detach): Update.
1952 * nto-procfs.c (procfs_detach): Update.
1953 * procfs.c (procfs_detach): Update.
1954 * record.c (record_detach): Update.
1955 * record.h (record_detach): Update.
1956 * remote-m32r-sdi.c (m32r_detach): Update.
1957 * remote-mips.c (mips_detach): Update.
1958 * remote-sim.c (gdbsim_detach): Update.
1959 * remote.c (remote_detach_1, remote_detach)
1960 (extended_remote_detach): Update.
1961 * sol-thread.c (sol_thread_detach): Update.
1962 * target.c (target_detach): Make "args" const.
1963 (init_dummy_target): Update.
1964 * target.h (struct target_ops) <to_detach>: Make argument const.
1965 (target_detach): Likewise.
1966 * windows-nat.c (windows_detach): Update.
1967
204b5331
DE
19682013-11-07 Doug Evans <dje@google.com>
1969
1970 PR 11786
1971 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1972 and align fields for PT_GNU_RELRO segments.
1973
92e32e33
PM
19742013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1975
ef1bc9e7
AM
1976 PR python/15747
1977 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1978
f76c27b5
PM
19792013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1980
1981 * NEWS: Document Python temporary breakpoint support.
1982 * python/py-breakpoint.c (bppy_get_temporary): New function.
1983 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1984 to temporary if True.
1985
d52cd232
JM
19862013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1987
1988 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1989 removed to allow analyzing unconditional branch instructions
1990 with PC-relative offsets of zero.
1991
fa4d0c40
YQ
19922013-11-07 Yao Qi <yao@codesourcery.com>
1993
1994 * mi/mi-cmd-var.c: Include "language.h".
1995 (mi_cmd_var_info_expression): Get language name from
1996 language_defn.
1997 * varobj.c (varobj_language_string): Remove.
1998 (variable_language): Remove declaration.
1999 (languages): Remove.
2000 (varobj_get_language): Change the type of return value.
2001 (variable_language): Remove.
2002 * varobj.h (enum varobj_languages): Remove.
2003 (varobj_language_string): Remove declaration.
2004 (varobj_get_language): Update declaration.
2005
6abde28f
YQ
20062013-11-07 Yao Qi <yao@codesourcery.com>
2007
2008 * language.h (struct language_defn) <la_natural_name>: New
2009 field.
2010 * ada-lang.c (ada_language_defn): Initialize field
2011 'la_natural_name'.
2012 * c-lang.c (c_language_defn): Likewise.
2013 (cplus_language_defn, asm_language_defn): Likewise.
2014 * d-lang.c (d_language_defn): Likewise.
2015 * f-lang.c (f_language_defn): Likewise.
2016 * go-lang.c (go_language_defn): Likewise.
2017 * jv-lang.c (java_language_defn): Likewise.
2018 * language.c (unknown_language_defn ): Likewise.
2019 (auto_language_defn): Likewise.
2020 * m2-lang.c (m2_language_defn): Likewise.
2021 * objc-lang.c (objc_language_defn): Likewise.
2022 * opencl-lang.c (opencl_language_defn): Likewise.
2023 * p-lang.c (pascal_language_defn): Likewise.
2024
27cd387b
YQ
20252013-11-07 Yao Qi <yao@codesourcery.com>
2026
2027 * language.c (language_str): Return const char *.
2028 (add_language): Add const to 'language_names'
2029 * language.h (struct language_defn) <la_name>: Add const.
2030 (language_str: Update declaration.
2031
6682d959
AA
20322013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033
2034 * s390-linux-nat.c (s390_read_description): Consider the TE field
2035 in the HWCAP for determining 'have_regset_tdb'.
2036
b9502d3f
WN
20372013-11-06 Will Newton <will.newton@linaro.org>
2038
2039 PR gdb/12866
2040 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2041 values. (read_partial_die): Likewise.
2042
840da61a
MB
20432013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2044
2045 PR cli/16122
2046 * top.c (command_line_input): Unify interactivity tests to use
2047 input_from_terminal_p.
2048 * event-top.c (command_line_handler): Likewise.
2049
7636ccf9
YQ
20502013-11-06 Yao Qi <yao@codesourcery.com>
2051
2052 * Makefile.in (check-perf): New target.
2053
12b27276
WN
20542013-11-05 Will Newton <will.newton@linaro.org>
2055
2056 PR gdb/7670
2057 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2058 (arm_print_float_info): Likewise.
2059
67c059c2
AB
20602013-11-04 Anton Blanchard <anton@samba.org>
2061
2062 * target.c (memory_xfer_partial): Cap write to 4KB.
2063
0569175e
TSD
20642013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2065
2066 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2067 probe scan even when the arch provides no get_longjmp_target.
2068
b18e90f5
PA
20692013-10-31 Pedro Alves <palves@redhat.com>
2070
2071 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2072 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2073 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2074 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2075 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2076 <bpstat handling>: If the bpstat chain wants the signal to be
2077 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2078 GDB_SIGNAL_TRAP.
2079
638aa5a1
AB
20802013-10-31 Andrew Burgess <aburgess@broadcom.com>
2081
2082 * breakpoint.c (update_watchpoint): Update error message and add
2083 an additional error message.
2084
0e5fae36
UW
20852013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2086
2087 * s390-tdep.h: Rename to...
2088 * s390-linux-tdep.h: ...here.
2089 * s390-tdep.c: Rename to...
2090 * s390-linux-tdep.c: ...here. Adjust #include.
2091 * s390-nat.c: Rename to...
2092 * s390-linux-nat.c: ...here. Adjust #include.
2093 * config/s390/s390.mh: Rename to...
2094 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2095 s390-linux-nat.o.
2096 * configure.host: Reflect host rename "s390" -> "linux".
2097 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2098 * Makefile.in (ALL_TARGET_OBS): Likewise.
2099 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2100 s390-linux-tdep.h.
2101 (ALLDEPFILES): Reflect rename of .c files.
2102
34201ae3
UW
21032013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104
2105 * s390-nat.c: Whitespace cleanup.
2106 * s390-tdep.c: Likewise.
2107 * s390-tdep.h: Remove empty line at end of file.
2108
e17aaa33
MR
21092013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2110
2111 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2112 siginfo_size.
2113
aee17e42
TT
21142013-10-29 Tom Tromey <tromey@redhat.com>
2115
2116 * utils.c (reg): Move undefinition...
2117 * gdb_curses.h: ... here. Update comment to mention AIX.
2118
9ac69859
NB
21192013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2120
2121 * exec.h (add_target_sections_of_objfile): New declaration.
2122 * exec.c (add_target_sections_of_objfile): New function.
2123 * symfile.c (add_symbol_file_command): Update current target sections.
2124 (remove_symbol_file_command): New command.
2125 (symfile_free_objfile): New function.
2126 (_initialize_symfile): Register observer for free_objfile events.
2127 * NEWS: Add description of the remove-symbol-file command.
2128 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2129 * objfiles.c (free_objfile): Notify free_objfile.
2130 (is_addr_in_objfile): New function.
2131 * objfiles.h (is_addr_in_objfile): New declaration.
2132 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2133 events instead of solib_unloaded events.
2134 (_initialize_printcmd): Register observer for free_objfile instead
2135 of solib_unloaded notifications.
2136 * solib.c (remove_user_added_objfile): New function.
2137 (_initialize_symfile): Add remove-symbol-file.
2138
f69d9aef
AB
21392013-10-29 Andrew Burgess <aburgess@broadcom.com>
2140
2141 * infcmd.c (default_print_one_register_info): Use val_print to
2142 print all values even optimized out or unavailable ones. Don't
2143 try to print a raw form of optimized out or unavailable values.
2144
487ad57c
YQ
21452013-10-29 Yao Qi <yao@codesourcery.com>
2146
2147 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2148 parameter 'arg' instead of from program_space_data.
2149 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2150 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2151 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2152 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2153 * inflow.c (inflow_inferior_data_cleanup): Get data from
2154 parameter 'arg' instead of inferior_data.
2155 * registry.h: Add comments.
2156
3c4797ba
PA
21572013-10-28 Pedro Alves <palves@redhat.com>
2158
2159 * breakpoint.c (watchpoints_triggered)
2160 <!target_stopped_data_address>: Hardcode return 1.
2161
cdaa5b73
PA
21622013-10-28 Pedro Alves <palves@redhat.com>
2163
2164 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2165 level and reindent.
2166
94c57d6a
PA
21672013-10-28 Pedro Alves <palves@redhat.com>
2168
2169 * infrun.c (process_event_stop_test): New function, factored out
2170 from handle_inferior_event.
2171 (handle_inferior_event): 'process_event_stop_test' is now a
2172 function instead of a goto label -- adjust.
2173
fcf3daef
PA
21742013-10-28 Pedro Alves <palves@redhat.com>
2175
2176 * infrun.c (handle_inferior_event): Move process_event_stop_test
2177 goto label to the else branch of the ecs->random_signal check,
2178 along with FRAME and GDBARCH re-fetching.
2179
c447ac0b
PA
21802013-10-28 Pedro Alves <palves@redhat.com>
2181
2182 * infrun.c (switch_back_to_stepped_thread): New function, factored
2183 out from handle_inferior_event.
2184 (handle_inferior_event): Adjust to call
2185 switch_back_to_stepped_thread. Call it also at the tail of the
2186 random signal handling, and return, instead of also handling
2187 random signals just before the stepping tests.
2188
f05e4c11
PA
21892013-10-28 Pedro Alves <palves@redhat.com>
2190
2191 * infrun.c (clear_stop_func): Delete.
2192 (handle_inferior_event): Don't call clear_stop_func and don't
2193 clear 'ecs->random_signal'.
2194
ca20d462
YQ
21952013-10-27 Yao Qi <yao@codesourcery.com>
2196
2197 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2198 (varobj_create, varobj_get_path_expr): Update.
2199 (varobj_value_has_mutated, varobj_update): Likewise.
2200 (create_child_with_value, new_root_variable): Likewise.
2201 (number_of_children, name_of_variable): Likewise.
2202 (value_of_child, my_value_of_variable): Likewise.
2203 (varobj_value_is_changeable_p): Likewise.
2204
a53b64ea
YQ
22052013-10-25 Yao Qi <yao@codesourcery.com>
2206
2207 * language.h (struct lang_varobj_ops): Declare.
2208 (struct language_defn) <la_varobj_ops>: New field.
2209 * ada-lang.c: Include "varobj.h"
2210 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2211 ada_varobj_ops.
2212 * c-lang.c: Include "varobj.h"
2213 (c_language_defn): Initialize field 'la_varobj_ops' with
2214 c_varobj_ops.
2215 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2216 cplus_varobj_ops.
2217 (asm_language_defn): Initialize field 'la_varobj_ops' with
2218 default_varobj_ops.
2219 (minimal_language_defn): Likewise.
2220 * d-lang.c (d_language_defn): Likewise.
2221 * f-lang.c (f_language_defn): Likewise.
2222 * go-lang.c (go_language_defn): Likewise.
2223 * m2-lang.c (m2_language_defn): Likewise.
2224 * objc-lang.c (objc_language_defn): Likewise.
2225 * opencl-lang.c (opencl_language_defn): Likewise.
2226 * p-lang.c (pascal_language_defn): Likewise.
2227 * language.c (unknown_language_defn): Likewise.
2228 (auto_language_defn): Likewise.
2229 (local_language_defn): Likewise.
2230 * jv-lang.c (java_language_defn): Initialize field
2231 'la_varobj_ops' with java_varobj_ops.
2232 * varobj.c (varobj_create): Update.
2233 * varobj.h (default_varobj_ops): Define macro.
2234
686d4def
PA
22352013-10-25 Pedro Alves <palves@redhat.com>
2236
2237 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2238 static field value.
2239 (cp_print_static_field): If the value is entirely optimized out,
2240 print <optimized out> here.
2241 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2242 static field value.
2243 * p-valprint.c (pascal_object_print_static_field): If the value is
2244 entirely optimized out, print <optimized out> here.
2245 * valops.c (do_search_struct_field)
2246 (value_struct_elt_for_reference): No longer handle a NULL static
2247 field value.
2248 * value.c (value_static_field): Return an optimized out value
2249 instead of NULL.
2250
6c177e28
YQ
22512013-10-25 Yao Qi <yao@codesourcery.com>
2252
2253 * remote.c (remote_traceframe_info): Return early if
2254 traceframe is not selected.
2255
98322bfa
YQ
22562013-10-25 Yao Qi <yao@codesourcery.com>
2257
2258 * tracepoint.c (traceframe_fun): Remove.
2259 (traceframe_sal): Remove.
2260 (set_traceframe_context): Add local variables.
2261
6ba1f115
JB
22622013-10-25 Joel Brobecker <brobecker@adacore.com>
2263
2264 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2265 and parameter name.
2266
bbe769cc
MR
22672013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2268
2269 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2270 failure from register information collection.
2271
72ee4495 22722013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
2273
2274 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2275 member.
2276 (linux_corefile_thread_callback): Update accordingly.
2277 (linux_make_corefile_notes): Likewise.
2278
98882a26
PA
22792013-10-24 Pedro Alves <palves@redhat.com>
2280
2281 * NEWS (New options): Mention set/show startup-with-shell.
2282 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2283 instead of 3.
2284 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2285 startup-with-shell'.
2286 (show_startup_with_shell): New function.
2287 (_initialize_fork_child): Register the set/show startup-with-shell
2288 commands.
2289 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2290 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2291 * procfs.c (procfs_init_inferior): Remove comment.
2292 * infcmd.c (startup_with_shell): New global.
2293 * inferior.h (startup_with_shell): Declare global.
2294 (STARTUP_WITH_SHELL): Delete.
2295 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2296
c9737c08
PA
22972013-10-23 Pedro Alves <palves@redhat.com>
2298
2299 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2300 * common/signals.c: Include "gdb_assert.h".
2301 (signals): New field 'symbol'.
2302 (SET): Use the 'symbol' parameter.
2303 (gdb_signal_to_symbol_string): New function.
2304 * infrun.c (handle_inferior_event) <random signal>: In debug
2305 output, print the random signal enum as string in addition to its
2306 number.
2307 * target/waitstatus.c (target_waitstatus_to_string): Print the
2308 signal's enum value as string instead of the (POSIX) signal name.
2309
f60db4f0
GB
23102013-10-23 Gary Benson <gbenson@redhat.com>
2311
2312 PR 16013
2313 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2314 from 32 to 18. Adjusted fscanf format string accordingly.
2315 (Avoids leaving cmd unterminated.)
2316 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2317 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2318 that local_address and remote_address will not overflow.
2319 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2320 leaving dependencies unterminated. Parse size as "%u" to match
2321 definition.
2322
6d3e7a94
PA
23232013-10-22 Pedro Alves <palves@redhat.com>
2324
2325 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2326 set ecs->random signal.
2327
42ec045f
PA
23282013-10-22 Pedro Alves <palves@redhat.com>
2329
2330 * infrun.c (keep_going): Update comments.
2331
23322013-10-22 Pedro Alves <palves@redhat.com>
2333
2334 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2335 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2336
23372013-10-22 Pedro Alves <palves@redhat.com>
2338
2339 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2340 GDB_EXC_BAD_ACCESS.
2341 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2342 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2343 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2344 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2345 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2346 (GDB_SIGNAL_LAST): Change description string.
2347 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2348 Adjust to signal renaming.
2349 * darwin-nat.c (darwin_decode_message): Likewise.
2350
c8fde1b1
JM
23512013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2352
2353 * MAINTAINERS (Write After Approval): Add myself to the list.
2354
e8369a73
AB
23552013-10-18 Andrew Burgess <aburgess@broadcom.com>
2356
2357 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2358 forced off, downgrade them to software watchpoints if possible,
2359 and error out if not possible.
2360 (watch_command_1): Move watchpoint type selection closer to
2361 watchpoint creation, and extend the comments.
2362
776f04fa
PA
23632013-10-18 Pedro Alves <palves@redhat.com>
2364
2365 PR gdb/16062
2366 * infrun.c (handle_inferior_event): Keep going if we got a random
2367 signal we should not stop for, instead of falling through to the
2368 step tests.
2369
0c6faab5
YQ
23702013-10-18 Yao Qi <yao@codesourcery.com>
2371
2372 * c-varobj.c (cplus_number_of_children): Fix indentation.
2373
50b34a18
TT
23742013-10-17 Tom Tromey <tromey@redhat.com>
2375
2376 PR gdb/15995:
2377 * printcmd.c (printcmd): Call gdb_flush.
2378
5c4c8a59
TT
23792013-10-17 Tom Tromey <tromey@redhat.com>
2380
2381 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2382 (elf_locate_sections): Update.
2383
c4124bf1
YQ
23842013-10-17 Yao Qi <yao@codesourcery.com>
2385
2386 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2387 * ada-varobj.c: Remove the include of ada-varobj.h.
2388 (ada_varobj_get_number_of_children): Declare.
2389 (ada_varobj_get_name_of_child): Make it static.
2390 (ada_varobj_get_path_expr_of_child): Likewise.
2391 (ada_varobj_get_value_of_child): Likewise.
2392 (ada_varobj_get_type_of_child): Likewise.
2393 (ada_varobj_get_value_of_array_variable): Likewise.
2394 * ada-varobj.h: Remove.
2395
99ad9427
YQ
23962013-10-17 Yao Qi <yao@codesourcery.com>
2397
2398 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2399 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2400 * ada-varobj.c: Include "varobj.h".
2401 (ada_number_of_children): New. Moved from varobj.c.
2402 (ada_name_of_variable, ada_name_of_child): Likewise.
2403 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2404 (ada_type_of_child, ada_value_of_variable): Likewise.
2405 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2406 (ada_varobj_ops): New.
2407 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2408 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2409 * gdbtypes.h (get_target_type): Declare.
2410 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2411 "ada-lang.h".
2412 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2413 (ANONYMOUS_UNION_NAME): Likewise.
2414 (get_type, get_value_type, get_target_type): Remove declarations.
2415 (value_get_print_value, varobj_value_get_print_value): Likewise.
2416 (c_number_of_children, c_name_of_variable): Likewise.
2417 (c_name_of_child, c_path_expr_of_child): Likewise.
2418 (c_value_of_child, c_type_of_child): Likewise.
2419 (c_value_of_variable, cplus_number_of_children): Likewise.
2420 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2421 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2422 (cplus_value_of_child, cplus_type_of_child): Likewise.
2423 (cplus_value_of_variable, java_number_of_children): Likewise.
2424 (java_name_of_variable, java_name_of_child): Likewise.
2425 (java_path_expr_of_child, java_value_of_child): Likewise.
2426 (java_type_of_child, java_value_of_variable): Likewise.
2427 (ada_number_of_children, ada_name_of_variable): Likewise.
2428 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2429 (ada_value_of_child, ada_type_of_child): Likewise.
2430 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2431 (ada_value_has_mutated): Likewise.
2432 (struct language_specific): Move it to varobj.h.
2433 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2434 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2435 Callers update.
2436 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2437 Make it extern.
2438 (is_anonymous_child): Move it to c-varobj.c and rename to
2439 varobj_is_anonymous_child. Caller update.
2440 (get_type): Move it to c-varobj.c.
2441 (get_value_type): Rename it varobj_get_value_type. Make it
2442 extern.
2443 (get_target_type): Move it gdbtypes.c.
2444 (varobj_formatted_print_options): New function.
2445 (value_get_print_value): Rename it to
2446 varobj_value_get_print_value and make it extern.
2447 (varobj_value_is_changeable_p): Make it extern.
2448 (adjust_value_for_child_access): Move it to c-varobj.c.
2449 (default_value_is_changeable_p): Rename it to
2450 varobj_default_value_is_changeable_p. Make it extern.
2451 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2452 (c_name_of_child, c_path_expr_of_child): Likewise.
2453 (c_value_of_child, c_type_of_child): Likewise.
2454 (c_value_of_variable, cplus_number_of_children): Likewise.
2455 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2456 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2457 (cplus_value_of_child, cplus_type_of_child): Likewise.
2458 (cplus_value_of_variable): Likewise.
2459 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2460 (java_name_of_child, java_path_expr_of_child): Likewise.
2461 (java_value_of_child, java_type_of_child): Likewise.
2462 (java_value_of_variable): Likewise.
2463 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2464 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2465 (ada_value_of_child, ada_type_of_child): Likewise.
2466 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2467 (ada_value_has_mutated): Likewise.
2468 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2469 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2470 (c_varobj_ops, cplus_varobj_ops): Declare.
2471 (java_varobj_ops, ada_varobj_ops): Declare.
2472 (varobj_default_value_is_changeable_p): Declare.
2473 (varobj_value_is_changeable_p): Declare.
2474 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2475 (varobj_get_path_expr_parent): Declare.
2476 (varobj_value_get_print_value): Declare.
2477 (varobj_formatted_print_options): Declare.
2478 (varobj_restrict_range): Declare.
2479
c8a62302
LM
24802013-10-17 Luis Machado <lgustavo@codesourcery.com>
2481
2482 * target/waitstatus.h (target_waitkind): Remove spurious
2483 character from the comments.
2484
eade6471
JB
24852013-10-17 Joel Brobecker <brobecker@adacore.com>
2486
2487 * gdbarch.sh (get_longjmp_target): Add method documentation.
2488 * gdbarch.h: Regenerate.
2489
5411b26c
TT
24902013-10-16 Tom Tromey <tromey@redhat.com>
2491
2492 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2493 label.
2494
87326c87
LM
24952013-10-16 Luis Machado <lgustavo@codesourcery.com>
2496
2497 * gcore.in: Call GDB using the full path to the gcore script.
2498 Error out if the GDB binary is not found.
2499
fd0a4d76
SDJ
25002013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2501
2502 PR gdb/16014
2503 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2504 sizeof.
2505
d92f7ee3
SDJ
25062013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2507
2508 PR gdb/16042
2509 * target.c (target_disable_btrace): Fix invalid return value for
2510 void function.
2511 (target_teardown_btrace): Likewise.
2512
bb5ce47a
YQ
25132013-10-14 Yao Qi <yao@codesourcery.com>
2514
2515 * varobj.c (struct varobj): Move most of the fields to
2516 varobj.h.
2517 (struct varobj_dynamic): New struct.
2518 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2519 (varobj_has_more): Likewise.
2520 (dynamic_varobj_has_child_method): Likewise.
2521 (update_dynamic_varobj_children): Likewise.
2522 (varobj_get_num_children): Likewise.
2523 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2524 (install_new_value_visualizer): Likewise.
2525 (install_new_value_visualizer, install_new_value): Likewise.
2526 (varobj_update, new_variable, free_variable): Likewise.
2527 (my_value_of_variable, value_get_print_value): Likewise.
2528 (install_visualizer): Change the type of parameter 'var' to
2529 'struct varobjd_dynamic *'. Callers update.
2530 * varobj.h (struct varobj): Moved from varobj.c.
2531 (struct varobj) <dynamic>: New field.
2532
0b76b0ce
SL
25332013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2534
2535 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2536 as the preferred name of r30.
2537 * nios2-linux-tdep.c (reg_offsets): Likewise.
2538 * features/nios2-cpu.xml: Likewise.
2539 * features/nios2-linux.c: Regenerated.
2540 * features/nios2.c: Regenerated.
2541 * regformats/nios2-linux.dat: Regenerated.
2542
4856b6bc
JK
25432013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 Canonicalize directories for EXEC_FILENAME.
2546 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2547 exec_filename.
2548 * utils.c (gdb_realpath_keepfile): New function.
2549 * utils.h (gdb_realpath_keepfile): New declaration.
2550
9b557b58
DE
25512013-10-11 Doug Evans <dje@google.com>
2552
2553 * Makefile.in (GDBFLAGS): New variable.
2554 (run): New rule.
2555
ce13fade
JB
25562013-10-11 Joel Brobecker <brobecker@adacore.com>
2557
2558 * NEWS: Add entry documenting the new "-catch-assert" and
2559 "-catch-exception" GDB/MI commands.
2560
349774ef
JB
25612013-10-11 Joel Brobecker <brobecker@adacore.com>
2562
2563 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2564 "enabled".
2565 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2566 "enabled". Set B->ENABLE_STATE accordingly.
2567 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2568 ada-lang.c.
2569 (create_ada_exception_catchpoint): Add declaration.
2570 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2571 (create_ada_exception_catchpoint): Make non-static. Add new
2572 parameter "disabled". Use it in call to
2573 init_ada_exception_breakpoint.
2574 (catch_ada_exception_command): Add parameter "enabled" in call
2575 to create_ada_exception_catchpoint.
2576 (catch_assert_command): Likewise.
2577
2578 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2579 Add declarations.
2580 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2581 "catch-exception" commands.
2582 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2583 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2584
761269c8
JB
25852013-10-11 Joel Brobecker <brobecker@adacore.com>
2586
2587 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2588 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2589 of all its enumerates with "ada_". Update the rest of this
2590 file throughout.
2591
b4a5b78b
JB
25922013-10-11 Joel Brobecker <brobecker@adacore.com>
2593
2594 * ada-lang.c (ada_decode_exception_location): Delete.
2595 (create_ada_exception_catchpoint): Remove arguments "sal",
2596 "addr_string" and "ops". Add argument "ex_kind" instead.
2597 Adjust implementation accordingly, calling ada_exception_sal
2598 to get the entities it no longer gets passed as arguments.
2599 Document the function's arguments.
2600 (catch_ada_exception_command): Use catch_ada_exception_command_split
2601 instead of ada_decode_exception_location, and update call to
2602 create_ada_exception_catchpoint.
2603 (catch_ada_assert_command_split): Renames
2604 ada_decode_assert_location. Remove parameters "addr_string" and
2605 "ops", and now returns void. Adjust implementation accordingly.
2606 Update the function documentation.
2607 (catch_assert_command): Use catch_ada_assert_command_split
2608 instead of ada_decode_assert_location. Update call to
2609 create_ada_exception_catchpoint.
2610
7ad1d32c 26112013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2612
2613 * utils.h (perror_warning_with_name): Add declaration.
2614 * utils.c (perror_warning_with_name): New function.
2615 * cli/cli-cmds.c (source_script_with_search): Add call to
2616 perror_warning_with_name if from_tty is nul.
2617
7ad1d32c 26182013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2619
2620 * utils.c (perror_string): New function, extracted out of
2621 throw_perror_with_name.
2622 (throw_perror_with_name): Rework to use perror_string.
2623
bcc75809
YQ
26242013-10-11 Yao Qi <yao@codesourcery.com>
2625
2626 * remote.c (discard_pending_stop_replies_in_queue): Update
2627 declaration.
2628 (struct stop_reply) <rs>: New field.
2629 (remove_stop_reply_of_remote_state): New function.
2630 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2631 Callers update. Pass remove_stop_reply_of_remote_state to
2632 QUEUE_iterate.
2633 (remote_parse_stop_reply): Initialize field 'rs'.
2634
05feb193
WN
26352013-10-10 Will Newton <will.newton@linaro.org>
2636
2637 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2638 linux_init_abi.
2639
0d12017b
JB
26402013-10-10 Joel Brobecker <brobecker@adacore.com>
2641
2642 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2643 serial_baud_show_cmd.
2644 (_initialize_cli_cmds): Delete the code creating the
2645 "set/show remotebaud" commands.
2646 * serial.c (baud_rate): Move here from top.c.
2647 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2648 (_initialize_serial): Create "set/show serial baud" commands.
2649 Add "set/show remotebaud" command aliases.
2650 * top.c (baud_rate): Moved to serial.c.
2651 * NEWS: Document the new "set/show serial baud" commands,
2652 replacing "set/show remotebaud".
2653
578d3588
PA
26542013-10-09 Pedro Alves <palves@redhat.com>
2655
2656 * breakpoint.c (insert_bp_location): Use memory_error_message to
2657 build the memory error string.
2658 * c-lang.c: Include "gdbcore.h".
2659 (c_get_string): Use memory_error to throw error.
2660 (target_xfer_memory_error): Delete.
2661 (memory_error_message): New, factored out from
2662 target_xfer_memory_error.
2663 (memory_error): Change parameter type to target_xfer_error.
2664 Rewrite.
2665 (read_memory): Use memory_error instead of
2666 target_xfer_memory_error.
2667 * gdbcore.h: Include "target.h".
2668 (memory_error): Change parameter type to target_xfer_error.
2669 (memory_error_message): Declare function.
2670 * target.c (target_read_memory, target_read_stack)
2671 (target_write_memory, target_write_raw_memory): Return
2672 TARGET_XFER_E_IO on error. Adjust comments.
2673 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2674 instead of EIO.
2675 * target.h (target_read, target_insert_breakpoint)
2676 (target_remove_breakpoint): Adjust comments.
2677 * valprint.c (partial_memory_read): Rename parameter, and adjust
2678 comment.
2679 (val_print_string): Use memory_error_message to build the memory
2680 error string.
2681
c74e1ccf
JK
26822013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2683
2684 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2685 result variable. Rename variable fopen_e_ever_failed to
2686 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2687
915215be
PA
26882013-10-09 Pedro Alves <palves@redhat.com>
2689
2690 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2691 (monitor_write_memory_longlongs, monitor_write_memory_block):
2692 Constify 'myaddr' parameter.
2693 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2694 helper.
2695 (monitor_xfer_partial): New function.
2696 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2697 hook. Install a to_xfer_partial hook.
2698
acd13123
TT
26992013-10-09 Tom Tromey <tromey@redhat.com>
2700
2701 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2702 bfd_get_alt_debug_link_info.
2703
40135bb1
JK
27042013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2705
2706 New flag OBJF_NOT_FILENAME.
2707 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2708 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2709 allocate_objfile.
2710 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2711 symbol_file_add_from_bfd.
2712 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2713 allocate_objfile.
2714 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2715 NULL.
2716 * objfiles.h (OBJF_NOT_FILENAME): New.
2717
dc294be5
TT
27182013-10-08 Tom Tromey <tromey@redhat.com>
2719
2720 * Makefile.in (SFILES): Add build-id.c.
2721 (HFILES_NO_SRCDIR): Add build-id.h.
2722 * build-id.c: New file, largely from elfread.c. Modified
2723 most functions.
2724 * build-id.h: New file.
2725 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2726 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2727 Search for dwz file using build-id.
2728 * elfread.c (build_id_bfd_get, build_id_verify)
2729 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2730
db230ce3
JB
27312013-10-08 Joel Brobecker <brobecker@adacore.com>
2732
2733 * ada-lang.c (compare_names_with_case): Renamed from
2734 compare_names, adding a new parameter "casing" and its handling.
2735 New function documentation.
2736 (compare_names): New function, implemented using
2737 compare_names_with_case.
2738
6501c98a
JB
27392013-10-08 Joel Brobecker <brobecker@adacore.com>
2740
2741 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2742
84a1243b
TT
27432013-10-07 Tom Tromey <tromey@redhat.com>
2744
2745 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2746 demangled_names_hash.
2747 (free_objfile): Don't delete the demangled_names_hash.
2748 * objfiles.h (struct objfile_per_bfd_storage)
2749 <demangled_names_hash>: New field.
2750 (struct objfile) <demangled_names_hash>: Move to
2751 objfile_per_bfd_storage.
2752 * symfile.c (reread_symbols): Don't delete the
2753 demangled_names_hash.
2754 * symtab.c (create_demangled_names_hash): Update.
2755 (symbol_set_names): Update.
2756
1da77581
TT
27572013-10-07 Tom Tromey <tromey@redhat.com>
2758
2759 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2760 needs_relocations>: New fields.
2761 (gdb_bfd_requires_relocations): New function.
2762 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2763 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2764 the BFD needs relocations applied.
2765
46ecd527
PA
27662013-10-07 Pedro Alves <palves@redhat.com>
2767
2768 PR breakpoints/11568
2769 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2770 the thread list" instead of "gone".
2771
0c557179
SDJ
27722013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2773
2774 * NEWS: Mention new convenience variable $_exitsignal.
2775 * corelow.c (core_open): Reset exit convenience variables. Set
2776 $_exitsignal to the uncaught signal which generated the corefile.
2777 * infrun.c (handle_inferior_event): Reset exit convenience
2778 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2779 (clear_exit_convenience_vars): New function.
2780 * inferior.h (clear_exit_convenience_vars): New prototype.
2781
1cc47d81
YQ
27822013-10-06 Yao Qi <yao@codesourcery.com>
2783
2784 * varobj.h: Add comments to enum varobj_languages.
2785
73869dc2
DE
27862013-10-04 Doug Evans <dje@google.com>
2787
2788 Add support for DWP file format version 2.
2789 * NEWS: Mention support for DWP file format version 2.
2790 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2791 union of asection, containing_section. New fields virtual_offset
2792 and is_virtual. Change type of readin filed from int to char.
2793 (dwo_sections, dwo_file): Tweak comments.
2794 (dwp_v2_section_ids): New enum.
2795 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2796 str_offsets, types.
2797 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2798 All uses updated.
2799 (virtual_v2_dwo_sections): New struct.
2800 (dwp_hash_table): New fields version, nr_columns. Change type of
2801 section_pool field to a union.
2802 (dwp_file): New field version.
2803 (dwarf2_has_info): Check for virtual sections.
2804 (get_containing_section): New function.
2805 (get_section_bfd_owner, get_section_bfd_section): Call it.
2806 (dwarf2_locate_sections): Update.
2807 (dwarf2_section_empty_p): Update.
2808 (dwarf2_read_section): Handle virtual sections.
2809 (locate_dwz_sections): Update.
2810 (create_dwp_hash_table): Document and handle V2 format.
2811 (locate_v1_virtual_dwo_sections): Renamed from
2812 locate_virtual_dwo_sections and update. All callers updated.
2813 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2814 Delete arg htab. Rename arg section_index to unit_index.
2815 All callers updated.
2816 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2817 All uses updated.
2818 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2819 (lookup_dwo_unit_in_dwp): Add V2 support.
2820 (dwarf2_locate_dwo_sections): Update.
2821 (dwarf2_locate_common_dwp_sections): Renamed from
2822 dwarf2_locate_dwp_sections and update. All callers updated.
2823 (dwarf2_locate_v2_dwp_sections): New function.
2824 (open_and_init_dwp_file): Add V2 support.
2825 (read_str_index): New locals str_section, str_offsets_section.
2826
9a2c3737
PA
28272013-10-04 Pedro Alves <palves@redhat.com>
2828
2829 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2830 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2831 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2832 describing comments with references to ptid.h.
2833 * common/ptid.h: Remove intro description of constructors,
2834 accessors and predicates.
2835 (struct ptid): Reformat.
2836 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2837 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2838 describing comments.
2839
f5371440
JB
28402013-10-04 Joel Brobecker <brobecker@adacore.com>
2841
2842 * aix-thread.c (sync_threadlists): Add missing ')' in call
2843 to ptid_build.
2844
793e1c06
JB
28452013-10-04 Joel Brobecker <brobecker@adacore.com>
2846
2847 * procfs.c (procfs_init_inferior): Fix typo causing the build
2848 to fail.
2849
26f0edc1
JB
28502013-10-04 Joel Brobecker <brobecker@adacore.com>
2851
2852 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2853
5713b9b5
JB
28542013-10-04 Joel Brobecker <brobecker@adacore.com>
2855
2856 * mi/mi-main.c (run_one_inferior): Add function description.
2857 Make ARG a pointer to an integer whose value determines whether
2858 we should "run" or "start" the program.
2859 (mi_cmd_exec_run): Add handling of the "--start" option.
2860 Reject all other command-line options.
2861 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2862
f48ff2a7
YQ
28632013-10-04 Yao Qi <yao@codesourcery.com>
2864
2865 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2866 (struct notif_client) <pending_event>: Moved
2867 to struct remote_notif_state.
2868 <id>: New field.
2869 (struct remote_notif_state) <pending_event>: New field.
2870 (notif_event_xfree): Declare.
2871 * remote-notif.c (handle_notification): Adjust.
2872 (notif_event_xfree): New function.
2873 (do_notif_event_xfree): Call notif_event_xfree.
2874 (remote_notif_state_xfree): Call notif_event_xfree to free
2875 each element in field pending_event.
2876 * remote.c (discard_pending_stop_replies): Remove declaration.
2877 (discard_pending_stop_replies_in_queue): Declare.
2878 (remote_close): Call discard_pending_stop_replies_in_queue
2879 instead of discard_pending_stop_replies.
2880 (remote_start_remote): Adjust.
2881 (stop_reply_xfree): Call notif_event_xfree.
2882 (notif_client_stop): Adjust initialization.
2883 (remote_notif_remove_all): Rename it to ...
2884 (remove_stop_reply_for_inferior): ... this. Update comments.
2885 Don't check INF is NULL.
2886 (discard_pending_stop_replies): Return early if notif_state is
2887 NULL. Adjust. Don't check INF is NULL.
2888 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2889 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2890 (remote_wait_ns): Likewise.
2891
5965e028
YQ
28922013-10-04 Yao Qi <yao@codesourcery.com>
2893
2894 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2895 (notif_queue): Remove.
2896 (remote_notif_process): Add one parameter 'notif_queue'.
2897 Update comments. Callers update.
2898 (remote_async_get_pending_events_token): Remove.
2899 (remote_notif_register_async_event_handler): Remove.
2900 (remote_notif_unregister_async_event_handler): Remove.
2901 (handle_notification): Add parameter 'notif_queue'. Update
2902 comments. Callers update.
2903 (notif_xfree): Remove.
2904 (remote_notif_state_allocate): New function.
2905 (remote_notif_state_xfree): New function.
2906 (_initialize_notif): Remove code to allocate queue.
2907 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2908 (struct remote_notif_state): New.
2909 (handle_notification): Update declaration.
2910 (remote_notif_process): Likewise.
2911 (remote_notif_register_async_event_handler): Remove.
2912 (remote_notif_unregister_async_event_handler): Remove.
2913 (remote_notif_state_allocate): Declare.
2914 (remote_notif_state_xfree): Declare.
2915 * remote.c (struct remote_state) <notif_state>: New field.
2916 (remote_close): Don't call
2917 remote_notif_unregister_async_event_handler. Call
2918 remote_notif_state_xfree.
2919 (remote_open_1): Don't call
2920 remote_notif_register_async_event_handler. Call
2921 remote_notif_state_allocate.
2922
5e5ac9a5
YQ
29232013-10-04 Yao Qi <yao@codesourcery.com>
2924
2925 * varobj.c (create_child_with_value): Remove 'const' from the
2926 type of parameter 'name'.
2927 (varobj_add_child): Likewise.
2928 (install_dynamic_child): Remove 'const' from the type of
2929 parameter 'name'.
2930 (varobj_add_child): Likewise.
2931 (create_child_with_value): Likewise. Update comments. Don't
2932 duplicate 'name'.
2933 (update_dynamic_varobj_children): Duplicate 'name'
2934 and pass it to install_dynamic_child.
2935
06ab7b19
PM
29362013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2937
2938 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2939 conversion logic to occur after PyLong_Check. Comment on order
2940 change significance.
2941 * python/py-arch.c (archpy_disassemble): Comment on order of
2942 conversion for integers and longs.
2943
8ae377e8
PA
29442013-10-03 Pedro Alves <palves@redhat.com>
2945
2946 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2947 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2948 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2949 PTRACE_O_TRACEFORK is not supported.
2950 (linux_test_for_tracesysgood): New function.
2951 (linux_test_for_tracefork): New function, factored out from
2952 linux_check_ptrace_features, and also don't kill child_pid here.
2953
b1328b1b
TG
29542013-10-03 Tristan Gingold <gingold@adacore.com>
2955
2956 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2957 Remove verbose error reporting. Use detected state to
2958 thread_set_state call.
2959 (i386_darwin_dr_get): Fix return type. Remove verbose error
2960 report.
2961 Remove trailing spaces.
2962
901461f8
PA
29632013-10-02 Pedro Alves <palves@redhat.com>
2964
2965 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2966 val_print_optimized_out.
2967 * jv-valprint.c (java_print_value_fields): Likewise.
2968 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2969 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2970 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2971 new optimized out value.
2972 * findvar.c (address_from_register): Likewise.
2973 * frame.c (put_frame_register): Tweak error string to say the
2974 register was not saved, rather than optimized out.
2975 * infcmd.c (default_print_one_register_info): Adjust call to
2976 val_print_optimized_out. Use value_of_register instead of
2977 get_frame_register_value.
2978 * mi/mi-main.c (output_register): Use value_of_register instead of
2979 get_frame_register_value.
2980 * valprint.c (valprint_check_validity): Likewise.
2981 (val_print_optimized_out): New value parameter. If the value is
2982 lval_register, print <not saved> instead.
2983 (value_check_printable, val_print_scalar_formatted): Adjust calls
2984 to val_print_optimized_out.
2985 * valprint.h (val_print_optimized_out): New value parameter.
2986 * value.c (struct value) <optimized_out>: Extend comment.
2987 (error_value_optimized_out): New function.
2988 (require_not_optimized_out): Use it. Use a different string for
2989 lval_register values.
2990 * value.h (error_value_optimized_out): New declaration.
2991 * NEWS: Mention <not saved>.
2992
042a84d9
JB
29932013-10-02 Joel Brobecker <brobecker@adacore.com>
2994
2995 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2996 strcmp to compare two symtab filenames.
2997
6b9780fb
JB
29982013-10-02 Joel Brobecker <brobecker@adacore.com>
2999
3000 * symtab.c (search_symbols_equal): Delete.
3001 (sort_search_symbols_remove_dups): Replace call to
3002 search_symbols_equal by call to compare_search_syms,
3003 adjusting as necessary.
3004
751e7549
PM
30052013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3006
3007 PR python/15579
751e7549
PM
3008 * python/python.c: Document gdb.execute command in Python help.
3009
1efd7661
PM
30102013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3011
3012 * python/py-frame.c (frame_info_to_frame_object): Use
3013 gdbpy_convert_exception. Clean up Python object on failure.
3014
562fc849
PM
30152013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3016
3017 * python/lib/gdb/command/frame_filters.py
3018 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3019 (ShowFrameFilterPriority.invoke): Ditto.
3020
d7561cbb
KS
30212013-10-01 Keith Seitz <keiths@redhat.com>
3022
3023 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3024 (parse_linespec): Make 'argptr' const.
3025 Remove temporary cast of 'argptr' to const char **.
3026 (decode_line_full): Pass const pointer to parse_linespec.
3027 (decode_line_1): Likewise.
3028 (decode_objc): Make local variable 'new_argptr' const.
3029 (find_function_symbols): Remove temporary cast to char *
3030 to find_imps.
3031 * objc-lang.c (find_imps): Make argument 'method' const.
3032 Return const.
3033 * objc-lang.h (find_imps): Likewise.
3034
30352013-10-01 Keith Seitz <keiths@redhat.com>
3036
3037 * completer.c (skip_quoted_chars): Make all arguments const.
3038 Return const.
3039 (skip_quoted): Likewise.
3040 * completer.h (skip_quoted_chars): Likewise.
3041 (skip_quoted): Likewise.
3042 * defs.h (skip_quoted): Remove duplicate declaration.
3043 * jv-exp.y: Include completer.h.
3044 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3045 * p-exp.y: Include completer.h.
3046
30472013-10-01 Keith Seitz <keiths@redhat.com>
3048
3049 * c-exp.y (parse_number): Make first argument const.
3050 Make a copy of the input to manipulate.
3051 (c_parse_escape): Make first argument const.
3052 Make local variable 'tokptr' const.
3053 (parse_string_or_char): Make first two arguments const.
3054 (macro_original_text): Make const.
3055 (lex_one_token): Make local variable 'tokstart' const.
3056 Likewise for local variables named 'p'.
3057 Cast away const for struct stoken (temporary).
3058 * c-lang.h (c_parse_escpae): Make first argument const.
3059 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3060 const.
3061 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3062 var_string case.
3063 * f-exp.y (parse_number): Make first argument const.
3064 (match_string_literal): Make local variable 'tokstart'
3065 const.
3066 (yylex): Make local variable 'p' const.
3067 Cast away const for struct stoken (temporary).
3068 * go-exp.y (parse_number): Make first argument const.
3069 (parse_string_or_char): Likewise.
3070 Make local variable 'tokstart' const.
3071 (lex_one_token): Likewise for numerous locals called 'p'.
3072 Cast away const for struct stoken (temporary).
3073 * jv-exp.y (parse_number): Make first argument const.
3074 Make local variables 'tokstart' and 'tokptr' const.
3075 Cast away const for call to skip_quoted (temporary).
3076 (yylex): Make local variable 'p' const.
3077 Cast away const for struct stoken (temporary).
3078 * m2-exp.y (parse_number): Make local variable 'p' const.
3079 (yylex): Likewise for 'tokstart'.
3080 Cast away const for struct stoken (temporary).
3081 Make local variable 'p' const.
3082 * macroexp.c (get_character_constant): Pass a const string
3083 to c_parse_escape.
3084 (get_string_literal): Likewise.
3085 (macro_expand_next): Make first argument const.
3086 Cast away const for init_shared_buffer.
3087 * macroexp.h (macro_expand_next): Make first argument const.
3088 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3089 Pass a const string to c_parse_escape.
3090 Make local variables 'p' and 'namestart' const.
3091 * parse.c (lexptr): Make const.
3092 (prev_lexptr): Likewise.
3093 (find_template_name_end): Return const.
3094 Make argument const, too.
3095 (parse_exp_in_context): Make first argument const.
3096 Remove the entire const_hack.
3097 (parse_exp_in_context_1): Make first argument const.
3098 * parser-defs.h (find_template_name_end): Return const.
3099 Make argument const, too.
3100 (lexptr): Make const.
3101 (prev_lexptr): Likewise.
3102 * utils.c (parse_escape): Make second argument const.
3103 * utils.h (parse_escape): Likewise.
3104
31052013-10-01 Keith Seitz <keiths@redhat.com>
3106
3107 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3108 is now const.
3109 (block_lookup): Make 'raw_name' and 'name' const.
3110 * ada-lex.l (processString): Update for struct stoken.ptr.
3111 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3112 (operator_stoken): Likewise.
3113 (lex_one_token): Remove temporary cast to char * for
3114 'yylval.sval.ptr'.
3115 * f-exp.y (yylex): Likewise.
3116 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3117 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3118 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3119 'yylval.sval.ptr'.
3120 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3121 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3122 * linespec.c (struct ls_parser): Make 'stream' const.
3123 (find_parameter_list_end): Make argument 'input' and local
3124 variable 'p' const.
3125 (linespec_lexer_lex_string): Make local variables 'start' and
3126 'p' const.
3127 Use skip_spaces_const instead of skip_spaces.
3128 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3129 const.
3130 (parse_linespec): Temporarily cast 'argptr' to const for
3131 'parser->lexer.stream'.
3132 * m2-exp.y (yylex): Remove temporary cast to char * for
3133 'yylval.sval.ptr'.
3134 * objc-lang.c (add_msglist): Make local variable 'p' const.
3135 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3136 (exp : STRING): Make 'sp' const.
3137 (parse_number): Make argument 'p' const.
3138 * parser-defs.h (struct stoken): Make 'ptr' const.
3139
193a8eac
DE
31402013-10-01 Doug Evans <dje@google.com>
3141
3142 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3143
2213e2be
YQ
31442013-10-01 Yao Qi <yao@codesourcery.com>
3145
3146 * varobj.c (c_value_of_root): Remove declaration.
3147 (cplus_value_of_root, java_value_of_root): Likewise.
3148 (ada_value_of_root): Likewise.
3149 (struct language_specific) <value_of_root>: Remove.
3150 (languages): Update initialization.
3151 (check_scope): Move earlier.
3152 (c_value_of_root): Move earlier and rename to ...
3153 (value_of_root_1): ... this.
3154 (value_of_root): Caller update.
3155 (cplus_value_of_root, java_value_of_root): Remove.
3156 (ada_value_of_root): Remove.
3157
c573f273
YQ
31582013-10-01 Yao Qi <yao@codesourcery.com>
3159
3160 * varobj.c (varobj_format_string): Remove "unknown".
3161 (languages): Remove the first element.
3162 * varobj.h (enum varobj_languages): Remove vlang_c.
3163
56250258
YQ
31642013-10-01 Yao Qi <yao@codesourcery.com>
3165
3166 * varobj.c (struct language_specific) <language>: Remove.
3167 (languages): Update the initialization.
3168
29f9ebfa
YQ
31692013-10-01 Yao Qi <yao@codesourcery.com>
3170
3171 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3172 "solib-target.h". Include "windows-tdep.h".
3173 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3174 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3175 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3176 windows-tdep.o to gdb_target_obs.
3177
64870a42
YQ
31782013-10-01 Yao Qi <yao@codesourcery.com>
3179
3180 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3181 "solib-target.h".
3182 (amd64_windows_init_abi): Don't call set_solib_ops and
3183 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3184 windows_init_abi instead.
3185 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3186 "solib-target.h".
3187 (i386_cygwin_init_abi): Don't call set_solib_ops,
3188 set_gdbarch_has_dos_based_file_system and
3189 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3190 windows_init_abi instead.
3191 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3192 (windows_init_abi): New function.
3193 (windows_iterate_over_objfiles_in_search_order): Make it
3194 static.
3195 * windows-tdep.h (windows_init_abi): Declare.
3196 (windows_iterate_over_objfiles_in_search_order): Remove
3197 declaration.
3198
0aebdefa
JB
31992013-10-01 Jerome Guitton <guitton@adacore.com>
3200
3201 Checked in by Joel Brobecker <brobecker@adacore.com>
3202 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3203 incomplete dictionnary instead of None in case of missing
3204 environment variables.
3205 (elinos_init): in case of an incomplete environment, best
3206 effort to load system libraries instead of abort.
3207
1c8e84b0
JB
32082013-10-01 Joel Brobecker <brobecker@adacore.com>
3209
3210 * ada-lang.c (ada_has_this_exception_support): Ignore
3211 mst_solib_trampoline minimal symbols.
3212
61d82a0d
TG
32132013-09-30 Tristan Gingold <gingold@adacore.com>
3214
3215 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3216 hardware watchpoint.
3217 (i386_darwin_dr_set): Support 32 and 64 bit states.
3218 (i386_darwin_dr_get): Likewise.
3219 (i386_darwin_dr_set_control): Make static.
3220 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3221 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3222
dfd4cc63
LM
32232013-09-30 Luis Machado <lgustavo@codesourcery.com>
3224
3225 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3226 Replace TIDGET with ptid_get_lwp.
3227 Replace GET_LWP with ptid_get_lwp.
3228 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3229 Replace BUILD_THREAD with ptid_build.
3230 Replace BUILD_LWP with ptid_build.
3231 Replace PIDGET with ptid_get_pid.
3232 Replace TIDGET with ptid_get_lwp.
3233 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3234 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3235 Replace TIDGET with ptid_get_lwp.
3236 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3237 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3238 Replace TIDGET with ptid_get_lwp.
3239 Replace GET_LWP with ptid_get_lwp.
3240 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3241 * auxv.c: Likewise.
3242 * breakpoint.c: Likewise.
3243 * common/ptid.c (ptid_is_pid): Condense check for
3244 null_ptid and minus_one_ptid.
3245 (ptid_lwp_p): New function.
3246 (ptid_tid_p): New function.
3247 * common/ptid.h: Update comments for accessors.
3248 (ptid_lwp_p): New prototype.
3249 (ptid_tid_p): New prototype.
3250 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3251 * gcore.c: Replace PIDGET with ptid_get_pid.
3252 * gdbthread.h: Likewise.
3253 * gnu-nat.c: Likewise.
3254 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3255 Replace TIDGET with ptid_get_lwp.
3256 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3257 * hppanbsd-nat.c: Likewise.
3258 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3259 Replace TIDGET with ptid_get_lwp.
3260 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3261 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3262 * infcmd.c: Likewise.
3263 * inferior.h: Likewise.
3264 * inflow.c: Likewise.
3265 * infrun.c: Likewise.
3266 * linux-fork.c: Likewise.
3267 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3268 Replace GET_PID with ptid_get_pid.
3269 Replace is_lwp with ptid_lwp_p.
3270 Replace GET_LWP with ptid_get_lwp.
3271 Replace BUILD_LWP with ptid_build.
3272
5b4e221c
MF
32732013-09-28 Mike Frysinger <vapier@gentoo.org>
3274
3275 * common/linux-btrace.c: Move sys/syscall.h out of the
3276 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3277 Also check for SYS_perf_event_open before attempting to buid.
3278
57d63ce2
DE
32792013-09-27 Doug Evans <dje@google.com>
3280
19ac8c2e
DE
3281 * dwarf2read.c (dwarf2_section_info): Add comment.
3282 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3283 All uses updated.
3284 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3285 (dwarf2_read_section): Delete unused local "header". Add section
3286 name to error message.
3287 (create_dwo_in_dwp): Tweak comment.
3288 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3289
a32a8923
DE
3290 * dwarf2read.c (die_reader_specs): Tweak comment.
3291 (get_section_bfd_owner, get_section_bfd_section): New functions.
3292 (get_section_name, get_section_file_name): New functions.
3293 (get_section_id, get_section_flags): New functions.
3294 (*): Use new functions to access section fields.
3295
57d63ce2
DE
3296 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3297 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3298 arg "htab". All callers updated.
3299 (create_debug_types_hash_table): Remove redundant copy of
3300 abbrev_section.
3301 (create_dwo_in_dwp): Tweak comments.
3302 (read_str_index): Tweak comment. Record dwarf form name in static
3303 local.
3304
3736004f
PA
33052013-09-27 Pedro Alves <palves@redhat.com>
3306
3307 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3308 (remote_filename_p): Add comment.
3309 * remote.c (remote_filename_p): Adjust to use
3310 REMOTE_SYSROOT_PREFIX.
3311 * solib.c (solib_find): When deciding whether we need to add a
3312 directory separator, check whether the sysroot is "remote:"
3313 instead of checking whether the patch has a drive spec. Add
3314 comments.
3315
5b5596ff
PA
33162013-09-27 Pedro Alves <palves@redhat.com>
3317
3318 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3319 Delete fields.
3320 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3321 directly.
3322
b5eef7aa
JK
33232013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 Fix set debug frame output.
3326 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3327 SENTINEL_FRAME entry lower to match enum frame_type order.
3328
5b856f36
PM
33292013-09-26 Pierre Muller <muller@sourceware.org>
3330
3331 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3332 AMD64_R15_REGNUM when a register index is expected.
3333 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3334 Substitute in array.
3335 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3336 (amd64_push_arguments): Substitute in integer_regnum array.
3337
ade7ed9e
DE
33382013-09-25 Doug Evans <dje@google.com>
3339
d3e81981
DE
3340 * objfiles.c (allocate_objfile): Move comment to better place.
3341
8fb8eb5c
DE
3342 New option "set debug symfile on".
3343 * NEWS: Mention "set debug symfile".
3344 * Makefile.in (SFILES): Add symfile-debug.c.
3345 (COMMON_OBS): Add symfile-debug.o.
3346 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3347 objfile's symbol functions.
3348 * objfiles.h (objfile_set_sym_fns): Declare.
3349 * symfile-debug.c: New file.
3350 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3351 objfile's symbol functions.
3352 (reread_symbols): Ditto.
3353
c256e171
DE
3354 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3355 All uses updated.
3356 (add_symtab_fns): Update prototype.
3357 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3358 (registered_sym_fns): ... this.
3359 (symtab_fns): Update.
3360 (add_symtab_fns): New arg "flavour". All callers updated.
3361 (find_sym_fns): Rewrite to use new sym_fns registry.
3362
f56ce883
DE
3363 * symfile.h (struct sym_fns): Add "objfile" argument to
3364 sym_read_linetable. All uses updated.
3365
20c681d1
DE
3366 * symtab.c (domain_name, search_domain_name): New functions.
3367 * symtab.h (domain_name, search_domain_name): Declare.
3368
ade7ed9e
DE
3369 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3370 map_matching_symbols so objfile is first. All uses updated.
3371 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3372 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3373
7d760051
UW
33742013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3375
3376 PR shlibs/8882
3377 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3378 link map entries.
3379
020f7036
DE
33802013-09-24 Doug Evans <dje@google.com>
3381
3382 * objfiles.c (free_objfile): Move comment.
3383
598402f0
JB
33842013-09-24 Joel Brobecker <brobecker@adacore.com>
3385
3386 * ada-exp.y (string_to_operator): Delete.
3387 (dummy_string_to_ada_operator): Delete.
3388
bf4d6c1c
JB
33892013-09-24 Joel Brobecker <brobecker@adacore.com>
3390
3391 Revert:
3392 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3393 amd64-tdep.c.
3394 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3395 call_dummy_integer_regs, and classify.
3396 * amd64-tdep.h (amd64_classify): Add declaration.
3397 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3398 (amd64_reg_class): Delete, moved to i386-tdep.h.
3399 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3400 Replace call to amd64_classify by call to tdep->classify.
3401 (amd64_push_arguments): Get the list of registers to use for
3402 passing integer parameters from the gdbarch tdep structure,
3403 rather than using a hardcoded one. Replace calls to amd64_classify
3404 by calls to tdep->classify.
3405 (amd64_push_dummy_call): Get the register number used for
3406 the "hidden" argument from tdep->call_dummy_integer_regs.
3407 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3408 and tdep->call_dummy_integer_regs. Set tdep->classify.
3409
849e9755
JB
34102013-09-24 Joel Brobecker <brobecker@adacore.com>
3411
3412 Revert:
3413 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3414 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3415 where tdep->memory_args_by_pointer is non-zero.
3416
c1459fd6
JB
34172013-09-24 Joel Brobecker <brobecker@adacore.com>
3418
3419 Revert:
3420 * i386-tdep.h (struct gdbarch_tdep): Add new field
3421 integer_param_regs_saved_in_caller_frame.
3422 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3423 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3424
20c2e3e0
JB
34252013-09-24 Joel Brobecker <brobecker@adacore.com>
3426
874440b8 3427 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3428 (amd64_windows_classify): Delete.
3429 (amd64_windows_passed_by_integer_register)
3430 (amd64_windows_passed_by_xmm_register)
3431 (amd64_windows_passed_by_pointer)
3432 (amd64_windows_adjust_args_passed_by_pointer)
3433 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3434 (amd64_windows_push_dummy_call): New functions.
3435 (amd64_windows_init_abi): Remove setting of
3436 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3437 tdep->classify, tdep->memory_args_by_pointer and
3438 tdep->integer_param_regs_saved_in_caller_frame.
3439 Add call to set_gdbarch_push_dummy_call.
3440
82bf32bc
JK
34412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3444 objfile->original_name.
3445
24ba069a
JK
34462013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 Pass down original filename for objfile.
3449 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3450 * elfread.c (elf_symfile_read): Likewise.
3451 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3452 longer set ORIGINAL_NAME.
3453 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3454 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3455 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3456 symbol_file_add_from_bfd call.
3457 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3458 (macho_check_dsym): Add parameter filenamep. Change function comment.
3459 Set *filenamep.
3460 (macho_symfile_read): New variable dsym_filename. Update
3461 macho_check_dsym call. Use it for symbol_file_add_separate.
3462 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3463 it. Use it for objfile->original_name.
3464 (objfile_name): Return OBFD's filename, if available.
3465 * objfiles.h (allocate_objfile): Add new parameter name.
3466 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3467 * symfile-mem.c (symbol_file_add_from_memory): Update
3468 symbol_file_add_from_bfd call.
3469 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3470 comment for it.
3471 (symbol_file_add_with_addrs): New parameter name, add function comment
3472 for it. Remove variable name. Update allocate_objfile call.
3473 (symbol_file_add_separate): New parameter name, add function comment
3474 for it. Update symbol_file_add_with_addrs call.
3475 (symbol_file_add_from_bfd): New parameter name. Update
3476 symbol_file_add_with_addrs call.
3477 (symbol_file_add): Update symbol_file_add_from_bfd call.
3478 (reread_symbols): New variable original_name. Save
3479 objfile->original_name by it.
3480 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3481 second parameter.
3482
4262abfb
JK
34832013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3484
3485 Code cleanup: Add objfile_name accessor function.
3486 * ada-lang.c (is_known_support_routine): Use objfile_name.
3487 * auto-load.c (source_gdb_script_for_objfile)
3488 (auto_load_objfile_script): Likewise.
3489 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3490 * dbxread.c (dbx_symfile_read): Likewise.
3491 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3492 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3493 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3494 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3495 (lookup_dwp_signatured_type, lookup_dwo_unit)
3496 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3497 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3498 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3499 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3500 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3501 (read_subrange_type, load_partial_dies, read_partial_die)
3502 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3503 (die_containing_type, build_error_marker_type, lookup_die_type)
3504 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3505 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3506 (get_DW_AT_signature_type, write_psymtabs_to_index)
3507 (save_gdb_index_command): Likewise.
3508 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3509 Likewise.
3510 * expprint.c (dump_subexp_body_standard): Likewise.
3511 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3512 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3513 original_name.
3514 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3515 obj_name, use objfile_name for it, use the variable.
3516 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3517 Use objfile_name.
3518 * machoread.c (macho_symtab_read, macho_check_dsym)
3519 (macho_symfile_relocate): Likewise.
3520 * maint.c (maintenance_translate_address): Likewise.
3521 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3522 * minsyms.c (install_minimal_symbols): Likewise.
3523 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3524 original_name.
3525 (filter_overlapping_sections): Use objfile_name.
3526 (objfile_name): New function.
3527 * objfiles.h (struct objfile): Rename field name to original_name.
3528 (objfile_name): New prototype.
3529 * printcmd.c (sym_info, address_info): Use objfile_name.
3530 * probe.c (parse_probes, collect_probes, compare_probes)
3531 (info_probes_for_ops): Likewise.
3532 * progspace.c (clone_program_space): Likewise.
3533 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3534 (maintenance_info_psymtabs): Likewise.
3535 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3536 (source_section_scripts): Likewise.
3537 * python/py-objfile.c (objfpy_get_filename): Likewise.
3538 * python/py-progspace.c (pspy_get_filename): Likewise.
3539 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3540 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3541 * solib.c (solib_read_symbols): Likewise.
3542 * stabsread.c (scan_file_globals): Likewise.
3543 * stap-probe.c (handle_stap_probe): Likewise.
3544 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3545 (find_separate_debug_file_by_debuglink): Likewise.
3546 (reread_symbols): Likewise. Use the objfile field name renamed to
3547 original_name.
3548 (allocate_symtab): Use objfile_name.
3549 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3550 (dump_objfile, dump_msymbols, dump_symtab_1)
3551 (maintenance_print_msymbols, maintenance_print_objfiles)
3552 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3553 * target.c (target_translate_tls_address, target_info): Likewise.
3554 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3555 objfile_name.
3556
4721dc18
JK
35572013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 Code cleanup.
3560 * probe.c (parse_probes): Rename variable objfile_name to
3561 objfile_namestr.
3562
a61d6db8
JK
35632013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3564
3565 Remove solib-sunos.c.
3566 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3567 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3568 * objfiles.c (rt_common_objfile): Remove.
3569 (free_objfile): Remove rt_common_objfile comparison.
3570 * objfiles.h (rt_common_objfile): Remove.
3571 * solib-sunos.c: Remove.
3572 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3573
2659903b
JK
35742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 Remove a.out NetBSD and OpenBSD hosts.
3577 * NEWS (Removed native configurations): New.
3578 * config/arm/nbsdaout.mh: Remove.
3579 * config/i386/nbsdaout.mh: Remove.
3580 * config/i386/obsdaout.mh: Remove.
3581 * config/m68k/nbsdaout.mh: Remove.
3582 * config/sparc/nbsdaout.mh: Remove.
3583 * config/vax/nbsdaout.mh: Remove.
3584 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3585 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3586 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3587 error.
3588 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3589 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3590 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3591
f60e2d5c
TT
35922013-09-23 Tom Tromey <tromey@redhat.com>
3593
3594 * linespec.c (struct minsym_and_objfile): Remove.
3595 (minsym_and_objfile_d): Remove.
3596 (struct linespec, struct collect_info, linespec_parse_basic)
3597 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3598 (compare_msymbols, find_method, find_function_symbols)
3599 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3600 (add_minsym, search_minsyms_for_name): Update.
3601
d3eaaf66
AB
36022013-09-23 Andrew Burgess <aburgess@broadcom.com>
3603
3604 * regcache.c: Add include of valprint.h.
3605 (dump_endian_bytes): Delete.
3606 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3607
2cc762b5
AB
36082013-09-23 Andrew Burgess <aburgess@broadcom.com>
3609
3610 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3611
96181529
PA
36122013-09-19 Pedro Alves <palves@redhat.com>
3613
3614 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3615 breakpoints.
3616
9b3f3ee6
TS
36172013-09-19 Pedro Alves <palves@redhat.com>
3618 Thomas Schwinge <thomas@codesourcery.com>
3619 Yue Lu <hacklu.newborn@gmail.com>
3620
3621 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3622 Take a gdb_byte pointer instead of a char pointer.
3623
3624 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3625 gnu_xfer_partial helper.
3626 (gnu_xfer_partial): New function.
3627 (gnu_target): Don't install a deprecated_xfer_memory hook.
3628 Install a to_xfer_partial hook.
3629
69150c3d
JK
36302013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3631
3632 Constification.
3633 * main.c (captured_main): Replace catch_command_errors by
3634 catch_command_errors_const. Twice.
3635 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3636 (symbol_file_add): Make name parameter const.
3637 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3638 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3639 variable name. Change their usage accordingly.
3640 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3641 const.
3642 (symbol_file_add_main): Make args parameter const.
3643
086850b2
UW
36442013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3645 Ulrich Weigand <uweigand@de.ibm.com>
3646
3647 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3648 of c_value member.
3649 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3650
ca08a94c 36512013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3652 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3653
3654 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3655 (gnu_create_inferior)
3656 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3657 (set_sig_thread_cmd): Use the lwpid field of ptids to
3658 store/extract thread ids instead of the tid field.
3659 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3660
e4c6a2c4
AB
36612013-09-18 Andrew Burgess <aburgess@broadcom.com>
3662
3663 * infcmd.c (default_print_one_register_info): Add detection of
3664 optimized out values.
3665 (default_print_registers_info): Switch to using
3666 get_frame_register_value.
3667
58c48e72
MM
36682013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3669
3670 * infrun.c (handle_inferior_event): Check if we know the
3671 function start address before setting a resume breakpoint.
3672
c8d37639
PA
36732013-09-18 Pedro Alves <palves@redhat.com>
3674
3675 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3676 minus_one_ptid instead of looking at the ptid's tid field and
3677 comparing that to -1.
3678
71926e28
AB
36792013-09-18 Andrew Burgess <aburgess@broadcom.com>
3680
3681 * main.h (get_gdb_program_name): Remove extra whitespace.
3682
c88a1531
AB
36832013-09-18 Andrew Burgess <aburgess@broadcom.com>
3684
3685 * main.h (get_gdb_program_name): Add declaration.
3686 * main.c (get_gdb_program_name): Add definition.
3687
4390d890
DE
36882013-09-17 Doug Evans <dje@google.com>
3689
3690 * dwarf2read.c: Move definitions of complaint functions to after
3691 forward declarations of local functions.
3692
49fa26b0
PA
36932013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3694 Pedro Alves <palves@redhat.com>
3695
3696 PR gdb/11568
3697 * breakpoint.c (remove_threaded_breakpoints): New function.
3698 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3699 as thread_exit observer.
3700
08d72866
PA
37012013-09-17 Pedro Alves <palves@redhat.com>
3702
3703 PR gdb/15911
3704 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3705 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3706 * corelow.c (core_open):
3707 * frame.h (print_stack_frame, print_frame_info): New
3708 'set_current_sal' parameter.
3709 * infcmd.c (finish_command, kill_command): Adjust call to
3710 print_stack_frame.
3711 * inferior.c (inferior_command): Likewise.
3712 * infrun.c (normal_stop): Likewise.
3713 * linux-fork.c (linux_fork_context): Likewise.
3714 * record-full.c (record_full_goto_entry, record_full_restore):
3715 Likewise.
3716 * remote-mips.c (common_open): Likewise.
3717 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3718 Use it.
3719 (print_frame_info): New 'set_current_sal' parameter. Set the last
3720 displayed sal depending on the new paremeter instead of looking at
3721 print_what.
3722 (backtrace_command_1, select_and_print_frame, frame_command)
3723 (current_frame_command, up_command, down_command): Adjust call to
3724 print_stack_frame.
3725 * thread.c (print_thread_info, restore_selected_frame)
3726 (do_captured_thread_select): Adjust call to print_stack_frame.
3727 * tracepoint.c (tfind_1): Likewise.
3728 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3729 (mi_cmd_stack_info_frame): Likewise.
3730 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3731 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3732
6bc305f5
SDJ
37332013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3734
3735 * value.c (isvoid_internal_fn): Replace "parameter" with
3736 "argument".
3737
0a7cfe2c
SS
37382013-09-16 Stan Shebs <stan@codesourcery.com>
3739
3740 * README: Update references to writing code for GDB.
3741 * configure.ac (build_warnings): Remove obsolete comment.
3742 * configure: Regenerate.
3743 * gdbarch.sh: Remove references to gdbint.texinfo.
3744 * gdbarch.h: Regenerate.
3745 * gdbtypes.c (objfile_type): Remove comments referencing internals
3746 manual and D10V.
3747
a280dbd1
SDJ
37482013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3749
3750 * NEWS: Mention new convenience function $_isvoid.
3751 * value.c (isvoid_internal_fn): New function.
3752 (_initialize_values): Add new convenience function $_isvoid.
3753
04a83fee
PM
37542013-09-16 Pierre Muller <muller@sourceware.org>
3755
3756 * arm-linux-tdep.c: Add "elf/common.h" header.
3757 Remove AT_HWCAP macro definintion as it is provided in
3758 added include file.
3759 * s390-tdep.c: Remove system header <elf.h>
3760 Add "elf/common.h" header for AT_HWCAP definition.
3761 (s390_core_read_description): Use correct CORE_ADDR
3762 for hwcap local variable used as third parameter
3763 of function target_auxv_search.
3764
88505fac
PM
37652013-09-14 Pierre Muller <muller@sourceware.org>
3766 Tom Tromey <tromey@redhat.com>
3767 Pedro Alves <palves@redhat.com>
3768
3769 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3770 mode if operating system doesn't know O_CLOEXEC.
3771
d3846e71
JK
37722013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3773
3774 Code cleanup.
3775 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3776 inner block.
3777
4ac33720
UW
37782013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3779
3780 * NEWS: Mention TDB support.
3781 * features/s390-tdb.xml: New file.
3782 * features/s390-te-linux64.xml: New file.
3783 * features/s390x-te-linux64.xml: New file.
3784 * features/Makefile (WHICH): Add new tdescs above.
3785 (s390-te-linux64-expedite): Set.
3786 (s390x-te-linux64-expedite): Set.
3787 * features/s390-te-linux64.c: New file (generated).
3788 * features/s390x-te-linux64.c: New file (generated).
3789 * regformats/s390-te-linux64.dat: New file (generated).
3790 * regformats/s390x-te-linux64.dat: New file (generated).
3791 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3792 (HWCAP_S390_TE): Likewise.
3793 (S390_TDB_DWORD0_REGNUM): Likewise.
3794 (S390_TDB_DWORD0_REGNUM): Likewise.
3795 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3796 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3797 (S390_TDB_ATIA_REGNUM): Likewise.
3798 (S390_TDB_R0_REGNUM): Likewise.
3799 (S390_TDB_R1_REGNUM): Likewise.
3800 (S390_TDB_R2_REGNUM): Likewise.
3801 (S390_TDB_R3_REGNUM): Likewise.
3802 (S390_TDB_R4_REGNUM): Likewise.
3803 (S390_TDB_R5_REGNUM): Likewise.
3804 (S390_TDB_R6_REGNUM): Likewise.
3805 (S390_TDB_R7_REGNUM): Likewise.
3806 (S390_TDB_R8_REGNUM): Likewise.
3807 (S390_TDB_R9_REGNUM): Likewise.
3808 (S390_TDB_R10_REGNUM): Likewise.
3809 (S390_TDB_R11_REGNUM): Likewise.
3810 (S390_TDB_R12_REGNUM): Likewise.
3811 (S390_TDB_R13_REGNUM): Likewise.
3812 (S390_TDB_R14_REGNUM): Likewise.
3813 (S390_TDB_R15_REGNUM): Likewise.
3814 (S390_NUM_REGS): Increase.
3815 (S390_IS_TDBREGSET_REGNUM): New macro.
3816 (s390_regmap_tdb): Declare.
3817 (s390_sizeof_tdbregset): Define.
3818 (tdesc_s390_te_linux64): Declare.
3819 (tdesc_s390x_te_linux64): Likewise.
3820 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3821 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3822 (s390_regmap_tdb): New regmap.
3823 (s390_supply_tdb_regset): New function.
3824 (s390_tdb_regset): New regset.
3825 (s390_linux64v2_regset_sections): Add TDB regset to list.
3826 (s390x_linux64v2_regset_sections): Likewise.
3827 (s390_regset_from_core_section): Recognize TDB core note section.
3828 (s390_core_read_description): If HWCAP indicates TE support,
3829 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3830 (s390_gdbarch_init): Handle TDB regset.
3831 (_initialize_s390_tdep): Initialize new tdescs.
3832 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3833 (have_regset_tdb): New variable.
3834 (s390_native_supply): Support register invalidation.
3835 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3836 (check_regset): Treat ENODATA as "regset exists".
3837 (s390_linux_fetch_inferior_registers): Add TDB.
3838 (s390_read_description): Check for TDB existence and select
3839 appropriate tdesc.
3840 * gdbserver/Makefile.in (clean): Add removal of new makefile
3841 targets.
3842 (s390-te-linux64.c): New makefile target.
3843 (s390x-te-linux64.c): Likewise.
3844 * gdbserver/configure.srv (srv_regobj): Append new objects
3845 s390-te-linux64.o and s390x-te-linux64.o.
3846 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3847 s390x-te-linux64.xml, and s390-tdb.xml.
3848 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3849 declaration.
3850 (tdesc_s390_te_linux64): Likewise.
3851 (init_registers_s390x_te_linux64): Likewise.
3852 (tdesc_s390x_te_linux64): Likewise.
3853 (s390_check_regset): Treat ENODATA as "regset exists".
3854 (s390_arch_setup): Add TDB regset support.
3855 (initialize_low_arch): Initialize registers for new tdescs.
3856
2ccd1468
UW
38572013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3858
3859 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3860 (S390_IS_FPREGSET_REGNUM): New macro.
3861 * s390-tdep.c (s390_dwarf_regmap): Make const.
3862 (regnum_is_gpr_full): New function for replacing repeated code.
3863 (s390_pseudo_register_name): Use it.
3864 (s390_pseudo_register_type): Likewise.
3865 (s390_pseudo_register_read): Likewise.
3866 (s390_pseudo_register_write): Likewise.
3867 (s390_unwind_pseudo_register): Likewise.
3868 (s390_regmap_gregset): New format for regmap.
3869 (s390x_regmap_gregset): Likewise.
3870 (s390_regmap_fpregset): Likewise.
3871 (s390_regmap_upper): Likewise.
3872 (s390_regmap_last_break): Likewise.
3873 (s390_regmap_system_call): Likewise.
3874 (s390_supply_regset): Adjust to new regmap format.
3875 (s390_collect_regset): Likewise.
3876 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3877 (s390_native_collect): Likewise.
3878 (supply_gregset): Likewise.
3879 (fill_gregset): Likewise.
3880 (supply_fpregset): Likewise.
3881 (fill_fpregset): Likewise.
3882 (fetch_regset): Likewise.
3883 (store_regset): Likewise.
3884 (s390_linux_fetch_inferior_registers): Likewise.
3885 (s390_linux_fetch_inferior_registers): Likewise.
3886
1aa4cd77
AP
38872013-09-12 Andrew Pinski <apinski@cavium.com>
3888
3889 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3890
d91fab15
UW
38912013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3892
3893 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3894
5a5d8ead
AB
38952013-09-09 Andrew Burgess <aburgess@broadcom.com>
3896
3897 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3898
1385f66c
PA
38992013-09-06 Pedro Alves <palves@redhat.com>
3900
3901 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3902 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3903 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3904 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3905 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3906 gdb_stdlog.
3907
146ec4db
PA
39082013-09-06 Pedro Alves <palves@redhat.com>
3909
3910 * remote-sim.c (dump_mem): Constify buf parameter.
3911 gdbsim_xfer_inferior_memory): Rename to ...
3912 (gdbsim_xfer_memory): ... this. Adjust interface as
3913 target_xfer_partial helper.
3914 (gdbsim_xfer_partial): New function.
3915 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3916 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3917
fcde0081
PA
39182013-09-06 Pedro Alves <palves@redhat.com>
3919
3920 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3921 host_address_to_string, and send debug output to gdb_stdlog.
3922
749c8b38
RW
39232013-09-06 Ricard Wanderlof <ricardw@axis.com>
3924
3925 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3926 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3927 gdb_target_obs for cris target.
3928 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3929 (cris_gdbarch_init): Move calls to
3930 set_gdbarch_fetch_tls_load_module_address and
3931 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3932 Add call to gdbarch_init_osabi.
3933 * cris-linux-tdep.c: New file.
3934 * cris-tdep.h: New file.
3935
43df09d9
AB
39362013-09-06 Andrew Burgess <aburgess@broadcom.com>
3937
3938 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3939 to deprecated_init_ui_hook.
3940
4d09c5b4
AB
39412013-09-06 Andrew Burgess <aburgess@broadcom.com>
3942
3943 * cli/cli-interp.c (_initialize_cli_interp): Add a
3944 command_loop_proc to interp_procs.
3945 * event-top.c (cli_command_loop): Change signature to match
3946 interp_command_loop_ftype.
3947 * event-top.h (cli_command_loop): Same.
3948 * interps.c (interp_new): Require every interpreter to have a
3949 command_loop_proc.
3950 (current_interp_command_loop): Just call the command_loop_proc on
3951 the current interpreter.
3952 * tui/tui-interp.c (_initialize_tui_interp): Add a
3953 command_loop_proc to interp_procs.
3954
8eb3d7b6
RW
39552013-09-06 Ricard Wanderlof <ricardw@axis.com>
3956
3957 * cris-tdep.c (cris_gdbarch_init): Add call to
3958 get_gdbarch_fetch_tls_load_module_address.
3959
18b3c2f5
RW
39602013-09-06 Ricard Wanderlof <ricardw@axis.com>
3961
3962 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3963 (cris_elf_gregset_t): Rename from elf_gregset_t.
3964 (crisv32_elf_gregset_t): Adjust.
3965 (cris_supply_gregset, fetch_core_registers): Adjust.
3966
dc8636ef
RW
39672013-09-06 Ricard Wanderlof <ricardw@axis.com>
3968
3969 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3970
257e6d53
AB
39712013-09-05 Andrew Burgess <aburgess@broadcom.com>
3972
1581d8a7 3973 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3974 references in comments.
1581d8a7 3975 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3976 deprecated_command_loop_hook.
3977 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3978 setup.
1581d8a7 3979 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3980
7c33b57c
PA
39812013-09-05 Pedro Alves <palves@redhat.com>
3982
3983 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3984 local is now int instead of ULONGEST. Print it with %d
3985 instead of paddress.
3986
9f8edbd5
TG
39872013-09-05 Tristan Gingold <gingold@adacore.com>
3988
3989 * MAINTAINERS: Remove avr maintainership.
3990
d5b495b4
PA
39912013-09-05 Pedro Alves <palves@redhat.com>
3992
3993 * findvar.c (value_of_register): Rework in terms of
3994 value_of_register_lazy.
3995
40b91786
MB
39962013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3997
3998 * symfile.c (add_symbol_file_command): Remove trailing
3999 whitespaces and blank line after comment.
4000
6eed1678
PA
40012013-09-05 Pedro Alves <palves@redhat.com>
4002
4003 * tui/tui-regs.c (tui_register_format): Don't look at the
4004 register's name here. Return string representing register
4005 value instead of storing it in the data element.
4006 (tui_get_register): Compare register string representations
4007 instead of register value states and contents.
4008
8eb6bda2
PA
40092013-09-05 Pedro Alves <palves@redhat.com>
4010
4011 PR tui/15933
4012 * tui/tui-regs.c (tui_show_registers): Show registers of the
4013 selected frame, not the current frame.
4014
48b1f08c
RW
40152013-09-05 Ricard Wanderlof <ricardw@axis.com>
4016
4017 * MAINTAINERS (Write After Approval): Add myself to the list.
4018
89e63ee4
DE
40192013-09-04 Doug Evans <dje@google.com>
4020
4021 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4022 (queue_and_load_dwo_tu): New function.
4023 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4024 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4025 Make dependent_cu optional.
4026 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4027 and an older .gdb_index is in use, queue and load all its TUs too.
4028
492c0ab7
JK
40292013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4032 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4033 variable search_flags.
4034 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4035 (OPF_RETURN_REALPATH): ... here.
4036 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4037 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4038 call. Twice.
4039 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4040 openp call.
4041 * solib.c (solib_find): Likewise. Four times.
4042 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4043 in the function comment and for the realpath_fptr variable.
4044 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4045 (find_and_open_source): Likewise. Twice.
4046 * symfile.c (symfile_bfd_open): Likewise, also twice.
4047
23a44de8
DE
40482013-09-04 Doug Evans <dje@google.com>
4049
4050 * progspace.c (save_current_space_and_thread): Remove unnecessary
4051 call to save_current_inferior.
4052
47061676
AB
40532013-09-04 Andrew Burgess <aburgess@broadcom.com>
4054
4055 * sh64-tdep.c (sh64_do_register): Return after printing message
4056 about unavailable register contents.
4057
41dc8db8
MB
40582013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4059 Pedro Alves <palves@redhat.com>
4060
4061 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
4062 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4063 options and collapse into single conditional branch.
41dc8db8 4064
07107ca6
LM
40652013-09-03 Luis Machado <lgustavo@codesourcery.com>
4066
a7ea61cf 4067 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
4068 detach_fork.
4069 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4070 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4071 * inferior.h (detach_fork): Remove.
4072 * infrun.c (detach_fork): Adjust comment and make it
4073 static.
4074 (follow_fork): Pass detach_fork parameter to
4075 target_follow_fork.
4076 * linux-nat.c (linux_child_follow_fork): New parameter
4077 detach_fork.
4078 * target.c (target_follow_fork): New parameter detach_fork.
4079 Pass detach_fork as parameter and print its value.
4080 * target.h (struct target_ops) <to_follow_fork>: New int
4081 parameter.
4082 (target_follow_fork): New parameter detach_fork.
4083
3bec2768
JB
40842013-09-03 Joel Brobecker <brobecker@adacore.com>
4085
4086 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4087 Replace sec->bfd by sec->the_bfd_section->owner.
4088
c01cbb3d
YQ
40892013-09-03 Yao Qi <yao@codesourcery.com>
4090
4091 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4092 from linux_has_shared_address_space.
4093 (linux_has_shared_address_space): Call linux_is_uclinux.
4094 * linux-tdep.h (linux_is_uclinux): Declare.
4095 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4096 linux_is_uclinux.
4097
7b00db47
YQ
40982013-09-03 Yao Qi <yao@codesourcery.com>
4099
4100 * config/djgpp/fnchange.lst: Remove entry of
4101 i386-interix-nat.c and i386-interix-tdep.c.
4102 * configure.ac: Remove '*-*-interix*'.
4103 * configure: Re-generated.
4104 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4105 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4106 obsolete comments.
4107 * osabi.c (gdb_osabi_names): Remove "Interix".
4108
0f9741f2
YQ
41092013-09-03 Yao Qi <yao@codesourcery.com>
4110
4111 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4112
1e038f67
MM
41132013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4114
4115 * record.h (record_print_flag) <record_print_src_line,
4116 record_print_insn_range>: Rename into ...
4117 (record_print_flag) <record_print_src_line,
4118 record_print_insn_range>: ... this. Update all users.
4119
9e52adf9
PM
41202013-09-02 Pierre Muller <muller@sourceware.org>
4121
4122 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4123 error code.
4124
a2388568
PM
41252013-09-02 Pierre Muller <muller@sourceware.org>
4126
4127 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4128 by use of plongest function.
4129
9058cc3a
TG
41302013-09-02 Tristan Gingold <gingold@adacore.com>
4131
4132 * NEWS: Add entry mentioning support for native Windows x64
4133 SEH data.
4134
4135 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4136 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4137 (struct amd64_windows_frame_cache): New struct.
4138 (amd64_windows_w2gdb_regnum): New global.
4139 (pc_in_range, amd64_windows_frame_decode_epilogue)
4140 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4141 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4142 (amd64_windows_frame_this_id): New functions.
4143 (amd64_windows_frame_unwind): New static global.
4144 (amd64_windows_skip_prologue): New function.
4145 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4146 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4147 with amd64_windows_skip_prologue.
4148
3161820b 41492013-08-30 Joel Brobecker <brobecker@adacore.com>
4150
4151 GDB 7.6.1 released.
4152
02457c76
PA
41532013-08-30 Pedro Alves <palves@redhat.com>
4154
4155 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4156 SRC_AND_LOC.
4157
e0162910
PA
41582013-08-30 Pedro Alves <palves@redhat.com>
4159
4160 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4161 warning text.
4162
6391ce51
PA
41632013-08-30 Pedro Alves <palves@redhat.com>
4164
4165 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4166 Adjust arguments to print_stack_frame.
4167
d1da0587
PA
41682013-08-30 Pedro Alves <palves@redhat.com>
4169
4170 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4171
adfd8245
PA
41722013-08-30 Pedro Alves <palves@redhat.com>
4173
4174 * frame.h (show_and_print_stack_frame): Delete declaration.
4175
96d9056e
PM
41762013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4177
4178 PR python/15461
96d9056e
PM
4179 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4180 (archpy_name): Check for valid architecture.
4181 (archpy_disassemble): Ditto.
4182
11cb8762
JB
41832013-08-29 Joel Brobecker <brobecker@adacore.com>
4184
4185 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4186 instead of "long long" in call to ptrace64.
4187
1af12a7d
AB
41882013-08-29 Andrew Burgess <aburgess@broadcom.com>
4189
4190 * mi/mi-interp.c (mi_command_loop): Change signature to match
4191 interp_command_loop_ftype.
4192 (mi1_command_loop): Remove.
4193 (mi2_command_loop): Remove.
4194 (mi3_command_loop): Remove.
4195 (mi_interpreter_resume): Remove setting of
4196 deprecated_command_loop_hook.
4197 (_initialize_mi_interp): Set mi_command_loop as the command loop
4198 callback.
4199
acc900c2
SA
42002013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4201
4202 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4203 value_type.
4204
548b762d
SA
42052013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4206
4207 * value.c (allocate_value_contents): Make static.
4208 * value.h (allocate_value_contents): Remove prototype.
4209
08039c9e
SA
42102013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4211
4212 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4213 of assembling value via allocate_value_lazy and attribute setter.
4214 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4215 assembling value via allocate_value_lazy and attribute setter.
4216 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4217 assembling value via allocate_value_lazy and attribute setter.
4218
314c7de9
SA
42192013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4220
4221 * value.c (value_from_contents_and_address): Replace allocate_value and
4222 memcpy with value_from_contents.
4223
8f28f522
PM
42242013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4225
4226 * python/py-framefilter.c (py_print_frame): Remove usage of
4227 PyString_AsString. Use python_string_to_host_string instead.
4228 Refactor function to work with a string as a new allocation
4229 instead of a pointer.
4230 (py_print_frame): Ditto.
4231 * python/lib/gdb/frames.py (return_list): Cain iterators together
4232 instead of adding them as a list.
4233 (_sort_list): Call return_list, and remove duplicate code.
4234 (execute_frame_filters): Convert iterator to a list with list().
4235 * python/lib/gdb/command/frame_filters.py
4236 (SetFrameFilterPriority._set_filter_priority): Convert priority
4237 attribute to an integer.
4238 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4239 wrapper function __next__.
4240 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4241 define as "str".
4242
8ee002df
PM
42432013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4244
4245 PR python/15752
8ee002df
PM
4246 * python/py-framefilter.c (apply_frame_filter): Check
4247 gdb_python_initialized. Exit if the Python frame-filter code
4248 cannot be initialized.
4249
af4c453a
PM
42502013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4251
4252 PR cli/15842
af4c453a
PM
4253 * top.c (print_gdb_version): Remove erroneous newline after help
4254 text.
4255
bf8793bb
YQ
42562013-08-29 Yao Qi <yao@codesourcery.com>
4257
4258 * varobj.c (install_dynamic_child): Remove trailing space.
4259 Add one blank line after variable declaration.
4260
1f0c4988
JK
42612013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4262
4263 PR gdb/15415
4264 * corefile.c (get_exec_file): Use exec_filename.
4265 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4266 * exec.c (exec_close): Free EXEC_FILENAME.
4267 (exec_file_attach): New variable canonical_pathname. Use
4268 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4269 EXEC_FILENAME.
4270 * exec.h (exec_filename): New.
4271 * inferior.c (print_inferior, inferior_command): Use
4272 PSPACE_EXEC_FILENAME.
4273 * mi/mi-main.c (print_one_inferior): Likewise.
4274 * progspace.c (clone_program_space, print_program_space): Likewise.
4275 * progspace.h (struct program_space): New field pspace_exec_filename.
4276 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4277 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4278
59ee9f94
WN
42792013-08-28 Will Newton <will.newton@linaro.org>
4280
4281 * common/linux-ptrace.c: Include stdint.h unconditionally.
4282
c8a2a419
JK
42832013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 Code cleanup.
4286 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4287
ffa4ac95
YQ
42882013-08-28 Yao Qi <yao@codesourcery.com>
4289 Pedro Alves <palves@redhat.com>
4290
4291 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4292 instead of stdio_fileopen.
4293 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4294 .Call stderr_fileopen instead of stdio_fileopen.
4295 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4296 [__MINGW32__] (stderr_file_fputs): New function.
4297 (stderr_fileopen): New function.
4298 * ui-file.h (stderr_fileopen): Declare.
4299
69d751e3
DE
43002013-08-27 Doug Evans <dje@google.com>
4301
4302 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4303 (struct dwarf2_per_cu_data): Ditto.
4304 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4305 (process_imported_unit_die): Ditto.
4306 (follow_die_sig_1): Simplify assert.
4307
44f38867
PA
43082013-08-27 Pedro Alves <palves@redhat.com>
4309
4310 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4311 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4312 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4313 windows_xfer_memory directly.
4314 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4315
d28d46b5
PA
43162013-08-27 Pedro Alves <palves@redhat.com>
4317
4318 * darwin-nat.c (darwin_xfer_memory): Delete.
4319 (_initialize_darwin_inferior): Don't install a
4320 deprecated_xfer_memory method.
4321
6211c335
YQ
43222013-08-27 Pedro Alves <pedro@codesourcery.com>
4323 Yao Qi <yao@codesourcery.com>
4324
4325 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4326 (parse_no_frames_option): Remove.
4327 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4328 (mi_cmd_stack_list_args): Adjust.
4329 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4330 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4331 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4332 Caller update.
4333 (list_args_or_locals): New parameter 'skip_unavailable'.
4334 Handle it.
4335 * valprint.c (scalar_type_p): Rename to ...
4336 (val_print_scalar_type_p): ... this. Make extern.
4337 (val_print, value_check_printable): Adjust.
4338 * valprint.h (val_print_scalar_type_p): Declare.
4339 * value.c (value_entirely_unavailable): New function.
4340 * value.h (value_entirely_unavailable): Declare.
4341
4342 * NEWS: Mention the new option "--skip-unavailable" to MI
4343 commands '-stack-list-locals', '-stack-list-arguments' and
4344 '-stack-list-variables'.
4345
242f1fd7
YQ
43462013-08-27 Yao Qi <yao@codesourcery.com>
4347
4348 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4349 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4350 options.
4351 * mi/mi-getopt.c (mi_getopt): Remove.
4352 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4353 'error_on_unknown'.
4354 (mi_getopt): Call mi_getopt_1.
4355 (mi_getopt_silent): New.
4356 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4357
260b681b
DE
43582013-08-26 Doug Evans <dje@google.com>
4359
779bd270
DE
4360 PR symtab/15885
4361 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4362 .gdb_index is in use.
4363 * symfile.c (reread_symbols): Reset objfile->sf.
4364
52e260a3
DE
4365 * NEWS: Document "mt print objfiles" now takes optional regexp.
4366 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4367 regexp of objfiles to print.
4368 (_initialize_symmisc): Update doc string for "mt print objfiles".
4369
260b681b
DE
4370 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4371 missing debug info checks.
4372
a85c52f2
UW
43732013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4374 Ulrich Weigand <uweigand@de.ibm.com>
4375
4376 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4377 line tables generated by XLC compiled binaries.
4378
4f00dda3
DE
43792013-08-23 Doug Evans <dje@google.com>
4380
db68bbae
DE
4381 * symmisc.c (dump_symtab): Delete prototype.
4382 (dump_msymbols, dump_objfile): Ditto.
4383 (maintenance_info_symtabs): Mark as dont_repeat.
4384 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4385
4f00dda3
DE
4386 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4387 debugging printf to better location.
4388
23d577b0
PA
43892013-08-23 Pedro Alves <palves@redhat.com>
4390
4391 * target.c (target_read_live_memory): Change type of 'ret' local
4392 to LONGEST.
4393
00d84524
PA
43942013-08-23 Pedro Alves <palves@redhat.com>
4395
4396 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4397 (remote_read_bytes): Change return type to LONGEST, and adjust to
4398 return a target_xfer_error on error.
4399 (remote_xfer_memory): Delete.
4400 (remote_flash_write): Change type of 'ret' local to LONGEST.
4401 (remote_xfer_partial, remote_xfer_partial): Adjust.
4402 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4403
1ed3ee94
PM
44042013-08-23 Pierre Muller <muller@sourceware.org>
4405
4406 ARI fix: Push # directives to start of line.
4407 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4408
9eaabc75
MW
44092013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4410
4411 PR gdb/15501
4412 * breakpoint.c (enable_command, disable_command): Iterate over
4413 all specified breakpoint locations.
4414
101158d9
LM
44152013-08-22 Luis Machado <lgustavo@codesourcery.com>
4416
4417 * common/linux-ptrace.c (linux_fork_to_function): Push #
4418 directives to the start of the line.
4419 (linux_check_ptrace_features): Fix warning message to use
4420 the "_" markup.
4421
96d7229d
LM
44222013-08-22 Luis Machado <lgustavo@codesourcery.com>
4423
4424 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4425 nat/linux-waitpid.h.
4426 (linux-waitpid.o): New object file rule.
4427 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4428 (current_ptrace_options): Moved from linux-nat.c.
4429 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4430 parameters.
4431 (linux_fork_to_function): New function.
4432 (linux_grandchild_function): Likewise.
4433 (linux_child_function): Likewise.
4434 (linux_check_ptrace_features): New function, heavily
4435 based on linux-nat.c:linux_test_for_tracefork.
4436 (linux_enable_event_reporting): New function.
4437 (ptrace_supports_feature): Likewise.
4438 (linux_supports_tracefork): Likewise.
4439 (linux_supports_traceclone): Likewise.
4440 (linux_supports_tracevforkdone): Likewise.
4441 (linux_supports_tracesysgood): Likewise.
4442 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4443 gdbserver/linux-low.c.
4444 (linux_enable_event_reporting): New declaration.
4445 (linux_supports_tracefork): Likewise.
4446 (linux_supports_traceclone): Likewise.
4447 (linux_supports_tracevforkdone): Likewise.
4448 (linux_supports_tracesysgood): Likewise.
4449 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4450 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4451 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4452 * config/arm/linux.mh (NATDEPFILES): Likewise.
4453 * config/i386/linux.mh (NATDEPFILES): Likewise.
4454 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4455 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4456 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4457 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4458 * config/mips/linux.mh (NATDEPFILES): Likewise.
4459 * config/pa/linux.mh (NATDEPFILES): Likewise..
4460 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4461 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4462 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4463 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4464 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4465 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4466 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4467 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4468 ptrace's 4th argument's types.
4469 Check the type of PTRACE_TYPE_ARG4.
4470 * configure: Regenerate.
4471 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4472 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4473 (linux_supports_tracefork_flag): Remove.
4474 (linux_supports_tracesysgood_flag): Likewise.
4475 (linux_supports_tracevforkdone_flag): Likewise.
4476 (current_ptrace_options): Moved to
4477 common/linux-ptrace.c.
4478 (linux_tracefork_child): Remove.
4479 (my_waitpid): Remove.
4480 (linux_test_for_tracefork): Renamed to
4481 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4482 (linux_test_for_tracesysgood): Remove.
4483 (linux_supports_tracesysgood): Remove.
4484 (linux_supports_tracefork): Remove.
4485 (linux_supports_tracevforkdone): Remove.
4486 (linux_enable_tracesysgood): Remove.
4487 (linux_enable_event_reporting): Remove.
4488 (linux_init_ptrace): New function.
4489 (linux_child_post_attach): Call linux_init_ptrace.
4490 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4491 (linux_child_follow_fork): Call linux_supports_tracefork
4492 and linux_supports_tracevforkdone.
4493 (linux_child_insert_fork_catchpoint): Call
4494 linux_supports_tracefork.
4495 (linux_child_insert_vfork_catchpoint): Likewise.
4496 (linux_child_set_syscall_catchpoint): Call
4497 linux_supports_tracesysgood.
4498 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4499 * nat/linux-nat.h: New file.
4500 * nat/linux-waitpid.c: New file.
4501 * nat/linux-waitpid.h: New file.
4502
9f948660
SDJ
45032013-08-22 Samuel Bronson <naesten@gmail.com>
4504
4505 ARM Linux support for `catch syscall'.
4506 * syscalls/arm-linux.py: New file.
4507 * syscalls/arm-linux.xml: Likewise.
4508 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4509 (arm_linux_init_abi): Register the new function and syscall xml file.
4510 * data-directory/Makefile.in: Install the new syscall xml file.
4511 * NEWS: Brag about this.
4512
6be7b56e
PA
45132013-08-22 Pedro Alves <palves@redhat.com>
4514
4515 PR gdb/15871
4516 * corefile.c (target_xfer_memory_error): New function.
4517 (memory_error): Defer EIO to target_memory_error.
4518 (read_memory): Use target_xfer_partial, and handle finer-grained
4519 target xfer errors.
4520 * target.c (target_xfer_error_to_string): New function.
4521 (memory_xfer_partial_1): If memory is known to be
4522 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4523 (target_xfer_partial): Make extern.
4524 * target.h (enum target_xfer_error): New enum.
4525 (target_xfer_error_to_string): Declare function.
4526 (target_xfer_partial): Declare function.
4527 (struct target_ops) <xfer_partial>: Adjust describing comment.
4528
bcbec14e
AM
45292013-08-22 Alan Modra <amodra@gmail.com>
4530
4531 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4532 * configure.tgt: Likewise as targets.
4533
fc474241
DE
45342013-08-20 Doug Evans <dje@google.com>
4535
4536 * buildsym.c (subfile_stack): Move here from buildsym.h.
4537 (pending_macros): Ditto.
4538 (get_macro_table): New function.
4539 (buildsym_init): Initialize subfile_stack.
4540 * coffread.c (type_vector,type_vector_length): Moved here from
4541 buildsym.h.
4542 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4543 (coff_symtab_read): Use it.
4544 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4545 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4546 with call to get_macro_table.
4547 * stabsread.c (type_vector,type_vector_length): Moved here from
4548 buildsym.h.
4549 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4550 * buildsym.h (get_macro_table): Declare.
4551
bec71544
TT
45522013-08-20 Tom Tromey <tromey@redhat.com>
4553
4554 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4555 Update.
4556 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4557
0002ad5f
DE
45582013-08-20 Doug Evans <dje@google.com>
4559
4560 * blockframe.c: Remove #include "psymtab.h".
4561 * cp-support.c: Ditto.
4562 * source.c: Ditto.
4563 * stack.c: Ditto.
4564
df302446
TT
45652013-08-20 Tom Tromey <tromey@redhat.com>
4566
4567 PR python/15816:
4568 * exceptions.h (return_mask): Now an enum.
4569 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4570 enum constants.
4571
df6d5441
TT
45722013-08-20 Tom Tromey <tromey@redhat.com>
4573
4574 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4575 get_objfile_arch.
4576 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4577 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4578 * jit.c (jit_object_close_impl): Update.
4579 * jv-lang.c (get_dynamics_objfile): Update.
4580 * linespec.c (add_minsym): Use get_dynamics_objfile.
4581 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4582 (allocate_objfile): Don't initialize 'gdbarch' field.
4583 (get_objfile_arch): Update.
4584 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4585 moved from...
4586 (struct objfile) <gdbarch>: ... here. Remove.
4587 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4588 get_objfile_arch.
4589 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4590
f5aee5ee
AM
45912013-08-20 Alan Modra <amodra@gmail.com>
4592
4593 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4594 for IBM long double nan and inf.
4595 (floatformat_is_negative, floatformat_classify,
4596 floatformat_mantissa): Similarly.
4597 (floatformat_ieee_single, floatformat_ieee_double,
4598 floatformat_ieee_quad, floatformat_arm_ext,
4599 floatformat_ia64_spill): Delete unused vars.
4600 (_initialize_doublest): Delete unused function.
4601 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4602 little-endian variants of floatformat_ibm_long_double.
4603
33b60d58 46042013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4605
33b60d58
LM
4606 * Makefile.in (SFILES): Remove common/target-common.c and
4607 add target/waitstatus.c.
4608 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4609 target/resume.h, target/wait.h and target/waitstatus.h.
4610 (COMMON_OBS): Remove target-common.o and add
4611 waitstatus.o.
4612 (target-common.o): Remove.
4613 (waitstatus.o): New target object file.
4614 * common/target-common.c: Move contents to
4615 target/waitstatus.c and remove.
4616 * common/target-common.h: Move contents to other files and
4617 remove.
4618 (enum resume_kind: Move to target/resume.h.
4619 (TARGET_WNOHANG): Move to target/wait.h.
4620 (enum target_waitkind): Move to target/waitstatus.h.
4621 (struct target_waitstatus): Likewise.
4622 * target.h: Do not include target-common.h and
4623 include target/resume.h, target/wait.h and
4624 target/waitstatus.h.
4625 * target/resume.h: New file.
4626 * target/wait.h: New file.
4627 * target/waitstatus.h: New file.
4628 * target/waitstatus.c: New file.
4629
12696c10
PA
46302013-08-19 Pedro Alves <palves@redhat.com>
4631
4632 * linux-nat.c (linux_test_for_tracefork)
4633 (linux_test_for_tracesysgood, linux_child_follow_fork)
4634 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4635 (linux_nat_wait_1): Extend comment.
4636 (linux_async_pipe): Add comment.
4637
ba89f962
KB
46382013-08-15 Kevin Buettner <kevinb@redhat.com>
4639
4640 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4641 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4642 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4643 Update to account for fact that PC is now a pseudo-register.
4644 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4645 cases for RL78_PC_REGNUM.
4646
35ab155d
MB
46472013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4648
4649 PR cli/15841
4650 * top.c (quit_force): Skip writing history file
4651 if input is not from terminal.
4652
0d031856
TT
46532013-08-14 Tom Tromey <tromey@redhat.com>
4654
4655 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4656 resultthreadlist>: New fields.
4657 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4658 (remote_get_threadlist, remote_threadlist_iterator): Use
4659 new fields. Remove static variables.
4660
ee154bee
TT
46612013-08-14 Tom Tromey <tromey@redhat.com>
4662
4663 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4664 remote_watch_data_address>: New fields.
4665 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4666 (process_stop_reply, remote_wait_as)
4667 (remote_check_watch_resources, remote_stopped_data_address): Update.
4668
88b496c3
TT
46692013-08-14 Tom Tromey <tromey@redhat.com>
4670
4671 * remote.c (struct remote_state) <async_client_callback,
4672 async_client_context>: New fields.
4673 (async_client_callback, async_client_context): Remove.
4674 (remote_async_serial_handler, remote_async): Update.
4675
2f65bcb7
TT
46762013-08-14 Tom Tromey <tromey@redhat.com>
4677
4678 * remote.c (sizeof_pkt): Remove.
4679 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4680
b80fafe3
TT
46812013-08-14 Tom Tromey <tromey@redhat.com>
4682
4683 * remote.c (struct remote_state) <use_threadinfo_query,
4684 use_threadextra_query>: New fields.
4685 (remote_threads_info, remote_threads_extra_info)
4686 (remote_open_1): Update.
4687
8e88304f
TT
46882013-08-14 Tom Tromey <tromey@redhat.com>
4689
4690 * remote.c (struct remote_state) <finished_object,
4691 finished_annex, finished_offset>: New fields.
4692 (remote_read_qxfer): Use remote_state fields; remove static
4693 variables.
4694
280ceea3
TT
46952013-08-14 Tom Tromey <tromey@redhat.com>
4696
4697 * remote.c (struct remote_state) <last_sent_step>:
4698 New field.
4699 (last_sent_step): Remove.
4700 (remote_resume, remote_wait_as): Update.
4701
b73be471
TT
47022013-08-14 Tom Tromey <tromey@redhat.com>
4703
4704 * remote.c (struct remote_state) <last_sent_signal>:
4705 New field.
4706 (last_sent_signal): Remove.
4707 (new_remote_state, remote_resume, remote_wait_as): Update.
4708
5e4a05c4
TT
47092013-08-14 Tom Tromey <tromey@redhat.com>
4710
4711 * remote.c (struct remote_state) <last_program_signals_packet>:
4712 New field.
4713 (last_program_signals_packet): Remove.
4714 (remote_program_signals, remote_open_1): Update.
4715
747dc59d
TT
47162013-08-14 Tom Tromey <tromey@redhat.com>
4717
4718 * remote.c (struct remote_state) <last_pass_packet>:
4719 New field.
4720 (last_pass_packet): Remove.
4721 (remote_pass_signals, remote_open_1): Update.
4722
262e1174
TT
47232013-08-14 Tom Tromey <tromey@redhat.com>
4724
4725 * remote.c (struct remote_state) <remote_traceframe_number>:
4726 New field.
4727 (remote_traceframe_number): Remove.
4728 (new_remote_state, remote_open_1, set_remote_traceframe)
4729 (remote_trace_find): Update.
4730
47f8a51d
TT
47312013-08-14 Tom Tromey <tromey@redhat.com>
4732
4733 * remote.c (struct remote_state) <general_thread, continue_thread>:
4734 New fields.
4735 (general_thread, continue_thread): Remove.
4736 (record_currthread, set_thread, set_general_process)
4737 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4738 (extended_remote_mourn_1): Update.
4739
5d93a237
TT
47402013-08-14 Tom Tromey <tromey@redhat.com>
4741
4742 * remote.c (struct remote_state) <remote_desc>: New field.
4743 (remote_desc): Remove.
4744 (remote_threads_info, remote_threads_extra_info, remote_close)
4745 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4746 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4747 (remote_hostio_send_command, remote_file_put, remote_file_get)
4748 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4749 (remote_async, remote_new_objfile, set_range_stepping): Update.
4750
cf792862
TT
47512013-08-14 Tom Tromey <tromey@redhat.com>
4752
4753 * remote.c (remote_state): Now a pointer.
4754 (get_remote_state_raw): Update.
4755 (new_remote_state): New function.
4756 (_initialize_remote): Use new_remote_state.
4757
dc473cfb
TT
47582013-08-14 Tom Tromey <tromey@redhat.com>
4759
4760 * remote.c (remote_protocol_features): Now const.
4761
85ec6ce7
TT
47622013-08-14 Tom Tromey <tromey@redhat.com>
4763
4764 * remote.c (crc32_table, crc32): Remove.
4765 (remote_verify_memory): Use xcrc32.
4766
73033f12
SDJ
47672013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4768
4769 * value.h (create_internalvar_type_lazy): Adjust prototype
4770 declaration.
4771
5c30d39a
AB
47722013-08-13 Andrew Burgess <aburgess@broadcom.com>
4773
4774 * common/format.c (parse_format_string): Don't allow '#' flag for
4775 pointer arguments in format string.
4776
1a66331e
PM
47772013-08-13 Pierre Muller <muller@sourceware.org>
4778
fde605f3 4779 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4780 if rl_get_screen_size did not return useful values.
4781
b4013987
AA
47822013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4783
4784 PR breakpoints/15117
4785 * linespec.c (linespec_parse_basic): Check for convenience
4786 variable or history value while parsing.
4787
959b6a66
SDJ
47882013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4789
4790 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4791 AVR.
4792 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4793 different signals between the generic Linux kernel implementation
4794 and AVR's.
4795 (avr_linux_gdb_signal_from_target): Delete.
4796 (avr_linux_gdb_signal_to_target): Delete.
4797 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4798
24a55014
DE
47992013-08-09 Doug Evans <dje@google.com>
4800
4801 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4802 entries.
4803
eb14d406
SDJ
48042013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4805
4806 * linux-tdep.c: Define enum with generic signal numbers.
4807 (linux_gdb_signal_from_target): New function.
4808 (linux_gdb_signal_to_target): Likewise.
4809 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4810 methods to the functions above.
4811 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4812 (linux_gdb_signal_to_target): Likewise.
4813 * alpha-linux-tdep.c: Define new enum with signals different
4814 from generic Linux kernel.
4815 (alpha_linux_gdb_signal_from_target): New function.
4816 (alpha_linux_gdb_signal_to_target): Likewise.
4817 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4818 with the functions mentioned above.
4819 * avr-tdep.c: Define enum with differences between Linux kernel
4820 and AVR signals.
4821 (avr_linux_gdb_signal_from_target): New function.
4822 (avr_linux_gdb_signal_to_target): Likewise.
4823 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4824 the functions mentioned above.
4825 * sparc-linux-tdep.c: Define enum with differences between SPARC
4826 and generic Linux kernel signal numbers.
4827 (sparc32_linux_gdb_signal_from_target): New function.
4828 (sparc32_linux_gdb_signal_to_target): Likewise.
4829 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4830 to the functions defined above.
4831 * xtensa-linux-tdep.c: Define enum with differences between
4832 Xtensa and Linux kernel generic signals.
4833 (xtensa_linux_gdb_signal_from_target): New function.
4834 (xtensa_linux_gdb_signal_to_target): Likewise.
4835 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4836 to the functions defined above.
4837 * mips-linux-tdep.c: Define enum with differences between
4838 signals in MIPS and Linux kernel generic ones.
4839 (mips_gdb_signal_to_target): New function.
4840 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4841 only different signals from the Linux kernel generic.
4842 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4843 the functions defined above.
4844 * mips-linux-tdep.h (enum mips_signals): Remove.
4845
156d08c8
PA
48462013-08-09 Pedro Alves <palves@redhat.com>
4847
4848 * avr-tdep.c (XMALLOC): Delete macro.
4849 * cli/cli-dump.c (XMALLOC): Delete macro.
4850
db229724
PA
48512013-08-09 Pedro Alves <palves@redhat.com>
4852
4853 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4854 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4855 (fopen_with_cleanup, add_dump_command): Make static.
4856 * cli/cli-dump.h: Delete file.
4857 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4858 cli/cli-dump.h.
4859
3f12a589
PA
48602013-08-09 Pedro Alves <palves@redhat.com>
4861
4862 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4863 error message.
4864
c718be47
PA
48652013-08-09 Pedro Alves <palves@redhat.com>
4866
156d08c8 4867 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4868 error message.
4869
1e351ed1
PA
48702013-08-09 Pedro Alves <palves@redhat.com>
4871
4872 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4873 (gcore_command): Use tilde_expand here, and when showing the
4874 filename to the user, show the expanded version.
4875
1ed8d800
YQ
48762013-08-09 Yao Qi <yao@codesourcery.com>
4877
4878 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4879 'entryval' is set.
4880
47ecca85
PA
48812013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4882
4883 * gcore.c (create_gcore_bfd): Use tilde_expand.
4884
82a0a75f
YQ
48852013-08-08 Yao Qi <yao@codesourcery.com>
4886
4887 * frame.h (read_frame_local): Declare.
4888 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4889 read_frame_local.
4890 * stack.c (read_frame_local): New.
4891
5c4aa40b
YQ
48922013-08-08 Yao Qi <yao@codesourcery.com>
4893
4894 * mi/mi-cmd-stack.c: Update comments to function
4895 list_args_or_locals.
4896
b93601f3
TT
48972013-08-07 Tom Tromey <tromey@redhat.com>
4898
4899 PR symtab/15028:
4900 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4901 (process_psymtab_comp_unit_reader): Use it.
4902 (process_psymtab_comp_unit): Update. Add "pretend_language"
4903 argument.
4904 (dwarf2_build_psymtabs_hard): Update.
4905 (scan_partial_symbols): Pass CU's language to
4906 process_psymtab_comp_unit.
4907
fa760f46
TT
49082013-08-07 Tom Tromey <tromey@redhat.com>
4909
4910 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4911 (dwarf2_gdb_index_functions): Update.
4912 * psymtab.c (find_symbol_file_from_partial): Remove.
4913 (psym_functions): Update.
4914 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4915 Remove.
4916
bf6d8a91
TT
49172013-08-07 Tom Tromey <tromey@redhat.com>
4918
4919 * symfile.c (set_initial_language): Look up "main" symbol
4920 and use its language.
4921 * symtab.c (find_main_filename): Remove.
4922 * symtab.h (find_main_filename): Remove.
4923
f9125b6c
TT
49242013-08-07 Tom Tromey <tromey@redhat.com>
4925
4926 * dwarf2read.c (recursively_compute_inclusions): Add
4927 "immediate_parent" argument. Set symtab's "user" field
4928 if not set.
4929 (compute_symtab_includes): Update.
4930
fdbb204b
TT
49312013-08-07 Tom Tromey <tromey@redhat.com>
4932
4933 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4934 when adding label symbols.
4935
49de1690
UW
49362013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4937 Ulrich Weigand <uweigand@de.ibm.com>
4938
4939 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4940 * configure.host (powerpc64-*-aix*): Likewise.
4941
b08ee99f
UW
49422013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4943 Ulrich Weigand <uweigand@de.ibm.com>
4944
4945 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4946 is defined.
4947 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4948 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4949 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4950 * configure.ac: Check for ptrace64.
4951 * configure, config.in: Regenerate.
4952
fecf803e
UW
49532013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4954 Ulrich Weigand <uweigand@de.ibm.com>
4955
4956 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4957 Call ptrace64 instead of ptrace if defined.
4958 Add macro addr_ptr to take care of ptrace address argument.
4959 (pdc_read_regs): Likewise.
4960 (pdc_write_regs): Likewise.
4961 (aix_thread_resume): Likewise.
4962 (fetch_regs_kernel_thread): Likewise.
4963 (store_regs_kernel_thread): Likewise.
4964
3bb5e4a8
AB
49652013-08-07 Anton Blanchard <anton@samba.org>
4966
4967 * MAINTAINERS: Add myself to Write After Approval.
4968
12070676
TT
49692013-08-05 Tom Tromey <tromey@redhat.com>
4970
4971 * aix-thread.c (_initialize_aix_thread): Use
4972 complete_target_initialization.
4973 * bsd-uthread.c (_initialize_bsd_uthread): Use
4974 complete_target_initialization.
4975 * dec-thread.c (_initialize_dec_thread): Use
4976 complete_target_initialization.
4977 * ravenscar-thread.c (_initialize_ravenscar): Use
4978 complete_target_initialization.
4979 * sol-thread.c (_initialize_sol_thread): Use
4980 complete_target_initialization.
4981 * spu-multiarch.c (_initialize_spu_multiarch): Use
4982 complete_target_initialization.
4983
7c7b6655
TT
49842013-08-05 Tom Tromey <tromey@redhat.com>
4985
4986 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4987 * ada-lang.c (ada_lookup_simple_minsym): Return
4988 bound_minimal_symbol.
4989 * ada-lang.h (ada_lookup_simple_minsym): Update.
4990 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4991 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4992 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4993 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4994 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4995 * minsyms.c (msymbol_objfile): Remove.
4996 (lookup_minimal_symbol_internal): New function, from
4997 lookup_minimal_symbol.
4998 (lookup_minimal_symbol): Rewrite using
4999 lookup_minimal_symbol_internal.
5000 (lookup_bound_minimal_symbol): New function.
5001 * minsyms.h (msymbol_objfile): Remove.
5002 (lookup_bound_minimal_symbol): Declare.
5003 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5004 * parse.c (write_exp_msymbol): Change parameter to a
5005 bound_minimal_symbol.
5006 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5007 * parser-defs.h (write_exp_msymbol): Update.
5008 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5009 * symfile.c (simple_read_overlay_table): Use
5010 lookup_bound_minimal_symbol.
5011 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5012 (search_symbols): Likewise.
5013 (print_msymbol_info): Take a bound_minimal_symbol argument.
5014 (symtab_symbol_info, rbreak_command): Update.
5015 * symtab.h (struct symbol_search) <msymbol>: Change type
5016 to bound_minimal_symbol.
5017 * valops.c (find_function_in_inferior): Use
5018 lookup_bound_minimal_symbol.
5019 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5020
934b9bac
JK
50212013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5022
5023 Code cleanup.
5024 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5025 to ...
5026 (async_cleanup_sigint_signal_handler): ... this.
5027 (initialize_sigint_signal_handler): Remove declaration.
5028 (handle_remote_sigint): Rename the declaration to ...
5029 (async_handle_remote_sigint): ... this.
5030 (handle_remote_sigint_twice): Rename the declaration to ...
5031 (async_handle_remote_sigint_twice): ... this.
5032 (async_remote_interrupt, async_remote_interrupt_twice)
5033 (remote_interrupt): Remove the declarations.
5034 (remote_interrupt_twice): Rename the declaration ...
5035 (sync_remote_interrupt_twice): ... this.
5036 (sigint_remote_twice_token): Rename the variable to ...
5037 (async_sigint_remote_twice_token): ... this.
5038 (sigint_remote_token): Rename the variable to ...
5039 (async_sigint_remote_token): ... this.
5040 (initialize_sigint_signal_handler): Rename the function to ...
5041 (async_initialize_sigint_signal_handler): ... this. Update the name
5042 inside.
5043 (handle_remote_sigint): Rename the function to ...
5044 (async_handle_remote_sigint): ... this. Update the names inside.
5045 (handle_remote_sigint_twice): Rename the function to ...
5046 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5047 (cleanup_sigint_signal_handler): Rename the function to ...
5048 (async_cleanup_sigint_signal_handler): ... this.
5049 (remote_interrupt): Rename the function to ...
5050 (sync_remote_interrupt): this. Update the names inside.
5051 (remote_interrupt_twice): Rename the function to ...
5052 (sync_remote_interrupt_twice): this. Update the names inside.
5053 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5054 (_initialize_remote): Update the names inside.
5055
3a1115a0
TT
50562013-08-02 Tom Tromey <tromey@redhat.com>
5057
5058 PR symtab/15719:
5059 * breakpoint.c (update_watchpoint, watchpoint_check)
5060 (watch_command_1): Update.
5061 * eval.c (fetch_subexp_value): Add "preserve_errors"
5062 parameter.
5063 * ppc-linux-nat.c (check_condition): Update.
5064 * value.h (fetch_subexp_value): Update.
5065
58b19776
AB
50662013-08-02 Andrew Burgess <aburgess@broadcom.com>
5067
5068 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5069 add_file_handler.
5070
ec94af83
DE
50712013-08-01 Doug Evans <dje@google.com>
5072
7ee85ab1
DE
5073 PR symtab/15691
5074 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5075 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5076 Add assert of sig_entry->dwo_unit == NULL.
5077 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5078 had already been read.
5079 (read_signatured_type): Set per_cu.tu_read.
5080
b846d303
DE
5081 PR symtab/15695
5082 * valops.c (value_struct_elt): Add missing call to check_typedef.
5083 (value_find_oload_method_list): Ditto.
5084
b52109bc
DE
5085 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5086 effectively, struct symbol_search **.
5087 (make_cleanup_free_search_symbols): Change arg to struct
5088 symbol_search **. All callers updated.
5089 (compare_search_syms): Compare symtab file name and block as well.
5090 (search_symbols_equal): New function.
5091 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5092 New args new_head, new_tail. Result is now void. Remove dups after
5093 sorting the symbols.
5094 (search_symbols): Sort all found symbols once, after all have been
5095 found, and remove duplicates. Simplify cleanup tracking of result.
5096 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5097
ec94af83
DE
5098 Further workarounds for binutils/15021.
5099 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5100 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5101 Watch for duplicate symtabs coming from type units.
5102 (compute_symtab_includes): Update call to
5103 recursively_compute_inclusions. Build vector of included symtabs
5104 instead of per_cus.
5105 * symtab.h (symtab_ptr): New typedef.
5106 (DEF_VEC_P (symtab_ptr)): New VEC type.
5107 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5108 instead.
5109
b2ae85cf
AB
51102013-08-01 Andrew Burgess <aburgess@broadcom.com>
5111
5112 * cli/cli-script.c (script_from_file): Remove use of
5113 error_pre_print.
5114 * main.c (captured_main): Remove use of error_pre_print and
5115 quit_pre_print.
5116 * utils.c (error_pre_print, quit_pre_print): Remove.
5117 * utils.h (error_pre_print, quit_pre_print): Likewise.
5118
645eab03
YQ
51192013-08-01 Yao Qi <yao@codesourcery.com>
5120
5121 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5122 with mi_getopt.
5123 (mi_cmd_stack_list_variables): Likewise.
5124
16f92dd4
AB
51252013-07-31 Andrew Burgess <aburgess@broadcom.com>
5126
5127 * exceptions.c (deprecated_throw_reason): Remove.
5128 * exceptions.h (deprecated_throw_reason): Remove.
5129
13f78033
AB
51302013-07-31 Andrew Burgess <aburgess@broadcom.com>
5131
5132 * remote-mips.c (mips_error): Replace use of
5133 deprecated_throw_reason with throw_verror. Use the error message
5134 passed to mips_error as the error message for throw_verror.
5135
039e3c22
AB
51362013-07-31 Andrew Burgess <aburgess@broadcom.com>
5137
5138 * monitor.c (monitor_interrupt_query): Replace use of
5139 deprecated_throw_reason with quit.
5140 * nto-procfs.c (interrupt_query): Likewise.
5141 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5142 * remote-mips.c (mips_kill): Likewise.
5143 * remote.c (interrupt_query): Likewise.
5144
8150913b
AB
51452013-07-31 Andrew Burgess <aburgess@broadcom.com>
5146
5147 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5148 with call to fatal.
5149
de74e63a
YQ
51502013-07-31 Pedro Alves <pedro@codesourcery.com>
5151 Yao Qi <yao@codesourcery.com>
5152
5153 * tracepoint.c (trace_dump_command): Select the current frame.
5154
247f5c4f
DE
51552013-07-30 Doug Evans <dje@google.com>
5156
5157 * dwarf2read.c (process_queue): Add type signature to debug output.
5158
11b4b7cc
AB
51592013-07-30 Andrew Burgess <aburgess@broadcom.com>
5160
5161 * value.c (value_fetch_lazy): Mark optimized out values as such
5162 rather than raising an error.
5163
b0c54aa5
AB
51642013-07-30 Andrew Burgess <aburgess@broadcom.com>
5165
5166 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5167 before checking which bits of the parent, not the child, value are
5168 valid.
5169
97c85fc6
MB
51702013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5171
5172 PR gdb/15715
5173 * top.c: Include "filenames.h".
5174 (set_history_filename): New function.
5175 (init_main): Install it as set hook of the "set history filename"
5176 command.
5177
ff39bb5e
SA
51782013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5179
5180 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5181 attribute parameter.
5182 (dwarf2_const_value_data): Constify struct attribute parameter.
5183 (dwarf2_const_value): Constify struct attribute parameter.
5184 (dwarf2_const_value_attr): Constify struct attribute parameter.
5185 (lookup_die_type): Constify struct attribute parameter.
5186 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5187 (follow_die_ref_or_sig): Constify struct attribute parameter.
5188 (follow_die_ref): Constify struct attribute parameter.
5189 (follow_die_sig): Constify struct attribute parameter.
5190 (get_DW_AT_signature_type): Constify struct attribute parameter.
5191 (get_type_unit_group): Constify struct attribute parameter.
5192 (fill_in_loclist_baton): Constify struct attribute parameter.
5193 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5194 (type_unit_group): Constify struct attribute parameter.
5195
6e5a29e1
SA
51962013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5197
5198 * dwarf2read.c (attr_form_is_block): Make argument const.
5199 (attr_form_is_section_offset): Make argument const.
5200 (attr_form_is_constant): Make argument const.
5201 (attr_form_is_ref): Make argument const.
5202
7771576e
SA
52032013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5204
5205 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5206 All uses updated.
5207 (attr_form_is_ref): Moved below attr_form_is_constant.
5208
a94e8645
DE
52092013-07-29 Doug Evans <dje@google.com>
5210
bb5291d0
DE
5211 * main.c (captured_command_loop): Tweak comment.
5212
b5419e49
DE
5213 * target.c (target_async_permitted_1): Fix comment.
5214
b2d23133
DE
5215 * symtab.c (iterate_over_some_symtabs): Add comment.
5216
a94e8645
DE
5217 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5218
7a60ad40
YQ
52192013-07-27 Yao Qi <yao@codesourcery.com>
5220
5221 * NEWS: Mention that GDBserver now supports hardware
5222 watchpoints on the MIPS GNU/Linux target.
5223
aaee2056
YQ
52242013-07-27 Yao Qi <yao@codesourcery.com>
5225
5226 * Makefile.in (HFILES_NO_SRCDIR): Add
5227 common/mips-linux-watch.h.
5228 (mips-linux-watch.o): New rule.
5229 * common/mips-linux-watch.c: New.
5230 * common/mips-linux-watch.h: New.
5231 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5232 * mips-linux-nat.c: Include mips-linux-watch.h.
5233 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5234 to common/mips-linux-watch.h.
5235 (MAX_DEBUG_REGISTER): Likewise.
5236 (enum pt_watch_style): Likewise.
5237 (struct mips32_watch_regs): Likewise.
5238 (struct mips64_watch_regs): Likewise.
5239 (struct pt_watch_regs): Likewise.
5240 (struct mips_watchpoint): Likewise.
5241 (mips_linux_watch_get_irw_mask): Move to
5242 common/mips-linux-watch.c.
5243 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5244 (mips_linux_watch_get_watchlo): Likewise.
5245 (mips_linux_watch_set_watchlo): Likewise.
5246 (mips_linux_watch_get_watchhi): Likewise.
5247 (mips_linux_watch_set_watchhi): Likewise.
5248 (mips_linux_read_watch_registers): Likewise.
5249 (mips_linux_watch_type_to_irw): Likewise.
5250 (mips_linux_stopped_data_address, fill_mask): Likewise.
5251 (mips_linux_watch_try_one_watch): Likewise.
5252 (mips_linux_watch_populate_regs): Likewise.
5253
b3436450
YQ
52542013-07-27 Yao Qi <yao@codesourcery.com>
5255
5256 * mips-linux-nat.c (get_irw_mask): Rename to ...
5257 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5258 'set' to 'n'. Update function comment. All callers changed.
5259 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5260 function comment. All callers changed.
5261 (get_num_valid): Rename to ...
5262 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5263 'set' to 'n'. Update function comment. All callers changed.
5264 (get_watchlo): Rename to ...
5265 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5266 'set' to 'n'. Update function comment. All callers changed.
5267 (set_watchlo): Rename to ...
5268 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5269 'set' to 'n'. Update function comment. All callers changed.
5270 (get_watchhi): Rename to ...
5271 (mips_linux_watch_get_watchhi): ... this. Update function
5272 comment. All callers changed.
5273 (set_watchhi): Rename to ...
5274 (mips_linux_watch_set_watchhi): ... this. Update function
5275 comment. All callers changed.
5276 (mips_linux_read_watch_registers): Update function comment.
5277 Add new parameters 'lwpid', 'watch_readback', and
5278 'watch_readback_valid'. Update.
5279 (type_to_irw): Rename to ...
5280 (mips_linux_watch_type_to_irw): ... this. Update function
5281 comment. All callers changed.
5282 (fill_mask): Update function comment.
5283 (try_one_watch): Rename to ...
5284 (mips_linux_watch_try_one_watch): ... this. Change the type
5285 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5286 (populate_regs_from_watches): Rename to ...
5287 (mips_linux_watch_populate_regs): ... this. Add parameter
5288 'current_watches'. All callers changed.
5289
9be14b81
YQ
52902013-07-27 Yao Qi <yao@codesourcery.com>
5291
5292 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5293 the code.
5294 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5295 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5296 (struct pt_watch_regs): Likewise.
5297 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5298 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5299 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5300 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5301 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5302
de6f69ad
YQ
53032013-07-27 Yao Qi <yao@codesourcery.com>
5304
5305 * breakpoint.h: Include break-common.h.
5306 (enum target_hw_bp_type): Move to ...
5307 * common/break-common.h: ... here. New.
5308
6f64ef53
PA
53092013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5310
5311 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5312 process group regardless of having tty on stdin.
5313
6107e809
DE
53142013-07-25 Doug Evans <dje@google.com>
5315
5316 * linux-fork.h (detach_fork): Delete.
5317
7fdc1521
TT
53182013-07-25 Tom Tromey <tromey@redhat.com>
5319
5320 PR remote/15256, PR remote/15266:
5321 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5322 * monitor.c (monitor_detach): Use unpush_target.
5323 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5324 * remote-mips.c (mips_detach): Use unpush_target. Don't
5325 call mips_close.
5326 * remote-sim.c (gdbsim_detach): Use unpush_target.
5327 * target.c (pop_target): Remove.
5328 (pop_all_targets_above): Don't call target_close.
5329 (target_close): Assert that the target is unpushed.
5330 * target.h (pop_target): Don't declare.
5331 * tracepoint.c (tfile_open): Use unpush_target.
5332
c22a2b88
TT
53332013-07-25 Tom Tromey <tromey@redhat.com>
5334
5335 * linux-thread-db.c (init_thread_db_ops): Call
5336 complete_target_initialization.
5337 (_initialize_thread_db): Don't call add_target.
5338 * target.c (complete_target_initialization): New function.
5339 (add_target_with_completer): Call it.
5340 * target.h (complete_target_initialization): Declare.
5341
cbb6aada
MK
53422013-07-25 Mark Kettenis <kettenis@gnu.org>
5343
5344 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5345 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5346 (HPPANBSD_SIZEOF_GREGS): New define.
5347 (hppaobsd_supply_gregset): Handle additional registers.
5348 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5349 we provide more registers now.
5350 (hppabsd_supply_gregset): Supply additional registers.
5351 (hppabsd_collect_gregset): Collect additional registers.
5352
17767988
MK
53532013-07-25 Mark Kettenis <kettenis@gnu.org>
5354
5355 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5356 (hppabsd_dwarf2_frame_init_reg): New function.
5357 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5358
fdc8aae8
AB
53592013-07-25 Andrew Burgess <aburgess@broadcom.com>
5360
5361 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5362 'z' format code. Remove error for optimized out values, standard
5363 code will handle these fine.
5364
6fbe845e
AB
53652013-07-25 Andrew Burgess <aburgess@broadcom.com>
5366
5367 * NEWS: Mention new 'z' formatter.
5368 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5369 (_initialize_printcmd): Mention 'z' formatter in help text of the
5370 'x' command.
5371
3373342d
MR
53722013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5373
5374 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5375 formatting.
5376
25f9533e
SDJ
53772013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5378
5379 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5380 interface can evaluate arguments. Fallback to the old mode if it
5381 cannot.
5382 (create_exception_master_breakpoint): Likewise.
5383 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5384 (struct sym_probe_fns elf_probe_fns): Export function above to the
5385 probe interface.
5386 * probe.c (can_evaluate_probe_arguments): New function.
5387 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5388 function pointer.
5389 (can_evaluate_probe_arguments): New function prototype.
5390 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5391 probe interface can evaluate arguments. Fallback to the old mode
5392 if it cannot.
5393 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5394 interface can evaluate arguments. Warning the user if it cannot.
5395 (stap_can_evaluate_probe_arguments): New function.
5396 (struct probe_ops stap_probe_ops): Export function above to the
5397 probe interface.
5398 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5399 New function pointer.
5400
3360c0bf
LM
54012013-07-24 Luis Machado <lgustavo@codesourcery.com>
5402
5403 * Makefile.in (SFILES): Add common/target-common.c.
5404 Add common/target-common.h to headers.
5405 (COMMON_OBS): Add target-common.o.
5406 (target-common.o): New target.
5407 * linux-nat.h (resume_kind): Move to common/target-common.h.
5408 * target.c (target_waitstatus_to_string): Move to
5409 common/target-common.c.
5410 * target.h: Include target-common.h.
5411 (target_waitkind): Move to common/target-common.h.
5412 (target_waitstatus): Likewise.
5413 (TARGET_WNOHANG): Likewise.
5414 * common/target-common.c: New file.
5415 * common/target-common.h: New file.
5416
6656a72d
DE
54172013-07-24 Doug Evans <dje@google.com>
5418
5419 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5420 a warning.
5421
6df81a63
YQ
54222013-07-23 Yao Qi <yao@codesourcery.com>
5423
5424 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5425 parameter 'gdbarch'.
5426 (i386_stack_tramp_frame_sniffer): Caller update.
5427 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5428 parameter 'gdbarch' and 'target'.
5429 (i386_linux_core_read_description): Caller update.
5430 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5431 Likewise.
5432 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5433 declaration.
5434
365156ad
TT
54352013-07-23 Tom Tromey <tromey@redhat.com>
5436
5437 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5438 2013-07-22.
5439
046ac79f
JK
54402013-07-22 Doug Evans <dje@google.com>
5441
5442 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5443 * exec.c (exec_close): Update call to remove_target_sections.
5444 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5445 * solib.c (update_solib_list): Ditto.
5446 (reload_shared_libraries_1): Ditto.
5447 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5448 * target.h (struct target_section): Rename key to owner.
5449 All uses updated.
046ac79f 5450
29b2cc46
TT
54512013-07-22 Tom Tromey <tromey@redhat.com>
5452
5453 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5454
d1160018
TT
54552013-07-22 Tom Tromey <tromey@redhat.com>
5456
5457 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5458 Simplify cleanup handling.
5459
2f324bf6
TT
54602013-07-22 Tom Tromey <tromey@redhat.com>
5461
5462 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5463 on all return paths.
5464
e23b9d6e
UW
54652013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5466
5467 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5468 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5469 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5470
1cf55f60
PM
54712013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5472
5473 * top.c (print_gdb_version): Add help, apropos description and
5474 url to online documentation.
5475
fa876972
HZ
54762013-07-19 Hui Zhu <hui@codesourcery.com>
5477
5478 PR gdb/15692
5479 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5480
1527aea8
YQ
54812013-07-19 Yao Qi <yao@codesourcery.com>
5482
5483 * target.c (update_current_target): Change the default action
5484 of 'to_traceframe_info' from tcomplain to return_zero.
5485 * target.h (struct target_ops) <to_traceframe_info>: Add more
5486 comments.
5487 * valops.c (read_value_memory): Call
5488 traceframe_available_memory unconditionally.
5489
886f230e
YQ
54902013-07-18 Yao Qi <yao@codesourcery.com>
5491
5492 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5493 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5494 symbol without prefix. If found, set its type to
5495 'mst_solib_trampoline'.
5496
16419bae
DE
54972013-07-17 Doug Evans <dje@google.com>
5498
e7045703
DE
5499 * NEWS: Mention "set print raw frame-arguments".
5500 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5501 * stack.c (print_raw_frame_arguments): New static global.
5502 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5503 (_initialize_stack): New command "set/show print raw frame-arguments".
5504 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5505 (set_print_raw, show_print_raw): New functions.
5506 (_initialize_valprint): New prefix command "set/show print raw".
5507 * valprint.h (value_print_options): Improve comments.
5508
453e48a5
DE
5509 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5510 of all *list variables.
5511
16419bae
DE
5512 * gdbcmd.h (togglelist): Delete.
5513 * cli/cli-cmds.c (togglelist): Delete.
5514 (init_cmd_lists): Update.
5515 * cli/cli-cmds.h (togglelist): Delete.
5516
626f2d1c
TT
55172013-07-17 Tom Tromey <tromey@redhat.com>
5518
5519 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5520 dwarf2_per_objfile.
5521
57e6060e
DE
55222013-07-16 Doug Evans <dje@google.com>
5523
5524 * nto-tdep.c (nto_relocate_section_addresses): Update,
5525 target_section.bfd deleted.
5526 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5527 * s390-tdep.c (s390_load): Ditto.
5528 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5529
5ea5559b
AB
55302013-07-16 Andrew Burgess <aburgess@broadcom.com>
5531
5532 * common/format.c (parse_format_string): Add checks for NULL
5533 character before calling strchr.
5534
2b2848e2
DE
55352013-07-16 Doug Evans <dje@google.com>
5536
2c571006
DE
5537 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5538 temp_pathname argument.
5539 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5540 when opening the file fails.
5541
2b2848e2
DE
5542 * target.h (struct target_section): Delete member bfd.
5543 All users updated to use the_bfd_section->owner instead.
5544 * exec.c (add_to_section_table): Assert bfd is expected value.
5545 Remove initialization of target_section.bfd.
5546 (remove_target_sections): Update.
5547 (section_table_available_memory): Update.
5548 (section_table_xfer_memory_partial): Update.
5549 (print_section_info): Update.
5550 (exec_set_section_address): Update.
5551 * record-full.c (record_full_core_xfer_partial): Update.
5552 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5553 * solib-target.c (solib_target_relocate_section_addresses): Update.
5554 * symfile.c (build_section_addr_info_from_section_table): Update.
5555 * target.c (memory_xfer_live_readonly_partial): Update.
5556 (memory_xfer_partial_1): Update.
5557
926bf92d
UW
55582013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5559
5560 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5561 now available for embedded (BookE) and server (BookS) processors,
5562 correct mentions of 'booke' and adjust comments accordingly in order to
5563 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5564 (have_ptrace_booke_interface): Rename function and variable
5565 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5566 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5567 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5568 'hwdebug_point_cmp'. Update all uses.
5569 (booke_find_thread_points_by_tid): Rename function
5570 'booke_find_thread_points_by_tid' to
5571 'hwdebug_find_thread_points_by_tid'. Update all uses.
5572 (booke_insert_point): Rename function 'booke_insert_point' to
5573 'hwdebug_insert_point'. Update all uses.
5574 (booke_remove_point): Rename function 'booke_remove_point' to
5575 'hwdebug_remove_point'. Update all uses.
5576
d929bc19
MR
55772013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5578
5579 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5580 numbers with enum values.
5581
054e8d9e
AA
55822013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5583
5584 PR threads/13217
5585 * thread.c (thread_apply_all_command): Check for valid threads
5586 and thread count.
5587 (thread_array_cleanup): New struct.
5588 (set_thread_refcount): New function.
5589
cf006359
AB
55902013-07-11 Andrew Burgess <aburgess@broadcom.com>
5591
5592 * infcmd.c (default_print_one_register_info): Reuse function
5593 print_hex_chars.
5594
94e36acc
TT
55952013-07-10 Tom Tromey <tromey@redhat.com>
5596
5597 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5598 (ada-exp.o): New target.
5599
915dd369
SDJ
56002013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5601
5602 * mt-tdep.c (mt_registers_info): Call
5603 get_no_prettyformat_print_options instead of
5604 get_raw_print_options (regression by last patch from Doug
5605 Evans).
5606
eca07816
JB
56072013-07-09 Pedro Alves <palves@redhat.com>
5608
5609 Checked in by Joel Brobecker <brobecker@adacore.com>.
5610 * ada-lang.c (coerce_unspec_val_to_type): Use
5611 value_optimized_out_const.
5612 * value.c (value_optimized_out_const): New function.
5613 * value.h (value_optimized_out_const): New declaration.
5614
2a998fc0
DE
56152013-07-09 Doug Evans <dje@google.com>
5616
5617 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5618 Enum values rename as well. All uses updated.
5619 * valprint.h (value_print_options): Rename member pretty to
5620 pretty format. Rename member prettyprint_arrays to
5621 prettyformat_arrays. Rename member prettyprint_structs to
5622 prettyformat_structs. All uses updated.
5623 (get_no_prettyformat_print_options): Renamed from
5624 get_raw_print_options.
5625 * valprint.c (get_no_prettyformat_print_options): Renamed from
5626 get_raw_print_options. All callers updated.
5627 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5628 All callers updated.
5629 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5630 All callers updated.
5631 (_initialize_valprint): Improve help text for "set print pretty" and
5632 "set print arrays".
5633
466c1fca
AB
56342013-07-09 Andrew Burgess <aburgess@broadcom.com>
5635
5636 * value.c (value_bits_valid): Revert previous change, and change
5637 by Pedro on 2013-07-04, due to regressions in
5638 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5639
ad0f0303
AB
56402013-07-08 Andrew Burgess <aburgess@broadcom.com>
5641 Pedro Alves <palves@redhat.com>
5642
5643 * value.c (value_bits_valid): If the value is not lval_computed
5644 or has no check validity handler then the answer is the
5645 optimized_out flag, otherwise defer to the handler.
5646
b187bec1
EZ
56472013-07-06 Eli Zaretskii <eliz@gnu.org>
5648
48d1d6f5
EZ
5649 * top.c (print_gdb_configuration): Explain in output of
5650 --configuration what does "relocatable" mean.
5651
b187bec1
EZ
5652 * main.c (print_gdb_help): Regroup options in the --help text.
5653 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5654 the relevant discussions.
5655
52d361e1
YQ
56562013-07-06 Yao Qi <yao@codesourcery.com>
5657
5658 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5659 Remove parameter 'lsal'.
5660 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5661 to inner block. Caller update.
5662 (base_breakpoint_create_breakpoints_sal): Update.
5663 (bkpt_create_breakpoints_sal): Likewise.
5664 (tracepoint_create_breakpoints_sal): Likewise.
5665 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5666 element 0 of vector 'canonical->sals'.
5667
e1ec1b42
LM
56682013-07-05 Luis Machado <lgustavo@codesourcery.com>
5669
5670 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5671 register number instead of the pseudo register one.
5672 (rs6000_dwarf2_reg_to_regnum): Likewise.
5673
7195e6f0
PA
56742013-07-04 Pedro Alves <palves@redhat.com>
5675
5676 * findvar.c (value_of_register): Use allocate_optimized_out_value
5677 if the register has been optimized out, instead of
5678 set_value_optimized_out.
5679 * frame-unwind.c (frame_unwind_got_optimized): Use
5680 allocate_optimized_out_value.
5681
58722cac
PA
56822013-07-04 Pedro Alves <palves@redhat.com>
5683
5684 * value.c (value_bits_valid): If the value is not lval_computed,
5685 or doesn't have a check_validity hook, assume the value is entirely
5686 valid.
5687
691a26f5
AB
56882013-07-04 Andrew Burgess <aburgess@broadcom.com>
5689
5690 * stack.c (read_frame_arg): No longer fetch lazy values.
5691 * value.c (value_optimized_out): If the value is not already
5692 marked optimized out, and is lazy then fetch it.
5693 (value_primitive_field): Move optimized out check to later in the
5694 function, after we have loaded any lazy values.
5695 (value_fetch_lazy): Use optimized out flag directly rather than
5696 calling optimized_out method.
5697
a58e2656
AB
56982013-07-04 Andrew Burgess <aburgess@broadcom.com>
5699
5700 * valops.c: Don't include "user-regs.h".
5701 (value_fetch_lazy): Moved to value.c.
5702 * value.c: Include "user-regs.h".
5703 (value_fetch_lazy): Moved from valops.c.
5704
bd885420
YQ
57052013-07-04 Yao Qi <yao@codesourcery.com>
5706
5707 Revert:
5708 2013-06-27 Yao Qi <yao@codesourcery.com>
5709
5710 * common/create-version.sh: Update comments. Handle the case
5711 that TARGET_ALIAS is empty.
5712
17ef446e
PA
57132013-07-03 Pedro Alves <palves@redhat.com>
5714
5715 * Makefile.in (config.status): Depend on development.sh.
5716 (aclocal_m4_deps): Add libmcheck.m4.
5717 * acinclude.m4: Include libmcheck.m4.
5718 * configure.ac: Source development.sh instead of setting
5719 'development' here. --enable-libmcheck/--disable-libmcheck code
5720 factored out to GDB_AC_LIBMCHECK. Run it.
5721 * development.sh: New file.
5722 * libmcheck.m4: New file.
5723 * configure: Regenerate.
5724
ac6dd50f
TT
57252013-07-02 Tom Tromey <tromey@redhat.com>
5726
5727 * contrib/ari/update-web-ari.sh: Update for version.in change.
5728
bd1df410
TT
57292013-07-02 Tom Tromey <tromey@redhat.com>
5730
5731 * common/ptid.h: Comment fixes.
5732
4db1a1dc
TT
57332013-07-01 Tom Tromey <tromey@redhat.com>
5734
5735 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5736 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5737 (dwarf2_read_index, create_all_comp_units): Update.
5738
dd9aa048
TT
57392013-07-01 Tom Tromey <tromey@redhat.com>
5740
5741 * configure.ac (build_warnings): Add -Wold-style-definition.
5742 * configure: Rebuild.
5743 * machoread.c (_initialize_machoread): Use "(void)".
5744 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5745 use "(void)".
5746
44d100c3
TT
57472013-07-01 Tom Tromey <tromey@redhat.com>
5748
5749 * configure.ac (build_warnings): Add -Wold-style-declaration.
5750 * configure: Rebuild.
5751 * dsrec.c (make_srec): Use "static const", not "const static".
5752 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5753 not "const static".
5754 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5755 Use "static const", not "const static".
5756 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5757 not "const static".
5758 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5759 not "const static".
5760 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5761 not "const static".
5762 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5763 not "const static".
5764 (v850_dbtrap_breakpoint_from_pc): Likewise.
5765 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5766 not "const static".
5767
2945b807
TT
57682013-07-01 Tom Tromey <tromey@redhat.com>
5769
5770 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5771 * configure: Rebuild.
5772
d8d2a3ee
PA
57732013-07-01 Pedro Alves <palves@redhat.com>
5774
5775 * defs.h: Include "pathmax.h".
5776 * utils.c: Don't include sys/param.h.
5777 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5778 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5779 instead of MAXPATHLEN.
5780 * solib-sunos.c: Don't include sys/param.h.
5781 * xcoffread.c: Don't include sys/param.h.
5782 * bsd-kvm.c: Don't include sys/param.h.
5783 * darwin-nat.c: Don't include sys/param.h.
5784 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5785 * darwin-nat-info.c: Don't include sys/param.h.
5786 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5787 MAXPATHLEN.
5788 * i386obsd-nat.c: Don't include sys/param.h.
5789 * inf-child.c: Don't include sys/param.h.
5790 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5791 * linux-fork.c: Don't include sys/param.h.
5792 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5793 * linux-nat.c: Don't include sys/param.h.
5794 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5795 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5796 * m68klinux-nat.c: Don't include sys/param.h.
5797 * nbsd-nat.c: Don't include sys/param.h.
5798 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5799 * ppc-linux-nat.c: Don't include sys/param.h.
5800 * rs6000-nat.c: Don't include sys/param.h.
5801 * spu-linux-nat.c. Don't include sys/param.h.
5802 * windows-nat.c: Don't include sys/param.h.
5803 * xtensa-linux-nat.c: Don't include sys/param.h.
5804 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5805
38ec2207
PA
58062013-07-01 Pedro Alves <palves@redhat.com>
5807
5808 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5809 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5810 * gnulib/aclocal.m4: Regenerate.
5811 * gnulib/config.in: Regenerate.
5812 * gnulib/configure: Regenerate.
5813 * gnulib/import/pathmax.h: New file.
5814 * gnulib/import/Makefile.am: Regenerate.
5815 * gnulib/import/Makefile.in: Regenerate.
5816 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5817 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5818 * gnulib/import/m4/pathmax.m4: New file.
5819
e655c1a2
PA
58202013-07-01 Pedro Alves <palves@redhat.com>
5821
5822 * configure.ac (GDBINIT): Define, depending on host.
5823 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5824 * top.c (PATH_MAX): Delete fallback definition.
5825 (GDBINIT_FILENAME): Delete.
5826 (gdbinit): Reimplement as const char array set to the GDBINIT
5827 string constant.
5828 * top.h (gdbinit): Make const.
5829 * configure, config.in: Regenerate.
5830
50dd9793
PA
58312013-07-01 Pedro Alves <palves@redhat.com>
5832
5833 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5834 * cli/cli-cmds.h (source_script): Likewise.
5835 * exceptions.c (catch_command_errors_const): New function.
5836 * exceptions.h (catch_command_errors_const): Declare.
5837 * main.c (get_init_files): Make parameters const, and adjust.
5838 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5839 'local_gdbinit' locals const. Adjust to use
5840 catch_command_errors_const.
5841 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5842 'local_gdbinit' locals const.
5843
bc7dea8d
PA
58442013-07-01 Pedro Alves <palves@redhat.com>
5845
5846 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5847 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5848 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5849 <unistd.h>.
5850
8839a007
PA
58512013-07-01 Pedro Alves <palves@redhat.com>
5852
5853 Import the "unistd" gnulib module.
5854 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5855 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5856 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5857 import/m4/unistd_h.m4.
5858 * gnulib/aclocal.m4: Renenerate.
5859 * gnulib/config.in: Renenerate.
5860 * gnulib/configure: Renenerate.
5861 * gnulib/import/Makefile.am: Renenerate.
5862 * gnulib/import/Makefile.in: Renenerate.
5863 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5864 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5865 * gnulib/import/m4/off_t.m4: New file.
5866 * gnulib/import/m4/ssize_t.m4: New file.
5867 * gnulib/import/m4/sys_types_h.m4: New file.
5868 * gnulib/import/m4/unistd_h.m4: New file.
5869 * gnulib/import/sys_types.in.h: New file.
5870 * gnulib/import/unistd.c: New file.
5871 * gnulib/import/unistd.in.h: New file.
5872
8c0da261
PA
58732013-07-01 Pedro Alves <palves@redhat.com>
5874
5875 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5876 defined instead of checking HAVE_UNISTD_H.
5877
3574124b
PA
58782013-07-01 Pedro Alves <palves@redhat.com>
5879
5880 Reimport gnulib from scratch.
5881 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5882 import/m4/onceonly.m4.
5883 * gnulib/aclocal.m4: Renegerate.
5884 * gnulib/config.in: Renegerate.
5885 * gnulib/configure: Renegerate.
5886 * gnulib/import/Makefile.in: Renegerate.
5887 * gnulib/import/extra/update-copyright: Renegerate.
5888 * gnulib/import/m4/onceonly.m4: Delete.
5889
702dc4fd
PA
58902013-07-01 Pedro Alves <palves@redhat.com>
5891
5892 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5893
47e1ce27
JK
58942013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5895
5896 Code cleanup.
5897 * remote.c (async_remote_interrupt_twice): Make it static.
5898 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5899
e82839d4
SDJ
59002013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5901
5902 * ia64-linux-tdep.c: Include <ctype.h>.
5903 (ia64_linux_stap_is_single_operand): New function.
5904 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5905
d6c2da54
TT
59062013-06-28 Tom Tromey <tromey@redhat.com>
5907
5908 * Makefile.in (version.c): Use version.in, not
5909 common/version.in.
5910 * common/create-version.sh: Likewise.
5911 * common/version.in: Move...
5912 * version.in: ...here.
5913
74da6f00
PA
59142013-06-28 Pedro Alves <palves@redhat.com>
5915
5916 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5917 here.
5918 * utils.h (pagination_enabled): Declare.
5919
d32dc48e
PA
59202013-06-28 Pedro Alves <palves@redhat.com>
5921
5922 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5923 Move higher up in file.
5924
0edd9e3b
TT
59252013-06-28 Tom Tromey <tromey@redhat.com>
5926
5927 * tracepoint.c (deprecated_readline_begin_hook)
5928 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5929 declare.
5930
4eb59108
PA
59312013-06-28 Pedro Alves <palves@redhat.com>
5932
5933 PR tui/14880
5934 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5935 checking if they're available.
5936 * value.c (value_available_contents_eq): Change comment.
5937 * value.h (value_available_contents_eq): Expand comment.
5938
97b17156
TT
59392013-06-27 Tom Tromey <tromey@redhat.com>
5940
5941 * target.c (find_run_target): Remove.
5942 * target.h (find_run_target): Remove.
5943
6a3bfc5c
TT
59442013-06-27 Tom Tromey <tromey@redhat.com>
5945
5946 * corelow.c (core_gdbarch): Now static.
5947
c9ef825d
TT
59482013-06-27 Tom Tromey <tromey@redhat.com>
5949
5950 * target.c (target_struct_index): Remove.
5951
e5823f1c
PA
59522013-06-27 Pedro Alves <palves@redhat.com>
5953
5954 * infrun.c: Remove comment describing the 'stepping over runtime
5955 loader dynamic symbol resolution code' mechanism; moved to
5956 gdbint.texinfo.
5957
97f8dd09
PA
59582013-06-27 Pedro Alves <palves@redhat.com>
5959
5960 * exceptions.c (catch_command_errors): Remove spurious space.
5961 * exceptions.h (catch_command_errors): Second parameter is "arg",
5962 not "command".
5963
02b1871e
YQ
59642013-06-27 Yao Qi <yao@codesourcery.com>
5965
5966 * common/create-version.sh: Update comments. Handle the case
5967 that TARGET_ALIAS is empty.
5968
bb1b1cf1
PA
59692013-06-26 Pedro Alves <palves@redhat.com>
5970
5971 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5972 comment.
5973
7b624e71
PA
59742013-06-26 Pedro Alves <palves@redhat.com>
5975
5976 * infrun.c: Update comments on stepping over runtime loader
5977 dynamic symbol resolution code.
5978
74e5a346
SDJ
59792013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5980
5981 * ax-gdb.h (union exp_element): Forward declare.
5982 * parser-defs.h: Include expression.h.
5983
a2fb2cee
MR
59842013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5985
5986 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5987
cdba14e0
DK
59882013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5989
5990 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5991
f30aa5af
DK
59922013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5993
5994 Fix trace-status to output proper start-time and stop-time.
5995 * tracepoint.c (trace_status_command): Fix type of printf arg to
5996 prevent improper type conversion.
5997 (trace_status_mi): Likewise.
5998
1aee363c
MR
59992013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6000
6001 * mips-tdep.c (mips_next_pc): Fix a typo.
6002
3356937a
MR
60032013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6004
6005 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6006
dc673c81
YQ
60072013-06-26 Pedro Alves <pedro@codesourcery.com>
6008 Yao Qi <yao@codesourcery.com>
6009
6010 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6011 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6012 * mi/mi-main.c (print_variable_or_computed): New function.
6013 (mi_cmd_trace_frame_collected): New function.
6014 * tracepoint.c (find_trace_state_variable_by_number): New.
6015 (struct traceframe_info): Move to tracepoint.h
6016 (struct collection_list): Likewise.
6017 (do_collect_symbol): Include locals and arguments in the
6018 collected variables list.
6019 (clear_collection_list): Clear wholly collected variables list
6020 and computed variables list.
6021 (append_exp): New function.
6022 (encode_actions_1): Include variables in the wholly
6023 collected variables list. Include memory ranges and
6024 full-fledged expressions in the computed expressions list.
6025 (encode_actions): Move some code to ...
6026 Return the cleanup chain.
6027 (encode_actions_rsp): ... here. New function.
6028 (get_traceframe_location, get_traceframe_info): Remove static.
6029 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6030 (struct collection_list): Moved from tracepoint.c. Add two
6031 new fields 'wholly_collected' and 'computed'.
6032 (find_trace_state_variable_by_number): Declare.
6033 (encode_actions): Adjust declaration.
6034 (encode_actions_rsp): Declare.
6035 (get_traceframe_info, get_traceframe_location): Declare.
6036
6037 * NEWS: Mention new MI command -trace-frame-collected.
6038
28a93511
YQ
60392013-06-26 Pedro Alves <pedro@codesourcery.com>
6040 Yao Qi <yao@codesourcery.com>
6041
6042 * ctf.c (ctf_traceframe_info): Push trace state variables
6043 present in the trace data into the traceframe info object.
6044 * breakpoint.c (DEF_VEC_I): Remove.
6045 * common/filestuff.c (DEF_VEC_I): Likewise.
6046 * dwarf2loc.c (DEF_VEC_I): Likewise.
6047 * mi/mi-main.c (DEF_VEC_I): Likewise.
6048 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6049 * features/traceframe-info.dtd: Add tvar element and its
6050 attributes.
6051 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6052 (build_traceframe_info): Push trace state variables present in
6053 the trace data into the traceframe info object.
6054 (traceframe_info_start_tvar): New function.
6055 (tvar_attributes): New.
6056 (traceframe_info_children): Add "tvar" element.
6057 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6058
6059 * NEWS: Mention the change in GDB and GDBserver.
6060
ddacd3c8
YQ
60612013-06-26 Pedro Alves <pedro@codesourcery.com>
6062 Yao Qi <yao@codesourcery.com>
6063
6064 * tracepoint.c (trace_dump_command): Move code to ...
6065 (get_traceframe_location): ... here. New.
6066
05796b35
YQ
60672013-06-26 Pedro Alves <pedro@codesourcery.com>
6068 Yao Qi <yao@codesourcery.com>
6069
6070 * tracepoint.c (trace_dump_command): GDB emits an error
6071 instead of a warning when a traceframe is not selected.
6072
cbfa3b61
YQ
60732013-06-26 Pedro Alves <pedro@codesourcery.com>
6074 Yao Qi <yao@codesourcery.com>
6075
6076 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6077 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6078 in collection_list.
6079 (do_clear_collection_list, init_collection_list): New.
6080 (encode_actions): Add local variables 'tracepoint_list' and
6081 'stepping_list'. Call init_collection_list and make cleanup
6082 which calls do_clear_collection_list. Don't call
6083 clear_collection_list.
6084 (_initialize_tracepoint): Delete references to
6085 'tracepoint_list' and 'stepping_list'.
6086
6e2048d3
TT
60872013-06-25 Tom Tromey <tromey@redhat.com>
6088
6089 * common/create-version.sh (date): Use "$", not "$$" in sed
6090 expression.
6091
42059f0e
KB
60922013-06-25 Kevin Buettner <kevinb@redhat.com>
6093
6094 * NEWS (New targets): Add entry for TI MSP430.
6095
a0743c90
YQ
60962013-06-25 Yao Qi <yao@codesourcery.com>
6097
6098 * remote.c (remote_start_remote): Move code to upload tsv
6099 earlier.
6100
9d6e6e84
HZ
61012013-06-25 Yao Qi <yao@codesourcery.com>
6102 Hui Zhu <hui@codesourcery.com>
6103 Pedro Alves <palves@redhat.com>
6104
6105 PR breakpoints/15075
6106 PR breakpoints/15434
6107 * breakpoint.c (bpstat_stop_status): Call
6108 b->ops->after_condition_true.
6109 (update_dprintf_command_list): Don't append "continue" command
6110 to the command list of dprintf breakpoint.
6111 (base_breakpoint_after_condition_true): New function.
6112 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6113 (dprintf_after_condition_true): New function.
6114 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6115 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6116
586cf749
KB
61172013-06-24 Kevin Buettner <kevinb@redhat.com>
6118
6119 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6120 (ALLDEPFILES): Add msp430-tdep.c.
6121 * configure.tgt (msp430*-*-elf): New target.
6122 * msp430-tdep.c: New file.
6123
1bbce132
MR
61242013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6125
6126 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6127 microMIPS synthetic symbols.
6128
3e5d3a5a
MR
61292013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6130
6131 * objfiles.h (pc_in_section): New prototype.
6132 (in_plt_section): Remove name argument, replace prototype with
6133 static inline function.
6134 * mips-tdep.h: Include "objfiles.h".
6135 (in_mips_stubs_section): New function.
6136 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6137 in_solib_call_trampoline member.
6138 (hppa_in_solib_call_trampoline): Remove name argument.
6139 * objfiles.c (pc_in_section): New function.
6140 (in_plt_section): Remove function.
6141 * mips-linux-tdep.c: Include "objfiles.h".
6142 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6143 name argument. Return 1 rather than the low 16-bit halfword of
6144 any instruction examined.
6145 (mips_linux_in_dynsym_resolve_code): Update
6146 mips_linux_in_dynsym_stub call accordingly.
6147 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6148 rather than an equivalent hand-coded sequence.
6149 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6150 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6151 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6152 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6153 in_opd_section.
6154 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6155 on call to tdep->in_solib_call_trampoline.
6156 (hppa_in_solib_call_trampoline): Remove name argument, update
6157 according to in_plt_section change.
6158 (hppa_skip_trampoline_code): Update according to in_plt_section
6159 change.
6160 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6161 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6162 Likewise.
6163 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6164 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6165 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6166 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6167 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6168 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6169 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6170 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6171 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6172 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6173 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6174 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6175 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6176
b9b26a16
JB
61772013-06-24 Joel Brobecker <brobecker@adacore.com>
6178
6179 * common/create-version.sh: Fix expansion of $host_alias
6180 and $target_alias in generation of HOST_NAME and TARGET_NAME
6181 (resp.).
6182
01208463
TT
61832013-06-24 Tom Tromey <tromey@redhat.com>
6184
6185 * common/create-version.sh: New file.
6186 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6187 create-version.sh.
6188 (HFILES_NO_SRCDIR): Use common/version.h.
6189 * version.in: Move to ...
6190 * common/version.in: ... here. Replace date with "DATE".
6191 * version.h: Move to ...
6192 * common/version.h: ... here.
6193
bb6b9a5e
JB
61942013-06-21 Joel Brobecker <brobecker@adacore.com>
6195
6196 * gdb/gnulib/Makefile.in: Update date in copyright header.
6197 * gdb/gnulib/configure.ac: Ditto.
6198 * gdb/gnulib/update-gnulib.sh: Ditto.
6199
c3b18ee7
JB
62002013-06-21 Joel Brobecker <brobecker@adacore.com>
6201
6202 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6203 "gdb/gnulib/import".
6204
85d3b769
WN
62052013-06-21 Will Newton <will.newton@linaro.org>
6206
6207 * doublest.c (ldfrexp): Remove function.
6208 (convert_doublest_to_floatformat): Call frexpl instead of
6209 ldfrexp.
6210
88b48903
WN
62112013-06-21 Will Newton <will.newton@linaro.org>
6212
6213 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6214 * gnulib/aclocal.m4: Regenerate.
6215 * gnulib/config.in: Regenerate.
6216 * gnulib/configure: Regenerate.
6217 * gnulib/import/Makefile.am: Update.
6218 * gnulib/import/Makefile.in: Update.
6219 * gnulib/import/m4/gnulib-cache.m4: Update.
6220 * gnulib/import/m4/gnulib-comp.m4: Update.
6221 * gnulib/import/float+.h: Import.
6222 * gnulib/import/float.c: Import.
6223 * gnulib/import/float.in.h: Import.
6224 * gnulib/import/fpucw.h: Import.
6225 * gnulib/import/frexp.c: Import.
6226 * gnulib/import/frexpl.c: Import.
6227 * gnulib/import/isnan.c: Import.
6228 * gnulib/import/isnand-nolibm.h: Import.
6229 * gnulib/import/isnand.c: Import.
6230 * gnulib/import/isnanl-nolibm.h: Import.
6231 * gnulib/import/isnanl.c: Import.
6232 * gnulib/import/itold.c: Import.
6233 * gnulib/import/m4/exponentd.m4: Import.
6234 * gnulib/import/m4/exponentl.m4: Import.
6235 * gnulib/import/m4/float_h.m4: Import.
6236 * gnulib/import/m4/fpieee.m4: Import.
6237 * gnulib/import/m4/frexp.m4: Import.
6238 * gnulib/import/m4/frexpl.m4: Import.
6239 * gnulib/import/m4/isnand.m4: Import.
6240 * gnulib/import/m4/isnanl.m4: Import.
6241 * gnulib/import/m4/math_h.m4: Import.
6242 * gnulib/import/math.c: Import.
6243 * gnulib/import/math.in.h: Import.
6244
4353c9e6
JK
62452013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6248 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6249 signature_INTEL_edx comparisons.
6250
e3e06db3
DE
62512013-06-20 Doug Evans <dje@google.com>
6252
6ac97d4c
DE
6253 symtab/15652
6254 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6255 All callers updated.
6256 (open_dwp_file): If we can't find the dwp file, search the basename
6257 in debug-file-directory.
6258
93417882
DE
6259 * dwarf2read.c (struct dwp_file): Fix comment.
6260 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6261
e3e06db3
DE
6262 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6263 better.
6264
0878d0fa
YQ
62652013-06-20 Yao Qi <yao@codesourcery.com>
6266
6267 * breakpoint.c (create_breakpoint): Fix code indentation.
6268
023fa29b
YQ
62692013-06-20 Yao Qi <yao@codesourcery.com>
6270
6271 * breakpoint.c (create_breakpoints_sal_default): Remove
6272 parameter 'lsal'. Update declaration.
6273 (bkpt_create_breakpoints_sal): Caller update.
6274 (tracepoint_create_breakpoints_sal): Likewise.
6275
c898adb7
YQ
62762013-06-20 Pedro Alves <pedro@codesourcery.com>
6277 Yao Qi <yao@codesourcery.com>
6278
6279 * NEWS: Mention the new option '--skip-unavailable' of command
6280 -data-list-register-values.
6281 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6282 --skip-unavailable option. Adjust to use output_register.
6283 (output_register): Add new 'skip_unavailable' parameter.
6284 Handle it.
6285
4d157a3d
MF
62862013-06-19 Mike Frysinger <vapier@gentoo.org>
6287
6288 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6289 common/i386-gcc-cpuid.h.
6290 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6291 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6292 Copy the latest version from upstream gcc.
6293 * common/linux-btrace.c: Include i386-cpuid.h.
6294 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6295 call to i386_cpuid.
6296 (cpu_supports_btrace): Likewise.
6297 * go32-nat.c: Include i386-cpuid.h.
6298 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6299
1ce4db08
DE
63002013-06-19 Doug Evans <dje@google.com>
6301
6302 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6303 (get_section_index): Ditto.
6304
0e4777df
TT
63052013-06-19 Tom Tromey <tromey@redhat.com>
6306
6307 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6308 "dprintf" help.
6309
3190f0c6
DE
63102013-06-18 Doug Evans <dje@google.com>
6311
6312 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6313 before using it.
6314 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6315 Move test of cu_index closer to use. Print complaint if cu_index
6316 is bad.
6317
8b89a20a
JB
63182013-06-18 Joel Brobecker <brobecker@adacore.com>
6319
6320 * machoread.c (oso_vector): Delete this global.
6321 (macho_register_oso): Add new parameter "oso_vector_ptr".
6322 Use it instead of the "oso_vector" global.
6323 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6324 (macho_symfile_read): Use a local oso_vector, to be free'ed
6325 at the end of this function, in place of the old "oso_vector"
6326 global. Update various function calls accordingly. Use one
6327 single cleanup chain for the entire function.
6328
59b0c7c1
JB
63292013-06-18 Joel Brobecker <brobecker@adacore.com>
6330
937c708c 6331 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
6332 DWARF2_PER_OBJFILE by uses of DATA instead.
6333
427cd150
TT
63342013-06-18 Tom Tromey <tromey@redhat.com>
6335
6336 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6337 argument.
6338 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6339 Special case signals other than GDB_SIGNAL_TRAP.
6340 (explains_signal_watchpoint): New function.
6341 (base_breakpoint_explains_signal): Add 'sig' argument.
6342 (initialize_breakpoint_ops): Set 'explains_signal' method for
6343 watchpoints.
6344 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6345 signal argument.
6346 (bpstat_explains_signal): Likewise.
6347 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6348
2d57700b
TT
63492013-06-18 Tom Tromey <tromey@redhat.com>
6350
6351 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6352
ac475191
TT
63532013-06-18 Tom Tromey <tromey@redhat.com>
6354
6355 * python/python.c (finish_python_initialization): Decref
6356 'pythondir' on failure path as well.
6357
5bd1ef56
TT
63582013-06-18 Tom Tromey <tromey@redhat.com>
6359
6360 PR symtab/15391:
6361 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6362 after taking bits_to_skip into account. Sign extend byte_offset.
6363 * utils.h (gdb_sign_extend): Declare.
6364 * utils.c (gdb_sign_extend): New function.
6365
92fac807
JK
63662013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6369
2d503272
PM
63702013-06-17 Pierre Muller <muller@sourceware.org>
6371
6372 * corelow.c (core_open): Print GDB signal name instead of target
6373 signal number.
6374
6916fd98
MF
63752013-06-17 Mike Frysinger <vapier@gentoo.org>
6376
6377 * .gitignore: Add /gcore.
6378
9c02c129
DE
63792013-06-13 Doug Evans <dje@google.com>
6380
6381 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6382 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6383
d0548fa2
PM
63842013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6385
6386 * stack.c (backtrace_command_1): Fix indentation.
6387
22128028
JB
63882013-06-11 Joel Brobecker <brobecker@adacore.com>
6389
6390 * window-nat.c (thread_rec): Add missing empty line after
6391 local variable declaration.
6392
2ed3e009
JB
63932013-06-11 Joel Brobecker <brobecker@adacore.com>
6394
6395 * windows-nat.c (thread_rec): Revert format used to print
6396 error code returned by SuspendThread from %d back to %u.
6397
0c3d84be
JB
63982013-06-11 Joel Brobecker <brobecker@adacore.com>
6399
6400 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6401 ID in debug trace.
6402 (get_windows_debug_event): Likewise, for all debug traces.
6403
80e88e1a
JB
64042013-06-11 Joel Brobecker <brobecker@adacore.com>
6405
6406 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6407 warning message.
6408
1edebdbf
YQ
64092013-06-08 Pedro Alves <pedro@codesourcery.com>
6410 Yao Qi <yao@codesourcery.com>
6411
6412 * mi/mi-main.c (get_register): Remove declaration.
6413 (output_register): Declare.
6414 (mi_cmd_data_list_register_values): Remove local variable
6415 'tuple_cleanup'. Move some code into output_register.
6416 (get_register): Renamed to ...
6417 (output_register): ... this. Output the register's
6418 "number" ui_out tuple here.
6419
47d48711
PA
64202013-06-07 Pedro Alves <palves@redhat.com>
6421
6422 * darwin-nat.c: Fix formating in copyright header.
6423 * darwin-nat.h: Likewise.
6424 * gnu-nat.c: Likewise.
6425 * machoread.c: Likewise.
6426
3aee8918
PA
64272013-06-07 Pedro Alves <palves@redhat.com>
6428
5f2b57b5 6429 PR server/14823
3aee8918
PA
6430 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6431 static. Output a global target description pointer.
6432 (init_registers_${name}): Adjust to initialize a
6433 target description structure.
6434
fe8400b4
WN
64352013-06-07 Will Newton <will.newton@linaro.org>
6436
6437 * printcmd.c (build_address_symbolic): Call
6438 gdbarch_addr_bits_remove for text minimal symbols.
6439
20df6206
WN
64402013-06-07 Will Newton <will.newton@linaro.org>
6441
6442 * MAINTAINERS: Add myself to Write After Approval.
6443
aef525cb
YQ
64442013-06-07 Yao Qi <yao@codesourcery.com>
6445
6446 * tracepoint.c (start_tracing): Move code to ...
6447 (trace_reset_local_state): ... here. New.
6448 (disconnect_tracing): Don't call set_current_traceframe,
6449 set_tracepoint_num, and set_traceframe_context. Call
6450 trace_reset_local_state instead.
6451 (tfile_close): Call trace_reset_local_state.
6452 * ctf.c (ctf_close): Likewise.
6453 * remote.c (remote_close): Likewise.
6454 * tracepoint.h (trace_reset_local_state): Declare.
6455
d2415c6c
DE
64562013-06-06 Doug Evans <dje@google.com>
6457
6458 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6459 and fix header docs.
6460
69fc87c2
DE
64612013-06-05 Doug Evans <dje@google.com>
6462 Keith Seitz <keiths@redhat.com>
6463
6464 PR 15519
6465 * cp-namespace.c (find_symbol_in_baseclass): Call
6466 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6467 Check result of call to lookup_symbol_static.
6468 Call lookup_static_symbol_aux unconditionally.
6469 Call check_typedef on base types before accessing them.
6470 (cp_lookup_nested_symbol): Fix comment.
6471
a513d1e8
LM
64722013-06-05 Luis Machado <lgustavo@codesourcery.com>
6473
6474 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6475 minimal symbols pointing to function descriptors.
6476
351a6f02
TT
64772013-06-05 Tom Tromey <tromey@redhat.com>
6478
6479 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6480
5e1b953b 64812013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6482 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6483
6484 * remote.c (remote_wait_as): Restore signal handler before returning
6485 when GDB gets a notification.
6486
f9e14852
GB
64872013-06-04 Gary Benson <gbenson@redhat.com>
6488
8445cbf1 6489 PR 2328
f9e14852
GB
6490 * breakpoint.h (handle_solib_event): Moved function declaration
6491 to solib.h.
6492 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6493 (bpstat_stop_status): Pass new argument to handle_solib_event.
6494 * solib.h (update_solib_breakpoints): New function declaration.
6495 (handle_solib_event): Moved function declaration from
6496 breakpoint.h.
6497 * solib.c (update_solib_breakpoints): New function.
6498 (handle_solib_event): Moved function from breakpoint.c.
6499 Updated to call solib_ops->handle_event if not NULL.
6500 * solist.h (target_so_ops): New fields "update_breakpoints" and
6501 "handle_event".
6502 * infrun.c (set_stop_on_solib_events): New function.
6503 (_initialize_infrun): Use the above for "set
6504 stop-on-solib-events".
6505 (handle_inferior_event): Pass new argument to handle_solib_event.
6506 * solib-svr4.c (probe.h): New include.
6507 (svr4_free_library_list): New forward declaration.
6508 (probe_action): New enum.
6509 (probe_info): New struct.
6510 (probe_info): New static variable.
6511 (NUM_PROBES): New definition.
6512 (svr4_info): New fields "using_xfer", "probes_table" and
6513 "solib_list".
6514 (free_probes_table): New function.
6515 (free_solib_list): New function.
6516 (svr4_pspace_data_cleanup): Free probes table and solib list.
6517 (svr4_copy_library_list): New function.
6518 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6519 (svr4_read_so_list): New parameter "prev_lm".
6520 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6521 (svr4_current_sos): New function.
6522 (probe_and_action): New struct.
6523 (hash_probe_and_action): New function.
6524 (equal_probe_and_action): Likewise.
6525 (register_solib_event_probe): Likewise.
6526 (solib_event_probe_at): Likewise.
6527 (solib_event_probe_action): Likewise.
6528 (solist_update_full): Likewise.
6529 (solist_update_incremental): Likewise.
6530 (disable_probes_interface_cleanup): Likewise.
6531 (svr4_handle_solib_event): Likewise.
6532 (svr4_update_solib_event_breakpoint): Likewise.
6533 (svr4_update_solib_event_breakpoints): Likewise.
6534 (svr4_create_solib_event_breakpoints): Likewise.
6535 (enable_break): Free probes table before creating breakpoints.
6536 Use svr4_create_solib_event_breakpoints to create breakpoints.
6537 (svr4_solib_create_inferior_hook): Free the solib list.
6538 (_initialize_svr4_solib): Initialise
6539 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6540
ced63ec0
GB
65412013-06-04 Gary Benson <gbenson@redhat.com>
6542
6543 * target.h (target_ops): New field
6544 "to_augmented_libraries_svr4_read".
6545 (target_augmented_libraries_svr4_read): New macro.
6546 * target.c (update_current_target): Handle
6547 to_augmented_libraries_svr4_read.
6548 * remote.c (remote_state): New field
6549 "augmented_libraries_svr4_read".
6550 (remote_augmented_libraries_svr4_read_feature): New function.
6551 (remote_protocol_features): Add entry for
6552 "augmented-libraries-svr4-read".
6553 (remote_augmented_libraries_svr4_read): New function.
6554 (init_remote_ops): Initialize
6555 remote_ops.to_augmented_libraries_svr4_read.
6556
7f91dbec
GB
65572013-06-04 Gary Benson <gbenson@redhat.com>
6558
6559 * NEWS: Update.
6560
607ece04
GB
65612013-06-04 Gary Benson <gbenson@redhat.com>
6562
6563 * objfiles.h (inhibit_section_map_updates): New function
6564 declaration.
6565 (resume_section_map_updates): Likewise.
6566 (resume_section_map_updates_cleanup): Likewise.
6567 * objfiles.c (objfile_pspace_info): Removed field
6568 "objfiles_changed_p". New fields "new_objfiles_available",
6569 "section_map_dirty" and "inhibit_updates".
6570 (allocate_objfile): Set new_objfiles_available.
6571 (free_objfile): Set section_map_dirty.
6572 (objfile_relocate1): Likewise.
6573 (in_plt_section): Likewise.
6574 (find_pc_section): Update the conditions under which the
6575 section map will be updated.
6576 (inhibit_section_map_updates): New function.
6577 (resume_section_map_updates): Likewise.
6578 (resume_section_map_updates_cleanup): Likewise.
6579
9ee6a5ac
GB
65802013-06-04 Gary Benson <gbenson@redhat.com>
6581
6582 * probe.h (get_probe_argument_count): New declaration.
6583 (evaluate_probe_argument): Likewise.
6584 * probe.c (get_probe_argument_count): New function.
6585 (evaluate_probe_argument): Likewise.
6586 (probe_safe_evaluate_at_pc): Use the above new functions.
6587
845d4708
AM
65882013-06-04 Alan Modra <amodra@gmail.com>
6589
6590 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6591 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6592 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6593 target mem reads on optional insns.
6594 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6595 ppc_insns_match_pattern calls.
6596 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6597 Add match for power7 thread safety insns, and new order of
6598 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6599 invocation in comment, and update rest of comment.
6600 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6601 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6602 (ppc64_standard_linkage2_target): Update insn offsets.
6603 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6604 stubs first. Update calls.
6605
404e278f
YQ
66062013-06-04 Yao Qi <yao@codesourcery.com>
6607
6608 * solib.c (solib_find): Don't need dir separator if path has
6609 drive spec.
6610
f6aea118
JB
66112013-06-03 Joel Brobecker <brobecker@adacore.com>
6612
6613 Revert (indirectly causes a SIGSEGV):
6614 * machoread.c (macho_symfile_read): Assign first cleanup to
6615 'back_to'.
6616
87967e27
YQ
66172013-06-03 Yao Qi <yao@codesourcery.com>
6618
6619 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6620 mi-parse.c. Make them static.
6621 (mi_all_values): Likewise.
6622 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6623 mi_parse_print_values. Make it external.
6624 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6625 Remove the declarations.
6626 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6627 * mi/mi-parse.h (mi_parse_print_values): Declare.
6628 * mi/mi-cmd-stack.c: Include mi-parse.h.
6629 (parse_print_values): Remove
6630 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6631 of parse_print_values.
6632 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6633
3ca73e0c
YQ
66342013-05-31 Pedro Alves <pedro@codesourcery.com>
6635 Yao Qi <yao@codesourcery.com>
6636
6637 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6638 (encode_actions): Move code to ...
6639 (all_tracepoint_actions_and_cleanup): ... here. New.
6640 (trace_dump_command): Likewise.
6641
4e993a19
TT
66422013-05-30 Tom Tromey <tromey@redhat.com>
6643
6644 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6645
e3b76b4f
TT
66462013-05-30 Tom Tromey <tromey@redhat.com>
6647
6648 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6649 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6650 'old_chain' argument. Add 'parser_result' argument.
6651 (gdb_xml_create_parser_and_cleanup): Remove old version.
6652 (gdb_xml_parse_quick): Update.
6653 (xml_process_xincludes): Update.
6654 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6655 declare.
6656
db26349c
TT
66572013-05-30 Tom Tromey <tromey@redhat.com>
6658
6659 * probe.c (collect_probes): Check arguments for NULL before
6660 calling compile_rx_or_error.
6661 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6662 Remove NULL return.
6663
77f9e713
TT
66642013-05-30 Tom Tromey <tromey@redhat.com>
6665
6666 * infrun.c (adjust_pc_after_break): Introduce an outer null
6667 cleanup.
6668
45475de7
TT
66692013-05-30 Tom Tromey <tromey@redhat.com>
6670
6671 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6672
ac5007fd
TT
66732013-05-30 Tom Tromey <tromey@redhat.com>
6674
6675 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6676 for 'old_chain'. Do not check 'head' before processing
6677 cleanups.
6678
cd82eddc
TT
66792013-05-30 Tom Tromey <tromey@redhat.com>
6680
6681 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6682 "cleanup_tuple".
6683
57cee33a
TT
66842013-05-30 Tom Tromey <tromey@redhat.com>
6685
6686 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6687 inner scope. Unconditionally call do_cleanups.
6688
795d915c
TT
66892013-05-30 Tom Tromey <tromey@redhat.com>
6690
6691 * source.c (find_and_open_source): Call do_cleanups.
6692
1fc3cf4a
TT
66932013-05-30 Tom Tromey <tromey@redhat.com>
6694
6695 * linux-thread-db.c (thread_db_load_search): Unconditionally
6696 call do_cleanups.
6697
e35ac9bf
TT
66982013-05-30 Tom Tromey <tromey@redhat.com>
6699
6700 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6701 for 'cleanup'; instead use a later one.
6702
f3300387
TT
67032013-05-30 Tom Tromey <tromey@redhat.com>
6704
6705 * python/py-breakpoint.c (bppy_get_commands): Use
6706 explicit, unconditional return.
6707 * python/py-frame.c (frapy_read_var): Likewise.
6708 * python/python.c (gdbpy_decode_line): Likewise.
6709
c27e16e3
TT
67102013-05-30 Tom Tromey <tromey@redhat.com>
6711
6712 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6713 do_cleanups on all return paths.
6714
5ae85e44
TT
67152013-05-30 Tom Tromey <tromey@redhat.com>
6716
6717 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6718
73b8d9da
TT
67192013-05-30 Tom Tromey <tromey@redhat.com>
6720
6721 * stabsread.c (read_struct_type): Call do_cleanups along
6722 all return paths.
6723
7d266584
MR
67242013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6725
6726 * mips-linux-tdep.c: Adjust formatting throughout.
6727
0f900f54
TT
67282013-05-30 Tom Tromey <tromey@redhat.com>
6729
6730 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6731 along all return paths.
6732
a991ac28
TT
67332013-05-30 Tom Tromey <tromey@redhat.com>
6734
6735 * symfile.c (find_separate_debug_file): Call do_cleanups
6736 along all return paths.
6737
1abaf042
TT
67382013-05-30 Tom Tromey <tromey@redhat.com>
6739
6740 * symtab.c (search_symbols): Introduce a null cleanup for
6741 'retval_chain'.
6742
edefe1da
TT
67432013-05-30 Tom Tromey <tromey@redhat.com>
6744
6745 * python/py-value.c (valpy_binop): Call do_cleanups before
6746 exiting loop.
6747
54f72dcc
TT
67482013-05-30 Tom Tromey <tromey@redhat.com>
6749
6750 * python/py-prettyprint.c (print_children): Remove extra
6751 do_cleanups call.
6752
af1c6971
TT
67532013-05-30 Tom Tromey <tromey@redhat.com>
6754
6755 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6756 all return paths.
6757
b862ce75
TT
67582013-05-30 Tom Tromey <tromey@redhat.com>
6759
6760 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6761 along all return paths.
6762
e12fefc8
TT
67632013-05-30 Tom Tromey <tromey@redhat.com>
6764
6765 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6766 call do_cleanups.
6767
4867f990
TT
67682013-05-30 Tom Tromey <tromey@redhat.com>
6769
6770 * varobj.c (c_value_of_root): Call do_cleanups along all
6771 return paths.
6772
4fd2d6af
TT
67732013-05-30 Tom Tromey <tromey@redhat.com>
6774
6775 * tracepoint.c (trace_dump_command): Unconditionally call
6776 do_cleanups.
6777
752eb8b4
TT
67782013-05-30 Tom Tromey <tromey@redhat.com>
6779
6780 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6781 do_cleanups earlier.
6782
e42d0aa5
TT
67832013-05-30 Tom Tromey <tromey@redhat.com>
6784
6785 * machoread.c (macho_symfile_read): Assign first cleanup to
6786 'back_to'.
6787
4bbc010a
TT
67882013-05-30 Tom Tromey <tromey@redhat.com>
6789
6790 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6791
b9635925
TT
67922013-05-30 Tom Tromey <tromey@redhat.com>
6793
6794 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6795
25f43500
TT
67962013-05-30 Tom Tromey <tromey@redhat.com>
6797
6798 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6799 call discard_cleanups.
6800 (inf_ptrace_attach): Likewise.
6801
d6a2e54a
TT
68022013-05-30 Tom Tromey <tromey@redhat.com>
6803
6804 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6805 return paths.
6806 (mips_initialize): Likewise.
6807 (common_open): Call do_cleanups.
6808
48be7c1b
TT
68092013-05-30 Tom Tromey <tromey@redhat.com>
6810
6811 * utils.c (internal_vproblem): Call do_cleanups.
6812
e61727ab
TT
68132013-05-30 Tom Tromey <tromey@redhat.com>
6814
6815 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6816
b81b921f
TT
68172013-05-30 Tom Tromey <tromey@redhat.com>
6818
6819 * cli/cli-script.c (setup_user_args): Don't return after error.
6820
fe48dfb1
TT
68212013-05-30 Tom Tromey <tromey@redhat.com>
6822
6823 * somread.c (som_symtab_read): Call do_cleanups.
6824
27833de7
TT
68252013-05-30 Tom Tromey <tromey@redhat.com>
6826
6827 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6828
5b3fca71
TT
68292013-05-30 Tom Tromey <tromey@redhat.com>
6830
6831 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6832 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6833 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6834 * source.c (show_substitute_path_command): Call do_cleanups.
6835 (unset_substitute_path_command, set_substitute_path_command):
6836 Likewise.
6837 * symfile.c (load_command): Call do_cleanups.
6838
af83e3f8
TT
68392013-05-30 Tom Tromey <tromey@redhat.com>
6840
6841 * contrib/cleanup_check.py: New file.
6842 * contrib/gcc-with-excheck: Add option parsing.
6843
564eac42
JB
68442013-05-30 Joel Brobecker <brobecker@adacore.com>
6845
6846 * windows-nat.c (windows_delete_thread): Add missing space
6847 in cast expression.
6848
47902076
HAQ
68492013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6850
6851 * inferior.c (top level): Include tilde.h.
6852 (add_inferior_command): Call tilde_expand on the value of 'exec'
6853 argument.
6854
23da373a
YQ
68552013-05-30 Pedro Alves <pedro@codesourcery.com>
6856 Yao Qi <yao@codesourcery.com>
6857
6858 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6859 Caller update.
6860 (encode_actions): Likewise.
6861 * remote.c (remote_download_tracepoint): Caller update.
6862 * tracepoint.h (encode_actions): Update declaration.
6863
a6e6f791
PA
68642013-05-30 Pedro Alves <palves@redhat.com>
6865
6866 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6867 pointer.
6868
36d25514
YQ
68692013-05-30 Yao Qi <yao@codesourcery.com>
6870
6871 * remote.c (remote_check_symbols): Remove unused parameter
6872 'objfile'.
6873 Declaration update.
6874 (remote_start_remote, remote_new_objfile): Caller update.
6875
62a813cc
YQ
68762013-05-30 Yao Qi <yao@codesourcery.com>
6877
6878 * mi/mi-cmds.c (mi_cmds): Define MI command
6879 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6880 DEF_MI_CMD_CLI.
6881
28439a30
PA
68822013-05-29 Pedro Alves <palves@redhat.com>
6883
6884 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6885 (remote_insert_watchpoint, remote_remove_watchpoint)
6886 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6887 (remote_verify_memory, compare_sections_command)
6888 (remote_search_memory): Set the general process/thread on the
6889 remote side.
6890
6ac1c082
PA
68912013-05-29 Pedro Alves <palves@redhat.com>
6892
6893 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6894 (_initialize_aarch64_tdep): Don't call
6895 initialize_tdesc_aarch64_without_fpu.
6896 * features/Makefile (WHICH): Remove reference to
6897 aarch64-without-fpu.
6898 * features/aarch64-without-fpu.c: Delete file.
6899 * regformats/aarch64-without-fpu.dat: Delete file.
6900
a73e3634
YQ
69012013-05-28 Yao Qi <yao@codesourcery.com>
6902
6903 * tracepoint.c (stringify_collection_list): Remove parameter
6904 'string'.
6905 (encode_actions): Caller update. Remove local variables.
6906
c0ea94eb
YQ
69072013-05-24 Yao Qi <yao@codesourcery.com>
6908
6909 * tracepoint.c (TFILE_PID): Remove.
6910 (tfile_open): Don't add thread and inferior.
6911 (tfile_close): Don't set 'inferior_ptid'. Don't call
6912 exit_inferior_silent.
6913 (tfile_thread_alive): Remove.
6914 (init_tfile_ops): Don't set field 'to_thread_alive' of
6915 tfile_ops.
6916
20d7f211
DE
69172013-05-23 Doug Evans <dje@google.com>
6918
6919 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6920
8658d16d
PA
69212013-05-23 Pedro Alves <palves@redhat.com>
6922
6923 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6924 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6925 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6926 Only define if HAVE_SOCKETS is defined.
6927 * configure.ac: Check for sys/socket.h.
6928 * config.in, configure: Regenerate.
6929
21aa081e
PA
69302013-05-23 Pedro Alves <palves@redhat.com>
6931
6932 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6933 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6934 printing uint32_t variables.
6935
c2d6af84
PA
69362013-05-23 Pedro Alves <palves@redhat.com>
6937
6938 * NEWS: Mention GDBserver range stepping support.
6939
c1e36e3e
PA
69402013-05-23 Yao Qi <yao@codesourcery.com>
6941 Pedro Alves <palves@redhat.com>
6942
6943 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6944 field.
6945 * infcmd.c (step_once, until_next_command): Enable range stepping.
6946 * infrun.c (displaced_step_prepare): Disable range stepping.
6947 (resume): Disable range stepping if stepping over a breakpoint or
6948 we have software watchpoints. If range stepping is enabled,
6949 assert the thread is in the stepping range.
6950 (clear_proceed_status_thread): Clear may_range_step.
6951 (handle_inferior_event): Disable range stepping as soon as we know
6952 the thread that hit the event. Re-enable it whenever we're going
6953 to step with a step range.
6954 * remote.c (struct vCont_action_support) <r>: New field.
6955 (use_range_stepping): New global.
6956 (remote_vcont_probe): Handle 'r' action.
6957 (append_resumption): Append an 'r' action if the thread may range
6958 step.
6959 (show_range_stepping): New function.
6960 (set_range_stepping): New function.
6961 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6962 'set range-stepping' and 'show range-stepping' commands.
6963 * NEWS: Mention range stepping, the new vCont;r action, and the
6964 new "set/show range-stepping" commands.
6965
d458bd84
PA
69662013-05-23 Yao Qi <yao@codesourcery.com>
6967 Pedro Alves <palves@redhat.com>
6968
6969 * remote.c (struct vCont_action_support): New struct.
6970 (struct remote_state) <support_vCont_t>: Remove field.
6971 <vCont_actions_support>: New field.
6972 (remote_vcont_probe, remote_stop_ns): Update.
6973
ce4c476a
PA
69742013-05-23 Yao Qi <yao@codesourcery.com>
6975 Pedro Alves <palves@redhat.com>
6976
6977 * gdbthread.h (pc_in_thread_step_range): New declaration.
6978 * thread.c (pc_in_thread_step_range): New function.
6979 * infrun.c (handle_inferior_event): Use it.
6980
ce70887a
JB
69812013-05-23 Joel Brobecker <brobecker@adacore.com>
6982
6983 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6984 of sprintf.
6985
55b87a52
KS
69862013-05-22 Keith Seitz <keiths@redhat.com>
6987
6988 * ada-lang.c (is_known_support_routine): Add explicit free of
6989 'func_name' from find_frame_funname.
6990 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6991 for func_name from find_frame_funname.
6992 * python/py-frame.c (frapy_name): Add explicit free of
6993 'name' from find_frame_funname.
6994 * stack.c (find_frame_funname): Add comment explaining that
6995 funcp must be freed by the caller.
6996 Return copy of symbol names instead of pointers.
6997 (print_frame): Add a cleanup for 'funname' from
6998 find_frame_funname.
6999 * stack.h (find_frame_funname): Remove "const" from
7000 'funname' parameter.
7001
5f2e6b00
TT
70022013-05-22 Tom Tromey <tromey@redhat.com>
7003
7004 PR c++/15401:
7005 * c-valprint.c (c_value_print): Use value_addr for
7006 references. Convert back to reference type with value_ref.
7007
d85c4847
EZ
70082013-05-22 Eli Zaretskii <eliz@gnu.org>
7009
7010 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7011 unloaded DLL, it will be done by handle_solib_event. See
7012 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7013 details.
7014
54eb231c
PM
70152013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7016
7017 * ui-out.c: Create typedef ui_out_level_p and define vector
7018 operations for that type.
7019 (struct ui_out): Use a vector instead of an array.
7020 (current_level): Return level from a vector.
7021 (push_level): Create a level in a vector.
7022 (pop_level): Delete a level in a vector.
7023 (ui_out_new): Create initial level zero level, and store in a
7024 vector.
7025 (ui_out_destroy): Add vector cleanup.
7026
ac90359c
PA
70272013-05-22 Pedro Alves <palves@redhat.com>
7028
7029 * python/python-internal.h (gdb_Py_DECREF): Tag with
7030 "ARI: editCase function".
7031
6dcc1893
PP
70322013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7033
7034 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7035
c8c735b9
PA
70362013-05-21 Pedro Alves <palves@redhat.com>
7037
7038 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7039 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7040 * python/py-utils.c (py_decref): Don't check for NULL before
7041 calling Py_DECREF.
7042
1915daeb
PA
70432013-05-21 Pedro Alves <palves@redhat.com>
7044
7045 * python/py-utils.c (py_decref): Remove extra braces.
7046 (gdb_pymodule_addobject): Remove extra braces.
7047 * python-internal.h (gdb_Py_DECREF): New static inline function.
7048 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7049
bd9673a4
PW
70502013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7051
7052 * breakpoints.c (detach_breakpoints): Do not
7053 detach breakpoints locations with loc_type bp_loc_other.
7054
ff6009d0
JK
70552013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7056
7057 Workaround Python 2.6.
7058 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7059 a block.
7060
3641da11
JK
70612013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Code cleanup: constification.
7064 * solib.c (solib_ops): Make return type and ops variable type const.
7065 (set_solib_ops): Make the new_ops parameter and ops variable const.
7066 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7067 (solib_add, solib_keep_data_in_core, clear_solib)
7068 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7069 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7070 const.
7071 * solib.h (set_solib_ops): Make the new_ops parameter const.
7072
776af39e
JB
70732013-05-21 Joel Brobecker <brobecker@adacore.com>
7074
7075 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7076 variable.
7077 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7078 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7079 (SYSTEM_GDBINIT_FILES): New variables.
7080 (all): Add stamp-system-gdbinit.
7081 (stamp-system-gdbinit): New rule.
7082 (clean-system-gdbinit, install-system-gdbinit)
7083 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7084 (install-only): Add dependency on install-system-gdbinit.
7085 (uninstall): Add dependency on uninstall-system-gdbinit.
7086 (clean): Add dependency on clean-system-gdbinit.
7087 * system-gdbinit/elinos.py: New file.
7088 * system-gdbinit/wrs-linux.py: New file.
7089
1509e573
JB
70902013-05-21 Joel Brobecker <brobecker@adacore.com>
7091
7092 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7093
c5867ab6
HZ
70942013-05-21 Hui Zhu <hui@codesourcery.com>
7095
7096 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7097 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7098 * mi/mi-cmd-break.c (ctype.h): New include.
7099 (gdb_obstack.h): New include.
7100 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7101 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7102 (mi_cmd_dprintf_insert): New.
7103 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7104 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7105
7d38e38f
TT
71062013-05-20 Tom Tromey <tromey@redhat.com>
7107
7108 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7109
97b77b39
TT
71102013-05-20 Tom Tromey <tromey@redhat.com>
7111
7112 * python/py-value.c (valpy_get_dynamic_type): Simplify
7113 dynamic_type assignment. Use Py_XINCREF.
7114
53e66479
TT
71152013-05-20 Tom Tromey <tromey@redhat.com>
7116
7117 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7118
dcf87832
TT
71192013-05-20 Tom Tromey <tromey@redhat.com>
7120
7121 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7122 (gdbpy_selected_frame): Move object-construction code
7123 out of TRY_CATCH.
7124
aa36459a
TT
71252013-05-20 Tom Tromey <tromey@redhat.com>
7126
7127 * python/py-arch.c (gdbpy_initialize_arch): Use
7128 gdb_pymodule_addobject.
7129 * python/py-block.c (gdbpy_initialize_blocks): Use
7130 gdb_pymodule_addobject.
7131 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7132 gdb_pymodule_addobject.
7133 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7134 gdb_pymodule_addobject.
7135 * python/py-event.c (gdbpy_initialize_event_generic): Use
7136 gdb_pymodule_addobject.
7137 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7138 gdb_pymodule_addobject.
7139 * python/py-evts.c (add_new_registry): Use
7140 gdb_pymodule_addobject.
7141 (gdbpy_initialize_py_events): Likewise.
7142 * python/py-finishbreakpoint.c
7143 (gdbpy_initialize_finishbreakpoints): Use
7144 gdb_pymodule_addobject.
7145 * python/py-frame.c (gdbpy_initialize_frames): Use
7146 gdb_pymodule_addobject.
7147 * python/py-function.c (gdbpy_initialize_functions): Use
7148 gdb_pymodule_addobject.
7149 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7150 gdb_pymodule_addobject.
7151 * python/py-infthread.c (gdbpy_initialize_thread): Use
7152 gdb_pymodule_addobject.
7153 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7154 gdb_pymodule_addobject.
7155 * python/py-param.c (gdbpy_initialize_parameters): Use
7156 gdb_pymodule_addobject.
7157 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7158 gdb_pymodule_addobject.
7159 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7160 gdb_pymodule_addobject.
7161 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7162 gdb_pymodule_addobject.
7163 * python/py-type.c (gdbpy_initialize_types): Use
7164 gdb_pymodule_addobject.
7165 * python/py-utils.c (gdb_pymodule_addobject): New function.
7166 * python/py-value.c (gdbpy_initialize_values): Use
7167 gdb_pymodule_addobject.
7168 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7169 * python/python.c (_initialize_python): Use
7170 gdb_pymodule_addobject.
7171
3d4a3c3e
TT
71722013-05-20 Tom Tromey <tromey@redhat.com>
7173
7174 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7175 * python/py-param.c (get_set_value, get_show_value): Use
7176 explicit decrefs.
7177 * python/python.c (start_type_printers, apply_type_printers):
7178 Use explicit decrefs.
7179
72ff8829
TT
71802013-05-20 Tom Tromey <tromey@redhat.com>
7181
7182 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7183 incref the module.
7184
02146ba5
TT
71852013-05-20 Tom Tromey <tromey@redhat.com>
7186
7187 * python/python.c (gdbpy_run_events): Decref the result
7188 of PyObject_CallObject.
7189
33ee792f
TT
71902013-05-20 Tom Tromey <tromey@redhat.com>
7191
7192 * python/py-symtab.c (set_sal): Use
7193 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7194 (symtab_and_line_to_sal_object): Update.
7195
fcb49fc8
TT
71962013-05-20 Tom Tromey <tromey@redhat.com>
7197
7198 * python/py-param.c (compute_enum_values): Decref 'item'.
7199
0646da15
TT
72002013-05-20 Tom Tromey <tromey@redhat.com>
7201
7202 * mi/mi-main.c: Include python-internal.h.
7203 (mi_cmd_list_features): Check gdb_python_initialized.
7204 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7205 (python_inferior_exit, python_new_objfile, add_thread_object)
7206 (delete_thread_object, py_free_inferior): Check
7207 gdb_python_initialized.
7208 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7209 gdb_python_initialized.
7210 * python/py-type.c (save_objfile_types): Check
7211 gdb_python_initialized.
7212 * python/python-internal.h (gdb_python_initialized): Declare.
7213 * python/python.c (ensure_python_env): Throw exception if
7214 Python not initialized.
7215 (before_prompt_hook, source_python_script_for_objfile)
7216 (start_type_printers, apply_type_printers,
7217 free_type_printers): Check gdb_python_initialized.
7218 * varobj.c (varobj_get_display_hint)
7219 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7220 (install_new_value_visualizer, varobj_set_visualizer)
7221 (value_get_print_value): Check gdb_python_initialized.
7222
999633ed
TT
72232013-05-20 Tom Tromey <tromey@redhat.com>
7224
7225 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7226 Check errors.
7227 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7228 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7229 Check errors.
7230 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7231 Check errors.
7232 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7233 Check errors.
7234 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7235 Check errors.
7236 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7237 init function to return 'int'.
7238 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7239 Return 'int'. Check errors.
7240 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7241 Check errors.
7242 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7243 Return 'int'. Check errors.
7244 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7245 Check errors.
7246 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7247 Check errors.
7248 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7249 Check errors.
7250 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7251 Check errors.
7252 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7253 Check errors.
7254 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7255 Check errors.
7256 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7257 Check errors.
7258 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7259 Check errors.
7260 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7261 Check errors.
7262 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7263 Check errors.
7264 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7265 Check errors.
7266 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7267 Check errors.
7268 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7269 Check errors.
7270 * python/python-internal.h (gdbpy_initialize_auto_load,
7271 gdbpy_initialize_values, gdbpy_initialize_frames,
7272 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7273 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7274 gdbpy_initialize_blocks, gdbpy_initialize_types,
7275 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7276 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7277 gdbpy_initialize_finishbreakpoints,
7278 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7279 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7280 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7281 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7282 gdbpy_initialize_signal_event,
7283 gdbpy_initialize_breakpoint_event,
7284 gdbpy_initialize_continue_event,
7285 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7286 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7287 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7288 * python/python.c (gdb_python_initialized): New global.
7289 (gdbpy_initialize_events): Return 'int'. Check errors.
7290 (_initialize_python): Check errors. Set
7291 gdb_python_initialized.
7292
18868860
TT
72932013-05-20 Tom Tromey <tromey@redhat.com>
7294
7295 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7296 Decref the reslut of PyObject_CallMethod.
7297
9f4ff0c2
TT
72982013-05-20 Tom Tromey <tromey@redhat.com>
7299
7300 * python/py-event.c (gdbpy_initialize_event_generic): Return
7301 early if PyType_Ready fails.
7302
0d3a2e8a
TT
73032013-05-20 Tom Tromey <tromey@redhat.com>
7304
7305 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7306 as 'default' in the switch.
7307
b86af38a
TT
73082013-05-20 Tom Tromey <tromey@redhat.com>
7309
7310 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7311 get_addr_from_python calls out of TRY_CATCH.
7312 (infpy_write_memory, infpy_search_memory): Likewise.
7313 * python/py-utils.c (get_addr_from_python): Return negative
7314 value on error. Use TRY_CATCH.
7315 * python/python-internal.h (get_addr_from_python): Use
7316 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7317
c127ec58
TT
73182013-05-20 Tom Tromey <tromey@redhat.com>
7319
7320 * python/py-event.c (evpy_emit_event): Decref the
7321 result of PyObject_CallFunctionObjArgs.
7322
ba327838
TT
73232013-05-20 Tom Tromey <tromey@redhat.com>
7324
7325 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7326 Correctly decref.
7327
d8191432
TT
73282013-05-20 Tom Tromey <tromey@redhat.com>
7329
7330 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7331
5d153bd1
TT
73322013-05-20 Tom Tromey <tromey@redhat.com>
7333
7334 * python/py-event.h (gdbpy_initialize_event_generic): Use
7335 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7336 * python/py-evts.c (add_new_registry): Use
7337 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7338 * python/python-internal.h
7339 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7340
56cc411c
TT
73412013-05-20 Tom Tromey <tromey@redhat.com>
7342
7343 * python/py-arch.c (archpy_disassemble): Update.
7344 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7345 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7346 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7347 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7348 macro.
7349 (GDB_PY_HANDLE_EXCEPTION): Update.
7350 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7351
8919e174
TT
73522013-05-20 Tom Tromey <tromey@redhat.com>
7353
7354 * python/python-internal.h (events_object_type): Remove.
7355
9b08f225
TT
73562013-05-20 Tom Tromey <tromey@redhat.com>
7357
f5aee5ee
AM
7358 * python/py-event.h (evpy_emit_event): Use
7359 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7360 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7361 New macro.
9b08f225 7362
f04010ff
TT
73632013-05-20 Tom Tromey <tromey@redhat.com>
7364
7365 * py-evtregistry.c (create_event_object): Decref
7366 eventregistry_object if PyList_New fails.
7367
3919fd96
TT
73682013-05-20 Tom Tromey <tromey@redhat.com>
7369
7370 * py-cmd.c (gdbpy_string_to_argv): Check result of
7371 PyList_New.
7372
0430e8cb
TT
73732013-05-20 Tom Tromey <tromey@redhat.com>
7374
7375 * python/python.c (before_prompt_hook): Add cleanup to
7376 decref 'hook'.
7377
764123e4
TT
73782013-05-20 Tom Tromey <tromey@redhat.com>
7379
7380 * python/py-function.c (fnpy_init): Decref result of
7381 PyObject_GetAttrString.
7382
634c58be
TT
73832013-05-20 Tom Tromey <tromey@redhat.com>
7384
7385 * python/py-threadevent.c (get_event_thread): Use
7386 CPYCHECKER_RETURNS_BORROWED_REF.
7387 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7388 New define.
7389 (pspace_to_pspace_object, objfile_to_objfile_object)
7390 (find_thread_object): Use it.
7391
62eec1a5
TT
73922013-05-20 Tom Tromey <tromey@redhat.com>
7393
7394 * python/py-arch.c (arch_object_type): Use
7395 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7396 * python/py-block.c (block_syms_iterator_object_type):
7397 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7398 * python/py-bpevent.c (breakpoint_event_object_type):
7399 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7400 * python/py-cmd.c (cmdpy_object_type): Use
7401 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7402 * python/py-continueevent.c (continue_event_object_type):
7403 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7404 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7405 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7406 * python/py-events.h (thread_event_object_type):
7407 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7408 * python/py-evtregistry.c (eventregistry_object_type): Use
7409 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7410 * python/py-exitedevent.c (exited_event_object_type):
7411 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7412 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7413 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7414 * python/py-function.c (fnpy_object_type): Use
7415 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7416 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7417 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7418 * python/py-infthread.c (thread_object_type): Use
7419 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7420 * python/py-lazy-string.c (lazy_string_object_type):
7421 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7422 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7423 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7424 * python/py-objfile.c (objfile_object_type): Use
7425 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7426 * python/py-param.c (parmpy_object_type):
7427 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7428 * python/py-progspace.c (pspace_object_type):
7429 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7430 * python/py-signalevent.c (signal_event_object_type):
7431 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7432 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7433 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7434 * python/py-type.c (type_object_type, field_object_type)
7435 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7436 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7437 define.
7438 (value_object_type, block_object_type, symbol_object_type)
7439 (event_object_type, stop_event_object_type, breakpoint_object_type)
7440 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7441
81ea8796
AT
74422013-05-20 Andreas Tobler <andreas@fgznet.ch>
7443
7444 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7445 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7446
a2ce51a0
DE
74472013-05-20 Doug Evans <dje@google.com>
7448
7449 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7450 For Fission.
7451 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7452 reading_dwo_directly.
7453 (struct signatured_type): New member dwo_unit.
7454 (struct die_reader_specs): New member comp_dir.
7455 (create_signatured_type_table_from_index): Use malloc for
7456 all_type_units instead of objfile's obstack.
7457 (create_all_type_units): Ditto.
7458 (fill_in_sig_entry_from_dwo_entry): New function.
7459 (add_type_unit): New function.
7460 (lookup_dwo_signatured_type): New function.
7461 (lookup_dwp_signatured_type): New function.
7462 (lookup_signatured_type): New arg cu. All callers updated.
7463 (init_cu_die_reader): Initialize comp_dir.
7464 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7465 Change assert of matching type signatures to call error on mismatch.
7466 (lookup_dwo_unit): Add assert.
7467 (init_tu_and_read_dwo_dies): New function.
7468 (init_cutu_and_read_dies): Call it.
7469 (build_type_unit_groups): Handle case of no type unit groups created.
7470 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7471 (lookup_dwo_cutu): Tweak complaint.
7472 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7473 (dwarf2_per_objfile_free): Free all_type_units.
7474
a25cd31f
JB
74752013-05-20 Joel Brobecker <brobecker@adacore.com>
7476
7477 * windows-nat.c (handle_unload_dll): Add missing empty line.
7478
4d804846
JB
74792013-05-20 Joel Brobecker <brobecker@adacore.com>
7480
7481 * dwarf2read.c (prototyped_function_p): New function.
7482 (read_subroutine_type): Use it.
7483
1c432e72
JB
74842013-05-20 Joel Brobecker <brobecker@adacore.com>
7485
7486 * rs6000-aix-tdep.c: De-indent some example code provided
7487 as a comment.
7488
4feebbdd
EBM
74892013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7490
7491 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7492 region is ok for a hardware watchpoint using the new ptrace interface
7493 on Power servers.
7494
7d0c9981
DE
74952013-05-17 Doug Evans <dje@google.com>
7496
7497 * NEWS: Mention new maintenance commands check-symtabs, and
7498 expand-symtabs, and renamed check-psymtabs.
7499 * psymtab.c (maintenance_check_psymtabs): Renamed from
7500 maintenance_check_symtabs. Only process already-expanded symbol
7501 tables.
7502 (_initialize_psymtab): Update.
7503 * symmisc.c (maintenance_check_symtabs): New function.
7504 (maintenance_expand_name_matcher): New function
7505 (maintenance_expand_file_matcher): New function
7506 (maintenance_expand_symtabs): New function.
7507 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7508 commands.
7509
6cbc7c3d
TT
75102013-05-17 Tom Tromey <tromey@redhat.com>
7511
7512 * python/py-inferior.c (infpy_read_memory): Don't call
7513 PyErr_SetString if PyObject_New fails.
7514 * python/py-frame.c (frame_info_to_frame_object): Don't call
7515 PyErr_SetString if PyObject_New fails.
7516
a48b32c0
L
75172013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7518
7519 * acinclude.m4: Add check for dlopen in libdl.
7520 * configure.ac: Ditto.
7521 * configure: Regenerate.
7522
3de661e6
PM
75232013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7524
7525 * frame.c (frame_stash): Convert to htab.
7526 (frame_addr_hash): New function.
7527 (frame_addr_hash_eq): New function.
7528 (frame_stash_create): Convert function to create
7529 a hash table.
7530 (frame_stash_add): Convert function to add an entry to a hash
7531 table.
7532 (frame_stash_find): Convert function to search the hash table.
7533 (frame_stash_invalidate): Convert function to empty the hash
7534 table.
7535 (get_frame_id): Only add to stash if a frame_id is created.
7536 (_initialize_frame): Call frame_stash_create.
7537
bb4168a9 75382013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7539
7540 * configure.ac: Ensure MIG is available when building for GNU Hurd
7541 hosts.
7542 * configure: Regenerate.
7543
d1be3247
JB
75442013-05-16 Joel Brobecker <brobecker@adacore.com>
7545
7546 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7547
b8fea896
JB
75482013-05-16 Joel Brobecker <brobecker@adacore.com>
7549
7550 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7551 all cleanups are done before returning from this function.
7552
af880d85
JB
75532013-05-15 Joel Brobecker <brobecker@adacore.com>
7554
7555 * utils.h: #include "exceptions.h".
7556 (enum errors): Remove partial declaration.
7557
356a5233
JB
75582013-05-15 Joel Brobecker <brobecker@adacore.com>
7559
7560 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7561 * gdbarch.h, gdbarch.c: Regenerate.
7562 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7563 handling.
7564
7565 * rs6000-aix-tdep.h: New file.
7566 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7567 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7568 "xml-utils.h".
7569 (struct field_info, struct ld_info_desc): New types.
7570 (ld_info32_desc, ld_info64_desc): New static constants.
7571 (struct ld_info): New type.
7572 (rs6000_aix_extract_ld_info): New function.
7573 (rs6000_aix_shared_library_to_xml): Likewise.
7574 (rs6000_aix_ld_info_to_xml): Likewise.
7575 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7576 (rs6000_aix_init_osabi): Add call to
7577 set_gdbarch_core_xfer_shared_libraries_aix.
7578 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7579 Remove "xml-utils.h" include.
7580 (LdInfo): Delete typedef.
7581 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7582 Delete macros.
7583 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7584 Adjust code accordingly.
7585 (rs6000_core_ldinfo): Delete, folded into
7586 rs6000_aix_core_xfer_shared_libraries_aix.
7587 (rs6000_xfer_shared_library): Delete.
7588 (rs6000_xfer_shared_libraries): Reimplement.
7589
742ce053
MM
75902013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7591
7592 * record.c (record_goto_cmdlist): New.
7593 (cmd_record_goto): Split into this ...
7594 (cmd_record_goto_begin): ... this
7595 (cmd_record_goto_end): ... and this.
7596 (_initialize_record): Change "record goto" to prefix command.
7597 Add commands for "record goto begin" and "record goto end".
7598 Add an alias for "record goto start" to "record goto begin".
7599
e93ba630
JK
76002013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 * linespec.c (convert_linespec_to_sals): New comment for
7603 SOURCE_FILENAME assignment.
7604
5821aace
JK
76052013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7606
7607 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7608 internal_warning.
7609
a1b8c4cc
TT
76102013-05-14 Tom Tromey <tromey@redhat.com>
7611
7612 * eval.c (parse_and_eval_long): Make 'exp' const.
7613 * value.h (parse_and_eval_long): Update.
7614
23b3a2c3
TT
76152013-05-14 Tom Tromey <tromey@redhat.com>
7616
7617 * ui-file.c (gdb_fopen): Make arguments const.
7618 * ui-file.h (gdb_fopen): Make arguments const.
7619
ca623f82
TT
76202013-05-14 Tom Tromey <tromey@redhat.com>
7621
7622 * remote.c (remote_set_trace_notes): Make arguments const.
7623 * target.c (update_current_target): Update cast.
7624 * target.h (to_set_trace_notes): Make arguments const.
7625
503ebb2c
TT
76262013-05-14 Tom Tromey <tromey@redhat.com>
7627
7628 * go32-nat.c (go32_terminal_info): Make 'args' const.
7629 * inferior.h (child_terminal_info): Update.
7630 * inflow.c (child_terminal_info): Make 'args' const.
7631 * target.c (default_terminal_info): Make 'args' const.
7632 (debug_to_terminal_save_ours): Likewise.
7633 * target.h (struct target_ops) <to_terminal_info>: Make argument
7634 const.
7635
85e1311a
TT
76362013-05-13 Tom Tromey <tromey@redhat.com>
7637
7638 * gcore.c (create_gcore_bfd): Make 'filename' const.
7639 * gcore.h (create_gcore_bfd): Make 'filename' const.
7640 * record-full.c (record_full_save): Make 'recfilename' const.
7641 * target.c (target_save_record): Make 'filename' const.
7642 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7643 const.
7644 (target_save_record): Likewise.
7645
d62bfeaf
TT
76462013-05-13 Tom Tromey <tromey@redhat.com>
7647
f5aee5ee 7648 PR gdb/15338:
d62bfeaf
TT
7649 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7650 ranges section has been read.
7651
ac1ca910
TT
76522013-05-13 Tom Tromey <tromey@redhat.com>
7653
7654 PR exp/15364:
7655 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7656 STRUCTOP_PTR>: Return a not_lval value for
7657 EVAL_AVOID_SIDE_EFFECTS.
7658 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7659 for EVAL_AVOID_SIDE_EFFECTS.
7660
36d1c68c
JB
76612013-05-13 Joel Brobecker <brobecker@adacore.com>
7662
7663 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7664 floating point registers to register type before storing
7665 value.
7666 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7667 Likewise.
7668
21ff4686
TT
76692013-05-10 Joel Brobecker <brobecker@adacore.com>
7670 Tom Tromey <tromey@redhat.com>
7671
7672 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7673 New functions.
7674 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7675 Declare.
7676 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7677 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7678 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7679 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7680
d3685d60
TT
76812013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7682 Tom Tromey <tromey@redhat.com>
7683
7684 PR build/15414:
7685 * configure: Rebuild.
7686 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7687 with -Wno-format.
7688
eb9fe518
PA
76892013-05-10 Pedro Alves <palves@redhat.com>
7690
7691 * remote.c (_initialize_remote): Fix spelling of
7692 qXfer:traceframe-info:read packet in packet config command.
7693
9779ab84
PA
76942013-05-10 David Taylor <dtaylor@emc.com>
7695
7696 PR remote/15455
7697
7698 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7699 "QTro" at start of packet.
7700
060cfbef
JB
77012013-05-10 Joel Brobecker <brobecker@adacore.com>
7702
7703 * solib-aix.c (solib_aix_relocate_section_addresses):
7704 For the .bss section action, apply the same offset as
7705 the .data section.
7706
ab1c4e88
JB
77072013-05-10 Joel Brobecker <brobecker@adacore.com>
7708
7709 * solib-aix.c (solib_aix_relocate_section_addresses):
7710 Remove FIXME comment.
7711
c1357578
JB
77122013-05-10 Joel Brobecker <brobecker@adacore.com>
7713
7714 PR tdep/15420:
7715 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7716 New functions, directly copied from sparc-sol-thread.c.
7717 * sparc-sol-thread.c: Delete.
7718 * configure.ac: Remove code handling sparc-solaris-thread.c.
7719 * configure: Regenerate.
7720
1e611234
PM
77212013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7722
7723 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7724 filter logic.
7725 (backtrace_command): Add "no-filters" option parsing.
7726 (_initialize_stack): Alter help to reflect "no-filters" option.
7727 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7728 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7729 (py-frame.o): Add target
7730 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7731 filter files.
7732 * python/python.h: Add new frame filter constants, and flag enum.
7733 (apply_frame_filter): Add definition.
7734 * python/python.c (apply_frame_filter): New non-Python
7735 enabled function.
7736 * python/py-utils.c (py_xdecref): New function.
7737 (make_cleanup_py_xdecref): Ditto.
7738 * python/py-objfile.c: Declare frame_filters dictionary.
7739 (objfpy_dealloc): Add frame_filters dealloc.
7740 (objfpy_new): Initialize frame_filters attribute.
7741 (objfile_to_objfile_object): Ditto.
7742 (objfpy_get_frame_filters): New function.
7743 (objfpy_set_frame_filters): New function.
7744 * python/py-progspace.c: Declare frame_filters dictionary.
7745 (pspy_dealloc): Add frame_filters dealloc.
7746 (pspy_new): Initialize frame_filters attribute.
7747 (pspacee_to_pspace_object): Ditto.
7748 (pspy_get_frame_filters): New function.
7749 (pspy_set_frame_filters): New function.
7750 * python/py-framefilter.c: New file.
7751 * python/lib/gdb/command/frame_filters.py: New file.
7752 * python/lib/gdb/frames.py: New file.
7753 * python/lib/gdb/__init__.py: Initialize global frame_filters
7754 dictionary
7755 * python/lib/gdb/FrameDecorator.py: New file.
7756 * python/lib/gdb/FrameIterator.py: New file.
7757 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7758 * mi/mi-cmds.h: Declare.
7759 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7760 --no-frame-filter logic, and Python frame filter logic.
7761 (stack_enable_frame_filters): New function.
7762 (parse_no_frame_option): Ditto.
7763 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7764 filter logic.
7765 (mi_cmd_stack_list_locals): Ditto.
7766 (mi_cmd_stack_list_args): Ditto.
7767 (mi_cmd_stack_list_variables): Ditto.
7768 * NEWS: Add frame filter note.
7769
2cb9c859
DE
77702013-05-09 Doug Evans <dje@google.com>
7771
6bf667bb
DE
7772 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7773 All callers updated.
7774 (syms_from_objfile): Ditto. Make static.
7775 (symbol_file_add_with_addrs): Renamed from
7776 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7777 num_offsets. All callers updated.
7778 * symfile.h (syms_from_objfile): Delete.
7779
2cb9c859
DE
7780 * symfile.c (decrement_reading_symtab): Add assert.
7781 (increment_reading_symtab): Ditto.
7782
40aea477
JB
77832013-05-09 Joel Brobecker <brobecker@adacore.com>
7784
7785 * source.c (forward_search_command): Replace call to getc
7786 by call to fgetc.
7787 (reverse_search_command): Likewise.
7788
680d1742
DE
77892013-05-08 Doug Evans <dje@google.com>
7790
7791 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7792 matching test.
7793
17e760ae
JB
77942013-05-08 Joel Brobecker <brobecker@adacore.com>
7795
7796 * sol-thread.c (info_cb): Factorize the code a little.
7797
c0f5f490
JB
77982013-05-08 Joel Brobecker <brobecker@adacore.com>
7799
7800 * sol-thread.c (info_cb): Rework the output of the "maintenance
7801 info sol-threads" command a bit.
7802
5d74e061
JB
78032013-05-08 Joel Brobecker <brobecker@adacore.com>
7804
7805 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7806 Replace ti.ti_startfunc by ti.ti_pc.
7807
814a3ff7
JB
78082013-05-08 Joel Brobecker <brobecker@adacore.com>
7809
7810 * solib-aix.c (solib_aix_free_library_list): New function
7811 for the case where HAVE_LIBEXPAT is not defined.
7812
58ce7251
SDJ
78132013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7814
7815 PR breakpoints/15413:
7816 * breakpoint.c (condition_completer): Simplify the code to
7817 disconsider multiple locations of breakpoints when completing the
7818 "condition" command.
7819
be8b1ea6
PM
78202013-05-07 Pierre Muller <muller@sourceware.org>
7821
7822 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7823 instead of <sys/wait.h>.
7824
1e52bda6
PM
78252013-05-07 Pierre Muller <muller@sourceware.org>
7826
7827 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7828 trailing new line from warning message.
7829
27fd0c6b
PM
78302013-05-07 Pierre Muller <muller@sourceware.org>
7831
7832 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7833 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7834
e228ac87
JB
78352013-05-07 Joel Brobecker <brobecker@adacore.com>
7836
7837 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7838 error message (ARI fix).
7839
78402013-05-07 Joel Brobecker <brobecker@adacore.com>
7841
7842 * features/library-list-aix.dtd: Replace library-list by
7843 library-list-aix.
7844 * rs6000-nat.c: Replace library-list by library-list-aix
7845 throughout.
7846 * solib-aix.c: Likewise.
7847
78482013-05-07 Joel Brobecker <brobecker@adacore.com>
7849
7850 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7851 Renames TARGET_OBJECT_AIX_LIBRARIES.
7852 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7853 TARGET_OBJECT_LIBRARIES_AIX throughout.
7854 * solib-aix.c: Likwise.
7855
26a4dda9
YQ
78562013-05-07 Yao Qi <yao@codesourcery.com>
7857
7858 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7859 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7860
3582629f
YQ
78612013-05-07 Yao Qi <yao@codesourcery.com>
7862
7863 * solib-dsbt.c (enable_break): Declare.
7864 (dsbt_current_sos): Remove call to enable_break2.
7865 (enable_break2): Rename to enable_break. Set solib breakpoint
7866 on '_dl_debug_state'.
7867 (enable_break): Remove.
7868
aacbb8a5
LM
78692013-05-07 Luis Machado <lgustavo@codesourcery.com>
7870
7871 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7872 debug state prior to replicating existing hardware watchpoints or
7873 breakpoints.
7874
0c013353
JK
78752013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7876
7877 * gcore.c (gcore_create_callback): Ignore sections with
7878 separate_debug_objfile_backlink != NULL.
7879
a1217d97
SL
78802013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7881 Andrew Jenner <andrew@codesourcery.com>
7882 Chung-Lin Tang <cltang@codesourcery.com>
7883 Julian Brown <julian@codesourcery.com>
7884
7885 Based on the nios2-elf port from Altera Corporation.
7886
7887 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7888 nios2-linux-tdep.o.
7889 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7890 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7891 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7892 * nios2-tdep.h: New.
7893 * nios2-tdep.c: New.
7894 * nios2-linux-tdep.c: New.
7895 * features/Makefile (WHICH): Add nios2-linux.
7896 (nios2-linux-expedite): Set.
7897 * features/nios2-cpu.xml: New.
7898 * features/nios2.xml: New.
7899 * features/nios2-linux.xml: New.
7900 * features/nios2.c: New (autogenerated).
7901 * features/nios2-linux.c: New (autogenerated).
7902 * regformats/nios2-linux.dat: New (autogenerated).
7903 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7904 and commands.
7905
0892cb63
DE
79062013-05-06 Doug Evans <dje@google.com>
7907
3b7bacac
DE
7908 * symfile.c: Whitespace cleanup.
7909
0892cb63
DE
7910 * solist.h (struct target_so_ops): New member clear_so.
7911 * solib-svr4.c (svr4_clear_so): New function.
7912 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7913 * solib.c (clear_so): Renamed from free_so_symbols.
7914 All callers updated. Call target clear_so if it exists.
7915
40501e00
TT
79162013-05-06 Tom Tromey <tromey@redhat.com>
7917
7918 * ada-lang.c (ada_value_primitive_packed_val): Don't
7919 call value_incref.
7920 * value.c (set_value_parent): Incref the new parent and decref
7921 the old parent.
7922 (value_copy, value_primitive_field): Use set_value_parent.
7923
b6807d98
TT
79242013-05-06 Tom Tromey <tromey@redhat.com>
7925
7926 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7927 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7928 if needed.
7929 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7930 * dwarf2read.c (write_constant_as_bytes)
7931 (dwarf2_fetch_constant_bytes): New functions.
7932
3aef2284
TT
79332013-05-06 Tom Tromey <tromey@redhat.com>
7934
7935 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7936 parameters.
7937 (dwarf2_const_value_attr): Update.
7938
66f65e2b
TT
79392013-05-06 Tom Tromey <tromey@redhat.com>
7940
7941 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7942 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7943 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7944 Remove declaration.
7945
7919a973
TT
79462013-05-06 Tom Tromey <tromey@redhat.com>
7947
7948 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7949 objfile's obstack.
7950
a7bfba49
DE
79512013-05-06 Doug Evans <dje@google.com>
7952
3189cb12
DE
7953 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7954 * stabsread.h (process_one_symbol): Update declaration.
7955 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7956 * elfread.c (elf_symfile_relocate_probe): Ditto.
7957 * psymtab.c (relocate_psymtabs): Ditto.
7958 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7959 (objfile_relocate): Ditto.
7960 * objfiles.h (objfile_relocate): Update declaration.
7961 * symfile.c (relative_addr_info_to_section_offsets): Constify
7962 addrs parameter.
7963 (default_symfile_offsets): Ditto.
7964 (syms_from_objfile_1): Constify offsets parameter.
7965 (syms_from_objfile): Ditto.
7966 (symbol_file_add_with_addrs_or_offsets): Ditto.
7967 (symfile_map_offsets_to_segments): Constify data parameter.
7968 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7969 delta parameters of member relocate.
7970 (struct sym_probe_fns): Constify new_offsets,
7971 delta parameters of member sym_relocate_probe.
7972 (struct sym_fns): Constify section_addr_info parameter of member
7973 sym_offsets.
7974 (relative_addr_info_to_section_offsets): Update declaration.
7975 (default_symfile_offsets): Ditto.
7976 (syms_from_objfile): Ditto.
7977 (symfile_map_offsets_to_segments): Ditto.
7978
a7bfba49
DE
7979 * symfile.c (syms_from_objfile_1): Use correct section count when
7980 objfile->sf == NULL.
7981
5f8e0b8f
MF
79822013-05-06 Mike Frysinger <vapier@gentoo.org>
7983
7984 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7985
ea52d893
DE
79862013-05-06 Doug Evans <dje@google.com>
7987
7988 * psympriv.h (struct partial_symtab): Augment comment for member
7989 section_offsets.
7990
4d1eb6b4
JB
79912013-05-06 Joel Brobecker <brobecker@adacore.com>
7992
7993 Reimplement shared library support on ppc-aix...
7994 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7995 * features/library-list-aix.dtd: New file.
7996 * solib-aix.h, solib-aix.c: New file.
7997 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7998 (rs6000_find_toc_address_hook): Delete.
7999 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8000 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8001 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8002 "xml-utils.h".
8003 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8004 (vmap_symtab, fixup_breakpoints): Delete.
8005 (rs6000_xfer_shared_libraries): New function.
8006 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8007 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8008 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8009 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8010 (rs6000_xfer_shared_library): New function.
8011 (find_toc_address): Delete.
8012 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8013 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8014 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8015 before creating minimal symbol. Adjust function description
8016 accordingly.
8017 (scan_xcoff_symtab): Replace call to
8018 prim_record_minimal_symbol_and_info by call to
8019 record_minimal_symbol.
8020 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8021 around default_symfile_offsets.
8022 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8023 powerpc-aix targets.
8024 * config/rs6000/nm-rs6000.h: Delete.
8025 * config/powerpc/aix.mh (NAT_FILE): Delete.
8026 (NATDEPFILES): Remove xcoffsolib.o.
8027 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8028 (ALL_TARGET_OBS): Add solib-aix.o.
8029 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8030 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8031 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8032 * xcoffsolib.h, xcoffsolib.c: Delete.
8033
8034 * solib.c (reload_shared_libraries): Remove reference to
8035 SOLIB_CREATE_INFERIOR_HOOK.
8036 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8037 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8038 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8039 comment.
8040 * corelow.c (deprecated_core_resize_section_table): Delete.
8041 * exec.c: Remove include of xcoffsolib.h".
8042 (map_vmap, vmap): Delete.
8043 (exec_close_1): Remove references to vmap.
8044 (exec_file_attach): Remove vmap handling code, and reference
8045 to DEPRECATED_IBM6000_TARGET.
8046 (bfdsec_to_vmap): Delete.
8047 (exec_files_info): Remove block of code handling VMAP.
8048 * infcmd.c (post_create_inferior): Remove reference to
8049 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8050 * infrun.c (follow_exec): Remove reference to
8051 SOLIB_CREATE_INFERIOR_HOOK.
8052 * stack.c (print_frame): Remove reference to PC_SOLIB.
8053 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8054 (dsbt_relocate_main_executable): Likewise.
8055 * solib-frv.c (frv_current_sos): Likewise.
8056
0c4f667c
JB
80572013-05-06 Joel Brobecker <brobecker@adacore.com>
8058
8059 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8060 to target_write_memory and target_read_memory.
8061
726ce67c
JB
80622013-05-06 Joel Brobecker <brobecker@adacore.com>
8063
8064 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8065 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8066
c8c9911f
JB
80672013-05-06 Joel Brobecker <brobecker@adacore.com>
8068
8069 * darwin-nat.c: Replace all "%x" instances in format strings
8070 into "0x%x" throughout.
8071
fda184b6
JB
80722013-05-06 Joel Brobecker <brobecker@adacore.com>
8073
8074 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8075 gdb_assert by call to MACH_CHECK_ERROR.
8076 (darwin_attach_pid): Raise an error rather than a failed
8077 assertion when various system calls failed. Report a warning
8078 instead of raising a failed assertion when PREV_NOT is not NULL
8079 after call to mach_port_request_notification.
8080 (darwin_ptrace_me): Raise an error rather than a failed
8081 assertion when read returns nonzero.
8082
d1d69afb
JB
80832013-05-06 Joel Brobecker <brobecker@adacore.com>
8084
8085 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8086
dc90b24d
JK
80872013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8088
8089 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8090
faab9922
JK
80912013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8092
8093 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8094 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8095 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8096 a stale cleanup. Fix double free of NAME.
8097
e0ea48a0
EZ
80982013-05-04 Eli Zaretskii <eliz@gnu.org>
8099
8100 * windows-nat.c (windows_delete_thread): Accept an additional
8101 argument, the thread's exit code, and announce thread death when
8102 print_thread_events is non-zero and we are deleting a thread that
8103 is not the main thread.
8104 (get_windows_debug_event): Pass thread exit code to
8105 windows_delete_thread.
8106
83b2706a
KB
81072013-05-03 Kevin Buettner <kevinb@redhat.com>
8108
8109 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8110 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8111 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8112 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8113 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8114 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8115 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8116 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8117 (gdbarch_tdep): New struct.
8118 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8119 E_NUM_REGS.
8120 (v850e3v5_register_name): New function.
8121 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8122 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8123 code handling the struct return conventions for the RH850 ABI.
8124 Update all callers.
8125 (v850_eight_byte_align_p): New function.
8126 (v850_push_call_dummy): Push structs by value, not by reference
8127 for the RH850 ABI. Add support for eight byte alignment.
8128 (v850_dbtrap_breakpoint_from_pc): New function.
8129 (v850_gdbarch_init): Add ABI detection code. Register
8130 v850e3v5_register_name for the v850e3v5 architecture. Set the
8131 number of registers for v850e3v5. Register
8132 v850_dbtrap_breakpoint_from_pc as appropriate.
8133 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8134
d445b2f6
DE
81352013-05-03 Doug Evans <dje@google.com>
8136
8137 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8138 of bfd_count_sections.
8139 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8140 * symfile.c (default_symfile_offsets): Ditto.
8141 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8142 one entry, not bfd_count_sections entries.
8143
b3ce41ea
KB
81442013-05-03 Kevin Buettner <kevinb@redhat.com>
8145
8146 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8147 `save' and `restore' register groups. Don't include SPL
8148 or SPH in these groups.
8149 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8150 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8151 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8152 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8153 dwarf2_append_unwinders().
8154
96f7d3f1
PW
81552013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8156
8157 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8158 ignore SIGINT and SIGTRAP in case these internal signals are
8159 caught explicitely.
8160
b9dd1947
JB
81612013-05-01 Joel Brobecker <brobecker@adacore.com>
8162
8163 * darwin-nat.c (darwin_read_write_inferior): Change types
8164 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8165 of copy_count to "mach_msg_type_number_t".
8166 (darwin_read_dyld_info): Change type of parameter
8167 rdaddr to "gdb_byte *".
8168
4ca18a63
JB
81692013-05-01 Joel Brobecker <brobecker@adacore.com>
8170
8171 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8172 of &info->load_map from "char *" to "gdb_byte *".
8173
2b692d32
JB
81742013-05-01 Joel Brobecker <brobecker@adacore.com>
8175
8176 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8177 from "char *" to "gdb_byte *".
8178 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8179
a98c29a0
DE
81802013-04-30 Doug Evans <dje@google.com>
8181
6a506a2d
DE
8182 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8183 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8184 DWO stub. If DWO isn't found, just use stub.
8185 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8186
a98c29a0
DE
8187 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8188 calling init_cutu_and_read_dies.
8189
f92b06da
WT
81902013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8191
8192 * target-descriptions.c (maint_print_c_tdesc_cmd):
8193 Add case to parse structures as register types and
8194 bitfields.
8195
95eebdcc
WT
81962013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8197
8198 * MAINTAINERS (Write After Approval): Add myself to the list.
8199
019c1128
JB
82002013-04-30 Joel Brobecker <brobecker@adacore.com>
8201
8202 * sol-thread.c (rw_common): Change type of parameter "buf"
8203 to "gdb_byte *".
8204 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8205 rw_common to "gdb_byte *" instead of "char *".
8206
5812197c
JB
82072013-04-30 Joel Brobecker <brobecker@adacore.com>
8208
8209 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8210 of local variable msym to const struct bound_minimal_symbol.
8211 Adjust use accordingly.
8212 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8213
ecccb813
TS
82142013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8215
8216 * i386gnu-nat.c (CREG_OFFSET): New macro.
8217 (creg_offset): New array.
8218 (CREG_ADDR): Use creg_offset instead of reg_offset.
8219
f1d02dd4 82202013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
8221
8222 * mep-tdep.c (mep_write_pc): Delete.
8223 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8224 Add call to set_gdbarch_pc_regnum.
8225
f1d02dd4 82262013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
8227
8228 * common/filestuff.c: Replace #include <dirent.h> by
8229 #include "gdb_dirent.h".
8230
f1d02dd4 82312013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
8232
8233 * common/filestuff.c: Replace #include <sys/stat.h> by
8234 #include "gdb_stat.h".
8235
b385a60d
PM
82362013-04-29 Pierre Muller <muller@sourceware.org>
8237
8238 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8239 editCase function rule.
8240 (get_DW_AT_signature_type): Likewise.
8241
d27b54ad
JB
82422013-04-29 Joel Brobecker <brobecker@adacore.com>
8243
8244 * m32r-tdep.c (m32r_write_pc): Delete.
8245 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8246 Add call to set_gdbarch_pc_regnum.
8247
47d21dc5
PM
82482013-04-29 Pierre Muller <muller@sourceware.org>
8249
8250 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8251
9056882e
JB
82522013-04-29 Joel Brobecker <brobecker@adacore.com>
8253
8254 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8255
7ee4732a
YQ
82562013-04-28 Yao Qi <yao@codesourcery.com>
8257
8258 * solib-dsbt.c (fetch_loadmap): Re-indent.
8259 (displacement_from_map, enable_break2): Likewise.
8260 (dsbt_relocate_section_addresses): Likewise.
8261
2260af53 82622013-04-26 Joel Brobecker <brobecker@adacore.com>
8263
8264 GDB 7.6 released.
8265
ff546935
TT
82662013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8267
8268 PR corefiles/14983:
8269 * dwarf2read.c (process_full_comp_unit): Always create a static
8270 block.
8271
40fb6c5e
HZ
82722013-04-25 Hui Zhu <hui@codesourcery.com>
8273
8274 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8275 to loc->cmd_bytecode.
8276
74e04d1c
DE
82772013-04-24 Doug Evans <dje@google.com>
8278
8279 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8280
3cf62c1d
KS
82812013-04-22 Keith Seitz <keiths@redhat.com>
8282
8283 * tracepoint.c (trace_save): Call the writer's start method.
8284
bf9e4d0c
MB
82852013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8286
8287 PR gdb/10462
8288 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8289 before argument.
8290
5d71132c
TT
82912013-04-23 Tom Tromey <tromey@redhat.com>
8292
8293 * common/filestuff.c: Check USE_WIN32API before including
8294 sys/socket.h.
8295 (HAVE_F_GETFD): New define.
8296 (mark_cloexec): Check HAVE_F_GETFD.
8297 (gdb_open_cloexec): Change 'mode' to unsigned long.
8298 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8299 (gdb_pipe_cloexec): Check HAVE_PIPE.
8300 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8301 long.
8302
a11cfd87
HZ
83032013-04-23 Hui Zhu <hui@codesourcery.com>
8304
8305 PR gdb/15293
a11cfd87
HZ
8306 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8307
2d9442cc
HZ
83082013-04-23 Hui Zhu <hui@codesourcery.com>
8309
8310 PR gdb/15165
2d9442cc
HZ
8311 * breakpoint.c (dprintf_print_recreate): New.
8312 (save_breakpoints): Let it not save dprintf commands.
8313 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8314
614c279d
TT
83152013-04-22 Tom Tromey <tromey@redhat.com>
8316
8317 PR gdb/7912:
8318 * Makefile.in (SFILES): Add filestuff.c
8319 (COMMON_OBS): Add filestuff.o.
8320 (filestuff.o): New target.
8321 * auto-load.c (auto_load_objfile_script_1): Use
8322 gdb_fopen_cloexec.
8323 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8324 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8325 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8326 * common/agent.c (gdb_connect_sync_socket): Use
8327 gdb_socket_cloexec.
8328 * common/filestuff.c: New file.
8329 * common/filestuff.h: New file.
8330 * common/linux-osdata.c (linux_common_core_of_thread)
8331 (command_from_pid, commandline_from_pid, print_source_lines)
8332 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8333 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8334 gdb_fopen_cloexec.
8335 * common/linux-procfs.c (linux_proc_get_int)
8336 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8337 * config.in, configure: Rebuild.
8338 * configure.ac: Don't check for sys/socket.h. Check for
8339 fdwalk, pipe2.
8340 * corelow.c (core_open): Use gdb_open_cloexec.
8341 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8342 * fork-child.c (fork_inferior): Call close_most_fds.
8343 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8344 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8345 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8346 Use gdb_fopen_cloexec.
8347 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8348 gdb_open_cloexec.
8349 (linux_async_pipe): Use gdb_pipe_cloexec.
8350 * remote-fileio.c (remote_fileio_func_open): Use
8351 gdb_open_cloexec.
8352 * remote.c (remote_file_put, remote_file_get): Use
8353 gdb_fopen_cloexec.
8354 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8355 close_most_fds.
8356 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8357 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8358 * solib.c (solib_find): Use gdb_open_cloexec.
8359 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8360 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8361 (tfile_open): Use gdb_open_cloexec.
8362 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8363 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8364 * xml-support.c (xml_fetch_content_from_file): Use
8365 gdb_fopen_cloexec.
8366 * main.c (captured_main): Call notice_open_fds.
8367
5fda2332
EBM
83682013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8369
8370 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8371 'char *' to 'gdb_byte *'.
8372 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8373 'gdb_byte'.
8374
eb6c553b
YQ
83752013-04-22 Yao Qi <yao@codesourcery.com>
8376
8377 * infrun.c: Fix typo in comment.
8378
9991b207
SDJ
83792013-04-22 Andrew Haley <aph@redhat.com>
8380
8381 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8382 instead of "long".
8383
8b4833e3
YQ
83842013-04-20 Yao Qi <yao@codesourcery.com>
8385
8386 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8387 'char *' to 'gdb_byte *'. Cast the return value of
8388 'bt_ctf_get_char_array' to 'gdb_byte *'.
8389
bd3f3b55
PA
83902013-04-19 Pedro Alves <palves@redhat.com>
8391
8392 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8393 -Wpointer-sign.
8394 * configure: Regenerate.
8395
c49e7f76
PA
83962013-04-19 Pedro Alves <palves@redhat.com>
8397
8398 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8399 'void *'.
8400
12ff8552
PA
84012013-04-19 Pedro Alves <palves@redhat.com>
8402
8403 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8404 Change type of 'myaddr' parameter to gdb_byte pointer.
8405 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8406 to 'long long' pointer instead of to 'unsigned long long'.
8407 (monitor_write_memory_block, monitor_read_memory_single)
8408 (monitor_read_memory): Change type of 'myaddr' parameter to
8409 gdb_byte pointer.
8410
9c37696b
PA
84112013-04-19 Pedro Alves <palves@redhat.com>
8412
8413 * record.c (validate_history_size): Make parameter 'setting'
8414 unsigned.
8415
a398505b
PA
84162013-04-19 Pedro Alves <palves@redhat.com>
8417
8418 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8419 to 'gdb_byte *'.
8420
9f8afa72
PA
84212013-04-19 Pedro Alves <palves@redhat.com>
8422
8423 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8424 local to int.
8425
c714b426
PA
84262013-04-19 Pedro Alves <palves@redhat.com>
8427
8428 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8429 * ada-tasks.c (read_fat_string_value): Likewise.
8430
507a579c
PA
84312013-04-19 Pedro Alves <palves@redhat.com>
8432
8433 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8434 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8435 'offset', and adjust.
8436
f9d83a0b
PA
84372013-04-19 Pedro Alves <palves@redhat.com>
8438
8439 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8440 (read_index_from_section): Add cast to 'char *'.
8441
745eb4fd
PA
84422013-04-19 Pedro Alves <palves@redhat.com>
8443
8444 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8445
db5be46f
PA
84462013-04-19 Pedro Alves <palves@redhat.com>
8447
8448 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8449
0f928d68
PA
84502013-04-19 Pedro Alves <palves@redhat.com>
8451
8452 * record-full.c (record_full_get_bookmark): Change local 'ret'
8453 type to char * and add cast to gdb_byte *.
8454 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8455 string.
8456 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8457
89f6d837
PA
84582013-04-19 Pedro Alves <palves@redhat.com>
8459
8460 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8461 * python/py-prettyprint.c (print_string_repr): Change type of
8462 'output' local to char *. Add cast to gdb_byte * in
8463 LA_PRINT_STRING call.
8464 (print_children): Change type of 'output' local to char *.
8465 * python/py-value.c (valpy_string): Add cast to const char * in
8466 PyUnicode_Decode call.
8467
ce6ec7d8
PA
84682013-04-19 Pedro Alves <palves@redhat.com>
8469
8470 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8471 and change its type to 'const char *'. Adjust.
8472 (mips_send_packet): Add cast to 'char *', and remove cast to
8473 'unsigned char *'.
8474 (mips_receive_packet): Remove cast to 'unsigned char *'.
8475 (mips_load_srec): Use bfd_byte.
8476 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8477 (pmon_checkset): Make 'value' parameter unsigned.
8478
fda0389f
PA
84792013-04-19 Pedro Alves <palves@redhat.com>
8480
8481 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8482
bc20a4af
PA
84832013-04-19 Pedro Alves <palves@redhat.com>
8484
8485 * remote.c (remote_write_bytes_aux, compare_sections_command)
8486 (remote_read_qxfer)
8487 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8488 (remote_hostio_readlink, remote_bfd_iovec_pread)
8489 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8490 binary buffer, and char when buffer is used as string.
8491 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8492 (trace_save, tfile_open, traceframe_walk_blocks)
8493 (tfile_fetch_registers): Likewise.
8494
c628b528
PA
84952013-04-19 Pedro Alves <palves@redhat.com>
8496
8497 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8498 buffer and size_t size. Adjust.
8499 * ser-base.h (ser_base_write): Adjust.
8500 * ser-go32.c (cnts): Change type to size_t.
8501 (dos_write): Change prototype -- take 'void *'
8502 buffer and size_t size. Adjust.
8503 (dos_info): Print elements of 'cnts' as unsigned long.
8504 * serial.c (serial_write): Likewise.
8505 * serial.h (serial_write): Adjust.
8506 (struct serial_ops) <write>: Change prototype -- take 'void *'
8507 buffer and size_t size. Adjust.
8508
51a5cd90
PA
85092013-04-19 Pedro Alves <palves@redhat.com>
8510
8511 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8512 gdb_byte *.
8513 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8514
a9933661
PA
85152013-04-19 Pedro Alves <palves@redhat.com>
8516
8517 * alpha-tdep.c (alpha_extract_return_value): Use
8518 regcache_cooked_read_unsigned to read 'v0'.
8519
19afdd07
PA
85202013-04-19 Pedro Alves <palves@redhat.com>
8521
8522 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8523 parameters 'at', 'as' and 'offset' to uint32_t.
8524
96b32e50
PA
85252013-04-19 Pedro Alves <palves@redhat.com>
8526
8527 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8528 'is64' to signed 'int'.
8529
eb1bd1fb
PA
85302013-04-19 Pedro Alves <palves@redhat.com>
8531
8532 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8533 parameter to int *.
8534
463920bf
PA
85352013-04-19 Pedro Alves <palves@redhat.com>
8536
8537 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8538 'insnbuf' buffer type to unsigned int[].
8539
70242eb1
PA
85402013-04-19 Pedro Alves <palves@redhat.com>
8541
8542 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8543
9d1dd0e2
PA
85442013-04-19 Pedro Alves <palves@redhat.com>
8545
8546 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8547 unsigned long *.
8548
44096aee
PA
85492013-04-19 Pedro Alves <palves@redhat.com>
8550
8551 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8552 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8553 UINT_MAX.
8554 * mips-tdep.c (heuristic_fence_post): Change type to int.
8555 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8556
e4286e57
PA
85572013-04-19 Pedro Alves <palves@redhat.com>
8558
8559 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8560 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8561 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8562
001f13d8
PA
85632013-04-19 Pedro Alves <palves@redhat.com>
8564
8565 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8566 it to get a string view of the byte buffer.
8567 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8568 type to gdb_byte *. Adjust.
8569 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8570 Change local to char *.
8571 * solib-darwin.c (find_program_interpreter): Change return type to
8572 char *. Adjust.
8573 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8574 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8575 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8576 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8577 * solib-svr4.c (find_program_interpreter): Change return type to
8578 char *. Adjust.
8579 (enable_break): Change local 'interp_name' to char *.
8580 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8581 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8582 (spu_pseudo_register_write_spu): Use char for string buffer.
8583 Adjust.
8584 (info_spu_event_command, info_spu_signal_command): Add casts to
8585 'char *'.
8586
948f8e3d
PA
85872013-04-19 Pedro Alves <palves@redhat.com>
8588
8589 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8590 gdb_byte[].
8591 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8592 * ada-lang.c (ada_value_assign): Use gdb_byte.
8593 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8594 (alphanbsd_sigtramp_offset): Use gdb_byte.
8595 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8596 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8597 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8598 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8599 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8600 * arm-tdep.c (arm_stub_unwind_sniffer)
8601 (arm_displaced_init_closure): Use gdb_byte.
8602 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8603 (arm_default_thumb_le_breakpoint)
8604 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8605 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8606 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8607 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8608 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8609 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8610 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8611 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8612 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8613 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8614 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8615 (cris_store_return_value, cris_extract_return_value): Use
8616 gdb_byte.
8617 (constraint): Change type of parameter to char * from signed
8618 char*. Use gdb_byte.
8619 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8620 of local buffer to gdb_byte *.
8621 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8622 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8623 (add_address_entry): Change type of local buffer to gdb_byte[].
8624 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8625 (frv_push_dummy_call): Use gdb_byte.
8626 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8627 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8628 (hppa_hpux_supply_save_state): Use gdb_byte.
8629 * hppa-tdep.c (hppa32_push_dummy_call)
8630 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8631 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8632 (slotN_contents, replace_slotN_contents): Change type of parameter
8633 to gdb_byte *.
8634 (fetch_instruction, ia64_pseudo_register_write)
8635 (ia64_register_to_value, ia64_value_to_register)
8636 (ia64_extract_return_value, ia64_store_return_value)
8637 (ia64_push_dummy_call): Use gdb_byte.
8638 * m32c-tdep.c (m32c_return_value): Remove cast.
8639 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8640 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8641 gdb_byte.
8642 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8643 * mn10300-tdep.c (mn10300_store_return_value)
8644 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8645 gdb_byte.
8646 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8647 (moxie_process_record): Remove casts.
8648 * ppc-ravenscar-thread.c (supply_register_at_address)
8649 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8650 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8651 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8652 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8653 * remote.c (compare_sections_command): Use gdb_byte.
8654 * score-tdep.c (score7_free_memblock): Change type of parameter to
8655 gdb_byte *.
8656 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8657 gdb_byte *. Use gdb_byte.
8658 (sh_push_dummy_call_fpu): Use gdb_byte.
8659 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8660 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8661 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8662 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8663 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8664 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8665 (sh64_store_return_value, sh64_register_convert_to_virtual):
8666 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8667 (sh64_pseudo_register_write): Use gdb_byte.
8668 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8669 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8670 buffer.
8671 (irix_current_sos): Use gdb_byte.
8672 * solib-som.c (som_current_sos): Use gdb_byte.
8673 * sparc-ravenscar-thread.c (supply_register_at_address)
8674 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8675 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8676 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8677 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8678 'gdb_byte *'.
8679 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8680 'gdb_byte *'.
8681 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8682 * xstormy16-tdep.c (xstormy16_extract_return_value)
8683 (xstormy16_store_return_value): Change parameter type to
8684 'gdb_byte *'. Adjust.
8685 (xstormy16_push_dummy_call): Use gdb_byte.
8686 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8687 (call0_analyze_prologue, execute_code): Use gdb_byte.
8688
433730c9
PA
86892013-04-19 Vladimir Kargov <kargov@gmail.com>
8690 Pedro Alves <palves@redhat.com>
8691
8692 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8693 value contents.
8694
ac9ec31b
DE
86952013-04-17 Doug Evans <dje@google.com>
8696
8697 * dwarf2read.c (struct signatured_type): New member type.
8698 (struct attribute): Replace member signatured_type with signature.
8699 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8700 (read_call_site_scope): Call follow_die_ref instead of
8701 follow_die_ref_or_sig.
8702 (read_structure_type): Rewrite handling of signatured types.
8703 (read_enumeration_type): Ditto.
8704 (read_attribute_value): Update.
8705 (build_error_marker_type): New function.
8706 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8707 Don't call error for bad types, just build an error marker type.
8708 (dump_die_shallow): Update.
8709 (follow_die_sig_1): Renamed from follow_die_sig.
8710 Don't call error for bad types, instead return NULL.
8711 (follow_die_sig): New function.
8712 (get_signatured_type, get_DW_AT_signature_type): New functions.
8713
e546e8bb
YZ
87142013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8715
8716 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8717 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8718 function.
e546e8bb 8719
ab116149
YQ
87202013-04-17 Yao Qi <yao@codesourcery.com>
8721
8722 * top.c (print_gdb_configuration): Print configure-time
8723 parameter on using libbabeltrace or not.
8724
488a42b8
PA
87252013-04-16 Pedro Alves <palves@redhat.com>
8726
8727 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8728
f5fb825b
PA
87292013-04-16 Pedro Alves <palves@redhat.com>
8730
85d494ea 8731 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8732 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8733
e1154999
PA
87342013-04-16 Pedro Alves <palves@redhat.com>
8735
8736 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8737 * common/glibc_thread_db.h: ... this new file ...
8738 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8739
e3b50a7f
PA
87402013-04-16 Will Newton <will.newton@gmail.com>
8741 Pedro Alves <palves@redhat.com>
8742
8743 PR build/11881
8744
8745 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8746 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8747 HAVE_THREAD_DB_H.
8748
1c2e4450
PA
87492013-04-16 Pedro Alves <palves@redhat.com>
8750 Eli Zaretskii <eliz@gnu.org>
8751
8752 * NEWS: Mention "set foo unlimited".
8753
4031ecc5
DE
87542013-04-15 Doug Evans <dje@google.com>
8755
19c3d4c9
DE
8756 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8757 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8758 (create_dwo_cu_reader): Renamed from
8759 create_dwo_debug_info_hash_table_reader.
8760 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8761 Remove support for multiple CUs in a DWO file.
8762 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8763
4031ecc5
DE
8764 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8765 instead of phex.
8766 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8767 (create_dwo_in_dwp): Ditto.
8768
b340913d
TT
87692013-04-15 Tom Tromey <tromey@redhat.com>
8770
8771 * NEWS: Move recent entries into "since 7.6" section.
8772
cc16e6c9
TT
87732013-04-15 Tom Tromey <tromey@redhat.com>
8774
8775 PR c++/13588:
8776 * NEWS: Update.
8777 * break-catch-throw.c (struct exception_catchpoint)
8778 <exception_rx, pattern>: New fields.
8779 (fetch_probe_arguments, dtor_exception_catchpoint)
8780 (check_status_exception_catchpoint)
8781 (print_one_detail_exception_catchpoint): New functions.
8782 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8783 Compile regular expression if needed.
8784 (extract_exception_regexp): New function.
8785 (catch_exception_command_1): Use extract_exception_regexp.
8786 (compute_exception): Use fetch_probe_arguments.
8787 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8788 and check_status fields.
8789 * cp-abi.c (cplus_typename_from_type_info): New function.
8790 * cp-abi.h (cplus_typename_from_type_info): Declare.
8791 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8792 * gdb_regex.h (compile_rx_or_error): Declare.
8793 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8794 comment.
8795 (init_gnuv3_ops): Set get_type_from_type_info field.
8796 * probe.c (compile_rx_or_error): Move...
8797 * utils.c (compile_rx_or_error): ... here.
8798
72f1fe8a
TT
87992013-04-15 Tom Tromey <tromey@redhat.com>
8800
8801 PR c++/15176:
8802 * NEWS: Update.
8803 * break-catch-throw.c (compute_exception): New function.
8804 (exception_funcs): New global.
8805 (_initialize_break_catch_throw): Create $_exception.
8806 * cp-abi.c (cplus_type_from_type_info): New function.
8807 * cp-abi.h (cplus_type_from_type_info): Declare.
8808 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8809 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8810 (gnuv3_get_type_from_type_info): New functions.
8811 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8812
fc4746a2
TT
88132013-04-15 Tom Tromey <tromey@redhat.com>
8814
8815 * break-catch-throw.c (struct exception_names): New.
8816 (exception_functions): Change type.
8817 (re_set_exception_catchpoint): Look for SDT probes.
8818
15a73f56
TT
88192013-04-15 Tom Tromey <tromey@redhat.com>
8820
8821 PR c++/10119:
8822 * break-catch-throw.c (exception_functions): New global.
8823 (gnu_v3_exception_catchpoint_ops): Move earlier.
8824 (struct exception_catchpoint): New.
8825 (classify_exception_breakpoint): Rewrite.
8826 (re_set_exception_catchpoint): New function.
8827 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8828 Allocate a struct exception_catchpoint.
8829 (catch_exception_command_1): Update.
8830 (initialize_throw_catchpoint_ops): Set 're_set' method.
8831
916703c0
TT
88322013-04-15 Tom Tromey <tromey@redhat.com>
8833
8834 * Makefile.in (SFILES): Add break-catch-throw.c
8835 (COMMON_OBS): Add break-catch-throw.o.
8836 * break-catch-throw.c: New file.
8837 * breakpoint.c: Move exception-catching code to new file.
8838 (ep_parse_optional_if_clause): No longer static.
8839 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8840
6e72ca20
TT
88412013-04-15 Tom Tromey <tromey@redhat.com>
8842
8843 PR c++/9065:
8844 * NEWS: Update.
8845 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8846 * c-exp.y (TYPEID): New token.
8847 (exp): Add new TYPEID productions.
8848 (ident_tokens): Add "typeid".
8849 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8850 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8851 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8852 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8853 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8854 case.
8855 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8856 (build_std_type_info_type, gnuv3_get_typeid_type)
8857 (gnuv3_get_typeid): New functions.
8858 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8859 new fields on ABI object.
8860 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8861 * std-operator.def (OP_TYPEID): New.
8862
715c6909
TT
88632013-04-15 Tom Tromey <tromey@redhat.com>
8864
8865 * elfread.c (elf_symtab_read): Install versioned symbol under
8866 unversioned name as well.
8867
8de20a37
TT
88682013-04-15 Tom Tromey <tromey@redhat.com>
8869
8870 PR c++/11990:
8871 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8872 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8873 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8874 (gdb_demangle): New function.
8875 * cp-support.h (gdb_demangle): Declare.
8876 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8877 (dwarf2_name): Use gdb_demangle.
8878 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8879 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8880 suffixes from name.
8881 (gnuv3_print_method_ptr): Use gdb_demangle.
8882 * jv-lang.c (java_demangle): Use gdb_demangle.
8883 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8884 * language.c (unk_lang_demangle): Use gdb_demangle.
8885 * symtab.c (symbol_find_demangled_name)
8886 (demangle_for_lookup): Use gdb_demangle.
8887
591f19e8
TT
88882013-04-15 Tom Tromey <tromey@redhat.com>
8889
8890 PR c++/12824:
8891 * NEWS: Update.
8892 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8893 New constant.
8894 (classify_exception_breakpoint): New function.
8895 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8896 (print_mention_exception_catchpoint)
8897 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8898 (catch_exception_command_1): Handle "rethrow" catchpoint.
8899 (catch_rethrow_command): New function.
8900 (_initialize_breakpoint): Add "catch rethrow" command.
8901
4d40cad2
PM
89022013-04-15 Pierre Muller <muller@sourceware.org>
8903
8904 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8905 set_gdbarch_write_pc as deprecated anymore.
8906
30bcb456
JB
89072013-04-15 Joel Brobecker <brobecker@adacore.com>
8908
8909 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8910 declarations.
8911
da9160e4
YQ
89122013-04-13 Yao Qi <yao@codesourcery.com>
8913
8914 * ctf.c (_initialize_ctf): Include "completer.h".
8915 Call add_target_with_completer instead of add_target.
8916
39ed5604
JK
89172013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8918
8919 Fix GDB regression related to PR binutils/14813.
8920 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8921 * minidebug.c (lzma_close): Add return value comment.
8922 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8923 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8924 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8925
89262013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8927
8928 * config.in: Regenerate.
8929
d521ce57
TT
89302013-04-12 Tom Tromey <tromey@redhat.com>
8931
8932 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8933 const.
8934 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8935 (struct die_reader_specs) <buffer>: Likewise.
8936 (die_reader_func_ftype): Make 'info_ptr' const.
8937 (struct line_header) <include_dirs, statement_program_start,
8938 statement_program_end>: Now const.
8939 (struct file_entry) <name>: Likewise.
8940 (struct partial_die_info) <sibling>: Likewise.
8941 (struct dwarf_block) <data>: Likewise.
8942 (dwarf2_read_section): Remove cast.
8943 (dwarf2_get_section_info): Make 'bufp' const.
8944 (read_index_from_section): Constify.
8945 (dw2_get_file_names_reader): Make 'info_ptr' const.
8946 (dw2_get_primary_filename_reader): Likewise.
8947 (read_comp_unit_head): Make 'info_ptr' and return type const.
8948 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8949 Likewise.
8950 (read_abbrev_offset): Constify.
8951 (dwarf2_create_include_psymtab): Make 'name' const.
8952 (create_debug_types_hash_table): Update.
8953 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8954 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8955 Constify.
8956 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8957 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8958 (read_comp_units_from_section): Constify.
8959 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8960 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8961 const.
8962 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8963 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8964 (create_dwp_hash_table, dwarf2_ranges_read)
8965 (dwarf2_record_block_ranges): Constify.
8966 (read_die_and_children, read_die_and_siblings_1)
8967 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8968 const.
8969 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8970 (abbrev_table_read_table): Constify.
8971 (load_partial_dies): Make 'info_ptr' const.
8972 (read_partial_die, read_attribute_value, read_attribute): Make
8973 'info_ptr' and return type const.
8974 (read_address, read_initial_length)
8975 (read_checked_initial_length_and_offset, read_offset)
8976 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8977 const.
8978 (read_direct_string): Make 'buf' and return type const.
8979 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8980 (read_indirect_string): Make return type const.
8981 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8982 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8983 'info_ptr' const.
8984 (read_str_index): Make return type const.
8985 (add_include_dir): Make 'include_dir' const.
8986 (add_file_name): Make 'name' const.
8987 (dwarf_decode_line_header): Constify.
8988 (psymtab_include_file_name): Make return type const.
8989 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8990 (dwarf2_start_subfile): Make 'filename' const.
8991 (dwarf2_const_value_attr): Make 'bytes' const.
8992 (read_signatured_type_reader): Make 'info_ptr' const.
8993 (decode_locdesc): Constify.
8994 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8995 const.
8996 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8997 'mac_end', and return type const.
8998 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8999 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9000 type const.
9001 (per_cu_header_read_in): Constify.
9002 * symfile.h (dwarf2_get_section_info): Update.
9003
d47a1bc1
TT
90042013-04-12 Tom Tromey <tromey@redhat.com>
9005
9006 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9007
6eaaf48b
EZ
90082013-04-12 Eli Zaretskii <eliz@gnu.org>
9009
fc4c25bf 9010 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
9011 * top.c (print_gdb_configuration): New function, displays the
9012 details about GDB configure-time parameters.
9013 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
9014 * cli/cli-cmds.c (show_configuration): New function.
9015 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
9016 * main.c (captured_main) <print_configuration>: New static var.
9017 <long_options>: Use it.
9018 If --configuration was given, call print_gdb_configuration.
9019
b292c783
JK
90202013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9021 Pedro Alves <palves@redhat.com>
9022
9023 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9024 (generated_files): Add gcore.
9025 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9026 HAVE_NATIVE_GCORE_HOST.
9027 (gcore): New.
9028 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9029 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9030 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9031 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9032 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9033 Add HAVE_NATIVE_GCORE_HOST.
9034 * configure: Regenerate.
9035 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9036 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9037 AC_CONFIG_FILES for gcore.
9038 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9039 gdb_have_gcore.
9040 * gdb_gcore.sh: Rename to ...
9041 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9042 and GCORE_TRANSFORM_NAME substitutions.
9043
c96b3c4f
JK
9044 Fix parsing tabs in ${gdb_target_obs}.
9045 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9046
d6cb50a2
JK
90472013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9048
9049 * remote.c (unpush_and_perror): Add output message final dot.
9050
cf2cb5ec
YQ
90512013-04-11 Yao Qi <yao@codesourcery.com>
9052
9053 * tracepoint.c (tfile_interp_line): Fit parameters line and
9054 utpp in one line.
9055
07293be4
JB
90562013-04-10 Joel Brobecker <brobecker@adacore.com>
9057
9058 * solib.c (solib_map_sections): Remove code overwriting
9059 SO->SO_NAME with the bfd's filename.
9060
f81d1120
PA
90612013-04-10 Pedro Alves <palves@redhat.com>
9062
9063 * cli/cli-decode.c (integer_unlimited_completer): New function.
9064 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9065 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9066 completer.
9067 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9068 (is_unlimited_literal): New function.
9069 (do_set_command): Handle literal "unlimited" arguments.
9070 * frame.c (_initialize_frame) <set backtrace limit>: Document
9071 "unlimited".
9072 * printcmd.c (_initialize_printcmd) <set print
9073 max-symbolic-offset>: Add help text.
9074 * record-full.c (_initialize_record_full) <set record full
9075 insn-number-max>: Likewise.
9076 * record.c (_initialize_record) <set record
9077 instruction-history-size, set record function-call-history-size>:
9078 Add help text.
9079 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9080 help text.
9081 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9082 Likewise.
9083 * source.c (_initialize_source) <set listsize>: Add help text.
9084 * utils.c (initialize_utils) <set height, set width>: Likewise.
9085 <set pagination>: Mention "set height unlimited".
9086 * valprint.c (_initialize_valprint) <set print elements, set print
9087 repeats>: Document "unlimited".
9088
2f9d54cf
PA
90892013-04-10 Pedro Alves <palves@redhat.com>
9090
9091 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9092 instead of disconnect_tracing.
9093 * infcmd.c (detach_command, disconnect_command): Call
9094 query_if_trace_running. Adjust.
9095 * top.c: Include "tracepoint.h".
9096 (quit_target): Delete. Contents moved ...
9097 (quit_force): ... here. Wrap each stage of teardown in
9098 TRY_CATCH. Call disconnect_tracing before detaching.
9099
393fd4c3
YQ
91002013-04-10 Hui Zhu <hui@codesourcery.com>
9101 Yao Qi <yao@codesourcery.com>
9102
9103 * configure.ac: Check libbabeltrace is installed.
9104 * config.in: Regenerate.
9105 * configure: Regenerate.
9106 * Makefile.in (LIBBABELTRACE): New.
9107 (CLIBS): Add LIBBABELTRACE.
9108 * ctf.c: Include "exec.h".
9109 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9110 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9111 (ctf_save_metadata_header): Define new type aliases in
9112 metadata.
9113 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9114 in metadata. Start a new faked packet for trace status.
9115 (ctf_write_status): Write trace status to CTF.
9116 (ctf_write_uploaded_tsv): Write TSV to CTF.
9117 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9118 (ctf_write_definition_end): End the faked packet.
9119
9120 (ctx, ctf_iter, trace_dirname): New.
9121 (start_pos): New variable.
9122 (ctf_destroy, ctf_open_dir, ctf_open): New.
9123 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9124 macros.
9125 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9126 (ctf_fetch_registers, ctf_xfer_partial): New.
9127 (ctf_get_trace_state_variable_value): New.
9128 (ctf_get_tpnum_from_frame_event): New.
9129 (ctf_get_traceframe_address): New.
9130 (ctf_trace_find, ctf_has_stack): New.
9131 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9132 (ctf_get_trace_status, ctf_read_status): New.
9133 (_initialize_ctf): New.
9134 * tracepoint.c (get_tracepoint_number): New
9135 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 9136 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
9137 * tracepoint.h: ... here.
9138 (get_tracepoint_number): Declare it.
9139 (get_uploaded_tsv): Declare it.
9140
9141 * NEWS: Mention new configure option.
9142
5c2b4418
HZ
91432013-04-10 Pedro Alves <palves@redhat.com>
9144 Hui Zhu <hui@codesourcery.com>
9145
9146 * breakpoint.c (dprintf_re_set): New.
9147 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9148 to dprintf_re_set.
9149
a5c66735
JB
91502013-04-09 Joel Brobecker <brobecker@adacore.com>
9151
9152 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9153 Remove solib-svr4.o from the list.
9154
9e77999c
JB
91552013-04-09 Joel Brobecker <brobecker@adacore.com>
9156
9157 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9158 Use gdb_assert_not_reached instead of invalid boolean expression.
9159
1927e618
PA
91602013-04-09 Pedro Alves <palves@redhat.com>
9161
9162 * remote.c (unpush_and_perror): New function.
9163 (readchar, remote_serial_write): Use it.
9164
10782d74
MM
91652013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9166
9167 * NEWS: Mention new btrace RSP packets.
9168
4c8429ef
TT
91692013-04-08 Tom Tromey <tromey@redhat.com>
9170
9171 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9172 long.
9173
8625fc1b
TT
91742013-04-08 Tom Tromey <tromey@redhat.com>
9175
9176 * maint.c (print_bfd_section_info): Print the section index.
9177 * symmisc.c (dump_msymbols): Print the section index.
9178
e27d198c
TT
91792013-04-08 Tom Tromey <tromey@redhat.com>
9180
9181 PR symtab/8424:
9182 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9183 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9184 * breakpoint.c (resolve_sal_pc): Update.
9185 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9186 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9187 (minsym_lookup_iterator_cb): Use it.
9188 (default_read_var_value): Update.
9189 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9190 Update.
9191 * infcmd.c (jump_command): Update.
9192 * linespec.c (minsym_found): Update.
9193 * maint.c (maintenance_translate_address): Update.
9194 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9195 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9196 * parse.c (write_exp_msymbol): Update.
9197 * printcmd.c (address_info): Update.
9198 * psymtab.c (find_pc_sect_psymbol): Update.
9199 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9200 SYMBOL_OBJ_SECTION.
9201 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9202 Don't initialize SYMBOL_OBJ_SECTION.
9203 * spu-tdep.c (spu_catch_start): Update.
9204 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9205 * symmisc.c (dump_msymbols, print_symbol): Update.
9206 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9207 how fallback section is computed.
9208 (fixup_symbol_section): Update.
9209 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9210 Update.
9211 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9212 Initialize SYMBOL_SECTION.
9213 * symtab.h (struct general_symbol_info) <section>: Update comment.
9214 <obj_section>: Remove.
9215 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9216 (SYMBOL_OBJFILE): New macro.
9217
e6dc44a8
TT
92182013-04-08 Tom Tromey <tromey@redhat.com>
9219
9220 * coffread.c (record_minimal_symbol): Update.
9221 * dbxread.c (record_minimal_symbol): Update.
9222 * elfread.c (record_minimal_symbol): Update.
9223 * machoread.c (macho_symtab_add_minsym): Update.
9224 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9225 Update.
9226 * minsyms.c (prim_record_minimal_symbol): Update.
9227 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9228 argument.
9229 (prim_record_minimal_symbol_and_info): Likewise.
9230 * minsyms.h (prim_record_minimal_symbol_full)
9231 (prim_record_minimal_symbol_and_info): Update.
9232 * symtab.c (allocate_symbol, initialize_symbol)
9233 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9234 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9235 Update.
9236
36192a8d
TT
92372013-04-08 Tom Tromey <tromey@redhat.com>
9238
9239 PR symtab/8423:
9240 * solib-som.c (som_solib_section_offsets): Use BFD section
9241 indices. Set offsets for all sections.
9242 * somread.c (som_symtab_read): Compute BFD section for
9243 symbol. Use prim_record_minimal_symbol_and_info.
9244 (som_symfile_read): Fix comment.
9245 (struct find_section_offset_arg): New.
9246 (find_section_offset, set_section_index): New functions.
9247 (som_symfile_offsets): Use set_section_index to compute
9248 section indices.
9249
65cf3563
TT
92502013-04-08 Tom Tromey <tromey@redhat.com>
9251
9252 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9253 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9254 gdb_bfd_section_index.
9255 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9256 New functions.
9257 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9258 Declare.
9259 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9260 Update.
9261 * objfiles.c (add_to_objfile_sections_full): New function.
9262 (add_to_objfile_sections): Use it.
9263 (build_section_table): Rewrite.
9264 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9265 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9266 (struct objfile) <sections>: Update comment.
9267 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9268 is NULL.
9269 (ALL_OBJSECTIONS): Use it.
9270 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9271 * solib-frv.c (frv_relocate_main_executable): Update.
9272 * solib-target.c (solib_target_relocate_section_addresses):
9273 Use gdb_bfd_section_index.
9274 * symfile.c (build_section_addr_info_from_section_table):
9275 Use gdb_bfd_section_index.
9276 (build_section_addr_info_from_bfd, place_section): Likewise.
9277 * symtab.c (fixup_section): Update.
9278 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9279
7cbd4a93
TT
92802013-04-08 Tom Tromey <tromey@redhat.com>
9281
9282 * minsyms.h (struct bound_minimal_symbol): New.
9283 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9284 Remove objfile argument.
9285 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9286 Return bound_minimal_symbol.
9287 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9288 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9289 Return bound_minimal_symbol.
9290 (in_gnu_ifunc_stub): Update.
9291 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9292 Remove 'objfile_p' argument.
9293 (lookup_solib_trampoline_symbol_by_pc): Update.
9294 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9295 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9296 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9297 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9298 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9299 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9300 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9301 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9302 stack.c, symtab.c, tui/tui-disasm.c: Update.
9303
f85f34ed
TT
93042013-04-08 Tom Tromey <tromey@redhat.com>
9305
9306 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9307 Use symbol's obstack, not an objfile.
9308 * coffread.c (process_coff_symbol): Update.
9309 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9310 * jv-lang.c (add_class_symbol): Update.
9311 * mdebugread.c (new_symbol): Update.
9312 * minsyms.c (prim_record_minimal_symbol_full)
9313 (terminate_minimal_symbol_table): Update.
9314 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9315 * stabsread.c (define_symbol, read_enum_type): Update.
9316 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9317 Handle Ada specially.
9318 (symbol_set_language): Add 'obstack' argument.
9319 (symbol_set_names): Update.
9320 (symbol_natural_name, symbol_demangled_name): Always use
9321 ada_decode_symbol.
9322 * symtab.h (struct general_symbol_info)
9323 <language_specific::obstack>: New field.
9324 <ada_mangled>: New field.
9325 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9326 (symbol_set_language): Update.
9327
ccde22c0
TT
93282013-04-08 Tom Tromey <tromey@redhat.com>
9329
9330 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9331 Take an obstack, not an objfile.
9332 (symbol_set_names): Update.
9333 * symtab.h (symbol_set_demangled_name): Update.
9334
e623cf5d
TT
93352013-04-08 Tom Tromey <tromey@redhat.com>
9336
9337 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9338 allocate_symbol.
9339 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9340 (read_func_scope): Call allocate_template_symbol.
9341 (new_symbol_full): Call allocate_symbol.
9342 * jit.c (finalize_symtab): Call allocate_symbol.
9343 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9344 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9345 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9346 (common_block_end): Call allocate_symbol.
9347 * symtab.c (allocate_symbol, initialize_symbol)
9348 (allocate_template_symbol): New functions.
9349 * symtab.c (allocate_symbol, initialize_symbol)
9350 (allocate_template_symbol): Declare.
9351 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9352
f6de8ec2
PA
93532013-04-08 Pedro Alves <palves@redhat.com>
9354 Keith Seitz <keiths@redhat.com>
9355
9356 * breakpoint.c (create_breakpoint): Rename
9357 "parse_condition_and_thread" parameter to "parse_arg". Update
9358 describing comment. If !PARSE_ARG, then error out if ARG is not
9359 the empty string after extracting the location.
9360 * breakpoint.h (create_breakpoint): Rename
9361 "parse_condition_and_thread" parameter to "parse_arg".
9362
f65ce5fb
AR
93632013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9364
9365 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9366
cc5925ad
YQ
93672013-04-07 Yao Qi <yao@codesourcery.com>
9368
9369 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9370 and 'addr2' to CORE_ADDR.
9371 * target.c (update_current_target): Update.
9372 * target.h (struct target_ops) <to_trace_find>: Change parameter
9373 type to CORE_ADDR.
9374 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9375 'addr2' to CORE_ADDR.
9376 (tfile_trace_find): Likewise.
9377 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9378 Change local variable 'addr' to type CORE_ADDR.
9379 * tracepoint.h (tfind_1): Update declaration.
9380
d9ac0664
EZ
93812013-04-06 Eli Zaretskii <eliz@gnu.org>
9382
9383 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9384 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9385 Include main.h.
9386
9387 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9388 here...
9389 * main.h (windows_get_absolute_argv0): ...to here.
9390
02142a6c
DE
93912013-04-05 Doug Evans <dje@google.com>
9392
9393 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9394 (read_cutu_die_from_dwo): Add comments.
9395 (read_structure_type): Update comment.
9396 (read_enumeration_type, read_namespace_type): Update comment.
9397 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9398
43662968
JK
93992013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9400
9401 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9402 * Makefile.in (gdb.z): Remove.
9403 (install-only): Remove $(man1dir) and gdb.1 installation.
9404 * gdb.1: Remove.
9405
9ead1b84
JK
94062013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 Fix compatibility with Linux kernel 3.8.3.
9409 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9410 to more inner block. Remove parsing of NUMBER from outer block.
9411 Parse NUMBER only if KEYWORD has been identified.
9412
d1794952
JK
94132013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9414
9415 Fix variable name shadowing.
9416 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9417 filename to mapsfilename and update its uses.
9418
9025569e
EZ
94192013-04-05 Eli Zaretskii <eliz@gnu.org>
9420
9421 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9422 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9423 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9424 details of the problem.
9425
c9a6ce02
PA
94262013-04-04 Pedro Alves <palves@redhat.com>
9427 Hui Zhu <hui@codesourcery.com>
9428
9429 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9430 tracepoint, reset its STEP_COUNT and call validate_actionline.
9431
5ff888ce
DE
94322013-04-03 Doug Evans <dje@google.com>
9433
bf6af496
DE
9434 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9435 read_die_and_siblings.
9436 (read_die_and_siblings): New function.
9437 (read_cutu_die_from_dwo): Dump die if requested.
9438 (read_die_and_children): Call read_full_die_1 and
9439 read_die_and_siblings_1.
9440 (read_full_die): Dump die if requested.
9441
9442 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9443
0ac5b59e
DE
9444 * dwarf2read.c (struct dwo_file): New member comp_dir.
9445 Rename member name to dwo_name. All uses updated.
9446 (hash_dwo_file): Include comp_dir in computation.
9447 (eq_dwo_file): Ditto.
9448 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9449 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9450
5ff888ce
DE
9451 * psymtab.c (read_psymtabs_with_fullname): Don't call
9452 psymtab_to_fullname if the basenames are different.
9453
ec83d211
JK
94542013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9457 New entry about "fullname" presence.
9458
4f4352f7
PA
94592013-04-03 Pedro Alves <palves@redhat.com>
9460
9461 * NEWS: Mention x86_64/Cygwin as new native configuration.
9462
3d1d5ea3
DE
94632013-04-02 Doug Evans <dje@google.com>
9464
9465 * dwarf2read.c (read_structure_type): Fix typo in comment.
9466
be9a8770
PA
94672013-04-02 Pedro Alves <palves@redhat.com>
9468
9469 * NEWS: Mention "set/show debug aarch64", "set/show debug
9470 coff-pe-read" and "set/show debug mach-o".
9471
a46c1e42
PA
94722013-04-02 Pedro Alves <palves@redhat.com>
9473
9474 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9475
3ad18b19
EZ
94762013-04-02 Eli Zaretskii <eliz@gnu.org>
9477
9478 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9479 gdb_string.h is now in common/.
9480
e9f1758d
PA
94812013-04-02 Pedro Alves <palves@redhat.com>
9482
9483 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9484 under "New options".
9485
049dc89b
JK
94862013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 Revert this patch:
9489 PR gdb/15275
9490 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9491
c33e31fd
PA
94922013-04-02 Pedro Alves <palves@redhat.com>
9493
9494 PR gdb/15275
9495
9496 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9497 (remote_serial_write): New function.
9498 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9499
ea5f3910
JW
95002013-04-01 Jiong Wang <jiwang@tilera.com>
9501
9502 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9503 "New targets" sections.
ea5f3910 9504
5c6fa7ab
DE
95052013-04-01 Doug Evans <dje@google.com>
9506
c0f78cd4
DE
9507 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9508 (process_enumeration_scope): Simplify.
9509
0186c6a7
DE
9510 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9511 type_unit_group ...
9512 (struct signatured_type): ... to here.
9513 (sig_type_ptr): New typedef.
9514 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9515 out of union 't'. All uses updated.
9516 (dw2_get_file_names_reader): Assert not called for a type unit.
9517 (dw2_get_file_names): Assert not called for a type unit or type
9518 unit group.
9519 (build_type_psymtabs_reader): Assert called for a type unit.
9520 (build_type_psymtab_dependencies): Assert called for a type unit group.
9521
5c6fa7ab
DE
9522 * dwarf2read.c (free_dwo_file): Add comment.
9523 (dwarf2_per_objfile_free): Unref dwp bfd.
9524
b3c0ad67 95252013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9526
9527 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9528 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9529 (read_pe_exported_syms): Remove unused 'exportix'.
9530 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9531 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9532 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9533
e2df1547
AR
95342013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9535
9536 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9537 (print_it_watchpoint): Remove unused 'bl'.
9538 (say_where): Remove unused 'uiout'.
9539 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9540 (bkpt_breakpoint_hit): Remove unused 'b'.
9541 (internal_bkpt_print_it): Remove unused 'uiout'.
9542 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9543
d81e75c0
TD
95442013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9545
9546 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9547 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9548
5a8b3f62
DE
95492013-03-29 Doug Evans <dje@google.com>
9550
ab5088bf
DE
9551 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9552 Delete arg is_dwp. All callers updated.
9553 (open_dwp_file): New function.
9554 (open_and_init_dwp_file): Call it.
9555 (get_dwp_file): New function.
9556 (lookup_dwo_cutu): Call it.
9557
a8ad1e57
DE
9558 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9559 unnecessary, cleanup.
9560
6296d8c1
DE
9561 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9562
b0c7bfa9
DE
9563 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9564 (lookup_dwo_unit): New function.
9565 (init_cutu_and_read_dies): Move DWO handling to new functions.
9566
c88ee1f0
DE
9567 * dwarf2read.c (struct signatured_type): Tweak comment.
9568 (struct dwo_unit): Tweak comment.
9569 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9570 (create_dwo_debug_info_hash_table): Tweak comment.
9571 (dwarf2_per_cu_offset_and_type): Tweak comment.
9572
5a8b3f62
DE
9573 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9574 missing .debug_types section.
9575
9852c492
YQ
95762013-03-29 Yao Qi <yao@codesourcery.com>
9577
9578 * corelow.c: Include "completer.h".
9579 (_initialize_corelow): Call add_target_with_completer with
9580 argument 'filename_completer'.
9581 * tracepoint.c: Likewise.
9582 * exec.c (_initialize_exec): Likewise.
9583 * target.c (add_target): Rename to ...
9584 (add_target_with_completer): ... this. Call set_cmd_completer
9585 if parameter completer is not NULL.
9586 (add_target): New.
9587 * target.h: Include "command.h".
9588 (add_target_with_completer): Declare it.
9589
af312be7
JB
95902013-03-28 Joel Brobecker <brobecker@adacore.com>
9591
9592 * coffread.c (is_import_fixup_symbol): New function.
9593 (record_minimal_symbol): Use is_import_fixup_symbol to
9594 detect import fixup symbols, and discard them.
9595
8a0459fd
DE
95962013-03-28 Doug Evans <dje@google.com>
9597
0349ea22
DE
9598 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9599 types hash table until we know we need it.
9600
f652bce2
DE
9601 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9602 index numbers.
9603
e4a48d9d
DE
9604 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9605 All callers updated.
9606 (dw2_print_stats): Print #read CUs too.
9607 (dump_die_shallow): Print signatured types better.
9608
8a0459fd
DE
9609 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9610 info_or_types_section to section. All uses updated.
9611 (struct dwo_unit): Ditto.
9612
bd3eecc3
PA
96132013-03-28 Pedro Alves <palves@redhat.com>
9614
9615 * NEWS (New options): New section.
9616 (New options): Mention set/show remote trace-status-packet.
9617 * remote.c (PACKET_qTStatus): New enumeration value.
9618 (remote_get_trace_status): Skip sending qTStatus if the packet is
9619 disabled. Use packet_ok.
9620 (_initialize_remote): Register a configuration command for
9621 qTStatus packet.
9622
41245087
DE
96232013-03-28 Doug Evans <dje@google.com>
9624
7edbb660
DE
9625 * symfile.c (find_separate_debug_file): Add comment.
9626 (terminate_after_last_dir_separator): Tweak comment.
9627
0018ea6f
DE
9628 * dwarf2read.c (create_partial_symtab): Add forward decl.
9629 (create_partial_symtab): Move to be closer to other psymtab functions.
9630 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9631
ca69b9e6
DE
9632 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9633 (compute_symtab_includes): Remove unnecessary forward declaration.
9634 (die_needs_namespace): Add comment marking group of functions for
9635 dwarf2 name computation.
9636
a9375afe
DE
9637 * typeprint.c (_initialize_typeprint): Improve type help text.
9638
41245087
DE
9639 * python/python.c (finish_python_initialization): Provide suggestion
9640 for how to tell gdb to find its python files.
9641
7f7cc265
PA
96422013-03-28 Pedro Alves <palves@redhat.com>
9643
9644 PR gdb/15294
9645
9646 * source.c (_initialize_source): Change back "set listsize" to an
9647 integer command.
9648
ec21308c
JK
96492013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9650
9651 PR gdb/15275
9652 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9653
840a9a1f
PA
96542013-03-27 Pedro Alves <palves@redhat.com>
9655
9656 * top.c (history_size): Rename to ...
9657 (history_size_setshow_var): ... this. Add comment.
9658 (show_commands): Use readline's 'history_length' instead of
9659 computing the history length by calling history_get in a loop.
9660 (set_history_size_command): Error out for sizes over INT_MAX.
9661 Restore previous history size on invalid size.
9662 (init_history): If HISTSIZE is negative, leave the history size as
9663 zero. Add comments.
9664 (init_main): Adjust.
9665
826ecc4d
PA
96662013-03-27 Pedro Alves <palves@redhat.com>
9667
9668 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9669 coff_pe_read" command to "set debug coff-pe-read".
9670
0ccfeeae
MM
96712013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9672
9673 * record.c (command_size_to_target_size): Fix size comparison.
9674 Change parameter type from pointer to integer to integer.
9675 Update all users.
9676
40653b35
PM
96772013-03-27 Pierre Muller <muller@sourceware.org>
9678
9679 * windows-nat.c (handle_output_debug_string): Avoid typecast
9680 from integer of different size warning.
9681
c62fa0e2
JB
96822013-03-26 Joel Brobecker <brobecker@adacore.com>
9683
9684 * windows-nat.c (handle_output_debug_string): Add empty line
9685 after local block variable definition.
9686
2c619be2
PA
96872013-03-26 Pedro Alves <palves@redhat.com>
9688
9689 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9690 (net_open): Make 'polls' local unsigned.
9691
1b493192
PA
96922013-03-26 Pedro Alves <palves@redhat.com>
9693
9694 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9695 a zuinteger command instead of uinteger.
9696
7ee70bf5
PA
96972013-03-26 Pedro Alves <palves@redhat.com>
9698
9699 * record-full.c (record_full_insn_num): Make it unsigned.
9700 (record_full_check_insn_num, record_full_message)
9701 (record_full_registers_change, record_full_xfer_partial): Remove
9702 record_full_insn_max_num check (it's always != 0).
9703 (record_full_info, record_full_restore): Use %u as format string.
9704 (): Use %u as format string.
9705 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9706 check (it's always != 0).
9707
dfd1f9bb
PA
97082013-03-26 Pedro Alves <palves@redhat.com>
9709
9710 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9711 and "set dcache size" commands zuinteger instead of uinteger.
9712
addb4faf
PA
97132013-03-26 Pedro Alves <palves@redhat.com>
9714
9715 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9716 command zuinteger instead of uinteger.
9717
b75bf488
PA
97182013-03-26 Pedro Alves <palves@redhat.com>
9719
9720 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9721 zuinteger instead of uinteger.
9722
42c634cb
PA
97232013-03-26 Pedro Alves <palves@redhat.com>
9724
9725 * record.c (record_insn_history_size_setshow_var)
9726 (record_call_history_size_setshow_var): New globals.
9727 (command_size_to_target_size): New function.
9728 (cmd_record_insn_history, cmd_record_call_history): Use
9729 command_size_to_target_size instead of cast.
9730 (validate_history_size, set_record_insn_history_size)
9731 (set_record_call_history_size): New functions.
9732 (_initialize_record): Install set_record_insn_history_size and
9733 set_record_call_history_size as "set" hooks of "set record
9734 instruction-history-size" and "set record
9735 function-call-history-size".
9736
1fb2e2b5
PA
97372013-03-26 Pedro Alves <palves@redhat.com>
9738
9739 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9740 use with history_max_entries use. Remove FIXME note.
9741
99c819ee
MM
97422013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9743
9744 * record-btrace.c (record_btrace_close): Call
9745 record_btrace_auto_disable.
9746
9f9e404c
JB
97472013-03-25 Joel Brobecker <brobecker@adacore.com>
9748
9749 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9750
ebcdfe33
DE
97512013-03-25 Doug Evans <dje@google.com>
9752
9753 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9754
24955f63
TT
97552013-03-25 Tom Tromey <tromey@redhat.com>
9756
9757 PR symtab/11462:
9758 * c-exp.y (exp): Add new productions for destructors after '.' and
9759 '->'.
9760 (write_destructor_name): New function.
9761
fce632b6
TT
97622013-03-25 Tom Tromey <tromey@redhat.com>
9763
9764 PR c++/9197:
9765 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9766 value_struct_elt, not lookup_struct_elt_type.
9767 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9768 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9769 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9770
a4341769
YQ
97712013-03-25 Yao Qi <yao@codesourcery.com>
9772
9773 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9774 instead of '_mkdir'.
9775
b5981e5a
EZ
97762013-03-23 Eli Zaretskii <eliz@gnu.org>
9777
9778 * windows-nat.c (windows_get_absolute_argv0): New function.
9779 * windows-nat.h: Add its prototype.
9780
9781 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9782 Use IS_DIR_SEPARATOR instead of looking for a character inside
9783 SLASH_STRING. Include filenames.h.
9784 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9785 relocate_gdb_directory works when passed gdb_program_name.
9786 Include windows-nat.h.
9787
598d3636
JK
97882013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9791 * remote.c (trace_error): Remove the special handling of '2'.
9792 (readchar) <SERIAL_EOF>
9793 (readchar) <SERIAL_ERROR>
9794 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9795 (remote_get_trace_status): Call throw_exception if EX is
9796 TARGET_CLOSE_ERROR.
9797 * utils.c (perror_with_name): Rename to ...
9798 (throw_perror_with_name): ... here. New parameter errcode, describe it
9799 in the function comment.
9800 (perror_with_name): New function wrapper.
9801 * utils.h (enum errors): New stub declaration.
9802 (throw_perror_with_name): New declaration.
9803
82b821e9
PA
98042013-03-22 Pedro Alves <palves@redhat.com>
9805 Yao Qi <yao@codesourcery.com>
9806 Mark Kettenis <kettenis@gnu.org>
9807
9808 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9809 Don't let the user set the value to UINT_MAX directly.
9810 <var_integer>: Don't let the user set the value to INT_MAX
9811 directly.
9812
78a095c3
JK
98132013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9814
9815 * remote.c (remote_unpush_target): New function.
9816 (remote_open_1): Remove two pop_target calls, update one comment, add
9817 comment to target_preopen call. Replace pop_target call by
9818 remote_unpush_target call.
9819 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9820 pop_target calls by remote_unpush_target calls.
9821
3e74e146
PA
98222013-03-22 Pedro Alves <palves@redhat.com>
9823
9824 * linux-nat.c (linux_child_follow_fork): Don't call
9825 linux_enable_event_reporting.
9826 (linux_handle_extended_wait): Don't call
9827 linux_enable_event_reporting.
9828
a2213dca
PA
98292013-03-22 Pedro Alves <palves@redhat.com>
9830
9831 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9832 use it to rewrite the trampoline buffers with type gdb_byte[], and
9833 undefine the macro. Remove char* cast.
9834
bd712aed
DE
98352013-03-21 Doug Evans <dje@google.com>
9836
9837 New commands "mt set per-command {space,time,symtab} {on,off}".
9838 * NEWS: Add entry.
9839 * event-top.c: #include "maint.h".
9840 * main.c: #include "maint.h".
9841 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9842 timeval-utils.h, maint.h, cli/cli-setshow.h.
9843 (per_command_time, per_command_space): New static globals.
9844 (per_command_symtab): New static global.
9845 (per_command_setlist, per_command_showlist): New static globals.
9846 (struct cmd_stats): Move here from utils.c.
9847 (set_per_command_time): Renamed from set_display_time in utils.c
9848 and moved here. All callers updated.
9849 (set_per_command_space): Renamed from set_display_space in utils.c
9850 and moved here. All callers updated.
9851 (count_symtabs_and_blocks): New function.
9852 (report_command_stats): Moved here from utils.c. Add support for
9853 printing symtab stats. Only print data if enabled before command
9854 executed.
9855 (make_command_stats_cleanup): Ditto.
9856 (sert_per_command_cmd, show_per_command_cmd): New functions.
9857 (_initialize_maint_cmds): Add new commands
9858 mt set per-command {space,time,symtab} {on,off}.
9859 * maint.h: New file.
9860 * top.c: #include "maint.h".
9861 * utils.c (reset_prompt_for_continue_wait_time): New function.
9862 (get_prompt_for_continue_wait_time): New function.
9863 * utils.h (reset_prompt_for_continue_wait_time): Declare
9864 (get_prompt_for_continue_wait_time): Declare.
9865 (make_command_stats_cleanup): Moved to maint.h.
9866 (set_display_time, set_display_space): Moved to maint.h and renamed
9867 to set_per_command_time, set_per_command_space.
9868 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9869 parse_binary_operation and made non-static. Don't call error,
9870 just return an error marker. All callers updated.
9871 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9872
d76488d8
TT
98732013-03-21 Tom Tromey <tromey@redhat.com>
9874
9875 * symfile.c (alloc_section_addr_info): Update header. Don't set
9876 'num_sections' field.
9877 (build_section_addr_info_from_section_table): Set 'num_sections'.
9878 (build_section_addr_info_from_bfd): Likewise.
9879 (build_section_addr_info_from_objfile): Remove dead loop
9880 condition.
9881 (free_section_addr_info): Unconditionally call xfree.
9882 (relative_addr_info_to_section_offsets, addrs_section_sort)
9883 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9884 condition.
9885 (syms_from_objfile_1): Remove dead 'if' condition. Check
9886 'num_sections'.
9887 (add_symbol_file_command): Set 'num_sections'.
9888 * symfile-mem.c (symbol_file_add_from_memory): Set
9889 'num_sections'.
9890 * somread.c (som_symfile_offsets): Remove dead loop condition.
9891 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9892 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9893
a72e5169 98942013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9895
9896 * tracepoint.h (decode_agent_options): Add 'trace_string'
9897 argument.
9898 * tracepoint.c (decode_agent_options): Add 'trace_string'
9899 argument.
9900 (validate_actionline): Update.
9901 (collect_symbol): Add 'trace_string' argument.
9902 (struct add_local_symbols_data) <trace_string>: New field.
9903 (do_collect_symbol): Update.
9904 (add_local_symbols): Add 'trace_string' argument.
9905 (encode_actions_1): Update.
9906 (trace_dump_actions): Update.
9907 * dwarf2loc.c (access_memory): Update.
9908 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9909 * ax-general.c (new_agent_expr): Update.
9910 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9911 (gen_trace_for_return_address): Add argument.
9912 (trace_kludge, trace_string_kludge): Remove.
9913 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9914 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9915 (gen_trace_for_var): Add 'trace_string' argument.
9916 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9917 (gen_printf, agent_eval_command_one): Update.
9918
b2f83c08
TT
99192013-03-21 Tom Tromey <tromey@redhat.com>
9920
9921 PR exp/15109:
9922 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9923 Handle FILENAME token.
9924
9507860e
TT
99252013-03-21 Tom Tromey <tromey@redhat.com>
9926
9927 * c-exp.y (YYPRINT): Define.
9928 (c_print_token): New function.
9929
e403aa4b
TT
99302013-03-21 Tom Tromey <tromey@redhat.com>
9931
9932 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9933
af307d6a
YQ
99342013-03-21 Yao Qi <yao@codesourcery.com>
9935
9936 * ctf.c: Include "gdb_stat.h".
9937 [USE_WIN32API]: New macro 'mkdir'.
9938 (ctf_start): Use permission bits macros if they are defined.
9939
fb81d016
KS
99402013-03-20 Keith Seitz <keiths@redhat.com>
9941
9942 * breakpoint.h (struct breakpoint): Add comment to
9943 extra_string indicating that this member is mallod'd.
9944 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9945
ef0026f0
PA
99462013-03-20 Pedro Alves <palves@redhat.com>
9947
9948 PR gdb/15289
9949
9950 * cli/cli-setshow.c (do_set_command)
9951 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9952 the result of parsing the command argument. Throw error if the
9953 value is greater than UINT_MAX. Print the invalid value with
9954 plongest.
9955 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9956 result of parsing the command argument. Throw error if the value
9957 is greater than INT_MAX, not greater or equal. Also throw error
9958 if the value is less than INT_MIN. Print the invalid value with
9959 plongest.
9960 <var_zuinteger_unlimited>: Throw error if the value is greater
9961 than INT_MAX, not greater or equal.
9962 (do_show_command) <var_integer, var_zinteger,
9963 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9964
24d6c2a0
TT
99652013-03-20 Tom Tromey <tromey@redhat.com>
9966
9967 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9968 if possible.
9969 * dwarf2read.c (read_func_scope): Remove old FIXME.
9970 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9971 not LOC_COMPUTED.
9972 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9973 Unconditionally call via computed ops, if possible.
9974 * printcmd.c (address_info): Unconditionally call via computed ops,
9975 if possible.
9976 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9977 if possible.
9978 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9979 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9980 if possible.
9981
f1e6e072
TT
99822013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9983 Tom Tromey <tromey@redhat.com>
9984
9985 PR symtab/8421:
9986 * coffread.c (coff_register_index): New global.
9987 (process_coff_symbol, coff_read_enum_type): Set
9988 SYMBOL_ACLASS_INDEX.
9989 (_initialize_coffread): Initialize new global.
9990 * dwarf2loc.c (locexpr_find_frame_base_location)
9991 (dwarf2_block_frame_base_locexpr_funcs)
9992 (loclist_find_frame_base_location)
9993 (dwarf2_block_frame_base_loclist_funcs): New.
9994 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9995 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9996 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9997 (dwarf2_block_frame_base_loclist_funcs): New.
9998 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9999 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10000 globals.
10001 (read_func_scope): Update.
10002 (fixup_go_packaging, mark_common_block_symbol_computed)
10003 (var_decode_location, new_symbol_full, dwarf2_const_value):
10004 Set SYMBOL_ACLASS_INDEX.
10005 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10006 (_initialize_dwarf2_read): Initialize new globals.
10007 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10008 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10009 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10010 globals.
10011 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10012 (_initialize_mdebugread): Initialize new globals.
10013 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10014 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10015 (stab_register_index, stab_regparm_index): New globals.
10016 (define_symbol, read_enum_type, common_block_end): Set
10017 SYMBOL_ACLASS_INDEX.
10018 (_initialize_stabsread): Initialize new globals.
10019 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10020 globals.
10021 (MAX_SYMBOL_IMPLS): New define.
10022 (register_symbol_computed_impl, register_symbol_block_impl)
10023 (register_symbol_register_impl)
10024 (initialize_ordinary_address_classes): New functions.
10025 (_initialize_symtab): Call initialize_ordinary_address_classes.
10026 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10027 (struct symbol_impl): New.
10028 (SYMBOL_ACLASS_BITS): New define.
10029 (struct symbol) <aclass, ops>: Remove fields.
10030 <aclass_index>: New field.
10031 (symbol_impls): Declare.
10032 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10033 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10034 (register_symbol_computed_impl, register_symbol_block_impl)
10035 (register_symbol_register_impl): Declare.
10036 (struct symbol_computed_ops): Add location_has_loclist.
10037 (struct symbol_block_ops): New.
10038 (SYMBOL_BLOCK_OPS): New.
10039 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10040
dbccfd4c
TT
100412013-03-20 Tom Tromey <tromey@redhat.com>
10042
10043 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10044 (print_partial_symbols, recursively_search_psymtabs): Use
10045 PSYMBOL_CLASS.
10046
e3f1ad4f
PM
100472013-03-20 Pierre Muller <muller@sourceware.org>
10048
10049 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10050 addtion, subtraction, multiplication and division binary operator.
10051
460014f5
JK
100522013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 Code cleanup.
10055 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10056 * bsd-kvm.c (bsd_kvm_close): Likewise.
10057 * bsd-uthread.c (bsd_uthread_close): Likewise.
10058 * corelow.c (core_close): Likewise.
10059 (core_close_cleanup): Remove parameter quitting from a caller.
10060 * event-top.c (async_disconnect): Likewise.
10061 * exec.c (exec_close_1): Remove parameter quitting.
10062 * go32-nat.c (go32_close): Likewise.
10063 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10064 parameter quitting from a caller.
10065 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10066 variable.
10067 (mips_linux_close): Remove parameter quitting. Remove parameter
10068 quitting from a caller.
10069 * monitor.c (monitor_close): Remove parameter quitting.
10070 * monitor.h (monitor_close): Likewise.
10071 * record-btrace.c (record_btrace_close): Likewise.
10072 * record-full.c (record_full_close): Likewise.
10073 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10074 it also from fprintf_unfiltered.
10075 * remote-mips.c (mips_close): Remove parameter quitting.
10076 (mips_detach): Remove parameter quitting from a caller.
10077 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10078 (gdbsim_close): Remove duplicate function comment. Remove parameter
10079 quitting and remove it also from printf_filtered.
10080 * remote.c (remote_close): Remove parameter quitting.
10081 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10082 * target.c (update_current_target): Remove parameter int from to_close
10083 de_fault.
10084 (push_target, unpush_target, pop_target): Remove parameter quitting from
10085 a caller.
10086 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10087 Remove parameter quitting from a caller.
10088 (target_preopen): Remove parameter quitting from a caller.
10089 (target_close): Remove parameter quitting. Remove parameter quitting
10090 from a caller two times. Remove parameter quitting also from
10091 fprintf_unfiltered.
10092 * target.h (struct target_ops): Remove parameter quitting and as int
10093 from fields to_xclose and to_close.
10094 (extern struct target_ops current_target):
10095 (target_close, pop_all_targets): Remove parameter quitting. Update the
10096 comment.
10097 (pop_all_targets_above): Remove parameter quitting.
10098 * top.c (quit_target): Remove parameter quitting from a caller.
10099 * tracepoint.c (tfile_close): Remove parameter quitting.
10100 * windows-nat.c (windows_close): Remove parameter quitting.
10101
35a7120b
CV
101022013-03-20 Corinna Vinschen <vinschen@redhat.com>
10103
10104 * windows-nat.c (handle_output_debug_string): Replace call
10105 to string_to_core_addr with call to strtoull.
10106
8249a5a9
YQ
101072013-03-20 Yao Qi <yao@codesourcery.com>
10108
10109 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10110 and write it to CTF metadata.
10111
2c15ef43
CV
101122013-03-19 Corinna Vinschen <vinschen@redhat.com>
10113
10114 * windows-nat.c (handle_output_debug_string): Change type of n to
10115 SIZE_T to avoid crash on 64 bit systems.
10116
1cdd3232
EZ
101172013-03-17 Eli Zaretskii <eliz@gnu.org>
10118
10119 * python/python-internal.h (HAVE_SNPRINTF)
10120 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10121 about redefinition of snprintf by pyerrors.h.
10122
3cb2ab1a
SE
101232013-03-15 Steve Ellcey <sellcey@mips.com>
10124
10125 * remote-sim.c (sim_command_completer): Make char arguments const.
10126
9ce98649
TT
101272013-03-15 Tom Tromey <tromey@redhat.com>
10128
10129 PR c++/15116:
10130 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10131
dccee2de
TT
101322013-03-14 Tom Tromey <tromey@redhat.com>
10133
10134 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10135 New fields.
10136 (get_file_crc): Move from symfile.c.
10137 (gdb_bfd_crc): New function.
10138 * gdb_bfd.h (gdb_bfd_crc): Declare.
10139 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10140 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10141 (separate_debug_file_exists): Use gdb_bfd_crc.
10142
cc0ea93c
TT
101432013-03-14 Tom Tromey <tromey@redhat.com>
10144
10145 * symfile.c (get_debug_link_info): Remove.
10146 (find_separate_debug_file_by_debuglink): Use
10147 bfd_get_debug_link_info.
10148
08c23b0d
TT
101492013-03-14 Tom Tromey <tromey@redhat.com>
10150
10151 * symtab.c (error_in_psymtab_expansion): New function.
10152 (lookup_symbol_aux_quick)
10153 (basic_lookup_transparent_type_quick): Remove "last resort"
10154 code. Use error_in_psymtab_expansion.
10155
288e77a7
JK
101562013-03-14 Doug Evans <dje@google.com>
10157 Jan Kratochvil <jan.kratochvil@redhat.com>
10158
10159 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10160 any successful compare_filenames_for_search or FILENAME_CMP.
10161 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10162 * symtab.c (iterate_over_some_symtabs): Likewise.
10163
8f1b8b82
JK
101642013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10165
10166 * source.c (print_source_lines_base): Make a local copy of
10167 symtab_to_fullname.
10168
23eb71e4
JK
101692013-03-14 Hui Zhu <hui_zhu@mentor.com>
10170 Jan Kratochvil <jan.kratochvil@redhat.com>
10171
10172 * source.c (print_source_lines_base): Suppress "file" for TUI.
10173
bb869963
SDJ
101742013-03-14 Keith Seitz <keiths@redhat.com>
10175 Alan Matsuoka <alanm@redhat.com>
10176
10177 PR c++/15203
10178 PR c++/15210
10179 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10180 TYPE_CODE_METHOD.
10181 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10182 symbols.
10183
d6682f9e
YQ
101842013-03-14 Yao Qi <yao@codesourcery.com>
10185
10186 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10187 status to tfile if trace is stopped by command 'tstop'.
10188
a22fa6e4
YQ
101892013-03-14 Yao Qi <yao@codesourcery.com>
10190
10191 * tracepoint.c (tfile_write_status): Write trace notes and user
10192 name into tfile if they are not NULL.
10193
d0353e76
YQ
101942013-03-14 Hui Zhu <hui@codesourcery.com>
10195 Yao Qi <yao@codesourcery.com>
10196
10197 * Makefile.in (REMOTE_OBS): Add ctf.o.
10198 (SFILES): Add ctf.c.
10199 (HFILES_NO_SRCDIR): Add ctf.h.
10200 * ctf.c, ctf.h: New files.
10201 * tracepoint.c: Include 'ctf.h'.
10202 (collect_pseudocommand): Remove static.
10203 (trace_save_command): Parse option "-ctf".
10204 Produce different trace file writers per option.
10205 Adjust output message.
10206 (trace_save_tfile, trace_save_ctf): New.
10207 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10208 * mi/mi-main.c: Include 'ctf.h'.
10209 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10210 trace_save_tfile or trace_save_ctf.
10211 * NEWS: Mention these changes.
10212
3f43bc09
YQ
102132013-03-14 Yao Qi <yao@codesourcery.com>
10214
10215 * tracepoint.c (trace_file_writer_xfree): New.
10216 (struct tfile_writer_data): New.
10217 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10218 (tfile_write_header, tfile_write_regblock_type): New.
10219 (tfile_write_status, tfile_write_uploaded_tsv): New.
10220 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10221 (tfile_write_raw_data, (tfile_end): New.
10222 (tfile_write_ops): New global variable.
10223 (TRACE_WRITE_R_BLOCK): New macro.
10224 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10225 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10226 (TRACE_WRITE_V_BLOCK): New macro.
10227 (trace_save): Add extra one parameter WRITER. Make it static.
10228 Use WRITER to writer trace.
10229 (tfile_trace_file_writer_new): New.
10230 (trace_save_command): Caller update.
10231 (trace_save_tfile): Write trace data in TFILE format.
10232 * tracepoint.h (struct trace_frame_write_ops): New.
10233 (struct trace_file_write_ops): New.
10234 (struct trace_file_writer): New.
10235 (trace_save): Remove its declaration.
10236 (trace_save_tfile): Declare it.
10237 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10238 instead of trace_save.
10239
58665b40
PA
102402013-03-13 Pedro Alves <palves@redhat.com>
10241
10242 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10243
10217050
PA
102442013-03-13 Pedro Alves <palves@redhat.com>
10245
10246 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10247 commented out code.
10248 * demangle.c (current_demangling_style_string): Make it const.
10249 (set_demangling_command): Assert the demangling style is known.
10250 Remove all handling of unknown styles. Set
10251 'current_demangling_style_string' to an element of the
10252 demangling_style_names array.
10253 (set_demangling_style): Delete.
10254 (_initialize_demangler): Set current_demangling_style_string to the
10255 element of the demangling_style_names array that corresponds to
10256 the default demangling style. Remove FIXME note. Don't call
10257 set_demangling_style.
10258 * gdb-demangle.h (set_demangling_style): Remove declaration.
10259
6f937416
PA
102602013-03-13 Pedro Alves <palves@redhat.com>
10261
10262 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10263 fields const.
10264 (ada_make_symbol_completion_list): Make "text0" parameter const.
10265 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10266 * breakpoint.c (condition_completer): Make "text" and "word"
10267 parameters const. Adjust.
10268 (check_tracepoint_command): Adjust to validate_actionline
10269 prototype change.
10270 (catch_syscall_completer): Make "text" and "word" parameters
10271 const.
10272 * cli/cli-cmds.c (show_user): Make "comname" local const.
10273 (valid_command_p): Make "command" parameter const.
10274 (alias_command): Make "alias_prefix" and "command_prefix" locals
10275 const.
10276 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10277 (add_alias_cmd): Make "name" and "oldname" parameters const.
10278 Adjust. No longer make copy of OLDNAME.
10279 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10280 (add_setshow_cmd_full, add_setshow_enum_cmd)
10281 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10282 (add_setshow_filename_cmd, add_setshow_string_cmd)
10283 (add_setshow_string_noescape_cmd)
10284 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10285 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10286 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10287 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10288 Make "name" parameter const.
10289 (help_cmd): Rename "command" parameter to "arg". New const local
10290 "command".
10291 (find_cmd): Make "command" parameter const.
10292 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10293 deprecated_cmd_warning prototype change.
10294 (undef_cmd_error): Make "cmdtype" parameter const.
10295 (lookup_cmd): Make "line" parameter const.
10296 (deprecated_cmd_warning): Change type of "text" parameter to
10297 pointer to const char, from pointer to pointer to char. Adjust.
10298 (lookup_cmd_composition): Make "text" parameter const.
10299 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10300 parameters const.
10301 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10302 const.
10303 * cli/cli-script.c (validate_comname): Make "tem" local const.
10304 (define_command): New const local "tem_c". Use it in calls to
10305 lookup_cmd.
10306 (document_command): Make "tem" and "comfull" locals const.
10307 (show_user_1): Make "prefix" and "name" parameters const.
10308 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10309 const.
10310 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10311 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10312 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10313 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10314 (complete_on_enum, add_setshow_enum_cmd)
10315 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10316 (add_setshow_filename_cmd, add_setshow_string_cmd)
10317 (add_setshow_string_noescape_cmd)
10318 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10319 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10320 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10321 Change prototypes, constifying strings.
10322 * completer.c (noop_completer, filename_completer): Make "text"
10323 and "prefix" parameters const.
10324 (location_completer, expression_completer)
10325 (complete_line_internal): Make "text" and "prefix" parameters
10326 const and adjust.
10327 (command_completer, signal_completer): Make "text" and "prefix"
10328 parameters const.
10329 * completer.h (noop_completer, filename_completer)
10330 (expression_completer, location_completer, command_completer)
10331 (signal_completer): Change prototypes.
10332 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10333 parameters const.
10334 * cp-abi.c (cp_abi_completer): Likewise.
10335 * expression.h (parse_expression_for_completion): Change
10336 prototype.
10337 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10338 parameters const.
10339 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10340 * infrun.c (handle_completer): Make "text" and "word" parameters
10341 const.
10342 * interps.c (interpreter_completer): Make "text" and "word"
10343 parameters const.
10344 * language.h (struct language_defn)
10345 <la_make_symbol_completion_list>: Make "text" and "word"
10346 parameters const.
10347 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10348 (parse_exp_in_context): Rename to ...
10349 (parse_exp_in_context_1): ... this.
10350 (parse_exp_in_context): Reimplement, with const hack from
10351 parse_exp_1.
10352 (parse_expression_for_completion): Make "string" parameter const.
10353 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10354 to pointer to const char. Adjust.
10355 (print_command_1): Make "exp" parameter const.
10356 (output_command): Rename to ...
10357 (output_command_const): ... this. Make "exp" parameter const.
10358 (output_command): Reimplement.
10359 (x_command): Adjust.
10360 (display_command): Rename "exp" parameter to "arg". New "exp"
10361 local, const version of "arg".
10362 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10363 "cmd_name" local const.
10364 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10365 call.
10366 (cmdpy_completer): Make "text" and "word" parameters const.
10367 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10368 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10369 const.
10370 * remote.c (_initialize_remote): Make "cmd_name" local const.
10371 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10372 parameters const. Adjust.
10373 (completion_list_add_fields): Make "sym_text", "text" and "word"
10374 parameters const.
10375 (struct add_name_data) <sym_text, text, word>: Make fields const.
10376 (default_make_symbol_completion_list_break_on): Make "text" and
10377 "word" parameters const. Adjust locals.
10378 (default_make_symbol_completion_list)
10379 (make_symbol_completion_list, make_symbol_completion_type)
10380 (make_symbol_completion_list_fn): Make "text" and "word"
10381 parameters const.
10382 (make_file_symbol_completion_list): Make "text", "word" and
10383 "srcfile" parameters const. Adjust locals.
10384 (add_filename_to_list): Make "text" and "word" parameters const.
10385 (struct add_partial_filename_data) <text, word>: Make fields
10386 const.
10387 (make_source_files_completion_list): Make "text" and "word"
10388 parameters const.
10389 * symtab.h (default_make_symbol_completion_list_break_on)
10390 (default_make_symbol_completion_list, make_symbol_completion_list)
10391 (make_symbol_completion_type enum type_code)
10392 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10393 (make_source_files_completion_list): Change prototype.
10394 * top.c (execute_command): Adjust to pass pointer to pointer to
10395 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10396 change.
10397 (set_verbose): Make "cmdname" local const.
10398 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10399 and adjust.
10400 (validate_actionline): Make "line" parameter a pointer to const
10401 char, and adjust.
10402 (encode_actions_1): Make "action_exp" local const, and adjust.
10403 (encode_actions): Adjust.
10404 (replace_comma): Delete.
10405 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10406 const, and adjust. Don't frob the action string while splitting
10407 it at commas. Instead, make a copy of each split substring in
10408 turn.
10409 (trace_dump_command): Adjust to validate_actionline prototype
10410 change.
10411 * tracepoint.h (decode_agent_options, decode_agent_options)
10412 (encode_actions, validate_actionline): Change prototypes.
10413 * valprint.h (output_command): Delete declaration.
10414 (output_command_const): Declare.
10415 * value.c (function_destroyer): Cast const away in xfree call.
10416
a0bcdaa7
PA
104172013-03-13 Pedro Alves <palves@redhat.com>
10418
10419 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10420 rather than casting 'const char * const *' to 'const char **'.
10421 * ada-lex.l (processInt): Make "trailer" local const. Remove
10422 'const char **' cast.
10423 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10424 locals, and use those as strtol output pointer, instead than doing
10425 invalid casts to from 'const char **' to 'char **'.
10426 (_initialize_demangle): Remove cast.
10427 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10428 locals, and use those as strtol output pointer, instead than doing
10429 invalid casts to from 'const char **' to 'char **'.
10430 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10431 casts.
10432 * stap-probe.c (stap_parse_register_operand)
10433 (stap_parse_single_operand): Likewise.
10434
8ddb1965
YQ
104352013-03-13 Yao Qi <yao@codesourcery.com>
10436
10437 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10438 the last matched 'V' blcok in trace frame.
10439
2d450646
JB
104402013-03-12 Joel Brobecker <brobecker@adacore.com>
10441
10442 * NEWS: Create a new section for the next release branch.
10443 Rename the section of the current branch, now that it has
10444 been cut.
10445
b4b79973 104462013-03-12 Joel Brobecker <brobecker@adacore.com>
10447
10448 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10449 * version.in: Bump version to 7.6.50.20130312-cvs.
10450
ee047554
KS
104512013-03-12 Keith Seitz <keiths@redhat.com>
10452
10453 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10454 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10455 Remove temporary copy of input string.
10456 (mi_execute_command_wrapper): Make "cmd" const.
10457 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10458 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10459 Use const strings.
10460 (mi_parse): Make "cmd" const.
10461 Use const strings.
10462 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10463
bbc13ae3
KS
104642013-03-12 Keith Seitz <keiths@redhat.com>
10465
10466 * ada-lang.c (ada_read_renaming_var_value): Pass const
10467 pointer to expression string to parse_exp_1.
10468 (create_excep_cond_exprs): Likewise.
10469 * ax-gdb.c (agent_eval_command_one): Likewise.
10470 (maint_agent_printf_command): Likewise.
10471 Constify much of the string handling/parsing.
10472 * breakpoint.c (set_breakpoint_condition): Pass const
10473 pointer to expression string to parse_exp_1.
10474 (update_watchpoint): Likewise.
10475 (parse_cmd_to_aexpr): Constify string handling.
10476 Pass const pointer to parse_exp_1.
10477 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10478 (find_condition_and_thread): Likewise.
10479 Make TOK const.
10480 (watch_command_1): Make "arg" const.
10481 Constify string handling.
10482 Copy the expression string instead of changing the input
10483 string.
10484 (update_breakpoint_location): Pass const pointer to
10485 parse_exp_1.
10486 * eval.c (parse_and_eval_address): Make "exp" const.
10487 (parse_to_comma_and_eval): Make "expp" const.
10488 (parse_and_eval): Make "exp" const.
10489 * expression.h (parse_expression): Make argument const.
10490 (parse_exp_1): Make first argument const.
10491 * findcmd.c (parse_find_args): Treat "args" as const.
10492 * linespec.c (parse_linespec): Pass const pointer to
10493 linespec_expression_to_pc.
10494 (linespec_expression_to_pc): Make "exp_ptr" const.
10495 * parse.c (parse_exp_1): Make "stringptr" const.
10496 Make a copy of the expression to pass to parse_exp_in_context until
10497 this whole interface can be constified.
10498 (parse_expression): Make "string" const.
10499 * printcmd.c (ui_printf): Treat "arg" as const.
10500 Handle const strings.
10501 * tracepoint.c (validate_actionline): Pass const pointer to
10502 all calls to parse_exp_1.
10503 (encode_actions_1): Likewise.
10504 * value.h (parse_to_comma_and_eval): Make argument const.
10505 (parse_and_eval_address): Likewise.
10506 (parse_and_eval): Likewise.
10507 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10508 (varobj_set_value): Likewise.
10509 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10510 constify string handling.
10511 Pass const pointers to parse_and_eval_address and
10512 parse_to_comman_and_eval.
10513 * cli/cli-utils.c (skip_to_space): Rename to ...
10514 (skip_to_space_const): ... this. Handle const strings.
10515 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10516 skip_to_space_const.
10517 (skip_to_space_const): Declare.
10518 * common/format.c (parse_format_string): Make "arg" const.
10519 Handle const strings.
10520 * common/format.h (parse_format_string): Make "arg" const.
10521 * gdbserver/ax.c (ax_printf): Make "format" const.
10522 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10523 of the expression string.
10524
f3cec7e6
HZ
105252013-03-12 Hui Zhu <hui@codesourcery.com>
10526
10527 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10528
9df7235c
HZ
105292013-03-12 Yao Qi <yao@codesourcery.com>
10530 Hui Zhu <hui@codesourcery.com>
10531
10532 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10533 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10534 DW_OP_deref_size.
10535
82d049ab
PH
105362013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10537
5f8e0b8f
MF
10538 * ada-lex.l (rules): Only recognize 'thread' as a
10539 delimiter when followed by numerals, as for c-exp.y.
10540 Use new rewind_to_char function to rewind the input for
10541 expression-delimiting tokens.
10542 (rewind_to_char): New function.
82d049ab 10543
8c1fb155
JK
105442013-03-11 Pedro Alves <palves@redhat.com>
10545 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 * configure: Regenerate.
10548 * configure.ac (check dynamic export flag): Link python test with
10549 $PYTHON_LIBS.
10550
cc81e1c6
DE
105512013-03-11 Doug Evans <dje@google.com>
10552 Keith Seitz <keiths@redhat.com>
10553
10554 * linespec.c (find_linespec_symbols): Call find_function_symbols
10555 first, and then call lookup_prefix_sym/find_method.
10556
39086a0e
PA
105572013-03-11 Pedro Alves <palves@redhat.com>
10558
10559 * charset.c (convert_between_encodings): Don't cast between
10560 different pointer to pointer types. Instead, make the 'inp' local
10561 be of the type iconv expects.
10562 (wchar_iterate): Don't cast between different pointer to pointer
10563 types. Instead, use new pointer local of the type iconv expects.
10564 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10565 Add new local of type char pointer, and use it to get a
10566 char/string view of the byte buffer, instead of casting between
10567 pointer to pointer types.
10568
90585175
HAQ
105692013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10570
10571 * remote.c (remote_set_trace_buffer_size): Move != operator
10572 to the start of next line to fix an ARI warning.
10573
59ea5688
MM
105742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10575
10576 * NEWS: Add record changes.
10577
946287b7
MM
105782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10579
10580 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10581 the instruction history disassembly.
10582 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10583 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10584
afedecd3
MM
105852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10586
10587 * Makefile.in (SFILES): Add record-btrace.c
10588 (COMMON_OBS): Add record-btrace.o
10589 * record-btrace.c: New.
10590 * objfiles.c: Include btrace.h.
10591 (free_objfile): call btrace_free_objfile.
10592
15984c13
MM
105932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10594
10595 * target.c (target_call_history, target_call_history_from,
10596 target_call_history_range): New.
10597 * target.h (target_ops) <to_call_history, to_call_history_from,
10598 to_call_history_range>: New fields.
10599 (target_call_history, target_call_history_from,
10600 target_call_history_range): New declaration.
10601 * record.c (get_call_history_modifiers, cmd_record_call_history,
10602 record_call_history_size): New.
10603 (_initialize_record): Add the "record function-call-history" command.
10604 Add "set/show record function-call-history-size" commands.
10605 * record.h (record_print_flag): New.
10606
67c86d06
MM
106072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10608
10609 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10610 to_insn_history_range>: New fields.
10611 (target_insn_history): New.
10612 (target_insn_history_from): New.
10613 (target_insn_history_range): New.
10614 * target.c (target_insn_history): New.
10615 (target_insn_history_from): New.
10616 (target_insn_history_range): New.
10617 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10618 (record_insn_history_size): New.
10619 (get_insn_number): New.
10620 (get_context_size): New.
10621 (no_chunk): New.
10622 (get_insn_history_modifiers): New.
10623 (cmd_record_insn_history): New.
10624 (_initialize_record): Add "set/show record instruction-history-size"
10625 command. Add "record instruction-history" command.
10626
7c1687a9
MM
106272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10628
10629 * record.h (record_disconnect): New.
10630 (record_detach): New.
10631 (record_mourn_inferior): New.
10632 (record_kill): New.
10633 * record-full.c (record_disconnect, record_detach,
10634 record_mourn_inferior, record_kill): Move to...
10635 * record.c: ...here.
10636 (DEBUG): New.
10637 (record_stop): New.
10638 (record_unpush): New.
10639 (cmd_record_stop): Call record_stop. Replace unpush_target
10640 call with record_unpush call.
10641 (record_disconnect, record_detach): Assert that the target
10642 is of record stratum. Call record_unpush, record_stop, and
10643 DEBUG.
10644 (record_mourn_inferior, record_kill): Assert that the target
10645 is of record stratum. Call record_unpush and DEBUG.
10646
25ea693b
MM
106472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10648
10649 * record-full.h, record-full.c (record_memory_query): Rename
10650 to ...
10651 (record_full_memory_query): ...this. Update all users.
10652 (record_arch_list_add_reg): Rename to ...
10653 (record_full_arch_list_add_reg): ...this. Update all users.
10654 (record_arch_list_add_mem): Rename to ...
10655 (record_full_arch_list_add_mem): ...this. Update all users.
10656 (record_arch_list_add_end): Rename to ...
10657 (record_full_arch_list_add_end): ...this. Update all users.
10658 (record_gdb_operation_disable_set): Rename to ...
10659 (record_full_gdb_operation_disable_set): ...this.
10660 Update all users.
10661
88d1aa9d
MM
106622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10663
10664 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10665 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10666 (RECORD_IS_REPLAY): Renamed to ...
10667 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10668 (RECORD_FILE_MAGIC): Renamed to ...
10669 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10670 (record_mem_entry): Renamed to ...
10671 (record_full_mem_entry): ... this. Updated all users.
10672 (record_reg_entry): Renamed to ...
10673 (record_full_reg_entry): ... this. Updated all users.
10674 (record_end_entry): Renamed to ...
10675 (record_full_end_entry): ... this. Updated all users.
10676 (record_type) <record_end, record_reg, record_mem>: Renamed
10677 to ...
10678 (record_full_type) <record_full_end, record_full_reg,
10679 record_full_mem>: ... this. Updated all users.
10680 (record_entry): Renamed to ...
10681 (record_full_entry): ... this. Updated all users.
10682 (record_core_buf_entry): Renamed to ...
10683 (record_full_core_buf_entry): ... this. Updated all users.
10684 (record_core_regbuf): Renamed to ...
10685 (record_full_core_regbuf): ... this. Updated all users.
10686 (record_core_start): Renamed to ...
10687 (record_full_core_start): ... this. Updated all users.
10688 (record_core_end): Renamed to ...
10689 (record_full_core_end): ... this. Updated all users.
10690 (record_core_buf_list): Renamed to ...
10691 (record_full_core_buf_list): ... this. Updated all users.
10692 (record_first): Renamed to ...
10693 (record_full_first): ... this. Updated all users.
10694 (record_list): Renamed to ...
10695 (record_full_list): ... this. Updated all users.
10696 (record_arch_list_head): Renamed to ...
10697 (record_full_arch_list_head): ... this. Updated all users.
10698 (record_arch_list_tail): Renamed to ...
10699 (record_full_arch_list_tail): ... this. Updated all users.
10700 (record_stop_at_limit): Renamed to ...
10701 (record_full_stop_at_limit): ... this. Updated all users.
10702 (record_insn_max_num): Renamed to ...
10703 (record_full_insn_max_num): ... this. Updated all users.
10704 (record_insn_num): Renamed to ...
10705 (record_full_insn_num): ... this. Updated all users.
10706 (record_insn_count): Renamed to ...
10707 (record_full_insn_count): ... this. Updated all users.
10708 (record_ops): Renamed to ...
10709 (record_full_ops): ... this. Updated all users.
10710 (record_core_ops): Renamed to ...
10711 (record_full_core_ops): ... this. Updated all users.
10712 (set_record_cmdlist): Renamed to ...
10713 (set_record_full_cmdlist): ... this. Updated all users.
10714 (show_record_cmdlist): Renamed to ...
10715 (show_record_full_cmdlist): ... this. Updated all users.
10716 (record_cmdlist): Renamed to ...
10717 (record_full_cmdlist): ... this. Updated all users.
10718 (record_beneath_to_resume_ops): Renamed to ...
10719 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10720 (record_beneath_to_resume): Renamed to ...
10721 (record_full_beneath_to_resume): ... this. Updated all users.
10722 (record_beneath_to_wait_ops): Renamed to ...
10723 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10724 (record_beneath_to_wait): Renamed to ...
10725 (record_full_beneath_to_wait): ... this. Updated all users.
10726 (record_beneath_to_store_registers_ops): Renamed to ...
10727 (record_full_beneath_to_store_registers_ops): ... this.
10728 Updated all users.
10729 (record_beneath_to_store_registers): Renamed to ...
10730 (record_full_beneath_to_store_registers): ... this.
10731 Updated all users.
10732 (record_beneath_to_xfer_partial_ops): Renamed to ...
10733 (record_full_beneath_to_xfer_partial_ops): ... this.
10734 Updated all users.
10735 (record_beneath_to_xfer_partial): Renamed to ...
10736 (record_full_beneath_to_xfer_partial): ... this.
10737 Updated all users.
10738 (record_beneath_to_insert_breakpoint): Renamed to ...
10739 (record_full_beneath_to_insert_breakpoint): ... this.
10740 Updated all users.
10741 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10742 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10743 Updated all users.
10744 (record_beneath_to_stopped_data_address): Renamed to ...
10745 (record_full_beneath_to_stopped_data_address): ... this.
10746 Updated all users.
10747 (record_beneath_to_async): Renamed to ...
10748 (record_full_beneath_to_async): ... this. Updated all users.
10749 (record_goto_insn): Renamed to ...
10750 (record_full_goto_insn): ... this. Updated all users.
10751 (record_save): Renamed to ...
10752 (record_full_save): ... this. Updated all users.
10753 (record_reg_alloc): Renamed to ...
10754 (record_full_reg_alloc): ... this. Updated all users.
10755 (record_reg_release): Renamed to ...
10756 (record_full_reg_release): ... this. Updated all users.
10757 (record_mem_alloc): Renamed to ...
10758 (record_full_mem_alloc): ... this. Updated all users.
10759 (record_mem_release): Renamed to ...
10760 (record_full_mem_release): ... this. Updated all users.
10761 (record_end_alloc): Renamed to ...
10762 (record_full_end_alloc): ... this. Updated all users.
10763 (record_end_release): Renamed to ...
10764 (record_full_end_release): ... this. Updated all users.
10765 (record_entry_release): Renamed to ...
10766 (record_full_entry_release): ... this. Updated all users.
10767 (record_list_release): Renamed to ...
10768 (record_full_list_release): ... this. Updated all users.
10769 (record_list_release_following): Renamed to ...
10770 (record_full_list_release_following): ... this.
10771 Updated all users.
10772 (record_list_release_first): Renamed to ...
10773 (record_full_list_release_first): ... this. Updated all users.
10774 (record_arch_list_add): Renamed to ...
10775 (record_full_arch_list_add): ... this. Updated all users.
10776 (record_get_loc): Renamed to ...
10777 (record_full_get_loc): ... this. Updated all users.
10778 (record_check_insn_num): Renamed to ...
10779 (record_full_check_insn_num): ... this. Updated all users.
10780 (record_arch_list_cleanups): Renamed to ...
10781 (record_full_arch_list_cleanups): ... this. Updated all users.
10782 (record_message): Renamed to ...
10783 (record_full_message): ... this. Updated all users.
10784 (record_message_wrapper): Renamed to ...
10785 (record_full_message_wrapper): ... this. Updated all users.
10786 (record_message_wrapper_safe): Renamed to ...
10787 (record_full_message_wrapper_safe): ... this. Updated all users.
10788 (record_gdb_operation_disable): Renamed to ...
10789 (record_full_gdb_operation_disable): ... this. Updated all users.
10790 (record_hw_watchpoint): Renamed to ...
10791 (record_full_hw_watchpoint): ... this. Updated all users.
10792 (record_exec_insn): Renamed to ...
10793 (record_full_exec_insn): ... this. Updated all users.
10794 (record_restore): Renamed to ...
10795 (record_full_restore): ... this. Updated all users.
10796 (record_async_inferior_event_token): Renamed to ...
10797 (record_full_async_inferior_event_token): ... this.
10798 Updated all users.
10799 (record_async_inferior_event_handler): Renamed to ...
10800 (record_full_async_inferior_event_handler): ... this.
10801 Updated all users.
10802 (record_core_open_1): Renamed to ...
10803 (record_full_core_open_1): ... this. Updated all users.
10804 (record_open_1): Renamed to ...
10805 (record_full_open_1): ... this. Updated all users.
10806 (record_open): Renamed to ...
10807 (record_full_open): ... this. Updated all users.
10808 (record_close): Renamed to ...
10809 (record_full_close): ... this. Updated all users.
10810 (record_resume_step): Renamed to ...
10811 (record_full_resume_step): ... this. Updated all users.
10812 (record_resumed): Renamed to ...
10813 (record_full_resumed): ... this. Updated all users.
10814 (record_execution_dir): Renamed to ...
10815 (record_full_execution_dir): ... this. Updated all users.
10816 (record_resume): Renamed to ...
10817 (record_full_resume): ... this. Updated all users.
10818 (record_get_sig): Renamed to ...
10819 (record_full_get_sig): ... this. Updated all users.
10820 (record_sig_handler): Renamed to ...
10821 (record_full_sig_handler): ... this. Updated all users.
10822 (record_wait_cleanups): Renamed to ...
10823 (record_full_wait_cleanups): ... this. Updated all users.
10824 (record_wait_1): Renamed to ...
10825 (record_full_wait_1): ... this. Updated all users.
10826 (record_wait): Renamed to ...
10827 (record_full_wait): ... this. Updated all users.
10828 (record_stopped_by_watchpoint): Renamed to ...
10829 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10830 (record_disconnect): Renamed to ...
10831 (record_full_disconnect): ... this. Updated all users.
10832 (record_detach): Renamed to ...
10833 (record_full_detach): ... this. Updated all users.
10834 (record_mourn_inferior): Renamed to ...
10835 (record_full_mourn_inferior): ... this. Updated all users.
10836 (record_kill): Renamed to ...
10837 (record_full_kill): ... this. Updated all users.
10838 (record_stopped_data_address): Renamed to ...
10839 (record_full_stopped_data_address): ... this. Updated all users.
10840 (record_registers_change): Renamed to ...
10841 (record_full_registers_change): ... this. Updated all users.
10842 (record_store_registers): Renamed to ...
10843 (record_full_store_registers): ... this. Updated all users.
10844 (record_xfer_partial): Renamed to ...
10845 (record_full_xfer_partial): ... this. Updated all users.
10846 (record_breakpoint): Renamed to ...
10847 (record_full_breakpoint): ... this. Updated all users.
10848 (record_breakpoint_p): Renamed to ...
10849 (record_full_breakpoint_p): ... this. Updated all users.
10850 (record_breakpoints): Renamed to ...
10851 (record_full_breakpoints): ... this. Updated all users.
10852 (record_sync_record_breakpoints): Renamed to ...
10853 (record_full_sync_record_breakpoints): ... this.
10854 Updated all users.
10855 (record_init_record_breakpoints): Renamed to ...
10856 (record_full_init_record_breakpoints): ... this.
10857 Updated all users.
10858 (record_insert_breakpoint): Renamed to ...
10859 (record_full_insert_breakpoint): ... this. Updated all users.
10860 (record_remove_breakpoint): Renamed to ...
10861 (record_full_remove_breakpoint): ... this. Updated all users.
10862 (record_can_execute_reverse): Renamed to ...
10863 (record_full_can_execute_reverse): ... this. Updated all users.
10864 (record_get_bookmark): Renamed to ...
10865 (record_full_get_bookmark): ... this. Updated all users.
10866 (record_goto_bookmark): Renamed to ...
10867 (record_full_goto_bookmark): ... this. Updated all users.
10868 (record_async): Renamed to ...
10869 (record_full_async): ... this. Updated all users.
10870 (record_can_async_p): Renamed to ...
10871 (record_full_can_async_p): ... this. Updated all users.
10872 (record_is_async_p): Renamed to ...
10873 (record_full_is_async_p): ... this. Updated all users.
10874 (record_execution_direction): Renamed to ...
10875 (record_full_execution_direction): ... this. Updated all users.
10876 (record_info): Renamed to ...
10877 (record_full_info): ... this. Updated all users.
10878 (record_delete): Renamed to ...
10879 (record_full_delete): ... this. Updated all users.
10880 (record_is_replaying): Renamed to ...
10881 (record_full_is_replaying): ... this. Updated all users.
10882 (record_goto_entry): Renamed to ...
10883 (record_full_goto_entry): ... this. Updated all users.
10884 (record_goto_begin): Renamed to ...
10885 (record_full_goto_begin): ... this. Updated all users.
10886 (record_goto_end): Renamed to ...
10887 (record_full_goto_end): ... this. Updated all users.
10888 (record_goto): Renamed to ...
10889 (record_full_goto): ... this. Updated all users.
10890 (init_record_ops): Renamed to ...
10891 (init_record_full_ops): ... this. Updated all users.
10892 (record_core_resume): Renamed to ...
10893 (record_full_core_resume): ... this. Updated all users.
10894 (record_core_kill): Renamed to ...
10895 (record_full_core_kill): ... this. Updated all users.
10896 (record_core_fetch_registers): Renamed to ...
10897 (record_full_core_fetch_registers): ... this. Updated all users.
10898 (record_core_prepare_to_store): Renamed to ...
10899 (record_full_core_prepare_to_store): ... this. Updated all users.
10900 (record_core_store_registers): Renamed to ...
10901 (record_full_core_store_registers): ... this. Updated all users.
10902 (record_core_xfer_partial): Renamed to ...
10903 (record_full_core_xfer_partial): ... this. Updated all users.
10904 (record_core_insert_breakpoint): Renamed to ...
10905 (record_full_core_insert_breakpoint): ... this. Updated all users.
10906 (record_core_remove_breakpoint): Renamed to ...
10907 (record_full_core_remove_breakpoint): ... this. Updated all users.
10908 (record_core_has_execution): Renamed to ...
10909 (record_full_core_has_execution): ... this. Updated all users.
10910 (init_record_core_ops): Renamed to ...
10911 (init_record_full_core_ops): ... this. Updated all users.
10912 (cmd_record_restore): Renamed to ...
10913 (cmd_record_full_restore): ... this. Updated all users.
10914 (record_save_cleanups): Renamed to ...
10915 (record_full_save_cleanups): ... this. Updated all users.
10916 (cmd_record_start): Renamed to ...
10917 (cmd_record_full_start): ... this. Updated all users.
10918 (set_record_insn_max_num): Renamed to ...
10919 (set_record_full_insn_max_num): ... this. Updated all users.
10920 (set_record_command): Renamed to ...
10921 (set_record_full_command): ... this. Updated all users.
10922 (show_record_command): Renamed to ...
10923 (show_record_full_command): ... this. Updated all users.
10924 (_initialize_record): Renamed to ...
10925 (_initialize_record_full): ... this. Updated all users.
10926
d02ed0bb
MM
109272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10928
10929 * record.h: Split into this and ...
10930 * record-full.h: ... this.
10931 * record.c: Split into this and ...
10932 * record-full.c: ... this.
10933 * target.h (target_ops): Add new fields to_info_record,
10934 to_save_record, to_delete_record, to_record_is_replaying,
10935 to_goto_record_begin, to_goto_record_end, to_goto_record.
10936 (target_info_record): New.
10937 (target_save_record): New.
10938 (target_supports_delete_record): New.
10939 (target_delete_record): New.
10940 (target_record_is_replaying): New.
10941 (target_goto_record_begin): New.
10942 (target_goto_record_end): New.
10943 (target_goto_record): New.
10944 * target.c (target_info_record): New.
10945 (target_save_record): New.
10946 (target_supports_delete_record): New.
10947 (target_delete_record): New.
10948 (target_record_is_replaying): New.
10949 (target_goto_record_begin): New.
10950 (target_goto_record_end): New.
10951 (target_goto_record): New.
10952 * record.h: Declare struct cmd_list_element.
10953 (record_cmdlist): New declaration.
10954 (set_record_cmdlist): New declaration.
10955 (show_record_cmdlist): New declaration.
10956 (info_record_cmdlist): New declaration.
10957 (cmd_record_goto): New declaration.
10958 * record.c: Remove unnecessary includes.
10959 Include inferior.h.
10960 (cmd_record_goto): Remove declaration.
10961 (record_cmdlist): Now extern. Initialize.
10962 (set_record_cmdlist): Now extern. Initialize.
10963 (show_record_cmdlist): Now extern. Initialize.
10964 (info_record_cmdlist): Now extern. Initialize.
10965 (find_record_target): New.
10966 (require_record_target): New.
10967 (cmd_record_start): Update.
10968 (cmd_record_delete): Remove target-specific code.
10969 Call target_delete_record.
10970 (cmd_record_stop): Unpush any record target.
10971 (set_record_insn_max_num): Move to record-full.c
10972 (set_record_command): Add comment.
10973 (show_record_command): Add comment.
10974 (info_record_command): Update comment.
10975 Remove target-specific code.
10976 Call the record target's to_info_record.
10977 (cmd_record_start): New.
10978 (cmd_record_goto): Now extern.
10979 Remove target-specific code.
10980 Call target_goto_begin, target_goto_end, or target_goto.
10981 (_initialize_record): Move record target ops initialization to
10982 record-full.c.
10983 Change "record" command help text.
10984 Move "record restore", "record set", and "record show" commands to
10985 record-full.c.
10986 * Makefile.in (SFILES): Add record-full.c.
10987 (HFILES_NO_SRCDIR): Add record-full.h.
10988 (COMMON_OBS): Add record-full.o.
10989 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10990 * arm-tdep.c: Include record-full.h.
10991 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10992 * i386-tdep.c: Include record-full.h.
10993 * infrun.c: Include record-full.h.
10994 * linux-record.c: Include record-full.h.
10995 * moxie-tdep.c: Include record-full.h.
10996 * record-full.c: Include record-full.h.
10997 Change module comment.
10998 (set_record_full_cmdlist): New.
10999 (show_record_full_cmdlist): New.
11000 (record_full_cmdlist): New.
11001 (record_goto_insn): New declaration.
11002 (record_save): New declaration.
11003 (record_check_insn_num): Change query string.
11004 (record_info): New.
11005 (record_delete): New.
11006 (record_is_replaying): New.
11007 (record_goto_entry): New.
11008 (record_goto_begin): New.
11009 (record_goto_end): New.
11010 (record_goto): New.
11011 (init_record_ops): Update.
11012 (init_record_core_ops): Update.
11013 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11014 (cmd_record_start): New.
11015 (set_record_insn_max_num): Moved from record.c
11016 (set_record_full_command): New.
11017 (show_record_full_command): New.
11018 (_initialize_record_full): New.
11019
b48d48eb
MM
110202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11021
11022 * target.h (add_deprecated_target_alias): New.
11023 * target.c (add_deprecated_target_alias): New.
11024
a950d57c
MM
110252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11026
11027 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11028 and signal.h.
11029 (linux_supports_btrace): Add kernel and
11030 cpuid check.
11031 (kernel_supports_btrace): New function.
11032 (cpu_supports_btrace): New function.
11033 (intel_supports_btrace): New function.
11034
9accd112
MM
110352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11036
11037 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11038 * remote.c: Include btrace.h.
11039 (struct btrace_target_info): New struct.
11040 (remote_supports_btrace): New function.
11041 (send_Qbtrace): New function.
11042 (remote_enable_btrace): New function.
11043 (remote_disable_btrace): New function.
11044 (remote_teardown_btrace): New function.
11045 (remote_read_btrace): New function.
11046 (init_remote_ops): Add btrace ops.
11047 (enum <unnamed>): Add btrace packets.
11048 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11049 (_initialize_remote): Add packet configuration for branch tracing.
11050
c12a2917
MM
110512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11052
11053 * features/btrace.dtd: New file.
11054 * Makefile.in (XMLFILES): Add btrace.dtd.
11055 * btrace.h (parse_xml_btrace): New declaration.
11056 * btrace.c: Include xml-support.h.
11057 (parse_xml_btrace): New function.
11058 (parse_xml_btrace_block): New function.
11059 (block_attributes): New struct.
11060 (btrace_attributes): New struct.
11061 (btrace_children): New struct.
11062 (btrace_elements): New struct.
11063
3e3aea48
MM
110642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11065
11066 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11067 (amd64_linux_enable_btrace): New.
11068 (amd64_linux_disable_btrace): New.
11069 (amd64_linux_teardown_btrace): New.
11070 (_initialize_amd64_linux_nat): Initialize btrace ops.
11071 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11072 (i386_linux_enable_btrace): New.
11073 (i386_linux_disable_btrace): New.
11074 (i386_linux_teardown_btrace): New.
11075 (_initialize_i386_linux_nat): Initialize btrace ops.
11076 * config/i386/linux.mh: Add linux-btrace.o.
11077 * config/i386/linux64.mh: Add linux-btrace.o.
11078
7c97f91e
MM
110792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11080
11081 * common/linux_btrace.h: New file.
11082 * common/linux_btrace.c: New file.
11083 * Makefile.in (SFILES): Add btrace.c.
11084 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11085 (COMMON_OBS): Add btrace.o.
11086 (linux-btrace.o): New rule.
11087
1999790b 110882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
11089
11090 * target.h: Include btrace.h.
11091 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11092 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11093 * target.c (target_supports_btrace): New function.
11094 (target_enable_btrace): New function.
11095 (target_disable_btrace): New function.
11096 (target_teardown_btrace): New function.
11097 (target_read_btrace): New function.
11098 * btrace.h: New file.
11099 * btrace.c: New file.
11100 * Makefile.in: Add btrace.c.
11101 * gdbthread.h: Include btrace.h.
11102 (struct thread_info): Add btrace field.
11103 * thread.c: Include btrace.h.
11104 (clear_thread_inferior_resources): Call target_teardown_btrace.
11105 * common/btrace-common.h: New file.
11106
61a31a67
JK
111072013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11108
11109 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11110 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11111 kill_status to outer block.
11112
05c56a9d
JK
111132013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 Fix entry-values if the callee called a noreturn function.
11116 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11117 get_frame_address_in_block. Add new comment.
11118
9112db09
JK
111192013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Fix entry-values in C++ across CUs.
11122 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11123 lookup_minimal_symbol. Add a comment.
11124 * dwarf2read.c
11125 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11126 DW_AT_linkage_name.
11127
9b67fcec
YQ
111282013-03-08 Yao Qi <yao@codesourcery.com>
11129
11130 * tracepoint.c (_initialize_tracepoint): Indent the code.
11131
6221be90
PA
111322013-03-08 Pedro Alves <palves@redhat.com>
11133
11134 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11135 (parse_find_args, find_command): Change type of pattern buffer
11136 locals to 'gdb_byte *'.
11137
be9a119c 111382013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11139 Hafiz Abid Qadeer <abidh@codesourcery.com>
11140
11141 * NEWS: Mention set and show trace-buffer-size commands.
11142 Mention new packet.
11143 * target.h (struct target_ops): New method
11144 to_set_trace_buffer_size.
11145 (target_set_trace_buffer_size): New macro.
11146 * target.c (update_current_target): Set up new method.
11147 * tracepoint.c (trace_buffer_size): New global.
11148 (start_tracing): Send it to the target.
11149 (set_trace_buffer_size): New function.
11150 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11151 * remote.c (remote_set_trace_buffer_size): New function.
11152 (_initialize_remote): Use it.
11153 (QTBuffer:size) New remote command.
11154 (PACKET_QTBuffer_size): New enum.
11155 (remote_protocol_features): Add an entry for
11156 PACKET_QTBuffer_size.
11157
7da3ab79
TT
111582013-03-08 Tom Tromey <tromey@redhat.com>
11159
11160 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11161 variable.
11162
0c1f71e7
PA
111632013-03-07 Pedro Alves <palves@redhat.com>
11164
11165 * target.c (target_read_stralloc, target_fileio_read_alloc):
11166 *Cast pointer to 'gdb_byte *' in target call.
11167
c8af03a2
PA
111682013-03-07 Pedro Alves <palves@redhat.com>
11169
11170 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11171 call.
11172
529480d0
KS
111732013-03-07 Keith Seitz <keiths@redhat.com>
11174
11175 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11176 (trace_pass_command): Likewise.
11177 * cli/cli-cmds.c: Include cli/cli-utils.h.
11178 (source_command): Use skip-spaces.
11179 (disassemble_command): Likewise.
11180 * findcmd.c: Include cli/cli-utils.h.
11181 (parse_find_args): Use skip_spaces.
11182 * go32-nat.c: Include cli/cli-utils.h.
11183 (go32_sldt): Use skip_spaces.
11184 (go32_sgdt): Likewise.
11185 (go32_sidt): Likewise.
11186 (go32_pde): Likewise.
11187 (go32_pte): Likewise.
11188 (go32_pte_for_address): Likewise.
11189 * infcmd.c: Include cli/cli-utils.h.
11190 (registers_info): Use skip_spaces.
11191 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11192 (linux_info_proc): Likewise.
11193 * linux-thread-db.c: Include cli/cli-utils.h.
11194 (info_auto_load_libthread_db): Use skip_spaces_const.
11195 * m32r-rom.c: Include cli/cli-utils.h.
11196 (m32r_upload_command): Use skip_spaces.
11197 * maint.c: Include cli/cli-utils.h.
11198 (maintenance_translate_address): Use skip_spaces.
11199 * mi/mi-parse.c: Include cli/cli-utils.h.
11200 (mi_parse_argv): Use skip_spaces.
11201 (mi_parse): Likewise.
11202 * minsyms.c: Include cli/cli-utils.h.
11203 (msymbol_hash_iw): Use skip_spaces_const.
11204 * objc-lang.c: Include cli/cli-utils.h.
11205 (parse_selector): Use skip_spaces.
11206 (parse_method): Likewise.
11207 * python/python.c: Include cli/cli-utils.h.
11208 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11209 (python_command)[HAVE_PYTHON]: Likewise.
11210 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11211 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11212 (m32r_load): Use skip_spaces.
11213 * serial.c: Include cli/cli-utils.h.
11214 (serial_open): Use skip_spaces_const.
11215 * stack.c: Include cli/cli-utils.h.
11216 (parse_frame_specification_1): Use skip_spaces_const.
11217 * symfile.c: Include cli/cli-utils.h.
11218 (set_ext_lang_command): Use skip_spaces.
11219 * symtab.c: Include cli/cli-utils.h.
11220 (rbreak_command): Use skip_spaces.
11221 * thread.c (thread_name_command): Use skip_spaces.
11222 * tracepoint.c (validate_actionline): Use skip_spaces.
11223 (encode_actions_1): Likewise.
11224 (trace_find_range_command): Likewise.
11225 (trace_find_outside_command): Likewise.
11226 (trace_dump_actions): Likewise.
11227
ac91cd70
PA
112282013-03-07 Pedro Alves <palves@redhat.com>
11229
11230 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11231 * expprint.c (print_subexp_standard): Likewise.
11232 * utils.c (host_char_to_target): Likewise.
11233 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11234 * varobj.c (value_get_print_value): Change type of local to char*.
11235 Cast it gdb_byte * in call to language printer.
11236
2898e560
PA
112372013-03-07 Pedro Alves <palves@redhat.com>
11238
11239 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11240 gdb_byte *'.
11241 (make_wchar_iterator): Remove cast to char*.
11242 (wchar_iterate): Change type of local.
11243
a09b4448
PA
112442013-03-07 Pedro Alves <palves@redhat.com>
11245
11246 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11247 for 'regcache->register_status'.
11248
20ced3e4
PA
112492013-03-07 Pedro Alves <palves@redhat.com>
11250
c2d6a675 11251 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
11252 int.
11253
fe106009
PA
112542013-03-07 Pedro Alves <palves@redhat.com>
11255
11256 * stap-probe.c (handle_stap_probe): Add cast to char*.
11257
8ac2c12b
PA
112582013-03-07 Pedro Alves <palves@redhat.com>
11259
11260 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11261 RECORD_MSGRCV>: Pass a signed variable to
11262 regcache_raw_read_signed, instead of an unsigned one.
11263
99f0a309
PA
112642013-03-07 Pedro Alves <palves@redhat.com>
11265
11266 * remote-notif.c (notif_debug): Change type to int.
11267 * remote-notif.h (notif_debug): Likewise.
11268
964b8317
PA
112692013-03-07 Pedro Alves <palves@redhat.com>
11270
11271 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11272
f0cc8ad4
PA
112732013-03-07 Pedro Alves <palves@redhat.com>
11274
11275 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11276 * remote.h (hex2bin, bin2hex): ... here.
11277 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11278
77dec115
EZ
112792013-03-07 Eli Zaretskii <eliz@gnu.org>
11280
11281 * utils.c (initialize_utils): Improve doc strings of "set/show
11282 width", "set/show height", and "set/show pagination".
11283
741d92cf
KS
112842013-03-06 Keith Seitz <keiths@redhat.com>
11285
11286 * ax-gdb.c (gen_printf): Make FORMAT const.
11287 * ax-gdb.h (gen_printf): Likewise.
11288 * ax-general.c (ax_string): Make STR const.
11289 * ax.h (ax_string): Likewise.
11290
7b6c814e
DE
112912013-03-06 Doug Evans <dje@google.com>
11292
11293 * elfread.c (elf_symfile_read): Move debugging printf to more
11294 logical location.
11295
634334ab
PA
112962013-03-06 Pedro Alves <palves@redhat.com>
11297
11298 * python/py-utils.c (target_string_to_unicode): Delete function.
11299 * python/python-internal.h (target_string_to_unicode): Delete
11300 declaration.
11301
e482a1a7
PM
113022013-03-06 Pierre Muller <muller@sourceware.org>
11303
11304 * linespec.c (get_current_search_block): ARI fix, use (void)
11305 for empty parameter list.
11306
4eeaa230
DE
113072013-03-05 Doug Evans <dje@google.com>
11308
11309 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11310 of old ada_lookup_symbol_list. In !full_search case, don't
11311 search superblocks.
11312 (ada_lookup_symbol_list): Delete arg full_search, all callers
11313 updated. Call ada_lookup_symbol_list_worker.
11314 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11315 * ada-lang.h (ada_lookup_symbol_list): Update.
11316 * language.h (language_defn): Update comment for
11317 la_iterate_over_symbols.
11318 * linespec.c (iterate_over_file_blocks): New function.
11319 (iterate_over_all_matching_symtabs): Call it.
11320 (lookup_prefix_sym): Ditto.
11321 (get_current_search_block): New function.
11322 (get_search_block): Delete.
11323 (find_label_symbols): Call get_current_search_block.
11324 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11325 * symtab.c (iterate_over_symbols): Don't search superblocks.
11326
b69b1fb1
YQ
113272013-03-05 Yao Qi <yao@codesourcery.com>
11328
11329 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11330 parameter VAR's type from "unsigned int" to "int".
11331 * command.h (var_zuinteger_unlimited): Update its comments.
11332 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11333
3c095f49
CV
113342013-03-05 Corinna Vinschen <vinschen@redhat.de>
11335
11336 * NEWS: Mention new target x86_64-*-cygwin*.
11337
b5b0b0af
CV
113382013-03-05 Corinna Vinschen <vinschen@redhat.de>
11339
11340 * configure.host: Add x86_64-*-cygwin* as host.
11341 * configure.tgt: Add x86_64-*-cygwin* as target.
11342 * config/i386/cygwin64.mh: New file.
11343
f6f99966
JK
113442013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11345
11346 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11347
33f448b1
JK
113482013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11349
11350 * linespec.c (struct linespec_canonical_name): New.
11351 (struct linespec_state): Change canonical_names type to it.
11352 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11353 xrealloc element size. Initialize the different CANONICAL fields.
11354 (canonical_to_fullform): New.
11355 (filter_results): Use it. Add variables canonical, fullform and
11356 cleanup.
11357 (struct decode_line_2_item, decode_line_2_compare_items): New.
11358 (decode_line_2): Remove variables iter and item_names, add variables
11359 items and items_count. Modify the code for these new variables.
11360
feb14725
CV
113612013-03-04 Corinna Vinschen <vinschen@redhat.com>
11362
11363 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11364 calling do_cleanup.
11365
e83b17ba
HZ
113662013-03-04 Luis Machado <lgustavo@codesourcery.com>
11367
11368 * tracepoint.c (build_traceframe_info): Add code for byte order.
11369
a2d13a0d
KB
113702013-03-02 Kevin Buettner <kevinb@redhat.com>
11371
8dddcae8
KB
11372 * v850-tdep.c: (v850e2_register_name): Revise system register
11373 names to match current V850E2M architecture specifications.
11374 Update register number enum comments too.
f5aee5ee 11375
d79e58d8
JW
113762013-03-01 Jiong Wang <jiwang@tilera.com>
11377 Pedro Alves <palves@redhat.com>
11378
11379 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11380 to END_ADDR.
11381 (tilegx_skip_prologue): Limit prologue analysis to section end.
11382
c4be5165
JK
113832013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11384
11385 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11386 use it.
11387
e362b510
PA
113882013-03-01 Pedro Alves <palves@redhat.com>
11389
11390 Use gdb_byte for bytes from the program being debugged.
11391
11392 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11393 Change type of local 'buf' to gdb_byte.
11394 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11395 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11396 * cris-tdep.c (cris_sigcontext_addr)
11397 (cris_sigtramp_frame_unwind_cache): Likewise.
11398 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11399 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11400 Likewise.
11401 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11402 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11403 (hppa32_hpux_search_dummy_call_sequence)
11404 (hppa_hpux_supply_save_state): Likewise.
11405 * hppa-linux-tdep.c (insns_match_pattern)
11406 (hppa_linux_find_global_pointer): Likewise.
11407 * hppa-tdep.c (hppa_in_function_epilogue_p)
11408 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11409 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11410 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11411 (i386fbsd_collect_uthread): Likewise.
11412 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11413 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11414 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11415 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11416 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11417 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11418 (ia64_libunwind_frame_prev_register)
11419 (ia64_libunwind_sigtramp_frame_this_id)
11420 (ia64_find_global_pointer_from_dynamic_section)
11421 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11422 (ia64_unwind_pc): Likewise.
11423 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11424 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11425 (m68hc11_extract_return_value): Likewise.
11426 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11427 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11428 (mep_get_insn, mep_push_dummy_call): Likewise.
11429 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11430 (mips_linux_in_dynsym_stub): Likewise.
11431 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11432 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11433 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11434 to gdb_byte.
11435 * remote-mips.c (mips_set_register): Likewise.
11436 * remote-sim.c (gdbsim_fetch_register): Likewise.
11437 * score-tdep.c (score7_fetch_inst): Change type of parameter
11438 'memblock' and local 'buf' to gdb_byte.
11439 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11440 Change type of local 'buf' to gdb_byte. Adjust.
11441 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11442 to gdb_byte**.
11443 (score7_analyze_prologue): Change type of 'memblock' and
11444 'memblock_ptr' locals to gdb_byte*.
11445 * sh64-tdep.c (sh64_extract_return_value)
11446 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11447 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11448 * solib-pa64.c (pa64_solib_create_inferior_hook)
11449 (pa64_open_symbol_file_object): Remove local 'buf'.
11450 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11451 (som_open_symbol_file_object): Likewise.
11452 * solib-spu.c (spu_current_sos): Likewise.
11453 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11454 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11455 (spu_store_registers): Likewise.
11456 * target.c (debug_print_register): Likewise.
11457 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11458 * xstormy16-tdep.c (xstormy16_store_return_value)
11459 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11460 (xstormy16_find_jmp_table_entry): Likewise.
11461
75cc61ca 114622013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11463
11464 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11465 (tilegx_gdbarch_init): Install it.
11466
ddb08e9c
TT
114672013-02-28 Tom Tromey <tromey@redhat.com>
11468
11469 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11470 PyLong_Check.
11471
62d7fb51
DE
114722013-02-28 Doug Evans <dje@google.com>
11473
11474 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11475 * python/python.c (gdbpy_find_pc_line): Ditto.
11476
c4a9e8b4
TT
114772013-02-28 Tom Tromey <tromey@redhat.com>
11478
11479 * contrib/excheck.py: New file.
11480 * contrib/exsummary.py: New file.
11481 * contrib/gcc-with-excheck: New file.
11482
7f6a5dde
TT
114832013-02-28 Tom Tromey <tromey@redhat.com>
11484
11485 * python/python.c (gdbpy_print_stack): Call begin_line and
11486 fprintf_filtered inside TRY_CATCH.
11487
9e974e55
TT
114882013-02-28 Tom Tromey <tromey@redhat.com>
11489
11490 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11491 inside TRY_CATCH.
11492
dd5fa3e7
TT
114932013-02-28 Tom Tromey <tromey@redhat.com>
11494
11495 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11496 frame_object_to_frame_info inside TRY_CATCH.
11497
86a3263f
TT
114982013-02-28 Tom Tromey <tromey@redhat.com>
11499
11500 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11501 TRY_CATCH.
11502
81b52a3a
TT
115032013-02-28 Tom Tromey <tromey@redhat.com>
11504
11505 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11506
d50a0ce2
CV
115072013-02-27 Corinna Vinschen <vinschen@redhat.com>
11508
11509 * windows-nat.c: Throughout, fix format strings and casts of
11510 printf-like functions to avoid type related warnings on all
11511 platforms.
11512 (handle_output_debug_string): Fetch context information address
11513 from debug string using string_to_core_addr.
11514
e1f58301
JW
115152013-02-27 Jiong Wang <jiwang@tilera.com>
11516
11517 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11518 * regformats/reg-tilegx32.dat: New.
11519
4fcd89fc
JW
115202013-02-27 Jiong Wang <jiwang@tilera.com>
11521
11522 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11523
748d24e6
JW
115242013-02-27 Jiong Wang <jiwang@tilera.com>
11525
11526 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11527
6c8e944d
YQ
115282013-02-27 Yao Qi <yao@codesourcery.com>
11529 Pedro Alves <palves@redhat.com>
11530
11531 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11532 pc/tp/range/outside, look for the next trace frame instead of
11533 always starting from frame 0.
6c8e944d 11534
acd7db30
AG
115352013-02-26 Anthony Green <green@moxielogic.com>
11536
11537 * configure.tgt: Add support for moxie-*-rtems* target.
11538
025e6dce
PA
115392013-02-25 Pedro Alves <palves@redhat.com>
11540
11541 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11542 warning text.
11543
ca9c94ef
MR
115442013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11545
11546 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11547 if $fp is used as the virtual frame pointer.
11548
24c274a1
AM
115492013-02-23 Alan Modra <amodra@gmail.com>
11550
11551 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11552 symbol size.
11553 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11554 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11555 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11556 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11557
bfada189
JK
115582013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11559
11560 Code cleanup.
11561 * elfread.c (build_id_bfd_get): Make the return type const.
11562 (build_id_verify): Make the check parameter const.
11563 (build_id_to_debug_filename): Make the build_id parameter and variable
11564 data const.
11565 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11566
c0355132
AM
115672013-02-21 Alan Modra <amodra@gmail.com>
11568
11569 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11570
9f44fbc0
SCR
115712013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11572
11573 Add a new method 'disassemble' to gdb.Architecture class.
11574 * python/py-arch.c (archpy_disassmble): Implementation of the
11575 new method gdb.Architecture.disassemble.
11576 (arch_object_methods): Add entry for the new method.
11577
b74ea3eb
JW
115782013-02-20 Jiong Wang <jiwang@tilera.com>
11579
11580 * MAINTAINERS (Write After Approval): Add myself to the list.
11581
61a672f1
PA
115822013-02-19 Pedro Alves <palves@redhat.com>
11583
11584 Garbage collect 'struct monitor_ops'::load_routine.
11585
11586 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11587 * monitor.c (monitor_load): No longer call
11588 current_monitor->load_routine.
11589 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11590 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11591 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11592
40e397df
PA
115932013-02-19 Pedro Alves <palves@redhat.com>
11594
11595 PR gdb/15161
11596
11597 Harmonize with generic_load.
11598
11599 * monitor.c: Include "readline/readline.h".
11600 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11601 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11602 long/strtol for the 'load_offset' local. Error out if no argument
11603 is given or if too many arguments are given. Tilde expand the
11604 passed in file name.
11605
f698ca8e
KT
116062013-02-19 Kai Tietz <ktietz@redhat.com>
11607
11608 PR gdb/15161
11609 * symfile.c (load_section_data): Change type of load_offset
11610 to CORE_ADDR.
11611 (generic_load): User strtoulst instead of strtoul for conversion
11612 of load_offset.
11613
3361b059
WL
116142013-02-19 Jiong Wang <jiwang@tilera.com>
11615
11616 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11617 for return address, "lr" register, saved on stack.
11618 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11619 after we invoke tilegx_analyze_prologue.
11620
3e9d5130
WL
116212013-02-19 Jiong Wang <jiwang@tilera.com>
11622
bb1bcd86
WL
11623 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11624
3361b059 116252013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11626
b74ea3eb 11627 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11628
4aaf2503
WL
116292013-02-19 Jiong Wang <jiwang@tilera.com>
11630
b74ea3eb 11631 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11632 (tilegx_write_pc): New function.
11633 (tilegx_cannot_reference_register): Return zero if REGNO
11634 is TILEGX_FAULTNUM_REGNUM.
11635 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11636 (tilegx_register_name): Add handling of "faultnum" register.
11637 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11638 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11639 handling of TILEGX_FAULTNUM_REGNUM.
11640 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11641
bc23a956
WL
116422013-02-19 Jiong Wang <jiwang@tilera.com>
11643
11644 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11645 should be aligned to 64bit.
bc23a956 11646
42f45f1a
KT
116472013-02-19 Kai Tietz <ktietz@redhat.com>
11648
11649 * windows-nat.c (windows_xfer_memory): Fix debug-output
11650 for LLP64.
11651
6ce4c112
LL
116522013-02-19 Lei Liu <lei.liu2@windriver.com>
11653
11654 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11655 Don't check DSP register number if HAVE_DSP is not set.
11656
30e8ee25
AM
116572013-02-19 Alan Modra <amodra@gmail.com>
11658
11659 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11660 throughout file instead.
11661 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11662 Don't xmalloc return value.
11663 (build_id_verify): Similarly. Don't xfree.
11664 (build_id_to_debug_filename): Update.
11665 (find_separate_debug_file_by_buildid): Update, don't xfree.
11666
4c9ad8c2
TT
116672013-02-18 Tom Tromey <tromey@redhat.com>
11668
11669 PR gdb/15102:
11670 * dwarf2read.c (read_subrange_type): Use result of
11671 'check_typedef'.
11672
983dc440
YQ
116732013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11674
11675 * frame.c: Remove one extra white space after #include
11676 directive.
11677
7fb2b84a
JK
116782013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11681
edceb2a9
JK
116822013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11683
11684 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11685 and dir commands into an if block.
11686
e81b7af8
TT
116872013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11688
11689 * python/py-breakpoint (struct pybp_code): Use int instead of
11690 enum type_code.
11691
f5911ea1
HAQ
116922013-02-15 Pedro Alves <pedro@codesourcery.com>
11693 Hafiz Abid Qadeer <abidh@codesourcery.com>
11694
11695 * NEWS: Mention new field "trace-file".
11696 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11697 (tfile_open): Record the trace file's filename in the trace
11698 status.
11699 (tfile_files_info): Mention the name of the trace file.
11700 Check the "filename" field explicitely.
11701 (trace_status_command): Explicitely check "filename" field.
11702 (trace_find_command): Ditto.
11703 (trace_find_pc_command): Ditto.
11704 (trace_find_tracepoint_command): Ditto.
11705 (trace_find_line_command): Ditto.
11706 (trace_find_range_command): Ditto.
11707 (trace_find_outside_command): Ditto.
11708 * tracepoint.h (struct trace_status) <from_file>: Rename it
11709 to "filename" and make it hold the trace file's filename
11710 instead of a boolean.
11711 * remote.c (remote_get_trace_status): Initialize "filename"
11712 field with NULL instead of 0.
11713
796cb314
YQ
117142013-02-15 Yao Qi <yao@codesourcery.com>
11715
11716 * remote.c: Fix a typo.
11717
42e79b1d
PM
117182013-02-14 Pierre Muller <muller@sourceware.org>
11719
11720 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11721
baea0dae
PA
117222013-02-14 Pedro Alves <palves@redhat.com>
11723
11724 * utils.c (savestring): Don't #undef it. Move function to
11725 common/common-utils.c.
11726 * common/common-utils.c: Include gdb_string.h.
11727 (savestring): Move here from utils.c.
11728 * common/common-utils.h (savestring): Declare.
11729
57c3b6ed
PA
117302013-02-14 Pedro Alves <palves@redhat.com>
11731
11732 * utils.c (savestring): Rename parameter 'size' to 'len'.
11733
d6c44983
YZ
117342013-02-14 Pedro Alves <palves@redhat.com>
11735 Yufeng Zhang <yufeng.zhang@arm.com>
11736
11737 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11738 (aarch64_inferior_data, struct aarch64_inferior_data):
11739 Delete.
11740 (struct aarch64_process_info): New.
11741 (aarch64_process_list): New global.
11742 (aarch64_find_process_pid, aarch64_add_process)
11743 (aarch64_process_info_get): New functions.
11744 (aarch64_inferior_data_get): Delete.
11745 (aarch64_process_info_get): New function.
11746 (aarch64_forget_process): New function.
11747 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11748 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11749 aarch64_get_debug_reg_state.
11750 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11751 instead of linux_nat_iterate_watchpoint_lwps.
11752 (aarch64_linux_new_fork): New function.
11753 (aarch64_linux_child_post_startup_inferior): Use
11754 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11755 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11756 (aarch64_linux_remove_hw_breakpoint)
11757 (aarch64_handle_aligned_watchpoint)
11758 (aarch64_handle_unaligned_watchpoint)
11759 (aarch64_linux_insert_watchpoint)
11760 (aarch64_linux_remove_watchpoint)
11761 (aarch64_linux_stopped_data_address): Adjust to pass the current
11762 process id to aarch64_debug_reg_state.
11763 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11764 linux_nat_new_fork hook, and aarch64_forget_process as
11765 linux_nat_forget_process hook; remove the call to
11766 register_inferior_data_with_cleanup.
11767
4819b3f8
PA
117682013-02-14 Pedro Alves <palves@redhat.com>
11769
11770 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11771 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11772 lval_memory.
11773
1773c82c
HAQ
117742013-02-14 Pedro Alves <pedro@codesourcery.com>
11775 Hafiz Abid Qadeer <abidh@codesourcery.com>
11776
11777 * tracepoint.h (validate_trace_state_variable_name): Declare.
11778 * tracepoint.c (validate_trace_state_variable_name): New.
11779 (trace_variable_command): Parse the trace state variable's name
11780 without using parse_expression. Do several validations.
11781 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11782 trace state variable's name with parse_expression. Validate it.
11783
53778a97
YQ
117842013-02-14 Yao Qi <yao@codesourcery.com>
11785
11786 * infcmd.c (breakpoint_proceeded): Remove it.
11787
7b3ae3a6
YQ
117882013-02-14 Yao Qi <yao@codesourcery.com>
11789
11790 * tracepoint.c (end_actions_pseudocommand): Make it static.
11791 (while_stepping_pseudocommand): Likewise.
11792 * tracepoint.h (end_actions_pseudocommand): Remove the
11793 declaration.
11794 (while_stepping_pseudocommand): Likewise.
11795
64580925
YQ
117962013-02-14 Yao Qi <yao@codesourcery.com>
11797
11798 * cli/cli-decode.c (help_cmd): Remove the declaration of
11799 "cmdlist".
11800 (help_all): Likewise.
11801
26cb8b7c
PA
118022013-02-13 Pedro Alves <palves@redhat.com>
11803
11804 * amd64-linux-nat.c (update_debug_registers_callback):
11805 Update comment.
11806 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11807 iterate_over_lwps.
11808 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11809 i386_debug_reg_state.
11810 (amd64_linux_new_fork): New function.
11811 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11812 linux_nat_new_fork hook, and i386_forget_process as
11813 linux_nat_forget_process hook.
11814 * i386-linux-nat.c (update_debug_registers_callback):
11815 Update comment.
a8256ea1 11816 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11817 iterate_over_lwps.
11818 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11819 i386_debug_reg_state.
11820 (i386_linux_new_fork): New function.
11821 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11822 linux_nat_new_fork hook, and i386_forget_process as
11823 linux_nat_forget_process hook.
11824 * i386-nat.c (i386_init_dregs): Delete.
11825 (i386_inferior_data, struct i386_inferior_data):
11826 Delete.
11827 (struct i386_process_info): New.
11828 (i386_process_list): New global.
11829 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11830 New functions.
11831 (i386_inferior_data_get): Delete.
11832 (i386_process_info_get): New function.
11833 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11834 (i386_forget_process): New function.
11835 (i386_cleanup_dregs): Rewrite.
11836 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11837 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11838 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11839 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11840 to i386_debug_reg_state.
11841 (i386_use_watchpoints): Don't register inferior data.
11842 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11843 adjust comment.
11844 (i386_forget_process): Declare.
11845 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11846 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11847 New static globals.
11848 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11849 (add_initial_lwp): New, factored out from ...
11850 (add_lwp): ... this. Don't check the number of lwps before
11851 calling linux_nat_new_thread.
11852 (linux_nat_iterate_watchpoint_lwps): Delete.
11853 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11854 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11855 forks and vforks.
11856 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11857 initial lwp.
11858 (linux_nat_kill, linux_nat_mourn_inferior): Call
11859 linux_nat_forget_process.
11860 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11861 (linux_nat_forget_process): New functions.
11862 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11863 type.
11864 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11865 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11866 types.
11867 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11868 (linux_nat_forget_process): New declarations.
11869
11870 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11871 (amd64fbsd_mourn_inferior): New function.
11872 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11873 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11874
5befea72
MS
118752013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11876
55015247
YQ
11877 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11878 Adding _().
5befea72 11879
1d3ffd6b
MS
118802013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11881
11882 * aarch64-linux-nat.c (debug_reg_change_callback)
11883 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11884 %s and phex().
11885
6eb04473
MS
118862013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11887
11888 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11889 with LONGEST.
11890
a016fc87
HAQ
118912013-02-13 Pedro Alves <palves@redhat.com>
11892 Hafiz Abid Qadeer <abidh@codesourcery.com>
11893
11894 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11895
e234dfaf
TT
118962013-02-12 Tom Tromey <tromey@redhat.com>
11897
11898 PR symtab/11464:
11899 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11900 NAME return.
11901 (classify_inner_name): Remove 'first_name' argument, add
11902 'context'. Remove unused variable.
11903 (yylex): Explicitly maintain the context type. Exit loop earlier
11904 if NAME result is seen.
11905
0b1afbb3
PA
119062013-02-12 Pedro Alves <palves@redhat.com>
11907
11908 * amd64-darwin-tdep.c: Add (C) after Copyright.
11909 * cli/cli-cmds.h: Ditto.
11910 * cli/cli-decode.c: Ditto.
11911 * cli/cli-decode.h: Ditto.
11912 * cli/cli-dump.c: Ditto.
11913 * cli/cli-dump.h: Ditto.
11914 * cli/cli-interp.c: Ditto.
11915 * cli/cli-logging.c: Ditto.
11916 * cli/cli-script.c: Ditto.
11917 * cli/cli-script.h: Ditto.
11918 * cli/cli-setshow.c: Ditto.
11919 * cli/cli-setshow.h: Ditto.
11920 * cli/cli-utils.c: Ditto.
11921 * cli/cli-utils.h: Ditto.
11922 * config/alpha/nm-osf3.h: Ditto.
11923 * config/djgpp/djconfig.sh: Ditto.
11924 * config/i386/nm-fbsd.h: Ditto.
11925 * config/i386/nm-i386gnu.h: Ditto.
11926 * config/nm-linux.h: Ditto.
11927 * config/nm-nto.h: Ditto.
11928 * config/rs6000/nm-rs6000.h: Ditto.
11929 * config/sparc/nm-sol2.h: Ditto.
11930 * darwin-nat-info.c: Ditto.
11931 * dfp.c: Ditto.
11932 * dfp.h: Ditto.
11933 * gdb-demangle.h: Ditto.
11934 * i386-darwin-nat.c: Ditto.
11935 * i386-darwin-tdep.c: Ditto.
11936 * linux-fork.h: Ditto.
11937 * m32c-tdep.c: Ditto.
11938 * microblaze-linux-tdep.c: Ditto.
11939 * microblaze-rom.c: Ditto.
11940 * microblaze-tdep.c: Ditto.
11941 * microblaze-tdep.h: Ditto.
11942 * mips-linux-tdep.h: Ditto.
11943 * ppc-ravenscar-thread.c: Ditto.
11944 * ppc-ravenscar-thread.h: Ditto.
11945 * prologue-value.c: Ditto.
11946 * prologue-value.h: Ditto.
11947 * ravenscar-thread.c: Ditto.
11948 * ravenscar-thread.h: Ditto.
11949 * sparc-ravenscar-thread.c: Ditto.
11950 * sparc-ravenscar-thread.h: Ditto.
11951 * tilegx-linux-tdep.c: Ditto.
11952 * unwind_stop_reasons.def: Ditto.
11953 * windows-nat.h: Ditto.
11954 * xtensa-linux-tdep.c: Ditto.
11955 * xtensa-xtregs.c: Ditto.
11956 * regformats/regdat.sh: Ditto.
11957 * regformats/regdef.h: Ditto.
11958
6c01dd94
PA
119592013-02-12 Pedro Alves <palves@redhat.com>
11960
11961 * break-catch-sig.c: Update copyright years.
11962
b65a2bd9
SCR
119632013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11964
11965 Add support for a destructor for ui_out data and use it to
11966 provide a ui_out destructor.
11967 * ui-out.h: Declare the new ui_out destructor.
11968 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11969 * ui-out.c (default_data_destroy): Add a default data destructor
11970 which does nothing.
11971 (default_ui_out_impl): Set the new data_destroy field to
11972 default_data_destroy
11973 (uo_data_destroy): Local function which invokes the data
11974 destructor if present.
11975 (clear_table): Local function which clears the table data of a
11976 ui_out object.
11977 (ui_out_destroy): Public function which frees a ui_out object.
11978 (ui_out_table_end): Use the new clear_table function.
11979 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11980 NULL.
11981 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11982 to NULL.
11983
c2792f5a
DE
119842013-02-11 Doug Evans <dje@google.com>
11985
11986 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11987 (printf_decfloat): New function. Broken out from ui_printf.
11988 Remove unnecessary code to shift the entire format string down.
11989 (printf_pointer): New function.
11990 (ui_printf): Code to print C strings, wide C strings, decfloats,
11991 and pointers moved to separate functions.
11992
d9e98382
SDJ
119932013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11994
11995 * valops.c (value_assign): Handling bitfield offset in
11996 `lval_internalvar_component' case.
11997
4ff3ce77
DE
119982013-02-08 Doug Evans <dje@google.com>
11999
12000 * common/format.c (parse_format_string): Fix whitespace.
12001
901900c4
MGD
120022013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12003
12004 * stack.c (return_command): Work around uninitialized variable
12005 warning.
12006
b5dbc8d4
YZ
120072013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12008
12009 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12010 number of the registers from 36 to 34.
12011
51d66578
MS
120122013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12013
12014 * NEWS: Mention new AArch64 native and target support.
12015
176b1c95
MS
120162013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12017
12018 * MAINTAINERS (Write After Approval): Add myself.
12019
9d19df75
MS
120202013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12021 Marcus Shawcroft <marcus.shawcroft@arm.com>
12022 Nigel Stephens <nigel.stephens@arm.com>
12023 Yufeng Zhang <yufeng.zhang@arm.com>
12024
12025 * aarch64-linux-nat.c: New file.
12026 * config/aarch64/linux.mh: New file.
12027 * configure.host: Add AArch64.
12028 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12029
7e1e0340
DE
120302013-02-07 Doug Evans <dje@google.com>
12031
12032 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12033 disassemble command.
12034
45e25a36
MS
120352013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12036
12037 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12038 set_gdbarch_fetch_tls_load_module_address.
12039
bbfdfe1c
DM
120402013-02-06 David S. Miller <davem@davemloft.net>
12041
12042 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12043 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12044 * value.c (struct_return_convention): New function.
12045 (using_struct_return): Implement in terms of struct_return_convention.
12046 * value.h (struct_return_convention): Declare.
12047 * stack.c (return_command): Allow successful overriding of the return
12048 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12049
bc9abe4a
TT
120502013-02-06 Tom Tromey <tromey@redhat.com>
12051
12052 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12053 outside of TRY_CATCH.
12054
134a2066
YQ
120552013-02-06 Yao Qi <yao@codesourcery.com>
12056
12057 * mi/mi-interp.c: Include "tracepoint.h".
12058 (mi_tsv_modified): Declare.
12059 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12060 (mi_interpreter_init): Call observer_attach_tsv_modified.
12061 (mi_tsv_modified): New.
12062 (mi_tsv_created, mi_tsv_deleted): Update.
12063 * tracepoint.c (trace_variable_command): Call
12064 observer_notify_tsv_modified if the initial value of tsv is
12065 changed.
12066 (delete_trace_state_variable): Call
12067 observer_notify_tsv_deleted earlier.
12068 (trace_variable_command): Caller update.
12069 (create_tsv_from_upload): Likewise.
12070 * observer.sh: Declare "struct trace_state_variable".
12071
12072 * NEWS: Mention the new MI notification "=tsv-modified".
12073
59be2b6a
DE
120742013-02-05 Doug Evans <dje@google.com>
12075
12076 * completer.c (location_completer): Fix typo in comment.
12077
d30113d4
JK
120782013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12079
12080 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12081 ADDRESS sorted.
12082
14ac654f
MS
120832013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12084
12085 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12086 Refactor if statement to avoid trailing || operator.
12087
543bf33d
AT
120882013-02-05 Andreas Tobler <andreast@fgznet.ch>
12089
12090 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12091
dc18f110
AT
120922013-02-04 Andreas Tobler <andreast@fgznet.ch>
12093
12094 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12095 * configure.host: Add powerpc*-*-freebsd* target.
12096 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12097 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12098 * config/powerpc/fbsd.mh: New file.
12099
b3ac9c77
SDJ
121002013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12101 Denys Vlasenko <dvlasenk@redhat.com>
12102 Pedro Alves <palves@redhat.com>
12103
12104 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12105 (struct elf_internal_linux_prpsinfo): Forward declare.
12106 * gdbarch.h, gdbarch.c: Regenerate.
12107 * linux-tdep.c: Include `cli/cli-utils.h'.
12108 (linux_fill_prpsinfo): New function.
12109 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12110 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12111 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12112 depending on gdbarch pointer bitness.
12113 * ppc-linux-tdep.c: Include elf-bfd.h.
12114 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12115 on 32-bit.
12116
176eb98c
MS
121172013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12118 Marcus Shawcroft <marcus.shawcroft@arm.com>
12119 Nigel Stephens <nigel.stephens@arm.com>
12120 Yufeng Zhang <yufeng.zhang@arm.com>
12121
12122 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12123
cf0dbd6f
MS
121242013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12125 Marcus Shawcroft <marcus.shawcroft@arm.com>
12126 Nigel Stephens <nigel.stephens@arm.com>
12127 Yufeng Zhang <yufeng.zhang@arm.com>
12128
12129 * aarch64-newlib-tdep.c: New file.
12130 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12131 aarch64*-*-elf.
12132 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12133 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12134 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12135 * osabi.c (gdb_osabi_names): Add "Newlib".
12136
1ae3db19
MS
121372013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12138 Marcus Shawcroft <marcus.shawcroft@arm.com>
12139 Nigel Stephens <nigel.stephens@arm.com>
12140 Yufeng Zhang <yufeng.zhang@arm.com>
12141
12142 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12143 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12144 * aarch64-linux-tdep.c: New file.
12145 * aarch64-linux-tdep.h: New file.
12146 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12147 * configure.tgt: Add aarch64-none-linux-gnu.
12148
07b287a0
MS
121492013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12150 Marcus Shawcroft <marcus.shawcroft@arm.com>
12151 Nigel Stephens <nigel.stephens@arm.com>
12152 Yufeng Zhang <yufeng.zhang@arm.com>
12153
12154 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12155 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12156 (ALLDEPFILES): Add aarch64-tdep.c.
12157 * aarch64-tdep.c: New file.
12158 * aarch64-tdep.h: New file.
12159 * configure.tgt: Add AArch64.
12160 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12161 (aarch64-expedite): New definition.
12162 * features/aarch64-core.xml: New file.
12163 * features/aarch64-fpu.xml: New file.
12164 * features/aarch64-without-fpu.c: New file (generated).
12165 * features/aarch64-without-fpu.xml: New file.
12166 * features/aarch64.c: New file (generated).
12167 * features/aarch64.xml: New file.
12168 * regformats/aarch64-without-fpu.dat: New file (generated).
12169 * regformats/aarch64.dat: New file (generated).
12170
0f1b18ab
JK
121712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12172
12173 * contrib/expect-read1.c: New file.
12174 * contrib/expect-read1.sh: New file.
12175
233d95b5
JK
121762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12177
12178 * dwarf2read.c (file_file_name): New function with code from
12179 file_full_name.
12180 (file_full_name): Move most of the code to file_file_name.
12181 (macro_start_file): Rename variable full_name to file_name and use
12182 file_file_name for it. Add comp_dir parameter to new_macro_table.
12183 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12184 macro_source_file->filename access by macro_source_fullname call.
12185 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12186 caller.
12187 * macrotab.c (struct macro_table): New field comp_dir.
12188 (macro_include): New variables link_fullname and source_fullname.
12189 Replace any macro_source_file->filename access by macro_source_fullname
12190 call.
12191 (macro_lookup_inclusion): Remove the partial filenames checking code.
12192 (check_for_redefinition): New variables source_fullname and
12193 found_key_fullname. Replace any macro_source_file->filename access by
12194 macro_source_fullname call.
12195 (macro_undef): New variables source_fullname and key_fullname. Replace
12196 any macro_source_file->filename access by macro_source_fullname call.
12197 (macro_lookup_definition): New variables retval and source_fullname.
12198 Replace any macro_source_file->filename access by macro_source_fullname
12199 call.
12200 (foreach_macro): New variable key_fullname. Replace any
12201 macro_source_file->filename access by macro_source_fullname call.
12202 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12203 macro_source_file->filename access by macro_source_fullname call.
12204 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12205 (macro_source_fullname): New function.
12206 * macrotab.h (struct macro_source_file): Extent the filename field
12207 comment.
12208 (new_macro_table): New parameter comp_dir, add a comment for it.
12209 (macro_source_fullname): new declaration.
12210
da235a7c
JK
122112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12212
12213 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12214 this_real_name to outer block. Use it also for
12215 compare_filenames_for_search.
12216 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12217 with dw2_get_real_path for file_matcher, considering also
12218 BASENAMES_MAY_DIFFER.
12219 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12220
fbd9ab74
JK
122212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12222
12223 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12224 to the file_matcher parameter. Pass 0 to it.
12225 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12226 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12227 NULL psymtab_to_fullname result.
12228 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12229 an expected filename instead.
12230 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12231 file_matcher parameter. Call also psymtab_to_fullname, after newly
12232 considering BASENAMES_MAY_DIFFER.
12233 * source.c (rewrite_source_path): Remove static.
12234 * source.h (rewrite_source_path): New declaration.
12235 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12236 the expand_symtabs_matching field. Comment it.
12237 * symtab.c (file_matches): New function comment. Add parameter
12238 basenames, implement it.
12239 (search_symbols_file_matches): Add basenames parameter. Update the
12240 file_matches caller.
12241 (search_symbols): Match FILES also against symtab_to_fullname.
12242 Optimize it for BASENAMES_MAY_DIFFER.
12243
56d397a3
JK
122442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12245
12246 * source.c (print_source_lines_base): Print for TUI also "fullname".
12247 * tui/tui-data.c (init_content_element): Change tui_locator_element
12248 field to full_name.
12249 * tui/tui-data.h (struct tui_locator_element): Likewise.
12250 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12251 tui_update_locator_filename calls to tui_update_locator_fullname.
12252 Replace symtab->filename refererence by symtab_to_fullname call.
12253 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12254 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12255 field to full_name. Replace symtab->filename refererence by
12256 symtab_to_fullname call.
12257 (tui_show_symtab_source): Rename parameter to fullname. Change
12258 tui_locator_element field to full_name.
12259 * tui/tui-stack.c: Include source.h.
12260 (tui_set_locator_filename): Rename the declaration to ...
12261 (tui_set_locator_fullname): ... here. Rename its parameter to
12262 fullname, updates its comment.
12263 (tui_set_locator_info): Rename its parameter to fullname.
12264 (tui_set_locator_filename): Rename the definition to ...
12265 (tui_set_locator_fullname): ... here. Rename its parameter to
12266 fullname, updates its comment. Change tui_locator_element field to
12267 full_name.
12268 (tui_set_locator_info): Rename its parameter to fullname.
12269 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12270 (tui_update_locator_filename): Rename to ...
12271 (tui_update_locator_fullname): ... here. Rename callee to
12272 tui_set_locator_fullname.
12273 (tui_show_frame_info): Replace symtab->filename refererence by
12274 symtab_to_fullname call.
12275 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12276 (tui_update_locator_fullname): ... here.
12277 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12278 tui_update_locator_fullname. Replace symtab->filename refererence by
12279 symtab_to_fullname call.
12280 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12281 Rename the callee to tui_update_locator_fullname.
12282 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12283
05cba821
JK
122842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12285
12286 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12287 by symtab_to_filename_for_display calls.
12288 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12289 (clear_command): New variable sal_fullname, initialize it. Replace
12290 compare_filenames_for_search by filename_cmp with sal_fullname.
12291 (say_where, update_static_tracepoint): Replace symtab->filename
12292 refererences by symtab_to_filename_for_display calls.
12293 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12294 Likewise.
12295 * dwarf2read.c: Include source.h.
12296 (fixup_go_packaging): Replace symtab->filename refererences by
12297 symtab_to_filename_for_display calls.
12298 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12299 Replace symtab->filename refererences by symtab_to_filename_for_display
12300 calls.
12301 (create_sals_line_offset, convert_linespec_to_sals): New variable
12302 fullname, initialize it, replace symtab->filename reference by the
12303 variable.
12304 * linux-fork.c: Include source.h.
12305 (info_checkpoints_command): Replace symtab->filename refererences by
12306 symtab_to_filename_for_display calls.
12307 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12308 by symtab_to_filename_for_display calls.
12309 * mdebugread.c: Include source.h.
12310 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12311 symtab_to_filename_for_display calls.
12312 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12313 (mi_cmd_file_list_exec_source_files): Likewise.
12314 * printcmd.c: Include source.h.
12315 (build_address_symbolic): Replace symtab->filename refererences by
12316 symtab_to_filename_for_display calls.
12317 * psymtab.c (partial_map_symtabs_matching_filename)
12318 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12319 with psymtab_to_fullname.
12320 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12321 by symtab_to_filename_for_display calls.
12322 (stpy_get_filename): New variable filename, initialize it, use instead
12323 of symtab->filename refererences.
12324 (salpy_str): Make variable filename const char *. Replace
12325 symtab->filename refererences by symtab_to_filename_for_display calls.
12326 * skip.c: Include source.h and filenames.h.
12327 (skip_file_command): Remove const from the symtab variable. Replace
12328 symtab->filename refererences by symtab_to_fullname call.
12329 (function_name_is_marked_for_skip): New variables searched_for_fullname
12330 and fullname. Use them to search also with symtab's fullname.
12331 * source.c (find_source_lines): Replace symtab->filename refererences
12332 by symtab_to_filename_for_display calls.
12333 (print_source_lines_base): New variable filename, use it instead of
12334 symtab->filename. Replace symtab->filename refererences by
12335 symtab_to_filename_for_display calls.
12336 (line_info, forward_search_command): Replace symtab->filename
12337 refererences by symtab_to_filename_for_display calls.
12338 (reverse_search_command): Replace symtab->filename refererences by
12339 symtab_to_filename_for_display calls. New variable filename for it.
12340 * stack.c (frame_info): Likewise.
12341 * symmisc.c: Include source.h.
12342 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12343 (maintenance_info_symtabs): Replace symtab->filename refererences by
12344 symtab_to_filename_for_display calls.
12345 * symtab.c (iterate_over_some_symtabs): Call
12346 compare_filenames_for_search also with symtab_to_fullname.
12347 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12348 symtab->filename refererences by symtab_to_filename_for_display calls.
12349 (find_line_symtab): Replace symtab->filename refererences by
12350 symtab_to_filename_for_display calls.
12351 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12352 (print_symbol_info): Make the last parameter const char *. New
12353 variable s_filename. Use it in the function.
12354 (symtab_symbol_info): Make the last_filename variable const char *.
12355 Replace symtab->filename refererences by symtab_to_filename_for_display
12356 calls.
12357 (rbreak_command): New variable fullname. Use it. Replace
12358 symtab->filename refererence by symtab_to_filename_for_display call.
12359 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12360 (print_one_static_tracepoint_marker): Replace symtab->filename
12361 refererences by symtab_to_filename_for_display calls.
12362 * tui/tui-source.c (tui_set_source_content): New variables filename and
12363 s_filename. Replace symtab->filename refererences by this variable.
12364 Replace other symtab->filename refererences by
12365 symtab_to_filename_for_display calls.
12366
1b56eb55
JK
123672013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12368 Jan Kratochvil <jan.kratochvil@redhat.com>
12369
12370 Add a new variable that controls a way in which filenames are
12371 displayed.
12372 * NEWS (set filename-display): New entry.
12373 * source.c (filename_display_basename, filename_display_relative)
12374 (filename_display_absolute, filename_display_kind_names)
12375 (filename_display_string, show_filename_display_string)
12376 (symtab_to_filename_for_display): New.
12377 (_initialize_source): Added initialization of 'filename-display'
12378 variable.
12379 * source.h (symtab_to_filename_for_display): Added declaration.
12380 * stack.c (print_frame): Added new variable and calling of a new
12381 function and condition with this variable. Changed third argument of
12382 calling of a function.
12383
aa079c93
JK
123842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12385
12386 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12387 Rename field reference filename to fullname.
12388 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12389 fullname. New comment for it.
12390 * tui/tui-source.c (tui_set_source_content): Rename field reference
12391 filename to fullname. Initialize field by symtab_to_fullname now.
12392 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12393 reference filename to fullname. Use symtab_to_fullname during
12394 comparison.
12395
652a8996
JK
123962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12397
12398 Code cleanup.
12399 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12400 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12401 filename to fullname. Rename variable this_name to this_fullname.
12402 Lowercase FILENAME_CMP call.
12403 (dw2_find_symbol_file): New comment for the returned string.
12404 (dwarf2_gdb_index_functions): Rename the function to
12405 dw2_expand_symtabs_with_fullname.
12406 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12407 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12408 fullname.
12409 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12410 * symfile.h (struct quick_symbol_functions): Rename field
12411 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12412 parameter filename to fullname. Document returned string meaning for
12413 find_symbol_file.
12414 * symtab.c (find_line_symtab): Rename the called function to
12415 expand_symtabs_with_fullname.
12416
af529f8f
JK
124172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12418
12419 Code cleanup.
12420 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12421 call of filename_cmp with compare_filenames_for_search.
12422 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12423 is_abs, unify the call of FILENAME_CMP with
12424 compare_filenames_for_search. New gdb_asserts for real_path and name.
12425 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12426 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12427 * symfile.h (struct quick_symbol_functions): Extend the comment for
12428 map_symtabs_matching_filename.
12429 * symtab.c (compare_filenames_for_search): Remove the function comment
12430 relative path requirement. Handle absolute filenames, with a comment.
12431 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12432 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12433 real_path and name. Unify the call of compare_filenames_for_search
12434 with FILENAME_CMP.
12435 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12436
2f202fde
JK
124372013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12438
12439 Code cleanup.
12440 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12441 source_file references by symtab field references. Remove variables
12442 sal and fullname.
12443 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12444 (clear_command, say_where): Replace bp_location field source_file
12445 references by symtab field references.
12446 (bp_location_dtor): Remove the source_file reference.
12447 (update_static_tracepoint): Replace bp_location field source_file
12448 references by symtab field references.
12449 (breakpoint_free_objfile): New function.
12450 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12451 Replace the field source_file by field symtab, extend its comment.
12452 (breakpoint_free_objfile): New declaration.
12453 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12454 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12455 field source_file references by symtab field references.
12456
f5b95b50
JK
124572013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12458
12459 Replace xfullpath calls by gdb_realpath calls.
12460 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12461 function comment.
12462 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12463 Remove it from the iterate_over_some_symtabs call.
12464 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12465 Remove it from the dw2_map_expand_apply calls, remove a block handling
12466 it.
12467 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12468 Remove it from the iterate_over_some_symtabs call.
12469 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12470 Remove it from the partial_map_expand_apply calls, remove a block
12471 handling it. Drop gdb_realpath call and cleanups from the real_path
12472 handling.
12473 * source.c (openp): Drop the comment part about xfullpath. Replace
12474 xfullpath calls by gdb_realpath calls.
12475 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12476 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12477 from method map_symtabs_matching_filename and its comment.
12478 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12479 gdb_realpath call.
12480 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12481 remove it also from the function comment, remove a block handling it.
12482 Drop gdb_realpath call and cleanups from the real_path handling.
12483 (iterate_over_symtabs): Drop variable full_path and its use.
12484 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12485 * utils.c (xfullpath): Remove.
12486 * utils.h (xfullpath): Remove.
12487
d78489bf
AT
124882013-02-01 Andreas Tobler <andreast@fgznet.ch>
12489
12490 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12491 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12492 (ALLDEPFILES): Add ppc64-tdep.c.
12493 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12494 ppc64-tdep.o to gdb_target_obs.
12495 * ppc64-tdep.h: New file.
12496 * ppc64-tdep.c: New file.
12497 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12498 ppc-linux-tdep.c to here.
12499 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12500 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12501 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12502 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12503 from ppc-linux-tdep.c to here.
12504 (ppc64_convert_from_func_ptr_addr): Rename from
12505 ppc64_linux_convert_from_func_ptr_addr to
12506 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12507 here.
12508 * rs6000-tdep.c:
12509 (read_insn): Move from ppc-linux-tdep.c to here.
12510 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12511 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12512 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12513 Removed above functions.
12514 (ppc_linux_init_abi): Adjust.
12515
8db60374
AR
125162013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12517
12518 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12519
f2e5f4ce
AR
125202013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12521
12522 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12523
c1f7d745
PA
125242013-02-01 Pedro Alves <palves@redhat.com>
12525
12526 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12527 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12528
8a92335b
JK
125292013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12530
12531 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12532 files with no separate debug info.
12533 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12534 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12535 only for files with no separate debug info.
12536
8eacb197
TT
125372013-01-31 Tom Tromey <tromey@redhat.com>
12538
12539 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12540 change type.
12541 (struct jit_program_space_data): Rename from jit_inferior_data.
12542 Update comments.
12543 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12544 Change return type. Attach data to program space.
12545 (jit_program_space_data_cleanup): Rename from
12546 jit_inferior_data_cleanup; change argument type.
12547 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12548 change type.
12549 (jit_register_code): Update.
12550 (jit_update_inferior_cache): Remove.
12551 (jit_breakpoint_deleted): Get jit data from the location's program
12552 space.
12553 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12554 'ps_data', change type.
12555 (jit_inferior_init, jit_breakpoint_re_set_internal)
12556 (jit_event_handler): Update.
12557 (free_objfile_data): Get data from objfile's program space.
12558 (_initialize_jit): Update.
12559
f25c0135
TT
125602013-01-31 Tom Tromey <tromey@redhat.com>
12561
12562 PR gdb/13987:
12563 * jit.c (struct jit_inferior_data) <cached_code_address,
12564 jit_breakpoint>: New fields.
12565 (jit_breakpoint_re_set_internal): Fix logging. Only create
12566 breakpoint if cached address has changed.
12567 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12568 functions.
12569 (_initialize_jit): Register breakpoint deleted observer.
12570
974a734b
AR
125712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12572
12573 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12574 (save_infcall_suspend_state): Ifdef out unused inf.
12575 (restore_infcall_suspend_state): Ifdef out unused inf.
12576 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12577 (jit_frame_sniffer): Remove unused inf_data.
12578
df54f8eb
AR
125792013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12580
12581 * c-exp.y (classify_inner_name): Remove unused type.
12582 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12583 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12584 need_escape.
12585 (c_get_string): Remove unused kind.
12586 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12587
5799c0b9
AR
125882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12589
12590 * charset.c (intermediate_encoding): Remove unused i.
12591 * completer.c (signal_completer): Remove unused i.
12592 * continuations.c (discard_my_continuations_1): Remove unused
12593 continuation_ptr.
12594 * corelow.c (core_close): Remove unuseD name.
12595 (get_core_siginfo): Remove unused pid.
12596 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12597 i, cps.
12598 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12599 (loclist_describe_location): Remove unused first.
12600 * event-top.c (command_line_handler): Remove unused got_eof.
12601 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12602 (resize_section_table): Remove unused old_value.
12603 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12604 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12605 * i386-tdep.c (i386_process_record): Remove unused rex.
12606 * infcmd.c (get_return_value): Remove unused uiout.
12607 * jv-lang.c (type_from_class): Remove unused is_array.
12608 * jv-valprint.c (java_val_print): Remove unused i.
12609 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12610 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12611 * m2-typeprint.c (m2_print_type): Remove unused code.
12612 * macroexp.c (get_character_constant): Remove unused body_start.
12613 (macro_stringify): Remove unused result.
12614 * objc-lang.c (find_methods): Remove unused gdbarch.
12615 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12616 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12617 * stack.c (print_frame_args): Remove unused summary.
12618 * thread.c (thread_apply_command): Remove unused p.
12619 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12620 * valops.c (search_struct_method): Remove unused skip.
12621 * valprint.c (generic_val_print): Remove unused byte_order.
12622 * varobj.c (varobj_update): Remove unused changed.
12623 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12624 (alias_command): Remove unused c.
12625 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12626 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12627 format.
12628 (mi_cmd_data_write_memory): Remove unused word_format.
12629 (mi_cmd_data_write_memory_bytes): Remove unused r.
12630 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12631 p_start, p_end.
12632 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12633 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12634 line_width.
12635
c656bca5
AR
126362013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12637
12638 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12639 * symtab.c (iterate_over_symtabs): Remove unused s.
12640 (find_pc_sect_symtab): Remove unused pspAce.
12641 (find_pc_sect_line): Remove unused alt_symtab.
12642 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12643 (completion_list_add_name): Remove unused newsize.
12644
7078baeb
TT
126452013-01-31 Tom Tromey <tromey@redhat.com>
12646
12647 PR c++/14998:
12648 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12649 TYPE_CODE_FUNC.
12650
c2e8b827
AR
126512013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12652
12653 * target.c (target_read_string): Remove unused origlen.
12654
0e43993a
AR
126552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12656
12657 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12658 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12659 * ax-general.c (ax_print): Remove unused is_float.
12660 * blockframe.c (block_innermost_frame): Remove unused start, end.
12661 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12662
765a97ab
AR
126632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12664
12665 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12666 (svr4_read_so_list): Remove unused lmo.
12667 * solib-target.c (solib_target_relocate_section_addresses): Remove
12668 unused flags.
12669
a99dad3d
TT
126702013-01-30 Tom Tromey <tromey@redhat.com>
12671
12672 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12673
3bff1ecd
TT
126742013-01-30 Tom Tromey <tromey@redhat.com>
12675
12676 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12677 * utils.c (gnu_debuglink_crc32): Remove.
12678 * utils.h (gnu_debuglink_crc32): Don't declare.
12679
7d455152
TT
126802013-01-30 Tom Tromey <tromey@redhat.com>
12681
12682 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12683 (read_structure_type, read_enumeration_type): Remove cast.
12684
abee88f2
TT
126852013-01-30 Tom Tromey <tromey@redhat.com>
12686
12687 * dwarf2read.c (read_namespace_type): Remove cast.
12688 (read_typedef): Likewise.
12689
8d9878a4
TT
126902013-01-29 Tom Tromey <tromey@redhat.com>
12691
12692 * dwarf2read.c (free_dwo_file): Remove assert.
12693
a543d2a9
TT
126942013-01-29 Tom Tromey <tromey@redhat.com>
12695
12696 * value.c (deprecated_set_value_modifiable): Remove.
12697 * value.h (deprecated_set_value_modifiable): Remove.
12698
bed911e5
DE
126992013-01-28 Doug Evans <dje@google.com>
12700
12701 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12702 to addresses from dwo files.
12703
28c64fc2
SCR
127042013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12705
12706 * valops.c (find_overload_match): Remove unused argument 'lax'.
12707 * value.h: Remove unused argument 'lax' from the declaration of
12708 find_overload_match.
12709 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12710 to find_overload_match.
12711 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12712 argument to find_overload_match.
12713
4d4ec4e5
TT
127142013-01-25 Tom Tromey <tromey@redhat.com>
12715
12716 * dwarf2read.c (processing_has_namespace_info): Remove.
12717 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12718 (process_die, read_func_scope, dwarf2_start_symtab)
12719 (new_symbol_full): Update.
12720
195a3f6c
TT
127212013-01-25 Tom Tromey <tromey@redhat.com>
12722
12723 * cp-namespace.c (cp_set_block_scope): Remove.
12724 * cp-support.h (cp_set_block_scope): Remove.
12725 * dbxread.c: Include block.h.
12726 (cp_set_block_scope): New function.
12727 (process_one_symbol): Update.
12728 * dwarf2read.c (read_func_scope): Use block_set_scope.
12729
8ba0730a
PA
127302013-01-25 Pedro Alves <palves@redhat.com>
12731
12732 * remote.c (add_current_inferior_and_thread): Tweak comment.
12733
12aaed36
TT
127342013-01-25 Tom Tromey <tromey@redhat.com>
12735
12736 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12737 (cp_add_using_directive): Add 'copy_names' argument.
12738 * cp-support.h (cp_add_using_directive): Update.
12739 (struct using_direct) <import_src, import_dest, alias,
12740 declaration>: Now const.
12741 * dwarf2read.c (read_import_statement): Use obconcat.
12742 Don't copy names passed to cp_add_using_directive.
12743
7fc75ca7
TT
127442013-01-25 Tom Tromey <tromey@redhat.com>
12745
12746 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12747
3405876a
PA
127482013-01-25 Pedro Alves <palves@redhat.com>
12749
12750 * remote.c (stop_reply_extract_thread): New.
12751 (add_current_inferior_and_thread): New parameter 'wait_status'.
12752 Handle it.
12753 (remote_start_remote): Pass wait status to
12754 add_current_inferior_and_thread.
12755 (extended_remote_run): Update comment.
12756 (extended_remote_create_inferior_1): Pass wait status to
12757 add_current_inferior_and_thread.
12758
8954db33
AB
127592013-01-25 Andrew Burgess <aburgess@broadcom.com>
12760 Ulrich Weigand <uweigand@de.ibm.com>
12761
12762 * valarith.c (value_vector_widen): New function for replicating a
12763 scalar into a vector.
12764 (value_binop): Use value_vector_widen to widen scalar to vector
12765 rather than casting, this better matches gcc C behaviour.
12766 * valops.c (value_casst): Update logic for casting between vector
12767 types, and for casting from scalar to vector, try to match gcc C
12768 behaviour.
12769 * value.h (value_vector_widen): Declare.
12770 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12771 function, handle special case for casting scalar to vector.
12772 (opencl_relop): Use opencl_value_cast.
12773 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12774 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12775 in order to use opencl_value_cast.
12776
843b20dc
YQ
127772013-01-25 Yao Qi <yao@codesourcery.com>
12778
12779 * event-loop.c: Include "queue.h".
12780 (gdb_event_p): New typedef.
12781 (DECLARE_QUEUE_P): Use.
12782 (DEFINE_QUEUE_P): Use.
12783 (async_queue_event): Remove.
12784 (gdb_event_xfree): New.
12785 (initialize_event_loop): New.
12786 (process_event): Use QUEUE macros.
12787 (event_queue): Remove.
12788 (gdb_wait_for_event): Caller update.
12789 (check_async_event_handlers): Likewise.
12790 (poll_timers): Likewise.
12791 * event-loop.h (initialize_event_loop): Declare.
12792 * event-loop.c (gdb_event_xfree): New.
12793 * top.c (gdb_init): Call initialize_event_loop.
12794
20ad8856
YQ
127952013-01-25 Yao Qi <yao@codesourcery.com>
12796
12797 * event-loop.c (async_queue_event): Remove one parameter
12798 'position'. Remove code handling 'position' == TAIL.
12799 (gdb_wait_for_event): Caller update.
12800 (check_async_event_handlers): Caller update.
12801 (poll_timers): Caller update.
12802 * event-loop.h (enum queue_position): Remove.
12803
3bbbe775
MK
128042013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12805
12806 * MAINTAINERS: Update my email.
12807
a87d9ac4
YQ
128082013-01-25 Yao Qi <yao@codesourcery.com>
12809
12810 * main.c (print_gdb_help): Remove "--epoch" from the help
12811 message.
12812
2077afdd
TD
128132013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12814
12815 * symtab.c (skip_prologue_using_sal): Consider a file
12816 change the same as an increased line number
12817
63da4037
TD
128182013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12819
30e8ee25 12820 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12821
45e6c716
TT
128222013-01-24 Tom Tromey <tromey@redhat.com>
12823
12824 * ada-lang.h (ada_decode_symbol): Make return type const.
12825 * ada-lang.c (ada_decode_symbol): Likewise.
12826
b1ae631a
DE
128272013-01-23 Doug Evans <dje@google.com>
12828
12829 * linespec.c (find_linespec_symbols): Make static.
12830
55a78401
SDJ
128312013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12832
12833 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12834 type on float conversion for complex type.
12835
bea883fd
SCR
128362013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12837
12838 Add a new class gdb.Architecture which exposes GDB's
12839 internal representation of architecture via GDB Python API.
12840 * Makefile.in: Add entries corresponding to the new file
12841 python/py-arch.c.
12842 * NEWS (Python Scripting): Add entries for the new class
12843 gdb.Architecture and the new method gdb.Frame.architecture.
12844 * python/py-arch.c: Implement gdb.Architecture class.
12845 * python/py-frame.c (frapy_arch): Implement the method
12846 gdb.Frame.architecture().
12847 (frame_object_methods): Add 'architecture' to the method table.
12848 * python/python-internal.h: Add declarations of new utility
12849 functions.
12850 * python/python.c (_initialize_python): Initialize
12851 gdb.Architecture class.
12852
796a7ff8
DE
128532013-01-23 Doug Evans <dje@google.com>
12854
12855 Work around binutils/15021.
12856 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12857 type_unit_group out of union s. All uses updated.
12858 (read_index_from_section): Watch for index version 8.
12859 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12860 an imported symtab.
12861 (write_psymtabs_to_index): Increment version number to 8.
12862
0928e93d
PA
128632013-01-22 Pedro Alves <palves@redhat.com>
12864
12865 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12866 user-visible.
12867
9c97429f
PA
128682013-01-22 Pedro Alves <palves@redhat.com>
12869
12870 * annotate.c (annotate_breakpoints_changed): Rename to ...
12871 (annotate_breakpoints_invalid): ... this. Make static.
12872 (breakpoint_changed): Adjust.
12873 (_initialize_annotate): Always install the observers. Install a
12874 "breakpoint_created" observer.
12875 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12876 * breakpoint.c (set_breakpoint_condition)
12877 (breakpoint_set_commands, do_map_commands_command)
12878 (init_raw_breakpoint, clear_command, set_ignore_count)
12879 (enable_breakpoint_disp): No longer call
12880 annotate_breakpoints_changed.
12881
bd00c694
PA
128822013-01-22 Pedro Alves <palves@redhat.com>
12883
12884 * annotate.c: Include "inferior.h".
12885 (frames_invalid_emitted)
12886 (breakpoints_invalid_emitted): New globals.
12887 (async_background_execution_p): New function.
12888 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12889 emitting the annotation if it has already been emitted.
12890 (annotate_display_prompt): New function.
12891 * annotate.h (annotate_display_prompt): New declaration.
12892 * event-top.c: Include annotate.h.
12893 (display_gdb_prompt): Call annotate_display_prompt.
12894
187d10dd
PA
128952013-01-22 Pedro Alves <palves@redhat.com>
12896
12897 * annotate.c (ignore_count_changed): Delete.
12898 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12899 (annotate_ignore_count_change): Delete.
12900 (annotate_stopped): Don't emit a delayed breakpoints-changed
12901 annotation.
12902 * annotate.h (annotate_ignore_count_change): Delete.
12903 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12904 annotate_ignore_count_change.
12905
d84cf7eb
TT
129062013-01-22 Tom Tromey <tromey@redhat.com>
12907
12908 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12909 require_rvalue for a register location.
12910
8f1d5693
MK
129112013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12912
12913 * breakpoint.c (print_one_breakpoint_location): Add MI
12914 field 'thread-groups' when printing a breakpoint.
12915 (output_thread_groups): New function.
12916
aa6199c6
SCR
129172013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12918
12919 * python/lib/gdb/commands/explore.py
12920 (CompoundExplorer.explore_expr): Correct the name of a method
12921 being invoked.
12922 (ExploreTypeCommand.invoke): Add a missing 'return'.
12923
d2afef13
TT
129242013-01-21 Tom Tromey <tromey@redhat.com>
12925
12926 * gdb_obstack.h (obconcat): Move declaration here, from...
12927 * symfile.h (obconcat): ... here.
12928 * gdb_obstack.c: New file.
12929 (obconcat): Move from...
12930 * symfile.c (obconcat): ... here.
12931 * Makefile.in (SFILES): Add gdb_obstack.c.
12932 (COMMON_OBS): Add gdb_obstack.o.
12933
10f0c4bb
TT
129342013-01-21 Tom Tromey <tromey@redhat.com>
12935
12936 * symfile.h (obsavestring): Don't declare.
12937 * symfile.c (obsavestring): Remove.
12938 * ada-exp.y: Use obstack_copy0, not obsavestring.
12939 * ada-lang.c: Use obstack_copy0, not obsavestring.
12940 * coffread.c: Use obstack_copy0, not obsavestring.
12941 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12942 * dbxread.c: Use obstack_copy0, not obsavestring.
12943 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12944 * jit.c: Use obstack_copy0, not obsavestring.
12945 * mdebugread.c: Use obstack_copy0, not obsavestring.
12946 * psymtab.c: Use obstack_copy0, not obsavestring.
12947 * stabsread.c: Use obstack_copy0, not obsavestring.
12948 * xcoffread.c: Use obstack_copy0, not obsavestring.
12949
86f62fd7
TT
129502013-01-21 Tom Tromey <tromey@redhat.com>
12951
12952 * dwarf2read.c (fixup_go_packaging): Save package name
12953 on objfile obstack.
12954 * gdbtypes.c (init_type): Don't copy name.
12955
15d034d0
TT
129562013-01-21 Tom Tromey <tromey@redhat.com>
12957
12958 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12959 const.
12960 (struct attribute) <u.str>: Now const.
12961 (struct fnfieldlist) <name>: Now const.
12962 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12963 (partial_die_parent_scope): Make return type const.
12964 (partial_die_full_name, add_partial_symbol): Update.
12965 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12966 'name' const.
12967 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12968 (read_file_scope, read_func_scope, dwarf2_add_field)
12969 (dwarf2_add_member_fn, read_structure_type)
12970 (process_enumeration_scope, read_array_type, read_module_type)
12971 (read_base_type, read_subrange_type): Update.
12972 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12973 (new_symbol_full, guess_full_die_structure_name): Update.
12974 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12975 (dwarf2_name): Return const type.
12976 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12977 const.
12978
748e18ae
TT
129792013-01-21 Tom Tromey <tromey@redhat.com>
12980
12981 * gdbtypes.c (init_type): Make 'name' const.
12982 * gdbtypes.h (init_type): Update.
12983
46212e0b
TT
129842013-01-21 Tom Tromey <tromey@redhat.com>
12985
12986 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12987 (start_symtab): Make 'name' and 'dirname' const. Use
12988 set_last_source_file.
12989 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12990 (last_source_file): Define. Now static.
12991 (set_last_source_file, get_last_source_file): New functions.
12992 * buildsym.h (last_source_file): Don't declare.
12993 (start_symtab): Update.
12994 (set_last_source_file, get_last_source_file): Declare.
12995 * coffread.c (complete_symtab): Use set_last_source_file.
12996 (coff_end_symtab): Likewise.
12997 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12998 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12999 set_last_source_file.
13000 (process_one_symbol): Use get_last_source_file.
13001 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13002 (psymtab_to_symtab_1): Use get_last_source_file.
13003 * xcoffread.c (process_linenos): Use get_last_source_file.
13004 (complete_symtab): Use set_last_source_file.
13005 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13006 (scan_xcoff_symtab): Use set_last_source_file.
13007
9d2ceabe
TT
130082013-01-21 Tom Tromey <tromey@redhat.com>
13009
13010 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13011 (symbol_set_names): Remove casts. Handle field const-ness.
13012
cfc594ee
TT
130132013-01-21 Tom Tromey <tromey@redhat.com>
13014
13015 * dwarf2read.c (new_symbol_full): Remove cast.
13016 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13017 * symtab.h (symbol_set_demangled_name): Update.
13018
5484b13a
TT
130192013-01-21 Tom Tromey <tromey@redhat.com>
13020
13021 * main.c (captured_main): Call bfd_init.
13022
1605ef26
TT
130232013-01-21 Tom Tromey <tromey@redhat.com>
13024
13025 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13026 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13027 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13028 * NEWS: Update.
13029
3b74cdc3
JK
130302013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13031
13032 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13033
5a352474
JK
130342013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13035
13036 Fix gdb.fortran/common-block.exp crash in PIE mode.
13037 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13038 LOC_COMMON_BLOCK.
13039 * f-valprint.c (info_common_command_for_block): Expect
13040 LOC_COMMON_BLOCK in gdb_assert.
13041 * symtab.h (struct general_symbol_info): Update comment for the
13042 common_block member.
13043 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13044 (enum address_class): New member LOC_COMMON_BLOCK.
13045
c60797fd
DB
130462013-01-18 David Blaikie <dblaikie@gmail.com>
13047
13048 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 13049
46f35228
TT
130502013-01-18 Tom Tromey <tromey@redhat.com>
13051
13052 PR c++/14999:
13053 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13054 Call require_rvalue.
13055
257e7a09
YQ
130562013-01-18 Yao Qi <yao@codesourcery.com>
13057
13058 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13059 (dbx_read_symtab): New declaration.
13060 (dbx_psymtab_to_symtab): Delete.
13061 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13062 Rename parameter PST to SELF. Exchanged two parameters.
13063 (start_psymtab): Caller update.
13064 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13065 (dwarf2_read_symtab): New declaration.
13066 (dwarf2_psymtab_to_symtab): Delete.
13067 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13068 Rename parameter PST to SELF. Exchanged two parameters.
13069 (create_partial_symtab): Caller update.
13070 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13071 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13072 Rename parameter PST to SELF. Exchanged two parameters.
13073 (parse_partial_symbols, new_psymtab): Caller update.
13074 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13075 two parameters.
13076 * psymtab.c (psymtab_to_symtab): Caller update.
13077 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13078 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13079 Rename parameter PST to SELF. Exchanged two parameters.
13080 (xcoff_start_psymtab): Caller update.
13081
0de5618e
YQ
130822013-01-18 Yao Qi <yao@codesourcery.com>
13083
13084 * infrun.c (proceed): Rename local variable 'oneproc' to
13085 'force_step'.
13086
5c04624b
DE
130872013-01-17 Doug Evans <dje@google.com>
13088
848e3e78
DE
13089 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13090 (dw2_build_type_unit_groups): Delete. All uses updated.
13091
5c04624b
DE
13092 * symtab.h (struct symbol_search): Add comment.
13093
d84fca2c
JK
130942013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13095
13096 * symtab.c (compare_filenames_for_search): New comment for
13097 HAS_DRIVE_SPEC.
13098
6108433d
TT
130992013-01-17 Tom Tromey <tromey@redhat.com>
13100
13101 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13102
c89ffd86
JK
131032013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13104
13105 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13106 initialize it by existing make_cleanup. Call new do_cleanups.
13107
db2b2972
TT
131082013-01-17 Tom Tromey <tromey@redhat.com>
13109
13110 * cp-abi.c (cp_abi_completer): New function.
13111 (_initialize_cp_abi): Set completer for "set cp-abi".
13112
be7d37a2
TT
131132013-01-17 Tom Tromey <tromey@redhat.com>
13114
13115 * mem-break.c: Remove obsolete comment.
13116 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13117
c9fb1240
SD
131182012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13119
13120 * jit.c (jit_reader_load_command): Interpret the jit reader name
13121 as an absolute path if it begins with a forward slash.
13122
db334a01
SD
131232012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13124
13125 PR gdb/14550
13126
13127 * jit.c (finalize_symtab): Ensure that only the global block has a
13128 NULL superblock.
13129
7d928dac
PA
131302013-01-17 Pedro Alves <palves@redhat.com>
13131
13132 * acinclude.m4: Include ../config/plugins.m4,
13133 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13134 * Makefile.in (aclocal_m4_deps): Update.
13135 * aclocal.m4: Renegerate.
13136
fb8cf7c5
DE
131372013-01-16 Doug Evans <dje@google.com>
13138
13139 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13140
ab04a2af
TT
131412013-01-16 Pedro Alves <palves@redhat.com>
13142 Tom Tromey <tromey@redhat.com>
13143
13144 PR cli/7221:
13145 * NEWS: Add "catch signal".
13146 * breakpoint.c (base_breakpoint_ops): No longer static.
13147 (bpstat_explains_signal): New function.
13148 (init_catchpoint): No longer static.
13149 (base_breakpoint_explains_signal): New function.
13150 (base_breakpoint_ops): Initialize new field.
13151 * breakpoint.h (enum bpstat_signal_value): New.
13152 (struct breakpoint_ops) <explains_signal>: New field.
13153 (bpstat_explains_signal): Remove macro, declare as function.
13154 (base_breakpoint_ops, init_catchpoint): Declare.
13155 * break-catch-sig.c: New file.
13156 * inferior.h (signal_catch_update): Declare.
13157 * infrun.c (signal_catch): New global.
13158 (handle_syscall_event): Update for change to
13159 bpstat_explains_signal.
13160 (handle_inferior_event): Likewise. Always handle random signals
13161 via bpstats.
13162 (signal_cache_update): Check signal_catch.
13163 (signal_catch_update): New function.
13164 (_initialize_infrun): Initialize signal_catch.
13165 * Makefile.in (SFILES): Add break-catch-sig.c.
13166 (COMMON_OBS): Add break-catch-sig.o.
13167
8ac3646f
TT
131682013-01-16 Tom Tromey <tromey@redhat.com>
13169
13170 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13171 (print_one_catch_solib, print_one_catch_syscall)
13172 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13173 "catch-type".
13174
5a18e302
YQ
131752013-01-16 Yao Qi <yao@codesourcery.com>
13176
13177 * printcmd.c (current_display_number): Make it static.
13178
3f01d0d0
YQ
131792013-01-16 Yao Qi <yao@codesourcery.com>
13180
13181 * infcmd.c (step_once): Don't check '!single_inst' as it was
13182 checked before.
13183
1ed59174
JK
131842013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13185
13186 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13187
44478ab3
TT
131882013-01-14 Tom Tromey <tromey@redhat.com>
13189
13190 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13191 set command.
13192 * command.h (add_setshow_string_noescape_cmd): Update.
13193 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13194 (complete_set_gnutarget): New function.
13195 (_initialize_core): Set the "set gnutarget" completer.
13196
06d66ee9
TT
131972013-01-14 Tom Tromey <tromey@redhat.com>
13198
13199 PR symtab/14442:
13200 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13201 (c_type_print_modifier): Likewise.
13202 * dwarf2read.c (read_tag_restrict_type): New function.
13203 (read_type_die_1): Handle DW_TAG_restrict_type.
13204 * gdbtypes.c (make_restrict_type): New function.
13205 (recursive_dump_type): Handle TYPE_RESTRICT.
13206 * gdbtypes.h (enum type_flag_values): Renumber.
13207 (enum type_instance_flag_value): Add
13208 TYPE_INSTANCE_FLAG_RESTRICT.
13209 (TYPE_RESTRICT): New macro.
13210 (make_restrict_type): Declare.
13211
c9bf0622
TT
132122013-01-14 Tom Tromey <tromey@redhat.com>
13213
13214 PR symtab/14931:
13215 * psymtab.c (struct psymtab_state): New.
13216 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13217 functions.
13218 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13219 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13220
44d594fd
PA
132212013-01-14 Richard Sharman <richard_sharman@mitel.com>
13222 Pedro Alves <palves@redhat.com>
13223
13224 PR remote/14786
13225
13226 * remote.c (remote_threads_info): Make a copy of the reply from
13227 qfThreadInfo and use that instead of rs->buf.
13228
442e4d9c
YQ
132292013-01-14 Yao Qi <yao@codesourcery.com>
13230
13231 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13232 (dbx_psymtab_to_symtab): Likewise.
13233 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13234 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13235 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13236
5b12a61c
JK
132372013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13238
13239 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13240 make_cleanup_restore_current_language. Call set_language. Move
13241 OLD_CHAIN and INNER_CHAIN cleanups.
13242 * utils.c (do_restore_current_language)
13243 (make_cleanup_restore_current_language): New functions.
13244 * utils.h (make_cleanup_restore_current_language): New declaration.
13245
f0a4b570
JK
132462013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13247
13248 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13249 non-existing files.
13250
57b3c00c
JK
13251 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13252 non-existing files if FILENAME is already absolute.
13253
daefa854
JK
132542013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13255
13256 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13257 fputs_filtered. Append trailing newline.
13258
ca9c6ee2
YQ
132592013-01-11 Yao Qi <yao@codesourcery.com>
13260 Stan Shebs <stan@codesourcery.com>
13261
13262 * psymtab.c (init_psymbol_list): Clarify the comment.
13263
f28045c2
YQ
132642013-01-11 Yao Qi <yao@codesourcery.com>
13265
13266 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13267 (update_dprintf_command_list): Assert that 'printf_line' is
13268 non-null. Remove condition check.
13269
da5132d3
JK
132702013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13271
13272 Code cleanup.
13273 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13274 type const char *.
13275 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13276 const char *.
13277 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13278
843e694d
AG
132792013-01-09 Anthony Green <green@moxielogic.com>
13280
13281 * cp-abi.c (cplus_print_vtable): Don't return value from void
13282 function.
13283 * ada-lang.c (re_set_catch_assert): Ditto.
13284
da51c347
DE
132852013-01-09 Doug Evans <dje@google.com>
13286
13287 * symfile.h (quick_symbol_functions): Delete member
13288 pre_expand_symtabs_matching. All uses removed.
13289 * dwarf2read.c (dw2_lookup_symbol): Implement.
13290 (dw2_do_expand_symtabs_matching): Delete.
13291 (dw2_pre_expand_symtabs_matching): Delete.
13292 (struct dw2_symtab_iterator): New type.
13293 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13294 (dw2_expand_symtabs_for_function): Rewrite.
13295 (dwarf2_gdb_index_functions): Update.
13296 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13297 (psym_functions): Update.
13298
b2259038
TT
132992013-01-09 Tom Tromey <tromey@redhat.com>
13300
13301 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13302 * configure: Rebuild.
13303 * configure.ac: Add somread.o to the build if BFD has SOM
13304 support.
13305 * somread.c: Include som/aout.h, not syms.h.
13306 (som_symtab_read): Use som_external_symbol_dictionary_record.
13307 Unpack records manually.
13308 (_initialize_somread): Declare.
13309
bdad4180
MF
133102012-01-08 Mike Frysinger <vapier@gentoo.org>
13311
13312 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13313 Cast return_address to 64bits.
13314
03cdf680
HZ
133152013-01-08 Hui Zhu <hui_zhu@mentor.com>
13316
13317 * printcmd.c: Remove define of function output_command.
13318 * tracepoint.c: Remove extern of function output_command.
13319 * valprint.h: (output_command): New extern.
13320
8a808554
TT
133212013-01-07 Tom Tromey <tromey@redhat.com>
13322
13323 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13324 Remove.
13325 (objc_language_defn): Use c_printchar, c_printstr,
13326 c_emit_char.
13327
e93a8774
TT
133282013-01-07 Tom Tromey <tromey@redhat.com>
13329
13330 PR cli/7719:
13331 * NEWS: Update.
13332 * ada-valprint.c (printstr, print_field_values): Remove
13333 "inspect_it" code.
13334 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13335 code.
13336 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13337 code.
13338 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13339 * main.c (captured_main): Remove "epoch" argument.
13340 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13341 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13342 * p-valprint.c (pascal_object_print_value_fields): Remove
13343 "inspect_it" code.
13344 * printcmd.c (print_command_1): Remove 'inspect' argument.
13345 (print_command, call_command): Update.
13346 (inspect_command): Remove.
13347 (_initialize_printcmd): Make "inspect" an alias for "print".
13348 * top.c (epoch_interface): Remove.
13349 * top.h (epoch_interface): Remove.
13350 * valprint.c (user_print_options): Update.
13351 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13352 * valprint.h (struct value_print_options) <inspect_it>: Remove
13353 field.
13354
133552013-01-04 Tom Tromey <tromey@redhat.com>
13356
13357 * valprint.h (read_string): Add 'extern'.
13358
b967eb24
JB
133592013-01-07 Joel Brobecker <brobecker@adacore.com>
13360
13361 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13362 used to decide whether to define darwin_read_dyld_info or not.
13363
78a8b30e
PM
133642013-01-03 Pierre Muller <muller@sourceware.org>
13365
13366 * main.c (relocate_gdb_directory): Avoid calling stat function
13367 if DIR is empty.
13368
50da2f25
YQ
133692013-01-03 Yao Qi <yao@codesourcery.com>
13370
13371 * psymtab.c (fixup_psymbol_section): Update declaration.
13372 (fixup_psymbol_section): Remove code returning value.
13373
e7e8980f
YQ
133742013-01-03 Yao Qi <yao@codesourcery.com>
13375
13376 * symtab.h: Remove some out of date comments.
13377 (enum exception_event_kind): Move it ...
13378 * breakpoint.c: ... here.
13379
569283d4
MF
133802013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13381
9f9d9a96 13382 PR gdb/14405
569283d4
MF
13383 * darwin-nat.c (darwin_read_dyld_info): Only build if
13384 TASK_DYLD_INFO_COUNT is defined.
13385 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13386 TASK_DYLD_INFO_COUNT is defined.
13387
2e36fbea
TT
133882013-01-02 Tom Tromey <tromey@redhat.com>
13389
13390 * symfile.h (struct ecoff_debug_hack): Remove.
13391 * objfiles.c: Don't include mdebugread.h.
13392
4f05add4
TT
133932013-01-02 Tom Tromey <tromey@redhat.com>
13394
13395 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13396 * configure.ac: Check for Mach-O support in BFD. Update
13397 CONFIG_OBS.
13398 * configure: Rebuild.
13399
def63ff0
TT
134002013-01-02 Tom Tromey <tromey@redhat.com>
13401
13402 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13403 * configure.ac: Use GDB_AC_CHECK_BFD.
13404 * configure: Rebuild.
13405
60c5dd93
MK
134062013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13407
13408 * MAINTAINERS: Update my email.
13409
6e58437e
JB
134102013-01-01 Joel Brobecker <brobecker@adacore.com>
13411
13412 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13413
627fe805
JB
134142013-01-01 Joel Brobecker <brobecker@adacore.com>
13415
13416 * rs6000-nat.c (bss_data_overlap): New function.
13417 (vmap_symtab): Use it to adjust the .bss section's offset.
13418
28e7fd62
JB
134192013-01-01 Joel Brobecker <brobecker@adacore.com>
13420
13421 Update year range in copyright notice of all files.
13422
e93a8774 134232013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13424
13425 * top.c (print_gdb_version): Update copyright year.
13426
72b20e9c 13427For older changes see ChangeLog-2012.
c906108c
SS
13428\f
13429Local Variables:
13430mode: change-log
13431left-margin: 8
13432fill-column: 74
13433version-control: never
57da7796 13434coding: utf-8
c906108c 13435End:
This page took 2.353196 seconds and 4 git commands to generate.