ARI fix in value.c::value_entirely_unavailable
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
64c46ce4
JB
12013-12-18 Joel Brobecker <brobecker@adacore.com>
2
3 * value.c (value_entirely_unavailable): ARI fix: Move trailing
4 binary operator to the next line. No actual code change.
5
5ce0145d
PA
62013-12-17 Pedro Alves <palves@redhat.com>
7
8 * frame.h (enum frame_id_stack_status): New enum.
9 (struct frame_id) <stack_addr>: Adjust comment.
10 <stack_addr_p>: Delete field, replaced with ...
11 <stack_status>: ... this new field.
12 (frame_id_build_unavailable_stack): Declare.
13 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
14 (frame_id_build_special): Adjust.
15 (frame_id_build_unavailable_stack): New function.
16 (frame_id_build, frame_id_build_wild): Adjust.
17 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
18 account frames with unavailable stack.
19
20 * amd64-tdep.c (amd64_frame_this_id)
21 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
22 frame_id_build_unavailable_stack.
23 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
24 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
25 (i386_sigtramp_frame_this_id): Likewise.
26
bdf22206
AB
272013-12-17 Andrew Burgess <aburgess@broadcom.com>
28
29 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
30 unavailable, use correct bit length.
31 * value.c (struct value): Extend comment on unavailable to
32 indicate that it is bit based.
33 (value_bits_available): New function.
34 (value_bytes_available): Call value_bits_available.
35 (value_entirely_available): Check against the bit length, not byte
36 length.
37 (mark_value_bits_unavailable): New function.
38 (mark_value_bytes_unavailable): Move contents to
39 mark_value_bits_unavailable, call to same.
40 (memcmp_with_bit_offsets): New function.
41 (value_available_contents_bits_eq): New function, takes the
42 functionality from value_available_contents_eq but uses
43 memcmp_with_bit_offsets now, and is bit not byte based.
44 (value_available_contents_eq): Move implementation into
45 value_available_contents_bits_eq, call to same.
46 (value_contents_copy_raw): Work on bits, not bytes.
47 (unpack_value_bits_as_long_1): Check availability in bits, not
48 bytes.
49 * value.h (value_bits_available): Declare new function.
50 (mark_value_bits_unavailable): Declare new function.
51
774f74c2
PM
522013-12-16 Pierre Muller <muller@sourceware.org>
53
54 Fix compilation error for cygwin native build.
55 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
56 Call wcstombs.
57
9a362b9a
PA
582013-12-16 Pedro Alves <palves@redhat.com>
59
60 PR 16329
61 * sol-thread.c (check_for_thread_db): If the target can't run or
62 isn't a core, return without pushing.
63
b030cf11
JB
642013-12-15 Joel Brobecker <brobecker@adacore.com>
65
66 Revert the following commit:
67 * solib.c (solib_map_sections): Remove code overwriting
68 SO->SO_NAME with the bfd's filename.
69
70 Make the following changes required after the revert above:
71 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
72 returned bfd to a copy of the synthetic pathname.
73 * solib-darwin.c (darwin_bfd_open): Set the filename of the
74 returned bfd to a copy of PATHNAME.
75
8a48ac95
JB
762013-12-13 Joel Brobecker <brobecker@adacore.com>
77
78 * ada-lang.c (ada_array_bound_from_type): Move the declaration
79 and assignment of variable "elt_type" inside the else block
80 where it is used. Add two missing check_typedef calls.
81 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
82 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
83
fb5e3d5c
JB
842013-12-13 Joel Brobecker <brobecker@adacore.com>
85
86 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
87 between 'struct type *' and 'arr_type'.
88
a16b0e22
SC
892013-12-12 Siva Chandra Reddy <sivachandra@google.com>
90
91 PR python/16113
92 * NEWS (Python Scripting): Add entry for the new feature and the
93 new attribute of gdb.Field objects.
94 * python/py-type.c (gdbpy_is_field): New function
95 (convert_field): Add 'parent_type' attribute to gdb.Field
96 objects.
97 * python/py-value.c (valpy_getitem): Allow subscript value to be
98 a gdb.Field object.
99 (value_has_field): New function
100 (get_field_flag): New function
101 * python/python-internal.h (gdbpy_is_field): Add declaration.
102
b15e5c54
PA
1032013-12-12 Pedro Alves <palves@redhat.com>
104
105 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
106 const, and remove casts.
107
f23981e9
PA
1082013-12-12 Pedro Alves <palves@redhat.com>
109
110 * cli/cli-cmds.c (source_script_from_stream) Use have_python
111 instead of catching UNSUPPORTED_ERROR.
112 * exceptions.h (UNSUPPORTED_ERROR): Delete.
113 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
114 error if called.
115 * python/python.h (have_python): New static inline function.
116
43942612
DE
1172013-12-11 Doug Evans <dje@google.com>
118
119 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
120 "can't find DWO" warning.
121
08a6411c
SDJ
1222013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
123
124 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
125 to get_probe_argument_count and evaluate_probe_argument.
126 * probe.c (get_probe_argument_count): Adjust declaration to accept
127 frame. Pass frame to probe_ops's get_probe_argument_count.
128 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
129 (probe_safe_evaluate_at_pc): Pass frame to
130 get_probe_argument_count and evaluate_probe_argument.
131 * probe.h (struct probe_ops) <get_probe_argument_count,
132 evaluate_probe_argument>: Adjust declarations to accept frame.
133 (get_probe_argument_count, evaluate_probe_argument): Likewise.
134 * solib-svr4.c (solib_event_probe_action): Get current frame.
135 Pass it to get_probe_argument_count.
136 (svr4_handle_solib_event): Get current frame. Pass it to
137 get_probe_argument_count and evaluate_probe_argument.
138 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
139 accept gdbarch. Do not obtain it from the probe's objfile.
140 (stap_get_probe_argument_count): Adjust declaration to accept
141 frame. Obtain gdbarch from the frame. Call generic
142 can_evaluate_probe_arguments. Pass gdbarch to
143 stap_parse_probe_arguments.
144 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
145 stap_parse_probe_arguments.
146 (stap_evaluate_probe_argument): Adjust declaration to accept
147 frame. Obtain gdbarch from the frame. Pass gdbarch to
148 stap_get_arg.
149 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
150 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
151 get_probe_argument_count and evaluate_probe_argument.
152
0987cf35
DE
1532013-12-10 Doug Evans <dje@google.com>
154
155 PR 16286
156 * c-lang.c (c_get_string): Ignore the declared size of the object
157 if a specific length is requested.
158
34dc884e
DE
1592013-12-10 Doug Evans <dje@google.com>
160
161 * interps.h (interp_exec_p): Delete.
162 * interps.c (interp_exec_p): Delete.
163 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
164 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
165
bae8a07a
YQ
1662013-12-10 Yao Qi <yao@codesourcery.com>
167
168 * amd64-tdep.c (amd64_analyze_stack_align): Call
169 target_read_code instead of target_read_memory.
170 (amd64_analyze_prologue): Call read_code_unsigned_integer
171 instead of read_memory_unsigned_integer. Call read_code
172 instead of read_memory.
173 (amd64_skip_xmm_prologue): Likewise.
174
0865b04a
YQ
1752013-12-10 Yao Qi <yao@codesourcery.com>
176
177 * corefile.c (read_code): New function.
178 (read_code_integer): New function.
179 (read_code_unsigned_integer): New function.
180 * gdbcore.h (read_code): Declare.
181 (read_code_integer): Declare.
182 (read_code_unsigned_integer): Declare.
183 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
184 of target_read_memory. Call read_code_unsigned_integer instead
185 of read_memory_unsigned_integer.
186 (i386_analyze_struct_return): Likewise.
187 (i386_skip_probe): Likewise.
188 (i386_analyze_stack_align): Likewise.
189 (i386_match_pattern): Likewise.
190 (i386_skip_noop): Likewise.
191 (i386_analyze_frame_setup): Likewise.
192 (i386_analyze_register_saves): Likewise.
193 (i386_skip_prologue): Likewise.
194 (i386_skip_main_prologue): Likewise.
195 (i386_frame_cache_1): Likewise.
196
f15cb84a
YQ
1972013-12-10 Yao Qi <yao@codesourcery.com>
198
199 * infrun.c: Include "target-dcache.h".
200 (prepare_for_detach): Call target_dcache_invalidate.
201 (wait_for_inferior): Likewise.
202 (fetch_inferior_event): Likewise.
203 (infrun_thread_stop_requested_callback): Likewise. Set
204 overlay_cache_invalid to 1.
205
036e93df
JB
2062013-12-10 Joel Brobecker <brobecker@adacore.com>
207
208 * symtab.c (symbol_find_demangled_name): Add handling of
209 Ada symbols.
210
72bfa06c
JB
2112013-12-10 Joel Brobecker <brobecker@adacore.com>
212
213 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
214 * NEWS: Expand the entry documenting the new -exec-run --start
215 option to mention the corresponding new entry in the output of
216 "-list-features".
217
94481b8c
JB
2182013-12-10 Joel Brobecker <brobecker@adacore.com>
219
220 * windows-nat.c (handle_load_dll): Add comments.
221 (windows_ensure_ntdll_loaded): New function.
222 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
223 Add FIXME comment.
224
ebeec1e9 2252013-12-08 Joel Brobecker <brobecker@adacore.com>
0c2242c1
JB
226
227 GDB 7.6.2 released.
228
e5e6f788
YQ
2292013-12-08 Yao Qi <yao@codesourcery.com>
230
231 * stack.c (frame_info): Initialize variable caller_pc.
232
782d47df
PA
2332013-12-06 Pedro Alves <palves@redhat.com>
234
235 * frame.c (enum cached_copy_status): New enum.
236 (struct frame_info) <prev_pc.p>: Change type to enum
237 cached_copy_status.
238 (fprint_frame): Handle not saved and unavailable prev_pc values.
239 (frame_unwind_pc_if_available): Delete and merge contents into ...
240 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
241 to use enum cached_copy_status.
242 (frame_unwind_caller_pc_if_available): Delete.
243 (create_new_frame): Adjust.
244 * frame.h (frame_unwind_caller_pc_if_available): Delete
245 declaration.
246 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
247 frame_unwind_caller_pc_if_available, and handle
248 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
249 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
250 (val_print_not_saved): New function.
251 * valprint.h (val_print_not_saved): Declare.
252
710409a2
PA
2532013-12-06 Andrew Burgess <aburgess@broadcom.com>
254 Pedro Alves <palves@redhat.com>
255
256 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
257 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
258 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
259 * spu-tdep.c (spu_software_single_step): Throw
260 OPTIMIZED_OUT_ERROR.
261 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
262
7580e917
TT
2632013-12-06 Tom Tromey <tromey@redhat.com>
264
265 * objfiles.c (free_objfile): Update comment.
266
53e0e56d
TT
2672013-12-06 Tom Tromey <tromey@redhat.com>
268
269 * objfiles.h (objfile_to_front): Remove.
270 * objfiles.c (objfile_to_front): Remove.
271
830f7a41
TT
2722013-12-06 Tom Tromey <tromey@redhat.com>
273
274 * minsyms.c (get_symbol_leading_char): Remove unnecessary
275 declaration.
276
e1b06ae2
TT
2772013-12-06 Tom Tromey <tromey@redhat.com>
278
279 * psympriv.h (struct partial_symtab) <user>: Move earlier.
280
2b69941d
TT
2812013-12-06 Tom Tromey <tromey@redhat.com>
282
283 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
284 (list_command): Likewise.
285
bf121224
TT
2862013-12-06 Tom Tromey <tromey@redhat.com>
287
288 * psymtab.c (allocate_psymtab): Put the filename in the filename
289 bcache.
290
8e96694e
TT
2912013-12-06 Tom Tromey <tromey@redhat.com>
292
293 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
294 * symtab.h (struct symtab) <dirname>: Now const.
295
21ea9eec
TT
2962013-12-06 Tom Tromey <tromey@redhat.com>
297
298 * symfile.c (allocate_symtab): Remove cast.
299 * symtab.h (struct symtab) <filename>: Now const.
300
37fbcad0
TT
3012013-12-06 Tom Tromey <tromey@redhat.com>
302
303 * break-catch-throw.c (fetch_probe_arguments): Use
304 get_probe_argument_count and evaluate_probe_argument.
305 * elfread.c (elf_get_probe_argument_count)
306 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
307 (elf_compile_to_ax): Remove.
308 (elf_probe_fns): Update.
309 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
310 (evaluate_probe_argument): Call method on probe, not via sym
311 functions.
312 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
313 evaluate_probe_argument.
314 (compile_probe_arg): Use get_probe_argument_count. Call method on
315 probe, not via sym functions.
316 * symfile-debug.c (debug_sym_get_probe_argument_count)
317 (debug_can_evaluate_probe_arguments)
318 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
319 Remove.
320 (debug_sym_probe_fns): Remove.
321 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
322 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
323 sym_compile_to_ax>: Remove fields.
324
8662d513
PM
3252013-12-06 Pierre Muller <muller@sourceware.org>
326
327 Fix completion for pascal language.
328 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
329 (exp : field_exp name COMPLETE): New rule.
330 (exp : SIZEOF): Set correct current_type.
331 (last_was_structop): Remove static variable.
332 (yylex): Remove saw_structop local variable.
333 Adapt code to removal of variables above.
334
da361ebd
JB
3352013-12-06 Joel Brobecker <brobecker@adacore.com>
336
337 * frame.c (get_prev_frame_1): Delete variable "this_id".
338 Replace its use by a call to get_frame_id.
339
6ed1ff02
AG
3402013-12-05 Anthony Green <green@moxielogic.com>
341
342 * moxie-tdep.c (moxie_software_single_step): New function.
343 (INST2OFFSET): New helper macro.
344 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
345 (moxie_process_readu): Move this up in the file.
346
39d7494a 3472013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
348
349 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
350
170d82c9
JB
3512013-12-05 Joel Brobecker <brobecker@adacore.com>
352 Tristan Gingold <gingold@adacore.com>
353
354 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
355 Accept version 2. Ignore operations using opcode 6.
356
a5e619ec
JB
3572013-12-05 Joel Brobecker <brobecker@adacore.com>
358
359 * ada-lex.l (find_dot_all): Fix coding style violations.
360
ca8941bb
WT
3612013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
362
363 * NEWS: Add section for Intel(R) Architecture Instructions
364 Extesions mentioning MPX.
365
7fb1b8b1
JB
3662013-12-03 Joel Brobecker <brobecker@adacore.com>
367
368 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
369
849f2b52
JB
3702013-12-03 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
373 when parse_exp_1 threw an error. Add comment.
374
4e35e808
JB
3752013-12-03 Joel Brobecker <brobecker@adacore.com>
376
377 * NEWS: Mention "-list-features" in the entry documenting
378 the support for the "--language" option.
379
caf26be9
SB
3802013-12-03 Tom Tromey <tromey@redhat.com>
381 Jan Kratochvil <jan.kratochvil@redhat.com>
382 Doug Evans <dje@google.com>
383 Samuel Bronson <naesten@gmail.com>
384
385 Bring back gdb-add-index as a contrib script.
386 * contrib/gdb-add-index.sh: New file.
387 * NEWS: Note the addition.
388
34a4fb3a
SB
3892013-12-03 Samuel Bronson <naesten@gmail.com>
390
391 * MAINTAINERS (Write After Approval): Add myself to the list.
392
688981c9
JB
3932013-12-03 Joel Brobecker <brobecker@adacore.com>
394
395 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
396
c1244769
JB
3972013-12-03 Joel Brobecker <brobecker@adacore.com>
398
399 * mi/mi-main.c: Remove trailing spaces throughout.
400
2ea126fa
JB
4012013-12-03 Pedro Alves <palves@redhat.com>
402 Joel Brobecker <brobecker@adacore.com>
403
404 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
405 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
406 of a regular error when the GDB/MI command does not exist.
407 * mi/mi-main.c (mi_cmd_list_features): Add
408 "undefined-command-error-code".
409 (mi_print_exception): Print an "undefined-command"
410 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
411 * NEWS: Add entry documenting the new "code" variable in
412 "^error" result records.
413
6b7cbff1
JB
4142013-12-03 Joel Brobecker <brobecker@adacore.com>
415
416 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
417 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
418 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
419 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
420 field to output of "-list-features".
421
422 * NEWS: Add entry for new -info-gdb-mi-command.
423
04affae3
JK
4242013-12-02 Doug Evans <dje@google.com>
425 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 * objfiles.c (allocate_objfile): Save original_name as an absolute
428 path.
429 * objfiles.h (struct objfile): Expand comment on original_name.
430 * source.c (openp): Call gdb_abspath.
431 * utils.c (gdb_abspath): New function.
432 * utils.h (gdb_abspath): Declare.
433
aee4bf85
PA
4342013-12-02 Pedro Alves <palves@redhat.com>
435
436 * dcache.c (dcache_read_line): Use target_read_raw_memory.
437 * target.c (target_read_raw_memory): New function.
438 (target_read_stack, target_write_memory, target_write_raw_memory):
439 Update comment.
440 (target_read_code): Add comment.
441 * target.h (target_read_raw_memory): Declare.
442
840207d8
PA
4432013-12-02 Pedro Alves <palves@redhat.com>
444
445 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
446 unconditionally.
447
0fdf84ca
PA
4482013-12-02 Pedro Alves <pedro@codesourcery.com>
449 Maciej W. Rozycki <macro@codesourcery.com>
450
451 * remote.c (putpkt_for_catch_errors): Remove function.
452 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
453 gracefully.
454
62972e0b
YQ
4552013-12-02 Pedro Alves <palves@redhat.com>
456
457 PR remote/15974
458 * remote-notif.c (handle_notification): Return early if no
459 notification is found.
460
f9b0da3d
JB
4612013-12-02 Joel Brobecker <brobecker@adacore.com>
462
463 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
464 preprocessor check.
465
2dd4d422
JB
4662013-12-02 Joel Brobecker <brobecker@adacore.com>
467
468 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
469
e72eff80
JB
4702013-12-02 Joel Brobecker <brobecker@adacore.com>
471
472 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
473 * ctf.c (ctf_start): Remove obsolete comment.
474
844ad005
JB
4752013-12-02 Joel Brobecker <brobecker@adacore.com>
476
477 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
478
5b2bf947
DE
4792013-11-30 Doug Evans <xdje42@gmail.com>
480
481 * auto-load.h (script_language): New members name, auto_load_enabled.
482 Add missing comments on struct members.
483 (auto_load_objfile_script): Delete.
484 * auto-load.c: #include "cli/cli-cmds.h".
485 (auto_load_gdb_scripts_enabled): New function.
486 (script_language_gdb): Update, add new members.
487 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
488 and call to maybe_add_script moved to caller.
489 (auto_load_objfile_script_1): Auto-load safe-checking and
490 call to maybe_add_script moved here.
491 (auto_load_objfile_script): Make static. Early exit if support for
492 scripting language hasn't been compiled in, or auto-loading has been
493 disabled.
494 (source_section_scripts): Argument "source_name" renamed to
495 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
496 with section_name. Skip loading script if support for scripting
497 language hasn't been compiled in, or auto-loading has been disabled.
498 Call language->source_script_for_objfile instead of calling
499 source_python_script_for_objfile directly.
500 (load_auto_scripts_for_objfile): Update.
501 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
502 (gdbpy_load_auto_script_for_objfile): Delete.
503 (auto_load_python_scripts_enabled): New function.
504 (script_language_python): Update, add new members.
505 (gdbpy_script_language_defn): New function.
506 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
507 (gdbpy_script_language_defn): Declare.
508
509 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
510 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
511 (source_section_scripts): Moved here from py-auto-load.c.
512 (auto_load_section_scripts): Ditto.
513 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
514 auto-load.c, renamed AUTO_SECTION_NAME.
515 (source_section_scripts, auto_load_section_scripts): Moved to
516 auto-load.c.
517
d9c43928
YQ
5182013-11-30 Yao Qi <yao@codesourcery.com>
519
520 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
521
e7b12392
SDJ
5222013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
523
524 * gdbarch.sh: Remove include of "gdb_string.h", replace by
525 <string.h>.
526
256458bc
DE
5272013-11-29 Doug Evans <xdje42@gmail.com>
528
7b2d3abf
DE
529 * python/py-auto-load.c (source_section_scripts): Move comment to
530 more relevant location.
531
256458bc
DE
532 Whitespace cleanup.
533 * python/py-breakpoint.c: Remove trailing whitespace.
534 * python/py-cmd.c: Ditto.
535 * python/py-evts.c: Ditto.
536 * python/py-finishbreakpoint.c: Ditto.
537 * python/py-frame.c: Ditto.
538 * python/py-function.c: Ditto.
539 * python/py-inferior.c: Ditto.
540 * python/py-infthread.c: Ditto.
541 * python/py-param.c: Ditto.
542 * python/py-prettyprint.c: Ditto.
543 * python/py-symbol.c: Ditto.
544 * python/py-type.c: Ditto.
545 * python/py-utils.c: Ditto.
546 * python/py-value.c: Ditto.
547 * python/python-internal.h: Ditto.
548 * python/python.c: Ditto.
549
20e1ca3b
PA
5502013-11-29 Pedro Alves <palves@redhat.com>
551
552 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
553
8b4f3082
PA
5542013-11-29 Pedro Alves <palves@redhat.com>
555
556 * breakpoint.c (build_target_condition_list): Release previous
557 conditions.
558 (build_target_command_list): Release previous commands.
559 (bp_location_dtor): Release target conditions and commands.
560 * remote.c (remote_add_target_side_condition): Don't release
561 conditions.
562 (remote_add_target_side_commands): Don't release commands.
563
9f713294
YQ
5642013-11-29 Yao Qi <yao@codesourcery.com>
565 Pedro Alves <palves@redhat.com>
566
567 * dcache.c (dcache_read_line): Use current_target.beneath
568 instead of &current_target.
569 * target.c (memory_xfer_partial_1): Factor code out to ...
570 (raw_memory_xfer_partial): ... it. New function.
571 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
572 is TARGET_OBJECT_RAW_MEMORY.
573
4cb0213d
DE
5742013-11-28 Doug Evans <xdje42@gmail.com>
575
576 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
577 breakpoint_object. All uses updated.
578 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
579 breakpoint_object. All uses updated.
580 * python.c (*): All uses of breakpoint_object updated.
581 * python.h (*): All uses of breakpoint_object updated.
582 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
583 * python/py-finishbreakpoint.c (*): Ditto.
584
d344e670
DE
5852013-11-28 Doug Evans <xdje42@gmail.com>
586
d729aae0 587 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
588 * configure: Regenerate.
589
eebc056c
AB
5902013-11-28 Andrew Burgess <aburgess@broadcom.com>
591 Pedro Alves <palves@redhat.com>
592
593 * valprint.c (value_check_printable): If the value is entirely
594 unavailable, print a single "<unavailable>" instead of printing
595 all subfields.
596
a7300869
PA
5972013-11-28 Pedro Alves <palves@redhat.com>
598
599 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
600 Add "set debug frame" output.
601 (frame_stop_reason_symbol_string): New function.
602
50fd528a
PA
6032013-11-28 Pedro Alves <palves@redhat.com>
604
605 * frame-unwind.c (default_frame_unwind_stop_reason): Return
606 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
607 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
608
5de51581
PA
6092013-11-28 Pedro Alves <palves@redhat.com>
610
611 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
612 set the unwind stop reason to UNWIND_OUTERMOST, not
613 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
614
739cb10c
PA
6152013-11-28 Pedro Alves <palves@redhat.com>
616
617 * frame.c (frame_unwind_register): Say the register was "not
618 saved" instead of "optimized out".
619
514c0aa6 6202013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 621
514c0aa6 622 PR 16152
92a021de 623 * configure: Rebuild.
514c0aa6 624 * configure.ac: Tighten cygwin detection check.
92a021de 625
908fa2aa
PA
6262013-11-27 Pedro Alves <palves@redhat.com>
627
628 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
629 register in the previous frame's arch.
630
6bd273ae
PA
6312013-11-27 Pedro Alves <palves@redhat.com>
632
633 * frame-unwind.c (frame_unwind_got_optimized): Return
634 an lval_register value instead of a not_lval value.
635
f6c01fc5
AB
6362013-11-27 Andrew Burgess <aburgess@broadcom.com>
637
638 * frame.c: Include "valprint.h".
639 (frame_unwind_register_value): Use value_optimized_out.
640 * value.c (value_fetch_lazy): Likewise.
641
4f14910f
AB
6422013-11-26 Andrew Burgess <aburgess@broadcom.com>
643
644 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
645
15859968
TT
6462013-11-26 Tom Tromey <tromey@redhat.com>
647
648 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
649 2013-11-22.
650
244ec0da
WT
6512013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
652
653 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
654 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
655 (HAS_MPX): New macro.
656 (HAS_AVX): New macro.
657 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
658
f7e3ecae
KS
6592013-11-25 Keith Seitz <keiths@redhat.com>
660
661 PR c++/14819
662 * c-exp.y (classify_inner_name): If no matching symbol was
663 found, try looking up the token as a base class.
664 Likewise if a constructor was found.
665 * cp-namespace.c (find_type_baseclass_by_name): New function.
666 * cp-support.h (find_type_baseclass_by_name): Declare.
667 * valops.c (value_struct_elt_for_reference): If we get
668 a non-static field, try to get a value based on the
669 current instance, if any.
670
283f7163
YQ
6712013-11-24 Yao Qi <yao@codesourcery.com>
672
673 * disasm.c (dis_asm_read_memory): Call target_read_code
674 instead of target_read_memory.
675
29453a14
YQ
6762013-11-24 Yao Qi <yao@codesourcery.com>
677
678 * NEWS: Add note on new "set code-cache" option.
679 * target-dcache.c (code_cache_enabled_1): New variable.
680 (code_cache_enabled): New variable.
681 (show_code_cache, set_code_cache): New function.
682 (code_cache_enabled_p): New function.
683 (_initialize_target_dcache): Register command.
684 * target-dcache.h (code_cache_enabled_p): Declare.
685 * target.c (memory_xfer_partial_1):Handle
686 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
687 (target_read_code): New function.
688 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
689 New.
690 (target_read_code): Declare.
691
0fb14d8f
YQ
6922013-11-24 Yao Qi <yao@codesourcery.com>
693
694 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
695 (stack_cache_enabled_1): ... this. New variable.
696 (stack_cache_enabled_p): Rename to ...
697 (stack_cache_enabled): ... this. New variable.
698 (set_stack_cache_enabled_p): Rename to ...
699 (set_stack_cache): ... this. Update caller.
700 (show_stack_cache_enabled_p): Rename to ...
701 (show_stack_cache): ... this. Update caller.
702 (stack_cache_enabled): Rename to ...
703 (stack_cache_enabled_p): ... this. Update caller.
704 (_initialize_target_dcache): Replace "data cache" with
705 "target memory cache".
706 * target-dcache.h (stack_cache_enabled): Remove declaration.
707 (stack_cache_enabled_p): Add declaration.
708
a12361b9
DE
7092013-11-23 Doug Evans <xdje42@gmail.com>
710
711 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
712 superfluous.
713
1e1d6920
DE
7142013-11-23 Doug Evans <xdje42@gmail.com>
715
716 * python/py-frame.c (frapy_block): Fix error message text.
717
1e9c71b8
DE
7182013-11-23 Doug Evans <xdje42@gmail.com>
719
720 * cli/cli-script.c (multi_line_command_p): New function.
721 (recurse_read_control_structure, read_command_lines_1): Call it.
722 (execute_control_command): Consistently have a blank line between
723 each case.
724
f380848e
SA
7252013-11-22 Sterling Augustine <saugustine@google.com>
726
38e1f2a7 727 PR gdb/16196:
f380848e
SA
728 * valprint.c (read_string): Set new variable fetchlen based on
729 fetchlimit and size. Use it in call to partial_memory_read.
730 Update comment.
731
da2b2fdf
TT
7322013-11-22 Tom Tromey <tromey@redhat.com>
733
734 PR backtrace/16155:
735 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
736 the return address column is unspecified.
737
6eeee81c
TT
7382013-11-22 Tom Tromey <tromey@redhat.com>
739 Pedro Alves <palves@redhat.com>
740
741 PR backtrace/16155
742 * value.c (value_fetch_lazy): Internal error if
743 get_frame_register_value returns the same register.
744
194cca41
PA
7452013-11-22 Pedro Alves <palves@redhat.com>
746 Tom Tromey <tromey@redhat.com>
747
748 * frame.c (frame_stash_add): Now returns whether a frame with the
749 same ID was already known.
750 (compute_frame_id): New function, factored out from get_frame_id.
751 (get_frame_id): No longer lazilly compute the frame id here.
752 (get_prev_frame_if_no_cycle): New function. Detects wider stack
753 cycles.
754 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
755 and checking for stack cycles here.
756
33f8fe58
PA
7572013-11-22 Pedro Alves <palves@redhat.com>
758
759 PR 16155
760 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
761 this frame and the new previous frame, not between this frame and
762 the next frame.
763
1ec56e88
PA
7642013-11-22 Pedro Alves <palves@redhat.com>
765
766 PR 16155
767 * dwarf2-frame.c (struct dwarf2_frame_cache)
768 <checked_tailcall_bottom, entry_cfa_sp_offset,
769 entry_cfa_sp_offset_p>: New fields.
770 (dwarf2_frame_cache): Adjust to use the new cache fields instead
771 of locals. Don't call dwarf2_tailcall_sniffer_first here.
772 (dwarf2_frame_prev_register): Call it here, but only once.
773
ca092b61
DE
7742013-11-21 Doug Evans <xdje42@gmail.com>
775
776 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
777 (type_equality_entry): Move here from python/py-type.c.
778 (type_equality_entry_d): Ditto.
779 (compare_maybe_null_strings, check_types_equal): Ditto.
780 (check_types_worklist, types_deeply_equal): Ditto.
781 * gdbtypes.h (types_deeply_equal): Declare.
782 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
783 (typy_richcompare): Update.
784
7c245c24
JB
7852013-11-20 Joel Brobecker <brobecker@adacore.com>
786
787 * python/py-value.c (is_intlike): Delete.
788 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
789 by use of is_integral_type.
790 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
791 by use of is_integral_type and check for TYPE_CODE_PTR.
792
8986e351
TT
7932013-11-20 Tom Tromey <tromey@redhat.com>
794
795 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
796 strerror module.
797 * gnulib/aclocal.m4: Update.
798 * gnulib/config.in: Update.
799 * gnulib/configure: Update.
800 * gnulib/import/Makefile.am: Update.
801 * gnulib/import/Makefile.in: Update.
802 * gnulib/import/errno.in.h: Remove.
803 * gnulib/import/intprops.h: Remove.
804 * gnulib/import/m4/errno_h.m4: Remove.
805 * gnulib/import/m4/gnulib-cache.m4: Update.
806 * gnulib/import/m4/gnulib-comp.m4: Update.
807 * gnulib/import/m4/strerror.m4: Remove.
808 * gnulib/import/m4/sys_socket_h.m4: Remove.
809 * gnulib/import/strerror-override.c: Remove.
810 * gnulib/import/strerror-override.h: Remove.
811 * gnulib/import/strerror.c: Remove.
812 * gnulib/update-gnulib.sh: Update.
813
6b1141e3
YQ
8142013-11-20 Yao Qi <yao@codesourcery.com>
815
816 * target-dcache.c (target_dcache_get_or_init): Call
817 set_address_space_data if 'dcache' is NULL.
818
60650f2e
WT
8192013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
820
821 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
822
09748966
WT
8232013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
824
825 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
826 * data-directory/Makefile.in: Copy bond_register.py to the right path
827 to be initialized at gdb startup.
09748966 828
e43e105e
WT
8292013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
830
831 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
832 Add MPX registers.
833 (amd64_linux_read_description): Add initialization for MPX and
834 AVX independently.
835 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
836 (amd64_linux_gregset_reg_offset): Add MPX registers.
837 (amd64_linux_core_read_description): Add initialization for MPX
838 registers.
839 (_initialize_amd64_linux_tdep): Initialize MPX targets.
840 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
841 register on the list.
842 (tdesc_amd64_mpx_linux) Add new target for MPX.
843 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
844 (amd64_mpx_names): MPX register names.
845 (amd64_init_abi): Add MPX register while initializing the ABI.
846 (_initialize_amd64_tdep): Initialize MPX targets.
847 * amd64-tdep.h (amd64_regnum): Add MPX registers.
848 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
849
1dbcd68c
WT
8502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
851
852 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
853 registers on the range of registers to be read from
854 xsave buffer.
855 (i386_linux_read_description): Add case for MPX.
856 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
857 (i386_linux_gregset_reg_offset): Add MPX registers.
858 (i386_linux_core_read_description): Initialize also MPX.
859 (_initialize_i386_linux_tdep): Add mpx initialization.
860 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
861 mpx_register_names.
862 (i386_regnum): Add MPX registers.
863 (I386_MPX_NUM_REGS): New macro.
864 (i386_bnd_regnum_p): New function.
865 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
866 number of registers to be the number of BNDSTATUS.
867 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
868 * i386-tdep.c: Include features/i386/i386-mpx.c.
869 (i386_mpx_names): Add MPX register names array.
870 (i386_bnd_names): Add bnd pseudo register names array.
871 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
872 registers.
873 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
874 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
875 registers.
876 (i386_bnd_type): New function.
877 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
878 register types.
879 (i386_pseudo_register_read_into_value): Add bnd case.
880 (i386_pseudo_register_write): Add bnd pseudo registers.
881 (i386_register_reggroup_p): Add MPX register to the group all.
882 (i386_validate_tdesc_p): Add MPX to the target description
883 validation.
884 (i386_pseudo_register_name): Add bnd pseudo registers.
885 (i386_gdbarch_init): Add MPX for architecture initialization.
886 (_initia_initialize_i386_tdep): Add mpx initialization.
887 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
888 XSAVE buffer.
889 (XSAVE_MPX_ADDR): New macro.
890 (i387_supply_xsave): Add MPX case.
891 (i387_collect_xsave): Add MPX case.
892 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
893 (I387_BNDCFGU_REGNUM): New macro.
894 (I387_NUM_MPX_REGS): New macro.
895 (I387_NUM_BND_REGS): New macro.
896 (I387_NUM_MPX_CTRL_REGS): New macro.
897 (I387_MPXEND_REGNUM): New macro.
898 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
899 (I386_XSTATE_BNDCFG): Likewise.
900 (I386_XSTATE_MPX_MASK): Likewise.
901 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
902 (I386_XSTATE_BNDREGS_SIZE): New macro.
903 (I386_XSTATE_BNDCFG_SIZE): Likewise.
904 (I386_XSTATE_SIZE): Adapt for MPX.
905 (I386_XSTATE_MAX_SIZE): Likewise.
906
ccc42043
WT
9072013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
908
909 * features/i386/Makefile: Adapts for using MPX registers.
910 * features/i386/32bit-mpx.xml: New file.
911 * features/i386/64bit-mpx.xml: Likewise.
912 * features/i386/amd64-mpx-linux.c: Likewise.
913 * features/i386/amd64-mpx-linux.xml: Likewise.
914 * features/i386/amd64-mpx.c: Likewise.
915 * features/i386/amd64-mpx.xml: Likewise.
916 * features/i386/i386-mpx-linux.c: Likewise.
917 * features/i386/i386-mpx-linux.xml: Likewise.
918 * features/i386/i386-mpx.c: Likewise.
919 * features/i386/i386-mpx.xml: Likewise.
920 * regformats/i386/amd64-mpx-linux.dat: New file.
921 * regformats/i386/amd64-mpx.dat: Likewise.
922 * regformats/i386/i386-mpx-linux.dat: Likewise.
923 * regformats/i386/i386-mpx.dat: Likewise.
924
57803a3c
WT
9252013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
926
927 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
928 Modified logic of creating a bitfield to be in sync with
929 tdesc_gdb_type.
930
2b59118e
WN
9312013-11-20 Will Newton <will.newton@linaro.org>
932
933 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
934 error message.
935
b26dfc9a
YQ
9362013-11-20 Yao Qi <yao@codesourcery.com>
937
938 * progspace.h (struct address_space_data): Declare.
939 * target-dcache.c: Include "progspace.h".
940 (target_dache): Remove.
941 (target_dcache_aspace_key): New.
942 (target_dcache_cleanup): New function.
943 (target_dcache_init_p): Get data through
944 target_dcache_aspace_key.
945 (target_dcache_invalidate): Likewise.
946 (target_dcache_get): Likewise.
947 (target_dcache_get_or_init): Likewise.
948 (_initialize_target_dcache): Initialize
949 target_dcache_aspace_key.
950
3a8356ff
YQ
9512013-11-20 Yao Qi <yao@codesourcery.com>
952
953 * progspace.c (struct address_space): Update comments.
954 <REGISTRY_FIELDS>: New fields.
955 DEFINE_REGISTRY for address_space.
956 (new_address_space): Call address_space_alloc_data.
957 (free_address_space): Call address_space_free_data.
958 * progspace.h: Use DECLARE_REGISTRY.
959
68c765e2
YQ
9602013-11-20 Yao Qi <yao@codesourcery.com>
961
962 * Makefile.in (SFILES):Add target-dcache.c.
963 (HFILES_NO_SRCDIR): Add target-dcache.h.
964 (COMMON_OBS): Add target-dcache.o.
965 * dcache.c: Remove inclusion to "target.h". Include
966 "target-dcache.h".
967 * memattr.c: Include "target-dcache.h".
968 * top.c: Likewise.
969 * tracepoint.c: Likewise.
970 * target.c: (stack_cache_enabled_p_1): Move to
971 target-dcache.c.
972 (stack_cache_enabled_p): Likewise.
973 (set_stack_cache_enabled_p): Likewise.
974 (show_stack_cache_enabled_p): Likewise.
975 (target_dcache, target_dcache_init_p): Likewise.
976 (target_dcache_invalidate): Likewise.
977 (target_dcache_get, target_dcache_get_or_init): Likewise.
978 (memory_xfer_partial_1): Call function stack_cache_enabled.
979 (initialize_target): Move code to target-dcache.c.
980 * target.h (target_dcache_invalidate): Move to
981 target-dcache.h.
982 (target_dcache_get): Likewise.
983 * target-dcache.c: New.
984 * target-dcache.h: New.
985
f2de9785
YQ
9862013-11-20 Yao Qi <yao@codesourcery.com>
987
988 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
989 it is initialized.
990
2a2f9fe4
YQ
9912013-11-20 Yao Qi <yao@codesourcery.com>
992
993 * dcache.c (last_cache): Remove.
994 (dcache_free, dcache_init): Update.
995 (dcache_update):
996 (dcache_print_line): Add parameter 'dcache'. Replace
997 'target_dcache' with 'dcache'.
998 (dcache_info): Move code to dcache_info_1. Call
999 'dcache_info_1'.
1000 (dcache_info_1): New function.
1001 (set_dcache_size): Call target_dcache_invalidate.
1002 (set_dcache_line_size): Call target_dcache_invalidate.
1003 * target.c (target_dcache_init_p): New function.
1004 (target_dcache_invalidate): Check target_dcache_init_p first.
1005 (target_dcache_get, target_dcache_get_or_init): New function.
1006 (memory_xfer_partial_1): Adjust.
1007 (initialize_target): Don't initialize 'target_dcache'.
1008 * target.h (struct dcache_struct): Declare.
1009 (target_dcache_get): Declare.
1010
8ab91b96
YQ
10112013-11-19 Yao Qi <yao@codesourcery.com>
1012
1013 * varobj.c (varobj_get_type): Fix typo.
1014
df7752b0
JB
10152013-11-19 Joel Brobecker <brobecker@adacore.com>
1016
1017 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1018
4a0a886a
JB
10192013-11-19 Joel Brobecker <brobecker@adacore.com>
1020
1021 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1022 "stat.h".
1023
53ce3c39
TT
10242013-11-18 Tom Tromey <tromey@redhat.com>
1025
1026 * common/gdb_stat.h: Remove.
1027 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1028 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1029 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1030 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1031 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1032 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1033 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1034 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1035 * exec.c: Use sys/stat.h, not gdb_stat.h.
1036 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1037 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1038 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1039 * jit.c: Use sys/stat.h, not gdb_stat.h.
1040 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1041 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1042 * main.c: Use sys/stat.h, not gdb_stat.h.
1043 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1044 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1045 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1046 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1047 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1048 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1049 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1050 * remote.c: Use sys/stat.h, not gdb_stat.h.
1051 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1052 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1053 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1054 * source.c: Use sys/stat.h, not gdb_stat.h.
1055 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1056 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1057 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1058 * top.c: Use sys/stat.h, not gdb_stat.h.
1059 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1060
09607c9e
TT
10612013-11-18 Tom Tromey <tromey@redhat.com>
1062
1063 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1064 sys_stat.
1065 * gnulib/aclocal.m4: Update.
1066 * gnulib/config.in: Update.
1067 * gnulib/configure: Update.
1068 * gnulib/import/Makefile.am: Update.
1069 * gnulib/import/Makefile.in: Update.
1070 * gnulib/import/m4/gnulib-cache.m4: Update.
1071 * gnulib/import/m4/gnulib-comp.m4: Update.
1072 * gnulib/import/m4/sys_stat_h.m4: New.
1073 * gnulib/import/m4/time_h.m4: New.
1074 * gnulib/import/sys_stat.in.h: New.
1075 * gnulib/import/time.in.h: New.
1076
4ff70b84
TT
10772013-11-18 Tom Tromey <tromey@redhat.com>
1078
1079 * configure: Rebuild.
1080 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1081
3447c057
TT
10822013-11-18 Tom Tromey <tromey@redhat.com>
1083
1084 * configure: Rebuild.
1085 * configure.ac: Don't check for unistd.h.
1086
0080a2f6
TT
10872013-11-18 Tom Tromey <tromey@redhat.com>
1088
1089 * configure: Rebuild.
1090 * configure.ac: Don't check for stdlib.h
1091 * defs.h: Include stdlib.h unconditionally.
1092
161d1bec
TT
10932013-11-18 Tom Tromey <tromey@redhat.com>
1094
1095 * config.in: Rebuild.
1096 * configure: Rebuild.
1097 * configure.ac: Don't check for stddef.h.
1098 * defs.h: Unconditionally include stddef.h. Remove duplicate
1099 inclusion.
1100
2978b111
TT
11012013-11-18 Tom Tromey <tromey@redhat.com>
1102
1103 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1104 * common/gdb_dirent.h: Remove.
1105 * common/filestuff.c: Use dirent.h.
1106 * common/linux-osdata.c: Use dirent.h.
1107 (NAMELEN): Define.
1108 * config.in: Rebuild.
1109 * configure: Rebuild.
1110 * configure.ac: Don't use AC_HEADER_DIRENT.
1111 * linux-fork.c: Use dirent.h
1112 * linux-nat.c: Use dirent.h.
1113 * nto-procfs.c: Use dirent.h.
1114 * procfs.c: Use dirent.h.
1115
e26b6bb0
TT
11162013-11-18 Tom Tromey <tromey@redhat.com>
1117
1118 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1119 * gnulib/aclocal.m4: Update.
1120 * gnulib/config.in: Update.
1121 * gnulib/configure: Update.
1122 * gnulib/import/Makefile.am: Update.
1123 * gnulib/import/Makefile.in: Update.
1124 * gnulib/import/dirent.in.h: New.
1125 * gnulib/import/m4/dirent_h.m4: New.
1126 * gnulib/import/m4/gnulib-cache.m4: Update.
1127 * gnulib/import/m4/gnulib-comp.m4: Update.
1128
a3d08894
TT
11292013-11-18 Tom Tromey <tromey@redhat.com>
1130
1131 * configure: Rebuild.
1132 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1133 strings.h.
1134
0e9f083f
TT
11352013-11-18 Tom Tromey <tromey@redhat.com>
1136
1137 * common/gdb_string.h: Remove.
1138 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1139 * ada-exp.y: Use string.h, not gdb_string.h.
1140 * ada-lang.c: Use string.h, not gdb_string.h.
1141 * ada-lex.l: Use string.h, not gdb_string.h.
1142 * ada-typeprint.c: Use string.h, not gdb_string.h.
1143 * ada-valprint.c: Use string.h, not gdb_string.h.
1144 * aix-thread.c: Use string.h, not gdb_string.h.
1145 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1146 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1147 * alpha-nat.c: Use string.h, not gdb_string.h.
1148 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1149 * alpha-tdep.c: Use string.h, not gdb_string.h.
1150 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1151 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1152 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1153 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1154 * amd64-nat.c: Use string.h, not gdb_string.h.
1155 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1156 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1157 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1158 * arch-utils.c: Use string.h, not gdb_string.h.
1159 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1160 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1161 * arm-tdep.c: Use string.h, not gdb_string.h.
1162 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1163 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1164 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1165 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1166 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1167 * avr-tdep.c: Use string.h, not gdb_string.h.
1168 * ax-gdb.c: Use string.h, not gdb_string.h.
1169 * ax-general.c: Use string.h, not gdb_string.h.
1170 * bcache.c: Use string.h, not gdb_string.h.
1171 * bfin-tdep.c: Use string.h, not gdb_string.h.
1172 * breakpoint.c: Use string.h, not gdb_string.h.
1173 * build-id.c: Use string.h, not gdb_string.h.
1174 * buildsym.c: Use string.h, not gdb_string.h.
1175 * c-exp.y: Use string.h, not gdb_string.h.
1176 * c-lang.c: Use string.h, not gdb_string.h.
1177 * c-typeprint.c: Use string.h, not gdb_string.h.
1178 * c-valprint.c: Use string.h, not gdb_string.h.
1179 * charset.c: Use string.h, not gdb_string.h.
1180 * cli-out.c: Use string.h, not gdb_string.h.
1181 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1182 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1183 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1184 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1185 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1186 * cli/cli-script.c: Use string.h, not gdb_string.h.
1187 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1188 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1189 * coffread.c: Use string.h, not gdb_string.h.
1190 * common/common-utils.c: Use string.h, not gdb_string.h.
1191 * common/filestuff.c: Use string.h, not gdb_string.h.
1192 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1193 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1194 * common/signals.c: Use string.h, not gdb_string.h.
1195 * common/vec.h: Use string.h, not gdb_string.h.
1196 * core-regset.c: Use string.h, not gdb_string.h.
1197 * corefile.c: Use string.h, not gdb_string.h.
1198 * corelow.c: Use string.h, not gdb_string.h.
1199 * cp-abi.c: Use string.h, not gdb_string.h.
1200 * cp-support.c: Use string.h, not gdb_string.h.
1201 * cp-valprint.c: Use string.h, not gdb_string.h.
1202 * cris-tdep.c: Use string.h, not gdb_string.h.
1203 * d-lang.c: Use string.h, not gdb_string.h.
1204 * dbxread.c: Use string.h, not gdb_string.h.
1205 * dcache.c: Use string.h, not gdb_string.h.
1206 * demangle.c: Use string.h, not gdb_string.h.
1207 * dicos-tdep.c: Use string.h, not gdb_string.h.
1208 * disasm.c: Use string.h, not gdb_string.h.
1209 * doublest.c: Use string.h, not gdb_string.h.
1210 * dsrec.c: Use string.h, not gdb_string.h.
1211 * dummy-frame.c: Use string.h, not gdb_string.h.
1212 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1213 * dwarf2loc.c: Use string.h, not gdb_string.h.
1214 * dwarf2read.c: Use string.h, not gdb_string.h.
1215 * elfread.c: Use string.h, not gdb_string.h.
1216 * environ.c: Use string.h, not gdb_string.h.
1217 * eval.c: Use string.h, not gdb_string.h.
1218 * event-loop.c: Use string.h, not gdb_string.h.
1219 * exceptions.c: Use string.h, not gdb_string.h.
1220 * exec.c: Use string.h, not gdb_string.h.
1221 * expprint.c: Use string.h, not gdb_string.h.
1222 * f-exp.y: Use string.h, not gdb_string.h.
1223 * f-lang.c: Use string.h, not gdb_string.h.
1224 * f-typeprint.c: Use string.h, not gdb_string.h.
1225 * f-valprint.c: Use string.h, not gdb_string.h.
1226 * fbsd-nat.c: Use string.h, not gdb_string.h.
1227 * findcmd.c: Use string.h, not gdb_string.h.
1228 * findvar.c: Use string.h, not gdb_string.h.
1229 * fork-child.c: Use string.h, not gdb_string.h.
1230 * frame.c: Use string.h, not gdb_string.h.
1231 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1232 * frv-tdep.c: Use string.h, not gdb_string.h.
1233 * gdb.c: Use string.h, not gdb_string.h.
1234 * gdb_bfd.c: Use string.h, not gdb_string.h.
1235 * gdbarch.c: Use string.h, not gdb_string.h.
1236 * gdbtypes.c: Use string.h, not gdb_string.h.
1237 * gnu-nat.c: Use string.h, not gdb_string.h.
1238 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1239 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1240 * go-exp.y: Use string.h, not gdb_string.h.
1241 * go-lang.c: Use string.h, not gdb_string.h.
1242 * go32-nat.c: Use string.h, not gdb_string.h.
1243 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1244 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1245 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1246 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1247 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1248 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1249 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1250 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1251 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1252 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1253 * i386-tdep.c: Use string.h, not gdb_string.h.
1254 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1255 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1256 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1257 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1258 * i387-tdep.c: Use string.h, not gdb_string.h.
1259 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1260 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1261 * inf-child.c: Use string.h, not gdb_string.h.
1262 * inf-ptrace.c: Use string.h, not gdb_string.h.
1263 * inf-ttrace.c: Use string.h, not gdb_string.h.
1264 * infcall.c: Use string.h, not gdb_string.h.
1265 * infcmd.c: Use string.h, not gdb_string.h.
1266 * inflow.c: Use string.h, not gdb_string.h.
1267 * infrun.c: Use string.h, not gdb_string.h.
1268 * interps.c: Use string.h, not gdb_string.h.
1269 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1270 * irix5-nat.c: Use string.h, not gdb_string.h.
1271 * jv-exp.y: Use string.h, not gdb_string.h.
1272 * jv-lang.c: Use string.h, not gdb_string.h.
1273 * jv-typeprint.c: Use string.h, not gdb_string.h.
1274 * jv-valprint.c: Use string.h, not gdb_string.h.
1275 * language.c: Use string.h, not gdb_string.h.
1276 * linux-fork.c: Use string.h, not gdb_string.h.
1277 * linux-nat.c: Use string.h, not gdb_string.h.
1278 * lm32-tdep.c: Use string.h, not gdb_string.h.
1279 * m2-exp.y: Use string.h, not gdb_string.h.
1280 * m2-typeprint.c: Use string.h, not gdb_string.h.
1281 * m32c-tdep.c: Use string.h, not gdb_string.h.
1282 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1283 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1284 * m32r-rom.c: Use string.h, not gdb_string.h.
1285 * m32r-tdep.c: Use string.h, not gdb_string.h.
1286 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1287 * m68k-tdep.c: Use string.h, not gdb_string.h.
1288 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1289 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1290 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1291 * m88k-tdep.c: Use string.h, not gdb_string.h.
1292 * macrocmd.c: Use string.h, not gdb_string.h.
1293 * main.c: Use string.h, not gdb_string.h.
1294 * mdebugread.c: Use string.h, not gdb_string.h.
1295 * mem-break.c: Use string.h, not gdb_string.h.
1296 * memattr.c: Use string.h, not gdb_string.h.
1297 * memory-map.c: Use string.h, not gdb_string.h.
1298 * mep-tdep.c: Use string.h, not gdb_string.h.
1299 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1300 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1301 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1302 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1303 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1304 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1305 * mi/mi-console.c: Use string.h, not gdb_string.h.
1306 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1307 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1308 * mi/mi-main.c: Use string.h, not gdb_string.h.
1309 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1310 * microblaze-rom.c: Use string.h, not gdb_string.h.
1311 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1312 * mingw-hdep.c: Use string.h, not gdb_string.h.
1313 * minidebug.c: Use string.h, not gdb_string.h.
1314 * minsyms.c: Use string.h, not gdb_string.h.
1315 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1316 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1317 * mips-tdep.c: Use string.h, not gdb_string.h.
1318 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1319 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1320 * mipsread.c: Use string.h, not gdb_string.h.
1321 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1322 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1323 * monitor.c: Use string.h, not gdb_string.h.
1324 * moxie-tdep.c: Use string.h, not gdb_string.h.
1325 * mt-tdep.c: Use string.h, not gdb_string.h.
1326 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1327 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1328 * nto-procfs.c: Use string.h, not gdb_string.h.
1329 * nto-tdep.c: Use string.h, not gdb_string.h.
1330 * objc-lang.c: Use string.h, not gdb_string.h.
1331 * objfiles.c: Use string.h, not gdb_string.h.
1332 * opencl-lang.c: Use string.h, not gdb_string.h.
1333 * osabi.c: Use string.h, not gdb_string.h.
1334 * osdata.c: Use string.h, not gdb_string.h.
1335 * p-exp.y: Use string.h, not gdb_string.h.
1336 * p-lang.c: Use string.h, not gdb_string.h.
1337 * p-typeprint.c: Use string.h, not gdb_string.h.
1338 * parse.c: Use string.h, not gdb_string.h.
1339 * posix-hdep.c: Use string.h, not gdb_string.h.
1340 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1341 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1342 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1343 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1344 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1345 * printcmd.c: Use string.h, not gdb_string.h.
1346 * procfs.c: Use string.h, not gdb_string.h.
1347 * prologue-value.c: Use string.h, not gdb_string.h.
1348 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1349 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1350 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1351 * regcache.c: Use string.h, not gdb_string.h.
1352 * registry.c: Use string.h, not gdb_string.h.
1353 * remote-fileio.c: Use string.h, not gdb_string.h.
1354 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1355 * remote-mips.c: Use string.h, not gdb_string.h.
1356 * remote-sim.c: Use string.h, not gdb_string.h.
1357 * remote.c: Use string.h, not gdb_string.h.
1358 * reverse.c: Use string.h, not gdb_string.h.
1359 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1360 * ser-base.c: Use string.h, not gdb_string.h.
1361 * ser-go32.c: Use string.h, not gdb_string.h.
1362 * ser-mingw.c: Use string.h, not gdb_string.h.
1363 * ser-pipe.c: Use string.h, not gdb_string.h.
1364 * ser-tcp.c: Use string.h, not gdb_string.h.
1365 * ser-unix.c: Use string.h, not gdb_string.h.
1366 * serial.c: Use string.h, not gdb_string.h.
1367 * sh-tdep.c: Use string.h, not gdb_string.h.
1368 * sh64-tdep.c: Use string.h, not gdb_string.h.
1369 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1370 * skip.c: Use string.h, not gdb_string.h.
1371 * sol-thread.c: Use string.h, not gdb_string.h.
1372 * solib-dsbt.c: Use string.h, not gdb_string.h.
1373 * solib-frv.c: Use string.h, not gdb_string.h.
1374 * solib-osf.c: Use string.h, not gdb_string.h.
1375 * solib-spu.c: Use string.h, not gdb_string.h.
1376 * solib-target.c: Use string.h, not gdb_string.h.
1377 * solib.c: Use string.h, not gdb_string.h.
1378 * somread.c: Use string.h, not gdb_string.h.
1379 * source.c: Use string.h, not gdb_string.h.
1380 * sparc-nat.c: Use string.h, not gdb_string.h.
1381 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1382 * sparc-tdep.c: Use string.h, not gdb_string.h.
1383 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1384 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1385 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1386 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1387 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1388 * spu-multiarch.c: Use string.h, not gdb_string.h.
1389 * spu-tdep.c: Use string.h, not gdb_string.h.
1390 * stabsread.c: Use string.h, not gdb_string.h.
1391 * stack.c: Use string.h, not gdb_string.h.
1392 * std-regs.c: Use string.h, not gdb_string.h.
1393 * symfile.c: Use string.h, not gdb_string.h.
1394 * symmisc.c: Use string.h, not gdb_string.h.
1395 * symtab.c: Use string.h, not gdb_string.h.
1396 * target.c: Use string.h, not gdb_string.h.
1397 * thread.c: Use string.h, not gdb_string.h.
1398 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1399 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1400 * top.c: Use string.h, not gdb_string.h.
1401 * tracepoint.c: Use string.h, not gdb_string.h.
1402 * tui/tui-command.c: Use string.h, not gdb_string.h.
1403 * tui/tui-data.c: Use string.h, not gdb_string.h.
1404 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1405 * tui/tui-file.c: Use string.h, not gdb_string.h.
1406 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1407 * tui/tui-out.c: Use string.h, not gdb_string.h.
1408 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1409 * tui/tui-source.c: Use string.h, not gdb_string.h.
1410 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1411 * tui/tui-win.c: Use string.h, not gdb_string.h.
1412 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1413 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1414 * typeprint.c: Use string.h, not gdb_string.h.
1415 * ui-file.c: Use string.h, not gdb_string.h.
1416 * ui-out.c: Use string.h, not gdb_string.h.
1417 * user-regs.c: Use string.h, not gdb_string.h.
1418 * utils.c: Use string.h, not gdb_string.h.
1419 * v850-tdep.c: Use string.h, not gdb_string.h.
1420 * valarith.c: Use string.h, not gdb_string.h.
1421 * valops.c: Use string.h, not gdb_string.h.
1422 * valprint.c: Use string.h, not gdb_string.h.
1423 * value.c: Use string.h, not gdb_string.h.
1424 * varobj.c: Use string.h, not gdb_string.h.
1425 * vax-tdep.c: Use string.h, not gdb_string.h.
1426 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1427 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1428 * windows-nat.c: Use string.h, not gdb_string.h.
1429 * xcoffread.c: Use string.h, not gdb_string.h.
1430 * xml-support.c: Use string.h, not gdb_string.h.
1431 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1432 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1433
63ce7108
TT
14342013-11-18 Tom Tromey <tromey@redhat.com>
1435
1436 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1437 and strstr.
1438 * gnulib/aclocal.m4: Update.
1439 * gnulib/config.in: Update.
1440 * gnulib/configure: Update.
1441 * gnulib/import/Makefile.am: Update.
1442 * gnulib/import/Makefile.in: Update.
1443 * gnulib/import/errno.in.h: New.
1444 * gnulib/import/intprops.h: New.
1445 * gnulib/import/m4/errno_h.m4: New.
1446 * gnulib/import/m4/gnulib-cache.m4: Update.
1447 * gnulib/import/m4/gnulib-comp.m4: Update.
1448 * gnulib/import/m4/strerror.m4: New.
1449 * gnulib/import/m4/strstr.m4: New.
1450 * gnulib/import/m4/sys_socket_h.m4: New.
1451 * gnulib/import/strerror-override.c: New.
1452 * gnulib/import/strerror-override.h: New.
1453 * gnulib/import/strerror.c: New.
1454 * gnulib/import/strstr.c: New.
1455
a7c11ee1
TT
14562013-11-18 Tom Tromey <tromey@redhat.com>
1457
1458 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1459 multiple lines.
1460
d0b5971a
JM
14612013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1462
1463 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1464 * sparc-tdep.h: And its prototype.
1465
1466 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1467 function.
1468 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1469
4b4589ad
PA
14702013-11-18 Pedro Alves <palves@redhat.com>
1471
1472 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1473 use unpack_pointer.
1474
422ad5c2
JB
14752013-11-18 Joel Brobecker <brobecker@adacore.com>
1476
1477 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1478 to -list-features output.
1479
b1370418
JB
14802013-11-17 Joel Brobecker <brobecker@adacore.com>
1481
1482 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1483 <read_addr_from_reg>: Renames "read_reg".
1484 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1485 Adjust comment.
1486 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1487 Use read_addr_from_reg in place of read_reg.
1488 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1489 in place of read_reg.
1490 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1491 dwarf_expr_read_reg.
1492 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1493 with dwarf_expr_read_addr_from_reg.
1494 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1495 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1496 needs_frame_read_addr_from_reg.
1497
6ea71545
JK
14982013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1501
19a1b230
AA
15022013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503
1504 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1505 NULL.
1506
805e1f19
TT
15072013-11-15 Tom Tromey <tromey@redhat.com>
1508
1509 PR c++/16117:
1510 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1511 (classify_name): Likewise. Prefer a field of "this" over a
1512 filename.
1513 (classify_inner_name, yylex): Update.
1514
0acf8b65
JB
15152013-11-15 Joel Brobecker <brobecker@adacore.com>
1516
1517 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1518 Extend the documentation a bit.
1519 <get_reg_value>: New field.
1520 * dwarf2loc.c (dwarf_expr_get_reg_value)
1521 (needs_frame_get_reg_value): New functions.
1522 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1523 callback.
1524 * dwarf2-frame.c (get_reg_value): New function.
1525 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1526 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1527 Use new callback to compute result_val.
1528
ef1bc9e7
AM
15292013-11-15 Alan Modra <amodra@gmail.com>
1530
1531 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1532 (ppc64_desc_entry_point): ..this. Update comments here and at
1533 call points.
1534 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1535 ppc64_standard_linkage3): Update comments.
1536 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1537 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1538 patterns.
1539 (ppc64_standard_linkage4_target): New function.
1540 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1541 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1542 nop match. Fix comment wrap.
1543
36fa8042
PA
15442013-11-14 Pedro Alves <palves@redhat.com>
1545
1546 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1547 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1548
4f5d7f63
PA
15492013-11-14 Pedro Alves <palves@redhat.com>
1550
1551 * infrun.c (struct execution_control_state)
1552 <stepped_after_stopped_by_watchpoint>: New field.
1553 (get_inferior_stop_soon): New function.
1554 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1555 moved to struct execution_control_state -- adjust. Use
1556 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1557 new function.
1558 (handle_signal_stop): New function, factored out from
1559 handle_inferior_event.
1560
47591c29
PA
15612013-11-14 Pedro Alves <palves@redhat.com>
1562
1563 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1564 return a boolean.
1565 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1566 boolean.
1567 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1568 Adjust to return a boolean.
1569 * breakpoint.h (enum bpstat_signal_value): Delete.
1570 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1571 (bpstat_explains_signal): Likewise.
1572 * infrun.c (handle_inferior_event) <random signal checks>:
1573 bpstat_explains_signal now returns a boolean - adjust. No longer
1574 consider hiding signals.
1575
bac7d97b
PA
15762013-11-14 Pedro Alves <palves@redhat.com>
1577
1578 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1579 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1580 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1581 BPSTAT_SIGNAL_HIDE.
1582 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1583 instead of BPSTAT_SIGNAL_HIDE.
1584 * infrun.c (handle_inferior_event): Rework random signal checks.
1585
ce12b012
PA
15862013-11-14 Pedro Alves <palves@redhat.com>
1587
1588 * infrun.c (struct execution_control_state): Remove
1589 'random_signal' field.
1590 (handle_syscall_event): Use bpstat_causes_stop instead of
1591 bpstat_explains_signal. Don't set ecs->random_signal.
1592 (handle_inferior_event): New 'random_signal' local.
1593 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1594 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1595 bpstat_explains_signal. Don't set ecs->random_signal.
1596 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1597 ecs->random_signal.
1598
05ba8510
PA
15992013-11-14 Pedro Alves <palves@redhat.com>
1600
1601 * infrun.c (handle_inferior_event): Move comment from the
1602 function's body to the function's description, adjusted.
1603
5c09a2c5
PA
16042013-11-14 Pedro Alves <palves@redhat.com>
1605
1606 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1607 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1608 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1609 case.
1610
91822956
TT
16112013-11-14 Tom Tromey <tromey@redhat.com>
1612
1613 * python/py-linetable.c (ltpy_has_line)
1614 (ltpy_get_all_source_lines): Fix loop termination condition.
1615
403cb6b1
JB
16162013-11-14 Joel Brobecker <brobecker@adacore.com>
1617
1618 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1619 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1620 PARSE->LANGUAGE during command execution, if set.
1621 * mi/mi-parse.c: Add "language.h" #include.
1622 (mi_parse): Add parsing of "--language" command option.
1623
1624 * NEWS: Add entry mentioning the new "--language" command option.
1625
b5be8ce0
JB
16262013-11-14 Pedro Alves <palves@redhat.com>
1627 Joel Brobecker <brobecker@adacore.com>
1628
1629 * cli/cli-utils.h (extract_arg_const): Add declaration.
1630 * cli/cli-utils.c (extract_arg_const): New function.
1631 (extract_arg): Reimplement using extract_arg_const.
1632
671afef6
JB
16332013-11-14 Joel Brobecker <brobecker@adacore.com>
1634
1635 * language.h: Add "symtab.h" #include.
1636
6c1b0f7b
DE
16372013-11-13 Doug Evans <xdje42@gmail.com>
1638
1639 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1640 specific breakpoints, don't evaluate breakpoint condition if
1641 different thread.
1642
74921315
KS
16432013-11-13 Keith Seitz <keiths@redhat.com>
1644
248ace2e 1645 PR c++/7935
74921315
KS
1646 PR c++/10541
1647 * cp-support.c (insepct_type): Add support for substituting
1648 namespace aliases, too.
1649 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1650 for DW_TAG_imported_declaration.
1651 (add_partial_symbol): Likewise.
1652 (process_die): Handle namespace aliases with
1653 read_namespace_alias.
1654 (die_needs_namespace): Add DW_TAG_imported_declaration.
1655 (read_namespace_alias): New function.
1656 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1657 (new_symbol_full): Handle DW_TAG_imported_declaration.
1658
793156e6
KS
16592013-11-13 Keith Seitz <keiths@redhat.com>
1660
1661 * p-exp.y (uptok): Make first parameter const.
1662 (yylex): Make `tokstart' and `tokptr' const.
1663 Don't copy the lexer input to a temporary buffer.
1664 Make `p' const.
1665 Remove const workaround for parse_escape.
1666 Create a temporary buffer for a convenience variable instead
1667 of doing in-place modification of the input.
1668 If a match is found with a different case from the input,
1669 do not change the input at all.
1670 Use `tmp' to construct the resultant stoken instead of
1671 `tokstart'.
1672
c42bd95a
DE
16732013-11-13 Doug Evans <xdje42@gmail.com>
1674
1675 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1676
93973826
JB
16772013-11-13 Joel Brobecker <brobecker@adacore.com>
1678
1679 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1680 entry with "ada-exceptions".
1681
846060df
JB
16822013-11-13 Joel Brobecker <brobecker@adacore.com>
1683
1684 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1685 after re-initialization of OBJFILE's obstack.
1686
5efd1b2b 16872013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1688
1689 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1690 bs->stop != 0 on entry. Update function comment. Simplify early
1691 exit for frame mismatch. Reindent rest of function.
1692
ee7615e1
AA
16932013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1694
1695 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1696 NULL.
1697
8943b874
DE
16982013-11-12 Doug Evans <dje@google.com>
1699
1700 Work around gold/15646.
1701 * dwarf2read.c (read_index_from_section): Update comment.
1702 (struct dw2_symtab_iterator): New member global_seen.
1703 (dw2_symtab_iter_init): Initialize it.
1704 (dw2_symtab_iter_next): Skip duplicate global symbols.
1705 (dw2_expand_symtabs_matching): Ditto.
1706
a8a9844d
JB
17072013-11-12 Joel Brobecker <brobecker@adacore.com>
1708
1709 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1710 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1711 command.
1712 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1713 (mi_cmd_info_ada_exceptions): New function.
1714 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1715
778865d3
JB
17162013-11-12 Joel Brobecker <brobecker@adacore.com>
1717
1718 * ada-lang.h: #include "vec.h".
1719 (struct ada_exc_info): New.
1720 (ada_exc_info): New typedef.
1721 (DEF_VEC_O(ada_exc_info)): New vector.
1722 (ada_exceptions_list): Add declaration.
1723 * ada-lang.c (ada_is_exception_sym)
1724 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1725 (sort_remove_dups_ada_exceptions_list)
1726 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1727 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1728 (ada_exceptions_list_1, ada_exceptions_list)
1729 (info_exceptions_command): New function.
1730 (_initialize_ada_language): Add "info exception" command.
1731
bc79de95
PM
17322013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1733
1734 PR python/15629
1735 * NEWS: Add linetable feature.
1736 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1737 * python/py-linetable.c: New file.
1738 * python/py-symtab.c (stpy_get_linetable): New function.
1739 * python/python-internal.h (symtab_to_linetable_object): Declare.
1740 (gdbpy_initialize_linetable): Ditto.
1741 * python/python.c (_initialize_python): Call
1742 gdbpy_initialize_linetable.
1743
2df4d1d5
JB
17442013-11-11 Joel Brobecker <brobecker@adacore.com>
1745
1746 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1747 the documentation of fields "except_string" and "condition".
1748 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1749 CONDITION on the heap before passing it to
1750 create_ada_exception_catchpoint.
1751 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1752 CONDITION.
1753
99c1d451
TT
17542013-11-11 Tom Tromey <tromey@redhat.com>
1755
1756 * config.in, configure: Rebuild.
1757 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1758
8ca5801b
JB
17592013-11-11 Joel Brobecker <brobecker@adacore.com>
1760
1761 * remote-sim.c (gdbsim_detach): Break declaration into
1762 shorter lines. No code change.
1763
7a06d430
EBM
17642013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1765
1766 * remote-sim.c (gdbsim_detach): Fix prototype.
1767
73be47f5
DE
17682013-11-08 Doug Evans <dje@google.com>
1769
1770 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1771 (create_debug_types_hash_table): Only print debugging messages for
1772 each TU if dwarf2-read >= 2.
1773 (process_queue): Ditto.
1774 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1775 Update doc string.
1776
a18d8f10
TT
17772013-11-08 Tom Tromey <tromey@redhat.com>
1778
1779 * configure: Rebuild.
1780 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1781
9467110b
TT
17822013-11-08 Tom Tromey <tromey@redhat.com>
1783
1784 * configure, config.in: Rebuild.
1785 * configure.ac: Remove unused configury.
1786
69706679
TT
17872013-11-08 Tom Tromey <tromey@redhat.com>
1788
1789 * m32c-tdep.c: Use gdb_string.h.
1790
9b4bea72
TT
17912013-11-08 Tom Tromey <tromey@redhat.com>
1792
1793 * configure, config.in: Rebuild.
1794 * configure.ac: Remove all link.h-related checks.
1795
3266f10b
TT
17962013-11-08 Tom Tromey <tromey@redhat.com>
1797
1798 * acinclude.m4: Include common.m4.
1799 * common/common.m4: New file.
1800 * configure, config.in: Rebuild.
1801 * configure.ac: Use GDB_AC_COMMON.
1802
db0fec5c
DE
18032013-11-08 Doug Evans <dje@google.com>
1804
1805 * NEWS: Mention that "set debug symtab-create" now accepts a
1806 verbosity level.
1807 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1808 to set the symtab's primary flag.
1809 * jit.c (finalize_symtab): Ditto.
1810 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1811 * symfile.c (allocate_symtab): Only print debugging messages for
1812 symtab_create_debug levels 2 and higher.
1813 * symtab.c (symtab_create_debug): Change type to unsigned int.
1814 (set_symtab_primary): New function.
1815 (_initialize_symtab): Change "set debug symtab-create" to a
1816 zuinteger option.
1817 * symtab.h (set_symtab_primary): Declare.
1818 (symtab_create_debug): Update decl.
1819
52554a0e
TT
18202013-11-08 Tom Tromey <tromey@redhat.com>
1821
1822 * aix-thread.c (aix_thread_detach): Update.
1823 * corelow.c (core_detach): Update.
1824 * darwin-nat.c (darwin_detach): Update.
1825 * dec-thread.c (dec_thread_detach): Update.
1826 * gnu-nat.c (gnu_detach): Update.
1827 * go32-nat.c (go32_detach): Update.
1828 * inf-ptrace.c (inf_ptrace_detach): Update.
1829 * inf-ttrace.c (inf_ttrace_detach): Update.
1830 * linux-fork.c (linux_fork_detach): Update.
1831 * linux-fork.h (linux_fork_detach): Update.
1832 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1833 local for const-correctness.
1834 * linux-thread-db.c (thread_db_detach): Update.
1835 * monitor.c (monitor_detach): Update.
1836 * nto-procfs.c (procfs_detach): Update.
1837 * procfs.c (procfs_detach): Update.
1838 * record.c (record_detach): Update.
1839 * record.h (record_detach): Update.
1840 * remote-m32r-sdi.c (m32r_detach): Update.
1841 * remote-mips.c (mips_detach): Update.
1842 * remote-sim.c (gdbsim_detach): Update.
1843 * remote.c (remote_detach_1, remote_detach)
1844 (extended_remote_detach): Update.
1845 * sol-thread.c (sol_thread_detach): Update.
1846 * target.c (target_detach): Make "args" const.
1847 (init_dummy_target): Update.
1848 * target.h (struct target_ops) <to_detach>: Make argument const.
1849 (target_detach): Likewise.
1850 * windows-nat.c (windows_detach): Update.
1851
204b5331
DE
18522013-11-07 Doug Evans <dje@google.com>
1853
1854 PR 11786
1855 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1856 and align fields for PT_GNU_RELRO segments.
1857
92e32e33
PM
18582013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1859
ef1bc9e7
AM
1860 PR python/15747
1861 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1862
f76c27b5
PM
18632013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1864
1865 * NEWS: Document Python temporary breakpoint support.
1866 * python/py-breakpoint.c (bppy_get_temporary): New function.
1867 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1868 to temporary if True.
1869
d52cd232
JM
18702013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1871
1872 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1873 removed to allow analyzing unconditional branch instructions
1874 with PC-relative offsets of zero.
1875
fa4d0c40
YQ
18762013-11-07 Yao Qi <yao@codesourcery.com>
1877
1878 * mi/mi-cmd-var.c: Include "language.h".
1879 (mi_cmd_var_info_expression): Get language name from
1880 language_defn.
1881 * varobj.c (varobj_language_string): Remove.
1882 (variable_language): Remove declaration.
1883 (languages): Remove.
1884 (varobj_get_language): Change the type of return value.
1885 (variable_language): Remove.
1886 * varobj.h (enum varobj_languages): Remove.
1887 (varobj_language_string): Remove declaration.
1888 (varobj_get_language): Update declaration.
1889
6abde28f
YQ
18902013-11-07 Yao Qi <yao@codesourcery.com>
1891
1892 * language.h (struct language_defn) <la_natural_name>: New
1893 field.
1894 * ada-lang.c (ada_language_defn): Initialize field
1895 'la_natural_name'.
1896 * c-lang.c (c_language_defn): Likewise.
1897 (cplus_language_defn, asm_language_defn): Likewise.
1898 * d-lang.c (d_language_defn): Likewise.
1899 * f-lang.c (f_language_defn): Likewise.
1900 * go-lang.c (go_language_defn): Likewise.
1901 * jv-lang.c (java_language_defn): Likewise.
1902 * language.c (unknown_language_defn ): Likewise.
1903 (auto_language_defn): Likewise.
1904 * m2-lang.c (m2_language_defn): Likewise.
1905 * objc-lang.c (objc_language_defn): Likewise.
1906 * opencl-lang.c (opencl_language_defn): Likewise.
1907 * p-lang.c (pascal_language_defn): Likewise.
1908
27cd387b
YQ
19092013-11-07 Yao Qi <yao@codesourcery.com>
1910
1911 * language.c (language_str): Return const char *.
1912 (add_language): Add const to 'language_names'
1913 * language.h (struct language_defn) <la_name>: Add const.
1914 (language_str: Update declaration.
1915
6682d959
AA
19162013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1917
1918 * s390-linux-nat.c (s390_read_description): Consider the TE field
1919 in the HWCAP for determining 'have_regset_tdb'.
1920
b9502d3f
WN
19212013-11-06 Will Newton <will.newton@linaro.org>
1922
1923 PR gdb/12866
1924 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1925 values. (read_partial_die): Likewise.
1926
840da61a
MB
19272013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1928
1929 PR cli/16122
1930 * top.c (command_line_input): Unify interactivity tests to use
1931 input_from_terminal_p.
1932 * event-top.c (command_line_handler): Likewise.
1933
7636ccf9
YQ
19342013-11-06 Yao Qi <yao@codesourcery.com>
1935
1936 * Makefile.in (check-perf): New target.
1937
12b27276
WN
19382013-11-05 Will Newton <will.newton@linaro.org>
1939
1940 PR gdb/7670
1941 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1942 (arm_print_float_info): Likewise.
1943
67c059c2
AB
19442013-11-04 Anton Blanchard <anton@samba.org>
1945
1946 * target.c (memory_xfer_partial): Cap write to 4KB.
1947
0569175e
TSD
19482013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1949
1950 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1951 probe scan even when the arch provides no get_longjmp_target.
1952
b18e90f5
PA
19532013-10-31 Pedro Alves <palves@redhat.com>
1954
1955 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1956 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1957 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1958 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1959 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1960 <bpstat handling>: If the bpstat chain wants the signal to be
1961 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1962 GDB_SIGNAL_TRAP.
1963
638aa5a1
AB
19642013-10-31 Andrew Burgess <aburgess@broadcom.com>
1965
1966 * breakpoint.c (update_watchpoint): Update error message and add
1967 an additional error message.
1968
0e5fae36
UW
19692013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1970
1971 * s390-tdep.h: Rename to...
1972 * s390-linux-tdep.h: ...here.
1973 * s390-tdep.c: Rename to...
1974 * s390-linux-tdep.c: ...here. Adjust #include.
1975 * s390-nat.c: Rename to...
1976 * s390-linux-nat.c: ...here. Adjust #include.
1977 * config/s390/s390.mh: Rename to...
1978 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1979 s390-linux-nat.o.
1980 * configure.host: Reflect host rename "s390" -> "linux".
1981 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1982 * Makefile.in (ALL_TARGET_OBS): Likewise.
1983 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1984 s390-linux-tdep.h.
1985 (ALLDEPFILES): Reflect rename of .c files.
1986
34201ae3
UW
19872013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1988
1989 * s390-nat.c: Whitespace cleanup.
1990 * s390-tdep.c: Likewise.
1991 * s390-tdep.h: Remove empty line at end of file.
1992
e17aaa33
MR
19932013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1994
1995 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1996 siginfo_size.
1997
aee17e42
TT
19982013-10-29 Tom Tromey <tromey@redhat.com>
1999
2000 * utils.c (reg): Move undefinition...
2001 * gdb_curses.h: ... here. Update comment to mention AIX.
2002
9ac69859
NB
20032013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2004
2005 * exec.h (add_target_sections_of_objfile): New declaration.
2006 * exec.c (add_target_sections_of_objfile): New function.
2007 * symfile.c (add_symbol_file_command): Update current target sections.
2008 (remove_symbol_file_command): New command.
2009 (symfile_free_objfile): New function.
2010 (_initialize_symfile): Register observer for free_objfile events.
2011 * NEWS: Add description of the remove-symbol-file command.
2012 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2013 * objfiles.c (free_objfile): Notify free_objfile.
2014 (is_addr_in_objfile): New function.
2015 * objfiles.h (is_addr_in_objfile): New declaration.
2016 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2017 events instead of solib_unloaded events.
2018 (_initialize_printcmd): Register observer for free_objfile instead
2019 of solib_unloaded notifications.
2020 * solib.c (remove_user_added_objfile): New function.
2021 (_initialize_symfile): Add remove-symbol-file.
2022
f69d9aef
AB
20232013-10-29 Andrew Burgess <aburgess@broadcom.com>
2024
2025 * infcmd.c (default_print_one_register_info): Use val_print to
2026 print all values even optimized out or unavailable ones. Don't
2027 try to print a raw form of optimized out or unavailable values.
2028
487ad57c
YQ
20292013-10-29 Yao Qi <yao@codesourcery.com>
2030
2031 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2032 parameter 'arg' instead of from program_space_data.
2033 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2034 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2035 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2036 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2037 * inflow.c (inflow_inferior_data_cleanup): Get data from
2038 parameter 'arg' instead of inferior_data.
2039 * registry.h: Add comments.
2040
3c4797ba
PA
20412013-10-28 Pedro Alves <palves@redhat.com>
2042
2043 * breakpoint.c (watchpoints_triggered)
2044 <!target_stopped_data_address>: Hardcode return 1.
2045
cdaa5b73
PA
20462013-10-28 Pedro Alves <palves@redhat.com>
2047
2048 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2049 level and reindent.
2050
94c57d6a
PA
20512013-10-28 Pedro Alves <palves@redhat.com>
2052
2053 * infrun.c (process_event_stop_test): New function, factored out
2054 from handle_inferior_event.
2055 (handle_inferior_event): 'process_event_stop_test' is now a
2056 function instead of a goto label -- adjust.
2057
fcf3daef
PA
20582013-10-28 Pedro Alves <palves@redhat.com>
2059
2060 * infrun.c (handle_inferior_event): Move process_event_stop_test
2061 goto label to the else branch of the ecs->random_signal check,
2062 along with FRAME and GDBARCH re-fetching.
2063
c447ac0b
PA
20642013-10-28 Pedro Alves <palves@redhat.com>
2065
2066 * infrun.c (switch_back_to_stepped_thread): New function, factored
2067 out from handle_inferior_event.
2068 (handle_inferior_event): Adjust to call
2069 switch_back_to_stepped_thread. Call it also at the tail of the
2070 random signal handling, and return, instead of also handling
2071 random signals just before the stepping tests.
2072
f05e4c11
PA
20732013-10-28 Pedro Alves <palves@redhat.com>
2074
2075 * infrun.c (clear_stop_func): Delete.
2076 (handle_inferior_event): Don't call clear_stop_func and don't
2077 clear 'ecs->random_signal'.
2078
ca20d462
YQ
20792013-10-27 Yao Qi <yao@codesourcery.com>
2080
2081 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2082 (varobj_create, varobj_get_path_expr): Update.
2083 (varobj_value_has_mutated, varobj_update): Likewise.
2084 (create_child_with_value, new_root_variable): Likewise.
2085 (number_of_children, name_of_variable): Likewise.
2086 (value_of_child, my_value_of_variable): Likewise.
2087 (varobj_value_is_changeable_p): Likewise.
2088
a53b64ea
YQ
20892013-10-25 Yao Qi <yao@codesourcery.com>
2090
2091 * language.h (struct lang_varobj_ops): Declare.
2092 (struct language_defn) <la_varobj_ops>: New field.
2093 * ada-lang.c: Include "varobj.h"
2094 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2095 ada_varobj_ops.
2096 * c-lang.c: Include "varobj.h"
2097 (c_language_defn): Initialize field 'la_varobj_ops' with
2098 c_varobj_ops.
2099 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2100 cplus_varobj_ops.
2101 (asm_language_defn): Initialize field 'la_varobj_ops' with
2102 default_varobj_ops.
2103 (minimal_language_defn): Likewise.
2104 * d-lang.c (d_language_defn): Likewise.
2105 * f-lang.c (f_language_defn): Likewise.
2106 * go-lang.c (go_language_defn): Likewise.
2107 * m2-lang.c (m2_language_defn): Likewise.
2108 * objc-lang.c (objc_language_defn): Likewise.
2109 * opencl-lang.c (opencl_language_defn): Likewise.
2110 * p-lang.c (pascal_language_defn): Likewise.
2111 * language.c (unknown_language_defn): Likewise.
2112 (auto_language_defn): Likewise.
2113 (local_language_defn): Likewise.
2114 * jv-lang.c (java_language_defn): Initialize field
2115 'la_varobj_ops' with java_varobj_ops.
2116 * varobj.c (varobj_create): Update.
2117 * varobj.h (default_varobj_ops): Define macro.
2118
686d4def
PA
21192013-10-25 Pedro Alves <palves@redhat.com>
2120
2121 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2122 static field value.
2123 (cp_print_static_field): If the value is entirely optimized out,
2124 print <optimized out> here.
2125 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2126 static field value.
2127 * p-valprint.c (pascal_object_print_static_field): If the value is
2128 entirely optimized out, print <optimized out> here.
2129 * valops.c (do_search_struct_field)
2130 (value_struct_elt_for_reference): No longer handle a NULL static
2131 field value.
2132 * value.c (value_static_field): Return an optimized out value
2133 instead of NULL.
2134
6c177e28
YQ
21352013-10-25 Yao Qi <yao@codesourcery.com>
2136
2137 * remote.c (remote_traceframe_info): Return early if
2138 traceframe is not selected.
2139
98322bfa
YQ
21402013-10-25 Yao Qi <yao@codesourcery.com>
2141
2142 * tracepoint.c (traceframe_fun): Remove.
2143 (traceframe_sal): Remove.
2144 (set_traceframe_context): Add local variables.
2145
6ba1f115
JB
21462013-10-25 Joel Brobecker <brobecker@adacore.com>
2147
2148 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2149 and parameter name.
2150
bbe769cc
MR
21512013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2152
2153 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2154 failure from register information collection.
2155
72ee4495 21562013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
2157
2158 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2159 member.
2160 (linux_corefile_thread_callback): Update accordingly.
2161 (linux_make_corefile_notes): Likewise.
2162
98882a26
PA
21632013-10-24 Pedro Alves <palves@redhat.com>
2164
2165 * NEWS (New options): Mention set/show startup-with-shell.
2166 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2167 instead of 3.
2168 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2169 startup-with-shell'.
2170 (show_startup_with_shell): New function.
2171 (_initialize_fork_child): Register the set/show startup-with-shell
2172 commands.
2173 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2174 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2175 * procfs.c (procfs_init_inferior): Remove comment.
2176 * infcmd.c (startup_with_shell): New global.
2177 * inferior.h (startup_with_shell): Declare global.
2178 (STARTUP_WITH_SHELL): Delete.
2179 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2180
c9737c08
PA
21812013-10-23 Pedro Alves <palves@redhat.com>
2182
2183 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2184 * common/signals.c: Include "gdb_assert.h".
2185 (signals): New field 'symbol'.
2186 (SET): Use the 'symbol' parameter.
2187 (gdb_signal_to_symbol_string): New function.
2188 * infrun.c (handle_inferior_event) <random signal>: In debug
2189 output, print the random signal enum as string in addition to its
2190 number.
2191 * target/waitstatus.c (target_waitstatus_to_string): Print the
2192 signal's enum value as string instead of the (POSIX) signal name.
2193
f60db4f0
GB
21942013-10-23 Gary Benson <gbenson@redhat.com>
2195
2196 PR 16013
2197 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2198 from 32 to 18. Adjusted fscanf format string accordingly.
2199 (Avoids leaving cmd unterminated.)
2200 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2201 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2202 that local_address and remote_address will not overflow.
2203 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2204 leaving dependencies unterminated. Parse size as "%u" to match
2205 definition.
2206
6d3e7a94
PA
22072013-10-22 Pedro Alves <palves@redhat.com>
2208
2209 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2210 set ecs->random signal.
2211
42ec045f
PA
22122013-10-22 Pedro Alves <palves@redhat.com>
2213
2214 * infrun.c (keep_going): Update comments.
2215
22162013-10-22 Pedro Alves <palves@redhat.com>
2217
2218 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2219 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2220
22212013-10-22 Pedro Alves <palves@redhat.com>
2222
2223 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2224 GDB_EXC_BAD_ACCESS.
2225 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2226 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2227 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2228 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2229 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2230 (GDB_SIGNAL_LAST): Change description string.
2231 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2232 Adjust to signal renaming.
2233 * darwin-nat.c (darwin_decode_message): Likewise.
2234
c8fde1b1
JM
22352013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2236
2237 * MAINTAINERS (Write After Approval): Add myself to the list.
2238
e8369a73
AB
22392013-10-18 Andrew Burgess <aburgess@broadcom.com>
2240
2241 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2242 forced off, downgrade them to software watchpoints if possible,
2243 and error out if not possible.
2244 (watch_command_1): Move watchpoint type selection closer to
2245 watchpoint creation, and extend the comments.
2246
776f04fa
PA
22472013-10-18 Pedro Alves <palves@redhat.com>
2248
2249 PR gdb/16062
2250 * infrun.c (handle_inferior_event): Keep going if we got a random
2251 signal we should not stop for, instead of falling through to the
2252 step tests.
2253
0c6faab5
YQ
22542013-10-18 Yao Qi <yao@codesourcery.com>
2255
2256 * c-varobj.c (cplus_number_of_children): Fix indentation.
2257
50b34a18
TT
22582013-10-17 Tom Tromey <tromey@redhat.com>
2259
2260 PR gdb/15995:
2261 * printcmd.c (printcmd): Call gdb_flush.
2262
5c4c8a59
TT
22632013-10-17 Tom Tromey <tromey@redhat.com>
2264
2265 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2266 (elf_locate_sections): Update.
2267
c4124bf1
YQ
22682013-10-17 Yao Qi <yao@codesourcery.com>
2269
2270 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2271 * ada-varobj.c: Remove the include of ada-varobj.h.
2272 (ada_varobj_get_number_of_children): Declare.
2273 (ada_varobj_get_name_of_child): Make it static.
2274 (ada_varobj_get_path_expr_of_child): Likewise.
2275 (ada_varobj_get_value_of_child): Likewise.
2276 (ada_varobj_get_type_of_child): Likewise.
2277 (ada_varobj_get_value_of_array_variable): Likewise.
2278 * ada-varobj.h: Remove.
2279
99ad9427
YQ
22802013-10-17 Yao Qi <yao@codesourcery.com>
2281
2282 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2283 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2284 * ada-varobj.c: Include "varobj.h".
2285 (ada_number_of_children): New. Moved from varobj.c.
2286 (ada_name_of_variable, ada_name_of_child): Likewise.
2287 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2288 (ada_type_of_child, ada_value_of_variable): Likewise.
2289 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2290 (ada_varobj_ops): New.
2291 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2292 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2293 * gdbtypes.h (get_target_type): Declare.
2294 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2295 "ada-lang.h".
2296 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2297 (ANONYMOUS_UNION_NAME): Likewise.
2298 (get_type, get_value_type, get_target_type): Remove declarations.
2299 (value_get_print_value, varobj_value_get_print_value): Likewise.
2300 (c_number_of_children, c_name_of_variable): Likewise.
2301 (c_name_of_child, c_path_expr_of_child): Likewise.
2302 (c_value_of_child, c_type_of_child): Likewise.
2303 (c_value_of_variable, cplus_number_of_children): Likewise.
2304 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2305 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2306 (cplus_value_of_child, cplus_type_of_child): Likewise.
2307 (cplus_value_of_variable, java_number_of_children): Likewise.
2308 (java_name_of_variable, java_name_of_child): Likewise.
2309 (java_path_expr_of_child, java_value_of_child): Likewise.
2310 (java_type_of_child, java_value_of_variable): Likewise.
2311 (ada_number_of_children, ada_name_of_variable): Likewise.
2312 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2313 (ada_value_of_child, ada_type_of_child): Likewise.
2314 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2315 (ada_value_has_mutated): Likewise.
2316 (struct language_specific): Move it to varobj.h.
2317 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2318 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2319 Callers update.
2320 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2321 Make it extern.
2322 (is_anonymous_child): Move it to c-varobj.c and rename to
2323 varobj_is_anonymous_child. Caller update.
2324 (get_type): Move it to c-varobj.c.
2325 (get_value_type): Rename it varobj_get_value_type. Make it
2326 extern.
2327 (get_target_type): Move it gdbtypes.c.
2328 (varobj_formatted_print_options): New function.
2329 (value_get_print_value): Rename it to
2330 varobj_value_get_print_value and make it extern.
2331 (varobj_value_is_changeable_p): Make it extern.
2332 (adjust_value_for_child_access): Move it to c-varobj.c.
2333 (default_value_is_changeable_p): Rename it to
2334 varobj_default_value_is_changeable_p. Make it extern.
2335 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2336 (c_name_of_child, c_path_expr_of_child): Likewise.
2337 (c_value_of_child, c_type_of_child): Likewise.
2338 (c_value_of_variable, cplus_number_of_children): Likewise.
2339 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2340 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2341 (cplus_value_of_child, cplus_type_of_child): Likewise.
2342 (cplus_value_of_variable): Likewise.
2343 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2344 (java_name_of_child, java_path_expr_of_child): Likewise.
2345 (java_value_of_child, java_type_of_child): Likewise.
2346 (java_value_of_variable): Likewise.
2347 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2348 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2349 (ada_value_of_child, ada_type_of_child): Likewise.
2350 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2351 (ada_value_has_mutated): Likewise.
2352 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2353 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2354 (c_varobj_ops, cplus_varobj_ops): Declare.
2355 (java_varobj_ops, ada_varobj_ops): Declare.
2356 (varobj_default_value_is_changeable_p): Declare.
2357 (varobj_value_is_changeable_p): Declare.
2358 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2359 (varobj_get_path_expr_parent): Declare.
2360 (varobj_value_get_print_value): Declare.
2361 (varobj_formatted_print_options): Declare.
2362 (varobj_restrict_range): Declare.
2363
c8a62302
LM
23642013-10-17 Luis Machado <lgustavo@codesourcery.com>
2365
2366 * target/waitstatus.h (target_waitkind): Remove spurious
2367 character from the comments.
2368
eade6471
JB
23692013-10-17 Joel Brobecker <brobecker@adacore.com>
2370
2371 * gdbarch.sh (get_longjmp_target): Add method documentation.
2372 * gdbarch.h: Regenerate.
2373
5411b26c
TT
23742013-10-16 Tom Tromey <tromey@redhat.com>
2375
2376 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2377 label.
2378
87326c87
LM
23792013-10-16 Luis Machado <lgustavo@codesourcery.com>
2380
2381 * gcore.in: Call GDB using the full path to the gcore script.
2382 Error out if the GDB binary is not found.
2383
fd0a4d76
SDJ
23842013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2385
2386 PR gdb/16014
2387 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2388 sizeof.
2389
d92f7ee3
SDJ
23902013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2391
2392 PR gdb/16042
2393 * target.c (target_disable_btrace): Fix invalid return value for
2394 void function.
2395 (target_teardown_btrace): Likewise.
2396
bb5ce47a
YQ
23972013-10-14 Yao Qi <yao@codesourcery.com>
2398
2399 * varobj.c (struct varobj): Move most of the fields to
2400 varobj.h.
2401 (struct varobj_dynamic): New struct.
2402 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2403 (varobj_has_more): Likewise.
2404 (dynamic_varobj_has_child_method): Likewise.
2405 (update_dynamic_varobj_children): Likewise.
2406 (varobj_get_num_children): Likewise.
2407 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2408 (install_new_value_visualizer): Likewise.
2409 (install_new_value_visualizer, install_new_value): Likewise.
2410 (varobj_update, new_variable, free_variable): Likewise.
2411 (my_value_of_variable, value_get_print_value): Likewise.
2412 (install_visualizer): Change the type of parameter 'var' to
2413 'struct varobjd_dynamic *'. Callers update.
2414 * varobj.h (struct varobj): Moved from varobj.c.
2415 (struct varobj) <dynamic>: New field.
2416
0b76b0ce
SL
24172013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2418
2419 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2420 as the preferred name of r30.
2421 * nios2-linux-tdep.c (reg_offsets): Likewise.
2422 * features/nios2-cpu.xml: Likewise.
2423 * features/nios2-linux.c: Regenerated.
2424 * features/nios2.c: Regenerated.
2425 * regformats/nios2-linux.dat: Regenerated.
2426
4856b6bc
JK
24272013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2428
2429 Canonicalize directories for EXEC_FILENAME.
2430 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2431 exec_filename.
2432 * utils.c (gdb_realpath_keepfile): New function.
2433 * utils.h (gdb_realpath_keepfile): New declaration.
2434
9b557b58
DE
24352013-10-11 Doug Evans <dje@google.com>
2436
2437 * Makefile.in (GDBFLAGS): New variable.
2438 (run): New rule.
2439
ce13fade
JB
24402013-10-11 Joel Brobecker <brobecker@adacore.com>
2441
2442 * NEWS: Add entry documenting the new "-catch-assert" and
2443 "-catch-exception" GDB/MI commands.
2444
349774ef
JB
24452013-10-11 Joel Brobecker <brobecker@adacore.com>
2446
2447 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2448 "enabled".
2449 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2450 "enabled". Set B->ENABLE_STATE accordingly.
2451 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2452 ada-lang.c.
2453 (create_ada_exception_catchpoint): Add declaration.
2454 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2455 (create_ada_exception_catchpoint): Make non-static. Add new
2456 parameter "disabled". Use it in call to
2457 init_ada_exception_breakpoint.
2458 (catch_ada_exception_command): Add parameter "enabled" in call
2459 to create_ada_exception_catchpoint.
2460 (catch_assert_command): Likewise.
2461
2462 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2463 Add declarations.
2464 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2465 "catch-exception" commands.
2466 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2467 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2468
761269c8
JB
24692013-10-11 Joel Brobecker <brobecker@adacore.com>
2470
2471 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2472 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2473 of all its enumerates with "ada_". Update the rest of this
2474 file throughout.
2475
b4a5b78b
JB
24762013-10-11 Joel Brobecker <brobecker@adacore.com>
2477
2478 * ada-lang.c (ada_decode_exception_location): Delete.
2479 (create_ada_exception_catchpoint): Remove arguments "sal",
2480 "addr_string" and "ops". Add argument "ex_kind" instead.
2481 Adjust implementation accordingly, calling ada_exception_sal
2482 to get the entities it no longer gets passed as arguments.
2483 Document the function's arguments.
2484 (catch_ada_exception_command): Use catch_ada_exception_command_split
2485 instead of ada_decode_exception_location, and update call to
2486 create_ada_exception_catchpoint.
2487 (catch_ada_assert_command_split): Renames
2488 ada_decode_assert_location. Remove parameters "addr_string" and
2489 "ops", and now returns void. Adjust implementation accordingly.
2490 Update the function documentation.
2491 (catch_assert_command): Use catch_ada_assert_command_split
2492 instead of ada_decode_assert_location. Update call to
2493 create_ada_exception_catchpoint.
2494
7ad1d32c 24952013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2496
2497 * utils.h (perror_warning_with_name): Add declaration.
2498 * utils.c (perror_warning_with_name): New function.
2499 * cli/cli-cmds.c (source_script_with_search): Add call to
2500 perror_warning_with_name if from_tty is nul.
2501
7ad1d32c 25022013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2503
2504 * utils.c (perror_string): New function, extracted out of
2505 throw_perror_with_name.
2506 (throw_perror_with_name): Rework to use perror_string.
2507
bcc75809
YQ
25082013-10-11 Yao Qi <yao@codesourcery.com>
2509
2510 * remote.c (discard_pending_stop_replies_in_queue): Update
2511 declaration.
2512 (struct stop_reply) <rs>: New field.
2513 (remove_stop_reply_of_remote_state): New function.
2514 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2515 Callers update. Pass remove_stop_reply_of_remote_state to
2516 QUEUE_iterate.
2517 (remote_parse_stop_reply): Initialize field 'rs'.
2518
05feb193
WN
25192013-10-10 Will Newton <will.newton@linaro.org>
2520
2521 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2522 linux_init_abi.
2523
0d12017b
JB
25242013-10-10 Joel Brobecker <brobecker@adacore.com>
2525
2526 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2527 serial_baud_show_cmd.
2528 (_initialize_cli_cmds): Delete the code creating the
2529 "set/show remotebaud" commands.
2530 * serial.c (baud_rate): Move here from top.c.
2531 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2532 (_initialize_serial): Create "set/show serial baud" commands.
2533 Add "set/show remotebaud" command aliases.
2534 * top.c (baud_rate): Moved to serial.c.
2535 * NEWS: Document the new "set/show serial baud" commands,
2536 replacing "set/show remotebaud".
2537
578d3588
PA
25382013-10-09 Pedro Alves <palves@redhat.com>
2539
2540 * breakpoint.c (insert_bp_location): Use memory_error_message to
2541 build the memory error string.
2542 * c-lang.c: Include "gdbcore.h".
2543 (c_get_string): Use memory_error to throw error.
2544 (target_xfer_memory_error): Delete.
2545 (memory_error_message): New, factored out from
2546 target_xfer_memory_error.
2547 (memory_error): Change parameter type to target_xfer_error.
2548 Rewrite.
2549 (read_memory): Use memory_error instead of
2550 target_xfer_memory_error.
2551 * gdbcore.h: Include "target.h".
2552 (memory_error): Change parameter type to target_xfer_error.
2553 (memory_error_message): Declare function.
2554 * target.c (target_read_memory, target_read_stack)
2555 (target_write_memory, target_write_raw_memory): Return
2556 TARGET_XFER_E_IO on error. Adjust comments.
2557 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2558 instead of EIO.
2559 * target.h (target_read, target_insert_breakpoint)
2560 (target_remove_breakpoint): Adjust comments.
2561 * valprint.c (partial_memory_read): Rename parameter, and adjust
2562 comment.
2563 (val_print_string): Use memory_error_message to build the memory
2564 error string.
2565
c74e1ccf
JK
25662013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2569 result variable. Rename variable fopen_e_ever_failed to
2570 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2571
915215be
PA
25722013-10-09 Pedro Alves <palves@redhat.com>
2573
2574 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2575 (monitor_write_memory_longlongs, monitor_write_memory_block):
2576 Constify 'myaddr' parameter.
2577 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2578 helper.
2579 (monitor_xfer_partial): New function.
2580 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2581 hook. Install a to_xfer_partial hook.
2582
acd13123
TT
25832013-10-09 Tom Tromey <tromey@redhat.com>
2584
2585 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2586 bfd_get_alt_debug_link_info.
2587
40135bb1
JK
25882013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2589
2590 New flag OBJF_NOT_FILENAME.
2591 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2592 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2593 allocate_objfile.
2594 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2595 symbol_file_add_from_bfd.
2596 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2597 allocate_objfile.
2598 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2599 NULL.
2600 * objfiles.h (OBJF_NOT_FILENAME): New.
2601
dc294be5
TT
26022013-10-08 Tom Tromey <tromey@redhat.com>
2603
2604 * Makefile.in (SFILES): Add build-id.c.
2605 (HFILES_NO_SRCDIR): Add build-id.h.
2606 * build-id.c: New file, largely from elfread.c. Modified
2607 most functions.
2608 * build-id.h: New file.
2609 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2610 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2611 Search for dwz file using build-id.
2612 * elfread.c (build_id_bfd_get, build_id_verify)
2613 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2614
db230ce3
JB
26152013-10-08 Joel Brobecker <brobecker@adacore.com>
2616
2617 * ada-lang.c (compare_names_with_case): Renamed from
2618 compare_names, adding a new parameter "casing" and its handling.
2619 New function documentation.
2620 (compare_names): New function, implemented using
2621 compare_names_with_case.
2622
6501c98a
JB
26232013-10-08 Joel Brobecker <brobecker@adacore.com>
2624
2625 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2626
84a1243b
TT
26272013-10-07 Tom Tromey <tromey@redhat.com>
2628
2629 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2630 demangled_names_hash.
2631 (free_objfile): Don't delete the demangled_names_hash.
2632 * objfiles.h (struct objfile_per_bfd_storage)
2633 <demangled_names_hash>: New field.
2634 (struct objfile) <demangled_names_hash>: Move to
2635 objfile_per_bfd_storage.
2636 * symfile.c (reread_symbols): Don't delete the
2637 demangled_names_hash.
2638 * symtab.c (create_demangled_names_hash): Update.
2639 (symbol_set_names): Update.
2640
1da77581
TT
26412013-10-07 Tom Tromey <tromey@redhat.com>
2642
2643 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2644 needs_relocations>: New fields.
2645 (gdb_bfd_requires_relocations): New function.
2646 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2647 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2648 the BFD needs relocations applied.
2649
46ecd527
PA
26502013-10-07 Pedro Alves <palves@redhat.com>
2651
2652 PR breakpoints/11568
2653 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2654 the thread list" instead of "gone".
2655
0c557179
SDJ
26562013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2657
2658 * NEWS: Mention new convenience variable $_exitsignal.
2659 * corelow.c (core_open): Reset exit convenience variables. Set
2660 $_exitsignal to the uncaught signal which generated the corefile.
2661 * infrun.c (handle_inferior_event): Reset exit convenience
2662 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2663 (clear_exit_convenience_vars): New function.
2664 * inferior.h (clear_exit_convenience_vars): New prototype.
2665
1cc47d81
YQ
26662013-10-06 Yao Qi <yao@codesourcery.com>
2667
2668 * varobj.h: Add comments to enum varobj_languages.
2669
73869dc2
DE
26702013-10-04 Doug Evans <dje@google.com>
2671
2672 Add support for DWP file format version 2.
2673 * NEWS: Mention support for DWP file format version 2.
2674 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2675 union of asection, containing_section. New fields virtual_offset
2676 and is_virtual. Change type of readin filed from int to char.
2677 (dwo_sections, dwo_file): Tweak comments.
2678 (dwp_v2_section_ids): New enum.
2679 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2680 str_offsets, types.
2681 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2682 All uses updated.
2683 (virtual_v2_dwo_sections): New struct.
2684 (dwp_hash_table): New fields version, nr_columns. Change type of
2685 section_pool field to a union.
2686 (dwp_file): New field version.
2687 (dwarf2_has_info): Check for virtual sections.
2688 (get_containing_section): New function.
2689 (get_section_bfd_owner, get_section_bfd_section): Call it.
2690 (dwarf2_locate_sections): Update.
2691 (dwarf2_section_empty_p): Update.
2692 (dwarf2_read_section): Handle virtual sections.
2693 (locate_dwz_sections): Update.
2694 (create_dwp_hash_table): Document and handle V2 format.
2695 (locate_v1_virtual_dwo_sections): Renamed from
2696 locate_virtual_dwo_sections and update. All callers updated.
2697 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2698 Delete arg htab. Rename arg section_index to unit_index.
2699 All callers updated.
2700 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2701 All uses updated.
2702 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2703 (lookup_dwo_unit_in_dwp): Add V2 support.
2704 (dwarf2_locate_dwo_sections): Update.
2705 (dwarf2_locate_common_dwp_sections): Renamed from
2706 dwarf2_locate_dwp_sections and update. All callers updated.
2707 (dwarf2_locate_v2_dwp_sections): New function.
2708 (open_and_init_dwp_file): Add V2 support.
2709 (read_str_index): New locals str_section, str_offsets_section.
2710
9a2c3737
PA
27112013-10-04 Pedro Alves <palves@redhat.com>
2712
2713 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2714 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2715 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2716 describing comments with references to ptid.h.
2717 * common/ptid.h: Remove intro description of constructors,
2718 accessors and predicates.
2719 (struct ptid): Reformat.
2720 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2721 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2722 describing comments.
2723
f5371440
JB
27242013-10-04 Joel Brobecker <brobecker@adacore.com>
2725
2726 * aix-thread.c (sync_threadlists): Add missing ')' in call
2727 to ptid_build.
2728
793e1c06
JB
27292013-10-04 Joel Brobecker <brobecker@adacore.com>
2730
2731 * procfs.c (procfs_init_inferior): Fix typo causing the build
2732 to fail.
2733
26f0edc1
JB
27342013-10-04 Joel Brobecker <brobecker@adacore.com>
2735
2736 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2737
5713b9b5
JB
27382013-10-04 Joel Brobecker <brobecker@adacore.com>
2739
2740 * mi/mi-main.c (run_one_inferior): Add function description.
2741 Make ARG a pointer to an integer whose value determines whether
2742 we should "run" or "start" the program.
2743 (mi_cmd_exec_run): Add handling of the "--start" option.
2744 Reject all other command-line options.
2745 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2746
f48ff2a7
YQ
27472013-10-04 Yao Qi <yao@codesourcery.com>
2748
2749 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2750 (struct notif_client) <pending_event>: Moved
2751 to struct remote_notif_state.
2752 <id>: New field.
2753 (struct remote_notif_state) <pending_event>: New field.
2754 (notif_event_xfree): Declare.
2755 * remote-notif.c (handle_notification): Adjust.
2756 (notif_event_xfree): New function.
2757 (do_notif_event_xfree): Call notif_event_xfree.
2758 (remote_notif_state_xfree): Call notif_event_xfree to free
2759 each element in field pending_event.
2760 * remote.c (discard_pending_stop_replies): Remove declaration.
2761 (discard_pending_stop_replies_in_queue): Declare.
2762 (remote_close): Call discard_pending_stop_replies_in_queue
2763 instead of discard_pending_stop_replies.
2764 (remote_start_remote): Adjust.
2765 (stop_reply_xfree): Call notif_event_xfree.
2766 (notif_client_stop): Adjust initialization.
2767 (remote_notif_remove_all): Rename it to ...
2768 (remove_stop_reply_for_inferior): ... this. Update comments.
2769 Don't check INF is NULL.
2770 (discard_pending_stop_replies): Return early if notif_state is
2771 NULL. Adjust. Don't check INF is NULL.
2772 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2773 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2774 (remote_wait_ns): Likewise.
2775
5965e028
YQ
27762013-10-04 Yao Qi <yao@codesourcery.com>
2777
2778 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2779 (notif_queue): Remove.
2780 (remote_notif_process): Add one parameter 'notif_queue'.
2781 Update comments. Callers update.
2782 (remote_async_get_pending_events_token): Remove.
2783 (remote_notif_register_async_event_handler): Remove.
2784 (remote_notif_unregister_async_event_handler): Remove.
2785 (handle_notification): Add parameter 'notif_queue'. Update
2786 comments. Callers update.
2787 (notif_xfree): Remove.
2788 (remote_notif_state_allocate): New function.
2789 (remote_notif_state_xfree): New function.
2790 (_initialize_notif): Remove code to allocate queue.
2791 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2792 (struct remote_notif_state): New.
2793 (handle_notification): Update declaration.
2794 (remote_notif_process): Likewise.
2795 (remote_notif_register_async_event_handler): Remove.
2796 (remote_notif_unregister_async_event_handler): Remove.
2797 (remote_notif_state_allocate): Declare.
2798 (remote_notif_state_xfree): Declare.
2799 * remote.c (struct remote_state) <notif_state>: New field.
2800 (remote_close): Don't call
2801 remote_notif_unregister_async_event_handler. Call
2802 remote_notif_state_xfree.
2803 (remote_open_1): Don't call
2804 remote_notif_register_async_event_handler. Call
2805 remote_notif_state_allocate.
2806
5e5ac9a5
YQ
28072013-10-04 Yao Qi <yao@codesourcery.com>
2808
2809 * varobj.c (create_child_with_value): Remove 'const' from the
2810 type of parameter 'name'.
2811 (varobj_add_child): Likewise.
2812 (install_dynamic_child): Remove 'const' from the type of
2813 parameter 'name'.
2814 (varobj_add_child): Likewise.
2815 (create_child_with_value): Likewise. Update comments. Don't
2816 duplicate 'name'.
2817 (update_dynamic_varobj_children): Duplicate 'name'
2818 and pass it to install_dynamic_child.
2819
06ab7b19
PM
28202013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2821
2822 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2823 conversion logic to occur after PyLong_Check. Comment on order
2824 change significance.
2825 * python/py-arch.c (archpy_disassemble): Comment on order of
2826 conversion for integers and longs.
2827
8ae377e8
PA
28282013-10-03 Pedro Alves <palves@redhat.com>
2829
2830 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2831 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2832 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2833 PTRACE_O_TRACEFORK is not supported.
2834 (linux_test_for_tracesysgood): New function.
2835 (linux_test_for_tracefork): New function, factored out from
2836 linux_check_ptrace_features, and also don't kill child_pid here.
2837
b1328b1b
TG
28382013-10-03 Tristan Gingold <gingold@adacore.com>
2839
2840 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2841 Remove verbose error reporting. Use detected state to
2842 thread_set_state call.
2843 (i386_darwin_dr_get): Fix return type. Remove verbose error
2844 report.
2845 Remove trailing spaces.
2846
901461f8
PA
28472013-10-02 Pedro Alves <palves@redhat.com>
2848
2849 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2850 val_print_optimized_out.
2851 * jv-valprint.c (java_print_value_fields): Likewise.
2852 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2853 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2854 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2855 new optimized out value.
2856 * findvar.c (address_from_register): Likewise.
2857 * frame.c (put_frame_register): Tweak error string to say the
2858 register was not saved, rather than optimized out.
2859 * infcmd.c (default_print_one_register_info): Adjust call to
2860 val_print_optimized_out. Use value_of_register instead of
2861 get_frame_register_value.
2862 * mi/mi-main.c (output_register): Use value_of_register instead of
2863 get_frame_register_value.
2864 * valprint.c (valprint_check_validity): Likewise.
2865 (val_print_optimized_out): New value parameter. If the value is
2866 lval_register, print <not saved> instead.
2867 (value_check_printable, val_print_scalar_formatted): Adjust calls
2868 to val_print_optimized_out.
2869 * valprint.h (val_print_optimized_out): New value parameter.
2870 * value.c (struct value) <optimized_out>: Extend comment.
2871 (error_value_optimized_out): New function.
2872 (require_not_optimized_out): Use it. Use a different string for
2873 lval_register values.
2874 * value.h (error_value_optimized_out): New declaration.
2875 * NEWS: Mention <not saved>.
2876
042a84d9
JB
28772013-10-02 Joel Brobecker <brobecker@adacore.com>
2878
2879 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2880 strcmp to compare two symtab filenames.
2881
6b9780fb
JB
28822013-10-02 Joel Brobecker <brobecker@adacore.com>
2883
2884 * symtab.c (search_symbols_equal): Delete.
2885 (sort_search_symbols_remove_dups): Replace call to
2886 search_symbols_equal by call to compare_search_syms,
2887 adjusting as necessary.
2888
751e7549
PM
28892013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2890
2891 PR python/15579
751e7549
PM
2892 * python/python.c: Document gdb.execute command in Python help.
2893
1efd7661
PM
28942013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2895
2896 * python/py-frame.c (frame_info_to_frame_object): Use
2897 gdbpy_convert_exception. Clean up Python object on failure.
2898
562fc849
PM
28992013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2900
2901 * python/lib/gdb/command/frame_filters.py
2902 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2903 (ShowFrameFilterPriority.invoke): Ditto.
2904
d7561cbb
KS
29052013-10-01 Keith Seitz <keiths@redhat.com>
2906
2907 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2908 (parse_linespec): Make 'argptr' const.
2909 Remove temporary cast of 'argptr' to const char **.
2910 (decode_line_full): Pass const pointer to parse_linespec.
2911 (decode_line_1): Likewise.
2912 (decode_objc): Make local variable 'new_argptr' const.
2913 (find_function_symbols): Remove temporary cast to char *
2914 to find_imps.
2915 * objc-lang.c (find_imps): Make argument 'method' const.
2916 Return const.
2917 * objc-lang.h (find_imps): Likewise.
2918
29192013-10-01 Keith Seitz <keiths@redhat.com>
2920
2921 * completer.c (skip_quoted_chars): Make all arguments const.
2922 Return const.
2923 (skip_quoted): Likewise.
2924 * completer.h (skip_quoted_chars): Likewise.
2925 (skip_quoted): Likewise.
2926 * defs.h (skip_quoted): Remove duplicate declaration.
2927 * jv-exp.y: Include completer.h.
2928 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2929 * p-exp.y: Include completer.h.
2930
29312013-10-01 Keith Seitz <keiths@redhat.com>
2932
2933 * c-exp.y (parse_number): Make first argument const.
2934 Make a copy of the input to manipulate.
2935 (c_parse_escape): Make first argument const.
2936 Make local variable 'tokptr' const.
2937 (parse_string_or_char): Make first two arguments const.
2938 (macro_original_text): Make const.
2939 (lex_one_token): Make local variable 'tokstart' const.
2940 Likewise for local variables named 'p'.
2941 Cast away const for struct stoken (temporary).
2942 * c-lang.h (c_parse_escpae): Make first argument const.
2943 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2944 const.
2945 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2946 var_string case.
2947 * f-exp.y (parse_number): Make first argument const.
2948 (match_string_literal): Make local variable 'tokstart'
2949 const.
2950 (yylex): Make local variable 'p' const.
2951 Cast away const for struct stoken (temporary).
2952 * go-exp.y (parse_number): Make first argument const.
2953 (parse_string_or_char): Likewise.
2954 Make local variable 'tokstart' const.
2955 (lex_one_token): Likewise for numerous locals called 'p'.
2956 Cast away const for struct stoken (temporary).
2957 * jv-exp.y (parse_number): Make first argument const.
2958 Make local variables 'tokstart' and 'tokptr' const.
2959 Cast away const for call to skip_quoted (temporary).
2960 (yylex): Make local variable 'p' const.
2961 Cast away const for struct stoken (temporary).
2962 * m2-exp.y (parse_number): Make local variable 'p' const.
2963 (yylex): Likewise for 'tokstart'.
2964 Cast away const for struct stoken (temporary).
2965 Make local variable 'p' const.
2966 * macroexp.c (get_character_constant): Pass a const string
2967 to c_parse_escape.
2968 (get_string_literal): Likewise.
2969 (macro_expand_next): Make first argument const.
2970 Cast away const for init_shared_buffer.
2971 * macroexp.h (macro_expand_next): Make first argument const.
2972 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2973 Pass a const string to c_parse_escape.
2974 Make local variables 'p' and 'namestart' const.
2975 * parse.c (lexptr): Make const.
2976 (prev_lexptr): Likewise.
2977 (find_template_name_end): Return const.
2978 Make argument const, too.
2979 (parse_exp_in_context): Make first argument const.
2980 Remove the entire const_hack.
2981 (parse_exp_in_context_1): Make first argument const.
2982 * parser-defs.h (find_template_name_end): Return const.
2983 Make argument const, too.
2984 (lexptr): Make const.
2985 (prev_lexptr): Likewise.
2986 * utils.c (parse_escape): Make second argument const.
2987 * utils.h (parse_escape): Likewise.
2988
29892013-10-01 Keith Seitz <keiths@redhat.com>
2990
2991 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2992 is now const.
2993 (block_lookup): Make 'raw_name' and 'name' const.
2994 * ada-lex.l (processString): Update for struct stoken.ptr.
2995 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2996 (operator_stoken): Likewise.
2997 (lex_one_token): Remove temporary cast to char * for
2998 'yylval.sval.ptr'.
2999 * f-exp.y (yylex): Likewise.
3000 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3001 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3002 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3003 'yylval.sval.ptr'.
3004 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3005 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3006 * linespec.c (struct ls_parser): Make 'stream' const.
3007 (find_parameter_list_end): Make argument 'input' and local
3008 variable 'p' const.
3009 (linespec_lexer_lex_string): Make local variables 'start' and
3010 'p' const.
3011 Use skip_spaces_const instead of skip_spaces.
3012 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3013 const.
3014 (parse_linespec): Temporarily cast 'argptr' to const for
3015 'parser->lexer.stream'.
3016 * m2-exp.y (yylex): Remove temporary cast to char * for
3017 'yylval.sval.ptr'.
3018 * objc-lang.c (add_msglist): Make local variable 'p' const.
3019 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3020 (exp : STRING): Make 'sp' const.
3021 (parse_number): Make argument 'p' const.
3022 * parser-defs.h (struct stoken): Make 'ptr' const.
3023
193a8eac
DE
30242013-10-01 Doug Evans <dje@google.com>
3025
3026 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3027
2213e2be
YQ
30282013-10-01 Yao Qi <yao@codesourcery.com>
3029
3030 * varobj.c (c_value_of_root): Remove declaration.
3031 (cplus_value_of_root, java_value_of_root): Likewise.
3032 (ada_value_of_root): Likewise.
3033 (struct language_specific) <value_of_root>: Remove.
3034 (languages): Update initialization.
3035 (check_scope): Move earlier.
3036 (c_value_of_root): Move earlier and rename to ...
3037 (value_of_root_1): ... this.
3038 (value_of_root): Caller update.
3039 (cplus_value_of_root, java_value_of_root): Remove.
3040 (ada_value_of_root): Remove.
3041
c573f273
YQ
30422013-10-01 Yao Qi <yao@codesourcery.com>
3043
3044 * varobj.c (varobj_format_string): Remove "unknown".
3045 (languages): Remove the first element.
3046 * varobj.h (enum varobj_languages): Remove vlang_c.
3047
56250258
YQ
30482013-10-01 Yao Qi <yao@codesourcery.com>
3049
3050 * varobj.c (struct language_specific) <language>: Remove.
3051 (languages): Update the initialization.
3052
29f9ebfa
YQ
30532013-10-01 Yao Qi <yao@codesourcery.com>
3054
3055 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3056 "solib-target.h". Include "windows-tdep.h".
3057 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3058 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3059 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3060 windows-tdep.o to gdb_target_obs.
3061
64870a42
YQ
30622013-10-01 Yao Qi <yao@codesourcery.com>
3063
3064 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3065 "solib-target.h".
3066 (amd64_windows_init_abi): Don't call set_solib_ops and
3067 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3068 windows_init_abi instead.
3069 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3070 "solib-target.h".
3071 (i386_cygwin_init_abi): Don't call set_solib_ops,
3072 set_gdbarch_has_dos_based_file_system and
3073 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3074 windows_init_abi instead.
3075 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3076 (windows_init_abi): New function.
3077 (windows_iterate_over_objfiles_in_search_order): Make it
3078 static.
3079 * windows-tdep.h (windows_init_abi): Declare.
3080 (windows_iterate_over_objfiles_in_search_order): Remove
3081 declaration.
3082
0aebdefa
JB
30832013-10-01 Jerome Guitton <guitton@adacore.com>
3084
3085 Checked in by Joel Brobecker <brobecker@adacore.com>
3086 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3087 incomplete dictionnary instead of None in case of missing
3088 environment variables.
3089 (elinos_init): in case of an incomplete environment, best
3090 effort to load system libraries instead of abort.
3091
1c8e84b0
JB
30922013-10-01 Joel Brobecker <brobecker@adacore.com>
3093
3094 * ada-lang.c (ada_has_this_exception_support): Ignore
3095 mst_solib_trampoline minimal symbols.
3096
61d82a0d
TG
30972013-09-30 Tristan Gingold <gingold@adacore.com>
3098
3099 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3100 hardware watchpoint.
3101 (i386_darwin_dr_set): Support 32 and 64 bit states.
3102 (i386_darwin_dr_get): Likewise.
3103 (i386_darwin_dr_set_control): Make static.
3104 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3105 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3106
dfd4cc63
LM
31072013-09-30 Luis Machado <lgustavo@codesourcery.com>
3108
3109 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3110 Replace TIDGET with ptid_get_lwp.
3111 Replace GET_LWP with ptid_get_lwp.
3112 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3113 Replace BUILD_THREAD with ptid_build.
3114 Replace BUILD_LWP with ptid_build.
3115 Replace PIDGET with ptid_get_pid.
3116 Replace TIDGET with ptid_get_lwp.
3117 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3118 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3119 Replace TIDGET with ptid_get_lwp.
3120 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3121 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3122 Replace TIDGET with ptid_get_lwp.
3123 Replace GET_LWP with ptid_get_lwp.
3124 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3125 * auxv.c: Likewise.
3126 * breakpoint.c: Likewise.
3127 * common/ptid.c (ptid_is_pid): Condense check for
3128 null_ptid and minus_one_ptid.
3129 (ptid_lwp_p): New function.
3130 (ptid_tid_p): New function.
3131 * common/ptid.h: Update comments for accessors.
3132 (ptid_lwp_p): New prototype.
3133 (ptid_tid_p): New prototype.
3134 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3135 * gcore.c: Replace PIDGET with ptid_get_pid.
3136 * gdbthread.h: Likewise.
3137 * gnu-nat.c: Likewise.
3138 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3139 Replace TIDGET with ptid_get_lwp.
3140 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3141 * hppanbsd-nat.c: Likewise.
3142 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3143 Replace TIDGET with ptid_get_lwp.
3144 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3145 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3146 * infcmd.c: Likewise.
3147 * inferior.h: Likewise.
3148 * inflow.c: Likewise.
3149 * infrun.c: Likewise.
3150 * linux-fork.c: Likewise.
3151 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3152 Replace GET_PID with ptid_get_pid.
3153 Replace is_lwp with ptid_lwp_p.
3154 Replace GET_LWP with ptid_get_lwp.
3155 Replace BUILD_LWP with ptid_build.
3156
5b4e221c
MF
31572013-09-28 Mike Frysinger <vapier@gentoo.org>
3158
3159 * common/linux-btrace.c: Move sys/syscall.h out of the
3160 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3161 Also check for SYS_perf_event_open before attempting to buid.
3162
57d63ce2
DE
31632013-09-27 Doug Evans <dje@google.com>
3164
19ac8c2e
DE
3165 * dwarf2read.c (dwarf2_section_info): Add comment.
3166 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3167 All uses updated.
3168 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3169 (dwarf2_read_section): Delete unused local "header". Add section
3170 name to error message.
3171 (create_dwo_in_dwp): Tweak comment.
3172 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3173
a32a8923
DE
3174 * dwarf2read.c (die_reader_specs): Tweak comment.
3175 (get_section_bfd_owner, get_section_bfd_section): New functions.
3176 (get_section_name, get_section_file_name): New functions.
3177 (get_section_id, get_section_flags): New functions.
3178 (*): Use new functions to access section fields.
3179
57d63ce2
DE
3180 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3181 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3182 arg "htab". All callers updated.
3183 (create_debug_types_hash_table): Remove redundant copy of
3184 abbrev_section.
3185 (create_dwo_in_dwp): Tweak comments.
3186 (read_str_index): Tweak comment. Record dwarf form name in static
3187 local.
3188
3736004f
PA
31892013-09-27 Pedro Alves <palves@redhat.com>
3190
3191 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3192 (remote_filename_p): Add comment.
3193 * remote.c (remote_filename_p): Adjust to use
3194 REMOTE_SYSROOT_PREFIX.
3195 * solib.c (solib_find): When deciding whether we need to add a
3196 directory separator, check whether the sysroot is "remote:"
3197 instead of checking whether the patch has a drive spec. Add
3198 comments.
3199
5b5596ff
PA
32002013-09-27 Pedro Alves <palves@redhat.com>
3201
3202 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3203 Delete fields.
3204 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3205 directly.
3206
b5eef7aa
JK
32072013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3208
3209 Fix set debug frame output.
3210 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3211 SENTINEL_FRAME entry lower to match enum frame_type order.
3212
5b856f36
PM
32132013-09-26 Pierre Muller <muller@sourceware.org>
3214
3215 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3216 AMD64_R15_REGNUM when a register index is expected.
3217 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3218 Substitute in array.
3219 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3220 (amd64_push_arguments): Substitute in integer_regnum array.
3221
ade7ed9e
DE
32222013-09-25 Doug Evans <dje@google.com>
3223
d3e81981
DE
3224 * objfiles.c (allocate_objfile): Move comment to better place.
3225
8fb8eb5c
DE
3226 New option "set debug symfile on".
3227 * NEWS: Mention "set debug symfile".
3228 * Makefile.in (SFILES): Add symfile-debug.c.
3229 (COMMON_OBS): Add symfile-debug.o.
3230 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3231 objfile's symbol functions.
3232 * objfiles.h (objfile_set_sym_fns): Declare.
3233 * symfile-debug.c: New file.
3234 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3235 objfile's symbol functions.
3236 (reread_symbols): Ditto.
3237
c256e171
DE
3238 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3239 All uses updated.
3240 (add_symtab_fns): Update prototype.
3241 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3242 (registered_sym_fns): ... this.
3243 (symtab_fns): Update.
3244 (add_symtab_fns): New arg "flavour". All callers updated.
3245 (find_sym_fns): Rewrite to use new sym_fns registry.
3246
f56ce883
DE
3247 * symfile.h (struct sym_fns): Add "objfile" argument to
3248 sym_read_linetable. All uses updated.
3249
20c681d1
DE
3250 * symtab.c (domain_name, search_domain_name): New functions.
3251 * symtab.h (domain_name, search_domain_name): Declare.
3252
ade7ed9e
DE
3253 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3254 map_matching_symbols so objfile is first. All uses updated.
3255 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3256 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3257
7d760051
UW
32582013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3259
3260 PR shlibs/8882
3261 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3262 link map entries.
3263
020f7036
DE
32642013-09-24 Doug Evans <dje@google.com>
3265
3266 * objfiles.c (free_objfile): Move comment.
3267
598402f0
JB
32682013-09-24 Joel Brobecker <brobecker@adacore.com>
3269
3270 * ada-exp.y (string_to_operator): Delete.
3271 (dummy_string_to_ada_operator): Delete.
3272
bf4d6c1c
JB
32732013-09-24 Joel Brobecker <brobecker@adacore.com>
3274
3275 Revert:
3276 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3277 amd64-tdep.c.
3278 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3279 call_dummy_integer_regs, and classify.
3280 * amd64-tdep.h (amd64_classify): Add declaration.
3281 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3282 (amd64_reg_class): Delete, moved to i386-tdep.h.
3283 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3284 Replace call to amd64_classify by call to tdep->classify.
3285 (amd64_push_arguments): Get the list of registers to use for
3286 passing integer parameters from the gdbarch tdep structure,
3287 rather than using a hardcoded one. Replace calls to amd64_classify
3288 by calls to tdep->classify.
3289 (amd64_push_dummy_call): Get the register number used for
3290 the "hidden" argument from tdep->call_dummy_integer_regs.
3291 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3292 and tdep->call_dummy_integer_regs. Set tdep->classify.
3293
849e9755
JB
32942013-09-24 Joel Brobecker <brobecker@adacore.com>
3295
3296 Revert:
3297 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3298 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3299 where tdep->memory_args_by_pointer is non-zero.
3300
c1459fd6
JB
33012013-09-24 Joel Brobecker <brobecker@adacore.com>
3302
3303 Revert:
3304 * i386-tdep.h (struct gdbarch_tdep): Add new field
3305 integer_param_regs_saved_in_caller_frame.
3306 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3307 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3308
20c2e3e0
JB
33092013-09-24 Joel Brobecker <brobecker@adacore.com>
3310
874440b8 3311 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3312 (amd64_windows_classify): Delete.
3313 (amd64_windows_passed_by_integer_register)
3314 (amd64_windows_passed_by_xmm_register)
3315 (amd64_windows_passed_by_pointer)
3316 (amd64_windows_adjust_args_passed_by_pointer)
3317 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3318 (amd64_windows_push_dummy_call): New functions.
3319 (amd64_windows_init_abi): Remove setting of
3320 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3321 tdep->classify, tdep->memory_args_by_pointer and
3322 tdep->integer_param_regs_saved_in_caller_frame.
3323 Add call to set_gdbarch_push_dummy_call.
3324
82bf32bc
JK
33252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3326
3327 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3328 objfile->original_name.
3329
24ba069a
JK
33302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3331
3332 Pass down original filename for objfile.
3333 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3334 * elfread.c (elf_symfile_read): Likewise.
3335 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3336 longer set ORIGINAL_NAME.
3337 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3338 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3339 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3340 symbol_file_add_from_bfd call.
3341 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3342 (macho_check_dsym): Add parameter filenamep. Change function comment.
3343 Set *filenamep.
3344 (macho_symfile_read): New variable dsym_filename. Update
3345 macho_check_dsym call. Use it for symbol_file_add_separate.
3346 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3347 it. Use it for objfile->original_name.
3348 (objfile_name): Return OBFD's filename, if available.
3349 * objfiles.h (allocate_objfile): Add new parameter name.
3350 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3351 * symfile-mem.c (symbol_file_add_from_memory): Update
3352 symbol_file_add_from_bfd call.
3353 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3354 comment for it.
3355 (symbol_file_add_with_addrs): New parameter name, add function comment
3356 for it. Remove variable name. Update allocate_objfile call.
3357 (symbol_file_add_separate): New parameter name, add function comment
3358 for it. Update symbol_file_add_with_addrs call.
3359 (symbol_file_add_from_bfd): New parameter name. Update
3360 symbol_file_add_with_addrs call.
3361 (symbol_file_add): Update symbol_file_add_from_bfd call.
3362 (reread_symbols): New variable original_name. Save
3363 objfile->original_name by it.
3364 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3365 second parameter.
3366
4262abfb
JK
33672013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 Code cleanup: Add objfile_name accessor function.
3370 * ada-lang.c (is_known_support_routine): Use objfile_name.
3371 * auto-load.c (source_gdb_script_for_objfile)
3372 (auto_load_objfile_script): Likewise.
3373 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3374 * dbxread.c (dbx_symfile_read): Likewise.
3375 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3376 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3377 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3378 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3379 (lookup_dwp_signatured_type, lookup_dwo_unit)
3380 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3381 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3382 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3383 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3384 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3385 (read_subrange_type, load_partial_dies, read_partial_die)
3386 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3387 (die_containing_type, build_error_marker_type, lookup_die_type)
3388 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3389 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3390 (get_DW_AT_signature_type, write_psymtabs_to_index)
3391 (save_gdb_index_command): Likewise.
3392 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3393 Likewise.
3394 * expprint.c (dump_subexp_body_standard): Likewise.
3395 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3396 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3397 original_name.
3398 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3399 obj_name, use objfile_name for it, use the variable.
3400 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3401 Use objfile_name.
3402 * machoread.c (macho_symtab_read, macho_check_dsym)
3403 (macho_symfile_relocate): Likewise.
3404 * maint.c (maintenance_translate_address): Likewise.
3405 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3406 * minsyms.c (install_minimal_symbols): Likewise.
3407 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3408 original_name.
3409 (filter_overlapping_sections): Use objfile_name.
3410 (objfile_name): New function.
3411 * objfiles.h (struct objfile): Rename field name to original_name.
3412 (objfile_name): New prototype.
3413 * printcmd.c (sym_info, address_info): Use objfile_name.
3414 * probe.c (parse_probes, collect_probes, compare_probes)
3415 (info_probes_for_ops): Likewise.
3416 * progspace.c (clone_program_space): Likewise.
3417 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3418 (maintenance_info_psymtabs): Likewise.
3419 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3420 (source_section_scripts): Likewise.
3421 * python/py-objfile.c (objfpy_get_filename): Likewise.
3422 * python/py-progspace.c (pspy_get_filename): Likewise.
3423 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3424 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3425 * solib.c (solib_read_symbols): Likewise.
3426 * stabsread.c (scan_file_globals): Likewise.
3427 * stap-probe.c (handle_stap_probe): Likewise.
3428 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3429 (find_separate_debug_file_by_debuglink): Likewise.
3430 (reread_symbols): Likewise. Use the objfile field name renamed to
3431 original_name.
3432 (allocate_symtab): Use objfile_name.
3433 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3434 (dump_objfile, dump_msymbols, dump_symtab_1)
3435 (maintenance_print_msymbols, maintenance_print_objfiles)
3436 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3437 * target.c (target_translate_tls_address, target_info): Likewise.
3438 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3439 objfile_name.
3440
4721dc18
JK
34412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 Code cleanup.
3444 * probe.c (parse_probes): Rename variable objfile_name to
3445 objfile_namestr.
3446
a61d6db8
JK
34472013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 Remove solib-sunos.c.
3450 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3451 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3452 * objfiles.c (rt_common_objfile): Remove.
3453 (free_objfile): Remove rt_common_objfile comparison.
3454 * objfiles.h (rt_common_objfile): Remove.
3455 * solib-sunos.c: Remove.
3456 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3457
2659903b
JK
34582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 Remove a.out NetBSD and OpenBSD hosts.
3461 * NEWS (Removed native configurations): New.
3462 * config/arm/nbsdaout.mh: Remove.
3463 * config/i386/nbsdaout.mh: Remove.
3464 * config/i386/obsdaout.mh: Remove.
3465 * config/m68k/nbsdaout.mh: Remove.
3466 * config/sparc/nbsdaout.mh: Remove.
3467 * config/vax/nbsdaout.mh: Remove.
3468 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3469 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3470 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3471 error.
3472 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3473 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3474 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3475
f60e2d5c
TT
34762013-09-23 Tom Tromey <tromey@redhat.com>
3477
3478 * linespec.c (struct minsym_and_objfile): Remove.
3479 (minsym_and_objfile_d): Remove.
3480 (struct linespec, struct collect_info, linespec_parse_basic)
3481 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3482 (compare_msymbols, find_method, find_function_symbols)
3483 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3484 (add_minsym, search_minsyms_for_name): Update.
3485
d3eaaf66
AB
34862013-09-23 Andrew Burgess <aburgess@broadcom.com>
3487
3488 * regcache.c: Add include of valprint.h.
3489 (dump_endian_bytes): Delete.
3490 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3491
2cc762b5
AB
34922013-09-23 Andrew Burgess <aburgess@broadcom.com>
3493
3494 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3495
96181529
PA
34962013-09-19 Pedro Alves <palves@redhat.com>
3497
3498 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3499 breakpoints.
3500
9b3f3ee6
TS
35012013-09-19 Pedro Alves <palves@redhat.com>
3502 Thomas Schwinge <thomas@codesourcery.com>
3503 Yue Lu <hacklu.newborn@gmail.com>
3504
3505 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3506 Take a gdb_byte pointer instead of a char pointer.
3507
3508 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3509 gnu_xfer_partial helper.
3510 (gnu_xfer_partial): New function.
3511 (gnu_target): Don't install a deprecated_xfer_memory hook.
3512 Install a to_xfer_partial hook.
3513
69150c3d
JK
35142013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3515
3516 Constification.
3517 * main.c (captured_main): Replace catch_command_errors by
3518 catch_command_errors_const. Twice.
3519 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3520 (symbol_file_add): Make name parameter const.
3521 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3522 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3523 variable name. Change their usage accordingly.
3524 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3525 const.
3526 (symbol_file_add_main): Make args parameter const.
3527
086850b2
UW
35282013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3529 Ulrich Weigand <uweigand@de.ibm.com>
3530
3531 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3532 of c_value member.
3533 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3534
ca08a94c 35352013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3536 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3537
3538 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3539 (gnu_create_inferior)
3540 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3541 (set_sig_thread_cmd): Use the lwpid field of ptids to
3542 store/extract thread ids instead of the tid field.
3543 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3544
e4c6a2c4
AB
35452013-09-18 Andrew Burgess <aburgess@broadcom.com>
3546
3547 * infcmd.c (default_print_one_register_info): Add detection of
3548 optimized out values.
3549 (default_print_registers_info): Switch to using
3550 get_frame_register_value.
3551
58c48e72
MM
35522013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3553
3554 * infrun.c (handle_inferior_event): Check if we know the
3555 function start address before setting a resume breakpoint.
3556
c8d37639
PA
35572013-09-18 Pedro Alves <palves@redhat.com>
3558
3559 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3560 minus_one_ptid instead of looking at the ptid's tid field and
3561 comparing that to -1.
3562
71926e28
AB
35632013-09-18 Andrew Burgess <aburgess@broadcom.com>
3564
3565 * main.h (get_gdb_program_name): Remove extra whitespace.
3566
c88a1531
AB
35672013-09-18 Andrew Burgess <aburgess@broadcom.com>
3568
3569 * main.h (get_gdb_program_name): Add declaration.
3570 * main.c (get_gdb_program_name): Add definition.
3571
4390d890
DE
35722013-09-17 Doug Evans <dje@google.com>
3573
3574 * dwarf2read.c: Move definitions of complaint functions to after
3575 forward declarations of local functions.
3576
49fa26b0
PA
35772013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3578 Pedro Alves <palves@redhat.com>
3579
3580 PR gdb/11568
3581 * breakpoint.c (remove_threaded_breakpoints): New function.
3582 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3583 as thread_exit observer.
3584
08d72866
PA
35852013-09-17 Pedro Alves <palves@redhat.com>
3586
3587 PR gdb/15911
3588 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3589 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3590 * corelow.c (core_open):
3591 * frame.h (print_stack_frame, print_frame_info): New
3592 'set_current_sal' parameter.
3593 * infcmd.c (finish_command, kill_command): Adjust call to
3594 print_stack_frame.
3595 * inferior.c (inferior_command): Likewise.
3596 * infrun.c (normal_stop): Likewise.
3597 * linux-fork.c (linux_fork_context): Likewise.
3598 * record-full.c (record_full_goto_entry, record_full_restore):
3599 Likewise.
3600 * remote-mips.c (common_open): Likewise.
3601 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3602 Use it.
3603 (print_frame_info): New 'set_current_sal' parameter. Set the last
3604 displayed sal depending on the new paremeter instead of looking at
3605 print_what.
3606 (backtrace_command_1, select_and_print_frame, frame_command)
3607 (current_frame_command, up_command, down_command): Adjust call to
3608 print_stack_frame.
3609 * thread.c (print_thread_info, restore_selected_frame)
3610 (do_captured_thread_select): Adjust call to print_stack_frame.
3611 * tracepoint.c (tfind_1): Likewise.
3612 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3613 (mi_cmd_stack_info_frame): Likewise.
3614 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3615 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3616
6bc305f5
SDJ
36172013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3618
3619 * value.c (isvoid_internal_fn): Replace "parameter" with
3620 "argument".
3621
0a7cfe2c
SS
36222013-09-16 Stan Shebs <stan@codesourcery.com>
3623
3624 * README: Update references to writing code for GDB.
3625 * configure.ac (build_warnings): Remove obsolete comment.
3626 * configure: Regenerate.
3627 * gdbarch.sh: Remove references to gdbint.texinfo.
3628 * gdbarch.h: Regenerate.
3629 * gdbtypes.c (objfile_type): Remove comments referencing internals
3630 manual and D10V.
3631
a280dbd1
SDJ
36322013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3633
3634 * NEWS: Mention new convenience function $_isvoid.
3635 * value.c (isvoid_internal_fn): New function.
3636 (_initialize_values): Add new convenience function $_isvoid.
3637
04a83fee
PM
36382013-09-16 Pierre Muller <muller@sourceware.org>
3639
3640 * arm-linux-tdep.c: Add "elf/common.h" header.
3641 Remove AT_HWCAP macro definintion as it is provided in
3642 added include file.
3643 * s390-tdep.c: Remove system header <elf.h>
3644 Add "elf/common.h" header for AT_HWCAP definition.
3645 (s390_core_read_description): Use correct CORE_ADDR
3646 for hwcap local variable used as third parameter
3647 of function target_auxv_search.
3648
88505fac
PM
36492013-09-14 Pierre Muller <muller@sourceware.org>
3650 Tom Tromey <tromey@redhat.com>
3651 Pedro Alves <palves@redhat.com>
3652
3653 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3654 mode if operating system doesn't know O_CLOEXEC.
3655
d3846e71
JK
36562013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3657
3658 Code cleanup.
3659 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3660 inner block.
3661
4ac33720
UW
36622013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3663
3664 * NEWS: Mention TDB support.
3665 * features/s390-tdb.xml: New file.
3666 * features/s390-te-linux64.xml: New file.
3667 * features/s390x-te-linux64.xml: New file.
3668 * features/Makefile (WHICH): Add new tdescs above.
3669 (s390-te-linux64-expedite): Set.
3670 (s390x-te-linux64-expedite): Set.
3671 * features/s390-te-linux64.c: New file (generated).
3672 * features/s390x-te-linux64.c: New file (generated).
3673 * regformats/s390-te-linux64.dat: New file (generated).
3674 * regformats/s390x-te-linux64.dat: New file (generated).
3675 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3676 (HWCAP_S390_TE): Likewise.
3677 (S390_TDB_DWORD0_REGNUM): Likewise.
3678 (S390_TDB_DWORD0_REGNUM): Likewise.
3679 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3680 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3681 (S390_TDB_ATIA_REGNUM): Likewise.
3682 (S390_TDB_R0_REGNUM): Likewise.
3683 (S390_TDB_R1_REGNUM): Likewise.
3684 (S390_TDB_R2_REGNUM): Likewise.
3685 (S390_TDB_R3_REGNUM): Likewise.
3686 (S390_TDB_R4_REGNUM): Likewise.
3687 (S390_TDB_R5_REGNUM): Likewise.
3688 (S390_TDB_R6_REGNUM): Likewise.
3689 (S390_TDB_R7_REGNUM): Likewise.
3690 (S390_TDB_R8_REGNUM): Likewise.
3691 (S390_TDB_R9_REGNUM): Likewise.
3692 (S390_TDB_R10_REGNUM): Likewise.
3693 (S390_TDB_R11_REGNUM): Likewise.
3694 (S390_TDB_R12_REGNUM): Likewise.
3695 (S390_TDB_R13_REGNUM): Likewise.
3696 (S390_TDB_R14_REGNUM): Likewise.
3697 (S390_TDB_R15_REGNUM): Likewise.
3698 (S390_NUM_REGS): Increase.
3699 (S390_IS_TDBREGSET_REGNUM): New macro.
3700 (s390_regmap_tdb): Declare.
3701 (s390_sizeof_tdbregset): Define.
3702 (tdesc_s390_te_linux64): Declare.
3703 (tdesc_s390x_te_linux64): Likewise.
3704 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3705 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3706 (s390_regmap_tdb): New regmap.
3707 (s390_supply_tdb_regset): New function.
3708 (s390_tdb_regset): New regset.
3709 (s390_linux64v2_regset_sections): Add TDB regset to list.
3710 (s390x_linux64v2_regset_sections): Likewise.
3711 (s390_regset_from_core_section): Recognize TDB core note section.
3712 (s390_core_read_description): If HWCAP indicates TE support,
3713 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3714 (s390_gdbarch_init): Handle TDB regset.
3715 (_initialize_s390_tdep): Initialize new tdescs.
3716 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3717 (have_regset_tdb): New variable.
3718 (s390_native_supply): Support register invalidation.
3719 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3720 (check_regset): Treat ENODATA as "regset exists".
3721 (s390_linux_fetch_inferior_registers): Add TDB.
3722 (s390_read_description): Check for TDB existence and select
3723 appropriate tdesc.
3724 * gdbserver/Makefile.in (clean): Add removal of new makefile
3725 targets.
3726 (s390-te-linux64.c): New makefile target.
3727 (s390x-te-linux64.c): Likewise.
3728 * gdbserver/configure.srv (srv_regobj): Append new objects
3729 s390-te-linux64.o and s390x-te-linux64.o.
3730 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3731 s390x-te-linux64.xml, and s390-tdb.xml.
3732 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3733 declaration.
3734 (tdesc_s390_te_linux64): Likewise.
3735 (init_registers_s390x_te_linux64): Likewise.
3736 (tdesc_s390x_te_linux64): Likewise.
3737 (s390_check_regset): Treat ENODATA as "regset exists".
3738 (s390_arch_setup): Add TDB regset support.
3739 (initialize_low_arch): Initialize registers for new tdescs.
3740
2ccd1468
UW
37412013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3742
3743 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3744 (S390_IS_FPREGSET_REGNUM): New macro.
3745 * s390-tdep.c (s390_dwarf_regmap): Make const.
3746 (regnum_is_gpr_full): New function for replacing repeated code.
3747 (s390_pseudo_register_name): Use it.
3748 (s390_pseudo_register_type): Likewise.
3749 (s390_pseudo_register_read): Likewise.
3750 (s390_pseudo_register_write): Likewise.
3751 (s390_unwind_pseudo_register): Likewise.
3752 (s390_regmap_gregset): New format for regmap.
3753 (s390x_regmap_gregset): Likewise.
3754 (s390_regmap_fpregset): Likewise.
3755 (s390_regmap_upper): Likewise.
3756 (s390_regmap_last_break): Likewise.
3757 (s390_regmap_system_call): Likewise.
3758 (s390_supply_regset): Adjust to new regmap format.
3759 (s390_collect_regset): Likewise.
3760 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3761 (s390_native_collect): Likewise.
3762 (supply_gregset): Likewise.
3763 (fill_gregset): Likewise.
3764 (supply_fpregset): Likewise.
3765 (fill_fpregset): Likewise.
3766 (fetch_regset): Likewise.
3767 (store_regset): Likewise.
3768 (s390_linux_fetch_inferior_registers): Likewise.
3769 (s390_linux_fetch_inferior_registers): Likewise.
3770
1aa4cd77
AP
37712013-09-12 Andrew Pinski <apinski@cavium.com>
3772
3773 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3774
d91fab15
UW
37752013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3776
3777 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3778
5a5d8ead
AB
37792013-09-09 Andrew Burgess <aburgess@broadcom.com>
3780
3781 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3782
1385f66c
PA
37832013-09-06 Pedro Alves <palves@redhat.com>
3784
3785 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3786 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3787 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3788 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3789 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3790 gdb_stdlog.
3791
146ec4db
PA
37922013-09-06 Pedro Alves <palves@redhat.com>
3793
3794 * remote-sim.c (dump_mem): Constify buf parameter.
3795 gdbsim_xfer_inferior_memory): Rename to ...
3796 (gdbsim_xfer_memory): ... this. Adjust interface as
3797 target_xfer_partial helper.
3798 (gdbsim_xfer_partial): New function.
3799 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3800 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3801
fcde0081
PA
38022013-09-06 Pedro Alves <palves@redhat.com>
3803
3804 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3805 host_address_to_string, and send debug output to gdb_stdlog.
3806
749c8b38
RW
38072013-09-06 Ricard Wanderlof <ricardw@axis.com>
3808
3809 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3810 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3811 gdb_target_obs for cris target.
3812 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3813 (cris_gdbarch_init): Move calls to
3814 set_gdbarch_fetch_tls_load_module_address and
3815 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3816 Add call to gdbarch_init_osabi.
3817 * cris-linux-tdep.c: New file.
3818 * cris-tdep.h: New file.
3819
43df09d9
AB
38202013-09-06 Andrew Burgess <aburgess@broadcom.com>
3821
3822 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3823 to deprecated_init_ui_hook.
3824
4d09c5b4
AB
38252013-09-06 Andrew Burgess <aburgess@broadcom.com>
3826
3827 * cli/cli-interp.c (_initialize_cli_interp): Add a
3828 command_loop_proc to interp_procs.
3829 * event-top.c (cli_command_loop): Change signature to match
3830 interp_command_loop_ftype.
3831 * event-top.h (cli_command_loop): Same.
3832 * interps.c (interp_new): Require every interpreter to have a
3833 command_loop_proc.
3834 (current_interp_command_loop): Just call the command_loop_proc on
3835 the current interpreter.
3836 * tui/tui-interp.c (_initialize_tui_interp): Add a
3837 command_loop_proc to interp_procs.
3838
8eb3d7b6
RW
38392013-09-06 Ricard Wanderlof <ricardw@axis.com>
3840
3841 * cris-tdep.c (cris_gdbarch_init): Add call to
3842 get_gdbarch_fetch_tls_load_module_address.
3843
18b3c2f5
RW
38442013-09-06 Ricard Wanderlof <ricardw@axis.com>
3845
3846 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3847 (cris_elf_gregset_t): Rename from elf_gregset_t.
3848 (crisv32_elf_gregset_t): Adjust.
3849 (cris_supply_gregset, fetch_core_registers): Adjust.
3850
dc8636ef
RW
38512013-09-06 Ricard Wanderlof <ricardw@axis.com>
3852
3853 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3854
257e6d53
AB
38552013-09-05 Andrew Burgess <aburgess@broadcom.com>
3856
1581d8a7 3857 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3858 references in comments.
1581d8a7 3859 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3860 deprecated_command_loop_hook.
3861 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3862 setup.
1581d8a7 3863 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3864
7c33b57c
PA
38652013-09-05 Pedro Alves <palves@redhat.com>
3866
3867 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3868 local is now int instead of ULONGEST. Print it with %d
3869 instead of paddress.
3870
9f8edbd5
TG
38712013-09-05 Tristan Gingold <gingold@adacore.com>
3872
3873 * MAINTAINERS: Remove avr maintainership.
3874
d5b495b4
PA
38752013-09-05 Pedro Alves <palves@redhat.com>
3876
3877 * findvar.c (value_of_register): Rework in terms of
3878 value_of_register_lazy.
3879
40b91786
MB
38802013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3881
3882 * symfile.c (add_symbol_file_command): Remove trailing
3883 whitespaces and blank line after comment.
3884
6eed1678
PA
38852013-09-05 Pedro Alves <palves@redhat.com>
3886
3887 * tui/tui-regs.c (tui_register_format): Don't look at the
3888 register's name here. Return string representing register
3889 value instead of storing it in the data element.
3890 (tui_get_register): Compare register string representations
3891 instead of register value states and contents.
3892
8eb6bda2
PA
38932013-09-05 Pedro Alves <palves@redhat.com>
3894
3895 PR tui/15933
3896 * tui/tui-regs.c (tui_show_registers): Show registers of the
3897 selected frame, not the current frame.
3898
48b1f08c
RW
38992013-09-05 Ricard Wanderlof <ricardw@axis.com>
3900
3901 * MAINTAINERS (Write After Approval): Add myself to the list.
3902
89e63ee4
DE
39032013-09-04 Doug Evans <dje@google.com>
3904
3905 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3906 (queue_and_load_dwo_tu): New function.
3907 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3908 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3909 Make dependent_cu optional.
3910 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3911 and an older .gdb_index is in use, queue and load all its TUs too.
3912
492c0ab7
JK
39132013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3916 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3917 variable search_flags.
3918 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3919 (OPF_RETURN_REALPATH): ... here.
3920 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3921 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3922 call. Twice.
3923 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3924 openp call.
3925 * solib.c (solib_find): Likewise. Four times.
3926 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3927 in the function comment and for the realpath_fptr variable.
3928 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3929 (find_and_open_source): Likewise. Twice.
3930 * symfile.c (symfile_bfd_open): Likewise, also twice.
3931
23a44de8
DE
39322013-09-04 Doug Evans <dje@google.com>
3933
3934 * progspace.c (save_current_space_and_thread): Remove unnecessary
3935 call to save_current_inferior.
3936
47061676
AB
39372013-09-04 Andrew Burgess <aburgess@broadcom.com>
3938
3939 * sh64-tdep.c (sh64_do_register): Return after printing message
3940 about unavailable register contents.
3941
41dc8db8
MB
39422013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3943 Pedro Alves <palves@redhat.com>
3944
3945 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3946 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3947 options and collapse into single conditional branch.
41dc8db8 3948
07107ca6
LM
39492013-09-03 Luis Machado <lgustavo@codesourcery.com>
3950
a7ea61cf 3951 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3952 detach_fork.
3953 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3954 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3955 * inferior.h (detach_fork): Remove.
3956 * infrun.c (detach_fork): Adjust comment and make it
3957 static.
3958 (follow_fork): Pass detach_fork parameter to
3959 target_follow_fork.
3960 * linux-nat.c (linux_child_follow_fork): New parameter
3961 detach_fork.
3962 * target.c (target_follow_fork): New parameter detach_fork.
3963 Pass detach_fork as parameter and print its value.
3964 * target.h (struct target_ops) <to_follow_fork>: New int
3965 parameter.
3966 (target_follow_fork): New parameter detach_fork.
3967
3bec2768
JB
39682013-09-03 Joel Brobecker <brobecker@adacore.com>
3969
3970 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3971 Replace sec->bfd by sec->the_bfd_section->owner.
3972
c01cbb3d
YQ
39732013-09-03 Yao Qi <yao@codesourcery.com>
3974
3975 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3976 from linux_has_shared_address_space.
3977 (linux_has_shared_address_space): Call linux_is_uclinux.
3978 * linux-tdep.h (linux_is_uclinux): Declare.
3979 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3980 linux_is_uclinux.
3981
7b00db47
YQ
39822013-09-03 Yao Qi <yao@codesourcery.com>
3983
3984 * config/djgpp/fnchange.lst: Remove entry of
3985 i386-interix-nat.c and i386-interix-tdep.c.
3986 * configure.ac: Remove '*-*-interix*'.
3987 * configure: Re-generated.
3988 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3989 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3990 obsolete comments.
3991 * osabi.c (gdb_osabi_names): Remove "Interix".
3992
0f9741f2
YQ
39932013-09-03 Yao Qi <yao@codesourcery.com>
3994
3995 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3996
1e038f67
MM
39972013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3998
3999 * record.h (record_print_flag) <record_print_src_line,
4000 record_print_insn_range>: Rename into ...
4001 (record_print_flag) <record_print_src_line,
4002 record_print_insn_range>: ... this. Update all users.
4003
9e52adf9
PM
40042013-09-02 Pierre Muller <muller@sourceware.org>
4005
4006 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4007 error code.
4008
a2388568
PM
40092013-09-02 Pierre Muller <muller@sourceware.org>
4010
4011 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4012 by use of plongest function.
4013
9058cc3a
TG
40142013-09-02 Tristan Gingold <gingold@adacore.com>
4015
4016 * NEWS: Add entry mentioning support for native Windows x64
4017 SEH data.
4018
4019 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4020 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4021 (struct amd64_windows_frame_cache): New struct.
4022 (amd64_windows_w2gdb_regnum): New global.
4023 (pc_in_range, amd64_windows_frame_decode_epilogue)
4024 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4025 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4026 (amd64_windows_frame_this_id): New functions.
4027 (amd64_windows_frame_unwind): New static global.
4028 (amd64_windows_skip_prologue): New function.
4029 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4030 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4031 with amd64_windows_skip_prologue.
4032
3161820b 40332013-08-30 Joel Brobecker <brobecker@adacore.com>
4034
4035 GDB 7.6.1 released.
4036
02457c76
PA
40372013-08-30 Pedro Alves <palves@redhat.com>
4038
4039 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4040 SRC_AND_LOC.
4041
e0162910
PA
40422013-08-30 Pedro Alves <palves@redhat.com>
4043
4044 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4045 warning text.
4046
6391ce51
PA
40472013-08-30 Pedro Alves <palves@redhat.com>
4048
4049 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4050 Adjust arguments to print_stack_frame.
4051
d1da0587
PA
40522013-08-30 Pedro Alves <palves@redhat.com>
4053
4054 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4055
adfd8245
PA
40562013-08-30 Pedro Alves <palves@redhat.com>
4057
4058 * frame.h (show_and_print_stack_frame): Delete declaration.
4059
96d9056e
PM
40602013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4061
4062 PR python/15461
96d9056e
PM
4063 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4064 (archpy_name): Check for valid architecture.
4065 (archpy_disassemble): Ditto.
4066
11cb8762
JB
40672013-08-29 Joel Brobecker <brobecker@adacore.com>
4068
4069 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4070 instead of "long long" in call to ptrace64.
4071
1af12a7d
AB
40722013-08-29 Andrew Burgess <aburgess@broadcom.com>
4073
4074 * mi/mi-interp.c (mi_command_loop): Change signature to match
4075 interp_command_loop_ftype.
4076 (mi1_command_loop): Remove.
4077 (mi2_command_loop): Remove.
4078 (mi3_command_loop): Remove.
4079 (mi_interpreter_resume): Remove setting of
4080 deprecated_command_loop_hook.
4081 (_initialize_mi_interp): Set mi_command_loop as the command loop
4082 callback.
4083
acc900c2
SA
40842013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4085
4086 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4087 value_type.
4088
548b762d
SA
40892013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4090
4091 * value.c (allocate_value_contents): Make static.
4092 * value.h (allocate_value_contents): Remove prototype.
4093
08039c9e
SA
40942013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4095
4096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4097 of assembling value via allocate_value_lazy and attribute setter.
4098 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4099 assembling value via allocate_value_lazy and attribute setter.
4100 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4101 assembling value via allocate_value_lazy and attribute setter.
4102
314c7de9
SA
41032013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4104
4105 * value.c (value_from_contents_and_address): Replace allocate_value and
4106 memcpy with value_from_contents.
4107
8f28f522
PM
41082013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4109
4110 * python/py-framefilter.c (py_print_frame): Remove usage of
4111 PyString_AsString. Use python_string_to_host_string instead.
4112 Refactor function to work with a string as a new allocation
4113 instead of a pointer.
4114 (py_print_frame): Ditto.
4115 * python/lib/gdb/frames.py (return_list): Cain iterators together
4116 instead of adding them as a list.
4117 (_sort_list): Call return_list, and remove duplicate code.
4118 (execute_frame_filters): Convert iterator to a list with list().
4119 * python/lib/gdb/command/frame_filters.py
4120 (SetFrameFilterPriority._set_filter_priority): Convert priority
4121 attribute to an integer.
4122 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4123 wrapper function __next__.
4124 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4125 define as "str".
4126
8ee002df
PM
41272013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4128
4129 PR python/15752
8ee002df
PM
4130 * python/py-framefilter.c (apply_frame_filter): Check
4131 gdb_python_initialized. Exit if the Python frame-filter code
4132 cannot be initialized.
4133
af4c453a
PM
41342013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4135
4136 PR cli/15842
af4c453a
PM
4137 * top.c (print_gdb_version): Remove erroneous newline after help
4138 text.
4139
bf8793bb
YQ
41402013-08-29 Yao Qi <yao@codesourcery.com>
4141
4142 * varobj.c (install_dynamic_child): Remove trailing space.
4143 Add one blank line after variable declaration.
4144
1f0c4988
JK
41452013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4146
4147 PR gdb/15415
4148 * corefile.c (get_exec_file): Use exec_filename.
4149 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4150 * exec.c (exec_close): Free EXEC_FILENAME.
4151 (exec_file_attach): New variable canonical_pathname. Use
4152 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4153 EXEC_FILENAME.
4154 * exec.h (exec_filename): New.
4155 * inferior.c (print_inferior, inferior_command): Use
4156 PSPACE_EXEC_FILENAME.
4157 * mi/mi-main.c (print_one_inferior): Likewise.
4158 * progspace.c (clone_program_space, print_program_space): Likewise.
4159 * progspace.h (struct program_space): New field pspace_exec_filename.
4160 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4161 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4162
59ee9f94
WN
41632013-08-28 Will Newton <will.newton@linaro.org>
4164
4165 * common/linux-ptrace.c: Include stdint.h unconditionally.
4166
c8a2a419
JK
41672013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4168
4169 Code cleanup.
4170 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4171
ffa4ac95
YQ
41722013-08-28 Yao Qi <yao@codesourcery.com>
4173 Pedro Alves <palves@redhat.com>
4174
4175 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4176 instead of stdio_fileopen.
4177 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4178 .Call stderr_fileopen instead of stdio_fileopen.
4179 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4180 [__MINGW32__] (stderr_file_fputs): New function.
4181 (stderr_fileopen): New function.
4182 * ui-file.h (stderr_fileopen): Declare.
4183
69d751e3
DE
41842013-08-27 Doug Evans <dje@google.com>
4185
4186 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4187 (struct dwarf2_per_cu_data): Ditto.
4188 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4189 (process_imported_unit_die): Ditto.
4190 (follow_die_sig_1): Simplify assert.
4191
44f38867
PA
41922013-08-27 Pedro Alves <palves@redhat.com>
4193
4194 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4195 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4196 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4197 windows_xfer_memory directly.
4198 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4199
d28d46b5
PA
42002013-08-27 Pedro Alves <palves@redhat.com>
4201
4202 * darwin-nat.c (darwin_xfer_memory): Delete.
4203 (_initialize_darwin_inferior): Don't install a
4204 deprecated_xfer_memory method.
4205
6211c335
YQ
42062013-08-27 Pedro Alves <pedro@codesourcery.com>
4207 Yao Qi <yao@codesourcery.com>
4208
4209 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4210 (parse_no_frames_option): Remove.
4211 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4212 (mi_cmd_stack_list_args): Adjust.
4213 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4214 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4215 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4216 Caller update.
4217 (list_args_or_locals): New parameter 'skip_unavailable'.
4218 Handle it.
4219 * valprint.c (scalar_type_p): Rename to ...
4220 (val_print_scalar_type_p): ... this. Make extern.
4221 (val_print, value_check_printable): Adjust.
4222 * valprint.h (val_print_scalar_type_p): Declare.
4223 * value.c (value_entirely_unavailable): New function.
4224 * value.h (value_entirely_unavailable): Declare.
4225
4226 * NEWS: Mention the new option "--skip-unavailable" to MI
4227 commands '-stack-list-locals', '-stack-list-arguments' and
4228 '-stack-list-variables'.
4229
242f1fd7
YQ
42302013-08-27 Yao Qi <yao@codesourcery.com>
4231
4232 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4233 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4234 options.
4235 * mi/mi-getopt.c (mi_getopt): Remove.
4236 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4237 'error_on_unknown'.
4238 (mi_getopt): Call mi_getopt_1.
4239 (mi_getopt_silent): New.
4240 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4241
260b681b
DE
42422013-08-26 Doug Evans <dje@google.com>
4243
779bd270
DE
4244 PR symtab/15885
4245 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4246 .gdb_index is in use.
4247 * symfile.c (reread_symbols): Reset objfile->sf.
4248
52e260a3
DE
4249 * NEWS: Document "mt print objfiles" now takes optional regexp.
4250 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4251 regexp of objfiles to print.
4252 (_initialize_symmisc): Update doc string for "mt print objfiles".
4253
260b681b
DE
4254 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4255 missing debug info checks.
4256
a85c52f2
UW
42572013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4258 Ulrich Weigand <uweigand@de.ibm.com>
4259
4260 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4261 line tables generated by XLC compiled binaries.
4262
4f00dda3
DE
42632013-08-23 Doug Evans <dje@google.com>
4264
db68bbae
DE
4265 * symmisc.c (dump_symtab): Delete prototype.
4266 (dump_msymbols, dump_objfile): Ditto.
4267 (maintenance_info_symtabs): Mark as dont_repeat.
4268 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4269
4f00dda3
DE
4270 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4271 debugging printf to better location.
4272
23d577b0
PA
42732013-08-23 Pedro Alves <palves@redhat.com>
4274
4275 * target.c (target_read_live_memory): Change type of 'ret' local
4276 to LONGEST.
4277
00d84524
PA
42782013-08-23 Pedro Alves <palves@redhat.com>
4279
4280 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4281 (remote_read_bytes): Change return type to LONGEST, and adjust to
4282 return a target_xfer_error on error.
4283 (remote_xfer_memory): Delete.
4284 (remote_flash_write): Change type of 'ret' local to LONGEST.
4285 (remote_xfer_partial, remote_xfer_partial): Adjust.
4286 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4287
1ed3ee94
PM
42882013-08-23 Pierre Muller <muller@sourceware.org>
4289
4290 ARI fix: Push # directives to start of line.
4291 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4292
9eaabc75
MW
42932013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4294
4295 PR gdb/15501
4296 * breakpoint.c (enable_command, disable_command): Iterate over
4297 all specified breakpoint locations.
4298
101158d9
LM
42992013-08-22 Luis Machado <lgustavo@codesourcery.com>
4300
4301 * common/linux-ptrace.c (linux_fork_to_function): Push #
4302 directives to the start of the line.
4303 (linux_check_ptrace_features): Fix warning message to use
4304 the "_" markup.
4305
96d7229d
LM
43062013-08-22 Luis Machado <lgustavo@codesourcery.com>
4307
4308 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4309 nat/linux-waitpid.h.
4310 (linux-waitpid.o): New object file rule.
4311 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4312 (current_ptrace_options): Moved from linux-nat.c.
4313 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4314 parameters.
4315 (linux_fork_to_function): New function.
4316 (linux_grandchild_function): Likewise.
4317 (linux_child_function): Likewise.
4318 (linux_check_ptrace_features): New function, heavily
4319 based on linux-nat.c:linux_test_for_tracefork.
4320 (linux_enable_event_reporting): New function.
4321 (ptrace_supports_feature): Likewise.
4322 (linux_supports_tracefork): Likewise.
4323 (linux_supports_traceclone): Likewise.
4324 (linux_supports_tracevforkdone): Likewise.
4325 (linux_supports_tracesysgood): Likewise.
4326 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4327 gdbserver/linux-low.c.
4328 (linux_enable_event_reporting): New declaration.
4329 (linux_supports_tracefork): Likewise.
4330 (linux_supports_traceclone): Likewise.
4331 (linux_supports_tracevforkdone): Likewise.
4332 (linux_supports_tracesysgood): Likewise.
4333 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4334 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4335 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4336 * config/arm/linux.mh (NATDEPFILES): Likewise.
4337 * config/i386/linux.mh (NATDEPFILES): Likewise.
4338 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4339 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4340 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4341 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4342 * config/mips/linux.mh (NATDEPFILES): Likewise.
4343 * config/pa/linux.mh (NATDEPFILES): Likewise..
4344 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4345 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4346 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4347 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4348 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4349 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4350 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4351 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4352 ptrace's 4th argument's types.
4353 Check the type of PTRACE_TYPE_ARG4.
4354 * configure: Regenerate.
4355 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4356 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4357 (linux_supports_tracefork_flag): Remove.
4358 (linux_supports_tracesysgood_flag): Likewise.
4359 (linux_supports_tracevforkdone_flag): Likewise.
4360 (current_ptrace_options): Moved to
4361 common/linux-ptrace.c.
4362 (linux_tracefork_child): Remove.
4363 (my_waitpid): Remove.
4364 (linux_test_for_tracefork): Renamed to
4365 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4366 (linux_test_for_tracesysgood): Remove.
4367 (linux_supports_tracesysgood): Remove.
4368 (linux_supports_tracefork): Remove.
4369 (linux_supports_tracevforkdone): Remove.
4370 (linux_enable_tracesysgood): Remove.
4371 (linux_enable_event_reporting): Remove.
4372 (linux_init_ptrace): New function.
4373 (linux_child_post_attach): Call linux_init_ptrace.
4374 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4375 (linux_child_follow_fork): Call linux_supports_tracefork
4376 and linux_supports_tracevforkdone.
4377 (linux_child_insert_fork_catchpoint): Call
4378 linux_supports_tracefork.
4379 (linux_child_insert_vfork_catchpoint): Likewise.
4380 (linux_child_set_syscall_catchpoint): Call
4381 linux_supports_tracesysgood.
4382 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4383 * nat/linux-nat.h: New file.
4384 * nat/linux-waitpid.c: New file.
4385 * nat/linux-waitpid.h: New file.
4386
9f948660
SDJ
43872013-08-22 Samuel Bronson <naesten@gmail.com>
4388
4389 ARM Linux support for `catch syscall'.
4390 * syscalls/arm-linux.py: New file.
4391 * syscalls/arm-linux.xml: Likewise.
4392 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4393 (arm_linux_init_abi): Register the new function and syscall xml file.
4394 * data-directory/Makefile.in: Install the new syscall xml file.
4395 * NEWS: Brag about this.
4396
6be7b56e
PA
43972013-08-22 Pedro Alves <palves@redhat.com>
4398
4399 PR gdb/15871
4400 * corefile.c (target_xfer_memory_error): New function.
4401 (memory_error): Defer EIO to target_memory_error.
4402 (read_memory): Use target_xfer_partial, and handle finer-grained
4403 target xfer errors.
4404 * target.c (target_xfer_error_to_string): New function.
4405 (memory_xfer_partial_1): If memory is known to be
4406 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4407 (target_xfer_partial): Make extern.
4408 * target.h (enum target_xfer_error): New enum.
4409 (target_xfer_error_to_string): Declare function.
4410 (target_xfer_partial): Declare function.
4411 (struct target_ops) <xfer_partial>: Adjust describing comment.
4412
bcbec14e
AM
44132013-08-22 Alan Modra <amodra@gmail.com>
4414
4415 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4416 * configure.tgt: Likewise as targets.
4417
fc474241
DE
44182013-08-20 Doug Evans <dje@google.com>
4419
4420 * buildsym.c (subfile_stack): Move here from buildsym.h.
4421 (pending_macros): Ditto.
4422 (get_macro_table): New function.
4423 (buildsym_init): Initialize subfile_stack.
4424 * coffread.c (type_vector,type_vector_length): Moved here from
4425 buildsym.h.
4426 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4427 (coff_symtab_read): Use it.
4428 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4429 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4430 with call to get_macro_table.
4431 * stabsread.c (type_vector,type_vector_length): Moved here from
4432 buildsym.h.
4433 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4434 * buildsym.h (get_macro_table): Declare.
4435
bec71544
TT
44362013-08-20 Tom Tromey <tromey@redhat.com>
4437
4438 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4439 Update.
4440 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4441
0002ad5f
DE
44422013-08-20 Doug Evans <dje@google.com>
4443
4444 * blockframe.c: Remove #include "psymtab.h".
4445 * cp-support.c: Ditto.
4446 * source.c: Ditto.
4447 * stack.c: Ditto.
4448
df302446
TT
44492013-08-20 Tom Tromey <tromey@redhat.com>
4450
4451 PR python/15816:
4452 * exceptions.h (return_mask): Now an enum.
4453 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4454 enum constants.
4455
df6d5441
TT
44562013-08-20 Tom Tromey <tromey@redhat.com>
4457
4458 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4459 get_objfile_arch.
4460 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4461 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4462 * jit.c (jit_object_close_impl): Update.
4463 * jv-lang.c (get_dynamics_objfile): Update.
4464 * linespec.c (add_minsym): Use get_dynamics_objfile.
4465 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4466 (allocate_objfile): Don't initialize 'gdbarch' field.
4467 (get_objfile_arch): Update.
4468 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4469 moved from...
4470 (struct objfile) <gdbarch>: ... here. Remove.
4471 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4472 get_objfile_arch.
4473 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4474
f5aee5ee
AM
44752013-08-20 Alan Modra <amodra@gmail.com>
4476
4477 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4478 for IBM long double nan and inf.
4479 (floatformat_is_negative, floatformat_classify,
4480 floatformat_mantissa): Similarly.
4481 (floatformat_ieee_single, floatformat_ieee_double,
4482 floatformat_ieee_quad, floatformat_arm_ext,
4483 floatformat_ia64_spill): Delete unused vars.
4484 (_initialize_doublest): Delete unused function.
4485 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4486 little-endian variants of floatformat_ibm_long_double.
4487
33b60d58 44882013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4489
33b60d58
LM
4490 * Makefile.in (SFILES): Remove common/target-common.c and
4491 add target/waitstatus.c.
4492 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4493 target/resume.h, target/wait.h and target/waitstatus.h.
4494 (COMMON_OBS): Remove target-common.o and add
4495 waitstatus.o.
4496 (target-common.o): Remove.
4497 (waitstatus.o): New target object file.
4498 * common/target-common.c: Move contents to
4499 target/waitstatus.c and remove.
4500 * common/target-common.h: Move contents to other files and
4501 remove.
4502 (enum resume_kind: Move to target/resume.h.
4503 (TARGET_WNOHANG): Move to target/wait.h.
4504 (enum target_waitkind): Move to target/waitstatus.h.
4505 (struct target_waitstatus): Likewise.
4506 * target.h: Do not include target-common.h and
4507 include target/resume.h, target/wait.h and
4508 target/waitstatus.h.
4509 * target/resume.h: New file.
4510 * target/wait.h: New file.
4511 * target/waitstatus.h: New file.
4512 * target/waitstatus.c: New file.
4513
12696c10
PA
45142013-08-19 Pedro Alves <palves@redhat.com>
4515
4516 * linux-nat.c (linux_test_for_tracefork)
4517 (linux_test_for_tracesysgood, linux_child_follow_fork)
4518 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4519 (linux_nat_wait_1): Extend comment.
4520 (linux_async_pipe): Add comment.
4521
ba89f962
KB
45222013-08-15 Kevin Buettner <kevinb@redhat.com>
4523
4524 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4525 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4526 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4527 Update to account for fact that PC is now a pseudo-register.
4528 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4529 cases for RL78_PC_REGNUM.
4530
35ab155d
MB
45312013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4532
4533 PR cli/15841
4534 * top.c (quit_force): Skip writing history file
4535 if input is not from terminal.
4536
0d031856
TT
45372013-08-14 Tom Tromey <tromey@redhat.com>
4538
4539 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4540 resultthreadlist>: New fields.
4541 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4542 (remote_get_threadlist, remote_threadlist_iterator): Use
4543 new fields. Remove static variables.
4544
ee154bee
TT
45452013-08-14 Tom Tromey <tromey@redhat.com>
4546
4547 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4548 remote_watch_data_address>: New fields.
4549 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4550 (process_stop_reply, remote_wait_as)
4551 (remote_check_watch_resources, remote_stopped_data_address): Update.
4552
88b496c3
TT
45532013-08-14 Tom Tromey <tromey@redhat.com>
4554
4555 * remote.c (struct remote_state) <async_client_callback,
4556 async_client_context>: New fields.
4557 (async_client_callback, async_client_context): Remove.
4558 (remote_async_serial_handler, remote_async): Update.
4559
2f65bcb7
TT
45602013-08-14 Tom Tromey <tromey@redhat.com>
4561
4562 * remote.c (sizeof_pkt): Remove.
4563 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4564
b80fafe3
TT
45652013-08-14 Tom Tromey <tromey@redhat.com>
4566
4567 * remote.c (struct remote_state) <use_threadinfo_query,
4568 use_threadextra_query>: New fields.
4569 (remote_threads_info, remote_threads_extra_info)
4570 (remote_open_1): Update.
4571
8e88304f
TT
45722013-08-14 Tom Tromey <tromey@redhat.com>
4573
4574 * remote.c (struct remote_state) <finished_object,
4575 finished_annex, finished_offset>: New fields.
4576 (remote_read_qxfer): Use remote_state fields; remove static
4577 variables.
4578
280ceea3
TT
45792013-08-14 Tom Tromey <tromey@redhat.com>
4580
4581 * remote.c (struct remote_state) <last_sent_step>:
4582 New field.
4583 (last_sent_step): Remove.
4584 (remote_resume, remote_wait_as): Update.
4585
b73be471
TT
45862013-08-14 Tom Tromey <tromey@redhat.com>
4587
4588 * remote.c (struct remote_state) <last_sent_signal>:
4589 New field.
4590 (last_sent_signal): Remove.
4591 (new_remote_state, remote_resume, remote_wait_as): Update.
4592
5e4a05c4
TT
45932013-08-14 Tom Tromey <tromey@redhat.com>
4594
4595 * remote.c (struct remote_state) <last_program_signals_packet>:
4596 New field.
4597 (last_program_signals_packet): Remove.
4598 (remote_program_signals, remote_open_1): Update.
4599
747dc59d
TT
46002013-08-14 Tom Tromey <tromey@redhat.com>
4601
4602 * remote.c (struct remote_state) <last_pass_packet>:
4603 New field.
4604 (last_pass_packet): Remove.
4605 (remote_pass_signals, remote_open_1): Update.
4606
262e1174
TT
46072013-08-14 Tom Tromey <tromey@redhat.com>
4608
4609 * remote.c (struct remote_state) <remote_traceframe_number>:
4610 New field.
4611 (remote_traceframe_number): Remove.
4612 (new_remote_state, remote_open_1, set_remote_traceframe)
4613 (remote_trace_find): Update.
4614
47f8a51d
TT
46152013-08-14 Tom Tromey <tromey@redhat.com>
4616
4617 * remote.c (struct remote_state) <general_thread, continue_thread>:
4618 New fields.
4619 (general_thread, continue_thread): Remove.
4620 (record_currthread, set_thread, set_general_process)
4621 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4622 (extended_remote_mourn_1): Update.
4623
5d93a237
TT
46242013-08-14 Tom Tromey <tromey@redhat.com>
4625
4626 * remote.c (struct remote_state) <remote_desc>: New field.
4627 (remote_desc): Remove.
4628 (remote_threads_info, remote_threads_extra_info, remote_close)
4629 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4630 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4631 (remote_hostio_send_command, remote_file_put, remote_file_get)
4632 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4633 (remote_async, remote_new_objfile, set_range_stepping): Update.
4634
cf792862
TT
46352013-08-14 Tom Tromey <tromey@redhat.com>
4636
4637 * remote.c (remote_state): Now a pointer.
4638 (get_remote_state_raw): Update.
4639 (new_remote_state): New function.
4640 (_initialize_remote): Use new_remote_state.
4641
dc473cfb
TT
46422013-08-14 Tom Tromey <tromey@redhat.com>
4643
4644 * remote.c (remote_protocol_features): Now const.
4645
85ec6ce7
TT
46462013-08-14 Tom Tromey <tromey@redhat.com>
4647
4648 * remote.c (crc32_table, crc32): Remove.
4649 (remote_verify_memory): Use xcrc32.
4650
73033f12
SDJ
46512013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4652
4653 * value.h (create_internalvar_type_lazy): Adjust prototype
4654 declaration.
4655
5c30d39a
AB
46562013-08-13 Andrew Burgess <aburgess@broadcom.com>
4657
4658 * common/format.c (parse_format_string): Don't allow '#' flag for
4659 pointer arguments in format string.
4660
1a66331e
PM
46612013-08-13 Pierre Muller <muller@sourceware.org>
4662
fde605f3 4663 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4664 if rl_get_screen_size did not return useful values.
4665
b4013987
AA
46662013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4667
4668 PR breakpoints/15117
4669 * linespec.c (linespec_parse_basic): Check for convenience
4670 variable or history value while parsing.
4671
959b6a66
SDJ
46722013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4673
4674 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4675 AVR.
4676 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4677 different signals between the generic Linux kernel implementation
4678 and AVR's.
4679 (avr_linux_gdb_signal_from_target): Delete.
4680 (avr_linux_gdb_signal_to_target): Delete.
4681 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4682
24a55014
DE
46832013-08-09 Doug Evans <dje@google.com>
4684
4685 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4686 entries.
4687
eb14d406
SDJ
46882013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4689
4690 * linux-tdep.c: Define enum with generic signal numbers.
4691 (linux_gdb_signal_from_target): New function.
4692 (linux_gdb_signal_to_target): Likewise.
4693 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4694 methods to the functions above.
4695 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4696 (linux_gdb_signal_to_target): Likewise.
4697 * alpha-linux-tdep.c: Define new enum with signals different
4698 from generic Linux kernel.
4699 (alpha_linux_gdb_signal_from_target): New function.
4700 (alpha_linux_gdb_signal_to_target): Likewise.
4701 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4702 with the functions mentioned above.
4703 * avr-tdep.c: Define enum with differences between Linux kernel
4704 and AVR signals.
4705 (avr_linux_gdb_signal_from_target): New function.
4706 (avr_linux_gdb_signal_to_target): Likewise.
4707 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4708 the functions mentioned above.
4709 * sparc-linux-tdep.c: Define enum with differences between SPARC
4710 and generic Linux kernel signal numbers.
4711 (sparc32_linux_gdb_signal_from_target): New function.
4712 (sparc32_linux_gdb_signal_to_target): Likewise.
4713 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4714 to the functions defined above.
4715 * xtensa-linux-tdep.c: Define enum with differences between
4716 Xtensa and Linux kernel generic signals.
4717 (xtensa_linux_gdb_signal_from_target): New function.
4718 (xtensa_linux_gdb_signal_to_target): Likewise.
4719 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4720 to the functions defined above.
4721 * mips-linux-tdep.c: Define enum with differences between
4722 signals in MIPS and Linux kernel generic ones.
4723 (mips_gdb_signal_to_target): New function.
4724 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4725 only different signals from the Linux kernel generic.
4726 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4727 the functions defined above.
4728 * mips-linux-tdep.h (enum mips_signals): Remove.
4729
156d08c8
PA
47302013-08-09 Pedro Alves <palves@redhat.com>
4731
4732 * avr-tdep.c (XMALLOC): Delete macro.
4733 * cli/cli-dump.c (XMALLOC): Delete macro.
4734
db229724
PA
47352013-08-09 Pedro Alves <palves@redhat.com>
4736
4737 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4738 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4739 (fopen_with_cleanup, add_dump_command): Make static.
4740 * cli/cli-dump.h: Delete file.
4741 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4742 cli/cli-dump.h.
4743
3f12a589
PA
47442013-08-09 Pedro Alves <palves@redhat.com>
4745
4746 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4747 error message.
4748
c718be47
PA
47492013-08-09 Pedro Alves <palves@redhat.com>
4750
156d08c8 4751 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4752 error message.
4753
1e351ed1
PA
47542013-08-09 Pedro Alves <palves@redhat.com>
4755
4756 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4757 (gcore_command): Use tilde_expand here, and when showing the
4758 filename to the user, show the expanded version.
4759
1ed8d800
YQ
47602013-08-09 Yao Qi <yao@codesourcery.com>
4761
4762 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4763 'entryval' is set.
4764
47ecca85
PA
47652013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4766
4767 * gcore.c (create_gcore_bfd): Use tilde_expand.
4768
82a0a75f
YQ
47692013-08-08 Yao Qi <yao@codesourcery.com>
4770
4771 * frame.h (read_frame_local): Declare.
4772 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4773 read_frame_local.
4774 * stack.c (read_frame_local): New.
4775
5c4aa40b
YQ
47762013-08-08 Yao Qi <yao@codesourcery.com>
4777
4778 * mi/mi-cmd-stack.c: Update comments to function
4779 list_args_or_locals.
4780
b93601f3
TT
47812013-08-07 Tom Tromey <tromey@redhat.com>
4782
4783 PR symtab/15028:
4784 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4785 (process_psymtab_comp_unit_reader): Use it.
4786 (process_psymtab_comp_unit): Update. Add "pretend_language"
4787 argument.
4788 (dwarf2_build_psymtabs_hard): Update.
4789 (scan_partial_symbols): Pass CU's language to
4790 process_psymtab_comp_unit.
4791
fa760f46
TT
47922013-08-07 Tom Tromey <tromey@redhat.com>
4793
4794 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4795 (dwarf2_gdb_index_functions): Update.
4796 * psymtab.c (find_symbol_file_from_partial): Remove.
4797 (psym_functions): Update.
4798 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4799 Remove.
4800
bf6d8a91
TT
48012013-08-07 Tom Tromey <tromey@redhat.com>
4802
4803 * symfile.c (set_initial_language): Look up "main" symbol
4804 and use its language.
4805 * symtab.c (find_main_filename): Remove.
4806 * symtab.h (find_main_filename): Remove.
4807
f9125b6c
TT
48082013-08-07 Tom Tromey <tromey@redhat.com>
4809
4810 * dwarf2read.c (recursively_compute_inclusions): Add
4811 "immediate_parent" argument. Set symtab's "user" field
4812 if not set.
4813 (compute_symtab_includes): Update.
4814
fdbb204b
TT
48152013-08-07 Tom Tromey <tromey@redhat.com>
4816
4817 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4818 when adding label symbols.
4819
49de1690
UW
48202013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4821 Ulrich Weigand <uweigand@de.ibm.com>
4822
4823 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4824 * configure.host (powerpc64-*-aix*): Likewise.
4825
b08ee99f
UW
48262013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4827 Ulrich Weigand <uweigand@de.ibm.com>
4828
4829 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4830 is defined.
4831 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4832 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4833 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4834 * configure.ac: Check for ptrace64.
4835 * configure, config.in: Regenerate.
4836
fecf803e
UW
48372013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4838 Ulrich Weigand <uweigand@de.ibm.com>
4839
4840 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4841 Call ptrace64 instead of ptrace if defined.
4842 Add macro addr_ptr to take care of ptrace address argument.
4843 (pdc_read_regs): Likewise.
4844 (pdc_write_regs): Likewise.
4845 (aix_thread_resume): Likewise.
4846 (fetch_regs_kernel_thread): Likewise.
4847 (store_regs_kernel_thread): Likewise.
4848
3bb5e4a8
AB
48492013-08-07 Anton Blanchard <anton@samba.org>
4850
4851 * MAINTAINERS: Add myself to Write After Approval.
4852
12070676
TT
48532013-08-05 Tom Tromey <tromey@redhat.com>
4854
4855 * aix-thread.c (_initialize_aix_thread): Use
4856 complete_target_initialization.
4857 * bsd-uthread.c (_initialize_bsd_uthread): Use
4858 complete_target_initialization.
4859 * dec-thread.c (_initialize_dec_thread): Use
4860 complete_target_initialization.
4861 * ravenscar-thread.c (_initialize_ravenscar): Use
4862 complete_target_initialization.
4863 * sol-thread.c (_initialize_sol_thread): Use
4864 complete_target_initialization.
4865 * spu-multiarch.c (_initialize_spu_multiarch): Use
4866 complete_target_initialization.
4867
7c7b6655
TT
48682013-08-05 Tom Tromey <tromey@redhat.com>
4869
4870 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4871 * ada-lang.c (ada_lookup_simple_minsym): Return
4872 bound_minimal_symbol.
4873 * ada-lang.h (ada_lookup_simple_minsym): Update.
4874 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4875 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4876 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4877 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4878 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4879 * minsyms.c (msymbol_objfile): Remove.
4880 (lookup_minimal_symbol_internal): New function, from
4881 lookup_minimal_symbol.
4882 (lookup_minimal_symbol): Rewrite using
4883 lookup_minimal_symbol_internal.
4884 (lookup_bound_minimal_symbol): New function.
4885 * minsyms.h (msymbol_objfile): Remove.
4886 (lookup_bound_minimal_symbol): Declare.
4887 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4888 * parse.c (write_exp_msymbol): Change parameter to a
4889 bound_minimal_symbol.
4890 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4891 * parser-defs.h (write_exp_msymbol): Update.
4892 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4893 * symfile.c (simple_read_overlay_table): Use
4894 lookup_bound_minimal_symbol.
4895 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4896 (search_symbols): Likewise.
4897 (print_msymbol_info): Take a bound_minimal_symbol argument.
4898 (symtab_symbol_info, rbreak_command): Update.
4899 * symtab.h (struct symbol_search) <msymbol>: Change type
4900 to bound_minimal_symbol.
4901 * valops.c (find_function_in_inferior): Use
4902 lookup_bound_minimal_symbol.
4903 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4904
934b9bac
JK
49052013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 Code cleanup.
4908 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4909 to ...
4910 (async_cleanup_sigint_signal_handler): ... this.
4911 (initialize_sigint_signal_handler): Remove declaration.
4912 (handle_remote_sigint): Rename the declaration to ...
4913 (async_handle_remote_sigint): ... this.
4914 (handle_remote_sigint_twice): Rename the declaration to ...
4915 (async_handle_remote_sigint_twice): ... this.
4916 (async_remote_interrupt, async_remote_interrupt_twice)
4917 (remote_interrupt): Remove the declarations.
4918 (remote_interrupt_twice): Rename the declaration ...
4919 (sync_remote_interrupt_twice): ... this.
4920 (sigint_remote_twice_token): Rename the variable to ...
4921 (async_sigint_remote_twice_token): ... this.
4922 (sigint_remote_token): Rename the variable to ...
4923 (async_sigint_remote_token): ... this.
4924 (initialize_sigint_signal_handler): Rename the function to ...
4925 (async_initialize_sigint_signal_handler): ... this. Update the name
4926 inside.
4927 (handle_remote_sigint): Rename the function to ...
4928 (async_handle_remote_sigint): ... this. Update the names inside.
4929 (handle_remote_sigint_twice): Rename the function to ...
4930 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4931 (cleanup_sigint_signal_handler): Rename the function to ...
4932 (async_cleanup_sigint_signal_handler): ... this.
4933 (remote_interrupt): Rename the function to ...
4934 (sync_remote_interrupt): this. Update the names inside.
4935 (remote_interrupt_twice): Rename the function to ...
4936 (sync_remote_interrupt_twice): this. Update the names inside.
4937 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4938 (_initialize_remote): Update the names inside.
4939
3a1115a0
TT
49402013-08-02 Tom Tromey <tromey@redhat.com>
4941
4942 PR symtab/15719:
4943 * breakpoint.c (update_watchpoint, watchpoint_check)
4944 (watch_command_1): Update.
4945 * eval.c (fetch_subexp_value): Add "preserve_errors"
4946 parameter.
4947 * ppc-linux-nat.c (check_condition): Update.
4948 * value.h (fetch_subexp_value): Update.
4949
58b19776
AB
49502013-08-02 Andrew Burgess <aburgess@broadcom.com>
4951
4952 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4953 add_file_handler.
4954
ec94af83
DE
49552013-08-01 Doug Evans <dje@google.com>
4956
7ee85ab1
DE
4957 PR symtab/15691
4958 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4959 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4960 Add assert of sig_entry->dwo_unit == NULL.
4961 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4962 had already been read.
4963 (read_signatured_type): Set per_cu.tu_read.
4964
b846d303
DE
4965 PR symtab/15695
4966 * valops.c (value_struct_elt): Add missing call to check_typedef.
4967 (value_find_oload_method_list): Ditto.
4968
b52109bc
DE
4969 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4970 effectively, struct symbol_search **.
4971 (make_cleanup_free_search_symbols): Change arg to struct
4972 symbol_search **. All callers updated.
4973 (compare_search_syms): Compare symtab file name and block as well.
4974 (search_symbols_equal): New function.
4975 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4976 New args new_head, new_tail. Result is now void. Remove dups after
4977 sorting the symbols.
4978 (search_symbols): Sort all found symbols once, after all have been
4979 found, and remove duplicates. Simplify cleanup tracking of result.
4980 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4981
ec94af83
DE
4982 Further workarounds for binutils/15021.
4983 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4984 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4985 Watch for duplicate symtabs coming from type units.
4986 (compute_symtab_includes): Update call to
4987 recursively_compute_inclusions. Build vector of included symtabs
4988 instead of per_cus.
4989 * symtab.h (symtab_ptr): New typedef.
4990 (DEF_VEC_P (symtab_ptr)): New VEC type.
4991 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4992 instead.
4993
b2ae85cf
AB
49942013-08-01 Andrew Burgess <aburgess@broadcom.com>
4995
4996 * cli/cli-script.c (script_from_file): Remove use of
4997 error_pre_print.
4998 * main.c (captured_main): Remove use of error_pre_print and
4999 quit_pre_print.
5000 * utils.c (error_pre_print, quit_pre_print): Remove.
5001 * utils.h (error_pre_print, quit_pre_print): Likewise.
5002
645eab03
YQ
50032013-08-01 Yao Qi <yao@codesourcery.com>
5004
5005 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5006 with mi_getopt.
5007 (mi_cmd_stack_list_variables): Likewise.
5008
16f92dd4
AB
50092013-07-31 Andrew Burgess <aburgess@broadcom.com>
5010
5011 * exceptions.c (deprecated_throw_reason): Remove.
5012 * exceptions.h (deprecated_throw_reason): Remove.
5013
13f78033
AB
50142013-07-31 Andrew Burgess <aburgess@broadcom.com>
5015
5016 * remote-mips.c (mips_error): Replace use of
5017 deprecated_throw_reason with throw_verror. Use the error message
5018 passed to mips_error as the error message for throw_verror.
5019
039e3c22
AB
50202013-07-31 Andrew Burgess <aburgess@broadcom.com>
5021
5022 * monitor.c (monitor_interrupt_query): Replace use of
5023 deprecated_throw_reason with quit.
5024 * nto-procfs.c (interrupt_query): Likewise.
5025 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5026 * remote-mips.c (mips_kill): Likewise.
5027 * remote.c (interrupt_query): Likewise.
5028
8150913b
AB
50292013-07-31 Andrew Burgess <aburgess@broadcom.com>
5030
5031 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5032 with call to fatal.
5033
de74e63a
YQ
50342013-07-31 Pedro Alves <pedro@codesourcery.com>
5035 Yao Qi <yao@codesourcery.com>
5036
5037 * tracepoint.c (trace_dump_command): Select the current frame.
5038
247f5c4f
DE
50392013-07-30 Doug Evans <dje@google.com>
5040
5041 * dwarf2read.c (process_queue): Add type signature to debug output.
5042
11b4b7cc
AB
50432013-07-30 Andrew Burgess <aburgess@broadcom.com>
5044
5045 * value.c (value_fetch_lazy): Mark optimized out values as such
5046 rather than raising an error.
5047
b0c54aa5
AB
50482013-07-30 Andrew Burgess <aburgess@broadcom.com>
5049
5050 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5051 before checking which bits of the parent, not the child, value are
5052 valid.
5053
97c85fc6
MB
50542013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5055
5056 PR gdb/15715
5057 * top.c: Include "filenames.h".
5058 (set_history_filename): New function.
5059 (init_main): Install it as set hook of the "set history filename"
5060 command.
5061
ff39bb5e
SA
50622013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5063
5064 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5065 attribute parameter.
5066 (dwarf2_const_value_data): Constify struct attribute parameter.
5067 (dwarf2_const_value): Constify struct attribute parameter.
5068 (dwarf2_const_value_attr): Constify struct attribute parameter.
5069 (lookup_die_type): Constify struct attribute parameter.
5070 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5071 (follow_die_ref_or_sig): Constify struct attribute parameter.
5072 (follow_die_ref): Constify struct attribute parameter.
5073 (follow_die_sig): Constify struct attribute parameter.
5074 (get_DW_AT_signature_type): Constify struct attribute parameter.
5075 (get_type_unit_group): Constify struct attribute parameter.
5076 (fill_in_loclist_baton): Constify struct attribute parameter.
5077 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5078 (type_unit_group): Constify struct attribute parameter.
5079
6e5a29e1
SA
50802013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5081
5082 * dwarf2read.c (attr_form_is_block): Make argument const.
5083 (attr_form_is_section_offset): Make argument const.
5084 (attr_form_is_constant): Make argument const.
5085 (attr_form_is_ref): Make argument const.
5086
7771576e
SA
50872013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5088
5089 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5090 All uses updated.
5091 (attr_form_is_ref): Moved below attr_form_is_constant.
5092
a94e8645
DE
50932013-07-29 Doug Evans <dje@google.com>
5094
bb5291d0
DE
5095 * main.c (captured_command_loop): Tweak comment.
5096
b5419e49
DE
5097 * target.c (target_async_permitted_1): Fix comment.
5098
b2d23133
DE
5099 * symtab.c (iterate_over_some_symtabs): Add comment.
5100
a94e8645
DE
5101 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5102
7a60ad40
YQ
51032013-07-27 Yao Qi <yao@codesourcery.com>
5104
5105 * NEWS: Mention that GDBserver now supports hardware
5106 watchpoints on the MIPS GNU/Linux target.
5107
aaee2056
YQ
51082013-07-27 Yao Qi <yao@codesourcery.com>
5109
5110 * Makefile.in (HFILES_NO_SRCDIR): Add
5111 common/mips-linux-watch.h.
5112 (mips-linux-watch.o): New rule.
5113 * common/mips-linux-watch.c: New.
5114 * common/mips-linux-watch.h: New.
5115 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5116 * mips-linux-nat.c: Include mips-linux-watch.h.
5117 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5118 to common/mips-linux-watch.h.
5119 (MAX_DEBUG_REGISTER): Likewise.
5120 (enum pt_watch_style): Likewise.
5121 (struct mips32_watch_regs): Likewise.
5122 (struct mips64_watch_regs): Likewise.
5123 (struct pt_watch_regs): Likewise.
5124 (struct mips_watchpoint): Likewise.
5125 (mips_linux_watch_get_irw_mask): Move to
5126 common/mips-linux-watch.c.
5127 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5128 (mips_linux_watch_get_watchlo): Likewise.
5129 (mips_linux_watch_set_watchlo): Likewise.
5130 (mips_linux_watch_get_watchhi): Likewise.
5131 (mips_linux_watch_set_watchhi): Likewise.
5132 (mips_linux_read_watch_registers): Likewise.
5133 (mips_linux_watch_type_to_irw): Likewise.
5134 (mips_linux_stopped_data_address, fill_mask): Likewise.
5135 (mips_linux_watch_try_one_watch): Likewise.
5136 (mips_linux_watch_populate_regs): Likewise.
5137
b3436450
YQ
51382013-07-27 Yao Qi <yao@codesourcery.com>
5139
5140 * mips-linux-nat.c (get_irw_mask): Rename to ...
5141 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5142 'set' to 'n'. Update function comment. All callers changed.
5143 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5144 function comment. All callers changed.
5145 (get_num_valid): Rename to ...
5146 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5147 'set' to 'n'. Update function comment. All callers changed.
5148 (get_watchlo): Rename to ...
5149 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5150 'set' to 'n'. Update function comment. All callers changed.
5151 (set_watchlo): Rename to ...
5152 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5153 'set' to 'n'. Update function comment. All callers changed.
5154 (get_watchhi): Rename to ...
5155 (mips_linux_watch_get_watchhi): ... this. Update function
5156 comment. All callers changed.
5157 (set_watchhi): Rename to ...
5158 (mips_linux_watch_set_watchhi): ... this. Update function
5159 comment. All callers changed.
5160 (mips_linux_read_watch_registers): Update function comment.
5161 Add new parameters 'lwpid', 'watch_readback', and
5162 'watch_readback_valid'. Update.
5163 (type_to_irw): Rename to ...
5164 (mips_linux_watch_type_to_irw): ... this. Update function
5165 comment. All callers changed.
5166 (fill_mask): Update function comment.
5167 (try_one_watch): Rename to ...
5168 (mips_linux_watch_try_one_watch): ... this. Change the type
5169 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5170 (populate_regs_from_watches): Rename to ...
5171 (mips_linux_watch_populate_regs): ... this. Add parameter
5172 'current_watches'. All callers changed.
5173
9be14b81
YQ
51742013-07-27 Yao Qi <yao@codesourcery.com>
5175
5176 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5177 the code.
5178 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5179 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5180 (struct pt_watch_regs): Likewise.
5181 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5182 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5183 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5184 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5185 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5186
de6f69ad
YQ
51872013-07-27 Yao Qi <yao@codesourcery.com>
5188
5189 * breakpoint.h: Include break-common.h.
5190 (enum target_hw_bp_type): Move to ...
5191 * common/break-common.h: ... here. New.
5192
6f64ef53
PA
51932013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5194
5195 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5196 process group regardless of having tty on stdin.
5197
6107e809
DE
51982013-07-25 Doug Evans <dje@google.com>
5199
5200 * linux-fork.h (detach_fork): Delete.
5201
7fdc1521
TT
52022013-07-25 Tom Tromey <tromey@redhat.com>
5203
5204 PR remote/15256, PR remote/15266:
5205 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5206 * monitor.c (monitor_detach): Use unpush_target.
5207 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5208 * remote-mips.c (mips_detach): Use unpush_target. Don't
5209 call mips_close.
5210 * remote-sim.c (gdbsim_detach): Use unpush_target.
5211 * target.c (pop_target): Remove.
5212 (pop_all_targets_above): Don't call target_close.
5213 (target_close): Assert that the target is unpushed.
5214 * target.h (pop_target): Don't declare.
5215 * tracepoint.c (tfile_open): Use unpush_target.
5216
c22a2b88
TT
52172013-07-25 Tom Tromey <tromey@redhat.com>
5218
5219 * linux-thread-db.c (init_thread_db_ops): Call
5220 complete_target_initialization.
5221 (_initialize_thread_db): Don't call add_target.
5222 * target.c (complete_target_initialization): New function.
5223 (add_target_with_completer): Call it.
5224 * target.h (complete_target_initialization): Declare.
5225
cbb6aada
MK
52262013-07-25 Mark Kettenis <kettenis@gnu.org>
5227
5228 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5229 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5230 (HPPANBSD_SIZEOF_GREGS): New define.
5231 (hppaobsd_supply_gregset): Handle additional registers.
5232 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5233 we provide more registers now.
5234 (hppabsd_supply_gregset): Supply additional registers.
5235 (hppabsd_collect_gregset): Collect additional registers.
5236
17767988
MK
52372013-07-25 Mark Kettenis <kettenis@gnu.org>
5238
5239 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5240 (hppabsd_dwarf2_frame_init_reg): New function.
5241 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5242
fdc8aae8
AB
52432013-07-25 Andrew Burgess <aburgess@broadcom.com>
5244
5245 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5246 'z' format code. Remove error for optimized out values, standard
5247 code will handle these fine.
5248
6fbe845e
AB
52492013-07-25 Andrew Burgess <aburgess@broadcom.com>
5250
5251 * NEWS: Mention new 'z' formatter.
5252 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5253 (_initialize_printcmd): Mention 'z' formatter in help text of the
5254 'x' command.
5255
3373342d
MR
52562013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5257
5258 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5259 formatting.
5260
25f9533e
SDJ
52612013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5262
5263 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5264 interface can evaluate arguments. Fallback to the old mode if it
5265 cannot.
5266 (create_exception_master_breakpoint): Likewise.
5267 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5268 (struct sym_probe_fns elf_probe_fns): Export function above to the
5269 probe interface.
5270 * probe.c (can_evaluate_probe_arguments): New function.
5271 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5272 function pointer.
5273 (can_evaluate_probe_arguments): New function prototype.
5274 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5275 probe interface can evaluate arguments. Fallback to the old mode
5276 if it cannot.
5277 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5278 interface can evaluate arguments. Warning the user if it cannot.
5279 (stap_can_evaluate_probe_arguments): New function.
5280 (struct probe_ops stap_probe_ops): Export function above to the
5281 probe interface.
5282 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5283 New function pointer.
5284
3360c0bf
LM
52852013-07-24 Luis Machado <lgustavo@codesourcery.com>
5286
5287 * Makefile.in (SFILES): Add common/target-common.c.
5288 Add common/target-common.h to headers.
5289 (COMMON_OBS): Add target-common.o.
5290 (target-common.o): New target.
5291 * linux-nat.h (resume_kind): Move to common/target-common.h.
5292 * target.c (target_waitstatus_to_string): Move to
5293 common/target-common.c.
5294 * target.h: Include target-common.h.
5295 (target_waitkind): Move to common/target-common.h.
5296 (target_waitstatus): Likewise.
5297 (TARGET_WNOHANG): Likewise.
5298 * common/target-common.c: New file.
5299 * common/target-common.h: New file.
5300
6656a72d
DE
53012013-07-24 Doug Evans <dje@google.com>
5302
5303 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5304 a warning.
5305
6df81a63
YQ
53062013-07-23 Yao Qi <yao@codesourcery.com>
5307
5308 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5309 parameter 'gdbarch'.
5310 (i386_stack_tramp_frame_sniffer): Caller update.
5311 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5312 parameter 'gdbarch' and 'target'.
5313 (i386_linux_core_read_description): Caller update.
5314 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5315 Likewise.
5316 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5317 declaration.
5318
365156ad
TT
53192013-07-23 Tom Tromey <tromey@redhat.com>
5320
5321 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5322 2013-07-22.
5323
046ac79f
JK
53242013-07-22 Doug Evans <dje@google.com>
5325
5326 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5327 * exec.c (exec_close): Update call to remove_target_sections.
5328 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5329 * solib.c (update_solib_list): Ditto.
5330 (reload_shared_libraries_1): Ditto.
5331 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5332 * target.h (struct target_section): Rename key to owner.
5333 All uses updated.
046ac79f 5334
29b2cc46
TT
53352013-07-22 Tom Tromey <tromey@redhat.com>
5336
5337 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5338
d1160018
TT
53392013-07-22 Tom Tromey <tromey@redhat.com>
5340
5341 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5342 Simplify cleanup handling.
5343
2f324bf6
TT
53442013-07-22 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5347 on all return paths.
5348
e23b9d6e
UW
53492013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5350
5351 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5352 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5353 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5354
1cf55f60
PM
53552013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5356
5357 * top.c (print_gdb_version): Add help, apropos description and
5358 url to online documentation.
5359
fa876972
HZ
53602013-07-19 Hui Zhu <hui@codesourcery.com>
5361
5362 PR gdb/15692
5363 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5364
1527aea8
YQ
53652013-07-19 Yao Qi <yao@codesourcery.com>
5366
5367 * target.c (update_current_target): Change the default action
5368 of 'to_traceframe_info' from tcomplain to return_zero.
5369 * target.h (struct target_ops) <to_traceframe_info>: Add more
5370 comments.
5371 * valops.c (read_value_memory): Call
5372 traceframe_available_memory unconditionally.
5373
886f230e
YQ
53742013-07-18 Yao Qi <yao@codesourcery.com>
5375
5376 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5377 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5378 symbol without prefix. If found, set its type to
5379 'mst_solib_trampoline'.
5380
16419bae
DE
53812013-07-17 Doug Evans <dje@google.com>
5382
e7045703
DE
5383 * NEWS: Mention "set print raw frame-arguments".
5384 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5385 * stack.c (print_raw_frame_arguments): New static global.
5386 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5387 (_initialize_stack): New command "set/show print raw frame-arguments".
5388 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5389 (set_print_raw, show_print_raw): New functions.
5390 (_initialize_valprint): New prefix command "set/show print raw".
5391 * valprint.h (value_print_options): Improve comments.
5392
453e48a5
DE
5393 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5394 of all *list variables.
5395
16419bae
DE
5396 * gdbcmd.h (togglelist): Delete.
5397 * cli/cli-cmds.c (togglelist): Delete.
5398 (init_cmd_lists): Update.
5399 * cli/cli-cmds.h (togglelist): Delete.
5400
626f2d1c
TT
54012013-07-17 Tom Tromey <tromey@redhat.com>
5402
5403 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5404 dwarf2_per_objfile.
5405
57e6060e
DE
54062013-07-16 Doug Evans <dje@google.com>
5407
5408 * nto-tdep.c (nto_relocate_section_addresses): Update,
5409 target_section.bfd deleted.
5410 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5411 * s390-tdep.c (s390_load): Ditto.
5412 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5413
5ea5559b
AB
54142013-07-16 Andrew Burgess <aburgess@broadcom.com>
5415
5416 * common/format.c (parse_format_string): Add checks for NULL
5417 character before calling strchr.
5418
2b2848e2
DE
54192013-07-16 Doug Evans <dje@google.com>
5420
2c571006
DE
5421 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5422 temp_pathname argument.
5423 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5424 when opening the file fails.
5425
2b2848e2
DE
5426 * target.h (struct target_section): Delete member bfd.
5427 All users updated to use the_bfd_section->owner instead.
5428 * exec.c (add_to_section_table): Assert bfd is expected value.
5429 Remove initialization of target_section.bfd.
5430 (remove_target_sections): Update.
5431 (section_table_available_memory): Update.
5432 (section_table_xfer_memory_partial): Update.
5433 (print_section_info): Update.
5434 (exec_set_section_address): Update.
5435 * record-full.c (record_full_core_xfer_partial): Update.
5436 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5437 * solib-target.c (solib_target_relocate_section_addresses): Update.
5438 * symfile.c (build_section_addr_info_from_section_table): Update.
5439 * target.c (memory_xfer_live_readonly_partial): Update.
5440 (memory_xfer_partial_1): Update.
5441
926bf92d
UW
54422013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5443
5444 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5445 now available for embedded (BookE) and server (BookS) processors,
5446 correct mentions of 'booke' and adjust comments accordingly in order to
5447 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5448 (have_ptrace_booke_interface): Rename function and variable
5449 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5450 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5451 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5452 'hwdebug_point_cmp'. Update all uses.
5453 (booke_find_thread_points_by_tid): Rename function
5454 'booke_find_thread_points_by_tid' to
5455 'hwdebug_find_thread_points_by_tid'. Update all uses.
5456 (booke_insert_point): Rename function 'booke_insert_point' to
5457 'hwdebug_insert_point'. Update all uses.
5458 (booke_remove_point): Rename function 'booke_remove_point' to
5459 'hwdebug_remove_point'. Update all uses.
5460
d929bc19
MR
54612013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5462
5463 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5464 numbers with enum values.
5465
054e8d9e
AA
54662013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5467
5468 PR threads/13217
5469 * thread.c (thread_apply_all_command): Check for valid threads
5470 and thread count.
5471 (thread_array_cleanup): New struct.
5472 (set_thread_refcount): New function.
5473
cf006359
AB
54742013-07-11 Andrew Burgess <aburgess@broadcom.com>
5475
5476 * infcmd.c (default_print_one_register_info): Reuse function
5477 print_hex_chars.
5478
94e36acc
TT
54792013-07-10 Tom Tromey <tromey@redhat.com>
5480
5481 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5482 (ada-exp.o): New target.
5483
915dd369
SDJ
54842013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5485
5486 * mt-tdep.c (mt_registers_info): Call
5487 get_no_prettyformat_print_options instead of
5488 get_raw_print_options (regression by last patch from Doug
5489 Evans).
5490
eca07816
JB
54912013-07-09 Pedro Alves <palves@redhat.com>
5492
5493 Checked in by Joel Brobecker <brobecker@adacore.com>.
5494 * ada-lang.c (coerce_unspec_val_to_type): Use
5495 value_optimized_out_const.
5496 * value.c (value_optimized_out_const): New function.
5497 * value.h (value_optimized_out_const): New declaration.
5498
2a998fc0
DE
54992013-07-09 Doug Evans <dje@google.com>
5500
5501 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5502 Enum values rename as well. All uses updated.
5503 * valprint.h (value_print_options): Rename member pretty to
5504 pretty format. Rename member prettyprint_arrays to
5505 prettyformat_arrays. Rename member prettyprint_structs to
5506 prettyformat_structs. All uses updated.
5507 (get_no_prettyformat_print_options): Renamed from
5508 get_raw_print_options.
5509 * valprint.c (get_no_prettyformat_print_options): Renamed from
5510 get_raw_print_options. All callers updated.
5511 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5512 All callers updated.
5513 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5514 All callers updated.
5515 (_initialize_valprint): Improve help text for "set print pretty" and
5516 "set print arrays".
5517
466c1fca
AB
55182013-07-09 Andrew Burgess <aburgess@broadcom.com>
5519
5520 * value.c (value_bits_valid): Revert previous change, and change
5521 by Pedro on 2013-07-04, due to regressions in
5522 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5523
ad0f0303
AB
55242013-07-08 Andrew Burgess <aburgess@broadcom.com>
5525 Pedro Alves <palves@redhat.com>
5526
5527 * value.c (value_bits_valid): If the value is not lval_computed
5528 or has no check validity handler then the answer is the
5529 optimized_out flag, otherwise defer to the handler.
5530
b187bec1
EZ
55312013-07-06 Eli Zaretskii <eliz@gnu.org>
5532
48d1d6f5
EZ
5533 * top.c (print_gdb_configuration): Explain in output of
5534 --configuration what does "relocatable" mean.
5535
b187bec1
EZ
5536 * main.c (print_gdb_help): Regroup options in the --help text.
5537 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5538 the relevant discussions.
5539
52d361e1
YQ
55402013-07-06 Yao Qi <yao@codesourcery.com>
5541
5542 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5543 Remove parameter 'lsal'.
5544 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5545 to inner block. Caller update.
5546 (base_breakpoint_create_breakpoints_sal): Update.
5547 (bkpt_create_breakpoints_sal): Likewise.
5548 (tracepoint_create_breakpoints_sal): Likewise.
5549 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5550 element 0 of vector 'canonical->sals'.
5551
e1ec1b42
LM
55522013-07-05 Luis Machado <lgustavo@codesourcery.com>
5553
5554 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5555 register number instead of the pseudo register one.
5556 (rs6000_dwarf2_reg_to_regnum): Likewise.
5557
7195e6f0
PA
55582013-07-04 Pedro Alves <palves@redhat.com>
5559
5560 * findvar.c (value_of_register): Use allocate_optimized_out_value
5561 if the register has been optimized out, instead of
5562 set_value_optimized_out.
5563 * frame-unwind.c (frame_unwind_got_optimized): Use
5564 allocate_optimized_out_value.
5565
58722cac
PA
55662013-07-04 Pedro Alves <palves@redhat.com>
5567
5568 * value.c (value_bits_valid): If the value is not lval_computed,
5569 or doesn't have a check_validity hook, assume the value is entirely
5570 valid.
5571
691a26f5
AB
55722013-07-04 Andrew Burgess <aburgess@broadcom.com>
5573
5574 * stack.c (read_frame_arg): No longer fetch lazy values.
5575 * value.c (value_optimized_out): If the value is not already
5576 marked optimized out, and is lazy then fetch it.
5577 (value_primitive_field): Move optimized out check to later in the
5578 function, after we have loaded any lazy values.
5579 (value_fetch_lazy): Use optimized out flag directly rather than
5580 calling optimized_out method.
5581
a58e2656
AB
55822013-07-04 Andrew Burgess <aburgess@broadcom.com>
5583
5584 * valops.c: Don't include "user-regs.h".
5585 (value_fetch_lazy): Moved to value.c.
5586 * value.c: Include "user-regs.h".
5587 (value_fetch_lazy): Moved from valops.c.
5588
bd885420
YQ
55892013-07-04 Yao Qi <yao@codesourcery.com>
5590
5591 Revert:
5592 2013-06-27 Yao Qi <yao@codesourcery.com>
5593
5594 * common/create-version.sh: Update comments. Handle the case
5595 that TARGET_ALIAS is empty.
5596
17ef446e
PA
55972013-07-03 Pedro Alves <palves@redhat.com>
5598
5599 * Makefile.in (config.status): Depend on development.sh.
5600 (aclocal_m4_deps): Add libmcheck.m4.
5601 * acinclude.m4: Include libmcheck.m4.
5602 * configure.ac: Source development.sh instead of setting
5603 'development' here. --enable-libmcheck/--disable-libmcheck code
5604 factored out to GDB_AC_LIBMCHECK. Run it.
5605 * development.sh: New file.
5606 * libmcheck.m4: New file.
5607 * configure: Regenerate.
5608
ac6dd50f
TT
56092013-07-02 Tom Tromey <tromey@redhat.com>
5610
5611 * contrib/ari/update-web-ari.sh: Update for version.in change.
5612
bd1df410
TT
56132013-07-02 Tom Tromey <tromey@redhat.com>
5614
5615 * common/ptid.h: Comment fixes.
5616
4db1a1dc
TT
56172013-07-01 Tom Tromey <tromey@redhat.com>
5618
5619 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5620 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5621 (dwarf2_read_index, create_all_comp_units): Update.
5622
dd9aa048
TT
56232013-07-01 Tom Tromey <tromey@redhat.com>
5624
5625 * configure.ac (build_warnings): Add -Wold-style-definition.
5626 * configure: Rebuild.
5627 * machoread.c (_initialize_machoread): Use "(void)".
5628 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5629 use "(void)".
5630
44d100c3
TT
56312013-07-01 Tom Tromey <tromey@redhat.com>
5632
5633 * configure.ac (build_warnings): Add -Wold-style-declaration.
5634 * configure: Rebuild.
5635 * dsrec.c (make_srec): Use "static const", not "const static".
5636 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5637 not "const static".
5638 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5639 Use "static const", not "const static".
5640 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5641 not "const static".
5642 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5643 not "const static".
5644 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5645 not "const static".
5646 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5647 not "const static".
5648 (v850_dbtrap_breakpoint_from_pc): Likewise.
5649 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5650 not "const static".
5651
2945b807
TT
56522013-07-01 Tom Tromey <tromey@redhat.com>
5653
5654 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5655 * configure: Rebuild.
5656
d8d2a3ee
PA
56572013-07-01 Pedro Alves <palves@redhat.com>
5658
5659 * defs.h: Include "pathmax.h".
5660 * utils.c: Don't include sys/param.h.
5661 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5662 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5663 instead of MAXPATHLEN.
5664 * solib-sunos.c: Don't include sys/param.h.
5665 * xcoffread.c: Don't include sys/param.h.
5666 * bsd-kvm.c: Don't include sys/param.h.
5667 * darwin-nat.c: Don't include sys/param.h.
5668 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5669 * darwin-nat-info.c: Don't include sys/param.h.
5670 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5671 MAXPATHLEN.
5672 * i386obsd-nat.c: Don't include sys/param.h.
5673 * inf-child.c: Don't include sys/param.h.
5674 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5675 * linux-fork.c: Don't include sys/param.h.
5676 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5677 * linux-nat.c: Don't include sys/param.h.
5678 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5679 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5680 * m68klinux-nat.c: Don't include sys/param.h.
5681 * nbsd-nat.c: Don't include sys/param.h.
5682 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5683 * ppc-linux-nat.c: Don't include sys/param.h.
5684 * rs6000-nat.c: Don't include sys/param.h.
5685 * spu-linux-nat.c. Don't include sys/param.h.
5686 * windows-nat.c: Don't include sys/param.h.
5687 * xtensa-linux-nat.c: Don't include sys/param.h.
5688 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5689
38ec2207
PA
56902013-07-01 Pedro Alves <palves@redhat.com>
5691
5692 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5693 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5694 * gnulib/aclocal.m4: Regenerate.
5695 * gnulib/config.in: Regenerate.
5696 * gnulib/configure: Regenerate.
5697 * gnulib/import/pathmax.h: New file.
5698 * gnulib/import/Makefile.am: Regenerate.
5699 * gnulib/import/Makefile.in: Regenerate.
5700 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5701 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5702 * gnulib/import/m4/pathmax.m4: New file.
5703
e655c1a2
PA
57042013-07-01 Pedro Alves <palves@redhat.com>
5705
5706 * configure.ac (GDBINIT): Define, depending on host.
5707 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5708 * top.c (PATH_MAX): Delete fallback definition.
5709 (GDBINIT_FILENAME): Delete.
5710 (gdbinit): Reimplement as const char array set to the GDBINIT
5711 string constant.
5712 * top.h (gdbinit): Make const.
5713 * configure, config.in: Regenerate.
5714
50dd9793
PA
57152013-07-01 Pedro Alves <palves@redhat.com>
5716
5717 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5718 * cli/cli-cmds.h (source_script): Likewise.
5719 * exceptions.c (catch_command_errors_const): New function.
5720 * exceptions.h (catch_command_errors_const): Declare.
5721 * main.c (get_init_files): Make parameters const, and adjust.
5722 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5723 'local_gdbinit' locals const. Adjust to use
5724 catch_command_errors_const.
5725 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5726 'local_gdbinit' locals const.
5727
bc7dea8d
PA
57282013-07-01 Pedro Alves <palves@redhat.com>
5729
5730 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5731 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5732 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5733 <unistd.h>.
5734
8839a007
PA
57352013-07-01 Pedro Alves <palves@redhat.com>
5736
5737 Import the "unistd" gnulib module.
5738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5739 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5740 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5741 import/m4/unistd_h.m4.
5742 * gnulib/aclocal.m4: Renenerate.
5743 * gnulib/config.in: Renenerate.
5744 * gnulib/configure: Renenerate.
5745 * gnulib/import/Makefile.am: Renenerate.
5746 * gnulib/import/Makefile.in: Renenerate.
5747 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5748 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5749 * gnulib/import/m4/off_t.m4: New file.
5750 * gnulib/import/m4/ssize_t.m4: New file.
5751 * gnulib/import/m4/sys_types_h.m4: New file.
5752 * gnulib/import/m4/unistd_h.m4: New file.
5753 * gnulib/import/sys_types.in.h: New file.
5754 * gnulib/import/unistd.c: New file.
5755 * gnulib/import/unistd.in.h: New file.
5756
8c0da261
PA
57572013-07-01 Pedro Alves <palves@redhat.com>
5758
5759 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5760 defined instead of checking HAVE_UNISTD_H.
5761
3574124b
PA
57622013-07-01 Pedro Alves <palves@redhat.com>
5763
5764 Reimport gnulib from scratch.
5765 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5766 import/m4/onceonly.m4.
5767 * gnulib/aclocal.m4: Renegerate.
5768 * gnulib/config.in: Renegerate.
5769 * gnulib/configure: Renegerate.
5770 * gnulib/import/Makefile.in: Renegerate.
5771 * gnulib/import/extra/update-copyright: Renegerate.
5772 * gnulib/import/m4/onceonly.m4: Delete.
5773
702dc4fd
PA
57742013-07-01 Pedro Alves <palves@redhat.com>
5775
5776 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5777
47e1ce27
JK
57782013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5779
5780 Code cleanup.
5781 * remote.c (async_remote_interrupt_twice): Make it static.
5782 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5783
e82839d4
SDJ
57842013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5785
5786 * ia64-linux-tdep.c: Include <ctype.h>.
5787 (ia64_linux_stap_is_single_operand): New function.
5788 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5789
d6c2da54
TT
57902013-06-28 Tom Tromey <tromey@redhat.com>
5791
5792 * Makefile.in (version.c): Use version.in, not
5793 common/version.in.
5794 * common/create-version.sh: Likewise.
5795 * common/version.in: Move...
5796 * version.in: ...here.
5797
74da6f00
PA
57982013-06-28 Pedro Alves <palves@redhat.com>
5799
5800 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5801 here.
5802 * utils.h (pagination_enabled): Declare.
5803
d32dc48e
PA
58042013-06-28 Pedro Alves <palves@redhat.com>
5805
5806 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5807 Move higher up in file.
5808
0edd9e3b
TT
58092013-06-28 Tom Tromey <tromey@redhat.com>
5810
5811 * tracepoint.c (deprecated_readline_begin_hook)
5812 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5813 declare.
5814
4eb59108
PA
58152013-06-28 Pedro Alves <palves@redhat.com>
5816
5817 PR tui/14880
5818 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5819 checking if they're available.
5820 * value.c (value_available_contents_eq): Change comment.
5821 * value.h (value_available_contents_eq): Expand comment.
5822
97b17156
TT
58232013-06-27 Tom Tromey <tromey@redhat.com>
5824
5825 * target.c (find_run_target): Remove.
5826 * target.h (find_run_target): Remove.
5827
6a3bfc5c
TT
58282013-06-27 Tom Tromey <tromey@redhat.com>
5829
5830 * corelow.c (core_gdbarch): Now static.
5831
c9ef825d
TT
58322013-06-27 Tom Tromey <tromey@redhat.com>
5833
5834 * target.c (target_struct_index): Remove.
5835
e5823f1c
PA
58362013-06-27 Pedro Alves <palves@redhat.com>
5837
5838 * infrun.c: Remove comment describing the 'stepping over runtime
5839 loader dynamic symbol resolution code' mechanism; moved to
5840 gdbint.texinfo.
5841
97f8dd09
PA
58422013-06-27 Pedro Alves <palves@redhat.com>
5843
5844 * exceptions.c (catch_command_errors): Remove spurious space.
5845 * exceptions.h (catch_command_errors): Second parameter is "arg",
5846 not "command".
5847
02b1871e
YQ
58482013-06-27 Yao Qi <yao@codesourcery.com>
5849
5850 * common/create-version.sh: Update comments. Handle the case
5851 that TARGET_ALIAS is empty.
5852
bb1b1cf1
PA
58532013-06-26 Pedro Alves <palves@redhat.com>
5854
5855 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5856 comment.
5857
7b624e71
PA
58582013-06-26 Pedro Alves <palves@redhat.com>
5859
5860 * infrun.c: Update comments on stepping over runtime loader
5861 dynamic symbol resolution code.
5862
74e5a346
SDJ
58632013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5864
5865 * ax-gdb.h (union exp_element): Forward declare.
5866 * parser-defs.h: Include expression.h.
5867
a2fb2cee
MR
58682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5869
5870 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5871
cdba14e0
DK
58722013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5873
5874 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5875
f30aa5af
DK
58762013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5877
5878 Fix trace-status to output proper start-time and stop-time.
5879 * tracepoint.c (trace_status_command): Fix type of printf arg to
5880 prevent improper type conversion.
5881 (trace_status_mi): Likewise.
5882
1aee363c
MR
58832013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5884
5885 * mips-tdep.c (mips_next_pc): Fix a typo.
5886
3356937a
MR
58872013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5888
5889 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5890
dc673c81
YQ
58912013-06-26 Pedro Alves <pedro@codesourcery.com>
5892 Yao Qi <yao@codesourcery.com>
5893
5894 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5895 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5896 * mi/mi-main.c (print_variable_or_computed): New function.
5897 (mi_cmd_trace_frame_collected): New function.
5898 * tracepoint.c (find_trace_state_variable_by_number): New.
5899 (struct traceframe_info): Move to tracepoint.h
5900 (struct collection_list): Likewise.
5901 (do_collect_symbol): Include locals and arguments in the
5902 collected variables list.
5903 (clear_collection_list): Clear wholly collected variables list
5904 and computed variables list.
5905 (append_exp): New function.
5906 (encode_actions_1): Include variables in the wholly
5907 collected variables list. Include memory ranges and
5908 full-fledged expressions in the computed expressions list.
5909 (encode_actions): Move some code to ...
5910 Return the cleanup chain.
5911 (encode_actions_rsp): ... here. New function.
5912 (get_traceframe_location, get_traceframe_info): Remove static.
5913 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5914 (struct collection_list): Moved from tracepoint.c. Add two
5915 new fields 'wholly_collected' and 'computed'.
5916 (find_trace_state_variable_by_number): Declare.
5917 (encode_actions): Adjust declaration.
5918 (encode_actions_rsp): Declare.
5919 (get_traceframe_info, get_traceframe_location): Declare.
5920
5921 * NEWS: Mention new MI command -trace-frame-collected.
5922
28a93511
YQ
59232013-06-26 Pedro Alves <pedro@codesourcery.com>
5924 Yao Qi <yao@codesourcery.com>
5925
5926 * ctf.c (ctf_traceframe_info): Push trace state variables
5927 present in the trace data into the traceframe info object.
5928 * breakpoint.c (DEF_VEC_I): Remove.
5929 * common/filestuff.c (DEF_VEC_I): Likewise.
5930 * dwarf2loc.c (DEF_VEC_I): Likewise.
5931 * mi/mi-main.c (DEF_VEC_I): Likewise.
5932 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5933 * features/traceframe-info.dtd: Add tvar element and its
5934 attributes.
5935 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5936 (build_traceframe_info): Push trace state variables present in
5937 the trace data into the traceframe info object.
5938 (traceframe_info_start_tvar): New function.
5939 (tvar_attributes): New.
5940 (traceframe_info_children): Add "tvar" element.
5941 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5942
5943 * NEWS: Mention the change in GDB and GDBserver.
5944
ddacd3c8
YQ
59452013-06-26 Pedro Alves <pedro@codesourcery.com>
5946 Yao Qi <yao@codesourcery.com>
5947
5948 * tracepoint.c (trace_dump_command): Move code to ...
5949 (get_traceframe_location): ... here. New.
5950
05796b35
YQ
59512013-06-26 Pedro Alves <pedro@codesourcery.com>
5952 Yao Qi <yao@codesourcery.com>
5953
5954 * tracepoint.c (trace_dump_command): GDB emits an error
5955 instead of a warning when a traceframe is not selected.
5956
cbfa3b61
YQ
59572013-06-26 Pedro Alves <pedro@codesourcery.com>
5958 Yao Qi <yao@codesourcery.com>
5959
5960 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5961 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5962 in collection_list.
5963 (do_clear_collection_list, init_collection_list): New.
5964 (encode_actions): Add local variables 'tracepoint_list' and
5965 'stepping_list'. Call init_collection_list and make cleanup
5966 which calls do_clear_collection_list. Don't call
5967 clear_collection_list.
5968 (_initialize_tracepoint): Delete references to
5969 'tracepoint_list' and 'stepping_list'.
5970
6e2048d3
TT
59712013-06-25 Tom Tromey <tromey@redhat.com>
5972
5973 * common/create-version.sh (date): Use "$", not "$$" in sed
5974 expression.
5975
42059f0e
KB
59762013-06-25 Kevin Buettner <kevinb@redhat.com>
5977
5978 * NEWS (New targets): Add entry for TI MSP430.
5979
a0743c90
YQ
59802013-06-25 Yao Qi <yao@codesourcery.com>
5981
5982 * remote.c (remote_start_remote): Move code to upload tsv
5983 earlier.
5984
9d6e6e84
HZ
59852013-06-25 Yao Qi <yao@codesourcery.com>
5986 Hui Zhu <hui@codesourcery.com>
5987 Pedro Alves <palves@redhat.com>
5988
5989 PR breakpoints/15075
5990 PR breakpoints/15434
5991 * breakpoint.c (bpstat_stop_status): Call
5992 b->ops->after_condition_true.
5993 (update_dprintf_command_list): Don't append "continue" command
5994 to the command list of dprintf breakpoint.
5995 (base_breakpoint_after_condition_true): New function.
5996 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5997 (dprintf_after_condition_true): New function.
5998 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5999 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6000
586cf749
KB
60012013-06-24 Kevin Buettner <kevinb@redhat.com>
6002
6003 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6004 (ALLDEPFILES): Add msp430-tdep.c.
6005 * configure.tgt (msp430*-*-elf): New target.
6006 * msp430-tdep.c: New file.
6007
1bbce132
MR
60082013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6009
6010 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6011 microMIPS synthetic symbols.
6012
3e5d3a5a
MR
60132013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6014
6015 * objfiles.h (pc_in_section): New prototype.
6016 (in_plt_section): Remove name argument, replace prototype with
6017 static inline function.
6018 * mips-tdep.h: Include "objfiles.h".
6019 (in_mips_stubs_section): New function.
6020 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6021 in_solib_call_trampoline member.
6022 (hppa_in_solib_call_trampoline): Remove name argument.
6023 * objfiles.c (pc_in_section): New function.
6024 (in_plt_section): Remove function.
6025 * mips-linux-tdep.c: Include "objfiles.h".
6026 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6027 name argument. Return 1 rather than the low 16-bit halfword of
6028 any instruction examined.
6029 (mips_linux_in_dynsym_resolve_code): Update
6030 mips_linux_in_dynsym_stub call accordingly.
6031 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6032 rather than an equivalent hand-coded sequence.
6033 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6034 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6035 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6036 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6037 in_opd_section.
6038 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6039 on call to tdep->in_solib_call_trampoline.
6040 (hppa_in_solib_call_trampoline): Remove name argument, update
6041 according to in_plt_section change.
6042 (hppa_skip_trampoline_code): Update according to in_plt_section
6043 change.
6044 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6045 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6046 Likewise.
6047 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6048 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6049 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6050 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6051 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6052 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6053 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6054 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6055 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6056 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6057 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6058 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6059 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6060
b9b26a16
JB
60612013-06-24 Joel Brobecker <brobecker@adacore.com>
6062
6063 * common/create-version.sh: Fix expansion of $host_alias
6064 and $target_alias in generation of HOST_NAME and TARGET_NAME
6065 (resp.).
6066
01208463
TT
60672013-06-24 Tom Tromey <tromey@redhat.com>
6068
6069 * common/create-version.sh: New file.
6070 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6071 create-version.sh.
6072 (HFILES_NO_SRCDIR): Use common/version.h.
6073 * version.in: Move to ...
6074 * common/version.in: ... here. Replace date with "DATE".
6075 * version.h: Move to ...
6076 * common/version.h: ... here.
6077
bb6b9a5e
JB
60782013-06-21 Joel Brobecker <brobecker@adacore.com>
6079
6080 * gdb/gnulib/Makefile.in: Update date in copyright header.
6081 * gdb/gnulib/configure.ac: Ditto.
6082 * gdb/gnulib/update-gnulib.sh: Ditto.
6083
c3b18ee7
JB
60842013-06-21 Joel Brobecker <brobecker@adacore.com>
6085
6086 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6087 "gdb/gnulib/import".
6088
85d3b769
WN
60892013-06-21 Will Newton <will.newton@linaro.org>
6090
6091 * doublest.c (ldfrexp): Remove function.
6092 (convert_doublest_to_floatformat): Call frexpl instead of
6093 ldfrexp.
6094
88b48903
WN
60952013-06-21 Will Newton <will.newton@linaro.org>
6096
6097 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6098 * gnulib/aclocal.m4: Regenerate.
6099 * gnulib/config.in: Regenerate.
6100 * gnulib/configure: Regenerate.
6101 * gnulib/import/Makefile.am: Update.
6102 * gnulib/import/Makefile.in: Update.
6103 * gnulib/import/m4/gnulib-cache.m4: Update.
6104 * gnulib/import/m4/gnulib-comp.m4: Update.
6105 * gnulib/import/float+.h: Import.
6106 * gnulib/import/float.c: Import.
6107 * gnulib/import/float.in.h: Import.
6108 * gnulib/import/fpucw.h: Import.
6109 * gnulib/import/frexp.c: Import.
6110 * gnulib/import/frexpl.c: Import.
6111 * gnulib/import/isnan.c: Import.
6112 * gnulib/import/isnand-nolibm.h: Import.
6113 * gnulib/import/isnand.c: Import.
6114 * gnulib/import/isnanl-nolibm.h: Import.
6115 * gnulib/import/isnanl.c: Import.
6116 * gnulib/import/itold.c: Import.
6117 * gnulib/import/m4/exponentd.m4: Import.
6118 * gnulib/import/m4/exponentl.m4: Import.
6119 * gnulib/import/m4/float_h.m4: Import.
6120 * gnulib/import/m4/fpieee.m4: Import.
6121 * gnulib/import/m4/frexp.m4: Import.
6122 * gnulib/import/m4/frexpl.m4: Import.
6123 * gnulib/import/m4/isnand.m4: Import.
6124 * gnulib/import/m4/isnanl.m4: Import.
6125 * gnulib/import/m4/math_h.m4: Import.
6126 * gnulib/import/math.c: Import.
6127 * gnulib/import/math.in.h: Import.
6128
4353c9e6
JK
61292013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6130
6131 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6132 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6133 signature_INTEL_edx comparisons.
6134
e3e06db3
DE
61352013-06-20 Doug Evans <dje@google.com>
6136
6ac97d4c
DE
6137 symtab/15652
6138 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6139 All callers updated.
6140 (open_dwp_file): If we can't find the dwp file, search the basename
6141 in debug-file-directory.
6142
93417882
DE
6143 * dwarf2read.c (struct dwp_file): Fix comment.
6144 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6145
e3e06db3
DE
6146 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6147 better.
6148
0878d0fa
YQ
61492013-06-20 Yao Qi <yao@codesourcery.com>
6150
6151 * breakpoint.c (create_breakpoint): Fix code indentation.
6152
023fa29b
YQ
61532013-06-20 Yao Qi <yao@codesourcery.com>
6154
6155 * breakpoint.c (create_breakpoints_sal_default): Remove
6156 parameter 'lsal'. Update declaration.
6157 (bkpt_create_breakpoints_sal): Caller update.
6158 (tracepoint_create_breakpoints_sal): Likewise.
6159
c898adb7
YQ
61602013-06-20 Pedro Alves <pedro@codesourcery.com>
6161 Yao Qi <yao@codesourcery.com>
6162
6163 * NEWS: Mention the new option '--skip-unavailable' of command
6164 -data-list-register-values.
6165 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6166 --skip-unavailable option. Adjust to use output_register.
6167 (output_register): Add new 'skip_unavailable' parameter.
6168 Handle it.
6169
4d157a3d
MF
61702013-06-19 Mike Frysinger <vapier@gentoo.org>
6171
6172 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6173 common/i386-gcc-cpuid.h.
6174 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6175 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6176 Copy the latest version from upstream gcc.
6177 * common/linux-btrace.c: Include i386-cpuid.h.
6178 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6179 call to i386_cpuid.
6180 (cpu_supports_btrace): Likewise.
6181 * go32-nat.c: Include i386-cpuid.h.
6182 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6183
1ce4db08
DE
61842013-06-19 Doug Evans <dje@google.com>
6185
6186 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6187 (get_section_index): Ditto.
6188
0e4777df
TT
61892013-06-19 Tom Tromey <tromey@redhat.com>
6190
6191 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6192 "dprintf" help.
6193
3190f0c6
DE
61942013-06-18 Doug Evans <dje@google.com>
6195
6196 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6197 before using it.
6198 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6199 Move test of cu_index closer to use. Print complaint if cu_index
6200 is bad.
6201
8b89a20a
JB
62022013-06-18 Joel Brobecker <brobecker@adacore.com>
6203
6204 * machoread.c (oso_vector): Delete this global.
6205 (macho_register_oso): Add new parameter "oso_vector_ptr".
6206 Use it instead of the "oso_vector" global.
6207 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6208 (macho_symfile_read): Use a local oso_vector, to be free'ed
6209 at the end of this function, in place of the old "oso_vector"
6210 global. Update various function calls accordingly. Use one
6211 single cleanup chain for the entire function.
6212
59b0c7c1
JB
62132013-06-18 Joel Brobecker <brobecker@adacore.com>
6214
937c708c 6215 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
6216 DWARF2_PER_OBJFILE by uses of DATA instead.
6217
427cd150
TT
62182013-06-18 Tom Tromey <tromey@redhat.com>
6219
6220 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6221 argument.
6222 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6223 Special case signals other than GDB_SIGNAL_TRAP.
6224 (explains_signal_watchpoint): New function.
6225 (base_breakpoint_explains_signal): Add 'sig' argument.
6226 (initialize_breakpoint_ops): Set 'explains_signal' method for
6227 watchpoints.
6228 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6229 signal argument.
6230 (bpstat_explains_signal): Likewise.
6231 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6232
2d57700b
TT
62332013-06-18 Tom Tromey <tromey@redhat.com>
6234
6235 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6236
ac475191
TT
62372013-06-18 Tom Tromey <tromey@redhat.com>
6238
6239 * python/python.c (finish_python_initialization): Decref
6240 'pythondir' on failure path as well.
6241
5bd1ef56
TT
62422013-06-18 Tom Tromey <tromey@redhat.com>
6243
6244 PR symtab/15391:
6245 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6246 after taking bits_to_skip into account. Sign extend byte_offset.
6247 * utils.h (gdb_sign_extend): Declare.
6248 * utils.c (gdb_sign_extend): New function.
6249
92fac807
JK
62502013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6253
2d503272
PM
62542013-06-17 Pierre Muller <muller@sourceware.org>
6255
6256 * corelow.c (core_open): Print GDB signal name instead of target
6257 signal number.
6258
6916fd98
MF
62592013-06-17 Mike Frysinger <vapier@gentoo.org>
6260
6261 * .gitignore: Add /gcore.
6262
9c02c129
DE
62632013-06-13 Doug Evans <dje@google.com>
6264
6265 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6266 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6267
d0548fa2
PM
62682013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6269
6270 * stack.c (backtrace_command_1): Fix indentation.
6271
22128028
JB
62722013-06-11 Joel Brobecker <brobecker@adacore.com>
6273
6274 * window-nat.c (thread_rec): Add missing empty line after
6275 local variable declaration.
6276
2ed3e009
JB
62772013-06-11 Joel Brobecker <brobecker@adacore.com>
6278
6279 * windows-nat.c (thread_rec): Revert format used to print
6280 error code returned by SuspendThread from %d back to %u.
6281
0c3d84be
JB
62822013-06-11 Joel Brobecker <brobecker@adacore.com>
6283
6284 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6285 ID in debug trace.
6286 (get_windows_debug_event): Likewise, for all debug traces.
6287
80e88e1a
JB
62882013-06-11 Joel Brobecker <brobecker@adacore.com>
6289
6290 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6291 warning message.
6292
1edebdbf
YQ
62932013-06-08 Pedro Alves <pedro@codesourcery.com>
6294 Yao Qi <yao@codesourcery.com>
6295
6296 * mi/mi-main.c (get_register): Remove declaration.
6297 (output_register): Declare.
6298 (mi_cmd_data_list_register_values): Remove local variable
6299 'tuple_cleanup'. Move some code into output_register.
6300 (get_register): Renamed to ...
6301 (output_register): ... this. Output the register's
6302 "number" ui_out tuple here.
6303
47d48711
PA
63042013-06-07 Pedro Alves <palves@redhat.com>
6305
6306 * darwin-nat.c: Fix formating in copyright header.
6307 * darwin-nat.h: Likewise.
6308 * gnu-nat.c: Likewise.
6309 * machoread.c: Likewise.
6310
3aee8918
PA
63112013-06-07 Pedro Alves <palves@redhat.com>
6312
5f2b57b5 6313 PR server/14823
3aee8918
PA
6314 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6315 static. Output a global target description pointer.
6316 (init_registers_${name}): Adjust to initialize a
6317 target description structure.
6318
fe8400b4
WN
63192013-06-07 Will Newton <will.newton@linaro.org>
6320
6321 * printcmd.c (build_address_symbolic): Call
6322 gdbarch_addr_bits_remove for text minimal symbols.
6323
20df6206
WN
63242013-06-07 Will Newton <will.newton@linaro.org>
6325
6326 * MAINTAINERS: Add myself to Write After Approval.
6327
aef525cb
YQ
63282013-06-07 Yao Qi <yao@codesourcery.com>
6329
6330 * tracepoint.c (start_tracing): Move code to ...
6331 (trace_reset_local_state): ... here. New.
6332 (disconnect_tracing): Don't call set_current_traceframe,
6333 set_tracepoint_num, and set_traceframe_context. Call
6334 trace_reset_local_state instead.
6335 (tfile_close): Call trace_reset_local_state.
6336 * ctf.c (ctf_close): Likewise.
6337 * remote.c (remote_close): Likewise.
6338 * tracepoint.h (trace_reset_local_state): Declare.
6339
d2415c6c
DE
63402013-06-06 Doug Evans <dje@google.com>
6341
6342 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6343 and fix header docs.
6344
69fc87c2
DE
63452013-06-05 Doug Evans <dje@google.com>
6346 Keith Seitz <keiths@redhat.com>
6347
6348 PR 15519
6349 * cp-namespace.c (find_symbol_in_baseclass): Call
6350 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6351 Check result of call to lookup_symbol_static.
6352 Call lookup_static_symbol_aux unconditionally.
6353 Call check_typedef on base types before accessing them.
6354 (cp_lookup_nested_symbol): Fix comment.
6355
a513d1e8
LM
63562013-06-05 Luis Machado <lgustavo@codesourcery.com>
6357
6358 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6359 minimal symbols pointing to function descriptors.
6360
351a6f02
TT
63612013-06-05 Tom Tromey <tromey@redhat.com>
6362
6363 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6364
5e1b953b 63652013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6366 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6367
6368 * remote.c (remote_wait_as): Restore signal handler before returning
6369 when GDB gets a notification.
6370
f9e14852
GB
63712013-06-04 Gary Benson <gbenson@redhat.com>
6372
8445cbf1 6373 PR 2328
f9e14852
GB
6374 * breakpoint.h (handle_solib_event): Moved function declaration
6375 to solib.h.
6376 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6377 (bpstat_stop_status): Pass new argument to handle_solib_event.
6378 * solib.h (update_solib_breakpoints): New function declaration.
6379 (handle_solib_event): Moved function declaration from
6380 breakpoint.h.
6381 * solib.c (update_solib_breakpoints): New function.
6382 (handle_solib_event): Moved function from breakpoint.c.
6383 Updated to call solib_ops->handle_event if not NULL.
6384 * solist.h (target_so_ops): New fields "update_breakpoints" and
6385 "handle_event".
6386 * infrun.c (set_stop_on_solib_events): New function.
6387 (_initialize_infrun): Use the above for "set
6388 stop-on-solib-events".
6389 (handle_inferior_event): Pass new argument to handle_solib_event.
6390 * solib-svr4.c (probe.h): New include.
6391 (svr4_free_library_list): New forward declaration.
6392 (probe_action): New enum.
6393 (probe_info): New struct.
6394 (probe_info): New static variable.
6395 (NUM_PROBES): New definition.
6396 (svr4_info): New fields "using_xfer", "probes_table" and
6397 "solib_list".
6398 (free_probes_table): New function.
6399 (free_solib_list): New function.
6400 (svr4_pspace_data_cleanup): Free probes table and solib list.
6401 (svr4_copy_library_list): New function.
6402 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6403 (svr4_read_so_list): New parameter "prev_lm".
6404 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6405 (svr4_current_sos): New function.
6406 (probe_and_action): New struct.
6407 (hash_probe_and_action): New function.
6408 (equal_probe_and_action): Likewise.
6409 (register_solib_event_probe): Likewise.
6410 (solib_event_probe_at): Likewise.
6411 (solib_event_probe_action): Likewise.
6412 (solist_update_full): Likewise.
6413 (solist_update_incremental): Likewise.
6414 (disable_probes_interface_cleanup): Likewise.
6415 (svr4_handle_solib_event): Likewise.
6416 (svr4_update_solib_event_breakpoint): Likewise.
6417 (svr4_update_solib_event_breakpoints): Likewise.
6418 (svr4_create_solib_event_breakpoints): Likewise.
6419 (enable_break): Free probes table before creating breakpoints.
6420 Use svr4_create_solib_event_breakpoints to create breakpoints.
6421 (svr4_solib_create_inferior_hook): Free the solib list.
6422 (_initialize_svr4_solib): Initialise
6423 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6424
ced63ec0
GB
64252013-06-04 Gary Benson <gbenson@redhat.com>
6426
6427 * target.h (target_ops): New field
6428 "to_augmented_libraries_svr4_read".
6429 (target_augmented_libraries_svr4_read): New macro.
6430 * target.c (update_current_target): Handle
6431 to_augmented_libraries_svr4_read.
6432 * remote.c (remote_state): New field
6433 "augmented_libraries_svr4_read".
6434 (remote_augmented_libraries_svr4_read_feature): New function.
6435 (remote_protocol_features): Add entry for
6436 "augmented-libraries-svr4-read".
6437 (remote_augmented_libraries_svr4_read): New function.
6438 (init_remote_ops): Initialize
6439 remote_ops.to_augmented_libraries_svr4_read.
6440
7f91dbec
GB
64412013-06-04 Gary Benson <gbenson@redhat.com>
6442
6443 * NEWS: Update.
6444
607ece04
GB
64452013-06-04 Gary Benson <gbenson@redhat.com>
6446
6447 * objfiles.h (inhibit_section_map_updates): New function
6448 declaration.
6449 (resume_section_map_updates): Likewise.
6450 (resume_section_map_updates_cleanup): Likewise.
6451 * objfiles.c (objfile_pspace_info): Removed field
6452 "objfiles_changed_p". New fields "new_objfiles_available",
6453 "section_map_dirty" and "inhibit_updates".
6454 (allocate_objfile): Set new_objfiles_available.
6455 (free_objfile): Set section_map_dirty.
6456 (objfile_relocate1): Likewise.
6457 (in_plt_section): Likewise.
6458 (find_pc_section): Update the conditions under which the
6459 section map will be updated.
6460 (inhibit_section_map_updates): New function.
6461 (resume_section_map_updates): Likewise.
6462 (resume_section_map_updates_cleanup): Likewise.
6463
9ee6a5ac
GB
64642013-06-04 Gary Benson <gbenson@redhat.com>
6465
6466 * probe.h (get_probe_argument_count): New declaration.
6467 (evaluate_probe_argument): Likewise.
6468 * probe.c (get_probe_argument_count): New function.
6469 (evaluate_probe_argument): Likewise.
6470 (probe_safe_evaluate_at_pc): Use the above new functions.
6471
845d4708
AM
64722013-06-04 Alan Modra <amodra@gmail.com>
6473
6474 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6475 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6476 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6477 target mem reads on optional insns.
6478 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6479 ppc_insns_match_pattern calls.
6480 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6481 Add match for power7 thread safety insns, and new order of
6482 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6483 invocation in comment, and update rest of comment.
6484 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6485 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6486 (ppc64_standard_linkage2_target): Update insn offsets.
6487 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6488 stubs first. Update calls.
6489
404e278f
YQ
64902013-06-04 Yao Qi <yao@codesourcery.com>
6491
6492 * solib.c (solib_find): Don't need dir separator if path has
6493 drive spec.
6494
f6aea118
JB
64952013-06-03 Joel Brobecker <brobecker@adacore.com>
6496
6497 Revert (indirectly causes a SIGSEGV):
6498 * machoread.c (macho_symfile_read): Assign first cleanup to
6499 'back_to'.
6500
87967e27
YQ
65012013-06-03 Yao Qi <yao@codesourcery.com>
6502
6503 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6504 mi-parse.c. Make them static.
6505 (mi_all_values): Likewise.
6506 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6507 mi_parse_print_values. Make it external.
6508 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6509 Remove the declarations.
6510 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6511 * mi/mi-parse.h (mi_parse_print_values): Declare.
6512 * mi/mi-cmd-stack.c: Include mi-parse.h.
6513 (parse_print_values): Remove
6514 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6515 of parse_print_values.
6516 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6517
3ca73e0c
YQ
65182013-05-31 Pedro Alves <pedro@codesourcery.com>
6519 Yao Qi <yao@codesourcery.com>
6520
6521 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6522 (encode_actions): Move code to ...
6523 (all_tracepoint_actions_and_cleanup): ... here. New.
6524 (trace_dump_command): Likewise.
6525
4e993a19
TT
65262013-05-30 Tom Tromey <tromey@redhat.com>
6527
6528 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6529
e3b76b4f
TT
65302013-05-30 Tom Tromey <tromey@redhat.com>
6531
6532 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6533 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6534 'old_chain' argument. Add 'parser_result' argument.
6535 (gdb_xml_create_parser_and_cleanup): Remove old version.
6536 (gdb_xml_parse_quick): Update.
6537 (xml_process_xincludes): Update.
6538 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6539 declare.
6540
db26349c
TT
65412013-05-30 Tom Tromey <tromey@redhat.com>
6542
6543 * probe.c (collect_probes): Check arguments for NULL before
6544 calling compile_rx_or_error.
6545 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6546 Remove NULL return.
6547
77f9e713
TT
65482013-05-30 Tom Tromey <tromey@redhat.com>
6549
6550 * infrun.c (adjust_pc_after_break): Introduce an outer null
6551 cleanup.
6552
45475de7
TT
65532013-05-30 Tom Tromey <tromey@redhat.com>
6554
6555 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6556
ac5007fd
TT
65572013-05-30 Tom Tromey <tromey@redhat.com>
6558
6559 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6560 for 'old_chain'. Do not check 'head' before processing
6561 cleanups.
6562
cd82eddc
TT
65632013-05-30 Tom Tromey <tromey@redhat.com>
6564
6565 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6566 "cleanup_tuple".
6567
57cee33a
TT
65682013-05-30 Tom Tromey <tromey@redhat.com>
6569
6570 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6571 inner scope. Unconditionally call do_cleanups.
6572
795d915c
TT
65732013-05-30 Tom Tromey <tromey@redhat.com>
6574
6575 * source.c (find_and_open_source): Call do_cleanups.
6576
1fc3cf4a
TT
65772013-05-30 Tom Tromey <tromey@redhat.com>
6578
6579 * linux-thread-db.c (thread_db_load_search): Unconditionally
6580 call do_cleanups.
6581
e35ac9bf
TT
65822013-05-30 Tom Tromey <tromey@redhat.com>
6583
6584 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6585 for 'cleanup'; instead use a later one.
6586
f3300387
TT
65872013-05-30 Tom Tromey <tromey@redhat.com>
6588
6589 * python/py-breakpoint.c (bppy_get_commands): Use
6590 explicit, unconditional return.
6591 * python/py-frame.c (frapy_read_var): Likewise.
6592 * python/python.c (gdbpy_decode_line): Likewise.
6593
c27e16e3
TT
65942013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6597 do_cleanups on all return paths.
6598
5ae85e44
TT
65992013-05-30 Tom Tromey <tromey@redhat.com>
6600
6601 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6602
73b8d9da
TT
66032013-05-30 Tom Tromey <tromey@redhat.com>
6604
6605 * stabsread.c (read_struct_type): Call do_cleanups along
6606 all return paths.
6607
7d266584
MR
66082013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6609
6610 * mips-linux-tdep.c: Adjust formatting throughout.
6611
0f900f54
TT
66122013-05-30 Tom Tromey <tromey@redhat.com>
6613
6614 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6615 along all return paths.
6616
a991ac28
TT
66172013-05-30 Tom Tromey <tromey@redhat.com>
6618
6619 * symfile.c (find_separate_debug_file): Call do_cleanups
6620 along all return paths.
6621
1abaf042
TT
66222013-05-30 Tom Tromey <tromey@redhat.com>
6623
6624 * symtab.c (search_symbols): Introduce a null cleanup for
6625 'retval_chain'.
6626
edefe1da
TT
66272013-05-30 Tom Tromey <tromey@redhat.com>
6628
6629 * python/py-value.c (valpy_binop): Call do_cleanups before
6630 exiting loop.
6631
54f72dcc
TT
66322013-05-30 Tom Tromey <tromey@redhat.com>
6633
6634 * python/py-prettyprint.c (print_children): Remove extra
6635 do_cleanups call.
6636
af1c6971
TT
66372013-05-30 Tom Tromey <tromey@redhat.com>
6638
6639 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6640 all return paths.
6641
b862ce75
TT
66422013-05-30 Tom Tromey <tromey@redhat.com>
6643
6644 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6645 along all return paths.
6646
e12fefc8
TT
66472013-05-30 Tom Tromey <tromey@redhat.com>
6648
6649 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6650 call do_cleanups.
6651
4867f990
TT
66522013-05-30 Tom Tromey <tromey@redhat.com>
6653
6654 * varobj.c (c_value_of_root): Call do_cleanups along all
6655 return paths.
6656
4fd2d6af
TT
66572013-05-30 Tom Tromey <tromey@redhat.com>
6658
6659 * tracepoint.c (trace_dump_command): Unconditionally call
6660 do_cleanups.
6661
752eb8b4
TT
66622013-05-30 Tom Tromey <tromey@redhat.com>
6663
6664 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6665 do_cleanups earlier.
6666
e42d0aa5
TT
66672013-05-30 Tom Tromey <tromey@redhat.com>
6668
6669 * machoread.c (macho_symfile_read): Assign first cleanup to
6670 'back_to'.
6671
4bbc010a
TT
66722013-05-30 Tom Tromey <tromey@redhat.com>
6673
6674 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6675
b9635925
TT
66762013-05-30 Tom Tromey <tromey@redhat.com>
6677
6678 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6679
25f43500
TT
66802013-05-30 Tom Tromey <tromey@redhat.com>
6681
6682 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6683 call discard_cleanups.
6684 (inf_ptrace_attach): Likewise.
6685
d6a2e54a
TT
66862013-05-30 Tom Tromey <tromey@redhat.com>
6687
6688 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6689 return paths.
6690 (mips_initialize): Likewise.
6691 (common_open): Call do_cleanups.
6692
48be7c1b
TT
66932013-05-30 Tom Tromey <tromey@redhat.com>
6694
6695 * utils.c (internal_vproblem): Call do_cleanups.
6696
e61727ab
TT
66972013-05-30 Tom Tromey <tromey@redhat.com>
6698
6699 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6700
b81b921f
TT
67012013-05-30 Tom Tromey <tromey@redhat.com>
6702
6703 * cli/cli-script.c (setup_user_args): Don't return after error.
6704
fe48dfb1
TT
67052013-05-30 Tom Tromey <tromey@redhat.com>
6706
6707 * somread.c (som_symtab_read): Call do_cleanups.
6708
27833de7
TT
67092013-05-30 Tom Tromey <tromey@redhat.com>
6710
6711 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6712
5b3fca71
TT
67132013-05-30 Tom Tromey <tromey@redhat.com>
6714
6715 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6716 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6717 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6718 * source.c (show_substitute_path_command): Call do_cleanups.
6719 (unset_substitute_path_command, set_substitute_path_command):
6720 Likewise.
6721 * symfile.c (load_command): Call do_cleanups.
6722
af83e3f8
TT
67232013-05-30 Tom Tromey <tromey@redhat.com>
6724
6725 * contrib/cleanup_check.py: New file.
6726 * contrib/gcc-with-excheck: Add option parsing.
6727
564eac42
JB
67282013-05-30 Joel Brobecker <brobecker@adacore.com>
6729
6730 * windows-nat.c (windows_delete_thread): Add missing space
6731 in cast expression.
6732
47902076
HAQ
67332013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6734
6735 * inferior.c (top level): Include tilde.h.
6736 (add_inferior_command): Call tilde_expand on the value of 'exec'
6737 argument.
6738
23da373a
YQ
67392013-05-30 Pedro Alves <pedro@codesourcery.com>
6740 Yao Qi <yao@codesourcery.com>
6741
6742 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6743 Caller update.
6744 (encode_actions): Likewise.
6745 * remote.c (remote_download_tracepoint): Caller update.
6746 * tracepoint.h (encode_actions): Update declaration.
6747
a6e6f791
PA
67482013-05-30 Pedro Alves <palves@redhat.com>
6749
6750 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6751 pointer.
6752
36d25514
YQ
67532013-05-30 Yao Qi <yao@codesourcery.com>
6754
6755 * remote.c (remote_check_symbols): Remove unused parameter
6756 'objfile'.
6757 Declaration update.
6758 (remote_start_remote, remote_new_objfile): Caller update.
6759
62a813cc
YQ
67602013-05-30 Yao Qi <yao@codesourcery.com>
6761
6762 * mi/mi-cmds.c (mi_cmds): Define MI command
6763 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6764 DEF_MI_CMD_CLI.
6765
28439a30
PA
67662013-05-29 Pedro Alves <palves@redhat.com>
6767
6768 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6769 (remote_insert_watchpoint, remote_remove_watchpoint)
6770 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6771 (remote_verify_memory, compare_sections_command)
6772 (remote_search_memory): Set the general process/thread on the
6773 remote side.
6774
6ac1c082
PA
67752013-05-29 Pedro Alves <palves@redhat.com>
6776
6777 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6778 (_initialize_aarch64_tdep): Don't call
6779 initialize_tdesc_aarch64_without_fpu.
6780 * features/Makefile (WHICH): Remove reference to
6781 aarch64-without-fpu.
6782 * features/aarch64-without-fpu.c: Delete file.
6783 * regformats/aarch64-without-fpu.dat: Delete file.
6784
a73e3634
YQ
67852013-05-28 Yao Qi <yao@codesourcery.com>
6786
6787 * tracepoint.c (stringify_collection_list): Remove parameter
6788 'string'.
6789 (encode_actions): Caller update. Remove local variables.
6790
c0ea94eb
YQ
67912013-05-24 Yao Qi <yao@codesourcery.com>
6792
6793 * tracepoint.c (TFILE_PID): Remove.
6794 (tfile_open): Don't add thread and inferior.
6795 (tfile_close): Don't set 'inferior_ptid'. Don't call
6796 exit_inferior_silent.
6797 (tfile_thread_alive): Remove.
6798 (init_tfile_ops): Don't set field 'to_thread_alive' of
6799 tfile_ops.
6800
20d7f211
DE
68012013-05-23 Doug Evans <dje@google.com>
6802
6803 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6804
8658d16d
PA
68052013-05-23 Pedro Alves <palves@redhat.com>
6806
6807 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6808 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6809 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6810 Only define if HAVE_SOCKETS is defined.
6811 * configure.ac: Check for sys/socket.h.
6812 * config.in, configure: Regenerate.
6813
21aa081e
PA
68142013-05-23 Pedro Alves <palves@redhat.com>
6815
6816 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6817 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6818 printing uint32_t variables.
6819
c2d6af84
PA
68202013-05-23 Pedro Alves <palves@redhat.com>
6821
6822 * NEWS: Mention GDBserver range stepping support.
6823
c1e36e3e
PA
68242013-05-23 Yao Qi <yao@codesourcery.com>
6825 Pedro Alves <palves@redhat.com>
6826
6827 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6828 field.
6829 * infcmd.c (step_once, until_next_command): Enable range stepping.
6830 * infrun.c (displaced_step_prepare): Disable range stepping.
6831 (resume): Disable range stepping if stepping over a breakpoint or
6832 we have software watchpoints. If range stepping is enabled,
6833 assert the thread is in the stepping range.
6834 (clear_proceed_status_thread): Clear may_range_step.
6835 (handle_inferior_event): Disable range stepping as soon as we know
6836 the thread that hit the event. Re-enable it whenever we're going
6837 to step with a step range.
6838 * remote.c (struct vCont_action_support) <r>: New field.
6839 (use_range_stepping): New global.
6840 (remote_vcont_probe): Handle 'r' action.
6841 (append_resumption): Append an 'r' action if the thread may range
6842 step.
6843 (show_range_stepping): New function.
6844 (set_range_stepping): New function.
6845 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6846 'set range-stepping' and 'show range-stepping' commands.
6847 * NEWS: Mention range stepping, the new vCont;r action, and the
6848 new "set/show range-stepping" commands.
6849
d458bd84
PA
68502013-05-23 Yao Qi <yao@codesourcery.com>
6851 Pedro Alves <palves@redhat.com>
6852
6853 * remote.c (struct vCont_action_support): New struct.
6854 (struct remote_state) <support_vCont_t>: Remove field.
6855 <vCont_actions_support>: New field.
6856 (remote_vcont_probe, remote_stop_ns): Update.
6857
ce4c476a
PA
68582013-05-23 Yao Qi <yao@codesourcery.com>
6859 Pedro Alves <palves@redhat.com>
6860
6861 * gdbthread.h (pc_in_thread_step_range): New declaration.
6862 * thread.c (pc_in_thread_step_range): New function.
6863 * infrun.c (handle_inferior_event): Use it.
6864
ce70887a
JB
68652013-05-23 Joel Brobecker <brobecker@adacore.com>
6866
6867 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6868 of sprintf.
6869
55b87a52
KS
68702013-05-22 Keith Seitz <keiths@redhat.com>
6871
6872 * ada-lang.c (is_known_support_routine): Add explicit free of
6873 'func_name' from find_frame_funname.
6874 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6875 for func_name from find_frame_funname.
6876 * python/py-frame.c (frapy_name): Add explicit free of
6877 'name' from find_frame_funname.
6878 * stack.c (find_frame_funname): Add comment explaining that
6879 funcp must be freed by the caller.
6880 Return copy of symbol names instead of pointers.
6881 (print_frame): Add a cleanup for 'funname' from
6882 find_frame_funname.
6883 * stack.h (find_frame_funname): Remove "const" from
6884 'funname' parameter.
6885
5f2e6b00
TT
68862013-05-22 Tom Tromey <tromey@redhat.com>
6887
6888 PR c++/15401:
6889 * c-valprint.c (c_value_print): Use value_addr for
6890 references. Convert back to reference type with value_ref.
6891
d85c4847
EZ
68922013-05-22 Eli Zaretskii <eliz@gnu.org>
6893
6894 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6895 unloaded DLL, it will be done by handle_solib_event. See
6896 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6897 details.
6898
54eb231c
PM
68992013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6900
6901 * ui-out.c: Create typedef ui_out_level_p and define vector
6902 operations for that type.
6903 (struct ui_out): Use a vector instead of an array.
6904 (current_level): Return level from a vector.
6905 (push_level): Create a level in a vector.
6906 (pop_level): Delete a level in a vector.
6907 (ui_out_new): Create initial level zero level, and store in a
6908 vector.
6909 (ui_out_destroy): Add vector cleanup.
6910
ac90359c
PA
69112013-05-22 Pedro Alves <palves@redhat.com>
6912
6913 * python/python-internal.h (gdb_Py_DECREF): Tag with
6914 "ARI: editCase function".
6915
6dcc1893
PP
69162013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6917
6918 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6919
c8c735b9
PA
69202013-05-21 Pedro Alves <palves@redhat.com>
6921
6922 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6923 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6924 * python/py-utils.c (py_decref): Don't check for NULL before
6925 calling Py_DECREF.
6926
1915daeb
PA
69272013-05-21 Pedro Alves <palves@redhat.com>
6928
6929 * python/py-utils.c (py_decref): Remove extra braces.
6930 (gdb_pymodule_addobject): Remove extra braces.
6931 * python-internal.h (gdb_Py_DECREF): New static inline function.
6932 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6933
bd9673a4
PW
69342013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6935
6936 * breakpoints.c (detach_breakpoints): Do not
6937 detach breakpoints locations with loc_type bp_loc_other.
6938
ff6009d0
JK
69392013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6940
6941 Workaround Python 2.6.
6942 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6943 a block.
6944
3641da11
JK
69452013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6946
6947 Code cleanup: constification.
6948 * solib.c (solib_ops): Make return type and ops variable type const.
6949 (set_solib_ops): Make the new_ops parameter and ops variable const.
6950 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6951 (solib_add, solib_keep_data_in_core, clear_solib)
6952 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6953 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6954 const.
6955 * solib.h (set_solib_ops): Make the new_ops parameter const.
6956
776af39e
JB
69572013-05-21 Joel Brobecker <brobecker@adacore.com>
6958
6959 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6960 variable.
6961 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6962 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6963 (SYSTEM_GDBINIT_FILES): New variables.
6964 (all): Add stamp-system-gdbinit.
6965 (stamp-system-gdbinit): New rule.
6966 (clean-system-gdbinit, install-system-gdbinit)
6967 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6968 (install-only): Add dependency on install-system-gdbinit.
6969 (uninstall): Add dependency on uninstall-system-gdbinit.
6970 (clean): Add dependency on clean-system-gdbinit.
6971 * system-gdbinit/elinos.py: New file.
6972 * system-gdbinit/wrs-linux.py: New file.
6973
1509e573
JB
69742013-05-21 Joel Brobecker <brobecker@adacore.com>
6975
6976 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6977
c5867ab6
HZ
69782013-05-21 Hui Zhu <hui@codesourcery.com>
6979
6980 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6981 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6982 * mi/mi-cmd-break.c (ctype.h): New include.
6983 (gdb_obstack.h): New include.
6984 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6985 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6986 (mi_cmd_dprintf_insert): New.
6987 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6988 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6989
7d38e38f
TT
69902013-05-20 Tom Tromey <tromey@redhat.com>
6991
6992 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6993
97b77b39
TT
69942013-05-20 Tom Tromey <tromey@redhat.com>
6995
6996 * python/py-value.c (valpy_get_dynamic_type): Simplify
6997 dynamic_type assignment. Use Py_XINCREF.
6998
53e66479
TT
69992013-05-20 Tom Tromey <tromey@redhat.com>
7000
7001 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7002
dcf87832
TT
70032013-05-20 Tom Tromey <tromey@redhat.com>
7004
7005 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7006 (gdbpy_selected_frame): Move object-construction code
7007 out of TRY_CATCH.
7008
aa36459a
TT
70092013-05-20 Tom Tromey <tromey@redhat.com>
7010
7011 * python/py-arch.c (gdbpy_initialize_arch): Use
7012 gdb_pymodule_addobject.
7013 * python/py-block.c (gdbpy_initialize_blocks): Use
7014 gdb_pymodule_addobject.
7015 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7016 gdb_pymodule_addobject.
7017 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7018 gdb_pymodule_addobject.
7019 * python/py-event.c (gdbpy_initialize_event_generic): Use
7020 gdb_pymodule_addobject.
7021 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7022 gdb_pymodule_addobject.
7023 * python/py-evts.c (add_new_registry): Use
7024 gdb_pymodule_addobject.
7025 (gdbpy_initialize_py_events): Likewise.
7026 * python/py-finishbreakpoint.c
7027 (gdbpy_initialize_finishbreakpoints): Use
7028 gdb_pymodule_addobject.
7029 * python/py-frame.c (gdbpy_initialize_frames): Use
7030 gdb_pymodule_addobject.
7031 * python/py-function.c (gdbpy_initialize_functions): Use
7032 gdb_pymodule_addobject.
7033 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7034 gdb_pymodule_addobject.
7035 * python/py-infthread.c (gdbpy_initialize_thread): Use
7036 gdb_pymodule_addobject.
7037 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7038 gdb_pymodule_addobject.
7039 * python/py-param.c (gdbpy_initialize_parameters): Use
7040 gdb_pymodule_addobject.
7041 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7042 gdb_pymodule_addobject.
7043 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7044 gdb_pymodule_addobject.
7045 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7046 gdb_pymodule_addobject.
7047 * python/py-type.c (gdbpy_initialize_types): Use
7048 gdb_pymodule_addobject.
7049 * python/py-utils.c (gdb_pymodule_addobject): New function.
7050 * python/py-value.c (gdbpy_initialize_values): Use
7051 gdb_pymodule_addobject.
7052 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7053 * python/python.c (_initialize_python): Use
7054 gdb_pymodule_addobject.
7055
3d4a3c3e
TT
70562013-05-20 Tom Tromey <tromey@redhat.com>
7057
7058 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7059 * python/py-param.c (get_set_value, get_show_value): Use
7060 explicit decrefs.
7061 * python/python.c (start_type_printers, apply_type_printers):
7062 Use explicit decrefs.
7063
72ff8829
TT
70642013-05-20 Tom Tromey <tromey@redhat.com>
7065
7066 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7067 incref the module.
7068
02146ba5
TT
70692013-05-20 Tom Tromey <tromey@redhat.com>
7070
7071 * python/python.c (gdbpy_run_events): Decref the result
7072 of PyObject_CallObject.
7073
33ee792f
TT
70742013-05-20 Tom Tromey <tromey@redhat.com>
7075
7076 * python/py-symtab.c (set_sal): Use
7077 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7078 (symtab_and_line_to_sal_object): Update.
7079
fcb49fc8
TT
70802013-05-20 Tom Tromey <tromey@redhat.com>
7081
7082 * python/py-param.c (compute_enum_values): Decref 'item'.
7083
0646da15
TT
70842013-05-20 Tom Tromey <tromey@redhat.com>
7085
7086 * mi/mi-main.c: Include python-internal.h.
7087 (mi_cmd_list_features): Check gdb_python_initialized.
7088 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7089 (python_inferior_exit, python_new_objfile, add_thread_object)
7090 (delete_thread_object, py_free_inferior): Check
7091 gdb_python_initialized.
7092 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7093 gdb_python_initialized.
7094 * python/py-type.c (save_objfile_types): Check
7095 gdb_python_initialized.
7096 * python/python-internal.h (gdb_python_initialized): Declare.
7097 * python/python.c (ensure_python_env): Throw exception if
7098 Python not initialized.
7099 (before_prompt_hook, source_python_script_for_objfile)
7100 (start_type_printers, apply_type_printers,
7101 free_type_printers): Check gdb_python_initialized.
7102 * varobj.c (varobj_get_display_hint)
7103 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7104 (install_new_value_visualizer, varobj_set_visualizer)
7105 (value_get_print_value): Check gdb_python_initialized.
7106
999633ed
TT
71072013-05-20 Tom Tromey <tromey@redhat.com>
7108
7109 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7110 Check errors.
7111 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7112 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7113 Check errors.
7114 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7115 Check errors.
7116 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7117 Check errors.
7118 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7119 Check errors.
7120 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7121 init function to return 'int'.
7122 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7123 Return 'int'. Check errors.
7124 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7125 Check errors.
7126 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7127 Return 'int'. Check errors.
7128 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7129 Check errors.
7130 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7131 Check errors.
7132 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7133 Check errors.
7134 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7135 Check errors.
7136 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7137 Check errors.
7138 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7139 Check errors.
7140 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7141 Check errors.
7142 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7143 Check errors.
7144 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7145 Check errors.
7146 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7147 Check errors.
7148 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7149 Check errors.
7150 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7151 Check errors.
7152 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7153 Check errors.
7154 * python/python-internal.h (gdbpy_initialize_auto_load,
7155 gdbpy_initialize_values, gdbpy_initialize_frames,
7156 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7157 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7158 gdbpy_initialize_blocks, gdbpy_initialize_types,
7159 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7160 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7161 gdbpy_initialize_finishbreakpoints,
7162 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7163 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7164 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7165 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7166 gdbpy_initialize_signal_event,
7167 gdbpy_initialize_breakpoint_event,
7168 gdbpy_initialize_continue_event,
7169 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7170 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7171 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7172 * python/python.c (gdb_python_initialized): New global.
7173 (gdbpy_initialize_events): Return 'int'. Check errors.
7174 (_initialize_python): Check errors. Set
7175 gdb_python_initialized.
7176
18868860
TT
71772013-05-20 Tom Tromey <tromey@redhat.com>
7178
7179 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7180 Decref the reslut of PyObject_CallMethod.
7181
9f4ff0c2
TT
71822013-05-20 Tom Tromey <tromey@redhat.com>
7183
7184 * python/py-event.c (gdbpy_initialize_event_generic): Return
7185 early if PyType_Ready fails.
7186
0d3a2e8a
TT
71872013-05-20 Tom Tromey <tromey@redhat.com>
7188
7189 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7190 as 'default' in the switch.
7191
b86af38a
TT
71922013-05-20 Tom Tromey <tromey@redhat.com>
7193
7194 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7195 get_addr_from_python calls out of TRY_CATCH.
7196 (infpy_write_memory, infpy_search_memory): Likewise.
7197 * python/py-utils.c (get_addr_from_python): Return negative
7198 value on error. Use TRY_CATCH.
7199 * python/python-internal.h (get_addr_from_python): Use
7200 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7201
c127ec58
TT
72022013-05-20 Tom Tromey <tromey@redhat.com>
7203
7204 * python/py-event.c (evpy_emit_event): Decref the
7205 result of PyObject_CallFunctionObjArgs.
7206
ba327838
TT
72072013-05-20 Tom Tromey <tromey@redhat.com>
7208
7209 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7210 Correctly decref.
7211
d8191432
TT
72122013-05-20 Tom Tromey <tromey@redhat.com>
7213
7214 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7215
5d153bd1
TT
72162013-05-20 Tom Tromey <tromey@redhat.com>
7217
7218 * python/py-event.h (gdbpy_initialize_event_generic): Use
7219 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7220 * python/py-evts.c (add_new_registry): Use
7221 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7222 * python/python-internal.h
7223 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7224
56cc411c
TT
72252013-05-20 Tom Tromey <tromey@redhat.com>
7226
7227 * python/py-arch.c (archpy_disassemble): Update.
7228 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7229 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7230 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7231 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7232 macro.
7233 (GDB_PY_HANDLE_EXCEPTION): Update.
7234 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7235
8919e174
TT
72362013-05-20 Tom Tromey <tromey@redhat.com>
7237
7238 * python/python-internal.h (events_object_type): Remove.
7239
9b08f225
TT
72402013-05-20 Tom Tromey <tromey@redhat.com>
7241
f5aee5ee
AM
7242 * python/py-event.h (evpy_emit_event): Use
7243 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7244 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7245 New macro.
9b08f225 7246
f04010ff
TT
72472013-05-20 Tom Tromey <tromey@redhat.com>
7248
7249 * py-evtregistry.c (create_event_object): Decref
7250 eventregistry_object if PyList_New fails.
7251
3919fd96
TT
72522013-05-20 Tom Tromey <tromey@redhat.com>
7253
7254 * py-cmd.c (gdbpy_string_to_argv): Check result of
7255 PyList_New.
7256
0430e8cb
TT
72572013-05-20 Tom Tromey <tromey@redhat.com>
7258
7259 * python/python.c (before_prompt_hook): Add cleanup to
7260 decref 'hook'.
7261
764123e4
TT
72622013-05-20 Tom Tromey <tromey@redhat.com>
7263
7264 * python/py-function.c (fnpy_init): Decref result of
7265 PyObject_GetAttrString.
7266
634c58be
TT
72672013-05-20 Tom Tromey <tromey@redhat.com>
7268
7269 * python/py-threadevent.c (get_event_thread): Use
7270 CPYCHECKER_RETURNS_BORROWED_REF.
7271 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7272 New define.
7273 (pspace_to_pspace_object, objfile_to_objfile_object)
7274 (find_thread_object): Use it.
7275
62eec1a5
TT
72762013-05-20 Tom Tromey <tromey@redhat.com>
7277
7278 * python/py-arch.c (arch_object_type): Use
7279 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7280 * python/py-block.c (block_syms_iterator_object_type):
7281 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7282 * python/py-bpevent.c (breakpoint_event_object_type):
7283 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7284 * python/py-cmd.c (cmdpy_object_type): Use
7285 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7286 * python/py-continueevent.c (continue_event_object_type):
7287 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7288 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7289 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7290 * python/py-events.h (thread_event_object_type):
7291 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7292 * python/py-evtregistry.c (eventregistry_object_type): Use
7293 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7294 * python/py-exitedevent.c (exited_event_object_type):
7295 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7296 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7297 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7298 * python/py-function.c (fnpy_object_type): Use
7299 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7300 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7301 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7302 * python/py-infthread.c (thread_object_type): Use
7303 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7304 * python/py-lazy-string.c (lazy_string_object_type):
7305 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7306 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7307 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7308 * python/py-objfile.c (objfile_object_type): Use
7309 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7310 * python/py-param.c (parmpy_object_type):
7311 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7312 * python/py-progspace.c (pspace_object_type):
7313 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7314 * python/py-signalevent.c (signal_event_object_type):
7315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7316 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7317 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7318 * python/py-type.c (type_object_type, field_object_type)
7319 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7320 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7321 define.
7322 (value_object_type, block_object_type, symbol_object_type)
7323 (event_object_type, stop_event_object_type, breakpoint_object_type)
7324 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7325
81ea8796
AT
73262013-05-20 Andreas Tobler <andreas@fgznet.ch>
7327
7328 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7329 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7330
a2ce51a0
DE
73312013-05-20 Doug Evans <dje@google.com>
7332
7333 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7334 For Fission.
7335 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7336 reading_dwo_directly.
7337 (struct signatured_type): New member dwo_unit.
7338 (struct die_reader_specs): New member comp_dir.
7339 (create_signatured_type_table_from_index): Use malloc for
7340 all_type_units instead of objfile's obstack.
7341 (create_all_type_units): Ditto.
7342 (fill_in_sig_entry_from_dwo_entry): New function.
7343 (add_type_unit): New function.
7344 (lookup_dwo_signatured_type): New function.
7345 (lookup_dwp_signatured_type): New function.
7346 (lookup_signatured_type): New arg cu. All callers updated.
7347 (init_cu_die_reader): Initialize comp_dir.
7348 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7349 Change assert of matching type signatures to call error on mismatch.
7350 (lookup_dwo_unit): Add assert.
7351 (init_tu_and_read_dwo_dies): New function.
7352 (init_cutu_and_read_dies): Call it.
7353 (build_type_unit_groups): Handle case of no type unit groups created.
7354 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7355 (lookup_dwo_cutu): Tweak complaint.
7356 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7357 (dwarf2_per_objfile_free): Free all_type_units.
7358
a25cd31f
JB
73592013-05-20 Joel Brobecker <brobecker@adacore.com>
7360
7361 * windows-nat.c (handle_unload_dll): Add missing empty line.
7362
4d804846
JB
73632013-05-20 Joel Brobecker <brobecker@adacore.com>
7364
7365 * dwarf2read.c (prototyped_function_p): New function.
7366 (read_subroutine_type): Use it.
7367
1c432e72
JB
73682013-05-20 Joel Brobecker <brobecker@adacore.com>
7369
7370 * rs6000-aix-tdep.c: De-indent some example code provided
7371 as a comment.
7372
4feebbdd
EBM
73732013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7374
7375 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7376 region is ok for a hardware watchpoint using the new ptrace interface
7377 on Power servers.
7378
7d0c9981
DE
73792013-05-17 Doug Evans <dje@google.com>
7380
7381 * NEWS: Mention new maintenance commands check-symtabs, and
7382 expand-symtabs, and renamed check-psymtabs.
7383 * psymtab.c (maintenance_check_psymtabs): Renamed from
7384 maintenance_check_symtabs. Only process already-expanded symbol
7385 tables.
7386 (_initialize_psymtab): Update.
7387 * symmisc.c (maintenance_check_symtabs): New function.
7388 (maintenance_expand_name_matcher): New function
7389 (maintenance_expand_file_matcher): New function
7390 (maintenance_expand_symtabs): New function.
7391 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7392 commands.
7393
6cbc7c3d
TT
73942013-05-17 Tom Tromey <tromey@redhat.com>
7395
7396 * python/py-inferior.c (infpy_read_memory): Don't call
7397 PyErr_SetString if PyObject_New fails.
7398 * python/py-frame.c (frame_info_to_frame_object): Don't call
7399 PyErr_SetString if PyObject_New fails.
7400
a48b32c0
L
74012013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7402
7403 * acinclude.m4: Add check for dlopen in libdl.
7404 * configure.ac: Ditto.
7405 * configure: Regenerate.
7406
3de661e6
PM
74072013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7408
7409 * frame.c (frame_stash): Convert to htab.
7410 (frame_addr_hash): New function.
7411 (frame_addr_hash_eq): New function.
7412 (frame_stash_create): Convert function to create
7413 a hash table.
7414 (frame_stash_add): Convert function to add an entry to a hash
7415 table.
7416 (frame_stash_find): Convert function to search the hash table.
7417 (frame_stash_invalidate): Convert function to empty the hash
7418 table.
7419 (get_frame_id): Only add to stash if a frame_id is created.
7420 (_initialize_frame): Call frame_stash_create.
7421
bb4168a9 74222013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7423
7424 * configure.ac: Ensure MIG is available when building for GNU Hurd
7425 hosts.
7426 * configure: Regenerate.
7427
d1be3247
JB
74282013-05-16 Joel Brobecker <brobecker@adacore.com>
7429
7430 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7431
b8fea896
JB
74322013-05-16 Joel Brobecker <brobecker@adacore.com>
7433
7434 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7435 all cleanups are done before returning from this function.
7436
af880d85
JB
74372013-05-15 Joel Brobecker <brobecker@adacore.com>
7438
7439 * utils.h: #include "exceptions.h".
7440 (enum errors): Remove partial declaration.
7441
356a5233
JB
74422013-05-15 Joel Brobecker <brobecker@adacore.com>
7443
7444 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7445 * gdbarch.h, gdbarch.c: Regenerate.
7446 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7447 handling.
7448
7449 * rs6000-aix-tdep.h: New file.
7450 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7451 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7452 "xml-utils.h".
7453 (struct field_info, struct ld_info_desc): New types.
7454 (ld_info32_desc, ld_info64_desc): New static constants.
7455 (struct ld_info): New type.
7456 (rs6000_aix_extract_ld_info): New function.
7457 (rs6000_aix_shared_library_to_xml): Likewise.
7458 (rs6000_aix_ld_info_to_xml): Likewise.
7459 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7460 (rs6000_aix_init_osabi): Add call to
7461 set_gdbarch_core_xfer_shared_libraries_aix.
7462 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7463 Remove "xml-utils.h" include.
7464 (LdInfo): Delete typedef.
7465 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7466 Delete macros.
7467 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7468 Adjust code accordingly.
7469 (rs6000_core_ldinfo): Delete, folded into
7470 rs6000_aix_core_xfer_shared_libraries_aix.
7471 (rs6000_xfer_shared_library): Delete.
7472 (rs6000_xfer_shared_libraries): Reimplement.
7473
742ce053
MM
74742013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7475
7476 * record.c (record_goto_cmdlist): New.
7477 (cmd_record_goto): Split into this ...
7478 (cmd_record_goto_begin): ... this
7479 (cmd_record_goto_end): ... and this.
7480 (_initialize_record): Change "record goto" to prefix command.
7481 Add commands for "record goto begin" and "record goto end".
7482 Add an alias for "record goto start" to "record goto begin".
7483
e93ba630
JK
74842013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 * linespec.c (convert_linespec_to_sals): New comment for
7487 SOURCE_FILENAME assignment.
7488
5821aace
JK
74892013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7490
7491 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7492 internal_warning.
7493
a1b8c4cc
TT
74942013-05-14 Tom Tromey <tromey@redhat.com>
7495
7496 * eval.c (parse_and_eval_long): Make 'exp' const.
7497 * value.h (parse_and_eval_long): Update.
7498
23b3a2c3
TT
74992013-05-14 Tom Tromey <tromey@redhat.com>
7500
7501 * ui-file.c (gdb_fopen): Make arguments const.
7502 * ui-file.h (gdb_fopen): Make arguments const.
7503
ca623f82
TT
75042013-05-14 Tom Tromey <tromey@redhat.com>
7505
7506 * remote.c (remote_set_trace_notes): Make arguments const.
7507 * target.c (update_current_target): Update cast.
7508 * target.h (to_set_trace_notes): Make arguments const.
7509
503ebb2c
TT
75102013-05-14 Tom Tromey <tromey@redhat.com>
7511
7512 * go32-nat.c (go32_terminal_info): Make 'args' const.
7513 * inferior.h (child_terminal_info): Update.
7514 * inflow.c (child_terminal_info): Make 'args' const.
7515 * target.c (default_terminal_info): Make 'args' const.
7516 (debug_to_terminal_save_ours): Likewise.
7517 * target.h (struct target_ops) <to_terminal_info>: Make argument
7518 const.
7519
85e1311a
TT
75202013-05-13 Tom Tromey <tromey@redhat.com>
7521
7522 * gcore.c (create_gcore_bfd): Make 'filename' const.
7523 * gcore.h (create_gcore_bfd): Make 'filename' const.
7524 * record-full.c (record_full_save): Make 'recfilename' const.
7525 * target.c (target_save_record): Make 'filename' const.
7526 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7527 const.
7528 (target_save_record): Likewise.
7529
d62bfeaf
TT
75302013-05-13 Tom Tromey <tromey@redhat.com>
7531
f5aee5ee 7532 PR gdb/15338:
d62bfeaf
TT
7533 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7534 ranges section has been read.
7535
ac1ca910
TT
75362013-05-13 Tom Tromey <tromey@redhat.com>
7537
7538 PR exp/15364:
7539 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7540 STRUCTOP_PTR>: Return a not_lval value for
7541 EVAL_AVOID_SIDE_EFFECTS.
7542 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7543 for EVAL_AVOID_SIDE_EFFECTS.
7544
36d1c68c
JB
75452013-05-13 Joel Brobecker <brobecker@adacore.com>
7546
7547 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7548 floating point registers to register type before storing
7549 value.
7550 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7551 Likewise.
7552
21ff4686
TT
75532013-05-10 Joel Brobecker <brobecker@adacore.com>
7554 Tom Tromey <tromey@redhat.com>
7555
7556 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7557 New functions.
7558 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7559 Declare.
7560 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7561 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7562 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7563 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7564
d3685d60
TT
75652013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7566 Tom Tromey <tromey@redhat.com>
7567
7568 PR build/15414:
7569 * configure: Rebuild.
7570 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7571 with -Wno-format.
7572
eb9fe518
PA
75732013-05-10 Pedro Alves <palves@redhat.com>
7574
7575 * remote.c (_initialize_remote): Fix spelling of
7576 qXfer:traceframe-info:read packet in packet config command.
7577
9779ab84
PA
75782013-05-10 David Taylor <dtaylor@emc.com>
7579
7580 PR remote/15455
7581
7582 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7583 "QTro" at start of packet.
7584
060cfbef
JB
75852013-05-10 Joel Brobecker <brobecker@adacore.com>
7586
7587 * solib-aix.c (solib_aix_relocate_section_addresses):
7588 For the .bss section action, apply the same offset as
7589 the .data section.
7590
ab1c4e88
JB
75912013-05-10 Joel Brobecker <brobecker@adacore.com>
7592
7593 * solib-aix.c (solib_aix_relocate_section_addresses):
7594 Remove FIXME comment.
7595
c1357578
JB
75962013-05-10 Joel Brobecker <brobecker@adacore.com>
7597
7598 PR tdep/15420:
7599 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7600 New functions, directly copied from sparc-sol-thread.c.
7601 * sparc-sol-thread.c: Delete.
7602 * configure.ac: Remove code handling sparc-solaris-thread.c.
7603 * configure: Regenerate.
7604
1e611234
PM
76052013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7606
7607 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7608 filter logic.
7609 (backtrace_command): Add "no-filters" option parsing.
7610 (_initialize_stack): Alter help to reflect "no-filters" option.
7611 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7612 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7613 (py-frame.o): Add target
7614 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7615 filter files.
7616 * python/python.h: Add new frame filter constants, and flag enum.
7617 (apply_frame_filter): Add definition.
7618 * python/python.c (apply_frame_filter): New non-Python
7619 enabled function.
7620 * python/py-utils.c (py_xdecref): New function.
7621 (make_cleanup_py_xdecref): Ditto.
7622 * python/py-objfile.c: Declare frame_filters dictionary.
7623 (objfpy_dealloc): Add frame_filters dealloc.
7624 (objfpy_new): Initialize frame_filters attribute.
7625 (objfile_to_objfile_object): Ditto.
7626 (objfpy_get_frame_filters): New function.
7627 (objfpy_set_frame_filters): New function.
7628 * python/py-progspace.c: Declare frame_filters dictionary.
7629 (pspy_dealloc): Add frame_filters dealloc.
7630 (pspy_new): Initialize frame_filters attribute.
7631 (pspacee_to_pspace_object): Ditto.
7632 (pspy_get_frame_filters): New function.
7633 (pspy_set_frame_filters): New function.
7634 * python/py-framefilter.c: New file.
7635 * python/lib/gdb/command/frame_filters.py: New file.
7636 * python/lib/gdb/frames.py: New file.
7637 * python/lib/gdb/__init__.py: Initialize global frame_filters
7638 dictionary
7639 * python/lib/gdb/FrameDecorator.py: New file.
7640 * python/lib/gdb/FrameIterator.py: New file.
7641 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7642 * mi/mi-cmds.h: Declare.
7643 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7644 --no-frame-filter logic, and Python frame filter logic.
7645 (stack_enable_frame_filters): New function.
7646 (parse_no_frame_option): Ditto.
7647 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7648 filter logic.
7649 (mi_cmd_stack_list_locals): Ditto.
7650 (mi_cmd_stack_list_args): Ditto.
7651 (mi_cmd_stack_list_variables): Ditto.
7652 * NEWS: Add frame filter note.
7653
2cb9c859
DE
76542013-05-09 Doug Evans <dje@google.com>
7655
6bf667bb
DE
7656 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7657 All callers updated.
7658 (syms_from_objfile): Ditto. Make static.
7659 (symbol_file_add_with_addrs): Renamed from
7660 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7661 num_offsets. All callers updated.
7662 * symfile.h (syms_from_objfile): Delete.
7663
2cb9c859
DE
7664 * symfile.c (decrement_reading_symtab): Add assert.
7665 (increment_reading_symtab): Ditto.
7666
40aea477
JB
76672013-05-09 Joel Brobecker <brobecker@adacore.com>
7668
7669 * source.c (forward_search_command): Replace call to getc
7670 by call to fgetc.
7671 (reverse_search_command): Likewise.
7672
680d1742
DE
76732013-05-08 Doug Evans <dje@google.com>
7674
7675 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7676 matching test.
7677
17e760ae
JB
76782013-05-08 Joel Brobecker <brobecker@adacore.com>
7679
7680 * sol-thread.c (info_cb): Factorize the code a little.
7681
c0f5f490
JB
76822013-05-08 Joel Brobecker <brobecker@adacore.com>
7683
7684 * sol-thread.c (info_cb): Rework the output of the "maintenance
7685 info sol-threads" command a bit.
7686
5d74e061
JB
76872013-05-08 Joel Brobecker <brobecker@adacore.com>
7688
7689 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7690 Replace ti.ti_startfunc by ti.ti_pc.
7691
814a3ff7
JB
76922013-05-08 Joel Brobecker <brobecker@adacore.com>
7693
7694 * solib-aix.c (solib_aix_free_library_list): New function
7695 for the case where HAVE_LIBEXPAT is not defined.
7696
58ce7251
SDJ
76972013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7698
7699 PR breakpoints/15413:
7700 * breakpoint.c (condition_completer): Simplify the code to
7701 disconsider multiple locations of breakpoints when completing the
7702 "condition" command.
7703
be8b1ea6
PM
77042013-05-07 Pierre Muller <muller@sourceware.org>
7705
7706 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7707 instead of <sys/wait.h>.
7708
1e52bda6
PM
77092013-05-07 Pierre Muller <muller@sourceware.org>
7710
7711 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7712 trailing new line from warning message.
7713
27fd0c6b
PM
77142013-05-07 Pierre Muller <muller@sourceware.org>
7715
7716 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7717 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7718
e228ac87
JB
77192013-05-07 Joel Brobecker <brobecker@adacore.com>
7720
7721 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7722 error message (ARI fix).
7723
77242013-05-07 Joel Brobecker <brobecker@adacore.com>
7725
7726 * features/library-list-aix.dtd: Replace library-list by
7727 library-list-aix.
7728 * rs6000-nat.c: Replace library-list by library-list-aix
7729 throughout.
7730 * solib-aix.c: Likewise.
7731
77322013-05-07 Joel Brobecker <brobecker@adacore.com>
7733
7734 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7735 Renames TARGET_OBJECT_AIX_LIBRARIES.
7736 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7737 TARGET_OBJECT_LIBRARIES_AIX throughout.
7738 * solib-aix.c: Likwise.
7739
26a4dda9
YQ
77402013-05-07 Yao Qi <yao@codesourcery.com>
7741
7742 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7743 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7744
3582629f
YQ
77452013-05-07 Yao Qi <yao@codesourcery.com>
7746
7747 * solib-dsbt.c (enable_break): Declare.
7748 (dsbt_current_sos): Remove call to enable_break2.
7749 (enable_break2): Rename to enable_break. Set solib breakpoint
7750 on '_dl_debug_state'.
7751 (enable_break): Remove.
7752
aacbb8a5
LM
77532013-05-07 Luis Machado <lgustavo@codesourcery.com>
7754
7755 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7756 debug state prior to replicating existing hardware watchpoints or
7757 breakpoints.
7758
0c013353
JK
77592013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 * gcore.c (gcore_create_callback): Ignore sections with
7762 separate_debug_objfile_backlink != NULL.
7763
a1217d97
SL
77642013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7765 Andrew Jenner <andrew@codesourcery.com>
7766 Chung-Lin Tang <cltang@codesourcery.com>
7767 Julian Brown <julian@codesourcery.com>
7768
7769 Based on the nios2-elf port from Altera Corporation.
7770
7771 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7772 nios2-linux-tdep.o.
7773 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7774 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7775 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7776 * nios2-tdep.h: New.
7777 * nios2-tdep.c: New.
7778 * nios2-linux-tdep.c: New.
7779 * features/Makefile (WHICH): Add nios2-linux.
7780 (nios2-linux-expedite): Set.
7781 * features/nios2-cpu.xml: New.
7782 * features/nios2.xml: New.
7783 * features/nios2-linux.xml: New.
7784 * features/nios2.c: New (autogenerated).
7785 * features/nios2-linux.c: New (autogenerated).
7786 * regformats/nios2-linux.dat: New (autogenerated).
7787 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7788 and commands.
7789
0892cb63
DE
77902013-05-06 Doug Evans <dje@google.com>
7791
3b7bacac
DE
7792 * symfile.c: Whitespace cleanup.
7793
0892cb63
DE
7794 * solist.h (struct target_so_ops): New member clear_so.
7795 * solib-svr4.c (svr4_clear_so): New function.
7796 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7797 * solib.c (clear_so): Renamed from free_so_symbols.
7798 All callers updated. Call target clear_so if it exists.
7799
40501e00
TT
78002013-05-06 Tom Tromey <tromey@redhat.com>
7801
7802 * ada-lang.c (ada_value_primitive_packed_val): Don't
7803 call value_incref.
7804 * value.c (set_value_parent): Incref the new parent and decref
7805 the old parent.
7806 (value_copy, value_primitive_field): Use set_value_parent.
7807
b6807d98
TT
78082013-05-06 Tom Tromey <tromey@redhat.com>
7809
7810 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7811 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7812 if needed.
7813 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7814 * dwarf2read.c (write_constant_as_bytes)
7815 (dwarf2_fetch_constant_bytes): New functions.
7816
3aef2284
TT
78172013-05-06 Tom Tromey <tromey@redhat.com>
7818
7819 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7820 parameters.
7821 (dwarf2_const_value_attr): Update.
7822
66f65e2b
TT
78232013-05-06 Tom Tromey <tromey@redhat.com>
7824
7825 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7826 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7827 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7828 Remove declaration.
7829
7919a973
TT
78302013-05-06 Tom Tromey <tromey@redhat.com>
7831
7832 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7833 objfile's obstack.
7834
a7bfba49
DE
78352013-05-06 Doug Evans <dje@google.com>
7836
3189cb12
DE
7837 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7838 * stabsread.h (process_one_symbol): Update declaration.
7839 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7840 * elfread.c (elf_symfile_relocate_probe): Ditto.
7841 * psymtab.c (relocate_psymtabs): Ditto.
7842 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7843 (objfile_relocate): Ditto.
7844 * objfiles.h (objfile_relocate): Update declaration.
7845 * symfile.c (relative_addr_info_to_section_offsets): Constify
7846 addrs parameter.
7847 (default_symfile_offsets): Ditto.
7848 (syms_from_objfile_1): Constify offsets parameter.
7849 (syms_from_objfile): Ditto.
7850 (symbol_file_add_with_addrs_or_offsets): Ditto.
7851 (symfile_map_offsets_to_segments): Constify data parameter.
7852 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7853 delta parameters of member relocate.
7854 (struct sym_probe_fns): Constify new_offsets,
7855 delta parameters of member sym_relocate_probe.
7856 (struct sym_fns): Constify section_addr_info parameter of member
7857 sym_offsets.
7858 (relative_addr_info_to_section_offsets): Update declaration.
7859 (default_symfile_offsets): Ditto.
7860 (syms_from_objfile): Ditto.
7861 (symfile_map_offsets_to_segments): Ditto.
7862
a7bfba49
DE
7863 * symfile.c (syms_from_objfile_1): Use correct section count when
7864 objfile->sf == NULL.
7865
5f8e0b8f
MF
78662013-05-06 Mike Frysinger <vapier@gentoo.org>
7867
7868 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7869
ea52d893
DE
78702013-05-06 Doug Evans <dje@google.com>
7871
7872 * psympriv.h (struct partial_symtab): Augment comment for member
7873 section_offsets.
7874
4d1eb6b4
JB
78752013-05-06 Joel Brobecker <brobecker@adacore.com>
7876
7877 Reimplement shared library support on ppc-aix...
7878 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7879 * features/library-list-aix.dtd: New file.
7880 * solib-aix.h, solib-aix.c: New file.
7881 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7882 (rs6000_find_toc_address_hook): Delete.
7883 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7884 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7885 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7886 "xml-utils.h".
7887 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7888 (vmap_symtab, fixup_breakpoints): Delete.
7889 (rs6000_xfer_shared_libraries): New function.
7890 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7891 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7892 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7893 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7894 (rs6000_xfer_shared_library): New function.
7895 (find_toc_address): Delete.
7896 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7897 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7898 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7899 before creating minimal symbol. Adjust function description
7900 accordingly.
7901 (scan_xcoff_symtab): Replace call to
7902 prim_record_minimal_symbol_and_info by call to
7903 record_minimal_symbol.
7904 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7905 around default_symfile_offsets.
7906 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7907 powerpc-aix targets.
7908 * config/rs6000/nm-rs6000.h: Delete.
7909 * config/powerpc/aix.mh (NAT_FILE): Delete.
7910 (NATDEPFILES): Remove xcoffsolib.o.
7911 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7912 (ALL_TARGET_OBS): Add solib-aix.o.
7913 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7914 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7915 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7916 * xcoffsolib.h, xcoffsolib.c: Delete.
7917
7918 * solib.c (reload_shared_libraries): Remove reference to
7919 SOLIB_CREATE_INFERIOR_HOOK.
7920 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7921 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7922 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7923 comment.
7924 * corelow.c (deprecated_core_resize_section_table): Delete.
7925 * exec.c: Remove include of xcoffsolib.h".
7926 (map_vmap, vmap): Delete.
7927 (exec_close_1): Remove references to vmap.
7928 (exec_file_attach): Remove vmap handling code, and reference
7929 to DEPRECATED_IBM6000_TARGET.
7930 (bfdsec_to_vmap): Delete.
7931 (exec_files_info): Remove block of code handling VMAP.
7932 * infcmd.c (post_create_inferior): Remove reference to
7933 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7934 * infrun.c (follow_exec): Remove reference to
7935 SOLIB_CREATE_INFERIOR_HOOK.
7936 * stack.c (print_frame): Remove reference to PC_SOLIB.
7937 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7938 (dsbt_relocate_main_executable): Likewise.
7939 * solib-frv.c (frv_current_sos): Likewise.
7940
0c4f667c
JB
79412013-05-06 Joel Brobecker <brobecker@adacore.com>
7942
7943 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7944 to target_write_memory and target_read_memory.
7945
726ce67c
JB
79462013-05-06 Joel Brobecker <brobecker@adacore.com>
7947
7948 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7949 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7950
c8c9911f
JB
79512013-05-06 Joel Brobecker <brobecker@adacore.com>
7952
7953 * darwin-nat.c: Replace all "%x" instances in format strings
7954 into "0x%x" throughout.
7955
fda184b6
JB
79562013-05-06 Joel Brobecker <brobecker@adacore.com>
7957
7958 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7959 gdb_assert by call to MACH_CHECK_ERROR.
7960 (darwin_attach_pid): Raise an error rather than a failed
7961 assertion when various system calls failed. Report a warning
7962 instead of raising a failed assertion when PREV_NOT is not NULL
7963 after call to mach_port_request_notification.
7964 (darwin_ptrace_me): Raise an error rather than a failed
7965 assertion when read returns nonzero.
7966
d1d69afb
JB
79672013-05-06 Joel Brobecker <brobecker@adacore.com>
7968
7969 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7970
dc90b24d
JK
79712013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7972
7973 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7974
faab9922
JK
79752013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7976
7977 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7978 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7979 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7980 a stale cleanup. Fix double free of NAME.
7981
e0ea48a0
EZ
79822013-05-04 Eli Zaretskii <eliz@gnu.org>
7983
7984 * windows-nat.c (windows_delete_thread): Accept an additional
7985 argument, the thread's exit code, and announce thread death when
7986 print_thread_events is non-zero and we are deleting a thread that
7987 is not the main thread.
7988 (get_windows_debug_event): Pass thread exit code to
7989 windows_delete_thread.
7990
83b2706a
KB
79912013-05-03 Kevin Buettner <kevinb@redhat.com>
7992
7993 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7994 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7995 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7996 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7997 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7998 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7999 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8000 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8001 (gdbarch_tdep): New struct.
8002 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8003 E_NUM_REGS.
8004 (v850e3v5_register_name): New function.
8005 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8006 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8007 code handling the struct return conventions for the RH850 ABI.
8008 Update all callers.
8009 (v850_eight_byte_align_p): New function.
8010 (v850_push_call_dummy): Push structs by value, not by reference
8011 for the RH850 ABI. Add support for eight byte alignment.
8012 (v850_dbtrap_breakpoint_from_pc): New function.
8013 (v850_gdbarch_init): Add ABI detection code. Register
8014 v850e3v5_register_name for the v850e3v5 architecture. Set the
8015 number of registers for v850e3v5. Register
8016 v850_dbtrap_breakpoint_from_pc as appropriate.
8017 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8018
d445b2f6
DE
80192013-05-03 Doug Evans <dje@google.com>
8020
8021 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8022 of bfd_count_sections.
8023 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8024 * symfile.c (default_symfile_offsets): Ditto.
8025 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8026 one entry, not bfd_count_sections entries.
8027
b3ce41ea
KB
80282013-05-03 Kevin Buettner <kevinb@redhat.com>
8029
8030 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8031 `save' and `restore' register groups. Don't include SPL
8032 or SPH in these groups.
8033 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8034 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8035 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8036 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8037 dwarf2_append_unwinders().
8038
96f7d3f1
PW
80392013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8040
8041 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8042 ignore SIGINT and SIGTRAP in case these internal signals are
8043 caught explicitely.
8044
b9dd1947
JB
80452013-05-01 Joel Brobecker <brobecker@adacore.com>
8046
8047 * darwin-nat.c (darwin_read_write_inferior): Change types
8048 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8049 of copy_count to "mach_msg_type_number_t".
8050 (darwin_read_dyld_info): Change type of parameter
8051 rdaddr to "gdb_byte *".
8052
4ca18a63
JB
80532013-05-01 Joel Brobecker <brobecker@adacore.com>
8054
8055 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8056 of &info->load_map from "char *" to "gdb_byte *".
8057
2b692d32
JB
80582013-05-01 Joel Brobecker <brobecker@adacore.com>
8059
8060 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8061 from "char *" to "gdb_byte *".
8062 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8063
a98c29a0
DE
80642013-04-30 Doug Evans <dje@google.com>
8065
6a506a2d
DE
8066 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8067 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8068 DWO stub. If DWO isn't found, just use stub.
8069 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8070
a98c29a0
DE
8071 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8072 calling init_cutu_and_read_dies.
8073
f92b06da
WT
80742013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8075
8076 * target-descriptions.c (maint_print_c_tdesc_cmd):
8077 Add case to parse structures as register types and
8078 bitfields.
8079
95eebdcc
WT
80802013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8081
8082 * MAINTAINERS (Write After Approval): Add myself to the list.
8083
019c1128
JB
80842013-04-30 Joel Brobecker <brobecker@adacore.com>
8085
8086 * sol-thread.c (rw_common): Change type of parameter "buf"
8087 to "gdb_byte *".
8088 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8089 rw_common to "gdb_byte *" instead of "char *".
8090
5812197c
JB
80912013-04-30 Joel Brobecker <brobecker@adacore.com>
8092
8093 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8094 of local variable msym to const struct bound_minimal_symbol.
8095 Adjust use accordingly.
8096 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8097
ecccb813
TS
80982013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8099
8100 * i386gnu-nat.c (CREG_OFFSET): New macro.
8101 (creg_offset): New array.
8102 (CREG_ADDR): Use creg_offset instead of reg_offset.
8103
f1d02dd4 81042013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
8105
8106 * mep-tdep.c (mep_write_pc): Delete.
8107 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8108 Add call to set_gdbarch_pc_regnum.
8109
f1d02dd4 81102013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
8111
8112 * common/filestuff.c: Replace #include <dirent.h> by
8113 #include "gdb_dirent.h".
8114
f1d02dd4 81152013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
8116
8117 * common/filestuff.c: Replace #include <sys/stat.h> by
8118 #include "gdb_stat.h".
8119
b385a60d
PM
81202013-04-29 Pierre Muller <muller@sourceware.org>
8121
8122 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8123 editCase function rule.
8124 (get_DW_AT_signature_type): Likewise.
8125
d27b54ad
JB
81262013-04-29 Joel Brobecker <brobecker@adacore.com>
8127
8128 * m32r-tdep.c (m32r_write_pc): Delete.
8129 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8130 Add call to set_gdbarch_pc_regnum.
8131
47d21dc5
PM
81322013-04-29 Pierre Muller <muller@sourceware.org>
8133
8134 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8135
9056882e
JB
81362013-04-29 Joel Brobecker <brobecker@adacore.com>
8137
8138 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8139
7ee4732a
YQ
81402013-04-28 Yao Qi <yao@codesourcery.com>
8141
8142 * solib-dsbt.c (fetch_loadmap): Re-indent.
8143 (displacement_from_map, enable_break2): Likewise.
8144 (dsbt_relocate_section_addresses): Likewise.
8145
2260af53 81462013-04-26 Joel Brobecker <brobecker@adacore.com>
8147
8148 GDB 7.6 released.
8149
ff546935
TT
81502013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8151
8152 PR corefiles/14983:
8153 * dwarf2read.c (process_full_comp_unit): Always create a static
8154 block.
8155
40fb6c5e
HZ
81562013-04-25 Hui Zhu <hui@codesourcery.com>
8157
8158 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8159 to loc->cmd_bytecode.
8160
74e04d1c
DE
81612013-04-24 Doug Evans <dje@google.com>
8162
8163 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8164
3cf62c1d
KS
81652013-04-22 Keith Seitz <keiths@redhat.com>
8166
8167 * tracepoint.c (trace_save): Call the writer's start method.
8168
bf9e4d0c
MB
81692013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8170
8171 PR gdb/10462
8172 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8173 before argument.
8174
5d71132c
TT
81752013-04-23 Tom Tromey <tromey@redhat.com>
8176
8177 * common/filestuff.c: Check USE_WIN32API before including
8178 sys/socket.h.
8179 (HAVE_F_GETFD): New define.
8180 (mark_cloexec): Check HAVE_F_GETFD.
8181 (gdb_open_cloexec): Change 'mode' to unsigned long.
8182 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8183 (gdb_pipe_cloexec): Check HAVE_PIPE.
8184 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8185 long.
8186
a11cfd87
HZ
81872013-04-23 Hui Zhu <hui@codesourcery.com>
8188
8189 PR gdb/15293
a11cfd87
HZ
8190 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8191
2d9442cc
HZ
81922013-04-23 Hui Zhu <hui@codesourcery.com>
8193
8194 PR gdb/15165
2d9442cc
HZ
8195 * breakpoint.c (dprintf_print_recreate): New.
8196 (save_breakpoints): Let it not save dprintf commands.
8197 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8198
614c279d
TT
81992013-04-22 Tom Tromey <tromey@redhat.com>
8200
8201 PR gdb/7912:
8202 * Makefile.in (SFILES): Add filestuff.c
8203 (COMMON_OBS): Add filestuff.o.
8204 (filestuff.o): New target.
8205 * auto-load.c (auto_load_objfile_script_1): Use
8206 gdb_fopen_cloexec.
8207 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8208 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8209 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8210 * common/agent.c (gdb_connect_sync_socket): Use
8211 gdb_socket_cloexec.
8212 * common/filestuff.c: New file.
8213 * common/filestuff.h: New file.
8214 * common/linux-osdata.c (linux_common_core_of_thread)
8215 (command_from_pid, commandline_from_pid, print_source_lines)
8216 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8217 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8218 gdb_fopen_cloexec.
8219 * common/linux-procfs.c (linux_proc_get_int)
8220 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8221 * config.in, configure: Rebuild.
8222 * configure.ac: Don't check for sys/socket.h. Check for
8223 fdwalk, pipe2.
8224 * corelow.c (core_open): Use gdb_open_cloexec.
8225 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8226 * fork-child.c (fork_inferior): Call close_most_fds.
8227 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8228 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8229 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8230 Use gdb_fopen_cloexec.
8231 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8232 gdb_open_cloexec.
8233 (linux_async_pipe): Use gdb_pipe_cloexec.
8234 * remote-fileio.c (remote_fileio_func_open): Use
8235 gdb_open_cloexec.
8236 * remote.c (remote_file_put, remote_file_get): Use
8237 gdb_fopen_cloexec.
8238 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8239 close_most_fds.
8240 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8241 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8242 * solib.c (solib_find): Use gdb_open_cloexec.
8243 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8244 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8245 (tfile_open): Use gdb_open_cloexec.
8246 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8247 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8248 * xml-support.c (xml_fetch_content_from_file): Use
8249 gdb_fopen_cloexec.
8250 * main.c (captured_main): Call notice_open_fds.
8251
5fda2332
EBM
82522013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8253
8254 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8255 'char *' to 'gdb_byte *'.
8256 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8257 'gdb_byte'.
8258
eb6c553b
YQ
82592013-04-22 Yao Qi <yao@codesourcery.com>
8260
8261 * infrun.c: Fix typo in comment.
8262
9991b207
SDJ
82632013-04-22 Andrew Haley <aph@redhat.com>
8264
8265 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8266 instead of "long".
8267
8b4833e3
YQ
82682013-04-20 Yao Qi <yao@codesourcery.com>
8269
8270 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8271 'char *' to 'gdb_byte *'. Cast the return value of
8272 'bt_ctf_get_char_array' to 'gdb_byte *'.
8273
bd3f3b55
PA
82742013-04-19 Pedro Alves <palves@redhat.com>
8275
8276 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8277 -Wpointer-sign.
8278 * configure: Regenerate.
8279
c49e7f76
PA
82802013-04-19 Pedro Alves <palves@redhat.com>
8281
8282 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8283 'void *'.
8284
12ff8552
PA
82852013-04-19 Pedro Alves <palves@redhat.com>
8286
8287 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8288 Change type of 'myaddr' parameter to gdb_byte pointer.
8289 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8290 to 'long long' pointer instead of to 'unsigned long long'.
8291 (monitor_write_memory_block, monitor_read_memory_single)
8292 (monitor_read_memory): Change type of 'myaddr' parameter to
8293 gdb_byte pointer.
8294
9c37696b
PA
82952013-04-19 Pedro Alves <palves@redhat.com>
8296
8297 * record.c (validate_history_size): Make parameter 'setting'
8298 unsigned.
8299
a398505b
PA
83002013-04-19 Pedro Alves <palves@redhat.com>
8301
8302 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8303 to 'gdb_byte *'.
8304
9f8afa72
PA
83052013-04-19 Pedro Alves <palves@redhat.com>
8306
8307 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8308 local to int.
8309
c714b426
PA
83102013-04-19 Pedro Alves <palves@redhat.com>
8311
8312 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8313 * ada-tasks.c (read_fat_string_value): Likewise.
8314
507a579c
PA
83152013-04-19 Pedro Alves <palves@redhat.com>
8316
8317 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8318 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8319 'offset', and adjust.
8320
f9d83a0b
PA
83212013-04-19 Pedro Alves <palves@redhat.com>
8322
8323 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8324 (read_index_from_section): Add cast to 'char *'.
8325
745eb4fd
PA
83262013-04-19 Pedro Alves <palves@redhat.com>
8327
8328 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8329
db5be46f
PA
83302013-04-19 Pedro Alves <palves@redhat.com>
8331
8332 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8333
0f928d68
PA
83342013-04-19 Pedro Alves <palves@redhat.com>
8335
8336 * record-full.c (record_full_get_bookmark): Change local 'ret'
8337 type to char * and add cast to gdb_byte *.
8338 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8339 string.
8340 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8341
89f6d837
PA
83422013-04-19 Pedro Alves <palves@redhat.com>
8343
8344 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8345 * python/py-prettyprint.c (print_string_repr): Change type of
8346 'output' local to char *. Add cast to gdb_byte * in
8347 LA_PRINT_STRING call.
8348 (print_children): Change type of 'output' local to char *.
8349 * python/py-value.c (valpy_string): Add cast to const char * in
8350 PyUnicode_Decode call.
8351
ce6ec7d8
PA
83522013-04-19 Pedro Alves <palves@redhat.com>
8353
8354 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8355 and change its type to 'const char *'. Adjust.
8356 (mips_send_packet): Add cast to 'char *', and remove cast to
8357 'unsigned char *'.
8358 (mips_receive_packet): Remove cast to 'unsigned char *'.
8359 (mips_load_srec): Use bfd_byte.
8360 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8361 (pmon_checkset): Make 'value' parameter unsigned.
8362
fda0389f
PA
83632013-04-19 Pedro Alves <palves@redhat.com>
8364
8365 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8366
bc20a4af
PA
83672013-04-19 Pedro Alves <palves@redhat.com>
8368
8369 * remote.c (remote_write_bytes_aux, compare_sections_command)
8370 (remote_read_qxfer)
8371 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8372 (remote_hostio_readlink, remote_bfd_iovec_pread)
8373 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8374 binary buffer, and char when buffer is used as string.
8375 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8376 (trace_save, tfile_open, traceframe_walk_blocks)
8377 (tfile_fetch_registers): Likewise.
8378
c628b528
PA
83792013-04-19 Pedro Alves <palves@redhat.com>
8380
8381 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8382 buffer and size_t size. Adjust.
8383 * ser-base.h (ser_base_write): Adjust.
8384 * ser-go32.c (cnts): Change type to size_t.
8385 (dos_write): Change prototype -- take 'void *'
8386 buffer and size_t size. Adjust.
8387 (dos_info): Print elements of 'cnts' as unsigned long.
8388 * serial.c (serial_write): Likewise.
8389 * serial.h (serial_write): Adjust.
8390 (struct serial_ops) <write>: Change prototype -- take 'void *'
8391 buffer and size_t size. Adjust.
8392
51a5cd90
PA
83932013-04-19 Pedro Alves <palves@redhat.com>
8394
8395 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8396 gdb_byte *.
8397 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8398
a9933661
PA
83992013-04-19 Pedro Alves <palves@redhat.com>
8400
8401 * alpha-tdep.c (alpha_extract_return_value): Use
8402 regcache_cooked_read_unsigned to read 'v0'.
8403
19afdd07
PA
84042013-04-19 Pedro Alves <palves@redhat.com>
8405
8406 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8407 parameters 'at', 'as' and 'offset' to uint32_t.
8408
96b32e50
PA
84092013-04-19 Pedro Alves <palves@redhat.com>
8410
8411 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8412 'is64' to signed 'int'.
8413
eb1bd1fb
PA
84142013-04-19 Pedro Alves <palves@redhat.com>
8415
8416 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8417 parameter to int *.
8418
463920bf
PA
84192013-04-19 Pedro Alves <palves@redhat.com>
8420
8421 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8422 'insnbuf' buffer type to unsigned int[].
8423
70242eb1
PA
84242013-04-19 Pedro Alves <palves@redhat.com>
8425
8426 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8427
9d1dd0e2
PA
84282013-04-19 Pedro Alves <palves@redhat.com>
8429
8430 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8431 unsigned long *.
8432
44096aee
PA
84332013-04-19 Pedro Alves <palves@redhat.com>
8434
8435 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8436 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8437 UINT_MAX.
8438 * mips-tdep.c (heuristic_fence_post): Change type to int.
8439 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8440
e4286e57
PA
84412013-04-19 Pedro Alves <palves@redhat.com>
8442
8443 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8444 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8445 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8446
001f13d8
PA
84472013-04-19 Pedro Alves <palves@redhat.com>
8448
8449 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8450 it to get a string view of the byte buffer.
8451 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8452 type to gdb_byte *. Adjust.
8453 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8454 Change local to char *.
8455 * solib-darwin.c (find_program_interpreter): Change return type to
8456 char *. Adjust.
8457 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8458 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8459 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8460 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8461 * solib-svr4.c (find_program_interpreter): Change return type to
8462 char *. Adjust.
8463 (enable_break): Change local 'interp_name' to char *.
8464 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8465 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8466 (spu_pseudo_register_write_spu): Use char for string buffer.
8467 Adjust.
8468 (info_spu_event_command, info_spu_signal_command): Add casts to
8469 'char *'.
8470
948f8e3d
PA
84712013-04-19 Pedro Alves <palves@redhat.com>
8472
8473 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8474 gdb_byte[].
8475 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8476 * ada-lang.c (ada_value_assign): Use gdb_byte.
8477 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8478 (alphanbsd_sigtramp_offset): Use gdb_byte.
8479 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8480 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8481 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8482 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8483 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8484 * arm-tdep.c (arm_stub_unwind_sniffer)
8485 (arm_displaced_init_closure): Use gdb_byte.
8486 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8487 (arm_default_thumb_le_breakpoint)
8488 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8489 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8490 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8491 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8492 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8493 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8494 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8495 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8496 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8497 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8498 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8499 (cris_store_return_value, cris_extract_return_value): Use
8500 gdb_byte.
8501 (constraint): Change type of parameter to char * from signed
8502 char*. Use gdb_byte.
8503 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8504 of local buffer to gdb_byte *.
8505 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8506 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8507 (add_address_entry): Change type of local buffer to gdb_byte[].
8508 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8509 (frv_push_dummy_call): Use gdb_byte.
8510 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8511 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8512 (hppa_hpux_supply_save_state): Use gdb_byte.
8513 * hppa-tdep.c (hppa32_push_dummy_call)
8514 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8515 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8516 (slotN_contents, replace_slotN_contents): Change type of parameter
8517 to gdb_byte *.
8518 (fetch_instruction, ia64_pseudo_register_write)
8519 (ia64_register_to_value, ia64_value_to_register)
8520 (ia64_extract_return_value, ia64_store_return_value)
8521 (ia64_push_dummy_call): Use gdb_byte.
8522 * m32c-tdep.c (m32c_return_value): Remove cast.
8523 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8524 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8525 gdb_byte.
8526 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8527 * mn10300-tdep.c (mn10300_store_return_value)
8528 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8529 gdb_byte.
8530 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8531 (moxie_process_record): Remove casts.
8532 * ppc-ravenscar-thread.c (supply_register_at_address)
8533 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8534 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8535 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8536 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8537 * remote.c (compare_sections_command): Use gdb_byte.
8538 * score-tdep.c (score7_free_memblock): Change type of parameter to
8539 gdb_byte *.
8540 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8541 gdb_byte *. Use gdb_byte.
8542 (sh_push_dummy_call_fpu): Use gdb_byte.
8543 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8544 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8545 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8546 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8547 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8548 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8549 (sh64_store_return_value, sh64_register_convert_to_virtual):
8550 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8551 (sh64_pseudo_register_write): Use gdb_byte.
8552 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8553 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8554 buffer.
8555 (irix_current_sos): Use gdb_byte.
8556 * solib-som.c (som_current_sos): Use gdb_byte.
8557 * sparc-ravenscar-thread.c (supply_register_at_address)
8558 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8559 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8560 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8561 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8562 'gdb_byte *'.
8563 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8564 'gdb_byte *'.
8565 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8566 * xstormy16-tdep.c (xstormy16_extract_return_value)
8567 (xstormy16_store_return_value): Change parameter type to
8568 'gdb_byte *'. Adjust.
8569 (xstormy16_push_dummy_call): Use gdb_byte.
8570 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8571 (call0_analyze_prologue, execute_code): Use gdb_byte.
8572
433730c9
PA
85732013-04-19 Vladimir Kargov <kargov@gmail.com>
8574 Pedro Alves <palves@redhat.com>
8575
8576 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8577 value contents.
8578
ac9ec31b
DE
85792013-04-17 Doug Evans <dje@google.com>
8580
8581 * dwarf2read.c (struct signatured_type): New member type.
8582 (struct attribute): Replace member signatured_type with signature.
8583 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8584 (read_call_site_scope): Call follow_die_ref instead of
8585 follow_die_ref_or_sig.
8586 (read_structure_type): Rewrite handling of signatured types.
8587 (read_enumeration_type): Ditto.
8588 (read_attribute_value): Update.
8589 (build_error_marker_type): New function.
8590 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8591 Don't call error for bad types, just build an error marker type.
8592 (dump_die_shallow): Update.
8593 (follow_die_sig_1): Renamed from follow_die_sig.
8594 Don't call error for bad types, instead return NULL.
8595 (follow_die_sig): New function.
8596 (get_signatured_type, get_DW_AT_signature_type): New functions.
8597
e546e8bb
YZ
85982013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8599
8600 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8601 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8602 function.
e546e8bb 8603
ab116149
YQ
86042013-04-17 Yao Qi <yao@codesourcery.com>
8605
8606 * top.c (print_gdb_configuration): Print configure-time
8607 parameter on using libbabeltrace or not.
8608
488a42b8
PA
86092013-04-16 Pedro Alves <palves@redhat.com>
8610
8611 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8612
f5fb825b
PA
86132013-04-16 Pedro Alves <palves@redhat.com>
8614
85d494ea 8615 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8616 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8617
e1154999
PA
86182013-04-16 Pedro Alves <palves@redhat.com>
8619
8620 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8621 * common/glibc_thread_db.h: ... this new file ...
8622 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8623
e3b50a7f
PA
86242013-04-16 Will Newton <will.newton@gmail.com>
8625 Pedro Alves <palves@redhat.com>
8626
8627 PR build/11881
8628
8629 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8630 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8631 HAVE_THREAD_DB_H.
8632
1c2e4450
PA
86332013-04-16 Pedro Alves <palves@redhat.com>
8634 Eli Zaretskii <eliz@gnu.org>
8635
8636 * NEWS: Mention "set foo unlimited".
8637
4031ecc5
DE
86382013-04-15 Doug Evans <dje@google.com>
8639
19c3d4c9
DE
8640 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8641 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8642 (create_dwo_cu_reader): Renamed from
8643 create_dwo_debug_info_hash_table_reader.
8644 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8645 Remove support for multiple CUs in a DWO file.
8646 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8647
4031ecc5
DE
8648 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8649 instead of phex.
8650 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8651 (create_dwo_in_dwp): Ditto.
8652
b340913d
TT
86532013-04-15 Tom Tromey <tromey@redhat.com>
8654
8655 * NEWS: Move recent entries into "since 7.6" section.
8656
cc16e6c9
TT
86572013-04-15 Tom Tromey <tromey@redhat.com>
8658
8659 PR c++/13588:
8660 * NEWS: Update.
8661 * break-catch-throw.c (struct exception_catchpoint)
8662 <exception_rx, pattern>: New fields.
8663 (fetch_probe_arguments, dtor_exception_catchpoint)
8664 (check_status_exception_catchpoint)
8665 (print_one_detail_exception_catchpoint): New functions.
8666 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8667 Compile regular expression if needed.
8668 (extract_exception_regexp): New function.
8669 (catch_exception_command_1): Use extract_exception_regexp.
8670 (compute_exception): Use fetch_probe_arguments.
8671 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8672 and check_status fields.
8673 * cp-abi.c (cplus_typename_from_type_info): New function.
8674 * cp-abi.h (cplus_typename_from_type_info): Declare.
8675 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8676 * gdb_regex.h (compile_rx_or_error): Declare.
8677 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8678 comment.
8679 (init_gnuv3_ops): Set get_type_from_type_info field.
8680 * probe.c (compile_rx_or_error): Move...
8681 * utils.c (compile_rx_or_error): ... here.
8682
72f1fe8a
TT
86832013-04-15 Tom Tromey <tromey@redhat.com>
8684
8685 PR c++/15176:
8686 * NEWS: Update.
8687 * break-catch-throw.c (compute_exception): New function.
8688 (exception_funcs): New global.
8689 (_initialize_break_catch_throw): Create $_exception.
8690 * cp-abi.c (cplus_type_from_type_info): New function.
8691 * cp-abi.h (cplus_type_from_type_info): Declare.
8692 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8693 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8694 (gnuv3_get_type_from_type_info): New functions.
8695 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8696
fc4746a2
TT
86972013-04-15 Tom Tromey <tromey@redhat.com>
8698
8699 * break-catch-throw.c (struct exception_names): New.
8700 (exception_functions): Change type.
8701 (re_set_exception_catchpoint): Look for SDT probes.
8702
15a73f56
TT
87032013-04-15 Tom Tromey <tromey@redhat.com>
8704
8705 PR c++/10119:
8706 * break-catch-throw.c (exception_functions): New global.
8707 (gnu_v3_exception_catchpoint_ops): Move earlier.
8708 (struct exception_catchpoint): New.
8709 (classify_exception_breakpoint): Rewrite.
8710 (re_set_exception_catchpoint): New function.
8711 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8712 Allocate a struct exception_catchpoint.
8713 (catch_exception_command_1): Update.
8714 (initialize_throw_catchpoint_ops): Set 're_set' method.
8715
916703c0
TT
87162013-04-15 Tom Tromey <tromey@redhat.com>
8717
8718 * Makefile.in (SFILES): Add break-catch-throw.c
8719 (COMMON_OBS): Add break-catch-throw.o.
8720 * break-catch-throw.c: New file.
8721 * breakpoint.c: Move exception-catching code to new file.
8722 (ep_parse_optional_if_clause): No longer static.
8723 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8724
6e72ca20
TT
87252013-04-15 Tom Tromey <tromey@redhat.com>
8726
8727 PR c++/9065:
8728 * NEWS: Update.
8729 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8730 * c-exp.y (TYPEID): New token.
8731 (exp): Add new TYPEID productions.
8732 (ident_tokens): Add "typeid".
8733 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8734 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8735 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8736 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8737 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8738 case.
8739 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8740 (build_std_type_info_type, gnuv3_get_typeid_type)
8741 (gnuv3_get_typeid): New functions.
8742 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8743 new fields on ABI object.
8744 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8745 * std-operator.def (OP_TYPEID): New.
8746
715c6909
TT
87472013-04-15 Tom Tromey <tromey@redhat.com>
8748
8749 * elfread.c (elf_symtab_read): Install versioned symbol under
8750 unversioned name as well.
8751
8de20a37
TT
87522013-04-15 Tom Tromey <tromey@redhat.com>
8753
8754 PR c++/11990:
8755 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8756 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8757 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8758 (gdb_demangle): New function.
8759 * cp-support.h (gdb_demangle): Declare.
8760 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8761 (dwarf2_name): Use gdb_demangle.
8762 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8763 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8764 suffixes from name.
8765 (gnuv3_print_method_ptr): Use gdb_demangle.
8766 * jv-lang.c (java_demangle): Use gdb_demangle.
8767 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8768 * language.c (unk_lang_demangle): Use gdb_demangle.
8769 * symtab.c (symbol_find_demangled_name)
8770 (demangle_for_lookup): Use gdb_demangle.
8771
591f19e8
TT
87722013-04-15 Tom Tromey <tromey@redhat.com>
8773
8774 PR c++/12824:
8775 * NEWS: Update.
8776 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8777 New constant.
8778 (classify_exception_breakpoint): New function.
8779 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8780 (print_mention_exception_catchpoint)
8781 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8782 (catch_exception_command_1): Handle "rethrow" catchpoint.
8783 (catch_rethrow_command): New function.
8784 (_initialize_breakpoint): Add "catch rethrow" command.
8785
4d40cad2
PM
87862013-04-15 Pierre Muller <muller@sourceware.org>
8787
8788 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8789 set_gdbarch_write_pc as deprecated anymore.
8790
30bcb456
JB
87912013-04-15 Joel Brobecker <brobecker@adacore.com>
8792
8793 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8794 declarations.
8795
da9160e4
YQ
87962013-04-13 Yao Qi <yao@codesourcery.com>
8797
8798 * ctf.c (_initialize_ctf): Include "completer.h".
8799 Call add_target_with_completer instead of add_target.
8800
39ed5604
JK
88012013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8802
8803 Fix GDB regression related to PR binutils/14813.
8804 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8805 * minidebug.c (lzma_close): Add return value comment.
8806 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8807 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8808 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8809
88102013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8811
8812 * config.in: Regenerate.
8813
d521ce57
TT
88142013-04-12 Tom Tromey <tromey@redhat.com>
8815
8816 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8817 const.
8818 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8819 (struct die_reader_specs) <buffer>: Likewise.
8820 (die_reader_func_ftype): Make 'info_ptr' const.
8821 (struct line_header) <include_dirs, statement_program_start,
8822 statement_program_end>: Now const.
8823 (struct file_entry) <name>: Likewise.
8824 (struct partial_die_info) <sibling>: Likewise.
8825 (struct dwarf_block) <data>: Likewise.
8826 (dwarf2_read_section): Remove cast.
8827 (dwarf2_get_section_info): Make 'bufp' const.
8828 (read_index_from_section): Constify.
8829 (dw2_get_file_names_reader): Make 'info_ptr' const.
8830 (dw2_get_primary_filename_reader): Likewise.
8831 (read_comp_unit_head): Make 'info_ptr' and return type const.
8832 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8833 Likewise.
8834 (read_abbrev_offset): Constify.
8835 (dwarf2_create_include_psymtab): Make 'name' const.
8836 (create_debug_types_hash_table): Update.
8837 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8838 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8839 Constify.
8840 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8841 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8842 (read_comp_units_from_section): Constify.
8843 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8844 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8845 const.
8846 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8847 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8848 (create_dwp_hash_table, dwarf2_ranges_read)
8849 (dwarf2_record_block_ranges): Constify.
8850 (read_die_and_children, read_die_and_siblings_1)
8851 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8852 const.
8853 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8854 (abbrev_table_read_table): Constify.
8855 (load_partial_dies): Make 'info_ptr' const.
8856 (read_partial_die, read_attribute_value, read_attribute): Make
8857 'info_ptr' and return type const.
8858 (read_address, read_initial_length)
8859 (read_checked_initial_length_and_offset, read_offset)
8860 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8861 const.
8862 (read_direct_string): Make 'buf' and return type const.
8863 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8864 (read_indirect_string): Make return type const.
8865 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8866 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8867 'info_ptr' const.
8868 (read_str_index): Make return type const.
8869 (add_include_dir): Make 'include_dir' const.
8870 (add_file_name): Make 'name' const.
8871 (dwarf_decode_line_header): Constify.
8872 (psymtab_include_file_name): Make return type const.
8873 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8874 (dwarf2_start_subfile): Make 'filename' const.
8875 (dwarf2_const_value_attr): Make 'bytes' const.
8876 (read_signatured_type_reader): Make 'info_ptr' const.
8877 (decode_locdesc): Constify.
8878 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8879 const.
8880 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8881 'mac_end', and return type const.
8882 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8883 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8884 type const.
8885 (per_cu_header_read_in): Constify.
8886 * symfile.h (dwarf2_get_section_info): Update.
8887
d47a1bc1
TT
88882013-04-12 Tom Tromey <tromey@redhat.com>
8889
8890 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8891
6eaaf48b
EZ
88922013-04-12 Eli Zaretskii <eliz@gnu.org>
8893
fc4c25bf 8894 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8895 * top.c (print_gdb_configuration): New function, displays the
8896 details about GDB configure-time parameters.
8897 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8898 * cli/cli-cmds.c (show_configuration): New function.
8899 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8900 * main.c (captured_main) <print_configuration>: New static var.
8901 <long_options>: Use it.
8902 If --configuration was given, call print_gdb_configuration.
8903
b292c783
JK
89042013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8905 Pedro Alves <palves@redhat.com>
8906
8907 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8908 (generated_files): Add gcore.
8909 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8910 HAVE_NATIVE_GCORE_HOST.
8911 (gcore): New.
8912 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8913 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8914 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8915 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8916 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8917 Add HAVE_NATIVE_GCORE_HOST.
8918 * configure: Regenerate.
8919 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8920 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8921 AC_CONFIG_FILES for gcore.
8922 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8923 gdb_have_gcore.
8924 * gdb_gcore.sh: Rename to ...
8925 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8926 and GCORE_TRANSFORM_NAME substitutions.
8927
c96b3c4f
JK
8928 Fix parsing tabs in ${gdb_target_obs}.
8929 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8930
d6cb50a2
JK
89312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 * remote.c (unpush_and_perror): Add output message final dot.
8934
cf2cb5ec
YQ
89352013-04-11 Yao Qi <yao@codesourcery.com>
8936
8937 * tracepoint.c (tfile_interp_line): Fit parameters line and
8938 utpp in one line.
8939
07293be4
JB
89402013-04-10 Joel Brobecker <brobecker@adacore.com>
8941
8942 * solib.c (solib_map_sections): Remove code overwriting
8943 SO->SO_NAME with the bfd's filename.
8944
f81d1120
PA
89452013-04-10 Pedro Alves <palves@redhat.com>
8946
8947 * cli/cli-decode.c (integer_unlimited_completer): New function.
8948 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8949 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8950 completer.
8951 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8952 (is_unlimited_literal): New function.
8953 (do_set_command): Handle literal "unlimited" arguments.
8954 * frame.c (_initialize_frame) <set backtrace limit>: Document
8955 "unlimited".
8956 * printcmd.c (_initialize_printcmd) <set print
8957 max-symbolic-offset>: Add help text.
8958 * record-full.c (_initialize_record_full) <set record full
8959 insn-number-max>: Likewise.
8960 * record.c (_initialize_record) <set record
8961 instruction-history-size, set record function-call-history-size>:
8962 Add help text.
8963 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8964 help text.
8965 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8966 Likewise.
8967 * source.c (_initialize_source) <set listsize>: Add help text.
8968 * utils.c (initialize_utils) <set height, set width>: Likewise.
8969 <set pagination>: Mention "set height unlimited".
8970 * valprint.c (_initialize_valprint) <set print elements, set print
8971 repeats>: Document "unlimited".
8972
2f9d54cf
PA
89732013-04-10 Pedro Alves <palves@redhat.com>
8974
8975 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8976 instead of disconnect_tracing.
8977 * infcmd.c (detach_command, disconnect_command): Call
8978 query_if_trace_running. Adjust.
8979 * top.c: Include "tracepoint.h".
8980 (quit_target): Delete. Contents moved ...
8981 (quit_force): ... here. Wrap each stage of teardown in
8982 TRY_CATCH. Call disconnect_tracing before detaching.
8983
393fd4c3
YQ
89842013-04-10 Hui Zhu <hui@codesourcery.com>
8985 Yao Qi <yao@codesourcery.com>
8986
8987 * configure.ac: Check libbabeltrace is installed.
8988 * config.in: Regenerate.
8989 * configure: Regenerate.
8990 * Makefile.in (LIBBABELTRACE): New.
8991 (CLIBS): Add LIBBABELTRACE.
8992 * ctf.c: Include "exec.h".
8993 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8994 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8995 (ctf_save_metadata_header): Define new type aliases in
8996 metadata.
8997 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8998 in metadata. Start a new faked packet for trace status.
8999 (ctf_write_status): Write trace status to CTF.
9000 (ctf_write_uploaded_tsv): Write TSV to CTF.
9001 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9002 (ctf_write_definition_end): End the faked packet.
9003
9004 (ctx, ctf_iter, trace_dirname): New.
9005 (start_pos): New variable.
9006 (ctf_destroy, ctf_open_dir, ctf_open): New.
9007 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9008 macros.
9009 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9010 (ctf_fetch_registers, ctf_xfer_partial): New.
9011 (ctf_get_trace_state_variable_value): New.
9012 (ctf_get_tpnum_from_frame_event): New.
9013 (ctf_get_traceframe_address): New.
9014 (ctf_trace_find, ctf_has_stack): New.
9015 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9016 (ctf_get_trace_status, ctf_read_status): New.
9017 (_initialize_ctf): New.
9018 * tracepoint.c (get_tracepoint_number): New
9019 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 9020 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
9021 * tracepoint.h: ... here.
9022 (get_tracepoint_number): Declare it.
9023 (get_uploaded_tsv): Declare it.
9024
9025 * NEWS: Mention new configure option.
9026
5c2b4418
HZ
90272013-04-10 Pedro Alves <palves@redhat.com>
9028 Hui Zhu <hui@codesourcery.com>
9029
9030 * breakpoint.c (dprintf_re_set): New.
9031 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9032 to dprintf_re_set.
9033
a5c66735
JB
90342013-04-09 Joel Brobecker <brobecker@adacore.com>
9035
9036 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9037 Remove solib-svr4.o from the list.
9038
9e77999c
JB
90392013-04-09 Joel Brobecker <brobecker@adacore.com>
9040
9041 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9042 Use gdb_assert_not_reached instead of invalid boolean expression.
9043
1927e618
PA
90442013-04-09 Pedro Alves <palves@redhat.com>
9045
9046 * remote.c (unpush_and_perror): New function.
9047 (readchar, remote_serial_write): Use it.
9048
10782d74
MM
90492013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9050
9051 * NEWS: Mention new btrace RSP packets.
9052
4c8429ef
TT
90532013-04-08 Tom Tromey <tromey@redhat.com>
9054
9055 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9056 long.
9057
8625fc1b
TT
90582013-04-08 Tom Tromey <tromey@redhat.com>
9059
9060 * maint.c (print_bfd_section_info): Print the section index.
9061 * symmisc.c (dump_msymbols): Print the section index.
9062
e27d198c
TT
90632013-04-08 Tom Tromey <tromey@redhat.com>
9064
9065 PR symtab/8424:
9066 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9067 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9068 * breakpoint.c (resolve_sal_pc): Update.
9069 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9070 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9071 (minsym_lookup_iterator_cb): Use it.
9072 (default_read_var_value): Update.
9073 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9074 Update.
9075 * infcmd.c (jump_command): Update.
9076 * linespec.c (minsym_found): Update.
9077 * maint.c (maintenance_translate_address): Update.
9078 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9079 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9080 * parse.c (write_exp_msymbol): Update.
9081 * printcmd.c (address_info): Update.
9082 * psymtab.c (find_pc_sect_psymbol): Update.
9083 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9084 SYMBOL_OBJ_SECTION.
9085 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9086 Don't initialize SYMBOL_OBJ_SECTION.
9087 * spu-tdep.c (spu_catch_start): Update.
9088 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9089 * symmisc.c (dump_msymbols, print_symbol): Update.
9090 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9091 how fallback section is computed.
9092 (fixup_symbol_section): Update.
9093 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9094 Update.
9095 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9096 Initialize SYMBOL_SECTION.
9097 * symtab.h (struct general_symbol_info) <section>: Update comment.
9098 <obj_section>: Remove.
9099 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9100 (SYMBOL_OBJFILE): New macro.
9101
e6dc44a8
TT
91022013-04-08 Tom Tromey <tromey@redhat.com>
9103
9104 * coffread.c (record_minimal_symbol): Update.
9105 * dbxread.c (record_minimal_symbol): Update.
9106 * elfread.c (record_minimal_symbol): Update.
9107 * machoread.c (macho_symtab_add_minsym): Update.
9108 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9109 Update.
9110 * minsyms.c (prim_record_minimal_symbol): Update.
9111 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9112 argument.
9113 (prim_record_minimal_symbol_and_info): Likewise.
9114 * minsyms.h (prim_record_minimal_symbol_full)
9115 (prim_record_minimal_symbol_and_info): Update.
9116 * symtab.c (allocate_symbol, initialize_symbol)
9117 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9118 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9119 Update.
9120
36192a8d
TT
91212013-04-08 Tom Tromey <tromey@redhat.com>
9122
9123 PR symtab/8423:
9124 * solib-som.c (som_solib_section_offsets): Use BFD section
9125 indices. Set offsets for all sections.
9126 * somread.c (som_symtab_read): Compute BFD section for
9127 symbol. Use prim_record_minimal_symbol_and_info.
9128 (som_symfile_read): Fix comment.
9129 (struct find_section_offset_arg): New.
9130 (find_section_offset, set_section_index): New functions.
9131 (som_symfile_offsets): Use set_section_index to compute
9132 section indices.
9133
65cf3563
TT
91342013-04-08 Tom Tromey <tromey@redhat.com>
9135
9136 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9137 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9138 gdb_bfd_section_index.
9139 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9140 New functions.
9141 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9142 Declare.
9143 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9144 Update.
9145 * objfiles.c (add_to_objfile_sections_full): New function.
9146 (add_to_objfile_sections): Use it.
9147 (build_section_table): Rewrite.
9148 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9149 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9150 (struct objfile) <sections>: Update comment.
9151 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9152 is NULL.
9153 (ALL_OBJSECTIONS): Use it.
9154 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9155 * solib-frv.c (frv_relocate_main_executable): Update.
9156 * solib-target.c (solib_target_relocate_section_addresses):
9157 Use gdb_bfd_section_index.
9158 * symfile.c (build_section_addr_info_from_section_table):
9159 Use gdb_bfd_section_index.
9160 (build_section_addr_info_from_bfd, place_section): Likewise.
9161 * symtab.c (fixup_section): Update.
9162 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9163
7cbd4a93
TT
91642013-04-08 Tom Tromey <tromey@redhat.com>
9165
9166 * minsyms.h (struct bound_minimal_symbol): New.
9167 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9168 Remove objfile argument.
9169 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9170 Return bound_minimal_symbol.
9171 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9172 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9173 Return bound_minimal_symbol.
9174 (in_gnu_ifunc_stub): Update.
9175 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9176 Remove 'objfile_p' argument.
9177 (lookup_solib_trampoline_symbol_by_pc): Update.
9178 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9179 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9180 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9181 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9182 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9183 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9184 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9185 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9186 stack.c, symtab.c, tui/tui-disasm.c: Update.
9187
f85f34ed
TT
91882013-04-08 Tom Tromey <tromey@redhat.com>
9189
9190 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9191 Use symbol's obstack, not an objfile.
9192 * coffread.c (process_coff_symbol): Update.
9193 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9194 * jv-lang.c (add_class_symbol): Update.
9195 * mdebugread.c (new_symbol): Update.
9196 * minsyms.c (prim_record_minimal_symbol_full)
9197 (terminate_minimal_symbol_table): Update.
9198 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9199 * stabsread.c (define_symbol, read_enum_type): Update.
9200 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9201 Handle Ada specially.
9202 (symbol_set_language): Add 'obstack' argument.
9203 (symbol_set_names): Update.
9204 (symbol_natural_name, symbol_demangled_name): Always use
9205 ada_decode_symbol.
9206 * symtab.h (struct general_symbol_info)
9207 <language_specific::obstack>: New field.
9208 <ada_mangled>: New field.
9209 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9210 (symbol_set_language): Update.
9211
ccde22c0
TT
92122013-04-08 Tom Tromey <tromey@redhat.com>
9213
9214 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9215 Take an obstack, not an objfile.
9216 (symbol_set_names): Update.
9217 * symtab.h (symbol_set_demangled_name): Update.
9218
e623cf5d
TT
92192013-04-08 Tom Tromey <tromey@redhat.com>
9220
9221 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9222 allocate_symbol.
9223 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9224 (read_func_scope): Call allocate_template_symbol.
9225 (new_symbol_full): Call allocate_symbol.
9226 * jit.c (finalize_symtab): Call allocate_symbol.
9227 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9228 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9229 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9230 (common_block_end): Call allocate_symbol.
9231 * symtab.c (allocate_symbol, initialize_symbol)
9232 (allocate_template_symbol): New functions.
9233 * symtab.c (allocate_symbol, initialize_symbol)
9234 (allocate_template_symbol): Declare.
9235 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9236
f6de8ec2
PA
92372013-04-08 Pedro Alves <palves@redhat.com>
9238 Keith Seitz <keiths@redhat.com>
9239
9240 * breakpoint.c (create_breakpoint): Rename
9241 "parse_condition_and_thread" parameter to "parse_arg". Update
9242 describing comment. If !PARSE_ARG, then error out if ARG is not
9243 the empty string after extracting the location.
9244 * breakpoint.h (create_breakpoint): Rename
9245 "parse_condition_and_thread" parameter to "parse_arg".
9246
f65ce5fb
AR
92472013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9248
9249 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9250
cc5925ad
YQ
92512013-04-07 Yao Qi <yao@codesourcery.com>
9252
9253 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9254 and 'addr2' to CORE_ADDR.
9255 * target.c (update_current_target): Update.
9256 * target.h (struct target_ops) <to_trace_find>: Change parameter
9257 type to CORE_ADDR.
9258 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9259 'addr2' to CORE_ADDR.
9260 (tfile_trace_find): Likewise.
9261 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9262 Change local variable 'addr' to type CORE_ADDR.
9263 * tracepoint.h (tfind_1): Update declaration.
9264
d9ac0664
EZ
92652013-04-06 Eli Zaretskii <eliz@gnu.org>
9266
9267 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9268 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9269 Include main.h.
9270
9271 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9272 here...
9273 * main.h (windows_get_absolute_argv0): ...to here.
9274
02142a6c
DE
92752013-04-05 Doug Evans <dje@google.com>
9276
9277 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9278 (read_cutu_die_from_dwo): Add comments.
9279 (read_structure_type): Update comment.
9280 (read_enumeration_type, read_namespace_type): Update comment.
9281 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9282
43662968
JK
92832013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9284
9285 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9286 * Makefile.in (gdb.z): Remove.
9287 (install-only): Remove $(man1dir) and gdb.1 installation.
9288 * gdb.1: Remove.
9289
9ead1b84
JK
92902013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9291
9292 Fix compatibility with Linux kernel 3.8.3.
9293 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9294 to more inner block. Remove parsing of NUMBER from outer block.
9295 Parse NUMBER only if KEYWORD has been identified.
9296
d1794952
JK
92972013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9298
9299 Fix variable name shadowing.
9300 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9301 filename to mapsfilename and update its uses.
9302
9025569e
EZ
93032013-04-05 Eli Zaretskii <eliz@gnu.org>
9304
9305 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9306 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9307 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9308 details of the problem.
9309
c9a6ce02
PA
93102013-04-04 Pedro Alves <palves@redhat.com>
9311 Hui Zhu <hui@codesourcery.com>
9312
9313 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9314 tracepoint, reset its STEP_COUNT and call validate_actionline.
9315
5ff888ce
DE
93162013-04-03 Doug Evans <dje@google.com>
9317
bf6af496
DE
9318 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9319 read_die_and_siblings.
9320 (read_die_and_siblings): New function.
9321 (read_cutu_die_from_dwo): Dump die if requested.
9322 (read_die_and_children): Call read_full_die_1 and
9323 read_die_and_siblings_1.
9324 (read_full_die): Dump die if requested.
9325
9326 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9327
0ac5b59e
DE
9328 * dwarf2read.c (struct dwo_file): New member comp_dir.
9329 Rename member name to dwo_name. All uses updated.
9330 (hash_dwo_file): Include comp_dir in computation.
9331 (eq_dwo_file): Ditto.
9332 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9333 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9334
5ff888ce
DE
9335 * psymtab.c (read_psymtabs_with_fullname): Don't call
9336 psymtab_to_fullname if the basenames are different.
9337
ec83d211
JK
93382013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9339
9340 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9341 New entry about "fullname" presence.
9342
4f4352f7
PA
93432013-04-03 Pedro Alves <palves@redhat.com>
9344
9345 * NEWS: Mention x86_64/Cygwin as new native configuration.
9346
3d1d5ea3
DE
93472013-04-02 Doug Evans <dje@google.com>
9348
9349 * dwarf2read.c (read_structure_type): Fix typo in comment.
9350
be9a8770
PA
93512013-04-02 Pedro Alves <palves@redhat.com>
9352
9353 * NEWS: Mention "set/show debug aarch64", "set/show debug
9354 coff-pe-read" and "set/show debug mach-o".
9355
a46c1e42
PA
93562013-04-02 Pedro Alves <palves@redhat.com>
9357
9358 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9359
3ad18b19
EZ
93602013-04-02 Eli Zaretskii <eliz@gnu.org>
9361
9362 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9363 gdb_string.h is now in common/.
9364
e9f1758d
PA
93652013-04-02 Pedro Alves <palves@redhat.com>
9366
9367 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9368 under "New options".
9369
049dc89b
JK
93702013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 Revert this patch:
9373 PR gdb/15275
9374 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9375
c33e31fd
PA
93762013-04-02 Pedro Alves <palves@redhat.com>
9377
9378 PR gdb/15275
9379
9380 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9381 (remote_serial_write): New function.
9382 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9383
ea5f3910
JW
93842013-04-01 Jiong Wang <jiwang@tilera.com>
9385
9386 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9387 "New targets" sections.
ea5f3910 9388
5c6fa7ab
DE
93892013-04-01 Doug Evans <dje@google.com>
9390
c0f78cd4
DE
9391 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9392 (process_enumeration_scope): Simplify.
9393
0186c6a7
DE
9394 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9395 type_unit_group ...
9396 (struct signatured_type): ... to here.
9397 (sig_type_ptr): New typedef.
9398 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9399 out of union 't'. All uses updated.
9400 (dw2_get_file_names_reader): Assert not called for a type unit.
9401 (dw2_get_file_names): Assert not called for a type unit or type
9402 unit group.
9403 (build_type_psymtabs_reader): Assert called for a type unit.
9404 (build_type_psymtab_dependencies): Assert called for a type unit group.
9405
5c6fa7ab
DE
9406 * dwarf2read.c (free_dwo_file): Add comment.
9407 (dwarf2_per_objfile_free): Unref dwp bfd.
9408
b3c0ad67 94092013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9410
9411 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9412 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9413 (read_pe_exported_syms): Remove unused 'exportix'.
9414 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9415 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9416 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9417
e2df1547
AR
94182013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9419
9420 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9421 (print_it_watchpoint): Remove unused 'bl'.
9422 (say_where): Remove unused 'uiout'.
9423 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9424 (bkpt_breakpoint_hit): Remove unused 'b'.
9425 (internal_bkpt_print_it): Remove unused 'uiout'.
9426 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9427
d81e75c0
TD
94282013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9429
9430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9431 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9432
5a8b3f62
DE
94332013-03-29 Doug Evans <dje@google.com>
9434
ab5088bf
DE
9435 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9436 Delete arg is_dwp. All callers updated.
9437 (open_dwp_file): New function.
9438 (open_and_init_dwp_file): Call it.
9439 (get_dwp_file): New function.
9440 (lookup_dwo_cutu): Call it.
9441
a8ad1e57
DE
9442 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9443 unnecessary, cleanup.
9444
6296d8c1
DE
9445 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9446
b0c7bfa9
DE
9447 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9448 (lookup_dwo_unit): New function.
9449 (init_cutu_and_read_dies): Move DWO handling to new functions.
9450
c88ee1f0
DE
9451 * dwarf2read.c (struct signatured_type): Tweak comment.
9452 (struct dwo_unit): Tweak comment.
9453 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9454 (create_dwo_debug_info_hash_table): Tweak comment.
9455 (dwarf2_per_cu_offset_and_type): Tweak comment.
9456
5a8b3f62
DE
9457 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9458 missing .debug_types section.
9459
9852c492
YQ
94602013-03-29 Yao Qi <yao@codesourcery.com>
9461
9462 * corelow.c: Include "completer.h".
9463 (_initialize_corelow): Call add_target_with_completer with
9464 argument 'filename_completer'.
9465 * tracepoint.c: Likewise.
9466 * exec.c (_initialize_exec): Likewise.
9467 * target.c (add_target): Rename to ...
9468 (add_target_with_completer): ... this. Call set_cmd_completer
9469 if parameter completer is not NULL.
9470 (add_target): New.
9471 * target.h: Include "command.h".
9472 (add_target_with_completer): Declare it.
9473
af312be7
JB
94742013-03-28 Joel Brobecker <brobecker@adacore.com>
9475
9476 * coffread.c (is_import_fixup_symbol): New function.
9477 (record_minimal_symbol): Use is_import_fixup_symbol to
9478 detect import fixup symbols, and discard them.
9479
8a0459fd
DE
94802013-03-28 Doug Evans <dje@google.com>
9481
0349ea22
DE
9482 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9483 types hash table until we know we need it.
9484
f652bce2
DE
9485 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9486 index numbers.
9487
e4a48d9d
DE
9488 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9489 All callers updated.
9490 (dw2_print_stats): Print #read CUs too.
9491 (dump_die_shallow): Print signatured types better.
9492
8a0459fd
DE
9493 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9494 info_or_types_section to section. All uses updated.
9495 (struct dwo_unit): Ditto.
9496
bd3eecc3
PA
94972013-03-28 Pedro Alves <palves@redhat.com>
9498
9499 * NEWS (New options): New section.
9500 (New options): Mention set/show remote trace-status-packet.
9501 * remote.c (PACKET_qTStatus): New enumeration value.
9502 (remote_get_trace_status): Skip sending qTStatus if the packet is
9503 disabled. Use packet_ok.
9504 (_initialize_remote): Register a configuration command for
9505 qTStatus packet.
9506
41245087
DE
95072013-03-28 Doug Evans <dje@google.com>
9508
7edbb660
DE
9509 * symfile.c (find_separate_debug_file): Add comment.
9510 (terminate_after_last_dir_separator): Tweak comment.
9511
0018ea6f
DE
9512 * dwarf2read.c (create_partial_symtab): Add forward decl.
9513 (create_partial_symtab): Move to be closer to other psymtab functions.
9514 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9515
ca69b9e6
DE
9516 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9517 (compute_symtab_includes): Remove unnecessary forward declaration.
9518 (die_needs_namespace): Add comment marking group of functions for
9519 dwarf2 name computation.
9520
a9375afe
DE
9521 * typeprint.c (_initialize_typeprint): Improve type help text.
9522
41245087
DE
9523 * python/python.c (finish_python_initialization): Provide suggestion
9524 for how to tell gdb to find its python files.
9525
7f7cc265
PA
95262013-03-28 Pedro Alves <palves@redhat.com>
9527
9528 PR gdb/15294
9529
9530 * source.c (_initialize_source): Change back "set listsize" to an
9531 integer command.
9532
ec21308c
JK
95332013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9534
9535 PR gdb/15275
9536 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9537
840a9a1f
PA
95382013-03-27 Pedro Alves <palves@redhat.com>
9539
9540 * top.c (history_size): Rename to ...
9541 (history_size_setshow_var): ... this. Add comment.
9542 (show_commands): Use readline's 'history_length' instead of
9543 computing the history length by calling history_get in a loop.
9544 (set_history_size_command): Error out for sizes over INT_MAX.
9545 Restore previous history size on invalid size.
9546 (init_history): If HISTSIZE is negative, leave the history size as
9547 zero. Add comments.
9548 (init_main): Adjust.
9549
826ecc4d
PA
95502013-03-27 Pedro Alves <palves@redhat.com>
9551
9552 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9553 coff_pe_read" command to "set debug coff-pe-read".
9554
0ccfeeae
MM
95552013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9556
9557 * record.c (command_size_to_target_size): Fix size comparison.
9558 Change parameter type from pointer to integer to integer.
9559 Update all users.
9560
40653b35
PM
95612013-03-27 Pierre Muller <muller@sourceware.org>
9562
9563 * windows-nat.c (handle_output_debug_string): Avoid typecast
9564 from integer of different size warning.
9565
c62fa0e2
JB
95662013-03-26 Joel Brobecker <brobecker@adacore.com>
9567
9568 * windows-nat.c (handle_output_debug_string): Add empty line
9569 after local block variable definition.
9570
2c619be2
PA
95712013-03-26 Pedro Alves <palves@redhat.com>
9572
9573 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9574 (net_open): Make 'polls' local unsigned.
9575
1b493192
PA
95762013-03-26 Pedro Alves <palves@redhat.com>
9577
9578 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9579 a zuinteger command instead of uinteger.
9580
7ee70bf5
PA
95812013-03-26 Pedro Alves <palves@redhat.com>
9582
9583 * record-full.c (record_full_insn_num): Make it unsigned.
9584 (record_full_check_insn_num, record_full_message)
9585 (record_full_registers_change, record_full_xfer_partial): Remove
9586 record_full_insn_max_num check (it's always != 0).
9587 (record_full_info, record_full_restore): Use %u as format string.
9588 (): Use %u as format string.
9589 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9590 check (it's always != 0).
9591
dfd1f9bb
PA
95922013-03-26 Pedro Alves <palves@redhat.com>
9593
9594 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9595 and "set dcache size" commands zuinteger instead of uinteger.
9596
addb4faf
PA
95972013-03-26 Pedro Alves <palves@redhat.com>
9598
9599 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9600 command zuinteger instead of uinteger.
9601
b75bf488
PA
96022013-03-26 Pedro Alves <palves@redhat.com>
9603
9604 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9605 zuinteger instead of uinteger.
9606
42c634cb
PA
96072013-03-26 Pedro Alves <palves@redhat.com>
9608
9609 * record.c (record_insn_history_size_setshow_var)
9610 (record_call_history_size_setshow_var): New globals.
9611 (command_size_to_target_size): New function.
9612 (cmd_record_insn_history, cmd_record_call_history): Use
9613 command_size_to_target_size instead of cast.
9614 (validate_history_size, set_record_insn_history_size)
9615 (set_record_call_history_size): New functions.
9616 (_initialize_record): Install set_record_insn_history_size and
9617 set_record_call_history_size as "set" hooks of "set record
9618 instruction-history-size" and "set record
9619 function-call-history-size".
9620
1fb2e2b5
PA
96212013-03-26 Pedro Alves <palves@redhat.com>
9622
9623 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9624 use with history_max_entries use. Remove FIXME note.
9625
99c819ee
MM
96262013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9627
9628 * record-btrace.c (record_btrace_close): Call
9629 record_btrace_auto_disable.
9630
9f9e404c
JB
96312013-03-25 Joel Brobecker <brobecker@adacore.com>
9632
9633 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9634
ebcdfe33
DE
96352013-03-25 Doug Evans <dje@google.com>
9636
9637 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9638
24955f63
TT
96392013-03-25 Tom Tromey <tromey@redhat.com>
9640
9641 PR symtab/11462:
9642 * c-exp.y (exp): Add new productions for destructors after '.' and
9643 '->'.
9644 (write_destructor_name): New function.
9645
fce632b6
TT
96462013-03-25 Tom Tromey <tromey@redhat.com>
9647
9648 PR c++/9197:
9649 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9650 value_struct_elt, not lookup_struct_elt_type.
9651 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9652 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9653 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9654
a4341769
YQ
96552013-03-25 Yao Qi <yao@codesourcery.com>
9656
9657 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9658 instead of '_mkdir'.
9659
b5981e5a
EZ
96602013-03-23 Eli Zaretskii <eliz@gnu.org>
9661
9662 * windows-nat.c (windows_get_absolute_argv0): New function.
9663 * windows-nat.h: Add its prototype.
9664
9665 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9666 Use IS_DIR_SEPARATOR instead of looking for a character inside
9667 SLASH_STRING. Include filenames.h.
9668 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9669 relocate_gdb_directory works when passed gdb_program_name.
9670 Include windows-nat.h.
9671
598d3636
JK
96722013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9675 * remote.c (trace_error): Remove the special handling of '2'.
9676 (readchar) <SERIAL_EOF>
9677 (readchar) <SERIAL_ERROR>
9678 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9679 (remote_get_trace_status): Call throw_exception if EX is
9680 TARGET_CLOSE_ERROR.
9681 * utils.c (perror_with_name): Rename to ...
9682 (throw_perror_with_name): ... here. New parameter errcode, describe it
9683 in the function comment.
9684 (perror_with_name): New function wrapper.
9685 * utils.h (enum errors): New stub declaration.
9686 (throw_perror_with_name): New declaration.
9687
82b821e9
PA
96882013-03-22 Pedro Alves <palves@redhat.com>
9689 Yao Qi <yao@codesourcery.com>
9690 Mark Kettenis <kettenis@gnu.org>
9691
9692 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9693 Don't let the user set the value to UINT_MAX directly.
9694 <var_integer>: Don't let the user set the value to INT_MAX
9695 directly.
9696
78a095c3
JK
96972013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9698
9699 * remote.c (remote_unpush_target): New function.
9700 (remote_open_1): Remove two pop_target calls, update one comment, add
9701 comment to target_preopen call. Replace pop_target call by
9702 remote_unpush_target call.
9703 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9704 pop_target calls by remote_unpush_target calls.
9705
3e74e146
PA
97062013-03-22 Pedro Alves <palves@redhat.com>
9707
9708 * linux-nat.c (linux_child_follow_fork): Don't call
9709 linux_enable_event_reporting.
9710 (linux_handle_extended_wait): Don't call
9711 linux_enable_event_reporting.
9712
a2213dca
PA
97132013-03-22 Pedro Alves <palves@redhat.com>
9714
9715 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9716 use it to rewrite the trampoline buffers with type gdb_byte[], and
9717 undefine the macro. Remove char* cast.
9718
bd712aed
DE
97192013-03-21 Doug Evans <dje@google.com>
9720
9721 New commands "mt set per-command {space,time,symtab} {on,off}".
9722 * NEWS: Add entry.
9723 * event-top.c: #include "maint.h".
9724 * main.c: #include "maint.h".
9725 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9726 timeval-utils.h, maint.h, cli/cli-setshow.h.
9727 (per_command_time, per_command_space): New static globals.
9728 (per_command_symtab): New static global.
9729 (per_command_setlist, per_command_showlist): New static globals.
9730 (struct cmd_stats): Move here from utils.c.
9731 (set_per_command_time): Renamed from set_display_time in utils.c
9732 and moved here. All callers updated.
9733 (set_per_command_space): Renamed from set_display_space in utils.c
9734 and moved here. All callers updated.
9735 (count_symtabs_and_blocks): New function.
9736 (report_command_stats): Moved here from utils.c. Add support for
9737 printing symtab stats. Only print data if enabled before command
9738 executed.
9739 (make_command_stats_cleanup): Ditto.
9740 (sert_per_command_cmd, show_per_command_cmd): New functions.
9741 (_initialize_maint_cmds): Add new commands
9742 mt set per-command {space,time,symtab} {on,off}.
9743 * maint.h: New file.
9744 * top.c: #include "maint.h".
9745 * utils.c (reset_prompt_for_continue_wait_time): New function.
9746 (get_prompt_for_continue_wait_time): New function.
9747 * utils.h (reset_prompt_for_continue_wait_time): Declare
9748 (get_prompt_for_continue_wait_time): Declare.
9749 (make_command_stats_cleanup): Moved to maint.h.
9750 (set_display_time, set_display_space): Moved to maint.h and renamed
9751 to set_per_command_time, set_per_command_space.
9752 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9753 parse_binary_operation and made non-static. Don't call error,
9754 just return an error marker. All callers updated.
9755 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9756
d76488d8
TT
97572013-03-21 Tom Tromey <tromey@redhat.com>
9758
9759 * symfile.c (alloc_section_addr_info): Update header. Don't set
9760 'num_sections' field.
9761 (build_section_addr_info_from_section_table): Set 'num_sections'.
9762 (build_section_addr_info_from_bfd): Likewise.
9763 (build_section_addr_info_from_objfile): Remove dead loop
9764 condition.
9765 (free_section_addr_info): Unconditionally call xfree.
9766 (relative_addr_info_to_section_offsets, addrs_section_sort)
9767 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9768 condition.
9769 (syms_from_objfile_1): Remove dead 'if' condition. Check
9770 'num_sections'.
9771 (add_symbol_file_command): Set 'num_sections'.
9772 * symfile-mem.c (symbol_file_add_from_memory): Set
9773 'num_sections'.
9774 * somread.c (som_symfile_offsets): Remove dead loop condition.
9775 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9776 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9777
a72e5169 97782013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9779
9780 * tracepoint.h (decode_agent_options): Add 'trace_string'
9781 argument.
9782 * tracepoint.c (decode_agent_options): Add 'trace_string'
9783 argument.
9784 (validate_actionline): Update.
9785 (collect_symbol): Add 'trace_string' argument.
9786 (struct add_local_symbols_data) <trace_string>: New field.
9787 (do_collect_symbol): Update.
9788 (add_local_symbols): Add 'trace_string' argument.
9789 (encode_actions_1): Update.
9790 (trace_dump_actions): Update.
9791 * dwarf2loc.c (access_memory): Update.
9792 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9793 * ax-general.c (new_agent_expr): Update.
9794 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9795 (gen_trace_for_return_address): Add argument.
9796 (trace_kludge, trace_string_kludge): Remove.
9797 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9798 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9799 (gen_trace_for_var): Add 'trace_string' argument.
9800 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9801 (gen_printf, agent_eval_command_one): Update.
9802
b2f83c08
TT
98032013-03-21 Tom Tromey <tromey@redhat.com>
9804
9805 PR exp/15109:
9806 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9807 Handle FILENAME token.
9808
9507860e
TT
98092013-03-21 Tom Tromey <tromey@redhat.com>
9810
9811 * c-exp.y (YYPRINT): Define.
9812 (c_print_token): New function.
9813
e403aa4b
TT
98142013-03-21 Tom Tromey <tromey@redhat.com>
9815
9816 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9817
af307d6a
YQ
98182013-03-21 Yao Qi <yao@codesourcery.com>
9819
9820 * ctf.c: Include "gdb_stat.h".
9821 [USE_WIN32API]: New macro 'mkdir'.
9822 (ctf_start): Use permission bits macros if they are defined.
9823
fb81d016
KS
98242013-03-20 Keith Seitz <keiths@redhat.com>
9825
9826 * breakpoint.h (struct breakpoint): Add comment to
9827 extra_string indicating that this member is mallod'd.
9828 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9829
ef0026f0
PA
98302013-03-20 Pedro Alves <palves@redhat.com>
9831
9832 PR gdb/15289
9833
9834 * cli/cli-setshow.c (do_set_command)
9835 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9836 the result of parsing the command argument. Throw error if the
9837 value is greater than UINT_MAX. Print the invalid value with
9838 plongest.
9839 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9840 result of parsing the command argument. Throw error if the value
9841 is greater than INT_MAX, not greater or equal. Also throw error
9842 if the value is less than INT_MIN. Print the invalid value with
9843 plongest.
9844 <var_zuinteger_unlimited>: Throw error if the value is greater
9845 than INT_MAX, not greater or equal.
9846 (do_show_command) <var_integer, var_zinteger,
9847 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9848
24d6c2a0
TT
98492013-03-20 Tom Tromey <tromey@redhat.com>
9850
9851 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9852 if possible.
9853 * dwarf2read.c (read_func_scope): Remove old FIXME.
9854 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9855 not LOC_COMPUTED.
9856 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9857 Unconditionally call via computed ops, if possible.
9858 * printcmd.c (address_info): Unconditionally call via computed ops,
9859 if possible.
9860 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9861 if possible.
9862 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9863 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9864 if possible.
9865
f1e6e072
TT
98662013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9867 Tom Tromey <tromey@redhat.com>
9868
9869 PR symtab/8421:
9870 * coffread.c (coff_register_index): New global.
9871 (process_coff_symbol, coff_read_enum_type): Set
9872 SYMBOL_ACLASS_INDEX.
9873 (_initialize_coffread): Initialize new global.
9874 * dwarf2loc.c (locexpr_find_frame_base_location)
9875 (dwarf2_block_frame_base_locexpr_funcs)
9876 (loclist_find_frame_base_location)
9877 (dwarf2_block_frame_base_loclist_funcs): New.
9878 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9879 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9880 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9881 (dwarf2_block_frame_base_loclist_funcs): New.
9882 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9883 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9884 globals.
9885 (read_func_scope): Update.
9886 (fixup_go_packaging, mark_common_block_symbol_computed)
9887 (var_decode_location, new_symbol_full, dwarf2_const_value):
9888 Set SYMBOL_ACLASS_INDEX.
9889 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9890 (_initialize_dwarf2_read): Initialize new globals.
9891 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9892 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9893 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9894 globals.
9895 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9896 (_initialize_mdebugread): Initialize new globals.
9897 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9898 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9899 (stab_register_index, stab_regparm_index): New globals.
9900 (define_symbol, read_enum_type, common_block_end): Set
9901 SYMBOL_ACLASS_INDEX.
9902 (_initialize_stabsread): Initialize new globals.
9903 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9904 globals.
9905 (MAX_SYMBOL_IMPLS): New define.
9906 (register_symbol_computed_impl, register_symbol_block_impl)
9907 (register_symbol_register_impl)
9908 (initialize_ordinary_address_classes): New functions.
9909 (_initialize_symtab): Call initialize_ordinary_address_classes.
9910 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9911 (struct symbol_impl): New.
9912 (SYMBOL_ACLASS_BITS): New define.
9913 (struct symbol) <aclass, ops>: Remove fields.
9914 <aclass_index>: New field.
9915 (symbol_impls): Declare.
9916 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9917 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9918 (register_symbol_computed_impl, register_symbol_block_impl)
9919 (register_symbol_register_impl): Declare.
9920 (struct symbol_computed_ops): Add location_has_loclist.
9921 (struct symbol_block_ops): New.
9922 (SYMBOL_BLOCK_OPS): New.
9923 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9924
dbccfd4c
TT
99252013-03-20 Tom Tromey <tromey@redhat.com>
9926
9927 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9928 (print_partial_symbols, recursively_search_psymtabs): Use
9929 PSYMBOL_CLASS.
9930
e3f1ad4f
PM
99312013-03-20 Pierre Muller <muller@sourceware.org>
9932
9933 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9934 addtion, subtraction, multiplication and division binary operator.
9935
460014f5
JK
99362013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9937
9938 Code cleanup.
9939 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9940 * bsd-kvm.c (bsd_kvm_close): Likewise.
9941 * bsd-uthread.c (bsd_uthread_close): Likewise.
9942 * corelow.c (core_close): Likewise.
9943 (core_close_cleanup): Remove parameter quitting from a caller.
9944 * event-top.c (async_disconnect): Likewise.
9945 * exec.c (exec_close_1): Remove parameter quitting.
9946 * go32-nat.c (go32_close): Likewise.
9947 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9948 parameter quitting from a caller.
9949 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9950 variable.
9951 (mips_linux_close): Remove parameter quitting. Remove parameter
9952 quitting from a caller.
9953 * monitor.c (monitor_close): Remove parameter quitting.
9954 * monitor.h (monitor_close): Likewise.
9955 * record-btrace.c (record_btrace_close): Likewise.
9956 * record-full.c (record_full_close): Likewise.
9957 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9958 it also from fprintf_unfiltered.
9959 * remote-mips.c (mips_close): Remove parameter quitting.
9960 (mips_detach): Remove parameter quitting from a caller.
9961 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9962 (gdbsim_close): Remove duplicate function comment. Remove parameter
9963 quitting and remove it also from printf_filtered.
9964 * remote.c (remote_close): Remove parameter quitting.
9965 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9966 * target.c (update_current_target): Remove parameter int from to_close
9967 de_fault.
9968 (push_target, unpush_target, pop_target): Remove parameter quitting from
9969 a caller.
9970 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9971 Remove parameter quitting from a caller.
9972 (target_preopen): Remove parameter quitting from a caller.
9973 (target_close): Remove parameter quitting. Remove parameter quitting
9974 from a caller two times. Remove parameter quitting also from
9975 fprintf_unfiltered.
9976 * target.h (struct target_ops): Remove parameter quitting and as int
9977 from fields to_xclose and to_close.
9978 (extern struct target_ops current_target):
9979 (target_close, pop_all_targets): Remove parameter quitting. Update the
9980 comment.
9981 (pop_all_targets_above): Remove parameter quitting.
9982 * top.c (quit_target): Remove parameter quitting from a caller.
9983 * tracepoint.c (tfile_close): Remove parameter quitting.
9984 * windows-nat.c (windows_close): Remove parameter quitting.
9985
35a7120b
CV
99862013-03-20 Corinna Vinschen <vinschen@redhat.com>
9987
9988 * windows-nat.c (handle_output_debug_string): Replace call
9989 to string_to_core_addr with call to strtoull.
9990
8249a5a9
YQ
99912013-03-20 Yao Qi <yao@codesourcery.com>
9992
9993 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9994 and write it to CTF metadata.
9995
2c15ef43
CV
99962013-03-19 Corinna Vinschen <vinschen@redhat.com>
9997
9998 * windows-nat.c (handle_output_debug_string): Change type of n to
9999 SIZE_T to avoid crash on 64 bit systems.
10000
1cdd3232
EZ
100012013-03-17 Eli Zaretskii <eliz@gnu.org>
10002
10003 * python/python-internal.h (HAVE_SNPRINTF)
10004 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10005 about redefinition of snprintf by pyerrors.h.
10006
3cb2ab1a
SE
100072013-03-15 Steve Ellcey <sellcey@mips.com>
10008
10009 * remote-sim.c (sim_command_completer): Make char arguments const.
10010
9ce98649
TT
100112013-03-15 Tom Tromey <tromey@redhat.com>
10012
10013 PR c++/15116:
10014 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10015
dccee2de
TT
100162013-03-14 Tom Tromey <tromey@redhat.com>
10017
10018 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10019 New fields.
10020 (get_file_crc): Move from symfile.c.
10021 (gdb_bfd_crc): New function.
10022 * gdb_bfd.h (gdb_bfd_crc): Declare.
10023 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10024 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10025 (separate_debug_file_exists): Use gdb_bfd_crc.
10026
cc0ea93c
TT
100272013-03-14 Tom Tromey <tromey@redhat.com>
10028
10029 * symfile.c (get_debug_link_info): Remove.
10030 (find_separate_debug_file_by_debuglink): Use
10031 bfd_get_debug_link_info.
10032
08c23b0d
TT
100332013-03-14 Tom Tromey <tromey@redhat.com>
10034
10035 * symtab.c (error_in_psymtab_expansion): New function.
10036 (lookup_symbol_aux_quick)
10037 (basic_lookup_transparent_type_quick): Remove "last resort"
10038 code. Use error_in_psymtab_expansion.
10039
288e77a7
JK
100402013-03-14 Doug Evans <dje@google.com>
10041 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10044 any successful compare_filenames_for_search or FILENAME_CMP.
10045 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10046 * symtab.c (iterate_over_some_symtabs): Likewise.
10047
8f1b8b82
JK
100482013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 * source.c (print_source_lines_base): Make a local copy of
10051 symtab_to_fullname.
10052
23eb71e4
JK
100532013-03-14 Hui Zhu <hui_zhu@mentor.com>
10054 Jan Kratochvil <jan.kratochvil@redhat.com>
10055
10056 * source.c (print_source_lines_base): Suppress "file" for TUI.
10057
bb869963
SDJ
100582013-03-14 Keith Seitz <keiths@redhat.com>
10059 Alan Matsuoka <alanm@redhat.com>
10060
10061 PR c++/15203
10062 PR c++/15210
10063 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10064 TYPE_CODE_METHOD.
10065 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10066 symbols.
10067
d6682f9e
YQ
100682013-03-14 Yao Qi <yao@codesourcery.com>
10069
10070 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10071 status to tfile if trace is stopped by command 'tstop'.
10072
a22fa6e4
YQ
100732013-03-14 Yao Qi <yao@codesourcery.com>
10074
10075 * tracepoint.c (tfile_write_status): Write trace notes and user
10076 name into tfile if they are not NULL.
10077
d0353e76
YQ
100782013-03-14 Hui Zhu <hui@codesourcery.com>
10079 Yao Qi <yao@codesourcery.com>
10080
10081 * Makefile.in (REMOTE_OBS): Add ctf.o.
10082 (SFILES): Add ctf.c.
10083 (HFILES_NO_SRCDIR): Add ctf.h.
10084 * ctf.c, ctf.h: New files.
10085 * tracepoint.c: Include 'ctf.h'.
10086 (collect_pseudocommand): Remove static.
10087 (trace_save_command): Parse option "-ctf".
10088 Produce different trace file writers per option.
10089 Adjust output message.
10090 (trace_save_tfile, trace_save_ctf): New.
10091 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10092 * mi/mi-main.c: Include 'ctf.h'.
10093 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10094 trace_save_tfile or trace_save_ctf.
10095 * NEWS: Mention these changes.
10096
3f43bc09
YQ
100972013-03-14 Yao Qi <yao@codesourcery.com>
10098
10099 * tracepoint.c (trace_file_writer_xfree): New.
10100 (struct tfile_writer_data): New.
10101 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10102 (tfile_write_header, tfile_write_regblock_type): New.
10103 (tfile_write_status, tfile_write_uploaded_tsv): New.
10104 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10105 (tfile_write_raw_data, (tfile_end): New.
10106 (tfile_write_ops): New global variable.
10107 (TRACE_WRITE_R_BLOCK): New macro.
10108 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10109 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10110 (TRACE_WRITE_V_BLOCK): New macro.
10111 (trace_save): Add extra one parameter WRITER. Make it static.
10112 Use WRITER to writer trace.
10113 (tfile_trace_file_writer_new): New.
10114 (trace_save_command): Caller update.
10115 (trace_save_tfile): Write trace data in TFILE format.
10116 * tracepoint.h (struct trace_frame_write_ops): New.
10117 (struct trace_file_write_ops): New.
10118 (struct trace_file_writer): New.
10119 (trace_save): Remove its declaration.
10120 (trace_save_tfile): Declare it.
10121 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10122 instead of trace_save.
10123
58665b40
PA
101242013-03-13 Pedro Alves <palves@redhat.com>
10125
10126 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10127
10217050
PA
101282013-03-13 Pedro Alves <palves@redhat.com>
10129
10130 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10131 commented out code.
10132 * demangle.c (current_demangling_style_string): Make it const.
10133 (set_demangling_command): Assert the demangling style is known.
10134 Remove all handling of unknown styles. Set
10135 'current_demangling_style_string' to an element of the
10136 demangling_style_names array.
10137 (set_demangling_style): Delete.
10138 (_initialize_demangler): Set current_demangling_style_string to the
10139 element of the demangling_style_names array that corresponds to
10140 the default demangling style. Remove FIXME note. Don't call
10141 set_demangling_style.
10142 * gdb-demangle.h (set_demangling_style): Remove declaration.
10143
6f937416
PA
101442013-03-13 Pedro Alves <palves@redhat.com>
10145
10146 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10147 fields const.
10148 (ada_make_symbol_completion_list): Make "text0" parameter const.
10149 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10150 * breakpoint.c (condition_completer): Make "text" and "word"
10151 parameters const. Adjust.
10152 (check_tracepoint_command): Adjust to validate_actionline
10153 prototype change.
10154 (catch_syscall_completer): Make "text" and "word" parameters
10155 const.
10156 * cli/cli-cmds.c (show_user): Make "comname" local const.
10157 (valid_command_p): Make "command" parameter const.
10158 (alias_command): Make "alias_prefix" and "command_prefix" locals
10159 const.
10160 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10161 (add_alias_cmd): Make "name" and "oldname" parameters const.
10162 Adjust. No longer make copy of OLDNAME.
10163 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10164 (add_setshow_cmd_full, add_setshow_enum_cmd)
10165 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10166 (add_setshow_filename_cmd, add_setshow_string_cmd)
10167 (add_setshow_string_noescape_cmd)
10168 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10169 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10170 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10171 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10172 Make "name" parameter const.
10173 (help_cmd): Rename "command" parameter to "arg". New const local
10174 "command".
10175 (find_cmd): Make "command" parameter const.
10176 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10177 deprecated_cmd_warning prototype change.
10178 (undef_cmd_error): Make "cmdtype" parameter const.
10179 (lookup_cmd): Make "line" parameter const.
10180 (deprecated_cmd_warning): Change type of "text" parameter to
10181 pointer to const char, from pointer to pointer to char. Adjust.
10182 (lookup_cmd_composition): Make "text" parameter const.
10183 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10184 parameters const.
10185 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10186 const.
10187 * cli/cli-script.c (validate_comname): Make "tem" local const.
10188 (define_command): New const local "tem_c". Use it in calls to
10189 lookup_cmd.
10190 (document_command): Make "tem" and "comfull" locals const.
10191 (show_user_1): Make "prefix" and "name" parameters const.
10192 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10193 const.
10194 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10195 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10196 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10197 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10198 (complete_on_enum, add_setshow_enum_cmd)
10199 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10200 (add_setshow_filename_cmd, add_setshow_string_cmd)
10201 (add_setshow_string_noescape_cmd)
10202 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10203 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10204 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10205 Change prototypes, constifying strings.
10206 * completer.c (noop_completer, filename_completer): Make "text"
10207 and "prefix" parameters const.
10208 (location_completer, expression_completer)
10209 (complete_line_internal): Make "text" and "prefix" parameters
10210 const and adjust.
10211 (command_completer, signal_completer): Make "text" and "prefix"
10212 parameters const.
10213 * completer.h (noop_completer, filename_completer)
10214 (expression_completer, location_completer, command_completer)
10215 (signal_completer): Change prototypes.
10216 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10217 parameters const.
10218 * cp-abi.c (cp_abi_completer): Likewise.
10219 * expression.h (parse_expression_for_completion): Change
10220 prototype.
10221 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10222 parameters const.
10223 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10224 * infrun.c (handle_completer): Make "text" and "word" parameters
10225 const.
10226 * interps.c (interpreter_completer): Make "text" and "word"
10227 parameters const.
10228 * language.h (struct language_defn)
10229 <la_make_symbol_completion_list>: Make "text" and "word"
10230 parameters const.
10231 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10232 (parse_exp_in_context): Rename to ...
10233 (parse_exp_in_context_1): ... this.
10234 (parse_exp_in_context): Reimplement, with const hack from
10235 parse_exp_1.
10236 (parse_expression_for_completion): Make "string" parameter const.
10237 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10238 to pointer to const char. Adjust.
10239 (print_command_1): Make "exp" parameter const.
10240 (output_command): Rename to ...
10241 (output_command_const): ... this. Make "exp" parameter const.
10242 (output_command): Reimplement.
10243 (x_command): Adjust.
10244 (display_command): Rename "exp" parameter to "arg". New "exp"
10245 local, const version of "arg".
10246 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10247 "cmd_name" local const.
10248 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10249 call.
10250 (cmdpy_completer): Make "text" and "word" parameters const.
10251 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10252 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10253 const.
10254 * remote.c (_initialize_remote): Make "cmd_name" local const.
10255 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10256 parameters const. Adjust.
10257 (completion_list_add_fields): Make "sym_text", "text" and "word"
10258 parameters const.
10259 (struct add_name_data) <sym_text, text, word>: Make fields const.
10260 (default_make_symbol_completion_list_break_on): Make "text" and
10261 "word" parameters const. Adjust locals.
10262 (default_make_symbol_completion_list)
10263 (make_symbol_completion_list, make_symbol_completion_type)
10264 (make_symbol_completion_list_fn): Make "text" and "word"
10265 parameters const.
10266 (make_file_symbol_completion_list): Make "text", "word" and
10267 "srcfile" parameters const. Adjust locals.
10268 (add_filename_to_list): Make "text" and "word" parameters const.
10269 (struct add_partial_filename_data) <text, word>: Make fields
10270 const.
10271 (make_source_files_completion_list): Make "text" and "word"
10272 parameters const.
10273 * symtab.h (default_make_symbol_completion_list_break_on)
10274 (default_make_symbol_completion_list, make_symbol_completion_list)
10275 (make_symbol_completion_type enum type_code)
10276 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10277 (make_source_files_completion_list): Change prototype.
10278 * top.c (execute_command): Adjust to pass pointer to pointer to
10279 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10280 change.
10281 (set_verbose): Make "cmdname" local const.
10282 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10283 and adjust.
10284 (validate_actionline): Make "line" parameter a pointer to const
10285 char, and adjust.
10286 (encode_actions_1): Make "action_exp" local const, and adjust.
10287 (encode_actions): Adjust.
10288 (replace_comma): Delete.
10289 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10290 const, and adjust. Don't frob the action string while splitting
10291 it at commas. Instead, make a copy of each split substring in
10292 turn.
10293 (trace_dump_command): Adjust to validate_actionline prototype
10294 change.
10295 * tracepoint.h (decode_agent_options, decode_agent_options)
10296 (encode_actions, validate_actionline): Change prototypes.
10297 * valprint.h (output_command): Delete declaration.
10298 (output_command_const): Declare.
10299 * value.c (function_destroyer): Cast const away in xfree call.
10300
a0bcdaa7
PA
103012013-03-13 Pedro Alves <palves@redhat.com>
10302
10303 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10304 rather than casting 'const char * const *' to 'const char **'.
10305 * ada-lex.l (processInt): Make "trailer" local const. Remove
10306 'const char **' cast.
10307 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10308 locals, and use those as strtol output pointer, instead than doing
10309 invalid casts to from 'const char **' to 'char **'.
10310 (_initialize_demangle): Remove cast.
10311 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10312 locals, and use those as strtol output pointer, instead than doing
10313 invalid casts to from 'const char **' to 'char **'.
10314 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10315 casts.
10316 * stap-probe.c (stap_parse_register_operand)
10317 (stap_parse_single_operand): Likewise.
10318
8ddb1965
YQ
103192013-03-13 Yao Qi <yao@codesourcery.com>
10320
10321 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10322 the last matched 'V' blcok in trace frame.
10323
2d450646
JB
103242013-03-12 Joel Brobecker <brobecker@adacore.com>
10325
10326 * NEWS: Create a new section for the next release branch.
10327 Rename the section of the current branch, now that it has
10328 been cut.
10329
b4b79973 103302013-03-12 Joel Brobecker <brobecker@adacore.com>
10331
10332 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10333 * version.in: Bump version to 7.6.50.20130312-cvs.
10334
ee047554
KS
103352013-03-12 Keith Seitz <keiths@redhat.com>
10336
10337 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10338 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10339 Remove temporary copy of input string.
10340 (mi_execute_command_wrapper): Make "cmd" const.
10341 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10342 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10343 Use const strings.
10344 (mi_parse): Make "cmd" const.
10345 Use const strings.
10346 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10347
bbc13ae3
KS
103482013-03-12 Keith Seitz <keiths@redhat.com>
10349
10350 * ada-lang.c (ada_read_renaming_var_value): Pass const
10351 pointer to expression string to parse_exp_1.
10352 (create_excep_cond_exprs): Likewise.
10353 * ax-gdb.c (agent_eval_command_one): Likewise.
10354 (maint_agent_printf_command): Likewise.
10355 Constify much of the string handling/parsing.
10356 * breakpoint.c (set_breakpoint_condition): Pass const
10357 pointer to expression string to parse_exp_1.
10358 (update_watchpoint): Likewise.
10359 (parse_cmd_to_aexpr): Constify string handling.
10360 Pass const pointer to parse_exp_1.
10361 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10362 (find_condition_and_thread): Likewise.
10363 Make TOK const.
10364 (watch_command_1): Make "arg" const.
10365 Constify string handling.
10366 Copy the expression string instead of changing the input
10367 string.
10368 (update_breakpoint_location): Pass const pointer to
10369 parse_exp_1.
10370 * eval.c (parse_and_eval_address): Make "exp" const.
10371 (parse_to_comma_and_eval): Make "expp" const.
10372 (parse_and_eval): Make "exp" const.
10373 * expression.h (parse_expression): Make argument const.
10374 (parse_exp_1): Make first argument const.
10375 * findcmd.c (parse_find_args): Treat "args" as const.
10376 * linespec.c (parse_linespec): Pass const pointer to
10377 linespec_expression_to_pc.
10378 (linespec_expression_to_pc): Make "exp_ptr" const.
10379 * parse.c (parse_exp_1): Make "stringptr" const.
10380 Make a copy of the expression to pass to parse_exp_in_context until
10381 this whole interface can be constified.
10382 (parse_expression): Make "string" const.
10383 * printcmd.c (ui_printf): Treat "arg" as const.
10384 Handle const strings.
10385 * tracepoint.c (validate_actionline): Pass const pointer to
10386 all calls to parse_exp_1.
10387 (encode_actions_1): Likewise.
10388 * value.h (parse_to_comma_and_eval): Make argument const.
10389 (parse_and_eval_address): Likewise.
10390 (parse_and_eval): Likewise.
10391 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10392 (varobj_set_value): Likewise.
10393 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10394 constify string handling.
10395 Pass const pointers to parse_and_eval_address and
10396 parse_to_comman_and_eval.
10397 * cli/cli-utils.c (skip_to_space): Rename to ...
10398 (skip_to_space_const): ... this. Handle const strings.
10399 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10400 skip_to_space_const.
10401 (skip_to_space_const): Declare.
10402 * common/format.c (parse_format_string): Make "arg" const.
10403 Handle const strings.
10404 * common/format.h (parse_format_string): Make "arg" const.
10405 * gdbserver/ax.c (ax_printf): Make "format" const.
10406 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10407 of the expression string.
10408
f3cec7e6
HZ
104092013-03-12 Hui Zhu <hui@codesourcery.com>
10410
10411 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10412
9df7235c
HZ
104132013-03-12 Yao Qi <yao@codesourcery.com>
10414 Hui Zhu <hui@codesourcery.com>
10415
10416 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10417 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10418 DW_OP_deref_size.
10419
82d049ab
PH
104202013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10421
5f8e0b8f
MF
10422 * ada-lex.l (rules): Only recognize 'thread' as a
10423 delimiter when followed by numerals, as for c-exp.y.
10424 Use new rewind_to_char function to rewind the input for
10425 expression-delimiting tokens.
10426 (rewind_to_char): New function.
82d049ab 10427
8c1fb155
JK
104282013-03-11 Pedro Alves <palves@redhat.com>
10429 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 * configure: Regenerate.
10432 * configure.ac (check dynamic export flag): Link python test with
10433 $PYTHON_LIBS.
10434
cc81e1c6
DE
104352013-03-11 Doug Evans <dje@google.com>
10436 Keith Seitz <keiths@redhat.com>
10437
10438 * linespec.c (find_linespec_symbols): Call find_function_symbols
10439 first, and then call lookup_prefix_sym/find_method.
10440
39086a0e
PA
104412013-03-11 Pedro Alves <palves@redhat.com>
10442
10443 * charset.c (convert_between_encodings): Don't cast between
10444 different pointer to pointer types. Instead, make the 'inp' local
10445 be of the type iconv expects.
10446 (wchar_iterate): Don't cast between different pointer to pointer
10447 types. Instead, use new pointer local of the type iconv expects.
10448 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10449 Add new local of type char pointer, and use it to get a
10450 char/string view of the byte buffer, instead of casting between
10451 pointer to pointer types.
10452
90585175
HAQ
104532013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10454
10455 * remote.c (remote_set_trace_buffer_size): Move != operator
10456 to the start of next line to fix an ARI warning.
10457
59ea5688
MM
104582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10459
10460 * NEWS: Add record changes.
10461
946287b7
MM
104622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10463
10464 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10465 the instruction history disassembly.
10466 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10467 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10468
afedecd3
MM
104692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10470
10471 * Makefile.in (SFILES): Add record-btrace.c
10472 (COMMON_OBS): Add record-btrace.o
10473 * record-btrace.c: New.
10474 * objfiles.c: Include btrace.h.
10475 (free_objfile): call btrace_free_objfile.
10476
15984c13
MM
104772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10478
10479 * target.c (target_call_history, target_call_history_from,
10480 target_call_history_range): New.
10481 * target.h (target_ops) <to_call_history, to_call_history_from,
10482 to_call_history_range>: New fields.
10483 (target_call_history, target_call_history_from,
10484 target_call_history_range): New declaration.
10485 * record.c (get_call_history_modifiers, cmd_record_call_history,
10486 record_call_history_size): New.
10487 (_initialize_record): Add the "record function-call-history" command.
10488 Add "set/show record function-call-history-size" commands.
10489 * record.h (record_print_flag): New.
10490
67c86d06
MM
104912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10492
10493 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10494 to_insn_history_range>: New fields.
10495 (target_insn_history): New.
10496 (target_insn_history_from): New.
10497 (target_insn_history_range): New.
10498 * target.c (target_insn_history): New.
10499 (target_insn_history_from): New.
10500 (target_insn_history_range): New.
10501 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10502 (record_insn_history_size): New.
10503 (get_insn_number): New.
10504 (get_context_size): New.
10505 (no_chunk): New.
10506 (get_insn_history_modifiers): New.
10507 (cmd_record_insn_history): New.
10508 (_initialize_record): Add "set/show record instruction-history-size"
10509 command. Add "record instruction-history" command.
10510
7c1687a9
MM
105112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10512
10513 * record.h (record_disconnect): New.
10514 (record_detach): New.
10515 (record_mourn_inferior): New.
10516 (record_kill): New.
10517 * record-full.c (record_disconnect, record_detach,
10518 record_mourn_inferior, record_kill): Move to...
10519 * record.c: ...here.
10520 (DEBUG): New.
10521 (record_stop): New.
10522 (record_unpush): New.
10523 (cmd_record_stop): Call record_stop. Replace unpush_target
10524 call with record_unpush call.
10525 (record_disconnect, record_detach): Assert that the target
10526 is of record stratum. Call record_unpush, record_stop, and
10527 DEBUG.
10528 (record_mourn_inferior, record_kill): Assert that the target
10529 is of record stratum. Call record_unpush and DEBUG.
10530
25ea693b
MM
105312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10532
10533 * record-full.h, record-full.c (record_memory_query): Rename
10534 to ...
10535 (record_full_memory_query): ...this. Update all users.
10536 (record_arch_list_add_reg): Rename to ...
10537 (record_full_arch_list_add_reg): ...this. Update all users.
10538 (record_arch_list_add_mem): Rename to ...
10539 (record_full_arch_list_add_mem): ...this. Update all users.
10540 (record_arch_list_add_end): Rename to ...
10541 (record_full_arch_list_add_end): ...this. Update all users.
10542 (record_gdb_operation_disable_set): Rename to ...
10543 (record_full_gdb_operation_disable_set): ...this.
10544 Update all users.
10545
88d1aa9d
MM
105462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10547
10548 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10549 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10550 (RECORD_IS_REPLAY): Renamed to ...
10551 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10552 (RECORD_FILE_MAGIC): Renamed to ...
10553 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10554 (record_mem_entry): Renamed to ...
10555 (record_full_mem_entry): ... this. Updated all users.
10556 (record_reg_entry): Renamed to ...
10557 (record_full_reg_entry): ... this. Updated all users.
10558 (record_end_entry): Renamed to ...
10559 (record_full_end_entry): ... this. Updated all users.
10560 (record_type) <record_end, record_reg, record_mem>: Renamed
10561 to ...
10562 (record_full_type) <record_full_end, record_full_reg,
10563 record_full_mem>: ... this. Updated all users.
10564 (record_entry): Renamed to ...
10565 (record_full_entry): ... this. Updated all users.
10566 (record_core_buf_entry): Renamed to ...
10567 (record_full_core_buf_entry): ... this. Updated all users.
10568 (record_core_regbuf): Renamed to ...
10569 (record_full_core_regbuf): ... this. Updated all users.
10570 (record_core_start): Renamed to ...
10571 (record_full_core_start): ... this. Updated all users.
10572 (record_core_end): Renamed to ...
10573 (record_full_core_end): ... this. Updated all users.
10574 (record_core_buf_list): Renamed to ...
10575 (record_full_core_buf_list): ... this. Updated all users.
10576 (record_first): Renamed to ...
10577 (record_full_first): ... this. Updated all users.
10578 (record_list): Renamed to ...
10579 (record_full_list): ... this. Updated all users.
10580 (record_arch_list_head): Renamed to ...
10581 (record_full_arch_list_head): ... this. Updated all users.
10582 (record_arch_list_tail): Renamed to ...
10583 (record_full_arch_list_tail): ... this. Updated all users.
10584 (record_stop_at_limit): Renamed to ...
10585 (record_full_stop_at_limit): ... this. Updated all users.
10586 (record_insn_max_num): Renamed to ...
10587 (record_full_insn_max_num): ... this. Updated all users.
10588 (record_insn_num): Renamed to ...
10589 (record_full_insn_num): ... this. Updated all users.
10590 (record_insn_count): Renamed to ...
10591 (record_full_insn_count): ... this. Updated all users.
10592 (record_ops): Renamed to ...
10593 (record_full_ops): ... this. Updated all users.
10594 (record_core_ops): Renamed to ...
10595 (record_full_core_ops): ... this. Updated all users.
10596 (set_record_cmdlist): Renamed to ...
10597 (set_record_full_cmdlist): ... this. Updated all users.
10598 (show_record_cmdlist): Renamed to ...
10599 (show_record_full_cmdlist): ... this. Updated all users.
10600 (record_cmdlist): Renamed to ...
10601 (record_full_cmdlist): ... this. Updated all users.
10602 (record_beneath_to_resume_ops): Renamed to ...
10603 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10604 (record_beneath_to_resume): Renamed to ...
10605 (record_full_beneath_to_resume): ... this. Updated all users.
10606 (record_beneath_to_wait_ops): Renamed to ...
10607 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10608 (record_beneath_to_wait): Renamed to ...
10609 (record_full_beneath_to_wait): ... this. Updated all users.
10610 (record_beneath_to_store_registers_ops): Renamed to ...
10611 (record_full_beneath_to_store_registers_ops): ... this.
10612 Updated all users.
10613 (record_beneath_to_store_registers): Renamed to ...
10614 (record_full_beneath_to_store_registers): ... this.
10615 Updated all users.
10616 (record_beneath_to_xfer_partial_ops): Renamed to ...
10617 (record_full_beneath_to_xfer_partial_ops): ... this.
10618 Updated all users.
10619 (record_beneath_to_xfer_partial): Renamed to ...
10620 (record_full_beneath_to_xfer_partial): ... this.
10621 Updated all users.
10622 (record_beneath_to_insert_breakpoint): Renamed to ...
10623 (record_full_beneath_to_insert_breakpoint): ... this.
10624 Updated all users.
10625 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10626 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10627 Updated all users.
10628 (record_beneath_to_stopped_data_address): Renamed to ...
10629 (record_full_beneath_to_stopped_data_address): ... this.
10630 Updated all users.
10631 (record_beneath_to_async): Renamed to ...
10632 (record_full_beneath_to_async): ... this. Updated all users.
10633 (record_goto_insn): Renamed to ...
10634 (record_full_goto_insn): ... this. Updated all users.
10635 (record_save): Renamed to ...
10636 (record_full_save): ... this. Updated all users.
10637 (record_reg_alloc): Renamed to ...
10638 (record_full_reg_alloc): ... this. Updated all users.
10639 (record_reg_release): Renamed to ...
10640 (record_full_reg_release): ... this. Updated all users.
10641 (record_mem_alloc): Renamed to ...
10642 (record_full_mem_alloc): ... this. Updated all users.
10643 (record_mem_release): Renamed to ...
10644 (record_full_mem_release): ... this. Updated all users.
10645 (record_end_alloc): Renamed to ...
10646 (record_full_end_alloc): ... this. Updated all users.
10647 (record_end_release): Renamed to ...
10648 (record_full_end_release): ... this. Updated all users.
10649 (record_entry_release): Renamed to ...
10650 (record_full_entry_release): ... this. Updated all users.
10651 (record_list_release): Renamed to ...
10652 (record_full_list_release): ... this. Updated all users.
10653 (record_list_release_following): Renamed to ...
10654 (record_full_list_release_following): ... this.
10655 Updated all users.
10656 (record_list_release_first): Renamed to ...
10657 (record_full_list_release_first): ... this. Updated all users.
10658 (record_arch_list_add): Renamed to ...
10659 (record_full_arch_list_add): ... this. Updated all users.
10660 (record_get_loc): Renamed to ...
10661 (record_full_get_loc): ... this. Updated all users.
10662 (record_check_insn_num): Renamed to ...
10663 (record_full_check_insn_num): ... this. Updated all users.
10664 (record_arch_list_cleanups): Renamed to ...
10665 (record_full_arch_list_cleanups): ... this. Updated all users.
10666 (record_message): Renamed to ...
10667 (record_full_message): ... this. Updated all users.
10668 (record_message_wrapper): Renamed to ...
10669 (record_full_message_wrapper): ... this. Updated all users.
10670 (record_message_wrapper_safe): Renamed to ...
10671 (record_full_message_wrapper_safe): ... this. Updated all users.
10672 (record_gdb_operation_disable): Renamed to ...
10673 (record_full_gdb_operation_disable): ... this. Updated all users.
10674 (record_hw_watchpoint): Renamed to ...
10675 (record_full_hw_watchpoint): ... this. Updated all users.
10676 (record_exec_insn): Renamed to ...
10677 (record_full_exec_insn): ... this. Updated all users.
10678 (record_restore): Renamed to ...
10679 (record_full_restore): ... this. Updated all users.
10680 (record_async_inferior_event_token): Renamed to ...
10681 (record_full_async_inferior_event_token): ... this.
10682 Updated all users.
10683 (record_async_inferior_event_handler): Renamed to ...
10684 (record_full_async_inferior_event_handler): ... this.
10685 Updated all users.
10686 (record_core_open_1): Renamed to ...
10687 (record_full_core_open_1): ... this. Updated all users.
10688 (record_open_1): Renamed to ...
10689 (record_full_open_1): ... this. Updated all users.
10690 (record_open): Renamed to ...
10691 (record_full_open): ... this. Updated all users.
10692 (record_close): Renamed to ...
10693 (record_full_close): ... this. Updated all users.
10694 (record_resume_step): Renamed to ...
10695 (record_full_resume_step): ... this. Updated all users.
10696 (record_resumed): Renamed to ...
10697 (record_full_resumed): ... this. Updated all users.
10698 (record_execution_dir): Renamed to ...
10699 (record_full_execution_dir): ... this. Updated all users.
10700 (record_resume): Renamed to ...
10701 (record_full_resume): ... this. Updated all users.
10702 (record_get_sig): Renamed to ...
10703 (record_full_get_sig): ... this. Updated all users.
10704 (record_sig_handler): Renamed to ...
10705 (record_full_sig_handler): ... this. Updated all users.
10706 (record_wait_cleanups): Renamed to ...
10707 (record_full_wait_cleanups): ... this. Updated all users.
10708 (record_wait_1): Renamed to ...
10709 (record_full_wait_1): ... this. Updated all users.
10710 (record_wait): Renamed to ...
10711 (record_full_wait): ... this. Updated all users.
10712 (record_stopped_by_watchpoint): Renamed to ...
10713 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10714 (record_disconnect): Renamed to ...
10715 (record_full_disconnect): ... this. Updated all users.
10716 (record_detach): Renamed to ...
10717 (record_full_detach): ... this. Updated all users.
10718 (record_mourn_inferior): Renamed to ...
10719 (record_full_mourn_inferior): ... this. Updated all users.
10720 (record_kill): Renamed to ...
10721 (record_full_kill): ... this. Updated all users.
10722 (record_stopped_data_address): Renamed to ...
10723 (record_full_stopped_data_address): ... this. Updated all users.
10724 (record_registers_change): Renamed to ...
10725 (record_full_registers_change): ... this. Updated all users.
10726 (record_store_registers): Renamed to ...
10727 (record_full_store_registers): ... this. Updated all users.
10728 (record_xfer_partial): Renamed to ...
10729 (record_full_xfer_partial): ... this. Updated all users.
10730 (record_breakpoint): Renamed to ...
10731 (record_full_breakpoint): ... this. Updated all users.
10732 (record_breakpoint_p): Renamed to ...
10733 (record_full_breakpoint_p): ... this. Updated all users.
10734 (record_breakpoints): Renamed to ...
10735 (record_full_breakpoints): ... this. Updated all users.
10736 (record_sync_record_breakpoints): Renamed to ...
10737 (record_full_sync_record_breakpoints): ... this.
10738 Updated all users.
10739 (record_init_record_breakpoints): Renamed to ...
10740 (record_full_init_record_breakpoints): ... this.
10741 Updated all users.
10742 (record_insert_breakpoint): Renamed to ...
10743 (record_full_insert_breakpoint): ... this. Updated all users.
10744 (record_remove_breakpoint): Renamed to ...
10745 (record_full_remove_breakpoint): ... this. Updated all users.
10746 (record_can_execute_reverse): Renamed to ...
10747 (record_full_can_execute_reverse): ... this. Updated all users.
10748 (record_get_bookmark): Renamed to ...
10749 (record_full_get_bookmark): ... this. Updated all users.
10750 (record_goto_bookmark): Renamed to ...
10751 (record_full_goto_bookmark): ... this. Updated all users.
10752 (record_async): Renamed to ...
10753 (record_full_async): ... this. Updated all users.
10754 (record_can_async_p): Renamed to ...
10755 (record_full_can_async_p): ... this. Updated all users.
10756 (record_is_async_p): Renamed to ...
10757 (record_full_is_async_p): ... this. Updated all users.
10758 (record_execution_direction): Renamed to ...
10759 (record_full_execution_direction): ... this. Updated all users.
10760 (record_info): Renamed to ...
10761 (record_full_info): ... this. Updated all users.
10762 (record_delete): Renamed to ...
10763 (record_full_delete): ... this. Updated all users.
10764 (record_is_replaying): Renamed to ...
10765 (record_full_is_replaying): ... this. Updated all users.
10766 (record_goto_entry): Renamed to ...
10767 (record_full_goto_entry): ... this. Updated all users.
10768 (record_goto_begin): Renamed to ...
10769 (record_full_goto_begin): ... this. Updated all users.
10770 (record_goto_end): Renamed to ...
10771 (record_full_goto_end): ... this. Updated all users.
10772 (record_goto): Renamed to ...
10773 (record_full_goto): ... this. Updated all users.
10774 (init_record_ops): Renamed to ...
10775 (init_record_full_ops): ... this. Updated all users.
10776 (record_core_resume): Renamed to ...
10777 (record_full_core_resume): ... this. Updated all users.
10778 (record_core_kill): Renamed to ...
10779 (record_full_core_kill): ... this. Updated all users.
10780 (record_core_fetch_registers): Renamed to ...
10781 (record_full_core_fetch_registers): ... this. Updated all users.
10782 (record_core_prepare_to_store): Renamed to ...
10783 (record_full_core_prepare_to_store): ... this. Updated all users.
10784 (record_core_store_registers): Renamed to ...
10785 (record_full_core_store_registers): ... this. Updated all users.
10786 (record_core_xfer_partial): Renamed to ...
10787 (record_full_core_xfer_partial): ... this. Updated all users.
10788 (record_core_insert_breakpoint): Renamed to ...
10789 (record_full_core_insert_breakpoint): ... this. Updated all users.
10790 (record_core_remove_breakpoint): Renamed to ...
10791 (record_full_core_remove_breakpoint): ... this. Updated all users.
10792 (record_core_has_execution): Renamed to ...
10793 (record_full_core_has_execution): ... this. Updated all users.
10794 (init_record_core_ops): Renamed to ...
10795 (init_record_full_core_ops): ... this. Updated all users.
10796 (cmd_record_restore): Renamed to ...
10797 (cmd_record_full_restore): ... this. Updated all users.
10798 (record_save_cleanups): Renamed to ...
10799 (record_full_save_cleanups): ... this. Updated all users.
10800 (cmd_record_start): Renamed to ...
10801 (cmd_record_full_start): ... this. Updated all users.
10802 (set_record_insn_max_num): Renamed to ...
10803 (set_record_full_insn_max_num): ... this. Updated all users.
10804 (set_record_command): Renamed to ...
10805 (set_record_full_command): ... this. Updated all users.
10806 (show_record_command): Renamed to ...
10807 (show_record_full_command): ... this. Updated all users.
10808 (_initialize_record): Renamed to ...
10809 (_initialize_record_full): ... this. Updated all users.
10810
d02ed0bb
MM
108112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10812
10813 * record.h: Split into this and ...
10814 * record-full.h: ... this.
10815 * record.c: Split into this and ...
10816 * record-full.c: ... this.
10817 * target.h (target_ops): Add new fields to_info_record,
10818 to_save_record, to_delete_record, to_record_is_replaying,
10819 to_goto_record_begin, to_goto_record_end, to_goto_record.
10820 (target_info_record): New.
10821 (target_save_record): New.
10822 (target_supports_delete_record): New.
10823 (target_delete_record): New.
10824 (target_record_is_replaying): New.
10825 (target_goto_record_begin): New.
10826 (target_goto_record_end): New.
10827 (target_goto_record): New.
10828 * target.c (target_info_record): New.
10829 (target_save_record): New.
10830 (target_supports_delete_record): New.
10831 (target_delete_record): New.
10832 (target_record_is_replaying): New.
10833 (target_goto_record_begin): New.
10834 (target_goto_record_end): New.
10835 (target_goto_record): New.
10836 * record.h: Declare struct cmd_list_element.
10837 (record_cmdlist): New declaration.
10838 (set_record_cmdlist): New declaration.
10839 (show_record_cmdlist): New declaration.
10840 (info_record_cmdlist): New declaration.
10841 (cmd_record_goto): New declaration.
10842 * record.c: Remove unnecessary includes.
10843 Include inferior.h.
10844 (cmd_record_goto): Remove declaration.
10845 (record_cmdlist): Now extern. Initialize.
10846 (set_record_cmdlist): Now extern. Initialize.
10847 (show_record_cmdlist): Now extern. Initialize.
10848 (info_record_cmdlist): Now extern. Initialize.
10849 (find_record_target): New.
10850 (require_record_target): New.
10851 (cmd_record_start): Update.
10852 (cmd_record_delete): Remove target-specific code.
10853 Call target_delete_record.
10854 (cmd_record_stop): Unpush any record target.
10855 (set_record_insn_max_num): Move to record-full.c
10856 (set_record_command): Add comment.
10857 (show_record_command): Add comment.
10858 (info_record_command): Update comment.
10859 Remove target-specific code.
10860 Call the record target's to_info_record.
10861 (cmd_record_start): New.
10862 (cmd_record_goto): Now extern.
10863 Remove target-specific code.
10864 Call target_goto_begin, target_goto_end, or target_goto.
10865 (_initialize_record): Move record target ops initialization to
10866 record-full.c.
10867 Change "record" command help text.
10868 Move "record restore", "record set", and "record show" commands to
10869 record-full.c.
10870 * Makefile.in (SFILES): Add record-full.c.
10871 (HFILES_NO_SRCDIR): Add record-full.h.
10872 (COMMON_OBS): Add record-full.o.
10873 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10874 * arm-tdep.c: Include record-full.h.
10875 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10876 * i386-tdep.c: Include record-full.h.
10877 * infrun.c: Include record-full.h.
10878 * linux-record.c: Include record-full.h.
10879 * moxie-tdep.c: Include record-full.h.
10880 * record-full.c: Include record-full.h.
10881 Change module comment.
10882 (set_record_full_cmdlist): New.
10883 (show_record_full_cmdlist): New.
10884 (record_full_cmdlist): New.
10885 (record_goto_insn): New declaration.
10886 (record_save): New declaration.
10887 (record_check_insn_num): Change query string.
10888 (record_info): New.
10889 (record_delete): New.
10890 (record_is_replaying): New.
10891 (record_goto_entry): New.
10892 (record_goto_begin): New.
10893 (record_goto_end): New.
10894 (record_goto): New.
10895 (init_record_ops): Update.
10896 (init_record_core_ops): Update.
10897 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10898 (cmd_record_start): New.
10899 (set_record_insn_max_num): Moved from record.c
10900 (set_record_full_command): New.
10901 (show_record_full_command): New.
10902 (_initialize_record_full): New.
10903
b48d48eb
MM
109042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10905
10906 * target.h (add_deprecated_target_alias): New.
10907 * target.c (add_deprecated_target_alias): New.
10908
a950d57c
MM
109092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10912 and signal.h.
10913 (linux_supports_btrace): Add kernel and
10914 cpuid check.
10915 (kernel_supports_btrace): New function.
10916 (cpu_supports_btrace): New function.
10917 (intel_supports_btrace): New function.
10918
9accd112
MM
109192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10920
10921 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10922 * remote.c: Include btrace.h.
10923 (struct btrace_target_info): New struct.
10924 (remote_supports_btrace): New function.
10925 (send_Qbtrace): New function.
10926 (remote_enable_btrace): New function.
10927 (remote_disable_btrace): New function.
10928 (remote_teardown_btrace): New function.
10929 (remote_read_btrace): New function.
10930 (init_remote_ops): Add btrace ops.
10931 (enum <unnamed>): Add btrace packets.
10932 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10933 (_initialize_remote): Add packet configuration for branch tracing.
10934
c12a2917
MM
109352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10936
10937 * features/btrace.dtd: New file.
10938 * Makefile.in (XMLFILES): Add btrace.dtd.
10939 * btrace.h (parse_xml_btrace): New declaration.
10940 * btrace.c: Include xml-support.h.
10941 (parse_xml_btrace): New function.
10942 (parse_xml_btrace_block): New function.
10943 (block_attributes): New struct.
10944 (btrace_attributes): New struct.
10945 (btrace_children): New struct.
10946 (btrace_elements): New struct.
10947
3e3aea48
MM
109482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10949
10950 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10951 (amd64_linux_enable_btrace): New.
10952 (amd64_linux_disable_btrace): New.
10953 (amd64_linux_teardown_btrace): New.
10954 (_initialize_amd64_linux_nat): Initialize btrace ops.
10955 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10956 (i386_linux_enable_btrace): New.
10957 (i386_linux_disable_btrace): New.
10958 (i386_linux_teardown_btrace): New.
10959 (_initialize_i386_linux_nat): Initialize btrace ops.
10960 * config/i386/linux.mh: Add linux-btrace.o.
10961 * config/i386/linux64.mh: Add linux-btrace.o.
10962
7c97f91e
MM
109632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10964
10965 * common/linux_btrace.h: New file.
10966 * common/linux_btrace.c: New file.
10967 * Makefile.in (SFILES): Add btrace.c.
10968 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10969 (COMMON_OBS): Add btrace.o.
10970 (linux-btrace.o): New rule.
10971
1999790b 109722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10973
10974 * target.h: Include btrace.h.
10975 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10976 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10977 * target.c (target_supports_btrace): New function.
10978 (target_enable_btrace): New function.
10979 (target_disable_btrace): New function.
10980 (target_teardown_btrace): New function.
10981 (target_read_btrace): New function.
10982 * btrace.h: New file.
10983 * btrace.c: New file.
10984 * Makefile.in: Add btrace.c.
10985 * gdbthread.h: Include btrace.h.
10986 (struct thread_info): Add btrace field.
10987 * thread.c: Include btrace.h.
10988 (clear_thread_inferior_resources): Call target_teardown_btrace.
10989 * common/btrace-common.h: New file.
10990
61a31a67
JK
109912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10992
10993 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10994 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10995 kill_status to outer block.
10996
05c56a9d
JK
109972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10998
10999 Fix entry-values if the callee called a noreturn function.
11000 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11001 get_frame_address_in_block. Add new comment.
11002
9112db09
JK
110032013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 Fix entry-values in C++ across CUs.
11006 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11007 lookup_minimal_symbol. Add a comment.
11008 * dwarf2read.c
11009 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11010 DW_AT_linkage_name.
11011
9b67fcec
YQ
110122013-03-08 Yao Qi <yao@codesourcery.com>
11013
11014 * tracepoint.c (_initialize_tracepoint): Indent the code.
11015
6221be90
PA
110162013-03-08 Pedro Alves <palves@redhat.com>
11017
11018 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11019 (parse_find_args, find_command): Change type of pattern buffer
11020 locals to 'gdb_byte *'.
11021
be9a119c 110222013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11023 Hafiz Abid Qadeer <abidh@codesourcery.com>
11024
11025 * NEWS: Mention set and show trace-buffer-size commands.
11026 Mention new packet.
11027 * target.h (struct target_ops): New method
11028 to_set_trace_buffer_size.
11029 (target_set_trace_buffer_size): New macro.
11030 * target.c (update_current_target): Set up new method.
11031 * tracepoint.c (trace_buffer_size): New global.
11032 (start_tracing): Send it to the target.
11033 (set_trace_buffer_size): New function.
11034 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11035 * remote.c (remote_set_trace_buffer_size): New function.
11036 (_initialize_remote): Use it.
11037 (QTBuffer:size) New remote command.
11038 (PACKET_QTBuffer_size): New enum.
11039 (remote_protocol_features): Add an entry for
11040 PACKET_QTBuffer_size.
11041
7da3ab79
TT
110422013-03-08 Tom Tromey <tromey@redhat.com>
11043
11044 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11045 variable.
11046
0c1f71e7
PA
110472013-03-07 Pedro Alves <palves@redhat.com>
11048
11049 * target.c (target_read_stralloc, target_fileio_read_alloc):
11050 *Cast pointer to 'gdb_byte *' in target call.
11051
c8af03a2
PA
110522013-03-07 Pedro Alves <palves@redhat.com>
11053
11054 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11055 call.
11056
529480d0
KS
110572013-03-07 Keith Seitz <keiths@redhat.com>
11058
11059 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11060 (trace_pass_command): Likewise.
11061 * cli/cli-cmds.c: Include cli/cli-utils.h.
11062 (source_command): Use skip-spaces.
11063 (disassemble_command): Likewise.
11064 * findcmd.c: Include cli/cli-utils.h.
11065 (parse_find_args): Use skip_spaces.
11066 * go32-nat.c: Include cli/cli-utils.h.
11067 (go32_sldt): Use skip_spaces.
11068 (go32_sgdt): Likewise.
11069 (go32_sidt): Likewise.
11070 (go32_pde): Likewise.
11071 (go32_pte): Likewise.
11072 (go32_pte_for_address): Likewise.
11073 * infcmd.c: Include cli/cli-utils.h.
11074 (registers_info): Use skip_spaces.
11075 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11076 (linux_info_proc): Likewise.
11077 * linux-thread-db.c: Include cli/cli-utils.h.
11078 (info_auto_load_libthread_db): Use skip_spaces_const.
11079 * m32r-rom.c: Include cli/cli-utils.h.
11080 (m32r_upload_command): Use skip_spaces.
11081 * maint.c: Include cli/cli-utils.h.
11082 (maintenance_translate_address): Use skip_spaces.
11083 * mi/mi-parse.c: Include cli/cli-utils.h.
11084 (mi_parse_argv): Use skip_spaces.
11085 (mi_parse): Likewise.
11086 * minsyms.c: Include cli/cli-utils.h.
11087 (msymbol_hash_iw): Use skip_spaces_const.
11088 * objc-lang.c: Include cli/cli-utils.h.
11089 (parse_selector): Use skip_spaces.
11090 (parse_method): Likewise.
11091 * python/python.c: Include cli/cli-utils.h.
11092 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11093 (python_command)[HAVE_PYTHON]: Likewise.
11094 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11095 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11096 (m32r_load): Use skip_spaces.
11097 * serial.c: Include cli/cli-utils.h.
11098 (serial_open): Use skip_spaces_const.
11099 * stack.c: Include cli/cli-utils.h.
11100 (parse_frame_specification_1): Use skip_spaces_const.
11101 * symfile.c: Include cli/cli-utils.h.
11102 (set_ext_lang_command): Use skip_spaces.
11103 * symtab.c: Include cli/cli-utils.h.
11104 (rbreak_command): Use skip_spaces.
11105 * thread.c (thread_name_command): Use skip_spaces.
11106 * tracepoint.c (validate_actionline): Use skip_spaces.
11107 (encode_actions_1): Likewise.
11108 (trace_find_range_command): Likewise.
11109 (trace_find_outside_command): Likewise.
11110 (trace_dump_actions): Likewise.
11111
ac91cd70
PA
111122013-03-07 Pedro Alves <palves@redhat.com>
11113
11114 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11115 * expprint.c (print_subexp_standard): Likewise.
11116 * utils.c (host_char_to_target): Likewise.
11117 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11118 * varobj.c (value_get_print_value): Change type of local to char*.
11119 Cast it gdb_byte * in call to language printer.
11120
2898e560
PA
111212013-03-07 Pedro Alves <palves@redhat.com>
11122
11123 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11124 gdb_byte *'.
11125 (make_wchar_iterator): Remove cast to char*.
11126 (wchar_iterate): Change type of local.
11127
a09b4448
PA
111282013-03-07 Pedro Alves <palves@redhat.com>
11129
11130 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11131 for 'regcache->register_status'.
11132
20ced3e4
PA
111332013-03-07 Pedro Alves <palves@redhat.com>
11134
c2d6a675 11135 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
11136 int.
11137
fe106009
PA
111382013-03-07 Pedro Alves <palves@redhat.com>
11139
11140 * stap-probe.c (handle_stap_probe): Add cast to char*.
11141
8ac2c12b
PA
111422013-03-07 Pedro Alves <palves@redhat.com>
11143
11144 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11145 RECORD_MSGRCV>: Pass a signed variable to
11146 regcache_raw_read_signed, instead of an unsigned one.
11147
99f0a309
PA
111482013-03-07 Pedro Alves <palves@redhat.com>
11149
11150 * remote-notif.c (notif_debug): Change type to int.
11151 * remote-notif.h (notif_debug): Likewise.
11152
964b8317
PA
111532013-03-07 Pedro Alves <palves@redhat.com>
11154
11155 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11156
f0cc8ad4
PA
111572013-03-07 Pedro Alves <palves@redhat.com>
11158
11159 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11160 * remote.h (hex2bin, bin2hex): ... here.
11161 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11162
77dec115
EZ
111632013-03-07 Eli Zaretskii <eliz@gnu.org>
11164
11165 * utils.c (initialize_utils): Improve doc strings of "set/show
11166 width", "set/show height", and "set/show pagination".
11167
741d92cf
KS
111682013-03-06 Keith Seitz <keiths@redhat.com>
11169
11170 * ax-gdb.c (gen_printf): Make FORMAT const.
11171 * ax-gdb.h (gen_printf): Likewise.
11172 * ax-general.c (ax_string): Make STR const.
11173 * ax.h (ax_string): Likewise.
11174
7b6c814e
DE
111752013-03-06 Doug Evans <dje@google.com>
11176
11177 * elfread.c (elf_symfile_read): Move debugging printf to more
11178 logical location.
11179
634334ab
PA
111802013-03-06 Pedro Alves <palves@redhat.com>
11181
11182 * python/py-utils.c (target_string_to_unicode): Delete function.
11183 * python/python-internal.h (target_string_to_unicode): Delete
11184 declaration.
11185
e482a1a7
PM
111862013-03-06 Pierre Muller <muller@sourceware.org>
11187
11188 * linespec.c (get_current_search_block): ARI fix, use (void)
11189 for empty parameter list.
11190
4eeaa230
DE
111912013-03-05 Doug Evans <dje@google.com>
11192
11193 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11194 of old ada_lookup_symbol_list. In !full_search case, don't
11195 search superblocks.
11196 (ada_lookup_symbol_list): Delete arg full_search, all callers
11197 updated. Call ada_lookup_symbol_list_worker.
11198 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11199 * ada-lang.h (ada_lookup_symbol_list): Update.
11200 * language.h (language_defn): Update comment for
11201 la_iterate_over_symbols.
11202 * linespec.c (iterate_over_file_blocks): New function.
11203 (iterate_over_all_matching_symtabs): Call it.
11204 (lookup_prefix_sym): Ditto.
11205 (get_current_search_block): New function.
11206 (get_search_block): Delete.
11207 (find_label_symbols): Call get_current_search_block.
11208 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11209 * symtab.c (iterate_over_symbols): Don't search superblocks.
11210
b69b1fb1
YQ
112112013-03-05 Yao Qi <yao@codesourcery.com>
11212
11213 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11214 parameter VAR's type from "unsigned int" to "int".
11215 * command.h (var_zuinteger_unlimited): Update its comments.
11216 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11217
3c095f49
CV
112182013-03-05 Corinna Vinschen <vinschen@redhat.de>
11219
11220 * NEWS: Mention new target x86_64-*-cygwin*.
11221
b5b0b0af
CV
112222013-03-05 Corinna Vinschen <vinschen@redhat.de>
11223
11224 * configure.host: Add x86_64-*-cygwin* as host.
11225 * configure.tgt: Add x86_64-*-cygwin* as target.
11226 * config/i386/cygwin64.mh: New file.
11227
f6f99966
JK
112282013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11229
11230 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11231
33f448b1
JK
112322013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11233
11234 * linespec.c (struct linespec_canonical_name): New.
11235 (struct linespec_state): Change canonical_names type to it.
11236 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11237 xrealloc element size. Initialize the different CANONICAL fields.
11238 (canonical_to_fullform): New.
11239 (filter_results): Use it. Add variables canonical, fullform and
11240 cleanup.
11241 (struct decode_line_2_item, decode_line_2_compare_items): New.
11242 (decode_line_2): Remove variables iter and item_names, add variables
11243 items and items_count. Modify the code for these new variables.
11244
feb14725
CV
112452013-03-04 Corinna Vinschen <vinschen@redhat.com>
11246
11247 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11248 calling do_cleanup.
11249
e83b17ba
HZ
112502013-03-04 Luis Machado <lgustavo@codesourcery.com>
11251
11252 * tracepoint.c (build_traceframe_info): Add code for byte order.
11253
a2d13a0d
KB
112542013-03-02 Kevin Buettner <kevinb@redhat.com>
11255
8dddcae8
KB
11256 * v850-tdep.c: (v850e2_register_name): Revise system register
11257 names to match current V850E2M architecture specifications.
11258 Update register number enum comments too.
f5aee5ee 11259
d79e58d8
JW
112602013-03-01 Jiong Wang <jiwang@tilera.com>
11261 Pedro Alves <palves@redhat.com>
11262
11263 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11264 to END_ADDR.
11265 (tilegx_skip_prologue): Limit prologue analysis to section end.
11266
c4be5165
JK
112672013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11268
11269 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11270 use it.
11271
e362b510
PA
112722013-03-01 Pedro Alves <palves@redhat.com>
11273
11274 Use gdb_byte for bytes from the program being debugged.
11275
11276 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11277 Change type of local 'buf' to gdb_byte.
11278 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11279 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11280 * cris-tdep.c (cris_sigcontext_addr)
11281 (cris_sigtramp_frame_unwind_cache): Likewise.
11282 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11283 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11284 Likewise.
11285 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11286 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11287 (hppa32_hpux_search_dummy_call_sequence)
11288 (hppa_hpux_supply_save_state): Likewise.
11289 * hppa-linux-tdep.c (insns_match_pattern)
11290 (hppa_linux_find_global_pointer): Likewise.
11291 * hppa-tdep.c (hppa_in_function_epilogue_p)
11292 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11293 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11294 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11295 (i386fbsd_collect_uthread): Likewise.
11296 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11297 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11298 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11299 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11300 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11301 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11302 (ia64_libunwind_frame_prev_register)
11303 (ia64_libunwind_sigtramp_frame_this_id)
11304 (ia64_find_global_pointer_from_dynamic_section)
11305 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11306 (ia64_unwind_pc): Likewise.
11307 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11308 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11309 (m68hc11_extract_return_value): Likewise.
11310 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11311 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11312 (mep_get_insn, mep_push_dummy_call): Likewise.
11313 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11314 (mips_linux_in_dynsym_stub): Likewise.
11315 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11316 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11317 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11318 to gdb_byte.
11319 * remote-mips.c (mips_set_register): Likewise.
11320 * remote-sim.c (gdbsim_fetch_register): Likewise.
11321 * score-tdep.c (score7_fetch_inst): Change type of parameter
11322 'memblock' and local 'buf' to gdb_byte.
11323 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11324 Change type of local 'buf' to gdb_byte. Adjust.
11325 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11326 to gdb_byte**.
11327 (score7_analyze_prologue): Change type of 'memblock' and
11328 'memblock_ptr' locals to gdb_byte*.
11329 * sh64-tdep.c (sh64_extract_return_value)
11330 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11331 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11332 * solib-pa64.c (pa64_solib_create_inferior_hook)
11333 (pa64_open_symbol_file_object): Remove local 'buf'.
11334 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11335 (som_open_symbol_file_object): Likewise.
11336 * solib-spu.c (spu_current_sos): Likewise.
11337 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11338 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11339 (spu_store_registers): Likewise.
11340 * target.c (debug_print_register): Likewise.
11341 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11342 * xstormy16-tdep.c (xstormy16_store_return_value)
11343 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11344 (xstormy16_find_jmp_table_entry): Likewise.
11345
75cc61ca 113462013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11347
11348 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11349 (tilegx_gdbarch_init): Install it.
11350
ddb08e9c
TT
113512013-02-28 Tom Tromey <tromey@redhat.com>
11352
11353 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11354 PyLong_Check.
11355
62d7fb51
DE
113562013-02-28 Doug Evans <dje@google.com>
11357
11358 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11359 * python/python.c (gdbpy_find_pc_line): Ditto.
11360
c4a9e8b4
TT
113612013-02-28 Tom Tromey <tromey@redhat.com>
11362
11363 * contrib/excheck.py: New file.
11364 * contrib/exsummary.py: New file.
11365 * contrib/gcc-with-excheck: New file.
11366
7f6a5dde
TT
113672013-02-28 Tom Tromey <tromey@redhat.com>
11368
11369 * python/python.c (gdbpy_print_stack): Call begin_line and
11370 fprintf_filtered inside TRY_CATCH.
11371
9e974e55
TT
113722013-02-28 Tom Tromey <tromey@redhat.com>
11373
11374 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11375 inside TRY_CATCH.
11376
dd5fa3e7
TT
113772013-02-28 Tom Tromey <tromey@redhat.com>
11378
11379 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11380 frame_object_to_frame_info inside TRY_CATCH.
11381
86a3263f
TT
113822013-02-28 Tom Tromey <tromey@redhat.com>
11383
11384 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11385 TRY_CATCH.
11386
81b52a3a
TT
113872013-02-28 Tom Tromey <tromey@redhat.com>
11388
11389 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11390
d50a0ce2
CV
113912013-02-27 Corinna Vinschen <vinschen@redhat.com>
11392
11393 * windows-nat.c: Throughout, fix format strings and casts of
11394 printf-like functions to avoid type related warnings on all
11395 platforms.
11396 (handle_output_debug_string): Fetch context information address
11397 from debug string using string_to_core_addr.
11398
e1f58301
JW
113992013-02-27 Jiong Wang <jiwang@tilera.com>
11400
11401 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11402 * regformats/reg-tilegx32.dat: New.
11403
4fcd89fc
JW
114042013-02-27 Jiong Wang <jiwang@tilera.com>
11405
11406 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11407
748d24e6
JW
114082013-02-27 Jiong Wang <jiwang@tilera.com>
11409
11410 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11411
6c8e944d
YQ
114122013-02-27 Yao Qi <yao@codesourcery.com>
11413 Pedro Alves <palves@redhat.com>
11414
11415 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11416 pc/tp/range/outside, look for the next trace frame instead of
11417 always starting from frame 0.
6c8e944d 11418
acd7db30
AG
114192013-02-26 Anthony Green <green@moxielogic.com>
11420
11421 * configure.tgt: Add support for moxie-*-rtems* target.
11422
025e6dce
PA
114232013-02-25 Pedro Alves <palves@redhat.com>
11424
11425 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11426 warning text.
11427
ca9c94ef
MR
114282013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11429
11430 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11431 if $fp is used as the virtual frame pointer.
11432
24c274a1
AM
114332013-02-23 Alan Modra <amodra@gmail.com>
11434
11435 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11436 symbol size.
11437 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11438 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11439 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11440 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11441
bfada189
JK
114422013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11443
11444 Code cleanup.
11445 * elfread.c (build_id_bfd_get): Make the return type const.
11446 (build_id_verify): Make the check parameter const.
11447 (build_id_to_debug_filename): Make the build_id parameter and variable
11448 data const.
11449 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11450
c0355132
AM
114512013-02-21 Alan Modra <amodra@gmail.com>
11452
11453 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11454
9f44fbc0
SCR
114552013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11456
11457 Add a new method 'disassemble' to gdb.Architecture class.
11458 * python/py-arch.c (archpy_disassmble): Implementation of the
11459 new method gdb.Architecture.disassemble.
11460 (arch_object_methods): Add entry for the new method.
11461
b74ea3eb
JW
114622013-02-20 Jiong Wang <jiwang@tilera.com>
11463
11464 * MAINTAINERS (Write After Approval): Add myself to the list.
11465
61a672f1
PA
114662013-02-19 Pedro Alves <palves@redhat.com>
11467
11468 Garbage collect 'struct monitor_ops'::load_routine.
11469
11470 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11471 * monitor.c (monitor_load): No longer call
11472 current_monitor->load_routine.
11473 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11474 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11475 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11476
40e397df
PA
114772013-02-19 Pedro Alves <palves@redhat.com>
11478
11479 PR gdb/15161
11480
11481 Harmonize with generic_load.
11482
11483 * monitor.c: Include "readline/readline.h".
11484 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11485 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11486 long/strtol for the 'load_offset' local. Error out if no argument
11487 is given or if too many arguments are given. Tilde expand the
11488 passed in file name.
11489
f698ca8e
KT
114902013-02-19 Kai Tietz <ktietz@redhat.com>
11491
11492 PR gdb/15161
11493 * symfile.c (load_section_data): Change type of load_offset
11494 to CORE_ADDR.
11495 (generic_load): User strtoulst instead of strtoul for conversion
11496 of load_offset.
11497
3361b059
WL
114982013-02-19 Jiong Wang <jiwang@tilera.com>
11499
11500 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11501 for return address, "lr" register, saved on stack.
11502 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11503 after we invoke tilegx_analyze_prologue.
11504
3e9d5130
WL
115052013-02-19 Jiong Wang <jiwang@tilera.com>
11506
bb1bcd86
WL
11507 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11508
3361b059 115092013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11510
b74ea3eb 11511 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11512
4aaf2503
WL
115132013-02-19 Jiong Wang <jiwang@tilera.com>
11514
b74ea3eb 11515 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11516 (tilegx_write_pc): New function.
11517 (tilegx_cannot_reference_register): Return zero if REGNO
11518 is TILEGX_FAULTNUM_REGNUM.
11519 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11520 (tilegx_register_name): Add handling of "faultnum" register.
11521 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11522 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11523 handling of TILEGX_FAULTNUM_REGNUM.
11524 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11525
bc23a956
WL
115262013-02-19 Jiong Wang <jiwang@tilera.com>
11527
11528 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11529 should be aligned to 64bit.
bc23a956 11530
42f45f1a
KT
115312013-02-19 Kai Tietz <ktietz@redhat.com>
11532
11533 * windows-nat.c (windows_xfer_memory): Fix debug-output
11534 for LLP64.
11535
6ce4c112
LL
115362013-02-19 Lei Liu <lei.liu2@windriver.com>
11537
11538 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11539 Don't check DSP register number if HAVE_DSP is not set.
11540
30e8ee25
AM
115412013-02-19 Alan Modra <amodra@gmail.com>
11542
11543 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11544 throughout file instead.
11545 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11546 Don't xmalloc return value.
11547 (build_id_verify): Similarly. Don't xfree.
11548 (build_id_to_debug_filename): Update.
11549 (find_separate_debug_file_by_buildid): Update, don't xfree.
11550
4c9ad8c2
TT
115512013-02-18 Tom Tromey <tromey@redhat.com>
11552
11553 PR gdb/15102:
11554 * dwarf2read.c (read_subrange_type): Use result of
11555 'check_typedef'.
11556
983dc440
YQ
115572013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11558
11559 * frame.c: Remove one extra white space after #include
11560 directive.
11561
7fb2b84a
JK
115622013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11563
11564 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11565
edceb2a9
JK
115662013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11567
11568 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11569 and dir commands into an if block.
11570
e81b7af8
TT
115712013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11572
11573 * python/py-breakpoint (struct pybp_code): Use int instead of
11574 enum type_code.
11575
f5911ea1
HAQ
115762013-02-15 Pedro Alves <pedro@codesourcery.com>
11577 Hafiz Abid Qadeer <abidh@codesourcery.com>
11578
11579 * NEWS: Mention new field "trace-file".
11580 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11581 (tfile_open): Record the trace file's filename in the trace
11582 status.
11583 (tfile_files_info): Mention the name of the trace file.
11584 Check the "filename" field explicitely.
11585 (trace_status_command): Explicitely check "filename" field.
11586 (trace_find_command): Ditto.
11587 (trace_find_pc_command): Ditto.
11588 (trace_find_tracepoint_command): Ditto.
11589 (trace_find_line_command): Ditto.
11590 (trace_find_range_command): Ditto.
11591 (trace_find_outside_command): Ditto.
11592 * tracepoint.h (struct trace_status) <from_file>: Rename it
11593 to "filename" and make it hold the trace file's filename
11594 instead of a boolean.
11595 * remote.c (remote_get_trace_status): Initialize "filename"
11596 field with NULL instead of 0.
11597
796cb314
YQ
115982013-02-15 Yao Qi <yao@codesourcery.com>
11599
11600 * remote.c: Fix a typo.
11601
42e79b1d
PM
116022013-02-14 Pierre Muller <muller@sourceware.org>
11603
11604 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11605
baea0dae
PA
116062013-02-14 Pedro Alves <palves@redhat.com>
11607
11608 * utils.c (savestring): Don't #undef it. Move function to
11609 common/common-utils.c.
11610 * common/common-utils.c: Include gdb_string.h.
11611 (savestring): Move here from utils.c.
11612 * common/common-utils.h (savestring): Declare.
11613
57c3b6ed
PA
116142013-02-14 Pedro Alves <palves@redhat.com>
11615
11616 * utils.c (savestring): Rename parameter 'size' to 'len'.
11617
d6c44983
YZ
116182013-02-14 Pedro Alves <palves@redhat.com>
11619 Yufeng Zhang <yufeng.zhang@arm.com>
11620
11621 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11622 (aarch64_inferior_data, struct aarch64_inferior_data):
11623 Delete.
11624 (struct aarch64_process_info): New.
11625 (aarch64_process_list): New global.
11626 (aarch64_find_process_pid, aarch64_add_process)
11627 (aarch64_process_info_get): New functions.
11628 (aarch64_inferior_data_get): Delete.
11629 (aarch64_process_info_get): New function.
11630 (aarch64_forget_process): New function.
11631 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11632 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11633 aarch64_get_debug_reg_state.
11634 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11635 instead of linux_nat_iterate_watchpoint_lwps.
11636 (aarch64_linux_new_fork): New function.
11637 (aarch64_linux_child_post_startup_inferior): Use
11638 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11639 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11640 (aarch64_linux_remove_hw_breakpoint)
11641 (aarch64_handle_aligned_watchpoint)
11642 (aarch64_handle_unaligned_watchpoint)
11643 (aarch64_linux_insert_watchpoint)
11644 (aarch64_linux_remove_watchpoint)
11645 (aarch64_linux_stopped_data_address): Adjust to pass the current
11646 process id to aarch64_debug_reg_state.
11647 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11648 linux_nat_new_fork hook, and aarch64_forget_process as
11649 linux_nat_forget_process hook; remove the call to
11650 register_inferior_data_with_cleanup.
11651
4819b3f8
PA
116522013-02-14 Pedro Alves <palves@redhat.com>
11653
11654 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11655 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11656 lval_memory.
11657
1773c82c
HAQ
116582013-02-14 Pedro Alves <pedro@codesourcery.com>
11659 Hafiz Abid Qadeer <abidh@codesourcery.com>
11660
11661 * tracepoint.h (validate_trace_state_variable_name): Declare.
11662 * tracepoint.c (validate_trace_state_variable_name): New.
11663 (trace_variable_command): Parse the trace state variable's name
11664 without using parse_expression. Do several validations.
11665 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11666 trace state variable's name with parse_expression. Validate it.
11667
53778a97
YQ
116682013-02-14 Yao Qi <yao@codesourcery.com>
11669
11670 * infcmd.c (breakpoint_proceeded): Remove it.
11671
7b3ae3a6
YQ
116722013-02-14 Yao Qi <yao@codesourcery.com>
11673
11674 * tracepoint.c (end_actions_pseudocommand): Make it static.
11675 (while_stepping_pseudocommand): Likewise.
11676 * tracepoint.h (end_actions_pseudocommand): Remove the
11677 declaration.
11678 (while_stepping_pseudocommand): Likewise.
11679
64580925
YQ
116802013-02-14 Yao Qi <yao@codesourcery.com>
11681
11682 * cli/cli-decode.c (help_cmd): Remove the declaration of
11683 "cmdlist".
11684 (help_all): Likewise.
11685
26cb8b7c
PA
116862013-02-13 Pedro Alves <palves@redhat.com>
11687
11688 * amd64-linux-nat.c (update_debug_registers_callback):
11689 Update comment.
11690 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11691 iterate_over_lwps.
11692 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11693 i386_debug_reg_state.
11694 (amd64_linux_new_fork): New function.
11695 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11696 linux_nat_new_fork hook, and i386_forget_process as
11697 linux_nat_forget_process hook.
11698 * i386-linux-nat.c (update_debug_registers_callback):
11699 Update comment.
a8256ea1 11700 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11701 iterate_over_lwps.
11702 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11703 i386_debug_reg_state.
11704 (i386_linux_new_fork): New function.
11705 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11706 linux_nat_new_fork hook, and i386_forget_process as
11707 linux_nat_forget_process hook.
11708 * i386-nat.c (i386_init_dregs): Delete.
11709 (i386_inferior_data, struct i386_inferior_data):
11710 Delete.
11711 (struct i386_process_info): New.
11712 (i386_process_list): New global.
11713 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11714 New functions.
11715 (i386_inferior_data_get): Delete.
11716 (i386_process_info_get): New function.
11717 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11718 (i386_forget_process): New function.
11719 (i386_cleanup_dregs): Rewrite.
11720 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11721 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11722 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11723 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11724 to i386_debug_reg_state.
11725 (i386_use_watchpoints): Don't register inferior data.
11726 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11727 adjust comment.
11728 (i386_forget_process): Declare.
11729 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11730 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11731 New static globals.
11732 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11733 (add_initial_lwp): New, factored out from ...
11734 (add_lwp): ... this. Don't check the number of lwps before
11735 calling linux_nat_new_thread.
11736 (linux_nat_iterate_watchpoint_lwps): Delete.
11737 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11738 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11739 forks and vforks.
11740 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11741 initial lwp.
11742 (linux_nat_kill, linux_nat_mourn_inferior): Call
11743 linux_nat_forget_process.
11744 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11745 (linux_nat_forget_process): New functions.
11746 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11747 type.
11748 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11749 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11750 types.
11751 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11752 (linux_nat_forget_process): New declarations.
11753
11754 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11755 (amd64fbsd_mourn_inferior): New function.
11756 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11757 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11758
5befea72
MS
117592013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11760
55015247
YQ
11761 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11762 Adding _().
5befea72 11763
1d3ffd6b
MS
117642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11765
11766 * aarch64-linux-nat.c (debug_reg_change_callback)
11767 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11768 %s and phex().
11769
6eb04473
MS
117702013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11771
11772 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11773 with LONGEST.
11774
a016fc87
HAQ
117752013-02-13 Pedro Alves <palves@redhat.com>
11776 Hafiz Abid Qadeer <abidh@codesourcery.com>
11777
11778 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11779
e234dfaf
TT
117802013-02-12 Tom Tromey <tromey@redhat.com>
11781
11782 PR symtab/11464:
11783 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11784 NAME return.
11785 (classify_inner_name): Remove 'first_name' argument, add
11786 'context'. Remove unused variable.
11787 (yylex): Explicitly maintain the context type. Exit loop earlier
11788 if NAME result is seen.
11789
0b1afbb3
PA
117902013-02-12 Pedro Alves <palves@redhat.com>
11791
11792 * amd64-darwin-tdep.c: Add (C) after Copyright.
11793 * cli/cli-cmds.h: Ditto.
11794 * cli/cli-decode.c: Ditto.
11795 * cli/cli-decode.h: Ditto.
11796 * cli/cli-dump.c: Ditto.
11797 * cli/cli-dump.h: Ditto.
11798 * cli/cli-interp.c: Ditto.
11799 * cli/cli-logging.c: Ditto.
11800 * cli/cli-script.c: Ditto.
11801 * cli/cli-script.h: Ditto.
11802 * cli/cli-setshow.c: Ditto.
11803 * cli/cli-setshow.h: Ditto.
11804 * cli/cli-utils.c: Ditto.
11805 * cli/cli-utils.h: Ditto.
11806 * config/alpha/nm-osf3.h: Ditto.
11807 * config/djgpp/djconfig.sh: Ditto.
11808 * config/i386/nm-fbsd.h: Ditto.
11809 * config/i386/nm-i386gnu.h: Ditto.
11810 * config/nm-linux.h: Ditto.
11811 * config/nm-nto.h: Ditto.
11812 * config/rs6000/nm-rs6000.h: Ditto.
11813 * config/sparc/nm-sol2.h: Ditto.
11814 * darwin-nat-info.c: Ditto.
11815 * dfp.c: Ditto.
11816 * dfp.h: Ditto.
11817 * gdb-demangle.h: Ditto.
11818 * i386-darwin-nat.c: Ditto.
11819 * i386-darwin-tdep.c: Ditto.
11820 * linux-fork.h: Ditto.
11821 * m32c-tdep.c: Ditto.
11822 * microblaze-linux-tdep.c: Ditto.
11823 * microblaze-rom.c: Ditto.
11824 * microblaze-tdep.c: Ditto.
11825 * microblaze-tdep.h: Ditto.
11826 * mips-linux-tdep.h: Ditto.
11827 * ppc-ravenscar-thread.c: Ditto.
11828 * ppc-ravenscar-thread.h: Ditto.
11829 * prologue-value.c: Ditto.
11830 * prologue-value.h: Ditto.
11831 * ravenscar-thread.c: Ditto.
11832 * ravenscar-thread.h: Ditto.
11833 * sparc-ravenscar-thread.c: Ditto.
11834 * sparc-ravenscar-thread.h: Ditto.
11835 * tilegx-linux-tdep.c: Ditto.
11836 * unwind_stop_reasons.def: Ditto.
11837 * windows-nat.h: Ditto.
11838 * xtensa-linux-tdep.c: Ditto.
11839 * xtensa-xtregs.c: Ditto.
11840 * regformats/regdat.sh: Ditto.
11841 * regformats/regdef.h: Ditto.
11842
6c01dd94
PA
118432013-02-12 Pedro Alves <palves@redhat.com>
11844
11845 * break-catch-sig.c: Update copyright years.
11846
b65a2bd9
SCR
118472013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11848
11849 Add support for a destructor for ui_out data and use it to
11850 provide a ui_out destructor.
11851 * ui-out.h: Declare the new ui_out destructor.
11852 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11853 * ui-out.c (default_data_destroy): Add a default data destructor
11854 which does nothing.
11855 (default_ui_out_impl): Set the new data_destroy field to
11856 default_data_destroy
11857 (uo_data_destroy): Local function which invokes the data
11858 destructor if present.
11859 (clear_table): Local function which clears the table data of a
11860 ui_out object.
11861 (ui_out_destroy): Public function which frees a ui_out object.
11862 (ui_out_table_end): Use the new clear_table function.
11863 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11864 NULL.
11865 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11866 to NULL.
11867
c2792f5a
DE
118682013-02-11 Doug Evans <dje@google.com>
11869
11870 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11871 (printf_decfloat): New function. Broken out from ui_printf.
11872 Remove unnecessary code to shift the entire format string down.
11873 (printf_pointer): New function.
11874 (ui_printf): Code to print C strings, wide C strings, decfloats,
11875 and pointers moved to separate functions.
11876
d9e98382
SDJ
118772013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11878
11879 * valops.c (value_assign): Handling bitfield offset in
11880 `lval_internalvar_component' case.
11881
4ff3ce77
DE
118822013-02-08 Doug Evans <dje@google.com>
11883
11884 * common/format.c (parse_format_string): Fix whitespace.
11885
901900c4
MGD
118862013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11887
11888 * stack.c (return_command): Work around uninitialized variable
11889 warning.
11890
b5dbc8d4
YZ
118912013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11892
11893 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11894 number of the registers from 36 to 34.
11895
51d66578
MS
118962013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11897
11898 * NEWS: Mention new AArch64 native and target support.
11899
176b1c95
MS
119002013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11901
11902 * MAINTAINERS (Write After Approval): Add myself.
11903
9d19df75
MS
119042013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11905 Marcus Shawcroft <marcus.shawcroft@arm.com>
11906 Nigel Stephens <nigel.stephens@arm.com>
11907 Yufeng Zhang <yufeng.zhang@arm.com>
11908
11909 * aarch64-linux-nat.c: New file.
11910 * config/aarch64/linux.mh: New file.
11911 * configure.host: Add AArch64.
11912 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11913
7e1e0340
DE
119142013-02-07 Doug Evans <dje@google.com>
11915
11916 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11917 disassemble command.
11918
45e25a36
MS
119192013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11920
11921 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11922 set_gdbarch_fetch_tls_load_module_address.
11923
bbfdfe1c
DM
119242013-02-06 David S. Miller <davem@davemloft.net>
11925
11926 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11927 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11928 * value.c (struct_return_convention): New function.
11929 (using_struct_return): Implement in terms of struct_return_convention.
11930 * value.h (struct_return_convention): Declare.
11931 * stack.c (return_command): Allow successful overriding of the return
11932 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11933
bc9abe4a
TT
119342013-02-06 Tom Tromey <tromey@redhat.com>
11935
11936 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11937 outside of TRY_CATCH.
11938
134a2066
YQ
119392013-02-06 Yao Qi <yao@codesourcery.com>
11940
11941 * mi/mi-interp.c: Include "tracepoint.h".
11942 (mi_tsv_modified): Declare.
11943 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11944 (mi_interpreter_init): Call observer_attach_tsv_modified.
11945 (mi_tsv_modified): New.
11946 (mi_tsv_created, mi_tsv_deleted): Update.
11947 * tracepoint.c (trace_variable_command): Call
11948 observer_notify_tsv_modified if the initial value of tsv is
11949 changed.
11950 (delete_trace_state_variable): Call
11951 observer_notify_tsv_deleted earlier.
11952 (trace_variable_command): Caller update.
11953 (create_tsv_from_upload): Likewise.
11954 * observer.sh: Declare "struct trace_state_variable".
11955
11956 * NEWS: Mention the new MI notification "=tsv-modified".
11957
59be2b6a
DE
119582013-02-05 Doug Evans <dje@google.com>
11959
11960 * completer.c (location_completer): Fix typo in comment.
11961
d30113d4
JK
119622013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11963
11964 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11965 ADDRESS sorted.
11966
14ac654f
MS
119672013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11968
11969 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11970 Refactor if statement to avoid trailing || operator.
11971
543bf33d
AT
119722013-02-05 Andreas Tobler <andreast@fgznet.ch>
11973
11974 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11975
dc18f110
AT
119762013-02-04 Andreas Tobler <andreast@fgznet.ch>
11977
11978 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11979 * configure.host: Add powerpc*-*-freebsd* target.
11980 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11981 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11982 * config/powerpc/fbsd.mh: New file.
11983
b3ac9c77
SDJ
119842013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11985 Denys Vlasenko <dvlasenk@redhat.com>
11986 Pedro Alves <palves@redhat.com>
11987
11988 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11989 (struct elf_internal_linux_prpsinfo): Forward declare.
11990 * gdbarch.h, gdbarch.c: Regenerate.
11991 * linux-tdep.c: Include `cli/cli-utils.h'.
11992 (linux_fill_prpsinfo): New function.
11993 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11994 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11995 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11996 depending on gdbarch pointer bitness.
11997 * ppc-linux-tdep.c: Include elf-bfd.h.
11998 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11999 on 32-bit.
12000
176eb98c
MS
120012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12002 Marcus Shawcroft <marcus.shawcroft@arm.com>
12003 Nigel Stephens <nigel.stephens@arm.com>
12004 Yufeng Zhang <yufeng.zhang@arm.com>
12005
12006 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12007
cf0dbd6f
MS
120082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12009 Marcus Shawcroft <marcus.shawcroft@arm.com>
12010 Nigel Stephens <nigel.stephens@arm.com>
12011 Yufeng Zhang <yufeng.zhang@arm.com>
12012
12013 * aarch64-newlib-tdep.c: New file.
12014 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12015 aarch64*-*-elf.
12016 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12017 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12018 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12019 * osabi.c (gdb_osabi_names): Add "Newlib".
12020
1ae3db19
MS
120212013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12022 Marcus Shawcroft <marcus.shawcroft@arm.com>
12023 Nigel Stephens <nigel.stephens@arm.com>
12024 Yufeng Zhang <yufeng.zhang@arm.com>
12025
12026 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12027 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12028 * aarch64-linux-tdep.c: New file.
12029 * aarch64-linux-tdep.h: New file.
12030 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12031 * configure.tgt: Add aarch64-none-linux-gnu.
12032
07b287a0
MS
120332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12034 Marcus Shawcroft <marcus.shawcroft@arm.com>
12035 Nigel Stephens <nigel.stephens@arm.com>
12036 Yufeng Zhang <yufeng.zhang@arm.com>
12037
12038 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12039 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12040 (ALLDEPFILES): Add aarch64-tdep.c.
12041 * aarch64-tdep.c: New file.
12042 * aarch64-tdep.h: New file.
12043 * configure.tgt: Add AArch64.
12044 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12045 (aarch64-expedite): New definition.
12046 * features/aarch64-core.xml: New file.
12047 * features/aarch64-fpu.xml: New file.
12048 * features/aarch64-without-fpu.c: New file (generated).
12049 * features/aarch64-without-fpu.xml: New file.
12050 * features/aarch64.c: New file (generated).
12051 * features/aarch64.xml: New file.
12052 * regformats/aarch64-without-fpu.dat: New file (generated).
12053 * regformats/aarch64.dat: New file (generated).
12054
0f1b18ab
JK
120552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 * contrib/expect-read1.c: New file.
12058 * contrib/expect-read1.sh: New file.
12059
233d95b5
JK
120602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12061
12062 * dwarf2read.c (file_file_name): New function with code from
12063 file_full_name.
12064 (file_full_name): Move most of the code to file_file_name.
12065 (macro_start_file): Rename variable full_name to file_name and use
12066 file_file_name for it. Add comp_dir parameter to new_macro_table.
12067 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12068 macro_source_file->filename access by macro_source_fullname call.
12069 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12070 caller.
12071 * macrotab.c (struct macro_table): New field comp_dir.
12072 (macro_include): New variables link_fullname and source_fullname.
12073 Replace any macro_source_file->filename access by macro_source_fullname
12074 call.
12075 (macro_lookup_inclusion): Remove the partial filenames checking code.
12076 (check_for_redefinition): New variables source_fullname and
12077 found_key_fullname. Replace any macro_source_file->filename access by
12078 macro_source_fullname call.
12079 (macro_undef): New variables source_fullname and key_fullname. Replace
12080 any macro_source_file->filename access by macro_source_fullname call.
12081 (macro_lookup_definition): New variables retval and source_fullname.
12082 Replace any macro_source_file->filename access by macro_source_fullname
12083 call.
12084 (foreach_macro): New variable key_fullname. Replace any
12085 macro_source_file->filename access by macro_source_fullname call.
12086 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12087 macro_source_file->filename access by macro_source_fullname call.
12088 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12089 (macro_source_fullname): New function.
12090 * macrotab.h (struct macro_source_file): Extent the filename field
12091 comment.
12092 (new_macro_table): New parameter comp_dir, add a comment for it.
12093 (macro_source_fullname): new declaration.
12094
da235a7c
JK
120952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12096
12097 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12098 this_real_name to outer block. Use it also for
12099 compare_filenames_for_search.
12100 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12101 with dw2_get_real_path for file_matcher, considering also
12102 BASENAMES_MAY_DIFFER.
12103 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12104
fbd9ab74
JK
121052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12106
12107 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12108 to the file_matcher parameter. Pass 0 to it.
12109 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12110 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12111 NULL psymtab_to_fullname result.
12112 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12113 an expected filename instead.
12114 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12115 file_matcher parameter. Call also psymtab_to_fullname, after newly
12116 considering BASENAMES_MAY_DIFFER.
12117 * source.c (rewrite_source_path): Remove static.
12118 * source.h (rewrite_source_path): New declaration.
12119 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12120 the expand_symtabs_matching field. Comment it.
12121 * symtab.c (file_matches): New function comment. Add parameter
12122 basenames, implement it.
12123 (search_symbols_file_matches): Add basenames parameter. Update the
12124 file_matches caller.
12125 (search_symbols): Match FILES also against symtab_to_fullname.
12126 Optimize it for BASENAMES_MAY_DIFFER.
12127
56d397a3
JK
121282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12129
12130 * source.c (print_source_lines_base): Print for TUI also "fullname".
12131 * tui/tui-data.c (init_content_element): Change tui_locator_element
12132 field to full_name.
12133 * tui/tui-data.h (struct tui_locator_element): Likewise.
12134 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12135 tui_update_locator_filename calls to tui_update_locator_fullname.
12136 Replace symtab->filename refererence by symtab_to_fullname call.
12137 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12138 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12139 field to full_name. Replace symtab->filename refererence by
12140 symtab_to_fullname call.
12141 (tui_show_symtab_source): Rename parameter to fullname. Change
12142 tui_locator_element field to full_name.
12143 * tui/tui-stack.c: Include source.h.
12144 (tui_set_locator_filename): Rename the declaration to ...
12145 (tui_set_locator_fullname): ... here. Rename its parameter to
12146 fullname, updates its comment.
12147 (tui_set_locator_info): Rename its parameter to fullname.
12148 (tui_set_locator_filename): Rename the definition to ...
12149 (tui_set_locator_fullname): ... here. Rename its parameter to
12150 fullname, updates its comment. Change tui_locator_element field to
12151 full_name.
12152 (tui_set_locator_info): Rename its parameter to fullname.
12153 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12154 (tui_update_locator_filename): Rename to ...
12155 (tui_update_locator_fullname): ... here. Rename callee to
12156 tui_set_locator_fullname.
12157 (tui_show_frame_info): Replace symtab->filename refererence by
12158 symtab_to_fullname call.
12159 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12160 (tui_update_locator_fullname): ... here.
12161 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12162 tui_update_locator_fullname. Replace symtab->filename refererence by
12163 symtab_to_fullname call.
12164 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12165 Rename the callee to tui_update_locator_fullname.
12166 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12167
05cba821
JK
121682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12169
12170 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12171 by symtab_to_filename_for_display calls.
12172 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12173 (clear_command): New variable sal_fullname, initialize it. Replace
12174 compare_filenames_for_search by filename_cmp with sal_fullname.
12175 (say_where, update_static_tracepoint): Replace symtab->filename
12176 refererences by symtab_to_filename_for_display calls.
12177 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12178 Likewise.
12179 * dwarf2read.c: Include source.h.
12180 (fixup_go_packaging): Replace symtab->filename refererences by
12181 symtab_to_filename_for_display calls.
12182 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12183 Replace symtab->filename refererences by symtab_to_filename_for_display
12184 calls.
12185 (create_sals_line_offset, convert_linespec_to_sals): New variable
12186 fullname, initialize it, replace symtab->filename reference by the
12187 variable.
12188 * linux-fork.c: Include source.h.
12189 (info_checkpoints_command): Replace symtab->filename refererences by
12190 symtab_to_filename_for_display calls.
12191 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12192 by symtab_to_filename_for_display calls.
12193 * mdebugread.c: Include source.h.
12194 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12195 symtab_to_filename_for_display calls.
12196 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12197 (mi_cmd_file_list_exec_source_files): Likewise.
12198 * printcmd.c: Include source.h.
12199 (build_address_symbolic): Replace symtab->filename refererences by
12200 symtab_to_filename_for_display calls.
12201 * psymtab.c (partial_map_symtabs_matching_filename)
12202 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12203 with psymtab_to_fullname.
12204 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12205 by symtab_to_filename_for_display calls.
12206 (stpy_get_filename): New variable filename, initialize it, use instead
12207 of symtab->filename refererences.
12208 (salpy_str): Make variable filename const char *. Replace
12209 symtab->filename refererences by symtab_to_filename_for_display calls.
12210 * skip.c: Include source.h and filenames.h.
12211 (skip_file_command): Remove const from the symtab variable. Replace
12212 symtab->filename refererences by symtab_to_fullname call.
12213 (function_name_is_marked_for_skip): New variables searched_for_fullname
12214 and fullname. Use them to search also with symtab's fullname.
12215 * source.c (find_source_lines): Replace symtab->filename refererences
12216 by symtab_to_filename_for_display calls.
12217 (print_source_lines_base): New variable filename, use it instead of
12218 symtab->filename. Replace symtab->filename refererences by
12219 symtab_to_filename_for_display calls.
12220 (line_info, forward_search_command): Replace symtab->filename
12221 refererences by symtab_to_filename_for_display calls.
12222 (reverse_search_command): Replace symtab->filename refererences by
12223 symtab_to_filename_for_display calls. New variable filename for it.
12224 * stack.c (frame_info): Likewise.
12225 * symmisc.c: Include source.h.
12226 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12227 (maintenance_info_symtabs): Replace symtab->filename refererences by
12228 symtab_to_filename_for_display calls.
12229 * symtab.c (iterate_over_some_symtabs): Call
12230 compare_filenames_for_search also with symtab_to_fullname.
12231 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12232 symtab->filename refererences by symtab_to_filename_for_display calls.
12233 (find_line_symtab): Replace symtab->filename refererences by
12234 symtab_to_filename_for_display calls.
12235 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12236 (print_symbol_info): Make the last parameter const char *. New
12237 variable s_filename. Use it in the function.
12238 (symtab_symbol_info): Make the last_filename variable const char *.
12239 Replace symtab->filename refererences by symtab_to_filename_for_display
12240 calls.
12241 (rbreak_command): New variable fullname. Use it. Replace
12242 symtab->filename refererence by symtab_to_filename_for_display call.
12243 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12244 (print_one_static_tracepoint_marker): Replace symtab->filename
12245 refererences by symtab_to_filename_for_display calls.
12246 * tui/tui-source.c (tui_set_source_content): New variables filename and
12247 s_filename. Replace symtab->filename refererences by this variable.
12248 Replace other symtab->filename refererences by
12249 symtab_to_filename_for_display calls.
12250
1b56eb55
JK
122512013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12252 Jan Kratochvil <jan.kratochvil@redhat.com>
12253
12254 Add a new variable that controls a way in which filenames are
12255 displayed.
12256 * NEWS (set filename-display): New entry.
12257 * source.c (filename_display_basename, filename_display_relative)
12258 (filename_display_absolute, filename_display_kind_names)
12259 (filename_display_string, show_filename_display_string)
12260 (symtab_to_filename_for_display): New.
12261 (_initialize_source): Added initialization of 'filename-display'
12262 variable.
12263 * source.h (symtab_to_filename_for_display): Added declaration.
12264 * stack.c (print_frame): Added new variable and calling of a new
12265 function and condition with this variable. Changed third argument of
12266 calling of a function.
12267
aa079c93
JK
122682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12269
12270 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12271 Rename field reference filename to fullname.
12272 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12273 fullname. New comment for it.
12274 * tui/tui-source.c (tui_set_source_content): Rename field reference
12275 filename to fullname. Initialize field by symtab_to_fullname now.
12276 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12277 reference filename to fullname. Use symtab_to_fullname during
12278 comparison.
12279
652a8996
JK
122802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12281
12282 Code cleanup.
12283 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12284 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12285 filename to fullname. Rename variable this_name to this_fullname.
12286 Lowercase FILENAME_CMP call.
12287 (dw2_find_symbol_file): New comment for the returned string.
12288 (dwarf2_gdb_index_functions): Rename the function to
12289 dw2_expand_symtabs_with_fullname.
12290 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12291 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12292 fullname.
12293 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12294 * symfile.h (struct quick_symbol_functions): Rename field
12295 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12296 parameter filename to fullname. Document returned string meaning for
12297 find_symbol_file.
12298 * symtab.c (find_line_symtab): Rename the called function to
12299 expand_symtabs_with_fullname.
12300
af529f8f
JK
123012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12302
12303 Code cleanup.
12304 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12305 call of filename_cmp with compare_filenames_for_search.
12306 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12307 is_abs, unify the call of FILENAME_CMP with
12308 compare_filenames_for_search. New gdb_asserts for real_path and name.
12309 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12310 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12311 * symfile.h (struct quick_symbol_functions): Extend the comment for
12312 map_symtabs_matching_filename.
12313 * symtab.c (compare_filenames_for_search): Remove the function comment
12314 relative path requirement. Handle absolute filenames, with a comment.
12315 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12316 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12317 real_path and name. Unify the call of compare_filenames_for_search
12318 with FILENAME_CMP.
12319 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12320
2f202fde
JK
123212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12322
12323 Code cleanup.
12324 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12325 source_file references by symtab field references. Remove variables
12326 sal and fullname.
12327 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12328 (clear_command, say_where): Replace bp_location field source_file
12329 references by symtab field references.
12330 (bp_location_dtor): Remove the source_file reference.
12331 (update_static_tracepoint): Replace bp_location field source_file
12332 references by symtab field references.
12333 (breakpoint_free_objfile): New function.
12334 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12335 Replace the field source_file by field symtab, extend its comment.
12336 (breakpoint_free_objfile): New declaration.
12337 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12338 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12339 field source_file references by symtab field references.
12340
f5b95b50
JK
123412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12342
12343 Replace xfullpath calls by gdb_realpath calls.
12344 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12345 function comment.
12346 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12347 Remove it from the iterate_over_some_symtabs call.
12348 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12349 Remove it from the dw2_map_expand_apply calls, remove a block handling
12350 it.
12351 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12352 Remove it from the iterate_over_some_symtabs call.
12353 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12354 Remove it from the partial_map_expand_apply calls, remove a block
12355 handling it. Drop gdb_realpath call and cleanups from the real_path
12356 handling.
12357 * source.c (openp): Drop the comment part about xfullpath. Replace
12358 xfullpath calls by gdb_realpath calls.
12359 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12360 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12361 from method map_symtabs_matching_filename and its comment.
12362 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12363 gdb_realpath call.
12364 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12365 remove it also from the function comment, remove a block handling it.
12366 Drop gdb_realpath call and cleanups from the real_path handling.
12367 (iterate_over_symtabs): Drop variable full_path and its use.
12368 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12369 * utils.c (xfullpath): Remove.
12370 * utils.h (xfullpath): Remove.
12371
d78489bf
AT
123722013-02-01 Andreas Tobler <andreast@fgznet.ch>
12373
12374 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12375 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12376 (ALLDEPFILES): Add ppc64-tdep.c.
12377 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12378 ppc64-tdep.o to gdb_target_obs.
12379 * ppc64-tdep.h: New file.
12380 * ppc64-tdep.c: New file.
12381 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12382 ppc-linux-tdep.c to here.
12383 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12384 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12385 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12386 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12387 from ppc-linux-tdep.c to here.
12388 (ppc64_convert_from_func_ptr_addr): Rename from
12389 ppc64_linux_convert_from_func_ptr_addr to
12390 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12391 here.
12392 * rs6000-tdep.c:
12393 (read_insn): Move from ppc-linux-tdep.c to here.
12394 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12395 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12396 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12397 Removed above functions.
12398 (ppc_linux_init_abi): Adjust.
12399
8db60374
AR
124002013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12401
12402 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12403
f2e5f4ce
AR
124042013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12405
12406 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12407
c1f7d745
PA
124082013-02-01 Pedro Alves <palves@redhat.com>
12409
12410 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12411 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12412
8a92335b
JK
124132013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12414
12415 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12416 files with no separate debug info.
12417 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12418 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12419 only for files with no separate debug info.
12420
8eacb197
TT
124212013-01-31 Tom Tromey <tromey@redhat.com>
12422
12423 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12424 change type.
12425 (struct jit_program_space_data): Rename from jit_inferior_data.
12426 Update comments.
12427 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12428 Change return type. Attach data to program space.
12429 (jit_program_space_data_cleanup): Rename from
12430 jit_inferior_data_cleanup; change argument type.
12431 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12432 change type.
12433 (jit_register_code): Update.
12434 (jit_update_inferior_cache): Remove.
12435 (jit_breakpoint_deleted): Get jit data from the location's program
12436 space.
12437 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12438 'ps_data', change type.
12439 (jit_inferior_init, jit_breakpoint_re_set_internal)
12440 (jit_event_handler): Update.
12441 (free_objfile_data): Get data from objfile's program space.
12442 (_initialize_jit): Update.
12443
f25c0135
TT
124442013-01-31 Tom Tromey <tromey@redhat.com>
12445
12446 PR gdb/13987:
12447 * jit.c (struct jit_inferior_data) <cached_code_address,
12448 jit_breakpoint>: New fields.
12449 (jit_breakpoint_re_set_internal): Fix logging. Only create
12450 breakpoint if cached address has changed.
12451 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12452 functions.
12453 (_initialize_jit): Register breakpoint deleted observer.
12454
974a734b
AR
124552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12456
12457 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12458 (save_infcall_suspend_state): Ifdef out unused inf.
12459 (restore_infcall_suspend_state): Ifdef out unused inf.
12460 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12461 (jit_frame_sniffer): Remove unused inf_data.
12462
df54f8eb
AR
124632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12464
12465 * c-exp.y (classify_inner_name): Remove unused type.
12466 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12467 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12468 need_escape.
12469 (c_get_string): Remove unused kind.
12470 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12471
5799c0b9
AR
124722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12473
12474 * charset.c (intermediate_encoding): Remove unused i.
12475 * completer.c (signal_completer): Remove unused i.
12476 * continuations.c (discard_my_continuations_1): Remove unused
12477 continuation_ptr.
12478 * corelow.c (core_close): Remove unuseD name.
12479 (get_core_siginfo): Remove unused pid.
12480 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12481 i, cps.
12482 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12483 (loclist_describe_location): Remove unused first.
12484 * event-top.c (command_line_handler): Remove unused got_eof.
12485 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12486 (resize_section_table): Remove unused old_value.
12487 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12488 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12489 * i386-tdep.c (i386_process_record): Remove unused rex.
12490 * infcmd.c (get_return_value): Remove unused uiout.
12491 * jv-lang.c (type_from_class): Remove unused is_array.
12492 * jv-valprint.c (java_val_print): Remove unused i.
12493 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12494 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12495 * m2-typeprint.c (m2_print_type): Remove unused code.
12496 * macroexp.c (get_character_constant): Remove unused body_start.
12497 (macro_stringify): Remove unused result.
12498 * objc-lang.c (find_methods): Remove unused gdbarch.
12499 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12500 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12501 * stack.c (print_frame_args): Remove unused summary.
12502 * thread.c (thread_apply_command): Remove unused p.
12503 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12504 * valops.c (search_struct_method): Remove unused skip.
12505 * valprint.c (generic_val_print): Remove unused byte_order.
12506 * varobj.c (varobj_update): Remove unused changed.
12507 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12508 (alias_command): Remove unused c.
12509 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12510 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12511 format.
12512 (mi_cmd_data_write_memory): Remove unused word_format.
12513 (mi_cmd_data_write_memory_bytes): Remove unused r.
12514 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12515 p_start, p_end.
12516 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12517 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12518 line_width.
12519
c656bca5
AR
125202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12521
12522 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12523 * symtab.c (iterate_over_symtabs): Remove unused s.
12524 (find_pc_sect_symtab): Remove unused pspAce.
12525 (find_pc_sect_line): Remove unused alt_symtab.
12526 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12527 (completion_list_add_name): Remove unused newsize.
12528
7078baeb
TT
125292013-01-31 Tom Tromey <tromey@redhat.com>
12530
12531 PR c++/14998:
12532 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12533 TYPE_CODE_FUNC.
12534
c2e8b827
AR
125352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12536
12537 * target.c (target_read_string): Remove unused origlen.
12538
0e43993a
AR
125392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12540
12541 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12542 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12543 * ax-general.c (ax_print): Remove unused is_float.
12544 * blockframe.c (block_innermost_frame): Remove unused start, end.
12545 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12546
765a97ab
AR
125472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12548
12549 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12550 (svr4_read_so_list): Remove unused lmo.
12551 * solib-target.c (solib_target_relocate_section_addresses): Remove
12552 unused flags.
12553
a99dad3d
TT
125542013-01-30 Tom Tromey <tromey@redhat.com>
12555
12556 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12557
3bff1ecd
TT
125582013-01-30 Tom Tromey <tromey@redhat.com>
12559
12560 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12561 * utils.c (gnu_debuglink_crc32): Remove.
12562 * utils.h (gnu_debuglink_crc32): Don't declare.
12563
7d455152
TT
125642013-01-30 Tom Tromey <tromey@redhat.com>
12565
12566 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12567 (read_structure_type, read_enumeration_type): Remove cast.
12568
abee88f2
TT
125692013-01-30 Tom Tromey <tromey@redhat.com>
12570
12571 * dwarf2read.c (read_namespace_type): Remove cast.
12572 (read_typedef): Likewise.
12573
8d9878a4
TT
125742013-01-29 Tom Tromey <tromey@redhat.com>
12575
12576 * dwarf2read.c (free_dwo_file): Remove assert.
12577
a543d2a9
TT
125782013-01-29 Tom Tromey <tromey@redhat.com>
12579
12580 * value.c (deprecated_set_value_modifiable): Remove.
12581 * value.h (deprecated_set_value_modifiable): Remove.
12582
bed911e5
DE
125832013-01-28 Doug Evans <dje@google.com>
12584
12585 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12586 to addresses from dwo files.
12587
28c64fc2
SCR
125882013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12589
12590 * valops.c (find_overload_match): Remove unused argument 'lax'.
12591 * value.h: Remove unused argument 'lax' from the declaration of
12592 find_overload_match.
12593 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12594 to find_overload_match.
12595 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12596 argument to find_overload_match.
12597
4d4ec4e5
TT
125982013-01-25 Tom Tromey <tromey@redhat.com>
12599
12600 * dwarf2read.c (processing_has_namespace_info): Remove.
12601 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12602 (process_die, read_func_scope, dwarf2_start_symtab)
12603 (new_symbol_full): Update.
12604
195a3f6c
TT
126052013-01-25 Tom Tromey <tromey@redhat.com>
12606
12607 * cp-namespace.c (cp_set_block_scope): Remove.
12608 * cp-support.h (cp_set_block_scope): Remove.
12609 * dbxread.c: Include block.h.
12610 (cp_set_block_scope): New function.
12611 (process_one_symbol): Update.
12612 * dwarf2read.c (read_func_scope): Use block_set_scope.
12613
8ba0730a
PA
126142013-01-25 Pedro Alves <palves@redhat.com>
12615
12616 * remote.c (add_current_inferior_and_thread): Tweak comment.
12617
12aaed36
TT
126182013-01-25 Tom Tromey <tromey@redhat.com>
12619
12620 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12621 (cp_add_using_directive): Add 'copy_names' argument.
12622 * cp-support.h (cp_add_using_directive): Update.
12623 (struct using_direct) <import_src, import_dest, alias,
12624 declaration>: Now const.
12625 * dwarf2read.c (read_import_statement): Use obconcat.
12626 Don't copy names passed to cp_add_using_directive.
12627
7fc75ca7
TT
126282013-01-25 Tom Tromey <tromey@redhat.com>
12629
12630 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12631
3405876a
PA
126322013-01-25 Pedro Alves <palves@redhat.com>
12633
12634 * remote.c (stop_reply_extract_thread): New.
12635 (add_current_inferior_and_thread): New parameter 'wait_status'.
12636 Handle it.
12637 (remote_start_remote): Pass wait status to
12638 add_current_inferior_and_thread.
12639 (extended_remote_run): Update comment.
12640 (extended_remote_create_inferior_1): Pass wait status to
12641 add_current_inferior_and_thread.
12642
8954db33
AB
126432013-01-25 Andrew Burgess <aburgess@broadcom.com>
12644 Ulrich Weigand <uweigand@de.ibm.com>
12645
12646 * valarith.c (value_vector_widen): New function for replicating a
12647 scalar into a vector.
12648 (value_binop): Use value_vector_widen to widen scalar to vector
12649 rather than casting, this better matches gcc C behaviour.
12650 * valops.c (value_casst): Update logic for casting between vector
12651 types, and for casting from scalar to vector, try to match gcc C
12652 behaviour.
12653 * value.h (value_vector_widen): Declare.
12654 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12655 function, handle special case for casting scalar to vector.
12656 (opencl_relop): Use opencl_value_cast.
12657 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12658 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12659 in order to use opencl_value_cast.
12660
843b20dc
YQ
126612013-01-25 Yao Qi <yao@codesourcery.com>
12662
12663 * event-loop.c: Include "queue.h".
12664 (gdb_event_p): New typedef.
12665 (DECLARE_QUEUE_P): Use.
12666 (DEFINE_QUEUE_P): Use.
12667 (async_queue_event): Remove.
12668 (gdb_event_xfree): New.
12669 (initialize_event_loop): New.
12670 (process_event): Use QUEUE macros.
12671 (event_queue): Remove.
12672 (gdb_wait_for_event): Caller update.
12673 (check_async_event_handlers): Likewise.
12674 (poll_timers): Likewise.
12675 * event-loop.h (initialize_event_loop): Declare.
12676 * event-loop.c (gdb_event_xfree): New.
12677 * top.c (gdb_init): Call initialize_event_loop.
12678
20ad8856
YQ
126792013-01-25 Yao Qi <yao@codesourcery.com>
12680
12681 * event-loop.c (async_queue_event): Remove one parameter
12682 'position'. Remove code handling 'position' == TAIL.
12683 (gdb_wait_for_event): Caller update.
12684 (check_async_event_handlers): Caller update.
12685 (poll_timers): Caller update.
12686 * event-loop.h (enum queue_position): Remove.
12687
3bbbe775
MK
126882013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12689
12690 * MAINTAINERS: Update my email.
12691
a87d9ac4
YQ
126922013-01-25 Yao Qi <yao@codesourcery.com>
12693
12694 * main.c (print_gdb_help): Remove "--epoch" from the help
12695 message.
12696
2077afdd
TD
126972013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12698
12699 * symtab.c (skip_prologue_using_sal): Consider a file
12700 change the same as an increased line number
12701
63da4037
TD
127022013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12703
30e8ee25 12704 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12705
45e6c716
TT
127062013-01-24 Tom Tromey <tromey@redhat.com>
12707
12708 * ada-lang.h (ada_decode_symbol): Make return type const.
12709 * ada-lang.c (ada_decode_symbol): Likewise.
12710
b1ae631a
DE
127112013-01-23 Doug Evans <dje@google.com>
12712
12713 * linespec.c (find_linespec_symbols): Make static.
12714
55a78401
SDJ
127152013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12716
12717 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12718 type on float conversion for complex type.
12719
bea883fd
SCR
127202013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12721
12722 Add a new class gdb.Architecture which exposes GDB's
12723 internal representation of architecture via GDB Python API.
12724 * Makefile.in: Add entries corresponding to the new file
12725 python/py-arch.c.
12726 * NEWS (Python Scripting): Add entries for the new class
12727 gdb.Architecture and the new method gdb.Frame.architecture.
12728 * python/py-arch.c: Implement gdb.Architecture class.
12729 * python/py-frame.c (frapy_arch): Implement the method
12730 gdb.Frame.architecture().
12731 (frame_object_methods): Add 'architecture' to the method table.
12732 * python/python-internal.h: Add declarations of new utility
12733 functions.
12734 * python/python.c (_initialize_python): Initialize
12735 gdb.Architecture class.
12736
796a7ff8
DE
127372013-01-23 Doug Evans <dje@google.com>
12738
12739 Work around binutils/15021.
12740 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12741 type_unit_group out of union s. All uses updated.
12742 (read_index_from_section): Watch for index version 8.
12743 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12744 an imported symtab.
12745 (write_psymtabs_to_index): Increment version number to 8.
12746
0928e93d
PA
127472013-01-22 Pedro Alves <palves@redhat.com>
12748
12749 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12750 user-visible.
12751
9c97429f
PA
127522013-01-22 Pedro Alves <palves@redhat.com>
12753
12754 * annotate.c (annotate_breakpoints_changed): Rename to ...
12755 (annotate_breakpoints_invalid): ... this. Make static.
12756 (breakpoint_changed): Adjust.
12757 (_initialize_annotate): Always install the observers. Install a
12758 "breakpoint_created" observer.
12759 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12760 * breakpoint.c (set_breakpoint_condition)
12761 (breakpoint_set_commands, do_map_commands_command)
12762 (init_raw_breakpoint, clear_command, set_ignore_count)
12763 (enable_breakpoint_disp): No longer call
12764 annotate_breakpoints_changed.
12765
bd00c694
PA
127662013-01-22 Pedro Alves <palves@redhat.com>
12767
12768 * annotate.c: Include "inferior.h".
12769 (frames_invalid_emitted)
12770 (breakpoints_invalid_emitted): New globals.
12771 (async_background_execution_p): New function.
12772 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12773 emitting the annotation if it has already been emitted.
12774 (annotate_display_prompt): New function.
12775 * annotate.h (annotate_display_prompt): New declaration.
12776 * event-top.c: Include annotate.h.
12777 (display_gdb_prompt): Call annotate_display_prompt.
12778
187d10dd
PA
127792013-01-22 Pedro Alves <palves@redhat.com>
12780
12781 * annotate.c (ignore_count_changed): Delete.
12782 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12783 (annotate_ignore_count_change): Delete.
12784 (annotate_stopped): Don't emit a delayed breakpoints-changed
12785 annotation.
12786 * annotate.h (annotate_ignore_count_change): Delete.
12787 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12788 annotate_ignore_count_change.
12789
d84cf7eb
TT
127902013-01-22 Tom Tromey <tromey@redhat.com>
12791
12792 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12793 require_rvalue for a register location.
12794
8f1d5693
MK
127952013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12796
12797 * breakpoint.c (print_one_breakpoint_location): Add MI
12798 field 'thread-groups' when printing a breakpoint.
12799 (output_thread_groups): New function.
12800
aa6199c6
SCR
128012013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12802
12803 * python/lib/gdb/commands/explore.py
12804 (CompoundExplorer.explore_expr): Correct the name of a method
12805 being invoked.
12806 (ExploreTypeCommand.invoke): Add a missing 'return'.
12807
d2afef13
TT
128082013-01-21 Tom Tromey <tromey@redhat.com>
12809
12810 * gdb_obstack.h (obconcat): Move declaration here, from...
12811 * symfile.h (obconcat): ... here.
12812 * gdb_obstack.c: New file.
12813 (obconcat): Move from...
12814 * symfile.c (obconcat): ... here.
12815 * Makefile.in (SFILES): Add gdb_obstack.c.
12816 (COMMON_OBS): Add gdb_obstack.o.
12817
10f0c4bb
TT
128182013-01-21 Tom Tromey <tromey@redhat.com>
12819
12820 * symfile.h (obsavestring): Don't declare.
12821 * symfile.c (obsavestring): Remove.
12822 * ada-exp.y: Use obstack_copy0, not obsavestring.
12823 * ada-lang.c: Use obstack_copy0, not obsavestring.
12824 * coffread.c: Use obstack_copy0, not obsavestring.
12825 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12826 * dbxread.c: Use obstack_copy0, not obsavestring.
12827 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12828 * jit.c: Use obstack_copy0, not obsavestring.
12829 * mdebugread.c: Use obstack_copy0, not obsavestring.
12830 * psymtab.c: Use obstack_copy0, not obsavestring.
12831 * stabsread.c: Use obstack_copy0, not obsavestring.
12832 * xcoffread.c: Use obstack_copy0, not obsavestring.
12833
86f62fd7
TT
128342013-01-21 Tom Tromey <tromey@redhat.com>
12835
12836 * dwarf2read.c (fixup_go_packaging): Save package name
12837 on objfile obstack.
12838 * gdbtypes.c (init_type): Don't copy name.
12839
15d034d0
TT
128402013-01-21 Tom Tromey <tromey@redhat.com>
12841
12842 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12843 const.
12844 (struct attribute) <u.str>: Now const.
12845 (struct fnfieldlist) <name>: Now const.
12846 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12847 (partial_die_parent_scope): Make return type const.
12848 (partial_die_full_name, add_partial_symbol): Update.
12849 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12850 'name' const.
12851 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12852 (read_file_scope, read_func_scope, dwarf2_add_field)
12853 (dwarf2_add_member_fn, read_structure_type)
12854 (process_enumeration_scope, read_array_type, read_module_type)
12855 (read_base_type, read_subrange_type): Update.
12856 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12857 (new_symbol_full, guess_full_die_structure_name): Update.
12858 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12859 (dwarf2_name): Return const type.
12860 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12861 const.
12862
748e18ae
TT
128632013-01-21 Tom Tromey <tromey@redhat.com>
12864
12865 * gdbtypes.c (init_type): Make 'name' const.
12866 * gdbtypes.h (init_type): Update.
12867
46212e0b
TT
128682013-01-21 Tom Tromey <tromey@redhat.com>
12869
12870 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12871 (start_symtab): Make 'name' and 'dirname' const. Use
12872 set_last_source_file.
12873 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12874 (last_source_file): Define. Now static.
12875 (set_last_source_file, get_last_source_file): New functions.
12876 * buildsym.h (last_source_file): Don't declare.
12877 (start_symtab): Update.
12878 (set_last_source_file, get_last_source_file): Declare.
12879 * coffread.c (complete_symtab): Use set_last_source_file.
12880 (coff_end_symtab): Likewise.
12881 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12882 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12883 set_last_source_file.
12884 (process_one_symbol): Use get_last_source_file.
12885 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12886 (psymtab_to_symtab_1): Use get_last_source_file.
12887 * xcoffread.c (process_linenos): Use get_last_source_file.
12888 (complete_symtab): Use set_last_source_file.
12889 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12890 (scan_xcoff_symtab): Use set_last_source_file.
12891
9d2ceabe
TT
128922013-01-21 Tom Tromey <tromey@redhat.com>
12893
12894 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12895 (symbol_set_names): Remove casts. Handle field const-ness.
12896
cfc594ee
TT
128972013-01-21 Tom Tromey <tromey@redhat.com>
12898
12899 * dwarf2read.c (new_symbol_full): Remove cast.
12900 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12901 * symtab.h (symbol_set_demangled_name): Update.
12902
5484b13a
TT
129032013-01-21 Tom Tromey <tromey@redhat.com>
12904
12905 * main.c (captured_main): Call bfd_init.
12906
1605ef26
TT
129072013-01-21 Tom Tromey <tromey@redhat.com>
12908
12909 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12910 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12911 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12912 * NEWS: Update.
12913
3b74cdc3
JK
129142013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12915
12916 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12917
5a352474
JK
129182013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12919
12920 Fix gdb.fortran/common-block.exp crash in PIE mode.
12921 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12922 LOC_COMMON_BLOCK.
12923 * f-valprint.c (info_common_command_for_block): Expect
12924 LOC_COMMON_BLOCK in gdb_assert.
12925 * symtab.h (struct general_symbol_info): Update comment for the
12926 common_block member.
12927 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12928 (enum address_class): New member LOC_COMMON_BLOCK.
12929
c60797fd
DB
129302013-01-18 David Blaikie <dblaikie@gmail.com>
12931
12932 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12933
46f35228
TT
129342013-01-18 Tom Tromey <tromey@redhat.com>
12935
12936 PR c++/14999:
12937 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12938 Call require_rvalue.
12939
257e7a09
YQ
129402013-01-18 Yao Qi <yao@codesourcery.com>
12941
12942 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12943 (dbx_read_symtab): New declaration.
12944 (dbx_psymtab_to_symtab): Delete.
12945 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12946 Rename parameter PST to SELF. Exchanged two parameters.
12947 (start_psymtab): Caller update.
12948 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12949 (dwarf2_read_symtab): New declaration.
12950 (dwarf2_psymtab_to_symtab): Delete.
12951 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12952 Rename parameter PST to SELF. Exchanged two parameters.
12953 (create_partial_symtab): Caller update.
12954 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12955 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12956 Rename parameter PST to SELF. Exchanged two parameters.
12957 (parse_partial_symbols, new_psymtab): Caller update.
12958 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12959 two parameters.
12960 * psymtab.c (psymtab_to_symtab): Caller update.
12961 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12962 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12963 Rename parameter PST to SELF. Exchanged two parameters.
12964 (xcoff_start_psymtab): Caller update.
12965
0de5618e
YQ
129662013-01-18 Yao Qi <yao@codesourcery.com>
12967
12968 * infrun.c (proceed): Rename local variable 'oneproc' to
12969 'force_step'.
12970
5c04624b
DE
129712013-01-17 Doug Evans <dje@google.com>
12972
848e3e78
DE
12973 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12974 (dw2_build_type_unit_groups): Delete. All uses updated.
12975
5c04624b
DE
12976 * symtab.h (struct symbol_search): Add comment.
12977
d84fca2c
JK
129782013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12979
12980 * symtab.c (compare_filenames_for_search): New comment for
12981 HAS_DRIVE_SPEC.
12982
6108433d
TT
129832013-01-17 Tom Tromey <tromey@redhat.com>
12984
12985 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12986
c89ffd86
JK
129872013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12988
12989 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12990 initialize it by existing make_cleanup. Call new do_cleanups.
12991
db2b2972
TT
129922013-01-17 Tom Tromey <tromey@redhat.com>
12993
12994 * cp-abi.c (cp_abi_completer): New function.
12995 (_initialize_cp_abi): Set completer for "set cp-abi".
12996
be7d37a2
TT
129972013-01-17 Tom Tromey <tromey@redhat.com>
12998
12999 * mem-break.c: Remove obsolete comment.
13000 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13001
c9fb1240
SD
130022012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13003
13004 * jit.c (jit_reader_load_command): Interpret the jit reader name
13005 as an absolute path if it begins with a forward slash.
13006
db334a01
SD
130072012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13008
13009 PR gdb/14550
13010
13011 * jit.c (finalize_symtab): Ensure that only the global block has a
13012 NULL superblock.
13013
7d928dac
PA
130142013-01-17 Pedro Alves <palves@redhat.com>
13015
13016 * acinclude.m4: Include ../config/plugins.m4,
13017 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13018 * Makefile.in (aclocal_m4_deps): Update.
13019 * aclocal.m4: Renegerate.
13020
fb8cf7c5
DE
130212013-01-16 Doug Evans <dje@google.com>
13022
13023 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13024
ab04a2af
TT
130252013-01-16 Pedro Alves <palves@redhat.com>
13026 Tom Tromey <tromey@redhat.com>
13027
13028 PR cli/7221:
13029 * NEWS: Add "catch signal".
13030 * breakpoint.c (base_breakpoint_ops): No longer static.
13031 (bpstat_explains_signal): New function.
13032 (init_catchpoint): No longer static.
13033 (base_breakpoint_explains_signal): New function.
13034 (base_breakpoint_ops): Initialize new field.
13035 * breakpoint.h (enum bpstat_signal_value): New.
13036 (struct breakpoint_ops) <explains_signal>: New field.
13037 (bpstat_explains_signal): Remove macro, declare as function.
13038 (base_breakpoint_ops, init_catchpoint): Declare.
13039 * break-catch-sig.c: New file.
13040 * inferior.h (signal_catch_update): Declare.
13041 * infrun.c (signal_catch): New global.
13042 (handle_syscall_event): Update for change to
13043 bpstat_explains_signal.
13044 (handle_inferior_event): Likewise. Always handle random signals
13045 via bpstats.
13046 (signal_cache_update): Check signal_catch.
13047 (signal_catch_update): New function.
13048 (_initialize_infrun): Initialize signal_catch.
13049 * Makefile.in (SFILES): Add break-catch-sig.c.
13050 (COMMON_OBS): Add break-catch-sig.o.
13051
8ac3646f
TT
130522013-01-16 Tom Tromey <tromey@redhat.com>
13053
13054 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13055 (print_one_catch_solib, print_one_catch_syscall)
13056 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13057 "catch-type".
13058
5a18e302
YQ
130592013-01-16 Yao Qi <yao@codesourcery.com>
13060
13061 * printcmd.c (current_display_number): Make it static.
13062
3f01d0d0
YQ
130632013-01-16 Yao Qi <yao@codesourcery.com>
13064
13065 * infcmd.c (step_once): Don't check '!single_inst' as it was
13066 checked before.
13067
1ed59174
JK
130682013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13069
13070 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13071
44478ab3
TT
130722013-01-14 Tom Tromey <tromey@redhat.com>
13073
13074 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13075 set command.
13076 * command.h (add_setshow_string_noescape_cmd): Update.
13077 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13078 (complete_set_gnutarget): New function.
13079 (_initialize_core): Set the "set gnutarget" completer.
13080
06d66ee9
TT
130812013-01-14 Tom Tromey <tromey@redhat.com>
13082
13083 PR symtab/14442:
13084 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13085 (c_type_print_modifier): Likewise.
13086 * dwarf2read.c (read_tag_restrict_type): New function.
13087 (read_type_die_1): Handle DW_TAG_restrict_type.
13088 * gdbtypes.c (make_restrict_type): New function.
13089 (recursive_dump_type): Handle TYPE_RESTRICT.
13090 * gdbtypes.h (enum type_flag_values): Renumber.
13091 (enum type_instance_flag_value): Add
13092 TYPE_INSTANCE_FLAG_RESTRICT.
13093 (TYPE_RESTRICT): New macro.
13094 (make_restrict_type): Declare.
13095
c9bf0622
TT
130962013-01-14 Tom Tromey <tromey@redhat.com>
13097
13098 PR symtab/14931:
13099 * psymtab.c (struct psymtab_state): New.
13100 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13101 functions.
13102 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13103 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13104
44d594fd
PA
131052013-01-14 Richard Sharman <richard_sharman@mitel.com>
13106 Pedro Alves <palves@redhat.com>
13107
13108 PR remote/14786
13109
13110 * remote.c (remote_threads_info): Make a copy of the reply from
13111 qfThreadInfo and use that instead of rs->buf.
13112
442e4d9c
YQ
131132013-01-14 Yao Qi <yao@codesourcery.com>
13114
13115 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13116 (dbx_psymtab_to_symtab): Likewise.
13117 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13118 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13119 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13120
5b12a61c
JK
131212013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13122
13123 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13124 make_cleanup_restore_current_language. Call set_language. Move
13125 OLD_CHAIN and INNER_CHAIN cleanups.
13126 * utils.c (do_restore_current_language)
13127 (make_cleanup_restore_current_language): New functions.
13128 * utils.h (make_cleanup_restore_current_language): New declaration.
13129
f0a4b570
JK
131302013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13131
13132 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13133 non-existing files.
13134
57b3c00c
JK
13135 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13136 non-existing files if FILENAME is already absolute.
13137
daefa854
JK
131382013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13139
13140 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13141 fputs_filtered. Append trailing newline.
13142
ca9c6ee2
YQ
131432013-01-11 Yao Qi <yao@codesourcery.com>
13144 Stan Shebs <stan@codesourcery.com>
13145
13146 * psymtab.c (init_psymbol_list): Clarify the comment.
13147
f28045c2
YQ
131482013-01-11 Yao Qi <yao@codesourcery.com>
13149
13150 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13151 (update_dprintf_command_list): Assert that 'printf_line' is
13152 non-null. Remove condition check.
13153
da5132d3
JK
131542013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13155
13156 Code cleanup.
13157 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13158 type const char *.
13159 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13160 const char *.
13161 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13162
843e694d
AG
131632013-01-09 Anthony Green <green@moxielogic.com>
13164
13165 * cp-abi.c (cplus_print_vtable): Don't return value from void
13166 function.
13167 * ada-lang.c (re_set_catch_assert): Ditto.
13168
da51c347
DE
131692013-01-09 Doug Evans <dje@google.com>
13170
13171 * symfile.h (quick_symbol_functions): Delete member
13172 pre_expand_symtabs_matching. All uses removed.
13173 * dwarf2read.c (dw2_lookup_symbol): Implement.
13174 (dw2_do_expand_symtabs_matching): Delete.
13175 (dw2_pre_expand_symtabs_matching): Delete.
13176 (struct dw2_symtab_iterator): New type.
13177 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13178 (dw2_expand_symtabs_for_function): Rewrite.
13179 (dwarf2_gdb_index_functions): Update.
13180 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13181 (psym_functions): Update.
13182
b2259038
TT
131832013-01-09 Tom Tromey <tromey@redhat.com>
13184
13185 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13186 * configure: Rebuild.
13187 * configure.ac: Add somread.o to the build if BFD has SOM
13188 support.
13189 * somread.c: Include som/aout.h, not syms.h.
13190 (som_symtab_read): Use som_external_symbol_dictionary_record.
13191 Unpack records manually.
13192 (_initialize_somread): Declare.
13193
bdad4180
MF
131942012-01-08 Mike Frysinger <vapier@gentoo.org>
13195
13196 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13197 Cast return_address to 64bits.
13198
03cdf680
HZ
131992013-01-08 Hui Zhu <hui_zhu@mentor.com>
13200
13201 * printcmd.c: Remove define of function output_command.
13202 * tracepoint.c: Remove extern of function output_command.
13203 * valprint.h: (output_command): New extern.
13204
8a808554
TT
132052013-01-07 Tom Tromey <tromey@redhat.com>
13206
13207 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13208 Remove.
13209 (objc_language_defn): Use c_printchar, c_printstr,
13210 c_emit_char.
13211
e93a8774
TT
132122013-01-07 Tom Tromey <tromey@redhat.com>
13213
13214 PR cli/7719:
13215 * NEWS: Update.
13216 * ada-valprint.c (printstr, print_field_values): Remove
13217 "inspect_it" code.
13218 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13219 code.
13220 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13221 code.
13222 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13223 * main.c (captured_main): Remove "epoch" argument.
13224 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13225 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13226 * p-valprint.c (pascal_object_print_value_fields): Remove
13227 "inspect_it" code.
13228 * printcmd.c (print_command_1): Remove 'inspect' argument.
13229 (print_command, call_command): Update.
13230 (inspect_command): Remove.
13231 (_initialize_printcmd): Make "inspect" an alias for "print".
13232 * top.c (epoch_interface): Remove.
13233 * top.h (epoch_interface): Remove.
13234 * valprint.c (user_print_options): Update.
13235 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13236 * valprint.h (struct value_print_options) <inspect_it>: Remove
13237 field.
13238
132392013-01-04 Tom Tromey <tromey@redhat.com>
13240
13241 * valprint.h (read_string): Add 'extern'.
13242
b967eb24
JB
132432013-01-07 Joel Brobecker <brobecker@adacore.com>
13244
13245 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13246 used to decide whether to define darwin_read_dyld_info or not.
13247
78a8b30e
PM
132482013-01-03 Pierre Muller <muller@sourceware.org>
13249
13250 * main.c (relocate_gdb_directory): Avoid calling stat function
13251 if DIR is empty.
13252
50da2f25
YQ
132532013-01-03 Yao Qi <yao@codesourcery.com>
13254
13255 * psymtab.c (fixup_psymbol_section): Update declaration.
13256 (fixup_psymbol_section): Remove code returning value.
13257
e7e8980f
YQ
132582013-01-03 Yao Qi <yao@codesourcery.com>
13259
13260 * symtab.h: Remove some out of date comments.
13261 (enum exception_event_kind): Move it ...
13262 * breakpoint.c: ... here.
13263
569283d4
MF
132642013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13265
9f9d9a96 13266 PR gdb/14405
569283d4
MF
13267 * darwin-nat.c (darwin_read_dyld_info): Only build if
13268 TASK_DYLD_INFO_COUNT is defined.
13269 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13270 TASK_DYLD_INFO_COUNT is defined.
13271
2e36fbea
TT
132722013-01-02 Tom Tromey <tromey@redhat.com>
13273
13274 * symfile.h (struct ecoff_debug_hack): Remove.
13275 * objfiles.c: Don't include mdebugread.h.
13276
4f05add4
TT
132772013-01-02 Tom Tromey <tromey@redhat.com>
13278
13279 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13280 * configure.ac: Check for Mach-O support in BFD. Update
13281 CONFIG_OBS.
13282 * configure: Rebuild.
13283
def63ff0
TT
132842013-01-02 Tom Tromey <tromey@redhat.com>
13285
13286 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13287 * configure.ac: Use GDB_AC_CHECK_BFD.
13288 * configure: Rebuild.
13289
60c5dd93
MK
132902013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13291
13292 * MAINTAINERS: Update my email.
13293
6e58437e
JB
132942013-01-01 Joel Brobecker <brobecker@adacore.com>
13295
13296 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13297
627fe805
JB
132982013-01-01 Joel Brobecker <brobecker@adacore.com>
13299
13300 * rs6000-nat.c (bss_data_overlap): New function.
13301 (vmap_symtab): Use it to adjust the .bss section's offset.
13302
28e7fd62
JB
133032013-01-01 Joel Brobecker <brobecker@adacore.com>
13304
13305 Update year range in copyright notice of all files.
13306
e93a8774 133072013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13308
13309 * top.c (print_gdb_version): Update copyright year.
13310
72b20e9c 13311For older changes see ChangeLog-2012.
c906108c
SS
13312\f
13313Local Variables:
13314mode: change-log
13315left-margin: 8
13316fill-column: 74
13317version-control: never
57da7796 13318coding: utf-8
c906108c 13319End:
This page took 2.311892 seconds and 4 git commands to generate.