remove remnants of old Mach-O workaround
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f45c82da
YZ
12013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
2
3 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
4 iov.iov_len with the real length in use.
5
4ac248ca
YQ
62013-12-18 Yao Qi <yao@codesourcery.com>
7
8 * target.h (target_xfer_partial_ftype): New typedef.
9 (target_xfer_partial): Update declaration.
10 * auxv.h (memory_xfer_auxv): Likewise.
11 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
12 * ia64-linux-nat.c (super_xfer_partial): Likewise.
13 * linux-nat.c (super_xfer_partial): Likewise.
14 * procfs.c (procfs_xfer_partial): Likewise.
15 * record-full.c (record_full_beneath_to_xfer_partial):
16 (tmp_to_xfer_partial): Likewise.
17 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
18 * target.c (default_xfer_partial): Likewise.
19 (current_xfer_partial): Likewise.
20 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
21
cde33bf1
YQ
222013-12-18 Yao Qi <yao@codesourcery.com>
23
24 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
25 of sprintf.
26 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
27 (linux_proc_pending_signals): Likewise.
28
64c46ce4
JB
292013-12-18 Joel Brobecker <brobecker@adacore.com>
30
31 * value.c (value_entirely_unavailable): ARI fix: Move trailing
32 binary operator to the next line. No actual code change.
33
5ce0145d
PA
342013-12-17 Pedro Alves <palves@redhat.com>
35
36 * frame.h (enum frame_id_stack_status): New enum.
37 (struct frame_id) <stack_addr>: Adjust comment.
38 <stack_addr_p>: Delete field, replaced with ...
39 <stack_status>: ... this new field.
40 (frame_id_build_unavailable_stack): Declare.
41 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
42 (frame_id_build_special): Adjust.
43 (frame_id_build_unavailable_stack): New function.
44 (frame_id_build, frame_id_build_wild): Adjust.
45 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
46 account frames with unavailable stack.
47
48 * amd64-tdep.c (amd64_frame_this_id)
49 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
50 frame_id_build_unavailable_stack.
51 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
52 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
53 (i386_sigtramp_frame_this_id): Likewise.
54
bdf22206
AB
552013-12-17 Andrew Burgess <aburgess@broadcom.com>
56
57 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
58 unavailable, use correct bit length.
59 * value.c (struct value): Extend comment on unavailable to
60 indicate that it is bit based.
61 (value_bits_available): New function.
62 (value_bytes_available): Call value_bits_available.
63 (value_entirely_available): Check against the bit length, not byte
64 length.
65 (mark_value_bits_unavailable): New function.
66 (mark_value_bytes_unavailable): Move contents to
67 mark_value_bits_unavailable, call to same.
68 (memcmp_with_bit_offsets): New function.
69 (value_available_contents_bits_eq): New function, takes the
70 functionality from value_available_contents_eq but uses
71 memcmp_with_bit_offsets now, and is bit not byte based.
72 (value_available_contents_eq): Move implementation into
73 value_available_contents_bits_eq, call to same.
74 (value_contents_copy_raw): Work on bits, not bytes.
75 (unpack_value_bits_as_long_1): Check availability in bits, not
76 bytes.
77 * value.h (value_bits_available): Declare new function.
78 (mark_value_bits_unavailable): Declare new function.
79
774f74c2
PM
802013-12-16 Pierre Muller <muller@sourceware.org>
81
230de03a
YQ
82 Fix compilation error for cygwin native build.
83 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
774f74c2
PM
84 Call wcstombs.
85
9a362b9a
PA
862013-12-16 Pedro Alves <palves@redhat.com>
87
88 PR 16329
89 * sol-thread.c (check_for_thread_db): If the target can't run or
90 isn't a core, return without pushing.
91
b030cf11
JB
922013-12-15 Joel Brobecker <brobecker@adacore.com>
93
94 Revert the following commit:
95 * solib.c (solib_map_sections): Remove code overwriting
96 SO->SO_NAME with the bfd's filename.
97
98 Make the following changes required after the revert above:
99 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
100 returned bfd to a copy of the synthetic pathname.
101 * solib-darwin.c (darwin_bfd_open): Set the filename of the
102 returned bfd to a copy of PATHNAME.
103
8a48ac95
JB
1042013-12-13 Joel Brobecker <brobecker@adacore.com>
105
106 * ada-lang.c (ada_array_bound_from_type): Move the declaration
107 and assignment of variable "elt_type" inside the else block
108 where it is used. Add two missing check_typedef calls.
109 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
110 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
111
fb5e3d5c
JB
1122013-12-13 Joel Brobecker <brobecker@adacore.com>
113
114 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
115 between 'struct type *' and 'arr_type'.
116
a16b0e22
SC
1172013-12-12 Siva Chandra Reddy <sivachandra@google.com>
118
119 PR python/16113
120 * NEWS (Python Scripting): Add entry for the new feature and the
121 new attribute of gdb.Field objects.
122 * python/py-type.c (gdbpy_is_field): New function
123 (convert_field): Add 'parent_type' attribute to gdb.Field
124 objects.
125 * python/py-value.c (valpy_getitem): Allow subscript value to be
126 a gdb.Field object.
127 (value_has_field): New function
128 (get_field_flag): New function
129 * python/python-internal.h (gdbpy_is_field): Add declaration.
130
b15e5c54
PA
1312013-12-12 Pedro Alves <palves@redhat.com>
132
133 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
134 const, and remove casts.
135
f23981e9
PA
1362013-12-12 Pedro Alves <palves@redhat.com>
137
138 * cli/cli-cmds.c (source_script_from_stream) Use have_python
139 instead of catching UNSUPPORTED_ERROR.
140 * exceptions.h (UNSUPPORTED_ERROR): Delete.
141 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
142 error if called.
143 * python/python.h (have_python): New static inline function.
144
43942612
DE
1452013-12-11 Doug Evans <dje@google.com>
146
147 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
148 "can't find DWO" warning.
149
08a6411c
SDJ
1502013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
151
152 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
153 to get_probe_argument_count and evaluate_probe_argument.
154 * probe.c (get_probe_argument_count): Adjust declaration to accept
155 frame. Pass frame to probe_ops's get_probe_argument_count.
156 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
157 (probe_safe_evaluate_at_pc): Pass frame to
158 get_probe_argument_count and evaluate_probe_argument.
159 * probe.h (struct probe_ops) <get_probe_argument_count,
160 evaluate_probe_argument>: Adjust declarations to accept frame.
161 (get_probe_argument_count, evaluate_probe_argument): Likewise.
162 * solib-svr4.c (solib_event_probe_action): Get current frame.
163 Pass it to get_probe_argument_count.
164 (svr4_handle_solib_event): Get current frame. Pass it to
165 get_probe_argument_count and evaluate_probe_argument.
166 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
167 accept gdbarch. Do not obtain it from the probe's objfile.
168 (stap_get_probe_argument_count): Adjust declaration to accept
169 frame. Obtain gdbarch from the frame. Call generic
170 can_evaluate_probe_arguments. Pass gdbarch to
171 stap_parse_probe_arguments.
172 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
173 stap_parse_probe_arguments.
174 (stap_evaluate_probe_argument): Adjust declaration to accept
175 frame. Obtain gdbarch from the frame. Pass gdbarch to
176 stap_get_arg.
177 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
178 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
179 get_probe_argument_count and evaluate_probe_argument.
180
0987cf35
DE
1812013-12-10 Doug Evans <dje@google.com>
182
183 PR 16286
184 * c-lang.c (c_get_string): Ignore the declared size of the object
185 if a specific length is requested.
186
34dc884e
DE
1872013-12-10 Doug Evans <dje@google.com>
188
189 * interps.h (interp_exec_p): Delete.
190 * interps.c (interp_exec_p): Delete.
191 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
192 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
193
bae8a07a
YQ
1942013-12-10 Yao Qi <yao@codesourcery.com>
195
196 * amd64-tdep.c (amd64_analyze_stack_align): Call
197 target_read_code instead of target_read_memory.
198 (amd64_analyze_prologue): Call read_code_unsigned_integer
199 instead of read_memory_unsigned_integer. Call read_code
200 instead of read_memory.
201 (amd64_skip_xmm_prologue): Likewise.
202
0865b04a
YQ
2032013-12-10 Yao Qi <yao@codesourcery.com>
204
205 * corefile.c (read_code): New function.
206 (read_code_integer): New function.
207 (read_code_unsigned_integer): New function.
208 * gdbcore.h (read_code): Declare.
209 (read_code_integer): Declare.
210 (read_code_unsigned_integer): Declare.
211 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
212 of target_read_memory. Call read_code_unsigned_integer instead
213 of read_memory_unsigned_integer.
214 (i386_analyze_struct_return): Likewise.
215 (i386_skip_probe): Likewise.
216 (i386_analyze_stack_align): Likewise.
217 (i386_match_pattern): Likewise.
218 (i386_skip_noop): Likewise.
219 (i386_analyze_frame_setup): Likewise.
220 (i386_analyze_register_saves): Likewise.
221 (i386_skip_prologue): Likewise.
222 (i386_skip_main_prologue): Likewise.
223 (i386_frame_cache_1): Likewise.
224
f15cb84a
YQ
2252013-12-10 Yao Qi <yao@codesourcery.com>
226
227 * infrun.c: Include "target-dcache.h".
228 (prepare_for_detach): Call target_dcache_invalidate.
229 (wait_for_inferior): Likewise.
230 (fetch_inferior_event): Likewise.
231 (infrun_thread_stop_requested_callback): Likewise. Set
232 overlay_cache_invalid to 1.
233
036e93df
JB
2342013-12-10 Joel Brobecker <brobecker@adacore.com>
235
236 * symtab.c (symbol_find_demangled_name): Add handling of
237 Ada symbols.
238
72bfa06c
JB
2392013-12-10 Joel Brobecker <brobecker@adacore.com>
240
241 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
242 * NEWS: Expand the entry documenting the new -exec-run --start
243 option to mention the corresponding new entry in the output of
244 "-list-features".
245
94481b8c
JB
2462013-12-10 Joel Brobecker <brobecker@adacore.com>
247
248 * windows-nat.c (handle_load_dll): Add comments.
249 (windows_ensure_ntdll_loaded): New function.
250 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
251 Add FIXME comment.
252
ebeec1e9 2532013-12-08 Joel Brobecker <brobecker@adacore.com>
0c2242c1
JB
254
255 GDB 7.6.2 released.
256
e5e6f788
YQ
2572013-12-08 Yao Qi <yao@codesourcery.com>
258
259 * stack.c (frame_info): Initialize variable caller_pc.
260
782d47df
PA
2612013-12-06 Pedro Alves <palves@redhat.com>
262
263 * frame.c (enum cached_copy_status): New enum.
264 (struct frame_info) <prev_pc.p>: Change type to enum
265 cached_copy_status.
266 (fprint_frame): Handle not saved and unavailable prev_pc values.
267 (frame_unwind_pc_if_available): Delete and merge contents into ...
268 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
269 to use enum cached_copy_status.
270 (frame_unwind_caller_pc_if_available): Delete.
271 (create_new_frame): Adjust.
272 * frame.h (frame_unwind_caller_pc_if_available): Delete
273 declaration.
274 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
275 frame_unwind_caller_pc_if_available, and handle
276 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
277 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
278 (val_print_not_saved): New function.
279 * valprint.h (val_print_not_saved): Declare.
280
710409a2
PA
2812013-12-06 Andrew Burgess <aburgess@broadcom.com>
282 Pedro Alves <palves@redhat.com>
283
284 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
285 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
286 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
287 * spu-tdep.c (spu_software_single_step): Throw
288 OPTIMIZED_OUT_ERROR.
289 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
290
7580e917
TT
2912013-12-06 Tom Tromey <tromey@redhat.com>
292
293 * objfiles.c (free_objfile): Update comment.
294
53e0e56d
TT
2952013-12-06 Tom Tromey <tromey@redhat.com>
296
297 * objfiles.h (objfile_to_front): Remove.
298 * objfiles.c (objfile_to_front): Remove.
299
830f7a41
TT
3002013-12-06 Tom Tromey <tromey@redhat.com>
301
302 * minsyms.c (get_symbol_leading_char): Remove unnecessary
303 declaration.
304
e1b06ae2
TT
3052013-12-06 Tom Tromey <tromey@redhat.com>
306
307 * psympriv.h (struct partial_symtab) <user>: Move earlier.
308
2b69941d
TT
3092013-12-06 Tom Tromey <tromey@redhat.com>
310
311 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
312 (list_command): Likewise.
313
bf121224
TT
3142013-12-06 Tom Tromey <tromey@redhat.com>
315
316 * psymtab.c (allocate_psymtab): Put the filename in the filename
317 bcache.
318
8e96694e
TT
3192013-12-06 Tom Tromey <tromey@redhat.com>
320
321 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
322 * symtab.h (struct symtab) <dirname>: Now const.
323
21ea9eec
TT
3242013-12-06 Tom Tromey <tromey@redhat.com>
325
326 * symfile.c (allocate_symtab): Remove cast.
327 * symtab.h (struct symtab) <filename>: Now const.
328
37fbcad0
TT
3292013-12-06 Tom Tromey <tromey@redhat.com>
330
331 * break-catch-throw.c (fetch_probe_arguments): Use
332 get_probe_argument_count and evaluate_probe_argument.
333 * elfread.c (elf_get_probe_argument_count)
334 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
335 (elf_compile_to_ax): Remove.
336 (elf_probe_fns): Update.
337 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
338 (evaluate_probe_argument): Call method on probe, not via sym
339 functions.
340 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
341 evaluate_probe_argument.
342 (compile_probe_arg): Use get_probe_argument_count. Call method on
343 probe, not via sym functions.
344 * symfile-debug.c (debug_sym_get_probe_argument_count)
345 (debug_can_evaluate_probe_arguments)
346 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
347 Remove.
348 (debug_sym_probe_fns): Remove.
349 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
350 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
351 sym_compile_to_ax>: Remove fields.
352
8662d513
PM
3532013-12-06 Pierre Muller <muller@sourceware.org>
354
355 Fix completion for pascal language.
356 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
357 (exp : field_exp name COMPLETE): New rule.
358 (exp : SIZEOF): Set correct current_type.
359 (last_was_structop): Remove static variable.
360 (yylex): Remove saw_structop local variable.
361 Adapt code to removal of variables above.
362
da361ebd
JB
3632013-12-06 Joel Brobecker <brobecker@adacore.com>
364
365 * frame.c (get_prev_frame_1): Delete variable "this_id".
366 Replace its use by a call to get_frame_id.
367
6ed1ff02
AG
3682013-12-05 Anthony Green <green@moxielogic.com>
369
370 * moxie-tdep.c (moxie_software_single_step): New function.
371 (INST2OFFSET): New helper macro.
372 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
373 (moxie_process_readu): Move this up in the file.
374
39d7494a 3752013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
376
377 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
378
170d82c9
JB
3792013-12-05 Joel Brobecker <brobecker@adacore.com>
380 Tristan Gingold <gingold@adacore.com>
381
382 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
383 Accept version 2. Ignore operations using opcode 6.
384
a5e619ec
JB
3852013-12-05 Joel Brobecker <brobecker@adacore.com>
386
387 * ada-lex.l (find_dot_all): Fix coding style violations.
388
ca8941bb
WT
3892013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
390
391 * NEWS: Add section for Intel(R) Architecture Instructions
392 Extesions mentioning MPX.
393
7fb1b8b1
JB
3942013-12-03 Joel Brobecker <brobecker@adacore.com>
395
396 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
397
849f2b52
JB
3982013-12-03 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
401 when parse_exp_1 threw an error. Add comment.
402
4e35e808
JB
4032013-12-03 Joel Brobecker <brobecker@adacore.com>
404
405 * NEWS: Mention "-list-features" in the entry documenting
406 the support for the "--language" option.
407
caf26be9
SB
4082013-12-03 Tom Tromey <tromey@redhat.com>
409 Jan Kratochvil <jan.kratochvil@redhat.com>
410 Doug Evans <dje@google.com>
411 Samuel Bronson <naesten@gmail.com>
412
413 Bring back gdb-add-index as a contrib script.
414 * contrib/gdb-add-index.sh: New file.
415 * NEWS: Note the addition.
416
34a4fb3a
SB
4172013-12-03 Samuel Bronson <naesten@gmail.com>
418
419 * MAINTAINERS (Write After Approval): Add myself to the list.
420
688981c9
JB
4212013-12-03 Joel Brobecker <brobecker@adacore.com>
422
423 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
424
c1244769
JB
4252013-12-03 Joel Brobecker <brobecker@adacore.com>
426
427 * mi/mi-main.c: Remove trailing spaces throughout.
428
2ea126fa
JB
4292013-12-03 Pedro Alves <palves@redhat.com>
430 Joel Brobecker <brobecker@adacore.com>
431
432 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
433 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
434 of a regular error when the GDB/MI command does not exist.
435 * mi/mi-main.c (mi_cmd_list_features): Add
436 "undefined-command-error-code".
437 (mi_print_exception): Print an "undefined-command"
438 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
439 * NEWS: Add entry documenting the new "code" variable in
440 "^error" result records.
441
6b7cbff1
JB
4422013-12-03 Joel Brobecker <brobecker@adacore.com>
443
444 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
445 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
446 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
447 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
448 field to output of "-list-features".
449
450 * NEWS: Add entry for new -info-gdb-mi-command.
451
04affae3
JK
4522013-12-02 Doug Evans <dje@google.com>
453 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 * objfiles.c (allocate_objfile): Save original_name as an absolute
456 path.
457 * objfiles.h (struct objfile): Expand comment on original_name.
458 * source.c (openp): Call gdb_abspath.
459 * utils.c (gdb_abspath): New function.
460 * utils.h (gdb_abspath): Declare.
461
aee4bf85
PA
4622013-12-02 Pedro Alves <palves@redhat.com>
463
464 * dcache.c (dcache_read_line): Use target_read_raw_memory.
465 * target.c (target_read_raw_memory): New function.
466 (target_read_stack, target_write_memory, target_write_raw_memory):
467 Update comment.
468 (target_read_code): Add comment.
469 * target.h (target_read_raw_memory): Declare.
470
840207d8
PA
4712013-12-02 Pedro Alves <palves@redhat.com>
472
473 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
474 unconditionally.
475
0fdf84ca
PA
4762013-12-02 Pedro Alves <pedro@codesourcery.com>
477 Maciej W. Rozycki <macro@codesourcery.com>
478
479 * remote.c (putpkt_for_catch_errors): Remove function.
480 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
481 gracefully.
482
62972e0b
YQ
4832013-12-02 Pedro Alves <palves@redhat.com>
484
485 PR remote/15974
486 * remote-notif.c (handle_notification): Return early if no
487 notification is found.
488
f9b0da3d
JB
4892013-12-02 Joel Brobecker <brobecker@adacore.com>
490
491 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
492 preprocessor check.
493
2dd4d422
JB
4942013-12-02 Joel Brobecker <brobecker@adacore.com>
495
496 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
497
e72eff80
JB
4982013-12-02 Joel Brobecker <brobecker@adacore.com>
499
500 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
501 * ctf.c (ctf_start): Remove obsolete comment.
502
844ad005
JB
5032013-12-02 Joel Brobecker <brobecker@adacore.com>
504
505 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
506
5b2bf947
DE
5072013-11-30 Doug Evans <xdje42@gmail.com>
508
509 * auto-load.h (script_language): New members name, auto_load_enabled.
510 Add missing comments on struct members.
511 (auto_load_objfile_script): Delete.
512 * auto-load.c: #include "cli/cli-cmds.h".
513 (auto_load_gdb_scripts_enabled): New function.
514 (script_language_gdb): Update, add new members.
515 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
516 and call to maybe_add_script moved to caller.
517 (auto_load_objfile_script_1): Auto-load safe-checking and
518 call to maybe_add_script moved here.
519 (auto_load_objfile_script): Make static. Early exit if support for
520 scripting language hasn't been compiled in, or auto-loading has been
521 disabled.
522 (source_section_scripts): Argument "source_name" renamed to
523 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
524 with section_name. Skip loading script if support for scripting
525 language hasn't been compiled in, or auto-loading has been disabled.
526 Call language->source_script_for_objfile instead of calling
527 source_python_script_for_objfile directly.
528 (load_auto_scripts_for_objfile): Update.
529 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
530 (gdbpy_load_auto_script_for_objfile): Delete.
531 (auto_load_python_scripts_enabled): New function.
532 (script_language_python): Update, add new members.
533 (gdbpy_script_language_defn): New function.
534 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
535 (gdbpy_script_language_defn): Declare.
536
537 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
538 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
539 (source_section_scripts): Moved here from py-auto-load.c.
540 (auto_load_section_scripts): Ditto.
541 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
542 auto-load.c, renamed AUTO_SECTION_NAME.
543 (source_section_scripts, auto_load_section_scripts): Moved to
544 auto-load.c.
545
d9c43928
YQ
5462013-11-30 Yao Qi <yao@codesourcery.com>
547
548 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
549
e7b12392
SDJ
5502013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
551
552 * gdbarch.sh: Remove include of "gdb_string.h", replace by
553 <string.h>.
554
256458bc
DE
5552013-11-29 Doug Evans <xdje42@gmail.com>
556
7b2d3abf
DE
557 * python/py-auto-load.c (source_section_scripts): Move comment to
558 more relevant location.
559
256458bc
DE
560 Whitespace cleanup.
561 * python/py-breakpoint.c: Remove trailing whitespace.
562 * python/py-cmd.c: Ditto.
563 * python/py-evts.c: Ditto.
564 * python/py-finishbreakpoint.c: Ditto.
565 * python/py-frame.c: Ditto.
566 * python/py-function.c: Ditto.
567 * python/py-inferior.c: Ditto.
568 * python/py-infthread.c: Ditto.
569 * python/py-param.c: Ditto.
570 * python/py-prettyprint.c: Ditto.
571 * python/py-symbol.c: Ditto.
572 * python/py-type.c: Ditto.
573 * python/py-utils.c: Ditto.
574 * python/py-value.c: Ditto.
575 * python/python-internal.h: Ditto.
576 * python/python.c: Ditto.
577
20e1ca3b
PA
5782013-11-29 Pedro Alves <palves@redhat.com>
579
580 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
581
8b4f3082
PA
5822013-11-29 Pedro Alves <palves@redhat.com>
583
584 * breakpoint.c (build_target_condition_list): Release previous
585 conditions.
586 (build_target_command_list): Release previous commands.
587 (bp_location_dtor): Release target conditions and commands.
588 * remote.c (remote_add_target_side_condition): Don't release
589 conditions.
590 (remote_add_target_side_commands): Don't release commands.
591
9f713294
YQ
5922013-11-29 Yao Qi <yao@codesourcery.com>
593 Pedro Alves <palves@redhat.com>
594
595 * dcache.c (dcache_read_line): Use current_target.beneath
596 instead of &current_target.
597 * target.c (memory_xfer_partial_1): Factor code out to ...
598 (raw_memory_xfer_partial): ... it. New function.
599 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
600 is TARGET_OBJECT_RAW_MEMORY.
601
4cb0213d
DE
6022013-11-28 Doug Evans <xdje42@gmail.com>
603
604 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
605 breakpoint_object. All uses updated.
606 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
607 breakpoint_object. All uses updated.
608 * python.c (*): All uses of breakpoint_object updated.
609 * python.h (*): All uses of breakpoint_object updated.
610 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
611 * python/py-finishbreakpoint.c (*): Ditto.
612
d344e670
DE
6132013-11-28 Doug Evans <xdje42@gmail.com>
614
d729aae0 615 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
616 * configure: Regenerate.
617
eebc056c
AB
6182013-11-28 Andrew Burgess <aburgess@broadcom.com>
619 Pedro Alves <palves@redhat.com>
620
621 * valprint.c (value_check_printable): If the value is entirely
622 unavailable, print a single "<unavailable>" instead of printing
623 all subfields.
624
a7300869
PA
6252013-11-28 Pedro Alves <palves@redhat.com>
626
627 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
628 Add "set debug frame" output.
629 (frame_stop_reason_symbol_string): New function.
630
50fd528a
PA
6312013-11-28 Pedro Alves <palves@redhat.com>
632
633 * frame-unwind.c (default_frame_unwind_stop_reason): Return
634 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
635 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
636
5de51581
PA
6372013-11-28 Pedro Alves <palves@redhat.com>
638
639 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
640 set the unwind stop reason to UNWIND_OUTERMOST, not
641 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
642
739cb10c
PA
6432013-11-28 Pedro Alves <palves@redhat.com>
644
645 * frame.c (frame_unwind_register): Say the register was "not
646 saved" instead of "optimized out".
647
514c0aa6 6482013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 649
514c0aa6 650 PR 16152
92a021de 651 * configure: Rebuild.
514c0aa6 652 * configure.ac: Tighten cygwin detection check.
92a021de 653
908fa2aa
PA
6542013-11-27 Pedro Alves <palves@redhat.com>
655
656 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
657 register in the previous frame's arch.
658
6bd273ae
PA
6592013-11-27 Pedro Alves <palves@redhat.com>
660
661 * frame-unwind.c (frame_unwind_got_optimized): Return
662 an lval_register value instead of a not_lval value.
663
f6c01fc5
AB
6642013-11-27 Andrew Burgess <aburgess@broadcom.com>
665
666 * frame.c: Include "valprint.h".
667 (frame_unwind_register_value): Use value_optimized_out.
668 * value.c (value_fetch_lazy): Likewise.
669
4f14910f
AB
6702013-11-26 Andrew Burgess <aburgess@broadcom.com>
671
672 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
673
15859968
TT
6742013-11-26 Tom Tromey <tromey@redhat.com>
675
676 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
677 2013-11-22.
678
244ec0da
WT
6792013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
680
681 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
682 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
683 (HAS_MPX): New macro.
684 (HAS_AVX): New macro.
685 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
686
f7e3ecae
KS
6872013-11-25 Keith Seitz <keiths@redhat.com>
688
689 PR c++/14819
690 * c-exp.y (classify_inner_name): If no matching symbol was
691 found, try looking up the token as a base class.
692 Likewise if a constructor was found.
693 * cp-namespace.c (find_type_baseclass_by_name): New function.
694 * cp-support.h (find_type_baseclass_by_name): Declare.
695 * valops.c (value_struct_elt_for_reference): If we get
696 a non-static field, try to get a value based on the
697 current instance, if any.
698
283f7163
YQ
6992013-11-24 Yao Qi <yao@codesourcery.com>
700
701 * disasm.c (dis_asm_read_memory): Call target_read_code
702 instead of target_read_memory.
703
29453a14
YQ
7042013-11-24 Yao Qi <yao@codesourcery.com>
705
706 * NEWS: Add note on new "set code-cache" option.
707 * target-dcache.c (code_cache_enabled_1): New variable.
708 (code_cache_enabled): New variable.
709 (show_code_cache, set_code_cache): New function.
710 (code_cache_enabled_p): New function.
711 (_initialize_target_dcache): Register command.
712 * target-dcache.h (code_cache_enabled_p): Declare.
713 * target.c (memory_xfer_partial_1):Handle
714 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
715 (target_read_code): New function.
716 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
717 New.
718 (target_read_code): Declare.
719
0fb14d8f
YQ
7202013-11-24 Yao Qi <yao@codesourcery.com>
721
722 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
723 (stack_cache_enabled_1): ... this. New variable.
724 (stack_cache_enabled_p): Rename to ...
725 (stack_cache_enabled): ... this. New variable.
726 (set_stack_cache_enabled_p): Rename to ...
727 (set_stack_cache): ... this. Update caller.
728 (show_stack_cache_enabled_p): Rename to ...
729 (show_stack_cache): ... this. Update caller.
730 (stack_cache_enabled): Rename to ...
731 (stack_cache_enabled_p): ... this. Update caller.
732 (_initialize_target_dcache): Replace "data cache" with
733 "target memory cache".
734 * target-dcache.h (stack_cache_enabled): Remove declaration.
735 (stack_cache_enabled_p): Add declaration.
736
a12361b9
DE
7372013-11-23 Doug Evans <xdje42@gmail.com>
738
739 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
740 superfluous.
741
1e1d6920
DE
7422013-11-23 Doug Evans <xdje42@gmail.com>
743
744 * python/py-frame.c (frapy_block): Fix error message text.
745
1e9c71b8
DE
7462013-11-23 Doug Evans <xdje42@gmail.com>
747
748 * cli/cli-script.c (multi_line_command_p): New function.
749 (recurse_read_control_structure, read_command_lines_1): Call it.
750 (execute_control_command): Consistently have a blank line between
751 each case.
752
f380848e
SA
7532013-11-22 Sterling Augustine <saugustine@google.com>
754
38e1f2a7 755 PR gdb/16196:
f380848e
SA
756 * valprint.c (read_string): Set new variable fetchlen based on
757 fetchlimit and size. Use it in call to partial_memory_read.
758 Update comment.
759
da2b2fdf
TT
7602013-11-22 Tom Tromey <tromey@redhat.com>
761
762 PR backtrace/16155:
763 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
764 the return address column is unspecified.
765
6eeee81c
TT
7662013-11-22 Tom Tromey <tromey@redhat.com>
767 Pedro Alves <palves@redhat.com>
768
769 PR backtrace/16155
770 * value.c (value_fetch_lazy): Internal error if
771 get_frame_register_value returns the same register.
772
194cca41
PA
7732013-11-22 Pedro Alves <palves@redhat.com>
774 Tom Tromey <tromey@redhat.com>
775
776 * frame.c (frame_stash_add): Now returns whether a frame with the
777 same ID was already known.
778 (compute_frame_id): New function, factored out from get_frame_id.
779 (get_frame_id): No longer lazilly compute the frame id here.
780 (get_prev_frame_if_no_cycle): New function. Detects wider stack
781 cycles.
782 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
783 and checking for stack cycles here.
784
33f8fe58
PA
7852013-11-22 Pedro Alves <palves@redhat.com>
786
787 PR 16155
788 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
789 this frame and the new previous frame, not between this frame and
790 the next frame.
791
1ec56e88
PA
7922013-11-22 Pedro Alves <palves@redhat.com>
793
794 PR 16155
795 * dwarf2-frame.c (struct dwarf2_frame_cache)
796 <checked_tailcall_bottom, entry_cfa_sp_offset,
797 entry_cfa_sp_offset_p>: New fields.
798 (dwarf2_frame_cache): Adjust to use the new cache fields instead
799 of locals. Don't call dwarf2_tailcall_sniffer_first here.
800 (dwarf2_frame_prev_register): Call it here, but only once.
801
ca092b61
DE
8022013-11-21 Doug Evans <xdje42@gmail.com>
803
804 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
805 (type_equality_entry): Move here from python/py-type.c.
806 (type_equality_entry_d): Ditto.
807 (compare_maybe_null_strings, check_types_equal): Ditto.
808 (check_types_worklist, types_deeply_equal): Ditto.
809 * gdbtypes.h (types_deeply_equal): Declare.
810 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
811 (typy_richcompare): Update.
812
7c245c24
JB
8132013-11-20 Joel Brobecker <brobecker@adacore.com>
814
815 * python/py-value.c (is_intlike): Delete.
816 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
817 by use of is_integral_type.
818 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
819 by use of is_integral_type and check for TYPE_CODE_PTR.
820
8986e351
TT
8212013-11-20 Tom Tromey <tromey@redhat.com>
822
823 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
824 strerror module.
825 * gnulib/aclocal.m4: Update.
826 * gnulib/config.in: Update.
827 * gnulib/configure: Update.
828 * gnulib/import/Makefile.am: Update.
829 * gnulib/import/Makefile.in: Update.
830 * gnulib/import/errno.in.h: Remove.
831 * gnulib/import/intprops.h: Remove.
832 * gnulib/import/m4/errno_h.m4: Remove.
833 * gnulib/import/m4/gnulib-cache.m4: Update.
834 * gnulib/import/m4/gnulib-comp.m4: Update.
835 * gnulib/import/m4/strerror.m4: Remove.
836 * gnulib/import/m4/sys_socket_h.m4: Remove.
837 * gnulib/import/strerror-override.c: Remove.
838 * gnulib/import/strerror-override.h: Remove.
839 * gnulib/import/strerror.c: Remove.
840 * gnulib/update-gnulib.sh: Update.
841
6b1141e3
YQ
8422013-11-20 Yao Qi <yao@codesourcery.com>
843
844 * target-dcache.c (target_dcache_get_or_init): Call
845 set_address_space_data if 'dcache' is NULL.
846
60650f2e
WT
8472013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
848
849 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
850
09748966
WT
8512013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
852
853 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
854 * data-directory/Makefile.in: Copy bond_register.py to the right path
855 to be initialized at gdb startup.
09748966 856
e43e105e
WT
8572013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
858
859 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
860 Add MPX registers.
861 (amd64_linux_read_description): Add initialization for MPX and
862 AVX independently.
863 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
864 (amd64_linux_gregset_reg_offset): Add MPX registers.
865 (amd64_linux_core_read_description): Add initialization for MPX
866 registers.
867 (_initialize_amd64_linux_tdep): Initialize MPX targets.
868 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
869 register on the list.
870 (tdesc_amd64_mpx_linux) Add new target for MPX.
871 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
872 (amd64_mpx_names): MPX register names.
873 (amd64_init_abi): Add MPX register while initializing the ABI.
874 (_initialize_amd64_tdep): Initialize MPX targets.
875 * amd64-tdep.h (amd64_regnum): Add MPX registers.
876 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
877
1dbcd68c
WT
8782013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
879
880 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
881 registers on the range of registers to be read from
882 xsave buffer.
883 (i386_linux_read_description): Add case for MPX.
884 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
885 (i386_linux_gregset_reg_offset): Add MPX registers.
886 (i386_linux_core_read_description): Initialize also MPX.
887 (_initialize_i386_linux_tdep): Add mpx initialization.
888 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
889 mpx_register_names.
890 (i386_regnum): Add MPX registers.
891 (I386_MPX_NUM_REGS): New macro.
892 (i386_bnd_regnum_p): New function.
893 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
894 number of registers to be the number of BNDSTATUS.
895 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
896 * i386-tdep.c: Include features/i386/i386-mpx.c.
897 (i386_mpx_names): Add MPX register names array.
898 (i386_bnd_names): Add bnd pseudo register names array.
899 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
900 registers.
901 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
902 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
903 registers.
904 (i386_bnd_type): New function.
905 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
906 register types.
907 (i386_pseudo_register_read_into_value): Add bnd case.
908 (i386_pseudo_register_write): Add bnd pseudo registers.
909 (i386_register_reggroup_p): Add MPX register to the group all.
910 (i386_validate_tdesc_p): Add MPX to the target description
911 validation.
912 (i386_pseudo_register_name): Add bnd pseudo registers.
913 (i386_gdbarch_init): Add MPX for architecture initialization.
914 (_initia_initialize_i386_tdep): Add mpx initialization.
915 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
916 XSAVE buffer.
917 (XSAVE_MPX_ADDR): New macro.
918 (i387_supply_xsave): Add MPX case.
919 (i387_collect_xsave): Add MPX case.
920 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
921 (I387_BNDCFGU_REGNUM): New macro.
922 (I387_NUM_MPX_REGS): New macro.
923 (I387_NUM_BND_REGS): New macro.
924 (I387_NUM_MPX_CTRL_REGS): New macro.
925 (I387_MPXEND_REGNUM): New macro.
926 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
927 (I386_XSTATE_BNDCFG): Likewise.
928 (I386_XSTATE_MPX_MASK): Likewise.
929 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
930 (I386_XSTATE_BNDREGS_SIZE): New macro.
931 (I386_XSTATE_BNDCFG_SIZE): Likewise.
932 (I386_XSTATE_SIZE): Adapt for MPX.
933 (I386_XSTATE_MAX_SIZE): Likewise.
934
ccc42043
WT
9352013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
936
937 * features/i386/Makefile: Adapts for using MPX registers.
938 * features/i386/32bit-mpx.xml: New file.
939 * features/i386/64bit-mpx.xml: Likewise.
940 * features/i386/amd64-mpx-linux.c: Likewise.
941 * features/i386/amd64-mpx-linux.xml: Likewise.
942 * features/i386/amd64-mpx.c: Likewise.
943 * features/i386/amd64-mpx.xml: Likewise.
944 * features/i386/i386-mpx-linux.c: Likewise.
945 * features/i386/i386-mpx-linux.xml: Likewise.
946 * features/i386/i386-mpx.c: Likewise.
947 * features/i386/i386-mpx.xml: Likewise.
948 * regformats/i386/amd64-mpx-linux.dat: New file.
949 * regformats/i386/amd64-mpx.dat: Likewise.
950 * regformats/i386/i386-mpx-linux.dat: Likewise.
951 * regformats/i386/i386-mpx.dat: Likewise.
952
57803a3c
WT
9532013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
954
955 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
956 Modified logic of creating a bitfield to be in sync with
957 tdesc_gdb_type.
958
2b59118e
WN
9592013-11-20 Will Newton <will.newton@linaro.org>
960
961 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
962 error message.
963
b26dfc9a
YQ
9642013-11-20 Yao Qi <yao@codesourcery.com>
965
966 * progspace.h (struct address_space_data): Declare.
967 * target-dcache.c: Include "progspace.h".
968 (target_dache): Remove.
969 (target_dcache_aspace_key): New.
970 (target_dcache_cleanup): New function.
971 (target_dcache_init_p): Get data through
972 target_dcache_aspace_key.
973 (target_dcache_invalidate): Likewise.
974 (target_dcache_get): Likewise.
975 (target_dcache_get_or_init): Likewise.
976 (_initialize_target_dcache): Initialize
977 target_dcache_aspace_key.
978
3a8356ff
YQ
9792013-11-20 Yao Qi <yao@codesourcery.com>
980
981 * progspace.c (struct address_space): Update comments.
982 <REGISTRY_FIELDS>: New fields.
983 DEFINE_REGISTRY for address_space.
984 (new_address_space): Call address_space_alloc_data.
985 (free_address_space): Call address_space_free_data.
986 * progspace.h: Use DECLARE_REGISTRY.
987
68c765e2
YQ
9882013-11-20 Yao Qi <yao@codesourcery.com>
989
990 * Makefile.in (SFILES):Add target-dcache.c.
991 (HFILES_NO_SRCDIR): Add target-dcache.h.
992 (COMMON_OBS): Add target-dcache.o.
993 * dcache.c: Remove inclusion to "target.h". Include
994 "target-dcache.h".
995 * memattr.c: Include "target-dcache.h".
996 * top.c: Likewise.
997 * tracepoint.c: Likewise.
998 * target.c: (stack_cache_enabled_p_1): Move to
999 target-dcache.c.
1000 (stack_cache_enabled_p): Likewise.
1001 (set_stack_cache_enabled_p): Likewise.
1002 (show_stack_cache_enabled_p): Likewise.
1003 (target_dcache, target_dcache_init_p): Likewise.
1004 (target_dcache_invalidate): Likewise.
1005 (target_dcache_get, target_dcache_get_or_init): Likewise.
1006 (memory_xfer_partial_1): Call function stack_cache_enabled.
1007 (initialize_target): Move code to target-dcache.c.
1008 * target.h (target_dcache_invalidate): Move to
1009 target-dcache.h.
1010 (target_dcache_get): Likewise.
1011 * target-dcache.c: New.
1012 * target-dcache.h: New.
1013
f2de9785
YQ
10142013-11-20 Yao Qi <yao@codesourcery.com>
1015
1016 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1017 it is initialized.
1018
2a2f9fe4
YQ
10192013-11-20 Yao Qi <yao@codesourcery.com>
1020
1021 * dcache.c (last_cache): Remove.
1022 (dcache_free, dcache_init): Update.
1023 (dcache_update):
1024 (dcache_print_line): Add parameter 'dcache'. Replace
1025 'target_dcache' with 'dcache'.
1026 (dcache_info): Move code to dcache_info_1. Call
1027 'dcache_info_1'.
1028 (dcache_info_1): New function.
1029 (set_dcache_size): Call target_dcache_invalidate.
1030 (set_dcache_line_size): Call target_dcache_invalidate.
1031 * target.c (target_dcache_init_p): New function.
1032 (target_dcache_invalidate): Check target_dcache_init_p first.
1033 (target_dcache_get, target_dcache_get_or_init): New function.
1034 (memory_xfer_partial_1): Adjust.
1035 (initialize_target): Don't initialize 'target_dcache'.
1036 * target.h (struct dcache_struct): Declare.
1037 (target_dcache_get): Declare.
1038
8ab91b96
YQ
10392013-11-19 Yao Qi <yao@codesourcery.com>
1040
1041 * varobj.c (varobj_get_type): Fix typo.
1042
df7752b0
JB
10432013-11-19 Joel Brobecker <brobecker@adacore.com>
1044
1045 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1046
4a0a886a
JB
10472013-11-19 Joel Brobecker <brobecker@adacore.com>
1048
1049 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1050 "stat.h".
1051
53ce3c39
TT
10522013-11-18 Tom Tromey <tromey@redhat.com>
1053
1054 * common/gdb_stat.h: Remove.
1055 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1056 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1057 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1058 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1059 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1060 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1061 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1062 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1063 * exec.c: Use sys/stat.h, not gdb_stat.h.
1064 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1065 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1066 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1067 * jit.c: Use sys/stat.h, not gdb_stat.h.
1068 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1069 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1070 * main.c: Use sys/stat.h, not gdb_stat.h.
1071 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1072 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1073 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1074 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1075 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1076 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1077 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1078 * remote.c: Use sys/stat.h, not gdb_stat.h.
1079 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1080 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1081 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1082 * source.c: Use sys/stat.h, not gdb_stat.h.
1083 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1084 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1085 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1086 * top.c: Use sys/stat.h, not gdb_stat.h.
1087 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1088
09607c9e
TT
10892013-11-18 Tom Tromey <tromey@redhat.com>
1090
1091 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1092 sys_stat.
1093 * gnulib/aclocal.m4: Update.
1094 * gnulib/config.in: Update.
1095 * gnulib/configure: Update.
1096 * gnulib/import/Makefile.am: Update.
1097 * gnulib/import/Makefile.in: Update.
1098 * gnulib/import/m4/gnulib-cache.m4: Update.
1099 * gnulib/import/m4/gnulib-comp.m4: Update.
1100 * gnulib/import/m4/sys_stat_h.m4: New.
1101 * gnulib/import/m4/time_h.m4: New.
1102 * gnulib/import/sys_stat.in.h: New.
1103 * gnulib/import/time.in.h: New.
1104
4ff70b84
TT
11052013-11-18 Tom Tromey <tromey@redhat.com>
1106
1107 * configure: Rebuild.
1108 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1109
3447c057
TT
11102013-11-18 Tom Tromey <tromey@redhat.com>
1111
1112 * configure: Rebuild.
1113 * configure.ac: Don't check for unistd.h.
1114
0080a2f6
TT
11152013-11-18 Tom Tromey <tromey@redhat.com>
1116
1117 * configure: Rebuild.
1118 * configure.ac: Don't check for stdlib.h
1119 * defs.h: Include stdlib.h unconditionally.
1120
161d1bec
TT
11212013-11-18 Tom Tromey <tromey@redhat.com>
1122
1123 * config.in: Rebuild.
1124 * configure: Rebuild.
1125 * configure.ac: Don't check for stddef.h.
1126 * defs.h: Unconditionally include stddef.h. Remove duplicate
1127 inclusion.
1128
2978b111
TT
11292013-11-18 Tom Tromey <tromey@redhat.com>
1130
1131 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1132 * common/gdb_dirent.h: Remove.
1133 * common/filestuff.c: Use dirent.h.
1134 * common/linux-osdata.c: Use dirent.h.
1135 (NAMELEN): Define.
1136 * config.in: Rebuild.
1137 * configure: Rebuild.
1138 * configure.ac: Don't use AC_HEADER_DIRENT.
1139 * linux-fork.c: Use dirent.h
1140 * linux-nat.c: Use dirent.h.
1141 * nto-procfs.c: Use dirent.h.
1142 * procfs.c: Use dirent.h.
1143
e26b6bb0
TT
11442013-11-18 Tom Tromey <tromey@redhat.com>
1145
1146 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1147 * gnulib/aclocal.m4: Update.
1148 * gnulib/config.in: Update.
1149 * gnulib/configure: Update.
1150 * gnulib/import/Makefile.am: Update.
1151 * gnulib/import/Makefile.in: Update.
1152 * gnulib/import/dirent.in.h: New.
1153 * gnulib/import/m4/dirent_h.m4: New.
1154 * gnulib/import/m4/gnulib-cache.m4: Update.
1155 * gnulib/import/m4/gnulib-comp.m4: Update.
1156
a3d08894
TT
11572013-11-18 Tom Tromey <tromey@redhat.com>
1158
1159 * configure: Rebuild.
1160 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1161 strings.h.
1162
0e9f083f
TT
11632013-11-18 Tom Tromey <tromey@redhat.com>
1164
1165 * common/gdb_string.h: Remove.
1166 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1167 * ada-exp.y: Use string.h, not gdb_string.h.
1168 * ada-lang.c: Use string.h, not gdb_string.h.
1169 * ada-lex.l: Use string.h, not gdb_string.h.
1170 * ada-typeprint.c: Use string.h, not gdb_string.h.
1171 * ada-valprint.c: Use string.h, not gdb_string.h.
1172 * aix-thread.c: Use string.h, not gdb_string.h.
1173 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1174 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1175 * alpha-nat.c: Use string.h, not gdb_string.h.
1176 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1177 * alpha-tdep.c: Use string.h, not gdb_string.h.
1178 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1179 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1180 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1181 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1182 * amd64-nat.c: Use string.h, not gdb_string.h.
1183 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1184 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1185 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1186 * arch-utils.c: Use string.h, not gdb_string.h.
1187 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1188 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1189 * arm-tdep.c: Use string.h, not gdb_string.h.
1190 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1191 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1192 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1193 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1194 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1195 * avr-tdep.c: Use string.h, not gdb_string.h.
1196 * ax-gdb.c: Use string.h, not gdb_string.h.
1197 * ax-general.c: Use string.h, not gdb_string.h.
1198 * bcache.c: Use string.h, not gdb_string.h.
1199 * bfin-tdep.c: Use string.h, not gdb_string.h.
1200 * breakpoint.c: Use string.h, not gdb_string.h.
1201 * build-id.c: Use string.h, not gdb_string.h.
1202 * buildsym.c: Use string.h, not gdb_string.h.
1203 * c-exp.y: Use string.h, not gdb_string.h.
1204 * c-lang.c: Use string.h, not gdb_string.h.
1205 * c-typeprint.c: Use string.h, not gdb_string.h.
1206 * c-valprint.c: Use string.h, not gdb_string.h.
1207 * charset.c: Use string.h, not gdb_string.h.
1208 * cli-out.c: Use string.h, not gdb_string.h.
1209 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1210 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1211 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1212 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1213 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1214 * cli/cli-script.c: Use string.h, not gdb_string.h.
1215 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1216 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1217 * coffread.c: Use string.h, not gdb_string.h.
1218 * common/common-utils.c: Use string.h, not gdb_string.h.
1219 * common/filestuff.c: Use string.h, not gdb_string.h.
1220 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1221 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1222 * common/signals.c: Use string.h, not gdb_string.h.
1223 * common/vec.h: Use string.h, not gdb_string.h.
1224 * core-regset.c: Use string.h, not gdb_string.h.
1225 * corefile.c: Use string.h, not gdb_string.h.
1226 * corelow.c: Use string.h, not gdb_string.h.
1227 * cp-abi.c: Use string.h, not gdb_string.h.
1228 * cp-support.c: Use string.h, not gdb_string.h.
1229 * cp-valprint.c: Use string.h, not gdb_string.h.
1230 * cris-tdep.c: Use string.h, not gdb_string.h.
1231 * d-lang.c: Use string.h, not gdb_string.h.
1232 * dbxread.c: Use string.h, not gdb_string.h.
1233 * dcache.c: Use string.h, not gdb_string.h.
1234 * demangle.c: Use string.h, not gdb_string.h.
1235 * dicos-tdep.c: Use string.h, not gdb_string.h.
1236 * disasm.c: Use string.h, not gdb_string.h.
1237 * doublest.c: Use string.h, not gdb_string.h.
1238 * dsrec.c: Use string.h, not gdb_string.h.
1239 * dummy-frame.c: Use string.h, not gdb_string.h.
1240 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1241 * dwarf2loc.c: Use string.h, not gdb_string.h.
1242 * dwarf2read.c: Use string.h, not gdb_string.h.
1243 * elfread.c: Use string.h, not gdb_string.h.
1244 * environ.c: Use string.h, not gdb_string.h.
1245 * eval.c: Use string.h, not gdb_string.h.
1246 * event-loop.c: Use string.h, not gdb_string.h.
1247 * exceptions.c: Use string.h, not gdb_string.h.
1248 * exec.c: Use string.h, not gdb_string.h.
1249 * expprint.c: Use string.h, not gdb_string.h.
1250 * f-exp.y: Use string.h, not gdb_string.h.
1251 * f-lang.c: Use string.h, not gdb_string.h.
1252 * f-typeprint.c: Use string.h, not gdb_string.h.
1253 * f-valprint.c: Use string.h, not gdb_string.h.
1254 * fbsd-nat.c: Use string.h, not gdb_string.h.
1255 * findcmd.c: Use string.h, not gdb_string.h.
1256 * findvar.c: Use string.h, not gdb_string.h.
1257 * fork-child.c: Use string.h, not gdb_string.h.
1258 * frame.c: Use string.h, not gdb_string.h.
1259 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1260 * frv-tdep.c: Use string.h, not gdb_string.h.
1261 * gdb.c: Use string.h, not gdb_string.h.
1262 * gdb_bfd.c: Use string.h, not gdb_string.h.
1263 * gdbarch.c: Use string.h, not gdb_string.h.
1264 * gdbtypes.c: Use string.h, not gdb_string.h.
1265 * gnu-nat.c: Use string.h, not gdb_string.h.
1266 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1267 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1268 * go-exp.y: Use string.h, not gdb_string.h.
1269 * go-lang.c: Use string.h, not gdb_string.h.
1270 * go32-nat.c: Use string.h, not gdb_string.h.
1271 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1272 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1273 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1274 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1275 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1276 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1277 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1278 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1279 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1280 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1281 * i386-tdep.c: Use string.h, not gdb_string.h.
1282 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1283 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1284 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1285 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1286 * i387-tdep.c: Use string.h, not gdb_string.h.
1287 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1288 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1289 * inf-child.c: Use string.h, not gdb_string.h.
1290 * inf-ptrace.c: Use string.h, not gdb_string.h.
1291 * inf-ttrace.c: Use string.h, not gdb_string.h.
1292 * infcall.c: Use string.h, not gdb_string.h.
1293 * infcmd.c: Use string.h, not gdb_string.h.
1294 * inflow.c: Use string.h, not gdb_string.h.
1295 * infrun.c: Use string.h, not gdb_string.h.
1296 * interps.c: Use string.h, not gdb_string.h.
1297 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1298 * irix5-nat.c: Use string.h, not gdb_string.h.
1299 * jv-exp.y: Use string.h, not gdb_string.h.
1300 * jv-lang.c: Use string.h, not gdb_string.h.
1301 * jv-typeprint.c: Use string.h, not gdb_string.h.
1302 * jv-valprint.c: Use string.h, not gdb_string.h.
1303 * language.c: Use string.h, not gdb_string.h.
1304 * linux-fork.c: Use string.h, not gdb_string.h.
1305 * linux-nat.c: Use string.h, not gdb_string.h.
1306 * lm32-tdep.c: Use string.h, not gdb_string.h.
1307 * m2-exp.y: Use string.h, not gdb_string.h.
1308 * m2-typeprint.c: Use string.h, not gdb_string.h.
1309 * m32c-tdep.c: Use string.h, not gdb_string.h.
1310 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1311 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1312 * m32r-rom.c: Use string.h, not gdb_string.h.
1313 * m32r-tdep.c: Use string.h, not gdb_string.h.
1314 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1315 * m68k-tdep.c: Use string.h, not gdb_string.h.
1316 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1317 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1318 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1319 * m88k-tdep.c: Use string.h, not gdb_string.h.
1320 * macrocmd.c: Use string.h, not gdb_string.h.
1321 * main.c: Use string.h, not gdb_string.h.
1322 * mdebugread.c: Use string.h, not gdb_string.h.
1323 * mem-break.c: Use string.h, not gdb_string.h.
1324 * memattr.c: Use string.h, not gdb_string.h.
1325 * memory-map.c: Use string.h, not gdb_string.h.
1326 * mep-tdep.c: Use string.h, not gdb_string.h.
1327 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1328 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1329 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1330 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1331 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1332 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1333 * mi/mi-console.c: Use string.h, not gdb_string.h.
1334 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1335 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1336 * mi/mi-main.c: Use string.h, not gdb_string.h.
1337 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1338 * microblaze-rom.c: Use string.h, not gdb_string.h.
1339 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1340 * mingw-hdep.c: Use string.h, not gdb_string.h.
1341 * minidebug.c: Use string.h, not gdb_string.h.
1342 * minsyms.c: Use string.h, not gdb_string.h.
1343 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1344 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1345 * mips-tdep.c: Use string.h, not gdb_string.h.
1346 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1347 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1348 * mipsread.c: Use string.h, not gdb_string.h.
1349 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1350 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1351 * monitor.c: Use string.h, not gdb_string.h.
1352 * moxie-tdep.c: Use string.h, not gdb_string.h.
1353 * mt-tdep.c: Use string.h, not gdb_string.h.
1354 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1355 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1356 * nto-procfs.c: Use string.h, not gdb_string.h.
1357 * nto-tdep.c: Use string.h, not gdb_string.h.
1358 * objc-lang.c: Use string.h, not gdb_string.h.
1359 * objfiles.c: Use string.h, not gdb_string.h.
1360 * opencl-lang.c: Use string.h, not gdb_string.h.
1361 * osabi.c: Use string.h, not gdb_string.h.
1362 * osdata.c: Use string.h, not gdb_string.h.
1363 * p-exp.y: Use string.h, not gdb_string.h.
1364 * p-lang.c: Use string.h, not gdb_string.h.
1365 * p-typeprint.c: Use string.h, not gdb_string.h.
1366 * parse.c: Use string.h, not gdb_string.h.
1367 * posix-hdep.c: Use string.h, not gdb_string.h.
1368 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1369 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1370 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1371 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1372 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1373 * printcmd.c: Use string.h, not gdb_string.h.
1374 * procfs.c: Use string.h, not gdb_string.h.
1375 * prologue-value.c: Use string.h, not gdb_string.h.
1376 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1377 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1378 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1379 * regcache.c: Use string.h, not gdb_string.h.
1380 * registry.c: Use string.h, not gdb_string.h.
1381 * remote-fileio.c: Use string.h, not gdb_string.h.
1382 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1383 * remote-mips.c: Use string.h, not gdb_string.h.
1384 * remote-sim.c: Use string.h, not gdb_string.h.
1385 * remote.c: Use string.h, not gdb_string.h.
1386 * reverse.c: Use string.h, not gdb_string.h.
1387 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1388 * ser-base.c: Use string.h, not gdb_string.h.
1389 * ser-go32.c: Use string.h, not gdb_string.h.
1390 * ser-mingw.c: Use string.h, not gdb_string.h.
1391 * ser-pipe.c: Use string.h, not gdb_string.h.
1392 * ser-tcp.c: Use string.h, not gdb_string.h.
1393 * ser-unix.c: Use string.h, not gdb_string.h.
1394 * serial.c: Use string.h, not gdb_string.h.
1395 * sh-tdep.c: Use string.h, not gdb_string.h.
1396 * sh64-tdep.c: Use string.h, not gdb_string.h.
1397 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1398 * skip.c: Use string.h, not gdb_string.h.
1399 * sol-thread.c: Use string.h, not gdb_string.h.
1400 * solib-dsbt.c: Use string.h, not gdb_string.h.
1401 * solib-frv.c: Use string.h, not gdb_string.h.
1402 * solib-osf.c: Use string.h, not gdb_string.h.
1403 * solib-spu.c: Use string.h, not gdb_string.h.
1404 * solib-target.c: Use string.h, not gdb_string.h.
1405 * solib.c: Use string.h, not gdb_string.h.
1406 * somread.c: Use string.h, not gdb_string.h.
1407 * source.c: Use string.h, not gdb_string.h.
1408 * sparc-nat.c: Use string.h, not gdb_string.h.
1409 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1410 * sparc-tdep.c: Use string.h, not gdb_string.h.
1411 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1412 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1413 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1414 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1415 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1416 * spu-multiarch.c: Use string.h, not gdb_string.h.
1417 * spu-tdep.c: Use string.h, not gdb_string.h.
1418 * stabsread.c: Use string.h, not gdb_string.h.
1419 * stack.c: Use string.h, not gdb_string.h.
1420 * std-regs.c: Use string.h, not gdb_string.h.
1421 * symfile.c: Use string.h, not gdb_string.h.
1422 * symmisc.c: Use string.h, not gdb_string.h.
1423 * symtab.c: Use string.h, not gdb_string.h.
1424 * target.c: Use string.h, not gdb_string.h.
1425 * thread.c: Use string.h, not gdb_string.h.
1426 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1427 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1428 * top.c: Use string.h, not gdb_string.h.
1429 * tracepoint.c: Use string.h, not gdb_string.h.
1430 * tui/tui-command.c: Use string.h, not gdb_string.h.
1431 * tui/tui-data.c: Use string.h, not gdb_string.h.
1432 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1433 * tui/tui-file.c: Use string.h, not gdb_string.h.
1434 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1435 * tui/tui-out.c: Use string.h, not gdb_string.h.
1436 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1437 * tui/tui-source.c: Use string.h, not gdb_string.h.
1438 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1439 * tui/tui-win.c: Use string.h, not gdb_string.h.
1440 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1441 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1442 * typeprint.c: Use string.h, not gdb_string.h.
1443 * ui-file.c: Use string.h, not gdb_string.h.
1444 * ui-out.c: Use string.h, not gdb_string.h.
1445 * user-regs.c: Use string.h, not gdb_string.h.
1446 * utils.c: Use string.h, not gdb_string.h.
1447 * v850-tdep.c: Use string.h, not gdb_string.h.
1448 * valarith.c: Use string.h, not gdb_string.h.
1449 * valops.c: Use string.h, not gdb_string.h.
1450 * valprint.c: Use string.h, not gdb_string.h.
1451 * value.c: Use string.h, not gdb_string.h.
1452 * varobj.c: Use string.h, not gdb_string.h.
1453 * vax-tdep.c: Use string.h, not gdb_string.h.
1454 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1455 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1456 * windows-nat.c: Use string.h, not gdb_string.h.
1457 * xcoffread.c: Use string.h, not gdb_string.h.
1458 * xml-support.c: Use string.h, not gdb_string.h.
1459 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1460 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1461
63ce7108
TT
14622013-11-18 Tom Tromey <tromey@redhat.com>
1463
1464 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1465 and strstr.
1466 * gnulib/aclocal.m4: Update.
1467 * gnulib/config.in: Update.
1468 * gnulib/configure: Update.
1469 * gnulib/import/Makefile.am: Update.
1470 * gnulib/import/Makefile.in: Update.
1471 * gnulib/import/errno.in.h: New.
1472 * gnulib/import/intprops.h: New.
1473 * gnulib/import/m4/errno_h.m4: New.
1474 * gnulib/import/m4/gnulib-cache.m4: Update.
1475 * gnulib/import/m4/gnulib-comp.m4: Update.
1476 * gnulib/import/m4/strerror.m4: New.
1477 * gnulib/import/m4/strstr.m4: New.
1478 * gnulib/import/m4/sys_socket_h.m4: New.
1479 * gnulib/import/strerror-override.c: New.
1480 * gnulib/import/strerror-override.h: New.
1481 * gnulib/import/strerror.c: New.
1482 * gnulib/import/strstr.c: New.
1483
a7c11ee1
TT
14842013-11-18 Tom Tromey <tromey@redhat.com>
1485
1486 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1487 multiple lines.
1488
d0b5971a
JM
14892013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1490
1491 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1492 * sparc-tdep.h: And its prototype.
1493
1494 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1495 function.
1496 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1497
4b4589ad
PA
14982013-11-18 Pedro Alves <palves@redhat.com>
1499
1500 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1501 use unpack_pointer.
1502
422ad5c2
JB
15032013-11-18 Joel Brobecker <brobecker@adacore.com>
1504
1505 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1506 to -list-features output.
1507
b1370418
JB
15082013-11-17 Joel Brobecker <brobecker@adacore.com>
1509
1510 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1511 <read_addr_from_reg>: Renames "read_reg".
1512 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1513 Adjust comment.
1514 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1515 Use read_addr_from_reg in place of read_reg.
1516 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1517 in place of read_reg.
1518 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1519 dwarf_expr_read_reg.
1520 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1521 with dwarf_expr_read_addr_from_reg.
1522 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1523 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1524 needs_frame_read_addr_from_reg.
1525
6ea71545
JK
15262013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1527
1528 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1529
19a1b230
AA
15302013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1531
1532 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1533 NULL.
1534
805e1f19
TT
15352013-11-15 Tom Tromey <tromey@redhat.com>
1536
1537 PR c++/16117:
1538 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1539 (classify_name): Likewise. Prefer a field of "this" over a
1540 filename.
1541 (classify_inner_name, yylex): Update.
1542
0acf8b65
JB
15432013-11-15 Joel Brobecker <brobecker@adacore.com>
1544
1545 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1546 Extend the documentation a bit.
1547 <get_reg_value>: New field.
1548 * dwarf2loc.c (dwarf_expr_get_reg_value)
1549 (needs_frame_get_reg_value): New functions.
1550 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1551 callback.
1552 * dwarf2-frame.c (get_reg_value): New function.
1553 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1554 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1555 Use new callback to compute result_val.
1556
ef1bc9e7
AM
15572013-11-15 Alan Modra <amodra@gmail.com>
1558
1559 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1560 (ppc64_desc_entry_point): ..this. Update comments here and at
1561 call points.
1562 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1563 ppc64_standard_linkage3): Update comments.
1564 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1565 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1566 patterns.
1567 (ppc64_standard_linkage4_target): New function.
1568 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1569 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1570 nop match. Fix comment wrap.
1571
36fa8042
PA
15722013-11-14 Pedro Alves <palves@redhat.com>
1573
1574 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1575 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1576
4f5d7f63
PA
15772013-11-14 Pedro Alves <palves@redhat.com>
1578
1579 * infrun.c (struct execution_control_state)
1580 <stepped_after_stopped_by_watchpoint>: New field.
1581 (get_inferior_stop_soon): New function.
1582 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1583 moved to struct execution_control_state -- adjust. Use
1584 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1585 new function.
1586 (handle_signal_stop): New function, factored out from
1587 handle_inferior_event.
1588
47591c29
PA
15892013-11-14 Pedro Alves <palves@redhat.com>
1590
1591 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1592 return a boolean.
1593 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1594 boolean.
1595 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1596 Adjust to return a boolean.
1597 * breakpoint.h (enum bpstat_signal_value): Delete.
1598 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1599 (bpstat_explains_signal): Likewise.
1600 * infrun.c (handle_inferior_event) <random signal checks>:
1601 bpstat_explains_signal now returns a boolean - adjust. No longer
1602 consider hiding signals.
1603
bac7d97b
PA
16042013-11-14 Pedro Alves <palves@redhat.com>
1605
1606 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1607 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1608 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1609 BPSTAT_SIGNAL_HIDE.
1610 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1611 instead of BPSTAT_SIGNAL_HIDE.
1612 * infrun.c (handle_inferior_event): Rework random signal checks.
1613
ce12b012
PA
16142013-11-14 Pedro Alves <palves@redhat.com>
1615
1616 * infrun.c (struct execution_control_state): Remove
1617 'random_signal' field.
1618 (handle_syscall_event): Use bpstat_causes_stop instead of
1619 bpstat_explains_signal. Don't set ecs->random_signal.
1620 (handle_inferior_event): New 'random_signal' local.
1621 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1622 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1623 bpstat_explains_signal. Don't set ecs->random_signal.
1624 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1625 ecs->random_signal.
1626
05ba8510
PA
16272013-11-14 Pedro Alves <palves@redhat.com>
1628
1629 * infrun.c (handle_inferior_event): Move comment from the
1630 function's body to the function's description, adjusted.
1631
5c09a2c5
PA
16322013-11-14 Pedro Alves <palves@redhat.com>
1633
1634 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1635 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1636 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1637 case.
1638
91822956
TT
16392013-11-14 Tom Tromey <tromey@redhat.com>
1640
1641 * python/py-linetable.c (ltpy_has_line)
1642 (ltpy_get_all_source_lines): Fix loop termination condition.
1643
403cb6b1
JB
16442013-11-14 Joel Brobecker <brobecker@adacore.com>
1645
1646 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1647 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1648 PARSE->LANGUAGE during command execution, if set.
1649 * mi/mi-parse.c: Add "language.h" #include.
1650 (mi_parse): Add parsing of "--language" command option.
1651
1652 * NEWS: Add entry mentioning the new "--language" command option.
1653
b5be8ce0
JB
16542013-11-14 Pedro Alves <palves@redhat.com>
1655 Joel Brobecker <brobecker@adacore.com>
1656
1657 * cli/cli-utils.h (extract_arg_const): Add declaration.
1658 * cli/cli-utils.c (extract_arg_const): New function.
1659 (extract_arg): Reimplement using extract_arg_const.
1660
671afef6
JB
16612013-11-14 Joel Brobecker <brobecker@adacore.com>
1662
1663 * language.h: Add "symtab.h" #include.
1664
6c1b0f7b
DE
16652013-11-13 Doug Evans <xdje42@gmail.com>
1666
1667 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1668 specific breakpoints, don't evaluate breakpoint condition if
1669 different thread.
1670
74921315
KS
16712013-11-13 Keith Seitz <keiths@redhat.com>
1672
248ace2e 1673 PR c++/7935
74921315
KS
1674 PR c++/10541
1675 * cp-support.c (insepct_type): Add support for substituting
1676 namespace aliases, too.
1677 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1678 for DW_TAG_imported_declaration.
1679 (add_partial_symbol): Likewise.
1680 (process_die): Handle namespace aliases with
1681 read_namespace_alias.
1682 (die_needs_namespace): Add DW_TAG_imported_declaration.
1683 (read_namespace_alias): New function.
1684 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1685 (new_symbol_full): Handle DW_TAG_imported_declaration.
1686
793156e6
KS
16872013-11-13 Keith Seitz <keiths@redhat.com>
1688
1689 * p-exp.y (uptok): Make first parameter const.
1690 (yylex): Make `tokstart' and `tokptr' const.
1691 Don't copy the lexer input to a temporary buffer.
1692 Make `p' const.
1693 Remove const workaround for parse_escape.
1694 Create a temporary buffer for a convenience variable instead
1695 of doing in-place modification of the input.
1696 If a match is found with a different case from the input,
1697 do not change the input at all.
1698 Use `tmp' to construct the resultant stoken instead of
1699 `tokstart'.
1700
c42bd95a
DE
17012013-11-13 Doug Evans <xdje42@gmail.com>
1702
1703 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1704
93973826
JB
17052013-11-13 Joel Brobecker <brobecker@adacore.com>
1706
1707 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1708 entry with "ada-exceptions".
1709
846060df
JB
17102013-11-13 Joel Brobecker <brobecker@adacore.com>
1711
1712 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1713 after re-initialization of OBJFILE's obstack.
1714
5efd1b2b 17152013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1716
1717 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1718 bs->stop != 0 on entry. Update function comment. Simplify early
1719 exit for frame mismatch. Reindent rest of function.
1720
ee7615e1
AA
17212013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1722
1723 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1724 NULL.
1725
8943b874
DE
17262013-11-12 Doug Evans <dje@google.com>
1727
1728 Work around gold/15646.
1729 * dwarf2read.c (read_index_from_section): Update comment.
1730 (struct dw2_symtab_iterator): New member global_seen.
1731 (dw2_symtab_iter_init): Initialize it.
1732 (dw2_symtab_iter_next): Skip duplicate global symbols.
1733 (dw2_expand_symtabs_matching): Ditto.
1734
a8a9844d
JB
17352013-11-12 Joel Brobecker <brobecker@adacore.com>
1736
1737 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1738 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1739 command.
1740 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1741 (mi_cmd_info_ada_exceptions): New function.
1742 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1743
778865d3
JB
17442013-11-12 Joel Brobecker <brobecker@adacore.com>
1745
1746 * ada-lang.h: #include "vec.h".
1747 (struct ada_exc_info): New.
1748 (ada_exc_info): New typedef.
1749 (DEF_VEC_O(ada_exc_info)): New vector.
1750 (ada_exceptions_list): Add declaration.
1751 * ada-lang.c (ada_is_exception_sym)
1752 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1753 (sort_remove_dups_ada_exceptions_list)
1754 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1755 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1756 (ada_exceptions_list_1, ada_exceptions_list)
1757 (info_exceptions_command): New function.
1758 (_initialize_ada_language): Add "info exception" command.
1759
bc79de95
PM
17602013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1761
1762 PR python/15629
1763 * NEWS: Add linetable feature.
1764 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1765 * python/py-linetable.c: New file.
1766 * python/py-symtab.c (stpy_get_linetable): New function.
1767 * python/python-internal.h (symtab_to_linetable_object): Declare.
1768 (gdbpy_initialize_linetable): Ditto.
1769 * python/python.c (_initialize_python): Call
1770 gdbpy_initialize_linetable.
1771
2df4d1d5
JB
17722013-11-11 Joel Brobecker <brobecker@adacore.com>
1773
1774 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1775 the documentation of fields "except_string" and "condition".
1776 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1777 CONDITION on the heap before passing it to
1778 create_ada_exception_catchpoint.
1779 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1780 CONDITION.
1781
99c1d451
TT
17822013-11-11 Tom Tromey <tromey@redhat.com>
1783
1784 * config.in, configure: Rebuild.
1785 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1786
8ca5801b
JB
17872013-11-11 Joel Brobecker <brobecker@adacore.com>
1788
1789 * remote-sim.c (gdbsim_detach): Break declaration into
1790 shorter lines. No code change.
1791
7a06d430
EBM
17922013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1793
1794 * remote-sim.c (gdbsim_detach): Fix prototype.
1795
73be47f5
DE
17962013-11-08 Doug Evans <dje@google.com>
1797
1798 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1799 (create_debug_types_hash_table): Only print debugging messages for
1800 each TU if dwarf2-read >= 2.
1801 (process_queue): Ditto.
1802 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1803 Update doc string.
1804
a18d8f10
TT
18052013-11-08 Tom Tromey <tromey@redhat.com>
1806
1807 * configure: Rebuild.
1808 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1809
9467110b
TT
18102013-11-08 Tom Tromey <tromey@redhat.com>
1811
1812 * configure, config.in: Rebuild.
1813 * configure.ac: Remove unused configury.
1814
69706679
TT
18152013-11-08 Tom Tromey <tromey@redhat.com>
1816
1817 * m32c-tdep.c: Use gdb_string.h.
1818
9b4bea72
TT
18192013-11-08 Tom Tromey <tromey@redhat.com>
1820
1821 * configure, config.in: Rebuild.
1822 * configure.ac: Remove all link.h-related checks.
1823
3266f10b
TT
18242013-11-08 Tom Tromey <tromey@redhat.com>
1825
1826 * acinclude.m4: Include common.m4.
1827 * common/common.m4: New file.
1828 * configure, config.in: Rebuild.
1829 * configure.ac: Use GDB_AC_COMMON.
1830
db0fec5c
DE
18312013-11-08 Doug Evans <dje@google.com>
1832
1833 * NEWS: Mention that "set debug symtab-create" now accepts a
1834 verbosity level.
1835 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1836 to set the symtab's primary flag.
1837 * jit.c (finalize_symtab): Ditto.
1838 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1839 * symfile.c (allocate_symtab): Only print debugging messages for
1840 symtab_create_debug levels 2 and higher.
1841 * symtab.c (symtab_create_debug): Change type to unsigned int.
1842 (set_symtab_primary): New function.
1843 (_initialize_symtab): Change "set debug symtab-create" to a
1844 zuinteger option.
1845 * symtab.h (set_symtab_primary): Declare.
1846 (symtab_create_debug): Update decl.
1847
52554a0e
TT
18482013-11-08 Tom Tromey <tromey@redhat.com>
1849
1850 * aix-thread.c (aix_thread_detach): Update.
1851 * corelow.c (core_detach): Update.
1852 * darwin-nat.c (darwin_detach): Update.
1853 * dec-thread.c (dec_thread_detach): Update.
1854 * gnu-nat.c (gnu_detach): Update.
1855 * go32-nat.c (go32_detach): Update.
1856 * inf-ptrace.c (inf_ptrace_detach): Update.
1857 * inf-ttrace.c (inf_ttrace_detach): Update.
1858 * linux-fork.c (linux_fork_detach): Update.
1859 * linux-fork.h (linux_fork_detach): Update.
1860 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1861 local for const-correctness.
1862 * linux-thread-db.c (thread_db_detach): Update.
1863 * monitor.c (monitor_detach): Update.
1864 * nto-procfs.c (procfs_detach): Update.
1865 * procfs.c (procfs_detach): Update.
1866 * record.c (record_detach): Update.
1867 * record.h (record_detach): Update.
1868 * remote-m32r-sdi.c (m32r_detach): Update.
1869 * remote-mips.c (mips_detach): Update.
1870 * remote-sim.c (gdbsim_detach): Update.
1871 * remote.c (remote_detach_1, remote_detach)
1872 (extended_remote_detach): Update.
1873 * sol-thread.c (sol_thread_detach): Update.
1874 * target.c (target_detach): Make "args" const.
1875 (init_dummy_target): Update.
1876 * target.h (struct target_ops) <to_detach>: Make argument const.
1877 (target_detach): Likewise.
1878 * windows-nat.c (windows_detach): Update.
1879
204b5331
DE
18802013-11-07 Doug Evans <dje@google.com>
1881
1882 PR 11786
1883 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1884 and align fields for PT_GNU_RELRO segments.
1885
92e32e33
PM
18862013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1887
ef1bc9e7
AM
1888 PR python/15747
1889 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1890
f76c27b5
PM
18912013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1892
1893 * NEWS: Document Python temporary breakpoint support.
1894 * python/py-breakpoint.c (bppy_get_temporary): New function.
1895 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1896 to temporary if True.
1897
d52cd232
JM
18982013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1899
1900 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1901 removed to allow analyzing unconditional branch instructions
1902 with PC-relative offsets of zero.
1903
fa4d0c40
YQ
19042013-11-07 Yao Qi <yao@codesourcery.com>
1905
1906 * mi/mi-cmd-var.c: Include "language.h".
1907 (mi_cmd_var_info_expression): Get language name from
1908 language_defn.
1909 * varobj.c (varobj_language_string): Remove.
1910 (variable_language): Remove declaration.
1911 (languages): Remove.
1912 (varobj_get_language): Change the type of return value.
1913 (variable_language): Remove.
1914 * varobj.h (enum varobj_languages): Remove.
1915 (varobj_language_string): Remove declaration.
1916 (varobj_get_language): Update declaration.
1917
6abde28f
YQ
19182013-11-07 Yao Qi <yao@codesourcery.com>
1919
1920 * language.h (struct language_defn) <la_natural_name>: New
1921 field.
1922 * ada-lang.c (ada_language_defn): Initialize field
1923 'la_natural_name'.
1924 * c-lang.c (c_language_defn): Likewise.
1925 (cplus_language_defn, asm_language_defn): Likewise.
1926 * d-lang.c (d_language_defn): Likewise.
1927 * f-lang.c (f_language_defn): Likewise.
1928 * go-lang.c (go_language_defn): Likewise.
1929 * jv-lang.c (java_language_defn): Likewise.
1930 * language.c (unknown_language_defn ): Likewise.
1931 (auto_language_defn): Likewise.
1932 * m2-lang.c (m2_language_defn): Likewise.
1933 * objc-lang.c (objc_language_defn): Likewise.
1934 * opencl-lang.c (opencl_language_defn): Likewise.
1935 * p-lang.c (pascal_language_defn): Likewise.
1936
27cd387b
YQ
19372013-11-07 Yao Qi <yao@codesourcery.com>
1938
1939 * language.c (language_str): Return const char *.
1940 (add_language): Add const to 'language_names'
1941 * language.h (struct language_defn) <la_name>: Add const.
1942 (language_str: Update declaration.
1943
6682d959
AA
19442013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1945
1946 * s390-linux-nat.c (s390_read_description): Consider the TE field
1947 in the HWCAP for determining 'have_regset_tdb'.
1948
b9502d3f
WN
19492013-11-06 Will Newton <will.newton@linaro.org>
1950
1951 PR gdb/12866
1952 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1953 values. (read_partial_die): Likewise.
1954
840da61a
MB
19552013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1956
1957 PR cli/16122
1958 * top.c (command_line_input): Unify interactivity tests to use
1959 input_from_terminal_p.
1960 * event-top.c (command_line_handler): Likewise.
1961
7636ccf9
YQ
19622013-11-06 Yao Qi <yao@codesourcery.com>
1963
1964 * Makefile.in (check-perf): New target.
1965
12b27276
WN
19662013-11-05 Will Newton <will.newton@linaro.org>
1967
1968 PR gdb/7670
1969 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1970 (arm_print_float_info): Likewise.
1971
67c059c2
AB
19722013-11-04 Anton Blanchard <anton@samba.org>
1973
1974 * target.c (memory_xfer_partial): Cap write to 4KB.
1975
0569175e
TSD
19762013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1977
1978 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1979 probe scan even when the arch provides no get_longjmp_target.
1980
b18e90f5
PA
19812013-10-31 Pedro Alves <palves@redhat.com>
1982
1983 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1984 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1985 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1986 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1987 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1988 <bpstat handling>: If the bpstat chain wants the signal to be
1989 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1990 GDB_SIGNAL_TRAP.
1991
638aa5a1
AB
19922013-10-31 Andrew Burgess <aburgess@broadcom.com>
1993
1994 * breakpoint.c (update_watchpoint): Update error message and add
1995 an additional error message.
1996
0e5fae36
UW
19972013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1998
1999 * s390-tdep.h: Rename to...
2000 * s390-linux-tdep.h: ...here.
2001 * s390-tdep.c: Rename to...
2002 * s390-linux-tdep.c: ...here. Adjust #include.
2003 * s390-nat.c: Rename to...
2004 * s390-linux-nat.c: ...here. Adjust #include.
2005 * config/s390/s390.mh: Rename to...
2006 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2007 s390-linux-nat.o.
2008 * configure.host: Reflect host rename "s390" -> "linux".
2009 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2010 * Makefile.in (ALL_TARGET_OBS): Likewise.
2011 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2012 s390-linux-tdep.h.
2013 (ALLDEPFILES): Reflect rename of .c files.
2014
34201ae3
UW
20152013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2016
2017 * s390-nat.c: Whitespace cleanup.
2018 * s390-tdep.c: Likewise.
2019 * s390-tdep.h: Remove empty line at end of file.
2020
e17aaa33
MR
20212013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2022
2023 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2024 siginfo_size.
2025
aee17e42
TT
20262013-10-29 Tom Tromey <tromey@redhat.com>
2027
2028 * utils.c (reg): Move undefinition...
2029 * gdb_curses.h: ... here. Update comment to mention AIX.
2030
9ac69859
NB
20312013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2032
2033 * exec.h (add_target_sections_of_objfile): New declaration.
2034 * exec.c (add_target_sections_of_objfile): New function.
2035 * symfile.c (add_symbol_file_command): Update current target sections.
2036 (remove_symbol_file_command): New command.
2037 (symfile_free_objfile): New function.
2038 (_initialize_symfile): Register observer for free_objfile events.
2039 * NEWS: Add description of the remove-symbol-file command.
2040 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2041 * objfiles.c (free_objfile): Notify free_objfile.
2042 (is_addr_in_objfile): New function.
2043 * objfiles.h (is_addr_in_objfile): New declaration.
2044 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2045 events instead of solib_unloaded events.
2046 (_initialize_printcmd): Register observer for free_objfile instead
2047 of solib_unloaded notifications.
2048 * solib.c (remove_user_added_objfile): New function.
2049 (_initialize_symfile): Add remove-symbol-file.
2050
f69d9aef
AB
20512013-10-29 Andrew Burgess <aburgess@broadcom.com>
2052
2053 * infcmd.c (default_print_one_register_info): Use val_print to
2054 print all values even optimized out or unavailable ones. Don't
2055 try to print a raw form of optimized out or unavailable values.
2056
487ad57c
YQ
20572013-10-29 Yao Qi <yao@codesourcery.com>
2058
2059 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2060 parameter 'arg' instead of from program_space_data.
2061 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2062 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2063 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2064 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2065 * inflow.c (inflow_inferior_data_cleanup): Get data from
2066 parameter 'arg' instead of inferior_data.
2067 * registry.h: Add comments.
2068
3c4797ba
PA
20692013-10-28 Pedro Alves <palves@redhat.com>
2070
2071 * breakpoint.c (watchpoints_triggered)
2072 <!target_stopped_data_address>: Hardcode return 1.
2073
cdaa5b73
PA
20742013-10-28 Pedro Alves <palves@redhat.com>
2075
2076 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2077 level and reindent.
2078
94c57d6a
PA
20792013-10-28 Pedro Alves <palves@redhat.com>
2080
2081 * infrun.c (process_event_stop_test): New function, factored out
2082 from handle_inferior_event.
2083 (handle_inferior_event): 'process_event_stop_test' is now a
2084 function instead of a goto label -- adjust.
2085
fcf3daef
PA
20862013-10-28 Pedro Alves <palves@redhat.com>
2087
2088 * infrun.c (handle_inferior_event): Move process_event_stop_test
2089 goto label to the else branch of the ecs->random_signal check,
2090 along with FRAME and GDBARCH re-fetching.
2091
c447ac0b
PA
20922013-10-28 Pedro Alves <palves@redhat.com>
2093
2094 * infrun.c (switch_back_to_stepped_thread): New function, factored
2095 out from handle_inferior_event.
2096 (handle_inferior_event): Adjust to call
2097 switch_back_to_stepped_thread. Call it also at the tail of the
2098 random signal handling, and return, instead of also handling
2099 random signals just before the stepping tests.
2100
f05e4c11
PA
21012013-10-28 Pedro Alves <palves@redhat.com>
2102
2103 * infrun.c (clear_stop_func): Delete.
2104 (handle_inferior_event): Don't call clear_stop_func and don't
2105 clear 'ecs->random_signal'.
2106
ca20d462
YQ
21072013-10-27 Yao Qi <yao@codesourcery.com>
2108
2109 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2110 (varobj_create, varobj_get_path_expr): Update.
2111 (varobj_value_has_mutated, varobj_update): Likewise.
2112 (create_child_with_value, new_root_variable): Likewise.
2113 (number_of_children, name_of_variable): Likewise.
2114 (value_of_child, my_value_of_variable): Likewise.
2115 (varobj_value_is_changeable_p): Likewise.
2116
a53b64ea
YQ
21172013-10-25 Yao Qi <yao@codesourcery.com>
2118
2119 * language.h (struct lang_varobj_ops): Declare.
2120 (struct language_defn) <la_varobj_ops>: New field.
2121 * ada-lang.c: Include "varobj.h"
2122 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2123 ada_varobj_ops.
2124 * c-lang.c: Include "varobj.h"
2125 (c_language_defn): Initialize field 'la_varobj_ops' with
2126 c_varobj_ops.
2127 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2128 cplus_varobj_ops.
2129 (asm_language_defn): Initialize field 'la_varobj_ops' with
2130 default_varobj_ops.
2131 (minimal_language_defn): Likewise.
2132 * d-lang.c (d_language_defn): Likewise.
2133 * f-lang.c (f_language_defn): Likewise.
2134 * go-lang.c (go_language_defn): Likewise.
2135 * m2-lang.c (m2_language_defn): Likewise.
2136 * objc-lang.c (objc_language_defn): Likewise.
2137 * opencl-lang.c (opencl_language_defn): Likewise.
2138 * p-lang.c (pascal_language_defn): Likewise.
2139 * language.c (unknown_language_defn): Likewise.
2140 (auto_language_defn): Likewise.
2141 (local_language_defn): Likewise.
2142 * jv-lang.c (java_language_defn): Initialize field
2143 'la_varobj_ops' with java_varobj_ops.
2144 * varobj.c (varobj_create): Update.
2145 * varobj.h (default_varobj_ops): Define macro.
2146
686d4def
PA
21472013-10-25 Pedro Alves <palves@redhat.com>
2148
2149 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2150 static field value.
2151 (cp_print_static_field): If the value is entirely optimized out,
2152 print <optimized out> here.
2153 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2154 static field value.
2155 * p-valprint.c (pascal_object_print_static_field): If the value is
2156 entirely optimized out, print <optimized out> here.
2157 * valops.c (do_search_struct_field)
2158 (value_struct_elt_for_reference): No longer handle a NULL static
2159 field value.
2160 * value.c (value_static_field): Return an optimized out value
2161 instead of NULL.
2162
6c177e28
YQ
21632013-10-25 Yao Qi <yao@codesourcery.com>
2164
2165 * remote.c (remote_traceframe_info): Return early if
2166 traceframe is not selected.
2167
98322bfa
YQ
21682013-10-25 Yao Qi <yao@codesourcery.com>
2169
2170 * tracepoint.c (traceframe_fun): Remove.
2171 (traceframe_sal): Remove.
2172 (set_traceframe_context): Add local variables.
2173
6ba1f115
JB
21742013-10-25 Joel Brobecker <brobecker@adacore.com>
2175
2176 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2177 and parameter name.
2178
bbe769cc
MR
21792013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2180
2181 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2182 failure from register information collection.
2183
72ee4495 21842013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
2185
2186 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2187 member.
2188 (linux_corefile_thread_callback): Update accordingly.
2189 (linux_make_corefile_notes): Likewise.
2190
98882a26
PA
21912013-10-24 Pedro Alves <palves@redhat.com>
2192
2193 * NEWS (New options): Mention set/show startup-with-shell.
2194 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2195 instead of 3.
2196 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2197 startup-with-shell'.
2198 (show_startup_with_shell): New function.
2199 (_initialize_fork_child): Register the set/show startup-with-shell
2200 commands.
2201 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2202 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2203 * procfs.c (procfs_init_inferior): Remove comment.
2204 * infcmd.c (startup_with_shell): New global.
2205 * inferior.h (startup_with_shell): Declare global.
2206 (STARTUP_WITH_SHELL): Delete.
2207 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2208
c9737c08
PA
22092013-10-23 Pedro Alves <palves@redhat.com>
2210
2211 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2212 * common/signals.c: Include "gdb_assert.h".
2213 (signals): New field 'symbol'.
2214 (SET): Use the 'symbol' parameter.
2215 (gdb_signal_to_symbol_string): New function.
2216 * infrun.c (handle_inferior_event) <random signal>: In debug
2217 output, print the random signal enum as string in addition to its
2218 number.
2219 * target/waitstatus.c (target_waitstatus_to_string): Print the
2220 signal's enum value as string instead of the (POSIX) signal name.
2221
f60db4f0
GB
22222013-10-23 Gary Benson <gbenson@redhat.com>
2223
2224 PR 16013
2225 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2226 from 32 to 18. Adjusted fscanf format string accordingly.
2227 (Avoids leaving cmd unterminated.)
2228 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2229 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2230 that local_address and remote_address will not overflow.
2231 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2232 leaving dependencies unterminated. Parse size as "%u" to match
2233 definition.
2234
6d3e7a94
PA
22352013-10-22 Pedro Alves <palves@redhat.com>
2236
2237 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2238 set ecs->random signal.
2239
42ec045f
PA
22402013-10-22 Pedro Alves <palves@redhat.com>
2241
2242 * infrun.c (keep_going): Update comments.
2243
22442013-10-22 Pedro Alves <palves@redhat.com>
2245
2246 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2247 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2248
22492013-10-22 Pedro Alves <palves@redhat.com>
2250
2251 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2252 GDB_EXC_BAD_ACCESS.
2253 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2254 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2255 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2256 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2257 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2258 (GDB_SIGNAL_LAST): Change description string.
2259 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2260 Adjust to signal renaming.
2261 * darwin-nat.c (darwin_decode_message): Likewise.
2262
c8fde1b1
JM
22632013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2264
2265 * MAINTAINERS (Write After Approval): Add myself to the list.
2266
e8369a73
AB
22672013-10-18 Andrew Burgess <aburgess@broadcom.com>
2268
2269 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2270 forced off, downgrade them to software watchpoints if possible,
2271 and error out if not possible.
2272 (watch_command_1): Move watchpoint type selection closer to
2273 watchpoint creation, and extend the comments.
2274
776f04fa
PA
22752013-10-18 Pedro Alves <palves@redhat.com>
2276
2277 PR gdb/16062
2278 * infrun.c (handle_inferior_event): Keep going if we got a random
2279 signal we should not stop for, instead of falling through to the
2280 step tests.
2281
0c6faab5
YQ
22822013-10-18 Yao Qi <yao@codesourcery.com>
2283
2284 * c-varobj.c (cplus_number_of_children): Fix indentation.
2285
50b34a18
TT
22862013-10-17 Tom Tromey <tromey@redhat.com>
2287
2288 PR gdb/15995:
2289 * printcmd.c (printcmd): Call gdb_flush.
2290
5c4c8a59
TT
22912013-10-17 Tom Tromey <tromey@redhat.com>
2292
2293 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2294 (elf_locate_sections): Update.
2295
c4124bf1
YQ
22962013-10-17 Yao Qi <yao@codesourcery.com>
2297
2298 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2299 * ada-varobj.c: Remove the include of ada-varobj.h.
2300 (ada_varobj_get_number_of_children): Declare.
2301 (ada_varobj_get_name_of_child): Make it static.
2302 (ada_varobj_get_path_expr_of_child): Likewise.
2303 (ada_varobj_get_value_of_child): Likewise.
2304 (ada_varobj_get_type_of_child): Likewise.
2305 (ada_varobj_get_value_of_array_variable): Likewise.
2306 * ada-varobj.h: Remove.
2307
99ad9427
YQ
23082013-10-17 Yao Qi <yao@codesourcery.com>
2309
2310 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2311 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2312 * ada-varobj.c: Include "varobj.h".
2313 (ada_number_of_children): New. Moved from varobj.c.
2314 (ada_name_of_variable, ada_name_of_child): Likewise.
2315 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2316 (ada_type_of_child, ada_value_of_variable): Likewise.
2317 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2318 (ada_varobj_ops): New.
2319 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2320 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2321 * gdbtypes.h (get_target_type): Declare.
2322 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2323 "ada-lang.h".
2324 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2325 (ANONYMOUS_UNION_NAME): Likewise.
2326 (get_type, get_value_type, get_target_type): Remove declarations.
2327 (value_get_print_value, varobj_value_get_print_value): Likewise.
2328 (c_number_of_children, c_name_of_variable): Likewise.
2329 (c_name_of_child, c_path_expr_of_child): Likewise.
2330 (c_value_of_child, c_type_of_child): Likewise.
2331 (c_value_of_variable, cplus_number_of_children): Likewise.
2332 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2333 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2334 (cplus_value_of_child, cplus_type_of_child): Likewise.
2335 (cplus_value_of_variable, java_number_of_children): Likewise.
2336 (java_name_of_variable, java_name_of_child): Likewise.
2337 (java_path_expr_of_child, java_value_of_child): Likewise.
2338 (java_type_of_child, java_value_of_variable): Likewise.
2339 (ada_number_of_children, ada_name_of_variable): Likewise.
2340 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2341 (ada_value_of_child, ada_type_of_child): Likewise.
2342 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2343 (ada_value_has_mutated): Likewise.
2344 (struct language_specific): Move it to varobj.h.
2345 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2346 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2347 Callers update.
2348 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2349 Make it extern.
2350 (is_anonymous_child): Move it to c-varobj.c and rename to
2351 varobj_is_anonymous_child. Caller update.
2352 (get_type): Move it to c-varobj.c.
2353 (get_value_type): Rename it varobj_get_value_type. Make it
2354 extern.
2355 (get_target_type): Move it gdbtypes.c.
2356 (varobj_formatted_print_options): New function.
2357 (value_get_print_value): Rename it to
2358 varobj_value_get_print_value and make it extern.
2359 (varobj_value_is_changeable_p): Make it extern.
2360 (adjust_value_for_child_access): Move it to c-varobj.c.
2361 (default_value_is_changeable_p): Rename it to
2362 varobj_default_value_is_changeable_p. Make it extern.
2363 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2364 (c_name_of_child, c_path_expr_of_child): Likewise.
2365 (c_value_of_child, c_type_of_child): Likewise.
2366 (c_value_of_variable, cplus_number_of_children): Likewise.
2367 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2368 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2369 (cplus_value_of_child, cplus_type_of_child): Likewise.
2370 (cplus_value_of_variable): Likewise.
2371 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2372 (java_name_of_child, java_path_expr_of_child): Likewise.
2373 (java_value_of_child, java_type_of_child): Likewise.
2374 (java_value_of_variable): Likewise.
2375 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2376 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2377 (ada_value_of_child, ada_type_of_child): Likewise.
2378 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2379 (ada_value_has_mutated): Likewise.
2380 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2381 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2382 (c_varobj_ops, cplus_varobj_ops): Declare.
2383 (java_varobj_ops, ada_varobj_ops): Declare.
2384 (varobj_default_value_is_changeable_p): Declare.
2385 (varobj_value_is_changeable_p): Declare.
2386 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2387 (varobj_get_path_expr_parent): Declare.
2388 (varobj_value_get_print_value): Declare.
2389 (varobj_formatted_print_options): Declare.
2390 (varobj_restrict_range): Declare.
2391
c8a62302
LM
23922013-10-17 Luis Machado <lgustavo@codesourcery.com>
2393
2394 * target/waitstatus.h (target_waitkind): Remove spurious
2395 character from the comments.
2396
eade6471
JB
23972013-10-17 Joel Brobecker <brobecker@adacore.com>
2398
2399 * gdbarch.sh (get_longjmp_target): Add method documentation.
2400 * gdbarch.h: Regenerate.
2401
5411b26c
TT
24022013-10-16 Tom Tromey <tromey@redhat.com>
2403
2404 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2405 label.
2406
87326c87
LM
24072013-10-16 Luis Machado <lgustavo@codesourcery.com>
2408
2409 * gcore.in: Call GDB using the full path to the gcore script.
2410 Error out if the GDB binary is not found.
2411
fd0a4d76
SDJ
24122013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2413
2414 PR gdb/16014
2415 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2416 sizeof.
2417
d92f7ee3
SDJ
24182013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2419
2420 PR gdb/16042
2421 * target.c (target_disable_btrace): Fix invalid return value for
2422 void function.
2423 (target_teardown_btrace): Likewise.
2424
bb5ce47a
YQ
24252013-10-14 Yao Qi <yao@codesourcery.com>
2426
2427 * varobj.c (struct varobj): Move most of the fields to
2428 varobj.h.
2429 (struct varobj_dynamic): New struct.
2430 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2431 (varobj_has_more): Likewise.
2432 (dynamic_varobj_has_child_method): Likewise.
2433 (update_dynamic_varobj_children): Likewise.
2434 (varobj_get_num_children): Likewise.
2435 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2436 (install_new_value_visualizer): Likewise.
2437 (install_new_value_visualizer, install_new_value): Likewise.
2438 (varobj_update, new_variable, free_variable): Likewise.
2439 (my_value_of_variable, value_get_print_value): Likewise.
2440 (install_visualizer): Change the type of parameter 'var' to
2441 'struct varobjd_dynamic *'. Callers update.
2442 * varobj.h (struct varobj): Moved from varobj.c.
2443 (struct varobj) <dynamic>: New field.
2444
0b76b0ce
SL
24452013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2446
2447 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2448 as the preferred name of r30.
2449 * nios2-linux-tdep.c (reg_offsets): Likewise.
2450 * features/nios2-cpu.xml: Likewise.
2451 * features/nios2-linux.c: Regenerated.
2452 * features/nios2.c: Regenerated.
2453 * regformats/nios2-linux.dat: Regenerated.
2454
4856b6bc
JK
24552013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 Canonicalize directories for EXEC_FILENAME.
2458 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2459 exec_filename.
2460 * utils.c (gdb_realpath_keepfile): New function.
2461 * utils.h (gdb_realpath_keepfile): New declaration.
2462
9b557b58
DE
24632013-10-11 Doug Evans <dje@google.com>
2464
2465 * Makefile.in (GDBFLAGS): New variable.
2466 (run): New rule.
2467
ce13fade
JB
24682013-10-11 Joel Brobecker <brobecker@adacore.com>
2469
2470 * NEWS: Add entry documenting the new "-catch-assert" and
2471 "-catch-exception" GDB/MI commands.
2472
349774ef
JB
24732013-10-11 Joel Brobecker <brobecker@adacore.com>
2474
2475 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2476 "enabled".
2477 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2478 "enabled". Set B->ENABLE_STATE accordingly.
2479 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2480 ada-lang.c.
2481 (create_ada_exception_catchpoint): Add declaration.
2482 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2483 (create_ada_exception_catchpoint): Make non-static. Add new
2484 parameter "disabled". Use it in call to
2485 init_ada_exception_breakpoint.
2486 (catch_ada_exception_command): Add parameter "enabled" in call
2487 to create_ada_exception_catchpoint.
2488 (catch_assert_command): Likewise.
2489
2490 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2491 Add declarations.
2492 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2493 "catch-exception" commands.
2494 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2495 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2496
761269c8
JB
24972013-10-11 Joel Brobecker <brobecker@adacore.com>
2498
2499 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2500 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2501 of all its enumerates with "ada_". Update the rest of this
2502 file throughout.
2503
b4a5b78b
JB
25042013-10-11 Joel Brobecker <brobecker@adacore.com>
2505
2506 * ada-lang.c (ada_decode_exception_location): Delete.
2507 (create_ada_exception_catchpoint): Remove arguments "sal",
2508 "addr_string" and "ops". Add argument "ex_kind" instead.
2509 Adjust implementation accordingly, calling ada_exception_sal
2510 to get the entities it no longer gets passed as arguments.
2511 Document the function's arguments.
2512 (catch_ada_exception_command): Use catch_ada_exception_command_split
2513 instead of ada_decode_exception_location, and update call to
2514 create_ada_exception_catchpoint.
2515 (catch_ada_assert_command_split): Renames
2516 ada_decode_assert_location. Remove parameters "addr_string" and
2517 "ops", and now returns void. Adjust implementation accordingly.
2518 Update the function documentation.
2519 (catch_assert_command): Use catch_ada_assert_command_split
2520 instead of ada_decode_assert_location. Update call to
2521 create_ada_exception_catchpoint.
2522
7ad1d32c 25232013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2524
2525 * utils.h (perror_warning_with_name): Add declaration.
2526 * utils.c (perror_warning_with_name): New function.
2527 * cli/cli-cmds.c (source_script_with_search): Add call to
2528 perror_warning_with_name if from_tty is nul.
2529
7ad1d32c 25302013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2531
2532 * utils.c (perror_string): New function, extracted out of
2533 throw_perror_with_name.
2534 (throw_perror_with_name): Rework to use perror_string.
2535
bcc75809
YQ
25362013-10-11 Yao Qi <yao@codesourcery.com>
2537
2538 * remote.c (discard_pending_stop_replies_in_queue): Update
2539 declaration.
2540 (struct stop_reply) <rs>: New field.
2541 (remove_stop_reply_of_remote_state): New function.
2542 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2543 Callers update. Pass remove_stop_reply_of_remote_state to
2544 QUEUE_iterate.
2545 (remote_parse_stop_reply): Initialize field 'rs'.
2546
05feb193
WN
25472013-10-10 Will Newton <will.newton@linaro.org>
2548
2549 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2550 linux_init_abi.
2551
0d12017b
JB
25522013-10-10 Joel Brobecker <brobecker@adacore.com>
2553
2554 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2555 serial_baud_show_cmd.
2556 (_initialize_cli_cmds): Delete the code creating the
2557 "set/show remotebaud" commands.
2558 * serial.c (baud_rate): Move here from top.c.
2559 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2560 (_initialize_serial): Create "set/show serial baud" commands.
2561 Add "set/show remotebaud" command aliases.
2562 * top.c (baud_rate): Moved to serial.c.
2563 * NEWS: Document the new "set/show serial baud" commands,
2564 replacing "set/show remotebaud".
2565
578d3588
PA
25662013-10-09 Pedro Alves <palves@redhat.com>
2567
2568 * breakpoint.c (insert_bp_location): Use memory_error_message to
2569 build the memory error string.
2570 * c-lang.c: Include "gdbcore.h".
2571 (c_get_string): Use memory_error to throw error.
2572 (target_xfer_memory_error): Delete.
2573 (memory_error_message): New, factored out from
2574 target_xfer_memory_error.
2575 (memory_error): Change parameter type to target_xfer_error.
2576 Rewrite.
2577 (read_memory): Use memory_error instead of
2578 target_xfer_memory_error.
2579 * gdbcore.h: Include "target.h".
2580 (memory_error): Change parameter type to target_xfer_error.
2581 (memory_error_message): Declare function.
2582 * target.c (target_read_memory, target_read_stack)
2583 (target_write_memory, target_write_raw_memory): Return
2584 TARGET_XFER_E_IO on error. Adjust comments.
2585 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2586 instead of EIO.
2587 * target.h (target_read, target_insert_breakpoint)
2588 (target_remove_breakpoint): Adjust comments.
2589 * valprint.c (partial_memory_read): Rename parameter, and adjust
2590 comment.
2591 (val_print_string): Use memory_error_message to build the memory
2592 error string.
2593
c74e1ccf
JK
25942013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2597 result variable. Rename variable fopen_e_ever_failed to
2598 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2599
915215be
PA
26002013-10-09 Pedro Alves <palves@redhat.com>
2601
2602 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2603 (monitor_write_memory_longlongs, monitor_write_memory_block):
2604 Constify 'myaddr' parameter.
2605 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2606 helper.
2607 (monitor_xfer_partial): New function.
2608 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2609 hook. Install a to_xfer_partial hook.
2610
acd13123
TT
26112013-10-09 Tom Tromey <tromey@redhat.com>
2612
2613 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2614 bfd_get_alt_debug_link_info.
2615
40135bb1
JK
26162013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2617
2618 New flag OBJF_NOT_FILENAME.
2619 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2620 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2621 allocate_objfile.
2622 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2623 symbol_file_add_from_bfd.
2624 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2625 allocate_objfile.
2626 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2627 NULL.
2628 * objfiles.h (OBJF_NOT_FILENAME): New.
2629
dc294be5
TT
26302013-10-08 Tom Tromey <tromey@redhat.com>
2631
2632 * Makefile.in (SFILES): Add build-id.c.
2633 (HFILES_NO_SRCDIR): Add build-id.h.
2634 * build-id.c: New file, largely from elfread.c. Modified
2635 most functions.
2636 * build-id.h: New file.
2637 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2638 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2639 Search for dwz file using build-id.
2640 * elfread.c (build_id_bfd_get, build_id_verify)
2641 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2642
db230ce3
JB
26432013-10-08 Joel Brobecker <brobecker@adacore.com>
2644
2645 * ada-lang.c (compare_names_with_case): Renamed from
2646 compare_names, adding a new parameter "casing" and its handling.
2647 New function documentation.
2648 (compare_names): New function, implemented using
2649 compare_names_with_case.
2650
6501c98a
JB
26512013-10-08 Joel Brobecker <brobecker@adacore.com>
2652
2653 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2654
84a1243b
TT
26552013-10-07 Tom Tromey <tromey@redhat.com>
2656
2657 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2658 demangled_names_hash.
2659 (free_objfile): Don't delete the demangled_names_hash.
2660 * objfiles.h (struct objfile_per_bfd_storage)
2661 <demangled_names_hash>: New field.
2662 (struct objfile) <demangled_names_hash>: Move to
2663 objfile_per_bfd_storage.
2664 * symfile.c (reread_symbols): Don't delete the
2665 demangled_names_hash.
2666 * symtab.c (create_demangled_names_hash): Update.
2667 (symbol_set_names): Update.
2668
1da77581
TT
26692013-10-07 Tom Tromey <tromey@redhat.com>
2670
2671 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2672 needs_relocations>: New fields.
2673 (gdb_bfd_requires_relocations): New function.
2674 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2675 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2676 the BFD needs relocations applied.
2677
46ecd527
PA
26782013-10-07 Pedro Alves <palves@redhat.com>
2679
2680 PR breakpoints/11568
2681 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2682 the thread list" instead of "gone".
2683
0c557179
SDJ
26842013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2685
2686 * NEWS: Mention new convenience variable $_exitsignal.
2687 * corelow.c (core_open): Reset exit convenience variables. Set
2688 $_exitsignal to the uncaught signal which generated the corefile.
2689 * infrun.c (handle_inferior_event): Reset exit convenience
2690 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2691 (clear_exit_convenience_vars): New function.
2692 * inferior.h (clear_exit_convenience_vars): New prototype.
2693
1cc47d81
YQ
26942013-10-06 Yao Qi <yao@codesourcery.com>
2695
2696 * varobj.h: Add comments to enum varobj_languages.
2697
73869dc2
DE
26982013-10-04 Doug Evans <dje@google.com>
2699
2700 Add support for DWP file format version 2.
2701 * NEWS: Mention support for DWP file format version 2.
2702 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2703 union of asection, containing_section. New fields virtual_offset
2704 and is_virtual. Change type of readin filed from int to char.
2705 (dwo_sections, dwo_file): Tweak comments.
2706 (dwp_v2_section_ids): New enum.
2707 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2708 str_offsets, types.
2709 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2710 All uses updated.
2711 (virtual_v2_dwo_sections): New struct.
2712 (dwp_hash_table): New fields version, nr_columns. Change type of
2713 section_pool field to a union.
2714 (dwp_file): New field version.
2715 (dwarf2_has_info): Check for virtual sections.
2716 (get_containing_section): New function.
2717 (get_section_bfd_owner, get_section_bfd_section): Call it.
2718 (dwarf2_locate_sections): Update.
2719 (dwarf2_section_empty_p): Update.
2720 (dwarf2_read_section): Handle virtual sections.
2721 (locate_dwz_sections): Update.
2722 (create_dwp_hash_table): Document and handle V2 format.
2723 (locate_v1_virtual_dwo_sections): Renamed from
2724 locate_virtual_dwo_sections and update. All callers updated.
2725 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2726 Delete arg htab. Rename arg section_index to unit_index.
2727 All callers updated.
2728 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2729 All uses updated.
2730 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2731 (lookup_dwo_unit_in_dwp): Add V2 support.
2732 (dwarf2_locate_dwo_sections): Update.
2733 (dwarf2_locate_common_dwp_sections): Renamed from
2734 dwarf2_locate_dwp_sections and update. All callers updated.
2735 (dwarf2_locate_v2_dwp_sections): New function.
2736 (open_and_init_dwp_file): Add V2 support.
2737 (read_str_index): New locals str_section, str_offsets_section.
2738
9a2c3737
PA
27392013-10-04 Pedro Alves <palves@redhat.com>
2740
2741 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2742 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2743 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2744 describing comments with references to ptid.h.
2745 * common/ptid.h: Remove intro description of constructors,
2746 accessors and predicates.
2747 (struct ptid): Reformat.
2748 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2749 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2750 describing comments.
2751
f5371440
JB
27522013-10-04 Joel Brobecker <brobecker@adacore.com>
2753
2754 * aix-thread.c (sync_threadlists): Add missing ')' in call
2755 to ptid_build.
2756
793e1c06
JB
27572013-10-04 Joel Brobecker <brobecker@adacore.com>
2758
2759 * procfs.c (procfs_init_inferior): Fix typo causing the build
2760 to fail.
2761
26f0edc1
JB
27622013-10-04 Joel Brobecker <brobecker@adacore.com>
2763
2764 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2765
5713b9b5
JB
27662013-10-04 Joel Brobecker <brobecker@adacore.com>
2767
2768 * mi/mi-main.c (run_one_inferior): Add function description.
2769 Make ARG a pointer to an integer whose value determines whether
2770 we should "run" or "start" the program.
2771 (mi_cmd_exec_run): Add handling of the "--start" option.
2772 Reject all other command-line options.
2773 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2774
f48ff2a7
YQ
27752013-10-04 Yao Qi <yao@codesourcery.com>
2776
2777 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2778 (struct notif_client) <pending_event>: Moved
2779 to struct remote_notif_state.
2780 <id>: New field.
2781 (struct remote_notif_state) <pending_event>: New field.
2782 (notif_event_xfree): Declare.
2783 * remote-notif.c (handle_notification): Adjust.
2784 (notif_event_xfree): New function.
2785 (do_notif_event_xfree): Call notif_event_xfree.
2786 (remote_notif_state_xfree): Call notif_event_xfree to free
2787 each element in field pending_event.
2788 * remote.c (discard_pending_stop_replies): Remove declaration.
2789 (discard_pending_stop_replies_in_queue): Declare.
2790 (remote_close): Call discard_pending_stop_replies_in_queue
2791 instead of discard_pending_stop_replies.
2792 (remote_start_remote): Adjust.
2793 (stop_reply_xfree): Call notif_event_xfree.
2794 (notif_client_stop): Adjust initialization.
2795 (remote_notif_remove_all): Rename it to ...
2796 (remove_stop_reply_for_inferior): ... this. Update comments.
2797 Don't check INF is NULL.
2798 (discard_pending_stop_replies): Return early if notif_state is
2799 NULL. Adjust. Don't check INF is NULL.
2800 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2801 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2802 (remote_wait_ns): Likewise.
2803
5965e028
YQ
28042013-10-04 Yao Qi <yao@codesourcery.com>
2805
2806 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2807 (notif_queue): Remove.
2808 (remote_notif_process): Add one parameter 'notif_queue'.
2809 Update comments. Callers update.
2810 (remote_async_get_pending_events_token): Remove.
2811 (remote_notif_register_async_event_handler): Remove.
2812 (remote_notif_unregister_async_event_handler): Remove.
2813 (handle_notification): Add parameter 'notif_queue'. Update
2814 comments. Callers update.
2815 (notif_xfree): Remove.
2816 (remote_notif_state_allocate): New function.
2817 (remote_notif_state_xfree): New function.
2818 (_initialize_notif): Remove code to allocate queue.
2819 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2820 (struct remote_notif_state): New.
2821 (handle_notification): Update declaration.
2822 (remote_notif_process): Likewise.
2823 (remote_notif_register_async_event_handler): Remove.
2824 (remote_notif_unregister_async_event_handler): Remove.
2825 (remote_notif_state_allocate): Declare.
2826 (remote_notif_state_xfree): Declare.
2827 * remote.c (struct remote_state) <notif_state>: New field.
2828 (remote_close): Don't call
2829 remote_notif_unregister_async_event_handler. Call
2830 remote_notif_state_xfree.
2831 (remote_open_1): Don't call
2832 remote_notif_register_async_event_handler. Call
2833 remote_notif_state_allocate.
2834
5e5ac9a5
YQ
28352013-10-04 Yao Qi <yao@codesourcery.com>
2836
2837 * varobj.c (create_child_with_value): Remove 'const' from the
2838 type of parameter 'name'.
2839 (varobj_add_child): Likewise.
2840 (install_dynamic_child): Remove 'const' from the type of
2841 parameter 'name'.
2842 (varobj_add_child): Likewise.
2843 (create_child_with_value): Likewise. Update comments. Don't
2844 duplicate 'name'.
2845 (update_dynamic_varobj_children): Duplicate 'name'
2846 and pass it to install_dynamic_child.
2847
06ab7b19
PM
28482013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2849
2850 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2851 conversion logic to occur after PyLong_Check. Comment on order
2852 change significance.
2853 * python/py-arch.c (archpy_disassemble): Comment on order of
2854 conversion for integers and longs.
2855
8ae377e8
PA
28562013-10-03 Pedro Alves <palves@redhat.com>
2857
2858 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2859 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2860 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2861 PTRACE_O_TRACEFORK is not supported.
2862 (linux_test_for_tracesysgood): New function.
2863 (linux_test_for_tracefork): New function, factored out from
2864 linux_check_ptrace_features, and also don't kill child_pid here.
2865
b1328b1b
TG
28662013-10-03 Tristan Gingold <gingold@adacore.com>
2867
2868 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2869 Remove verbose error reporting. Use detected state to
2870 thread_set_state call.
2871 (i386_darwin_dr_get): Fix return type. Remove verbose error
2872 report.
2873 Remove trailing spaces.
2874
901461f8
PA
28752013-10-02 Pedro Alves <palves@redhat.com>
2876
2877 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2878 val_print_optimized_out.
2879 * jv-valprint.c (java_print_value_fields): Likewise.
2880 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2881 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2882 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2883 new optimized out value.
2884 * findvar.c (address_from_register): Likewise.
2885 * frame.c (put_frame_register): Tweak error string to say the
2886 register was not saved, rather than optimized out.
2887 * infcmd.c (default_print_one_register_info): Adjust call to
2888 val_print_optimized_out. Use value_of_register instead of
2889 get_frame_register_value.
2890 * mi/mi-main.c (output_register): Use value_of_register instead of
2891 get_frame_register_value.
2892 * valprint.c (valprint_check_validity): Likewise.
2893 (val_print_optimized_out): New value parameter. If the value is
2894 lval_register, print <not saved> instead.
2895 (value_check_printable, val_print_scalar_formatted): Adjust calls
2896 to val_print_optimized_out.
2897 * valprint.h (val_print_optimized_out): New value parameter.
2898 * value.c (struct value) <optimized_out>: Extend comment.
2899 (error_value_optimized_out): New function.
2900 (require_not_optimized_out): Use it. Use a different string for
2901 lval_register values.
2902 * value.h (error_value_optimized_out): New declaration.
2903 * NEWS: Mention <not saved>.
2904
042a84d9
JB
29052013-10-02 Joel Brobecker <brobecker@adacore.com>
2906
2907 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2908 strcmp to compare two symtab filenames.
2909
6b9780fb
JB
29102013-10-02 Joel Brobecker <brobecker@adacore.com>
2911
2912 * symtab.c (search_symbols_equal): Delete.
2913 (sort_search_symbols_remove_dups): Replace call to
2914 search_symbols_equal by call to compare_search_syms,
2915 adjusting as necessary.
2916
751e7549
PM
29172013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2918
2919 PR python/15579
751e7549
PM
2920 * python/python.c: Document gdb.execute command in Python help.
2921
1efd7661
PM
29222013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2923
2924 * python/py-frame.c (frame_info_to_frame_object): Use
2925 gdbpy_convert_exception. Clean up Python object on failure.
2926
562fc849
PM
29272013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2928
2929 * python/lib/gdb/command/frame_filters.py
2930 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2931 (ShowFrameFilterPriority.invoke): Ditto.
2932
d7561cbb
KS
29332013-10-01 Keith Seitz <keiths@redhat.com>
2934
2935 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2936 (parse_linespec): Make 'argptr' const.
2937 Remove temporary cast of 'argptr' to const char **.
2938 (decode_line_full): Pass const pointer to parse_linespec.
2939 (decode_line_1): Likewise.
2940 (decode_objc): Make local variable 'new_argptr' const.
2941 (find_function_symbols): Remove temporary cast to char *
2942 to find_imps.
2943 * objc-lang.c (find_imps): Make argument 'method' const.
2944 Return const.
2945 * objc-lang.h (find_imps): Likewise.
2946
29472013-10-01 Keith Seitz <keiths@redhat.com>
2948
2949 * completer.c (skip_quoted_chars): Make all arguments const.
2950 Return const.
2951 (skip_quoted): Likewise.
2952 * completer.h (skip_quoted_chars): Likewise.
2953 (skip_quoted): Likewise.
2954 * defs.h (skip_quoted): Remove duplicate declaration.
2955 * jv-exp.y: Include completer.h.
2956 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2957 * p-exp.y: Include completer.h.
2958
29592013-10-01 Keith Seitz <keiths@redhat.com>
2960
2961 * c-exp.y (parse_number): Make first argument const.
2962 Make a copy of the input to manipulate.
2963 (c_parse_escape): Make first argument const.
2964 Make local variable 'tokptr' const.
2965 (parse_string_or_char): Make first two arguments const.
2966 (macro_original_text): Make const.
2967 (lex_one_token): Make local variable 'tokstart' const.
2968 Likewise for local variables named 'p'.
2969 Cast away const for struct stoken (temporary).
2970 * c-lang.h (c_parse_escpae): Make first argument const.
2971 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2972 const.
2973 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2974 var_string case.
2975 * f-exp.y (parse_number): Make first argument const.
2976 (match_string_literal): Make local variable 'tokstart'
2977 const.
2978 (yylex): Make local variable 'p' const.
2979 Cast away const for struct stoken (temporary).
2980 * go-exp.y (parse_number): Make first argument const.
2981 (parse_string_or_char): Likewise.
2982 Make local variable 'tokstart' const.
2983 (lex_one_token): Likewise for numerous locals called 'p'.
2984 Cast away const for struct stoken (temporary).
2985 * jv-exp.y (parse_number): Make first argument const.
2986 Make local variables 'tokstart' and 'tokptr' const.
2987 Cast away const for call to skip_quoted (temporary).
2988 (yylex): Make local variable 'p' const.
2989 Cast away const for struct stoken (temporary).
2990 * m2-exp.y (parse_number): Make local variable 'p' const.
2991 (yylex): Likewise for 'tokstart'.
2992 Cast away const for struct stoken (temporary).
2993 Make local variable 'p' const.
2994 * macroexp.c (get_character_constant): Pass a const string
2995 to c_parse_escape.
2996 (get_string_literal): Likewise.
2997 (macro_expand_next): Make first argument const.
2998 Cast away const for init_shared_buffer.
2999 * macroexp.h (macro_expand_next): Make first argument const.
3000 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3001 Pass a const string to c_parse_escape.
3002 Make local variables 'p' and 'namestart' const.
3003 * parse.c (lexptr): Make const.
3004 (prev_lexptr): Likewise.
3005 (find_template_name_end): Return const.
3006 Make argument const, too.
3007 (parse_exp_in_context): Make first argument const.
3008 Remove the entire const_hack.
3009 (parse_exp_in_context_1): Make first argument const.
3010 * parser-defs.h (find_template_name_end): Return const.
3011 Make argument const, too.
3012 (lexptr): Make const.
3013 (prev_lexptr): Likewise.
3014 * utils.c (parse_escape): Make second argument const.
3015 * utils.h (parse_escape): Likewise.
3016
30172013-10-01 Keith Seitz <keiths@redhat.com>
3018
3019 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3020 is now const.
3021 (block_lookup): Make 'raw_name' and 'name' const.
3022 * ada-lex.l (processString): Update for struct stoken.ptr.
3023 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3024 (operator_stoken): Likewise.
3025 (lex_one_token): Remove temporary cast to char * for
3026 'yylval.sval.ptr'.
3027 * f-exp.y (yylex): Likewise.
3028 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3029 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3030 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3031 'yylval.sval.ptr'.
3032 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3033 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3034 * linespec.c (struct ls_parser): Make 'stream' const.
3035 (find_parameter_list_end): Make argument 'input' and local
3036 variable 'p' const.
3037 (linespec_lexer_lex_string): Make local variables 'start' and
3038 'p' const.
3039 Use skip_spaces_const instead of skip_spaces.
3040 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3041 const.
3042 (parse_linespec): Temporarily cast 'argptr' to const for
3043 'parser->lexer.stream'.
3044 * m2-exp.y (yylex): Remove temporary cast to char * for
3045 'yylval.sval.ptr'.
3046 * objc-lang.c (add_msglist): Make local variable 'p' const.
3047 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3048 (exp : STRING): Make 'sp' const.
3049 (parse_number): Make argument 'p' const.
3050 * parser-defs.h (struct stoken): Make 'ptr' const.
3051
193a8eac
DE
30522013-10-01 Doug Evans <dje@google.com>
3053
3054 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3055
2213e2be
YQ
30562013-10-01 Yao Qi <yao@codesourcery.com>
3057
3058 * varobj.c (c_value_of_root): Remove declaration.
3059 (cplus_value_of_root, java_value_of_root): Likewise.
3060 (ada_value_of_root): Likewise.
3061 (struct language_specific) <value_of_root>: Remove.
3062 (languages): Update initialization.
3063 (check_scope): Move earlier.
3064 (c_value_of_root): Move earlier and rename to ...
3065 (value_of_root_1): ... this.
3066 (value_of_root): Caller update.
3067 (cplus_value_of_root, java_value_of_root): Remove.
3068 (ada_value_of_root): Remove.
3069
c573f273
YQ
30702013-10-01 Yao Qi <yao@codesourcery.com>
3071
3072 * varobj.c (varobj_format_string): Remove "unknown".
3073 (languages): Remove the first element.
3074 * varobj.h (enum varobj_languages): Remove vlang_c.
3075
56250258
YQ
30762013-10-01 Yao Qi <yao@codesourcery.com>
3077
3078 * varobj.c (struct language_specific) <language>: Remove.
3079 (languages): Update the initialization.
3080
29f9ebfa
YQ
30812013-10-01 Yao Qi <yao@codesourcery.com>
3082
3083 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3084 "solib-target.h". Include "windows-tdep.h".
3085 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3086 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3087 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3088 windows-tdep.o to gdb_target_obs.
3089
64870a42
YQ
30902013-10-01 Yao Qi <yao@codesourcery.com>
3091
3092 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3093 "solib-target.h".
3094 (amd64_windows_init_abi): Don't call set_solib_ops and
3095 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3096 windows_init_abi instead.
3097 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3098 "solib-target.h".
3099 (i386_cygwin_init_abi): Don't call set_solib_ops,
3100 set_gdbarch_has_dos_based_file_system and
3101 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3102 windows_init_abi instead.
3103 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3104 (windows_init_abi): New function.
3105 (windows_iterate_over_objfiles_in_search_order): Make it
3106 static.
3107 * windows-tdep.h (windows_init_abi): Declare.
3108 (windows_iterate_over_objfiles_in_search_order): Remove
3109 declaration.
3110
0aebdefa
JB
31112013-10-01 Jerome Guitton <guitton@adacore.com>
3112
3113 Checked in by Joel Brobecker <brobecker@adacore.com>
3114 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3115 incomplete dictionnary instead of None in case of missing
3116 environment variables.
3117 (elinos_init): in case of an incomplete environment, best
3118 effort to load system libraries instead of abort.
3119
1c8e84b0
JB
31202013-10-01 Joel Brobecker <brobecker@adacore.com>
3121
3122 * ada-lang.c (ada_has_this_exception_support): Ignore
3123 mst_solib_trampoline minimal symbols.
3124
61d82a0d
TG
31252013-09-30 Tristan Gingold <gingold@adacore.com>
3126
3127 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3128 hardware watchpoint.
3129 (i386_darwin_dr_set): Support 32 and 64 bit states.
3130 (i386_darwin_dr_get): Likewise.
3131 (i386_darwin_dr_set_control): Make static.
3132 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3133 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3134
dfd4cc63
LM
31352013-09-30 Luis Machado <lgustavo@codesourcery.com>
3136
3137 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3138 Replace TIDGET with ptid_get_lwp.
3139 Replace GET_LWP with ptid_get_lwp.
3140 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3141 Replace BUILD_THREAD with ptid_build.
3142 Replace BUILD_LWP with ptid_build.
3143 Replace PIDGET with ptid_get_pid.
3144 Replace TIDGET with ptid_get_lwp.
3145 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3146 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3147 Replace TIDGET with ptid_get_lwp.
3148 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3149 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3150 Replace TIDGET with ptid_get_lwp.
3151 Replace GET_LWP with ptid_get_lwp.
3152 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3153 * auxv.c: Likewise.
3154 * breakpoint.c: Likewise.
3155 * common/ptid.c (ptid_is_pid): Condense check for
3156 null_ptid and minus_one_ptid.
3157 (ptid_lwp_p): New function.
3158 (ptid_tid_p): New function.
3159 * common/ptid.h: Update comments for accessors.
3160 (ptid_lwp_p): New prototype.
3161 (ptid_tid_p): New prototype.
3162 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3163 * gcore.c: Replace PIDGET with ptid_get_pid.
3164 * gdbthread.h: Likewise.
3165 * gnu-nat.c: Likewise.
3166 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3167 Replace TIDGET with ptid_get_lwp.
3168 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3169 * hppanbsd-nat.c: Likewise.
3170 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3171 Replace TIDGET with ptid_get_lwp.
3172 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3173 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3174 * infcmd.c: Likewise.
3175 * inferior.h: Likewise.
3176 * inflow.c: Likewise.
3177 * infrun.c: Likewise.
3178 * linux-fork.c: Likewise.
3179 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3180 Replace GET_PID with ptid_get_pid.
3181 Replace is_lwp with ptid_lwp_p.
3182 Replace GET_LWP with ptid_get_lwp.
3183 Replace BUILD_LWP with ptid_build.
3184
5b4e221c
MF
31852013-09-28 Mike Frysinger <vapier@gentoo.org>
3186
3187 * common/linux-btrace.c: Move sys/syscall.h out of the
3188 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3189 Also check for SYS_perf_event_open before attempting to buid.
3190
57d63ce2
DE
31912013-09-27 Doug Evans <dje@google.com>
3192
19ac8c2e
DE
3193 * dwarf2read.c (dwarf2_section_info): Add comment.
3194 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3195 All uses updated.
3196 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3197 (dwarf2_read_section): Delete unused local "header". Add section
3198 name to error message.
3199 (create_dwo_in_dwp): Tweak comment.
3200 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3201
a32a8923
DE
3202 * dwarf2read.c (die_reader_specs): Tweak comment.
3203 (get_section_bfd_owner, get_section_bfd_section): New functions.
3204 (get_section_name, get_section_file_name): New functions.
3205 (get_section_id, get_section_flags): New functions.
3206 (*): Use new functions to access section fields.
3207
57d63ce2
DE
3208 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3209 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3210 arg "htab". All callers updated.
3211 (create_debug_types_hash_table): Remove redundant copy of
3212 abbrev_section.
3213 (create_dwo_in_dwp): Tweak comments.
3214 (read_str_index): Tweak comment. Record dwarf form name in static
3215 local.
3216
3736004f
PA
32172013-09-27 Pedro Alves <palves@redhat.com>
3218
3219 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3220 (remote_filename_p): Add comment.
3221 * remote.c (remote_filename_p): Adjust to use
3222 REMOTE_SYSROOT_PREFIX.
3223 * solib.c (solib_find): When deciding whether we need to add a
3224 directory separator, check whether the sysroot is "remote:"
3225 instead of checking whether the patch has a drive spec. Add
3226 comments.
3227
5b5596ff
PA
32282013-09-27 Pedro Alves <palves@redhat.com>
3229
3230 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3231 Delete fields.
3232 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3233 directly.
3234
b5eef7aa
JK
32352013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3236
3237 Fix set debug frame output.
3238 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3239 SENTINEL_FRAME entry lower to match enum frame_type order.
3240
5b856f36
PM
32412013-09-26 Pierre Muller <muller@sourceware.org>
3242
3243 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3244 AMD64_R15_REGNUM when a register index is expected.
3245 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3246 Substitute in array.
3247 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3248 (amd64_push_arguments): Substitute in integer_regnum array.
3249
ade7ed9e
DE
32502013-09-25 Doug Evans <dje@google.com>
3251
d3e81981
DE
3252 * objfiles.c (allocate_objfile): Move comment to better place.
3253
8fb8eb5c
DE
3254 New option "set debug symfile on".
3255 * NEWS: Mention "set debug symfile".
3256 * Makefile.in (SFILES): Add symfile-debug.c.
3257 (COMMON_OBS): Add symfile-debug.o.
3258 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3259 objfile's symbol functions.
3260 * objfiles.h (objfile_set_sym_fns): Declare.
3261 * symfile-debug.c: New file.
3262 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3263 objfile's symbol functions.
3264 (reread_symbols): Ditto.
3265
c256e171
DE
3266 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3267 All uses updated.
3268 (add_symtab_fns): Update prototype.
3269 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3270 (registered_sym_fns): ... this.
3271 (symtab_fns): Update.
3272 (add_symtab_fns): New arg "flavour". All callers updated.
3273 (find_sym_fns): Rewrite to use new sym_fns registry.
3274
f56ce883
DE
3275 * symfile.h (struct sym_fns): Add "objfile" argument to
3276 sym_read_linetable. All uses updated.
3277
20c681d1
DE
3278 * symtab.c (domain_name, search_domain_name): New functions.
3279 * symtab.h (domain_name, search_domain_name): Declare.
3280
ade7ed9e
DE
3281 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3282 map_matching_symbols so objfile is first. All uses updated.
3283 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3284 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3285
7d760051
UW
32862013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3287
3288 PR shlibs/8882
3289 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3290 link map entries.
3291
020f7036
DE
32922013-09-24 Doug Evans <dje@google.com>
3293
3294 * objfiles.c (free_objfile): Move comment.
3295
598402f0
JB
32962013-09-24 Joel Brobecker <brobecker@adacore.com>
3297
3298 * ada-exp.y (string_to_operator): Delete.
3299 (dummy_string_to_ada_operator): Delete.
3300
bf4d6c1c
JB
33012013-09-24 Joel Brobecker <brobecker@adacore.com>
3302
3303 Revert:
3304 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3305 amd64-tdep.c.
3306 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3307 call_dummy_integer_regs, and classify.
3308 * amd64-tdep.h (amd64_classify): Add declaration.
3309 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3310 (amd64_reg_class): Delete, moved to i386-tdep.h.
3311 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3312 Replace call to amd64_classify by call to tdep->classify.
3313 (amd64_push_arguments): Get the list of registers to use for
3314 passing integer parameters from the gdbarch tdep structure,
3315 rather than using a hardcoded one. Replace calls to amd64_classify
3316 by calls to tdep->classify.
3317 (amd64_push_dummy_call): Get the register number used for
3318 the "hidden" argument from tdep->call_dummy_integer_regs.
3319 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3320 and tdep->call_dummy_integer_regs. Set tdep->classify.
3321
849e9755
JB
33222013-09-24 Joel Brobecker <brobecker@adacore.com>
3323
3324 Revert:
3325 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3326 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3327 where tdep->memory_args_by_pointer is non-zero.
3328
c1459fd6
JB
33292013-09-24 Joel Brobecker <brobecker@adacore.com>
3330
3331 Revert:
3332 * i386-tdep.h (struct gdbarch_tdep): Add new field
3333 integer_param_regs_saved_in_caller_frame.
3334 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3335 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3336
20c2e3e0
JB
33372013-09-24 Joel Brobecker <brobecker@adacore.com>
3338
874440b8 3339 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3340 (amd64_windows_classify): Delete.
3341 (amd64_windows_passed_by_integer_register)
3342 (amd64_windows_passed_by_xmm_register)
3343 (amd64_windows_passed_by_pointer)
3344 (amd64_windows_adjust_args_passed_by_pointer)
3345 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3346 (amd64_windows_push_dummy_call): New functions.
3347 (amd64_windows_init_abi): Remove setting of
3348 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3349 tdep->classify, tdep->memory_args_by_pointer and
3350 tdep->integer_param_regs_saved_in_caller_frame.
3351 Add call to set_gdbarch_push_dummy_call.
3352
82bf32bc
JK
33532013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3356 objfile->original_name.
3357
24ba069a
JK
33582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3359
3360 Pass down original filename for objfile.
3361 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3362 * elfread.c (elf_symfile_read): Likewise.
3363 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3364 longer set ORIGINAL_NAME.
3365 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3366 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3367 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3368 symbol_file_add_from_bfd call.
3369 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3370 (macho_check_dsym): Add parameter filenamep. Change function comment.
3371 Set *filenamep.
3372 (macho_symfile_read): New variable dsym_filename. Update
3373 macho_check_dsym call. Use it for symbol_file_add_separate.
3374 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3375 it. Use it for objfile->original_name.
3376 (objfile_name): Return OBFD's filename, if available.
3377 * objfiles.h (allocate_objfile): Add new parameter name.
3378 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3379 * symfile-mem.c (symbol_file_add_from_memory): Update
3380 symbol_file_add_from_bfd call.
3381 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3382 comment for it.
3383 (symbol_file_add_with_addrs): New parameter name, add function comment
3384 for it. Remove variable name. Update allocate_objfile call.
3385 (symbol_file_add_separate): New parameter name, add function comment
3386 for it. Update symbol_file_add_with_addrs call.
3387 (symbol_file_add_from_bfd): New parameter name. Update
3388 symbol_file_add_with_addrs call.
3389 (symbol_file_add): Update symbol_file_add_from_bfd call.
3390 (reread_symbols): New variable original_name. Save
3391 objfile->original_name by it.
3392 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3393 second parameter.
3394
4262abfb
JK
33952013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 Code cleanup: Add objfile_name accessor function.
3398 * ada-lang.c (is_known_support_routine): Use objfile_name.
3399 * auto-load.c (source_gdb_script_for_objfile)
3400 (auto_load_objfile_script): Likewise.
3401 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3402 * dbxread.c (dbx_symfile_read): Likewise.
3403 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3404 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3405 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3406 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3407 (lookup_dwp_signatured_type, lookup_dwo_unit)
3408 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3409 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3410 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3411 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3412 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3413 (read_subrange_type, load_partial_dies, read_partial_die)
3414 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3415 (die_containing_type, build_error_marker_type, lookup_die_type)
3416 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3417 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3418 (get_DW_AT_signature_type, write_psymtabs_to_index)
3419 (save_gdb_index_command): Likewise.
3420 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3421 Likewise.
3422 * expprint.c (dump_subexp_body_standard): Likewise.
3423 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3424 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3425 original_name.
3426 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3427 obj_name, use objfile_name for it, use the variable.
3428 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3429 Use objfile_name.
3430 * machoread.c (macho_symtab_read, macho_check_dsym)
3431 (macho_symfile_relocate): Likewise.
3432 * maint.c (maintenance_translate_address): Likewise.
3433 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3434 * minsyms.c (install_minimal_symbols): Likewise.
3435 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3436 original_name.
3437 (filter_overlapping_sections): Use objfile_name.
3438 (objfile_name): New function.
3439 * objfiles.h (struct objfile): Rename field name to original_name.
3440 (objfile_name): New prototype.
3441 * printcmd.c (sym_info, address_info): Use objfile_name.
3442 * probe.c (parse_probes, collect_probes, compare_probes)
3443 (info_probes_for_ops): Likewise.
3444 * progspace.c (clone_program_space): Likewise.
3445 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3446 (maintenance_info_psymtabs): Likewise.
3447 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3448 (source_section_scripts): Likewise.
3449 * python/py-objfile.c (objfpy_get_filename): Likewise.
3450 * python/py-progspace.c (pspy_get_filename): Likewise.
3451 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3452 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3453 * solib.c (solib_read_symbols): Likewise.
3454 * stabsread.c (scan_file_globals): Likewise.
3455 * stap-probe.c (handle_stap_probe): Likewise.
3456 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3457 (find_separate_debug_file_by_debuglink): Likewise.
3458 (reread_symbols): Likewise. Use the objfile field name renamed to
3459 original_name.
3460 (allocate_symtab): Use objfile_name.
3461 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3462 (dump_objfile, dump_msymbols, dump_symtab_1)
3463 (maintenance_print_msymbols, maintenance_print_objfiles)
3464 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3465 * target.c (target_translate_tls_address, target_info): Likewise.
3466 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3467 objfile_name.
3468
4721dc18
JK
34692013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3470
3471 Code cleanup.
3472 * probe.c (parse_probes): Rename variable objfile_name to
3473 objfile_namestr.
3474
a61d6db8
JK
34752013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3476
3477 Remove solib-sunos.c.
3478 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3479 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3480 * objfiles.c (rt_common_objfile): Remove.
3481 (free_objfile): Remove rt_common_objfile comparison.
3482 * objfiles.h (rt_common_objfile): Remove.
3483 * solib-sunos.c: Remove.
3484 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3485
2659903b
JK
34862013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3487
3488 Remove a.out NetBSD and OpenBSD hosts.
3489 * NEWS (Removed native configurations): New.
3490 * config/arm/nbsdaout.mh: Remove.
3491 * config/i386/nbsdaout.mh: Remove.
3492 * config/i386/obsdaout.mh: Remove.
3493 * config/m68k/nbsdaout.mh: Remove.
3494 * config/sparc/nbsdaout.mh: Remove.
3495 * config/vax/nbsdaout.mh: Remove.
3496 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3497 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3498 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3499 error.
3500 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3501 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3502 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3503
f60e2d5c
TT
35042013-09-23 Tom Tromey <tromey@redhat.com>
3505
3506 * linespec.c (struct minsym_and_objfile): Remove.
3507 (minsym_and_objfile_d): Remove.
3508 (struct linespec, struct collect_info, linespec_parse_basic)
3509 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3510 (compare_msymbols, find_method, find_function_symbols)
3511 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3512 (add_minsym, search_minsyms_for_name): Update.
3513
d3eaaf66
AB
35142013-09-23 Andrew Burgess <aburgess@broadcom.com>
3515
3516 * regcache.c: Add include of valprint.h.
3517 (dump_endian_bytes): Delete.
3518 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3519
2cc762b5
AB
35202013-09-23 Andrew Burgess <aburgess@broadcom.com>
3521
3522 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3523
96181529
PA
35242013-09-19 Pedro Alves <palves@redhat.com>
3525
3526 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3527 breakpoints.
3528
9b3f3ee6
TS
35292013-09-19 Pedro Alves <palves@redhat.com>
3530 Thomas Schwinge <thomas@codesourcery.com>
3531 Yue Lu <hacklu.newborn@gmail.com>
3532
3533 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3534 Take a gdb_byte pointer instead of a char pointer.
3535
3536 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3537 gnu_xfer_partial helper.
3538 (gnu_xfer_partial): New function.
3539 (gnu_target): Don't install a deprecated_xfer_memory hook.
3540 Install a to_xfer_partial hook.
3541
69150c3d
JK
35422013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 Constification.
3545 * main.c (captured_main): Replace catch_command_errors by
3546 catch_command_errors_const. Twice.
3547 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3548 (symbol_file_add): Make name parameter const.
3549 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3550 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3551 variable name. Change their usage accordingly.
3552 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3553 const.
3554 (symbol_file_add_main): Make args parameter const.
3555
086850b2
UW
35562013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3557 Ulrich Weigand <uweigand@de.ibm.com>
3558
3559 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3560 of c_value member.
3561 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3562
ca08a94c 35632013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3564 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3565
3566 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3567 (gnu_create_inferior)
3568 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3569 (set_sig_thread_cmd): Use the lwpid field of ptids to
3570 store/extract thread ids instead of the tid field.
3571 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3572
e4c6a2c4
AB
35732013-09-18 Andrew Burgess <aburgess@broadcom.com>
3574
3575 * infcmd.c (default_print_one_register_info): Add detection of
3576 optimized out values.
3577 (default_print_registers_info): Switch to using
3578 get_frame_register_value.
3579
58c48e72
MM
35802013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3581
3582 * infrun.c (handle_inferior_event): Check if we know the
3583 function start address before setting a resume breakpoint.
3584
c8d37639
PA
35852013-09-18 Pedro Alves <palves@redhat.com>
3586
3587 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3588 minus_one_ptid instead of looking at the ptid's tid field and
3589 comparing that to -1.
3590
71926e28
AB
35912013-09-18 Andrew Burgess <aburgess@broadcom.com>
3592
3593 * main.h (get_gdb_program_name): Remove extra whitespace.
3594
c88a1531
AB
35952013-09-18 Andrew Burgess <aburgess@broadcom.com>
3596
3597 * main.h (get_gdb_program_name): Add declaration.
3598 * main.c (get_gdb_program_name): Add definition.
3599
4390d890
DE
36002013-09-17 Doug Evans <dje@google.com>
3601
3602 * dwarf2read.c: Move definitions of complaint functions to after
3603 forward declarations of local functions.
3604
49fa26b0
PA
36052013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3606 Pedro Alves <palves@redhat.com>
3607
3608 PR gdb/11568
3609 * breakpoint.c (remove_threaded_breakpoints): New function.
3610 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3611 as thread_exit observer.
3612
08d72866
PA
36132013-09-17 Pedro Alves <palves@redhat.com>
3614
3615 PR gdb/15911
3616 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3617 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3618 * corelow.c (core_open):
3619 * frame.h (print_stack_frame, print_frame_info): New
3620 'set_current_sal' parameter.
3621 * infcmd.c (finish_command, kill_command): Adjust call to
3622 print_stack_frame.
3623 * inferior.c (inferior_command): Likewise.
3624 * infrun.c (normal_stop): Likewise.
3625 * linux-fork.c (linux_fork_context): Likewise.
3626 * record-full.c (record_full_goto_entry, record_full_restore):
3627 Likewise.
3628 * remote-mips.c (common_open): Likewise.
3629 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3630 Use it.
3631 (print_frame_info): New 'set_current_sal' parameter. Set the last
3632 displayed sal depending on the new paremeter instead of looking at
3633 print_what.
3634 (backtrace_command_1, select_and_print_frame, frame_command)
3635 (current_frame_command, up_command, down_command): Adjust call to
3636 print_stack_frame.
3637 * thread.c (print_thread_info, restore_selected_frame)
3638 (do_captured_thread_select): Adjust call to print_stack_frame.
3639 * tracepoint.c (tfind_1): Likewise.
3640 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3641 (mi_cmd_stack_info_frame): Likewise.
3642 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3643 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3644
6bc305f5
SDJ
36452013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3646
3647 * value.c (isvoid_internal_fn): Replace "parameter" with
3648 "argument".
3649
0a7cfe2c
SS
36502013-09-16 Stan Shebs <stan@codesourcery.com>
3651
3652 * README: Update references to writing code for GDB.
3653 * configure.ac (build_warnings): Remove obsolete comment.
3654 * configure: Regenerate.
3655 * gdbarch.sh: Remove references to gdbint.texinfo.
3656 * gdbarch.h: Regenerate.
3657 * gdbtypes.c (objfile_type): Remove comments referencing internals
3658 manual and D10V.
3659
a280dbd1
SDJ
36602013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3661
3662 * NEWS: Mention new convenience function $_isvoid.
3663 * value.c (isvoid_internal_fn): New function.
3664 (_initialize_values): Add new convenience function $_isvoid.
3665
04a83fee
PM
36662013-09-16 Pierre Muller <muller@sourceware.org>
3667
3668 * arm-linux-tdep.c: Add "elf/common.h" header.
3669 Remove AT_HWCAP macro definintion as it is provided in
3670 added include file.
3671 * s390-tdep.c: Remove system header <elf.h>
3672 Add "elf/common.h" header for AT_HWCAP definition.
3673 (s390_core_read_description): Use correct CORE_ADDR
3674 for hwcap local variable used as third parameter
3675 of function target_auxv_search.
3676
88505fac
PM
36772013-09-14 Pierre Muller <muller@sourceware.org>
3678 Tom Tromey <tromey@redhat.com>
3679 Pedro Alves <palves@redhat.com>
3680
3681 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3682 mode if operating system doesn't know O_CLOEXEC.
3683
d3846e71
JK
36842013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 Code cleanup.
3687 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3688 inner block.
3689
4ac33720
UW
36902013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3691
3692 * NEWS: Mention TDB support.
3693 * features/s390-tdb.xml: New file.
3694 * features/s390-te-linux64.xml: New file.
3695 * features/s390x-te-linux64.xml: New file.
3696 * features/Makefile (WHICH): Add new tdescs above.
3697 (s390-te-linux64-expedite): Set.
3698 (s390x-te-linux64-expedite): Set.
3699 * features/s390-te-linux64.c: New file (generated).
3700 * features/s390x-te-linux64.c: New file (generated).
3701 * regformats/s390-te-linux64.dat: New file (generated).
3702 * regformats/s390x-te-linux64.dat: New file (generated).
3703 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3704 (HWCAP_S390_TE): Likewise.
3705 (S390_TDB_DWORD0_REGNUM): Likewise.
3706 (S390_TDB_DWORD0_REGNUM): Likewise.
3707 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3708 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3709 (S390_TDB_ATIA_REGNUM): Likewise.
3710 (S390_TDB_R0_REGNUM): Likewise.
3711 (S390_TDB_R1_REGNUM): Likewise.
3712 (S390_TDB_R2_REGNUM): Likewise.
3713 (S390_TDB_R3_REGNUM): Likewise.
3714 (S390_TDB_R4_REGNUM): Likewise.
3715 (S390_TDB_R5_REGNUM): Likewise.
3716 (S390_TDB_R6_REGNUM): Likewise.
3717 (S390_TDB_R7_REGNUM): Likewise.
3718 (S390_TDB_R8_REGNUM): Likewise.
3719 (S390_TDB_R9_REGNUM): Likewise.
3720 (S390_TDB_R10_REGNUM): Likewise.
3721 (S390_TDB_R11_REGNUM): Likewise.
3722 (S390_TDB_R12_REGNUM): Likewise.
3723 (S390_TDB_R13_REGNUM): Likewise.
3724 (S390_TDB_R14_REGNUM): Likewise.
3725 (S390_TDB_R15_REGNUM): Likewise.
3726 (S390_NUM_REGS): Increase.
3727 (S390_IS_TDBREGSET_REGNUM): New macro.
3728 (s390_regmap_tdb): Declare.
3729 (s390_sizeof_tdbregset): Define.
3730 (tdesc_s390_te_linux64): Declare.
3731 (tdesc_s390x_te_linux64): Likewise.
3732 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3733 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3734 (s390_regmap_tdb): New regmap.
3735 (s390_supply_tdb_regset): New function.
3736 (s390_tdb_regset): New regset.
3737 (s390_linux64v2_regset_sections): Add TDB regset to list.
3738 (s390x_linux64v2_regset_sections): Likewise.
3739 (s390_regset_from_core_section): Recognize TDB core note section.
3740 (s390_core_read_description): If HWCAP indicates TE support,
3741 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3742 (s390_gdbarch_init): Handle TDB regset.
3743 (_initialize_s390_tdep): Initialize new tdescs.
3744 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3745 (have_regset_tdb): New variable.
3746 (s390_native_supply): Support register invalidation.
3747 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3748 (check_regset): Treat ENODATA as "regset exists".
3749 (s390_linux_fetch_inferior_registers): Add TDB.
3750 (s390_read_description): Check for TDB existence and select
3751 appropriate tdesc.
3752 * gdbserver/Makefile.in (clean): Add removal of new makefile
3753 targets.
3754 (s390-te-linux64.c): New makefile target.
3755 (s390x-te-linux64.c): Likewise.
3756 * gdbserver/configure.srv (srv_regobj): Append new objects
3757 s390-te-linux64.o and s390x-te-linux64.o.
3758 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3759 s390x-te-linux64.xml, and s390-tdb.xml.
3760 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3761 declaration.
3762 (tdesc_s390_te_linux64): Likewise.
3763 (init_registers_s390x_te_linux64): Likewise.
3764 (tdesc_s390x_te_linux64): Likewise.
3765 (s390_check_regset): Treat ENODATA as "regset exists".
3766 (s390_arch_setup): Add TDB regset support.
3767 (initialize_low_arch): Initialize registers for new tdescs.
3768
2ccd1468
UW
37692013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3770
3771 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3772 (S390_IS_FPREGSET_REGNUM): New macro.
3773 * s390-tdep.c (s390_dwarf_regmap): Make const.
3774 (regnum_is_gpr_full): New function for replacing repeated code.
3775 (s390_pseudo_register_name): Use it.
3776 (s390_pseudo_register_type): Likewise.
3777 (s390_pseudo_register_read): Likewise.
3778 (s390_pseudo_register_write): Likewise.
3779 (s390_unwind_pseudo_register): Likewise.
3780 (s390_regmap_gregset): New format for regmap.
3781 (s390x_regmap_gregset): Likewise.
3782 (s390_regmap_fpregset): Likewise.
3783 (s390_regmap_upper): Likewise.
3784 (s390_regmap_last_break): Likewise.
3785 (s390_regmap_system_call): Likewise.
3786 (s390_supply_regset): Adjust to new regmap format.
3787 (s390_collect_regset): Likewise.
3788 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3789 (s390_native_collect): Likewise.
3790 (supply_gregset): Likewise.
3791 (fill_gregset): Likewise.
3792 (supply_fpregset): Likewise.
3793 (fill_fpregset): Likewise.
3794 (fetch_regset): Likewise.
3795 (store_regset): Likewise.
3796 (s390_linux_fetch_inferior_registers): Likewise.
3797 (s390_linux_fetch_inferior_registers): Likewise.
3798
1aa4cd77
AP
37992013-09-12 Andrew Pinski <apinski@cavium.com>
3800
3801 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3802
d91fab15
UW
38032013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3804
3805 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3806
5a5d8ead
AB
38072013-09-09 Andrew Burgess <aburgess@broadcom.com>
3808
3809 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3810
1385f66c
PA
38112013-09-06 Pedro Alves <palves@redhat.com>
3812
3813 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3814 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3815 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3816 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3817 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3818 gdb_stdlog.
3819
146ec4db
PA
38202013-09-06 Pedro Alves <palves@redhat.com>
3821
3822 * remote-sim.c (dump_mem): Constify buf parameter.
3823 gdbsim_xfer_inferior_memory): Rename to ...
3824 (gdbsim_xfer_memory): ... this. Adjust interface as
3825 target_xfer_partial helper.
3826 (gdbsim_xfer_partial): New function.
3827 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3828 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3829
fcde0081
PA
38302013-09-06 Pedro Alves <palves@redhat.com>
3831
3832 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3833 host_address_to_string, and send debug output to gdb_stdlog.
3834
749c8b38
RW
38352013-09-06 Ricard Wanderlof <ricardw@axis.com>
3836
3837 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3838 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3839 gdb_target_obs for cris target.
3840 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3841 (cris_gdbarch_init): Move calls to
3842 set_gdbarch_fetch_tls_load_module_address and
3843 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3844 Add call to gdbarch_init_osabi.
3845 * cris-linux-tdep.c: New file.
3846 * cris-tdep.h: New file.
3847
43df09d9
AB
38482013-09-06 Andrew Burgess <aburgess@broadcom.com>
3849
3850 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3851 to deprecated_init_ui_hook.
3852
4d09c5b4
AB
38532013-09-06 Andrew Burgess <aburgess@broadcom.com>
3854
3855 * cli/cli-interp.c (_initialize_cli_interp): Add a
3856 command_loop_proc to interp_procs.
3857 * event-top.c (cli_command_loop): Change signature to match
3858 interp_command_loop_ftype.
3859 * event-top.h (cli_command_loop): Same.
3860 * interps.c (interp_new): Require every interpreter to have a
3861 command_loop_proc.
3862 (current_interp_command_loop): Just call the command_loop_proc on
3863 the current interpreter.
3864 * tui/tui-interp.c (_initialize_tui_interp): Add a
3865 command_loop_proc to interp_procs.
3866
8eb3d7b6
RW
38672013-09-06 Ricard Wanderlof <ricardw@axis.com>
3868
3869 * cris-tdep.c (cris_gdbarch_init): Add call to
3870 get_gdbarch_fetch_tls_load_module_address.
3871
18b3c2f5
RW
38722013-09-06 Ricard Wanderlof <ricardw@axis.com>
3873
3874 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3875 (cris_elf_gregset_t): Rename from elf_gregset_t.
3876 (crisv32_elf_gregset_t): Adjust.
3877 (cris_supply_gregset, fetch_core_registers): Adjust.
3878
dc8636ef
RW
38792013-09-06 Ricard Wanderlof <ricardw@axis.com>
3880
3881 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3882
257e6d53
AB
38832013-09-05 Andrew Burgess <aburgess@broadcom.com>
3884
1581d8a7 3885 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3886 references in comments.
1581d8a7 3887 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3888 deprecated_command_loop_hook.
3889 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3890 setup.
1581d8a7 3891 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3892
7c33b57c
PA
38932013-09-05 Pedro Alves <palves@redhat.com>
3894
3895 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3896 local is now int instead of ULONGEST. Print it with %d
3897 instead of paddress.
3898
9f8edbd5
TG
38992013-09-05 Tristan Gingold <gingold@adacore.com>
3900
3901 * MAINTAINERS: Remove avr maintainership.
3902
d5b495b4
PA
39032013-09-05 Pedro Alves <palves@redhat.com>
3904
3905 * findvar.c (value_of_register): Rework in terms of
3906 value_of_register_lazy.
3907
40b91786
MB
39082013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3909
3910 * symfile.c (add_symbol_file_command): Remove trailing
3911 whitespaces and blank line after comment.
3912
6eed1678
PA
39132013-09-05 Pedro Alves <palves@redhat.com>
3914
3915 * tui/tui-regs.c (tui_register_format): Don't look at the
3916 register's name here. Return string representing register
3917 value instead of storing it in the data element.
3918 (tui_get_register): Compare register string representations
3919 instead of register value states and contents.
3920
8eb6bda2
PA
39212013-09-05 Pedro Alves <palves@redhat.com>
3922
3923 PR tui/15933
3924 * tui/tui-regs.c (tui_show_registers): Show registers of the
3925 selected frame, not the current frame.
3926
48b1f08c
RW
39272013-09-05 Ricard Wanderlof <ricardw@axis.com>
3928
3929 * MAINTAINERS (Write After Approval): Add myself to the list.
3930
89e63ee4
DE
39312013-09-04 Doug Evans <dje@google.com>
3932
3933 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3934 (queue_and_load_dwo_tu): New function.
3935 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3936 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3937 Make dependent_cu optional.
3938 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3939 and an older .gdb_index is in use, queue and load all its TUs too.
3940
492c0ab7
JK
39412013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3942
3943 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3944 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3945 variable search_flags.
3946 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3947 (OPF_RETURN_REALPATH): ... here.
3948 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3949 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3950 call. Twice.
3951 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3952 openp call.
3953 * solib.c (solib_find): Likewise. Four times.
3954 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3955 in the function comment and for the realpath_fptr variable.
3956 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3957 (find_and_open_source): Likewise. Twice.
3958 * symfile.c (symfile_bfd_open): Likewise, also twice.
3959
23a44de8
DE
39602013-09-04 Doug Evans <dje@google.com>
3961
3962 * progspace.c (save_current_space_and_thread): Remove unnecessary
3963 call to save_current_inferior.
3964
47061676
AB
39652013-09-04 Andrew Burgess <aburgess@broadcom.com>
3966
3967 * sh64-tdep.c (sh64_do_register): Return after printing message
3968 about unavailable register contents.
3969
41dc8db8
MB
39702013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3971 Pedro Alves <palves@redhat.com>
3972
3973 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3974 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3975 options and collapse into single conditional branch.
41dc8db8 3976
07107ca6
LM
39772013-09-03 Luis Machado <lgustavo@codesourcery.com>
3978
a7ea61cf 3979 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3980 detach_fork.
3981 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3982 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3983 * inferior.h (detach_fork): Remove.
3984 * infrun.c (detach_fork): Adjust comment and make it
3985 static.
3986 (follow_fork): Pass detach_fork parameter to
3987 target_follow_fork.
3988 * linux-nat.c (linux_child_follow_fork): New parameter
3989 detach_fork.
3990 * target.c (target_follow_fork): New parameter detach_fork.
3991 Pass detach_fork as parameter and print its value.
3992 * target.h (struct target_ops) <to_follow_fork>: New int
3993 parameter.
3994 (target_follow_fork): New parameter detach_fork.
3995
3bec2768
JB
39962013-09-03 Joel Brobecker <brobecker@adacore.com>
3997
3998 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3999 Replace sec->bfd by sec->the_bfd_section->owner.
4000
c01cbb3d
YQ
40012013-09-03 Yao Qi <yao@codesourcery.com>
4002
4003 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4004 from linux_has_shared_address_space.
4005 (linux_has_shared_address_space): Call linux_is_uclinux.
4006 * linux-tdep.h (linux_is_uclinux): Declare.
4007 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4008 linux_is_uclinux.
4009
7b00db47
YQ
40102013-09-03 Yao Qi <yao@codesourcery.com>
4011
4012 * config/djgpp/fnchange.lst: Remove entry of
4013 i386-interix-nat.c and i386-interix-tdep.c.
4014 * configure.ac: Remove '*-*-interix*'.
4015 * configure: Re-generated.
4016 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4017 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4018 obsolete comments.
4019 * osabi.c (gdb_osabi_names): Remove "Interix".
4020
0f9741f2
YQ
40212013-09-03 Yao Qi <yao@codesourcery.com>
4022
4023 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4024
1e038f67
MM
40252013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4026
4027 * record.h (record_print_flag) <record_print_src_line,
4028 record_print_insn_range>: Rename into ...
4029 (record_print_flag) <record_print_src_line,
4030 record_print_insn_range>: ... this. Update all users.
4031
9e52adf9
PM
40322013-09-02 Pierre Muller <muller@sourceware.org>
4033
4034 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4035 error code.
4036
a2388568
PM
40372013-09-02 Pierre Muller <muller@sourceware.org>
4038
4039 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4040 by use of plongest function.
4041
9058cc3a
TG
40422013-09-02 Tristan Gingold <gingold@adacore.com>
4043
4044 * NEWS: Add entry mentioning support for native Windows x64
4045 SEH data.
4046
4047 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4048 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4049 (struct amd64_windows_frame_cache): New struct.
4050 (amd64_windows_w2gdb_regnum): New global.
4051 (pc_in_range, amd64_windows_frame_decode_epilogue)
4052 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4053 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4054 (amd64_windows_frame_this_id): New functions.
4055 (amd64_windows_frame_unwind): New static global.
4056 (amd64_windows_skip_prologue): New function.
4057 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4058 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4059 with amd64_windows_skip_prologue.
4060
3161820b 40612013-08-30 Joel Brobecker <brobecker@adacore.com>
4062
4063 GDB 7.6.1 released.
4064
02457c76
PA
40652013-08-30 Pedro Alves <palves@redhat.com>
4066
4067 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4068 SRC_AND_LOC.
4069
e0162910
PA
40702013-08-30 Pedro Alves <palves@redhat.com>
4071
4072 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4073 warning text.
4074
6391ce51
PA
40752013-08-30 Pedro Alves <palves@redhat.com>
4076
4077 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4078 Adjust arguments to print_stack_frame.
4079
d1da0587
PA
40802013-08-30 Pedro Alves <palves@redhat.com>
4081
4082 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4083
adfd8245
PA
40842013-08-30 Pedro Alves <palves@redhat.com>
4085
4086 * frame.h (show_and_print_stack_frame): Delete declaration.
4087
96d9056e
PM
40882013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4089
4090 PR python/15461
96d9056e
PM
4091 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4092 (archpy_name): Check for valid architecture.
4093 (archpy_disassemble): Ditto.
4094
11cb8762
JB
40952013-08-29 Joel Brobecker <brobecker@adacore.com>
4096
4097 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4098 instead of "long long" in call to ptrace64.
4099
1af12a7d
AB
41002013-08-29 Andrew Burgess <aburgess@broadcom.com>
4101
4102 * mi/mi-interp.c (mi_command_loop): Change signature to match
4103 interp_command_loop_ftype.
4104 (mi1_command_loop): Remove.
4105 (mi2_command_loop): Remove.
4106 (mi3_command_loop): Remove.
4107 (mi_interpreter_resume): Remove setting of
4108 deprecated_command_loop_hook.
4109 (_initialize_mi_interp): Set mi_command_loop as the command loop
4110 callback.
4111
acc900c2
SA
41122013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4113
4114 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4115 value_type.
4116
548b762d
SA
41172013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4118
4119 * value.c (allocate_value_contents): Make static.
4120 * value.h (allocate_value_contents): Remove prototype.
4121
08039c9e
SA
41222013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4123
4124 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4125 of assembling value via allocate_value_lazy and attribute setter.
4126 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4127 assembling value via allocate_value_lazy and attribute setter.
4128 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4129 assembling value via allocate_value_lazy and attribute setter.
4130
314c7de9
SA
41312013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4132
4133 * value.c (value_from_contents_and_address): Replace allocate_value and
4134 memcpy with value_from_contents.
4135
8f28f522
PM
41362013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4137
4138 * python/py-framefilter.c (py_print_frame): Remove usage of
4139 PyString_AsString. Use python_string_to_host_string instead.
4140 Refactor function to work with a string as a new allocation
4141 instead of a pointer.
4142 (py_print_frame): Ditto.
4143 * python/lib/gdb/frames.py (return_list): Cain iterators together
4144 instead of adding them as a list.
4145 (_sort_list): Call return_list, and remove duplicate code.
4146 (execute_frame_filters): Convert iterator to a list with list().
4147 * python/lib/gdb/command/frame_filters.py
4148 (SetFrameFilterPriority._set_filter_priority): Convert priority
4149 attribute to an integer.
4150 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4151 wrapper function __next__.
4152 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4153 define as "str".
4154
8ee002df
PM
41552013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4156
4157 PR python/15752
8ee002df
PM
4158 * python/py-framefilter.c (apply_frame_filter): Check
4159 gdb_python_initialized. Exit if the Python frame-filter code
4160 cannot be initialized.
4161
af4c453a
PM
41622013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4163
4164 PR cli/15842
af4c453a
PM
4165 * top.c (print_gdb_version): Remove erroneous newline after help
4166 text.
4167
bf8793bb
YQ
41682013-08-29 Yao Qi <yao@codesourcery.com>
4169
4170 * varobj.c (install_dynamic_child): Remove trailing space.
4171 Add one blank line after variable declaration.
4172
1f0c4988
JK
41732013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4174
4175 PR gdb/15415
4176 * corefile.c (get_exec_file): Use exec_filename.
4177 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4178 * exec.c (exec_close): Free EXEC_FILENAME.
4179 (exec_file_attach): New variable canonical_pathname. Use
4180 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4181 EXEC_FILENAME.
4182 * exec.h (exec_filename): New.
4183 * inferior.c (print_inferior, inferior_command): Use
4184 PSPACE_EXEC_FILENAME.
4185 * mi/mi-main.c (print_one_inferior): Likewise.
4186 * progspace.c (clone_program_space, print_program_space): Likewise.
4187 * progspace.h (struct program_space): New field pspace_exec_filename.
4188 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4189 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4190
59ee9f94
WN
41912013-08-28 Will Newton <will.newton@linaro.org>
4192
4193 * common/linux-ptrace.c: Include stdint.h unconditionally.
4194
c8a2a419
JK
41952013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4196
4197 Code cleanup.
4198 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4199
ffa4ac95
YQ
42002013-08-28 Yao Qi <yao@codesourcery.com>
4201 Pedro Alves <palves@redhat.com>
4202
4203 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4204 instead of stdio_fileopen.
4205 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4206 .Call stderr_fileopen instead of stdio_fileopen.
4207 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4208 [__MINGW32__] (stderr_file_fputs): New function.
4209 (stderr_fileopen): New function.
4210 * ui-file.h (stderr_fileopen): Declare.
4211
69d751e3
DE
42122013-08-27 Doug Evans <dje@google.com>
4213
4214 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4215 (struct dwarf2_per_cu_data): Ditto.
4216 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4217 (process_imported_unit_die): Ditto.
4218 (follow_die_sig_1): Simplify assert.
4219
44f38867
PA
42202013-08-27 Pedro Alves <palves@redhat.com>
4221
4222 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4223 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4224 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4225 windows_xfer_memory directly.
4226 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4227
d28d46b5
PA
42282013-08-27 Pedro Alves <palves@redhat.com>
4229
4230 * darwin-nat.c (darwin_xfer_memory): Delete.
4231 (_initialize_darwin_inferior): Don't install a
4232 deprecated_xfer_memory method.
4233
6211c335
YQ
42342013-08-27 Pedro Alves <pedro@codesourcery.com>
4235 Yao Qi <yao@codesourcery.com>
4236
4237 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4238 (parse_no_frames_option): Remove.
4239 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4240 (mi_cmd_stack_list_args): Adjust.
4241 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4242 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4243 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4244 Caller update.
4245 (list_args_or_locals): New parameter 'skip_unavailable'.
4246 Handle it.
4247 * valprint.c (scalar_type_p): Rename to ...
4248 (val_print_scalar_type_p): ... this. Make extern.
4249 (val_print, value_check_printable): Adjust.
4250 * valprint.h (val_print_scalar_type_p): Declare.
4251 * value.c (value_entirely_unavailable): New function.
4252 * value.h (value_entirely_unavailable): Declare.
4253
4254 * NEWS: Mention the new option "--skip-unavailable" to MI
4255 commands '-stack-list-locals', '-stack-list-arguments' and
4256 '-stack-list-variables'.
4257
242f1fd7
YQ
42582013-08-27 Yao Qi <yao@codesourcery.com>
4259
4260 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4261 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4262 options.
4263 * mi/mi-getopt.c (mi_getopt): Remove.
4264 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4265 'error_on_unknown'.
4266 (mi_getopt): Call mi_getopt_1.
4267 (mi_getopt_silent): New.
4268 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4269
260b681b
DE
42702013-08-26 Doug Evans <dje@google.com>
4271
779bd270
DE
4272 PR symtab/15885
4273 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4274 .gdb_index is in use.
4275 * symfile.c (reread_symbols): Reset objfile->sf.
4276
52e260a3
DE
4277 * NEWS: Document "mt print objfiles" now takes optional regexp.
4278 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4279 regexp of objfiles to print.
4280 (_initialize_symmisc): Update doc string for "mt print objfiles".
4281
260b681b
DE
4282 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4283 missing debug info checks.
4284
a85c52f2
UW
42852013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4286 Ulrich Weigand <uweigand@de.ibm.com>
4287
4288 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4289 line tables generated by XLC compiled binaries.
4290
4f00dda3
DE
42912013-08-23 Doug Evans <dje@google.com>
4292
db68bbae
DE
4293 * symmisc.c (dump_symtab): Delete prototype.
4294 (dump_msymbols, dump_objfile): Ditto.
4295 (maintenance_info_symtabs): Mark as dont_repeat.
4296 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4297
4f00dda3
DE
4298 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4299 debugging printf to better location.
4300
23d577b0
PA
43012013-08-23 Pedro Alves <palves@redhat.com>
4302
4303 * target.c (target_read_live_memory): Change type of 'ret' local
4304 to LONGEST.
4305
00d84524
PA
43062013-08-23 Pedro Alves <palves@redhat.com>
4307
4308 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4309 (remote_read_bytes): Change return type to LONGEST, and adjust to
4310 return a target_xfer_error on error.
4311 (remote_xfer_memory): Delete.
4312 (remote_flash_write): Change type of 'ret' local to LONGEST.
4313 (remote_xfer_partial, remote_xfer_partial): Adjust.
4314 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4315
1ed3ee94
PM
43162013-08-23 Pierre Muller <muller@sourceware.org>
4317
4318 ARI fix: Push # directives to start of line.
4319 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4320
9eaabc75
MW
43212013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4322
4323 PR gdb/15501
4324 * breakpoint.c (enable_command, disable_command): Iterate over
4325 all specified breakpoint locations.
4326
101158d9
LM
43272013-08-22 Luis Machado <lgustavo@codesourcery.com>
4328
4329 * common/linux-ptrace.c (linux_fork_to_function): Push #
4330 directives to the start of the line.
4331 (linux_check_ptrace_features): Fix warning message to use
4332 the "_" markup.
4333
96d7229d
LM
43342013-08-22 Luis Machado <lgustavo@codesourcery.com>
4335
4336 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4337 nat/linux-waitpid.h.
4338 (linux-waitpid.o): New object file rule.
4339 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4340 (current_ptrace_options): Moved from linux-nat.c.
4341 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4342 parameters.
4343 (linux_fork_to_function): New function.
4344 (linux_grandchild_function): Likewise.
4345 (linux_child_function): Likewise.
4346 (linux_check_ptrace_features): New function, heavily
4347 based on linux-nat.c:linux_test_for_tracefork.
4348 (linux_enable_event_reporting): New function.
4349 (ptrace_supports_feature): Likewise.
4350 (linux_supports_tracefork): Likewise.
4351 (linux_supports_traceclone): Likewise.
4352 (linux_supports_tracevforkdone): Likewise.
4353 (linux_supports_tracesysgood): Likewise.
4354 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4355 gdbserver/linux-low.c.
4356 (linux_enable_event_reporting): New declaration.
4357 (linux_supports_tracefork): Likewise.
4358 (linux_supports_traceclone): Likewise.
4359 (linux_supports_tracevforkdone): Likewise.
4360 (linux_supports_tracesysgood): Likewise.
4361 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4362 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4363 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4364 * config/arm/linux.mh (NATDEPFILES): Likewise.
4365 * config/i386/linux.mh (NATDEPFILES): Likewise.
4366 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4367 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4368 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4369 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4370 * config/mips/linux.mh (NATDEPFILES): Likewise.
4371 * config/pa/linux.mh (NATDEPFILES): Likewise..
4372 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4373 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4374 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4375 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4376 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4377 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4378 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4379 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4380 ptrace's 4th argument's types.
4381 Check the type of PTRACE_TYPE_ARG4.
4382 * configure: Regenerate.
4383 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4384 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4385 (linux_supports_tracefork_flag): Remove.
4386 (linux_supports_tracesysgood_flag): Likewise.
4387 (linux_supports_tracevforkdone_flag): Likewise.
4388 (current_ptrace_options): Moved to
4389 common/linux-ptrace.c.
4390 (linux_tracefork_child): Remove.
4391 (my_waitpid): Remove.
4392 (linux_test_for_tracefork): Renamed to
4393 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4394 (linux_test_for_tracesysgood): Remove.
4395 (linux_supports_tracesysgood): Remove.
4396 (linux_supports_tracefork): Remove.
4397 (linux_supports_tracevforkdone): Remove.
4398 (linux_enable_tracesysgood): Remove.
4399 (linux_enable_event_reporting): Remove.
4400 (linux_init_ptrace): New function.
4401 (linux_child_post_attach): Call linux_init_ptrace.
4402 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4403 (linux_child_follow_fork): Call linux_supports_tracefork
4404 and linux_supports_tracevforkdone.
4405 (linux_child_insert_fork_catchpoint): Call
4406 linux_supports_tracefork.
4407 (linux_child_insert_vfork_catchpoint): Likewise.
4408 (linux_child_set_syscall_catchpoint): Call
4409 linux_supports_tracesysgood.
4410 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4411 * nat/linux-nat.h: New file.
4412 * nat/linux-waitpid.c: New file.
4413 * nat/linux-waitpid.h: New file.
4414
9f948660
SDJ
44152013-08-22 Samuel Bronson <naesten@gmail.com>
4416
4417 ARM Linux support for `catch syscall'.
4418 * syscalls/arm-linux.py: New file.
4419 * syscalls/arm-linux.xml: Likewise.
4420 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4421 (arm_linux_init_abi): Register the new function and syscall xml file.
4422 * data-directory/Makefile.in: Install the new syscall xml file.
4423 * NEWS: Brag about this.
4424
6be7b56e
PA
44252013-08-22 Pedro Alves <palves@redhat.com>
4426
4427 PR gdb/15871
4428 * corefile.c (target_xfer_memory_error): New function.
4429 (memory_error): Defer EIO to target_memory_error.
4430 (read_memory): Use target_xfer_partial, and handle finer-grained
4431 target xfer errors.
4432 * target.c (target_xfer_error_to_string): New function.
4433 (memory_xfer_partial_1): If memory is known to be
4434 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4435 (target_xfer_partial): Make extern.
4436 * target.h (enum target_xfer_error): New enum.
4437 (target_xfer_error_to_string): Declare function.
4438 (target_xfer_partial): Declare function.
4439 (struct target_ops) <xfer_partial>: Adjust describing comment.
4440
bcbec14e
AM
44412013-08-22 Alan Modra <amodra@gmail.com>
4442
4443 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4444 * configure.tgt: Likewise as targets.
4445
fc474241
DE
44462013-08-20 Doug Evans <dje@google.com>
4447
4448 * buildsym.c (subfile_stack): Move here from buildsym.h.
4449 (pending_macros): Ditto.
4450 (get_macro_table): New function.
4451 (buildsym_init): Initialize subfile_stack.
4452 * coffread.c (type_vector,type_vector_length): Moved here from
4453 buildsym.h.
4454 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4455 (coff_symtab_read): Use it.
4456 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4457 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4458 with call to get_macro_table.
4459 * stabsread.c (type_vector,type_vector_length): Moved here from
4460 buildsym.h.
4461 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4462 * buildsym.h (get_macro_table): Declare.
4463
bec71544
TT
44642013-08-20 Tom Tromey <tromey@redhat.com>
4465
4466 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4467 Update.
4468 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4469
0002ad5f
DE
44702013-08-20 Doug Evans <dje@google.com>
4471
4472 * blockframe.c: Remove #include "psymtab.h".
4473 * cp-support.c: Ditto.
4474 * source.c: Ditto.
4475 * stack.c: Ditto.
4476
df302446
TT
44772013-08-20 Tom Tromey <tromey@redhat.com>
4478
4479 PR python/15816:
4480 * exceptions.h (return_mask): Now an enum.
4481 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4482 enum constants.
4483
df6d5441
TT
44842013-08-20 Tom Tromey <tromey@redhat.com>
4485
4486 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4487 get_objfile_arch.
4488 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4489 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4490 * jit.c (jit_object_close_impl): Update.
4491 * jv-lang.c (get_dynamics_objfile): Update.
4492 * linespec.c (add_minsym): Use get_dynamics_objfile.
4493 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4494 (allocate_objfile): Don't initialize 'gdbarch' field.
4495 (get_objfile_arch): Update.
4496 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4497 moved from...
4498 (struct objfile) <gdbarch>: ... here. Remove.
4499 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4500 get_objfile_arch.
4501 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4502
f5aee5ee
AM
45032013-08-20 Alan Modra <amodra@gmail.com>
4504
4505 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4506 for IBM long double nan and inf.
4507 (floatformat_is_negative, floatformat_classify,
4508 floatformat_mantissa): Similarly.
4509 (floatformat_ieee_single, floatformat_ieee_double,
4510 floatformat_ieee_quad, floatformat_arm_ext,
4511 floatformat_ia64_spill): Delete unused vars.
4512 (_initialize_doublest): Delete unused function.
4513 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4514 little-endian variants of floatformat_ibm_long_double.
4515
33b60d58 45162013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4517
33b60d58
LM
4518 * Makefile.in (SFILES): Remove common/target-common.c and
4519 add target/waitstatus.c.
4520 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4521 target/resume.h, target/wait.h and target/waitstatus.h.
4522 (COMMON_OBS): Remove target-common.o and add
4523 waitstatus.o.
4524 (target-common.o): Remove.
4525 (waitstatus.o): New target object file.
4526 * common/target-common.c: Move contents to
4527 target/waitstatus.c and remove.
4528 * common/target-common.h: Move contents to other files and
4529 remove.
4530 (enum resume_kind: Move to target/resume.h.
4531 (TARGET_WNOHANG): Move to target/wait.h.
4532 (enum target_waitkind): Move to target/waitstatus.h.
4533 (struct target_waitstatus): Likewise.
4534 * target.h: Do not include target-common.h and
4535 include target/resume.h, target/wait.h and
4536 target/waitstatus.h.
4537 * target/resume.h: New file.
4538 * target/wait.h: New file.
4539 * target/waitstatus.h: New file.
4540 * target/waitstatus.c: New file.
4541
12696c10
PA
45422013-08-19 Pedro Alves <palves@redhat.com>
4543
4544 * linux-nat.c (linux_test_for_tracefork)
4545 (linux_test_for_tracesysgood, linux_child_follow_fork)
4546 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4547 (linux_nat_wait_1): Extend comment.
4548 (linux_async_pipe): Add comment.
4549
ba89f962
KB
45502013-08-15 Kevin Buettner <kevinb@redhat.com>
4551
4552 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4553 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4554 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4555 Update to account for fact that PC is now a pseudo-register.
4556 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4557 cases for RL78_PC_REGNUM.
4558
35ab155d
MB
45592013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4560
4561 PR cli/15841
4562 * top.c (quit_force): Skip writing history file
4563 if input is not from terminal.
4564
0d031856
TT
45652013-08-14 Tom Tromey <tromey@redhat.com>
4566
4567 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4568 resultthreadlist>: New fields.
4569 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4570 (remote_get_threadlist, remote_threadlist_iterator): Use
4571 new fields. Remove static variables.
4572
ee154bee
TT
45732013-08-14 Tom Tromey <tromey@redhat.com>
4574
4575 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4576 remote_watch_data_address>: New fields.
4577 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4578 (process_stop_reply, remote_wait_as)
4579 (remote_check_watch_resources, remote_stopped_data_address): Update.
4580
88b496c3
TT
45812013-08-14 Tom Tromey <tromey@redhat.com>
4582
4583 * remote.c (struct remote_state) <async_client_callback,
4584 async_client_context>: New fields.
4585 (async_client_callback, async_client_context): Remove.
4586 (remote_async_serial_handler, remote_async): Update.
4587
2f65bcb7
TT
45882013-08-14 Tom Tromey <tromey@redhat.com>
4589
4590 * remote.c (sizeof_pkt): Remove.
4591 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4592
b80fafe3
TT
45932013-08-14 Tom Tromey <tromey@redhat.com>
4594
4595 * remote.c (struct remote_state) <use_threadinfo_query,
4596 use_threadextra_query>: New fields.
4597 (remote_threads_info, remote_threads_extra_info)
4598 (remote_open_1): Update.
4599
8e88304f
TT
46002013-08-14 Tom Tromey <tromey@redhat.com>
4601
4602 * remote.c (struct remote_state) <finished_object,
4603 finished_annex, finished_offset>: New fields.
4604 (remote_read_qxfer): Use remote_state fields; remove static
4605 variables.
4606
280ceea3
TT
46072013-08-14 Tom Tromey <tromey@redhat.com>
4608
4609 * remote.c (struct remote_state) <last_sent_step>:
4610 New field.
4611 (last_sent_step): Remove.
4612 (remote_resume, remote_wait_as): Update.
4613
b73be471
TT
46142013-08-14 Tom Tromey <tromey@redhat.com>
4615
4616 * remote.c (struct remote_state) <last_sent_signal>:
4617 New field.
4618 (last_sent_signal): Remove.
4619 (new_remote_state, remote_resume, remote_wait_as): Update.
4620
5e4a05c4
TT
46212013-08-14 Tom Tromey <tromey@redhat.com>
4622
4623 * remote.c (struct remote_state) <last_program_signals_packet>:
4624 New field.
4625 (last_program_signals_packet): Remove.
4626 (remote_program_signals, remote_open_1): Update.
4627
747dc59d
TT
46282013-08-14 Tom Tromey <tromey@redhat.com>
4629
4630 * remote.c (struct remote_state) <last_pass_packet>:
4631 New field.
4632 (last_pass_packet): Remove.
4633 (remote_pass_signals, remote_open_1): Update.
4634
262e1174
TT
46352013-08-14 Tom Tromey <tromey@redhat.com>
4636
4637 * remote.c (struct remote_state) <remote_traceframe_number>:
4638 New field.
4639 (remote_traceframe_number): Remove.
4640 (new_remote_state, remote_open_1, set_remote_traceframe)
4641 (remote_trace_find): Update.
4642
47f8a51d
TT
46432013-08-14 Tom Tromey <tromey@redhat.com>
4644
4645 * remote.c (struct remote_state) <general_thread, continue_thread>:
4646 New fields.
4647 (general_thread, continue_thread): Remove.
4648 (record_currthread, set_thread, set_general_process)
4649 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4650 (extended_remote_mourn_1): Update.
4651
5d93a237
TT
46522013-08-14 Tom Tromey <tromey@redhat.com>
4653
4654 * remote.c (struct remote_state) <remote_desc>: New field.
4655 (remote_desc): Remove.
4656 (remote_threads_info, remote_threads_extra_info, remote_close)
4657 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4658 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4659 (remote_hostio_send_command, remote_file_put, remote_file_get)
4660 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4661 (remote_async, remote_new_objfile, set_range_stepping): Update.
4662
cf792862
TT
46632013-08-14 Tom Tromey <tromey@redhat.com>
4664
4665 * remote.c (remote_state): Now a pointer.
4666 (get_remote_state_raw): Update.
4667 (new_remote_state): New function.
4668 (_initialize_remote): Use new_remote_state.
4669
dc473cfb
TT
46702013-08-14 Tom Tromey <tromey@redhat.com>
4671
4672 * remote.c (remote_protocol_features): Now const.
4673
85ec6ce7
TT
46742013-08-14 Tom Tromey <tromey@redhat.com>
4675
4676 * remote.c (crc32_table, crc32): Remove.
4677 (remote_verify_memory): Use xcrc32.
4678
73033f12
SDJ
46792013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4680
4681 * value.h (create_internalvar_type_lazy): Adjust prototype
4682 declaration.
4683
5c30d39a
AB
46842013-08-13 Andrew Burgess <aburgess@broadcom.com>
4685
4686 * common/format.c (parse_format_string): Don't allow '#' flag for
4687 pointer arguments in format string.
4688
1a66331e
PM
46892013-08-13 Pierre Muller <muller@sourceware.org>
4690
fde605f3 4691 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4692 if rl_get_screen_size did not return useful values.
4693
b4013987
AA
46942013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4695
4696 PR breakpoints/15117
4697 * linespec.c (linespec_parse_basic): Check for convenience
4698 variable or history value while parsing.
4699
959b6a66
SDJ
47002013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4701
4702 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4703 AVR.
4704 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4705 different signals between the generic Linux kernel implementation
4706 and AVR's.
4707 (avr_linux_gdb_signal_from_target): Delete.
4708 (avr_linux_gdb_signal_to_target): Delete.
4709 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4710
24a55014
DE
47112013-08-09 Doug Evans <dje@google.com>
4712
4713 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4714 entries.
4715
eb14d406
SDJ
47162013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4717
4718 * linux-tdep.c: Define enum with generic signal numbers.
4719 (linux_gdb_signal_from_target): New function.
4720 (linux_gdb_signal_to_target): Likewise.
4721 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4722 methods to the functions above.
4723 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4724 (linux_gdb_signal_to_target): Likewise.
4725 * alpha-linux-tdep.c: Define new enum with signals different
4726 from generic Linux kernel.
4727 (alpha_linux_gdb_signal_from_target): New function.
4728 (alpha_linux_gdb_signal_to_target): Likewise.
4729 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4730 with the functions mentioned above.
4731 * avr-tdep.c: Define enum with differences between Linux kernel
4732 and AVR signals.
4733 (avr_linux_gdb_signal_from_target): New function.
4734 (avr_linux_gdb_signal_to_target): Likewise.
4735 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4736 the functions mentioned above.
4737 * sparc-linux-tdep.c: Define enum with differences between SPARC
4738 and generic Linux kernel signal numbers.
4739 (sparc32_linux_gdb_signal_from_target): New function.
4740 (sparc32_linux_gdb_signal_to_target): Likewise.
4741 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4742 to the functions defined above.
4743 * xtensa-linux-tdep.c: Define enum with differences between
4744 Xtensa and Linux kernel generic signals.
4745 (xtensa_linux_gdb_signal_from_target): New function.
4746 (xtensa_linux_gdb_signal_to_target): Likewise.
4747 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4748 to the functions defined above.
4749 * mips-linux-tdep.c: Define enum with differences between
4750 signals in MIPS and Linux kernel generic ones.
4751 (mips_gdb_signal_to_target): New function.
4752 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4753 only different signals from the Linux kernel generic.
4754 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4755 the functions defined above.
4756 * mips-linux-tdep.h (enum mips_signals): Remove.
4757
156d08c8
PA
47582013-08-09 Pedro Alves <palves@redhat.com>
4759
4760 * avr-tdep.c (XMALLOC): Delete macro.
4761 * cli/cli-dump.c (XMALLOC): Delete macro.
4762
db229724
PA
47632013-08-09 Pedro Alves <palves@redhat.com>
4764
4765 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4766 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4767 (fopen_with_cleanup, add_dump_command): Make static.
4768 * cli/cli-dump.h: Delete file.
4769 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4770 cli/cli-dump.h.
4771
3f12a589
PA
47722013-08-09 Pedro Alves <palves@redhat.com>
4773
4774 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4775 error message.
4776
c718be47
PA
47772013-08-09 Pedro Alves <palves@redhat.com>
4778
156d08c8 4779 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4780 error message.
4781
1e351ed1
PA
47822013-08-09 Pedro Alves <palves@redhat.com>
4783
4784 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4785 (gcore_command): Use tilde_expand here, and when showing the
4786 filename to the user, show the expanded version.
4787
1ed8d800
YQ
47882013-08-09 Yao Qi <yao@codesourcery.com>
4789
4790 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4791 'entryval' is set.
4792
47ecca85
PA
47932013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4794
4795 * gcore.c (create_gcore_bfd): Use tilde_expand.
4796
82a0a75f
YQ
47972013-08-08 Yao Qi <yao@codesourcery.com>
4798
4799 * frame.h (read_frame_local): Declare.
4800 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4801 read_frame_local.
4802 * stack.c (read_frame_local): New.
4803
5c4aa40b
YQ
48042013-08-08 Yao Qi <yao@codesourcery.com>
4805
4806 * mi/mi-cmd-stack.c: Update comments to function
4807 list_args_or_locals.
4808
b93601f3
TT
48092013-08-07 Tom Tromey <tromey@redhat.com>
4810
4811 PR symtab/15028:
4812 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4813 (process_psymtab_comp_unit_reader): Use it.
4814 (process_psymtab_comp_unit): Update. Add "pretend_language"
4815 argument.
4816 (dwarf2_build_psymtabs_hard): Update.
4817 (scan_partial_symbols): Pass CU's language to
4818 process_psymtab_comp_unit.
4819
fa760f46
TT
48202013-08-07 Tom Tromey <tromey@redhat.com>
4821
4822 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4823 (dwarf2_gdb_index_functions): Update.
4824 * psymtab.c (find_symbol_file_from_partial): Remove.
4825 (psym_functions): Update.
4826 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4827 Remove.
4828
bf6d8a91
TT
48292013-08-07 Tom Tromey <tromey@redhat.com>
4830
4831 * symfile.c (set_initial_language): Look up "main" symbol
4832 and use its language.
4833 * symtab.c (find_main_filename): Remove.
4834 * symtab.h (find_main_filename): Remove.
4835
f9125b6c
TT
48362013-08-07 Tom Tromey <tromey@redhat.com>
4837
4838 * dwarf2read.c (recursively_compute_inclusions): Add
4839 "immediate_parent" argument. Set symtab's "user" field
4840 if not set.
4841 (compute_symtab_includes): Update.
4842
fdbb204b
TT
48432013-08-07 Tom Tromey <tromey@redhat.com>
4844
4845 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4846 when adding label symbols.
4847
49de1690
UW
48482013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4849 Ulrich Weigand <uweigand@de.ibm.com>
4850
4851 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4852 * configure.host (powerpc64-*-aix*): Likewise.
4853
b08ee99f
UW
48542013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4855 Ulrich Weigand <uweigand@de.ibm.com>
4856
4857 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4858 is defined.
4859 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4860 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4861 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4862 * configure.ac: Check for ptrace64.
4863 * configure, config.in: Regenerate.
4864
fecf803e
UW
48652013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4866 Ulrich Weigand <uweigand@de.ibm.com>
4867
4868 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4869 Call ptrace64 instead of ptrace if defined.
4870 Add macro addr_ptr to take care of ptrace address argument.
4871 (pdc_read_regs): Likewise.
4872 (pdc_write_regs): Likewise.
4873 (aix_thread_resume): Likewise.
4874 (fetch_regs_kernel_thread): Likewise.
4875 (store_regs_kernel_thread): Likewise.
4876
3bb5e4a8
AB
48772013-08-07 Anton Blanchard <anton@samba.org>
4878
4879 * MAINTAINERS: Add myself to Write After Approval.
4880
12070676
TT
48812013-08-05 Tom Tromey <tromey@redhat.com>
4882
4883 * aix-thread.c (_initialize_aix_thread): Use
4884 complete_target_initialization.
4885 * bsd-uthread.c (_initialize_bsd_uthread): Use
4886 complete_target_initialization.
4887 * dec-thread.c (_initialize_dec_thread): Use
4888 complete_target_initialization.
4889 * ravenscar-thread.c (_initialize_ravenscar): Use
4890 complete_target_initialization.
4891 * sol-thread.c (_initialize_sol_thread): Use
4892 complete_target_initialization.
4893 * spu-multiarch.c (_initialize_spu_multiarch): Use
4894 complete_target_initialization.
4895
7c7b6655
TT
48962013-08-05 Tom Tromey <tromey@redhat.com>
4897
4898 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4899 * ada-lang.c (ada_lookup_simple_minsym): Return
4900 bound_minimal_symbol.
4901 * ada-lang.h (ada_lookup_simple_minsym): Update.
4902 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4903 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4904 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4905 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4906 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4907 * minsyms.c (msymbol_objfile): Remove.
4908 (lookup_minimal_symbol_internal): New function, from
4909 lookup_minimal_symbol.
4910 (lookup_minimal_symbol): Rewrite using
4911 lookup_minimal_symbol_internal.
4912 (lookup_bound_minimal_symbol): New function.
4913 * minsyms.h (msymbol_objfile): Remove.
4914 (lookup_bound_minimal_symbol): Declare.
4915 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4916 * parse.c (write_exp_msymbol): Change parameter to a
4917 bound_minimal_symbol.
4918 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4919 * parser-defs.h (write_exp_msymbol): Update.
4920 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4921 * symfile.c (simple_read_overlay_table): Use
4922 lookup_bound_minimal_symbol.
4923 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4924 (search_symbols): Likewise.
4925 (print_msymbol_info): Take a bound_minimal_symbol argument.
4926 (symtab_symbol_info, rbreak_command): Update.
4927 * symtab.h (struct symbol_search) <msymbol>: Change type
4928 to bound_minimal_symbol.
4929 * valops.c (find_function_in_inferior): Use
4930 lookup_bound_minimal_symbol.
4931 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4932
934b9bac
JK
49332013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 Code cleanup.
4936 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4937 to ...
4938 (async_cleanup_sigint_signal_handler): ... this.
4939 (initialize_sigint_signal_handler): Remove declaration.
4940 (handle_remote_sigint): Rename the declaration to ...
4941 (async_handle_remote_sigint): ... this.
4942 (handle_remote_sigint_twice): Rename the declaration to ...
4943 (async_handle_remote_sigint_twice): ... this.
4944 (async_remote_interrupt, async_remote_interrupt_twice)
4945 (remote_interrupt): Remove the declarations.
4946 (remote_interrupt_twice): Rename the declaration ...
4947 (sync_remote_interrupt_twice): ... this.
4948 (sigint_remote_twice_token): Rename the variable to ...
4949 (async_sigint_remote_twice_token): ... this.
4950 (sigint_remote_token): Rename the variable to ...
4951 (async_sigint_remote_token): ... this.
4952 (initialize_sigint_signal_handler): Rename the function to ...
4953 (async_initialize_sigint_signal_handler): ... this. Update the name
4954 inside.
4955 (handle_remote_sigint): Rename the function to ...
4956 (async_handle_remote_sigint): ... this. Update the names inside.
4957 (handle_remote_sigint_twice): Rename the function to ...
4958 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4959 (cleanup_sigint_signal_handler): Rename the function to ...
4960 (async_cleanup_sigint_signal_handler): ... this.
4961 (remote_interrupt): Rename the function to ...
4962 (sync_remote_interrupt): this. Update the names inside.
4963 (remote_interrupt_twice): Rename the function to ...
4964 (sync_remote_interrupt_twice): this. Update the names inside.
4965 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4966 (_initialize_remote): Update the names inside.
4967
3a1115a0
TT
49682013-08-02 Tom Tromey <tromey@redhat.com>
4969
4970 PR symtab/15719:
4971 * breakpoint.c (update_watchpoint, watchpoint_check)
4972 (watch_command_1): Update.
4973 * eval.c (fetch_subexp_value): Add "preserve_errors"
4974 parameter.
4975 * ppc-linux-nat.c (check_condition): Update.
4976 * value.h (fetch_subexp_value): Update.
4977
58b19776
AB
49782013-08-02 Andrew Burgess <aburgess@broadcom.com>
4979
4980 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4981 add_file_handler.
4982
ec94af83
DE
49832013-08-01 Doug Evans <dje@google.com>
4984
7ee85ab1
DE
4985 PR symtab/15691
4986 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4987 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4988 Add assert of sig_entry->dwo_unit == NULL.
4989 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4990 had already been read.
4991 (read_signatured_type): Set per_cu.tu_read.
4992
b846d303
DE
4993 PR symtab/15695
4994 * valops.c (value_struct_elt): Add missing call to check_typedef.
4995 (value_find_oload_method_list): Ditto.
4996
b52109bc
DE
4997 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4998 effectively, struct symbol_search **.
4999 (make_cleanup_free_search_symbols): Change arg to struct
5000 symbol_search **. All callers updated.
5001 (compare_search_syms): Compare symtab file name and block as well.
5002 (search_symbols_equal): New function.
5003 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5004 New args new_head, new_tail. Result is now void. Remove dups after
5005 sorting the symbols.
5006 (search_symbols): Sort all found symbols once, after all have been
5007 found, and remove duplicates. Simplify cleanup tracking of result.
5008 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5009
ec94af83
DE
5010 Further workarounds for binutils/15021.
5011 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5012 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5013 Watch for duplicate symtabs coming from type units.
5014 (compute_symtab_includes): Update call to
5015 recursively_compute_inclusions. Build vector of included symtabs
5016 instead of per_cus.
5017 * symtab.h (symtab_ptr): New typedef.
5018 (DEF_VEC_P (symtab_ptr)): New VEC type.
5019 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5020 instead.
5021
b2ae85cf
AB
50222013-08-01 Andrew Burgess <aburgess@broadcom.com>
5023
5024 * cli/cli-script.c (script_from_file): Remove use of
5025 error_pre_print.
5026 * main.c (captured_main): Remove use of error_pre_print and
5027 quit_pre_print.
5028 * utils.c (error_pre_print, quit_pre_print): Remove.
5029 * utils.h (error_pre_print, quit_pre_print): Likewise.
5030
645eab03
YQ
50312013-08-01 Yao Qi <yao@codesourcery.com>
5032
5033 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5034 with mi_getopt.
5035 (mi_cmd_stack_list_variables): Likewise.
5036
16f92dd4
AB
50372013-07-31 Andrew Burgess <aburgess@broadcom.com>
5038
5039 * exceptions.c (deprecated_throw_reason): Remove.
5040 * exceptions.h (deprecated_throw_reason): Remove.
5041
13f78033
AB
50422013-07-31 Andrew Burgess <aburgess@broadcom.com>
5043
5044 * remote-mips.c (mips_error): Replace use of
5045 deprecated_throw_reason with throw_verror. Use the error message
5046 passed to mips_error as the error message for throw_verror.
5047
039e3c22
AB
50482013-07-31 Andrew Burgess <aburgess@broadcom.com>
5049
5050 * monitor.c (monitor_interrupt_query): Replace use of
5051 deprecated_throw_reason with quit.
5052 * nto-procfs.c (interrupt_query): Likewise.
5053 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5054 * remote-mips.c (mips_kill): Likewise.
5055 * remote.c (interrupt_query): Likewise.
5056
8150913b
AB
50572013-07-31 Andrew Burgess <aburgess@broadcom.com>
5058
5059 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5060 with call to fatal.
5061
de74e63a
YQ
50622013-07-31 Pedro Alves <pedro@codesourcery.com>
5063 Yao Qi <yao@codesourcery.com>
5064
5065 * tracepoint.c (trace_dump_command): Select the current frame.
5066
247f5c4f
DE
50672013-07-30 Doug Evans <dje@google.com>
5068
5069 * dwarf2read.c (process_queue): Add type signature to debug output.
5070
11b4b7cc
AB
50712013-07-30 Andrew Burgess <aburgess@broadcom.com>
5072
5073 * value.c (value_fetch_lazy): Mark optimized out values as such
5074 rather than raising an error.
5075
b0c54aa5
AB
50762013-07-30 Andrew Burgess <aburgess@broadcom.com>
5077
5078 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5079 before checking which bits of the parent, not the child, value are
5080 valid.
5081
97c85fc6
MB
50822013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5083
5084 PR gdb/15715
5085 * top.c: Include "filenames.h".
5086 (set_history_filename): New function.
5087 (init_main): Install it as set hook of the "set history filename"
5088 command.
5089
ff39bb5e
SA
50902013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5091
5092 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5093 attribute parameter.
5094 (dwarf2_const_value_data): Constify struct attribute parameter.
5095 (dwarf2_const_value): Constify struct attribute parameter.
5096 (dwarf2_const_value_attr): Constify struct attribute parameter.
5097 (lookup_die_type): Constify struct attribute parameter.
5098 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5099 (follow_die_ref_or_sig): Constify struct attribute parameter.
5100 (follow_die_ref): Constify struct attribute parameter.
5101 (follow_die_sig): Constify struct attribute parameter.
5102 (get_DW_AT_signature_type): Constify struct attribute parameter.
5103 (get_type_unit_group): Constify struct attribute parameter.
5104 (fill_in_loclist_baton): Constify struct attribute parameter.
5105 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5106 (type_unit_group): Constify struct attribute parameter.
5107
6e5a29e1
SA
51082013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5109
5110 * dwarf2read.c (attr_form_is_block): Make argument const.
5111 (attr_form_is_section_offset): Make argument const.
5112 (attr_form_is_constant): Make argument const.
5113 (attr_form_is_ref): Make argument const.
5114
7771576e
SA
51152013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5116
5117 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5118 All uses updated.
5119 (attr_form_is_ref): Moved below attr_form_is_constant.
5120
a94e8645
DE
51212013-07-29 Doug Evans <dje@google.com>
5122
bb5291d0
DE
5123 * main.c (captured_command_loop): Tweak comment.
5124
b5419e49
DE
5125 * target.c (target_async_permitted_1): Fix comment.
5126
b2d23133
DE
5127 * symtab.c (iterate_over_some_symtabs): Add comment.
5128
a94e8645
DE
5129 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5130
7a60ad40
YQ
51312013-07-27 Yao Qi <yao@codesourcery.com>
5132
5133 * NEWS: Mention that GDBserver now supports hardware
5134 watchpoints on the MIPS GNU/Linux target.
5135
aaee2056
YQ
51362013-07-27 Yao Qi <yao@codesourcery.com>
5137
5138 * Makefile.in (HFILES_NO_SRCDIR): Add
5139 common/mips-linux-watch.h.
5140 (mips-linux-watch.o): New rule.
5141 * common/mips-linux-watch.c: New.
5142 * common/mips-linux-watch.h: New.
5143 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5144 * mips-linux-nat.c: Include mips-linux-watch.h.
5145 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5146 to common/mips-linux-watch.h.
5147 (MAX_DEBUG_REGISTER): Likewise.
5148 (enum pt_watch_style): Likewise.
5149 (struct mips32_watch_regs): Likewise.
5150 (struct mips64_watch_regs): Likewise.
5151 (struct pt_watch_regs): Likewise.
5152 (struct mips_watchpoint): Likewise.
5153 (mips_linux_watch_get_irw_mask): Move to
5154 common/mips-linux-watch.c.
5155 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5156 (mips_linux_watch_get_watchlo): Likewise.
5157 (mips_linux_watch_set_watchlo): Likewise.
5158 (mips_linux_watch_get_watchhi): Likewise.
5159 (mips_linux_watch_set_watchhi): Likewise.
5160 (mips_linux_read_watch_registers): Likewise.
5161 (mips_linux_watch_type_to_irw): Likewise.
5162 (mips_linux_stopped_data_address, fill_mask): Likewise.
5163 (mips_linux_watch_try_one_watch): Likewise.
5164 (mips_linux_watch_populate_regs): Likewise.
5165
b3436450
YQ
51662013-07-27 Yao Qi <yao@codesourcery.com>
5167
5168 * mips-linux-nat.c (get_irw_mask): Rename to ...
5169 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5170 'set' to 'n'. Update function comment. All callers changed.
5171 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5172 function comment. All callers changed.
5173 (get_num_valid): Rename to ...
5174 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5175 'set' to 'n'. Update function comment. All callers changed.
5176 (get_watchlo): Rename to ...
5177 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5178 'set' to 'n'. Update function comment. All callers changed.
5179 (set_watchlo): Rename to ...
5180 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5181 'set' to 'n'. Update function comment. All callers changed.
5182 (get_watchhi): Rename to ...
5183 (mips_linux_watch_get_watchhi): ... this. Update function
5184 comment. All callers changed.
5185 (set_watchhi): Rename to ...
5186 (mips_linux_watch_set_watchhi): ... this. Update function
5187 comment. All callers changed.
5188 (mips_linux_read_watch_registers): Update function comment.
5189 Add new parameters 'lwpid', 'watch_readback', and
5190 'watch_readback_valid'. Update.
5191 (type_to_irw): Rename to ...
5192 (mips_linux_watch_type_to_irw): ... this. Update function
5193 comment. All callers changed.
5194 (fill_mask): Update function comment.
5195 (try_one_watch): Rename to ...
5196 (mips_linux_watch_try_one_watch): ... this. Change the type
5197 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5198 (populate_regs_from_watches): Rename to ...
5199 (mips_linux_watch_populate_regs): ... this. Add parameter
5200 'current_watches'. All callers changed.
5201
9be14b81
YQ
52022013-07-27 Yao Qi <yao@codesourcery.com>
5203
5204 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5205 the code.
5206 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5207 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5208 (struct pt_watch_regs): Likewise.
5209 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5210 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5211 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5212 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5213 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5214
de6f69ad
YQ
52152013-07-27 Yao Qi <yao@codesourcery.com>
5216
5217 * breakpoint.h: Include break-common.h.
5218 (enum target_hw_bp_type): Move to ...
5219 * common/break-common.h: ... here. New.
5220
6f64ef53
PA
52212013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5222
5223 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5224 process group regardless of having tty on stdin.
5225
6107e809
DE
52262013-07-25 Doug Evans <dje@google.com>
5227
5228 * linux-fork.h (detach_fork): Delete.
5229
7fdc1521
TT
52302013-07-25 Tom Tromey <tromey@redhat.com>
5231
5232 PR remote/15256, PR remote/15266:
5233 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5234 * monitor.c (monitor_detach): Use unpush_target.
5235 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5236 * remote-mips.c (mips_detach): Use unpush_target. Don't
5237 call mips_close.
5238 * remote-sim.c (gdbsim_detach): Use unpush_target.
5239 * target.c (pop_target): Remove.
5240 (pop_all_targets_above): Don't call target_close.
5241 (target_close): Assert that the target is unpushed.
5242 * target.h (pop_target): Don't declare.
5243 * tracepoint.c (tfile_open): Use unpush_target.
5244
c22a2b88
TT
52452013-07-25 Tom Tromey <tromey@redhat.com>
5246
5247 * linux-thread-db.c (init_thread_db_ops): Call
5248 complete_target_initialization.
5249 (_initialize_thread_db): Don't call add_target.
5250 * target.c (complete_target_initialization): New function.
5251 (add_target_with_completer): Call it.
5252 * target.h (complete_target_initialization): Declare.
5253
cbb6aada
MK
52542013-07-25 Mark Kettenis <kettenis@gnu.org>
5255
5256 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5257 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5258 (HPPANBSD_SIZEOF_GREGS): New define.
5259 (hppaobsd_supply_gregset): Handle additional registers.
5260 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5261 we provide more registers now.
5262 (hppabsd_supply_gregset): Supply additional registers.
5263 (hppabsd_collect_gregset): Collect additional registers.
5264
17767988
MK
52652013-07-25 Mark Kettenis <kettenis@gnu.org>
5266
5267 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5268 (hppabsd_dwarf2_frame_init_reg): New function.
5269 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5270
fdc8aae8
AB
52712013-07-25 Andrew Burgess <aburgess@broadcom.com>
5272
5273 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5274 'z' format code. Remove error for optimized out values, standard
5275 code will handle these fine.
5276
6fbe845e
AB
52772013-07-25 Andrew Burgess <aburgess@broadcom.com>
5278
5279 * NEWS: Mention new 'z' formatter.
5280 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5281 (_initialize_printcmd): Mention 'z' formatter in help text of the
5282 'x' command.
5283
3373342d
MR
52842013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5285
5286 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5287 formatting.
5288
25f9533e
SDJ
52892013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5290
5291 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5292 interface can evaluate arguments. Fallback to the old mode if it
5293 cannot.
5294 (create_exception_master_breakpoint): Likewise.
5295 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5296 (struct sym_probe_fns elf_probe_fns): Export function above to the
5297 probe interface.
5298 * probe.c (can_evaluate_probe_arguments): New function.
5299 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5300 function pointer.
5301 (can_evaluate_probe_arguments): New function prototype.
5302 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5303 probe interface can evaluate arguments. Fallback to the old mode
5304 if it cannot.
5305 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5306 interface can evaluate arguments. Warning the user if it cannot.
5307 (stap_can_evaluate_probe_arguments): New function.
5308 (struct probe_ops stap_probe_ops): Export function above to the
5309 probe interface.
5310 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5311 New function pointer.
5312
3360c0bf
LM
53132013-07-24 Luis Machado <lgustavo@codesourcery.com>
5314
5315 * Makefile.in (SFILES): Add common/target-common.c.
5316 Add common/target-common.h to headers.
5317 (COMMON_OBS): Add target-common.o.
5318 (target-common.o): New target.
5319 * linux-nat.h (resume_kind): Move to common/target-common.h.
5320 * target.c (target_waitstatus_to_string): Move to
5321 common/target-common.c.
5322 * target.h: Include target-common.h.
5323 (target_waitkind): Move to common/target-common.h.
5324 (target_waitstatus): Likewise.
5325 (TARGET_WNOHANG): Likewise.
5326 * common/target-common.c: New file.
5327 * common/target-common.h: New file.
5328
6656a72d
DE
53292013-07-24 Doug Evans <dje@google.com>
5330
5331 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5332 a warning.
5333
6df81a63
YQ
53342013-07-23 Yao Qi <yao@codesourcery.com>
5335
5336 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5337 parameter 'gdbarch'.
5338 (i386_stack_tramp_frame_sniffer): Caller update.
5339 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5340 parameter 'gdbarch' and 'target'.
5341 (i386_linux_core_read_description): Caller update.
5342 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5343 Likewise.
5344 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5345 declaration.
5346
365156ad
TT
53472013-07-23 Tom Tromey <tromey@redhat.com>
5348
5349 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5350 2013-07-22.
5351
046ac79f
JK
53522013-07-22 Doug Evans <dje@google.com>
5353
5354 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5355 * exec.c (exec_close): Update call to remove_target_sections.
5356 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5357 * solib.c (update_solib_list): Ditto.
5358 (reload_shared_libraries_1): Ditto.
5359 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5360 * target.h (struct target_section): Rename key to owner.
5361 All uses updated.
046ac79f 5362
29b2cc46
TT
53632013-07-22 Tom Tromey <tromey@redhat.com>
5364
5365 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5366
d1160018
TT
53672013-07-22 Tom Tromey <tromey@redhat.com>
5368
5369 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5370 Simplify cleanup handling.
5371
2f324bf6
TT
53722013-07-22 Tom Tromey <tromey@redhat.com>
5373
5374 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5375 on all return paths.
5376
e23b9d6e
UW
53772013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5378
5379 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5380 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5381 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5382
1cf55f60
PM
53832013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5384
5385 * top.c (print_gdb_version): Add help, apropos description and
5386 url to online documentation.
5387
fa876972
HZ
53882013-07-19 Hui Zhu <hui@codesourcery.com>
5389
5390 PR gdb/15692
5391 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5392
1527aea8
YQ
53932013-07-19 Yao Qi <yao@codesourcery.com>
5394
5395 * target.c (update_current_target): Change the default action
5396 of 'to_traceframe_info' from tcomplain to return_zero.
5397 * target.h (struct target_ops) <to_traceframe_info>: Add more
5398 comments.
5399 * valops.c (read_value_memory): Call
5400 traceframe_available_memory unconditionally.
5401
886f230e
YQ
54022013-07-18 Yao Qi <yao@codesourcery.com>
5403
5404 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5405 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5406 symbol without prefix. If found, set its type to
5407 'mst_solib_trampoline'.
5408
16419bae
DE
54092013-07-17 Doug Evans <dje@google.com>
5410
e7045703
DE
5411 * NEWS: Mention "set print raw frame-arguments".
5412 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5413 * stack.c (print_raw_frame_arguments): New static global.
5414 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5415 (_initialize_stack): New command "set/show print raw frame-arguments".
5416 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5417 (set_print_raw, show_print_raw): New functions.
5418 (_initialize_valprint): New prefix command "set/show print raw".
5419 * valprint.h (value_print_options): Improve comments.
5420
453e48a5
DE
5421 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5422 of all *list variables.
5423
16419bae
DE
5424 * gdbcmd.h (togglelist): Delete.
5425 * cli/cli-cmds.c (togglelist): Delete.
5426 (init_cmd_lists): Update.
5427 * cli/cli-cmds.h (togglelist): Delete.
5428
626f2d1c
TT
54292013-07-17 Tom Tromey <tromey@redhat.com>
5430
5431 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5432 dwarf2_per_objfile.
5433
57e6060e
DE
54342013-07-16 Doug Evans <dje@google.com>
5435
5436 * nto-tdep.c (nto_relocate_section_addresses): Update,
5437 target_section.bfd deleted.
5438 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5439 * s390-tdep.c (s390_load): Ditto.
5440 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5441
5ea5559b
AB
54422013-07-16 Andrew Burgess <aburgess@broadcom.com>
5443
5444 * common/format.c (parse_format_string): Add checks for NULL
5445 character before calling strchr.
5446
2b2848e2
DE
54472013-07-16 Doug Evans <dje@google.com>
5448
2c571006
DE
5449 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5450 temp_pathname argument.
5451 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5452 when opening the file fails.
5453
2b2848e2
DE
5454 * target.h (struct target_section): Delete member bfd.
5455 All users updated to use the_bfd_section->owner instead.
5456 * exec.c (add_to_section_table): Assert bfd is expected value.
5457 Remove initialization of target_section.bfd.
5458 (remove_target_sections): Update.
5459 (section_table_available_memory): Update.
5460 (section_table_xfer_memory_partial): Update.
5461 (print_section_info): Update.
5462 (exec_set_section_address): Update.
5463 * record-full.c (record_full_core_xfer_partial): Update.
5464 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5465 * solib-target.c (solib_target_relocate_section_addresses): Update.
5466 * symfile.c (build_section_addr_info_from_section_table): Update.
5467 * target.c (memory_xfer_live_readonly_partial): Update.
5468 (memory_xfer_partial_1): Update.
5469
926bf92d
UW
54702013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5471
5472 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5473 now available for embedded (BookE) and server (BookS) processors,
5474 correct mentions of 'booke' and adjust comments accordingly in order to
5475 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5476 (have_ptrace_booke_interface): Rename function and variable
5477 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5478 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5479 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5480 'hwdebug_point_cmp'. Update all uses.
5481 (booke_find_thread_points_by_tid): Rename function
5482 'booke_find_thread_points_by_tid' to
5483 'hwdebug_find_thread_points_by_tid'. Update all uses.
5484 (booke_insert_point): Rename function 'booke_insert_point' to
5485 'hwdebug_insert_point'. Update all uses.
5486 (booke_remove_point): Rename function 'booke_remove_point' to
5487 'hwdebug_remove_point'. Update all uses.
5488
d929bc19
MR
54892013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5490
5491 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5492 numbers with enum values.
5493
054e8d9e
AA
54942013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5495
5496 PR threads/13217
5497 * thread.c (thread_apply_all_command): Check for valid threads
5498 and thread count.
5499 (thread_array_cleanup): New struct.
5500 (set_thread_refcount): New function.
5501
cf006359
AB
55022013-07-11 Andrew Burgess <aburgess@broadcom.com>
5503
5504 * infcmd.c (default_print_one_register_info): Reuse function
5505 print_hex_chars.
5506
94e36acc
TT
55072013-07-10 Tom Tromey <tromey@redhat.com>
5508
5509 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5510 (ada-exp.o): New target.
5511
915dd369
SDJ
55122013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5513
5514 * mt-tdep.c (mt_registers_info): Call
5515 get_no_prettyformat_print_options instead of
5516 get_raw_print_options (regression by last patch from Doug
5517 Evans).
5518
eca07816
JB
55192013-07-09 Pedro Alves <palves@redhat.com>
5520
5521 Checked in by Joel Brobecker <brobecker@adacore.com>.
5522 * ada-lang.c (coerce_unspec_val_to_type): Use
5523 value_optimized_out_const.
5524 * value.c (value_optimized_out_const): New function.
5525 * value.h (value_optimized_out_const): New declaration.
5526
2a998fc0
DE
55272013-07-09 Doug Evans <dje@google.com>
5528
5529 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5530 Enum values rename as well. All uses updated.
5531 * valprint.h (value_print_options): Rename member pretty to
5532 pretty format. Rename member prettyprint_arrays to
5533 prettyformat_arrays. Rename member prettyprint_structs to
5534 prettyformat_structs. All uses updated.
5535 (get_no_prettyformat_print_options): Renamed from
5536 get_raw_print_options.
5537 * valprint.c (get_no_prettyformat_print_options): Renamed from
5538 get_raw_print_options. All callers updated.
5539 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5540 All callers updated.
5541 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5542 All callers updated.
5543 (_initialize_valprint): Improve help text for "set print pretty" and
5544 "set print arrays".
5545
466c1fca
AB
55462013-07-09 Andrew Burgess <aburgess@broadcom.com>
5547
5548 * value.c (value_bits_valid): Revert previous change, and change
5549 by Pedro on 2013-07-04, due to regressions in
5550 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5551
ad0f0303
AB
55522013-07-08 Andrew Burgess <aburgess@broadcom.com>
5553 Pedro Alves <palves@redhat.com>
5554
5555 * value.c (value_bits_valid): If the value is not lval_computed
5556 or has no check validity handler then the answer is the
5557 optimized_out flag, otherwise defer to the handler.
5558
b187bec1
EZ
55592013-07-06 Eli Zaretskii <eliz@gnu.org>
5560
48d1d6f5
EZ
5561 * top.c (print_gdb_configuration): Explain in output of
5562 --configuration what does "relocatable" mean.
5563
b187bec1
EZ
5564 * main.c (print_gdb_help): Regroup options in the --help text.
5565 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5566 the relevant discussions.
5567
52d361e1
YQ
55682013-07-06 Yao Qi <yao@codesourcery.com>
5569
5570 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5571 Remove parameter 'lsal'.
5572 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5573 to inner block. Caller update.
5574 (base_breakpoint_create_breakpoints_sal): Update.
5575 (bkpt_create_breakpoints_sal): Likewise.
5576 (tracepoint_create_breakpoints_sal): Likewise.
5577 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5578 element 0 of vector 'canonical->sals'.
5579
e1ec1b42
LM
55802013-07-05 Luis Machado <lgustavo@codesourcery.com>
5581
5582 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5583 register number instead of the pseudo register one.
5584 (rs6000_dwarf2_reg_to_regnum): Likewise.
5585
7195e6f0
PA
55862013-07-04 Pedro Alves <palves@redhat.com>
5587
5588 * findvar.c (value_of_register): Use allocate_optimized_out_value
5589 if the register has been optimized out, instead of
5590 set_value_optimized_out.
5591 * frame-unwind.c (frame_unwind_got_optimized): Use
5592 allocate_optimized_out_value.
5593
58722cac
PA
55942013-07-04 Pedro Alves <palves@redhat.com>
5595
5596 * value.c (value_bits_valid): If the value is not lval_computed,
5597 or doesn't have a check_validity hook, assume the value is entirely
5598 valid.
5599
691a26f5
AB
56002013-07-04 Andrew Burgess <aburgess@broadcom.com>
5601
5602 * stack.c (read_frame_arg): No longer fetch lazy values.
5603 * value.c (value_optimized_out): If the value is not already
5604 marked optimized out, and is lazy then fetch it.
5605 (value_primitive_field): Move optimized out check to later in the
5606 function, after we have loaded any lazy values.
5607 (value_fetch_lazy): Use optimized out flag directly rather than
5608 calling optimized_out method.
5609
a58e2656
AB
56102013-07-04 Andrew Burgess <aburgess@broadcom.com>
5611
5612 * valops.c: Don't include "user-regs.h".
5613 (value_fetch_lazy): Moved to value.c.
5614 * value.c: Include "user-regs.h".
5615 (value_fetch_lazy): Moved from valops.c.
5616
bd885420
YQ
56172013-07-04 Yao Qi <yao@codesourcery.com>
5618
5619 Revert:
5620 2013-06-27 Yao Qi <yao@codesourcery.com>
5621
5622 * common/create-version.sh: Update comments. Handle the case
5623 that TARGET_ALIAS is empty.
5624
17ef446e
PA
56252013-07-03 Pedro Alves <palves@redhat.com>
5626
5627 * Makefile.in (config.status): Depend on development.sh.
5628 (aclocal_m4_deps): Add libmcheck.m4.
5629 * acinclude.m4: Include libmcheck.m4.
5630 * configure.ac: Source development.sh instead of setting
5631 'development' here. --enable-libmcheck/--disable-libmcheck code
5632 factored out to GDB_AC_LIBMCHECK. Run it.
5633 * development.sh: New file.
5634 * libmcheck.m4: New file.
5635 * configure: Regenerate.
5636
ac6dd50f
TT
56372013-07-02 Tom Tromey <tromey@redhat.com>
5638
5639 * contrib/ari/update-web-ari.sh: Update for version.in change.
5640
bd1df410
TT
56412013-07-02 Tom Tromey <tromey@redhat.com>
5642
5643 * common/ptid.h: Comment fixes.
5644
4db1a1dc
TT
56452013-07-01 Tom Tromey <tromey@redhat.com>
5646
5647 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5648 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5649 (dwarf2_read_index, create_all_comp_units): Update.
5650
dd9aa048
TT
56512013-07-01 Tom Tromey <tromey@redhat.com>
5652
5653 * configure.ac (build_warnings): Add -Wold-style-definition.
5654 * configure: Rebuild.
5655 * machoread.c (_initialize_machoread): Use "(void)".
5656 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5657 use "(void)".
5658
44d100c3
TT
56592013-07-01 Tom Tromey <tromey@redhat.com>
5660
5661 * configure.ac (build_warnings): Add -Wold-style-declaration.
5662 * configure: Rebuild.
5663 * dsrec.c (make_srec): Use "static const", not "const static".
5664 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5665 not "const static".
5666 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5667 Use "static const", not "const static".
5668 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5669 not "const static".
5670 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5671 not "const static".
5672 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5673 not "const static".
5674 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5675 not "const static".
5676 (v850_dbtrap_breakpoint_from_pc): Likewise.
5677 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5678 not "const static".
5679
2945b807
TT
56802013-07-01 Tom Tromey <tromey@redhat.com>
5681
5682 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5683 * configure: Rebuild.
5684
d8d2a3ee
PA
56852013-07-01 Pedro Alves <palves@redhat.com>
5686
5687 * defs.h: Include "pathmax.h".
5688 * utils.c: Don't include sys/param.h.
5689 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5690 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5691 instead of MAXPATHLEN.
5692 * solib-sunos.c: Don't include sys/param.h.
5693 * xcoffread.c: Don't include sys/param.h.
5694 * bsd-kvm.c: Don't include sys/param.h.
5695 * darwin-nat.c: Don't include sys/param.h.
5696 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5697 * darwin-nat-info.c: Don't include sys/param.h.
5698 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5699 MAXPATHLEN.
5700 * i386obsd-nat.c: Don't include sys/param.h.
5701 * inf-child.c: Don't include sys/param.h.
5702 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5703 * linux-fork.c: Don't include sys/param.h.
5704 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5705 * linux-nat.c: Don't include sys/param.h.
5706 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5707 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5708 * m68klinux-nat.c: Don't include sys/param.h.
5709 * nbsd-nat.c: Don't include sys/param.h.
5710 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5711 * ppc-linux-nat.c: Don't include sys/param.h.
5712 * rs6000-nat.c: Don't include sys/param.h.
5713 * spu-linux-nat.c. Don't include sys/param.h.
5714 * windows-nat.c: Don't include sys/param.h.
5715 * xtensa-linux-nat.c: Don't include sys/param.h.
5716 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5717
38ec2207
PA
57182013-07-01 Pedro Alves <palves@redhat.com>
5719
5720 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5721 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5722 * gnulib/aclocal.m4: Regenerate.
5723 * gnulib/config.in: Regenerate.
5724 * gnulib/configure: Regenerate.
5725 * gnulib/import/pathmax.h: New file.
5726 * gnulib/import/Makefile.am: Regenerate.
5727 * gnulib/import/Makefile.in: Regenerate.
5728 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5729 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5730 * gnulib/import/m4/pathmax.m4: New file.
5731
e655c1a2
PA
57322013-07-01 Pedro Alves <palves@redhat.com>
5733
5734 * configure.ac (GDBINIT): Define, depending on host.
5735 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5736 * top.c (PATH_MAX): Delete fallback definition.
5737 (GDBINIT_FILENAME): Delete.
5738 (gdbinit): Reimplement as const char array set to the GDBINIT
5739 string constant.
5740 * top.h (gdbinit): Make const.
5741 * configure, config.in: Regenerate.
5742
50dd9793
PA
57432013-07-01 Pedro Alves <palves@redhat.com>
5744
5745 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5746 * cli/cli-cmds.h (source_script): Likewise.
5747 * exceptions.c (catch_command_errors_const): New function.
5748 * exceptions.h (catch_command_errors_const): Declare.
5749 * main.c (get_init_files): Make parameters const, and adjust.
5750 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5751 'local_gdbinit' locals const. Adjust to use
5752 catch_command_errors_const.
5753 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5754 'local_gdbinit' locals const.
5755
bc7dea8d
PA
57562013-07-01 Pedro Alves <palves@redhat.com>
5757
5758 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5759 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5760 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5761 <unistd.h>.
5762
8839a007
PA
57632013-07-01 Pedro Alves <palves@redhat.com>
5764
5765 Import the "unistd" gnulib module.
5766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5767 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5768 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5769 import/m4/unistd_h.m4.
5770 * gnulib/aclocal.m4: Renenerate.
5771 * gnulib/config.in: Renenerate.
5772 * gnulib/configure: Renenerate.
5773 * gnulib/import/Makefile.am: Renenerate.
5774 * gnulib/import/Makefile.in: Renenerate.
5775 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5776 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5777 * gnulib/import/m4/off_t.m4: New file.
5778 * gnulib/import/m4/ssize_t.m4: New file.
5779 * gnulib/import/m4/sys_types_h.m4: New file.
5780 * gnulib/import/m4/unistd_h.m4: New file.
5781 * gnulib/import/sys_types.in.h: New file.
5782 * gnulib/import/unistd.c: New file.
5783 * gnulib/import/unistd.in.h: New file.
5784
8c0da261
PA
57852013-07-01 Pedro Alves <palves@redhat.com>
5786
5787 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5788 defined instead of checking HAVE_UNISTD_H.
5789
3574124b
PA
57902013-07-01 Pedro Alves <palves@redhat.com>
5791
5792 Reimport gnulib from scratch.
5793 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5794 import/m4/onceonly.m4.
5795 * gnulib/aclocal.m4: Renegerate.
5796 * gnulib/config.in: Renegerate.
5797 * gnulib/configure: Renegerate.
5798 * gnulib/import/Makefile.in: Renegerate.
5799 * gnulib/import/extra/update-copyright: Renegerate.
5800 * gnulib/import/m4/onceonly.m4: Delete.
5801
702dc4fd
PA
58022013-07-01 Pedro Alves <palves@redhat.com>
5803
5804 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5805
47e1ce27
JK
58062013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5807
5808 Code cleanup.
5809 * remote.c (async_remote_interrupt_twice): Make it static.
5810 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5811
e82839d4
SDJ
58122013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5813
5814 * ia64-linux-tdep.c: Include <ctype.h>.
5815 (ia64_linux_stap_is_single_operand): New function.
5816 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5817
d6c2da54
TT
58182013-06-28 Tom Tromey <tromey@redhat.com>
5819
5820 * Makefile.in (version.c): Use version.in, not
5821 common/version.in.
5822 * common/create-version.sh: Likewise.
5823 * common/version.in: Move...
5824 * version.in: ...here.
5825
74da6f00
PA
58262013-06-28 Pedro Alves <palves@redhat.com>
5827
5828 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5829 here.
5830 * utils.h (pagination_enabled): Declare.
5831
d32dc48e
PA
58322013-06-28 Pedro Alves <palves@redhat.com>
5833
5834 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5835 Move higher up in file.
5836
0edd9e3b
TT
58372013-06-28 Tom Tromey <tromey@redhat.com>
5838
5839 * tracepoint.c (deprecated_readline_begin_hook)
5840 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5841 declare.
5842
4eb59108
PA
58432013-06-28 Pedro Alves <palves@redhat.com>
5844
5845 PR tui/14880
5846 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5847 checking if they're available.
5848 * value.c (value_available_contents_eq): Change comment.
5849 * value.h (value_available_contents_eq): Expand comment.
5850
97b17156
TT
58512013-06-27 Tom Tromey <tromey@redhat.com>
5852
5853 * target.c (find_run_target): Remove.
5854 * target.h (find_run_target): Remove.
5855
6a3bfc5c
TT
58562013-06-27 Tom Tromey <tromey@redhat.com>
5857
5858 * corelow.c (core_gdbarch): Now static.
5859
c9ef825d
TT
58602013-06-27 Tom Tromey <tromey@redhat.com>
5861
5862 * target.c (target_struct_index): Remove.
5863
e5823f1c
PA
58642013-06-27 Pedro Alves <palves@redhat.com>
5865
5866 * infrun.c: Remove comment describing the 'stepping over runtime
5867 loader dynamic symbol resolution code' mechanism; moved to
5868 gdbint.texinfo.
5869
97f8dd09
PA
58702013-06-27 Pedro Alves <palves@redhat.com>
5871
5872 * exceptions.c (catch_command_errors): Remove spurious space.
5873 * exceptions.h (catch_command_errors): Second parameter is "arg",
5874 not "command".
5875
02b1871e
YQ
58762013-06-27 Yao Qi <yao@codesourcery.com>
5877
5878 * common/create-version.sh: Update comments. Handle the case
5879 that TARGET_ALIAS is empty.
5880
bb1b1cf1
PA
58812013-06-26 Pedro Alves <palves@redhat.com>
5882
5883 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5884 comment.
5885
7b624e71
PA
58862013-06-26 Pedro Alves <palves@redhat.com>
5887
5888 * infrun.c: Update comments on stepping over runtime loader
5889 dynamic symbol resolution code.
5890
74e5a346
SDJ
58912013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5892
5893 * ax-gdb.h (union exp_element): Forward declare.
5894 * parser-defs.h: Include expression.h.
5895
a2fb2cee
MR
58962013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5897
5898 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5899
cdba14e0
DK
59002013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5901
5902 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5903
f30aa5af
DK
59042013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5905
5906 Fix trace-status to output proper start-time and stop-time.
5907 * tracepoint.c (trace_status_command): Fix type of printf arg to
5908 prevent improper type conversion.
5909 (trace_status_mi): Likewise.
5910
1aee363c
MR
59112013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5912
5913 * mips-tdep.c (mips_next_pc): Fix a typo.
5914
3356937a
MR
59152013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5916
5917 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5918
dc673c81
YQ
59192013-06-26 Pedro Alves <pedro@codesourcery.com>
5920 Yao Qi <yao@codesourcery.com>
5921
5922 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5923 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5924 * mi/mi-main.c (print_variable_or_computed): New function.
5925 (mi_cmd_trace_frame_collected): New function.
5926 * tracepoint.c (find_trace_state_variable_by_number): New.
5927 (struct traceframe_info): Move to tracepoint.h
5928 (struct collection_list): Likewise.
5929 (do_collect_symbol): Include locals and arguments in the
5930 collected variables list.
5931 (clear_collection_list): Clear wholly collected variables list
5932 and computed variables list.
5933 (append_exp): New function.
5934 (encode_actions_1): Include variables in the wholly
5935 collected variables list. Include memory ranges and
5936 full-fledged expressions in the computed expressions list.
5937 (encode_actions): Move some code to ...
5938 Return the cleanup chain.
5939 (encode_actions_rsp): ... here. New function.
5940 (get_traceframe_location, get_traceframe_info): Remove static.
5941 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5942 (struct collection_list): Moved from tracepoint.c. Add two
5943 new fields 'wholly_collected' and 'computed'.
5944 (find_trace_state_variable_by_number): Declare.
5945 (encode_actions): Adjust declaration.
5946 (encode_actions_rsp): Declare.
5947 (get_traceframe_info, get_traceframe_location): Declare.
5948
5949 * NEWS: Mention new MI command -trace-frame-collected.
5950
28a93511
YQ
59512013-06-26 Pedro Alves <pedro@codesourcery.com>
5952 Yao Qi <yao@codesourcery.com>
5953
5954 * ctf.c (ctf_traceframe_info): Push trace state variables
5955 present in the trace data into the traceframe info object.
5956 * breakpoint.c (DEF_VEC_I): Remove.
5957 * common/filestuff.c (DEF_VEC_I): Likewise.
5958 * dwarf2loc.c (DEF_VEC_I): Likewise.
5959 * mi/mi-main.c (DEF_VEC_I): Likewise.
5960 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5961 * features/traceframe-info.dtd: Add tvar element and its
5962 attributes.
5963 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5964 (build_traceframe_info): Push trace state variables present in
5965 the trace data into the traceframe info object.
5966 (traceframe_info_start_tvar): New function.
5967 (tvar_attributes): New.
5968 (traceframe_info_children): Add "tvar" element.
5969 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5970
5971 * NEWS: Mention the change in GDB and GDBserver.
5972
ddacd3c8
YQ
59732013-06-26 Pedro Alves <pedro@codesourcery.com>
5974 Yao Qi <yao@codesourcery.com>
5975
5976 * tracepoint.c (trace_dump_command): Move code to ...
5977 (get_traceframe_location): ... here. New.
5978
05796b35
YQ
59792013-06-26 Pedro Alves <pedro@codesourcery.com>
5980 Yao Qi <yao@codesourcery.com>
5981
5982 * tracepoint.c (trace_dump_command): GDB emits an error
5983 instead of a warning when a traceframe is not selected.
5984
cbfa3b61
YQ
59852013-06-26 Pedro Alves <pedro@codesourcery.com>
5986 Yao Qi <yao@codesourcery.com>
5987
5988 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5989 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5990 in collection_list.
5991 (do_clear_collection_list, init_collection_list): New.
5992 (encode_actions): Add local variables 'tracepoint_list' and
5993 'stepping_list'. Call init_collection_list and make cleanup
5994 which calls do_clear_collection_list. Don't call
5995 clear_collection_list.
5996 (_initialize_tracepoint): Delete references to
5997 'tracepoint_list' and 'stepping_list'.
5998
6e2048d3
TT
59992013-06-25 Tom Tromey <tromey@redhat.com>
6000
6001 * common/create-version.sh (date): Use "$", not "$$" in sed
6002 expression.
6003
42059f0e
KB
60042013-06-25 Kevin Buettner <kevinb@redhat.com>
6005
6006 * NEWS (New targets): Add entry for TI MSP430.
6007
a0743c90
YQ
60082013-06-25 Yao Qi <yao@codesourcery.com>
6009
6010 * remote.c (remote_start_remote): Move code to upload tsv
6011 earlier.
6012
9d6e6e84
HZ
60132013-06-25 Yao Qi <yao@codesourcery.com>
6014 Hui Zhu <hui@codesourcery.com>
6015 Pedro Alves <palves@redhat.com>
6016
6017 PR breakpoints/15075
6018 PR breakpoints/15434
6019 * breakpoint.c (bpstat_stop_status): Call
6020 b->ops->after_condition_true.
6021 (update_dprintf_command_list): Don't append "continue" command
6022 to the command list of dprintf breakpoint.
6023 (base_breakpoint_after_condition_true): New function.
6024 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6025 (dprintf_after_condition_true): New function.
6026 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6027 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6028
586cf749
KB
60292013-06-24 Kevin Buettner <kevinb@redhat.com>
6030
6031 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6032 (ALLDEPFILES): Add msp430-tdep.c.
6033 * configure.tgt (msp430*-*-elf): New target.
6034 * msp430-tdep.c: New file.
6035
1bbce132
MR
60362013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6037
6038 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6039 microMIPS synthetic symbols.
6040
3e5d3a5a
MR
60412013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6042
6043 * objfiles.h (pc_in_section): New prototype.
6044 (in_plt_section): Remove name argument, replace prototype with
6045 static inline function.
6046 * mips-tdep.h: Include "objfiles.h".
6047 (in_mips_stubs_section): New function.
6048 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6049 in_solib_call_trampoline member.
6050 (hppa_in_solib_call_trampoline): Remove name argument.
6051 * objfiles.c (pc_in_section): New function.
6052 (in_plt_section): Remove function.
6053 * mips-linux-tdep.c: Include "objfiles.h".
6054 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6055 name argument. Return 1 rather than the low 16-bit halfword of
6056 any instruction examined.
6057 (mips_linux_in_dynsym_resolve_code): Update
6058 mips_linux_in_dynsym_stub call accordingly.
6059 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6060 rather than an equivalent hand-coded sequence.
6061 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6062 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6063 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6064 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6065 in_opd_section.
6066 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6067 on call to tdep->in_solib_call_trampoline.
6068 (hppa_in_solib_call_trampoline): Remove name argument, update
6069 according to in_plt_section change.
6070 (hppa_skip_trampoline_code): Update according to in_plt_section
6071 change.
6072 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6073 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6074 Likewise.
6075 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6076 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6077 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6078 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6079 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6080 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6081 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6082 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6083 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6084 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6085 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6086 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6087 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6088
b9b26a16
JB
60892013-06-24 Joel Brobecker <brobecker@adacore.com>
6090
6091 * common/create-version.sh: Fix expansion of $host_alias
6092 and $target_alias in generation of HOST_NAME and TARGET_NAME
6093 (resp.).
6094
01208463
TT
60952013-06-24 Tom Tromey <tromey@redhat.com>
6096
6097 * common/create-version.sh: New file.
6098 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6099 create-version.sh.
6100 (HFILES_NO_SRCDIR): Use common/version.h.
6101 * version.in: Move to ...
6102 * common/version.in: ... here. Replace date with "DATE".
6103 * version.h: Move to ...
6104 * common/version.h: ... here.
6105
bb6b9a5e
JB
61062013-06-21 Joel Brobecker <brobecker@adacore.com>
6107
6108 * gdb/gnulib/Makefile.in: Update date in copyright header.
6109 * gdb/gnulib/configure.ac: Ditto.
6110 * gdb/gnulib/update-gnulib.sh: Ditto.
6111
c3b18ee7
JB
61122013-06-21 Joel Brobecker <brobecker@adacore.com>
6113
6114 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6115 "gdb/gnulib/import".
6116
85d3b769
WN
61172013-06-21 Will Newton <will.newton@linaro.org>
6118
6119 * doublest.c (ldfrexp): Remove function.
6120 (convert_doublest_to_floatformat): Call frexpl instead of
6121 ldfrexp.
6122
88b48903
WN
61232013-06-21 Will Newton <will.newton@linaro.org>
6124
6125 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6126 * gnulib/aclocal.m4: Regenerate.
6127 * gnulib/config.in: Regenerate.
6128 * gnulib/configure: Regenerate.
6129 * gnulib/import/Makefile.am: Update.
6130 * gnulib/import/Makefile.in: Update.
6131 * gnulib/import/m4/gnulib-cache.m4: Update.
6132 * gnulib/import/m4/gnulib-comp.m4: Update.
6133 * gnulib/import/float+.h: Import.
6134 * gnulib/import/float.c: Import.
6135 * gnulib/import/float.in.h: Import.
6136 * gnulib/import/fpucw.h: Import.
6137 * gnulib/import/frexp.c: Import.
6138 * gnulib/import/frexpl.c: Import.
6139 * gnulib/import/isnan.c: Import.
6140 * gnulib/import/isnand-nolibm.h: Import.
6141 * gnulib/import/isnand.c: Import.
6142 * gnulib/import/isnanl-nolibm.h: Import.
6143 * gnulib/import/isnanl.c: Import.
6144 * gnulib/import/itold.c: Import.
6145 * gnulib/import/m4/exponentd.m4: Import.
6146 * gnulib/import/m4/exponentl.m4: Import.
6147 * gnulib/import/m4/float_h.m4: Import.
6148 * gnulib/import/m4/fpieee.m4: Import.
6149 * gnulib/import/m4/frexp.m4: Import.
6150 * gnulib/import/m4/frexpl.m4: Import.
6151 * gnulib/import/m4/isnand.m4: Import.
6152 * gnulib/import/m4/isnanl.m4: Import.
6153 * gnulib/import/m4/math_h.m4: Import.
6154 * gnulib/import/math.c: Import.
6155 * gnulib/import/math.in.h: Import.
6156
4353c9e6
JK
61572013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6158
6159 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6160 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6161 signature_INTEL_edx comparisons.
6162
e3e06db3
DE
61632013-06-20 Doug Evans <dje@google.com>
6164
6ac97d4c
DE
6165 symtab/15652
6166 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6167 All callers updated.
6168 (open_dwp_file): If we can't find the dwp file, search the basename
6169 in debug-file-directory.
6170
93417882
DE
6171 * dwarf2read.c (struct dwp_file): Fix comment.
6172 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6173
e3e06db3
DE
6174 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6175 better.
6176
0878d0fa
YQ
61772013-06-20 Yao Qi <yao@codesourcery.com>
6178
6179 * breakpoint.c (create_breakpoint): Fix code indentation.
6180
023fa29b
YQ
61812013-06-20 Yao Qi <yao@codesourcery.com>
6182
6183 * breakpoint.c (create_breakpoints_sal_default): Remove
6184 parameter 'lsal'. Update declaration.
6185 (bkpt_create_breakpoints_sal): Caller update.
6186 (tracepoint_create_breakpoints_sal): Likewise.
6187
c898adb7
YQ
61882013-06-20 Pedro Alves <pedro@codesourcery.com>
6189 Yao Qi <yao@codesourcery.com>
6190
6191 * NEWS: Mention the new option '--skip-unavailable' of command
6192 -data-list-register-values.
6193 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6194 --skip-unavailable option. Adjust to use output_register.
6195 (output_register): Add new 'skip_unavailable' parameter.
6196 Handle it.
6197
4d157a3d
MF
61982013-06-19 Mike Frysinger <vapier@gentoo.org>
6199
6200 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6201 common/i386-gcc-cpuid.h.
6202 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6203 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6204 Copy the latest version from upstream gcc.
6205 * common/linux-btrace.c: Include i386-cpuid.h.
6206 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6207 call to i386_cpuid.
6208 (cpu_supports_btrace): Likewise.
6209 * go32-nat.c: Include i386-cpuid.h.
6210 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6211
1ce4db08
DE
62122013-06-19 Doug Evans <dje@google.com>
6213
6214 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6215 (get_section_index): Ditto.
6216
0e4777df
TT
62172013-06-19 Tom Tromey <tromey@redhat.com>
6218
6219 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6220 "dprintf" help.
6221
3190f0c6
DE
62222013-06-18 Doug Evans <dje@google.com>
6223
6224 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6225 before using it.
6226 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6227 Move test of cu_index closer to use. Print complaint if cu_index
6228 is bad.
6229
8b89a20a
JB
62302013-06-18 Joel Brobecker <brobecker@adacore.com>
6231
6232 * machoread.c (oso_vector): Delete this global.
6233 (macho_register_oso): Add new parameter "oso_vector_ptr".
6234 Use it instead of the "oso_vector" global.
6235 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6236 (macho_symfile_read): Use a local oso_vector, to be free'ed
6237 at the end of this function, in place of the old "oso_vector"
6238 global. Update various function calls accordingly. Use one
6239 single cleanup chain for the entire function.
6240
59b0c7c1
JB
62412013-06-18 Joel Brobecker <brobecker@adacore.com>
6242
937c708c 6243 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
6244 DWARF2_PER_OBJFILE by uses of DATA instead.
6245
427cd150
TT
62462013-06-18 Tom Tromey <tromey@redhat.com>
6247
6248 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6249 argument.
6250 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6251 Special case signals other than GDB_SIGNAL_TRAP.
6252 (explains_signal_watchpoint): New function.
6253 (base_breakpoint_explains_signal): Add 'sig' argument.
6254 (initialize_breakpoint_ops): Set 'explains_signal' method for
6255 watchpoints.
6256 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6257 signal argument.
6258 (bpstat_explains_signal): Likewise.
6259 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6260
2d57700b
TT
62612013-06-18 Tom Tromey <tromey@redhat.com>
6262
6263 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6264
ac475191
TT
62652013-06-18 Tom Tromey <tromey@redhat.com>
6266
6267 * python/python.c (finish_python_initialization): Decref
6268 'pythondir' on failure path as well.
6269
5bd1ef56
TT
62702013-06-18 Tom Tromey <tromey@redhat.com>
6271
6272 PR symtab/15391:
6273 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6274 after taking bits_to_skip into account. Sign extend byte_offset.
6275 * utils.h (gdb_sign_extend): Declare.
6276 * utils.c (gdb_sign_extend): New function.
6277
92fac807
JK
62782013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6279
6280 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6281
2d503272
PM
62822013-06-17 Pierre Muller <muller@sourceware.org>
6283
6284 * corelow.c (core_open): Print GDB signal name instead of target
6285 signal number.
6286
6916fd98
MF
62872013-06-17 Mike Frysinger <vapier@gentoo.org>
6288
6289 * .gitignore: Add /gcore.
6290
9c02c129
DE
62912013-06-13 Doug Evans <dje@google.com>
6292
6293 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6294 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6295
d0548fa2
PM
62962013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6297
6298 * stack.c (backtrace_command_1): Fix indentation.
6299
22128028
JB
63002013-06-11 Joel Brobecker <brobecker@adacore.com>
6301
6302 * window-nat.c (thread_rec): Add missing empty line after
6303 local variable declaration.
6304
2ed3e009
JB
63052013-06-11 Joel Brobecker <brobecker@adacore.com>
6306
6307 * windows-nat.c (thread_rec): Revert format used to print
6308 error code returned by SuspendThread from %d back to %u.
6309
0c3d84be
JB
63102013-06-11 Joel Brobecker <brobecker@adacore.com>
6311
6312 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6313 ID in debug trace.
6314 (get_windows_debug_event): Likewise, for all debug traces.
6315
80e88e1a
JB
63162013-06-11 Joel Brobecker <brobecker@adacore.com>
6317
6318 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6319 warning message.
6320
1edebdbf
YQ
63212013-06-08 Pedro Alves <pedro@codesourcery.com>
6322 Yao Qi <yao@codesourcery.com>
6323
6324 * mi/mi-main.c (get_register): Remove declaration.
6325 (output_register): Declare.
6326 (mi_cmd_data_list_register_values): Remove local variable
6327 'tuple_cleanup'. Move some code into output_register.
6328 (get_register): Renamed to ...
6329 (output_register): ... this. Output the register's
6330 "number" ui_out tuple here.
6331
47d48711
PA
63322013-06-07 Pedro Alves <palves@redhat.com>
6333
6334 * darwin-nat.c: Fix formating in copyright header.
6335 * darwin-nat.h: Likewise.
6336 * gnu-nat.c: Likewise.
6337 * machoread.c: Likewise.
6338
3aee8918
PA
63392013-06-07 Pedro Alves <palves@redhat.com>
6340
5f2b57b5 6341 PR server/14823
3aee8918
PA
6342 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6343 static. Output a global target description pointer.
6344 (init_registers_${name}): Adjust to initialize a
6345 target description structure.
6346
fe8400b4
WN
63472013-06-07 Will Newton <will.newton@linaro.org>
6348
6349 * printcmd.c (build_address_symbolic): Call
6350 gdbarch_addr_bits_remove for text minimal symbols.
6351
20df6206
WN
63522013-06-07 Will Newton <will.newton@linaro.org>
6353
6354 * MAINTAINERS: Add myself to Write After Approval.
6355
aef525cb
YQ
63562013-06-07 Yao Qi <yao@codesourcery.com>
6357
6358 * tracepoint.c (start_tracing): Move code to ...
6359 (trace_reset_local_state): ... here. New.
6360 (disconnect_tracing): Don't call set_current_traceframe,
6361 set_tracepoint_num, and set_traceframe_context. Call
6362 trace_reset_local_state instead.
6363 (tfile_close): Call trace_reset_local_state.
6364 * ctf.c (ctf_close): Likewise.
6365 * remote.c (remote_close): Likewise.
6366 * tracepoint.h (trace_reset_local_state): Declare.
6367
d2415c6c
DE
63682013-06-06 Doug Evans <dje@google.com>
6369
6370 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6371 and fix header docs.
6372
69fc87c2
DE
63732013-06-05 Doug Evans <dje@google.com>
6374 Keith Seitz <keiths@redhat.com>
6375
6376 PR 15519
6377 * cp-namespace.c (find_symbol_in_baseclass): Call
6378 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6379 Check result of call to lookup_symbol_static.
6380 Call lookup_static_symbol_aux unconditionally.
6381 Call check_typedef on base types before accessing them.
6382 (cp_lookup_nested_symbol): Fix comment.
6383
a513d1e8
LM
63842013-06-05 Luis Machado <lgustavo@codesourcery.com>
6385
6386 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6387 minimal symbols pointing to function descriptors.
6388
351a6f02
TT
63892013-06-05 Tom Tromey <tromey@redhat.com>
6390
6391 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6392
5e1b953b 63932013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6394 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6395
6396 * remote.c (remote_wait_as): Restore signal handler before returning
6397 when GDB gets a notification.
6398
f9e14852
GB
63992013-06-04 Gary Benson <gbenson@redhat.com>
6400
8445cbf1 6401 PR 2328
f9e14852
GB
6402 * breakpoint.h (handle_solib_event): Moved function declaration
6403 to solib.h.
6404 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6405 (bpstat_stop_status): Pass new argument to handle_solib_event.
6406 * solib.h (update_solib_breakpoints): New function declaration.
6407 (handle_solib_event): Moved function declaration from
6408 breakpoint.h.
6409 * solib.c (update_solib_breakpoints): New function.
6410 (handle_solib_event): Moved function from breakpoint.c.
6411 Updated to call solib_ops->handle_event if not NULL.
6412 * solist.h (target_so_ops): New fields "update_breakpoints" and
6413 "handle_event".
6414 * infrun.c (set_stop_on_solib_events): New function.
6415 (_initialize_infrun): Use the above for "set
6416 stop-on-solib-events".
6417 (handle_inferior_event): Pass new argument to handle_solib_event.
6418 * solib-svr4.c (probe.h): New include.
6419 (svr4_free_library_list): New forward declaration.
6420 (probe_action): New enum.
6421 (probe_info): New struct.
6422 (probe_info): New static variable.
6423 (NUM_PROBES): New definition.
6424 (svr4_info): New fields "using_xfer", "probes_table" and
6425 "solib_list".
6426 (free_probes_table): New function.
6427 (free_solib_list): New function.
6428 (svr4_pspace_data_cleanup): Free probes table and solib list.
6429 (svr4_copy_library_list): New function.
6430 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6431 (svr4_read_so_list): New parameter "prev_lm".
6432 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6433 (svr4_current_sos): New function.
6434 (probe_and_action): New struct.
6435 (hash_probe_and_action): New function.
6436 (equal_probe_and_action): Likewise.
6437 (register_solib_event_probe): Likewise.
6438 (solib_event_probe_at): Likewise.
6439 (solib_event_probe_action): Likewise.
6440 (solist_update_full): Likewise.
6441 (solist_update_incremental): Likewise.
6442 (disable_probes_interface_cleanup): Likewise.
6443 (svr4_handle_solib_event): Likewise.
6444 (svr4_update_solib_event_breakpoint): Likewise.
6445 (svr4_update_solib_event_breakpoints): Likewise.
6446 (svr4_create_solib_event_breakpoints): Likewise.
6447 (enable_break): Free probes table before creating breakpoints.
6448 Use svr4_create_solib_event_breakpoints to create breakpoints.
6449 (svr4_solib_create_inferior_hook): Free the solib list.
6450 (_initialize_svr4_solib): Initialise
6451 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6452
ced63ec0
GB
64532013-06-04 Gary Benson <gbenson@redhat.com>
6454
6455 * target.h (target_ops): New field
6456 "to_augmented_libraries_svr4_read".
6457 (target_augmented_libraries_svr4_read): New macro.
6458 * target.c (update_current_target): Handle
6459 to_augmented_libraries_svr4_read.
6460 * remote.c (remote_state): New field
6461 "augmented_libraries_svr4_read".
6462 (remote_augmented_libraries_svr4_read_feature): New function.
6463 (remote_protocol_features): Add entry for
6464 "augmented-libraries-svr4-read".
6465 (remote_augmented_libraries_svr4_read): New function.
6466 (init_remote_ops): Initialize
6467 remote_ops.to_augmented_libraries_svr4_read.
6468
7f91dbec
GB
64692013-06-04 Gary Benson <gbenson@redhat.com>
6470
6471 * NEWS: Update.
6472
607ece04
GB
64732013-06-04 Gary Benson <gbenson@redhat.com>
6474
6475 * objfiles.h (inhibit_section_map_updates): New function
6476 declaration.
6477 (resume_section_map_updates): Likewise.
6478 (resume_section_map_updates_cleanup): Likewise.
6479 * objfiles.c (objfile_pspace_info): Removed field
6480 "objfiles_changed_p". New fields "new_objfiles_available",
6481 "section_map_dirty" and "inhibit_updates".
6482 (allocate_objfile): Set new_objfiles_available.
6483 (free_objfile): Set section_map_dirty.
6484 (objfile_relocate1): Likewise.
6485 (in_plt_section): Likewise.
6486 (find_pc_section): Update the conditions under which the
6487 section map will be updated.
6488 (inhibit_section_map_updates): New function.
6489 (resume_section_map_updates): Likewise.
6490 (resume_section_map_updates_cleanup): Likewise.
6491
9ee6a5ac
GB
64922013-06-04 Gary Benson <gbenson@redhat.com>
6493
6494 * probe.h (get_probe_argument_count): New declaration.
6495 (evaluate_probe_argument): Likewise.
6496 * probe.c (get_probe_argument_count): New function.
6497 (evaluate_probe_argument): Likewise.
6498 (probe_safe_evaluate_at_pc): Use the above new functions.
6499
845d4708
AM
65002013-06-04 Alan Modra <amodra@gmail.com>
6501
6502 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6503 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6504 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6505 target mem reads on optional insns.
6506 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6507 ppc_insns_match_pattern calls.
6508 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6509 Add match for power7 thread safety insns, and new order of
6510 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6511 invocation in comment, and update rest of comment.
6512 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6513 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6514 (ppc64_standard_linkage2_target): Update insn offsets.
6515 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6516 stubs first. Update calls.
6517
404e278f
YQ
65182013-06-04 Yao Qi <yao@codesourcery.com>
6519
6520 * solib.c (solib_find): Don't need dir separator if path has
6521 drive spec.
6522
f6aea118
JB
65232013-06-03 Joel Brobecker <brobecker@adacore.com>
6524
6525 Revert (indirectly causes a SIGSEGV):
6526 * machoread.c (macho_symfile_read): Assign first cleanup to
6527 'back_to'.
6528
87967e27
YQ
65292013-06-03 Yao Qi <yao@codesourcery.com>
6530
6531 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6532 mi-parse.c. Make them static.
6533 (mi_all_values): Likewise.
6534 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6535 mi_parse_print_values. Make it external.
6536 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6537 Remove the declarations.
6538 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6539 * mi/mi-parse.h (mi_parse_print_values): Declare.
6540 * mi/mi-cmd-stack.c: Include mi-parse.h.
6541 (parse_print_values): Remove
6542 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6543 of parse_print_values.
6544 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6545
3ca73e0c
YQ
65462013-05-31 Pedro Alves <pedro@codesourcery.com>
6547 Yao Qi <yao@codesourcery.com>
6548
6549 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6550 (encode_actions): Move code to ...
6551 (all_tracepoint_actions_and_cleanup): ... here. New.
6552 (trace_dump_command): Likewise.
6553
4e993a19
TT
65542013-05-30 Tom Tromey <tromey@redhat.com>
6555
6556 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6557
e3b76b4f
TT
65582013-05-30 Tom Tromey <tromey@redhat.com>
6559
6560 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6561 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6562 'old_chain' argument. Add 'parser_result' argument.
6563 (gdb_xml_create_parser_and_cleanup): Remove old version.
6564 (gdb_xml_parse_quick): Update.
6565 (xml_process_xincludes): Update.
6566 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6567 declare.
6568
db26349c
TT
65692013-05-30 Tom Tromey <tromey@redhat.com>
6570
6571 * probe.c (collect_probes): Check arguments for NULL before
6572 calling compile_rx_or_error.
6573 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6574 Remove NULL return.
6575
77f9e713
TT
65762013-05-30 Tom Tromey <tromey@redhat.com>
6577
6578 * infrun.c (adjust_pc_after_break): Introduce an outer null
6579 cleanup.
6580
45475de7
TT
65812013-05-30 Tom Tromey <tromey@redhat.com>
6582
6583 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6584
ac5007fd
TT
65852013-05-30 Tom Tromey <tromey@redhat.com>
6586
6587 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6588 for 'old_chain'. Do not check 'head' before processing
6589 cleanups.
6590
cd82eddc
TT
65912013-05-30 Tom Tromey <tromey@redhat.com>
6592
6593 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6594 "cleanup_tuple".
6595
57cee33a
TT
65962013-05-30 Tom Tromey <tromey@redhat.com>
6597
6598 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6599 inner scope. Unconditionally call do_cleanups.
6600
795d915c
TT
66012013-05-30 Tom Tromey <tromey@redhat.com>
6602
6603 * source.c (find_and_open_source): Call do_cleanups.
6604
1fc3cf4a
TT
66052013-05-30 Tom Tromey <tromey@redhat.com>
6606
6607 * linux-thread-db.c (thread_db_load_search): Unconditionally
6608 call do_cleanups.
6609
e35ac9bf
TT
66102013-05-30 Tom Tromey <tromey@redhat.com>
6611
6612 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6613 for 'cleanup'; instead use a later one.
6614
f3300387
TT
66152013-05-30 Tom Tromey <tromey@redhat.com>
6616
6617 * python/py-breakpoint.c (bppy_get_commands): Use
6618 explicit, unconditional return.
6619 * python/py-frame.c (frapy_read_var): Likewise.
6620 * python/python.c (gdbpy_decode_line): Likewise.
6621
c27e16e3
TT
66222013-05-30 Tom Tromey <tromey@redhat.com>
6623
6624 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6625 do_cleanups on all return paths.
6626
5ae85e44
TT
66272013-05-30 Tom Tromey <tromey@redhat.com>
6628
6629 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6630
73b8d9da
TT
66312013-05-30 Tom Tromey <tromey@redhat.com>
6632
6633 * stabsread.c (read_struct_type): Call do_cleanups along
6634 all return paths.
6635
7d266584
MR
66362013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6637
6638 * mips-linux-tdep.c: Adjust formatting throughout.
6639
0f900f54
TT
66402013-05-30 Tom Tromey <tromey@redhat.com>
6641
6642 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6643 along all return paths.
6644
a991ac28
TT
66452013-05-30 Tom Tromey <tromey@redhat.com>
6646
6647 * symfile.c (find_separate_debug_file): Call do_cleanups
6648 along all return paths.
6649
1abaf042
TT
66502013-05-30 Tom Tromey <tromey@redhat.com>
6651
6652 * symtab.c (search_symbols): Introduce a null cleanup for
6653 'retval_chain'.
6654
edefe1da
TT
66552013-05-30 Tom Tromey <tromey@redhat.com>
6656
6657 * python/py-value.c (valpy_binop): Call do_cleanups before
6658 exiting loop.
6659
54f72dcc
TT
66602013-05-30 Tom Tromey <tromey@redhat.com>
6661
6662 * python/py-prettyprint.c (print_children): Remove extra
6663 do_cleanups call.
6664
af1c6971
TT
66652013-05-30 Tom Tromey <tromey@redhat.com>
6666
6667 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6668 all return paths.
6669
b862ce75
TT
66702013-05-30 Tom Tromey <tromey@redhat.com>
6671
6672 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6673 along all return paths.
6674
e12fefc8
TT
66752013-05-30 Tom Tromey <tromey@redhat.com>
6676
6677 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6678 call do_cleanups.
6679
4867f990
TT
66802013-05-30 Tom Tromey <tromey@redhat.com>
6681
6682 * varobj.c (c_value_of_root): Call do_cleanups along all
6683 return paths.
6684
4fd2d6af
TT
66852013-05-30 Tom Tromey <tromey@redhat.com>
6686
6687 * tracepoint.c (trace_dump_command): Unconditionally call
6688 do_cleanups.
6689
752eb8b4
TT
66902013-05-30 Tom Tromey <tromey@redhat.com>
6691
6692 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6693 do_cleanups earlier.
6694
e42d0aa5
TT
66952013-05-30 Tom Tromey <tromey@redhat.com>
6696
6697 * machoread.c (macho_symfile_read): Assign first cleanup to
6698 'back_to'.
6699
4bbc010a
TT
67002013-05-30 Tom Tromey <tromey@redhat.com>
6701
6702 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6703
b9635925
TT
67042013-05-30 Tom Tromey <tromey@redhat.com>
6705
6706 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6707
25f43500
TT
67082013-05-30 Tom Tromey <tromey@redhat.com>
6709
6710 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6711 call discard_cleanups.
6712 (inf_ptrace_attach): Likewise.
6713
d6a2e54a
TT
67142013-05-30 Tom Tromey <tromey@redhat.com>
6715
6716 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6717 return paths.
6718 (mips_initialize): Likewise.
6719 (common_open): Call do_cleanups.
6720
48be7c1b
TT
67212013-05-30 Tom Tromey <tromey@redhat.com>
6722
6723 * utils.c (internal_vproblem): Call do_cleanups.
6724
e61727ab
TT
67252013-05-30 Tom Tromey <tromey@redhat.com>
6726
6727 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6728
b81b921f
TT
67292013-05-30 Tom Tromey <tromey@redhat.com>
6730
6731 * cli/cli-script.c (setup_user_args): Don't return after error.
6732
fe48dfb1
TT
67332013-05-30 Tom Tromey <tromey@redhat.com>
6734
6735 * somread.c (som_symtab_read): Call do_cleanups.
6736
27833de7
TT
67372013-05-30 Tom Tromey <tromey@redhat.com>
6738
6739 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6740
5b3fca71
TT
67412013-05-30 Tom Tromey <tromey@redhat.com>
6742
6743 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6744 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6745 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6746 * source.c (show_substitute_path_command): Call do_cleanups.
6747 (unset_substitute_path_command, set_substitute_path_command):
6748 Likewise.
6749 * symfile.c (load_command): Call do_cleanups.
6750
af83e3f8
TT
67512013-05-30 Tom Tromey <tromey@redhat.com>
6752
6753 * contrib/cleanup_check.py: New file.
6754 * contrib/gcc-with-excheck: Add option parsing.
6755
564eac42
JB
67562013-05-30 Joel Brobecker <brobecker@adacore.com>
6757
6758 * windows-nat.c (windows_delete_thread): Add missing space
6759 in cast expression.
6760
47902076
HAQ
67612013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6762
6763 * inferior.c (top level): Include tilde.h.
6764 (add_inferior_command): Call tilde_expand on the value of 'exec'
6765 argument.
6766
23da373a
YQ
67672013-05-30 Pedro Alves <pedro@codesourcery.com>
6768 Yao Qi <yao@codesourcery.com>
6769
6770 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6771 Caller update.
6772 (encode_actions): Likewise.
6773 * remote.c (remote_download_tracepoint): Caller update.
6774 * tracepoint.h (encode_actions): Update declaration.
6775
a6e6f791
PA
67762013-05-30 Pedro Alves <palves@redhat.com>
6777
6778 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6779 pointer.
6780
36d25514
YQ
67812013-05-30 Yao Qi <yao@codesourcery.com>
6782
6783 * remote.c (remote_check_symbols): Remove unused parameter
6784 'objfile'.
6785 Declaration update.
6786 (remote_start_remote, remote_new_objfile): Caller update.
6787
62a813cc
YQ
67882013-05-30 Yao Qi <yao@codesourcery.com>
6789
6790 * mi/mi-cmds.c (mi_cmds): Define MI command
6791 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6792 DEF_MI_CMD_CLI.
6793
28439a30
PA
67942013-05-29 Pedro Alves <palves@redhat.com>
6795
6796 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6797 (remote_insert_watchpoint, remote_remove_watchpoint)
6798 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6799 (remote_verify_memory, compare_sections_command)
6800 (remote_search_memory): Set the general process/thread on the
6801 remote side.
6802
6ac1c082
PA
68032013-05-29 Pedro Alves <palves@redhat.com>
6804
6805 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6806 (_initialize_aarch64_tdep): Don't call
6807 initialize_tdesc_aarch64_without_fpu.
6808 * features/Makefile (WHICH): Remove reference to
6809 aarch64-without-fpu.
6810 * features/aarch64-without-fpu.c: Delete file.
6811 * regformats/aarch64-without-fpu.dat: Delete file.
6812
a73e3634
YQ
68132013-05-28 Yao Qi <yao@codesourcery.com>
6814
6815 * tracepoint.c (stringify_collection_list): Remove parameter
6816 'string'.
6817 (encode_actions): Caller update. Remove local variables.
6818
c0ea94eb
YQ
68192013-05-24 Yao Qi <yao@codesourcery.com>
6820
6821 * tracepoint.c (TFILE_PID): Remove.
6822 (tfile_open): Don't add thread and inferior.
6823 (tfile_close): Don't set 'inferior_ptid'. Don't call
6824 exit_inferior_silent.
6825 (tfile_thread_alive): Remove.
6826 (init_tfile_ops): Don't set field 'to_thread_alive' of
6827 tfile_ops.
6828
20d7f211
DE
68292013-05-23 Doug Evans <dje@google.com>
6830
6831 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6832
8658d16d
PA
68332013-05-23 Pedro Alves <palves@redhat.com>
6834
6835 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6836 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6837 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6838 Only define if HAVE_SOCKETS is defined.
6839 * configure.ac: Check for sys/socket.h.
6840 * config.in, configure: Regenerate.
6841
21aa081e
PA
68422013-05-23 Pedro Alves <palves@redhat.com>
6843
6844 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6845 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6846 printing uint32_t variables.
6847
c2d6af84
PA
68482013-05-23 Pedro Alves <palves@redhat.com>
6849
6850 * NEWS: Mention GDBserver range stepping support.
6851
c1e36e3e
PA
68522013-05-23 Yao Qi <yao@codesourcery.com>
6853 Pedro Alves <palves@redhat.com>
6854
6855 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6856 field.
6857 * infcmd.c (step_once, until_next_command): Enable range stepping.
6858 * infrun.c (displaced_step_prepare): Disable range stepping.
6859 (resume): Disable range stepping if stepping over a breakpoint or
6860 we have software watchpoints. If range stepping is enabled,
6861 assert the thread is in the stepping range.
6862 (clear_proceed_status_thread): Clear may_range_step.
6863 (handle_inferior_event): Disable range stepping as soon as we know
6864 the thread that hit the event. Re-enable it whenever we're going
6865 to step with a step range.
6866 * remote.c (struct vCont_action_support) <r>: New field.
6867 (use_range_stepping): New global.
6868 (remote_vcont_probe): Handle 'r' action.
6869 (append_resumption): Append an 'r' action if the thread may range
6870 step.
6871 (show_range_stepping): New function.
6872 (set_range_stepping): New function.
6873 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6874 'set range-stepping' and 'show range-stepping' commands.
6875 * NEWS: Mention range stepping, the new vCont;r action, and the
6876 new "set/show range-stepping" commands.
6877
d458bd84
PA
68782013-05-23 Yao Qi <yao@codesourcery.com>
6879 Pedro Alves <palves@redhat.com>
6880
6881 * remote.c (struct vCont_action_support): New struct.
6882 (struct remote_state) <support_vCont_t>: Remove field.
6883 <vCont_actions_support>: New field.
6884 (remote_vcont_probe, remote_stop_ns): Update.
6885
ce4c476a
PA
68862013-05-23 Yao Qi <yao@codesourcery.com>
6887 Pedro Alves <palves@redhat.com>
6888
6889 * gdbthread.h (pc_in_thread_step_range): New declaration.
6890 * thread.c (pc_in_thread_step_range): New function.
6891 * infrun.c (handle_inferior_event): Use it.
6892
ce70887a
JB
68932013-05-23 Joel Brobecker <brobecker@adacore.com>
6894
6895 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6896 of sprintf.
6897
55b87a52
KS
68982013-05-22 Keith Seitz <keiths@redhat.com>
6899
6900 * ada-lang.c (is_known_support_routine): Add explicit free of
6901 'func_name' from find_frame_funname.
6902 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6903 for func_name from find_frame_funname.
6904 * python/py-frame.c (frapy_name): Add explicit free of
6905 'name' from find_frame_funname.
6906 * stack.c (find_frame_funname): Add comment explaining that
6907 funcp must be freed by the caller.
6908 Return copy of symbol names instead of pointers.
6909 (print_frame): Add a cleanup for 'funname' from
6910 find_frame_funname.
6911 * stack.h (find_frame_funname): Remove "const" from
6912 'funname' parameter.
6913
5f2e6b00
TT
69142013-05-22 Tom Tromey <tromey@redhat.com>
6915
6916 PR c++/15401:
6917 * c-valprint.c (c_value_print): Use value_addr for
6918 references. Convert back to reference type with value_ref.
6919
d85c4847
EZ
69202013-05-22 Eli Zaretskii <eliz@gnu.org>
6921
6922 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6923 unloaded DLL, it will be done by handle_solib_event. See
6924 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6925 details.
6926
54eb231c
PM
69272013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6928
6929 * ui-out.c: Create typedef ui_out_level_p and define vector
6930 operations for that type.
6931 (struct ui_out): Use a vector instead of an array.
6932 (current_level): Return level from a vector.
6933 (push_level): Create a level in a vector.
6934 (pop_level): Delete a level in a vector.
6935 (ui_out_new): Create initial level zero level, and store in a
6936 vector.
6937 (ui_out_destroy): Add vector cleanup.
6938
ac90359c
PA
69392013-05-22 Pedro Alves <palves@redhat.com>
6940
6941 * python/python-internal.h (gdb_Py_DECREF): Tag with
6942 "ARI: editCase function".
6943
6dcc1893
PP
69442013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6945
6946 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6947
c8c735b9
PA
69482013-05-21 Pedro Alves <palves@redhat.com>
6949
6950 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6951 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6952 * python/py-utils.c (py_decref): Don't check for NULL before
6953 calling Py_DECREF.
6954
1915daeb
PA
69552013-05-21 Pedro Alves <palves@redhat.com>
6956
6957 * python/py-utils.c (py_decref): Remove extra braces.
6958 (gdb_pymodule_addobject): Remove extra braces.
6959 * python-internal.h (gdb_Py_DECREF): New static inline function.
6960 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6961
bd9673a4
PW
69622013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6963
6964 * breakpoints.c (detach_breakpoints): Do not
6965 detach breakpoints locations with loc_type bp_loc_other.
6966
ff6009d0
JK
69672013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6968
6969 Workaround Python 2.6.
6970 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6971 a block.
6972
3641da11
JK
69732013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6974
6975 Code cleanup: constification.
6976 * solib.c (solib_ops): Make return type and ops variable type const.
6977 (set_solib_ops): Make the new_ops parameter and ops variable const.
6978 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6979 (solib_add, solib_keep_data_in_core, clear_solib)
6980 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6981 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6982 const.
6983 * solib.h (set_solib_ops): Make the new_ops parameter const.
6984
776af39e
JB
69852013-05-21 Joel Brobecker <brobecker@adacore.com>
6986
6987 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6988 variable.
6989 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6990 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6991 (SYSTEM_GDBINIT_FILES): New variables.
6992 (all): Add stamp-system-gdbinit.
6993 (stamp-system-gdbinit): New rule.
6994 (clean-system-gdbinit, install-system-gdbinit)
6995 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6996 (install-only): Add dependency on install-system-gdbinit.
6997 (uninstall): Add dependency on uninstall-system-gdbinit.
6998 (clean): Add dependency on clean-system-gdbinit.
6999 * system-gdbinit/elinos.py: New file.
7000 * system-gdbinit/wrs-linux.py: New file.
7001
1509e573
JB
70022013-05-21 Joel Brobecker <brobecker@adacore.com>
7003
7004 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7005
c5867ab6
HZ
70062013-05-21 Hui Zhu <hui@codesourcery.com>
7007
7008 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7009 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7010 * mi/mi-cmd-break.c (ctype.h): New include.
7011 (gdb_obstack.h): New include.
7012 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7013 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7014 (mi_cmd_dprintf_insert): New.
7015 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7016 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7017
7d38e38f
TT
70182013-05-20 Tom Tromey <tromey@redhat.com>
7019
7020 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7021
97b77b39
TT
70222013-05-20 Tom Tromey <tromey@redhat.com>
7023
7024 * python/py-value.c (valpy_get_dynamic_type): Simplify
7025 dynamic_type assignment. Use Py_XINCREF.
7026
53e66479
TT
70272013-05-20 Tom Tromey <tromey@redhat.com>
7028
7029 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7030
dcf87832
TT
70312013-05-20 Tom Tromey <tromey@redhat.com>
7032
7033 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7034 (gdbpy_selected_frame): Move object-construction code
7035 out of TRY_CATCH.
7036
aa36459a
TT
70372013-05-20 Tom Tromey <tromey@redhat.com>
7038
7039 * python/py-arch.c (gdbpy_initialize_arch): Use
7040 gdb_pymodule_addobject.
7041 * python/py-block.c (gdbpy_initialize_blocks): Use
7042 gdb_pymodule_addobject.
7043 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7044 gdb_pymodule_addobject.
7045 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7046 gdb_pymodule_addobject.
7047 * python/py-event.c (gdbpy_initialize_event_generic): Use
7048 gdb_pymodule_addobject.
7049 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7050 gdb_pymodule_addobject.
7051 * python/py-evts.c (add_new_registry): Use
7052 gdb_pymodule_addobject.
7053 (gdbpy_initialize_py_events): Likewise.
7054 * python/py-finishbreakpoint.c
7055 (gdbpy_initialize_finishbreakpoints): Use
7056 gdb_pymodule_addobject.
7057 * python/py-frame.c (gdbpy_initialize_frames): Use
7058 gdb_pymodule_addobject.
7059 * python/py-function.c (gdbpy_initialize_functions): Use
7060 gdb_pymodule_addobject.
7061 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7062 gdb_pymodule_addobject.
7063 * python/py-infthread.c (gdbpy_initialize_thread): Use
7064 gdb_pymodule_addobject.
7065 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7066 gdb_pymodule_addobject.
7067 * python/py-param.c (gdbpy_initialize_parameters): Use
7068 gdb_pymodule_addobject.
7069 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7070 gdb_pymodule_addobject.
7071 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7072 gdb_pymodule_addobject.
7073 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7074 gdb_pymodule_addobject.
7075 * python/py-type.c (gdbpy_initialize_types): Use
7076 gdb_pymodule_addobject.
7077 * python/py-utils.c (gdb_pymodule_addobject): New function.
7078 * python/py-value.c (gdbpy_initialize_values): Use
7079 gdb_pymodule_addobject.
7080 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7081 * python/python.c (_initialize_python): Use
7082 gdb_pymodule_addobject.
7083
3d4a3c3e
TT
70842013-05-20 Tom Tromey <tromey@redhat.com>
7085
7086 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7087 * python/py-param.c (get_set_value, get_show_value): Use
7088 explicit decrefs.
7089 * python/python.c (start_type_printers, apply_type_printers):
7090 Use explicit decrefs.
7091
72ff8829
TT
70922013-05-20 Tom Tromey <tromey@redhat.com>
7093
7094 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7095 incref the module.
7096
02146ba5
TT
70972013-05-20 Tom Tromey <tromey@redhat.com>
7098
7099 * python/python.c (gdbpy_run_events): Decref the result
7100 of PyObject_CallObject.
7101
33ee792f
TT
71022013-05-20 Tom Tromey <tromey@redhat.com>
7103
7104 * python/py-symtab.c (set_sal): Use
7105 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7106 (symtab_and_line_to_sal_object): Update.
7107
fcb49fc8
TT
71082013-05-20 Tom Tromey <tromey@redhat.com>
7109
7110 * python/py-param.c (compute_enum_values): Decref 'item'.
7111
0646da15
TT
71122013-05-20 Tom Tromey <tromey@redhat.com>
7113
7114 * mi/mi-main.c: Include python-internal.h.
7115 (mi_cmd_list_features): Check gdb_python_initialized.
7116 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7117 (python_inferior_exit, python_new_objfile, add_thread_object)
7118 (delete_thread_object, py_free_inferior): Check
7119 gdb_python_initialized.
7120 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7121 gdb_python_initialized.
7122 * python/py-type.c (save_objfile_types): Check
7123 gdb_python_initialized.
7124 * python/python-internal.h (gdb_python_initialized): Declare.
7125 * python/python.c (ensure_python_env): Throw exception if
7126 Python not initialized.
7127 (before_prompt_hook, source_python_script_for_objfile)
7128 (start_type_printers, apply_type_printers,
7129 free_type_printers): Check gdb_python_initialized.
7130 * varobj.c (varobj_get_display_hint)
7131 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7132 (install_new_value_visualizer, varobj_set_visualizer)
7133 (value_get_print_value): Check gdb_python_initialized.
7134
999633ed
TT
71352013-05-20 Tom Tromey <tromey@redhat.com>
7136
7137 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7138 Check errors.
7139 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7140 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7141 Check errors.
7142 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7143 Check errors.
7144 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7145 Check errors.
7146 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7147 Check errors.
7148 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7149 init function to return 'int'.
7150 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7151 Return 'int'. Check errors.
7152 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7153 Check errors.
7154 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7155 Return 'int'. Check errors.
7156 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7157 Check errors.
7158 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7159 Check errors.
7160 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7161 Check errors.
7162 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7163 Check errors.
7164 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7165 Check errors.
7166 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7167 Check errors.
7168 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7169 Check errors.
7170 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7171 Check errors.
7172 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7173 Check errors.
7174 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7175 Check errors.
7176 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7177 Check errors.
7178 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7179 Check errors.
7180 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7181 Check errors.
7182 * python/python-internal.h (gdbpy_initialize_auto_load,
7183 gdbpy_initialize_values, gdbpy_initialize_frames,
7184 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7185 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7186 gdbpy_initialize_blocks, gdbpy_initialize_types,
7187 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7188 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7189 gdbpy_initialize_finishbreakpoints,
7190 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7191 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7192 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7193 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7194 gdbpy_initialize_signal_event,
7195 gdbpy_initialize_breakpoint_event,
7196 gdbpy_initialize_continue_event,
7197 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7198 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7199 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7200 * python/python.c (gdb_python_initialized): New global.
7201 (gdbpy_initialize_events): Return 'int'. Check errors.
7202 (_initialize_python): Check errors. Set
7203 gdb_python_initialized.
7204
18868860
TT
72052013-05-20 Tom Tromey <tromey@redhat.com>
7206
7207 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7208 Decref the reslut of PyObject_CallMethod.
7209
9f4ff0c2
TT
72102013-05-20 Tom Tromey <tromey@redhat.com>
7211
7212 * python/py-event.c (gdbpy_initialize_event_generic): Return
7213 early if PyType_Ready fails.
7214
0d3a2e8a
TT
72152013-05-20 Tom Tromey <tromey@redhat.com>
7216
7217 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7218 as 'default' in the switch.
7219
b86af38a
TT
72202013-05-20 Tom Tromey <tromey@redhat.com>
7221
7222 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7223 get_addr_from_python calls out of TRY_CATCH.
7224 (infpy_write_memory, infpy_search_memory): Likewise.
7225 * python/py-utils.c (get_addr_from_python): Return negative
7226 value on error. Use TRY_CATCH.
7227 * python/python-internal.h (get_addr_from_python): Use
7228 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7229
c127ec58
TT
72302013-05-20 Tom Tromey <tromey@redhat.com>
7231
7232 * python/py-event.c (evpy_emit_event): Decref the
7233 result of PyObject_CallFunctionObjArgs.
7234
ba327838
TT
72352013-05-20 Tom Tromey <tromey@redhat.com>
7236
7237 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7238 Correctly decref.
7239
d8191432
TT
72402013-05-20 Tom Tromey <tromey@redhat.com>
7241
7242 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7243
5d153bd1
TT
72442013-05-20 Tom Tromey <tromey@redhat.com>
7245
7246 * python/py-event.h (gdbpy_initialize_event_generic): Use
7247 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7248 * python/py-evts.c (add_new_registry): Use
7249 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7250 * python/python-internal.h
7251 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7252
56cc411c
TT
72532013-05-20 Tom Tromey <tromey@redhat.com>
7254
7255 * python/py-arch.c (archpy_disassemble): Update.
7256 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7257 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7258 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7259 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7260 macro.
7261 (GDB_PY_HANDLE_EXCEPTION): Update.
7262 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7263
8919e174
TT
72642013-05-20 Tom Tromey <tromey@redhat.com>
7265
7266 * python/python-internal.h (events_object_type): Remove.
7267
9b08f225
TT
72682013-05-20 Tom Tromey <tromey@redhat.com>
7269
f5aee5ee
AM
7270 * python/py-event.h (evpy_emit_event): Use
7271 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7272 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7273 New macro.
9b08f225 7274
f04010ff
TT
72752013-05-20 Tom Tromey <tromey@redhat.com>
7276
7277 * py-evtregistry.c (create_event_object): Decref
7278 eventregistry_object if PyList_New fails.
7279
3919fd96
TT
72802013-05-20 Tom Tromey <tromey@redhat.com>
7281
7282 * py-cmd.c (gdbpy_string_to_argv): Check result of
7283 PyList_New.
7284
0430e8cb
TT
72852013-05-20 Tom Tromey <tromey@redhat.com>
7286
7287 * python/python.c (before_prompt_hook): Add cleanup to
7288 decref 'hook'.
7289
764123e4
TT
72902013-05-20 Tom Tromey <tromey@redhat.com>
7291
7292 * python/py-function.c (fnpy_init): Decref result of
7293 PyObject_GetAttrString.
7294
634c58be
TT
72952013-05-20 Tom Tromey <tromey@redhat.com>
7296
7297 * python/py-threadevent.c (get_event_thread): Use
7298 CPYCHECKER_RETURNS_BORROWED_REF.
7299 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7300 New define.
7301 (pspace_to_pspace_object, objfile_to_objfile_object)
7302 (find_thread_object): Use it.
7303
62eec1a5
TT
73042013-05-20 Tom Tromey <tromey@redhat.com>
7305
7306 * python/py-arch.c (arch_object_type): Use
7307 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7308 * python/py-block.c (block_syms_iterator_object_type):
7309 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7310 * python/py-bpevent.c (breakpoint_event_object_type):
7311 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7312 * python/py-cmd.c (cmdpy_object_type): Use
7313 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7314 * python/py-continueevent.c (continue_event_object_type):
7315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7316 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7317 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7318 * python/py-events.h (thread_event_object_type):
7319 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7320 * python/py-evtregistry.c (eventregistry_object_type): Use
7321 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7322 * python/py-exitedevent.c (exited_event_object_type):
7323 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7324 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7325 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7326 * python/py-function.c (fnpy_object_type): Use
7327 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7328 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7329 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7330 * python/py-infthread.c (thread_object_type): Use
7331 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7332 * python/py-lazy-string.c (lazy_string_object_type):
7333 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7334 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7335 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7336 * python/py-objfile.c (objfile_object_type): Use
7337 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7338 * python/py-param.c (parmpy_object_type):
7339 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7340 * python/py-progspace.c (pspace_object_type):
7341 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7342 * python/py-signalevent.c (signal_event_object_type):
7343 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7344 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7345 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7346 * python/py-type.c (type_object_type, field_object_type)
7347 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7348 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7349 define.
7350 (value_object_type, block_object_type, symbol_object_type)
7351 (event_object_type, stop_event_object_type, breakpoint_object_type)
7352 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7353
81ea8796
AT
73542013-05-20 Andreas Tobler <andreas@fgznet.ch>
7355
7356 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7357 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7358
a2ce51a0
DE
73592013-05-20 Doug Evans <dje@google.com>
7360
7361 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7362 For Fission.
7363 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7364 reading_dwo_directly.
7365 (struct signatured_type): New member dwo_unit.
7366 (struct die_reader_specs): New member comp_dir.
7367 (create_signatured_type_table_from_index): Use malloc for
7368 all_type_units instead of objfile's obstack.
7369 (create_all_type_units): Ditto.
7370 (fill_in_sig_entry_from_dwo_entry): New function.
7371 (add_type_unit): New function.
7372 (lookup_dwo_signatured_type): New function.
7373 (lookup_dwp_signatured_type): New function.
7374 (lookup_signatured_type): New arg cu. All callers updated.
7375 (init_cu_die_reader): Initialize comp_dir.
7376 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7377 Change assert of matching type signatures to call error on mismatch.
7378 (lookup_dwo_unit): Add assert.
7379 (init_tu_and_read_dwo_dies): New function.
7380 (init_cutu_and_read_dies): Call it.
7381 (build_type_unit_groups): Handle case of no type unit groups created.
7382 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7383 (lookup_dwo_cutu): Tweak complaint.
7384 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7385 (dwarf2_per_objfile_free): Free all_type_units.
7386
a25cd31f
JB
73872013-05-20 Joel Brobecker <brobecker@adacore.com>
7388
7389 * windows-nat.c (handle_unload_dll): Add missing empty line.
7390
4d804846
JB
73912013-05-20 Joel Brobecker <brobecker@adacore.com>
7392
7393 * dwarf2read.c (prototyped_function_p): New function.
7394 (read_subroutine_type): Use it.
7395
1c432e72
JB
73962013-05-20 Joel Brobecker <brobecker@adacore.com>
7397
7398 * rs6000-aix-tdep.c: De-indent some example code provided
7399 as a comment.
7400
4feebbdd
EBM
74012013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7402
7403 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7404 region is ok for a hardware watchpoint using the new ptrace interface
7405 on Power servers.
7406
7d0c9981
DE
74072013-05-17 Doug Evans <dje@google.com>
7408
7409 * NEWS: Mention new maintenance commands check-symtabs, and
7410 expand-symtabs, and renamed check-psymtabs.
7411 * psymtab.c (maintenance_check_psymtabs): Renamed from
7412 maintenance_check_symtabs. Only process already-expanded symbol
7413 tables.
7414 (_initialize_psymtab): Update.
7415 * symmisc.c (maintenance_check_symtabs): New function.
7416 (maintenance_expand_name_matcher): New function
7417 (maintenance_expand_file_matcher): New function
7418 (maintenance_expand_symtabs): New function.
7419 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7420 commands.
7421
6cbc7c3d
TT
74222013-05-17 Tom Tromey <tromey@redhat.com>
7423
7424 * python/py-inferior.c (infpy_read_memory): Don't call
7425 PyErr_SetString if PyObject_New fails.
7426 * python/py-frame.c (frame_info_to_frame_object): Don't call
7427 PyErr_SetString if PyObject_New fails.
7428
a48b32c0
L
74292013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7430
7431 * acinclude.m4: Add check for dlopen in libdl.
7432 * configure.ac: Ditto.
7433 * configure: Regenerate.
7434
3de661e6
PM
74352013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7436
7437 * frame.c (frame_stash): Convert to htab.
7438 (frame_addr_hash): New function.
7439 (frame_addr_hash_eq): New function.
7440 (frame_stash_create): Convert function to create
7441 a hash table.
7442 (frame_stash_add): Convert function to add an entry to a hash
7443 table.
7444 (frame_stash_find): Convert function to search the hash table.
7445 (frame_stash_invalidate): Convert function to empty the hash
7446 table.
7447 (get_frame_id): Only add to stash if a frame_id is created.
7448 (_initialize_frame): Call frame_stash_create.
7449
bb4168a9 74502013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7451
7452 * configure.ac: Ensure MIG is available when building for GNU Hurd
7453 hosts.
7454 * configure: Regenerate.
7455
d1be3247
JB
74562013-05-16 Joel Brobecker <brobecker@adacore.com>
7457
7458 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7459
b8fea896
JB
74602013-05-16 Joel Brobecker <brobecker@adacore.com>
7461
7462 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7463 all cleanups are done before returning from this function.
7464
af880d85
JB
74652013-05-15 Joel Brobecker <brobecker@adacore.com>
7466
7467 * utils.h: #include "exceptions.h".
7468 (enum errors): Remove partial declaration.
7469
356a5233
JB
74702013-05-15 Joel Brobecker <brobecker@adacore.com>
7471
7472 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7473 * gdbarch.h, gdbarch.c: Regenerate.
7474 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7475 handling.
7476
7477 * rs6000-aix-tdep.h: New file.
7478 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7479 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7480 "xml-utils.h".
7481 (struct field_info, struct ld_info_desc): New types.
7482 (ld_info32_desc, ld_info64_desc): New static constants.
7483 (struct ld_info): New type.
7484 (rs6000_aix_extract_ld_info): New function.
7485 (rs6000_aix_shared_library_to_xml): Likewise.
7486 (rs6000_aix_ld_info_to_xml): Likewise.
7487 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7488 (rs6000_aix_init_osabi): Add call to
7489 set_gdbarch_core_xfer_shared_libraries_aix.
7490 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7491 Remove "xml-utils.h" include.
7492 (LdInfo): Delete typedef.
7493 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7494 Delete macros.
7495 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7496 Adjust code accordingly.
7497 (rs6000_core_ldinfo): Delete, folded into
7498 rs6000_aix_core_xfer_shared_libraries_aix.
7499 (rs6000_xfer_shared_library): Delete.
7500 (rs6000_xfer_shared_libraries): Reimplement.
7501
742ce053
MM
75022013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7503
7504 * record.c (record_goto_cmdlist): New.
7505 (cmd_record_goto): Split into this ...
7506 (cmd_record_goto_begin): ... this
7507 (cmd_record_goto_end): ... and this.
7508 (_initialize_record): Change "record goto" to prefix command.
7509 Add commands for "record goto begin" and "record goto end".
7510 Add an alias for "record goto start" to "record goto begin".
7511
e93ba630
JK
75122013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7513
7514 * linespec.c (convert_linespec_to_sals): New comment for
7515 SOURCE_FILENAME assignment.
7516
5821aace
JK
75172013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7520 internal_warning.
7521
a1b8c4cc
TT
75222013-05-14 Tom Tromey <tromey@redhat.com>
7523
7524 * eval.c (parse_and_eval_long): Make 'exp' const.
7525 * value.h (parse_and_eval_long): Update.
7526
23b3a2c3
TT
75272013-05-14 Tom Tromey <tromey@redhat.com>
7528
7529 * ui-file.c (gdb_fopen): Make arguments const.
7530 * ui-file.h (gdb_fopen): Make arguments const.
7531
ca623f82
TT
75322013-05-14 Tom Tromey <tromey@redhat.com>
7533
7534 * remote.c (remote_set_trace_notes): Make arguments const.
7535 * target.c (update_current_target): Update cast.
7536 * target.h (to_set_trace_notes): Make arguments const.
7537
503ebb2c
TT
75382013-05-14 Tom Tromey <tromey@redhat.com>
7539
7540 * go32-nat.c (go32_terminal_info): Make 'args' const.
7541 * inferior.h (child_terminal_info): Update.
7542 * inflow.c (child_terminal_info): Make 'args' const.
7543 * target.c (default_terminal_info): Make 'args' const.
7544 (debug_to_terminal_save_ours): Likewise.
7545 * target.h (struct target_ops) <to_terminal_info>: Make argument
7546 const.
7547
85e1311a
TT
75482013-05-13 Tom Tromey <tromey@redhat.com>
7549
7550 * gcore.c (create_gcore_bfd): Make 'filename' const.
7551 * gcore.h (create_gcore_bfd): Make 'filename' const.
7552 * record-full.c (record_full_save): Make 'recfilename' const.
7553 * target.c (target_save_record): Make 'filename' const.
7554 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7555 const.
7556 (target_save_record): Likewise.
7557
d62bfeaf
TT
75582013-05-13 Tom Tromey <tromey@redhat.com>
7559
f5aee5ee 7560 PR gdb/15338:
d62bfeaf
TT
7561 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7562 ranges section has been read.
7563
ac1ca910
TT
75642013-05-13 Tom Tromey <tromey@redhat.com>
7565
7566 PR exp/15364:
7567 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7568 STRUCTOP_PTR>: Return a not_lval value for
7569 EVAL_AVOID_SIDE_EFFECTS.
7570 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7571 for EVAL_AVOID_SIDE_EFFECTS.
7572
36d1c68c
JB
75732013-05-13 Joel Brobecker <brobecker@adacore.com>
7574
7575 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7576 floating point registers to register type before storing
7577 value.
7578 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7579 Likewise.
7580
21ff4686
TT
75812013-05-10 Joel Brobecker <brobecker@adacore.com>
7582 Tom Tromey <tromey@redhat.com>
7583
7584 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7585 New functions.
7586 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7587 Declare.
7588 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7589 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7590 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7591 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7592
d3685d60
TT
75932013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7594 Tom Tromey <tromey@redhat.com>
7595
7596 PR build/15414:
7597 * configure: Rebuild.
7598 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7599 with -Wno-format.
7600
eb9fe518
PA
76012013-05-10 Pedro Alves <palves@redhat.com>
7602
7603 * remote.c (_initialize_remote): Fix spelling of
7604 qXfer:traceframe-info:read packet in packet config command.
7605
9779ab84
PA
76062013-05-10 David Taylor <dtaylor@emc.com>
7607
7608 PR remote/15455
7609
7610 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7611 "QTro" at start of packet.
7612
060cfbef
JB
76132013-05-10 Joel Brobecker <brobecker@adacore.com>
7614
7615 * solib-aix.c (solib_aix_relocate_section_addresses):
7616 For the .bss section action, apply the same offset as
7617 the .data section.
7618
ab1c4e88
JB
76192013-05-10 Joel Brobecker <brobecker@adacore.com>
7620
7621 * solib-aix.c (solib_aix_relocate_section_addresses):
7622 Remove FIXME comment.
7623
c1357578
JB
76242013-05-10 Joel Brobecker <brobecker@adacore.com>
7625
7626 PR tdep/15420:
7627 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7628 New functions, directly copied from sparc-sol-thread.c.
7629 * sparc-sol-thread.c: Delete.
7630 * configure.ac: Remove code handling sparc-solaris-thread.c.
7631 * configure: Regenerate.
7632
1e611234
PM
76332013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7634
7635 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7636 filter logic.
7637 (backtrace_command): Add "no-filters" option parsing.
7638 (_initialize_stack): Alter help to reflect "no-filters" option.
7639 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7640 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7641 (py-frame.o): Add target
7642 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7643 filter files.
7644 * python/python.h: Add new frame filter constants, and flag enum.
7645 (apply_frame_filter): Add definition.
7646 * python/python.c (apply_frame_filter): New non-Python
7647 enabled function.
7648 * python/py-utils.c (py_xdecref): New function.
7649 (make_cleanup_py_xdecref): Ditto.
7650 * python/py-objfile.c: Declare frame_filters dictionary.
7651 (objfpy_dealloc): Add frame_filters dealloc.
7652 (objfpy_new): Initialize frame_filters attribute.
7653 (objfile_to_objfile_object): Ditto.
7654 (objfpy_get_frame_filters): New function.
7655 (objfpy_set_frame_filters): New function.
7656 * python/py-progspace.c: Declare frame_filters dictionary.
7657 (pspy_dealloc): Add frame_filters dealloc.
7658 (pspy_new): Initialize frame_filters attribute.
7659 (pspacee_to_pspace_object): Ditto.
7660 (pspy_get_frame_filters): New function.
7661 (pspy_set_frame_filters): New function.
7662 * python/py-framefilter.c: New file.
7663 * python/lib/gdb/command/frame_filters.py: New file.
7664 * python/lib/gdb/frames.py: New file.
7665 * python/lib/gdb/__init__.py: Initialize global frame_filters
7666 dictionary
7667 * python/lib/gdb/FrameDecorator.py: New file.
7668 * python/lib/gdb/FrameIterator.py: New file.
7669 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7670 * mi/mi-cmds.h: Declare.
7671 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7672 --no-frame-filter logic, and Python frame filter logic.
7673 (stack_enable_frame_filters): New function.
7674 (parse_no_frame_option): Ditto.
7675 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7676 filter logic.
7677 (mi_cmd_stack_list_locals): Ditto.
7678 (mi_cmd_stack_list_args): Ditto.
7679 (mi_cmd_stack_list_variables): Ditto.
7680 * NEWS: Add frame filter note.
7681
2cb9c859
DE
76822013-05-09 Doug Evans <dje@google.com>
7683
6bf667bb
DE
7684 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7685 All callers updated.
7686 (syms_from_objfile): Ditto. Make static.
7687 (symbol_file_add_with_addrs): Renamed from
7688 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7689 num_offsets. All callers updated.
7690 * symfile.h (syms_from_objfile): Delete.
7691
2cb9c859
DE
7692 * symfile.c (decrement_reading_symtab): Add assert.
7693 (increment_reading_symtab): Ditto.
7694
40aea477
JB
76952013-05-09 Joel Brobecker <brobecker@adacore.com>
7696
7697 * source.c (forward_search_command): Replace call to getc
7698 by call to fgetc.
7699 (reverse_search_command): Likewise.
7700
680d1742
DE
77012013-05-08 Doug Evans <dje@google.com>
7702
7703 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7704 matching test.
7705
17e760ae
JB
77062013-05-08 Joel Brobecker <brobecker@adacore.com>
7707
7708 * sol-thread.c (info_cb): Factorize the code a little.
7709
c0f5f490
JB
77102013-05-08 Joel Brobecker <brobecker@adacore.com>
7711
7712 * sol-thread.c (info_cb): Rework the output of the "maintenance
7713 info sol-threads" command a bit.
7714
5d74e061
JB
77152013-05-08 Joel Brobecker <brobecker@adacore.com>
7716
7717 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7718 Replace ti.ti_startfunc by ti.ti_pc.
7719
814a3ff7
JB
77202013-05-08 Joel Brobecker <brobecker@adacore.com>
7721
7722 * solib-aix.c (solib_aix_free_library_list): New function
7723 for the case where HAVE_LIBEXPAT is not defined.
7724
58ce7251
SDJ
77252013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7726
7727 PR breakpoints/15413:
7728 * breakpoint.c (condition_completer): Simplify the code to
7729 disconsider multiple locations of breakpoints when completing the
7730 "condition" command.
7731
be8b1ea6
PM
77322013-05-07 Pierre Muller <muller@sourceware.org>
7733
7734 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7735 instead of <sys/wait.h>.
7736
1e52bda6
PM
77372013-05-07 Pierre Muller <muller@sourceware.org>
7738
7739 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7740 trailing new line from warning message.
7741
27fd0c6b
PM
77422013-05-07 Pierre Muller <muller@sourceware.org>
7743
7744 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7745 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7746
e228ac87
JB
77472013-05-07 Joel Brobecker <brobecker@adacore.com>
7748
7749 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7750 error message (ARI fix).
7751
77522013-05-07 Joel Brobecker <brobecker@adacore.com>
7753
7754 * features/library-list-aix.dtd: Replace library-list by
7755 library-list-aix.
7756 * rs6000-nat.c: Replace library-list by library-list-aix
7757 throughout.
7758 * solib-aix.c: Likewise.
7759
77602013-05-07 Joel Brobecker <brobecker@adacore.com>
7761
7762 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7763 Renames TARGET_OBJECT_AIX_LIBRARIES.
7764 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7765 TARGET_OBJECT_LIBRARIES_AIX throughout.
7766 * solib-aix.c: Likwise.
7767
26a4dda9
YQ
77682013-05-07 Yao Qi <yao@codesourcery.com>
7769
7770 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7771 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7772
3582629f
YQ
77732013-05-07 Yao Qi <yao@codesourcery.com>
7774
7775 * solib-dsbt.c (enable_break): Declare.
7776 (dsbt_current_sos): Remove call to enable_break2.
7777 (enable_break2): Rename to enable_break. Set solib breakpoint
7778 on '_dl_debug_state'.
7779 (enable_break): Remove.
7780
aacbb8a5
LM
77812013-05-07 Luis Machado <lgustavo@codesourcery.com>
7782
7783 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7784 debug state prior to replicating existing hardware watchpoints or
7785 breakpoints.
7786
0c013353
JK
77872013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 * gcore.c (gcore_create_callback): Ignore sections with
7790 separate_debug_objfile_backlink != NULL.
7791
a1217d97
SL
77922013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7793 Andrew Jenner <andrew@codesourcery.com>
7794 Chung-Lin Tang <cltang@codesourcery.com>
7795 Julian Brown <julian@codesourcery.com>
7796
7797 Based on the nios2-elf port from Altera Corporation.
7798
7799 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7800 nios2-linux-tdep.o.
7801 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7802 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7803 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7804 * nios2-tdep.h: New.
7805 * nios2-tdep.c: New.
7806 * nios2-linux-tdep.c: New.
7807 * features/Makefile (WHICH): Add nios2-linux.
7808 (nios2-linux-expedite): Set.
7809 * features/nios2-cpu.xml: New.
7810 * features/nios2.xml: New.
7811 * features/nios2-linux.xml: New.
7812 * features/nios2.c: New (autogenerated).
7813 * features/nios2-linux.c: New (autogenerated).
7814 * regformats/nios2-linux.dat: New (autogenerated).
7815 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7816 and commands.
7817
0892cb63
DE
78182013-05-06 Doug Evans <dje@google.com>
7819
3b7bacac
DE
7820 * symfile.c: Whitespace cleanup.
7821
0892cb63
DE
7822 * solist.h (struct target_so_ops): New member clear_so.
7823 * solib-svr4.c (svr4_clear_so): New function.
7824 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7825 * solib.c (clear_so): Renamed from free_so_symbols.
7826 All callers updated. Call target clear_so if it exists.
7827
40501e00
TT
78282013-05-06 Tom Tromey <tromey@redhat.com>
7829
7830 * ada-lang.c (ada_value_primitive_packed_val): Don't
7831 call value_incref.
7832 * value.c (set_value_parent): Incref the new parent and decref
7833 the old parent.
7834 (value_copy, value_primitive_field): Use set_value_parent.
7835
b6807d98
TT
78362013-05-06 Tom Tromey <tromey@redhat.com>
7837
7838 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7839 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7840 if needed.
7841 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7842 * dwarf2read.c (write_constant_as_bytes)
7843 (dwarf2_fetch_constant_bytes): New functions.
7844
3aef2284
TT
78452013-05-06 Tom Tromey <tromey@redhat.com>
7846
7847 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7848 parameters.
7849 (dwarf2_const_value_attr): Update.
7850
66f65e2b
TT
78512013-05-06 Tom Tromey <tromey@redhat.com>
7852
7853 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7854 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7855 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7856 Remove declaration.
7857
7919a973
TT
78582013-05-06 Tom Tromey <tromey@redhat.com>
7859
7860 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7861 objfile's obstack.
7862
a7bfba49
DE
78632013-05-06 Doug Evans <dje@google.com>
7864
3189cb12
DE
7865 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7866 * stabsread.h (process_one_symbol): Update declaration.
7867 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7868 * elfread.c (elf_symfile_relocate_probe): Ditto.
7869 * psymtab.c (relocate_psymtabs): Ditto.
7870 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7871 (objfile_relocate): Ditto.
7872 * objfiles.h (objfile_relocate): Update declaration.
7873 * symfile.c (relative_addr_info_to_section_offsets): Constify
7874 addrs parameter.
7875 (default_symfile_offsets): Ditto.
7876 (syms_from_objfile_1): Constify offsets parameter.
7877 (syms_from_objfile): Ditto.
7878 (symbol_file_add_with_addrs_or_offsets): Ditto.
7879 (symfile_map_offsets_to_segments): Constify data parameter.
7880 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7881 delta parameters of member relocate.
7882 (struct sym_probe_fns): Constify new_offsets,
7883 delta parameters of member sym_relocate_probe.
7884 (struct sym_fns): Constify section_addr_info parameter of member
7885 sym_offsets.
7886 (relative_addr_info_to_section_offsets): Update declaration.
7887 (default_symfile_offsets): Ditto.
7888 (syms_from_objfile): Ditto.
7889 (symfile_map_offsets_to_segments): Ditto.
7890
a7bfba49
DE
7891 * symfile.c (syms_from_objfile_1): Use correct section count when
7892 objfile->sf == NULL.
7893
5f8e0b8f
MF
78942013-05-06 Mike Frysinger <vapier@gentoo.org>
7895
7896 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7897
ea52d893
DE
78982013-05-06 Doug Evans <dje@google.com>
7899
7900 * psympriv.h (struct partial_symtab): Augment comment for member
7901 section_offsets.
7902
4d1eb6b4
JB
79032013-05-06 Joel Brobecker <brobecker@adacore.com>
7904
7905 Reimplement shared library support on ppc-aix...
7906 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7907 * features/library-list-aix.dtd: New file.
7908 * solib-aix.h, solib-aix.c: New file.
7909 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7910 (rs6000_find_toc_address_hook): Delete.
7911 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7912 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7913 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7914 "xml-utils.h".
7915 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7916 (vmap_symtab, fixup_breakpoints): Delete.
7917 (rs6000_xfer_shared_libraries): New function.
7918 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7919 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7920 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7921 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7922 (rs6000_xfer_shared_library): New function.
7923 (find_toc_address): Delete.
7924 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7925 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7926 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7927 before creating minimal symbol. Adjust function description
7928 accordingly.
7929 (scan_xcoff_symtab): Replace call to
7930 prim_record_minimal_symbol_and_info by call to
7931 record_minimal_symbol.
7932 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7933 around default_symfile_offsets.
7934 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7935 powerpc-aix targets.
7936 * config/rs6000/nm-rs6000.h: Delete.
7937 * config/powerpc/aix.mh (NAT_FILE): Delete.
7938 (NATDEPFILES): Remove xcoffsolib.o.
7939 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7940 (ALL_TARGET_OBS): Add solib-aix.o.
7941 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7942 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7943 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7944 * xcoffsolib.h, xcoffsolib.c: Delete.
7945
7946 * solib.c (reload_shared_libraries): Remove reference to
7947 SOLIB_CREATE_INFERIOR_HOOK.
7948 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7949 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7950 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7951 comment.
7952 * corelow.c (deprecated_core_resize_section_table): Delete.
7953 * exec.c: Remove include of xcoffsolib.h".
7954 (map_vmap, vmap): Delete.
7955 (exec_close_1): Remove references to vmap.
7956 (exec_file_attach): Remove vmap handling code, and reference
7957 to DEPRECATED_IBM6000_TARGET.
7958 (bfdsec_to_vmap): Delete.
7959 (exec_files_info): Remove block of code handling VMAP.
7960 * infcmd.c (post_create_inferior): Remove reference to
7961 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7962 * infrun.c (follow_exec): Remove reference to
7963 SOLIB_CREATE_INFERIOR_HOOK.
7964 * stack.c (print_frame): Remove reference to PC_SOLIB.
7965 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7966 (dsbt_relocate_main_executable): Likewise.
7967 * solib-frv.c (frv_current_sos): Likewise.
7968
0c4f667c
JB
79692013-05-06 Joel Brobecker <brobecker@adacore.com>
7970
7971 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7972 to target_write_memory and target_read_memory.
7973
726ce67c
JB
79742013-05-06 Joel Brobecker <brobecker@adacore.com>
7975
7976 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7977 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7978
c8c9911f
JB
79792013-05-06 Joel Brobecker <brobecker@adacore.com>
7980
7981 * darwin-nat.c: Replace all "%x" instances in format strings
7982 into "0x%x" throughout.
7983
fda184b6
JB
79842013-05-06 Joel Brobecker <brobecker@adacore.com>
7985
7986 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7987 gdb_assert by call to MACH_CHECK_ERROR.
7988 (darwin_attach_pid): Raise an error rather than a failed
7989 assertion when various system calls failed. Report a warning
7990 instead of raising a failed assertion when PREV_NOT is not NULL
7991 after call to mach_port_request_notification.
7992 (darwin_ptrace_me): Raise an error rather than a failed
7993 assertion when read returns nonzero.
7994
d1d69afb
JB
79952013-05-06 Joel Brobecker <brobecker@adacore.com>
7996
7997 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7998
dc90b24d
JK
79992013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8000
8001 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8002
faab9922
JK
80032013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8004
8005 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8006 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8007 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8008 a stale cleanup. Fix double free of NAME.
8009
e0ea48a0
EZ
80102013-05-04 Eli Zaretskii <eliz@gnu.org>
8011
8012 * windows-nat.c (windows_delete_thread): Accept an additional
8013 argument, the thread's exit code, and announce thread death when
8014 print_thread_events is non-zero and we are deleting a thread that
8015 is not the main thread.
8016 (get_windows_debug_event): Pass thread exit code to
8017 windows_delete_thread.
8018
83b2706a
KB
80192013-05-03 Kevin Buettner <kevinb@redhat.com>
8020
8021 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8022 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8023 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8024 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8025 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8026 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8027 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8028 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8029 (gdbarch_tdep): New struct.
8030 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8031 E_NUM_REGS.
8032 (v850e3v5_register_name): New function.
8033 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8034 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8035 code handling the struct return conventions for the RH850 ABI.
8036 Update all callers.
8037 (v850_eight_byte_align_p): New function.
8038 (v850_push_call_dummy): Push structs by value, not by reference
8039 for the RH850 ABI. Add support for eight byte alignment.
8040 (v850_dbtrap_breakpoint_from_pc): New function.
8041 (v850_gdbarch_init): Add ABI detection code. Register
8042 v850e3v5_register_name for the v850e3v5 architecture. Set the
8043 number of registers for v850e3v5. Register
8044 v850_dbtrap_breakpoint_from_pc as appropriate.
8045 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8046
d445b2f6
DE
80472013-05-03 Doug Evans <dje@google.com>
8048
8049 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8050 of bfd_count_sections.
8051 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8052 * symfile.c (default_symfile_offsets): Ditto.
8053 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8054 one entry, not bfd_count_sections entries.
8055
b3ce41ea
KB
80562013-05-03 Kevin Buettner <kevinb@redhat.com>
8057
8058 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8059 `save' and `restore' register groups. Don't include SPL
8060 or SPH in these groups.
8061 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8062 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8063 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8064 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8065 dwarf2_append_unwinders().
8066
96f7d3f1
PW
80672013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8068
8069 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8070 ignore SIGINT and SIGTRAP in case these internal signals are
8071 caught explicitely.
8072
b9dd1947
JB
80732013-05-01 Joel Brobecker <brobecker@adacore.com>
8074
8075 * darwin-nat.c (darwin_read_write_inferior): Change types
8076 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8077 of copy_count to "mach_msg_type_number_t".
8078 (darwin_read_dyld_info): Change type of parameter
8079 rdaddr to "gdb_byte *".
8080
4ca18a63
JB
80812013-05-01 Joel Brobecker <brobecker@adacore.com>
8082
8083 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8084 of &info->load_map from "char *" to "gdb_byte *".
8085
2b692d32
JB
80862013-05-01 Joel Brobecker <brobecker@adacore.com>
8087
8088 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8089 from "char *" to "gdb_byte *".
8090 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8091
a98c29a0
DE
80922013-04-30 Doug Evans <dje@google.com>
8093
6a506a2d
DE
8094 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8095 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8096 DWO stub. If DWO isn't found, just use stub.
8097 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8098
a98c29a0
DE
8099 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8100 calling init_cutu_and_read_dies.
8101
f92b06da
WT
81022013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8103
8104 * target-descriptions.c (maint_print_c_tdesc_cmd):
8105 Add case to parse structures as register types and
8106 bitfields.
8107
95eebdcc
WT
81082013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8109
8110 * MAINTAINERS (Write After Approval): Add myself to the list.
8111
019c1128
JB
81122013-04-30 Joel Brobecker <brobecker@adacore.com>
8113
8114 * sol-thread.c (rw_common): Change type of parameter "buf"
8115 to "gdb_byte *".
8116 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8117 rw_common to "gdb_byte *" instead of "char *".
8118
5812197c
JB
81192013-04-30 Joel Brobecker <brobecker@adacore.com>
8120
8121 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8122 of local variable msym to const struct bound_minimal_symbol.
8123 Adjust use accordingly.
8124 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8125
ecccb813
TS
81262013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8127
8128 * i386gnu-nat.c (CREG_OFFSET): New macro.
8129 (creg_offset): New array.
8130 (CREG_ADDR): Use creg_offset instead of reg_offset.
8131
f1d02dd4 81322013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
8133
8134 * mep-tdep.c (mep_write_pc): Delete.
8135 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8136 Add call to set_gdbarch_pc_regnum.
8137
f1d02dd4 81382013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
8139
8140 * common/filestuff.c: Replace #include <dirent.h> by
8141 #include "gdb_dirent.h".
8142
f1d02dd4 81432013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
8144
8145 * common/filestuff.c: Replace #include <sys/stat.h> by
8146 #include "gdb_stat.h".
8147
b385a60d
PM
81482013-04-29 Pierre Muller <muller@sourceware.org>
8149
8150 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8151 editCase function rule.
8152 (get_DW_AT_signature_type): Likewise.
8153
d27b54ad
JB
81542013-04-29 Joel Brobecker <brobecker@adacore.com>
8155
8156 * m32r-tdep.c (m32r_write_pc): Delete.
8157 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8158 Add call to set_gdbarch_pc_regnum.
8159
47d21dc5
PM
81602013-04-29 Pierre Muller <muller@sourceware.org>
8161
8162 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8163
9056882e
JB
81642013-04-29 Joel Brobecker <brobecker@adacore.com>
8165
8166 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8167
7ee4732a
YQ
81682013-04-28 Yao Qi <yao@codesourcery.com>
8169
8170 * solib-dsbt.c (fetch_loadmap): Re-indent.
8171 (displacement_from_map, enable_break2): Likewise.
8172 (dsbt_relocate_section_addresses): Likewise.
8173
2260af53 81742013-04-26 Joel Brobecker <brobecker@adacore.com>
8175
8176 GDB 7.6 released.
8177
ff546935
TT
81782013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8179
8180 PR corefiles/14983:
8181 * dwarf2read.c (process_full_comp_unit): Always create a static
8182 block.
8183
40fb6c5e
HZ
81842013-04-25 Hui Zhu <hui@codesourcery.com>
8185
8186 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8187 to loc->cmd_bytecode.
8188
74e04d1c
DE
81892013-04-24 Doug Evans <dje@google.com>
8190
8191 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8192
3cf62c1d
KS
81932013-04-22 Keith Seitz <keiths@redhat.com>
8194
8195 * tracepoint.c (trace_save): Call the writer's start method.
8196
bf9e4d0c
MB
81972013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8198
8199 PR gdb/10462
8200 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8201 before argument.
8202
5d71132c
TT
82032013-04-23 Tom Tromey <tromey@redhat.com>
8204
8205 * common/filestuff.c: Check USE_WIN32API before including
8206 sys/socket.h.
8207 (HAVE_F_GETFD): New define.
8208 (mark_cloexec): Check HAVE_F_GETFD.
8209 (gdb_open_cloexec): Change 'mode' to unsigned long.
8210 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8211 (gdb_pipe_cloexec): Check HAVE_PIPE.
8212 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8213 long.
8214
a11cfd87
HZ
82152013-04-23 Hui Zhu <hui@codesourcery.com>
8216
8217 PR gdb/15293
a11cfd87
HZ
8218 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8219
2d9442cc
HZ
82202013-04-23 Hui Zhu <hui@codesourcery.com>
8221
8222 PR gdb/15165
2d9442cc
HZ
8223 * breakpoint.c (dprintf_print_recreate): New.
8224 (save_breakpoints): Let it not save dprintf commands.
8225 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8226
614c279d
TT
82272013-04-22 Tom Tromey <tromey@redhat.com>
8228
8229 PR gdb/7912:
8230 * Makefile.in (SFILES): Add filestuff.c
8231 (COMMON_OBS): Add filestuff.o.
8232 (filestuff.o): New target.
8233 * auto-load.c (auto_load_objfile_script_1): Use
8234 gdb_fopen_cloexec.
8235 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8236 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8237 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8238 * common/agent.c (gdb_connect_sync_socket): Use
8239 gdb_socket_cloexec.
8240 * common/filestuff.c: New file.
8241 * common/filestuff.h: New file.
8242 * common/linux-osdata.c (linux_common_core_of_thread)
8243 (command_from_pid, commandline_from_pid, print_source_lines)
8244 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8245 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8246 gdb_fopen_cloexec.
8247 * common/linux-procfs.c (linux_proc_get_int)
8248 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8249 * config.in, configure: Rebuild.
8250 * configure.ac: Don't check for sys/socket.h. Check for
8251 fdwalk, pipe2.
8252 * corelow.c (core_open): Use gdb_open_cloexec.
8253 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8254 * fork-child.c (fork_inferior): Call close_most_fds.
8255 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8256 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8257 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8258 Use gdb_fopen_cloexec.
8259 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8260 gdb_open_cloexec.
8261 (linux_async_pipe): Use gdb_pipe_cloexec.
8262 * remote-fileio.c (remote_fileio_func_open): Use
8263 gdb_open_cloexec.
8264 * remote.c (remote_file_put, remote_file_get): Use
8265 gdb_fopen_cloexec.
8266 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8267 close_most_fds.
8268 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8269 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8270 * solib.c (solib_find): Use gdb_open_cloexec.
8271 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8272 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8273 (tfile_open): Use gdb_open_cloexec.
8274 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8275 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8276 * xml-support.c (xml_fetch_content_from_file): Use
8277 gdb_fopen_cloexec.
8278 * main.c (captured_main): Call notice_open_fds.
8279
5fda2332
EBM
82802013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8281
8282 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8283 'char *' to 'gdb_byte *'.
8284 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8285 'gdb_byte'.
8286
eb6c553b
YQ
82872013-04-22 Yao Qi <yao@codesourcery.com>
8288
8289 * infrun.c: Fix typo in comment.
8290
9991b207
SDJ
82912013-04-22 Andrew Haley <aph@redhat.com>
8292
8293 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8294 instead of "long".
8295
8b4833e3
YQ
82962013-04-20 Yao Qi <yao@codesourcery.com>
8297
8298 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8299 'char *' to 'gdb_byte *'. Cast the return value of
8300 'bt_ctf_get_char_array' to 'gdb_byte *'.
8301
bd3f3b55
PA
83022013-04-19 Pedro Alves <palves@redhat.com>
8303
8304 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8305 -Wpointer-sign.
8306 * configure: Regenerate.
8307
c49e7f76
PA
83082013-04-19 Pedro Alves <palves@redhat.com>
8309
8310 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8311 'void *'.
8312
12ff8552
PA
83132013-04-19 Pedro Alves <palves@redhat.com>
8314
8315 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8316 Change type of 'myaddr' parameter to gdb_byte pointer.
8317 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8318 to 'long long' pointer instead of to 'unsigned long long'.
8319 (monitor_write_memory_block, monitor_read_memory_single)
8320 (monitor_read_memory): Change type of 'myaddr' parameter to
8321 gdb_byte pointer.
8322
9c37696b
PA
83232013-04-19 Pedro Alves <palves@redhat.com>
8324
8325 * record.c (validate_history_size): Make parameter 'setting'
8326 unsigned.
8327
a398505b
PA
83282013-04-19 Pedro Alves <palves@redhat.com>
8329
8330 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8331 to 'gdb_byte *'.
8332
9f8afa72
PA
83332013-04-19 Pedro Alves <palves@redhat.com>
8334
8335 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8336 local to int.
8337
c714b426
PA
83382013-04-19 Pedro Alves <palves@redhat.com>
8339
8340 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8341 * ada-tasks.c (read_fat_string_value): Likewise.
8342
507a579c
PA
83432013-04-19 Pedro Alves <palves@redhat.com>
8344
8345 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8346 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8347 'offset', and adjust.
8348
f9d83a0b
PA
83492013-04-19 Pedro Alves <palves@redhat.com>
8350
8351 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8352 (read_index_from_section): Add cast to 'char *'.
8353
745eb4fd
PA
83542013-04-19 Pedro Alves <palves@redhat.com>
8355
8356 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8357
db5be46f
PA
83582013-04-19 Pedro Alves <palves@redhat.com>
8359
8360 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8361
0f928d68
PA
83622013-04-19 Pedro Alves <palves@redhat.com>
8363
8364 * record-full.c (record_full_get_bookmark): Change local 'ret'
8365 type to char * and add cast to gdb_byte *.
8366 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8367 string.
8368 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8369
89f6d837
PA
83702013-04-19 Pedro Alves <palves@redhat.com>
8371
8372 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8373 * python/py-prettyprint.c (print_string_repr): Change type of
8374 'output' local to char *. Add cast to gdb_byte * in
8375 LA_PRINT_STRING call.
8376 (print_children): Change type of 'output' local to char *.
8377 * python/py-value.c (valpy_string): Add cast to const char * in
8378 PyUnicode_Decode call.
8379
ce6ec7d8
PA
83802013-04-19 Pedro Alves <palves@redhat.com>
8381
8382 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8383 and change its type to 'const char *'. Adjust.
8384 (mips_send_packet): Add cast to 'char *', and remove cast to
8385 'unsigned char *'.
8386 (mips_receive_packet): Remove cast to 'unsigned char *'.
8387 (mips_load_srec): Use bfd_byte.
8388 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8389 (pmon_checkset): Make 'value' parameter unsigned.
8390
fda0389f
PA
83912013-04-19 Pedro Alves <palves@redhat.com>
8392
8393 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8394
bc20a4af
PA
83952013-04-19 Pedro Alves <palves@redhat.com>
8396
8397 * remote.c (remote_write_bytes_aux, compare_sections_command)
8398 (remote_read_qxfer)
8399 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8400 (remote_hostio_readlink, remote_bfd_iovec_pread)
8401 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8402 binary buffer, and char when buffer is used as string.
8403 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8404 (trace_save, tfile_open, traceframe_walk_blocks)
8405 (tfile_fetch_registers): Likewise.
8406
c628b528
PA
84072013-04-19 Pedro Alves <palves@redhat.com>
8408
8409 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8410 buffer and size_t size. Adjust.
8411 * ser-base.h (ser_base_write): Adjust.
8412 * ser-go32.c (cnts): Change type to size_t.
8413 (dos_write): Change prototype -- take 'void *'
8414 buffer and size_t size. Adjust.
8415 (dos_info): Print elements of 'cnts' as unsigned long.
8416 * serial.c (serial_write): Likewise.
8417 * serial.h (serial_write): Adjust.
8418 (struct serial_ops) <write>: Change prototype -- take 'void *'
8419 buffer and size_t size. Adjust.
8420
51a5cd90
PA
84212013-04-19 Pedro Alves <palves@redhat.com>
8422
8423 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8424 gdb_byte *.
8425 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8426
a9933661
PA
84272013-04-19 Pedro Alves <palves@redhat.com>
8428
8429 * alpha-tdep.c (alpha_extract_return_value): Use
8430 regcache_cooked_read_unsigned to read 'v0'.
8431
19afdd07
PA
84322013-04-19 Pedro Alves <palves@redhat.com>
8433
8434 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8435 parameters 'at', 'as' and 'offset' to uint32_t.
8436
96b32e50
PA
84372013-04-19 Pedro Alves <palves@redhat.com>
8438
8439 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8440 'is64' to signed 'int'.
8441
eb1bd1fb
PA
84422013-04-19 Pedro Alves <palves@redhat.com>
8443
8444 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8445 parameter to int *.
8446
463920bf
PA
84472013-04-19 Pedro Alves <palves@redhat.com>
8448
8449 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8450 'insnbuf' buffer type to unsigned int[].
8451
70242eb1
PA
84522013-04-19 Pedro Alves <palves@redhat.com>
8453
8454 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8455
9d1dd0e2
PA
84562013-04-19 Pedro Alves <palves@redhat.com>
8457
8458 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8459 unsigned long *.
8460
44096aee
PA
84612013-04-19 Pedro Alves <palves@redhat.com>
8462
8463 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8464 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8465 UINT_MAX.
8466 * mips-tdep.c (heuristic_fence_post): Change type to int.
8467 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8468
e4286e57
PA
84692013-04-19 Pedro Alves <palves@redhat.com>
8470
8471 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8472 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8473 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8474
001f13d8
PA
84752013-04-19 Pedro Alves <palves@redhat.com>
8476
8477 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8478 it to get a string view of the byte buffer.
8479 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8480 type to gdb_byte *. Adjust.
8481 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8482 Change local to char *.
8483 * solib-darwin.c (find_program_interpreter): Change return type to
8484 char *. Adjust.
8485 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8486 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8487 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8488 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8489 * solib-svr4.c (find_program_interpreter): Change return type to
8490 char *. Adjust.
8491 (enable_break): Change local 'interp_name' to char *.
8492 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8493 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8494 (spu_pseudo_register_write_spu): Use char for string buffer.
8495 Adjust.
8496 (info_spu_event_command, info_spu_signal_command): Add casts to
8497 'char *'.
8498
948f8e3d
PA
84992013-04-19 Pedro Alves <palves@redhat.com>
8500
8501 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8502 gdb_byte[].
8503 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8504 * ada-lang.c (ada_value_assign): Use gdb_byte.
8505 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8506 (alphanbsd_sigtramp_offset): Use gdb_byte.
8507 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8508 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8509 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8510 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8511 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8512 * arm-tdep.c (arm_stub_unwind_sniffer)
8513 (arm_displaced_init_closure): Use gdb_byte.
8514 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8515 (arm_default_thumb_le_breakpoint)
8516 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8517 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8518 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8519 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8520 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8521 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8522 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8523 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8524 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8525 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8526 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8527 (cris_store_return_value, cris_extract_return_value): Use
8528 gdb_byte.
8529 (constraint): Change type of parameter to char * from signed
8530 char*. Use gdb_byte.
8531 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8532 of local buffer to gdb_byte *.
8533 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8534 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8535 (add_address_entry): Change type of local buffer to gdb_byte[].
8536 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8537 (frv_push_dummy_call): Use gdb_byte.
8538 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8539 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8540 (hppa_hpux_supply_save_state): Use gdb_byte.
8541 * hppa-tdep.c (hppa32_push_dummy_call)
8542 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8543 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8544 (slotN_contents, replace_slotN_contents): Change type of parameter
8545 to gdb_byte *.
8546 (fetch_instruction, ia64_pseudo_register_write)
8547 (ia64_register_to_value, ia64_value_to_register)
8548 (ia64_extract_return_value, ia64_store_return_value)
8549 (ia64_push_dummy_call): Use gdb_byte.
8550 * m32c-tdep.c (m32c_return_value): Remove cast.
8551 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8552 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8553 gdb_byte.
8554 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8555 * mn10300-tdep.c (mn10300_store_return_value)
8556 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8557 gdb_byte.
8558 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8559 (moxie_process_record): Remove casts.
8560 * ppc-ravenscar-thread.c (supply_register_at_address)
8561 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8562 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8563 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8564 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8565 * remote.c (compare_sections_command): Use gdb_byte.
8566 * score-tdep.c (score7_free_memblock): Change type of parameter to
8567 gdb_byte *.
8568 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8569 gdb_byte *. Use gdb_byte.
8570 (sh_push_dummy_call_fpu): Use gdb_byte.
8571 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8572 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8573 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8574 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8575 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8576 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8577 (sh64_store_return_value, sh64_register_convert_to_virtual):
8578 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8579 (sh64_pseudo_register_write): Use gdb_byte.
8580 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8581 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8582 buffer.
8583 (irix_current_sos): Use gdb_byte.
8584 * solib-som.c (som_current_sos): Use gdb_byte.
8585 * sparc-ravenscar-thread.c (supply_register_at_address)
8586 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8587 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8588 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8589 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8590 'gdb_byte *'.
8591 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8592 'gdb_byte *'.
8593 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8594 * xstormy16-tdep.c (xstormy16_extract_return_value)
8595 (xstormy16_store_return_value): Change parameter type to
8596 'gdb_byte *'. Adjust.
8597 (xstormy16_push_dummy_call): Use gdb_byte.
8598 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8599 (call0_analyze_prologue, execute_code): Use gdb_byte.
8600
433730c9
PA
86012013-04-19 Vladimir Kargov <kargov@gmail.com>
8602 Pedro Alves <palves@redhat.com>
8603
8604 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8605 value contents.
8606
ac9ec31b
DE
86072013-04-17 Doug Evans <dje@google.com>
8608
8609 * dwarf2read.c (struct signatured_type): New member type.
8610 (struct attribute): Replace member signatured_type with signature.
8611 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8612 (read_call_site_scope): Call follow_die_ref instead of
8613 follow_die_ref_or_sig.
8614 (read_structure_type): Rewrite handling of signatured types.
8615 (read_enumeration_type): Ditto.
8616 (read_attribute_value): Update.
8617 (build_error_marker_type): New function.
8618 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8619 Don't call error for bad types, just build an error marker type.
8620 (dump_die_shallow): Update.
8621 (follow_die_sig_1): Renamed from follow_die_sig.
8622 Don't call error for bad types, instead return NULL.
8623 (follow_die_sig): New function.
8624 (get_signatured_type, get_DW_AT_signature_type): New functions.
8625
e546e8bb
YZ
86262013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8627
8628 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8629 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8630 function.
e546e8bb 8631
ab116149
YQ
86322013-04-17 Yao Qi <yao@codesourcery.com>
8633
8634 * top.c (print_gdb_configuration): Print configure-time
8635 parameter on using libbabeltrace or not.
8636
488a42b8
PA
86372013-04-16 Pedro Alves <palves@redhat.com>
8638
8639 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8640
f5fb825b
PA
86412013-04-16 Pedro Alves <palves@redhat.com>
8642
85d494ea 8643 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8644 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8645
e1154999
PA
86462013-04-16 Pedro Alves <palves@redhat.com>
8647
8648 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8649 * common/glibc_thread_db.h: ... this new file ...
8650 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8651
e3b50a7f
PA
86522013-04-16 Will Newton <will.newton@gmail.com>
8653 Pedro Alves <palves@redhat.com>
8654
8655 PR build/11881
8656
8657 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8658 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8659 HAVE_THREAD_DB_H.
8660
1c2e4450
PA
86612013-04-16 Pedro Alves <palves@redhat.com>
8662 Eli Zaretskii <eliz@gnu.org>
8663
8664 * NEWS: Mention "set foo unlimited".
8665
4031ecc5
DE
86662013-04-15 Doug Evans <dje@google.com>
8667
19c3d4c9
DE
8668 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8669 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8670 (create_dwo_cu_reader): Renamed from
8671 create_dwo_debug_info_hash_table_reader.
8672 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8673 Remove support for multiple CUs in a DWO file.
8674 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8675
4031ecc5
DE
8676 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8677 instead of phex.
8678 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8679 (create_dwo_in_dwp): Ditto.
8680
b340913d
TT
86812013-04-15 Tom Tromey <tromey@redhat.com>
8682
8683 * NEWS: Move recent entries into "since 7.6" section.
8684
cc16e6c9
TT
86852013-04-15 Tom Tromey <tromey@redhat.com>
8686
8687 PR c++/13588:
8688 * NEWS: Update.
8689 * break-catch-throw.c (struct exception_catchpoint)
8690 <exception_rx, pattern>: New fields.
8691 (fetch_probe_arguments, dtor_exception_catchpoint)
8692 (check_status_exception_catchpoint)
8693 (print_one_detail_exception_catchpoint): New functions.
8694 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8695 Compile regular expression if needed.
8696 (extract_exception_regexp): New function.
8697 (catch_exception_command_1): Use extract_exception_regexp.
8698 (compute_exception): Use fetch_probe_arguments.
8699 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8700 and check_status fields.
8701 * cp-abi.c (cplus_typename_from_type_info): New function.
8702 * cp-abi.h (cplus_typename_from_type_info): Declare.
8703 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8704 * gdb_regex.h (compile_rx_or_error): Declare.
8705 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8706 comment.
8707 (init_gnuv3_ops): Set get_type_from_type_info field.
8708 * probe.c (compile_rx_or_error): Move...
8709 * utils.c (compile_rx_or_error): ... here.
8710
72f1fe8a
TT
87112013-04-15 Tom Tromey <tromey@redhat.com>
8712
8713 PR c++/15176:
8714 * NEWS: Update.
8715 * break-catch-throw.c (compute_exception): New function.
8716 (exception_funcs): New global.
8717 (_initialize_break_catch_throw): Create $_exception.
8718 * cp-abi.c (cplus_type_from_type_info): New function.
8719 * cp-abi.h (cplus_type_from_type_info): Declare.
8720 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8721 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8722 (gnuv3_get_type_from_type_info): New functions.
8723 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8724
fc4746a2
TT
87252013-04-15 Tom Tromey <tromey@redhat.com>
8726
8727 * break-catch-throw.c (struct exception_names): New.
8728 (exception_functions): Change type.
8729 (re_set_exception_catchpoint): Look for SDT probes.
8730
15a73f56
TT
87312013-04-15 Tom Tromey <tromey@redhat.com>
8732
8733 PR c++/10119:
8734 * break-catch-throw.c (exception_functions): New global.
8735 (gnu_v3_exception_catchpoint_ops): Move earlier.
8736 (struct exception_catchpoint): New.
8737 (classify_exception_breakpoint): Rewrite.
8738 (re_set_exception_catchpoint): New function.
8739 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8740 Allocate a struct exception_catchpoint.
8741 (catch_exception_command_1): Update.
8742 (initialize_throw_catchpoint_ops): Set 're_set' method.
8743
916703c0
TT
87442013-04-15 Tom Tromey <tromey@redhat.com>
8745
8746 * Makefile.in (SFILES): Add break-catch-throw.c
8747 (COMMON_OBS): Add break-catch-throw.o.
8748 * break-catch-throw.c: New file.
8749 * breakpoint.c: Move exception-catching code to new file.
8750 (ep_parse_optional_if_clause): No longer static.
8751 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8752
6e72ca20
TT
87532013-04-15 Tom Tromey <tromey@redhat.com>
8754
8755 PR c++/9065:
8756 * NEWS: Update.
8757 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8758 * c-exp.y (TYPEID): New token.
8759 (exp): Add new TYPEID productions.
8760 (ident_tokens): Add "typeid".
8761 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8762 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8763 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8764 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8765 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8766 case.
8767 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8768 (build_std_type_info_type, gnuv3_get_typeid_type)
8769 (gnuv3_get_typeid): New functions.
8770 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8771 new fields on ABI object.
8772 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8773 * std-operator.def (OP_TYPEID): New.
8774
715c6909
TT
87752013-04-15 Tom Tromey <tromey@redhat.com>
8776
8777 * elfread.c (elf_symtab_read): Install versioned symbol under
8778 unversioned name as well.
8779
8de20a37
TT
87802013-04-15 Tom Tromey <tromey@redhat.com>
8781
8782 PR c++/11990:
8783 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8784 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8785 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8786 (gdb_demangle): New function.
8787 * cp-support.h (gdb_demangle): Declare.
8788 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8789 (dwarf2_name): Use gdb_demangle.
8790 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8791 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8792 suffixes from name.
8793 (gnuv3_print_method_ptr): Use gdb_demangle.
8794 * jv-lang.c (java_demangle): Use gdb_demangle.
8795 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8796 * language.c (unk_lang_demangle): Use gdb_demangle.
8797 * symtab.c (symbol_find_demangled_name)
8798 (demangle_for_lookup): Use gdb_demangle.
8799
591f19e8
TT
88002013-04-15 Tom Tromey <tromey@redhat.com>
8801
8802 PR c++/12824:
8803 * NEWS: Update.
8804 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8805 New constant.
8806 (classify_exception_breakpoint): New function.
8807 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8808 (print_mention_exception_catchpoint)
8809 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8810 (catch_exception_command_1): Handle "rethrow" catchpoint.
8811 (catch_rethrow_command): New function.
8812 (_initialize_breakpoint): Add "catch rethrow" command.
8813
4d40cad2
PM
88142013-04-15 Pierre Muller <muller@sourceware.org>
8815
8816 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8817 set_gdbarch_write_pc as deprecated anymore.
8818
30bcb456
JB
88192013-04-15 Joel Brobecker <brobecker@adacore.com>
8820
8821 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8822 declarations.
8823
da9160e4
YQ
88242013-04-13 Yao Qi <yao@codesourcery.com>
8825
8826 * ctf.c (_initialize_ctf): Include "completer.h".
8827 Call add_target_with_completer instead of add_target.
8828
39ed5604
JK
88292013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 Fix GDB regression related to PR binutils/14813.
8832 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8833 * minidebug.c (lzma_close): Add return value comment.
8834 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8835 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8836 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8837
88382013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8839
8840 * config.in: Regenerate.
8841
d521ce57
TT
88422013-04-12 Tom Tromey <tromey@redhat.com>
8843
8844 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8845 const.
8846 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8847 (struct die_reader_specs) <buffer>: Likewise.
8848 (die_reader_func_ftype): Make 'info_ptr' const.
8849 (struct line_header) <include_dirs, statement_program_start,
8850 statement_program_end>: Now const.
8851 (struct file_entry) <name>: Likewise.
8852 (struct partial_die_info) <sibling>: Likewise.
8853 (struct dwarf_block) <data>: Likewise.
8854 (dwarf2_read_section): Remove cast.
8855 (dwarf2_get_section_info): Make 'bufp' const.
8856 (read_index_from_section): Constify.
8857 (dw2_get_file_names_reader): Make 'info_ptr' const.
8858 (dw2_get_primary_filename_reader): Likewise.
8859 (read_comp_unit_head): Make 'info_ptr' and return type const.
8860 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8861 Likewise.
8862 (read_abbrev_offset): Constify.
8863 (dwarf2_create_include_psymtab): Make 'name' const.
8864 (create_debug_types_hash_table): Update.
8865 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8866 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8867 Constify.
8868 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8869 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8870 (read_comp_units_from_section): Constify.
8871 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8872 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8873 const.
8874 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8875 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8876 (create_dwp_hash_table, dwarf2_ranges_read)
8877 (dwarf2_record_block_ranges): Constify.
8878 (read_die_and_children, read_die_and_siblings_1)
8879 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8880 const.
8881 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8882 (abbrev_table_read_table): Constify.
8883 (load_partial_dies): Make 'info_ptr' const.
8884 (read_partial_die, read_attribute_value, read_attribute): Make
8885 'info_ptr' and return type const.
8886 (read_address, read_initial_length)
8887 (read_checked_initial_length_and_offset, read_offset)
8888 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8889 const.
8890 (read_direct_string): Make 'buf' and return type const.
8891 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8892 (read_indirect_string): Make return type const.
8893 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8894 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8895 'info_ptr' const.
8896 (read_str_index): Make return type const.
8897 (add_include_dir): Make 'include_dir' const.
8898 (add_file_name): Make 'name' const.
8899 (dwarf_decode_line_header): Constify.
8900 (psymtab_include_file_name): Make return type const.
8901 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8902 (dwarf2_start_subfile): Make 'filename' const.
8903 (dwarf2_const_value_attr): Make 'bytes' const.
8904 (read_signatured_type_reader): Make 'info_ptr' const.
8905 (decode_locdesc): Constify.
8906 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8907 const.
8908 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8909 'mac_end', and return type const.
8910 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8911 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8912 type const.
8913 (per_cu_header_read_in): Constify.
8914 * symfile.h (dwarf2_get_section_info): Update.
8915
d47a1bc1
TT
89162013-04-12 Tom Tromey <tromey@redhat.com>
8917
8918 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8919
6eaaf48b
EZ
89202013-04-12 Eli Zaretskii <eliz@gnu.org>
8921
fc4c25bf 8922 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8923 * top.c (print_gdb_configuration): New function, displays the
8924 details about GDB configure-time parameters.
8925 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8926 * cli/cli-cmds.c (show_configuration): New function.
8927 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8928 * main.c (captured_main) <print_configuration>: New static var.
8929 <long_options>: Use it.
8930 If --configuration was given, call print_gdb_configuration.
8931
b292c783
JK
89322013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8933 Pedro Alves <palves@redhat.com>
8934
8935 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8936 (generated_files): Add gcore.
8937 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8938 HAVE_NATIVE_GCORE_HOST.
8939 (gcore): New.
8940 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8941 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8942 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8943 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8944 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8945 Add HAVE_NATIVE_GCORE_HOST.
8946 * configure: Regenerate.
8947 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8948 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8949 AC_CONFIG_FILES for gcore.
8950 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8951 gdb_have_gcore.
8952 * gdb_gcore.sh: Rename to ...
8953 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8954 and GCORE_TRANSFORM_NAME substitutions.
8955
c96b3c4f
JK
8956 Fix parsing tabs in ${gdb_target_obs}.
8957 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8958
d6cb50a2
JK
89592013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8960
8961 * remote.c (unpush_and_perror): Add output message final dot.
8962
cf2cb5ec
YQ
89632013-04-11 Yao Qi <yao@codesourcery.com>
8964
8965 * tracepoint.c (tfile_interp_line): Fit parameters line and
8966 utpp in one line.
8967
07293be4
JB
89682013-04-10 Joel Brobecker <brobecker@adacore.com>
8969
8970 * solib.c (solib_map_sections): Remove code overwriting
8971 SO->SO_NAME with the bfd's filename.
8972
f81d1120
PA
89732013-04-10 Pedro Alves <palves@redhat.com>
8974
8975 * cli/cli-decode.c (integer_unlimited_completer): New function.
8976 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8977 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8978 completer.
8979 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8980 (is_unlimited_literal): New function.
8981 (do_set_command): Handle literal "unlimited" arguments.
8982 * frame.c (_initialize_frame) <set backtrace limit>: Document
8983 "unlimited".
8984 * printcmd.c (_initialize_printcmd) <set print
8985 max-symbolic-offset>: Add help text.
8986 * record-full.c (_initialize_record_full) <set record full
8987 insn-number-max>: Likewise.
8988 * record.c (_initialize_record) <set record
8989 instruction-history-size, set record function-call-history-size>:
8990 Add help text.
8991 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8992 help text.
8993 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8994 Likewise.
8995 * source.c (_initialize_source) <set listsize>: Add help text.
8996 * utils.c (initialize_utils) <set height, set width>: Likewise.
8997 <set pagination>: Mention "set height unlimited".
8998 * valprint.c (_initialize_valprint) <set print elements, set print
8999 repeats>: Document "unlimited".
9000
2f9d54cf
PA
90012013-04-10 Pedro Alves <palves@redhat.com>
9002
9003 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9004 instead of disconnect_tracing.
9005 * infcmd.c (detach_command, disconnect_command): Call
9006 query_if_trace_running. Adjust.
9007 * top.c: Include "tracepoint.h".
9008 (quit_target): Delete. Contents moved ...
9009 (quit_force): ... here. Wrap each stage of teardown in
9010 TRY_CATCH. Call disconnect_tracing before detaching.
9011
393fd4c3
YQ
90122013-04-10 Hui Zhu <hui@codesourcery.com>
9013 Yao Qi <yao@codesourcery.com>
9014
9015 * configure.ac: Check libbabeltrace is installed.
9016 * config.in: Regenerate.
9017 * configure: Regenerate.
9018 * Makefile.in (LIBBABELTRACE): New.
9019 (CLIBS): Add LIBBABELTRACE.
9020 * ctf.c: Include "exec.h".
9021 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9022 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9023 (ctf_save_metadata_header): Define new type aliases in
9024 metadata.
9025 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9026 in metadata. Start a new faked packet for trace status.
9027 (ctf_write_status): Write trace status to CTF.
9028 (ctf_write_uploaded_tsv): Write TSV to CTF.
9029 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9030 (ctf_write_definition_end): End the faked packet.
9031
9032 (ctx, ctf_iter, trace_dirname): New.
9033 (start_pos): New variable.
9034 (ctf_destroy, ctf_open_dir, ctf_open): New.
9035 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9036 macros.
9037 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9038 (ctf_fetch_registers, ctf_xfer_partial): New.
9039 (ctf_get_trace_state_variable_value): New.
9040 (ctf_get_tpnum_from_frame_event): New.
9041 (ctf_get_traceframe_address): New.
9042 (ctf_trace_find, ctf_has_stack): New.
9043 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9044 (ctf_get_trace_status, ctf_read_status): New.
9045 (_initialize_ctf): New.
9046 * tracepoint.c (get_tracepoint_number): New
9047 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 9048 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
9049 * tracepoint.h: ... here.
9050 (get_tracepoint_number): Declare it.
9051 (get_uploaded_tsv): Declare it.
9052
9053 * NEWS: Mention new configure option.
9054
5c2b4418
HZ
90552013-04-10 Pedro Alves <palves@redhat.com>
9056 Hui Zhu <hui@codesourcery.com>
9057
9058 * breakpoint.c (dprintf_re_set): New.
9059 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9060 to dprintf_re_set.
9061
a5c66735
JB
90622013-04-09 Joel Brobecker <brobecker@adacore.com>
9063
9064 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9065 Remove solib-svr4.o from the list.
9066
9e77999c
JB
90672013-04-09 Joel Brobecker <brobecker@adacore.com>
9068
9069 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9070 Use gdb_assert_not_reached instead of invalid boolean expression.
9071
1927e618
PA
90722013-04-09 Pedro Alves <palves@redhat.com>
9073
9074 * remote.c (unpush_and_perror): New function.
9075 (readchar, remote_serial_write): Use it.
9076
10782d74
MM
90772013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9078
9079 * NEWS: Mention new btrace RSP packets.
9080
4c8429ef
TT
90812013-04-08 Tom Tromey <tromey@redhat.com>
9082
9083 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9084 long.
9085
8625fc1b
TT
90862013-04-08 Tom Tromey <tromey@redhat.com>
9087
9088 * maint.c (print_bfd_section_info): Print the section index.
9089 * symmisc.c (dump_msymbols): Print the section index.
9090
e27d198c
TT
90912013-04-08 Tom Tromey <tromey@redhat.com>
9092
9093 PR symtab/8424:
9094 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9095 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9096 * breakpoint.c (resolve_sal_pc): Update.
9097 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9098 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9099 (minsym_lookup_iterator_cb): Use it.
9100 (default_read_var_value): Update.
9101 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9102 Update.
9103 * infcmd.c (jump_command): Update.
9104 * linespec.c (minsym_found): Update.
9105 * maint.c (maintenance_translate_address): Update.
9106 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9107 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9108 * parse.c (write_exp_msymbol): Update.
9109 * printcmd.c (address_info): Update.
9110 * psymtab.c (find_pc_sect_psymbol): Update.
9111 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9112 SYMBOL_OBJ_SECTION.
9113 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9114 Don't initialize SYMBOL_OBJ_SECTION.
9115 * spu-tdep.c (spu_catch_start): Update.
9116 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9117 * symmisc.c (dump_msymbols, print_symbol): Update.
9118 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9119 how fallback section is computed.
9120 (fixup_symbol_section): Update.
9121 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9122 Update.
9123 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9124 Initialize SYMBOL_SECTION.
9125 * symtab.h (struct general_symbol_info) <section>: Update comment.
9126 <obj_section>: Remove.
9127 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9128 (SYMBOL_OBJFILE): New macro.
9129
e6dc44a8
TT
91302013-04-08 Tom Tromey <tromey@redhat.com>
9131
9132 * coffread.c (record_minimal_symbol): Update.
9133 * dbxread.c (record_minimal_symbol): Update.
9134 * elfread.c (record_minimal_symbol): Update.
9135 * machoread.c (macho_symtab_add_minsym): Update.
9136 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9137 Update.
9138 * minsyms.c (prim_record_minimal_symbol): Update.
9139 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9140 argument.
9141 (prim_record_minimal_symbol_and_info): Likewise.
9142 * minsyms.h (prim_record_minimal_symbol_full)
9143 (prim_record_minimal_symbol_and_info): Update.
9144 * symtab.c (allocate_symbol, initialize_symbol)
9145 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9146 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9147 Update.
9148
36192a8d
TT
91492013-04-08 Tom Tromey <tromey@redhat.com>
9150
9151 PR symtab/8423:
9152 * solib-som.c (som_solib_section_offsets): Use BFD section
9153 indices. Set offsets for all sections.
9154 * somread.c (som_symtab_read): Compute BFD section for
9155 symbol. Use prim_record_minimal_symbol_and_info.
9156 (som_symfile_read): Fix comment.
9157 (struct find_section_offset_arg): New.
9158 (find_section_offset, set_section_index): New functions.
9159 (som_symfile_offsets): Use set_section_index to compute
9160 section indices.
9161
65cf3563
TT
91622013-04-08 Tom Tromey <tromey@redhat.com>
9163
9164 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9165 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9166 gdb_bfd_section_index.
9167 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9168 New functions.
9169 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9170 Declare.
9171 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9172 Update.
9173 * objfiles.c (add_to_objfile_sections_full): New function.
9174 (add_to_objfile_sections): Use it.
9175 (build_section_table): Rewrite.
9176 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9177 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9178 (struct objfile) <sections>: Update comment.
9179 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9180 is NULL.
9181 (ALL_OBJSECTIONS): Use it.
9182 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9183 * solib-frv.c (frv_relocate_main_executable): Update.
9184 * solib-target.c (solib_target_relocate_section_addresses):
9185 Use gdb_bfd_section_index.
9186 * symfile.c (build_section_addr_info_from_section_table):
9187 Use gdb_bfd_section_index.
9188 (build_section_addr_info_from_bfd, place_section): Likewise.
9189 * symtab.c (fixup_section): Update.
9190 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9191
7cbd4a93
TT
91922013-04-08 Tom Tromey <tromey@redhat.com>
9193
9194 * minsyms.h (struct bound_minimal_symbol): New.
9195 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9196 Remove objfile argument.
9197 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9198 Return bound_minimal_symbol.
9199 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9200 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9201 Return bound_minimal_symbol.
9202 (in_gnu_ifunc_stub): Update.
9203 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9204 Remove 'objfile_p' argument.
9205 (lookup_solib_trampoline_symbol_by_pc): Update.
9206 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9207 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9208 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9209 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9210 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9211 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9212 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9213 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9214 stack.c, symtab.c, tui/tui-disasm.c: Update.
9215
f85f34ed
TT
92162013-04-08 Tom Tromey <tromey@redhat.com>
9217
9218 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9219 Use symbol's obstack, not an objfile.
9220 * coffread.c (process_coff_symbol): Update.
9221 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9222 * jv-lang.c (add_class_symbol): Update.
9223 * mdebugread.c (new_symbol): Update.
9224 * minsyms.c (prim_record_minimal_symbol_full)
9225 (terminate_minimal_symbol_table): Update.
9226 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9227 * stabsread.c (define_symbol, read_enum_type): Update.
9228 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9229 Handle Ada specially.
9230 (symbol_set_language): Add 'obstack' argument.
9231 (symbol_set_names): Update.
9232 (symbol_natural_name, symbol_demangled_name): Always use
9233 ada_decode_symbol.
9234 * symtab.h (struct general_symbol_info)
9235 <language_specific::obstack>: New field.
9236 <ada_mangled>: New field.
9237 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9238 (symbol_set_language): Update.
9239
ccde22c0
TT
92402013-04-08 Tom Tromey <tromey@redhat.com>
9241
9242 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9243 Take an obstack, not an objfile.
9244 (symbol_set_names): Update.
9245 * symtab.h (symbol_set_demangled_name): Update.
9246
e623cf5d
TT
92472013-04-08 Tom Tromey <tromey@redhat.com>
9248
9249 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9250 allocate_symbol.
9251 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9252 (read_func_scope): Call allocate_template_symbol.
9253 (new_symbol_full): Call allocate_symbol.
9254 * jit.c (finalize_symtab): Call allocate_symbol.
9255 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9256 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9257 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9258 (common_block_end): Call allocate_symbol.
9259 * symtab.c (allocate_symbol, initialize_symbol)
9260 (allocate_template_symbol): New functions.
9261 * symtab.c (allocate_symbol, initialize_symbol)
9262 (allocate_template_symbol): Declare.
9263 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9264
f6de8ec2
PA
92652013-04-08 Pedro Alves <palves@redhat.com>
9266 Keith Seitz <keiths@redhat.com>
9267
9268 * breakpoint.c (create_breakpoint): Rename
9269 "parse_condition_and_thread" parameter to "parse_arg". Update
9270 describing comment. If !PARSE_ARG, then error out if ARG is not
9271 the empty string after extracting the location.
9272 * breakpoint.h (create_breakpoint): Rename
9273 "parse_condition_and_thread" parameter to "parse_arg".
9274
f65ce5fb
AR
92752013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9276
9277 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9278
cc5925ad
YQ
92792013-04-07 Yao Qi <yao@codesourcery.com>
9280
9281 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9282 and 'addr2' to CORE_ADDR.
9283 * target.c (update_current_target): Update.
9284 * target.h (struct target_ops) <to_trace_find>: Change parameter
9285 type to CORE_ADDR.
9286 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9287 'addr2' to CORE_ADDR.
9288 (tfile_trace_find): Likewise.
9289 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9290 Change local variable 'addr' to type CORE_ADDR.
9291 * tracepoint.h (tfind_1): Update declaration.
9292
d9ac0664
EZ
92932013-04-06 Eli Zaretskii <eliz@gnu.org>
9294
9295 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9296 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9297 Include main.h.
9298
9299 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9300 here...
9301 * main.h (windows_get_absolute_argv0): ...to here.
9302
02142a6c
DE
93032013-04-05 Doug Evans <dje@google.com>
9304
9305 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9306 (read_cutu_die_from_dwo): Add comments.
9307 (read_structure_type): Update comment.
9308 (read_enumeration_type, read_namespace_type): Update comment.
9309 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9310
43662968
JK
93112013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9314 * Makefile.in (gdb.z): Remove.
9315 (install-only): Remove $(man1dir) and gdb.1 installation.
9316 * gdb.1: Remove.
9317
9ead1b84
JK
93182013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9319
9320 Fix compatibility with Linux kernel 3.8.3.
9321 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9322 to more inner block. Remove parsing of NUMBER from outer block.
9323 Parse NUMBER only if KEYWORD has been identified.
9324
d1794952
JK
93252013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9326
9327 Fix variable name shadowing.
9328 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9329 filename to mapsfilename and update its uses.
9330
9025569e
EZ
93312013-04-05 Eli Zaretskii <eliz@gnu.org>
9332
9333 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9334 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9335 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9336 details of the problem.
9337
c9a6ce02
PA
93382013-04-04 Pedro Alves <palves@redhat.com>
9339 Hui Zhu <hui@codesourcery.com>
9340
9341 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9342 tracepoint, reset its STEP_COUNT and call validate_actionline.
9343
5ff888ce
DE
93442013-04-03 Doug Evans <dje@google.com>
9345
bf6af496
DE
9346 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9347 read_die_and_siblings.
9348 (read_die_and_siblings): New function.
9349 (read_cutu_die_from_dwo): Dump die if requested.
9350 (read_die_and_children): Call read_full_die_1 and
9351 read_die_and_siblings_1.
9352 (read_full_die): Dump die if requested.
9353
9354 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9355
0ac5b59e
DE
9356 * dwarf2read.c (struct dwo_file): New member comp_dir.
9357 Rename member name to dwo_name. All uses updated.
9358 (hash_dwo_file): Include comp_dir in computation.
9359 (eq_dwo_file): Ditto.
9360 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9361 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9362
5ff888ce
DE
9363 * psymtab.c (read_psymtabs_with_fullname): Don't call
9364 psymtab_to_fullname if the basenames are different.
9365
ec83d211
JK
93662013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9369 New entry about "fullname" presence.
9370
4f4352f7
PA
93712013-04-03 Pedro Alves <palves@redhat.com>
9372
9373 * NEWS: Mention x86_64/Cygwin as new native configuration.
9374
3d1d5ea3
DE
93752013-04-02 Doug Evans <dje@google.com>
9376
9377 * dwarf2read.c (read_structure_type): Fix typo in comment.
9378
be9a8770
PA
93792013-04-02 Pedro Alves <palves@redhat.com>
9380
9381 * NEWS: Mention "set/show debug aarch64", "set/show debug
9382 coff-pe-read" and "set/show debug mach-o".
9383
a46c1e42
PA
93842013-04-02 Pedro Alves <palves@redhat.com>
9385
9386 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9387
3ad18b19
EZ
93882013-04-02 Eli Zaretskii <eliz@gnu.org>
9389
9390 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9391 gdb_string.h is now in common/.
9392
e9f1758d
PA
93932013-04-02 Pedro Alves <palves@redhat.com>
9394
9395 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9396 under "New options".
9397
049dc89b
JK
93982013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9399
9400 Revert this patch:
9401 PR gdb/15275
9402 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9403
c33e31fd
PA
94042013-04-02 Pedro Alves <palves@redhat.com>
9405
9406 PR gdb/15275
9407
9408 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9409 (remote_serial_write): New function.
9410 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9411
ea5f3910
JW
94122013-04-01 Jiong Wang <jiwang@tilera.com>
9413
9414 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9415 "New targets" sections.
ea5f3910 9416
5c6fa7ab
DE
94172013-04-01 Doug Evans <dje@google.com>
9418
c0f78cd4
DE
9419 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9420 (process_enumeration_scope): Simplify.
9421
0186c6a7
DE
9422 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9423 type_unit_group ...
9424 (struct signatured_type): ... to here.
9425 (sig_type_ptr): New typedef.
9426 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9427 out of union 't'. All uses updated.
9428 (dw2_get_file_names_reader): Assert not called for a type unit.
9429 (dw2_get_file_names): Assert not called for a type unit or type
9430 unit group.
9431 (build_type_psymtabs_reader): Assert called for a type unit.
9432 (build_type_psymtab_dependencies): Assert called for a type unit group.
9433
5c6fa7ab
DE
9434 * dwarf2read.c (free_dwo_file): Add comment.
9435 (dwarf2_per_objfile_free): Unref dwp bfd.
9436
b3c0ad67 94372013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9438
9439 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9440 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9441 (read_pe_exported_syms): Remove unused 'exportix'.
9442 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9443 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9444 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9445
e2df1547
AR
94462013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9447
9448 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9449 (print_it_watchpoint): Remove unused 'bl'.
9450 (say_where): Remove unused 'uiout'.
9451 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9452 (bkpt_breakpoint_hit): Remove unused 'b'.
9453 (internal_bkpt_print_it): Remove unused 'uiout'.
9454 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9455
d81e75c0
TD
94562013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9457
9458 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9459 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9460
5a8b3f62
DE
94612013-03-29 Doug Evans <dje@google.com>
9462
ab5088bf
DE
9463 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9464 Delete arg is_dwp. All callers updated.
9465 (open_dwp_file): New function.
9466 (open_and_init_dwp_file): Call it.
9467 (get_dwp_file): New function.
9468 (lookup_dwo_cutu): Call it.
9469
a8ad1e57
DE
9470 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9471 unnecessary, cleanup.
9472
6296d8c1
DE
9473 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9474
b0c7bfa9
DE
9475 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9476 (lookup_dwo_unit): New function.
9477 (init_cutu_and_read_dies): Move DWO handling to new functions.
9478
c88ee1f0
DE
9479 * dwarf2read.c (struct signatured_type): Tweak comment.
9480 (struct dwo_unit): Tweak comment.
9481 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9482 (create_dwo_debug_info_hash_table): Tweak comment.
9483 (dwarf2_per_cu_offset_and_type): Tweak comment.
9484
5a8b3f62
DE
9485 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9486 missing .debug_types section.
9487
9852c492
YQ
94882013-03-29 Yao Qi <yao@codesourcery.com>
9489
9490 * corelow.c: Include "completer.h".
9491 (_initialize_corelow): Call add_target_with_completer with
9492 argument 'filename_completer'.
9493 * tracepoint.c: Likewise.
9494 * exec.c (_initialize_exec): Likewise.
9495 * target.c (add_target): Rename to ...
9496 (add_target_with_completer): ... this. Call set_cmd_completer
9497 if parameter completer is not NULL.
9498 (add_target): New.
9499 * target.h: Include "command.h".
9500 (add_target_with_completer): Declare it.
9501
af312be7
JB
95022013-03-28 Joel Brobecker <brobecker@adacore.com>
9503
9504 * coffread.c (is_import_fixup_symbol): New function.
9505 (record_minimal_symbol): Use is_import_fixup_symbol to
9506 detect import fixup symbols, and discard them.
9507
8a0459fd
DE
95082013-03-28 Doug Evans <dje@google.com>
9509
0349ea22
DE
9510 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9511 types hash table until we know we need it.
9512
f652bce2
DE
9513 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9514 index numbers.
9515
e4a48d9d
DE
9516 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9517 All callers updated.
9518 (dw2_print_stats): Print #read CUs too.
9519 (dump_die_shallow): Print signatured types better.
9520
8a0459fd
DE
9521 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9522 info_or_types_section to section. All uses updated.
9523 (struct dwo_unit): Ditto.
9524
bd3eecc3
PA
95252013-03-28 Pedro Alves <palves@redhat.com>
9526
9527 * NEWS (New options): New section.
9528 (New options): Mention set/show remote trace-status-packet.
9529 * remote.c (PACKET_qTStatus): New enumeration value.
9530 (remote_get_trace_status): Skip sending qTStatus if the packet is
9531 disabled. Use packet_ok.
9532 (_initialize_remote): Register a configuration command for
9533 qTStatus packet.
9534
41245087
DE
95352013-03-28 Doug Evans <dje@google.com>
9536
7edbb660
DE
9537 * symfile.c (find_separate_debug_file): Add comment.
9538 (terminate_after_last_dir_separator): Tweak comment.
9539
0018ea6f
DE
9540 * dwarf2read.c (create_partial_symtab): Add forward decl.
9541 (create_partial_symtab): Move to be closer to other psymtab functions.
9542 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9543
ca69b9e6
DE
9544 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9545 (compute_symtab_includes): Remove unnecessary forward declaration.
9546 (die_needs_namespace): Add comment marking group of functions for
9547 dwarf2 name computation.
9548
a9375afe
DE
9549 * typeprint.c (_initialize_typeprint): Improve type help text.
9550
41245087
DE
9551 * python/python.c (finish_python_initialization): Provide suggestion
9552 for how to tell gdb to find its python files.
9553
7f7cc265
PA
95542013-03-28 Pedro Alves <palves@redhat.com>
9555
9556 PR gdb/15294
9557
9558 * source.c (_initialize_source): Change back "set listsize" to an
9559 integer command.
9560
ec21308c
JK
95612013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9562
9563 PR gdb/15275
9564 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9565
840a9a1f
PA
95662013-03-27 Pedro Alves <palves@redhat.com>
9567
9568 * top.c (history_size): Rename to ...
9569 (history_size_setshow_var): ... this. Add comment.
9570 (show_commands): Use readline's 'history_length' instead of
9571 computing the history length by calling history_get in a loop.
9572 (set_history_size_command): Error out for sizes over INT_MAX.
9573 Restore previous history size on invalid size.
9574 (init_history): If HISTSIZE is negative, leave the history size as
9575 zero. Add comments.
9576 (init_main): Adjust.
9577
826ecc4d
PA
95782013-03-27 Pedro Alves <palves@redhat.com>
9579
9580 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9581 coff_pe_read" command to "set debug coff-pe-read".
9582
0ccfeeae
MM
95832013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9584
9585 * record.c (command_size_to_target_size): Fix size comparison.
9586 Change parameter type from pointer to integer to integer.
9587 Update all users.
9588
40653b35
PM
95892013-03-27 Pierre Muller <muller@sourceware.org>
9590
9591 * windows-nat.c (handle_output_debug_string): Avoid typecast
9592 from integer of different size warning.
9593
c62fa0e2
JB
95942013-03-26 Joel Brobecker <brobecker@adacore.com>
9595
9596 * windows-nat.c (handle_output_debug_string): Add empty line
9597 after local block variable definition.
9598
2c619be2
PA
95992013-03-26 Pedro Alves <palves@redhat.com>
9600
9601 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9602 (net_open): Make 'polls' local unsigned.
9603
1b493192
PA
96042013-03-26 Pedro Alves <palves@redhat.com>
9605
9606 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9607 a zuinteger command instead of uinteger.
9608
7ee70bf5
PA
96092013-03-26 Pedro Alves <palves@redhat.com>
9610
9611 * record-full.c (record_full_insn_num): Make it unsigned.
9612 (record_full_check_insn_num, record_full_message)
9613 (record_full_registers_change, record_full_xfer_partial): Remove
9614 record_full_insn_max_num check (it's always != 0).
9615 (record_full_info, record_full_restore): Use %u as format string.
9616 (): Use %u as format string.
9617 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9618 check (it's always != 0).
9619
dfd1f9bb
PA
96202013-03-26 Pedro Alves <palves@redhat.com>
9621
9622 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9623 and "set dcache size" commands zuinteger instead of uinteger.
9624
addb4faf
PA
96252013-03-26 Pedro Alves <palves@redhat.com>
9626
9627 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9628 command zuinteger instead of uinteger.
9629
b75bf488
PA
96302013-03-26 Pedro Alves <palves@redhat.com>
9631
9632 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9633 zuinteger instead of uinteger.
9634
42c634cb
PA
96352013-03-26 Pedro Alves <palves@redhat.com>
9636
9637 * record.c (record_insn_history_size_setshow_var)
9638 (record_call_history_size_setshow_var): New globals.
9639 (command_size_to_target_size): New function.
9640 (cmd_record_insn_history, cmd_record_call_history): Use
9641 command_size_to_target_size instead of cast.
9642 (validate_history_size, set_record_insn_history_size)
9643 (set_record_call_history_size): New functions.
9644 (_initialize_record): Install set_record_insn_history_size and
9645 set_record_call_history_size as "set" hooks of "set record
9646 instruction-history-size" and "set record
9647 function-call-history-size".
9648
1fb2e2b5
PA
96492013-03-26 Pedro Alves <palves@redhat.com>
9650
9651 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9652 use with history_max_entries use. Remove FIXME note.
9653
99c819ee
MM
96542013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9655
9656 * record-btrace.c (record_btrace_close): Call
9657 record_btrace_auto_disable.
9658
9f9e404c
JB
96592013-03-25 Joel Brobecker <brobecker@adacore.com>
9660
9661 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9662
ebcdfe33
DE
96632013-03-25 Doug Evans <dje@google.com>
9664
9665 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9666
24955f63
TT
96672013-03-25 Tom Tromey <tromey@redhat.com>
9668
9669 PR symtab/11462:
9670 * c-exp.y (exp): Add new productions for destructors after '.' and
9671 '->'.
9672 (write_destructor_name): New function.
9673
fce632b6
TT
96742013-03-25 Tom Tromey <tromey@redhat.com>
9675
9676 PR c++/9197:
9677 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9678 value_struct_elt, not lookup_struct_elt_type.
9679 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9680 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9681 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9682
a4341769
YQ
96832013-03-25 Yao Qi <yao@codesourcery.com>
9684
9685 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9686 instead of '_mkdir'.
9687
b5981e5a
EZ
96882013-03-23 Eli Zaretskii <eliz@gnu.org>
9689
9690 * windows-nat.c (windows_get_absolute_argv0): New function.
9691 * windows-nat.h: Add its prototype.
9692
9693 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9694 Use IS_DIR_SEPARATOR instead of looking for a character inside
9695 SLASH_STRING. Include filenames.h.
9696 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9697 relocate_gdb_directory works when passed gdb_program_name.
9698 Include windows-nat.h.
9699
598d3636
JK
97002013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9703 * remote.c (trace_error): Remove the special handling of '2'.
9704 (readchar) <SERIAL_EOF>
9705 (readchar) <SERIAL_ERROR>
9706 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9707 (remote_get_trace_status): Call throw_exception if EX is
9708 TARGET_CLOSE_ERROR.
9709 * utils.c (perror_with_name): Rename to ...
9710 (throw_perror_with_name): ... here. New parameter errcode, describe it
9711 in the function comment.
9712 (perror_with_name): New function wrapper.
9713 * utils.h (enum errors): New stub declaration.
9714 (throw_perror_with_name): New declaration.
9715
82b821e9
PA
97162013-03-22 Pedro Alves <palves@redhat.com>
9717 Yao Qi <yao@codesourcery.com>
9718 Mark Kettenis <kettenis@gnu.org>
9719
9720 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9721 Don't let the user set the value to UINT_MAX directly.
9722 <var_integer>: Don't let the user set the value to INT_MAX
9723 directly.
9724
78a095c3
JK
97252013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9726
9727 * remote.c (remote_unpush_target): New function.
9728 (remote_open_1): Remove two pop_target calls, update one comment, add
9729 comment to target_preopen call. Replace pop_target call by
9730 remote_unpush_target call.
9731 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9732 pop_target calls by remote_unpush_target calls.
9733
3e74e146
PA
97342013-03-22 Pedro Alves <palves@redhat.com>
9735
9736 * linux-nat.c (linux_child_follow_fork): Don't call
9737 linux_enable_event_reporting.
9738 (linux_handle_extended_wait): Don't call
9739 linux_enable_event_reporting.
9740
a2213dca
PA
97412013-03-22 Pedro Alves <palves@redhat.com>
9742
9743 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9744 use it to rewrite the trampoline buffers with type gdb_byte[], and
9745 undefine the macro. Remove char* cast.
9746
bd712aed
DE
97472013-03-21 Doug Evans <dje@google.com>
9748
9749 New commands "mt set per-command {space,time,symtab} {on,off}".
9750 * NEWS: Add entry.
9751 * event-top.c: #include "maint.h".
9752 * main.c: #include "maint.h".
9753 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9754 timeval-utils.h, maint.h, cli/cli-setshow.h.
9755 (per_command_time, per_command_space): New static globals.
9756 (per_command_symtab): New static global.
9757 (per_command_setlist, per_command_showlist): New static globals.
9758 (struct cmd_stats): Move here from utils.c.
9759 (set_per_command_time): Renamed from set_display_time in utils.c
9760 and moved here. All callers updated.
9761 (set_per_command_space): Renamed from set_display_space in utils.c
9762 and moved here. All callers updated.
9763 (count_symtabs_and_blocks): New function.
9764 (report_command_stats): Moved here from utils.c. Add support for
9765 printing symtab stats. Only print data if enabled before command
9766 executed.
9767 (make_command_stats_cleanup): Ditto.
9768 (sert_per_command_cmd, show_per_command_cmd): New functions.
9769 (_initialize_maint_cmds): Add new commands
9770 mt set per-command {space,time,symtab} {on,off}.
9771 * maint.h: New file.
9772 * top.c: #include "maint.h".
9773 * utils.c (reset_prompt_for_continue_wait_time): New function.
9774 (get_prompt_for_continue_wait_time): New function.
9775 * utils.h (reset_prompt_for_continue_wait_time): Declare
9776 (get_prompt_for_continue_wait_time): Declare.
9777 (make_command_stats_cleanup): Moved to maint.h.
9778 (set_display_time, set_display_space): Moved to maint.h and renamed
9779 to set_per_command_time, set_per_command_space.
9780 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9781 parse_binary_operation and made non-static. Don't call error,
9782 just return an error marker. All callers updated.
9783 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9784
d76488d8
TT
97852013-03-21 Tom Tromey <tromey@redhat.com>
9786
9787 * symfile.c (alloc_section_addr_info): Update header. Don't set
9788 'num_sections' field.
9789 (build_section_addr_info_from_section_table): Set 'num_sections'.
9790 (build_section_addr_info_from_bfd): Likewise.
9791 (build_section_addr_info_from_objfile): Remove dead loop
9792 condition.
9793 (free_section_addr_info): Unconditionally call xfree.
9794 (relative_addr_info_to_section_offsets, addrs_section_sort)
9795 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9796 condition.
9797 (syms_from_objfile_1): Remove dead 'if' condition. Check
9798 'num_sections'.
9799 (add_symbol_file_command): Set 'num_sections'.
9800 * symfile-mem.c (symbol_file_add_from_memory): Set
9801 'num_sections'.
9802 * somread.c (som_symfile_offsets): Remove dead loop condition.
9803 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9804 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9805
a72e5169 98062013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9807
9808 * tracepoint.h (decode_agent_options): Add 'trace_string'
9809 argument.
9810 * tracepoint.c (decode_agent_options): Add 'trace_string'
9811 argument.
9812 (validate_actionline): Update.
9813 (collect_symbol): Add 'trace_string' argument.
9814 (struct add_local_symbols_data) <trace_string>: New field.
9815 (do_collect_symbol): Update.
9816 (add_local_symbols): Add 'trace_string' argument.
9817 (encode_actions_1): Update.
9818 (trace_dump_actions): Update.
9819 * dwarf2loc.c (access_memory): Update.
9820 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9821 * ax-general.c (new_agent_expr): Update.
9822 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9823 (gen_trace_for_return_address): Add argument.
9824 (trace_kludge, trace_string_kludge): Remove.
9825 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9826 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9827 (gen_trace_for_var): Add 'trace_string' argument.
9828 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9829 (gen_printf, agent_eval_command_one): Update.
9830
b2f83c08
TT
98312013-03-21 Tom Tromey <tromey@redhat.com>
9832
9833 PR exp/15109:
9834 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9835 Handle FILENAME token.
9836
9507860e
TT
98372013-03-21 Tom Tromey <tromey@redhat.com>
9838
9839 * c-exp.y (YYPRINT): Define.
9840 (c_print_token): New function.
9841
e403aa4b
TT
98422013-03-21 Tom Tromey <tromey@redhat.com>
9843
9844 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9845
af307d6a
YQ
98462013-03-21 Yao Qi <yao@codesourcery.com>
9847
9848 * ctf.c: Include "gdb_stat.h".
9849 [USE_WIN32API]: New macro 'mkdir'.
9850 (ctf_start): Use permission bits macros if they are defined.
9851
fb81d016
KS
98522013-03-20 Keith Seitz <keiths@redhat.com>
9853
9854 * breakpoint.h (struct breakpoint): Add comment to
9855 extra_string indicating that this member is mallod'd.
9856 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9857
ef0026f0
PA
98582013-03-20 Pedro Alves <palves@redhat.com>
9859
9860 PR gdb/15289
9861
9862 * cli/cli-setshow.c (do_set_command)
9863 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9864 the result of parsing the command argument. Throw error if the
9865 value is greater than UINT_MAX. Print the invalid value with
9866 plongest.
9867 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9868 result of parsing the command argument. Throw error if the value
9869 is greater than INT_MAX, not greater or equal. Also throw error
9870 if the value is less than INT_MIN. Print the invalid value with
9871 plongest.
9872 <var_zuinteger_unlimited>: Throw error if the value is greater
9873 than INT_MAX, not greater or equal.
9874 (do_show_command) <var_integer, var_zinteger,
9875 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9876
24d6c2a0
TT
98772013-03-20 Tom Tromey <tromey@redhat.com>
9878
9879 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9880 if possible.
9881 * dwarf2read.c (read_func_scope): Remove old FIXME.
9882 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9883 not LOC_COMPUTED.
9884 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9885 Unconditionally call via computed ops, if possible.
9886 * printcmd.c (address_info): Unconditionally call via computed ops,
9887 if possible.
9888 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9889 if possible.
9890 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9891 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9892 if possible.
9893
f1e6e072
TT
98942013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9895 Tom Tromey <tromey@redhat.com>
9896
9897 PR symtab/8421:
9898 * coffread.c (coff_register_index): New global.
9899 (process_coff_symbol, coff_read_enum_type): Set
9900 SYMBOL_ACLASS_INDEX.
9901 (_initialize_coffread): Initialize new global.
9902 * dwarf2loc.c (locexpr_find_frame_base_location)
9903 (dwarf2_block_frame_base_locexpr_funcs)
9904 (loclist_find_frame_base_location)
9905 (dwarf2_block_frame_base_loclist_funcs): New.
9906 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9907 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9908 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9909 (dwarf2_block_frame_base_loclist_funcs): New.
9910 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9911 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9912 globals.
9913 (read_func_scope): Update.
9914 (fixup_go_packaging, mark_common_block_symbol_computed)
9915 (var_decode_location, new_symbol_full, dwarf2_const_value):
9916 Set SYMBOL_ACLASS_INDEX.
9917 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9918 (_initialize_dwarf2_read): Initialize new globals.
9919 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9920 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9921 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9922 globals.
9923 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9924 (_initialize_mdebugread): Initialize new globals.
9925 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9926 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9927 (stab_register_index, stab_regparm_index): New globals.
9928 (define_symbol, read_enum_type, common_block_end): Set
9929 SYMBOL_ACLASS_INDEX.
9930 (_initialize_stabsread): Initialize new globals.
9931 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9932 globals.
9933 (MAX_SYMBOL_IMPLS): New define.
9934 (register_symbol_computed_impl, register_symbol_block_impl)
9935 (register_symbol_register_impl)
9936 (initialize_ordinary_address_classes): New functions.
9937 (_initialize_symtab): Call initialize_ordinary_address_classes.
9938 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9939 (struct symbol_impl): New.
9940 (SYMBOL_ACLASS_BITS): New define.
9941 (struct symbol) <aclass, ops>: Remove fields.
9942 <aclass_index>: New field.
9943 (symbol_impls): Declare.
9944 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9945 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9946 (register_symbol_computed_impl, register_symbol_block_impl)
9947 (register_symbol_register_impl): Declare.
9948 (struct symbol_computed_ops): Add location_has_loclist.
9949 (struct symbol_block_ops): New.
9950 (SYMBOL_BLOCK_OPS): New.
9951 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9952
dbccfd4c
TT
99532013-03-20 Tom Tromey <tromey@redhat.com>
9954
9955 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9956 (print_partial_symbols, recursively_search_psymtabs): Use
9957 PSYMBOL_CLASS.
9958
e3f1ad4f
PM
99592013-03-20 Pierre Muller <muller@sourceware.org>
9960
9961 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9962 addtion, subtraction, multiplication and division binary operator.
9963
460014f5
JK
99642013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9965
9966 Code cleanup.
9967 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9968 * bsd-kvm.c (bsd_kvm_close): Likewise.
9969 * bsd-uthread.c (bsd_uthread_close): Likewise.
9970 * corelow.c (core_close): Likewise.
9971 (core_close_cleanup): Remove parameter quitting from a caller.
9972 * event-top.c (async_disconnect): Likewise.
9973 * exec.c (exec_close_1): Remove parameter quitting.
9974 * go32-nat.c (go32_close): Likewise.
9975 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9976 parameter quitting from a caller.
9977 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9978 variable.
9979 (mips_linux_close): Remove parameter quitting. Remove parameter
9980 quitting from a caller.
9981 * monitor.c (monitor_close): Remove parameter quitting.
9982 * monitor.h (monitor_close): Likewise.
9983 * record-btrace.c (record_btrace_close): Likewise.
9984 * record-full.c (record_full_close): Likewise.
9985 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9986 it also from fprintf_unfiltered.
9987 * remote-mips.c (mips_close): Remove parameter quitting.
9988 (mips_detach): Remove parameter quitting from a caller.
9989 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9990 (gdbsim_close): Remove duplicate function comment. Remove parameter
9991 quitting and remove it also from printf_filtered.
9992 * remote.c (remote_close): Remove parameter quitting.
9993 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9994 * target.c (update_current_target): Remove parameter int from to_close
9995 de_fault.
9996 (push_target, unpush_target, pop_target): Remove parameter quitting from
9997 a caller.
9998 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9999 Remove parameter quitting from a caller.
10000 (target_preopen): Remove parameter quitting from a caller.
10001 (target_close): Remove parameter quitting. Remove parameter quitting
10002 from a caller two times. Remove parameter quitting also from
10003 fprintf_unfiltered.
10004 * target.h (struct target_ops): Remove parameter quitting and as int
10005 from fields to_xclose and to_close.
10006 (extern struct target_ops current_target):
10007 (target_close, pop_all_targets): Remove parameter quitting. Update the
10008 comment.
10009 (pop_all_targets_above): Remove parameter quitting.
10010 * top.c (quit_target): Remove parameter quitting from a caller.
10011 * tracepoint.c (tfile_close): Remove parameter quitting.
10012 * windows-nat.c (windows_close): Remove parameter quitting.
10013
35a7120b
CV
100142013-03-20 Corinna Vinschen <vinschen@redhat.com>
10015
10016 * windows-nat.c (handle_output_debug_string): Replace call
10017 to string_to_core_addr with call to strtoull.
10018
8249a5a9
YQ
100192013-03-20 Yao Qi <yao@codesourcery.com>
10020
10021 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10022 and write it to CTF metadata.
10023
2c15ef43
CV
100242013-03-19 Corinna Vinschen <vinschen@redhat.com>
10025
10026 * windows-nat.c (handle_output_debug_string): Change type of n to
10027 SIZE_T to avoid crash on 64 bit systems.
10028
1cdd3232
EZ
100292013-03-17 Eli Zaretskii <eliz@gnu.org>
10030
10031 * python/python-internal.h (HAVE_SNPRINTF)
10032 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10033 about redefinition of snprintf by pyerrors.h.
10034
3cb2ab1a
SE
100352013-03-15 Steve Ellcey <sellcey@mips.com>
10036
10037 * remote-sim.c (sim_command_completer): Make char arguments const.
10038
9ce98649
TT
100392013-03-15 Tom Tromey <tromey@redhat.com>
10040
10041 PR c++/15116:
10042 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10043
dccee2de
TT
100442013-03-14 Tom Tromey <tromey@redhat.com>
10045
10046 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10047 New fields.
10048 (get_file_crc): Move from symfile.c.
10049 (gdb_bfd_crc): New function.
10050 * gdb_bfd.h (gdb_bfd_crc): Declare.
10051 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10052 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10053 (separate_debug_file_exists): Use gdb_bfd_crc.
10054
cc0ea93c
TT
100552013-03-14 Tom Tromey <tromey@redhat.com>
10056
10057 * symfile.c (get_debug_link_info): Remove.
10058 (find_separate_debug_file_by_debuglink): Use
10059 bfd_get_debug_link_info.
10060
08c23b0d
TT
100612013-03-14 Tom Tromey <tromey@redhat.com>
10062
10063 * symtab.c (error_in_psymtab_expansion): New function.
10064 (lookup_symbol_aux_quick)
10065 (basic_lookup_transparent_type_quick): Remove "last resort"
10066 code. Use error_in_psymtab_expansion.
10067
288e77a7
JK
100682013-03-14 Doug Evans <dje@google.com>
10069 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10072 any successful compare_filenames_for_search or FILENAME_CMP.
10073 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10074 * symtab.c (iterate_over_some_symtabs): Likewise.
10075
8f1b8b82
JK
100762013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10077
10078 * source.c (print_source_lines_base): Make a local copy of
10079 symtab_to_fullname.
10080
23eb71e4
JK
100812013-03-14 Hui Zhu <hui_zhu@mentor.com>
10082 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 * source.c (print_source_lines_base): Suppress "file" for TUI.
10085
bb869963
SDJ
100862013-03-14 Keith Seitz <keiths@redhat.com>
10087 Alan Matsuoka <alanm@redhat.com>
10088
10089 PR c++/15203
10090 PR c++/15210
10091 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10092 TYPE_CODE_METHOD.
10093 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10094 symbols.
10095
d6682f9e
YQ
100962013-03-14 Yao Qi <yao@codesourcery.com>
10097
10098 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10099 status to tfile if trace is stopped by command 'tstop'.
10100
a22fa6e4
YQ
101012013-03-14 Yao Qi <yao@codesourcery.com>
10102
10103 * tracepoint.c (tfile_write_status): Write trace notes and user
10104 name into tfile if they are not NULL.
10105
d0353e76
YQ
101062013-03-14 Hui Zhu <hui@codesourcery.com>
10107 Yao Qi <yao@codesourcery.com>
10108
10109 * Makefile.in (REMOTE_OBS): Add ctf.o.
10110 (SFILES): Add ctf.c.
10111 (HFILES_NO_SRCDIR): Add ctf.h.
10112 * ctf.c, ctf.h: New files.
10113 * tracepoint.c: Include 'ctf.h'.
10114 (collect_pseudocommand): Remove static.
10115 (trace_save_command): Parse option "-ctf".
10116 Produce different trace file writers per option.
10117 Adjust output message.
10118 (trace_save_tfile, trace_save_ctf): New.
10119 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10120 * mi/mi-main.c: Include 'ctf.h'.
10121 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10122 trace_save_tfile or trace_save_ctf.
10123 * NEWS: Mention these changes.
10124
3f43bc09
YQ
101252013-03-14 Yao Qi <yao@codesourcery.com>
10126
10127 * tracepoint.c (trace_file_writer_xfree): New.
10128 (struct tfile_writer_data): New.
10129 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10130 (tfile_write_header, tfile_write_regblock_type): New.
10131 (tfile_write_status, tfile_write_uploaded_tsv): New.
10132 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10133 (tfile_write_raw_data, (tfile_end): New.
10134 (tfile_write_ops): New global variable.
10135 (TRACE_WRITE_R_BLOCK): New macro.
10136 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10137 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10138 (TRACE_WRITE_V_BLOCK): New macro.
10139 (trace_save): Add extra one parameter WRITER. Make it static.
10140 Use WRITER to writer trace.
10141 (tfile_trace_file_writer_new): New.
10142 (trace_save_command): Caller update.
10143 (trace_save_tfile): Write trace data in TFILE format.
10144 * tracepoint.h (struct trace_frame_write_ops): New.
10145 (struct trace_file_write_ops): New.
10146 (struct trace_file_writer): New.
10147 (trace_save): Remove its declaration.
10148 (trace_save_tfile): Declare it.
10149 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10150 instead of trace_save.
10151
58665b40
PA
101522013-03-13 Pedro Alves <palves@redhat.com>
10153
10154 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10155
10217050
PA
101562013-03-13 Pedro Alves <palves@redhat.com>
10157
10158 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10159 commented out code.
10160 * demangle.c (current_demangling_style_string): Make it const.
10161 (set_demangling_command): Assert the demangling style is known.
10162 Remove all handling of unknown styles. Set
10163 'current_demangling_style_string' to an element of the
10164 demangling_style_names array.
10165 (set_demangling_style): Delete.
10166 (_initialize_demangler): Set current_demangling_style_string to the
10167 element of the demangling_style_names array that corresponds to
10168 the default demangling style. Remove FIXME note. Don't call
10169 set_demangling_style.
10170 * gdb-demangle.h (set_demangling_style): Remove declaration.
10171
6f937416
PA
101722013-03-13 Pedro Alves <palves@redhat.com>
10173
10174 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10175 fields const.
10176 (ada_make_symbol_completion_list): Make "text0" parameter const.
10177 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10178 * breakpoint.c (condition_completer): Make "text" and "word"
10179 parameters const. Adjust.
10180 (check_tracepoint_command): Adjust to validate_actionline
10181 prototype change.
10182 (catch_syscall_completer): Make "text" and "word" parameters
10183 const.
10184 * cli/cli-cmds.c (show_user): Make "comname" local const.
10185 (valid_command_p): Make "command" parameter const.
10186 (alias_command): Make "alias_prefix" and "command_prefix" locals
10187 const.
10188 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10189 (add_alias_cmd): Make "name" and "oldname" parameters const.
10190 Adjust. No longer make copy of OLDNAME.
10191 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10192 (add_setshow_cmd_full, add_setshow_enum_cmd)
10193 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10194 (add_setshow_filename_cmd, add_setshow_string_cmd)
10195 (add_setshow_string_noescape_cmd)
10196 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10197 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10198 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10199 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10200 Make "name" parameter const.
10201 (help_cmd): Rename "command" parameter to "arg". New const local
10202 "command".
10203 (find_cmd): Make "command" parameter const.
10204 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10205 deprecated_cmd_warning prototype change.
10206 (undef_cmd_error): Make "cmdtype" parameter const.
10207 (lookup_cmd): Make "line" parameter const.
10208 (deprecated_cmd_warning): Change type of "text" parameter to
10209 pointer to const char, from pointer to pointer to char. Adjust.
10210 (lookup_cmd_composition): Make "text" parameter const.
10211 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10212 parameters const.
10213 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10214 const.
10215 * cli/cli-script.c (validate_comname): Make "tem" local const.
10216 (define_command): New const local "tem_c". Use it in calls to
10217 lookup_cmd.
10218 (document_command): Make "tem" and "comfull" locals const.
10219 (show_user_1): Make "prefix" and "name" parameters const.
10220 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10221 const.
10222 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10223 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10224 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10225 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10226 (complete_on_enum, add_setshow_enum_cmd)
10227 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10228 (add_setshow_filename_cmd, add_setshow_string_cmd)
10229 (add_setshow_string_noescape_cmd)
10230 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10231 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10232 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10233 Change prototypes, constifying strings.
10234 * completer.c (noop_completer, filename_completer): Make "text"
10235 and "prefix" parameters const.
10236 (location_completer, expression_completer)
10237 (complete_line_internal): Make "text" and "prefix" parameters
10238 const and adjust.
10239 (command_completer, signal_completer): Make "text" and "prefix"
10240 parameters const.
10241 * completer.h (noop_completer, filename_completer)
10242 (expression_completer, location_completer, command_completer)
10243 (signal_completer): Change prototypes.
10244 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10245 parameters const.
10246 * cp-abi.c (cp_abi_completer): Likewise.
10247 * expression.h (parse_expression_for_completion): Change
10248 prototype.
10249 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10250 parameters const.
10251 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10252 * infrun.c (handle_completer): Make "text" and "word" parameters
10253 const.
10254 * interps.c (interpreter_completer): Make "text" and "word"
10255 parameters const.
10256 * language.h (struct language_defn)
10257 <la_make_symbol_completion_list>: Make "text" and "word"
10258 parameters const.
10259 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10260 (parse_exp_in_context): Rename to ...
10261 (parse_exp_in_context_1): ... this.
10262 (parse_exp_in_context): Reimplement, with const hack from
10263 parse_exp_1.
10264 (parse_expression_for_completion): Make "string" parameter const.
10265 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10266 to pointer to const char. Adjust.
10267 (print_command_1): Make "exp" parameter const.
10268 (output_command): Rename to ...
10269 (output_command_const): ... this. Make "exp" parameter const.
10270 (output_command): Reimplement.
10271 (x_command): Adjust.
10272 (display_command): Rename "exp" parameter to "arg". New "exp"
10273 local, const version of "arg".
10274 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10275 "cmd_name" local const.
10276 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10277 call.
10278 (cmdpy_completer): Make "text" and "word" parameters const.
10279 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10280 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10281 const.
10282 * remote.c (_initialize_remote): Make "cmd_name" local const.
10283 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10284 parameters const. Adjust.
10285 (completion_list_add_fields): Make "sym_text", "text" and "word"
10286 parameters const.
10287 (struct add_name_data) <sym_text, text, word>: Make fields const.
10288 (default_make_symbol_completion_list_break_on): Make "text" and
10289 "word" parameters const. Adjust locals.
10290 (default_make_symbol_completion_list)
10291 (make_symbol_completion_list, make_symbol_completion_type)
10292 (make_symbol_completion_list_fn): Make "text" and "word"
10293 parameters const.
10294 (make_file_symbol_completion_list): Make "text", "word" and
10295 "srcfile" parameters const. Adjust locals.
10296 (add_filename_to_list): Make "text" and "word" parameters const.
10297 (struct add_partial_filename_data) <text, word>: Make fields
10298 const.
10299 (make_source_files_completion_list): Make "text" and "word"
10300 parameters const.
10301 * symtab.h (default_make_symbol_completion_list_break_on)
10302 (default_make_symbol_completion_list, make_symbol_completion_list)
10303 (make_symbol_completion_type enum type_code)
10304 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10305 (make_source_files_completion_list): Change prototype.
10306 * top.c (execute_command): Adjust to pass pointer to pointer to
10307 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10308 change.
10309 (set_verbose): Make "cmdname" local const.
10310 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10311 and adjust.
10312 (validate_actionline): Make "line" parameter a pointer to const
10313 char, and adjust.
10314 (encode_actions_1): Make "action_exp" local const, and adjust.
10315 (encode_actions): Adjust.
10316 (replace_comma): Delete.
10317 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10318 const, and adjust. Don't frob the action string while splitting
10319 it at commas. Instead, make a copy of each split substring in
10320 turn.
10321 (trace_dump_command): Adjust to validate_actionline prototype
10322 change.
10323 * tracepoint.h (decode_agent_options, decode_agent_options)
10324 (encode_actions, validate_actionline): Change prototypes.
10325 * valprint.h (output_command): Delete declaration.
10326 (output_command_const): Declare.
10327 * value.c (function_destroyer): Cast const away in xfree call.
10328
a0bcdaa7
PA
103292013-03-13 Pedro Alves <palves@redhat.com>
10330
10331 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10332 rather than casting 'const char * const *' to 'const char **'.
10333 * ada-lex.l (processInt): Make "trailer" local const. Remove
10334 'const char **' cast.
10335 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10336 locals, and use those as strtol output pointer, instead than doing
10337 invalid casts to from 'const char **' to 'char **'.
10338 (_initialize_demangle): Remove cast.
10339 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10340 locals, and use those as strtol output pointer, instead than doing
10341 invalid casts to from 'const char **' to 'char **'.
10342 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10343 casts.
10344 * stap-probe.c (stap_parse_register_operand)
10345 (stap_parse_single_operand): Likewise.
10346
8ddb1965
YQ
103472013-03-13 Yao Qi <yao@codesourcery.com>
10348
10349 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10350 the last matched 'V' blcok in trace frame.
10351
2d450646
JB
103522013-03-12 Joel Brobecker <brobecker@adacore.com>
10353
10354 * NEWS: Create a new section for the next release branch.
10355 Rename the section of the current branch, now that it has
10356 been cut.
10357
b4b79973 103582013-03-12 Joel Brobecker <brobecker@adacore.com>
10359
10360 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10361 * version.in: Bump version to 7.6.50.20130312-cvs.
10362
ee047554
KS
103632013-03-12 Keith Seitz <keiths@redhat.com>
10364
10365 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10366 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10367 Remove temporary copy of input string.
10368 (mi_execute_command_wrapper): Make "cmd" const.
10369 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10370 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10371 Use const strings.
10372 (mi_parse): Make "cmd" const.
10373 Use const strings.
10374 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10375
bbc13ae3
KS
103762013-03-12 Keith Seitz <keiths@redhat.com>
10377
10378 * ada-lang.c (ada_read_renaming_var_value): Pass const
10379 pointer to expression string to parse_exp_1.
10380 (create_excep_cond_exprs): Likewise.
10381 * ax-gdb.c (agent_eval_command_one): Likewise.
10382 (maint_agent_printf_command): Likewise.
10383 Constify much of the string handling/parsing.
10384 * breakpoint.c (set_breakpoint_condition): Pass const
10385 pointer to expression string to parse_exp_1.
10386 (update_watchpoint): Likewise.
10387 (parse_cmd_to_aexpr): Constify string handling.
10388 Pass const pointer to parse_exp_1.
10389 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10390 (find_condition_and_thread): Likewise.
10391 Make TOK const.
10392 (watch_command_1): Make "arg" const.
10393 Constify string handling.
10394 Copy the expression string instead of changing the input
10395 string.
10396 (update_breakpoint_location): Pass const pointer to
10397 parse_exp_1.
10398 * eval.c (parse_and_eval_address): Make "exp" const.
10399 (parse_to_comma_and_eval): Make "expp" const.
10400 (parse_and_eval): Make "exp" const.
10401 * expression.h (parse_expression): Make argument const.
10402 (parse_exp_1): Make first argument const.
10403 * findcmd.c (parse_find_args): Treat "args" as const.
10404 * linespec.c (parse_linespec): Pass const pointer to
10405 linespec_expression_to_pc.
10406 (linespec_expression_to_pc): Make "exp_ptr" const.
10407 * parse.c (parse_exp_1): Make "stringptr" const.
10408 Make a copy of the expression to pass to parse_exp_in_context until
10409 this whole interface can be constified.
10410 (parse_expression): Make "string" const.
10411 * printcmd.c (ui_printf): Treat "arg" as const.
10412 Handle const strings.
10413 * tracepoint.c (validate_actionline): Pass const pointer to
10414 all calls to parse_exp_1.
10415 (encode_actions_1): Likewise.
10416 * value.h (parse_to_comma_and_eval): Make argument const.
10417 (parse_and_eval_address): Likewise.
10418 (parse_and_eval): Likewise.
10419 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10420 (varobj_set_value): Likewise.
10421 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10422 constify string handling.
10423 Pass const pointers to parse_and_eval_address and
10424 parse_to_comman_and_eval.
10425 * cli/cli-utils.c (skip_to_space): Rename to ...
10426 (skip_to_space_const): ... this. Handle const strings.
10427 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10428 skip_to_space_const.
10429 (skip_to_space_const): Declare.
10430 * common/format.c (parse_format_string): Make "arg" const.
10431 Handle const strings.
10432 * common/format.h (parse_format_string): Make "arg" const.
10433 * gdbserver/ax.c (ax_printf): Make "format" const.
10434 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10435 of the expression string.
10436
f3cec7e6
HZ
104372013-03-12 Hui Zhu <hui@codesourcery.com>
10438
10439 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10440
9df7235c
HZ
104412013-03-12 Yao Qi <yao@codesourcery.com>
10442 Hui Zhu <hui@codesourcery.com>
10443
10444 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10445 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10446 DW_OP_deref_size.
10447
82d049ab
PH
104482013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10449
5f8e0b8f
MF
10450 * ada-lex.l (rules): Only recognize 'thread' as a
10451 delimiter when followed by numerals, as for c-exp.y.
10452 Use new rewind_to_char function to rewind the input for
10453 expression-delimiting tokens.
10454 (rewind_to_char): New function.
82d049ab 10455
8c1fb155
JK
104562013-03-11 Pedro Alves <palves@redhat.com>
10457 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 * configure: Regenerate.
10460 * configure.ac (check dynamic export flag): Link python test with
10461 $PYTHON_LIBS.
10462
cc81e1c6
DE
104632013-03-11 Doug Evans <dje@google.com>
10464 Keith Seitz <keiths@redhat.com>
10465
10466 * linespec.c (find_linespec_symbols): Call find_function_symbols
10467 first, and then call lookup_prefix_sym/find_method.
10468
39086a0e
PA
104692013-03-11 Pedro Alves <palves@redhat.com>
10470
10471 * charset.c (convert_between_encodings): Don't cast between
10472 different pointer to pointer types. Instead, make the 'inp' local
10473 be of the type iconv expects.
10474 (wchar_iterate): Don't cast between different pointer to pointer
10475 types. Instead, use new pointer local of the type iconv expects.
10476 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10477 Add new local of type char pointer, and use it to get a
10478 char/string view of the byte buffer, instead of casting between
10479 pointer to pointer types.
10480
90585175
HAQ
104812013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10482
10483 * remote.c (remote_set_trace_buffer_size): Move != operator
10484 to the start of next line to fix an ARI warning.
10485
59ea5688
MM
104862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10487
10488 * NEWS: Add record changes.
10489
946287b7
MM
104902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10491
10492 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10493 the instruction history disassembly.
10494 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10495 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10496
afedecd3
MM
104972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10498
10499 * Makefile.in (SFILES): Add record-btrace.c
10500 (COMMON_OBS): Add record-btrace.o
10501 * record-btrace.c: New.
10502 * objfiles.c: Include btrace.h.
10503 (free_objfile): call btrace_free_objfile.
10504
15984c13
MM
105052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10506
10507 * target.c (target_call_history, target_call_history_from,
10508 target_call_history_range): New.
10509 * target.h (target_ops) <to_call_history, to_call_history_from,
10510 to_call_history_range>: New fields.
10511 (target_call_history, target_call_history_from,
10512 target_call_history_range): New declaration.
10513 * record.c (get_call_history_modifiers, cmd_record_call_history,
10514 record_call_history_size): New.
10515 (_initialize_record): Add the "record function-call-history" command.
10516 Add "set/show record function-call-history-size" commands.
10517 * record.h (record_print_flag): New.
10518
67c86d06
MM
105192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10520
10521 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10522 to_insn_history_range>: New fields.
10523 (target_insn_history): New.
10524 (target_insn_history_from): New.
10525 (target_insn_history_range): New.
10526 * target.c (target_insn_history): New.
10527 (target_insn_history_from): New.
10528 (target_insn_history_range): New.
10529 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10530 (record_insn_history_size): New.
10531 (get_insn_number): New.
10532 (get_context_size): New.
10533 (no_chunk): New.
10534 (get_insn_history_modifiers): New.
10535 (cmd_record_insn_history): New.
10536 (_initialize_record): Add "set/show record instruction-history-size"
10537 command. Add "record instruction-history" command.
10538
7c1687a9
MM
105392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10540
10541 * record.h (record_disconnect): New.
10542 (record_detach): New.
10543 (record_mourn_inferior): New.
10544 (record_kill): New.
10545 * record-full.c (record_disconnect, record_detach,
10546 record_mourn_inferior, record_kill): Move to...
10547 * record.c: ...here.
10548 (DEBUG): New.
10549 (record_stop): New.
10550 (record_unpush): New.
10551 (cmd_record_stop): Call record_stop. Replace unpush_target
10552 call with record_unpush call.
10553 (record_disconnect, record_detach): Assert that the target
10554 is of record stratum. Call record_unpush, record_stop, and
10555 DEBUG.
10556 (record_mourn_inferior, record_kill): Assert that the target
10557 is of record stratum. Call record_unpush and DEBUG.
10558
25ea693b
MM
105592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10560
10561 * record-full.h, record-full.c (record_memory_query): Rename
10562 to ...
10563 (record_full_memory_query): ...this. Update all users.
10564 (record_arch_list_add_reg): Rename to ...
10565 (record_full_arch_list_add_reg): ...this. Update all users.
10566 (record_arch_list_add_mem): Rename to ...
10567 (record_full_arch_list_add_mem): ...this. Update all users.
10568 (record_arch_list_add_end): Rename to ...
10569 (record_full_arch_list_add_end): ...this. Update all users.
10570 (record_gdb_operation_disable_set): Rename to ...
10571 (record_full_gdb_operation_disable_set): ...this.
10572 Update all users.
10573
88d1aa9d
MM
105742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10575
10576 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10577 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10578 (RECORD_IS_REPLAY): Renamed to ...
10579 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10580 (RECORD_FILE_MAGIC): Renamed to ...
10581 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10582 (record_mem_entry): Renamed to ...
10583 (record_full_mem_entry): ... this. Updated all users.
10584 (record_reg_entry): Renamed to ...
10585 (record_full_reg_entry): ... this. Updated all users.
10586 (record_end_entry): Renamed to ...
10587 (record_full_end_entry): ... this. Updated all users.
10588 (record_type) <record_end, record_reg, record_mem>: Renamed
10589 to ...
10590 (record_full_type) <record_full_end, record_full_reg,
10591 record_full_mem>: ... this. Updated all users.
10592 (record_entry): Renamed to ...
10593 (record_full_entry): ... this. Updated all users.
10594 (record_core_buf_entry): Renamed to ...
10595 (record_full_core_buf_entry): ... this. Updated all users.
10596 (record_core_regbuf): Renamed to ...
10597 (record_full_core_regbuf): ... this. Updated all users.
10598 (record_core_start): Renamed to ...
10599 (record_full_core_start): ... this. Updated all users.
10600 (record_core_end): Renamed to ...
10601 (record_full_core_end): ... this. Updated all users.
10602 (record_core_buf_list): Renamed to ...
10603 (record_full_core_buf_list): ... this. Updated all users.
10604 (record_first): Renamed to ...
10605 (record_full_first): ... this. Updated all users.
10606 (record_list): Renamed to ...
10607 (record_full_list): ... this. Updated all users.
10608 (record_arch_list_head): Renamed to ...
10609 (record_full_arch_list_head): ... this. Updated all users.
10610 (record_arch_list_tail): Renamed to ...
10611 (record_full_arch_list_tail): ... this. Updated all users.
10612 (record_stop_at_limit): Renamed to ...
10613 (record_full_stop_at_limit): ... this. Updated all users.
10614 (record_insn_max_num): Renamed to ...
10615 (record_full_insn_max_num): ... this. Updated all users.
10616 (record_insn_num): Renamed to ...
10617 (record_full_insn_num): ... this. Updated all users.
10618 (record_insn_count): Renamed to ...
10619 (record_full_insn_count): ... this. Updated all users.
10620 (record_ops): Renamed to ...
10621 (record_full_ops): ... this. Updated all users.
10622 (record_core_ops): Renamed to ...
10623 (record_full_core_ops): ... this. Updated all users.
10624 (set_record_cmdlist): Renamed to ...
10625 (set_record_full_cmdlist): ... this. Updated all users.
10626 (show_record_cmdlist): Renamed to ...
10627 (show_record_full_cmdlist): ... this. Updated all users.
10628 (record_cmdlist): Renamed to ...
10629 (record_full_cmdlist): ... this. Updated all users.
10630 (record_beneath_to_resume_ops): Renamed to ...
10631 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10632 (record_beneath_to_resume): Renamed to ...
10633 (record_full_beneath_to_resume): ... this. Updated all users.
10634 (record_beneath_to_wait_ops): Renamed to ...
10635 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10636 (record_beneath_to_wait): Renamed to ...
10637 (record_full_beneath_to_wait): ... this. Updated all users.
10638 (record_beneath_to_store_registers_ops): Renamed to ...
10639 (record_full_beneath_to_store_registers_ops): ... this.
10640 Updated all users.
10641 (record_beneath_to_store_registers): Renamed to ...
10642 (record_full_beneath_to_store_registers): ... this.
10643 Updated all users.
10644 (record_beneath_to_xfer_partial_ops): Renamed to ...
10645 (record_full_beneath_to_xfer_partial_ops): ... this.
10646 Updated all users.
10647 (record_beneath_to_xfer_partial): Renamed to ...
10648 (record_full_beneath_to_xfer_partial): ... this.
10649 Updated all users.
10650 (record_beneath_to_insert_breakpoint): Renamed to ...
10651 (record_full_beneath_to_insert_breakpoint): ... this.
10652 Updated all users.
10653 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10654 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10655 Updated all users.
10656 (record_beneath_to_stopped_data_address): Renamed to ...
10657 (record_full_beneath_to_stopped_data_address): ... this.
10658 Updated all users.
10659 (record_beneath_to_async): Renamed to ...
10660 (record_full_beneath_to_async): ... this. Updated all users.
10661 (record_goto_insn): Renamed to ...
10662 (record_full_goto_insn): ... this. Updated all users.
10663 (record_save): Renamed to ...
10664 (record_full_save): ... this. Updated all users.
10665 (record_reg_alloc): Renamed to ...
10666 (record_full_reg_alloc): ... this. Updated all users.
10667 (record_reg_release): Renamed to ...
10668 (record_full_reg_release): ... this. Updated all users.
10669 (record_mem_alloc): Renamed to ...
10670 (record_full_mem_alloc): ... this. Updated all users.
10671 (record_mem_release): Renamed to ...
10672 (record_full_mem_release): ... this. Updated all users.
10673 (record_end_alloc): Renamed to ...
10674 (record_full_end_alloc): ... this. Updated all users.
10675 (record_end_release): Renamed to ...
10676 (record_full_end_release): ... this. Updated all users.
10677 (record_entry_release): Renamed to ...
10678 (record_full_entry_release): ... this. Updated all users.
10679 (record_list_release): Renamed to ...
10680 (record_full_list_release): ... this. Updated all users.
10681 (record_list_release_following): Renamed to ...
10682 (record_full_list_release_following): ... this.
10683 Updated all users.
10684 (record_list_release_first): Renamed to ...
10685 (record_full_list_release_first): ... this. Updated all users.
10686 (record_arch_list_add): Renamed to ...
10687 (record_full_arch_list_add): ... this. Updated all users.
10688 (record_get_loc): Renamed to ...
10689 (record_full_get_loc): ... this. Updated all users.
10690 (record_check_insn_num): Renamed to ...
10691 (record_full_check_insn_num): ... this. Updated all users.
10692 (record_arch_list_cleanups): Renamed to ...
10693 (record_full_arch_list_cleanups): ... this. Updated all users.
10694 (record_message): Renamed to ...
10695 (record_full_message): ... this. Updated all users.
10696 (record_message_wrapper): Renamed to ...
10697 (record_full_message_wrapper): ... this. Updated all users.
10698 (record_message_wrapper_safe): Renamed to ...
10699 (record_full_message_wrapper_safe): ... this. Updated all users.
10700 (record_gdb_operation_disable): Renamed to ...
10701 (record_full_gdb_operation_disable): ... this. Updated all users.
10702 (record_hw_watchpoint): Renamed to ...
10703 (record_full_hw_watchpoint): ... this. Updated all users.
10704 (record_exec_insn): Renamed to ...
10705 (record_full_exec_insn): ... this. Updated all users.
10706 (record_restore): Renamed to ...
10707 (record_full_restore): ... this. Updated all users.
10708 (record_async_inferior_event_token): Renamed to ...
10709 (record_full_async_inferior_event_token): ... this.
10710 Updated all users.
10711 (record_async_inferior_event_handler): Renamed to ...
10712 (record_full_async_inferior_event_handler): ... this.
10713 Updated all users.
10714 (record_core_open_1): Renamed to ...
10715 (record_full_core_open_1): ... this. Updated all users.
10716 (record_open_1): Renamed to ...
10717 (record_full_open_1): ... this. Updated all users.
10718 (record_open): Renamed to ...
10719 (record_full_open): ... this. Updated all users.
10720 (record_close): Renamed to ...
10721 (record_full_close): ... this. Updated all users.
10722 (record_resume_step): Renamed to ...
10723 (record_full_resume_step): ... this. Updated all users.
10724 (record_resumed): Renamed to ...
10725 (record_full_resumed): ... this. Updated all users.
10726 (record_execution_dir): Renamed to ...
10727 (record_full_execution_dir): ... this. Updated all users.
10728 (record_resume): Renamed to ...
10729 (record_full_resume): ... this. Updated all users.
10730 (record_get_sig): Renamed to ...
10731 (record_full_get_sig): ... this. Updated all users.
10732 (record_sig_handler): Renamed to ...
10733 (record_full_sig_handler): ... this. Updated all users.
10734 (record_wait_cleanups): Renamed to ...
10735 (record_full_wait_cleanups): ... this. Updated all users.
10736 (record_wait_1): Renamed to ...
10737 (record_full_wait_1): ... this. Updated all users.
10738 (record_wait): Renamed to ...
10739 (record_full_wait): ... this. Updated all users.
10740 (record_stopped_by_watchpoint): Renamed to ...
10741 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10742 (record_disconnect): Renamed to ...
10743 (record_full_disconnect): ... this. Updated all users.
10744 (record_detach): Renamed to ...
10745 (record_full_detach): ... this. Updated all users.
10746 (record_mourn_inferior): Renamed to ...
10747 (record_full_mourn_inferior): ... this. Updated all users.
10748 (record_kill): Renamed to ...
10749 (record_full_kill): ... this. Updated all users.
10750 (record_stopped_data_address): Renamed to ...
10751 (record_full_stopped_data_address): ... this. Updated all users.
10752 (record_registers_change): Renamed to ...
10753 (record_full_registers_change): ... this. Updated all users.
10754 (record_store_registers): Renamed to ...
10755 (record_full_store_registers): ... this. Updated all users.
10756 (record_xfer_partial): Renamed to ...
10757 (record_full_xfer_partial): ... this. Updated all users.
10758 (record_breakpoint): Renamed to ...
10759 (record_full_breakpoint): ... this. Updated all users.
10760 (record_breakpoint_p): Renamed to ...
10761 (record_full_breakpoint_p): ... this. Updated all users.
10762 (record_breakpoints): Renamed to ...
10763 (record_full_breakpoints): ... this. Updated all users.
10764 (record_sync_record_breakpoints): Renamed to ...
10765 (record_full_sync_record_breakpoints): ... this.
10766 Updated all users.
10767 (record_init_record_breakpoints): Renamed to ...
10768 (record_full_init_record_breakpoints): ... this.
10769 Updated all users.
10770 (record_insert_breakpoint): Renamed to ...
10771 (record_full_insert_breakpoint): ... this. Updated all users.
10772 (record_remove_breakpoint): Renamed to ...
10773 (record_full_remove_breakpoint): ... this. Updated all users.
10774 (record_can_execute_reverse): Renamed to ...
10775 (record_full_can_execute_reverse): ... this. Updated all users.
10776 (record_get_bookmark): Renamed to ...
10777 (record_full_get_bookmark): ... this. Updated all users.
10778 (record_goto_bookmark): Renamed to ...
10779 (record_full_goto_bookmark): ... this. Updated all users.
10780 (record_async): Renamed to ...
10781 (record_full_async): ... this. Updated all users.
10782 (record_can_async_p): Renamed to ...
10783 (record_full_can_async_p): ... this. Updated all users.
10784 (record_is_async_p): Renamed to ...
10785 (record_full_is_async_p): ... this. Updated all users.
10786 (record_execution_direction): Renamed to ...
10787 (record_full_execution_direction): ... this. Updated all users.
10788 (record_info): Renamed to ...
10789 (record_full_info): ... this. Updated all users.
10790 (record_delete): Renamed to ...
10791 (record_full_delete): ... this. Updated all users.
10792 (record_is_replaying): Renamed to ...
10793 (record_full_is_replaying): ... this. Updated all users.
10794 (record_goto_entry): Renamed to ...
10795 (record_full_goto_entry): ... this. Updated all users.
10796 (record_goto_begin): Renamed to ...
10797 (record_full_goto_begin): ... this. Updated all users.
10798 (record_goto_end): Renamed to ...
10799 (record_full_goto_end): ... this. Updated all users.
10800 (record_goto): Renamed to ...
10801 (record_full_goto): ... this. Updated all users.
10802 (init_record_ops): Renamed to ...
10803 (init_record_full_ops): ... this. Updated all users.
10804 (record_core_resume): Renamed to ...
10805 (record_full_core_resume): ... this. Updated all users.
10806 (record_core_kill): Renamed to ...
10807 (record_full_core_kill): ... this. Updated all users.
10808 (record_core_fetch_registers): Renamed to ...
10809 (record_full_core_fetch_registers): ... this. Updated all users.
10810 (record_core_prepare_to_store): Renamed to ...
10811 (record_full_core_prepare_to_store): ... this. Updated all users.
10812 (record_core_store_registers): Renamed to ...
10813 (record_full_core_store_registers): ... this. Updated all users.
10814 (record_core_xfer_partial): Renamed to ...
10815 (record_full_core_xfer_partial): ... this. Updated all users.
10816 (record_core_insert_breakpoint): Renamed to ...
10817 (record_full_core_insert_breakpoint): ... this. Updated all users.
10818 (record_core_remove_breakpoint): Renamed to ...
10819 (record_full_core_remove_breakpoint): ... this. Updated all users.
10820 (record_core_has_execution): Renamed to ...
10821 (record_full_core_has_execution): ... this. Updated all users.
10822 (init_record_core_ops): Renamed to ...
10823 (init_record_full_core_ops): ... this. Updated all users.
10824 (cmd_record_restore): Renamed to ...
10825 (cmd_record_full_restore): ... this. Updated all users.
10826 (record_save_cleanups): Renamed to ...
10827 (record_full_save_cleanups): ... this. Updated all users.
10828 (cmd_record_start): Renamed to ...
10829 (cmd_record_full_start): ... this. Updated all users.
10830 (set_record_insn_max_num): Renamed to ...
10831 (set_record_full_insn_max_num): ... this. Updated all users.
10832 (set_record_command): Renamed to ...
10833 (set_record_full_command): ... this. Updated all users.
10834 (show_record_command): Renamed to ...
10835 (show_record_full_command): ... this. Updated all users.
10836 (_initialize_record): Renamed to ...
10837 (_initialize_record_full): ... this. Updated all users.
10838
d02ed0bb
MM
108392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10840
10841 * record.h: Split into this and ...
10842 * record-full.h: ... this.
10843 * record.c: Split into this and ...
10844 * record-full.c: ... this.
10845 * target.h (target_ops): Add new fields to_info_record,
10846 to_save_record, to_delete_record, to_record_is_replaying,
10847 to_goto_record_begin, to_goto_record_end, to_goto_record.
10848 (target_info_record): New.
10849 (target_save_record): New.
10850 (target_supports_delete_record): New.
10851 (target_delete_record): New.
10852 (target_record_is_replaying): New.
10853 (target_goto_record_begin): New.
10854 (target_goto_record_end): New.
10855 (target_goto_record): New.
10856 * target.c (target_info_record): New.
10857 (target_save_record): New.
10858 (target_supports_delete_record): New.
10859 (target_delete_record): New.
10860 (target_record_is_replaying): New.
10861 (target_goto_record_begin): New.
10862 (target_goto_record_end): New.
10863 (target_goto_record): New.
10864 * record.h: Declare struct cmd_list_element.
10865 (record_cmdlist): New declaration.
10866 (set_record_cmdlist): New declaration.
10867 (show_record_cmdlist): New declaration.
10868 (info_record_cmdlist): New declaration.
10869 (cmd_record_goto): New declaration.
10870 * record.c: Remove unnecessary includes.
10871 Include inferior.h.
10872 (cmd_record_goto): Remove declaration.
10873 (record_cmdlist): Now extern. Initialize.
10874 (set_record_cmdlist): Now extern. Initialize.
10875 (show_record_cmdlist): Now extern. Initialize.
10876 (info_record_cmdlist): Now extern. Initialize.
10877 (find_record_target): New.
10878 (require_record_target): New.
10879 (cmd_record_start): Update.
10880 (cmd_record_delete): Remove target-specific code.
10881 Call target_delete_record.
10882 (cmd_record_stop): Unpush any record target.
10883 (set_record_insn_max_num): Move to record-full.c
10884 (set_record_command): Add comment.
10885 (show_record_command): Add comment.
10886 (info_record_command): Update comment.
10887 Remove target-specific code.
10888 Call the record target's to_info_record.
10889 (cmd_record_start): New.
10890 (cmd_record_goto): Now extern.
10891 Remove target-specific code.
10892 Call target_goto_begin, target_goto_end, or target_goto.
10893 (_initialize_record): Move record target ops initialization to
10894 record-full.c.
10895 Change "record" command help text.
10896 Move "record restore", "record set", and "record show" commands to
10897 record-full.c.
10898 * Makefile.in (SFILES): Add record-full.c.
10899 (HFILES_NO_SRCDIR): Add record-full.h.
10900 (COMMON_OBS): Add record-full.o.
10901 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10902 * arm-tdep.c: Include record-full.h.
10903 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10904 * i386-tdep.c: Include record-full.h.
10905 * infrun.c: Include record-full.h.
10906 * linux-record.c: Include record-full.h.
10907 * moxie-tdep.c: Include record-full.h.
10908 * record-full.c: Include record-full.h.
10909 Change module comment.
10910 (set_record_full_cmdlist): New.
10911 (show_record_full_cmdlist): New.
10912 (record_full_cmdlist): New.
10913 (record_goto_insn): New declaration.
10914 (record_save): New declaration.
10915 (record_check_insn_num): Change query string.
10916 (record_info): New.
10917 (record_delete): New.
10918 (record_is_replaying): New.
10919 (record_goto_entry): New.
10920 (record_goto_begin): New.
10921 (record_goto_end): New.
10922 (record_goto): New.
10923 (init_record_ops): Update.
10924 (init_record_core_ops): Update.
10925 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10926 (cmd_record_start): New.
10927 (set_record_insn_max_num): Moved from record.c
10928 (set_record_full_command): New.
10929 (show_record_full_command): New.
10930 (_initialize_record_full): New.
10931
b48d48eb
MM
109322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10933
10934 * target.h (add_deprecated_target_alias): New.
10935 * target.c (add_deprecated_target_alias): New.
10936
a950d57c
MM
109372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10938
10939 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10940 and signal.h.
10941 (linux_supports_btrace): Add kernel and
10942 cpuid check.
10943 (kernel_supports_btrace): New function.
10944 (cpu_supports_btrace): New function.
10945 (intel_supports_btrace): New function.
10946
9accd112
MM
109472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10948
10949 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10950 * remote.c: Include btrace.h.
10951 (struct btrace_target_info): New struct.
10952 (remote_supports_btrace): New function.
10953 (send_Qbtrace): New function.
10954 (remote_enable_btrace): New function.
10955 (remote_disable_btrace): New function.
10956 (remote_teardown_btrace): New function.
10957 (remote_read_btrace): New function.
10958 (init_remote_ops): Add btrace ops.
10959 (enum <unnamed>): Add btrace packets.
10960 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10961 (_initialize_remote): Add packet configuration for branch tracing.
10962
c12a2917
MM
109632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10964
10965 * features/btrace.dtd: New file.
10966 * Makefile.in (XMLFILES): Add btrace.dtd.
10967 * btrace.h (parse_xml_btrace): New declaration.
10968 * btrace.c: Include xml-support.h.
10969 (parse_xml_btrace): New function.
10970 (parse_xml_btrace_block): New function.
10971 (block_attributes): New struct.
10972 (btrace_attributes): New struct.
10973 (btrace_children): New struct.
10974 (btrace_elements): New struct.
10975
3e3aea48
MM
109762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10977
10978 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10979 (amd64_linux_enable_btrace): New.
10980 (amd64_linux_disable_btrace): New.
10981 (amd64_linux_teardown_btrace): New.
10982 (_initialize_amd64_linux_nat): Initialize btrace ops.
10983 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10984 (i386_linux_enable_btrace): New.
10985 (i386_linux_disable_btrace): New.
10986 (i386_linux_teardown_btrace): New.
10987 (_initialize_i386_linux_nat): Initialize btrace ops.
10988 * config/i386/linux.mh: Add linux-btrace.o.
10989 * config/i386/linux64.mh: Add linux-btrace.o.
10990
7c97f91e
MM
109912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10992
10993 * common/linux_btrace.h: New file.
10994 * common/linux_btrace.c: New file.
10995 * Makefile.in (SFILES): Add btrace.c.
10996 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10997 (COMMON_OBS): Add btrace.o.
10998 (linux-btrace.o): New rule.
10999
1999790b 110002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
11001
11002 * target.h: Include btrace.h.
11003 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11004 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11005 * target.c (target_supports_btrace): New function.
11006 (target_enable_btrace): New function.
11007 (target_disable_btrace): New function.
11008 (target_teardown_btrace): New function.
11009 (target_read_btrace): New function.
11010 * btrace.h: New file.
11011 * btrace.c: New file.
11012 * Makefile.in: Add btrace.c.
11013 * gdbthread.h: Include btrace.h.
11014 (struct thread_info): Add btrace field.
11015 * thread.c: Include btrace.h.
11016 (clear_thread_inferior_resources): Call target_teardown_btrace.
11017 * common/btrace-common.h: New file.
11018
61a31a67
JK
110192013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11022 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11023 kill_status to outer block.
11024
05c56a9d
JK
110252013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11026
11027 Fix entry-values if the callee called a noreturn function.
11028 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11029 get_frame_address_in_block. Add new comment.
11030
9112db09
JK
110312013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11032
11033 Fix entry-values in C++ across CUs.
11034 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11035 lookup_minimal_symbol. Add a comment.
11036 * dwarf2read.c
11037 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11038 DW_AT_linkage_name.
11039
9b67fcec
YQ
110402013-03-08 Yao Qi <yao@codesourcery.com>
11041
11042 * tracepoint.c (_initialize_tracepoint): Indent the code.
11043
6221be90
PA
110442013-03-08 Pedro Alves <palves@redhat.com>
11045
11046 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11047 (parse_find_args, find_command): Change type of pattern buffer
11048 locals to 'gdb_byte *'.
11049
be9a119c 110502013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11051 Hafiz Abid Qadeer <abidh@codesourcery.com>
11052
11053 * NEWS: Mention set and show trace-buffer-size commands.
11054 Mention new packet.
11055 * target.h (struct target_ops): New method
11056 to_set_trace_buffer_size.
11057 (target_set_trace_buffer_size): New macro.
11058 * target.c (update_current_target): Set up new method.
11059 * tracepoint.c (trace_buffer_size): New global.
11060 (start_tracing): Send it to the target.
11061 (set_trace_buffer_size): New function.
11062 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11063 * remote.c (remote_set_trace_buffer_size): New function.
11064 (_initialize_remote): Use it.
11065 (QTBuffer:size) New remote command.
11066 (PACKET_QTBuffer_size): New enum.
11067 (remote_protocol_features): Add an entry for
11068 PACKET_QTBuffer_size.
11069
7da3ab79
TT
110702013-03-08 Tom Tromey <tromey@redhat.com>
11071
11072 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11073 variable.
11074
0c1f71e7
PA
110752013-03-07 Pedro Alves <palves@redhat.com>
11076
11077 * target.c (target_read_stralloc, target_fileio_read_alloc):
11078 *Cast pointer to 'gdb_byte *' in target call.
11079
c8af03a2
PA
110802013-03-07 Pedro Alves <palves@redhat.com>
11081
11082 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11083 call.
11084
529480d0
KS
110852013-03-07 Keith Seitz <keiths@redhat.com>
11086
11087 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11088 (trace_pass_command): Likewise.
11089 * cli/cli-cmds.c: Include cli/cli-utils.h.
11090 (source_command): Use skip-spaces.
11091 (disassemble_command): Likewise.
11092 * findcmd.c: Include cli/cli-utils.h.
11093 (parse_find_args): Use skip_spaces.
11094 * go32-nat.c: Include cli/cli-utils.h.
11095 (go32_sldt): Use skip_spaces.
11096 (go32_sgdt): Likewise.
11097 (go32_sidt): Likewise.
11098 (go32_pde): Likewise.
11099 (go32_pte): Likewise.
11100 (go32_pte_for_address): Likewise.
11101 * infcmd.c: Include cli/cli-utils.h.
11102 (registers_info): Use skip_spaces.
11103 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11104 (linux_info_proc): Likewise.
11105 * linux-thread-db.c: Include cli/cli-utils.h.
11106 (info_auto_load_libthread_db): Use skip_spaces_const.
11107 * m32r-rom.c: Include cli/cli-utils.h.
11108 (m32r_upload_command): Use skip_spaces.
11109 * maint.c: Include cli/cli-utils.h.
11110 (maintenance_translate_address): Use skip_spaces.
11111 * mi/mi-parse.c: Include cli/cli-utils.h.
11112 (mi_parse_argv): Use skip_spaces.
11113 (mi_parse): Likewise.
11114 * minsyms.c: Include cli/cli-utils.h.
11115 (msymbol_hash_iw): Use skip_spaces_const.
11116 * objc-lang.c: Include cli/cli-utils.h.
11117 (parse_selector): Use skip_spaces.
11118 (parse_method): Likewise.
11119 * python/python.c: Include cli/cli-utils.h.
11120 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11121 (python_command)[HAVE_PYTHON]: Likewise.
11122 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11123 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11124 (m32r_load): Use skip_spaces.
11125 * serial.c: Include cli/cli-utils.h.
11126 (serial_open): Use skip_spaces_const.
11127 * stack.c: Include cli/cli-utils.h.
11128 (parse_frame_specification_1): Use skip_spaces_const.
11129 * symfile.c: Include cli/cli-utils.h.
11130 (set_ext_lang_command): Use skip_spaces.
11131 * symtab.c: Include cli/cli-utils.h.
11132 (rbreak_command): Use skip_spaces.
11133 * thread.c (thread_name_command): Use skip_spaces.
11134 * tracepoint.c (validate_actionline): Use skip_spaces.
11135 (encode_actions_1): Likewise.
11136 (trace_find_range_command): Likewise.
11137 (trace_find_outside_command): Likewise.
11138 (trace_dump_actions): Likewise.
11139
ac91cd70
PA
111402013-03-07 Pedro Alves <palves@redhat.com>
11141
11142 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11143 * expprint.c (print_subexp_standard): Likewise.
11144 * utils.c (host_char_to_target): Likewise.
11145 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11146 * varobj.c (value_get_print_value): Change type of local to char*.
11147 Cast it gdb_byte * in call to language printer.
11148
2898e560
PA
111492013-03-07 Pedro Alves <palves@redhat.com>
11150
11151 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11152 gdb_byte *'.
11153 (make_wchar_iterator): Remove cast to char*.
11154 (wchar_iterate): Change type of local.
11155
a09b4448
PA
111562013-03-07 Pedro Alves <palves@redhat.com>
11157
11158 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11159 for 'regcache->register_status'.
11160
20ced3e4
PA
111612013-03-07 Pedro Alves <palves@redhat.com>
11162
c2d6a675 11163 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
11164 int.
11165
fe106009
PA
111662013-03-07 Pedro Alves <palves@redhat.com>
11167
11168 * stap-probe.c (handle_stap_probe): Add cast to char*.
11169
8ac2c12b
PA
111702013-03-07 Pedro Alves <palves@redhat.com>
11171
11172 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11173 RECORD_MSGRCV>: Pass a signed variable to
11174 regcache_raw_read_signed, instead of an unsigned one.
11175
99f0a309
PA
111762013-03-07 Pedro Alves <palves@redhat.com>
11177
11178 * remote-notif.c (notif_debug): Change type to int.
11179 * remote-notif.h (notif_debug): Likewise.
11180
964b8317
PA
111812013-03-07 Pedro Alves <palves@redhat.com>
11182
11183 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11184
f0cc8ad4
PA
111852013-03-07 Pedro Alves <palves@redhat.com>
11186
11187 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11188 * remote.h (hex2bin, bin2hex): ... here.
11189 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11190
77dec115
EZ
111912013-03-07 Eli Zaretskii <eliz@gnu.org>
11192
11193 * utils.c (initialize_utils): Improve doc strings of "set/show
11194 width", "set/show height", and "set/show pagination".
11195
741d92cf
KS
111962013-03-06 Keith Seitz <keiths@redhat.com>
11197
11198 * ax-gdb.c (gen_printf): Make FORMAT const.
11199 * ax-gdb.h (gen_printf): Likewise.
11200 * ax-general.c (ax_string): Make STR const.
11201 * ax.h (ax_string): Likewise.
11202
7b6c814e
DE
112032013-03-06 Doug Evans <dje@google.com>
11204
11205 * elfread.c (elf_symfile_read): Move debugging printf to more
11206 logical location.
11207
634334ab
PA
112082013-03-06 Pedro Alves <palves@redhat.com>
11209
11210 * python/py-utils.c (target_string_to_unicode): Delete function.
11211 * python/python-internal.h (target_string_to_unicode): Delete
11212 declaration.
11213
e482a1a7
PM
112142013-03-06 Pierre Muller <muller@sourceware.org>
11215
11216 * linespec.c (get_current_search_block): ARI fix, use (void)
11217 for empty parameter list.
11218
4eeaa230
DE
112192013-03-05 Doug Evans <dje@google.com>
11220
11221 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11222 of old ada_lookup_symbol_list. In !full_search case, don't
11223 search superblocks.
11224 (ada_lookup_symbol_list): Delete arg full_search, all callers
11225 updated. Call ada_lookup_symbol_list_worker.
11226 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11227 * ada-lang.h (ada_lookup_symbol_list): Update.
11228 * language.h (language_defn): Update comment for
11229 la_iterate_over_symbols.
11230 * linespec.c (iterate_over_file_blocks): New function.
11231 (iterate_over_all_matching_symtabs): Call it.
11232 (lookup_prefix_sym): Ditto.
11233 (get_current_search_block): New function.
11234 (get_search_block): Delete.
11235 (find_label_symbols): Call get_current_search_block.
11236 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11237 * symtab.c (iterate_over_symbols): Don't search superblocks.
11238
b69b1fb1
YQ
112392013-03-05 Yao Qi <yao@codesourcery.com>
11240
11241 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11242 parameter VAR's type from "unsigned int" to "int".
11243 * command.h (var_zuinteger_unlimited): Update its comments.
11244 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11245
3c095f49
CV
112462013-03-05 Corinna Vinschen <vinschen@redhat.de>
11247
11248 * NEWS: Mention new target x86_64-*-cygwin*.
11249
b5b0b0af
CV
112502013-03-05 Corinna Vinschen <vinschen@redhat.de>
11251
11252 * configure.host: Add x86_64-*-cygwin* as host.
11253 * configure.tgt: Add x86_64-*-cygwin* as target.
11254 * config/i386/cygwin64.mh: New file.
11255
f6f99966
JK
112562013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11257
11258 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11259
33f448b1
JK
112602013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11261
11262 * linespec.c (struct linespec_canonical_name): New.
11263 (struct linespec_state): Change canonical_names type to it.
11264 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11265 xrealloc element size. Initialize the different CANONICAL fields.
11266 (canonical_to_fullform): New.
11267 (filter_results): Use it. Add variables canonical, fullform and
11268 cleanup.
11269 (struct decode_line_2_item, decode_line_2_compare_items): New.
11270 (decode_line_2): Remove variables iter and item_names, add variables
11271 items and items_count. Modify the code for these new variables.
11272
feb14725
CV
112732013-03-04 Corinna Vinschen <vinschen@redhat.com>
11274
11275 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11276 calling do_cleanup.
11277
e83b17ba
HZ
112782013-03-04 Luis Machado <lgustavo@codesourcery.com>
11279
11280 * tracepoint.c (build_traceframe_info): Add code for byte order.
11281
a2d13a0d
KB
112822013-03-02 Kevin Buettner <kevinb@redhat.com>
11283
8dddcae8
KB
11284 * v850-tdep.c: (v850e2_register_name): Revise system register
11285 names to match current V850E2M architecture specifications.
11286 Update register number enum comments too.
f5aee5ee 11287
d79e58d8
JW
112882013-03-01 Jiong Wang <jiwang@tilera.com>
11289 Pedro Alves <palves@redhat.com>
11290
11291 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11292 to END_ADDR.
11293 (tilegx_skip_prologue): Limit prologue analysis to section end.
11294
c4be5165
JK
112952013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11296
11297 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11298 use it.
11299
e362b510
PA
113002013-03-01 Pedro Alves <palves@redhat.com>
11301
11302 Use gdb_byte for bytes from the program being debugged.
11303
11304 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11305 Change type of local 'buf' to gdb_byte.
11306 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11307 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11308 * cris-tdep.c (cris_sigcontext_addr)
11309 (cris_sigtramp_frame_unwind_cache): Likewise.
11310 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11311 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11312 Likewise.
11313 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11314 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11315 (hppa32_hpux_search_dummy_call_sequence)
11316 (hppa_hpux_supply_save_state): Likewise.
11317 * hppa-linux-tdep.c (insns_match_pattern)
11318 (hppa_linux_find_global_pointer): Likewise.
11319 * hppa-tdep.c (hppa_in_function_epilogue_p)
11320 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11321 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11322 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11323 (i386fbsd_collect_uthread): Likewise.
11324 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11325 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11326 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11327 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11328 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11329 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11330 (ia64_libunwind_frame_prev_register)
11331 (ia64_libunwind_sigtramp_frame_this_id)
11332 (ia64_find_global_pointer_from_dynamic_section)
11333 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11334 (ia64_unwind_pc): Likewise.
11335 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11336 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11337 (m68hc11_extract_return_value): Likewise.
11338 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11339 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11340 (mep_get_insn, mep_push_dummy_call): Likewise.
11341 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11342 (mips_linux_in_dynsym_stub): Likewise.
11343 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11344 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11345 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11346 to gdb_byte.
11347 * remote-mips.c (mips_set_register): Likewise.
11348 * remote-sim.c (gdbsim_fetch_register): Likewise.
11349 * score-tdep.c (score7_fetch_inst): Change type of parameter
11350 'memblock' and local 'buf' to gdb_byte.
11351 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11352 Change type of local 'buf' to gdb_byte. Adjust.
11353 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11354 to gdb_byte**.
11355 (score7_analyze_prologue): Change type of 'memblock' and
11356 'memblock_ptr' locals to gdb_byte*.
11357 * sh64-tdep.c (sh64_extract_return_value)
11358 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11359 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11360 * solib-pa64.c (pa64_solib_create_inferior_hook)
11361 (pa64_open_symbol_file_object): Remove local 'buf'.
11362 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11363 (som_open_symbol_file_object): Likewise.
11364 * solib-spu.c (spu_current_sos): Likewise.
11365 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11366 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11367 (spu_store_registers): Likewise.
11368 * target.c (debug_print_register): Likewise.
11369 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11370 * xstormy16-tdep.c (xstormy16_store_return_value)
11371 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11372 (xstormy16_find_jmp_table_entry): Likewise.
11373
75cc61ca 113742013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11375
11376 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11377 (tilegx_gdbarch_init): Install it.
11378
ddb08e9c
TT
113792013-02-28 Tom Tromey <tromey@redhat.com>
11380
11381 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11382 PyLong_Check.
11383
62d7fb51
DE
113842013-02-28 Doug Evans <dje@google.com>
11385
11386 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11387 * python/python.c (gdbpy_find_pc_line): Ditto.
11388
c4a9e8b4
TT
113892013-02-28 Tom Tromey <tromey@redhat.com>
11390
11391 * contrib/excheck.py: New file.
11392 * contrib/exsummary.py: New file.
11393 * contrib/gcc-with-excheck: New file.
11394
7f6a5dde
TT
113952013-02-28 Tom Tromey <tromey@redhat.com>
11396
11397 * python/python.c (gdbpy_print_stack): Call begin_line and
11398 fprintf_filtered inside TRY_CATCH.
11399
9e974e55
TT
114002013-02-28 Tom Tromey <tromey@redhat.com>
11401
11402 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11403 inside TRY_CATCH.
11404
dd5fa3e7
TT
114052013-02-28 Tom Tromey <tromey@redhat.com>
11406
11407 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11408 frame_object_to_frame_info inside TRY_CATCH.
11409
86a3263f
TT
114102013-02-28 Tom Tromey <tromey@redhat.com>
11411
11412 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11413 TRY_CATCH.
11414
81b52a3a
TT
114152013-02-28 Tom Tromey <tromey@redhat.com>
11416
11417 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11418
d50a0ce2
CV
114192013-02-27 Corinna Vinschen <vinschen@redhat.com>
11420
11421 * windows-nat.c: Throughout, fix format strings and casts of
11422 printf-like functions to avoid type related warnings on all
11423 platforms.
11424 (handle_output_debug_string): Fetch context information address
11425 from debug string using string_to_core_addr.
11426
e1f58301
JW
114272013-02-27 Jiong Wang <jiwang@tilera.com>
11428
11429 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11430 * regformats/reg-tilegx32.dat: New.
11431
4fcd89fc
JW
114322013-02-27 Jiong Wang <jiwang@tilera.com>
11433
11434 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11435
748d24e6
JW
114362013-02-27 Jiong Wang <jiwang@tilera.com>
11437
11438 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11439
6c8e944d
YQ
114402013-02-27 Yao Qi <yao@codesourcery.com>
11441 Pedro Alves <palves@redhat.com>
11442
11443 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11444 pc/tp/range/outside, look for the next trace frame instead of
11445 always starting from frame 0.
6c8e944d 11446
acd7db30
AG
114472013-02-26 Anthony Green <green@moxielogic.com>
11448
11449 * configure.tgt: Add support for moxie-*-rtems* target.
11450
025e6dce
PA
114512013-02-25 Pedro Alves <palves@redhat.com>
11452
11453 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11454 warning text.
11455
ca9c94ef
MR
114562013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11457
11458 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11459 if $fp is used as the virtual frame pointer.
11460
24c274a1
AM
114612013-02-23 Alan Modra <amodra@gmail.com>
11462
11463 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11464 symbol size.
11465 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11466 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11467 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11468 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11469
bfada189
JK
114702013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11471
11472 Code cleanup.
11473 * elfread.c (build_id_bfd_get): Make the return type const.
11474 (build_id_verify): Make the check parameter const.
11475 (build_id_to_debug_filename): Make the build_id parameter and variable
11476 data const.
11477 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11478
c0355132
AM
114792013-02-21 Alan Modra <amodra@gmail.com>
11480
11481 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11482
9f44fbc0
SCR
114832013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11484
11485 Add a new method 'disassemble' to gdb.Architecture class.
11486 * python/py-arch.c (archpy_disassmble): Implementation of the
11487 new method gdb.Architecture.disassemble.
11488 (arch_object_methods): Add entry for the new method.
11489
b74ea3eb
JW
114902013-02-20 Jiong Wang <jiwang@tilera.com>
11491
11492 * MAINTAINERS (Write After Approval): Add myself to the list.
11493
61a672f1
PA
114942013-02-19 Pedro Alves <palves@redhat.com>
11495
11496 Garbage collect 'struct monitor_ops'::load_routine.
11497
11498 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11499 * monitor.c (monitor_load): No longer call
11500 current_monitor->load_routine.
11501 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11502 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11503 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11504
40e397df
PA
115052013-02-19 Pedro Alves <palves@redhat.com>
11506
11507 PR gdb/15161
11508
11509 Harmonize with generic_load.
11510
11511 * monitor.c: Include "readline/readline.h".
11512 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11513 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11514 long/strtol for the 'load_offset' local. Error out if no argument
11515 is given or if too many arguments are given. Tilde expand the
11516 passed in file name.
11517
f698ca8e
KT
115182013-02-19 Kai Tietz <ktietz@redhat.com>
11519
11520 PR gdb/15161
11521 * symfile.c (load_section_data): Change type of load_offset
11522 to CORE_ADDR.
11523 (generic_load): User strtoulst instead of strtoul for conversion
11524 of load_offset.
11525
3361b059
WL
115262013-02-19 Jiong Wang <jiwang@tilera.com>
11527
11528 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11529 for return address, "lr" register, saved on stack.
11530 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11531 after we invoke tilegx_analyze_prologue.
11532
3e9d5130
WL
115332013-02-19 Jiong Wang <jiwang@tilera.com>
11534
bb1bcd86
WL
11535 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11536
3361b059 115372013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11538
b74ea3eb 11539 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11540
4aaf2503
WL
115412013-02-19 Jiong Wang <jiwang@tilera.com>
11542
b74ea3eb 11543 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11544 (tilegx_write_pc): New function.
11545 (tilegx_cannot_reference_register): Return zero if REGNO
11546 is TILEGX_FAULTNUM_REGNUM.
11547 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11548 (tilegx_register_name): Add handling of "faultnum" register.
11549 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11550 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11551 handling of TILEGX_FAULTNUM_REGNUM.
11552 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11553
bc23a956
WL
115542013-02-19 Jiong Wang <jiwang@tilera.com>
11555
11556 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11557 should be aligned to 64bit.
bc23a956 11558
42f45f1a
KT
115592013-02-19 Kai Tietz <ktietz@redhat.com>
11560
11561 * windows-nat.c (windows_xfer_memory): Fix debug-output
11562 for LLP64.
11563
6ce4c112
LL
115642013-02-19 Lei Liu <lei.liu2@windriver.com>
11565
11566 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11567 Don't check DSP register number if HAVE_DSP is not set.
11568
30e8ee25
AM
115692013-02-19 Alan Modra <amodra@gmail.com>
11570
11571 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11572 throughout file instead.
11573 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11574 Don't xmalloc return value.
11575 (build_id_verify): Similarly. Don't xfree.
11576 (build_id_to_debug_filename): Update.
11577 (find_separate_debug_file_by_buildid): Update, don't xfree.
11578
4c9ad8c2
TT
115792013-02-18 Tom Tromey <tromey@redhat.com>
11580
11581 PR gdb/15102:
11582 * dwarf2read.c (read_subrange_type): Use result of
11583 'check_typedef'.
11584
983dc440
YQ
115852013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11586
11587 * frame.c: Remove one extra white space after #include
11588 directive.
11589
7fb2b84a
JK
115902013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11591
11592 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11593
edceb2a9
JK
115942013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11595
11596 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11597 and dir commands into an if block.
11598
e81b7af8
TT
115992013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11600
11601 * python/py-breakpoint (struct pybp_code): Use int instead of
11602 enum type_code.
11603
f5911ea1
HAQ
116042013-02-15 Pedro Alves <pedro@codesourcery.com>
11605 Hafiz Abid Qadeer <abidh@codesourcery.com>
11606
11607 * NEWS: Mention new field "trace-file".
11608 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11609 (tfile_open): Record the trace file's filename in the trace
11610 status.
11611 (tfile_files_info): Mention the name of the trace file.
11612 Check the "filename" field explicitely.
11613 (trace_status_command): Explicitely check "filename" field.
11614 (trace_find_command): Ditto.
11615 (trace_find_pc_command): Ditto.
11616 (trace_find_tracepoint_command): Ditto.
11617 (trace_find_line_command): Ditto.
11618 (trace_find_range_command): Ditto.
11619 (trace_find_outside_command): Ditto.
11620 * tracepoint.h (struct trace_status) <from_file>: Rename it
11621 to "filename" and make it hold the trace file's filename
11622 instead of a boolean.
11623 * remote.c (remote_get_trace_status): Initialize "filename"
11624 field with NULL instead of 0.
11625
796cb314
YQ
116262013-02-15 Yao Qi <yao@codesourcery.com>
11627
11628 * remote.c: Fix a typo.
11629
42e79b1d
PM
116302013-02-14 Pierre Muller <muller@sourceware.org>
11631
11632 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11633
baea0dae
PA
116342013-02-14 Pedro Alves <palves@redhat.com>
11635
11636 * utils.c (savestring): Don't #undef it. Move function to
11637 common/common-utils.c.
11638 * common/common-utils.c: Include gdb_string.h.
11639 (savestring): Move here from utils.c.
11640 * common/common-utils.h (savestring): Declare.
11641
57c3b6ed
PA
116422013-02-14 Pedro Alves <palves@redhat.com>
11643
11644 * utils.c (savestring): Rename parameter 'size' to 'len'.
11645
d6c44983
YZ
116462013-02-14 Pedro Alves <palves@redhat.com>
11647 Yufeng Zhang <yufeng.zhang@arm.com>
11648
11649 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11650 (aarch64_inferior_data, struct aarch64_inferior_data):
11651 Delete.
11652 (struct aarch64_process_info): New.
11653 (aarch64_process_list): New global.
11654 (aarch64_find_process_pid, aarch64_add_process)
11655 (aarch64_process_info_get): New functions.
11656 (aarch64_inferior_data_get): Delete.
11657 (aarch64_process_info_get): New function.
11658 (aarch64_forget_process): New function.
11659 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11660 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11661 aarch64_get_debug_reg_state.
11662 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11663 instead of linux_nat_iterate_watchpoint_lwps.
11664 (aarch64_linux_new_fork): New function.
11665 (aarch64_linux_child_post_startup_inferior): Use
11666 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11667 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11668 (aarch64_linux_remove_hw_breakpoint)
11669 (aarch64_handle_aligned_watchpoint)
11670 (aarch64_handle_unaligned_watchpoint)
11671 (aarch64_linux_insert_watchpoint)
11672 (aarch64_linux_remove_watchpoint)
11673 (aarch64_linux_stopped_data_address): Adjust to pass the current
11674 process id to aarch64_debug_reg_state.
11675 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11676 linux_nat_new_fork hook, and aarch64_forget_process as
11677 linux_nat_forget_process hook; remove the call to
11678 register_inferior_data_with_cleanup.
11679
4819b3f8
PA
116802013-02-14 Pedro Alves <palves@redhat.com>
11681
11682 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11683 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11684 lval_memory.
11685
1773c82c
HAQ
116862013-02-14 Pedro Alves <pedro@codesourcery.com>
11687 Hafiz Abid Qadeer <abidh@codesourcery.com>
11688
11689 * tracepoint.h (validate_trace_state_variable_name): Declare.
11690 * tracepoint.c (validate_trace_state_variable_name): New.
11691 (trace_variable_command): Parse the trace state variable's name
11692 without using parse_expression. Do several validations.
11693 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11694 trace state variable's name with parse_expression. Validate it.
11695
53778a97
YQ
116962013-02-14 Yao Qi <yao@codesourcery.com>
11697
11698 * infcmd.c (breakpoint_proceeded): Remove it.
11699
7b3ae3a6
YQ
117002013-02-14 Yao Qi <yao@codesourcery.com>
11701
11702 * tracepoint.c (end_actions_pseudocommand): Make it static.
11703 (while_stepping_pseudocommand): Likewise.
11704 * tracepoint.h (end_actions_pseudocommand): Remove the
11705 declaration.
11706 (while_stepping_pseudocommand): Likewise.
11707
64580925
YQ
117082013-02-14 Yao Qi <yao@codesourcery.com>
11709
11710 * cli/cli-decode.c (help_cmd): Remove the declaration of
11711 "cmdlist".
11712 (help_all): Likewise.
11713
26cb8b7c
PA
117142013-02-13 Pedro Alves <palves@redhat.com>
11715
11716 * amd64-linux-nat.c (update_debug_registers_callback):
11717 Update comment.
11718 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11719 iterate_over_lwps.
11720 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11721 i386_debug_reg_state.
11722 (amd64_linux_new_fork): New function.
11723 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11724 linux_nat_new_fork hook, and i386_forget_process as
11725 linux_nat_forget_process hook.
11726 * i386-linux-nat.c (update_debug_registers_callback):
11727 Update comment.
a8256ea1 11728 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11729 iterate_over_lwps.
11730 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11731 i386_debug_reg_state.
11732 (i386_linux_new_fork): New function.
11733 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11734 linux_nat_new_fork hook, and i386_forget_process as
11735 linux_nat_forget_process hook.
11736 * i386-nat.c (i386_init_dregs): Delete.
11737 (i386_inferior_data, struct i386_inferior_data):
11738 Delete.
11739 (struct i386_process_info): New.
11740 (i386_process_list): New global.
11741 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11742 New functions.
11743 (i386_inferior_data_get): Delete.
11744 (i386_process_info_get): New function.
11745 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11746 (i386_forget_process): New function.
11747 (i386_cleanup_dregs): Rewrite.
11748 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11749 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11750 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11751 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11752 to i386_debug_reg_state.
11753 (i386_use_watchpoints): Don't register inferior data.
11754 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11755 adjust comment.
11756 (i386_forget_process): Declare.
11757 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11758 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11759 New static globals.
11760 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11761 (add_initial_lwp): New, factored out from ...
11762 (add_lwp): ... this. Don't check the number of lwps before
11763 calling linux_nat_new_thread.
11764 (linux_nat_iterate_watchpoint_lwps): Delete.
11765 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11766 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11767 forks and vforks.
11768 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11769 initial lwp.
11770 (linux_nat_kill, linux_nat_mourn_inferior): Call
11771 linux_nat_forget_process.
11772 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11773 (linux_nat_forget_process): New functions.
11774 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11775 type.
11776 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11777 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11778 types.
11779 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11780 (linux_nat_forget_process): New declarations.
11781
11782 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11783 (amd64fbsd_mourn_inferior): New function.
11784 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11785 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11786
5befea72
MS
117872013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11788
55015247
YQ
11789 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11790 Adding _().
5befea72 11791
1d3ffd6b
MS
117922013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11793
11794 * aarch64-linux-nat.c (debug_reg_change_callback)
11795 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11796 %s and phex().
11797
6eb04473
MS
117982013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11799
11800 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11801 with LONGEST.
11802
a016fc87
HAQ
118032013-02-13 Pedro Alves <palves@redhat.com>
11804 Hafiz Abid Qadeer <abidh@codesourcery.com>
11805
11806 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11807
e234dfaf
TT
118082013-02-12 Tom Tromey <tromey@redhat.com>
11809
11810 PR symtab/11464:
11811 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11812 NAME return.
11813 (classify_inner_name): Remove 'first_name' argument, add
11814 'context'. Remove unused variable.
11815 (yylex): Explicitly maintain the context type. Exit loop earlier
11816 if NAME result is seen.
11817
0b1afbb3
PA
118182013-02-12 Pedro Alves <palves@redhat.com>
11819
11820 * amd64-darwin-tdep.c: Add (C) after Copyright.
11821 * cli/cli-cmds.h: Ditto.
11822 * cli/cli-decode.c: Ditto.
11823 * cli/cli-decode.h: Ditto.
11824 * cli/cli-dump.c: Ditto.
11825 * cli/cli-dump.h: Ditto.
11826 * cli/cli-interp.c: Ditto.
11827 * cli/cli-logging.c: Ditto.
11828 * cli/cli-script.c: Ditto.
11829 * cli/cli-script.h: Ditto.
11830 * cli/cli-setshow.c: Ditto.
11831 * cli/cli-setshow.h: Ditto.
11832 * cli/cli-utils.c: Ditto.
11833 * cli/cli-utils.h: Ditto.
11834 * config/alpha/nm-osf3.h: Ditto.
11835 * config/djgpp/djconfig.sh: Ditto.
11836 * config/i386/nm-fbsd.h: Ditto.
11837 * config/i386/nm-i386gnu.h: Ditto.
11838 * config/nm-linux.h: Ditto.
11839 * config/nm-nto.h: Ditto.
11840 * config/rs6000/nm-rs6000.h: Ditto.
11841 * config/sparc/nm-sol2.h: Ditto.
11842 * darwin-nat-info.c: Ditto.
11843 * dfp.c: Ditto.
11844 * dfp.h: Ditto.
11845 * gdb-demangle.h: Ditto.
11846 * i386-darwin-nat.c: Ditto.
11847 * i386-darwin-tdep.c: Ditto.
11848 * linux-fork.h: Ditto.
11849 * m32c-tdep.c: Ditto.
11850 * microblaze-linux-tdep.c: Ditto.
11851 * microblaze-rom.c: Ditto.
11852 * microblaze-tdep.c: Ditto.
11853 * microblaze-tdep.h: Ditto.
11854 * mips-linux-tdep.h: Ditto.
11855 * ppc-ravenscar-thread.c: Ditto.
11856 * ppc-ravenscar-thread.h: Ditto.
11857 * prologue-value.c: Ditto.
11858 * prologue-value.h: Ditto.
11859 * ravenscar-thread.c: Ditto.
11860 * ravenscar-thread.h: Ditto.
11861 * sparc-ravenscar-thread.c: Ditto.
11862 * sparc-ravenscar-thread.h: Ditto.
11863 * tilegx-linux-tdep.c: Ditto.
11864 * unwind_stop_reasons.def: Ditto.
11865 * windows-nat.h: Ditto.
11866 * xtensa-linux-tdep.c: Ditto.
11867 * xtensa-xtregs.c: Ditto.
11868 * regformats/regdat.sh: Ditto.
11869 * regformats/regdef.h: Ditto.
11870
6c01dd94
PA
118712013-02-12 Pedro Alves <palves@redhat.com>
11872
11873 * break-catch-sig.c: Update copyright years.
11874
b65a2bd9
SCR
118752013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11876
11877 Add support for a destructor for ui_out data and use it to
11878 provide a ui_out destructor.
11879 * ui-out.h: Declare the new ui_out destructor.
11880 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11881 * ui-out.c (default_data_destroy): Add a default data destructor
11882 which does nothing.
11883 (default_ui_out_impl): Set the new data_destroy field to
11884 default_data_destroy
11885 (uo_data_destroy): Local function which invokes the data
11886 destructor if present.
11887 (clear_table): Local function which clears the table data of a
11888 ui_out object.
11889 (ui_out_destroy): Public function which frees a ui_out object.
11890 (ui_out_table_end): Use the new clear_table function.
11891 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11892 NULL.
11893 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11894 to NULL.
11895
c2792f5a
DE
118962013-02-11 Doug Evans <dje@google.com>
11897
11898 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11899 (printf_decfloat): New function. Broken out from ui_printf.
11900 Remove unnecessary code to shift the entire format string down.
11901 (printf_pointer): New function.
11902 (ui_printf): Code to print C strings, wide C strings, decfloats,
11903 and pointers moved to separate functions.
11904
d9e98382
SDJ
119052013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11906
11907 * valops.c (value_assign): Handling bitfield offset in
11908 `lval_internalvar_component' case.
11909
4ff3ce77
DE
119102013-02-08 Doug Evans <dje@google.com>
11911
11912 * common/format.c (parse_format_string): Fix whitespace.
11913
901900c4
MGD
119142013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11915
11916 * stack.c (return_command): Work around uninitialized variable
11917 warning.
11918
b5dbc8d4
YZ
119192013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11920
11921 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11922 number of the registers from 36 to 34.
11923
51d66578
MS
119242013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11925
11926 * NEWS: Mention new AArch64 native and target support.
11927
176b1c95
MS
119282013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11929
11930 * MAINTAINERS (Write After Approval): Add myself.
11931
9d19df75
MS
119322013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11933 Marcus Shawcroft <marcus.shawcroft@arm.com>
11934 Nigel Stephens <nigel.stephens@arm.com>
11935 Yufeng Zhang <yufeng.zhang@arm.com>
11936
11937 * aarch64-linux-nat.c: New file.
11938 * config/aarch64/linux.mh: New file.
11939 * configure.host: Add AArch64.
11940 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11941
7e1e0340
DE
119422013-02-07 Doug Evans <dje@google.com>
11943
11944 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11945 disassemble command.
11946
45e25a36
MS
119472013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11948
11949 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11950 set_gdbarch_fetch_tls_load_module_address.
11951
bbfdfe1c
DM
119522013-02-06 David S. Miller <davem@davemloft.net>
11953
11954 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11955 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11956 * value.c (struct_return_convention): New function.
11957 (using_struct_return): Implement in terms of struct_return_convention.
11958 * value.h (struct_return_convention): Declare.
11959 * stack.c (return_command): Allow successful overriding of the return
11960 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11961
bc9abe4a
TT
119622013-02-06 Tom Tromey <tromey@redhat.com>
11963
11964 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11965 outside of TRY_CATCH.
11966
134a2066
YQ
119672013-02-06 Yao Qi <yao@codesourcery.com>
11968
11969 * mi/mi-interp.c: Include "tracepoint.h".
11970 (mi_tsv_modified): Declare.
11971 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11972 (mi_interpreter_init): Call observer_attach_tsv_modified.
11973 (mi_tsv_modified): New.
11974 (mi_tsv_created, mi_tsv_deleted): Update.
11975 * tracepoint.c (trace_variable_command): Call
11976 observer_notify_tsv_modified if the initial value of tsv is
11977 changed.
11978 (delete_trace_state_variable): Call
11979 observer_notify_tsv_deleted earlier.
11980 (trace_variable_command): Caller update.
11981 (create_tsv_from_upload): Likewise.
11982 * observer.sh: Declare "struct trace_state_variable".
11983
11984 * NEWS: Mention the new MI notification "=tsv-modified".
11985
59be2b6a
DE
119862013-02-05 Doug Evans <dje@google.com>
11987
11988 * completer.c (location_completer): Fix typo in comment.
11989
d30113d4
JK
119902013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11991
11992 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11993 ADDRESS sorted.
11994
14ac654f
MS
119952013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11996
11997 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11998 Refactor if statement to avoid trailing || operator.
11999
543bf33d
AT
120002013-02-05 Andreas Tobler <andreast@fgznet.ch>
12001
12002 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12003
dc18f110
AT
120042013-02-04 Andreas Tobler <andreast@fgznet.ch>
12005
12006 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12007 * configure.host: Add powerpc*-*-freebsd* target.
12008 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12009 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12010 * config/powerpc/fbsd.mh: New file.
12011
b3ac9c77
SDJ
120122013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12013 Denys Vlasenko <dvlasenk@redhat.com>
12014 Pedro Alves <palves@redhat.com>
12015
12016 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12017 (struct elf_internal_linux_prpsinfo): Forward declare.
12018 * gdbarch.h, gdbarch.c: Regenerate.
12019 * linux-tdep.c: Include `cli/cli-utils.h'.
12020 (linux_fill_prpsinfo): New function.
12021 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12022 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12023 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12024 depending on gdbarch pointer bitness.
12025 * ppc-linux-tdep.c: Include elf-bfd.h.
12026 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12027 on 32-bit.
12028
176eb98c
MS
120292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12030 Marcus Shawcroft <marcus.shawcroft@arm.com>
12031 Nigel Stephens <nigel.stephens@arm.com>
12032 Yufeng Zhang <yufeng.zhang@arm.com>
12033
12034 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12035
cf0dbd6f
MS
120362013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12037 Marcus Shawcroft <marcus.shawcroft@arm.com>
12038 Nigel Stephens <nigel.stephens@arm.com>
12039 Yufeng Zhang <yufeng.zhang@arm.com>
12040
12041 * aarch64-newlib-tdep.c: New file.
12042 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12043 aarch64*-*-elf.
12044 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12045 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12046 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12047 * osabi.c (gdb_osabi_names): Add "Newlib".
12048
1ae3db19
MS
120492013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12050 Marcus Shawcroft <marcus.shawcroft@arm.com>
12051 Nigel Stephens <nigel.stephens@arm.com>
12052 Yufeng Zhang <yufeng.zhang@arm.com>
12053
12054 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12055 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12056 * aarch64-linux-tdep.c: New file.
12057 * aarch64-linux-tdep.h: New file.
12058 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12059 * configure.tgt: Add aarch64-none-linux-gnu.
12060
07b287a0
MS
120612013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12062 Marcus Shawcroft <marcus.shawcroft@arm.com>
12063 Nigel Stephens <nigel.stephens@arm.com>
12064 Yufeng Zhang <yufeng.zhang@arm.com>
12065
12066 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12067 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12068 (ALLDEPFILES): Add aarch64-tdep.c.
12069 * aarch64-tdep.c: New file.
12070 * aarch64-tdep.h: New file.
12071 * configure.tgt: Add AArch64.
12072 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12073 (aarch64-expedite): New definition.
12074 * features/aarch64-core.xml: New file.
12075 * features/aarch64-fpu.xml: New file.
12076 * features/aarch64-without-fpu.c: New file (generated).
12077 * features/aarch64-without-fpu.xml: New file.
12078 * features/aarch64.c: New file (generated).
12079 * features/aarch64.xml: New file.
12080 * regformats/aarch64-without-fpu.dat: New file (generated).
12081 * regformats/aarch64.dat: New file (generated).
12082
0f1b18ab
JK
120832013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12084
12085 * contrib/expect-read1.c: New file.
12086 * contrib/expect-read1.sh: New file.
12087
233d95b5
JK
120882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12089
12090 * dwarf2read.c (file_file_name): New function with code from
12091 file_full_name.
12092 (file_full_name): Move most of the code to file_file_name.
12093 (macro_start_file): Rename variable full_name to file_name and use
12094 file_file_name for it. Add comp_dir parameter to new_macro_table.
12095 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12096 macro_source_file->filename access by macro_source_fullname call.
12097 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12098 caller.
12099 * macrotab.c (struct macro_table): New field comp_dir.
12100 (macro_include): New variables link_fullname and source_fullname.
12101 Replace any macro_source_file->filename access by macro_source_fullname
12102 call.
12103 (macro_lookup_inclusion): Remove the partial filenames checking code.
12104 (check_for_redefinition): New variables source_fullname and
12105 found_key_fullname. Replace any macro_source_file->filename access by
12106 macro_source_fullname call.
12107 (macro_undef): New variables source_fullname and key_fullname. Replace
12108 any macro_source_file->filename access by macro_source_fullname call.
12109 (macro_lookup_definition): New variables retval and source_fullname.
12110 Replace any macro_source_file->filename access by macro_source_fullname
12111 call.
12112 (foreach_macro): New variable key_fullname. Replace any
12113 macro_source_file->filename access by macro_source_fullname call.
12114 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12115 macro_source_file->filename access by macro_source_fullname call.
12116 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12117 (macro_source_fullname): New function.
12118 * macrotab.h (struct macro_source_file): Extent the filename field
12119 comment.
12120 (new_macro_table): New parameter comp_dir, add a comment for it.
12121 (macro_source_fullname): new declaration.
12122
da235a7c
JK
121232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12124
12125 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12126 this_real_name to outer block. Use it also for
12127 compare_filenames_for_search.
12128 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12129 with dw2_get_real_path for file_matcher, considering also
12130 BASENAMES_MAY_DIFFER.
12131 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12132
fbd9ab74
JK
121332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12134
12135 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12136 to the file_matcher parameter. Pass 0 to it.
12137 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12138 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12139 NULL psymtab_to_fullname result.
12140 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12141 an expected filename instead.
12142 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12143 file_matcher parameter. Call also psymtab_to_fullname, after newly
12144 considering BASENAMES_MAY_DIFFER.
12145 * source.c (rewrite_source_path): Remove static.
12146 * source.h (rewrite_source_path): New declaration.
12147 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12148 the expand_symtabs_matching field. Comment it.
12149 * symtab.c (file_matches): New function comment. Add parameter
12150 basenames, implement it.
12151 (search_symbols_file_matches): Add basenames parameter. Update the
12152 file_matches caller.
12153 (search_symbols): Match FILES also against symtab_to_fullname.
12154 Optimize it for BASENAMES_MAY_DIFFER.
12155
56d397a3
JK
121562013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12157
12158 * source.c (print_source_lines_base): Print for TUI also "fullname".
12159 * tui/tui-data.c (init_content_element): Change tui_locator_element
12160 field to full_name.
12161 * tui/tui-data.h (struct tui_locator_element): Likewise.
12162 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12163 tui_update_locator_filename calls to tui_update_locator_fullname.
12164 Replace symtab->filename refererence by symtab_to_fullname call.
12165 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12166 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12167 field to full_name. Replace symtab->filename refererence by
12168 symtab_to_fullname call.
12169 (tui_show_symtab_source): Rename parameter to fullname. Change
12170 tui_locator_element field to full_name.
12171 * tui/tui-stack.c: Include source.h.
12172 (tui_set_locator_filename): Rename the declaration to ...
12173 (tui_set_locator_fullname): ... here. Rename its parameter to
12174 fullname, updates its comment.
12175 (tui_set_locator_info): Rename its parameter to fullname.
12176 (tui_set_locator_filename): Rename the definition to ...
12177 (tui_set_locator_fullname): ... here. Rename its parameter to
12178 fullname, updates its comment. Change tui_locator_element field to
12179 full_name.
12180 (tui_set_locator_info): Rename its parameter to fullname.
12181 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12182 (tui_update_locator_filename): Rename to ...
12183 (tui_update_locator_fullname): ... here. Rename callee to
12184 tui_set_locator_fullname.
12185 (tui_show_frame_info): Replace symtab->filename refererence by
12186 symtab_to_fullname call.
12187 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12188 (tui_update_locator_fullname): ... here.
12189 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12190 tui_update_locator_fullname. Replace symtab->filename refererence by
12191 symtab_to_fullname call.
12192 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12193 Rename the callee to tui_update_locator_fullname.
12194 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12195
05cba821
JK
121962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12197
12198 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12199 by symtab_to_filename_for_display calls.
12200 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12201 (clear_command): New variable sal_fullname, initialize it. Replace
12202 compare_filenames_for_search by filename_cmp with sal_fullname.
12203 (say_where, update_static_tracepoint): Replace symtab->filename
12204 refererences by symtab_to_filename_for_display calls.
12205 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12206 Likewise.
12207 * dwarf2read.c: Include source.h.
12208 (fixup_go_packaging): Replace symtab->filename refererences by
12209 symtab_to_filename_for_display calls.
12210 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12211 Replace symtab->filename refererences by symtab_to_filename_for_display
12212 calls.
12213 (create_sals_line_offset, convert_linespec_to_sals): New variable
12214 fullname, initialize it, replace symtab->filename reference by the
12215 variable.
12216 * linux-fork.c: Include source.h.
12217 (info_checkpoints_command): Replace symtab->filename refererences by
12218 symtab_to_filename_for_display calls.
12219 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12220 by symtab_to_filename_for_display calls.
12221 * mdebugread.c: Include source.h.
12222 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12223 symtab_to_filename_for_display calls.
12224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12225 (mi_cmd_file_list_exec_source_files): Likewise.
12226 * printcmd.c: Include source.h.
12227 (build_address_symbolic): Replace symtab->filename refererences by
12228 symtab_to_filename_for_display calls.
12229 * psymtab.c (partial_map_symtabs_matching_filename)
12230 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12231 with psymtab_to_fullname.
12232 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12233 by symtab_to_filename_for_display calls.
12234 (stpy_get_filename): New variable filename, initialize it, use instead
12235 of symtab->filename refererences.
12236 (salpy_str): Make variable filename const char *. Replace
12237 symtab->filename refererences by symtab_to_filename_for_display calls.
12238 * skip.c: Include source.h and filenames.h.
12239 (skip_file_command): Remove const from the symtab variable. Replace
12240 symtab->filename refererences by symtab_to_fullname call.
12241 (function_name_is_marked_for_skip): New variables searched_for_fullname
12242 and fullname. Use them to search also with symtab's fullname.
12243 * source.c (find_source_lines): Replace symtab->filename refererences
12244 by symtab_to_filename_for_display calls.
12245 (print_source_lines_base): New variable filename, use it instead of
12246 symtab->filename. Replace symtab->filename refererences by
12247 symtab_to_filename_for_display calls.
12248 (line_info, forward_search_command): Replace symtab->filename
12249 refererences by symtab_to_filename_for_display calls.
12250 (reverse_search_command): Replace symtab->filename refererences by
12251 symtab_to_filename_for_display calls. New variable filename for it.
12252 * stack.c (frame_info): Likewise.
12253 * symmisc.c: Include source.h.
12254 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12255 (maintenance_info_symtabs): Replace symtab->filename refererences by
12256 symtab_to_filename_for_display calls.
12257 * symtab.c (iterate_over_some_symtabs): Call
12258 compare_filenames_for_search also with symtab_to_fullname.
12259 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12260 symtab->filename refererences by symtab_to_filename_for_display calls.
12261 (find_line_symtab): Replace symtab->filename refererences by
12262 symtab_to_filename_for_display calls.
12263 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12264 (print_symbol_info): Make the last parameter const char *. New
12265 variable s_filename. Use it in the function.
12266 (symtab_symbol_info): Make the last_filename variable const char *.
12267 Replace symtab->filename refererences by symtab_to_filename_for_display
12268 calls.
12269 (rbreak_command): New variable fullname. Use it. Replace
12270 symtab->filename refererence by symtab_to_filename_for_display call.
12271 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12272 (print_one_static_tracepoint_marker): Replace symtab->filename
12273 refererences by symtab_to_filename_for_display calls.
12274 * tui/tui-source.c (tui_set_source_content): New variables filename and
12275 s_filename. Replace symtab->filename refererences by this variable.
12276 Replace other symtab->filename refererences by
12277 symtab_to_filename_for_display calls.
12278
1b56eb55
JK
122792013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12280 Jan Kratochvil <jan.kratochvil@redhat.com>
12281
12282 Add a new variable that controls a way in which filenames are
12283 displayed.
12284 * NEWS (set filename-display): New entry.
12285 * source.c (filename_display_basename, filename_display_relative)
12286 (filename_display_absolute, filename_display_kind_names)
12287 (filename_display_string, show_filename_display_string)
12288 (symtab_to_filename_for_display): New.
12289 (_initialize_source): Added initialization of 'filename-display'
12290 variable.
12291 * source.h (symtab_to_filename_for_display): Added declaration.
12292 * stack.c (print_frame): Added new variable and calling of a new
12293 function and condition with this variable. Changed third argument of
12294 calling of a function.
12295
aa079c93
JK
122962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12297
12298 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12299 Rename field reference filename to fullname.
12300 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12301 fullname. New comment for it.
12302 * tui/tui-source.c (tui_set_source_content): Rename field reference
12303 filename to fullname. Initialize field by symtab_to_fullname now.
12304 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12305 reference filename to fullname. Use symtab_to_fullname during
12306 comparison.
12307
652a8996
JK
123082013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12309
12310 Code cleanup.
12311 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12312 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12313 filename to fullname. Rename variable this_name to this_fullname.
12314 Lowercase FILENAME_CMP call.
12315 (dw2_find_symbol_file): New comment for the returned string.
12316 (dwarf2_gdb_index_functions): Rename the function to
12317 dw2_expand_symtabs_with_fullname.
12318 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12319 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12320 fullname.
12321 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12322 * symfile.h (struct quick_symbol_functions): Rename field
12323 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12324 parameter filename to fullname. Document returned string meaning for
12325 find_symbol_file.
12326 * symtab.c (find_line_symtab): Rename the called function to
12327 expand_symtabs_with_fullname.
12328
af529f8f
JK
123292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12330
12331 Code cleanup.
12332 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12333 call of filename_cmp with compare_filenames_for_search.
12334 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12335 is_abs, unify the call of FILENAME_CMP with
12336 compare_filenames_for_search. New gdb_asserts for real_path and name.
12337 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12338 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12339 * symfile.h (struct quick_symbol_functions): Extend the comment for
12340 map_symtabs_matching_filename.
12341 * symtab.c (compare_filenames_for_search): Remove the function comment
12342 relative path requirement. Handle absolute filenames, with a comment.
12343 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12344 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12345 real_path and name. Unify the call of compare_filenames_for_search
12346 with FILENAME_CMP.
12347 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12348
2f202fde
JK
123492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12350
12351 Code cleanup.
12352 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12353 source_file references by symtab field references. Remove variables
12354 sal and fullname.
12355 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12356 (clear_command, say_where): Replace bp_location field source_file
12357 references by symtab field references.
12358 (bp_location_dtor): Remove the source_file reference.
12359 (update_static_tracepoint): Replace bp_location field source_file
12360 references by symtab field references.
12361 (breakpoint_free_objfile): New function.
12362 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12363 Replace the field source_file by field symtab, extend its comment.
12364 (breakpoint_free_objfile): New declaration.
12365 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12366 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12367 field source_file references by symtab field references.
12368
f5b95b50
JK
123692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12370
12371 Replace xfullpath calls by gdb_realpath calls.
12372 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12373 function comment.
12374 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12375 Remove it from the iterate_over_some_symtabs call.
12376 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12377 Remove it from the dw2_map_expand_apply calls, remove a block handling
12378 it.
12379 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12380 Remove it from the iterate_over_some_symtabs call.
12381 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12382 Remove it from the partial_map_expand_apply calls, remove a block
12383 handling it. Drop gdb_realpath call and cleanups from the real_path
12384 handling.
12385 * source.c (openp): Drop the comment part about xfullpath. Replace
12386 xfullpath calls by gdb_realpath calls.
12387 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12388 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12389 from method map_symtabs_matching_filename and its comment.
12390 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12391 gdb_realpath call.
12392 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12393 remove it also from the function comment, remove a block handling it.
12394 Drop gdb_realpath call and cleanups from the real_path handling.
12395 (iterate_over_symtabs): Drop variable full_path and its use.
12396 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12397 * utils.c (xfullpath): Remove.
12398 * utils.h (xfullpath): Remove.
12399
d78489bf
AT
124002013-02-01 Andreas Tobler <andreast@fgznet.ch>
12401
12402 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12403 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12404 (ALLDEPFILES): Add ppc64-tdep.c.
12405 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12406 ppc64-tdep.o to gdb_target_obs.
12407 * ppc64-tdep.h: New file.
12408 * ppc64-tdep.c: New file.
12409 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12410 ppc-linux-tdep.c to here.
12411 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12412 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12413 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12414 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12415 from ppc-linux-tdep.c to here.
12416 (ppc64_convert_from_func_ptr_addr): Rename from
12417 ppc64_linux_convert_from_func_ptr_addr to
12418 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12419 here.
12420 * rs6000-tdep.c:
12421 (read_insn): Move from ppc-linux-tdep.c to here.
12422 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12423 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12424 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12425 Removed above functions.
12426 (ppc_linux_init_abi): Adjust.
12427
8db60374
AR
124282013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12429
12430 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12431
f2e5f4ce
AR
124322013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12433
12434 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12435
c1f7d745
PA
124362013-02-01 Pedro Alves <palves@redhat.com>
12437
12438 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12439 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12440
8a92335b
JK
124412013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12442
12443 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12444 files with no separate debug info.
12445 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12446 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12447 only for files with no separate debug info.
12448
8eacb197
TT
124492013-01-31 Tom Tromey <tromey@redhat.com>
12450
12451 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12452 change type.
12453 (struct jit_program_space_data): Rename from jit_inferior_data.
12454 Update comments.
12455 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12456 Change return type. Attach data to program space.
12457 (jit_program_space_data_cleanup): Rename from
12458 jit_inferior_data_cleanup; change argument type.
12459 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12460 change type.
12461 (jit_register_code): Update.
12462 (jit_update_inferior_cache): Remove.
12463 (jit_breakpoint_deleted): Get jit data from the location's program
12464 space.
12465 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12466 'ps_data', change type.
12467 (jit_inferior_init, jit_breakpoint_re_set_internal)
12468 (jit_event_handler): Update.
12469 (free_objfile_data): Get data from objfile's program space.
12470 (_initialize_jit): Update.
12471
f25c0135
TT
124722013-01-31 Tom Tromey <tromey@redhat.com>
12473
12474 PR gdb/13987:
12475 * jit.c (struct jit_inferior_data) <cached_code_address,
12476 jit_breakpoint>: New fields.
12477 (jit_breakpoint_re_set_internal): Fix logging. Only create
12478 breakpoint if cached address has changed.
12479 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12480 functions.
12481 (_initialize_jit): Register breakpoint deleted observer.
12482
974a734b
AR
124832013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12484
12485 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12486 (save_infcall_suspend_state): Ifdef out unused inf.
12487 (restore_infcall_suspend_state): Ifdef out unused inf.
12488 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12489 (jit_frame_sniffer): Remove unused inf_data.
12490
df54f8eb
AR
124912013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12492
12493 * c-exp.y (classify_inner_name): Remove unused type.
12494 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12495 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12496 need_escape.
12497 (c_get_string): Remove unused kind.
12498 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12499
5799c0b9
AR
125002013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12501
12502 * charset.c (intermediate_encoding): Remove unused i.
12503 * completer.c (signal_completer): Remove unused i.
12504 * continuations.c (discard_my_continuations_1): Remove unused
12505 continuation_ptr.
12506 * corelow.c (core_close): Remove unuseD name.
12507 (get_core_siginfo): Remove unused pid.
12508 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12509 i, cps.
12510 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12511 (loclist_describe_location): Remove unused first.
12512 * event-top.c (command_line_handler): Remove unused got_eof.
12513 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12514 (resize_section_table): Remove unused old_value.
12515 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12516 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12517 * i386-tdep.c (i386_process_record): Remove unused rex.
12518 * infcmd.c (get_return_value): Remove unused uiout.
12519 * jv-lang.c (type_from_class): Remove unused is_array.
12520 * jv-valprint.c (java_val_print): Remove unused i.
12521 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12522 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12523 * m2-typeprint.c (m2_print_type): Remove unused code.
12524 * macroexp.c (get_character_constant): Remove unused body_start.
12525 (macro_stringify): Remove unused result.
12526 * objc-lang.c (find_methods): Remove unused gdbarch.
12527 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12528 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12529 * stack.c (print_frame_args): Remove unused summary.
12530 * thread.c (thread_apply_command): Remove unused p.
12531 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12532 * valops.c (search_struct_method): Remove unused skip.
12533 * valprint.c (generic_val_print): Remove unused byte_order.
12534 * varobj.c (varobj_update): Remove unused changed.
12535 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12536 (alias_command): Remove unused c.
12537 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12538 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12539 format.
12540 (mi_cmd_data_write_memory): Remove unused word_format.
12541 (mi_cmd_data_write_memory_bytes): Remove unused r.
12542 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12543 p_start, p_end.
12544 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12545 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12546 line_width.
12547
c656bca5
AR
125482013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12549
12550 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12551 * symtab.c (iterate_over_symtabs): Remove unused s.
12552 (find_pc_sect_symtab): Remove unused pspAce.
12553 (find_pc_sect_line): Remove unused alt_symtab.
12554 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12555 (completion_list_add_name): Remove unused newsize.
12556
7078baeb
TT
125572013-01-31 Tom Tromey <tromey@redhat.com>
12558
12559 PR c++/14998:
12560 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12561 TYPE_CODE_FUNC.
12562
c2e8b827
AR
125632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12564
12565 * target.c (target_read_string): Remove unused origlen.
12566
0e43993a
AR
125672013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12568
12569 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12570 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12571 * ax-general.c (ax_print): Remove unused is_float.
12572 * blockframe.c (block_innermost_frame): Remove unused start, end.
12573 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12574
765a97ab
AR
125752013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12576
12577 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12578 (svr4_read_so_list): Remove unused lmo.
12579 * solib-target.c (solib_target_relocate_section_addresses): Remove
12580 unused flags.
12581
a99dad3d
TT
125822013-01-30 Tom Tromey <tromey@redhat.com>
12583
12584 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12585
3bff1ecd
TT
125862013-01-30 Tom Tromey <tromey@redhat.com>
12587
12588 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12589 * utils.c (gnu_debuglink_crc32): Remove.
12590 * utils.h (gnu_debuglink_crc32): Don't declare.
12591
7d455152
TT
125922013-01-30 Tom Tromey <tromey@redhat.com>
12593
12594 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12595 (read_structure_type, read_enumeration_type): Remove cast.
12596
abee88f2
TT
125972013-01-30 Tom Tromey <tromey@redhat.com>
12598
12599 * dwarf2read.c (read_namespace_type): Remove cast.
12600 (read_typedef): Likewise.
12601
8d9878a4
TT
126022013-01-29 Tom Tromey <tromey@redhat.com>
12603
12604 * dwarf2read.c (free_dwo_file): Remove assert.
12605
a543d2a9
TT
126062013-01-29 Tom Tromey <tromey@redhat.com>
12607
12608 * value.c (deprecated_set_value_modifiable): Remove.
12609 * value.h (deprecated_set_value_modifiable): Remove.
12610
bed911e5
DE
126112013-01-28 Doug Evans <dje@google.com>
12612
12613 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12614 to addresses from dwo files.
12615
28c64fc2
SCR
126162013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12617
12618 * valops.c (find_overload_match): Remove unused argument 'lax'.
12619 * value.h: Remove unused argument 'lax' from the declaration of
12620 find_overload_match.
12621 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12622 to find_overload_match.
12623 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12624 argument to find_overload_match.
12625
4d4ec4e5
TT
126262013-01-25 Tom Tromey <tromey@redhat.com>
12627
12628 * dwarf2read.c (processing_has_namespace_info): Remove.
12629 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12630 (process_die, read_func_scope, dwarf2_start_symtab)
12631 (new_symbol_full): Update.
12632
195a3f6c
TT
126332013-01-25 Tom Tromey <tromey@redhat.com>
12634
12635 * cp-namespace.c (cp_set_block_scope): Remove.
12636 * cp-support.h (cp_set_block_scope): Remove.
12637 * dbxread.c: Include block.h.
12638 (cp_set_block_scope): New function.
12639 (process_one_symbol): Update.
12640 * dwarf2read.c (read_func_scope): Use block_set_scope.
12641
8ba0730a
PA
126422013-01-25 Pedro Alves <palves@redhat.com>
12643
12644 * remote.c (add_current_inferior_and_thread): Tweak comment.
12645
12aaed36
TT
126462013-01-25 Tom Tromey <tromey@redhat.com>
12647
12648 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12649 (cp_add_using_directive): Add 'copy_names' argument.
12650 * cp-support.h (cp_add_using_directive): Update.
12651 (struct using_direct) <import_src, import_dest, alias,
12652 declaration>: Now const.
12653 * dwarf2read.c (read_import_statement): Use obconcat.
12654 Don't copy names passed to cp_add_using_directive.
12655
7fc75ca7
TT
126562013-01-25 Tom Tromey <tromey@redhat.com>
12657
12658 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12659
3405876a
PA
126602013-01-25 Pedro Alves <palves@redhat.com>
12661
12662 * remote.c (stop_reply_extract_thread): New.
12663 (add_current_inferior_and_thread): New parameter 'wait_status'.
12664 Handle it.
12665 (remote_start_remote): Pass wait status to
12666 add_current_inferior_and_thread.
12667 (extended_remote_run): Update comment.
12668 (extended_remote_create_inferior_1): Pass wait status to
12669 add_current_inferior_and_thread.
12670
8954db33
AB
126712013-01-25 Andrew Burgess <aburgess@broadcom.com>
12672 Ulrich Weigand <uweigand@de.ibm.com>
12673
12674 * valarith.c (value_vector_widen): New function for replicating a
12675 scalar into a vector.
12676 (value_binop): Use value_vector_widen to widen scalar to vector
12677 rather than casting, this better matches gcc C behaviour.
12678 * valops.c (value_casst): Update logic for casting between vector
12679 types, and for casting from scalar to vector, try to match gcc C
12680 behaviour.
12681 * value.h (value_vector_widen): Declare.
12682 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12683 function, handle special case for casting scalar to vector.
12684 (opencl_relop): Use opencl_value_cast.
12685 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12686 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12687 in order to use opencl_value_cast.
12688
843b20dc
YQ
126892013-01-25 Yao Qi <yao@codesourcery.com>
12690
12691 * event-loop.c: Include "queue.h".
12692 (gdb_event_p): New typedef.
12693 (DECLARE_QUEUE_P): Use.
12694 (DEFINE_QUEUE_P): Use.
12695 (async_queue_event): Remove.
12696 (gdb_event_xfree): New.
12697 (initialize_event_loop): New.
12698 (process_event): Use QUEUE macros.
12699 (event_queue): Remove.
12700 (gdb_wait_for_event): Caller update.
12701 (check_async_event_handlers): Likewise.
12702 (poll_timers): Likewise.
12703 * event-loop.h (initialize_event_loop): Declare.
12704 * event-loop.c (gdb_event_xfree): New.
12705 * top.c (gdb_init): Call initialize_event_loop.
12706
20ad8856
YQ
127072013-01-25 Yao Qi <yao@codesourcery.com>
12708
12709 * event-loop.c (async_queue_event): Remove one parameter
12710 'position'. Remove code handling 'position' == TAIL.
12711 (gdb_wait_for_event): Caller update.
12712 (check_async_event_handlers): Caller update.
12713 (poll_timers): Caller update.
12714 * event-loop.h (enum queue_position): Remove.
12715
3bbbe775
MK
127162013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12717
12718 * MAINTAINERS: Update my email.
12719
a87d9ac4
YQ
127202013-01-25 Yao Qi <yao@codesourcery.com>
12721
12722 * main.c (print_gdb_help): Remove "--epoch" from the help
12723 message.
12724
2077afdd
TD
127252013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12726
12727 * symtab.c (skip_prologue_using_sal): Consider a file
12728 change the same as an increased line number
12729
63da4037
TD
127302013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12731
30e8ee25 12732 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12733
45e6c716
TT
127342013-01-24 Tom Tromey <tromey@redhat.com>
12735
12736 * ada-lang.h (ada_decode_symbol): Make return type const.
12737 * ada-lang.c (ada_decode_symbol): Likewise.
12738
b1ae631a
DE
127392013-01-23 Doug Evans <dje@google.com>
12740
12741 * linespec.c (find_linespec_symbols): Make static.
12742
55a78401
SDJ
127432013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12744
12745 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12746 type on float conversion for complex type.
12747
bea883fd
SCR
127482013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12749
12750 Add a new class gdb.Architecture which exposes GDB's
12751 internal representation of architecture via GDB Python API.
12752 * Makefile.in: Add entries corresponding to the new file
12753 python/py-arch.c.
12754 * NEWS (Python Scripting): Add entries for the new class
12755 gdb.Architecture and the new method gdb.Frame.architecture.
12756 * python/py-arch.c: Implement gdb.Architecture class.
12757 * python/py-frame.c (frapy_arch): Implement the method
12758 gdb.Frame.architecture().
12759 (frame_object_methods): Add 'architecture' to the method table.
12760 * python/python-internal.h: Add declarations of new utility
12761 functions.
12762 * python/python.c (_initialize_python): Initialize
12763 gdb.Architecture class.
12764
796a7ff8
DE
127652013-01-23 Doug Evans <dje@google.com>
12766
12767 Work around binutils/15021.
12768 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12769 type_unit_group out of union s. All uses updated.
12770 (read_index_from_section): Watch for index version 8.
12771 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12772 an imported symtab.
12773 (write_psymtabs_to_index): Increment version number to 8.
12774
0928e93d
PA
127752013-01-22 Pedro Alves <palves@redhat.com>
12776
12777 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12778 user-visible.
12779
9c97429f
PA
127802013-01-22 Pedro Alves <palves@redhat.com>
12781
12782 * annotate.c (annotate_breakpoints_changed): Rename to ...
12783 (annotate_breakpoints_invalid): ... this. Make static.
12784 (breakpoint_changed): Adjust.
12785 (_initialize_annotate): Always install the observers. Install a
12786 "breakpoint_created" observer.
12787 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12788 * breakpoint.c (set_breakpoint_condition)
12789 (breakpoint_set_commands, do_map_commands_command)
12790 (init_raw_breakpoint, clear_command, set_ignore_count)
12791 (enable_breakpoint_disp): No longer call
12792 annotate_breakpoints_changed.
12793
bd00c694
PA
127942013-01-22 Pedro Alves <palves@redhat.com>
12795
12796 * annotate.c: Include "inferior.h".
12797 (frames_invalid_emitted)
12798 (breakpoints_invalid_emitted): New globals.
12799 (async_background_execution_p): New function.
12800 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12801 emitting the annotation if it has already been emitted.
12802 (annotate_display_prompt): New function.
12803 * annotate.h (annotate_display_prompt): New declaration.
12804 * event-top.c: Include annotate.h.
12805 (display_gdb_prompt): Call annotate_display_prompt.
12806
187d10dd
PA
128072013-01-22 Pedro Alves <palves@redhat.com>
12808
12809 * annotate.c (ignore_count_changed): Delete.
12810 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12811 (annotate_ignore_count_change): Delete.
12812 (annotate_stopped): Don't emit a delayed breakpoints-changed
12813 annotation.
12814 * annotate.h (annotate_ignore_count_change): Delete.
12815 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12816 annotate_ignore_count_change.
12817
d84cf7eb
TT
128182013-01-22 Tom Tromey <tromey@redhat.com>
12819
12820 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12821 require_rvalue for a register location.
12822
8f1d5693
MK
128232013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12824
12825 * breakpoint.c (print_one_breakpoint_location): Add MI
12826 field 'thread-groups' when printing a breakpoint.
12827 (output_thread_groups): New function.
12828
aa6199c6
SCR
128292013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12830
12831 * python/lib/gdb/commands/explore.py
12832 (CompoundExplorer.explore_expr): Correct the name of a method
12833 being invoked.
12834 (ExploreTypeCommand.invoke): Add a missing 'return'.
12835
d2afef13
TT
128362013-01-21 Tom Tromey <tromey@redhat.com>
12837
12838 * gdb_obstack.h (obconcat): Move declaration here, from...
12839 * symfile.h (obconcat): ... here.
12840 * gdb_obstack.c: New file.
12841 (obconcat): Move from...
12842 * symfile.c (obconcat): ... here.
12843 * Makefile.in (SFILES): Add gdb_obstack.c.
12844 (COMMON_OBS): Add gdb_obstack.o.
12845
10f0c4bb
TT
128462013-01-21 Tom Tromey <tromey@redhat.com>
12847
12848 * symfile.h (obsavestring): Don't declare.
12849 * symfile.c (obsavestring): Remove.
12850 * ada-exp.y: Use obstack_copy0, not obsavestring.
12851 * ada-lang.c: Use obstack_copy0, not obsavestring.
12852 * coffread.c: Use obstack_copy0, not obsavestring.
12853 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12854 * dbxread.c: Use obstack_copy0, not obsavestring.
12855 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12856 * jit.c: Use obstack_copy0, not obsavestring.
12857 * mdebugread.c: Use obstack_copy0, not obsavestring.
12858 * psymtab.c: Use obstack_copy0, not obsavestring.
12859 * stabsread.c: Use obstack_copy0, not obsavestring.
12860 * xcoffread.c: Use obstack_copy0, not obsavestring.
12861
86f62fd7
TT
128622013-01-21 Tom Tromey <tromey@redhat.com>
12863
12864 * dwarf2read.c (fixup_go_packaging): Save package name
12865 on objfile obstack.
12866 * gdbtypes.c (init_type): Don't copy name.
12867
15d034d0
TT
128682013-01-21 Tom Tromey <tromey@redhat.com>
12869
12870 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12871 const.
12872 (struct attribute) <u.str>: Now const.
12873 (struct fnfieldlist) <name>: Now const.
12874 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12875 (partial_die_parent_scope): Make return type const.
12876 (partial_die_full_name, add_partial_symbol): Update.
12877 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12878 'name' const.
12879 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12880 (read_file_scope, read_func_scope, dwarf2_add_field)
12881 (dwarf2_add_member_fn, read_structure_type)
12882 (process_enumeration_scope, read_array_type, read_module_type)
12883 (read_base_type, read_subrange_type): Update.
12884 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12885 (new_symbol_full, guess_full_die_structure_name): Update.
12886 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12887 (dwarf2_name): Return const type.
12888 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12889 const.
12890
748e18ae
TT
128912013-01-21 Tom Tromey <tromey@redhat.com>
12892
12893 * gdbtypes.c (init_type): Make 'name' const.
12894 * gdbtypes.h (init_type): Update.
12895
46212e0b
TT
128962013-01-21 Tom Tromey <tromey@redhat.com>
12897
12898 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12899 (start_symtab): Make 'name' and 'dirname' const. Use
12900 set_last_source_file.
12901 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12902 (last_source_file): Define. Now static.
12903 (set_last_source_file, get_last_source_file): New functions.
12904 * buildsym.h (last_source_file): Don't declare.
12905 (start_symtab): Update.
12906 (set_last_source_file, get_last_source_file): Declare.
12907 * coffread.c (complete_symtab): Use set_last_source_file.
12908 (coff_end_symtab): Likewise.
12909 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12910 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12911 set_last_source_file.
12912 (process_one_symbol): Use get_last_source_file.
12913 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12914 (psymtab_to_symtab_1): Use get_last_source_file.
12915 * xcoffread.c (process_linenos): Use get_last_source_file.
12916 (complete_symtab): Use set_last_source_file.
12917 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12918 (scan_xcoff_symtab): Use set_last_source_file.
12919
9d2ceabe
TT
129202013-01-21 Tom Tromey <tromey@redhat.com>
12921
12922 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12923 (symbol_set_names): Remove casts. Handle field const-ness.
12924
cfc594ee
TT
129252013-01-21 Tom Tromey <tromey@redhat.com>
12926
12927 * dwarf2read.c (new_symbol_full): Remove cast.
12928 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12929 * symtab.h (symbol_set_demangled_name): Update.
12930
5484b13a
TT
129312013-01-21 Tom Tromey <tromey@redhat.com>
12932
12933 * main.c (captured_main): Call bfd_init.
12934
1605ef26
TT
129352013-01-21 Tom Tromey <tromey@redhat.com>
12936
12937 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12938 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12939 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12940 * NEWS: Update.
12941
3b74cdc3
JK
129422013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12943
12944 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12945
5a352474
JK
129462013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12947
12948 Fix gdb.fortran/common-block.exp crash in PIE mode.
12949 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12950 LOC_COMMON_BLOCK.
12951 * f-valprint.c (info_common_command_for_block): Expect
12952 LOC_COMMON_BLOCK in gdb_assert.
12953 * symtab.h (struct general_symbol_info): Update comment for the
12954 common_block member.
12955 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12956 (enum address_class): New member LOC_COMMON_BLOCK.
12957
c60797fd
DB
129582013-01-18 David Blaikie <dblaikie@gmail.com>
12959
12960 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12961
46f35228
TT
129622013-01-18 Tom Tromey <tromey@redhat.com>
12963
12964 PR c++/14999:
12965 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12966 Call require_rvalue.
12967
257e7a09
YQ
129682013-01-18 Yao Qi <yao@codesourcery.com>
12969
12970 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12971 (dbx_read_symtab): New declaration.
12972 (dbx_psymtab_to_symtab): Delete.
12973 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12974 Rename parameter PST to SELF. Exchanged two parameters.
12975 (start_psymtab): Caller update.
12976 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12977 (dwarf2_read_symtab): New declaration.
12978 (dwarf2_psymtab_to_symtab): Delete.
12979 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12980 Rename parameter PST to SELF. Exchanged two parameters.
12981 (create_partial_symtab): Caller update.
12982 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12983 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12984 Rename parameter PST to SELF. Exchanged two parameters.
12985 (parse_partial_symbols, new_psymtab): Caller update.
12986 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12987 two parameters.
12988 * psymtab.c (psymtab_to_symtab): Caller update.
12989 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12990 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12991 Rename parameter PST to SELF. Exchanged two parameters.
12992 (xcoff_start_psymtab): Caller update.
12993
0de5618e
YQ
129942013-01-18 Yao Qi <yao@codesourcery.com>
12995
12996 * infrun.c (proceed): Rename local variable 'oneproc' to
12997 'force_step'.
12998
5c04624b
DE
129992013-01-17 Doug Evans <dje@google.com>
13000
848e3e78
DE
13001 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13002 (dw2_build_type_unit_groups): Delete. All uses updated.
13003
5c04624b
DE
13004 * symtab.h (struct symbol_search): Add comment.
13005
d84fca2c
JK
130062013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13007
13008 * symtab.c (compare_filenames_for_search): New comment for
13009 HAS_DRIVE_SPEC.
13010
6108433d
TT
130112013-01-17 Tom Tromey <tromey@redhat.com>
13012
13013 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13014
c89ffd86
JK
130152013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13016
13017 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13018 initialize it by existing make_cleanup. Call new do_cleanups.
13019
db2b2972
TT
130202013-01-17 Tom Tromey <tromey@redhat.com>
13021
13022 * cp-abi.c (cp_abi_completer): New function.
13023 (_initialize_cp_abi): Set completer for "set cp-abi".
13024
be7d37a2
TT
130252013-01-17 Tom Tromey <tromey@redhat.com>
13026
13027 * mem-break.c: Remove obsolete comment.
13028 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13029
c9fb1240
SD
130302012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13031
13032 * jit.c (jit_reader_load_command): Interpret the jit reader name
13033 as an absolute path if it begins with a forward slash.
13034
db334a01
SD
130352012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13036
13037 PR gdb/14550
13038
13039 * jit.c (finalize_symtab): Ensure that only the global block has a
13040 NULL superblock.
13041
7d928dac
PA
130422013-01-17 Pedro Alves <palves@redhat.com>
13043
13044 * acinclude.m4: Include ../config/plugins.m4,
13045 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13046 * Makefile.in (aclocal_m4_deps): Update.
13047 * aclocal.m4: Renegerate.
13048
fb8cf7c5
DE
130492013-01-16 Doug Evans <dje@google.com>
13050
13051 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13052
ab04a2af
TT
130532013-01-16 Pedro Alves <palves@redhat.com>
13054 Tom Tromey <tromey@redhat.com>
13055
13056 PR cli/7221:
13057 * NEWS: Add "catch signal".
13058 * breakpoint.c (base_breakpoint_ops): No longer static.
13059 (bpstat_explains_signal): New function.
13060 (init_catchpoint): No longer static.
13061 (base_breakpoint_explains_signal): New function.
13062 (base_breakpoint_ops): Initialize new field.
13063 * breakpoint.h (enum bpstat_signal_value): New.
13064 (struct breakpoint_ops) <explains_signal>: New field.
13065 (bpstat_explains_signal): Remove macro, declare as function.
13066 (base_breakpoint_ops, init_catchpoint): Declare.
13067 * break-catch-sig.c: New file.
13068 * inferior.h (signal_catch_update): Declare.
13069 * infrun.c (signal_catch): New global.
13070 (handle_syscall_event): Update for change to
13071 bpstat_explains_signal.
13072 (handle_inferior_event): Likewise. Always handle random signals
13073 via bpstats.
13074 (signal_cache_update): Check signal_catch.
13075 (signal_catch_update): New function.
13076 (_initialize_infrun): Initialize signal_catch.
13077 * Makefile.in (SFILES): Add break-catch-sig.c.
13078 (COMMON_OBS): Add break-catch-sig.o.
13079
8ac3646f
TT
130802013-01-16 Tom Tromey <tromey@redhat.com>
13081
13082 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13083 (print_one_catch_solib, print_one_catch_syscall)
13084 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13085 "catch-type".
13086
5a18e302
YQ
130872013-01-16 Yao Qi <yao@codesourcery.com>
13088
13089 * printcmd.c (current_display_number): Make it static.
13090
3f01d0d0
YQ
130912013-01-16 Yao Qi <yao@codesourcery.com>
13092
13093 * infcmd.c (step_once): Don't check '!single_inst' as it was
13094 checked before.
13095
1ed59174
JK
130962013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13097
13098 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13099
44478ab3
TT
131002013-01-14 Tom Tromey <tromey@redhat.com>
13101
13102 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13103 set command.
13104 * command.h (add_setshow_string_noescape_cmd): Update.
13105 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13106 (complete_set_gnutarget): New function.
13107 (_initialize_core): Set the "set gnutarget" completer.
13108
06d66ee9
TT
131092013-01-14 Tom Tromey <tromey@redhat.com>
13110
13111 PR symtab/14442:
13112 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13113 (c_type_print_modifier): Likewise.
13114 * dwarf2read.c (read_tag_restrict_type): New function.
13115 (read_type_die_1): Handle DW_TAG_restrict_type.
13116 * gdbtypes.c (make_restrict_type): New function.
13117 (recursive_dump_type): Handle TYPE_RESTRICT.
13118 * gdbtypes.h (enum type_flag_values): Renumber.
13119 (enum type_instance_flag_value): Add
13120 TYPE_INSTANCE_FLAG_RESTRICT.
13121 (TYPE_RESTRICT): New macro.
13122 (make_restrict_type): Declare.
13123
c9bf0622
TT
131242013-01-14 Tom Tromey <tromey@redhat.com>
13125
13126 PR symtab/14931:
13127 * psymtab.c (struct psymtab_state): New.
13128 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13129 functions.
13130 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13131 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13132
44d594fd
PA
131332013-01-14 Richard Sharman <richard_sharman@mitel.com>
13134 Pedro Alves <palves@redhat.com>
13135
13136 PR remote/14786
13137
13138 * remote.c (remote_threads_info): Make a copy of the reply from
13139 qfThreadInfo and use that instead of rs->buf.
13140
442e4d9c
YQ
131412013-01-14 Yao Qi <yao@codesourcery.com>
13142
13143 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13144 (dbx_psymtab_to_symtab): Likewise.
13145 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13146 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13147 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13148
5b12a61c
JK
131492013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13150
13151 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13152 make_cleanup_restore_current_language. Call set_language. Move
13153 OLD_CHAIN and INNER_CHAIN cleanups.
13154 * utils.c (do_restore_current_language)
13155 (make_cleanup_restore_current_language): New functions.
13156 * utils.h (make_cleanup_restore_current_language): New declaration.
13157
f0a4b570
JK
131582013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13159
13160 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13161 non-existing files.
13162
57b3c00c
JK
13163 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13164 non-existing files if FILENAME is already absolute.
13165
daefa854
JK
131662013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13167
13168 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13169 fputs_filtered. Append trailing newline.
13170
ca9c6ee2
YQ
131712013-01-11 Yao Qi <yao@codesourcery.com>
13172 Stan Shebs <stan@codesourcery.com>
13173
13174 * psymtab.c (init_psymbol_list): Clarify the comment.
13175
f28045c2
YQ
131762013-01-11 Yao Qi <yao@codesourcery.com>
13177
13178 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13179 (update_dprintf_command_list): Assert that 'printf_line' is
13180 non-null. Remove condition check.
13181
da5132d3
JK
131822013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13183
13184 Code cleanup.
13185 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13186 type const char *.
13187 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13188 const char *.
13189 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13190
843e694d
AG
131912013-01-09 Anthony Green <green@moxielogic.com>
13192
13193 * cp-abi.c (cplus_print_vtable): Don't return value from void
13194 function.
13195 * ada-lang.c (re_set_catch_assert): Ditto.
13196
da51c347
DE
131972013-01-09 Doug Evans <dje@google.com>
13198
13199 * symfile.h (quick_symbol_functions): Delete member
13200 pre_expand_symtabs_matching. All uses removed.
13201 * dwarf2read.c (dw2_lookup_symbol): Implement.
13202 (dw2_do_expand_symtabs_matching): Delete.
13203 (dw2_pre_expand_symtabs_matching): Delete.
13204 (struct dw2_symtab_iterator): New type.
13205 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13206 (dw2_expand_symtabs_for_function): Rewrite.
13207 (dwarf2_gdb_index_functions): Update.
13208 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13209 (psym_functions): Update.
13210
b2259038
TT
132112013-01-09 Tom Tromey <tromey@redhat.com>
13212
13213 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13214 * configure: Rebuild.
13215 * configure.ac: Add somread.o to the build if BFD has SOM
13216 support.
13217 * somread.c: Include som/aout.h, not syms.h.
13218 (som_symtab_read): Use som_external_symbol_dictionary_record.
13219 Unpack records manually.
13220 (_initialize_somread): Declare.
13221
bdad4180
MF
132222012-01-08 Mike Frysinger <vapier@gentoo.org>
13223
13224 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13225 Cast return_address to 64bits.
13226
03cdf680
HZ
132272013-01-08 Hui Zhu <hui_zhu@mentor.com>
13228
13229 * printcmd.c: Remove define of function output_command.
13230 * tracepoint.c: Remove extern of function output_command.
13231 * valprint.h: (output_command): New extern.
13232
8a808554
TT
132332013-01-07 Tom Tromey <tromey@redhat.com>
13234
13235 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13236 Remove.
13237 (objc_language_defn): Use c_printchar, c_printstr,
13238 c_emit_char.
13239
e93a8774
TT
132402013-01-07 Tom Tromey <tromey@redhat.com>
13241
13242 PR cli/7719:
13243 * NEWS: Update.
13244 * ada-valprint.c (printstr, print_field_values): Remove
13245 "inspect_it" code.
13246 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13247 code.
13248 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13249 code.
13250 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13251 * main.c (captured_main): Remove "epoch" argument.
13252 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13253 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13254 * p-valprint.c (pascal_object_print_value_fields): Remove
13255 "inspect_it" code.
13256 * printcmd.c (print_command_1): Remove 'inspect' argument.
13257 (print_command, call_command): Update.
13258 (inspect_command): Remove.
13259 (_initialize_printcmd): Make "inspect" an alias for "print".
13260 * top.c (epoch_interface): Remove.
13261 * top.h (epoch_interface): Remove.
13262 * valprint.c (user_print_options): Update.
13263 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13264 * valprint.h (struct value_print_options) <inspect_it>: Remove
13265 field.
13266
132672013-01-04 Tom Tromey <tromey@redhat.com>
13268
13269 * valprint.h (read_string): Add 'extern'.
13270
b967eb24
JB
132712013-01-07 Joel Brobecker <brobecker@adacore.com>
13272
13273 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13274 used to decide whether to define darwin_read_dyld_info or not.
13275
78a8b30e
PM
132762013-01-03 Pierre Muller <muller@sourceware.org>
13277
13278 * main.c (relocate_gdb_directory): Avoid calling stat function
13279 if DIR is empty.
13280
50da2f25
YQ
132812013-01-03 Yao Qi <yao@codesourcery.com>
13282
13283 * psymtab.c (fixup_psymbol_section): Update declaration.
13284 (fixup_psymbol_section): Remove code returning value.
13285
e7e8980f
YQ
132862013-01-03 Yao Qi <yao@codesourcery.com>
13287
13288 * symtab.h: Remove some out of date comments.
13289 (enum exception_event_kind): Move it ...
13290 * breakpoint.c: ... here.
13291
569283d4
MF
132922013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13293
9f9d9a96 13294 PR gdb/14405
569283d4
MF
13295 * darwin-nat.c (darwin_read_dyld_info): Only build if
13296 TASK_DYLD_INFO_COUNT is defined.
13297 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13298 TASK_DYLD_INFO_COUNT is defined.
13299
2e36fbea
TT
133002013-01-02 Tom Tromey <tromey@redhat.com>
13301
13302 * symfile.h (struct ecoff_debug_hack): Remove.
13303 * objfiles.c: Don't include mdebugread.h.
13304
4f05add4
TT
133052013-01-02 Tom Tromey <tromey@redhat.com>
13306
13307 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13308 * configure.ac: Check for Mach-O support in BFD. Update
13309 CONFIG_OBS.
13310 * configure: Rebuild.
13311
def63ff0
TT
133122013-01-02 Tom Tromey <tromey@redhat.com>
13313
13314 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13315 * configure.ac: Use GDB_AC_CHECK_BFD.
13316 * configure: Rebuild.
13317
60c5dd93
MK
133182013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13319
13320 * MAINTAINERS: Update my email.
13321
6e58437e
JB
133222013-01-01 Joel Brobecker <brobecker@adacore.com>
13323
13324 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13325
627fe805
JB
133262013-01-01 Joel Brobecker <brobecker@adacore.com>
13327
13328 * rs6000-nat.c (bss_data_overlap): New function.
13329 (vmap_symtab): Use it to adjust the .bss section's offset.
13330
28e7fd62
JB
133312013-01-01 Joel Brobecker <brobecker@adacore.com>
13332
13333 Update year range in copyright notice of all files.
13334
e93a8774 133352013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13336
13337 * top.c (print_gdb_version): Update copyright year.
13338
72b20e9c 13339For older changes see ChangeLog-2012.
c906108c
SS
13340\f
13341Local Variables:
13342mode: change-log
13343left-margin: 8
13344fill-column: 74
13345version-control: never
57da7796 13346coding: utf-8
c906108c 13347End:
This page took 2.660623 seconds and 4 git commands to generate.