Convert the unavailable vector to be bit, not byte, based.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
2
3 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
4 unavailable, use correct bit length.
5 * value.c (struct value): Extend comment on unavailable to
6 indicate that it is bit based.
7 (value_bits_available): New function.
8 (value_bytes_available): Call value_bits_available.
9 (value_entirely_available): Check against the bit length, not byte
10 length.
11 (mark_value_bits_unavailable): New function.
12 (mark_value_bytes_unavailable): Move contents to
13 mark_value_bits_unavailable, call to same.
14 (memcmp_with_bit_offsets): New function.
15 (value_available_contents_bits_eq): New function, takes the
16 functionality from value_available_contents_eq but uses
17 memcmp_with_bit_offsets now, and is bit not byte based.
18 (value_available_contents_eq): Move implementation into
19 value_available_contents_bits_eq, call to same.
20 (value_contents_copy_raw): Work on bits, not bytes.
21 (unpack_value_bits_as_long_1): Check availability in bits, not
22 bytes.
23 * value.h (value_bits_available): Declare new function.
24 (mark_value_bits_unavailable): Declare new function.
25
26 2013-12-16 Pierre Muller <muller@sourceware.org>
27
28 Fix compilation error for cygwin native build.
29 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
30 Call wcstombs.
31
32 2013-12-16 Pedro Alves <palves@redhat.com>
33
34 PR 16329
35 * sol-thread.c (check_for_thread_db): If the target can't run or
36 isn't a core, return without pushing.
37
38 2013-12-15 Joel Brobecker <brobecker@adacore.com>
39
40 Revert the following commit:
41 * solib.c (solib_map_sections): Remove code overwriting
42 SO->SO_NAME with the bfd's filename.
43
44 Make the following changes required after the revert above:
45 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
46 returned bfd to a copy of the synthetic pathname.
47 * solib-darwin.c (darwin_bfd_open): Set the filename of the
48 returned bfd to a copy of PATHNAME.
49
50 2013-12-13 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-lang.c (ada_array_bound_from_type): Move the declaration
53 and assignment of variable "elt_type" inside the else block
54 where it is used. Add two missing check_typedef calls.
55 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
56 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
57
58 2013-12-13 Joel Brobecker <brobecker@adacore.com>
59
60 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
61 between 'struct type *' and 'arr_type'.
62
63 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
64
65 PR python/16113
66 * NEWS (Python Scripting): Add entry for the new feature and the
67 new attribute of gdb.Field objects.
68 * python/py-type.c (gdbpy_is_field): New function
69 (convert_field): Add 'parent_type' attribute to gdb.Field
70 objects.
71 * python/py-value.c (valpy_getitem): Allow subscript value to be
72 a gdb.Field object.
73 (value_has_field): New function
74 (get_field_flag): New function
75 * python/python-internal.h (gdbpy_is_field): Add declaration.
76
77 2013-12-12 Pedro Alves <palves@redhat.com>
78
79 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
80 const, and remove casts.
81
82 2013-12-12 Pedro Alves <palves@redhat.com>
83
84 * cli/cli-cmds.c (source_script_from_stream) Use have_python
85 instead of catching UNSUPPORTED_ERROR.
86 * exceptions.h (UNSUPPORTED_ERROR): Delete.
87 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
88 error if called.
89 * python/python.h (have_python): New static inline function.
90
91 2013-12-11 Doug Evans <dje@google.com>
92
93 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
94 "can't find DWO" warning.
95
96 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
97
98 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
99 to get_probe_argument_count and evaluate_probe_argument.
100 * probe.c (get_probe_argument_count): Adjust declaration to accept
101 frame. Pass frame to probe_ops's get_probe_argument_count.
102 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
103 (probe_safe_evaluate_at_pc): Pass frame to
104 get_probe_argument_count and evaluate_probe_argument.
105 * probe.h (struct probe_ops) <get_probe_argument_count,
106 evaluate_probe_argument>: Adjust declarations to accept frame.
107 (get_probe_argument_count, evaluate_probe_argument): Likewise.
108 * solib-svr4.c (solib_event_probe_action): Get current frame.
109 Pass it to get_probe_argument_count.
110 (svr4_handle_solib_event): Get current frame. Pass it to
111 get_probe_argument_count and evaluate_probe_argument.
112 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
113 accept gdbarch. Do not obtain it from the probe's objfile.
114 (stap_get_probe_argument_count): Adjust declaration to accept
115 frame. Obtain gdbarch from the frame. Call generic
116 can_evaluate_probe_arguments. Pass gdbarch to
117 stap_parse_probe_arguments.
118 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
119 stap_parse_probe_arguments.
120 (stap_evaluate_probe_argument): Adjust declaration to accept
121 frame. Obtain gdbarch from the frame. Pass gdbarch to
122 stap_get_arg.
123 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
124 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
125 get_probe_argument_count and evaluate_probe_argument.
126
127 2013-12-10 Doug Evans <dje@google.com>
128
129 PR 16286
130 * c-lang.c (c_get_string): Ignore the declared size of the object
131 if a specific length is requested.
132
133 2013-12-10 Doug Evans <dje@google.com>
134
135 * interps.h (interp_exec_p): Delete.
136 * interps.c (interp_exec_p): Delete.
137 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
138 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
139
140 2013-12-10 Yao Qi <yao@codesourcery.com>
141
142 * amd64-tdep.c (amd64_analyze_stack_align): Call
143 target_read_code instead of target_read_memory.
144 (amd64_analyze_prologue): Call read_code_unsigned_integer
145 instead of read_memory_unsigned_integer. Call read_code
146 instead of read_memory.
147 (amd64_skip_xmm_prologue): Likewise.
148
149 2013-12-10 Yao Qi <yao@codesourcery.com>
150
151 * corefile.c (read_code): New function.
152 (read_code_integer): New function.
153 (read_code_unsigned_integer): New function.
154 * gdbcore.h (read_code): Declare.
155 (read_code_integer): Declare.
156 (read_code_unsigned_integer): Declare.
157 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
158 of target_read_memory. Call read_code_unsigned_integer instead
159 of read_memory_unsigned_integer.
160 (i386_analyze_struct_return): Likewise.
161 (i386_skip_probe): Likewise.
162 (i386_analyze_stack_align): Likewise.
163 (i386_match_pattern): Likewise.
164 (i386_skip_noop): Likewise.
165 (i386_analyze_frame_setup): Likewise.
166 (i386_analyze_register_saves): Likewise.
167 (i386_skip_prologue): Likewise.
168 (i386_skip_main_prologue): Likewise.
169 (i386_frame_cache_1): Likewise.
170
171 2013-12-10 Yao Qi <yao@codesourcery.com>
172
173 * infrun.c: Include "target-dcache.h".
174 (prepare_for_detach): Call target_dcache_invalidate.
175 (wait_for_inferior): Likewise.
176 (fetch_inferior_event): Likewise.
177 (infrun_thread_stop_requested_callback): Likewise. Set
178 overlay_cache_invalid to 1.
179
180 2013-12-10 Joel Brobecker <brobecker@adacore.com>
181
182 * symtab.c (symbol_find_demangled_name): Add handling of
183 Ada symbols.
184
185 2013-12-10 Joel Brobecker <brobecker@adacore.com>
186
187 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
188 * NEWS: Expand the entry documenting the new -exec-run --start
189 option to mention the corresponding new entry in the output of
190 "-list-features".
191
192 2013-12-10 Joel Brobecker <brobecker@adacore.com>
193
194 * windows-nat.c (handle_load_dll): Add comments.
195 (windows_ensure_ntdll_loaded): New function.
196 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
197 Add FIXME comment.
198
199 2013-12-08 Joel Brobecker <brobecker@adacore.com>
200
201 GDB 7.6.2 released.
202
203 2013-12-08 Yao Qi <yao@codesourcery.com>
204
205 * stack.c (frame_info): Initialize variable caller_pc.
206
207 2013-12-06 Pedro Alves <palves@redhat.com>
208
209 * frame.c (enum cached_copy_status): New enum.
210 (struct frame_info) <prev_pc.p>: Change type to enum
211 cached_copy_status.
212 (fprint_frame): Handle not saved and unavailable prev_pc values.
213 (frame_unwind_pc_if_available): Delete and merge contents into ...
214 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
215 to use enum cached_copy_status.
216 (frame_unwind_caller_pc_if_available): Delete.
217 (create_new_frame): Adjust.
218 * frame.h (frame_unwind_caller_pc_if_available): Delete
219 declaration.
220 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
221 frame_unwind_caller_pc_if_available, and handle
222 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
223 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
224 (val_print_not_saved): New function.
225 * valprint.h (val_print_not_saved): Declare.
226
227 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
228 Pedro Alves <palves@redhat.com>
229
230 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
231 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
232 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
233 * spu-tdep.c (spu_software_single_step): Throw
234 OPTIMIZED_OUT_ERROR.
235 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
236
237 2013-12-06 Tom Tromey <tromey@redhat.com>
238
239 * objfiles.c (free_objfile): Update comment.
240
241 2013-12-06 Tom Tromey <tromey@redhat.com>
242
243 * objfiles.h (objfile_to_front): Remove.
244 * objfiles.c (objfile_to_front): Remove.
245
246 2013-12-06 Tom Tromey <tromey@redhat.com>
247
248 * minsyms.c (get_symbol_leading_char): Remove unnecessary
249 declaration.
250
251 2013-12-06 Tom Tromey <tromey@redhat.com>
252
253 * psympriv.h (struct partial_symtab) <user>: Move earlier.
254
255 2013-12-06 Tom Tromey <tromey@redhat.com>
256
257 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
258 (list_command): Likewise.
259
260 2013-12-06 Tom Tromey <tromey@redhat.com>
261
262 * psymtab.c (allocate_psymtab): Put the filename in the filename
263 bcache.
264
265 2013-12-06 Tom Tromey <tromey@redhat.com>
266
267 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
268 * symtab.h (struct symtab) <dirname>: Now const.
269
270 2013-12-06 Tom Tromey <tromey@redhat.com>
271
272 * symfile.c (allocate_symtab): Remove cast.
273 * symtab.h (struct symtab) <filename>: Now const.
274
275 2013-12-06 Tom Tromey <tromey@redhat.com>
276
277 * break-catch-throw.c (fetch_probe_arguments): Use
278 get_probe_argument_count and evaluate_probe_argument.
279 * elfread.c (elf_get_probe_argument_count)
280 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
281 (elf_compile_to_ax): Remove.
282 (elf_probe_fns): Update.
283 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
284 (evaluate_probe_argument): Call method on probe, not via sym
285 functions.
286 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
287 evaluate_probe_argument.
288 (compile_probe_arg): Use get_probe_argument_count. Call method on
289 probe, not via sym functions.
290 * symfile-debug.c (debug_sym_get_probe_argument_count)
291 (debug_can_evaluate_probe_arguments)
292 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
293 Remove.
294 (debug_sym_probe_fns): Remove.
295 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
296 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
297 sym_compile_to_ax>: Remove fields.
298
299 2013-12-06 Pierre Muller <muller@sourceware.org>
300
301 Fix completion for pascal language.
302 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
303 (exp : field_exp name COMPLETE): New rule.
304 (exp : SIZEOF): Set correct current_type.
305 (last_was_structop): Remove static variable.
306 (yylex): Remove saw_structop local variable.
307 Adapt code to removal of variables above.
308
309 2013-12-06 Joel Brobecker <brobecker@adacore.com>
310
311 * frame.c (get_prev_frame_1): Delete variable "this_id".
312 Replace its use by a call to get_frame_id.
313
314 2013-12-05 Anthony Green <green@moxielogic.com>
315
316 * moxie-tdep.c (moxie_software_single_step): New function.
317 (INST2OFFSET): New helper macro.
318 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
319 (moxie_process_readu): Move this up in the file.
320
321 2013-12-05 Doug Evans <xdje42@gmail.com>
322
323 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
324
325 2013-12-05 Joel Brobecker <brobecker@adacore.com>
326 Tristan Gingold <gingold@adacore.com>
327
328 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
329 Accept version 2. Ignore operations using opcode 6.
330
331 2013-12-05 Joel Brobecker <brobecker@adacore.com>
332
333 * ada-lex.l (find_dot_all): Fix coding style violations.
334
335 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
336
337 * NEWS: Add section for Intel(R) Architecture Instructions
338 Extesions mentioning MPX.
339
340 2013-12-03 Joel Brobecker <brobecker@adacore.com>
341
342 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
343
344 2013-12-03 Joel Brobecker <brobecker@adacore.com>
345
346 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
347 when parse_exp_1 threw an error. Add comment.
348
349 2013-12-03 Joel Brobecker <brobecker@adacore.com>
350
351 * NEWS: Mention "-list-features" in the entry documenting
352 the support for the "--language" option.
353
354 2013-12-03 Tom Tromey <tromey@redhat.com>
355 Jan Kratochvil <jan.kratochvil@redhat.com>
356 Doug Evans <dje@google.com>
357 Samuel Bronson <naesten@gmail.com>
358
359 Bring back gdb-add-index as a contrib script.
360 * contrib/gdb-add-index.sh: New file.
361 * NEWS: Note the addition.
362
363 2013-12-03 Samuel Bronson <naesten@gmail.com>
364
365 * MAINTAINERS (Write After Approval): Add myself to the list.
366
367 2013-12-03 Joel Brobecker <brobecker@adacore.com>
368
369 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
370
371 2013-12-03 Joel Brobecker <brobecker@adacore.com>
372
373 * mi/mi-main.c: Remove trailing spaces throughout.
374
375 2013-12-03 Pedro Alves <palves@redhat.com>
376 Joel Brobecker <brobecker@adacore.com>
377
378 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
379 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
380 of a regular error when the GDB/MI command does not exist.
381 * mi/mi-main.c (mi_cmd_list_features): Add
382 "undefined-command-error-code".
383 (mi_print_exception): Print an "undefined-command"
384 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
385 * NEWS: Add entry documenting the new "code" variable in
386 "^error" result records.
387
388 2013-12-03 Joel Brobecker <brobecker@adacore.com>
389
390 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
391 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
392 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
393 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
394 field to output of "-list-features".
395
396 * NEWS: Add entry for new -info-gdb-mi-command.
397
398 2013-12-02 Doug Evans <dje@google.com>
399 Jan Kratochvil <jan.kratochvil@redhat.com>
400
401 * objfiles.c (allocate_objfile): Save original_name as an absolute
402 path.
403 * objfiles.h (struct objfile): Expand comment on original_name.
404 * source.c (openp): Call gdb_abspath.
405 * utils.c (gdb_abspath): New function.
406 * utils.h (gdb_abspath): Declare.
407
408 2013-12-02 Pedro Alves <palves@redhat.com>
409
410 * dcache.c (dcache_read_line): Use target_read_raw_memory.
411 * target.c (target_read_raw_memory): New function.
412 (target_read_stack, target_write_memory, target_write_raw_memory):
413 Update comment.
414 (target_read_code): Add comment.
415 * target.h (target_read_raw_memory): Declare.
416
417 2013-12-02 Pedro Alves <palves@redhat.com>
418
419 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
420 unconditionally.
421
422 2013-12-02 Pedro Alves <pedro@codesourcery.com>
423 Maciej W. Rozycki <macro@codesourcery.com>
424
425 * remote.c (putpkt_for_catch_errors): Remove function.
426 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
427 gracefully.
428
429 2013-12-02 Pedro Alves <palves@redhat.com>
430
431 PR remote/15974
432 * remote-notif.c (handle_notification): Return early if no
433 notification is found.
434
435 2013-12-02 Joel Brobecker <brobecker@adacore.com>
436
437 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
438 preprocessor check.
439
440 2013-12-02 Joel Brobecker <brobecker@adacore.com>
441
442 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
443
444 2013-12-02 Joel Brobecker <brobecker@adacore.com>
445
446 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
447 * ctf.c (ctf_start): Remove obsolete comment.
448
449 2013-12-02 Joel Brobecker <brobecker@adacore.com>
450
451 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
452
453 2013-11-30 Doug Evans <xdje42@gmail.com>
454
455 * auto-load.h (script_language): New members name, auto_load_enabled.
456 Add missing comments on struct members.
457 (auto_load_objfile_script): Delete.
458 * auto-load.c: #include "cli/cli-cmds.h".
459 (auto_load_gdb_scripts_enabled): New function.
460 (script_language_gdb): Update, add new members.
461 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
462 and call to maybe_add_script moved to caller.
463 (auto_load_objfile_script_1): Auto-load safe-checking and
464 call to maybe_add_script moved here.
465 (auto_load_objfile_script): Make static. Early exit if support for
466 scripting language hasn't been compiled in, or auto-loading has been
467 disabled.
468 (source_section_scripts): Argument "source_name" renamed to
469 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
470 with section_name. Skip loading script if support for scripting
471 language hasn't been compiled in, or auto-loading has been disabled.
472 Call language->source_script_for_objfile instead of calling
473 source_python_script_for_objfile directly.
474 (load_auto_scripts_for_objfile): Update.
475 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
476 (gdbpy_load_auto_script_for_objfile): Delete.
477 (auto_load_python_scripts_enabled): New function.
478 (script_language_python): Update, add new members.
479 (gdbpy_script_language_defn): New function.
480 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
481 (gdbpy_script_language_defn): Declare.
482
483 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
484 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
485 (source_section_scripts): Moved here from py-auto-load.c.
486 (auto_load_section_scripts): Ditto.
487 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
488 auto-load.c, renamed AUTO_SECTION_NAME.
489 (source_section_scripts, auto_load_section_scripts): Moved to
490 auto-load.c.
491
492 2013-11-30 Yao Qi <yao@codesourcery.com>
493
494 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
495
496 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
497
498 * gdbarch.sh: Remove include of "gdb_string.h", replace by
499 <string.h>.
500
501 2013-11-29 Doug Evans <xdje42@gmail.com>
502
503 * python/py-auto-load.c (source_section_scripts): Move comment to
504 more relevant location.
505
506 Whitespace cleanup.
507 * python/py-breakpoint.c: Remove trailing whitespace.
508 * python/py-cmd.c: Ditto.
509 * python/py-evts.c: Ditto.
510 * python/py-finishbreakpoint.c: Ditto.
511 * python/py-frame.c: Ditto.
512 * python/py-function.c: Ditto.
513 * python/py-inferior.c: Ditto.
514 * python/py-infthread.c: Ditto.
515 * python/py-param.c: Ditto.
516 * python/py-prettyprint.c: Ditto.
517 * python/py-symbol.c: Ditto.
518 * python/py-type.c: Ditto.
519 * python/py-utils.c: Ditto.
520 * python/py-value.c: Ditto.
521 * python/python-internal.h: Ditto.
522 * python/python.c: Ditto.
523
524 2013-11-29 Pedro Alves <palves@redhat.com>
525
526 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
527
528 2013-11-29 Pedro Alves <palves@redhat.com>
529
530 * breakpoint.c (build_target_condition_list): Release previous
531 conditions.
532 (build_target_command_list): Release previous commands.
533 (bp_location_dtor): Release target conditions and commands.
534 * remote.c (remote_add_target_side_condition): Don't release
535 conditions.
536 (remote_add_target_side_commands): Don't release commands.
537
538 2013-11-29 Yao Qi <yao@codesourcery.com>
539 Pedro Alves <palves@redhat.com>
540
541 * dcache.c (dcache_read_line): Use current_target.beneath
542 instead of &current_target.
543 * target.c (memory_xfer_partial_1): Factor code out to ...
544 (raw_memory_xfer_partial): ... it. New function.
545 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
546 is TARGET_OBJECT_RAW_MEMORY.
547
548 2013-11-28 Doug Evans <xdje42@gmail.com>
549
550 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
551 breakpoint_object. All uses updated.
552 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
553 breakpoint_object. All uses updated.
554 * python.c (*): All uses of breakpoint_object updated.
555 * python.h (*): All uses of breakpoint_object updated.
556 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
557 * python/py-finishbreakpoint.c (*): Ditto.
558
559 2013-11-28 Doug Evans <xdje42@gmail.com>
560
561 * configure.ac: Add comments delineating libpython and libmcheck.
562 * configure: Regenerate.
563
564 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
565 Pedro Alves <palves@redhat.com>
566
567 * valprint.c (value_check_printable): If the value is entirely
568 unavailable, print a single "<unavailable>" instead of printing
569 all subfields.
570
571 2013-11-28 Pedro Alves <palves@redhat.com>
572
573 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
574 Add "set debug frame" output.
575 (frame_stop_reason_symbol_string): New function.
576
577 2013-11-28 Pedro Alves <palves@redhat.com>
578
579 * frame-unwind.c (default_frame_unwind_stop_reason): Return
580 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
581 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
582
583 2013-11-28 Pedro Alves <palves@redhat.com>
584
585 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
586 set the unwind stop reason to UNWIND_OUTERMOST, not
587 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
588
589 2013-11-28 Pedro Alves <palves@redhat.com>
590
591 * frame.c (frame_unwind_register): Say the register was "not
592 saved" instead of "optimized out".
593
594 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
595
596 PR 16152
597 * configure: Rebuild.
598 * configure.ac: Tighten cygwin detection check.
599
600 2013-11-27 Pedro Alves <palves@redhat.com>
601
602 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
603 register in the previous frame's arch.
604
605 2013-11-27 Pedro Alves <palves@redhat.com>
606
607 * frame-unwind.c (frame_unwind_got_optimized): Return
608 an lval_register value instead of a not_lval value.
609
610 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
611
612 * frame.c: Include "valprint.h".
613 (frame_unwind_register_value): Use value_optimized_out.
614 * value.c (value_fetch_lazy): Likewise.
615
616 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
617
618 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
619
620 2013-11-26 Tom Tromey <tromey@redhat.com>
621
622 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
623 2013-11-22.
624
625 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
626
627 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
628 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
629 (HAS_MPX): New macro.
630 (HAS_AVX): New macro.
631 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
632
633 2013-11-25 Keith Seitz <keiths@redhat.com>
634
635 PR c++/14819
636 * c-exp.y (classify_inner_name): If no matching symbol was
637 found, try looking up the token as a base class.
638 Likewise if a constructor was found.
639 * cp-namespace.c (find_type_baseclass_by_name): New function.
640 * cp-support.h (find_type_baseclass_by_name): Declare.
641 * valops.c (value_struct_elt_for_reference): If we get
642 a non-static field, try to get a value based on the
643 current instance, if any.
644
645 2013-11-24 Yao Qi <yao@codesourcery.com>
646
647 * disasm.c (dis_asm_read_memory): Call target_read_code
648 instead of target_read_memory.
649
650 2013-11-24 Yao Qi <yao@codesourcery.com>
651
652 * NEWS: Add note on new "set code-cache" option.
653 * target-dcache.c (code_cache_enabled_1): New variable.
654 (code_cache_enabled): New variable.
655 (show_code_cache, set_code_cache): New function.
656 (code_cache_enabled_p): New function.
657 (_initialize_target_dcache): Register command.
658 * target-dcache.h (code_cache_enabled_p): Declare.
659 * target.c (memory_xfer_partial_1):Handle
660 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
661 (target_read_code): New function.
662 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
663 New.
664 (target_read_code): Declare.
665
666 2013-11-24 Yao Qi <yao@codesourcery.com>
667
668 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
669 (stack_cache_enabled_1): ... this. New variable.
670 (stack_cache_enabled_p): Rename to ...
671 (stack_cache_enabled): ... this. New variable.
672 (set_stack_cache_enabled_p): Rename to ...
673 (set_stack_cache): ... this. Update caller.
674 (show_stack_cache_enabled_p): Rename to ...
675 (show_stack_cache): ... this. Update caller.
676 (stack_cache_enabled): Rename to ...
677 (stack_cache_enabled_p): ... this. Update caller.
678 (_initialize_target_dcache): Replace "data cache" with
679 "target memory cache".
680 * target-dcache.h (stack_cache_enabled): Remove declaration.
681 (stack_cache_enabled_p): Add declaration.
682
683 2013-11-23 Doug Evans <xdje42@gmail.com>
684
685 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
686 superfluous.
687
688 2013-11-23 Doug Evans <xdje42@gmail.com>
689
690 * python/py-frame.c (frapy_block): Fix error message text.
691
692 2013-11-23 Doug Evans <xdje42@gmail.com>
693
694 * cli/cli-script.c (multi_line_command_p): New function.
695 (recurse_read_control_structure, read_command_lines_1): Call it.
696 (execute_control_command): Consistently have a blank line between
697 each case.
698
699 2013-11-22 Sterling Augustine <saugustine@google.com>
700
701 PR gdb/16196:
702 * valprint.c (read_string): Set new variable fetchlen based on
703 fetchlimit and size. Use it in call to partial_memory_read.
704 Update comment.
705
706 2013-11-22 Tom Tromey <tromey@redhat.com>
707
708 PR backtrace/16155:
709 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
710 the return address column is unspecified.
711
712 2013-11-22 Tom Tromey <tromey@redhat.com>
713 Pedro Alves <palves@redhat.com>
714
715 PR backtrace/16155
716 * value.c (value_fetch_lazy): Internal error if
717 get_frame_register_value returns the same register.
718
719 2013-11-22 Pedro Alves <palves@redhat.com>
720 Tom Tromey <tromey@redhat.com>
721
722 * frame.c (frame_stash_add): Now returns whether a frame with the
723 same ID was already known.
724 (compute_frame_id): New function, factored out from get_frame_id.
725 (get_frame_id): No longer lazilly compute the frame id here.
726 (get_prev_frame_if_no_cycle): New function. Detects wider stack
727 cycles.
728 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
729 and checking for stack cycles here.
730
731 2013-11-22 Pedro Alves <palves@redhat.com>
732
733 PR 16155
734 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
735 this frame and the new previous frame, not between this frame and
736 the next frame.
737
738 2013-11-22 Pedro Alves <palves@redhat.com>
739
740 PR 16155
741 * dwarf2-frame.c (struct dwarf2_frame_cache)
742 <checked_tailcall_bottom, entry_cfa_sp_offset,
743 entry_cfa_sp_offset_p>: New fields.
744 (dwarf2_frame_cache): Adjust to use the new cache fields instead
745 of locals. Don't call dwarf2_tailcall_sniffer_first here.
746 (dwarf2_frame_prev_register): Call it here, but only once.
747
748 2013-11-21 Doug Evans <xdje42@gmail.com>
749
750 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
751 (type_equality_entry): Move here from python/py-type.c.
752 (type_equality_entry_d): Ditto.
753 (compare_maybe_null_strings, check_types_equal): Ditto.
754 (check_types_worklist, types_deeply_equal): Ditto.
755 * gdbtypes.h (types_deeply_equal): Declare.
756 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
757 (typy_richcompare): Update.
758
759 2013-11-20 Joel Brobecker <brobecker@adacore.com>
760
761 * python/py-value.c (is_intlike): Delete.
762 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
763 by use of is_integral_type.
764 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
765 by use of is_integral_type and check for TYPE_CODE_PTR.
766
767 2013-11-20 Tom Tromey <tromey@redhat.com>
768
769 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
770 strerror module.
771 * gnulib/aclocal.m4: Update.
772 * gnulib/config.in: Update.
773 * gnulib/configure: Update.
774 * gnulib/import/Makefile.am: Update.
775 * gnulib/import/Makefile.in: Update.
776 * gnulib/import/errno.in.h: Remove.
777 * gnulib/import/intprops.h: Remove.
778 * gnulib/import/m4/errno_h.m4: Remove.
779 * gnulib/import/m4/gnulib-cache.m4: Update.
780 * gnulib/import/m4/gnulib-comp.m4: Update.
781 * gnulib/import/m4/strerror.m4: Remove.
782 * gnulib/import/m4/sys_socket_h.m4: Remove.
783 * gnulib/import/strerror-override.c: Remove.
784 * gnulib/import/strerror-override.h: Remove.
785 * gnulib/import/strerror.c: Remove.
786 * gnulib/update-gnulib.sh: Update.
787
788 2013-11-20 Yao Qi <yao@codesourcery.com>
789
790 * target-dcache.c (target_dcache_get_or_init): Call
791 set_address_space_data if 'dcache' is NULL.
792
793 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
794
795 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
796
797 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
798
799 * python/lib/gdb/command/bound_register.py: New file.
800 * data-directory/Makefile.in: Copy bond_register.py to the right path
801 to be initialized at gdb startup.
802
803 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
804
805 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
806 Add MPX registers.
807 (amd64_linux_read_description): Add initialization for MPX and
808 AVX independently.
809 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
810 (amd64_linux_gregset_reg_offset): Add MPX registers.
811 (amd64_linux_core_read_description): Add initialization for MPX
812 registers.
813 (_initialize_amd64_linux_tdep): Initialize MPX targets.
814 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
815 register on the list.
816 (tdesc_amd64_mpx_linux) Add new target for MPX.
817 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
818 (amd64_mpx_names): MPX register names.
819 (amd64_init_abi): Add MPX register while initializing the ABI.
820 (_initialize_amd64_tdep): Initialize MPX targets.
821 * amd64-tdep.h (amd64_regnum): Add MPX registers.
822 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
823
824 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
825
826 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
827 registers on the range of registers to be read from
828 xsave buffer.
829 (i386_linux_read_description): Add case for MPX.
830 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
831 (i386_linux_gregset_reg_offset): Add MPX registers.
832 (i386_linux_core_read_description): Initialize also MPX.
833 (_initialize_i386_linux_tdep): Add mpx initialization.
834 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
835 mpx_register_names.
836 (i386_regnum): Add MPX registers.
837 (I386_MPX_NUM_REGS): New macro.
838 (i386_bnd_regnum_p): New function.
839 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
840 number of registers to be the number of BNDSTATUS.
841 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
842 * i386-tdep.c: Include features/i386/i386-mpx.c.
843 (i386_mpx_names): Add MPX register names array.
844 (i386_bnd_names): Add bnd pseudo register names array.
845 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
846 registers.
847 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
848 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
849 registers.
850 (i386_bnd_type): New function.
851 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
852 register types.
853 (i386_pseudo_register_read_into_value): Add bnd case.
854 (i386_pseudo_register_write): Add bnd pseudo registers.
855 (i386_register_reggroup_p): Add MPX register to the group all.
856 (i386_validate_tdesc_p): Add MPX to the target description
857 validation.
858 (i386_pseudo_register_name): Add bnd pseudo registers.
859 (i386_gdbarch_init): Add MPX for architecture initialization.
860 (_initia_initialize_i386_tdep): Add mpx initialization.
861 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
862 XSAVE buffer.
863 (XSAVE_MPX_ADDR): New macro.
864 (i387_supply_xsave): Add MPX case.
865 (i387_collect_xsave): Add MPX case.
866 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
867 (I387_BNDCFGU_REGNUM): New macro.
868 (I387_NUM_MPX_REGS): New macro.
869 (I387_NUM_BND_REGS): New macro.
870 (I387_NUM_MPX_CTRL_REGS): New macro.
871 (I387_MPXEND_REGNUM): New macro.
872 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
873 (I386_XSTATE_BNDCFG): Likewise.
874 (I386_XSTATE_MPX_MASK): Likewise.
875 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
876 (I386_XSTATE_BNDREGS_SIZE): New macro.
877 (I386_XSTATE_BNDCFG_SIZE): Likewise.
878 (I386_XSTATE_SIZE): Adapt for MPX.
879 (I386_XSTATE_MAX_SIZE): Likewise.
880
881 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
882
883 * features/i386/Makefile: Adapts for using MPX registers.
884 * features/i386/32bit-mpx.xml: New file.
885 * features/i386/64bit-mpx.xml: Likewise.
886 * features/i386/amd64-mpx-linux.c: Likewise.
887 * features/i386/amd64-mpx-linux.xml: Likewise.
888 * features/i386/amd64-mpx.c: Likewise.
889 * features/i386/amd64-mpx.xml: Likewise.
890 * features/i386/i386-mpx-linux.c: Likewise.
891 * features/i386/i386-mpx-linux.xml: Likewise.
892 * features/i386/i386-mpx.c: Likewise.
893 * features/i386/i386-mpx.xml: Likewise.
894 * regformats/i386/amd64-mpx-linux.dat: New file.
895 * regformats/i386/amd64-mpx.dat: Likewise.
896 * regformats/i386/i386-mpx-linux.dat: Likewise.
897 * regformats/i386/i386-mpx.dat: Likewise.
898
899 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
900
901 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
902 Modified logic of creating a bitfield to be in sync with
903 tdesc_gdb_type.
904
905 2013-11-20 Will Newton <will.newton@linaro.org>
906
907 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
908 error message.
909
910 2013-11-20 Yao Qi <yao@codesourcery.com>
911
912 * progspace.h (struct address_space_data): Declare.
913 * target-dcache.c: Include "progspace.h".
914 (target_dache): Remove.
915 (target_dcache_aspace_key): New.
916 (target_dcache_cleanup): New function.
917 (target_dcache_init_p): Get data through
918 target_dcache_aspace_key.
919 (target_dcache_invalidate): Likewise.
920 (target_dcache_get): Likewise.
921 (target_dcache_get_or_init): Likewise.
922 (_initialize_target_dcache): Initialize
923 target_dcache_aspace_key.
924
925 2013-11-20 Yao Qi <yao@codesourcery.com>
926
927 * progspace.c (struct address_space): Update comments.
928 <REGISTRY_FIELDS>: New fields.
929 DEFINE_REGISTRY for address_space.
930 (new_address_space): Call address_space_alloc_data.
931 (free_address_space): Call address_space_free_data.
932 * progspace.h: Use DECLARE_REGISTRY.
933
934 2013-11-20 Yao Qi <yao@codesourcery.com>
935
936 * Makefile.in (SFILES):Add target-dcache.c.
937 (HFILES_NO_SRCDIR): Add target-dcache.h.
938 (COMMON_OBS): Add target-dcache.o.
939 * dcache.c: Remove inclusion to "target.h". Include
940 "target-dcache.h".
941 * memattr.c: Include "target-dcache.h".
942 * top.c: Likewise.
943 * tracepoint.c: Likewise.
944 * target.c: (stack_cache_enabled_p_1): Move to
945 target-dcache.c.
946 (stack_cache_enabled_p): Likewise.
947 (set_stack_cache_enabled_p): Likewise.
948 (show_stack_cache_enabled_p): Likewise.
949 (target_dcache, target_dcache_init_p): Likewise.
950 (target_dcache_invalidate): Likewise.
951 (target_dcache_get, target_dcache_get_or_init): Likewise.
952 (memory_xfer_partial_1): Call function stack_cache_enabled.
953 (initialize_target): Move code to target-dcache.c.
954 * target.h (target_dcache_invalidate): Move to
955 target-dcache.h.
956 (target_dcache_get): Likewise.
957 * target-dcache.c: New.
958 * target-dcache.h: New.
959
960 2013-11-20 Yao Qi <yao@codesourcery.com>
961
962 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
963 it is initialized.
964
965 2013-11-20 Yao Qi <yao@codesourcery.com>
966
967 * dcache.c (last_cache): Remove.
968 (dcache_free, dcache_init): Update.
969 (dcache_update):
970 (dcache_print_line): Add parameter 'dcache'. Replace
971 'target_dcache' with 'dcache'.
972 (dcache_info): Move code to dcache_info_1. Call
973 'dcache_info_1'.
974 (dcache_info_1): New function.
975 (set_dcache_size): Call target_dcache_invalidate.
976 (set_dcache_line_size): Call target_dcache_invalidate.
977 * target.c (target_dcache_init_p): New function.
978 (target_dcache_invalidate): Check target_dcache_init_p first.
979 (target_dcache_get, target_dcache_get_or_init): New function.
980 (memory_xfer_partial_1): Adjust.
981 (initialize_target): Don't initialize 'target_dcache'.
982 * target.h (struct dcache_struct): Declare.
983 (target_dcache_get): Declare.
984
985 2013-11-19 Yao Qi <yao@codesourcery.com>
986
987 * varobj.c (varobj_get_type): Fix typo.
988
989 2013-11-19 Joel Brobecker <brobecker@adacore.com>
990
991 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
992
993 2013-11-19 Joel Brobecker <brobecker@adacore.com>
994
995 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
996 "stat.h".
997
998 2013-11-18 Tom Tromey <tromey@redhat.com>
999
1000 * common/gdb_stat.h: Remove.
1001 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1002 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1003 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1004 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1005 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1006 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1007 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1008 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1009 * exec.c: Use sys/stat.h, not gdb_stat.h.
1010 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1011 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1012 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1013 * jit.c: Use sys/stat.h, not gdb_stat.h.
1014 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1015 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1016 * main.c: Use sys/stat.h, not gdb_stat.h.
1017 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1018 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1019 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1020 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1021 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1022 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1023 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1024 * remote.c: Use sys/stat.h, not gdb_stat.h.
1025 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1026 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1027 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1028 * source.c: Use sys/stat.h, not gdb_stat.h.
1029 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1030 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1031 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1032 * top.c: Use sys/stat.h, not gdb_stat.h.
1033 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1034
1035 2013-11-18 Tom Tromey <tromey@redhat.com>
1036
1037 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1038 sys_stat.
1039 * gnulib/aclocal.m4: Update.
1040 * gnulib/config.in: Update.
1041 * gnulib/configure: Update.
1042 * gnulib/import/Makefile.am: Update.
1043 * gnulib/import/Makefile.in: Update.
1044 * gnulib/import/m4/gnulib-cache.m4: Update.
1045 * gnulib/import/m4/gnulib-comp.m4: Update.
1046 * gnulib/import/m4/sys_stat_h.m4: New.
1047 * gnulib/import/m4/time_h.m4: New.
1048 * gnulib/import/sys_stat.in.h: New.
1049 * gnulib/import/time.in.h: New.
1050
1051 2013-11-18 Tom Tromey <tromey@redhat.com>
1052
1053 * configure: Rebuild.
1054 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1055
1056 2013-11-18 Tom Tromey <tromey@redhat.com>
1057
1058 * configure: Rebuild.
1059 * configure.ac: Don't check for unistd.h.
1060
1061 2013-11-18 Tom Tromey <tromey@redhat.com>
1062
1063 * configure: Rebuild.
1064 * configure.ac: Don't check for stdlib.h
1065 * defs.h: Include stdlib.h unconditionally.
1066
1067 2013-11-18 Tom Tromey <tromey@redhat.com>
1068
1069 * config.in: Rebuild.
1070 * configure: Rebuild.
1071 * configure.ac: Don't check for stddef.h.
1072 * defs.h: Unconditionally include stddef.h. Remove duplicate
1073 inclusion.
1074
1075 2013-11-18 Tom Tromey <tromey@redhat.com>
1076
1077 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1078 * common/gdb_dirent.h: Remove.
1079 * common/filestuff.c: Use dirent.h.
1080 * common/linux-osdata.c: Use dirent.h.
1081 (NAMELEN): Define.
1082 * config.in: Rebuild.
1083 * configure: Rebuild.
1084 * configure.ac: Don't use AC_HEADER_DIRENT.
1085 * linux-fork.c: Use dirent.h
1086 * linux-nat.c: Use dirent.h.
1087 * nto-procfs.c: Use dirent.h.
1088 * procfs.c: Use dirent.h.
1089
1090 2013-11-18 Tom Tromey <tromey@redhat.com>
1091
1092 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1093 * gnulib/aclocal.m4: Update.
1094 * gnulib/config.in: Update.
1095 * gnulib/configure: Update.
1096 * gnulib/import/Makefile.am: Update.
1097 * gnulib/import/Makefile.in: Update.
1098 * gnulib/import/dirent.in.h: New.
1099 * gnulib/import/m4/dirent_h.m4: New.
1100 * gnulib/import/m4/gnulib-cache.m4: Update.
1101 * gnulib/import/m4/gnulib-comp.m4: Update.
1102
1103 2013-11-18 Tom Tromey <tromey@redhat.com>
1104
1105 * configure: Rebuild.
1106 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1107 strings.h.
1108
1109 2013-11-18 Tom Tromey <tromey@redhat.com>
1110
1111 * common/gdb_string.h: Remove.
1112 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1113 * ada-exp.y: Use string.h, not gdb_string.h.
1114 * ada-lang.c: Use string.h, not gdb_string.h.
1115 * ada-lex.l: Use string.h, not gdb_string.h.
1116 * ada-typeprint.c: Use string.h, not gdb_string.h.
1117 * ada-valprint.c: Use string.h, not gdb_string.h.
1118 * aix-thread.c: Use string.h, not gdb_string.h.
1119 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1120 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1121 * alpha-nat.c: Use string.h, not gdb_string.h.
1122 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1123 * alpha-tdep.c: Use string.h, not gdb_string.h.
1124 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1125 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1126 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1127 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1128 * amd64-nat.c: Use string.h, not gdb_string.h.
1129 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1130 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1131 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1132 * arch-utils.c: Use string.h, not gdb_string.h.
1133 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1134 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1135 * arm-tdep.c: Use string.h, not gdb_string.h.
1136 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1137 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1138 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1139 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1140 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1141 * avr-tdep.c: Use string.h, not gdb_string.h.
1142 * ax-gdb.c: Use string.h, not gdb_string.h.
1143 * ax-general.c: Use string.h, not gdb_string.h.
1144 * bcache.c: Use string.h, not gdb_string.h.
1145 * bfin-tdep.c: Use string.h, not gdb_string.h.
1146 * breakpoint.c: Use string.h, not gdb_string.h.
1147 * build-id.c: Use string.h, not gdb_string.h.
1148 * buildsym.c: Use string.h, not gdb_string.h.
1149 * c-exp.y: Use string.h, not gdb_string.h.
1150 * c-lang.c: Use string.h, not gdb_string.h.
1151 * c-typeprint.c: Use string.h, not gdb_string.h.
1152 * c-valprint.c: Use string.h, not gdb_string.h.
1153 * charset.c: Use string.h, not gdb_string.h.
1154 * cli-out.c: Use string.h, not gdb_string.h.
1155 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1156 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1157 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1158 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1159 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1160 * cli/cli-script.c: Use string.h, not gdb_string.h.
1161 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1162 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1163 * coffread.c: Use string.h, not gdb_string.h.
1164 * common/common-utils.c: Use string.h, not gdb_string.h.
1165 * common/filestuff.c: Use string.h, not gdb_string.h.
1166 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1167 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1168 * common/signals.c: Use string.h, not gdb_string.h.
1169 * common/vec.h: Use string.h, not gdb_string.h.
1170 * core-regset.c: Use string.h, not gdb_string.h.
1171 * corefile.c: Use string.h, not gdb_string.h.
1172 * corelow.c: Use string.h, not gdb_string.h.
1173 * cp-abi.c: Use string.h, not gdb_string.h.
1174 * cp-support.c: Use string.h, not gdb_string.h.
1175 * cp-valprint.c: Use string.h, not gdb_string.h.
1176 * cris-tdep.c: Use string.h, not gdb_string.h.
1177 * d-lang.c: Use string.h, not gdb_string.h.
1178 * dbxread.c: Use string.h, not gdb_string.h.
1179 * dcache.c: Use string.h, not gdb_string.h.
1180 * demangle.c: Use string.h, not gdb_string.h.
1181 * dicos-tdep.c: Use string.h, not gdb_string.h.
1182 * disasm.c: Use string.h, not gdb_string.h.
1183 * doublest.c: Use string.h, not gdb_string.h.
1184 * dsrec.c: Use string.h, not gdb_string.h.
1185 * dummy-frame.c: Use string.h, not gdb_string.h.
1186 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1187 * dwarf2loc.c: Use string.h, not gdb_string.h.
1188 * dwarf2read.c: Use string.h, not gdb_string.h.
1189 * elfread.c: Use string.h, not gdb_string.h.
1190 * environ.c: Use string.h, not gdb_string.h.
1191 * eval.c: Use string.h, not gdb_string.h.
1192 * event-loop.c: Use string.h, not gdb_string.h.
1193 * exceptions.c: Use string.h, not gdb_string.h.
1194 * exec.c: Use string.h, not gdb_string.h.
1195 * expprint.c: Use string.h, not gdb_string.h.
1196 * f-exp.y: Use string.h, not gdb_string.h.
1197 * f-lang.c: Use string.h, not gdb_string.h.
1198 * f-typeprint.c: Use string.h, not gdb_string.h.
1199 * f-valprint.c: Use string.h, not gdb_string.h.
1200 * fbsd-nat.c: Use string.h, not gdb_string.h.
1201 * findcmd.c: Use string.h, not gdb_string.h.
1202 * findvar.c: Use string.h, not gdb_string.h.
1203 * fork-child.c: Use string.h, not gdb_string.h.
1204 * frame.c: Use string.h, not gdb_string.h.
1205 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1206 * frv-tdep.c: Use string.h, not gdb_string.h.
1207 * gdb.c: Use string.h, not gdb_string.h.
1208 * gdb_bfd.c: Use string.h, not gdb_string.h.
1209 * gdbarch.c: Use string.h, not gdb_string.h.
1210 * gdbtypes.c: Use string.h, not gdb_string.h.
1211 * gnu-nat.c: Use string.h, not gdb_string.h.
1212 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1213 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1214 * go-exp.y: Use string.h, not gdb_string.h.
1215 * go-lang.c: Use string.h, not gdb_string.h.
1216 * go32-nat.c: Use string.h, not gdb_string.h.
1217 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1218 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1219 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1220 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1221 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1222 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1223 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1224 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1225 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1226 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1227 * i386-tdep.c: Use string.h, not gdb_string.h.
1228 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1229 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1230 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1231 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1232 * i387-tdep.c: Use string.h, not gdb_string.h.
1233 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1234 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1235 * inf-child.c: Use string.h, not gdb_string.h.
1236 * inf-ptrace.c: Use string.h, not gdb_string.h.
1237 * inf-ttrace.c: Use string.h, not gdb_string.h.
1238 * infcall.c: Use string.h, not gdb_string.h.
1239 * infcmd.c: Use string.h, not gdb_string.h.
1240 * inflow.c: Use string.h, not gdb_string.h.
1241 * infrun.c: Use string.h, not gdb_string.h.
1242 * interps.c: Use string.h, not gdb_string.h.
1243 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1244 * irix5-nat.c: Use string.h, not gdb_string.h.
1245 * jv-exp.y: Use string.h, not gdb_string.h.
1246 * jv-lang.c: Use string.h, not gdb_string.h.
1247 * jv-typeprint.c: Use string.h, not gdb_string.h.
1248 * jv-valprint.c: Use string.h, not gdb_string.h.
1249 * language.c: Use string.h, not gdb_string.h.
1250 * linux-fork.c: Use string.h, not gdb_string.h.
1251 * linux-nat.c: Use string.h, not gdb_string.h.
1252 * lm32-tdep.c: Use string.h, not gdb_string.h.
1253 * m2-exp.y: Use string.h, not gdb_string.h.
1254 * m2-typeprint.c: Use string.h, not gdb_string.h.
1255 * m32c-tdep.c: Use string.h, not gdb_string.h.
1256 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1257 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1258 * m32r-rom.c: Use string.h, not gdb_string.h.
1259 * m32r-tdep.c: Use string.h, not gdb_string.h.
1260 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1261 * m68k-tdep.c: Use string.h, not gdb_string.h.
1262 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1263 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1264 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1265 * m88k-tdep.c: Use string.h, not gdb_string.h.
1266 * macrocmd.c: Use string.h, not gdb_string.h.
1267 * main.c: Use string.h, not gdb_string.h.
1268 * mdebugread.c: Use string.h, not gdb_string.h.
1269 * mem-break.c: Use string.h, not gdb_string.h.
1270 * memattr.c: Use string.h, not gdb_string.h.
1271 * memory-map.c: Use string.h, not gdb_string.h.
1272 * mep-tdep.c: Use string.h, not gdb_string.h.
1273 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1274 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1275 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1276 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1277 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1278 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1279 * mi/mi-console.c: Use string.h, not gdb_string.h.
1280 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1281 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1282 * mi/mi-main.c: Use string.h, not gdb_string.h.
1283 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1284 * microblaze-rom.c: Use string.h, not gdb_string.h.
1285 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1286 * mingw-hdep.c: Use string.h, not gdb_string.h.
1287 * minidebug.c: Use string.h, not gdb_string.h.
1288 * minsyms.c: Use string.h, not gdb_string.h.
1289 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1290 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1291 * mips-tdep.c: Use string.h, not gdb_string.h.
1292 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1293 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1294 * mipsread.c: Use string.h, not gdb_string.h.
1295 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1296 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1297 * monitor.c: Use string.h, not gdb_string.h.
1298 * moxie-tdep.c: Use string.h, not gdb_string.h.
1299 * mt-tdep.c: Use string.h, not gdb_string.h.
1300 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1301 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1302 * nto-procfs.c: Use string.h, not gdb_string.h.
1303 * nto-tdep.c: Use string.h, not gdb_string.h.
1304 * objc-lang.c: Use string.h, not gdb_string.h.
1305 * objfiles.c: Use string.h, not gdb_string.h.
1306 * opencl-lang.c: Use string.h, not gdb_string.h.
1307 * osabi.c: Use string.h, not gdb_string.h.
1308 * osdata.c: Use string.h, not gdb_string.h.
1309 * p-exp.y: Use string.h, not gdb_string.h.
1310 * p-lang.c: Use string.h, not gdb_string.h.
1311 * p-typeprint.c: Use string.h, not gdb_string.h.
1312 * parse.c: Use string.h, not gdb_string.h.
1313 * posix-hdep.c: Use string.h, not gdb_string.h.
1314 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1315 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1316 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1317 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1318 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1319 * printcmd.c: Use string.h, not gdb_string.h.
1320 * procfs.c: Use string.h, not gdb_string.h.
1321 * prologue-value.c: Use string.h, not gdb_string.h.
1322 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1323 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1324 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1325 * regcache.c: Use string.h, not gdb_string.h.
1326 * registry.c: Use string.h, not gdb_string.h.
1327 * remote-fileio.c: Use string.h, not gdb_string.h.
1328 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1329 * remote-mips.c: Use string.h, not gdb_string.h.
1330 * remote-sim.c: Use string.h, not gdb_string.h.
1331 * remote.c: Use string.h, not gdb_string.h.
1332 * reverse.c: Use string.h, not gdb_string.h.
1333 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1334 * ser-base.c: Use string.h, not gdb_string.h.
1335 * ser-go32.c: Use string.h, not gdb_string.h.
1336 * ser-mingw.c: Use string.h, not gdb_string.h.
1337 * ser-pipe.c: Use string.h, not gdb_string.h.
1338 * ser-tcp.c: Use string.h, not gdb_string.h.
1339 * ser-unix.c: Use string.h, not gdb_string.h.
1340 * serial.c: Use string.h, not gdb_string.h.
1341 * sh-tdep.c: Use string.h, not gdb_string.h.
1342 * sh64-tdep.c: Use string.h, not gdb_string.h.
1343 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1344 * skip.c: Use string.h, not gdb_string.h.
1345 * sol-thread.c: Use string.h, not gdb_string.h.
1346 * solib-dsbt.c: Use string.h, not gdb_string.h.
1347 * solib-frv.c: Use string.h, not gdb_string.h.
1348 * solib-osf.c: Use string.h, not gdb_string.h.
1349 * solib-spu.c: Use string.h, not gdb_string.h.
1350 * solib-target.c: Use string.h, not gdb_string.h.
1351 * solib.c: Use string.h, not gdb_string.h.
1352 * somread.c: Use string.h, not gdb_string.h.
1353 * source.c: Use string.h, not gdb_string.h.
1354 * sparc-nat.c: Use string.h, not gdb_string.h.
1355 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1356 * sparc-tdep.c: Use string.h, not gdb_string.h.
1357 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1358 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1359 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1360 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1361 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1362 * spu-multiarch.c: Use string.h, not gdb_string.h.
1363 * spu-tdep.c: Use string.h, not gdb_string.h.
1364 * stabsread.c: Use string.h, not gdb_string.h.
1365 * stack.c: Use string.h, not gdb_string.h.
1366 * std-regs.c: Use string.h, not gdb_string.h.
1367 * symfile.c: Use string.h, not gdb_string.h.
1368 * symmisc.c: Use string.h, not gdb_string.h.
1369 * symtab.c: Use string.h, not gdb_string.h.
1370 * target.c: Use string.h, not gdb_string.h.
1371 * thread.c: Use string.h, not gdb_string.h.
1372 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1373 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1374 * top.c: Use string.h, not gdb_string.h.
1375 * tracepoint.c: Use string.h, not gdb_string.h.
1376 * tui/tui-command.c: Use string.h, not gdb_string.h.
1377 * tui/tui-data.c: Use string.h, not gdb_string.h.
1378 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1379 * tui/tui-file.c: Use string.h, not gdb_string.h.
1380 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1381 * tui/tui-out.c: Use string.h, not gdb_string.h.
1382 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1383 * tui/tui-source.c: Use string.h, not gdb_string.h.
1384 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1385 * tui/tui-win.c: Use string.h, not gdb_string.h.
1386 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1387 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1388 * typeprint.c: Use string.h, not gdb_string.h.
1389 * ui-file.c: Use string.h, not gdb_string.h.
1390 * ui-out.c: Use string.h, not gdb_string.h.
1391 * user-regs.c: Use string.h, not gdb_string.h.
1392 * utils.c: Use string.h, not gdb_string.h.
1393 * v850-tdep.c: Use string.h, not gdb_string.h.
1394 * valarith.c: Use string.h, not gdb_string.h.
1395 * valops.c: Use string.h, not gdb_string.h.
1396 * valprint.c: Use string.h, not gdb_string.h.
1397 * value.c: Use string.h, not gdb_string.h.
1398 * varobj.c: Use string.h, not gdb_string.h.
1399 * vax-tdep.c: Use string.h, not gdb_string.h.
1400 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1401 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1402 * windows-nat.c: Use string.h, not gdb_string.h.
1403 * xcoffread.c: Use string.h, not gdb_string.h.
1404 * xml-support.c: Use string.h, not gdb_string.h.
1405 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1406 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1407
1408 2013-11-18 Tom Tromey <tromey@redhat.com>
1409
1410 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1411 and strstr.
1412 * gnulib/aclocal.m4: Update.
1413 * gnulib/config.in: Update.
1414 * gnulib/configure: Update.
1415 * gnulib/import/Makefile.am: Update.
1416 * gnulib/import/Makefile.in: Update.
1417 * gnulib/import/errno.in.h: New.
1418 * gnulib/import/intprops.h: New.
1419 * gnulib/import/m4/errno_h.m4: New.
1420 * gnulib/import/m4/gnulib-cache.m4: Update.
1421 * gnulib/import/m4/gnulib-comp.m4: Update.
1422 * gnulib/import/m4/strerror.m4: New.
1423 * gnulib/import/m4/strstr.m4: New.
1424 * gnulib/import/m4/sys_socket_h.m4: New.
1425 * gnulib/import/strerror-override.c: New.
1426 * gnulib/import/strerror-override.h: New.
1427 * gnulib/import/strerror.c: New.
1428 * gnulib/import/strstr.c: New.
1429
1430 2013-11-18 Tom Tromey <tromey@redhat.com>
1431
1432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1433 multiple lines.
1434
1435 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1436
1437 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1438 * sparc-tdep.h: And its prototype.
1439
1440 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1441 function.
1442 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1443
1444 2013-11-18 Pedro Alves <palves@redhat.com>
1445
1446 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1447 use unpack_pointer.
1448
1449 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1450
1451 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1452 to -list-features output.
1453
1454 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1455
1456 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1457 <read_addr_from_reg>: Renames "read_reg".
1458 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1459 Adjust comment.
1460 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1461 Use read_addr_from_reg in place of read_reg.
1462 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1463 in place of read_reg.
1464 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1465 dwarf_expr_read_reg.
1466 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1467 with dwarf_expr_read_addr_from_reg.
1468 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1469 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1470 needs_frame_read_addr_from_reg.
1471
1472 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1473
1474 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1475
1476 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477
1478 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1479 NULL.
1480
1481 2013-11-15 Tom Tromey <tromey@redhat.com>
1482
1483 PR c++/16117:
1484 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1485 (classify_name): Likewise. Prefer a field of "this" over a
1486 filename.
1487 (classify_inner_name, yylex): Update.
1488
1489 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1490
1491 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1492 Extend the documentation a bit.
1493 <get_reg_value>: New field.
1494 * dwarf2loc.c (dwarf_expr_get_reg_value)
1495 (needs_frame_get_reg_value): New functions.
1496 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1497 callback.
1498 * dwarf2-frame.c (get_reg_value): New function.
1499 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1500 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1501 Use new callback to compute result_val.
1502
1503 2013-11-15 Alan Modra <amodra@gmail.com>
1504
1505 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1506 (ppc64_desc_entry_point): ..this. Update comments here and at
1507 call points.
1508 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1509 ppc64_standard_linkage3): Update comments.
1510 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1511 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1512 patterns.
1513 (ppc64_standard_linkage4_target): New function.
1514 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1515 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1516 nop match. Fix comment wrap.
1517
1518 2013-11-14 Pedro Alves <palves@redhat.com>
1519
1520 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1521 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1522
1523 2013-11-14 Pedro Alves <palves@redhat.com>
1524
1525 * infrun.c (struct execution_control_state)
1526 <stepped_after_stopped_by_watchpoint>: New field.
1527 (get_inferior_stop_soon): New function.
1528 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1529 moved to struct execution_control_state -- adjust. Use
1530 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1531 new function.
1532 (handle_signal_stop): New function, factored out from
1533 handle_inferior_event.
1534
1535 2013-11-14 Pedro Alves <palves@redhat.com>
1536
1537 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1538 return a boolean.
1539 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1540 boolean.
1541 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1542 Adjust to return a boolean.
1543 * breakpoint.h (enum bpstat_signal_value): Delete.
1544 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1545 (bpstat_explains_signal): Likewise.
1546 * infrun.c (handle_inferior_event) <random signal checks>:
1547 bpstat_explains_signal now returns a boolean - adjust. No longer
1548 consider hiding signals.
1549
1550 2013-11-14 Pedro Alves <palves@redhat.com>
1551
1552 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1553 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1554 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1555 BPSTAT_SIGNAL_HIDE.
1556 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1557 instead of BPSTAT_SIGNAL_HIDE.
1558 * infrun.c (handle_inferior_event): Rework random signal checks.
1559
1560 2013-11-14 Pedro Alves <palves@redhat.com>
1561
1562 * infrun.c (struct execution_control_state): Remove
1563 'random_signal' field.
1564 (handle_syscall_event): Use bpstat_causes_stop instead of
1565 bpstat_explains_signal. Don't set ecs->random_signal.
1566 (handle_inferior_event): New 'random_signal' local.
1567 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1568 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1569 bpstat_explains_signal. Don't set ecs->random_signal.
1570 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1571 ecs->random_signal.
1572
1573 2013-11-14 Pedro Alves <palves@redhat.com>
1574
1575 * infrun.c (handle_inferior_event): Move comment from the
1576 function's body to the function's description, adjusted.
1577
1578 2013-11-14 Pedro Alves <palves@redhat.com>
1579
1580 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1581 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1582 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1583 case.
1584
1585 2013-11-14 Tom Tromey <tromey@redhat.com>
1586
1587 * python/py-linetable.c (ltpy_has_line)
1588 (ltpy_get_all_source_lines): Fix loop termination condition.
1589
1590 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1591
1592 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1593 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1594 PARSE->LANGUAGE during command execution, if set.
1595 * mi/mi-parse.c: Add "language.h" #include.
1596 (mi_parse): Add parsing of "--language" command option.
1597
1598 * NEWS: Add entry mentioning the new "--language" command option.
1599
1600 2013-11-14 Pedro Alves <palves@redhat.com>
1601 Joel Brobecker <brobecker@adacore.com>
1602
1603 * cli/cli-utils.h (extract_arg_const): Add declaration.
1604 * cli/cli-utils.c (extract_arg_const): New function.
1605 (extract_arg): Reimplement using extract_arg_const.
1606
1607 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1608
1609 * language.h: Add "symtab.h" #include.
1610
1611 2013-11-13 Doug Evans <xdje42@gmail.com>
1612
1613 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1614 specific breakpoints, don't evaluate breakpoint condition if
1615 different thread.
1616
1617 2013-11-13 Keith Seitz <keiths@redhat.com>
1618
1619 PR c++/7935
1620 PR c++/10541
1621 * cp-support.c (insepct_type): Add support for substituting
1622 namespace aliases, too.
1623 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1624 for DW_TAG_imported_declaration.
1625 (add_partial_symbol): Likewise.
1626 (process_die): Handle namespace aliases with
1627 read_namespace_alias.
1628 (die_needs_namespace): Add DW_TAG_imported_declaration.
1629 (read_namespace_alias): New function.
1630 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1631 (new_symbol_full): Handle DW_TAG_imported_declaration.
1632
1633 2013-11-13 Keith Seitz <keiths@redhat.com>
1634
1635 * p-exp.y (uptok): Make first parameter const.
1636 (yylex): Make `tokstart' and `tokptr' const.
1637 Don't copy the lexer input to a temporary buffer.
1638 Make `p' const.
1639 Remove const workaround for parse_escape.
1640 Create a temporary buffer for a convenience variable instead
1641 of doing in-place modification of the input.
1642 If a match is found with a different case from the input,
1643 do not change the input at all.
1644 Use `tmp' to construct the resultant stoken instead of
1645 `tokstart'.
1646
1647 2013-11-13 Doug Evans <xdje42@gmail.com>
1648
1649 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1650
1651 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1652
1653 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1654 entry with "ada-exceptions".
1655
1656 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1657
1658 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1659 after re-initialization of OBJFILE's obstack.
1660
1661 2013-11-12 Doug Evans <xdje42@gmail.com>
1662
1663 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1664 bs->stop != 0 on entry. Update function comment. Simplify early
1665 exit for frame mismatch. Reindent rest of function.
1666
1667 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1668
1669 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1670 NULL.
1671
1672 2013-11-12 Doug Evans <dje@google.com>
1673
1674 Work around gold/15646.
1675 * dwarf2read.c (read_index_from_section): Update comment.
1676 (struct dw2_symtab_iterator): New member global_seen.
1677 (dw2_symtab_iter_init): Initialize it.
1678 (dw2_symtab_iter_next): Skip duplicate global symbols.
1679 (dw2_expand_symtabs_matching): Ditto.
1680
1681 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1682
1683 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1684 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1685 command.
1686 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1687 (mi_cmd_info_ada_exceptions): New function.
1688 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1689
1690 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1691
1692 * ada-lang.h: #include "vec.h".
1693 (struct ada_exc_info): New.
1694 (ada_exc_info): New typedef.
1695 (DEF_VEC_O(ada_exc_info)): New vector.
1696 (ada_exceptions_list): Add declaration.
1697 * ada-lang.c (ada_is_exception_sym)
1698 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1699 (sort_remove_dups_ada_exceptions_list)
1700 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1701 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1702 (ada_exceptions_list_1, ada_exceptions_list)
1703 (info_exceptions_command): New function.
1704 (_initialize_ada_language): Add "info exception" command.
1705
1706 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1707
1708 PR python/15629
1709 * NEWS: Add linetable feature.
1710 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1711 * python/py-linetable.c: New file.
1712 * python/py-symtab.c (stpy_get_linetable): New function.
1713 * python/python-internal.h (symtab_to_linetable_object): Declare.
1714 (gdbpy_initialize_linetable): Ditto.
1715 * python/python.c (_initialize_python): Call
1716 gdbpy_initialize_linetable.
1717
1718 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1719
1720 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1721 the documentation of fields "except_string" and "condition".
1722 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1723 CONDITION on the heap before passing it to
1724 create_ada_exception_catchpoint.
1725 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1726 CONDITION.
1727
1728 2013-11-11 Tom Tromey <tromey@redhat.com>
1729
1730 * config.in, configure: Rebuild.
1731 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1732
1733 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1734
1735 * remote-sim.c (gdbsim_detach): Break declaration into
1736 shorter lines. No code change.
1737
1738 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1739
1740 * remote-sim.c (gdbsim_detach): Fix prototype.
1741
1742 2013-11-08 Doug Evans <dje@google.com>
1743
1744 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1745 (create_debug_types_hash_table): Only print debugging messages for
1746 each TU if dwarf2-read >= 2.
1747 (process_queue): Ditto.
1748 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1749 Update doc string.
1750
1751 2013-11-08 Tom Tromey <tromey@redhat.com>
1752
1753 * configure: Rebuild.
1754 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1755
1756 2013-11-08 Tom Tromey <tromey@redhat.com>
1757
1758 * configure, config.in: Rebuild.
1759 * configure.ac: Remove unused configury.
1760
1761 2013-11-08 Tom Tromey <tromey@redhat.com>
1762
1763 * m32c-tdep.c: Use gdb_string.h.
1764
1765 2013-11-08 Tom Tromey <tromey@redhat.com>
1766
1767 * configure, config.in: Rebuild.
1768 * configure.ac: Remove all link.h-related checks.
1769
1770 2013-11-08 Tom Tromey <tromey@redhat.com>
1771
1772 * acinclude.m4: Include common.m4.
1773 * common/common.m4: New file.
1774 * configure, config.in: Rebuild.
1775 * configure.ac: Use GDB_AC_COMMON.
1776
1777 2013-11-08 Doug Evans <dje@google.com>
1778
1779 * NEWS: Mention that "set debug symtab-create" now accepts a
1780 verbosity level.
1781 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1782 to set the symtab's primary flag.
1783 * jit.c (finalize_symtab): Ditto.
1784 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1785 * symfile.c (allocate_symtab): Only print debugging messages for
1786 symtab_create_debug levels 2 and higher.
1787 * symtab.c (symtab_create_debug): Change type to unsigned int.
1788 (set_symtab_primary): New function.
1789 (_initialize_symtab): Change "set debug symtab-create" to a
1790 zuinteger option.
1791 * symtab.h (set_symtab_primary): Declare.
1792 (symtab_create_debug): Update decl.
1793
1794 2013-11-08 Tom Tromey <tromey@redhat.com>
1795
1796 * aix-thread.c (aix_thread_detach): Update.
1797 * corelow.c (core_detach): Update.
1798 * darwin-nat.c (darwin_detach): Update.
1799 * dec-thread.c (dec_thread_detach): Update.
1800 * gnu-nat.c (gnu_detach): Update.
1801 * go32-nat.c (go32_detach): Update.
1802 * inf-ptrace.c (inf_ptrace_detach): Update.
1803 * inf-ttrace.c (inf_ttrace_detach): Update.
1804 * linux-fork.c (linux_fork_detach): Update.
1805 * linux-fork.h (linux_fork_detach): Update.
1806 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1807 local for const-correctness.
1808 * linux-thread-db.c (thread_db_detach): Update.
1809 * monitor.c (monitor_detach): Update.
1810 * nto-procfs.c (procfs_detach): Update.
1811 * procfs.c (procfs_detach): Update.
1812 * record.c (record_detach): Update.
1813 * record.h (record_detach): Update.
1814 * remote-m32r-sdi.c (m32r_detach): Update.
1815 * remote-mips.c (mips_detach): Update.
1816 * remote-sim.c (gdbsim_detach): Update.
1817 * remote.c (remote_detach_1, remote_detach)
1818 (extended_remote_detach): Update.
1819 * sol-thread.c (sol_thread_detach): Update.
1820 * target.c (target_detach): Make "args" const.
1821 (init_dummy_target): Update.
1822 * target.h (struct target_ops) <to_detach>: Make argument const.
1823 (target_detach): Likewise.
1824 * windows-nat.c (windows_detach): Update.
1825
1826 2013-11-07 Doug Evans <dje@google.com>
1827
1828 PR 11786
1829 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1830 and align fields for PT_GNU_RELRO segments.
1831
1832 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1833
1834 PR python/15747
1835 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1836
1837 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1838
1839 * NEWS: Document Python temporary breakpoint support.
1840 * python/py-breakpoint.c (bppy_get_temporary): New function.
1841 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1842 to temporary if True.
1843
1844 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1845
1846 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1847 removed to allow analyzing unconditional branch instructions
1848 with PC-relative offsets of zero.
1849
1850 2013-11-07 Yao Qi <yao@codesourcery.com>
1851
1852 * mi/mi-cmd-var.c: Include "language.h".
1853 (mi_cmd_var_info_expression): Get language name from
1854 language_defn.
1855 * varobj.c (varobj_language_string): Remove.
1856 (variable_language): Remove declaration.
1857 (languages): Remove.
1858 (varobj_get_language): Change the type of return value.
1859 (variable_language): Remove.
1860 * varobj.h (enum varobj_languages): Remove.
1861 (varobj_language_string): Remove declaration.
1862 (varobj_get_language): Update declaration.
1863
1864 2013-11-07 Yao Qi <yao@codesourcery.com>
1865
1866 * language.h (struct language_defn) <la_natural_name>: New
1867 field.
1868 * ada-lang.c (ada_language_defn): Initialize field
1869 'la_natural_name'.
1870 * c-lang.c (c_language_defn): Likewise.
1871 (cplus_language_defn, asm_language_defn): Likewise.
1872 * d-lang.c (d_language_defn): Likewise.
1873 * f-lang.c (f_language_defn): Likewise.
1874 * go-lang.c (go_language_defn): Likewise.
1875 * jv-lang.c (java_language_defn): Likewise.
1876 * language.c (unknown_language_defn ): Likewise.
1877 (auto_language_defn): Likewise.
1878 * m2-lang.c (m2_language_defn): Likewise.
1879 * objc-lang.c (objc_language_defn): Likewise.
1880 * opencl-lang.c (opencl_language_defn): Likewise.
1881 * p-lang.c (pascal_language_defn): Likewise.
1882
1883 2013-11-07 Yao Qi <yao@codesourcery.com>
1884
1885 * language.c (language_str): Return const char *.
1886 (add_language): Add const to 'language_names'
1887 * language.h (struct language_defn) <la_name>: Add const.
1888 (language_str: Update declaration.
1889
1890 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1891
1892 * s390-linux-nat.c (s390_read_description): Consider the TE field
1893 in the HWCAP for determining 'have_regset_tdb'.
1894
1895 2013-11-06 Will Newton <will.newton@linaro.org>
1896
1897 PR gdb/12866
1898 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1899 values. (read_partial_die): Likewise.
1900
1901 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1902
1903 PR cli/16122
1904 * top.c (command_line_input): Unify interactivity tests to use
1905 input_from_terminal_p.
1906 * event-top.c (command_line_handler): Likewise.
1907
1908 2013-11-06 Yao Qi <yao@codesourcery.com>
1909
1910 * Makefile.in (check-perf): New target.
1911
1912 2013-11-05 Will Newton <will.newton@linaro.org>
1913
1914 PR gdb/7670
1915 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1916 (arm_print_float_info): Likewise.
1917
1918 2013-11-04 Anton Blanchard <anton@samba.org>
1919
1920 * target.c (memory_xfer_partial): Cap write to 4KB.
1921
1922 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1923
1924 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1925 probe scan even when the arch provides no get_longjmp_target.
1926
1927 2013-10-31 Pedro Alves <palves@redhat.com>
1928
1929 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1930 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1931 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1932 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1933 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1934 <bpstat handling>: If the bpstat chain wants the signal to be
1935 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1936 GDB_SIGNAL_TRAP.
1937
1938 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1939
1940 * breakpoint.c (update_watchpoint): Update error message and add
1941 an additional error message.
1942
1943 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1944
1945 * s390-tdep.h: Rename to...
1946 * s390-linux-tdep.h: ...here.
1947 * s390-tdep.c: Rename to...
1948 * s390-linux-tdep.c: ...here. Adjust #include.
1949 * s390-nat.c: Rename to...
1950 * s390-linux-nat.c: ...here. Adjust #include.
1951 * config/s390/s390.mh: Rename to...
1952 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1953 s390-linux-nat.o.
1954 * configure.host: Reflect host rename "s390" -> "linux".
1955 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1956 * Makefile.in (ALL_TARGET_OBS): Likewise.
1957 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1958 s390-linux-tdep.h.
1959 (ALLDEPFILES): Reflect rename of .c files.
1960
1961 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1962
1963 * s390-nat.c: Whitespace cleanup.
1964 * s390-tdep.c: Likewise.
1965 * s390-tdep.h: Remove empty line at end of file.
1966
1967 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1968
1969 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1970 siginfo_size.
1971
1972 2013-10-29 Tom Tromey <tromey@redhat.com>
1973
1974 * utils.c (reg): Move undefinition...
1975 * gdb_curses.h: ... here. Update comment to mention AIX.
1976
1977 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1978
1979 * exec.h (add_target_sections_of_objfile): New declaration.
1980 * exec.c (add_target_sections_of_objfile): New function.
1981 * symfile.c (add_symbol_file_command): Update current target sections.
1982 (remove_symbol_file_command): New command.
1983 (symfile_free_objfile): New function.
1984 (_initialize_symfile): Register observer for free_objfile events.
1985 * NEWS: Add description of the remove-symbol-file command.
1986 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1987 * objfiles.c (free_objfile): Notify free_objfile.
1988 (is_addr_in_objfile): New function.
1989 * objfiles.h (is_addr_in_objfile): New declaration.
1990 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1991 events instead of solib_unloaded events.
1992 (_initialize_printcmd): Register observer for free_objfile instead
1993 of solib_unloaded notifications.
1994 * solib.c (remove_user_added_objfile): New function.
1995 (_initialize_symfile): Add remove-symbol-file.
1996
1997 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1998
1999 * infcmd.c (default_print_one_register_info): Use val_print to
2000 print all values even optimized out or unavailable ones. Don't
2001 try to print a raw form of optimized out or unavailable values.
2002
2003 2013-10-29 Yao Qi <yao@codesourcery.com>
2004
2005 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2006 parameter 'arg' instead of from program_space_data.
2007 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2008 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2009 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2010 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2011 * inflow.c (inflow_inferior_data_cleanup): Get data from
2012 parameter 'arg' instead of inferior_data.
2013 * registry.h: Add comments.
2014
2015 2013-10-28 Pedro Alves <palves@redhat.com>
2016
2017 * breakpoint.c (watchpoints_triggered)
2018 <!target_stopped_data_address>: Hardcode return 1.
2019
2020 2013-10-28 Pedro Alves <palves@redhat.com>
2021
2022 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2023 level and reindent.
2024
2025 2013-10-28 Pedro Alves <palves@redhat.com>
2026
2027 * infrun.c (process_event_stop_test): New function, factored out
2028 from handle_inferior_event.
2029 (handle_inferior_event): 'process_event_stop_test' is now a
2030 function instead of a goto label -- adjust.
2031
2032 2013-10-28 Pedro Alves <palves@redhat.com>
2033
2034 * infrun.c (handle_inferior_event): Move process_event_stop_test
2035 goto label to the else branch of the ecs->random_signal check,
2036 along with FRAME and GDBARCH re-fetching.
2037
2038 2013-10-28 Pedro Alves <palves@redhat.com>
2039
2040 * infrun.c (switch_back_to_stepped_thread): New function, factored
2041 out from handle_inferior_event.
2042 (handle_inferior_event): Adjust to call
2043 switch_back_to_stepped_thread. Call it also at the tail of the
2044 random signal handling, and return, instead of also handling
2045 random signals just before the stepping tests.
2046
2047 2013-10-28 Pedro Alves <palves@redhat.com>
2048
2049 * infrun.c (clear_stop_func): Delete.
2050 (handle_inferior_event): Don't call clear_stop_func and don't
2051 clear 'ecs->random_signal'.
2052
2053 2013-10-27 Yao Qi <yao@codesourcery.com>
2054
2055 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2056 (varobj_create, varobj_get_path_expr): Update.
2057 (varobj_value_has_mutated, varobj_update): Likewise.
2058 (create_child_with_value, new_root_variable): Likewise.
2059 (number_of_children, name_of_variable): Likewise.
2060 (value_of_child, my_value_of_variable): Likewise.
2061 (varobj_value_is_changeable_p): Likewise.
2062
2063 2013-10-25 Yao Qi <yao@codesourcery.com>
2064
2065 * language.h (struct lang_varobj_ops): Declare.
2066 (struct language_defn) <la_varobj_ops>: New field.
2067 * ada-lang.c: Include "varobj.h"
2068 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2069 ada_varobj_ops.
2070 * c-lang.c: Include "varobj.h"
2071 (c_language_defn): Initialize field 'la_varobj_ops' with
2072 c_varobj_ops.
2073 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2074 cplus_varobj_ops.
2075 (asm_language_defn): Initialize field 'la_varobj_ops' with
2076 default_varobj_ops.
2077 (minimal_language_defn): Likewise.
2078 * d-lang.c (d_language_defn): Likewise.
2079 * f-lang.c (f_language_defn): Likewise.
2080 * go-lang.c (go_language_defn): Likewise.
2081 * m2-lang.c (m2_language_defn): Likewise.
2082 * objc-lang.c (objc_language_defn): Likewise.
2083 * opencl-lang.c (opencl_language_defn): Likewise.
2084 * p-lang.c (pascal_language_defn): Likewise.
2085 * language.c (unknown_language_defn): Likewise.
2086 (auto_language_defn): Likewise.
2087 (local_language_defn): Likewise.
2088 * jv-lang.c (java_language_defn): Initialize field
2089 'la_varobj_ops' with java_varobj_ops.
2090 * varobj.c (varobj_create): Update.
2091 * varobj.h (default_varobj_ops): Define macro.
2092
2093 2013-10-25 Pedro Alves <palves@redhat.com>
2094
2095 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2096 static field value.
2097 (cp_print_static_field): If the value is entirely optimized out,
2098 print <optimized out> here.
2099 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2100 static field value.
2101 * p-valprint.c (pascal_object_print_static_field): If the value is
2102 entirely optimized out, print <optimized out> here.
2103 * valops.c (do_search_struct_field)
2104 (value_struct_elt_for_reference): No longer handle a NULL static
2105 field value.
2106 * value.c (value_static_field): Return an optimized out value
2107 instead of NULL.
2108
2109 2013-10-25 Yao Qi <yao@codesourcery.com>
2110
2111 * remote.c (remote_traceframe_info): Return early if
2112 traceframe is not selected.
2113
2114 2013-10-25 Yao Qi <yao@codesourcery.com>
2115
2116 * tracepoint.c (traceframe_fun): Remove.
2117 (traceframe_sal): Remove.
2118 (set_traceframe_context): Add local variables.
2119
2120 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2121
2122 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2123 and parameter name.
2124
2125 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2126
2127 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2128 failure from register information collection.
2129
2130 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2131
2132 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2133 member.
2134 (linux_corefile_thread_callback): Update accordingly.
2135 (linux_make_corefile_notes): Likewise.
2136
2137 2013-10-24 Pedro Alves <palves@redhat.com>
2138
2139 * NEWS (New options): Mention set/show startup-with-shell.
2140 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2141 instead of 3.
2142 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2143 startup-with-shell'.
2144 (show_startup_with_shell): New function.
2145 (_initialize_fork_child): Register the set/show startup-with-shell
2146 commands.
2147 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2148 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2149 * procfs.c (procfs_init_inferior): Remove comment.
2150 * infcmd.c (startup_with_shell): New global.
2151 * inferior.h (startup_with_shell): Declare global.
2152 (STARTUP_WITH_SHELL): Delete.
2153 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2154
2155 2013-10-23 Pedro Alves <palves@redhat.com>
2156
2157 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2158 * common/signals.c: Include "gdb_assert.h".
2159 (signals): New field 'symbol'.
2160 (SET): Use the 'symbol' parameter.
2161 (gdb_signal_to_symbol_string): New function.
2162 * infrun.c (handle_inferior_event) <random signal>: In debug
2163 output, print the random signal enum as string in addition to its
2164 number.
2165 * target/waitstatus.c (target_waitstatus_to_string): Print the
2166 signal's enum value as string instead of the (POSIX) signal name.
2167
2168 2013-10-23 Gary Benson <gbenson@redhat.com>
2169
2170 PR 16013
2171 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2172 from 32 to 18. Adjusted fscanf format string accordingly.
2173 (Avoids leaving cmd unterminated.)
2174 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2175 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2176 that local_address and remote_address will not overflow.
2177 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2178 leaving dependencies unterminated. Parse size as "%u" to match
2179 definition.
2180
2181 2013-10-22 Pedro Alves <palves@redhat.com>
2182
2183 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2184 set ecs->random signal.
2185
2186 2013-10-22 Pedro Alves <palves@redhat.com>
2187
2188 * infrun.c (keep_going): Update comments.
2189
2190 2013-10-22 Pedro Alves <palves@redhat.com>
2191
2192 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2193 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2194
2195 2013-10-22 Pedro Alves <palves@redhat.com>
2196
2197 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2198 GDB_EXC_BAD_ACCESS.
2199 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2200 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2201 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2202 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2203 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2204 (GDB_SIGNAL_LAST): Change description string.
2205 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2206 Adjust to signal renaming.
2207 * darwin-nat.c (darwin_decode_message): Likewise.
2208
2209 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2210
2211 * MAINTAINERS (Write After Approval): Add myself to the list.
2212
2213 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2214
2215 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2216 forced off, downgrade them to software watchpoints if possible,
2217 and error out if not possible.
2218 (watch_command_1): Move watchpoint type selection closer to
2219 watchpoint creation, and extend the comments.
2220
2221 2013-10-18 Pedro Alves <palves@redhat.com>
2222
2223 PR gdb/16062
2224 * infrun.c (handle_inferior_event): Keep going if we got a random
2225 signal we should not stop for, instead of falling through to the
2226 step tests.
2227
2228 2013-10-18 Yao Qi <yao@codesourcery.com>
2229
2230 * c-varobj.c (cplus_number_of_children): Fix indentation.
2231
2232 2013-10-17 Tom Tromey <tromey@redhat.com>
2233
2234 PR gdb/15995:
2235 * printcmd.c (printcmd): Call gdb_flush.
2236
2237 2013-10-17 Tom Tromey <tromey@redhat.com>
2238
2239 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2240 (elf_locate_sections): Update.
2241
2242 2013-10-17 Yao Qi <yao@codesourcery.com>
2243
2244 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2245 * ada-varobj.c: Remove the include of ada-varobj.h.
2246 (ada_varobj_get_number_of_children): Declare.
2247 (ada_varobj_get_name_of_child): Make it static.
2248 (ada_varobj_get_path_expr_of_child): Likewise.
2249 (ada_varobj_get_value_of_child): Likewise.
2250 (ada_varobj_get_type_of_child): Likewise.
2251 (ada_varobj_get_value_of_array_variable): Likewise.
2252 * ada-varobj.h: Remove.
2253
2254 2013-10-17 Yao Qi <yao@codesourcery.com>
2255
2256 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2257 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2258 * ada-varobj.c: Include "varobj.h".
2259 (ada_number_of_children): New. Moved from varobj.c.
2260 (ada_name_of_variable, ada_name_of_child): Likewise.
2261 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2262 (ada_type_of_child, ada_value_of_variable): Likewise.
2263 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2264 (ada_varobj_ops): New.
2265 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2266 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2267 * gdbtypes.h (get_target_type): Declare.
2268 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2269 "ada-lang.h".
2270 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2271 (ANONYMOUS_UNION_NAME): Likewise.
2272 (get_type, get_value_type, get_target_type): Remove declarations.
2273 (value_get_print_value, varobj_value_get_print_value): Likewise.
2274 (c_number_of_children, c_name_of_variable): Likewise.
2275 (c_name_of_child, c_path_expr_of_child): Likewise.
2276 (c_value_of_child, c_type_of_child): Likewise.
2277 (c_value_of_variable, cplus_number_of_children): Likewise.
2278 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2279 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2280 (cplus_value_of_child, cplus_type_of_child): Likewise.
2281 (cplus_value_of_variable, java_number_of_children): Likewise.
2282 (java_name_of_variable, java_name_of_child): Likewise.
2283 (java_path_expr_of_child, java_value_of_child): Likewise.
2284 (java_type_of_child, java_value_of_variable): Likewise.
2285 (ada_number_of_children, ada_name_of_variable): Likewise.
2286 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2287 (ada_value_of_child, ada_type_of_child): Likewise.
2288 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2289 (ada_value_has_mutated): Likewise.
2290 (struct language_specific): Move it to varobj.h.
2291 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2292 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2293 Callers update.
2294 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2295 Make it extern.
2296 (is_anonymous_child): Move it to c-varobj.c and rename to
2297 varobj_is_anonymous_child. Caller update.
2298 (get_type): Move it to c-varobj.c.
2299 (get_value_type): Rename it varobj_get_value_type. Make it
2300 extern.
2301 (get_target_type): Move it gdbtypes.c.
2302 (varobj_formatted_print_options): New function.
2303 (value_get_print_value): Rename it to
2304 varobj_value_get_print_value and make it extern.
2305 (varobj_value_is_changeable_p): Make it extern.
2306 (adjust_value_for_child_access): Move it to c-varobj.c.
2307 (default_value_is_changeable_p): Rename it to
2308 varobj_default_value_is_changeable_p. Make it extern.
2309 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2310 (c_name_of_child, c_path_expr_of_child): Likewise.
2311 (c_value_of_child, c_type_of_child): Likewise.
2312 (c_value_of_variable, cplus_number_of_children): Likewise.
2313 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2314 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2315 (cplus_value_of_child, cplus_type_of_child): Likewise.
2316 (cplus_value_of_variable): Likewise.
2317 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2318 (java_name_of_child, java_path_expr_of_child): Likewise.
2319 (java_value_of_child, java_type_of_child): Likewise.
2320 (java_value_of_variable): Likewise.
2321 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2322 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2323 (ada_value_of_child, ada_type_of_child): Likewise.
2324 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2325 (ada_value_has_mutated): Likewise.
2326 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2327 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2328 (c_varobj_ops, cplus_varobj_ops): Declare.
2329 (java_varobj_ops, ada_varobj_ops): Declare.
2330 (varobj_default_value_is_changeable_p): Declare.
2331 (varobj_value_is_changeable_p): Declare.
2332 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2333 (varobj_get_path_expr_parent): Declare.
2334 (varobj_value_get_print_value): Declare.
2335 (varobj_formatted_print_options): Declare.
2336 (varobj_restrict_range): Declare.
2337
2338 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2339
2340 * target/waitstatus.h (target_waitkind): Remove spurious
2341 character from the comments.
2342
2343 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2344
2345 * gdbarch.sh (get_longjmp_target): Add method documentation.
2346 * gdbarch.h: Regenerate.
2347
2348 2013-10-16 Tom Tromey <tromey@redhat.com>
2349
2350 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2351 label.
2352
2353 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2354
2355 * gcore.in: Call GDB using the full path to the gcore script.
2356 Error out if the GDB binary is not found.
2357
2358 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2359
2360 PR gdb/16014
2361 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2362 sizeof.
2363
2364 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2365
2366 PR gdb/16042
2367 * target.c (target_disable_btrace): Fix invalid return value for
2368 void function.
2369 (target_teardown_btrace): Likewise.
2370
2371 2013-10-14 Yao Qi <yao@codesourcery.com>
2372
2373 * varobj.c (struct varobj): Move most of the fields to
2374 varobj.h.
2375 (struct varobj_dynamic): New struct.
2376 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2377 (varobj_has_more): Likewise.
2378 (dynamic_varobj_has_child_method): Likewise.
2379 (update_dynamic_varobj_children): Likewise.
2380 (varobj_get_num_children): Likewise.
2381 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2382 (install_new_value_visualizer): Likewise.
2383 (install_new_value_visualizer, install_new_value): Likewise.
2384 (varobj_update, new_variable, free_variable): Likewise.
2385 (my_value_of_variable, value_get_print_value): Likewise.
2386 (install_visualizer): Change the type of parameter 'var' to
2387 'struct varobjd_dynamic *'. Callers update.
2388 * varobj.h (struct varobj): Moved from varobj.c.
2389 (struct varobj) <dynamic>: New field.
2390
2391 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2392
2393 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2394 as the preferred name of r30.
2395 * nios2-linux-tdep.c (reg_offsets): Likewise.
2396 * features/nios2-cpu.xml: Likewise.
2397 * features/nios2-linux.c: Regenerated.
2398 * features/nios2.c: Regenerated.
2399 * regformats/nios2-linux.dat: Regenerated.
2400
2401 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2402
2403 Canonicalize directories for EXEC_FILENAME.
2404 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2405 exec_filename.
2406 * utils.c (gdb_realpath_keepfile): New function.
2407 * utils.h (gdb_realpath_keepfile): New declaration.
2408
2409 2013-10-11 Doug Evans <dje@google.com>
2410
2411 * Makefile.in (GDBFLAGS): New variable.
2412 (run): New rule.
2413
2414 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2415
2416 * NEWS: Add entry documenting the new "-catch-assert" and
2417 "-catch-exception" GDB/MI commands.
2418
2419 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2420
2421 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2422 "enabled".
2423 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2424 "enabled". Set B->ENABLE_STATE accordingly.
2425 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2426 ada-lang.c.
2427 (create_ada_exception_catchpoint): Add declaration.
2428 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2429 (create_ada_exception_catchpoint): Make non-static. Add new
2430 parameter "disabled". Use it in call to
2431 init_ada_exception_breakpoint.
2432 (catch_ada_exception_command): Add parameter "enabled" in call
2433 to create_ada_exception_catchpoint.
2434 (catch_assert_command): Likewise.
2435
2436 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2437 Add declarations.
2438 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2439 "catch-exception" commands.
2440 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2441 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2442
2443 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2444
2445 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2446 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2447 of all its enumerates with "ada_". Update the rest of this
2448 file throughout.
2449
2450 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2451
2452 * ada-lang.c (ada_decode_exception_location): Delete.
2453 (create_ada_exception_catchpoint): Remove arguments "sal",
2454 "addr_string" and "ops". Add argument "ex_kind" instead.
2455 Adjust implementation accordingly, calling ada_exception_sal
2456 to get the entities it no longer gets passed as arguments.
2457 Document the function's arguments.
2458 (catch_ada_exception_command): Use catch_ada_exception_command_split
2459 instead of ada_decode_exception_location, and update call to
2460 create_ada_exception_catchpoint.
2461 (catch_ada_assert_command_split): Renames
2462 ada_decode_assert_location. Remove parameters "addr_string" and
2463 "ops", and now returns void. Adjust implementation accordingly.
2464 Update the function documentation.
2465 (catch_assert_command): Use catch_ada_assert_command_split
2466 instead of ada_decode_assert_location. Update call to
2467 create_ada_exception_catchpoint.
2468
2469 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2470
2471 * utils.h (perror_warning_with_name): Add declaration.
2472 * utils.c (perror_warning_with_name): New function.
2473 * cli/cli-cmds.c (source_script_with_search): Add call to
2474 perror_warning_with_name if from_tty is nul.
2475
2476 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2477
2478 * utils.c (perror_string): New function, extracted out of
2479 throw_perror_with_name.
2480 (throw_perror_with_name): Rework to use perror_string.
2481
2482 2013-10-11 Yao Qi <yao@codesourcery.com>
2483
2484 * remote.c (discard_pending_stop_replies_in_queue): Update
2485 declaration.
2486 (struct stop_reply) <rs>: New field.
2487 (remove_stop_reply_of_remote_state): New function.
2488 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2489 Callers update. Pass remove_stop_reply_of_remote_state to
2490 QUEUE_iterate.
2491 (remote_parse_stop_reply): Initialize field 'rs'.
2492
2493 2013-10-10 Will Newton <will.newton@linaro.org>
2494
2495 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2496 linux_init_abi.
2497
2498 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2499
2500 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2501 serial_baud_show_cmd.
2502 (_initialize_cli_cmds): Delete the code creating the
2503 "set/show remotebaud" commands.
2504 * serial.c (baud_rate): Move here from top.c.
2505 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2506 (_initialize_serial): Create "set/show serial baud" commands.
2507 Add "set/show remotebaud" command aliases.
2508 * top.c (baud_rate): Moved to serial.c.
2509 * NEWS: Document the new "set/show serial baud" commands,
2510 replacing "set/show remotebaud".
2511
2512 2013-10-09 Pedro Alves <palves@redhat.com>
2513
2514 * breakpoint.c (insert_bp_location): Use memory_error_message to
2515 build the memory error string.
2516 * c-lang.c: Include "gdbcore.h".
2517 (c_get_string): Use memory_error to throw error.
2518 (target_xfer_memory_error): Delete.
2519 (memory_error_message): New, factored out from
2520 target_xfer_memory_error.
2521 (memory_error): Change parameter type to target_xfer_error.
2522 Rewrite.
2523 (read_memory): Use memory_error instead of
2524 target_xfer_memory_error.
2525 * gdbcore.h: Include "target.h".
2526 (memory_error): Change parameter type to target_xfer_error.
2527 (memory_error_message): Declare function.
2528 * target.c (target_read_memory, target_read_stack)
2529 (target_write_memory, target_write_raw_memory): Return
2530 TARGET_XFER_E_IO on error. Adjust comments.
2531 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2532 instead of EIO.
2533 * target.h (target_read, target_insert_breakpoint)
2534 (target_remove_breakpoint): Adjust comments.
2535 * valprint.c (partial_memory_read): Rename parameter, and adjust
2536 comment.
2537 (val_print_string): Use memory_error_message to build the memory
2538 error string.
2539
2540 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2541
2542 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2543 result variable. Rename variable fopen_e_ever_failed to
2544 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2545
2546 2013-10-09 Pedro Alves <palves@redhat.com>
2547
2548 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2549 (monitor_write_memory_longlongs, monitor_write_memory_block):
2550 Constify 'myaddr' parameter.
2551 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2552 helper.
2553 (monitor_xfer_partial): New function.
2554 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2555 hook. Install a to_xfer_partial hook.
2556
2557 2013-10-09 Tom Tromey <tromey@redhat.com>
2558
2559 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2560 bfd_get_alt_debug_link_info.
2561
2562 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 New flag OBJF_NOT_FILENAME.
2565 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2566 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2567 allocate_objfile.
2568 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2569 symbol_file_add_from_bfd.
2570 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2571 allocate_objfile.
2572 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2573 NULL.
2574 * objfiles.h (OBJF_NOT_FILENAME): New.
2575
2576 2013-10-08 Tom Tromey <tromey@redhat.com>
2577
2578 * Makefile.in (SFILES): Add build-id.c.
2579 (HFILES_NO_SRCDIR): Add build-id.h.
2580 * build-id.c: New file, largely from elfread.c. Modified
2581 most functions.
2582 * build-id.h: New file.
2583 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2584 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2585 Search for dwz file using build-id.
2586 * elfread.c (build_id_bfd_get, build_id_verify)
2587 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2588
2589 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2590
2591 * ada-lang.c (compare_names_with_case): Renamed from
2592 compare_names, adding a new parameter "casing" and its handling.
2593 New function documentation.
2594 (compare_names): New function, implemented using
2595 compare_names_with_case.
2596
2597 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2598
2599 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2600
2601 2013-10-07 Tom Tromey <tromey@redhat.com>
2602
2603 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2604 demangled_names_hash.
2605 (free_objfile): Don't delete the demangled_names_hash.
2606 * objfiles.h (struct objfile_per_bfd_storage)
2607 <demangled_names_hash>: New field.
2608 (struct objfile) <demangled_names_hash>: Move to
2609 objfile_per_bfd_storage.
2610 * symfile.c (reread_symbols): Don't delete the
2611 demangled_names_hash.
2612 * symtab.c (create_demangled_names_hash): Update.
2613 (symbol_set_names): Update.
2614
2615 2013-10-07 Tom Tromey <tromey@redhat.com>
2616
2617 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2618 needs_relocations>: New fields.
2619 (gdb_bfd_requires_relocations): New function.
2620 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2621 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2622 the BFD needs relocations applied.
2623
2624 2013-10-07 Pedro Alves <palves@redhat.com>
2625
2626 PR breakpoints/11568
2627 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2628 the thread list" instead of "gone".
2629
2630 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2631
2632 * NEWS: Mention new convenience variable $_exitsignal.
2633 * corelow.c (core_open): Reset exit convenience variables. Set
2634 $_exitsignal to the uncaught signal which generated the corefile.
2635 * infrun.c (handle_inferior_event): Reset exit convenience
2636 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2637 (clear_exit_convenience_vars): New function.
2638 * inferior.h (clear_exit_convenience_vars): New prototype.
2639
2640 2013-10-06 Yao Qi <yao@codesourcery.com>
2641
2642 * varobj.h: Add comments to enum varobj_languages.
2643
2644 2013-10-04 Doug Evans <dje@google.com>
2645
2646 Add support for DWP file format version 2.
2647 * NEWS: Mention support for DWP file format version 2.
2648 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2649 union of asection, containing_section. New fields virtual_offset
2650 and is_virtual. Change type of readin filed from int to char.
2651 (dwo_sections, dwo_file): Tweak comments.
2652 (dwp_v2_section_ids): New enum.
2653 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2654 str_offsets, types.
2655 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2656 All uses updated.
2657 (virtual_v2_dwo_sections): New struct.
2658 (dwp_hash_table): New fields version, nr_columns. Change type of
2659 section_pool field to a union.
2660 (dwp_file): New field version.
2661 (dwarf2_has_info): Check for virtual sections.
2662 (get_containing_section): New function.
2663 (get_section_bfd_owner, get_section_bfd_section): Call it.
2664 (dwarf2_locate_sections): Update.
2665 (dwarf2_section_empty_p): Update.
2666 (dwarf2_read_section): Handle virtual sections.
2667 (locate_dwz_sections): Update.
2668 (create_dwp_hash_table): Document and handle V2 format.
2669 (locate_v1_virtual_dwo_sections): Renamed from
2670 locate_virtual_dwo_sections and update. All callers updated.
2671 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2672 Delete arg htab. Rename arg section_index to unit_index.
2673 All callers updated.
2674 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2675 All uses updated.
2676 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2677 (lookup_dwo_unit_in_dwp): Add V2 support.
2678 (dwarf2_locate_dwo_sections): Update.
2679 (dwarf2_locate_common_dwp_sections): Renamed from
2680 dwarf2_locate_dwp_sections and update. All callers updated.
2681 (dwarf2_locate_v2_dwp_sections): New function.
2682 (open_and_init_dwp_file): Add V2 support.
2683 (read_str_index): New locals str_section, str_offsets_section.
2684
2685 2013-10-04 Pedro Alves <palves@redhat.com>
2686
2687 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2688 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2689 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2690 describing comments with references to ptid.h.
2691 * common/ptid.h: Remove intro description of constructors,
2692 accessors and predicates.
2693 (struct ptid): Reformat.
2694 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2695 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2696 describing comments.
2697
2698 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2699
2700 * aix-thread.c (sync_threadlists): Add missing ')' in call
2701 to ptid_build.
2702
2703 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2704
2705 * procfs.c (procfs_init_inferior): Fix typo causing the build
2706 to fail.
2707
2708 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2709
2710 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2711
2712 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2713
2714 * mi/mi-main.c (run_one_inferior): Add function description.
2715 Make ARG a pointer to an integer whose value determines whether
2716 we should "run" or "start" the program.
2717 (mi_cmd_exec_run): Add handling of the "--start" option.
2718 Reject all other command-line options.
2719 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2720
2721 2013-10-04 Yao Qi <yao@codesourcery.com>
2722
2723 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2724 (struct notif_client) <pending_event>: Moved
2725 to struct remote_notif_state.
2726 <id>: New field.
2727 (struct remote_notif_state) <pending_event>: New field.
2728 (notif_event_xfree): Declare.
2729 * remote-notif.c (handle_notification): Adjust.
2730 (notif_event_xfree): New function.
2731 (do_notif_event_xfree): Call notif_event_xfree.
2732 (remote_notif_state_xfree): Call notif_event_xfree to free
2733 each element in field pending_event.
2734 * remote.c (discard_pending_stop_replies): Remove declaration.
2735 (discard_pending_stop_replies_in_queue): Declare.
2736 (remote_close): Call discard_pending_stop_replies_in_queue
2737 instead of discard_pending_stop_replies.
2738 (remote_start_remote): Adjust.
2739 (stop_reply_xfree): Call notif_event_xfree.
2740 (notif_client_stop): Adjust initialization.
2741 (remote_notif_remove_all): Rename it to ...
2742 (remove_stop_reply_for_inferior): ... this. Update comments.
2743 Don't check INF is NULL.
2744 (discard_pending_stop_replies): Return early if notif_state is
2745 NULL. Adjust. Don't check INF is NULL.
2746 (remote_notif_get_pending_events): Adjust.
2747 (discard_pending_stop_replies_in_queue): New function.
2748 (remote_wait_ns): Likewise.
2749
2750 2013-10-04 Yao Qi <yao@codesourcery.com>
2751
2752 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2753 (notif_queue): Remove.
2754 (remote_notif_process): Add one parameter 'notif_queue'.
2755 Update comments. Callers update.
2756 (remote_async_get_pending_events_token): Remove.
2757 (remote_notif_register_async_event_handler): Remove.
2758 (remote_notif_unregister_async_event_handler): Remove.
2759 (handle_notification): Add parameter 'notif_queue'. Update
2760 comments. Callers update.
2761 (notif_xfree): Remove.
2762 (remote_notif_state_allocate): New function.
2763 (remote_notif_state_xfree): New function.
2764 (_initialize_notif): Remove code to allocate queue.
2765 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2766 (struct remote_notif_state): New.
2767 (handle_notification): Update declaration.
2768 (remote_notif_process): Likewise.
2769 (remote_notif_register_async_event_handler): Remove.
2770 (remote_notif_unregister_async_event_handler): Remove.
2771 (remote_notif_state_allocate): Declare.
2772 (remote_notif_state_xfree): Declare.
2773 * remote.c (struct remote_state) <notif_state>: New field.
2774 (remote_close): Don't call
2775 remote_notif_unregister_async_event_handler. Call
2776 remote_notif_state_xfree.
2777 (remote_open_1): Don't call
2778 remote_notif_register_async_event_handler. Call
2779 remote_notif_state_allocate.
2780
2781 2013-10-04 Yao Qi <yao@codesourcery.com>
2782
2783 * varobj.c (create_child_with_value): Remove 'const' from the
2784 type of parameter 'name'.
2785 (varobj_add_child): Likewise.
2786 (install_dynamic_child): Remove 'const' from the type of
2787 parameter 'name'.
2788 (varobj_add_child): Likewise.
2789 (create_child_with_value): Likewise. Update comments. Don't
2790 duplicate 'name'.
2791 (update_dynamic_varobj_children): Duplicate 'name'
2792 and pass it to install_dynamic_child.
2793
2794 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2795
2796 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2797 conversion logic to occur after PyLong_Check. Comment on order
2798 change significance.
2799 * python/py-arch.c (archpy_disassemble): Comment on order of
2800 conversion for integers and longs.
2801
2802 2013-10-03 Pedro Alves <palves@redhat.com>
2803
2804 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2805 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2806 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2807 PTRACE_O_TRACEFORK is not supported.
2808 (linux_test_for_tracesysgood): New function.
2809 (linux_test_for_tracefork): New function, factored out from
2810 linux_check_ptrace_features, and also don't kill child_pid here.
2811
2812 2013-10-03 Tristan Gingold <gingold@adacore.com>
2813
2814 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2815 Remove verbose error reporting. Use detected state to
2816 thread_set_state call.
2817 (i386_darwin_dr_get): Fix return type. Remove verbose error
2818 report.
2819 Remove trailing spaces.
2820
2821 2013-10-02 Pedro Alves <palves@redhat.com>
2822
2823 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2824 val_print_optimized_out.
2825 * jv-valprint.c (java_print_value_fields): Likewise.
2826 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2827 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2828 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2829 new optimized out value.
2830 * findvar.c (address_from_register): Likewise.
2831 * frame.c (put_frame_register): Tweak error string to say the
2832 register was not saved, rather than optimized out.
2833 * infcmd.c (default_print_one_register_info): Adjust call to
2834 val_print_optimized_out. Use value_of_register instead of
2835 get_frame_register_value.
2836 * mi/mi-main.c (output_register): Use value_of_register instead of
2837 get_frame_register_value.
2838 * valprint.c (valprint_check_validity): Likewise.
2839 (val_print_optimized_out): New value parameter. If the value is
2840 lval_register, print <not saved> instead.
2841 (value_check_printable, val_print_scalar_formatted): Adjust calls
2842 to val_print_optimized_out.
2843 * valprint.h (val_print_optimized_out): New value parameter.
2844 * value.c (struct value) <optimized_out>: Extend comment.
2845 (error_value_optimized_out): New function.
2846 (require_not_optimized_out): Use it. Use a different string for
2847 lval_register values.
2848 * value.h (error_value_optimized_out): New declaration.
2849 * NEWS: Mention <not saved>.
2850
2851 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2852
2853 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2854 strcmp to compare two symtab filenames.
2855
2856 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2857
2858 * symtab.c (search_symbols_equal): Delete.
2859 (sort_search_symbols_remove_dups): Replace call to
2860 search_symbols_equal by call to compare_search_syms,
2861 adjusting as necessary.
2862
2863 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2864
2865 PR python/15579
2866 * python/python.c: Document gdb.execute command in Python help.
2867
2868 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2869
2870 * python/py-frame.c (frame_info_to_frame_object): Use
2871 gdbpy_convert_exception. Clean up Python object on failure.
2872
2873 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2874
2875 * python/lib/gdb/command/frame_filters.py
2876 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2877 (ShowFrameFilterPriority.invoke): Ditto.
2878
2879 2013-10-01 Keith Seitz <keiths@redhat.com>
2880
2881 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2882 (parse_linespec): Make 'argptr' const.
2883 Remove temporary cast of 'argptr' to const char **.
2884 (decode_line_full): Pass const pointer to parse_linespec.
2885 (decode_line_1): Likewise.
2886 (decode_objc): Make local variable 'new_argptr' const.
2887 (find_function_symbols): Remove temporary cast to char *
2888 to find_imps.
2889 * objc-lang.c (find_imps): Make argument 'method' const.
2890 Return const.
2891 * objc-lang.h (find_imps): Likewise.
2892
2893 2013-10-01 Keith Seitz <keiths@redhat.com>
2894
2895 * completer.c (skip_quoted_chars): Make all arguments const.
2896 Return const.
2897 (skip_quoted): Likewise.
2898 * completer.h (skip_quoted_chars): Likewise.
2899 (skip_quoted): Likewise.
2900 * defs.h (skip_quoted): Remove duplicate declaration.
2901 * jv-exp.y: Include completer.h.
2902 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2903 * p-exp.y: Include completer.h.
2904
2905 2013-10-01 Keith Seitz <keiths@redhat.com>
2906
2907 * c-exp.y (parse_number): Make first argument const.
2908 Make a copy of the input to manipulate.
2909 (c_parse_escape): Make first argument const.
2910 Make local variable 'tokptr' const.
2911 (parse_string_or_char): Make first two arguments const.
2912 (macro_original_text): Make const.
2913 (lex_one_token): Make local variable 'tokstart' const.
2914 Likewise for local variables named 'p'.
2915 Cast away const for struct stoken (temporary).
2916 * c-lang.h (c_parse_escpae): Make first argument const.
2917 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2918 const.
2919 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2920 var_string case.
2921 * f-exp.y (parse_number): Make first argument const.
2922 (match_string_literal): Make local variable 'tokstart'
2923 const.
2924 (yylex): Make local variable 'p' const.
2925 Cast away const for struct stoken (temporary).
2926 * go-exp.y (parse_number): Make first argument const.
2927 (parse_string_or_char): Likewise.
2928 Make local variable 'tokstart' const.
2929 (lex_one_token): Likewise for numerous locals called 'p'.
2930 Cast away const for struct stoken (temporary).
2931 * jv-exp.y (parse_number): Make first argument const.
2932 Make local variables 'tokstart' and 'tokptr' const.
2933 Cast away const for call to skip_quoted (temporary).
2934 (yylex): Make local variable 'p' const.
2935 Cast away const for struct stoken (temporary).
2936 * m2-exp.y (parse_number): Make local variable 'p' const.
2937 (yylex): Likewise for 'tokstart'.
2938 Cast away const for struct stoken (temporary).
2939 Make local variable 'p' const.
2940 * macroexp.c (get_character_constant): Pass a const string
2941 to c_parse_escape.
2942 (get_string_literal): Likewise.
2943 (macro_expand_next): Make first argument const.
2944 Cast away const for init_shared_buffer.
2945 * macroexp.h (macro_expand_next): Make first argument const.
2946 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2947 Pass a const string to c_parse_escape.
2948 Make local variables 'p' and 'namestart' const.
2949 * parse.c (lexptr): Make const.
2950 (prev_lexptr): Likewise.
2951 (find_template_name_end): Return const.
2952 Make argument const, too.
2953 (parse_exp_in_context): Make first argument const.
2954 Remove the entire const_hack.
2955 (parse_exp_in_context_1): Make first argument const.
2956 * parser-defs.h (find_template_name_end): Return const.
2957 Make argument const, too.
2958 (lexptr): Make const.
2959 (prev_lexptr): Likewise.
2960 * utils.c (parse_escape): Make second argument const.
2961 * utils.h (parse_escape): Likewise.
2962
2963 2013-10-01 Keith Seitz <keiths@redhat.com>
2964
2965 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2966 is now const.
2967 (block_lookup): Make 'raw_name' and 'name' const.
2968 * ada-lex.l (processString): Update for struct stoken.ptr.
2969 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2970 (operator_stoken): Likewise.
2971 (lex_one_token): Remove temporary cast to char * for
2972 'yylval.sval.ptr'.
2973 * f-exp.y (yylex): Likewise.
2974 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2975 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2976 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2977 'yylval.sval.ptr'.
2978 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2979 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2980 * linespec.c (struct ls_parser): Make 'stream' const.
2981 (find_parameter_list_end): Make argument 'input' and local
2982 variable 'p' const.
2983 (linespec_lexer_lex_string): Make local variables 'start' and
2984 'p' const.
2985 Use skip_spaces_const instead of skip_spaces.
2986 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2987 const.
2988 (parse_linespec): Temporarily cast 'argptr' to const for
2989 'parser->lexer.stream'.
2990 * m2-exp.y (yylex): Remove temporary cast to char * for
2991 'yylval.sval.ptr'.
2992 * objc-lang.c (add_msglist): Make local variable 'p' const.
2993 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2994 (exp : STRING): Make 'sp' const.
2995 (parse_number): Make argument 'p' const.
2996 * parser-defs.h (struct stoken): Make 'ptr' const.
2997
2998 2013-10-01 Doug Evans <dje@google.com>
2999
3000 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3001
3002 2013-10-01 Yao Qi <yao@codesourcery.com>
3003
3004 * varobj.c (c_value_of_root): Remove declaration.
3005 (cplus_value_of_root, java_value_of_root): Likewise.
3006 (ada_value_of_root): Likewise.
3007 (struct language_specific) <value_of_root>: Remove.
3008 (languages): Update initialization.
3009 (check_scope): Move earlier.
3010 (c_value_of_root): Move earlier and rename to ...
3011 (value_of_root_1): ... this.
3012 (value_of_root): Caller update.
3013 (cplus_value_of_root, java_value_of_root): Remove.
3014 (ada_value_of_root): Remove.
3015
3016 2013-10-01 Yao Qi <yao@codesourcery.com>
3017
3018 * varobj.c (varobj_format_string): Remove "unknown".
3019 (languages): Remove the first element.
3020 * varobj.h (enum varobj_languages): Remove vlang_c.
3021
3022 2013-10-01 Yao Qi <yao@codesourcery.com>
3023
3024 * varobj.c (struct language_specific) <language>: Remove.
3025 (languages): Update the initialization.
3026
3027 2013-10-01 Yao Qi <yao@codesourcery.com>
3028
3029 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3030 "solib-target.h". Include "windows-tdep.h".
3031 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3032 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3033 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3034 windows-tdep.o to gdb_target_obs.
3035
3036 2013-10-01 Yao Qi <yao@codesourcery.com>
3037
3038 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3039 "solib-target.h".
3040 (amd64_windows_init_abi): Don't call set_solib_ops and
3041 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3042 windows_init_abi instead.
3043 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3044 "solib-target.h".
3045 (i386_cygwin_init_abi): Don't call set_solib_ops,
3046 set_gdbarch_has_dos_based_file_system and
3047 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3048 windows_init_abi instead.
3049 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3050 (windows_init_abi): New function.
3051 (windows_iterate_over_objfiles_in_search_order): Make it
3052 static.
3053 * windows-tdep.h (windows_init_abi): Declare.
3054 (windows_iterate_over_objfiles_in_search_order): Remove
3055 declaration.
3056
3057 2013-10-01 Jerome Guitton <guitton@adacore.com>
3058
3059 Checked in by Joel Brobecker <brobecker@adacore.com>
3060 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3061 incomplete dictionnary instead of None in case of missing
3062 environment variables.
3063 (elinos_init): in case of an incomplete environment, best
3064 effort to load system libraries instead of abort.
3065
3066 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3067
3068 * ada-lang.c (ada_has_this_exception_support): Ignore
3069 mst_solib_trampoline minimal symbols.
3070
3071 2013-09-30 Tristan Gingold <gingold@adacore.com>
3072
3073 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3074 hardware watchpoint.
3075 (i386_darwin_dr_set): Support 32 and 64 bit states.
3076 (i386_darwin_dr_get): Likewise.
3077 (i386_darwin_dr_set_control): Make static.
3078 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3079 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3080
3081 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3082
3083 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3084 Replace TIDGET with ptid_get_lwp.
3085 Replace GET_LWP with ptid_get_lwp.
3086 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3087 Replace BUILD_THREAD with ptid_build.
3088 Replace BUILD_LWP with ptid_build.
3089 Replace PIDGET with ptid_get_pid.
3090 Replace TIDGET with ptid_get_lwp.
3091 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3092 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3093 Replace TIDGET with ptid_get_lwp.
3094 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3095 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3096 Replace TIDGET with ptid_get_lwp.
3097 Replace GET_LWP with ptid_get_lwp.
3098 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3099 * auxv.c: Likewise.
3100 * breakpoint.c: Likewise.
3101 * common/ptid.c (ptid_is_pid): Condense check for
3102 null_ptid and minus_one_ptid.
3103 (ptid_lwp_p): New function.
3104 (ptid_tid_p): New function.
3105 * common/ptid.h: Update comments for accessors.
3106 (ptid_lwp_p): New prototype.
3107 (ptid_tid_p): New prototype.
3108 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3109 * gcore.c: Replace PIDGET with ptid_get_pid.
3110 * gdbthread.h: Likewise.
3111 * gnu-nat.c: Likewise.
3112 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3113 Replace TIDGET with ptid_get_lwp.
3114 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3115 * hppanbsd-nat.c: Likewise.
3116 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3117 Replace TIDGET with ptid_get_lwp.
3118 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3119 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3120 * infcmd.c: Likewise.
3121 * inferior.h: Likewise.
3122 * inflow.c: Likewise.
3123 * infrun.c: Likewise.
3124 * linux-fork.c: Likewise.
3125 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3126 Replace GET_PID with ptid_get_pid.
3127 Replace is_lwp with ptid_lwp_p.
3128 Replace GET_LWP with ptid_get_lwp.
3129 Replace BUILD_LWP with ptid_build.
3130
3131 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3132
3133 * common/linux-btrace.c: Move sys/syscall.h out of the
3134 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3135 Also check for SYS_perf_event_open before attempting to buid.
3136
3137 2013-09-27 Doug Evans <dje@google.com>
3138
3139 * dwarf2read.c (dwarf2_section_info): Add comment.
3140 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3141 All uses updated.
3142 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3143 (dwarf2_read_section): Delete unused local "header". Add section
3144 name to error message.
3145 (create_dwo_in_dwp): Tweak comment.
3146 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3147
3148 * dwarf2read.c (die_reader_specs): Tweak comment.
3149 (get_section_bfd_owner, get_section_bfd_section): New functions.
3150 (get_section_name, get_section_file_name): New functions.
3151 (get_section_id, get_section_flags): New functions.
3152 (*): Use new functions to access section fields.
3153
3154 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3155 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3156 arg "htab". All callers updated.
3157 (create_debug_types_hash_table): Remove redundant copy of
3158 abbrev_section.
3159 (create_dwo_in_dwp): Tweak comments.
3160 (read_str_index): Tweak comment. Record dwarf form name in static
3161 local.
3162
3163 2013-09-27 Pedro Alves <palves@redhat.com>
3164
3165 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3166 (remote_filename_p): Add comment.
3167 * remote.c (remote_filename_p): Adjust to use
3168 REMOTE_SYSROOT_PREFIX.
3169 * solib.c (solib_find): When deciding whether we need to add a
3170 directory separator, check whether the sysroot is "remote:"
3171 instead of checking whether the patch has a drive spec. Add
3172 comments.
3173
3174 2013-09-27 Pedro Alves <palves@redhat.com>
3175
3176 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3177 Delete fields.
3178 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3179 directly.
3180
3181 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3182
3183 Fix set debug frame output.
3184 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3185 SENTINEL_FRAME entry lower to match enum frame_type order.
3186
3187 2013-09-26 Pierre Muller <muller@sourceware.org>
3188
3189 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3190 AMD64_R15_REGNUM when a register index is expected.
3191 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3192 Substitute in array.
3193 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3194 (amd64_push_arguments): Substitute in integer_regnum array.
3195
3196 2013-09-25 Doug Evans <dje@google.com>
3197
3198 * objfiles.c (allocate_objfile): Move comment to better place.
3199
3200 New option "set debug symfile on".
3201 * NEWS: Mention "set debug symfile".
3202 * Makefile.in (SFILES): Add symfile-debug.c.
3203 (COMMON_OBS): Add symfile-debug.o.
3204 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3205 objfile's symbol functions.
3206 * objfiles.h (objfile_set_sym_fns): Declare.
3207 * symfile-debug.c: New file.
3208 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3209 objfile's symbol functions.
3210 (reread_symbols): Ditto.
3211
3212 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3213 All uses updated.
3214 (add_symtab_fns): Update prototype.
3215 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3216 (registered_sym_fns): ... this.
3217 (symtab_fns): Update.
3218 (add_symtab_fns): New arg "flavour". All callers updated.
3219 (find_sym_fns): Rewrite to use new sym_fns registry.
3220
3221 * symfile.h (struct sym_fns): Add "objfile" argument to
3222 sym_read_linetable. All uses updated.
3223
3224 * symtab.c (domain_name, search_domain_name): New functions.
3225 * symtab.h (domain_name, search_domain_name): Declare.
3226
3227 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3228 map_matching_symbols so objfile is first. All uses updated.
3229 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3230 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3231
3232 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3233
3234 PR shlibs/8882
3235 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3236 link map entries.
3237
3238 2013-09-24 Doug Evans <dje@google.com>
3239
3240 * objfiles.c (free_objfile): Move comment.
3241
3242 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3243
3244 * ada-exp.y (string_to_operator): Delete.
3245 (dummy_string_to_ada_operator): Delete.
3246
3247 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3248
3249 Revert:
3250 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3251 amd64-tdep.c.
3252 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3253 call_dummy_integer_regs, and classify.
3254 * amd64-tdep.h (amd64_classify): Add declaration.
3255 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3256 (amd64_reg_class): Delete, moved to i386-tdep.h.
3257 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3258 Replace call to amd64_classify by call to tdep->classify.
3259 (amd64_push_arguments): Get the list of registers to use for
3260 passing integer parameters from the gdbarch tdep structure,
3261 rather than using a hardcoded one. Replace calls to amd64_classify
3262 by calls to tdep->classify.
3263 (amd64_push_dummy_call): Get the register number used for
3264 the "hidden" argument from tdep->call_dummy_integer_regs.
3265 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3266 and tdep->call_dummy_integer_regs. Set tdep->classify.
3267
3268 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3269
3270 Revert:
3271 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3272 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3273 where tdep->memory_args_by_pointer is non-zero.
3274
3275 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3276
3277 Revert:
3278 * i386-tdep.h (struct gdbarch_tdep): Add new field
3279 integer_param_regs_saved_in_caller_frame.
3280 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3281 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3282
3283 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3284
3285 * amd64-windows-tdep.c: #include "value.h"
3286 (amd64_windows_classify): Delete.
3287 (amd64_windows_passed_by_integer_register)
3288 (amd64_windows_passed_by_xmm_register)
3289 (amd64_windows_passed_by_pointer)
3290 (amd64_windows_adjust_args_passed_by_pointer)
3291 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3292 (amd64_windows_push_dummy_call): New functions.
3293 (amd64_windows_init_abi): Remove setting of
3294 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3295 tdep->classify, tdep->memory_args_by_pointer and
3296 tdep->integer_param_regs_saved_in_caller_frame.
3297 Add call to set_gdbarch_push_dummy_call.
3298
3299 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3302 objfile->original_name.
3303
3304 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3305
3306 Pass down original filename for objfile.
3307 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3308 * elfread.c (elf_symfile_read): Likewise.
3309 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3310 longer set ORIGINAL_NAME.
3311 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3312 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3313 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3314 symbol_file_add_from_bfd call.
3315 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3316 (macho_check_dsym): Add parameter filenamep. Change function comment.
3317 Set *filenamep.
3318 (macho_symfile_read): New variable dsym_filename. Update
3319 macho_check_dsym call. Use it for symbol_file_add_separate.
3320 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3321 it. Use it for objfile->original_name.
3322 (objfile_name): Return OBFD's filename, if available.
3323 * objfiles.h (allocate_objfile): Add new parameter name.
3324 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3325 * symfile-mem.c (symbol_file_add_from_memory): Update
3326 symbol_file_add_from_bfd call.
3327 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3328 comment for it.
3329 (symbol_file_add_with_addrs): New parameter name, add function comment
3330 for it. Remove variable name. Update allocate_objfile call.
3331 (symbol_file_add_separate): New parameter name, add function comment
3332 for it. Update symbol_file_add_with_addrs call.
3333 (symbol_file_add_from_bfd): New parameter name. Update
3334 symbol_file_add_with_addrs call.
3335 (symbol_file_add): Update symbol_file_add_from_bfd call.
3336 (reread_symbols): New variable original_name. Save
3337 objfile->original_name by it.
3338 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3339 second parameter.
3340
3341 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 Code cleanup: Add objfile_name accessor function.
3344 * ada-lang.c (is_known_support_routine): Use objfile_name.
3345 * auto-load.c (source_gdb_script_for_objfile)
3346 (auto_load_objfile_script): Likewise.
3347 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3348 * dbxread.c (dbx_symfile_read): Likewise.
3349 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3350 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3351 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3352 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3353 (lookup_dwp_signatured_type, lookup_dwo_unit)
3354 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3355 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3356 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3357 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3358 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3359 (read_subrange_type, load_partial_dies, read_partial_die)
3360 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3361 (die_containing_type, build_error_marker_type, lookup_die_type)
3362 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3363 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3364 (get_DW_AT_signature_type, write_psymtabs_to_index)
3365 (save_gdb_index_command): Likewise.
3366 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3367 Likewise.
3368 * expprint.c (dump_subexp_body_standard): Likewise.
3369 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3370 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3371 original_name.
3372 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3373 obj_name, use objfile_name for it, use the variable.
3374 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3375 Use objfile_name.
3376 * machoread.c (macho_symtab_read, macho_check_dsym)
3377 (macho_symfile_relocate): Likewise.
3378 * maint.c (maintenance_translate_address): Likewise.
3379 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3380 * minsyms.c (install_minimal_symbols): Likewise.
3381 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3382 original_name.
3383 (filter_overlapping_sections): Use objfile_name.
3384 (objfile_name): New function.
3385 * objfiles.h (struct objfile): Rename field name to original_name.
3386 (objfile_name): New prototype.
3387 * printcmd.c (sym_info, address_info): Use objfile_name.
3388 * probe.c (parse_probes, collect_probes, compare_probes)
3389 (info_probes_for_ops): Likewise.
3390 * progspace.c (clone_program_space): Likewise.
3391 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3392 (maintenance_info_psymtabs): Likewise.
3393 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3394 (source_section_scripts): Likewise.
3395 * python/py-objfile.c (objfpy_get_filename): Likewise.
3396 * python/py-progspace.c (pspy_get_filename): Likewise.
3397 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3398 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3399 * solib.c (solib_read_symbols): Likewise.
3400 * stabsread.c (scan_file_globals): Likewise.
3401 * stap-probe.c (handle_stap_probe): Likewise.
3402 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3403 (find_separate_debug_file_by_debuglink): Likewise.
3404 (reread_symbols): Likewise. Use the objfile field name renamed to
3405 original_name.
3406 (allocate_symtab): Use objfile_name.
3407 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3408 (dump_objfile, dump_msymbols, dump_symtab_1)
3409 (maintenance_print_msymbols, maintenance_print_objfiles)
3410 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3411 * target.c (target_translate_tls_address, target_info): Likewise.
3412 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3413 objfile_name.
3414
3415 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 Code cleanup.
3418 * probe.c (parse_probes): Rename variable objfile_name to
3419 objfile_namestr.
3420
3421 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3422
3423 Remove solib-sunos.c.
3424 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3425 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3426 * objfiles.c (rt_common_objfile): Remove.
3427 (free_objfile): Remove rt_common_objfile comparison.
3428 * objfiles.h (rt_common_objfile): Remove.
3429 * solib-sunos.c: Remove.
3430 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3431
3432 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 Remove a.out NetBSD and OpenBSD hosts.
3435 * NEWS (Removed native configurations): New.
3436 * config/arm/nbsdaout.mh: Remove.
3437 * config/i386/nbsdaout.mh: Remove.
3438 * config/i386/obsdaout.mh: Remove.
3439 * config/m68k/nbsdaout.mh: Remove.
3440 * config/sparc/nbsdaout.mh: Remove.
3441 * config/vax/nbsdaout.mh: Remove.
3442 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3443 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3444 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3445 error.
3446 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3447 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3448 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3449
3450 2013-09-23 Tom Tromey <tromey@redhat.com>
3451
3452 * linespec.c (struct minsym_and_objfile): Remove.
3453 (minsym_and_objfile_d): Remove.
3454 (struct linespec, struct collect_info, linespec_parse_basic)
3455 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3456 (compare_msymbols, find_method, find_function_symbols)
3457 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3458 (add_minsym, search_minsyms_for_name): Update.
3459
3460 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3461
3462 * regcache.c: Add include of valprint.h.
3463 (dump_endian_bytes): Delete.
3464 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3465
3466 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3467
3468 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3469
3470 2013-09-19 Pedro Alves <palves@redhat.com>
3471
3472 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3473 breakpoints.
3474
3475 2013-09-19 Pedro Alves <palves@redhat.com>
3476 Thomas Schwinge <thomas@codesourcery.com>
3477 Yue Lu <hacklu.newborn@gmail.com>
3478
3479 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3480 Take a gdb_byte pointer instead of a char pointer.
3481
3482 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3483 gnu_xfer_partial helper.
3484 (gnu_xfer_partial): New function.
3485 (gnu_target): Don't install a deprecated_xfer_memory hook.
3486 Install a to_xfer_partial hook.
3487
3488 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 Constification.
3491 * main.c (captured_main): Replace catch_command_errors by
3492 catch_command_errors_const. Twice.
3493 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3494 (symbol_file_add): Make name parameter const.
3495 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3496 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3497 variable name. Change their usage accordingly.
3498 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3499 const.
3500 (symbol_file_add_main): Make args parameter const.
3501
3502 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3503 Ulrich Weigand <uweigand@de.ibm.com>
3504
3505 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3506 of c_value member.
3507 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3508
3509 2013-09-18 Pedro Alves <palves@redhat.com>
3510 Yue Lu <hacklu.newborn@gmail.com>
3511
3512 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3513 (gnu_create_inferior)
3514 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3515 (set_sig_thread_cmd): Use the lwpid field of ptids to
3516 store/extract thread ids instead of the tid field.
3517 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3518
3519 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3520
3521 * infcmd.c (default_print_one_register_info): Add detection of
3522 optimized out values.
3523 (default_print_registers_info): Switch to using
3524 get_frame_register_value.
3525
3526 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3527
3528 * infrun.c (handle_inferior_event): Check if we know the
3529 function start address before setting a resume breakpoint.
3530
3531 2013-09-18 Pedro Alves <palves@redhat.com>
3532
3533 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3534 minus_one_ptid instead of looking at the ptid's tid field and
3535 comparing that to -1.
3536
3537 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3538
3539 * main.h (get_gdb_program_name): Remove extra whitespace.
3540
3541 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3542
3543 * main.h (get_gdb_program_name): Add declaration.
3544 * main.c (get_gdb_program_name): Add definition.
3545
3546 2013-09-17 Doug Evans <dje@google.com>
3547
3548 * dwarf2read.c: Move definitions of complaint functions to after
3549 forward declarations of local functions.
3550
3551 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3552 Pedro Alves <palves@redhat.com>
3553
3554 PR gdb/11568
3555 * breakpoint.c (remove_threaded_breakpoints): New function.
3556 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3557 as thread_exit observer.
3558
3559 2013-09-17 Pedro Alves <palves@redhat.com>
3560
3561 PR gdb/15911
3562 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3563 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3564 * corelow.c (core_open):
3565 * frame.h (print_stack_frame, print_frame_info): New
3566 'set_current_sal' parameter.
3567 * infcmd.c (finish_command, kill_command): Adjust call to
3568 print_stack_frame.
3569 * inferior.c (inferior_command): Likewise.
3570 * infrun.c (normal_stop): Likewise.
3571 * linux-fork.c (linux_fork_context): Likewise.
3572 * record-full.c (record_full_goto_entry, record_full_restore):
3573 Likewise.
3574 * remote-mips.c (common_open): Likewise.
3575 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3576 Use it.
3577 (print_frame_info): New 'set_current_sal' parameter. Set the last
3578 displayed sal depending on the new paremeter instead of looking at
3579 print_what.
3580 (backtrace_command_1, select_and_print_frame, frame_command)
3581 (current_frame_command, up_command, down_command): Adjust call to
3582 print_stack_frame.
3583 * thread.c (print_thread_info, restore_selected_frame)
3584 (do_captured_thread_select): Adjust call to print_stack_frame.
3585 * tracepoint.c (tfind_1): Likewise.
3586 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3587 (mi_cmd_stack_info_frame): Likewise.
3588 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3589 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3590
3591 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3592
3593 * value.c (isvoid_internal_fn): Replace "parameter" with
3594 "argument".
3595
3596 2013-09-16 Stan Shebs <stan@codesourcery.com>
3597
3598 * README: Update references to writing code for GDB.
3599 * configure.ac (build_warnings): Remove obsolete comment.
3600 * configure: Regenerate.
3601 * gdbarch.sh: Remove references to gdbint.texinfo.
3602 * gdbarch.h: Regenerate.
3603 * gdbtypes.c (objfile_type): Remove comments referencing internals
3604 manual and D10V.
3605
3606 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3607
3608 * NEWS: Mention new convenience function $_isvoid.
3609 * value.c (isvoid_internal_fn): New function.
3610 (_initialize_values): Add new convenience function $_isvoid.
3611
3612 2013-09-16 Pierre Muller <muller@sourceware.org>
3613
3614 * arm-linux-tdep.c: Add "elf/common.h" header.
3615 Remove AT_HWCAP macro definintion as it is provided in
3616 added include file.
3617 * s390-tdep.c: Remove system header <elf.h>
3618 Add "elf/common.h" header for AT_HWCAP definition.
3619 (s390_core_read_description): Use correct CORE_ADDR
3620 for hwcap local variable used as third parameter
3621 of function target_auxv_search.
3622
3623 2013-09-14 Pierre Muller <muller@sourceware.org>
3624 Tom Tromey <tromey@redhat.com>
3625 Pedro Alves <palves@redhat.com>
3626
3627 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3628 mode if operating system doesn't know O_CLOEXEC.
3629
3630 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3631
3632 Code cleanup.
3633 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3634 inner block.
3635
3636 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3637
3638 * NEWS: Mention TDB support.
3639 * features/s390-tdb.xml: New file.
3640 * features/s390-te-linux64.xml: New file.
3641 * features/s390x-te-linux64.xml: New file.
3642 * features/Makefile (WHICH): Add new tdescs above.
3643 (s390-te-linux64-expedite): Set.
3644 (s390x-te-linux64-expedite): Set.
3645 * features/s390-te-linux64.c: New file (generated).
3646 * features/s390x-te-linux64.c: New file (generated).
3647 * regformats/s390-te-linux64.dat: New file (generated).
3648 * regformats/s390x-te-linux64.dat: New file (generated).
3649 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3650 (HWCAP_S390_TE): Likewise.
3651 (S390_TDB_DWORD0_REGNUM): Likewise.
3652 (S390_TDB_DWORD0_REGNUM): Likewise.
3653 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3654 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3655 (S390_TDB_ATIA_REGNUM): Likewise.
3656 (S390_TDB_R0_REGNUM): Likewise.
3657 (S390_TDB_R1_REGNUM): Likewise.
3658 (S390_TDB_R2_REGNUM): Likewise.
3659 (S390_TDB_R3_REGNUM): Likewise.
3660 (S390_TDB_R4_REGNUM): Likewise.
3661 (S390_TDB_R5_REGNUM): Likewise.
3662 (S390_TDB_R6_REGNUM): Likewise.
3663 (S390_TDB_R7_REGNUM): Likewise.
3664 (S390_TDB_R8_REGNUM): Likewise.
3665 (S390_TDB_R9_REGNUM): Likewise.
3666 (S390_TDB_R10_REGNUM): Likewise.
3667 (S390_TDB_R11_REGNUM): Likewise.
3668 (S390_TDB_R12_REGNUM): Likewise.
3669 (S390_TDB_R13_REGNUM): Likewise.
3670 (S390_TDB_R14_REGNUM): Likewise.
3671 (S390_TDB_R15_REGNUM): Likewise.
3672 (S390_NUM_REGS): Increase.
3673 (S390_IS_TDBREGSET_REGNUM): New macro.
3674 (s390_regmap_tdb): Declare.
3675 (s390_sizeof_tdbregset): Define.
3676 (tdesc_s390_te_linux64): Declare.
3677 (tdesc_s390x_te_linux64): Likewise.
3678 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3679 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3680 (s390_regmap_tdb): New regmap.
3681 (s390_supply_tdb_regset): New function.
3682 (s390_tdb_regset): New regset.
3683 (s390_linux64v2_regset_sections): Add TDB regset to list.
3684 (s390x_linux64v2_regset_sections): Likewise.
3685 (s390_regset_from_core_section): Recognize TDB core note section.
3686 (s390_core_read_description): If HWCAP indicates TE support,
3687 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3688 (s390_gdbarch_init): Handle TDB regset.
3689 (_initialize_s390_tdep): Initialize new tdescs.
3690 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3691 (have_regset_tdb): New variable.
3692 (s390_native_supply): Support register invalidation.
3693 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3694 (check_regset): Treat ENODATA as "regset exists".
3695 (s390_linux_fetch_inferior_registers): Add TDB.
3696 (s390_read_description): Check for TDB existence and select
3697 appropriate tdesc.
3698 * gdbserver/Makefile.in (clean): Add removal of new makefile
3699 targets.
3700 (s390-te-linux64.c): New makefile target.
3701 (s390x-te-linux64.c): Likewise.
3702 * gdbserver/configure.srv (srv_regobj): Append new objects
3703 s390-te-linux64.o and s390x-te-linux64.o.
3704 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3705 s390x-te-linux64.xml, and s390-tdb.xml.
3706 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3707 declaration.
3708 (tdesc_s390_te_linux64): Likewise.
3709 (init_registers_s390x_te_linux64): Likewise.
3710 (tdesc_s390x_te_linux64): Likewise.
3711 (s390_check_regset): Treat ENODATA as "regset exists".
3712 (s390_arch_setup): Add TDB regset support.
3713 (initialize_low_arch): Initialize registers for new tdescs.
3714
3715 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3716
3717 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3718 (S390_IS_FPREGSET_REGNUM): New macro.
3719 * s390-tdep.c (s390_dwarf_regmap): Make const.
3720 (regnum_is_gpr_full): New function for replacing repeated code.
3721 (s390_pseudo_register_name): Use it.
3722 (s390_pseudo_register_type): Likewise.
3723 (s390_pseudo_register_read): Likewise.
3724 (s390_pseudo_register_write): Likewise.
3725 (s390_unwind_pseudo_register): Likewise.
3726 (s390_regmap_gregset): New format for regmap.
3727 (s390x_regmap_gregset): Likewise.
3728 (s390_regmap_fpregset): Likewise.
3729 (s390_regmap_upper): Likewise.
3730 (s390_regmap_last_break): Likewise.
3731 (s390_regmap_system_call): Likewise.
3732 (s390_supply_regset): Adjust to new regmap format.
3733 (s390_collect_regset): Likewise.
3734 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3735 (s390_native_collect): Likewise.
3736 (supply_gregset): Likewise.
3737 (fill_gregset): Likewise.
3738 (supply_fpregset): Likewise.
3739 (fill_fpregset): Likewise.
3740 (fetch_regset): Likewise.
3741 (store_regset): Likewise.
3742 (s390_linux_fetch_inferior_registers): Likewise.
3743 (s390_linux_fetch_inferior_registers): Likewise.
3744
3745 2013-09-12 Andrew Pinski <apinski@cavium.com>
3746
3747 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3748
3749 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3750
3751 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3752
3753 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3754
3755 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3756
3757 2013-09-06 Pedro Alves <palves@redhat.com>
3758
3759 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3760 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3761 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3762 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3763 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3764 gdb_stdlog.
3765
3766 2013-09-06 Pedro Alves <palves@redhat.com>
3767
3768 * remote-sim.c (dump_mem): Constify buf parameter.
3769 gdbsim_xfer_inferior_memory): Rename to ...
3770 (gdbsim_xfer_memory): ... this. Adjust interface as
3771 target_xfer_partial helper.
3772 (gdbsim_xfer_partial): New function.
3773 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3774 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3775
3776 2013-09-06 Pedro Alves <palves@redhat.com>
3777
3778 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3779 host_address_to_string, and send debug output to gdb_stdlog.
3780
3781 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3782
3783 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3784 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3785 gdb_target_obs for cris target.
3786 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3787 (cris_gdbarch_init): Move calls to
3788 set_gdbarch_fetch_tls_load_module_address and
3789 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3790 Add call to gdbarch_init_osabi.
3791 * cris-linux-tdep.c: New file.
3792 * cris-tdep.h: New file.
3793
3794 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3795
3796 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3797 to deprecated_init_ui_hook.
3798
3799 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3800
3801 * cli/cli-interp.c (_initialize_cli_interp): Add a
3802 command_loop_proc to interp_procs.
3803 * event-top.c (cli_command_loop): Change signature to match
3804 interp_command_loop_ftype.
3805 * event-top.h (cli_command_loop): Same.
3806 * interps.c (interp_new): Require every interpreter to have a
3807 command_loop_proc.
3808 (current_interp_command_loop): Just call the command_loop_proc on
3809 the current interpreter.
3810 * tui/tui-interp.c (_initialize_tui_interp): Add a
3811 command_loop_proc to interp_procs.
3812
3813 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3814
3815 * cris-tdep.c (cris_gdbarch_init): Add call to
3816 get_gdbarch_fetch_tls_load_module_address.
3817
3818 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3819
3820 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3821 (cris_elf_gregset_t): Rename from elf_gregset_t.
3822 (crisv32_elf_gregset_t): Adjust.
3823 (cris_supply_gregset, fetch_core_registers): Adjust.
3824
3825 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3826
3827 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3828
3829 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3830
3831 * defs.h (deprecated_command_loop_hook): Remove, including
3832 references in comments.
3833 * interps.c (current_interp_command_loop): No longer use
3834 deprecated_command_loop_hook.
3835 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3836 setup.
3837 * top.c (deprecated_command_loop_hook): Remove.
3838
3839 2013-09-05 Pedro Alves <palves@redhat.com>
3840
3841 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3842 local is now int instead of ULONGEST. Print it with %d
3843 instead of paddress.
3844
3845 2013-09-05 Tristan Gingold <gingold@adacore.com>
3846
3847 * MAINTAINERS: Remove avr maintainership.
3848
3849 2013-09-05 Pedro Alves <palves@redhat.com>
3850
3851 * findvar.c (value_of_register): Rework in terms of
3852 value_of_register_lazy.
3853
3854 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3855
3856 * symfile.c (add_symbol_file_command): Remove trailing
3857 whitespaces and blank line after comment.
3858
3859 2013-09-05 Pedro Alves <palves@redhat.com>
3860
3861 * tui/tui-regs.c (tui_register_format): Don't look at the
3862 register's name here. Return string representing register
3863 value instead of storing it in the data element.
3864 (tui_get_register): Compare register string representations
3865 instead of register value states and contents.
3866
3867 2013-09-05 Pedro Alves <palves@redhat.com>
3868
3869 PR tui/15933
3870 * tui/tui-regs.c (tui_show_registers): Show registers of the
3871 selected frame, not the current frame.
3872
3873 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3874
3875 * MAINTAINERS (Write After Approval): Add myself to the list.
3876
3877 2013-09-04 Doug Evans <dje@google.com>
3878
3879 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3880 (queue_and_load_dwo_tu): New function.
3881 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3882 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3883 Make dependent_cu optional.
3884 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3885 and an older .gdb_index is in use, queue and load all its TUs too.
3886
3887 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3888
3889 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3890 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3891 variable search_flags.
3892 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3893 (OPF_RETURN_REALPATH): ... here.
3894 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3895 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3896 call. Twice.
3897 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3898 openp call.
3899 * solib.c (solib_find): Likewise. Four times.
3900 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3901 in the function comment and for the realpath_fptr variable.
3902 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3903 (find_and_open_source): Likewise. Twice.
3904 * symfile.c (symfile_bfd_open): Likewise, also twice.
3905
3906 2013-09-04 Doug Evans <dje@google.com>
3907
3908 * progspace.c (save_current_space_and_thread): Remove unnecessary
3909 call to save_current_inferior.
3910
3911 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3912
3913 * sh64-tdep.c (sh64_do_register): Return after printing message
3914 about unavailable register contents.
3915
3916 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3917 Pedro Alves <palves@redhat.com>
3918
3919 * symfile.c (add_symbol_file_command): Error out on unknown
3920 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3921 options and collapse into single conditional branch.
3922
3923 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3924
3925 * inf-child.c (inf_child_follow_fork): New parameter
3926 detach_fork.
3927 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3928 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3929 * inferior.h (detach_fork): Remove.
3930 * infrun.c (detach_fork): Adjust comment and make it
3931 static.
3932 (follow_fork): Pass detach_fork parameter to
3933 target_follow_fork.
3934 * linux-nat.c (linux_child_follow_fork): New parameter
3935 detach_fork.
3936 * target.c (target_follow_fork): New parameter detach_fork.
3937 Pass detach_fork as parameter and print its value.
3938 * target.h (struct target_ops) <to_follow_fork>: New int
3939 parameter.
3940 (target_follow_fork): New parameter detach_fork.
3941
3942 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3943
3944 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3945 Replace sec->bfd by sec->the_bfd_section->owner.
3946
3947 2013-09-03 Yao Qi <yao@codesourcery.com>
3948
3949 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3950 from linux_has_shared_address_space.
3951 (linux_has_shared_address_space): Call linux_is_uclinux.
3952 * linux-tdep.h (linux_is_uclinux): Declare.
3953 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3954 linux_is_uclinux.
3955
3956 2013-09-03 Yao Qi <yao@codesourcery.com>
3957
3958 * config/djgpp/fnchange.lst: Remove entry of
3959 i386-interix-nat.c and i386-interix-tdep.c.
3960 * configure.ac: Remove '*-*-interix*'.
3961 * configure: Re-generated.
3962 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3963 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3964 obsolete comments.
3965 * osabi.c (gdb_osabi_names): Remove "Interix".
3966
3967 2013-09-03 Yao Qi <yao@codesourcery.com>
3968
3969 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3970
3971 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3972
3973 * record.h (record_print_flag) <record_print_src_line,
3974 record_print_insn_range>: Rename into ...
3975 (record_print_flag) <record_print_src_line,
3976 record_print_insn_range>: ... this. Update all users.
3977
3978 2013-09-02 Pierre Muller <muller@sourceware.org>
3979
3980 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3981 error code.
3982
3983 2013-09-02 Pierre Muller <muller@sourceware.org>
3984
3985 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3986 by use of plongest function.
3987
3988 2013-09-02 Tristan Gingold <gingold@adacore.com>
3989
3990 * NEWS: Add entry mentioning support for native Windows x64
3991 SEH data.
3992
3993 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3994 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3995 (struct amd64_windows_frame_cache): New struct.
3996 (amd64_windows_w2gdb_regnum): New global.
3997 (pc_in_range, amd64_windows_frame_decode_epilogue)
3998 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3999 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4000 (amd64_windows_frame_this_id): New functions.
4001 (amd64_windows_frame_unwind): New static global.
4002 (amd64_windows_skip_prologue): New function.
4003 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4004 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4005 with amd64_windows_skip_prologue.
4006
4007 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4008
4009 GDB 7.6.1 released.
4010
4011 2013-08-30 Pedro Alves <palves@redhat.com>
4012
4013 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4014 SRC_AND_LOC.
4015
4016 2013-08-30 Pedro Alves <palves@redhat.com>
4017
4018 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4019 warning text.
4020
4021 2013-08-30 Pedro Alves <palves@redhat.com>
4022
4023 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4024 Adjust arguments to print_stack_frame.
4025
4026 2013-08-30 Pedro Alves <palves@redhat.com>
4027
4028 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4029
4030 2013-08-30 Pedro Alves <palves@redhat.com>
4031
4032 * frame.h (show_and_print_stack_frame): Delete declaration.
4033
4034 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4035
4036 PR python/15461
4037 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4038 (archpy_name): Check for valid architecture.
4039 (archpy_disassemble): Ditto.
4040
4041 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4042
4043 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4044 instead of "long long" in call to ptrace64.
4045
4046 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4047
4048 * mi/mi-interp.c (mi_command_loop): Change signature to match
4049 interp_command_loop_ftype.
4050 (mi1_command_loop): Remove.
4051 (mi2_command_loop): Remove.
4052 (mi3_command_loop): Remove.
4053 (mi_interpreter_resume): Remove setting of
4054 deprecated_command_loop_hook.
4055 (_initialize_mi_interp): Set mi_command_loop as the command loop
4056 callback.
4057
4058 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4059
4060 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4061 value_type.
4062
4063 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4064
4065 * value.c (allocate_value_contents): Make static.
4066 * value.h (allocate_value_contents): Remove prototype.
4067
4068 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4069
4070 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4071 of assembling value via allocate_value_lazy and attribute setter.
4072 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4073 assembling value via allocate_value_lazy and attribute setter.
4074 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4075 assembling value via allocate_value_lazy and attribute setter.
4076
4077 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4078
4079 * value.c (value_from_contents_and_address): Replace allocate_value and
4080 memcpy with value_from_contents.
4081
4082 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4083
4084 * python/py-framefilter.c (py_print_frame): Remove usage of
4085 PyString_AsString. Use python_string_to_host_string instead.
4086 Refactor function to work with a string as a new allocation
4087 instead of a pointer.
4088 (py_print_frame): Ditto.
4089 * python/lib/gdb/frames.py (return_list): Cain iterators together
4090 instead of adding them as a list.
4091 (_sort_list): Call return_list, and remove duplicate code.
4092 (execute_frame_filters): Convert iterator to a list with list().
4093 * python/lib/gdb/command/frame_filters.py
4094 (SetFrameFilterPriority._set_filter_priority): Convert priority
4095 attribute to an integer.
4096 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4097 wrapper function __next__.
4098 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4099 define as "str".
4100
4101 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4102
4103 PR python/15752
4104 * python/py-framefilter.c (apply_frame_filter): Check
4105 gdb_python_initialized. Exit if the Python frame-filter code
4106 cannot be initialized.
4107
4108 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4109
4110 PR cli/15842
4111 * top.c (print_gdb_version): Remove erroneous newline after help
4112 text.
4113
4114 2013-08-29 Yao Qi <yao@codesourcery.com>
4115
4116 * varobj.c (install_dynamic_child): Remove trailing space.
4117 Add one blank line after variable declaration.
4118
4119 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 PR gdb/15415
4122 * corefile.c (get_exec_file): Use exec_filename.
4123 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4124 * exec.c (exec_close): Free EXEC_FILENAME.
4125 (exec_file_attach): New variable canonical_pathname. Use
4126 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4127 EXEC_FILENAME.
4128 * exec.h (exec_filename): New.
4129 * inferior.c (print_inferior, inferior_command): Use
4130 PSPACE_EXEC_FILENAME.
4131 * mi/mi-main.c (print_one_inferior): Likewise.
4132 * progspace.c (clone_program_space, print_program_space): Likewise.
4133 * progspace.h (struct program_space): New field pspace_exec_filename.
4134 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4135 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4136
4137 2013-08-28 Will Newton <will.newton@linaro.org>
4138
4139 * common/linux-ptrace.c: Include stdint.h unconditionally.
4140
4141 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 Code cleanup.
4144 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4145
4146 2013-08-28 Yao Qi <yao@codesourcery.com>
4147 Pedro Alves <palves@redhat.com>
4148
4149 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4150 instead of stdio_fileopen.
4151 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4152 .Call stderr_fileopen instead of stdio_fileopen.
4153 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4154 [__MINGW32__] (stderr_file_fputs): New function.
4155 (stderr_fileopen): New function.
4156 * ui-file.h (stderr_fileopen): Declare.
4157
4158 2013-08-27 Doug Evans <dje@google.com>
4159
4160 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4161 (struct dwarf2_per_cu_data): Ditto.
4162 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4163 (process_imported_unit_die): Ditto.
4164 (follow_die_sig_1): Simplify assert.
4165
4166 2013-08-27 Pedro Alves <palves@redhat.com>
4167
4168 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4169 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4170 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4171 windows_xfer_memory directly.
4172 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4173
4174 2013-08-27 Pedro Alves <palves@redhat.com>
4175
4176 * darwin-nat.c (darwin_xfer_memory): Delete.
4177 (_initialize_darwin_inferior): Don't install a
4178 deprecated_xfer_memory method.
4179
4180 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4181 Yao Qi <yao@codesourcery.com>
4182
4183 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4184 (parse_no_frames_option): Remove.
4185 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4186 (mi_cmd_stack_list_args): Adjust.
4187 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4188 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4189 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4190 Caller update.
4191 (list_args_or_locals): New parameter 'skip_unavailable'.
4192 Handle it.
4193 * valprint.c (scalar_type_p): Rename to ...
4194 (val_print_scalar_type_p): ... this. Make extern.
4195 (val_print, value_check_printable): Adjust.
4196 * valprint.h (val_print_scalar_type_p): Declare.
4197 * value.c (value_entirely_unavailable): New function.
4198 * value.h (value_entirely_unavailable): Declare.
4199
4200 * NEWS: Mention the new option "--skip-unavailable" to MI
4201 commands '-stack-list-locals', '-stack-list-arguments' and
4202 '-stack-list-variables'.
4203
4204 2013-08-27 Yao Qi <yao@codesourcery.com>
4205
4206 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4207 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4208 options.
4209 * mi/mi-getopt.c (mi_getopt): Remove.
4210 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4211 'error_on_unknown'.
4212 (mi_getopt): Call mi_getopt_1.
4213 (mi_getopt_silent): New.
4214 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4215
4216 2013-08-26 Doug Evans <dje@google.com>
4217
4218 PR symtab/15885
4219 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4220 .gdb_index is in use.
4221 * symfile.c (reread_symbols): Reset objfile->sf.
4222
4223 * NEWS: Document "mt print objfiles" now takes optional regexp.
4224 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4225 regexp of objfiles to print.
4226 (_initialize_symmisc): Update doc string for "mt print objfiles".
4227
4228 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4229 missing debug info checks.
4230
4231 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4232 Ulrich Weigand <uweigand@de.ibm.com>
4233
4234 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4235 line tables generated by XLC compiled binaries.
4236
4237 2013-08-23 Doug Evans <dje@google.com>
4238
4239 * symmisc.c (dump_symtab): Delete prototype.
4240 (dump_msymbols, dump_objfile): Ditto.
4241 (maintenance_info_symtabs): Mark as dont_repeat.
4242 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4243
4244 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4245 debugging printf to better location.
4246
4247 2013-08-23 Pedro Alves <palves@redhat.com>
4248
4249 * target.c (target_read_live_memory): Change type of 'ret' local
4250 to LONGEST.
4251
4252 2013-08-23 Pedro Alves <palves@redhat.com>
4253
4254 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4255 (remote_read_bytes): Change return type to LONGEST, and adjust to
4256 return a target_xfer_error on error.
4257 (remote_xfer_memory): Delete.
4258 (remote_flash_write): Change type of 'ret' local to LONGEST.
4259 (remote_xfer_partial, remote_xfer_partial): Adjust.
4260 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4261
4262 2013-08-23 Pierre Muller <muller@sourceware.org>
4263
4264 ARI fix: Push # directives to start of line.
4265 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4266
4267 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4268
4269 PR gdb/15501
4270 * breakpoint.c (enable_command, disable_command): Iterate over
4271 all specified breakpoint locations.
4272
4273 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4274
4275 * common/linux-ptrace.c (linux_fork_to_function): Push #
4276 directives to the start of the line.
4277 (linux_check_ptrace_features): Fix warning message to use
4278 the "_" markup.
4279
4280 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4281
4282 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4283 nat/linux-waitpid.h.
4284 (linux-waitpid.o): New object file rule.
4285 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4286 (current_ptrace_options): Moved from linux-nat.c.
4287 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4288 parameters.
4289 (linux_fork_to_function): New function.
4290 (linux_grandchild_function): Likewise.
4291 (linux_child_function): Likewise.
4292 (linux_check_ptrace_features): New function, heavily
4293 based on linux-nat.c:linux_test_for_tracefork.
4294 (linux_enable_event_reporting): New function.
4295 (ptrace_supports_feature): Likewise.
4296 (linux_supports_tracefork): Likewise.
4297 (linux_supports_traceclone): Likewise.
4298 (linux_supports_tracevforkdone): Likewise.
4299 (linux_supports_tracesysgood): Likewise.
4300 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4301 gdbserver/linux-low.c.
4302 (linux_enable_event_reporting): New declaration.
4303 (linux_supports_tracefork): Likewise.
4304 (linux_supports_traceclone): Likewise.
4305 (linux_supports_tracevforkdone): Likewise.
4306 (linux_supports_tracesysgood): Likewise.
4307 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4308 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4309 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4310 * config/arm/linux.mh (NATDEPFILES): Likewise.
4311 * config/i386/linux.mh (NATDEPFILES): Likewise.
4312 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4313 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4314 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4315 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4316 * config/mips/linux.mh (NATDEPFILES): Likewise.
4317 * config/pa/linux.mh (NATDEPFILES): Likewise..
4318 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4319 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4320 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4321 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4322 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4323 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4324 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4325 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4326 ptrace's 4th argument's types.
4327 Check the type of PTRACE_TYPE_ARG4.
4328 * configure: Regenerate.
4329 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4330 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4331 (linux_supports_tracefork_flag): Remove.
4332 (linux_supports_tracesysgood_flag): Likewise.
4333 (linux_supports_tracevforkdone_flag): Likewise.
4334 (current_ptrace_options): Moved to
4335 common/linux-ptrace.c.
4336 (linux_tracefork_child): Remove.
4337 (my_waitpid): Remove.
4338 (linux_test_for_tracefork): Renamed to
4339 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4340 (linux_test_for_tracesysgood): Remove.
4341 (linux_supports_tracesysgood): Remove.
4342 (linux_supports_tracefork): Remove.
4343 (linux_supports_tracevforkdone): Remove.
4344 (linux_enable_tracesysgood): Remove.
4345 (linux_enable_event_reporting): Remove.
4346 (linux_init_ptrace): New function.
4347 (linux_child_post_attach): Call linux_init_ptrace.
4348 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4349 (linux_child_follow_fork): Call linux_supports_tracefork
4350 and linux_supports_tracevforkdone.
4351 (linux_child_insert_fork_catchpoint): Call
4352 linux_supports_tracefork.
4353 (linux_child_insert_vfork_catchpoint): Likewise.
4354 (linux_child_set_syscall_catchpoint): Call
4355 linux_supports_tracesysgood.
4356 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4357 * nat/linux-nat.h: New file.
4358 * nat/linux-waitpid.c: New file.
4359 * nat/linux-waitpid.h: New file.
4360
4361 2013-08-22 Samuel Bronson <naesten@gmail.com>
4362
4363 ARM Linux support for `catch syscall'.
4364 * syscalls/arm-linux.py: New file.
4365 * syscalls/arm-linux.xml: Likewise.
4366 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4367 (arm_linux_init_abi): Register the new function and syscall xml file.
4368 * data-directory/Makefile.in: Install the new syscall xml file.
4369 * NEWS: Brag about this.
4370
4371 2013-08-22 Pedro Alves <palves@redhat.com>
4372
4373 PR gdb/15871
4374 * corefile.c (target_xfer_memory_error): New function.
4375 (memory_error): Defer EIO to target_memory_error.
4376 (read_memory): Use target_xfer_partial, and handle finer-grained
4377 target xfer errors.
4378 * target.c (target_xfer_error_to_string): New function.
4379 (memory_xfer_partial_1): If memory is known to be
4380 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4381 (target_xfer_partial): Make extern.
4382 * target.h (enum target_xfer_error): New enum.
4383 (target_xfer_error_to_string): Declare function.
4384 (target_xfer_partial): Declare function.
4385 (struct target_ops) <xfer_partial>: Adjust describing comment.
4386
4387 2013-08-22 Alan Modra <amodra@gmail.com>
4388
4389 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4390 * configure.tgt: Likewise as targets.
4391
4392 2013-08-20 Doug Evans <dje@google.com>
4393
4394 * buildsym.c (subfile_stack): Move here from buildsym.h.
4395 (pending_macros): Ditto.
4396 (get_macro_table): New function.
4397 (buildsym_init): Initialize subfile_stack.
4398 * coffread.c (type_vector,type_vector_length): Moved here from
4399 buildsym.h.
4400 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4401 (coff_symtab_read): Use it.
4402 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4403 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4404 with call to get_macro_table.
4405 * stabsread.c (type_vector,type_vector_length): Moved here from
4406 buildsym.h.
4407 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4408 * buildsym.h (get_macro_table): Declare.
4409
4410 2013-08-20 Tom Tromey <tromey@redhat.com>
4411
4412 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4413 Update.
4414 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4415
4416 2013-08-20 Doug Evans <dje@google.com>
4417
4418 * blockframe.c: Remove #include "psymtab.h".
4419 * cp-support.c: Ditto.
4420 * source.c: Ditto.
4421 * stack.c: Ditto.
4422
4423 2013-08-20 Tom Tromey <tromey@redhat.com>
4424
4425 PR python/15816:
4426 * exceptions.h (return_mask): Now an enum.
4427 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4428 enum constants.
4429
4430 2013-08-20 Tom Tromey <tromey@redhat.com>
4431
4432 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4433 get_objfile_arch.
4434 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4435 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4436 * jit.c (jit_object_close_impl): Update.
4437 * jv-lang.c (get_dynamics_objfile): Update.
4438 * linespec.c (add_minsym): Use get_dynamics_objfile.
4439 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4440 (allocate_objfile): Don't initialize 'gdbarch' field.
4441 (get_objfile_arch): Update.
4442 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4443 moved from...
4444 (struct objfile) <gdbarch>: ... here. Remove.
4445 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4446 get_objfile_arch.
4447 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4448
4449 2013-08-20 Alan Modra <amodra@gmail.com>
4450
4451 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4452 for IBM long double nan and inf.
4453 (floatformat_is_negative, floatformat_classify,
4454 floatformat_mantissa): Similarly.
4455 (floatformat_ieee_single, floatformat_ieee_double,
4456 floatformat_ieee_quad, floatformat_arm_ext,
4457 floatformat_ia64_spill): Delete unused vars.
4458 (_initialize_doublest): Delete unused function.
4459 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4460 little-endian variants of floatformat_ibm_long_double.
4461
4462 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4463
4464 * Makefile.in (SFILES): Remove common/target-common.c and
4465 add target/waitstatus.c.
4466 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4467 target/resume.h, target/wait.h and target/waitstatus.h.
4468 (COMMON_OBS): Remove target-common.o and add
4469 waitstatus.o.
4470 (target-common.o): Remove.
4471 (waitstatus.o): New target object file.
4472 * common/target-common.c: Move contents to
4473 target/waitstatus.c and remove.
4474 * common/target-common.h: Move contents to other files and
4475 remove.
4476 (enum resume_kind: Move to target/resume.h.
4477 (TARGET_WNOHANG): Move to target/wait.h.
4478 (enum target_waitkind): Move to target/waitstatus.h.
4479 (struct target_waitstatus): Likewise.
4480 * target.h: Do not include target-common.h and
4481 include target/resume.h, target/wait.h and
4482 target/waitstatus.h.
4483 * target/resume.h: New file.
4484 * target/wait.h: New file.
4485 * target/waitstatus.h: New file.
4486 * target/waitstatus.c: New file.
4487
4488 2013-08-19 Pedro Alves <palves@redhat.com>
4489
4490 * linux-nat.c (linux_test_for_tracefork)
4491 (linux_test_for_tracesysgood, linux_child_follow_fork)
4492 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4493 (linux_nat_wait_1): Extend comment.
4494 (linux_async_pipe): Add comment.
4495
4496 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4497
4498 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4499 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4500 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4501 Update to account for fact that PC is now a pseudo-register.
4502 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4503 cases for RL78_PC_REGNUM.
4504
4505 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4506
4507 PR cli/15841
4508 * top.c (quit_force): Skip writing history file
4509 if input is not from terminal.
4510
4511 2013-08-14 Tom Tromey <tromey@redhat.com>
4512
4513 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4514 resultthreadlist>: New fields.
4515 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4516 (remote_get_threadlist, remote_threadlist_iterator): Use
4517 new fields. Remove static variables.
4518
4519 2013-08-14 Tom Tromey <tromey@redhat.com>
4520
4521 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4522 remote_watch_data_address>: New fields.
4523 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4524 (process_stop_reply, remote_wait_as)
4525 (remote_check_watch_resources, remote_stopped_data_address): Update.
4526
4527 2013-08-14 Tom Tromey <tromey@redhat.com>
4528
4529 * remote.c (struct remote_state) <async_client_callback,
4530 async_client_context>: New fields.
4531 (async_client_callback, async_client_context): Remove.
4532 (remote_async_serial_handler, remote_async): Update.
4533
4534 2013-08-14 Tom Tromey <tromey@redhat.com>
4535
4536 * remote.c (sizeof_pkt): Remove.
4537 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4538
4539 2013-08-14 Tom Tromey <tromey@redhat.com>
4540
4541 * remote.c (struct remote_state) <use_threadinfo_query,
4542 use_threadextra_query>: New fields.
4543 (remote_threads_info, remote_threads_extra_info)
4544 (remote_open_1): Update.
4545
4546 2013-08-14 Tom Tromey <tromey@redhat.com>
4547
4548 * remote.c (struct remote_state) <finished_object,
4549 finished_annex, finished_offset>: New fields.
4550 (remote_read_qxfer): Use remote_state fields; remove static
4551 variables.
4552
4553 2013-08-14 Tom Tromey <tromey@redhat.com>
4554
4555 * remote.c (struct remote_state) <last_sent_step>:
4556 New field.
4557 (last_sent_step): Remove.
4558 (remote_resume, remote_wait_as): Update.
4559
4560 2013-08-14 Tom Tromey <tromey@redhat.com>
4561
4562 * remote.c (struct remote_state) <last_sent_signal>:
4563 New field.
4564 (last_sent_signal): Remove.
4565 (new_remote_state, remote_resume, remote_wait_as): Update.
4566
4567 2013-08-14 Tom Tromey <tromey@redhat.com>
4568
4569 * remote.c (struct remote_state) <last_program_signals_packet>:
4570 New field.
4571 (last_program_signals_packet): Remove.
4572 (remote_program_signals, remote_open_1): Update.
4573
4574 2013-08-14 Tom Tromey <tromey@redhat.com>
4575
4576 * remote.c (struct remote_state) <last_pass_packet>:
4577 New field.
4578 (last_pass_packet): Remove.
4579 (remote_pass_signals, remote_open_1): Update.
4580
4581 2013-08-14 Tom Tromey <tromey@redhat.com>
4582
4583 * remote.c (struct remote_state) <remote_traceframe_number>:
4584 New field.
4585 (remote_traceframe_number): Remove.
4586 (new_remote_state, remote_open_1, set_remote_traceframe)
4587 (remote_trace_find): Update.
4588
4589 2013-08-14 Tom Tromey <tromey@redhat.com>
4590
4591 * remote.c (struct remote_state) <general_thread, continue_thread>:
4592 New fields.
4593 (general_thread, continue_thread): Remove.
4594 (record_currthread, set_thread, set_general_process)
4595 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4596 (extended_remote_mourn_1): Update.
4597
4598 2013-08-14 Tom Tromey <tromey@redhat.com>
4599
4600 * remote.c (struct remote_state) <remote_desc>: New field.
4601 (remote_desc): Remove.
4602 (remote_threads_info, remote_threads_extra_info, remote_close)
4603 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4604 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4605 (remote_hostio_send_command, remote_file_put, remote_file_get)
4606 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4607 (remote_async, remote_new_objfile, set_range_stepping): Update.
4608
4609 2013-08-14 Tom Tromey <tromey@redhat.com>
4610
4611 * remote.c (remote_state): Now a pointer.
4612 (get_remote_state_raw): Update.
4613 (new_remote_state): New function.
4614 (_initialize_remote): Use new_remote_state.
4615
4616 2013-08-14 Tom Tromey <tromey@redhat.com>
4617
4618 * remote.c (remote_protocol_features): Now const.
4619
4620 2013-08-14 Tom Tromey <tromey@redhat.com>
4621
4622 * remote.c (crc32_table, crc32): Remove.
4623 (remote_verify_memory): Use xcrc32.
4624
4625 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4626
4627 * value.h (create_internalvar_type_lazy): Adjust prototype
4628 declaration.
4629
4630 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4631
4632 * common/format.c (parse_format_string): Don't allow '#' flag for
4633 pointer arguments in format string.
4634
4635 2013-08-13 Pierre Muller <muller@sourceware.org>
4636
4637 * utils.c (init_page_info): Only call tgetnum function
4638 if rl_get_screen_size did not return useful values.
4639
4640 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4641
4642 PR breakpoints/15117
4643 * linespec.c (linespec_parse_basic): Check for convenience
4644 variable or history value while parsing.
4645
4646 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4647
4648 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4649 AVR.
4650 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4651 different signals between the generic Linux kernel implementation
4652 and AVR's.
4653 (avr_linux_gdb_signal_from_target): Delete.
4654 (avr_linux_gdb_signal_to_target): Delete.
4655 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4656
4657 2013-08-09 Doug Evans <dje@google.com>
4658
4659 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4660 entries.
4661
4662 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4663
4664 * linux-tdep.c: Define enum with generic signal numbers.
4665 (linux_gdb_signal_from_target): New function.
4666 (linux_gdb_signal_to_target): Likewise.
4667 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4668 methods to the functions above.
4669 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4670 (linux_gdb_signal_to_target): Likewise.
4671 * alpha-linux-tdep.c: Define new enum with signals different
4672 from generic Linux kernel.
4673 (alpha_linux_gdb_signal_from_target): New function.
4674 (alpha_linux_gdb_signal_to_target): Likewise.
4675 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4676 with the functions mentioned above.
4677 * avr-tdep.c: Define enum with differences between Linux kernel
4678 and AVR signals.
4679 (avr_linux_gdb_signal_from_target): New function.
4680 (avr_linux_gdb_signal_to_target): Likewise.
4681 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4682 the functions mentioned above.
4683 * sparc-linux-tdep.c: Define enum with differences between SPARC
4684 and generic Linux kernel signal numbers.
4685 (sparc32_linux_gdb_signal_from_target): New function.
4686 (sparc32_linux_gdb_signal_to_target): Likewise.
4687 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4688 to the functions defined above.
4689 * xtensa-linux-tdep.c: Define enum with differences between
4690 Xtensa and Linux kernel generic signals.
4691 (xtensa_linux_gdb_signal_from_target): New function.
4692 (xtensa_linux_gdb_signal_to_target): Likewise.
4693 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4694 to the functions defined above.
4695 * mips-linux-tdep.c: Define enum with differences between
4696 signals in MIPS and Linux kernel generic ones.
4697 (mips_gdb_signal_to_target): New function.
4698 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4699 only different signals from the Linux kernel generic.
4700 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4701 the functions defined above.
4702 * mips-linux-tdep.h (enum mips_signals): Remove.
4703
4704 2013-08-09 Pedro Alves <palves@redhat.com>
4705
4706 * avr-tdep.c (XMALLOC): Delete macro.
4707 * cli/cli-dump.c (XMALLOC): Delete macro.
4708
4709 2013-08-09 Pedro Alves <palves@redhat.com>
4710
4711 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4712 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4713 (fopen_with_cleanup, add_dump_command): Make static.
4714 * cli/cli-dump.h: Delete file.
4715 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4716 cli/cli-dump.h.
4717
4718 2013-08-09 Pedro Alves <palves@redhat.com>
4719
4720 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4721 error message.
4722
4723 2013-08-09 Pedro Alves <palves@redhat.com>
4724
4725 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4726 error message.
4727
4728 2013-08-09 Pedro Alves <palves@redhat.com>
4729
4730 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4731 (gcore_command): Use tilde_expand here, and when showing the
4732 filename to the user, show the expanded version.
4733
4734 2013-08-09 Yao Qi <yao@codesourcery.com>
4735
4736 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4737 'entryval' is set.
4738
4739 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4740
4741 * gcore.c (create_gcore_bfd): Use tilde_expand.
4742
4743 2013-08-08 Yao Qi <yao@codesourcery.com>
4744
4745 * frame.h (read_frame_local): Declare.
4746 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4747 read_frame_local.
4748 * stack.c (read_frame_local): New.
4749
4750 2013-08-08 Yao Qi <yao@codesourcery.com>
4751
4752 * mi/mi-cmd-stack.c: Update comments to function
4753 list_args_or_locals.
4754
4755 2013-08-07 Tom Tromey <tromey@redhat.com>
4756
4757 PR symtab/15028:
4758 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4759 (process_psymtab_comp_unit_reader): Use it.
4760 (process_psymtab_comp_unit): Update. Add "pretend_language"
4761 argument.
4762 (dwarf2_build_psymtabs_hard): Update.
4763 (scan_partial_symbols): Pass CU's language to
4764 process_psymtab_comp_unit.
4765
4766 2013-08-07 Tom Tromey <tromey@redhat.com>
4767
4768 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4769 (dwarf2_gdb_index_functions): Update.
4770 * psymtab.c (find_symbol_file_from_partial): Remove.
4771 (psym_functions): Update.
4772 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4773 Remove.
4774
4775 2013-08-07 Tom Tromey <tromey@redhat.com>
4776
4777 * symfile.c (set_initial_language): Look up "main" symbol
4778 and use its language.
4779 * symtab.c (find_main_filename): Remove.
4780 * symtab.h (find_main_filename): Remove.
4781
4782 2013-08-07 Tom Tromey <tromey@redhat.com>
4783
4784 * dwarf2read.c (recursively_compute_inclusions): Add
4785 "immediate_parent" argument. Set symtab's "user" field
4786 if not set.
4787 (compute_symtab_includes): Update.
4788
4789 2013-08-07 Tom Tromey <tromey@redhat.com>
4790
4791 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4792 when adding label symbols.
4793
4794 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4795 Ulrich Weigand <uweigand@de.ibm.com>
4796
4797 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4798 * configure.host (powerpc64-*-aix*): Likewise.
4799
4800 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4801 Ulrich Weigand <uweigand@de.ibm.com>
4802
4803 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4804 is defined.
4805 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4806 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4807 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4808 * configure.ac: Check for ptrace64.
4809 * configure, config.in: Regenerate.
4810
4811 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4812 Ulrich Weigand <uweigand@de.ibm.com>
4813
4814 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4815 Call ptrace64 instead of ptrace if defined.
4816 Add macro addr_ptr to take care of ptrace address argument.
4817 (pdc_read_regs): Likewise.
4818 (pdc_write_regs): Likewise.
4819 (aix_thread_resume): Likewise.
4820 (fetch_regs_kernel_thread): Likewise.
4821 (store_regs_kernel_thread): Likewise.
4822
4823 2013-08-07 Anton Blanchard <anton@samba.org>
4824
4825 * MAINTAINERS: Add myself to Write After Approval.
4826
4827 2013-08-05 Tom Tromey <tromey@redhat.com>
4828
4829 * aix-thread.c (_initialize_aix_thread): Use
4830 complete_target_initialization.
4831 * bsd-uthread.c (_initialize_bsd_uthread): Use
4832 complete_target_initialization.
4833 * dec-thread.c (_initialize_dec_thread): Use
4834 complete_target_initialization.
4835 * ravenscar-thread.c (_initialize_ravenscar): Use
4836 complete_target_initialization.
4837 * sol-thread.c (_initialize_sol_thread): Use
4838 complete_target_initialization.
4839 * spu-multiarch.c (_initialize_spu_multiarch): Use
4840 complete_target_initialization.
4841
4842 2013-08-05 Tom Tromey <tromey@redhat.com>
4843
4844 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4845 * ada-lang.c (ada_lookup_simple_minsym): Return
4846 bound_minimal_symbol.
4847 * ada-lang.h (ada_lookup_simple_minsym): Update.
4848 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4849 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4850 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4851 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4852 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4853 * minsyms.c (msymbol_objfile): Remove.
4854 (lookup_minimal_symbol_internal): New function, from
4855 lookup_minimal_symbol.
4856 (lookup_minimal_symbol): Rewrite using
4857 lookup_minimal_symbol_internal.
4858 (lookup_bound_minimal_symbol): New function.
4859 * minsyms.h (msymbol_objfile): Remove.
4860 (lookup_bound_minimal_symbol): Declare.
4861 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4862 * parse.c (write_exp_msymbol): Change parameter to a
4863 bound_minimal_symbol.
4864 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4865 * parser-defs.h (write_exp_msymbol): Update.
4866 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4867 * symfile.c (simple_read_overlay_table): Use
4868 lookup_bound_minimal_symbol.
4869 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4870 (search_symbols): Likewise.
4871 (print_msymbol_info): Take a bound_minimal_symbol argument.
4872 (symtab_symbol_info, rbreak_command): Update.
4873 * symtab.h (struct symbol_search) <msymbol>: Change type
4874 to bound_minimal_symbol.
4875 * valops.c (find_function_in_inferior): Use
4876 lookup_bound_minimal_symbol.
4877 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4878
4879 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 Code cleanup.
4882 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4883 to ...
4884 (async_cleanup_sigint_signal_handler): ... this.
4885 (initialize_sigint_signal_handler): Remove declaration.
4886 (handle_remote_sigint): Rename the declaration to ...
4887 (async_handle_remote_sigint): ... this.
4888 (handle_remote_sigint_twice): Rename the declaration to ...
4889 (async_handle_remote_sigint_twice): ... this.
4890 (async_remote_interrupt, async_remote_interrupt_twice)
4891 (remote_interrupt): Remove the declarations.
4892 (remote_interrupt_twice): Rename the declaration ...
4893 (sync_remote_interrupt_twice): ... this.
4894 (sigint_remote_twice_token): Rename the variable to ...
4895 (async_sigint_remote_twice_token): ... this.
4896 (sigint_remote_token): Rename the variable to ...
4897 (async_sigint_remote_token): ... this.
4898 (initialize_sigint_signal_handler): Rename the function to ...
4899 (async_initialize_sigint_signal_handler): ... this. Update the name
4900 inside.
4901 (handle_remote_sigint): Rename the function to ...
4902 (async_handle_remote_sigint): ... this. Update the names inside.
4903 (handle_remote_sigint_twice): Rename the function to ...
4904 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4905 (cleanup_sigint_signal_handler): Rename the function to ...
4906 (async_cleanup_sigint_signal_handler): ... this.
4907 (remote_interrupt): Rename the function to ...
4908 (sync_remote_interrupt): this. Update the names inside.
4909 (remote_interrupt_twice): Rename the function to ...
4910 (sync_remote_interrupt_twice): this. Update the names inside.
4911 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4912 (_initialize_remote): Update the names inside.
4913
4914 2013-08-02 Tom Tromey <tromey@redhat.com>
4915
4916 PR symtab/15719:
4917 * breakpoint.c (update_watchpoint, watchpoint_check)
4918 (watch_command_1): Update.
4919 * eval.c (fetch_subexp_value): Add "preserve_errors"
4920 parameter.
4921 * ppc-linux-nat.c (check_condition): Update.
4922 * value.h (fetch_subexp_value): Update.
4923
4924 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4925
4926 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4927 add_file_handler.
4928
4929 2013-08-01 Doug Evans <dje@google.com>
4930
4931 PR symtab/15691
4932 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4933 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4934 Add assert of sig_entry->dwo_unit == NULL.
4935 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4936 had already been read.
4937 (read_signatured_type): Set per_cu.tu_read.
4938
4939 PR symtab/15695
4940 * valops.c (value_struct_elt): Add missing call to check_typedef.
4941 (value_find_oload_method_list): Ditto.
4942
4943 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4944 effectively, struct symbol_search **.
4945 (make_cleanup_free_search_symbols): Change arg to struct
4946 symbol_search **. All callers updated.
4947 (compare_search_syms): Compare symtab file name and block as well.
4948 (search_symbols_equal): New function.
4949 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4950 New args new_head, new_tail. Result is now void. Remove dups after
4951 sorting the symbols.
4952 (search_symbols): Sort all found symbols once, after all have been
4953 found, and remove duplicates. Simplify cleanup tracking of result.
4954 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4955
4956 Further workarounds for binutils/15021.
4957 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4958 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4959 Watch for duplicate symtabs coming from type units.
4960 (compute_symtab_includes): Update call to
4961 recursively_compute_inclusions. Build vector of included symtabs
4962 instead of per_cus.
4963 * symtab.h (symtab_ptr): New typedef.
4964 (DEF_VEC_P (symtab_ptr)): New VEC type.
4965 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4966 instead.
4967
4968 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4969
4970 * cli/cli-script.c (script_from_file): Remove use of
4971 error_pre_print.
4972 * main.c (captured_main): Remove use of error_pre_print and
4973 quit_pre_print.
4974 * utils.c (error_pre_print, quit_pre_print): Remove.
4975 * utils.h (error_pre_print, quit_pre_print): Likewise.
4976
4977 2013-08-01 Yao Qi <yao@codesourcery.com>
4978
4979 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4980 with mi_getopt.
4981 (mi_cmd_stack_list_variables): Likewise.
4982
4983 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4984
4985 * exceptions.c (deprecated_throw_reason): Remove.
4986 * exceptions.h (deprecated_throw_reason): Remove.
4987
4988 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4989
4990 * remote-mips.c (mips_error): Replace use of
4991 deprecated_throw_reason with throw_verror. Use the error message
4992 passed to mips_error as the error message for throw_verror.
4993
4994 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4995
4996 * monitor.c (monitor_interrupt_query): Replace use of
4997 deprecated_throw_reason with quit.
4998 * nto-procfs.c (interrupt_query): Likewise.
4999 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5000 * remote-mips.c (mips_kill): Likewise.
5001 * remote.c (interrupt_query): Likewise.
5002
5003 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5004
5005 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5006 with call to fatal.
5007
5008 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5009 Yao Qi <yao@codesourcery.com>
5010
5011 * tracepoint.c (trace_dump_command): Select the current frame.
5012
5013 2013-07-30 Doug Evans <dje@google.com>
5014
5015 * dwarf2read.c (process_queue): Add type signature to debug output.
5016
5017 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5018
5019 * value.c (value_fetch_lazy): Mark optimized out values as such
5020 rather than raising an error.
5021
5022 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5023
5024 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5025 before checking which bits of the parent, not the child, value are
5026 valid.
5027
5028 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5029
5030 PR gdb/15715
5031 * top.c: Include "filenames.h".
5032 (set_history_filename): New function.
5033 (init_main): Install it as set hook of the "set history filename"
5034 command.
5035
5036 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5037
5038 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5039 attribute parameter.
5040 (dwarf2_const_value_data): Constify struct attribute parameter.
5041 (dwarf2_const_value): Constify struct attribute parameter.
5042 (dwarf2_const_value_attr): Constify struct attribute parameter.
5043 (lookup_die_type): Constify struct attribute parameter.
5044 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5045 (follow_die_ref_or_sig): Constify struct attribute parameter.
5046 (follow_die_ref): Constify struct attribute parameter.
5047 (follow_die_sig): Constify struct attribute parameter.
5048 (get_DW_AT_signature_type): Constify struct attribute parameter.
5049 (get_type_unit_group): Constify struct attribute parameter.
5050 (fill_in_loclist_baton): Constify struct attribute parameter.
5051 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5052 (type_unit_group): Constify struct attribute parameter.
5053
5054 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5055
5056 * dwarf2read.c (attr_form_is_block): Make argument const.
5057 (attr_form_is_section_offset): Make argument const.
5058 (attr_form_is_constant): Make argument const.
5059 (attr_form_is_ref): Make argument const.
5060
5061 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5062
5063 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5064 All uses updated.
5065 (attr_form_is_ref): Moved below attr_form_is_constant.
5066
5067 2013-07-29 Doug Evans <dje@google.com>
5068
5069 * main.c (captured_command_loop): Tweak comment.
5070
5071 * target.c (target_async_permitted_1): Fix comment.
5072
5073 * symtab.c (iterate_over_some_symtabs): Add comment.
5074
5075 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5076
5077 2013-07-27 Yao Qi <yao@codesourcery.com>
5078
5079 * NEWS: Mention that GDBserver now supports hardware
5080 watchpoints on the MIPS GNU/Linux target.
5081
5082 2013-07-27 Yao Qi <yao@codesourcery.com>
5083
5084 * Makefile.in (HFILES_NO_SRCDIR): Add
5085 common/mips-linux-watch.h.
5086 (mips-linux-watch.o): New rule.
5087 * common/mips-linux-watch.c: New.
5088 * common/mips-linux-watch.h: New.
5089 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5090 * mips-linux-nat.c: Include mips-linux-watch.h.
5091 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5092 to common/mips-linux-watch.h.
5093 (MAX_DEBUG_REGISTER): Likewise.
5094 (enum pt_watch_style): Likewise.
5095 (struct mips32_watch_regs): Likewise.
5096 (struct mips64_watch_regs): Likewise.
5097 (struct pt_watch_regs): Likewise.
5098 (struct mips_watchpoint): Likewise.
5099 (mips_linux_watch_get_irw_mask): Move to
5100 common/mips-linux-watch.c.
5101 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5102 (mips_linux_watch_get_watchlo): Likewise.
5103 (mips_linux_watch_set_watchlo): Likewise.
5104 (mips_linux_watch_get_watchhi): Likewise.
5105 (mips_linux_watch_set_watchhi): Likewise.
5106 (mips_linux_read_watch_registers): Likewise.
5107 (mips_linux_watch_type_to_irw): Likewise.
5108 (mips_linux_stopped_data_address, fill_mask): Likewise.
5109 (mips_linux_watch_try_one_watch): Likewise.
5110 (mips_linux_watch_populate_regs): Likewise.
5111
5112 2013-07-27 Yao Qi <yao@codesourcery.com>
5113
5114 * mips-linux-nat.c (get_irw_mask): Rename to ...
5115 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5116 'set' to 'n'. Update function comment. All callers changed.
5117 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5118 function comment. All callers changed.
5119 (get_num_valid): Rename to ...
5120 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5121 'set' to 'n'. Update function comment. All callers changed.
5122 (get_watchlo): Rename to ...
5123 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5124 'set' to 'n'. Update function comment. All callers changed.
5125 (set_watchlo): Rename to ...
5126 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5127 'set' to 'n'. Update function comment. All callers changed.
5128 (get_watchhi): Rename to ...
5129 (mips_linux_watch_get_watchhi): ... this. Update function
5130 comment. All callers changed.
5131 (set_watchhi): Rename to ...
5132 (mips_linux_watch_set_watchhi): ... this. Update function
5133 comment. All callers changed.
5134 (mips_linux_read_watch_registers): Update function comment.
5135 Add new parameters 'lwpid', 'watch_readback', and
5136 'watch_readback_valid'. Update.
5137 (type_to_irw): Rename to ...
5138 (mips_linux_watch_type_to_irw): ... this. Update function
5139 comment. All callers changed.
5140 (fill_mask): Update function comment.
5141 (try_one_watch): Rename to ...
5142 (mips_linux_watch_try_one_watch): ... this. Change the type
5143 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5144 (populate_regs_from_watches): Rename to ...
5145 (mips_linux_watch_populate_regs): ... this. Add parameter
5146 'current_watches'. All callers changed.
5147
5148 2013-07-27 Yao Qi <yao@codesourcery.com>
5149
5150 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5151 the code.
5152 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5153 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5154 (struct pt_watch_regs): Likewise.
5155 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5156 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5157 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5158 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5159 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5160
5161 2013-07-27 Yao Qi <yao@codesourcery.com>
5162
5163 * breakpoint.h: Include break-common.h.
5164 (enum target_hw_bp_type): Move to ...
5165 * common/break-common.h: ... here. New.
5166
5167 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5168
5169 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5170 process group regardless of having tty on stdin.
5171
5172 2013-07-25 Doug Evans <dje@google.com>
5173
5174 * linux-fork.h (detach_fork): Delete.
5175
5176 2013-07-25 Tom Tromey <tromey@redhat.com>
5177
5178 PR remote/15256, PR remote/15266:
5179 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5180 * monitor.c (monitor_detach): Use unpush_target.
5181 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5182 * remote-mips.c (mips_detach): Use unpush_target. Don't
5183 call mips_close.
5184 * remote-sim.c (gdbsim_detach): Use unpush_target.
5185 * target.c (pop_target): Remove.
5186 (pop_all_targets_above): Don't call target_close.
5187 (target_close): Assert that the target is unpushed.
5188 * target.h (pop_target): Don't declare.
5189 * tracepoint.c (tfile_open): Use unpush_target.
5190
5191 2013-07-25 Tom Tromey <tromey@redhat.com>
5192
5193 * linux-thread-db.c (init_thread_db_ops): Call
5194 complete_target_initialization.
5195 (_initialize_thread_db): Don't call add_target.
5196 * target.c (complete_target_initialization): New function.
5197 (add_target_with_completer): Call it.
5198 * target.h (complete_target_initialization): Declare.
5199
5200 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5201
5202 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5203 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5204 (HPPANBSD_SIZEOF_GREGS): New define.
5205 (hppaobsd_supply_gregset): Handle additional registers.
5206 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5207 we provide more registers now.
5208 (hppabsd_supply_gregset): Supply additional registers.
5209 (hppabsd_collect_gregset): Collect additional registers.
5210
5211 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5212
5213 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5214 (hppabsd_dwarf2_frame_init_reg): New function.
5215 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5216
5217 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5218
5219 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5220 'z' format code. Remove error for optimized out values, standard
5221 code will handle these fine.
5222
5223 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5224
5225 * NEWS: Mention new 'z' formatter.
5226 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5227 (_initialize_printcmd): Mention 'z' formatter in help text of the
5228 'x' command.
5229
5230 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5231
5232 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5233 formatting.
5234
5235 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5236
5237 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5238 interface can evaluate arguments. Fallback to the old mode if it
5239 cannot.
5240 (create_exception_master_breakpoint): Likewise.
5241 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5242 (struct sym_probe_fns elf_probe_fns): Export function above to the
5243 probe interface.
5244 * probe.c (can_evaluate_probe_arguments): New function.
5245 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5246 function pointer.
5247 (can_evaluate_probe_arguments): New function prototype.
5248 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5249 probe interface can evaluate arguments. Fallback to the old mode
5250 if it cannot.
5251 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5252 interface can evaluate arguments. Warning the user if it cannot.
5253 (stap_can_evaluate_probe_arguments): New function.
5254 (struct probe_ops stap_probe_ops): Export function above to the
5255 probe interface.
5256 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5257 New function pointer.
5258
5259 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5260
5261 * Makefile.in (SFILES): Add common/target-common.c.
5262 Add common/target-common.h to headers.
5263 (COMMON_OBS): Add target-common.o.
5264 (target-common.o): New target.
5265 * linux-nat.h (resume_kind): Move to common/target-common.h.
5266 * target.c (target_waitstatus_to_string): Move to
5267 common/target-common.c.
5268 * target.h: Include target-common.h.
5269 (target_waitkind): Move to common/target-common.h.
5270 (target_waitstatus): Likewise.
5271 (TARGET_WNOHANG): Likewise.
5272 * common/target-common.c: New file.
5273 * common/target-common.h: New file.
5274
5275 2013-07-24 Doug Evans <dje@google.com>
5276
5277 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5278 a warning.
5279
5280 2013-07-23 Yao Qi <yao@codesourcery.com>
5281
5282 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5283 parameter 'gdbarch'.
5284 (i386_stack_tramp_frame_sniffer): Caller update.
5285 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5286 parameter 'gdbarch' and 'target'.
5287 (i386_linux_core_read_description): Caller update.
5288 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5289 Likewise.
5290 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5291 declaration.
5292
5293 2013-07-23 Tom Tromey <tromey@redhat.com>
5294
5295 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5296 2013-07-22.
5297
5298 2013-07-22 Doug Evans <dje@google.com>
5299
5300 * exec.h (remove_target_sections): Delete arg abfd.
5301 * exec.c (exec_close): Update call to remove_target_sections.
5302 (remove_target_sections): Delete arg abfd.
5303 * solib.c (update_solib_list): Ditto.
5304 (reload_shared_libraries_1): Ditto.
5305 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5306 * target.h (struct target_section): Rename key to owner.
5307 All uses updated.
5308
5309 2013-07-22 Tom Tromey <tromey@redhat.com>
5310
5311 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5312
5313 2013-07-22 Tom Tromey <tromey@redhat.com>
5314
5315 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5316 Simplify cleanup handling.
5317
5318 2013-07-22 Tom Tromey <tromey@redhat.com>
5319
5320 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5321 on all return paths.
5322
5323 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5324
5325 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5326 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5327 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5328
5329 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5330
5331 * top.c (print_gdb_version): Add help, apropos description and
5332 url to online documentation.
5333
5334 2013-07-19 Hui Zhu <hui@codesourcery.com>
5335
5336 PR gdb/15692
5337 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5338
5339 2013-07-19 Yao Qi <yao@codesourcery.com>
5340
5341 * target.c (update_current_target): Change the default action
5342 of 'to_traceframe_info' from tcomplain to return_zero.
5343 * target.h (struct target_ops) <to_traceframe_info>: Add more
5344 comments.
5345 * valops.c (read_value_memory): Call
5346 traceframe_available_memory unconditionally.
5347
5348 2013-07-18 Yao Qi <yao@codesourcery.com>
5349
5350 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5351 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5352 symbol without prefix. If found, set its type to
5353 'mst_solib_trampoline'.
5354
5355 2013-07-17 Doug Evans <dje@google.com>
5356
5357 * NEWS: Mention "set print raw frame-arguments".
5358 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5359 * stack.c (print_raw_frame_arguments): New static global.
5360 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5361 (_initialize_stack): New command "set/show print raw frame-arguments".
5362 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5363 (set_print_raw, show_print_raw): New functions.
5364 (_initialize_valprint): New prefix command "set/show print raw".
5365 * valprint.h (value_print_options): Improve comments.
5366
5367 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5368 of all *list variables.
5369
5370 * gdbcmd.h (togglelist): Delete.
5371 * cli/cli-cmds.c (togglelist): Delete.
5372 (init_cmd_lists): Update.
5373 * cli/cli-cmds.h (togglelist): Delete.
5374
5375 2013-07-17 Tom Tromey <tromey@redhat.com>
5376
5377 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5378 dwarf2_per_objfile.
5379
5380 2013-07-16 Doug Evans <dje@google.com>
5381
5382 * nto-tdep.c (nto_relocate_section_addresses): Update,
5383 target_section.bfd deleted.
5384 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5385 * s390-tdep.c (s390_load): Ditto.
5386 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5387
5388 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5389
5390 * common/format.c (parse_format_string): Add checks for NULL
5391 character before calling strchr.
5392
5393 2013-07-16 Doug Evans <dje@google.com>
5394
5395 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5396 temp_pathname argument.
5397 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5398 when opening the file fails.
5399
5400 * target.h (struct target_section): Delete member bfd.
5401 All users updated to use the_bfd_section->owner instead.
5402 * exec.c (add_to_section_table): Assert bfd is expected value.
5403 Remove initialization of target_section.bfd.
5404 (remove_target_sections): Update.
5405 (section_table_available_memory): Update.
5406 (section_table_xfer_memory_partial): Update.
5407 (print_section_info): Update.
5408 (exec_set_section_address): Update.
5409 * record-full.c (record_full_core_xfer_partial): Update.
5410 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5411 * solib-target.c (solib_target_relocate_section_addresses): Update.
5412 * symfile.c (build_section_addr_info_from_section_table): Update.
5413 * target.c (memory_xfer_live_readonly_partial): Update.
5414 (memory_xfer_partial_1): Update.
5415
5416 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5417
5418 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5419 now available for embedded (BookE) and server (BookS) processors,
5420 correct mentions of 'booke' and adjust comments accordingly in order to
5421 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5422 (have_ptrace_booke_interface): Rename function and variable
5423 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5424 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5425 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5426 'hwdebug_point_cmp'. Update all uses.
5427 (booke_find_thread_points_by_tid): Rename function
5428 'booke_find_thread_points_by_tid' to
5429 'hwdebug_find_thread_points_by_tid'. Update all uses.
5430 (booke_insert_point): Rename function 'booke_insert_point' to
5431 'hwdebug_insert_point'. Update all uses.
5432 (booke_remove_point): Rename function 'booke_remove_point' to
5433 'hwdebug_remove_point'. Update all uses.
5434
5435 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5436
5437 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5438 numbers with enum values.
5439
5440 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5441
5442 PR threads/13217
5443 * thread.c (thread_apply_all_command): Check for valid threads
5444 and thread count.
5445 (thread_array_cleanup): New struct.
5446 (set_thread_refcount): New function.
5447
5448 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5449
5450 * infcmd.c (default_print_one_register_info): Reuse function
5451 print_hex_chars.
5452
5453 2013-07-10 Tom Tromey <tromey@redhat.com>
5454
5455 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5456 (ada-exp.o): New target.
5457
5458 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5459
5460 * mt-tdep.c (mt_registers_info): Call
5461 get_no_prettyformat_print_options instead of
5462 get_raw_print_options (regression by last patch from Doug
5463 Evans).
5464
5465 2013-07-09 Pedro Alves <palves@redhat.com>
5466
5467 Checked in by Joel Brobecker <brobecker@adacore.com>.
5468 * ada-lang.c (coerce_unspec_val_to_type): Use
5469 value_optimized_out_const.
5470 * value.c (value_optimized_out_const): New function.
5471 * value.h (value_optimized_out_const): New declaration.
5472
5473 2013-07-09 Doug Evans <dje@google.com>
5474
5475 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5476 Enum values rename as well. All uses updated.
5477 * valprint.h (value_print_options): Rename member pretty to
5478 pretty format. Rename member prettyprint_arrays to
5479 prettyformat_arrays. Rename member prettyprint_structs to
5480 prettyformat_structs. All uses updated.
5481 (get_no_prettyformat_print_options): Renamed from
5482 get_raw_print_options.
5483 * valprint.c (get_no_prettyformat_print_options): Renamed from
5484 get_raw_print_options. All callers updated.
5485 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5486 All callers updated.
5487 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5488 All callers updated.
5489 (_initialize_valprint): Improve help text for "set print pretty" and
5490 "set print arrays".
5491
5492 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5493
5494 * value.c (value_bits_valid): Revert previous change, and change
5495 by Pedro on 2013-07-04, due to regressions in
5496 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5497
5498 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5499 Pedro Alves <palves@redhat.com>
5500
5501 * value.c (value_bits_valid): If the value is not lval_computed
5502 or has no check validity handler then the answer is the
5503 optimized_out flag, otherwise defer to the handler.
5504
5505 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5506
5507 * top.c (print_gdb_configuration): Explain in output of
5508 --configuration what does "relocatable" mean.
5509
5510 * main.c (print_gdb_help): Regroup options in the --help text.
5511 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5512 the relevant discussions.
5513
5514 2013-07-06 Yao Qi <yao@codesourcery.com>
5515
5516 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5517 Remove parameter 'lsal'.
5518 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5519 to inner block. Caller update.
5520 (base_breakpoint_create_breakpoints_sal): Update.
5521 (bkpt_create_breakpoints_sal): Likewise.
5522 (tracepoint_create_breakpoints_sal): Likewise.
5523 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5524 element 0 of vector 'canonical->sals'.
5525
5526 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5527
5528 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5529 register number instead of the pseudo register one.
5530 (rs6000_dwarf2_reg_to_regnum): Likewise.
5531
5532 2013-07-04 Pedro Alves <palves@redhat.com>
5533
5534 * findvar.c (value_of_register): Use allocate_optimized_out_value
5535 if the register has been optimized out, instead of
5536 set_value_optimized_out.
5537 * frame-unwind.c (frame_unwind_got_optimized): Use
5538 allocate_optimized_out_value.
5539
5540 2013-07-04 Pedro Alves <palves@redhat.com>
5541
5542 * value.c (value_bits_valid): If the value is not lval_computed,
5543 or doesn't have a check_validity hook, assume the value is entirely
5544 valid.
5545
5546 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5547
5548 * stack.c (read_frame_arg): No longer fetch lazy values.
5549 * value.c (value_optimized_out): If the value is not already
5550 marked optimized out, and is lazy then fetch it.
5551 (value_primitive_field): Move optimized out check to later in the
5552 function, after we have loaded any lazy values.
5553 (value_fetch_lazy): Use optimized out flag directly rather than
5554 calling optimized_out method.
5555
5556 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5557
5558 * valops.c: Don't include "user-regs.h".
5559 (value_fetch_lazy): Moved to value.c.
5560 * value.c: Include "user-regs.h".
5561 (value_fetch_lazy): Moved from valops.c.
5562
5563 2013-07-04 Yao Qi <yao@codesourcery.com>
5564
5565 Revert:
5566 2013-06-27 Yao Qi <yao@codesourcery.com>
5567
5568 * common/create-version.sh: Update comments. Handle the case
5569 that TARGET_ALIAS is empty.
5570
5571 2013-07-03 Pedro Alves <palves@redhat.com>
5572
5573 * Makefile.in (config.status): Depend on development.sh.
5574 (aclocal_m4_deps): Add libmcheck.m4.
5575 * acinclude.m4: Include libmcheck.m4.
5576 * configure.ac: Source development.sh instead of setting
5577 'development' here. --enable-libmcheck/--disable-libmcheck code
5578 factored out to GDB_AC_LIBMCHECK. Run it.
5579 * development.sh: New file.
5580 * libmcheck.m4: New file.
5581 * configure: Regenerate.
5582
5583 2013-07-02 Tom Tromey <tromey@redhat.com>
5584
5585 * contrib/ari/update-web-ari.sh: Update for version.in change.
5586
5587 2013-07-02 Tom Tromey <tromey@redhat.com>
5588
5589 * common/ptid.h: Comment fixes.
5590
5591 2013-07-01 Tom Tromey <tromey@redhat.com>
5592
5593 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5594 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5595 (dwarf2_read_index, create_all_comp_units): Update.
5596
5597 2013-07-01 Tom Tromey <tromey@redhat.com>
5598
5599 * configure.ac (build_warnings): Add -Wold-style-definition.
5600 * configure: Rebuild.
5601 * machoread.c (_initialize_machoread): Use "(void)".
5602 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5603 use "(void)".
5604
5605 2013-07-01 Tom Tromey <tromey@redhat.com>
5606
5607 * configure.ac (build_warnings): Add -Wold-style-declaration.
5608 * configure: Rebuild.
5609 * dsrec.c (make_srec): Use "static const", not "const static".
5610 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5611 not "const static".
5612 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5613 Use "static const", not "const static".
5614 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5615 not "const static".
5616 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5617 not "const static".
5618 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5619 not "const static".
5620 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5621 not "const static".
5622 (v850_dbtrap_breakpoint_from_pc): Likewise.
5623 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5624 not "const static".
5625
5626 2013-07-01 Tom Tromey <tromey@redhat.com>
5627
5628 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5629 * configure: Rebuild.
5630
5631 2013-07-01 Pedro Alves <palves@redhat.com>
5632
5633 * defs.h: Include "pathmax.h".
5634 * utils.c: Don't include sys/param.h.
5635 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5636 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5637 instead of MAXPATHLEN.
5638 * solib-sunos.c: Don't include sys/param.h.
5639 * xcoffread.c: Don't include sys/param.h.
5640 * bsd-kvm.c: Don't include sys/param.h.
5641 * darwin-nat.c: Don't include sys/param.h.
5642 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5643 * darwin-nat-info.c: Don't include sys/param.h.
5644 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5645 MAXPATHLEN.
5646 * i386obsd-nat.c: Don't include sys/param.h.
5647 * inf-child.c: Don't include sys/param.h.
5648 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5649 * linux-fork.c: Don't include sys/param.h.
5650 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5651 * linux-nat.c: Don't include sys/param.h.
5652 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5653 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5654 * m68klinux-nat.c: Don't include sys/param.h.
5655 * nbsd-nat.c: Don't include sys/param.h.
5656 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5657 * ppc-linux-nat.c: Don't include sys/param.h.
5658 * rs6000-nat.c: Don't include sys/param.h.
5659 * spu-linux-nat.c. Don't include sys/param.h.
5660 * windows-nat.c: Don't include sys/param.h.
5661 * xtensa-linux-nat.c: Don't include sys/param.h.
5662 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5663
5664 2013-07-01 Pedro Alves <palves@redhat.com>
5665
5666 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5667 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5668 * gnulib/aclocal.m4: Regenerate.
5669 * gnulib/config.in: Regenerate.
5670 * gnulib/configure: Regenerate.
5671 * gnulib/import/pathmax.h: New file.
5672 * gnulib/import/Makefile.am: Regenerate.
5673 * gnulib/import/Makefile.in: Regenerate.
5674 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5675 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5676 * gnulib/import/m4/pathmax.m4: New file.
5677
5678 2013-07-01 Pedro Alves <palves@redhat.com>
5679
5680 * configure.ac (GDBINIT): Define, depending on host.
5681 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5682 * top.c (PATH_MAX): Delete fallback definition.
5683 (GDBINIT_FILENAME): Delete.
5684 (gdbinit): Reimplement as const char array set to the GDBINIT
5685 string constant.
5686 * top.h (gdbinit): Make const.
5687 * configure, config.in: Regenerate.
5688
5689 2013-07-01 Pedro Alves <palves@redhat.com>
5690
5691 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5692 * cli/cli-cmds.h (source_script): Likewise.
5693 * exceptions.c (catch_command_errors_const): New function.
5694 * exceptions.h (catch_command_errors_const): Declare.
5695 * main.c (get_init_files): Make parameters const, and adjust.
5696 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5697 'local_gdbinit' locals const. Adjust to use
5698 catch_command_errors_const.
5699 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5700 'local_gdbinit' locals const.
5701
5702 2013-07-01 Pedro Alves <palves@redhat.com>
5703
5704 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5705 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5706 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5707 <unistd.h>.
5708
5709 2013-07-01 Pedro Alves <palves@redhat.com>
5710
5711 Import the "unistd" gnulib module.
5712 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5713 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5714 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5715 import/m4/unistd_h.m4.
5716 * gnulib/aclocal.m4: Renenerate.
5717 * gnulib/config.in: Renenerate.
5718 * gnulib/configure: Renenerate.
5719 * gnulib/import/Makefile.am: Renenerate.
5720 * gnulib/import/Makefile.in: Renenerate.
5721 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5722 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5723 * gnulib/import/m4/off_t.m4: New file.
5724 * gnulib/import/m4/ssize_t.m4: New file.
5725 * gnulib/import/m4/sys_types_h.m4: New file.
5726 * gnulib/import/m4/unistd_h.m4: New file.
5727 * gnulib/import/sys_types.in.h: New file.
5728 * gnulib/import/unistd.c: New file.
5729 * gnulib/import/unistd.in.h: New file.
5730
5731 2013-07-01 Pedro Alves <palves@redhat.com>
5732
5733 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5734 defined instead of checking HAVE_UNISTD_H.
5735
5736 2013-07-01 Pedro Alves <palves@redhat.com>
5737
5738 Reimport gnulib from scratch.
5739 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5740 import/m4/onceonly.m4.
5741 * gnulib/aclocal.m4: Renegerate.
5742 * gnulib/config.in: Renegerate.
5743 * gnulib/configure: Renegerate.
5744 * gnulib/import/Makefile.in: Renegerate.
5745 * gnulib/import/extra/update-copyright: Renegerate.
5746 * gnulib/import/m4/onceonly.m4: Delete.
5747
5748 2013-07-01 Pedro Alves <palves@redhat.com>
5749
5750 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5751
5752 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5753
5754 Code cleanup.
5755 * remote.c (async_remote_interrupt_twice): Make it static.
5756 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5757
5758 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5759
5760 * ia64-linux-tdep.c: Include <ctype.h>.
5761 (ia64_linux_stap_is_single_operand): New function.
5762 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5763
5764 2013-06-28 Tom Tromey <tromey@redhat.com>
5765
5766 * Makefile.in (version.c): Use version.in, not
5767 common/version.in.
5768 * common/create-version.sh: Likewise.
5769 * common/version.in: Move...
5770 * version.in: ...here.
5771
5772 2013-06-28 Pedro Alves <palves@redhat.com>
5773
5774 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5775 here.
5776 * utils.h (pagination_enabled): Declare.
5777
5778 2013-06-28 Pedro Alves <palves@redhat.com>
5779
5780 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5781 Move higher up in file.
5782
5783 2013-06-28 Tom Tromey <tromey@redhat.com>
5784
5785 * tracepoint.c (deprecated_readline_begin_hook)
5786 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5787 declare.
5788
5789 2013-06-28 Pedro Alves <palves@redhat.com>
5790
5791 PR tui/14880
5792 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5793 checking if they're available.
5794 * value.c (value_available_contents_eq): Change comment.
5795 * value.h (value_available_contents_eq): Expand comment.
5796
5797 2013-06-27 Tom Tromey <tromey@redhat.com>
5798
5799 * target.c (find_run_target): Remove.
5800 * target.h (find_run_target): Remove.
5801
5802 2013-06-27 Tom Tromey <tromey@redhat.com>
5803
5804 * corelow.c (core_gdbarch): Now static.
5805
5806 2013-06-27 Tom Tromey <tromey@redhat.com>
5807
5808 * target.c (target_struct_index): Remove.
5809
5810 2013-06-27 Pedro Alves <palves@redhat.com>
5811
5812 * infrun.c: Remove comment describing the 'stepping over runtime
5813 loader dynamic symbol resolution code' mechanism; moved to
5814 gdbint.texinfo.
5815
5816 2013-06-27 Pedro Alves <palves@redhat.com>
5817
5818 * exceptions.c (catch_command_errors): Remove spurious space.
5819 * exceptions.h (catch_command_errors): Second parameter is "arg",
5820 not "command".
5821
5822 2013-06-27 Yao Qi <yao@codesourcery.com>
5823
5824 * common/create-version.sh: Update comments. Handle the case
5825 that TARGET_ALIAS is empty.
5826
5827 2013-06-26 Pedro Alves <palves@redhat.com>
5828
5829 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5830 comment.
5831
5832 2013-06-26 Pedro Alves <palves@redhat.com>
5833
5834 * infrun.c: Update comments on stepping over runtime loader
5835 dynamic symbol resolution code.
5836
5837 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5838
5839 * ax-gdb.h (union exp_element): Forward declare.
5840 * parser-defs.h: Include expression.h.
5841
5842 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5843
5844 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5845
5846 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5847
5848 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5849
5850 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5851
5852 Fix trace-status to output proper start-time and stop-time.
5853 * tracepoint.c (trace_status_command): Fix type of printf arg to
5854 prevent improper type conversion.
5855 (trace_status_mi): Likewise.
5856
5857 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5858
5859 * mips-tdep.c (mips_next_pc): Fix a typo.
5860
5861 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5862
5863 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5864
5865 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5866 Yao Qi <yao@codesourcery.com>
5867
5868 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5869 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5870 * mi/mi-main.c (print_variable_or_computed): New function.
5871 (mi_cmd_trace_frame_collected): New function.
5872 * tracepoint.c (find_trace_state_variable_by_number): New.
5873 (struct traceframe_info): Move to tracepoint.h
5874 (struct collection_list): Likewise.
5875 (do_collect_symbol): Include locals and arguments in the
5876 collected variables list.
5877 (clear_collection_list): Clear wholly collected variables list
5878 and computed variables list.
5879 (append_exp): New function.
5880 (encode_actions_1): Include variables in the wholly
5881 collected variables list. Include memory ranges and
5882 full-fledged expressions in the computed expressions list.
5883 (encode_actions): Move some code to ...
5884 Return the cleanup chain.
5885 (encode_actions_rsp): ... here. New function.
5886 (get_traceframe_location, get_traceframe_info): Remove static.
5887 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5888 (struct collection_list): Moved from tracepoint.c. Add two
5889 new fields 'wholly_collected' and 'computed'.
5890 (find_trace_state_variable_by_number): Declare.
5891 (encode_actions): Adjust declaration.
5892 (encode_actions_rsp): Declare.
5893 (get_traceframe_info, get_traceframe_location): Declare.
5894
5895 * NEWS: Mention new MI command -trace-frame-collected.
5896
5897 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5898 Yao Qi <yao@codesourcery.com>
5899
5900 * ctf.c (ctf_traceframe_info): Push trace state variables
5901 present in the trace data into the traceframe info object.
5902 * breakpoint.c (DEF_VEC_I): Remove.
5903 * common/filestuff.c (DEF_VEC_I): Likewise.
5904 * dwarf2loc.c (DEF_VEC_I): Likewise.
5905 * mi/mi-main.c (DEF_VEC_I): Likewise.
5906 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5907 * features/traceframe-info.dtd: Add tvar element and its
5908 attributes.
5909 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5910 (build_traceframe_info): Push trace state variables present in
5911 the trace data into the traceframe info object.
5912 (traceframe_info_start_tvar): New function.
5913 (tvar_attributes): New.
5914 (traceframe_info_children): Add "tvar" element.
5915 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5916
5917 * NEWS: Mention the change in GDB and GDBserver.
5918
5919 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5920 Yao Qi <yao@codesourcery.com>
5921
5922 * tracepoint.c (trace_dump_command): Move code to ...
5923 (get_traceframe_location): ... here. New.
5924
5925 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5926 Yao Qi <yao@codesourcery.com>
5927
5928 * tracepoint.c (trace_dump_command): GDB emits an error
5929 instead of a warning when a traceframe is not selected.
5930
5931 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5932 Yao Qi <yao@codesourcery.com>
5933
5934 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5935 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5936 in collection_list.
5937 (do_clear_collection_list, init_collection_list): New.
5938 (encode_actions): Add local variables 'tracepoint_list' and
5939 'stepping_list'. Call init_collection_list and make cleanup
5940 which calls do_clear_collection_list. Don't call
5941 clear_collection_list.
5942 (_initialize_tracepoint): Delete references to
5943 'tracepoint_list' and 'stepping_list'.
5944
5945 2013-06-25 Tom Tromey <tromey@redhat.com>
5946
5947 * common/create-version.sh (date): Use "$", not "$$" in sed
5948 expression.
5949
5950 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5951
5952 * NEWS (New targets): Add entry for TI MSP430.
5953
5954 2013-06-25 Yao Qi <yao@codesourcery.com>
5955
5956 * remote.c (remote_start_remote): Move code to upload tsv
5957 earlier.
5958
5959 2013-06-25 Yao Qi <yao@codesourcery.com>
5960 Hui Zhu <hui@codesourcery.com>
5961 Pedro Alves <palves@redhat.com>
5962
5963 PR breakpoints/15075
5964 PR breakpoints/15434
5965 * breakpoint.c (bpstat_stop_status): Call
5966 b->ops->after_condition_true.
5967 (update_dprintf_command_list): Don't append "continue" command
5968 to the command list of dprintf breakpoint.
5969 (base_breakpoint_after_condition_true): New function.
5970 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5971 (dprintf_after_condition_true): New function.
5972 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5973 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5974
5975 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5976
5977 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5978 (ALLDEPFILES): Add msp430-tdep.c.
5979 * configure.tgt (msp430*-*-elf): New target.
5980 * msp430-tdep.c: New file.
5981
5982 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5983
5984 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5985 microMIPS synthetic symbols.
5986
5987 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5988
5989 * objfiles.h (pc_in_section): New prototype.
5990 (in_plt_section): Remove name argument, replace prototype with
5991 static inline function.
5992 * mips-tdep.h: Include "objfiles.h".
5993 (in_mips_stubs_section): New function.
5994 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5995 in_solib_call_trampoline member.
5996 (hppa_in_solib_call_trampoline): Remove name argument.
5997 * objfiles.c (pc_in_section): New function.
5998 (in_plt_section): Remove function.
5999 * mips-linux-tdep.c: Include "objfiles.h".
6000 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6001 name argument. Return 1 rather than the low 16-bit halfword of
6002 any instruction examined.
6003 (mips_linux_in_dynsym_resolve_code): Update
6004 mips_linux_in_dynsym_stub call accordingly.
6005 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6006 rather than an equivalent hand-coded sequence.
6007 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6008 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6009 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6010 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6011 in_opd_section.
6012 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6013 on call to tdep->in_solib_call_trampoline.
6014 (hppa_in_solib_call_trampoline): Remove name argument, update
6015 according to in_plt_section change.
6016 (hppa_skip_trampoline_code): Update according to in_plt_section
6017 change.
6018 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6019 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6020 Likewise.
6021 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6022 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6023 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6024 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6025 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6026 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6027 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6028 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6029 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6030 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6031 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6032 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6033 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6034
6035 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6036
6037 * common/create-version.sh: Fix expansion of $host_alias
6038 and $target_alias in generation of HOST_NAME and TARGET_NAME
6039 (resp.).
6040
6041 2013-06-24 Tom Tromey <tromey@redhat.com>
6042
6043 * common/create-version.sh: New file.
6044 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6045 create-version.sh.
6046 (HFILES_NO_SRCDIR): Use common/version.h.
6047 * version.in: Move to ...
6048 * common/version.in: ... here. Replace date with "DATE".
6049 * version.h: Move to ...
6050 * common/version.h: ... here.
6051
6052 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6053
6054 * gdb/gnulib/Makefile.in: Update date in copyright header.
6055 * gdb/gnulib/configure.ac: Ditto.
6056 * gdb/gnulib/update-gnulib.sh: Ditto.
6057
6058 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6059
6060 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6061 "gdb/gnulib/import".
6062
6063 2013-06-21 Will Newton <will.newton@linaro.org>
6064
6065 * doublest.c (ldfrexp): Remove function.
6066 (convert_doublest_to_floatformat): Call frexpl instead of
6067 ldfrexp.
6068
6069 2013-06-21 Will Newton <will.newton@linaro.org>
6070
6071 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6072 * gnulib/aclocal.m4: Regenerate.
6073 * gnulib/config.in: Regenerate.
6074 * gnulib/configure: Regenerate.
6075 * gnulib/import/Makefile.am: Update.
6076 * gnulib/import/Makefile.in: Update.
6077 * gnulib/import/m4/gnulib-cache.m4: Update.
6078 * gnulib/import/m4/gnulib-comp.m4: Update.
6079 * gnulib/import/float+.h: Import.
6080 * gnulib/import/float.c: Import.
6081 * gnulib/import/float.in.h: Import.
6082 * gnulib/import/fpucw.h: Import.
6083 * gnulib/import/frexp.c: Import.
6084 * gnulib/import/frexpl.c: Import.
6085 * gnulib/import/isnan.c: Import.
6086 * gnulib/import/isnand-nolibm.h: Import.
6087 * gnulib/import/isnand.c: Import.
6088 * gnulib/import/isnanl-nolibm.h: Import.
6089 * gnulib/import/isnanl.c: Import.
6090 * gnulib/import/itold.c: Import.
6091 * gnulib/import/m4/exponentd.m4: Import.
6092 * gnulib/import/m4/exponentl.m4: Import.
6093 * gnulib/import/m4/float_h.m4: Import.
6094 * gnulib/import/m4/fpieee.m4: Import.
6095 * gnulib/import/m4/frexp.m4: Import.
6096 * gnulib/import/m4/frexpl.m4: Import.
6097 * gnulib/import/m4/isnand.m4: Import.
6098 * gnulib/import/m4/isnanl.m4: Import.
6099 * gnulib/import/m4/math_h.m4: Import.
6100 * gnulib/import/math.c: Import.
6101 * gnulib/import/math.in.h: Import.
6102
6103 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6104
6105 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6106 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6107 signature_INTEL_edx comparisons.
6108
6109 2013-06-20 Doug Evans <dje@google.com>
6110
6111 symtab/15652
6112 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6113 All callers updated.
6114 (open_dwp_file): If we can't find the dwp file, search the basename
6115 in debug-file-directory.
6116
6117 * dwarf2read.c (struct dwp_file): Fix comment.
6118 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6119
6120 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6121 better.
6122
6123 2013-06-20 Yao Qi <yao@codesourcery.com>
6124
6125 * breakpoint.c (create_breakpoint): Fix code indentation.
6126
6127 2013-06-20 Yao Qi <yao@codesourcery.com>
6128
6129 * breakpoint.c (create_breakpoints_sal_default): Remove
6130 parameter 'lsal'. Update declaration.
6131 (bkpt_create_breakpoints_sal): Caller update.
6132 (tracepoint_create_breakpoints_sal): Likewise.
6133
6134 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6135 Yao Qi <yao@codesourcery.com>
6136
6137 * NEWS: Mention the new option '--skip-unavailable' of command
6138 -data-list-register-values.
6139 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6140 --skip-unavailable option. Adjust to use output_register.
6141 (output_register): Add new 'skip_unavailable' parameter.
6142 Handle it.
6143
6144 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6145
6146 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6147 common/i386-gcc-cpuid.h.
6148 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6149 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6150 Copy the latest version from upstream gcc.
6151 * common/linux-btrace.c: Include i386-cpuid.h.
6152 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6153 call to i386_cpuid.
6154 (cpu_supports_btrace): Likewise.
6155 * go32-nat.c: Include i386-cpuid.h.
6156 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6157
6158 2013-06-19 Doug Evans <dje@google.com>
6159
6160 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6161 (get_section_index): Ditto.
6162
6163 2013-06-19 Tom Tromey <tromey@redhat.com>
6164
6165 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6166 "dprintf" help.
6167
6168 2013-06-18 Doug Evans <dje@google.com>
6169
6170 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6171 before using it.
6172 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6173 Move test of cu_index closer to use. Print complaint if cu_index
6174 is bad.
6175
6176 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6177
6178 * machoread.c (oso_vector): Delete this global.
6179 (macho_register_oso): Add new parameter "oso_vector_ptr".
6180 Use it instead of the "oso_vector" global.
6181 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6182 (macho_symfile_read): Use a local oso_vector, to be free'ed
6183 at the end of this function, in place of the old "oso_vector"
6184 global. Update various function calls accordingly. Use one
6185 single cleanup chain for the entire function.
6186
6187 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6188
6189 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6190 DWARF2_PER_OBJFILE by uses of DATA instead.
6191
6192 2013-06-18 Tom Tromey <tromey@redhat.com>
6193
6194 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6195 argument.
6196 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6197 Special case signals other than GDB_SIGNAL_TRAP.
6198 (explains_signal_watchpoint): New function.
6199 (base_breakpoint_explains_signal): Add 'sig' argument.
6200 (initialize_breakpoint_ops): Set 'explains_signal' method for
6201 watchpoints.
6202 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6203 signal argument.
6204 (bpstat_explains_signal): Likewise.
6205 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6206
6207 2013-06-18 Tom Tromey <tromey@redhat.com>
6208
6209 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6210
6211 2013-06-18 Tom Tromey <tromey@redhat.com>
6212
6213 * python/python.c (finish_python_initialization): Decref
6214 'pythondir' on failure path as well.
6215
6216 2013-06-18 Tom Tromey <tromey@redhat.com>
6217
6218 PR symtab/15391:
6219 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6220 after taking bits_to_skip into account. Sign extend byte_offset.
6221 * utils.h (gdb_sign_extend): Declare.
6222 * utils.c (gdb_sign_extend): New function.
6223
6224 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6227
6228 2013-06-17 Pierre Muller <muller@sourceware.org>
6229
6230 * corelow.c (core_open): Print GDB signal name instead of target
6231 signal number.
6232
6233 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6234
6235 * .gitignore: Add /gcore.
6236
6237 2013-06-13 Doug Evans <dje@google.com>
6238
6239 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6240 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6241
6242 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6243
6244 * stack.c (backtrace_command_1): Fix indentation.
6245
6246 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6247
6248 * window-nat.c (thread_rec): Add missing empty line after
6249 local variable declaration.
6250
6251 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6252
6253 * windows-nat.c (thread_rec): Revert format used to print
6254 error code returned by SuspendThread from %d back to %u.
6255
6256 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6257
6258 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6259 ID in debug trace.
6260 (get_windows_debug_event): Likewise, for all debug traces.
6261
6262 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6263
6264 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6265 warning message.
6266
6267 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6268 Yao Qi <yao@codesourcery.com>
6269
6270 * mi/mi-main.c (get_register): Remove declaration.
6271 (output_register): Declare.
6272 (mi_cmd_data_list_register_values): Remove local variable
6273 'tuple_cleanup'. Move some code into output_register.
6274 (get_register): Renamed to ...
6275 (output_register): ... this. Output the register's
6276 "number" ui_out tuple here.
6277
6278 2013-06-07 Pedro Alves <palves@redhat.com>
6279
6280 * darwin-nat.c: Fix formating in copyright header.
6281 * darwin-nat.h: Likewise.
6282 * gnu-nat.c: Likewise.
6283 * machoread.c: Likewise.
6284
6285 2013-06-07 Pedro Alves <palves@redhat.com>
6286
6287 PR server/14823
6288 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6289 static. Output a global target description pointer.
6290 (init_registers_${name}): Adjust to initialize a
6291 target description structure.
6292
6293 2013-06-07 Will Newton <will.newton@linaro.org>
6294
6295 * printcmd.c (build_address_symbolic): Call
6296 gdbarch_addr_bits_remove for text minimal symbols.
6297
6298 2013-06-07 Will Newton <will.newton@linaro.org>
6299
6300 * MAINTAINERS: Add myself to Write After Approval.
6301
6302 2013-06-07 Yao Qi <yao@codesourcery.com>
6303
6304 * tracepoint.c (start_tracing): Move code to ...
6305 (trace_reset_local_state): ... here. New.
6306 (disconnect_tracing): Don't call set_current_traceframe,
6307 set_tracepoint_num, and set_traceframe_context. Call
6308 trace_reset_local_state instead.
6309 (tfile_close): Call trace_reset_local_state.
6310 * ctf.c (ctf_close): Likewise.
6311 * remote.c (remote_close): Likewise.
6312 * tracepoint.h (trace_reset_local_state): Declare.
6313
6314 2013-06-06 Doug Evans <dje@google.com>
6315
6316 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6317 and fix header docs.
6318
6319 2013-06-05 Doug Evans <dje@google.com>
6320 Keith Seitz <keiths@redhat.com>
6321
6322 PR 15519
6323 * cp-namespace.c (find_symbol_in_baseclass): Call
6324 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6325 Check result of call to lookup_symbol_static.
6326 Call lookup_static_symbol_aux unconditionally.
6327 Call check_typedef on base types before accessing them.
6328 (cp_lookup_nested_symbol): Fix comment.
6329
6330 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6331
6332 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6333 minimal symbols pointing to function descriptors.
6334
6335 2013-06-05 Tom Tromey <tromey@redhat.com>
6336
6337 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6338
6339 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6340 Pedro Alves <palves@redhat.com>
6341
6342 * remote.c (remote_wait_as): Restore signal handler before returning
6343 when GDB gets a notification.
6344
6345 2013-06-04 Gary Benson <gbenson@redhat.com>
6346
6347 PR 2328
6348 * breakpoint.h (handle_solib_event): Moved function declaration
6349 to solib.h.
6350 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6351 (bpstat_stop_status): Pass new argument to handle_solib_event.
6352 * solib.h (update_solib_breakpoints): New function declaration.
6353 (handle_solib_event): Moved function declaration from
6354 breakpoint.h.
6355 * solib.c (update_solib_breakpoints): New function.
6356 (handle_solib_event): Moved function from breakpoint.c.
6357 Updated to call solib_ops->handle_event if not NULL.
6358 * solist.h (target_so_ops): New fields "update_breakpoints" and
6359 "handle_event".
6360 * infrun.c (set_stop_on_solib_events): New function.
6361 (_initialize_infrun): Use the above for "set
6362 stop-on-solib-events".
6363 (handle_inferior_event): Pass new argument to handle_solib_event.
6364 * solib-svr4.c (probe.h): New include.
6365 (svr4_free_library_list): New forward declaration.
6366 (probe_action): New enum.
6367 (probe_info): New struct.
6368 (probe_info): New static variable.
6369 (NUM_PROBES): New definition.
6370 (svr4_info): New fields "using_xfer", "probes_table" and
6371 "solib_list".
6372 (free_probes_table): New function.
6373 (free_solib_list): New function.
6374 (svr4_pspace_data_cleanup): Free probes table and solib list.
6375 (svr4_copy_library_list): New function.
6376 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6377 (svr4_read_so_list): New parameter "prev_lm".
6378 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6379 (svr4_current_sos): New function.
6380 (probe_and_action): New struct.
6381 (hash_probe_and_action): New function.
6382 (equal_probe_and_action): Likewise.
6383 (register_solib_event_probe): Likewise.
6384 (solib_event_probe_at): Likewise.
6385 (solib_event_probe_action): Likewise.
6386 (solist_update_full): Likewise.
6387 (solist_update_incremental): Likewise.
6388 (disable_probes_interface_cleanup): Likewise.
6389 (svr4_handle_solib_event): Likewise.
6390 (svr4_update_solib_event_breakpoint): Likewise.
6391 (svr4_update_solib_event_breakpoints): Likewise.
6392 (svr4_create_solib_event_breakpoints): Likewise.
6393 (enable_break): Free probes table before creating breakpoints.
6394 Use svr4_create_solib_event_breakpoints to create breakpoints.
6395 (svr4_solib_create_inferior_hook): Free the solib list.
6396 (_initialize_svr4_solib): Initialise
6397 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6398
6399 2013-06-04 Gary Benson <gbenson@redhat.com>
6400
6401 * target.h (target_ops): New field
6402 "to_augmented_libraries_svr4_read".
6403 (target_augmented_libraries_svr4_read): New macro.
6404 * target.c (update_current_target): Handle
6405 to_augmented_libraries_svr4_read.
6406 * remote.c (remote_state): New field
6407 "augmented_libraries_svr4_read".
6408 (remote_augmented_libraries_svr4_read_feature): New function.
6409 (remote_protocol_features): Add entry for
6410 "augmented-libraries-svr4-read".
6411 (remote_augmented_libraries_svr4_read): New function.
6412 (init_remote_ops): Initialize
6413 remote_ops.to_augmented_libraries_svr4_read.
6414
6415 2013-06-04 Gary Benson <gbenson@redhat.com>
6416
6417 * NEWS: Update.
6418
6419 2013-06-04 Gary Benson <gbenson@redhat.com>
6420
6421 * objfiles.h (inhibit_section_map_updates): New function
6422 declaration.
6423 (resume_section_map_updates): Likewise.
6424 (resume_section_map_updates_cleanup): Likewise.
6425 * objfiles.c (objfile_pspace_info): Removed field
6426 "objfiles_changed_p". New fields "new_objfiles_available",
6427 "section_map_dirty" and "inhibit_updates".
6428 (allocate_objfile): Set new_objfiles_available.
6429 (free_objfile): Set section_map_dirty.
6430 (objfile_relocate1): Likewise.
6431 (in_plt_section): Likewise.
6432 (find_pc_section): Update the conditions under which the
6433 section map will be updated.
6434 (inhibit_section_map_updates): New function.
6435 (resume_section_map_updates): Likewise.
6436 (resume_section_map_updates_cleanup): Likewise.
6437
6438 2013-06-04 Gary Benson <gbenson@redhat.com>
6439
6440 * probe.h (get_probe_argument_count): New declaration.
6441 (evaluate_probe_argument): Likewise.
6442 * probe.c (get_probe_argument_count): New function.
6443 (evaluate_probe_argument): Likewise.
6444 (probe_safe_evaluate_at_pc): Use the above new functions.
6445
6446 2013-06-04 Alan Modra <amodra@gmail.com>
6447
6448 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6449 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6450 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6451 target mem reads on optional insns.
6452 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6453 ppc_insns_match_pattern calls.
6454 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6455 Add match for power7 thread safety insns, and new order of
6456 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6457 invocation in comment, and update rest of comment.
6458 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6459 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6460 (ppc64_standard_linkage2_target): Update insn offsets.
6461 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6462 stubs first. Update calls.
6463
6464 2013-06-04 Yao Qi <yao@codesourcery.com>
6465
6466 * solib.c (solib_find): Don't need dir separator if path has
6467 drive spec.
6468
6469 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6470
6471 Revert (indirectly causes a SIGSEGV):
6472 * machoread.c (macho_symfile_read): Assign first cleanup to
6473 'back_to'.
6474
6475 2013-06-03 Yao Qi <yao@codesourcery.com>
6476
6477 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6478 mi-parse.c. Make them static.
6479 (mi_all_values): Likewise.
6480 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6481 mi_parse_print_values. Make it external.
6482 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6483 Remove the declarations.
6484 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6485 * mi/mi-parse.h (mi_parse_print_values): Declare.
6486 * mi/mi-cmd-stack.c: Include mi-parse.h.
6487 (parse_print_values): Remove
6488 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6489 of parse_print_values.
6490 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6491
6492 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6493 Yao Qi <yao@codesourcery.com>
6494
6495 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6496 (encode_actions): Move code to ...
6497 (all_tracepoint_actions_and_cleanup): ... here. New.
6498 (trace_dump_command): Likewise.
6499
6500 2013-05-30 Tom Tromey <tromey@redhat.com>
6501
6502 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6503
6504 2013-05-30 Tom Tromey <tromey@redhat.com>
6505
6506 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6507 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6508 'old_chain' argument. Add 'parser_result' argument.
6509 (gdb_xml_create_parser_and_cleanup): Remove old version.
6510 (gdb_xml_parse_quick): Update.
6511 (xml_process_xincludes): Update.
6512 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6513 declare.
6514
6515 2013-05-30 Tom Tromey <tromey@redhat.com>
6516
6517 * probe.c (collect_probes): Check arguments for NULL before
6518 calling compile_rx_or_error.
6519 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6520 Remove NULL return.
6521
6522 2013-05-30 Tom Tromey <tromey@redhat.com>
6523
6524 * infrun.c (adjust_pc_after_break): Introduce an outer null
6525 cleanup.
6526
6527 2013-05-30 Tom Tromey <tromey@redhat.com>
6528
6529 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6530
6531 2013-05-30 Tom Tromey <tromey@redhat.com>
6532
6533 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6534 for 'old_chain'. Do not check 'head' before processing
6535 cleanups.
6536
6537 2013-05-30 Tom Tromey <tromey@redhat.com>
6538
6539 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6540 "cleanup_tuple".
6541
6542 2013-05-30 Tom Tromey <tromey@redhat.com>
6543
6544 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6545 inner scope. Unconditionally call do_cleanups.
6546
6547 2013-05-30 Tom Tromey <tromey@redhat.com>
6548
6549 * source.c (find_and_open_source): Call do_cleanups.
6550
6551 2013-05-30 Tom Tromey <tromey@redhat.com>
6552
6553 * linux-thread-db.c (thread_db_load_search): Unconditionally
6554 call do_cleanups.
6555
6556 2013-05-30 Tom Tromey <tromey@redhat.com>
6557
6558 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6559 for 'cleanup'; instead use a later one.
6560
6561 2013-05-30 Tom Tromey <tromey@redhat.com>
6562
6563 * python/py-breakpoint.c (bppy_get_commands): Use
6564 explicit, unconditional return.
6565 * python/py-frame.c (frapy_read_var): Likewise.
6566 * python/python.c (gdbpy_decode_line): Likewise.
6567
6568 2013-05-30 Tom Tromey <tromey@redhat.com>
6569
6570 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6571 do_cleanups on all return paths.
6572
6573 2013-05-30 Tom Tromey <tromey@redhat.com>
6574
6575 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6576
6577 2013-05-30 Tom Tromey <tromey@redhat.com>
6578
6579 * stabsread.c (read_struct_type): Call do_cleanups along
6580 all return paths.
6581
6582 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6583
6584 * mips-linux-tdep.c: Adjust formatting throughout.
6585
6586 2013-05-30 Tom Tromey <tromey@redhat.com>
6587
6588 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6589 along all return paths.
6590
6591 2013-05-30 Tom Tromey <tromey@redhat.com>
6592
6593 * symfile.c (find_separate_debug_file): Call do_cleanups
6594 along all return paths.
6595
6596 2013-05-30 Tom Tromey <tromey@redhat.com>
6597
6598 * symtab.c (search_symbols): Introduce a null cleanup for
6599 'retval_chain'.
6600
6601 2013-05-30 Tom Tromey <tromey@redhat.com>
6602
6603 * python/py-value.c (valpy_binop): Call do_cleanups before
6604 exiting loop.
6605
6606 2013-05-30 Tom Tromey <tromey@redhat.com>
6607
6608 * python/py-prettyprint.c (print_children): Remove extra
6609 do_cleanups call.
6610
6611 2013-05-30 Tom Tromey <tromey@redhat.com>
6612
6613 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6614 all return paths.
6615
6616 2013-05-30 Tom Tromey <tromey@redhat.com>
6617
6618 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6619 along all return paths.
6620
6621 2013-05-30 Tom Tromey <tromey@redhat.com>
6622
6623 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6624 call do_cleanups.
6625
6626 2013-05-30 Tom Tromey <tromey@redhat.com>
6627
6628 * varobj.c (c_value_of_root): Call do_cleanups along all
6629 return paths.
6630
6631 2013-05-30 Tom Tromey <tromey@redhat.com>
6632
6633 * tracepoint.c (trace_dump_command): Unconditionally call
6634 do_cleanups.
6635
6636 2013-05-30 Tom Tromey <tromey@redhat.com>
6637
6638 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6639 do_cleanups earlier.
6640
6641 2013-05-30 Tom Tromey <tromey@redhat.com>
6642
6643 * machoread.c (macho_symfile_read): Assign first cleanup to
6644 'back_to'.
6645
6646 2013-05-30 Tom Tromey <tromey@redhat.com>
6647
6648 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6649
6650 2013-05-30 Tom Tromey <tromey@redhat.com>
6651
6652 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6653
6654 2013-05-30 Tom Tromey <tromey@redhat.com>
6655
6656 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6657 call discard_cleanups.
6658 (inf_ptrace_attach): Likewise.
6659
6660 2013-05-30 Tom Tromey <tromey@redhat.com>
6661
6662 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6663 return paths.
6664 (mips_initialize): Likewise.
6665 (common_open): Call do_cleanups.
6666
6667 2013-05-30 Tom Tromey <tromey@redhat.com>
6668
6669 * utils.c (internal_vproblem): Call do_cleanups.
6670
6671 2013-05-30 Tom Tromey <tromey@redhat.com>
6672
6673 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6674
6675 2013-05-30 Tom Tromey <tromey@redhat.com>
6676
6677 * cli/cli-script.c (setup_user_args): Don't return after error.
6678
6679 2013-05-30 Tom Tromey <tromey@redhat.com>
6680
6681 * somread.c (som_symtab_read): Call do_cleanups.
6682
6683 2013-05-30 Tom Tromey <tromey@redhat.com>
6684
6685 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6686
6687 2013-05-30 Tom Tromey <tromey@redhat.com>
6688
6689 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6690 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6691 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6692 * source.c (show_substitute_path_command): Call do_cleanups.
6693 (unset_substitute_path_command, set_substitute_path_command):
6694 Likewise.
6695 * symfile.c (load_command): Call do_cleanups.
6696
6697 2013-05-30 Tom Tromey <tromey@redhat.com>
6698
6699 * contrib/cleanup_check.py: New file.
6700 * contrib/gcc-with-excheck: Add option parsing.
6701
6702 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6703
6704 * windows-nat.c (windows_delete_thread): Add missing space
6705 in cast expression.
6706
6707 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6708
6709 * inferior.c (top level): Include tilde.h.
6710 (add_inferior_command): Call tilde_expand on the value of 'exec'
6711 argument.
6712
6713 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6714 Yao Qi <yao@codesourcery.com>
6715
6716 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6717 Caller update.
6718 (encode_actions): Likewise.
6719 * remote.c (remote_download_tracepoint): Caller update.
6720 * tracepoint.h (encode_actions): Update declaration.
6721
6722 2013-05-30 Pedro Alves <palves@redhat.com>
6723
6724 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6725 pointer.
6726
6727 2013-05-30 Yao Qi <yao@codesourcery.com>
6728
6729 * remote.c (remote_check_symbols): Remove unused parameter
6730 'objfile'.
6731 Declaration update.
6732 (remote_start_remote, remote_new_objfile): Caller update.
6733
6734 2013-05-30 Yao Qi <yao@codesourcery.com>
6735
6736 * mi/mi-cmds.c (mi_cmds): Define MI command
6737 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6738 DEF_MI_CMD_CLI.
6739
6740 2013-05-29 Pedro Alves <palves@redhat.com>
6741
6742 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6743 (remote_insert_watchpoint, remote_remove_watchpoint)
6744 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6745 (remote_verify_memory, compare_sections_command)
6746 (remote_search_memory): Set the general process/thread on the
6747 remote side.
6748
6749 2013-05-29 Pedro Alves <palves@redhat.com>
6750
6751 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6752 (_initialize_aarch64_tdep): Don't call
6753 initialize_tdesc_aarch64_without_fpu.
6754 * features/Makefile (WHICH): Remove reference to
6755 aarch64-without-fpu.
6756 * features/aarch64-without-fpu.c: Delete file.
6757 * regformats/aarch64-without-fpu.dat: Delete file.
6758
6759 2013-05-28 Yao Qi <yao@codesourcery.com>
6760
6761 * tracepoint.c (stringify_collection_list): Remove parameter
6762 'string'.
6763 (encode_actions): Caller update. Remove local variables.
6764
6765 2013-05-24 Yao Qi <yao@codesourcery.com>
6766
6767 * tracepoint.c (TFILE_PID): Remove.
6768 (tfile_open): Don't add thread and inferior.
6769 (tfile_close): Don't set 'inferior_ptid'. Don't call
6770 exit_inferior_silent.
6771 (tfile_thread_alive): Remove.
6772 (init_tfile_ops): Don't set field 'to_thread_alive' of
6773 tfile_ops.
6774
6775 2013-05-23 Doug Evans <dje@google.com>
6776
6777 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6778
6779 2013-05-23 Pedro Alves <palves@redhat.com>
6780
6781 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6782 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6783 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6784 Only define if HAVE_SOCKETS is defined.
6785 * configure.ac: Check for sys/socket.h.
6786 * config.in, configure: Regenerate.
6787
6788 2013-05-23 Pedro Alves <palves@redhat.com>
6789
6790 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6791 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6792 printing uint32_t variables.
6793
6794 2013-05-23 Pedro Alves <palves@redhat.com>
6795
6796 * NEWS: Mention GDBserver range stepping support.
6797
6798 2013-05-23 Yao Qi <yao@codesourcery.com>
6799 Pedro Alves <palves@redhat.com>
6800
6801 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6802 field.
6803 * infcmd.c (step_once, until_next_command): Enable range stepping.
6804 * infrun.c (displaced_step_prepare): Disable range stepping.
6805 (resume): Disable range stepping if stepping over a breakpoint or
6806 we have software watchpoints. If range stepping is enabled,
6807 assert the thread is in the stepping range.
6808 (clear_proceed_status_thread): Clear may_range_step.
6809 (handle_inferior_event): Disable range stepping as soon as we know
6810 the thread that hit the event. Re-enable it whenever we're going
6811 to step with a step range.
6812 * remote.c (struct vCont_action_support) <r>: New field.
6813 (use_range_stepping): New global.
6814 (remote_vcont_probe): Handle 'r' action.
6815 (append_resumption): Append an 'r' action if the thread may range
6816 step.
6817 (show_range_stepping): New function.
6818 (set_range_stepping): New function.
6819 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6820 'set range-stepping' and 'show range-stepping' commands.
6821 * NEWS: Mention range stepping, the new vCont;r action, and the
6822 new "set/show range-stepping" commands.
6823
6824 2013-05-23 Yao Qi <yao@codesourcery.com>
6825 Pedro Alves <palves@redhat.com>
6826
6827 * remote.c (struct vCont_action_support): New struct.
6828 (struct remote_state) <support_vCont_t>: Remove field.
6829 <vCont_actions_support>: New field.
6830 (remote_vcont_probe, remote_stop_ns): Update.
6831
6832 2013-05-23 Yao Qi <yao@codesourcery.com>
6833 Pedro Alves <palves@redhat.com>
6834
6835 * gdbthread.h (pc_in_thread_step_range): New declaration.
6836 * thread.c (pc_in_thread_step_range): New function.
6837 * infrun.c (handle_inferior_event): Use it.
6838
6839 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6840
6841 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6842 of sprintf.
6843
6844 2013-05-22 Keith Seitz <keiths@redhat.com>
6845
6846 * ada-lang.c (is_known_support_routine): Add explicit free of
6847 'func_name' from find_frame_funname.
6848 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6849 for func_name from find_frame_funname.
6850 * python/py-frame.c (frapy_name): Add explicit free of
6851 'name' from find_frame_funname.
6852 * stack.c (find_frame_funname): Add comment explaining that
6853 funcp must be freed by the caller.
6854 Return copy of symbol names instead of pointers.
6855 (print_frame): Add a cleanup for 'funname' from
6856 find_frame_funname.
6857 * stack.h (find_frame_funname): Remove "const" from
6858 'funname' parameter.
6859
6860 2013-05-22 Tom Tromey <tromey@redhat.com>
6861
6862 PR c++/15401:
6863 * c-valprint.c (c_value_print): Use value_addr for
6864 references. Convert back to reference type with value_ref.
6865
6866 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6867
6868 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6869 unloaded DLL, it will be done by handle_solib_event. See
6870 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6871 details.
6872
6873 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6874
6875 * ui-out.c: Create typedef ui_out_level_p and define vector
6876 operations for that type.
6877 (struct ui_out): Use a vector instead of an array.
6878 (current_level): Return level from a vector.
6879 (push_level): Create a level in a vector.
6880 (pop_level): Delete a level in a vector.
6881 (ui_out_new): Create initial level zero level, and store in a
6882 vector.
6883 (ui_out_destroy): Add vector cleanup.
6884
6885 2013-05-22 Pedro Alves <palves@redhat.com>
6886
6887 * python/python-internal.h (gdb_Py_DECREF): Tag with
6888 "ARI: editCase function".
6889
6890 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6891
6892 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6893
6894 2013-05-21 Pedro Alves <palves@redhat.com>
6895
6896 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6897 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6898 * python/py-utils.c (py_decref): Don't check for NULL before
6899 calling Py_DECREF.
6900
6901 2013-05-21 Pedro Alves <palves@redhat.com>
6902
6903 * python/py-utils.c (py_decref): Remove extra braces.
6904 (gdb_pymodule_addobject): Remove extra braces.
6905 * python-internal.h (gdb_Py_DECREF): New static inline function.
6906 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6907
6908 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6909
6910 * breakpoints.c (detach_breakpoints): Do not
6911 detach breakpoints locations with loc_type bp_loc_other.
6912
6913 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 Workaround Python 2.6.
6916 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6917 a block.
6918
6919 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6920
6921 Code cleanup: constification.
6922 * solib.c (solib_ops): Make return type and ops variable type const.
6923 (set_solib_ops): Make the new_ops parameter and ops variable const.
6924 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6925 (solib_add, solib_keep_data_in_core, clear_solib)
6926 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6927 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6928 const.
6929 * solib.h (set_solib_ops): Make the new_ops parameter const.
6930
6931 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6932
6933 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6934 variable.
6935 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6936 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6937 (SYSTEM_GDBINIT_FILES): New variables.
6938 (all): Add stamp-system-gdbinit.
6939 (stamp-system-gdbinit): New rule.
6940 (clean-system-gdbinit, install-system-gdbinit)
6941 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6942 (install-only): Add dependency on install-system-gdbinit.
6943 (uninstall): Add dependency on uninstall-system-gdbinit.
6944 (clean): Add dependency on clean-system-gdbinit.
6945 * system-gdbinit/elinos.py: New file.
6946 * system-gdbinit/wrs-linux.py: New file.
6947
6948 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6949
6950 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6951
6952 2013-05-21 Hui Zhu <hui@codesourcery.com>
6953
6954 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6955 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6956 * mi/mi-cmd-break.c (ctype.h): New include.
6957 (gdb_obstack.h): New include.
6958 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6959 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6960 (mi_cmd_dprintf_insert): New.
6961 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6962 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6963
6964 2013-05-20 Tom Tromey <tromey@redhat.com>
6965
6966 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6967
6968 2013-05-20 Tom Tromey <tromey@redhat.com>
6969
6970 * python/py-value.c (valpy_get_dynamic_type): Simplify
6971 dynamic_type assignment. Use Py_XINCREF.
6972
6973 2013-05-20 Tom Tromey <tromey@redhat.com>
6974
6975 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6976
6977 2013-05-20 Tom Tromey <tromey@redhat.com>
6978
6979 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6980 (gdbpy_selected_frame): Move object-construction code
6981 out of TRY_CATCH.
6982
6983 2013-05-20 Tom Tromey <tromey@redhat.com>
6984
6985 * python/py-arch.c (gdbpy_initialize_arch): Use
6986 gdb_pymodule_addobject.
6987 * python/py-block.c (gdbpy_initialize_blocks): Use
6988 gdb_pymodule_addobject.
6989 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6990 gdb_pymodule_addobject.
6991 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6992 gdb_pymodule_addobject.
6993 * python/py-event.c (gdbpy_initialize_event_generic): Use
6994 gdb_pymodule_addobject.
6995 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6996 gdb_pymodule_addobject.
6997 * python/py-evts.c (add_new_registry): Use
6998 gdb_pymodule_addobject.
6999 (gdbpy_initialize_py_events): Likewise.
7000 * python/py-finishbreakpoint.c
7001 (gdbpy_initialize_finishbreakpoints): Use
7002 gdb_pymodule_addobject.
7003 * python/py-frame.c (gdbpy_initialize_frames): Use
7004 gdb_pymodule_addobject.
7005 * python/py-function.c (gdbpy_initialize_functions): Use
7006 gdb_pymodule_addobject.
7007 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7008 gdb_pymodule_addobject.
7009 * python/py-infthread.c (gdbpy_initialize_thread): Use
7010 gdb_pymodule_addobject.
7011 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7012 gdb_pymodule_addobject.
7013 * python/py-param.c (gdbpy_initialize_parameters): Use
7014 gdb_pymodule_addobject.
7015 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7016 gdb_pymodule_addobject.
7017 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7018 gdb_pymodule_addobject.
7019 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7020 gdb_pymodule_addobject.
7021 * python/py-type.c (gdbpy_initialize_types): Use
7022 gdb_pymodule_addobject.
7023 * python/py-utils.c (gdb_pymodule_addobject): New function.
7024 * python/py-value.c (gdbpy_initialize_values): Use
7025 gdb_pymodule_addobject.
7026 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7027 * python/python.c (_initialize_python): Use
7028 gdb_pymodule_addobject.
7029
7030 2013-05-20 Tom Tromey <tromey@redhat.com>
7031
7032 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7033 * python/py-param.c (get_set_value, get_show_value): Use
7034 explicit decrefs.
7035 * python/python.c (start_type_printers, apply_type_printers):
7036 Use explicit decrefs.
7037
7038 2013-05-20 Tom Tromey <tromey@redhat.com>
7039
7040 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7041 incref the module.
7042
7043 2013-05-20 Tom Tromey <tromey@redhat.com>
7044
7045 * python/python.c (gdbpy_run_events): Decref the result
7046 of PyObject_CallObject.
7047
7048 2013-05-20 Tom Tromey <tromey@redhat.com>
7049
7050 * python/py-symtab.c (set_sal): Use
7051 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7052 (symtab_and_line_to_sal_object): Update.
7053
7054 2013-05-20 Tom Tromey <tromey@redhat.com>
7055
7056 * python/py-param.c (compute_enum_values): Decref 'item'.
7057
7058 2013-05-20 Tom Tromey <tromey@redhat.com>
7059
7060 * mi/mi-main.c: Include python-internal.h.
7061 (mi_cmd_list_features): Check gdb_python_initialized.
7062 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7063 (python_inferior_exit, python_new_objfile, add_thread_object)
7064 (delete_thread_object, py_free_inferior): Check
7065 gdb_python_initialized.
7066 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7067 gdb_python_initialized.
7068 * python/py-type.c (save_objfile_types): Check
7069 gdb_python_initialized.
7070 * python/python-internal.h (gdb_python_initialized): Declare.
7071 * python/python.c (ensure_python_env): Throw exception if
7072 Python not initialized.
7073 (before_prompt_hook, source_python_script_for_objfile)
7074 (start_type_printers, apply_type_printers,
7075 free_type_printers): Check gdb_python_initialized.
7076 * varobj.c (varobj_get_display_hint)
7077 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7078 (install_new_value_visualizer, varobj_set_visualizer)
7079 (value_get_print_value): Check gdb_python_initialized.
7080
7081 2013-05-20 Tom Tromey <tromey@redhat.com>
7082
7083 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7084 Check errors.
7085 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7086 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7087 Check errors.
7088 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7089 Check errors.
7090 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7091 Check errors.
7092 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7093 Check errors.
7094 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7095 init function to return 'int'.
7096 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7097 Return 'int'. Check errors.
7098 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7099 Check errors.
7100 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7101 Return 'int'. Check errors.
7102 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7103 Check errors.
7104 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7105 Check errors.
7106 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7107 Check errors.
7108 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7109 Check errors.
7110 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7111 Check errors.
7112 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7113 Check errors.
7114 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7115 Check errors.
7116 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7117 Check errors.
7118 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7119 Check errors.
7120 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7121 Check errors.
7122 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7123 Check errors.
7124 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7125 Check errors.
7126 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7127 Check errors.
7128 * python/python-internal.h (gdbpy_initialize_auto_load,
7129 gdbpy_initialize_values, gdbpy_initialize_frames,
7130 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7131 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7132 gdbpy_initialize_blocks, gdbpy_initialize_types,
7133 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7134 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7135 gdbpy_initialize_finishbreakpoints,
7136 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7137 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7138 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7139 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7140 gdbpy_initialize_signal_event,
7141 gdbpy_initialize_breakpoint_event,
7142 gdbpy_initialize_continue_event,
7143 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7144 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7145 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7146 * python/python.c (gdb_python_initialized): New global.
7147 (gdbpy_initialize_events): Return 'int'. Check errors.
7148 (_initialize_python): Check errors. Set
7149 gdb_python_initialized.
7150
7151 2013-05-20 Tom Tromey <tromey@redhat.com>
7152
7153 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7154 Decref the reslut of PyObject_CallMethod.
7155
7156 2013-05-20 Tom Tromey <tromey@redhat.com>
7157
7158 * python/py-event.c (gdbpy_initialize_event_generic): Return
7159 early if PyType_Ready fails.
7160
7161 2013-05-20 Tom Tromey <tromey@redhat.com>
7162
7163 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7164 as 'default' in the switch.
7165
7166 2013-05-20 Tom Tromey <tromey@redhat.com>
7167
7168 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7169 get_addr_from_python calls out of TRY_CATCH.
7170 (infpy_write_memory, infpy_search_memory): Likewise.
7171 * python/py-utils.c (get_addr_from_python): Return negative
7172 value on error. Use TRY_CATCH.
7173 * python/python-internal.h (get_addr_from_python): Use
7174 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7175
7176 2013-05-20 Tom Tromey <tromey@redhat.com>
7177
7178 * python/py-event.c (evpy_emit_event): Decref the
7179 result of PyObject_CallFunctionObjArgs.
7180
7181 2013-05-20 Tom Tromey <tromey@redhat.com>
7182
7183 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7184 Correctly decref.
7185
7186 2013-05-20 Tom Tromey <tromey@redhat.com>
7187
7188 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7189
7190 2013-05-20 Tom Tromey <tromey@redhat.com>
7191
7192 * python/py-event.h (gdbpy_initialize_event_generic): Use
7193 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7194 * python/py-evts.c (add_new_registry): Use
7195 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7196 * python/python-internal.h
7197 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7198
7199 2013-05-20 Tom Tromey <tromey@redhat.com>
7200
7201 * python/py-arch.c (archpy_disassemble): Update.
7202 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7203 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7204 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7205 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7206 macro.
7207 (GDB_PY_HANDLE_EXCEPTION): Update.
7208 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7209
7210 2013-05-20 Tom Tromey <tromey@redhat.com>
7211
7212 * python/python-internal.h (events_object_type): Remove.
7213
7214 2013-05-20 Tom Tromey <tromey@redhat.com>
7215
7216 * python/py-event.h (evpy_emit_event): Use
7217 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7218 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7219 New macro.
7220
7221 2013-05-20 Tom Tromey <tromey@redhat.com>
7222
7223 * py-evtregistry.c (create_event_object): Decref
7224 eventregistry_object if PyList_New fails.
7225
7226 2013-05-20 Tom Tromey <tromey@redhat.com>
7227
7228 * py-cmd.c (gdbpy_string_to_argv): Check result of
7229 PyList_New.
7230
7231 2013-05-20 Tom Tromey <tromey@redhat.com>
7232
7233 * python/python.c (before_prompt_hook): Add cleanup to
7234 decref 'hook'.
7235
7236 2013-05-20 Tom Tromey <tromey@redhat.com>
7237
7238 * python/py-function.c (fnpy_init): Decref result of
7239 PyObject_GetAttrString.
7240
7241 2013-05-20 Tom Tromey <tromey@redhat.com>
7242
7243 * python/py-threadevent.c (get_event_thread): Use
7244 CPYCHECKER_RETURNS_BORROWED_REF.
7245 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7246 New define.
7247 (pspace_to_pspace_object, objfile_to_objfile_object)
7248 (find_thread_object): Use it.
7249
7250 2013-05-20 Tom Tromey <tromey@redhat.com>
7251
7252 * python/py-arch.c (arch_object_type): Use
7253 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7254 * python/py-block.c (block_syms_iterator_object_type):
7255 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7256 * python/py-bpevent.c (breakpoint_event_object_type):
7257 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7258 * python/py-cmd.c (cmdpy_object_type): Use
7259 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7260 * python/py-continueevent.c (continue_event_object_type):
7261 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7262 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7263 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7264 * python/py-events.h (thread_event_object_type):
7265 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7266 * python/py-evtregistry.c (eventregistry_object_type): Use
7267 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7268 * python/py-exitedevent.c (exited_event_object_type):
7269 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7270 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7271 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7272 * python/py-function.c (fnpy_object_type): Use
7273 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7274 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7275 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7276 * python/py-infthread.c (thread_object_type): Use
7277 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7278 * python/py-lazy-string.c (lazy_string_object_type):
7279 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7280 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7281 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7282 * python/py-objfile.c (objfile_object_type): Use
7283 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7284 * python/py-param.c (parmpy_object_type):
7285 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7286 * python/py-progspace.c (pspace_object_type):
7287 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7288 * python/py-signalevent.c (signal_event_object_type):
7289 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7290 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7291 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7292 * python/py-type.c (type_object_type, field_object_type)
7293 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7294 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7295 define.
7296 (value_object_type, block_object_type, symbol_object_type)
7297 (event_object_type, stop_event_object_type, breakpoint_object_type)
7298 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7299
7300 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7301
7302 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7303 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7304
7305 2013-05-20 Doug Evans <dje@google.com>
7306
7307 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7308 For Fission.
7309 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7310 reading_dwo_directly.
7311 (struct signatured_type): New member dwo_unit.
7312 (struct die_reader_specs): New member comp_dir.
7313 (create_signatured_type_table_from_index): Use malloc for
7314 all_type_units instead of objfile's obstack.
7315 (create_all_type_units): Ditto.
7316 (fill_in_sig_entry_from_dwo_entry): New function.
7317 (add_type_unit): New function.
7318 (lookup_dwo_signatured_type): New function.
7319 (lookup_dwp_signatured_type): New function.
7320 (lookup_signatured_type): New arg cu. All callers updated.
7321 (init_cu_die_reader): Initialize comp_dir.
7322 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7323 Change assert of matching type signatures to call error on mismatch.
7324 (lookup_dwo_unit): Add assert.
7325 (init_tu_and_read_dwo_dies): New function.
7326 (init_cutu_and_read_dies): Call it.
7327 (build_type_unit_groups): Handle case of no type unit groups created.
7328 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7329 (lookup_dwo_cutu): Tweak complaint.
7330 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7331 (dwarf2_per_objfile_free): Free all_type_units.
7332
7333 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7334
7335 * windows-nat.c (handle_unload_dll): Add missing empty line.
7336
7337 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7338
7339 * dwarf2read.c (prototyped_function_p): New function.
7340 (read_subroutine_type): Use it.
7341
7342 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7343
7344 * rs6000-aix-tdep.c: De-indent some example code provided
7345 as a comment.
7346
7347 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7348
7349 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7350 region is ok for a hardware watchpoint using the new ptrace interface
7351 on Power servers.
7352
7353 2013-05-17 Doug Evans <dje@google.com>
7354
7355 * NEWS: Mention new maintenance commands check-symtabs, and
7356 expand-symtabs, and renamed check-psymtabs.
7357 * psymtab.c (maintenance_check_psymtabs): Renamed from
7358 maintenance_check_symtabs. Only process already-expanded symbol
7359 tables.
7360 (_initialize_psymtab): Update.
7361 * symmisc.c (maintenance_check_symtabs): New function.
7362 (maintenance_expand_name_matcher): New function
7363 (maintenance_expand_file_matcher): New function
7364 (maintenance_expand_symtabs): New function.
7365 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7366 commands.
7367
7368 2013-05-17 Tom Tromey <tromey@redhat.com>
7369
7370 * python/py-inferior.c (infpy_read_memory): Don't call
7371 PyErr_SetString if PyObject_New fails.
7372 * python/py-frame.c (frame_info_to_frame_object): Don't call
7373 PyErr_SetString if PyObject_New fails.
7374
7375 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7376
7377 * acinclude.m4: Add check for dlopen in libdl.
7378 * configure.ac: Ditto.
7379 * configure: Regenerate.
7380
7381 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7382
7383 * frame.c (frame_stash): Convert to htab.
7384 (frame_addr_hash): New function.
7385 (frame_addr_hash_eq): New function.
7386 (frame_stash_create): Convert function to create
7387 a hash table.
7388 (frame_stash_add): Convert function to add an entry to a hash
7389 table.
7390 (frame_stash_find): Convert function to search the hash table.
7391 (frame_stash_invalidate): Convert function to empty the hash
7392 table.
7393 (get_frame_id): Only add to stash if a frame_id is created.
7394 (_initialize_frame): Call frame_stash_create.
7395
7396 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7397
7398 * configure.ac: Ensure MIG is available when building for GNU Hurd
7399 hosts.
7400 * configure: Regenerate.
7401
7402 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7403
7404 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7405
7406 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7407
7408 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7409 all cleanups are done before returning from this function.
7410
7411 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7412
7413 * utils.h: #include "exceptions.h".
7414 (enum errors): Remove partial declaration.
7415
7416 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7417
7418 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7419 * gdbarch.h, gdbarch.c: Regenerate.
7420 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7421 handling.
7422
7423 * rs6000-aix-tdep.h: New file.
7424 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7425 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7426 "xml-utils.h".
7427 (struct field_info, struct ld_info_desc): New types.
7428 (ld_info32_desc, ld_info64_desc): New static constants.
7429 (struct ld_info): New type.
7430 (rs6000_aix_extract_ld_info): New function.
7431 (rs6000_aix_shared_library_to_xml): Likewise.
7432 (rs6000_aix_ld_info_to_xml): Likewise.
7433 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7434 (rs6000_aix_init_osabi): Add call to
7435 set_gdbarch_core_xfer_shared_libraries_aix.
7436 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7437 Remove "xml-utils.h" include.
7438 (LdInfo): Delete typedef.
7439 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7440 Delete macros.
7441 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7442 Adjust code accordingly.
7443 (rs6000_core_ldinfo): Delete, folded into
7444 rs6000_aix_core_xfer_shared_libraries_aix.
7445 (rs6000_xfer_shared_library): Delete.
7446 (rs6000_xfer_shared_libraries): Reimplement.
7447
7448 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7449
7450 * record.c (record_goto_cmdlist): New.
7451 (cmd_record_goto): Split into this ...
7452 (cmd_record_goto_begin): ... this
7453 (cmd_record_goto_end): ... and this.
7454 (_initialize_record): Change "record goto" to prefix command.
7455 Add commands for "record goto begin" and "record goto end".
7456 Add an alias for "record goto start" to "record goto begin".
7457
7458 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 * linespec.c (convert_linespec_to_sals): New comment for
7461 SOURCE_FILENAME assignment.
7462
7463 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7466 internal_warning.
7467
7468 2013-05-14 Tom Tromey <tromey@redhat.com>
7469
7470 * eval.c (parse_and_eval_long): Make 'exp' const.
7471 * value.h (parse_and_eval_long): Update.
7472
7473 2013-05-14 Tom Tromey <tromey@redhat.com>
7474
7475 * ui-file.c (gdb_fopen): Make arguments const.
7476 * ui-file.h (gdb_fopen): Make arguments const.
7477
7478 2013-05-14 Tom Tromey <tromey@redhat.com>
7479
7480 * remote.c (remote_set_trace_notes): Make arguments const.
7481 * target.c (update_current_target): Update cast.
7482 * target.h (to_set_trace_notes): Make arguments const.
7483
7484 2013-05-14 Tom Tromey <tromey@redhat.com>
7485
7486 * go32-nat.c (go32_terminal_info): Make 'args' const.
7487 * inferior.h (child_terminal_info): Update.
7488 * inflow.c (child_terminal_info): Make 'args' const.
7489 * target.c (default_terminal_info): Make 'args' const.
7490 (debug_to_terminal_save_ours): Likewise.
7491 * target.h (struct target_ops) <to_terminal_info>: Make argument
7492 const.
7493
7494 2013-05-13 Tom Tromey <tromey@redhat.com>
7495
7496 * gcore.c (create_gcore_bfd): Make 'filename' const.
7497 * gcore.h (create_gcore_bfd): Make 'filename' const.
7498 * record-full.c (record_full_save): Make 'recfilename' const.
7499 * target.c (target_save_record): Make 'filename' const.
7500 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7501 const.
7502 (target_save_record): Likewise.
7503
7504 2013-05-13 Tom Tromey <tromey@redhat.com>
7505
7506 PR gdb/15338:
7507 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7508 ranges section has been read.
7509
7510 2013-05-13 Tom Tromey <tromey@redhat.com>
7511
7512 PR exp/15364:
7513 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7514 STRUCTOP_PTR>: Return a not_lval value for
7515 EVAL_AVOID_SIDE_EFFECTS.
7516 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7517 for EVAL_AVOID_SIDE_EFFECTS.
7518
7519 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7520
7521 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7522 floating point registers to register type before storing
7523 value.
7524 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7525 Likewise.
7526
7527 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7528 Tom Tromey <tromey@redhat.com>
7529
7530 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7531 New functions.
7532 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7533 Declare.
7534 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7535 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7536 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7537 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7538
7539 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7540 Tom Tromey <tromey@redhat.com>
7541
7542 PR build/15414:
7543 * configure: Rebuild.
7544 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7545 with -Wno-format.
7546
7547 2013-05-10 Pedro Alves <palves@redhat.com>
7548
7549 * remote.c (_initialize_remote): Fix spelling of
7550 qXfer:traceframe-info:read packet in packet config command.
7551
7552 2013-05-10 David Taylor <dtaylor@emc.com>
7553
7554 PR remote/15455
7555
7556 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7557 "QTro" at start of packet.
7558
7559 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7560
7561 * solib-aix.c (solib_aix_relocate_section_addresses):
7562 For the .bss section action, apply the same offset as
7563 the .data section.
7564
7565 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7566
7567 * solib-aix.c (solib_aix_relocate_section_addresses):
7568 Remove FIXME comment.
7569
7570 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7571
7572 PR tdep/15420:
7573 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7574 New functions, directly copied from sparc-sol-thread.c.
7575 * sparc-sol-thread.c: Delete.
7576 * configure.ac: Remove code handling sparc-solaris-thread.c.
7577 * configure: Regenerate.
7578
7579 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7580
7581 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7582 filter logic.
7583 (backtrace_command): Add "no-filters" option parsing.
7584 (_initialize_stack): Alter help to reflect "no-filters" option.
7585 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7586 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7587 (py-frame.o): Add target
7588 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7589 filter files.
7590 * python/python.h: Add new frame filter constants, and flag enum.
7591 (apply_frame_filter): Add definition.
7592 * python/python.c (apply_frame_filter): New non-Python
7593 enabled function.
7594 * python/py-utils.c (py_xdecref): New function.
7595 (make_cleanup_py_xdecref): Ditto.
7596 * python/py-objfile.c: Declare frame_filters dictionary.
7597 (objfpy_dealloc): Add frame_filters dealloc.
7598 (objfpy_new): Initialize frame_filters attribute.
7599 (objfile_to_objfile_object): Ditto.
7600 (objfpy_get_frame_filters): New function.
7601 (objfpy_set_frame_filters): New function.
7602 * python/py-progspace.c: Declare frame_filters dictionary.
7603 (pspy_dealloc): Add frame_filters dealloc.
7604 (pspy_new): Initialize frame_filters attribute.
7605 (pspacee_to_pspace_object): Ditto.
7606 (pspy_get_frame_filters): New function.
7607 (pspy_set_frame_filters): New function.
7608 * python/py-framefilter.c: New file.
7609 * python/lib/gdb/command/frame_filters.py: New file.
7610 * python/lib/gdb/frames.py: New file.
7611 * python/lib/gdb/__init__.py: Initialize global frame_filters
7612 dictionary
7613 * python/lib/gdb/FrameDecorator.py: New file.
7614 * python/lib/gdb/FrameIterator.py: New file.
7615 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7616 * mi/mi-cmds.h: Declare.
7617 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7618 --no-frame-filter logic, and Python frame filter logic.
7619 (stack_enable_frame_filters): New function.
7620 (parse_no_frame_option): Ditto.
7621 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7622 filter logic.
7623 (mi_cmd_stack_list_locals): Ditto.
7624 (mi_cmd_stack_list_args): Ditto.
7625 (mi_cmd_stack_list_variables): Ditto.
7626 * NEWS: Add frame filter note.
7627
7628 2013-05-09 Doug Evans <dje@google.com>
7629
7630 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7631 All callers updated.
7632 (syms_from_objfile): Ditto. Make static.
7633 (symbol_file_add_with_addrs): Renamed from
7634 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7635 num_offsets. All callers updated.
7636 * symfile.h (syms_from_objfile): Delete.
7637
7638 * symfile.c (decrement_reading_symtab): Add assert.
7639 (increment_reading_symtab): Ditto.
7640
7641 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7642
7643 * source.c (forward_search_command): Replace call to getc
7644 by call to fgetc.
7645 (reverse_search_command): Likewise.
7646
7647 2013-05-08 Doug Evans <dje@google.com>
7648
7649 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7650 matching test.
7651
7652 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7653
7654 * sol-thread.c (info_cb): Factorize the code a little.
7655
7656 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7657
7658 * sol-thread.c (info_cb): Rework the output of the "maintenance
7659 info sol-threads" command a bit.
7660
7661 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7662
7663 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7664 Replace ti.ti_startfunc by ti.ti_pc.
7665
7666 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7667
7668 * solib-aix.c (solib_aix_free_library_list): New function
7669 for the case where HAVE_LIBEXPAT is not defined.
7670
7671 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7672
7673 PR breakpoints/15413:
7674 * breakpoint.c (condition_completer): Simplify the code to
7675 disconsider multiple locations of breakpoints when completing the
7676 "condition" command.
7677
7678 2013-05-07 Pierre Muller <muller@sourceware.org>
7679
7680 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7681 instead of <sys/wait.h>.
7682
7683 2013-05-07 Pierre Muller <muller@sourceware.org>
7684
7685 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7686 trailing new line from warning message.
7687
7688 2013-05-07 Pierre Muller <muller@sourceware.org>
7689
7690 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7691 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7692
7693 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7694
7695 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7696 error message (ARI fix).
7697
7698 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7699
7700 * features/library-list-aix.dtd: Replace library-list by
7701 library-list-aix.
7702 * rs6000-nat.c: Replace library-list by library-list-aix
7703 throughout.
7704 * solib-aix.c: Likewise.
7705
7706 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7707
7708 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7709 Renames TARGET_OBJECT_AIX_LIBRARIES.
7710 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7711 TARGET_OBJECT_LIBRARIES_AIX throughout.
7712 * solib-aix.c: Likwise.
7713
7714 2013-05-07 Yao Qi <yao@codesourcery.com>
7715
7716 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7717 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7718
7719 2013-05-07 Yao Qi <yao@codesourcery.com>
7720
7721 * solib-dsbt.c (enable_break): Declare.
7722 (dsbt_current_sos): Remove call to enable_break2.
7723 (enable_break2): Rename to enable_break. Set solib breakpoint
7724 on '_dl_debug_state'.
7725 (enable_break): Remove.
7726
7727 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7728
7729 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7730 debug state prior to replicating existing hardware watchpoints or
7731 breakpoints.
7732
7733 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7734
7735 * gcore.c (gcore_create_callback): Ignore sections with
7736 separate_debug_objfile_backlink != NULL.
7737
7738 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7739 Andrew Jenner <andrew@codesourcery.com>
7740 Chung-Lin Tang <cltang@codesourcery.com>
7741 Julian Brown <julian@codesourcery.com>
7742
7743 Based on the nios2-elf port from Altera Corporation.
7744
7745 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7746 nios2-linux-tdep.o.
7747 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7748 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7749 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7750 * nios2-tdep.h: New.
7751 * nios2-tdep.c: New.
7752 * nios2-linux-tdep.c: New.
7753 * features/Makefile (WHICH): Add nios2-linux.
7754 (nios2-linux-expedite): Set.
7755 * features/nios2-cpu.xml: New.
7756 * features/nios2.xml: New.
7757 * features/nios2-linux.xml: New.
7758 * features/nios2.c: New (autogenerated).
7759 * features/nios2-linux.c: New (autogenerated).
7760 * regformats/nios2-linux.dat: New (autogenerated).
7761 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7762 and commands.
7763
7764 2013-05-06 Doug Evans <dje@google.com>
7765
7766 * symfile.c: Whitespace cleanup.
7767
7768 * solist.h (struct target_so_ops): New member clear_so.
7769 * solib-svr4.c (svr4_clear_so): New function.
7770 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7771 * solib.c (clear_so): Renamed from free_so_symbols.
7772 All callers updated. Call target clear_so if it exists.
7773
7774 2013-05-06 Tom Tromey <tromey@redhat.com>
7775
7776 * ada-lang.c (ada_value_primitive_packed_val): Don't
7777 call value_incref.
7778 * value.c (set_value_parent): Incref the new parent and decref
7779 the old parent.
7780 (value_copy, value_primitive_field): Use set_value_parent.
7781
7782 2013-05-06 Tom Tromey <tromey@redhat.com>
7783
7784 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7785 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7786 if needed.
7787 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7788 * dwarf2read.c (write_constant_as_bytes)
7789 (dwarf2_fetch_constant_bytes): New functions.
7790
7791 2013-05-06 Tom Tromey <tromey@redhat.com>
7792
7793 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7794 parameters.
7795 (dwarf2_const_value_attr): Update.
7796
7797 2013-05-06 Tom Tromey <tromey@redhat.com>
7798
7799 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7800 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7801 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7802 Remove declaration.
7803
7804 2013-05-06 Tom Tromey <tromey@redhat.com>
7805
7806 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7807 objfile's obstack.
7808
7809 2013-05-06 Doug Evans <dje@google.com>
7810
7811 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7812 * stabsread.h (process_one_symbol): Update declaration.
7813 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7814 * elfread.c (elf_symfile_relocate_probe): Ditto.
7815 * psymtab.c (relocate_psymtabs): Ditto.
7816 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7817 (objfile_relocate): Ditto.
7818 * objfiles.h (objfile_relocate): Update declaration.
7819 * symfile.c (relative_addr_info_to_section_offsets): Constify
7820 addrs parameter.
7821 (default_symfile_offsets): Ditto.
7822 (syms_from_objfile_1): Constify offsets parameter.
7823 (syms_from_objfile): Ditto.
7824 (symbol_file_add_with_addrs_or_offsets): Ditto.
7825 (symfile_map_offsets_to_segments): Constify data parameter.
7826 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7827 delta parameters of member relocate.
7828 (struct sym_probe_fns): Constify new_offsets,
7829 delta parameters of member sym_relocate_probe.
7830 (struct sym_fns): Constify section_addr_info parameter of member
7831 sym_offsets.
7832 (relative_addr_info_to_section_offsets): Update declaration.
7833 (default_symfile_offsets): Ditto.
7834 (syms_from_objfile): Ditto.
7835 (symfile_map_offsets_to_segments): Ditto.
7836
7837 * symfile.c (syms_from_objfile_1): Use correct section count when
7838 objfile->sf == NULL.
7839
7840 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7841
7842 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7843
7844 2013-05-06 Doug Evans <dje@google.com>
7845
7846 * psympriv.h (struct partial_symtab): Augment comment for member
7847 section_offsets.
7848
7849 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7850
7851 Reimplement shared library support on ppc-aix...
7852 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7853 * features/library-list-aix.dtd: New file.
7854 * solib-aix.h, solib-aix.c: New file.
7855 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7856 (rs6000_find_toc_address_hook): Delete.
7857 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7858 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7859 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7860 "xml-utils.h".
7861 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7862 (vmap_symtab, fixup_breakpoints): Delete.
7863 (rs6000_xfer_shared_libraries): New function.
7864 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7865 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7866 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7867 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7868 (rs6000_xfer_shared_library): New function.
7869 (find_toc_address): Delete.
7870 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7871 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7872 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7873 before creating minimal symbol. Adjust function description
7874 accordingly.
7875 (scan_xcoff_symtab): Replace call to
7876 prim_record_minimal_symbol_and_info by call to
7877 record_minimal_symbol.
7878 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7879 around default_symfile_offsets.
7880 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7881 powerpc-aix targets.
7882 * config/rs6000/nm-rs6000.h: Delete.
7883 * config/powerpc/aix.mh (NAT_FILE): Delete.
7884 (NATDEPFILES): Remove xcoffsolib.o.
7885 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7886 (ALL_TARGET_OBS): Add solib-aix.o.
7887 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7888 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7889 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7890 * xcoffsolib.h, xcoffsolib.c: Delete.
7891
7892 * solib.c (reload_shared_libraries): Remove reference to
7893 SOLIB_CREATE_INFERIOR_HOOK.
7894 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7895 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7896 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7897 comment.
7898 * corelow.c (deprecated_core_resize_section_table): Delete.
7899 * exec.c: Remove include of xcoffsolib.h".
7900 (map_vmap, vmap): Delete.
7901 (exec_close_1): Remove references to vmap.
7902 (exec_file_attach): Remove vmap handling code, and reference
7903 to DEPRECATED_IBM6000_TARGET.
7904 (bfdsec_to_vmap): Delete.
7905 (exec_files_info): Remove block of code handling VMAP.
7906 * infcmd.c (post_create_inferior): Remove reference to
7907 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7908 * infrun.c (follow_exec): Remove reference to
7909 SOLIB_CREATE_INFERIOR_HOOK.
7910 * stack.c (print_frame): Remove reference to PC_SOLIB.
7911 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7912 (dsbt_relocate_main_executable): Likewise.
7913 * solib-frv.c (frv_current_sos): Likewise.
7914
7915 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7916
7917 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7918 to target_write_memory and target_read_memory.
7919
7920 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7921
7922 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7923 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7924
7925 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7926
7927 * darwin-nat.c: Replace all "%x" instances in format strings
7928 into "0x%x" throughout.
7929
7930 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7931
7932 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7933 gdb_assert by call to MACH_CHECK_ERROR.
7934 (darwin_attach_pid): Raise an error rather than a failed
7935 assertion when various system calls failed. Report a warning
7936 instead of raising a failed assertion when PREV_NOT is not NULL
7937 after call to mach_port_request_notification.
7938 (darwin_ptrace_me): Raise an error rather than a failed
7939 assertion when read returns nonzero.
7940
7941 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7942
7943 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7944
7945 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7948
7949 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7950
7951 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7952 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7953 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7954 a stale cleanup. Fix double free of NAME.
7955
7956 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7957
7958 * windows-nat.c (windows_delete_thread): Accept an additional
7959 argument, the thread's exit code, and announce thread death when
7960 print_thread_events is non-zero and we are deleting a thread that
7961 is not the main thread.
7962 (get_windows_debug_event): Pass thread exit code to
7963 windows_delete_thread.
7964
7965 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7966
7967 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7968 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7969 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7970 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7971 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7972 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7973 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7974 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7975 (gdbarch_tdep): New struct.
7976 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7977 E_NUM_REGS.
7978 (v850e3v5_register_name): New function.
7979 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7980 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7981 code handling the struct return conventions for the RH850 ABI.
7982 Update all callers.
7983 (v850_eight_byte_align_p): New function.
7984 (v850_push_call_dummy): Push structs by value, not by reference
7985 for the RH850 ABI. Add support for eight byte alignment.
7986 (v850_dbtrap_breakpoint_from_pc): New function.
7987 (v850_gdbarch_init): Add ABI detection code. Register
7988 v850e3v5_register_name for the v850e3v5 architecture. Set the
7989 number of registers for v850e3v5. Register
7990 v850_dbtrap_breakpoint_from_pc as appropriate.
7991 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7992
7993 2013-05-03 Doug Evans <dje@google.com>
7994
7995 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7996 of bfd_count_sections.
7997 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7998 * symfile.c (default_symfile_offsets): Ditto.
7999 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8000 one entry, not bfd_count_sections entries.
8001
8002 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8003
8004 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8005 `save' and `restore' register groups. Don't include SPL
8006 or SPH in these groups.
8007 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8008 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8009 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8010 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8011 dwarf2_append_unwinders().
8012
8013 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8014
8015 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8016 ignore SIGINT and SIGTRAP in case these internal signals are
8017 caught explicitely.
8018
8019 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8020
8021 * darwin-nat.c (darwin_read_write_inferior): Change types
8022 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8023 of copy_count to "mach_msg_type_number_t".
8024 (darwin_read_dyld_info): Change type of parameter
8025 rdaddr to "gdb_byte *".
8026
8027 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8028
8029 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8030 of &info->load_map from "char *" to "gdb_byte *".
8031
8032 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8033
8034 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8035 from "char *" to "gdb_byte *".
8036 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8037
8038 2013-04-30 Doug Evans <dje@google.com>
8039
8040 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8041 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8042 DWO stub. If DWO isn't found, just use stub.
8043 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8044
8045 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8046 calling init_cutu_and_read_dies.
8047
8048 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8049
8050 * target-descriptions.c (maint_print_c_tdesc_cmd):
8051 Add case to parse structures as register types and
8052 bitfields.
8053
8054 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8055
8056 * MAINTAINERS (Write After Approval): Add myself to the list.
8057
8058 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8059
8060 * sol-thread.c (rw_common): Change type of parameter "buf"
8061 to "gdb_byte *".
8062 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8063 rw_common to "gdb_byte *" instead of "char *".
8064
8065 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8066
8067 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8068 of local variable msym to const struct bound_minimal_symbol.
8069 Adjust use accordingly.
8070 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8071
8072 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8073
8074 * i386gnu-nat.c (CREG_OFFSET): New macro.
8075 (creg_offset): New array.
8076 (CREG_ADDR): Use creg_offset instead of reg_offset.
8077
8078 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8079
8080 * mep-tdep.c (mep_write_pc): Delete.
8081 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8082 Add call to set_gdbarch_pc_regnum.
8083
8084 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8085
8086 * common/filestuff.c: Replace #include <dirent.h> by
8087 #include "gdb_dirent.h".
8088
8089 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8090
8091 * common/filestuff.c: Replace #include <sys/stat.h> by
8092 #include "gdb_stat.h".
8093
8094 2013-04-29 Pierre Muller <muller@sourceware.org>
8095
8096 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8097 editCase function rule.
8098 (get_DW_AT_signature_type): Likewise.
8099
8100 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8101
8102 * m32r-tdep.c (m32r_write_pc): Delete.
8103 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8104 Add call to set_gdbarch_pc_regnum.
8105
8106 2013-04-29 Pierre Muller <muller@sourceware.org>
8107
8108 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8109
8110 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8111
8112 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8113
8114 2013-04-28 Yao Qi <yao@codesourcery.com>
8115
8116 * solib-dsbt.c (fetch_loadmap): Re-indent.
8117 (displacement_from_map, enable_break2): Likewise.
8118 (dsbt_relocate_section_addresses): Likewise.
8119
8120 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8121
8122 GDB 7.6 released.
8123
8124 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8125
8126 PR corefiles/14983:
8127 * dwarf2read.c (process_full_comp_unit): Always create a static
8128 block.
8129
8130 2013-04-25 Hui Zhu <hui@codesourcery.com>
8131
8132 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8133 to loc->cmd_bytecode.
8134
8135 2013-04-24 Doug Evans <dje@google.com>
8136
8137 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8138
8139 2013-04-22 Keith Seitz <keiths@redhat.com>
8140
8141 * tracepoint.c (trace_save): Call the writer's start method.
8142
8143 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8144
8145 PR gdb/10462
8146 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8147 before argument.
8148
8149 2013-04-23 Tom Tromey <tromey@redhat.com>
8150
8151 * common/filestuff.c: Check USE_WIN32API before including
8152 sys/socket.h.
8153 (HAVE_F_GETFD): New define.
8154 (mark_cloexec): Check HAVE_F_GETFD.
8155 (gdb_open_cloexec): Change 'mode' to unsigned long.
8156 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8157 (gdb_pipe_cloexec): Check HAVE_PIPE.
8158 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8159 long.
8160
8161 2013-04-23 Hui Zhu <hui@codesourcery.com>
8162
8163 PR gdb/15293
8164 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8165
8166 2013-04-23 Hui Zhu <hui@codesourcery.com>
8167
8168 PR gdb/15165
8169 * breakpoint.c (dprintf_print_recreate): New.
8170 (save_breakpoints): Let it not save dprintf commands.
8171 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8172
8173 2013-04-22 Tom Tromey <tromey@redhat.com>
8174
8175 PR gdb/7912:
8176 * Makefile.in (SFILES): Add filestuff.c
8177 (COMMON_OBS): Add filestuff.o.
8178 (filestuff.o): New target.
8179 * auto-load.c (auto_load_objfile_script_1): Use
8180 gdb_fopen_cloexec.
8181 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8182 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8183 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8184 * common/agent.c (gdb_connect_sync_socket): Use
8185 gdb_socket_cloexec.
8186 * common/filestuff.c: New file.
8187 * common/filestuff.h: New file.
8188 * common/linux-osdata.c (linux_common_core_of_thread)
8189 (command_from_pid, commandline_from_pid, print_source_lines)
8190 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8191 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8192 gdb_fopen_cloexec.
8193 * common/linux-procfs.c (linux_proc_get_int)
8194 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8195 * config.in, configure: Rebuild.
8196 * configure.ac: Don't check for sys/socket.h. Check for
8197 fdwalk, pipe2.
8198 * corelow.c (core_open): Use gdb_open_cloexec.
8199 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8200 * fork-child.c (fork_inferior): Call close_most_fds.
8201 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8202 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8203 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8204 Use gdb_fopen_cloexec.
8205 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8206 gdb_open_cloexec.
8207 (linux_async_pipe): Use gdb_pipe_cloexec.
8208 * remote-fileio.c (remote_fileio_func_open): Use
8209 gdb_open_cloexec.
8210 * remote.c (remote_file_put, remote_file_get): Use
8211 gdb_fopen_cloexec.
8212 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8213 close_most_fds.
8214 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8215 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8216 * solib.c (solib_find): Use gdb_open_cloexec.
8217 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8218 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8219 (tfile_open): Use gdb_open_cloexec.
8220 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8221 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8222 * xml-support.c (xml_fetch_content_from_file): Use
8223 gdb_fopen_cloexec.
8224 * main.c (captured_main): Call notice_open_fds.
8225
8226 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8227
8228 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8229 'char *' to 'gdb_byte *'.
8230 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8231 'gdb_byte'.
8232
8233 2013-04-22 Yao Qi <yao@codesourcery.com>
8234
8235 * infrun.c: Fix typo in comment.
8236
8237 2013-04-22 Andrew Haley <aph@redhat.com>
8238
8239 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8240 instead of "long".
8241
8242 2013-04-20 Yao Qi <yao@codesourcery.com>
8243
8244 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8245 'char *' to 'gdb_byte *'. Cast the return value of
8246 'bt_ctf_get_char_array' to 'gdb_byte *'.
8247
8248 2013-04-19 Pedro Alves <palves@redhat.com>
8249
8250 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8251 -Wpointer-sign.
8252 * configure: Regenerate.
8253
8254 2013-04-19 Pedro Alves <palves@redhat.com>
8255
8256 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8257 'void *'.
8258
8259 2013-04-19 Pedro Alves <palves@redhat.com>
8260
8261 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8262 Change type of 'myaddr' parameter to gdb_byte pointer.
8263 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8264 to 'long long' pointer instead of to 'unsigned long long'.
8265 (monitor_write_memory_block, monitor_read_memory_single)
8266 (monitor_read_memory): Change type of 'myaddr' parameter to
8267 gdb_byte pointer.
8268
8269 2013-04-19 Pedro Alves <palves@redhat.com>
8270
8271 * record.c (validate_history_size): Make parameter 'setting'
8272 unsigned.
8273
8274 2013-04-19 Pedro Alves <palves@redhat.com>
8275
8276 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8277 to 'gdb_byte *'.
8278
8279 2013-04-19 Pedro Alves <palves@redhat.com>
8280
8281 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8282 local to int.
8283
8284 2013-04-19 Pedro Alves <palves@redhat.com>
8285
8286 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8287 * ada-tasks.c (read_fat_string_value): Likewise.
8288
8289 2013-04-19 Pedro Alves <palves@redhat.com>
8290
8291 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8292 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8293 'offset', and adjust.
8294
8295 2013-04-19 Pedro Alves <palves@redhat.com>
8296
8297 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8298 (read_index_from_section): Add cast to 'char *'.
8299
8300 2013-04-19 Pedro Alves <palves@redhat.com>
8301
8302 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8303
8304 2013-04-19 Pedro Alves <palves@redhat.com>
8305
8306 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8307
8308 2013-04-19 Pedro Alves <palves@redhat.com>
8309
8310 * record-full.c (record_full_get_bookmark): Change local 'ret'
8311 type to char * and add cast to gdb_byte *.
8312 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8313 string.
8314 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8315
8316 2013-04-19 Pedro Alves <palves@redhat.com>
8317
8318 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8319 * python/py-prettyprint.c (print_string_repr): Change type of
8320 'output' local to char *. Add cast to gdb_byte * in
8321 LA_PRINT_STRING call.
8322 (print_children): Change type of 'output' local to char *.
8323 * python/py-value.c (valpy_string): Add cast to const char * in
8324 PyUnicode_Decode call.
8325
8326 2013-04-19 Pedro Alves <palves@redhat.com>
8327
8328 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8329 and change its type to 'const char *'. Adjust.
8330 (mips_send_packet): Add cast to 'char *', and remove cast to
8331 'unsigned char *'.
8332 (mips_receive_packet): Remove cast to 'unsigned char *'.
8333 (mips_load_srec): Use bfd_byte.
8334 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8335 (pmon_checkset): Make 'value' parameter unsigned.
8336
8337 2013-04-19 Pedro Alves <palves@redhat.com>
8338
8339 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8340
8341 2013-04-19 Pedro Alves <palves@redhat.com>
8342
8343 * remote.c (remote_write_bytes_aux, compare_sections_command)
8344 (remote_read_qxfer)
8345 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8346 (remote_hostio_readlink, remote_bfd_iovec_pread)
8347 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8348 binary buffer, and char when buffer is used as string.
8349 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8350 (trace_save, tfile_open, traceframe_walk_blocks)
8351 (tfile_fetch_registers): Likewise.
8352
8353 2013-04-19 Pedro Alves <palves@redhat.com>
8354
8355 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8356 buffer and size_t size. Adjust.
8357 * ser-base.h (ser_base_write): Adjust.
8358 * ser-go32.c (cnts): Change type to size_t.
8359 (dos_write): Change prototype -- take 'void *'
8360 buffer and size_t size. Adjust.
8361 (dos_info): Print elements of 'cnts' as unsigned long.
8362 * serial.c (serial_write): Likewise.
8363 * serial.h (serial_write): Adjust.
8364 (struct serial_ops) <write>: Change prototype -- take 'void *'
8365 buffer and size_t size. Adjust.
8366
8367 2013-04-19 Pedro Alves <palves@redhat.com>
8368
8369 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8370 gdb_byte *.
8371 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8372
8373 2013-04-19 Pedro Alves <palves@redhat.com>
8374
8375 * alpha-tdep.c (alpha_extract_return_value): Use
8376 regcache_cooked_read_unsigned to read 'v0'.
8377
8378 2013-04-19 Pedro Alves <palves@redhat.com>
8379
8380 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8381 parameters 'at', 'as' and 'offset' to uint32_t.
8382
8383 2013-04-19 Pedro Alves <palves@redhat.com>
8384
8385 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8386 'is64' to signed 'int'.
8387
8388 2013-04-19 Pedro Alves <palves@redhat.com>
8389
8390 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8391 parameter to int *.
8392
8393 2013-04-19 Pedro Alves <palves@redhat.com>
8394
8395 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8396 'insnbuf' buffer type to unsigned int[].
8397
8398 2013-04-19 Pedro Alves <palves@redhat.com>
8399
8400 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8401
8402 2013-04-19 Pedro Alves <palves@redhat.com>
8403
8404 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8405 unsigned long *.
8406
8407 2013-04-19 Pedro Alves <palves@redhat.com>
8408
8409 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8410 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8411 UINT_MAX.
8412 * mips-tdep.c (heuristic_fence_post): Change type to int.
8413 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8414
8415 2013-04-19 Pedro Alves <palves@redhat.com>
8416
8417 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8418 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8419 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8420
8421 2013-04-19 Pedro Alves <palves@redhat.com>
8422
8423 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8424 it to get a string view of the byte buffer.
8425 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8426 type to gdb_byte *. Adjust.
8427 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8428 Change local to char *.
8429 * solib-darwin.c (find_program_interpreter): Change return type to
8430 char *. Adjust.
8431 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8432 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8433 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8434 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8435 * solib-svr4.c (find_program_interpreter): Change return type to
8436 char *. Adjust.
8437 (enable_break): Change local 'interp_name' to char *.
8438 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8439 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8440 (spu_pseudo_register_write_spu): Use char for string buffer.
8441 Adjust.
8442 (info_spu_event_command, info_spu_signal_command): Add casts to
8443 'char *'.
8444
8445 2013-04-19 Pedro Alves <palves@redhat.com>
8446
8447 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8448 gdb_byte[].
8449 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8450 * ada-lang.c (ada_value_assign): Use gdb_byte.
8451 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8452 (alphanbsd_sigtramp_offset): Use gdb_byte.
8453 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8454 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8455 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8456 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8457 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8458 * arm-tdep.c (arm_stub_unwind_sniffer)
8459 (arm_displaced_init_closure): Use gdb_byte.
8460 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8461 (arm_default_thumb_le_breakpoint)
8462 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8463 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8464 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8465 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8466 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8467 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8468 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8469 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8470 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8471 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8472 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8473 (cris_store_return_value, cris_extract_return_value): Use
8474 gdb_byte.
8475 (constraint): Change type of parameter to char * from signed
8476 char*. Use gdb_byte.
8477 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8478 of local buffer to gdb_byte *.
8479 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8480 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8481 (add_address_entry): Change type of local buffer to gdb_byte[].
8482 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8483 (frv_push_dummy_call): Use gdb_byte.
8484 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8485 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8486 (hppa_hpux_supply_save_state): Use gdb_byte.
8487 * hppa-tdep.c (hppa32_push_dummy_call)
8488 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8489 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8490 (slotN_contents, replace_slotN_contents): Change type of parameter
8491 to gdb_byte *.
8492 (fetch_instruction, ia64_pseudo_register_write)
8493 (ia64_register_to_value, ia64_value_to_register)
8494 (ia64_extract_return_value, ia64_store_return_value)
8495 (ia64_push_dummy_call): Use gdb_byte.
8496 * m32c-tdep.c (m32c_return_value): Remove cast.
8497 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8498 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8499 gdb_byte.
8500 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8501 * mn10300-tdep.c (mn10300_store_return_value)
8502 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8503 gdb_byte.
8504 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8505 (moxie_process_record): Remove casts.
8506 * ppc-ravenscar-thread.c (supply_register_at_address)
8507 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8508 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8509 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8510 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8511 * remote.c (compare_sections_command): Use gdb_byte.
8512 * score-tdep.c (score7_free_memblock): Change type of parameter to
8513 gdb_byte *.
8514 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8515 gdb_byte *. Use gdb_byte.
8516 (sh_push_dummy_call_fpu): Use gdb_byte.
8517 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8518 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8519 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8520 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8521 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8522 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8523 (sh64_store_return_value, sh64_register_convert_to_virtual):
8524 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8525 (sh64_pseudo_register_write): Use gdb_byte.
8526 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8527 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8528 buffer.
8529 (irix_current_sos): Use gdb_byte.
8530 * solib-som.c (som_current_sos): Use gdb_byte.
8531 * sparc-ravenscar-thread.c (supply_register_at_address)
8532 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8533 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8534 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8535 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8536 'gdb_byte *'.
8537 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8538 'gdb_byte *'.
8539 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8540 * xstormy16-tdep.c (xstormy16_extract_return_value)
8541 (xstormy16_store_return_value): Change parameter type to
8542 'gdb_byte *'. Adjust.
8543 (xstormy16_push_dummy_call): Use gdb_byte.
8544 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8545 (call0_analyze_prologue, execute_code): Use gdb_byte.
8546
8547 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8548 Pedro Alves <palves@redhat.com>
8549
8550 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8551 value contents.
8552
8553 2013-04-17 Doug Evans <dje@google.com>
8554
8555 * dwarf2read.c (struct signatured_type): New member type.
8556 (struct attribute): Replace member signatured_type with signature.
8557 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8558 (read_call_site_scope): Call follow_die_ref instead of
8559 follow_die_ref_or_sig.
8560 (read_structure_type): Rewrite handling of signatured types.
8561 (read_enumeration_type): Ditto.
8562 (read_attribute_value): Update.
8563 (build_error_marker_type): New function.
8564 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8565 Don't call error for bad types, just build an error marker type.
8566 (dump_die_shallow): Update.
8567 (follow_die_sig_1): Renamed from follow_die_sig.
8568 Don't call error for bad types, instead return NULL.
8569 (follow_die_sig): New function.
8570 (get_signatured_type, get_DW_AT_signature_type): New functions.
8571
8572 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8573
8574 * aarch64-tdep.c (aarch64_write_pc): Removed.
8575 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8576 function.
8577
8578 2013-04-17 Yao Qi <yao@codesourcery.com>
8579
8580 * top.c (print_gdb_configuration): Print configure-time
8581 parameter on using libbabeltrace or not.
8582
8583 2013-04-16 Pedro Alves <palves@redhat.com>
8584
8585 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8586
8587 2013-04-16 Pedro Alves <palves@redhat.com>
8588
8589 * common/glibc_thread_db.h: Update from upstream glibc
8590 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8591
8592 2013-04-16 Pedro Alves <palves@redhat.com>
8593
8594 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8595 * common/glibc_thread_db.h: ... this new file ...
8596 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8597
8598 2013-04-16 Will Newton <will.newton@gmail.com>
8599 Pedro Alves <palves@redhat.com>
8600
8601 PR build/11881
8602
8603 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8604 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8605 HAVE_THREAD_DB_H.
8606
8607 2013-04-16 Pedro Alves <palves@redhat.com>
8608 Eli Zaretskii <eliz@gnu.org>
8609
8610 * NEWS: Mention "set foo unlimited".
8611
8612 2013-04-15 Doug Evans <dje@google.com>
8613
8614 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8615 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8616 (create_dwo_cu_reader): Renamed from
8617 create_dwo_debug_info_hash_table_reader.
8618 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8619 Remove support for multiple CUs in a DWO file.
8620 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8621
8622 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8623 instead of phex.
8624 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8625 (create_dwo_in_dwp): Ditto.
8626
8627 2013-04-15 Tom Tromey <tromey@redhat.com>
8628
8629 * NEWS: Move recent entries into "since 7.6" section.
8630
8631 2013-04-15 Tom Tromey <tromey@redhat.com>
8632
8633 PR c++/13588:
8634 * NEWS: Update.
8635 * break-catch-throw.c (struct exception_catchpoint)
8636 <exception_rx, pattern>: New fields.
8637 (fetch_probe_arguments, dtor_exception_catchpoint)
8638 (check_status_exception_catchpoint)
8639 (print_one_detail_exception_catchpoint): New functions.
8640 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8641 Compile regular expression if needed.
8642 (extract_exception_regexp): New function.
8643 (catch_exception_command_1): Use extract_exception_regexp.
8644 (compute_exception): Use fetch_probe_arguments.
8645 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8646 and check_status fields.
8647 * cp-abi.c (cplus_typename_from_type_info): New function.
8648 * cp-abi.h (cplus_typename_from_type_info): Declare.
8649 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8650 * gdb_regex.h (compile_rx_or_error): Declare.
8651 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8652 comment.
8653 (init_gnuv3_ops): Set get_type_from_type_info field.
8654 * probe.c (compile_rx_or_error): Move...
8655 * utils.c (compile_rx_or_error): ... here.
8656
8657 2013-04-15 Tom Tromey <tromey@redhat.com>
8658
8659 PR c++/15176:
8660 * NEWS: Update.
8661 * break-catch-throw.c (compute_exception): New function.
8662 (exception_funcs): New global.
8663 (_initialize_break_catch_throw): Create $_exception.
8664 * cp-abi.c (cplus_type_from_type_info): New function.
8665 * cp-abi.h (cplus_type_from_type_info): Declare.
8666 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8667 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8668 (gnuv3_get_type_from_type_info): New functions.
8669 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8670
8671 2013-04-15 Tom Tromey <tromey@redhat.com>
8672
8673 * break-catch-throw.c (struct exception_names): New.
8674 (exception_functions): Change type.
8675 (re_set_exception_catchpoint): Look for SDT probes.
8676
8677 2013-04-15 Tom Tromey <tromey@redhat.com>
8678
8679 PR c++/10119:
8680 * break-catch-throw.c (exception_functions): New global.
8681 (gnu_v3_exception_catchpoint_ops): Move earlier.
8682 (struct exception_catchpoint): New.
8683 (classify_exception_breakpoint): Rewrite.
8684 (re_set_exception_catchpoint): New function.
8685 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8686 Allocate a struct exception_catchpoint.
8687 (catch_exception_command_1): Update.
8688 (initialize_throw_catchpoint_ops): Set 're_set' method.
8689
8690 2013-04-15 Tom Tromey <tromey@redhat.com>
8691
8692 * Makefile.in (SFILES): Add break-catch-throw.c
8693 (COMMON_OBS): Add break-catch-throw.o.
8694 * break-catch-throw.c: New file.
8695 * breakpoint.c: Move exception-catching code to new file.
8696 (ep_parse_optional_if_clause): No longer static.
8697 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8698
8699 2013-04-15 Tom Tromey <tromey@redhat.com>
8700
8701 PR c++/9065:
8702 * NEWS: Update.
8703 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8704 * c-exp.y (TYPEID): New token.
8705 (exp): Add new TYPEID productions.
8706 (ident_tokens): Add "typeid".
8707 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8708 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8709 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8710 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8711 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8712 case.
8713 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8714 (build_std_type_info_type, gnuv3_get_typeid_type)
8715 (gnuv3_get_typeid): New functions.
8716 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8717 new fields on ABI object.
8718 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8719 * std-operator.def (OP_TYPEID): New.
8720
8721 2013-04-15 Tom Tromey <tromey@redhat.com>
8722
8723 * elfread.c (elf_symtab_read): Install versioned symbol under
8724 unversioned name as well.
8725
8726 2013-04-15 Tom Tromey <tromey@redhat.com>
8727
8728 PR c++/11990:
8729 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8730 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8731 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8732 (gdb_demangle): New function.
8733 * cp-support.h (gdb_demangle): Declare.
8734 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8735 (dwarf2_name): Use gdb_demangle.
8736 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8737 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8738 suffixes from name.
8739 (gnuv3_print_method_ptr): Use gdb_demangle.
8740 * jv-lang.c (java_demangle): Use gdb_demangle.
8741 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8742 * language.c (unk_lang_demangle): Use gdb_demangle.
8743 * symtab.c (symbol_find_demangled_name)
8744 (demangle_for_lookup): Use gdb_demangle.
8745
8746 2013-04-15 Tom Tromey <tromey@redhat.com>
8747
8748 PR c++/12824:
8749 * NEWS: Update.
8750 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8751 New constant.
8752 (classify_exception_breakpoint): New function.
8753 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8754 (print_mention_exception_catchpoint)
8755 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8756 (catch_exception_command_1): Handle "rethrow" catchpoint.
8757 (catch_rethrow_command): New function.
8758 (_initialize_breakpoint): Add "catch rethrow" command.
8759
8760 2013-04-15 Pierre Muller <muller@sourceware.org>
8761
8762 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8763 set_gdbarch_write_pc as deprecated anymore.
8764
8765 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8766
8767 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8768 declarations.
8769
8770 2013-04-13 Yao Qi <yao@codesourcery.com>
8771
8772 * ctf.c (_initialize_ctf): Include "completer.h".
8773 Call add_target_with_completer instead of add_target.
8774
8775 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8776
8777 Fix GDB regression related to PR binutils/14813.
8778 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8779 * minidebug.c (lzma_close): Add return value comment.
8780 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8781 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8782 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8783
8784 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8785
8786 * config.in: Regenerate.
8787
8788 2013-04-12 Tom Tromey <tromey@redhat.com>
8789
8790 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8791 const.
8792 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8793 (struct die_reader_specs) <buffer>: Likewise.
8794 (die_reader_func_ftype): Make 'info_ptr' const.
8795 (struct line_header) <include_dirs, statement_program_start,
8796 statement_program_end>: Now const.
8797 (struct file_entry) <name>: Likewise.
8798 (struct partial_die_info) <sibling>: Likewise.
8799 (struct dwarf_block) <data>: Likewise.
8800 (dwarf2_read_section): Remove cast.
8801 (dwarf2_get_section_info): Make 'bufp' const.
8802 (read_index_from_section): Constify.
8803 (dw2_get_file_names_reader): Make 'info_ptr' const.
8804 (dw2_get_primary_filename_reader): Likewise.
8805 (read_comp_unit_head): Make 'info_ptr' and return type const.
8806 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8807 Likewise.
8808 (read_abbrev_offset): Constify.
8809 (dwarf2_create_include_psymtab): Make 'name' const.
8810 (create_debug_types_hash_table): Update.
8811 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8812 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8813 Constify.
8814 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8815 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8816 (read_comp_units_from_section): Constify.
8817 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8818 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8819 const.
8820 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8821 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8822 (create_dwp_hash_table, dwarf2_ranges_read)
8823 (dwarf2_record_block_ranges): Constify.
8824 (read_die_and_children, read_die_and_siblings_1)
8825 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8826 const.
8827 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8828 (abbrev_table_read_table): Constify.
8829 (load_partial_dies): Make 'info_ptr' const.
8830 (read_partial_die, read_attribute_value, read_attribute): Make
8831 'info_ptr' and return type const.
8832 (read_address, read_initial_length)
8833 (read_checked_initial_length_and_offset, read_offset)
8834 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8835 const.
8836 (read_direct_string): Make 'buf' and return type const.
8837 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8838 (read_indirect_string): Make return type const.
8839 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8840 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8841 'info_ptr' const.
8842 (read_str_index): Make return type const.
8843 (add_include_dir): Make 'include_dir' const.
8844 (add_file_name): Make 'name' const.
8845 (dwarf_decode_line_header): Constify.
8846 (psymtab_include_file_name): Make return type const.
8847 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8848 (dwarf2_start_subfile): Make 'filename' const.
8849 (dwarf2_const_value_attr): Make 'bytes' const.
8850 (read_signatured_type_reader): Make 'info_ptr' const.
8851 (decode_locdesc): Constify.
8852 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8853 const.
8854 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8855 'mac_end', and return type const.
8856 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8857 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8858 type const.
8859 (per_cu_header_read_in): Constify.
8860 * symfile.h (dwarf2_get_section_info): Update.
8861
8862 2013-04-12 Tom Tromey <tromey@redhat.com>
8863
8864 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8865
8866 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8867
8868 * NEWS: Mention "show configuration", --configuration.
8869 * top.c (print_gdb_configuration): New function, displays the
8870 details about GDB configure-time parameters.
8871 (print_gdb_version): Mention "show configuration".
8872 * cli/cli-cmds.c (show_configuration): New function.
8873 (_initialize_cli_cmds): Add the "show configuration" command.
8874 * main.c (captured_main) <print_configuration>: New static var.
8875 <long_options>: Use it.
8876 If --configuration was given, call print_gdb_configuration.
8877
8878 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 Pedro Alves <palves@redhat.com>
8880
8881 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8882 (generated_files): Add gcore.
8883 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8884 HAVE_NATIVE_GCORE_HOST.
8885 (gcore): New.
8886 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8887 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8888 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8889 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8890 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8891 Add HAVE_NATIVE_GCORE_HOST.
8892 * configure: Regenerate.
8893 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8894 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8895 AC_CONFIG_FILES for gcore.
8896 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8897 gdb_have_gcore.
8898 * gdb_gcore.sh: Rename to ...
8899 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8900 and GCORE_TRANSFORM_NAME substitutions.
8901
8902 Fix parsing tabs in ${gdb_target_obs}.
8903 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8904
8905 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 * remote.c (unpush_and_perror): Add output message final dot.
8908
8909 2013-04-11 Yao Qi <yao@codesourcery.com>
8910
8911 * tracepoint.c (tfile_interp_line): Fit parameters line and
8912 utpp in one line.
8913
8914 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8915
8916 * solib.c (solib_map_sections): Remove code overwriting
8917 SO->SO_NAME with the bfd's filename.
8918
8919 2013-04-10 Pedro Alves <palves@redhat.com>
8920
8921 * cli/cli-decode.c (integer_unlimited_completer): New function.
8922 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8923 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8924 completer.
8925 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8926 (is_unlimited_literal): New function.
8927 (do_set_command): Handle literal "unlimited" arguments.
8928 * frame.c (_initialize_frame) <set backtrace limit>: Document
8929 "unlimited".
8930 * printcmd.c (_initialize_printcmd) <set print
8931 max-symbolic-offset>: Add help text.
8932 * record-full.c (_initialize_record_full) <set record full
8933 insn-number-max>: Likewise.
8934 * record.c (_initialize_record) <set record
8935 instruction-history-size, set record function-call-history-size>:
8936 Add help text.
8937 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8938 help text.
8939 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8940 Likewise.
8941 * source.c (_initialize_source) <set listsize>: Add help text.
8942 * utils.c (initialize_utils) <set height, set width>: Likewise.
8943 <set pagination>: Mention "set height unlimited".
8944 * valprint.c (_initialize_valprint) <set print elements, set print
8945 repeats>: Document "unlimited".
8946
8947 2013-04-10 Pedro Alves <palves@redhat.com>
8948
8949 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8950 instead of disconnect_tracing.
8951 * infcmd.c (detach_command, disconnect_command): Call
8952 query_if_trace_running. Adjust.
8953 * top.c: Include "tracepoint.h".
8954 (quit_target): Delete. Contents moved ...
8955 (quit_force): ... here. Wrap each stage of teardown in
8956 TRY_CATCH. Call disconnect_tracing before detaching.
8957
8958 2013-04-10 Hui Zhu <hui@codesourcery.com>
8959 Yao Qi <yao@codesourcery.com>
8960
8961 * configure.ac: Check libbabeltrace is installed.
8962 * config.in: Regenerate.
8963 * configure: Regenerate.
8964 * Makefile.in (LIBBABELTRACE): New.
8965 (CLIBS): Add LIBBABELTRACE.
8966 * ctf.c: Include "exec.h".
8967 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8968 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8969 (ctf_save_metadata_header): Define new type aliases in
8970 metadata.
8971 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8972 in metadata. Start a new faked packet for trace status.
8973 (ctf_write_status): Write trace status to CTF.
8974 (ctf_write_uploaded_tsv): Write TSV to CTF.
8975 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8976 (ctf_write_definition_end): End the faked packet.
8977
8978 (ctx, ctf_iter, trace_dirname): New.
8979 (start_pos): New variable.
8980 (ctf_destroy, ctf_open_dir, ctf_open): New.
8981 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8982 macros.
8983 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8984 (ctf_fetch_registers, ctf_xfer_partial): New.
8985 (ctf_get_trace_state_variable_value): New.
8986 (ctf_get_tpnum_from_frame_event): New.
8987 (ctf_get_traceframe_address): New.
8988 (ctf_trace_find, ctf_has_stack): New.
8989 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8990 (ctf_get_trace_status, ctf_read_status): New.
8991 (_initialize_ctf): New.
8992 * tracepoint.c (get_tracepoint_number): New
8993 (get_uploaded_tsv): Remove 'static'.
8994 (struct traceframe_info, trace_regblock_size): Move it to ...
8995 * tracepoint.h: ... here.
8996 (get_tracepoint_number): Declare it.
8997 (get_uploaded_tsv): Declare it.
8998
8999 * NEWS: Mention new configure option.
9000
9001 2013-04-10 Pedro Alves <palves@redhat.com>
9002 Hui Zhu <hui@codesourcery.com>
9003
9004 * breakpoint.c (dprintf_re_set): New.
9005 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9006 to dprintf_re_set.
9007
9008 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9009
9010 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9011 Remove solib-svr4.o from the list.
9012
9013 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9014
9015 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9016 Use gdb_assert_not_reached instead of invalid boolean expression.
9017
9018 2013-04-09 Pedro Alves <palves@redhat.com>
9019
9020 * remote.c (unpush_and_perror): New function.
9021 (readchar, remote_serial_write): Use it.
9022
9023 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9024
9025 * NEWS: Mention new btrace RSP packets.
9026
9027 2013-04-08 Tom Tromey <tromey@redhat.com>
9028
9029 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9030 long.
9031
9032 2013-04-08 Tom Tromey <tromey@redhat.com>
9033
9034 * maint.c (print_bfd_section_info): Print the section index.
9035 * symmisc.c (dump_msymbols): Print the section index.
9036
9037 2013-04-08 Tom Tromey <tromey@redhat.com>
9038
9039 PR symtab/8424:
9040 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9041 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9042 * breakpoint.c (resolve_sal_pc): Update.
9043 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9044 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9045 (minsym_lookup_iterator_cb): Use it.
9046 (default_read_var_value): Update.
9047 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9048 Update.
9049 * infcmd.c (jump_command): Update.
9050 * linespec.c (minsym_found): Update.
9051 * maint.c (maintenance_translate_address): Update.
9052 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9053 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9054 * parse.c (write_exp_msymbol): Update.
9055 * printcmd.c (address_info): Update.
9056 * psymtab.c (find_pc_sect_psymbol): Update.
9057 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9058 SYMBOL_OBJ_SECTION.
9059 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9060 Don't initialize SYMBOL_OBJ_SECTION.
9061 * spu-tdep.c (spu_catch_start): Update.
9062 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9063 * symmisc.c (dump_msymbols, print_symbol): Update.
9064 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9065 how fallback section is computed.
9066 (fixup_symbol_section): Update.
9067 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9068 Update.
9069 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9070 Initialize SYMBOL_SECTION.
9071 * symtab.h (struct general_symbol_info) <section>: Update comment.
9072 <obj_section>: Remove.
9073 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9074 (SYMBOL_OBJFILE): New macro.
9075
9076 2013-04-08 Tom Tromey <tromey@redhat.com>
9077
9078 * coffread.c (record_minimal_symbol): Update.
9079 * dbxread.c (record_minimal_symbol): Update.
9080 * elfread.c (record_minimal_symbol): Update.
9081 * machoread.c (macho_symtab_add_minsym): Update.
9082 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9083 Update.
9084 * minsyms.c (prim_record_minimal_symbol): Update.
9085 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9086 argument.
9087 (prim_record_minimal_symbol_and_info): Likewise.
9088 * minsyms.h (prim_record_minimal_symbol_full)
9089 (prim_record_minimal_symbol_and_info): Update.
9090 * symtab.c (allocate_symbol, initialize_symbol)
9091 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9092 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9093 Update.
9094
9095 2013-04-08 Tom Tromey <tromey@redhat.com>
9096
9097 PR symtab/8423:
9098 * solib-som.c (som_solib_section_offsets): Use BFD section
9099 indices. Set offsets for all sections.
9100 * somread.c (som_symtab_read): Compute BFD section for
9101 symbol. Use prim_record_minimal_symbol_and_info.
9102 (som_symfile_read): Fix comment.
9103 (struct find_section_offset_arg): New.
9104 (find_section_offset, set_section_index): New functions.
9105 (som_symfile_offsets): Use set_section_index to compute
9106 section indices.
9107
9108 2013-04-08 Tom Tromey <tromey@redhat.com>
9109
9110 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9111 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9112 gdb_bfd_section_index.
9113 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9114 New functions.
9115 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9116 Declare.
9117 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9118 Update.
9119 * objfiles.c (add_to_objfile_sections_full): New function.
9120 (add_to_objfile_sections): Use it.
9121 (build_section_table): Rewrite.
9122 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9123 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9124 (struct objfile) <sections>: Update comment.
9125 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9126 is NULL.
9127 (ALL_OBJSECTIONS): Use it.
9128 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9129 * solib-frv.c (frv_relocate_main_executable): Update.
9130 * solib-target.c (solib_target_relocate_section_addresses):
9131 Use gdb_bfd_section_index.
9132 * symfile.c (build_section_addr_info_from_section_table):
9133 Use gdb_bfd_section_index.
9134 (build_section_addr_info_from_bfd, place_section): Likewise.
9135 * symtab.c (fixup_section): Update.
9136 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9137
9138 2013-04-08 Tom Tromey <tromey@redhat.com>
9139
9140 * minsyms.h (struct bound_minimal_symbol): New.
9141 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9142 Remove objfile argument.
9143 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9144 Return bound_minimal_symbol.
9145 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9146 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9147 Return bound_minimal_symbol.
9148 (in_gnu_ifunc_stub): Update.
9149 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9150 Remove 'objfile_p' argument.
9151 (lookup_solib_trampoline_symbol_by_pc): Update.
9152 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9153 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9154 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9155 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9156 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9157 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9158 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9159 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9160 stack.c, symtab.c, tui/tui-disasm.c: Update.
9161
9162 2013-04-08 Tom Tromey <tromey@redhat.com>
9163
9164 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9165 Use symbol's obstack, not an objfile.
9166 * coffread.c (process_coff_symbol): Update.
9167 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9168 * jv-lang.c (add_class_symbol): Update.
9169 * mdebugread.c (new_symbol): Update.
9170 * minsyms.c (prim_record_minimal_symbol_full)
9171 (terminate_minimal_symbol_table): Update.
9172 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9173 * stabsread.c (define_symbol, read_enum_type): Update.
9174 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9175 Handle Ada specially.
9176 (symbol_set_language): Add 'obstack' argument.
9177 (symbol_set_names): Update.
9178 (symbol_natural_name, symbol_demangled_name): Always use
9179 ada_decode_symbol.
9180 * symtab.h (struct general_symbol_info)
9181 <language_specific::obstack>: New field.
9182 <ada_mangled>: New field.
9183 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9184 (symbol_set_language): Update.
9185
9186 2013-04-08 Tom Tromey <tromey@redhat.com>
9187
9188 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9189 Take an obstack, not an objfile.
9190 (symbol_set_names): Update.
9191 * symtab.h (symbol_set_demangled_name): Update.
9192
9193 2013-04-08 Tom Tromey <tromey@redhat.com>
9194
9195 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9196 allocate_symbol.
9197 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9198 (read_func_scope): Call allocate_template_symbol.
9199 (new_symbol_full): Call allocate_symbol.
9200 * jit.c (finalize_symtab): Call allocate_symbol.
9201 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9202 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9203 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9204 (common_block_end): Call allocate_symbol.
9205 * symtab.c (allocate_symbol, initialize_symbol)
9206 (allocate_template_symbol): New functions.
9207 * symtab.c (allocate_symbol, initialize_symbol)
9208 (allocate_template_symbol): Declare.
9209 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9210
9211 2013-04-08 Pedro Alves <palves@redhat.com>
9212 Keith Seitz <keiths@redhat.com>
9213
9214 * breakpoint.c (create_breakpoint): Rename
9215 "parse_condition_and_thread" parameter to "parse_arg". Update
9216 describing comment. If !PARSE_ARG, then error out if ARG is not
9217 the empty string after extracting the location.
9218 * breakpoint.h (create_breakpoint): Rename
9219 "parse_condition_and_thread" parameter to "parse_arg".
9220
9221 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9222
9223 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9224
9225 2013-04-07 Yao Qi <yao@codesourcery.com>
9226
9227 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9228 and 'addr2' to CORE_ADDR.
9229 * target.c (update_current_target): Update.
9230 * target.h (struct target_ops) <to_trace_find>: Change parameter
9231 type to CORE_ADDR.
9232 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9233 'addr2' to CORE_ADDR.
9234 (tfile_trace_find): Likewise.
9235 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9236 Change local variable 'addr' to type CORE_ADDR.
9237 * tracepoint.h (tfind_1): Update declaration.
9238
9239 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9240
9241 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9242 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9243 Include main.h.
9244
9245 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9246 here...
9247 * main.h (windows_get_absolute_argv0): ...to here.
9248
9249 2013-04-05 Doug Evans <dje@google.com>
9250
9251 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9252 (read_cutu_die_from_dwo): Add comments.
9253 (read_structure_type): Update comment.
9254 (read_enumeration_type, read_namespace_type): Update comment.
9255 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9256
9257 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9258
9259 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9260 * Makefile.in (gdb.z): Remove.
9261 (install-only): Remove $(man1dir) and gdb.1 installation.
9262 * gdb.1: Remove.
9263
9264 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 Fix compatibility with Linux kernel 3.8.3.
9267 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9268 to more inner block. Remove parsing of NUMBER from outer block.
9269 Parse NUMBER only if KEYWORD has been identified.
9270
9271 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 Fix variable name shadowing.
9274 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9275 filename to mapsfilename and update its uses.
9276
9277 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9278
9279 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9280 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9281 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9282 details of the problem.
9283
9284 2013-04-04 Pedro Alves <palves@redhat.com>
9285 Hui Zhu <hui@codesourcery.com>
9286
9287 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9288 tracepoint, reset its STEP_COUNT and call validate_actionline.
9289
9290 2013-04-03 Doug Evans <dje@google.com>
9291
9292 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9293 read_die_and_siblings.
9294 (read_die_and_siblings): New function.
9295 (read_cutu_die_from_dwo): Dump die if requested.
9296 (read_die_and_children): Call read_full_die_1 and
9297 read_die_and_siblings_1.
9298 (read_full_die): Dump die if requested.
9299
9300 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9301
9302 * dwarf2read.c (struct dwo_file): New member comp_dir.
9303 Rename member name to dwo_name. All uses updated.
9304 (hash_dwo_file): Include comp_dir in computation.
9305 (eq_dwo_file): Ditto.
9306 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9307 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9308
9309 * psymtab.c (read_psymtabs_with_fullname): Don't call
9310 psymtab_to_fullname if the basenames are different.
9311
9312 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9315 New entry about "fullname" presence.
9316
9317 2013-04-03 Pedro Alves <palves@redhat.com>
9318
9319 * NEWS: Mention x86_64/Cygwin as new native configuration.
9320
9321 2013-04-02 Doug Evans <dje@google.com>
9322
9323 * dwarf2read.c (read_structure_type): Fix typo in comment.
9324
9325 2013-04-02 Pedro Alves <palves@redhat.com>
9326
9327 * NEWS: Mention "set/show debug aarch64", "set/show debug
9328 coff-pe-read" and "set/show debug mach-o".
9329
9330 2013-04-02 Pedro Alves <palves@redhat.com>
9331
9332 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9333
9334 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9335
9336 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9337 gdb_string.h is now in common/.
9338
9339 2013-04-02 Pedro Alves <palves@redhat.com>
9340
9341 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9342 under "New options".
9343
9344 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9345
9346 Revert this patch:
9347 PR gdb/15275
9348 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9349
9350 2013-04-02 Pedro Alves <palves@redhat.com>
9351
9352 PR gdb/15275
9353
9354 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9355 (remote_serial_write): New function.
9356 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9357
9358 2013-04-01 Jiong Wang <jiwang@tilera.com>
9359
9360 * NEWS: Mention TILE-Gx in "New native configurations" and
9361 "New targets" sections.
9362
9363 2013-04-01 Doug Evans <dje@google.com>
9364
9365 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9366 (process_enumeration_scope): Simplify.
9367
9368 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9369 type_unit_group ...
9370 (struct signatured_type): ... to here.
9371 (sig_type_ptr): New typedef.
9372 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9373 out of union 't'. All uses updated.
9374 (dw2_get_file_names_reader): Assert not called for a type unit.
9375 (dw2_get_file_names): Assert not called for a type unit or type
9376 unit group.
9377 (build_type_psymtabs_reader): Assert called for a type unit.
9378 (build_type_psymtab_dependencies): Assert called for a type unit group.
9379
9380 * dwarf2read.c (free_dwo_file): Add comment.
9381 (dwarf2_per_objfile_free): Unref dwp bfd.
9382
9383 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9384
9385 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9386 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9387 (read_pe_exported_syms): Remove unused 'exportix'.
9388 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9389 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9390 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9391
9392 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9393
9394 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9395 (print_it_watchpoint): Remove unused 'bl'.
9396 (say_where): Remove unused 'uiout'.
9397 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9398 (bkpt_breakpoint_hit): Remove unused 'b'.
9399 (internal_bkpt_print_it): Remove unused 'uiout'.
9400 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9401
9402 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9403
9404 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9405 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9406
9407 2013-03-29 Doug Evans <dje@google.com>
9408
9409 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9410 Delete arg is_dwp. All callers updated.
9411 (open_dwp_file): New function.
9412 (open_and_init_dwp_file): Call it.
9413 (get_dwp_file): New function.
9414 (lookup_dwo_cutu): Call it.
9415
9416 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9417 unnecessary, cleanup.
9418
9419 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9420
9421 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9422 (lookup_dwo_unit): New function.
9423 (init_cutu_and_read_dies): Move DWO handling to new functions.
9424
9425 * dwarf2read.c (struct signatured_type): Tweak comment.
9426 (struct dwo_unit): Tweak comment.
9427 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9428 (create_dwo_debug_info_hash_table): Tweak comment.
9429 (dwarf2_per_cu_offset_and_type): Tweak comment.
9430
9431 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9432 missing .debug_types section.
9433
9434 2013-03-29 Yao Qi <yao@codesourcery.com>
9435
9436 * corelow.c: Include "completer.h".
9437 (_initialize_corelow): Call add_target_with_completer with
9438 argument 'filename_completer'.
9439 * tracepoint.c: Likewise.
9440 * exec.c (_initialize_exec): Likewise.
9441 * target.c (add_target): Rename to ...
9442 (add_target_with_completer): ... this. Call set_cmd_completer
9443 if parameter completer is not NULL.
9444 (add_target): New.
9445 * target.h: Include "command.h".
9446 (add_target_with_completer): Declare it.
9447
9448 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9449
9450 * coffread.c (is_import_fixup_symbol): New function.
9451 (record_minimal_symbol): Use is_import_fixup_symbol to
9452 detect import fixup symbols, and discard them.
9453
9454 2013-03-28 Doug Evans <dje@google.com>
9455
9456 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9457 types hash table until we know we need it.
9458
9459 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9460 index numbers.
9461
9462 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9463 All callers updated.
9464 (dw2_print_stats): Print #read CUs too.
9465 (dump_die_shallow): Print signatured types better.
9466
9467 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9468 info_or_types_section to section. All uses updated.
9469 (struct dwo_unit): Ditto.
9470
9471 2013-03-28 Pedro Alves <palves@redhat.com>
9472
9473 * NEWS (New options): New section.
9474 (New options): Mention set/show remote trace-status-packet.
9475 * remote.c (PACKET_qTStatus): New enumeration value.
9476 (remote_get_trace_status): Skip sending qTStatus if the packet is
9477 disabled. Use packet_ok.
9478 (_initialize_remote): Register a configuration command for
9479 qTStatus packet.
9480
9481 2013-03-28 Doug Evans <dje@google.com>
9482
9483 * symfile.c (find_separate_debug_file): Add comment.
9484 (terminate_after_last_dir_separator): Tweak comment.
9485
9486 * dwarf2read.c (create_partial_symtab): Add forward decl.
9487 (create_partial_symtab): Move to be closer to other psymtab functions.
9488 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9489
9490 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9491 (compute_symtab_includes): Remove unnecessary forward declaration.
9492 (die_needs_namespace): Add comment marking group of functions for
9493 dwarf2 name computation.
9494
9495 * typeprint.c (_initialize_typeprint): Improve type help text.
9496
9497 * python/python.c (finish_python_initialization): Provide suggestion
9498 for how to tell gdb to find its python files.
9499
9500 2013-03-28 Pedro Alves <palves@redhat.com>
9501
9502 PR gdb/15294
9503
9504 * source.c (_initialize_source): Change back "set listsize" to an
9505 integer command.
9506
9507 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9508
9509 PR gdb/15275
9510 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9511
9512 2013-03-27 Pedro Alves <palves@redhat.com>
9513
9514 * top.c (history_size): Rename to ...
9515 (history_size_setshow_var): ... this. Add comment.
9516 (show_commands): Use readline's 'history_length' instead of
9517 computing the history length by calling history_get in a loop.
9518 (set_history_size_command): Error out for sizes over INT_MAX.
9519 Restore previous history size on invalid size.
9520 (init_history): If HISTSIZE is negative, leave the history size as
9521 zero. Add comments.
9522 (init_main): Adjust.
9523
9524 2013-03-27 Pedro Alves <palves@redhat.com>
9525
9526 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9527 coff_pe_read" command to "set debug coff-pe-read".
9528
9529 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9530
9531 * record.c (command_size_to_target_size): Fix size comparison.
9532 Change parameter type from pointer to integer to integer.
9533 Update all users.
9534
9535 2013-03-27 Pierre Muller <muller@sourceware.org>
9536
9537 * windows-nat.c (handle_output_debug_string): Avoid typecast
9538 from integer of different size warning.
9539
9540 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9541
9542 * windows-nat.c (handle_output_debug_string): Add empty line
9543 after local block variable definition.
9544
9545 2013-03-26 Pedro Alves <palves@redhat.com>
9546
9547 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9548 (net_open): Make 'polls' local unsigned.
9549
9550 2013-03-26 Pedro Alves <palves@redhat.com>
9551
9552 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9553 a zuinteger command instead of uinteger.
9554
9555 2013-03-26 Pedro Alves <palves@redhat.com>
9556
9557 * record-full.c (record_full_insn_num): Make it unsigned.
9558 (record_full_check_insn_num, record_full_message)
9559 (record_full_registers_change, record_full_xfer_partial): Remove
9560 record_full_insn_max_num check (it's always != 0).
9561 (record_full_info, record_full_restore): Use %u as format string.
9562 (): Use %u as format string.
9563 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9564 check (it's always != 0).
9565
9566 2013-03-26 Pedro Alves <palves@redhat.com>
9567
9568 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9569 and "set dcache size" commands zuinteger instead of uinteger.
9570
9571 2013-03-26 Pedro Alves <palves@redhat.com>
9572
9573 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9574 command zuinteger instead of uinteger.
9575
9576 2013-03-26 Pedro Alves <palves@redhat.com>
9577
9578 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9579 zuinteger instead of uinteger.
9580
9581 2013-03-26 Pedro Alves <palves@redhat.com>
9582
9583 * record.c (record_insn_history_size_setshow_var)
9584 (record_call_history_size_setshow_var): New globals.
9585 (command_size_to_target_size): New function.
9586 (cmd_record_insn_history, cmd_record_call_history): Use
9587 command_size_to_target_size instead of cast.
9588 (validate_history_size, set_record_insn_history_size)
9589 (set_record_call_history_size): New functions.
9590 (_initialize_record): Install set_record_insn_history_size and
9591 set_record_call_history_size as "set" hooks of "set record
9592 instruction-history-size" and "set record
9593 function-call-history-size".
9594
9595 2013-03-26 Pedro Alves <palves@redhat.com>
9596
9597 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9598 use with history_max_entries use. Remove FIXME note.
9599
9600 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9601
9602 * record-btrace.c (record_btrace_close): Call
9603 record_btrace_auto_disable.
9604
9605 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9606
9607 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9608
9609 2013-03-25 Doug Evans <dje@google.com>
9610
9611 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9612
9613 2013-03-25 Tom Tromey <tromey@redhat.com>
9614
9615 PR symtab/11462:
9616 * c-exp.y (exp): Add new productions for destructors after '.' and
9617 '->'.
9618 (write_destructor_name): New function.
9619
9620 2013-03-25 Tom Tromey <tromey@redhat.com>
9621
9622 PR c++/9197:
9623 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9624 value_struct_elt, not lookup_struct_elt_type.
9625 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9626 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9627 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9628
9629 2013-03-25 Yao Qi <yao@codesourcery.com>
9630
9631 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9632 instead of '_mkdir'.
9633
9634 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9635
9636 * windows-nat.c (windows_get_absolute_argv0): New function.
9637 * windows-nat.h: Add its prototype.
9638
9639 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9640 Use IS_DIR_SEPARATOR instead of looking for a character inside
9641 SLASH_STRING. Include filenames.h.
9642 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9643 relocate_gdb_directory works when passed gdb_program_name.
9644 Include windows-nat.h.
9645
9646 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9649 * remote.c (trace_error): Remove the special handling of '2'.
9650 (readchar) <SERIAL_EOF>
9651 (readchar) <SERIAL_ERROR>
9652 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9653 (remote_get_trace_status): Call throw_exception if EX is
9654 TARGET_CLOSE_ERROR.
9655 * utils.c (perror_with_name): Rename to ...
9656 (throw_perror_with_name): ... here. New parameter errcode, describe it
9657 in the function comment.
9658 (perror_with_name): New function wrapper.
9659 * utils.h (enum errors): New stub declaration.
9660 (throw_perror_with_name): New declaration.
9661
9662 2013-03-22 Pedro Alves <palves@redhat.com>
9663 Yao Qi <yao@codesourcery.com>
9664 Mark Kettenis <kettenis@gnu.org>
9665
9666 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9667 Don't let the user set the value to UINT_MAX directly.
9668 <var_integer>: Don't let the user set the value to INT_MAX
9669 directly.
9670
9671 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9672
9673 * remote.c (remote_unpush_target): New function.
9674 (remote_open_1): Remove two pop_target calls, update one comment, add
9675 comment to target_preopen call. Replace pop_target call by
9676 remote_unpush_target call.
9677 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9678 pop_target calls by remote_unpush_target calls.
9679
9680 2013-03-22 Pedro Alves <palves@redhat.com>
9681
9682 * linux-nat.c (linux_child_follow_fork): Don't call
9683 linux_enable_event_reporting.
9684 (linux_handle_extended_wait): Don't call
9685 linux_enable_event_reporting.
9686
9687 2013-03-22 Pedro Alves <palves@redhat.com>
9688
9689 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9690 use it to rewrite the trampoline buffers with type gdb_byte[], and
9691 undefine the macro. Remove char* cast.
9692
9693 2013-03-21 Doug Evans <dje@google.com>
9694
9695 New commands "mt set per-command {space,time,symtab} {on,off}".
9696 * NEWS: Add entry.
9697 * event-top.c: #include "maint.h".
9698 * main.c: #include "maint.h".
9699 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9700 timeval-utils.h, maint.h, cli/cli-setshow.h.
9701 (per_command_time, per_command_space): New static globals.
9702 (per_command_symtab): New static global.
9703 (per_command_setlist, per_command_showlist): New static globals.
9704 (struct cmd_stats): Move here from utils.c.
9705 (set_per_command_time): Renamed from set_display_time in utils.c
9706 and moved here. All callers updated.
9707 (set_per_command_space): Renamed from set_display_space in utils.c
9708 and moved here. All callers updated.
9709 (count_symtabs_and_blocks): New function.
9710 (report_command_stats): Moved here from utils.c. Add support for
9711 printing symtab stats. Only print data if enabled before command
9712 executed.
9713 (make_command_stats_cleanup): Ditto.
9714 (sert_per_command_cmd, show_per_command_cmd): New functions.
9715 (_initialize_maint_cmds): Add new commands
9716 mt set per-command {space,time,symtab} {on,off}.
9717 * maint.h: New file.
9718 * top.c: #include "maint.h".
9719 * utils.c (reset_prompt_for_continue_wait_time): New function.
9720 (get_prompt_for_continue_wait_time): New function.
9721 * utils.h (reset_prompt_for_continue_wait_time): Declare
9722 (get_prompt_for_continue_wait_time): Declare.
9723 (make_command_stats_cleanup): Moved to maint.h.
9724 (set_display_time, set_display_space): Moved to maint.h and renamed
9725 to set_per_command_time, set_per_command_space.
9726 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9727 parse_binary_operation and made non-static. Don't call error,
9728 just return an error marker. All callers updated.
9729 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9730
9731 2013-03-21 Tom Tromey <tromey@redhat.com>
9732
9733 * symfile.c (alloc_section_addr_info): Update header. Don't set
9734 'num_sections' field.
9735 (build_section_addr_info_from_section_table): Set 'num_sections'.
9736 (build_section_addr_info_from_bfd): Likewise.
9737 (build_section_addr_info_from_objfile): Remove dead loop
9738 condition.
9739 (free_section_addr_info): Unconditionally call xfree.
9740 (relative_addr_info_to_section_offsets, addrs_section_sort)
9741 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9742 condition.
9743 (syms_from_objfile_1): Remove dead 'if' condition. Check
9744 'num_sections'.
9745 (add_symbol_file_command): Set 'num_sections'.
9746 * symfile-mem.c (symbol_file_add_from_memory): Set
9747 'num_sections'.
9748 * somread.c (som_symfile_offsets): Remove dead loop condition.
9749 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9750 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9751
9752 2013-03-21 Tom Tromey <tromey@redhat.com>
9753
9754 * tracepoint.h (decode_agent_options): Add 'trace_string'
9755 argument.
9756 * tracepoint.c (decode_agent_options): Add 'trace_string'
9757 argument.
9758 (validate_actionline): Update.
9759 (collect_symbol): Add 'trace_string' argument.
9760 (struct add_local_symbols_data) <trace_string>: New field.
9761 (do_collect_symbol): Update.
9762 (add_local_symbols): Add 'trace_string' argument.
9763 (encode_actions_1): Update.
9764 (trace_dump_actions): Update.
9765 * dwarf2loc.c (access_memory): Update.
9766 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9767 * ax-general.c (new_agent_expr): Update.
9768 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9769 (gen_trace_for_return_address): Add argument.
9770 (trace_kludge, trace_string_kludge): Remove.
9771 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9772 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9773 (gen_trace_for_var): Add 'trace_string' argument.
9774 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9775 (gen_printf, agent_eval_command_one): Update.
9776
9777 2013-03-21 Tom Tromey <tromey@redhat.com>
9778
9779 PR exp/15109:
9780 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9781 Handle FILENAME token.
9782
9783 2013-03-21 Tom Tromey <tromey@redhat.com>
9784
9785 * c-exp.y (YYPRINT): Define.
9786 (c_print_token): New function.
9787
9788 2013-03-21 Tom Tromey <tromey@redhat.com>
9789
9790 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9791
9792 2013-03-21 Yao Qi <yao@codesourcery.com>
9793
9794 * ctf.c: Include "gdb_stat.h".
9795 [USE_WIN32API]: New macro 'mkdir'.
9796 (ctf_start): Use permission bits macros if they are defined.
9797
9798 2013-03-20 Keith Seitz <keiths@redhat.com>
9799
9800 * breakpoint.h (struct breakpoint): Add comment to
9801 extra_string indicating that this member is mallod'd.
9802 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9803
9804 2013-03-20 Pedro Alves <palves@redhat.com>
9805
9806 PR gdb/15289
9807
9808 * cli/cli-setshow.c (do_set_command)
9809 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9810 the result of parsing the command argument. Throw error if the
9811 value is greater than UINT_MAX. Print the invalid value with
9812 plongest.
9813 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9814 result of parsing the command argument. Throw error if the value
9815 is greater than INT_MAX, not greater or equal. Also throw error
9816 if the value is less than INT_MIN. Print the invalid value with
9817 plongest.
9818 <var_zuinteger_unlimited>: Throw error if the value is greater
9819 than INT_MAX, not greater or equal.
9820 (do_show_command) <var_integer, var_zinteger,
9821 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9822
9823 2013-03-20 Tom Tromey <tromey@redhat.com>
9824
9825 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9826 if possible.
9827 * dwarf2read.c (read_func_scope): Remove old FIXME.
9828 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9829 not LOC_COMPUTED.
9830 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9831 Unconditionally call via computed ops, if possible.
9832 * printcmd.c (address_info): Unconditionally call via computed ops,
9833 if possible.
9834 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9835 if possible.
9836 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9837 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9838 if possible.
9839
9840 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9841 Tom Tromey <tromey@redhat.com>
9842
9843 PR symtab/8421:
9844 * coffread.c (coff_register_index): New global.
9845 (process_coff_symbol, coff_read_enum_type): Set
9846 SYMBOL_ACLASS_INDEX.
9847 (_initialize_coffread): Initialize new global.
9848 * dwarf2loc.c (locexpr_find_frame_base_location)
9849 (dwarf2_block_frame_base_locexpr_funcs)
9850 (loclist_find_frame_base_location)
9851 (dwarf2_block_frame_base_loclist_funcs): New.
9852 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9853 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9854 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9855 (dwarf2_block_frame_base_loclist_funcs): New.
9856 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9857 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9858 globals.
9859 (read_func_scope): Update.
9860 (fixup_go_packaging, mark_common_block_symbol_computed)
9861 (var_decode_location, new_symbol_full, dwarf2_const_value):
9862 Set SYMBOL_ACLASS_INDEX.
9863 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9864 (_initialize_dwarf2_read): Initialize new globals.
9865 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9866 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9867 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9868 globals.
9869 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9870 (_initialize_mdebugread): Initialize new globals.
9871 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9872 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9873 (stab_register_index, stab_regparm_index): New globals.
9874 (define_symbol, read_enum_type, common_block_end): Set
9875 SYMBOL_ACLASS_INDEX.
9876 (_initialize_stabsread): Initialize new globals.
9877 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9878 globals.
9879 (MAX_SYMBOL_IMPLS): New define.
9880 (register_symbol_computed_impl, register_symbol_block_impl)
9881 (register_symbol_register_impl)
9882 (initialize_ordinary_address_classes): New functions.
9883 (_initialize_symtab): Call initialize_ordinary_address_classes.
9884 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9885 (struct symbol_impl): New.
9886 (SYMBOL_ACLASS_BITS): New define.
9887 (struct symbol) <aclass, ops>: Remove fields.
9888 <aclass_index>: New field.
9889 (symbol_impls): Declare.
9890 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9891 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9892 (register_symbol_computed_impl, register_symbol_block_impl)
9893 (register_symbol_register_impl): Declare.
9894 (struct symbol_computed_ops): Add location_has_loclist.
9895 (struct symbol_block_ops): New.
9896 (SYMBOL_BLOCK_OPS): New.
9897 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9898
9899 2013-03-20 Tom Tromey <tromey@redhat.com>
9900
9901 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9902 (print_partial_symbols, recursively_search_psymtabs): Use
9903 PSYMBOL_CLASS.
9904
9905 2013-03-20 Pierre Muller <muller@sourceware.org>
9906
9907 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9908 addtion, subtraction, multiplication and division binary operator.
9909
9910 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9911
9912 Code cleanup.
9913 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9914 * bsd-kvm.c (bsd_kvm_close): Likewise.
9915 * bsd-uthread.c (bsd_uthread_close): Likewise.
9916 * corelow.c (core_close): Likewise.
9917 (core_close_cleanup): Remove parameter quitting from a caller.
9918 * event-top.c (async_disconnect): Likewise.
9919 * exec.c (exec_close_1): Remove parameter quitting.
9920 * go32-nat.c (go32_close): Likewise.
9921 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9922 parameter quitting from a caller.
9923 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9924 variable.
9925 (mips_linux_close): Remove parameter quitting. Remove parameter
9926 quitting from a caller.
9927 * monitor.c (monitor_close): Remove parameter quitting.
9928 * monitor.h (monitor_close): Likewise.
9929 * record-btrace.c (record_btrace_close): Likewise.
9930 * record-full.c (record_full_close): Likewise.
9931 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9932 it also from fprintf_unfiltered.
9933 * remote-mips.c (mips_close): Remove parameter quitting.
9934 (mips_detach): Remove parameter quitting from a caller.
9935 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9936 (gdbsim_close): Remove duplicate function comment. Remove parameter
9937 quitting and remove it also from printf_filtered.
9938 * remote.c (remote_close): Remove parameter quitting.
9939 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9940 * target.c (update_current_target): Remove parameter int from to_close
9941 de_fault.
9942 (push_target, unpush_target, pop_target): Remove parameter quitting from
9943 a caller.
9944 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9945 Remove parameter quitting from a caller.
9946 (target_preopen): Remove parameter quitting from a caller.
9947 (target_close): Remove parameter quitting. Remove parameter quitting
9948 from a caller two times. Remove parameter quitting also from
9949 fprintf_unfiltered.
9950 * target.h (struct target_ops): Remove parameter quitting and as int
9951 from fields to_xclose and to_close.
9952 (extern struct target_ops current_target):
9953 (target_close, pop_all_targets): Remove parameter quitting. Update the
9954 comment.
9955 (pop_all_targets_above): Remove parameter quitting.
9956 * top.c (quit_target): Remove parameter quitting from a caller.
9957 * tracepoint.c (tfile_close): Remove parameter quitting.
9958 * windows-nat.c (windows_close): Remove parameter quitting.
9959
9960 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9961
9962 * windows-nat.c (handle_output_debug_string): Replace call
9963 to string_to_core_addr with call to strtoull.
9964
9965 2013-03-20 Yao Qi <yao@codesourcery.com>
9966
9967 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9968 and write it to CTF metadata.
9969
9970 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9971
9972 * windows-nat.c (handle_output_debug_string): Change type of n to
9973 SIZE_T to avoid crash on 64 bit systems.
9974
9975 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9976
9977 * python/python-internal.h (HAVE_SNPRINTF)
9978 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9979 about redefinition of snprintf by pyerrors.h.
9980
9981 2013-03-15 Steve Ellcey <sellcey@mips.com>
9982
9983 * remote-sim.c (sim_command_completer): Make char arguments const.
9984
9985 2013-03-15 Tom Tromey <tromey@redhat.com>
9986
9987 PR c++/15116:
9988 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9989
9990 2013-03-14 Tom Tromey <tromey@redhat.com>
9991
9992 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9993 New fields.
9994 (get_file_crc): Move from symfile.c.
9995 (gdb_bfd_crc): New function.
9996 * gdb_bfd.h (gdb_bfd_crc): Declare.
9997 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9998 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9999 (separate_debug_file_exists): Use gdb_bfd_crc.
10000
10001 2013-03-14 Tom Tromey <tromey@redhat.com>
10002
10003 * symfile.c (get_debug_link_info): Remove.
10004 (find_separate_debug_file_by_debuglink): Use
10005 bfd_get_debug_link_info.
10006
10007 2013-03-14 Tom Tromey <tromey@redhat.com>
10008
10009 * symtab.c (error_in_psymtab_expansion): New function.
10010 (lookup_symbol_aux_quick)
10011 (basic_lookup_transparent_type_quick): Remove "last resort"
10012 code. Use error_in_psymtab_expansion.
10013
10014 2013-03-14 Doug Evans <dje@google.com>
10015 Jan Kratochvil <jan.kratochvil@redhat.com>
10016
10017 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10018 any successful compare_filenames_for_search or FILENAME_CMP.
10019 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10020 * symtab.c (iterate_over_some_symtabs): Likewise.
10021
10022 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10023
10024 * source.c (print_source_lines_base): Make a local copy of
10025 symtab_to_fullname.
10026
10027 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10028 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 * source.c (print_source_lines_base): Suppress "file" for TUI.
10031
10032 2013-03-14 Keith Seitz <keiths@redhat.com>
10033 Alan Matsuoka <alanm@redhat.com>
10034
10035 PR c++/15203
10036 PR c++/15210
10037 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10038 TYPE_CODE_METHOD.
10039 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10040 symbols.
10041
10042 2013-03-14 Yao Qi <yao@codesourcery.com>
10043
10044 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10045 status to tfile if trace is stopped by command 'tstop'.
10046
10047 2013-03-14 Yao Qi <yao@codesourcery.com>
10048
10049 * tracepoint.c (tfile_write_status): Write trace notes and user
10050 name into tfile if they are not NULL.
10051
10052 2013-03-14 Hui Zhu <hui@codesourcery.com>
10053 Yao Qi <yao@codesourcery.com>
10054
10055 * Makefile.in (REMOTE_OBS): Add ctf.o.
10056 (SFILES): Add ctf.c.
10057 (HFILES_NO_SRCDIR): Add ctf.h.
10058 * ctf.c, ctf.h: New files.
10059 * tracepoint.c: Include 'ctf.h'.
10060 (collect_pseudocommand): Remove static.
10061 (trace_save_command): Parse option "-ctf".
10062 Produce different trace file writers per option.
10063 Adjust output message.
10064 (trace_save_tfile, trace_save_ctf): New.
10065 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10066 * mi/mi-main.c: Include 'ctf.h'.
10067 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10068 trace_save_tfile or trace_save_ctf.
10069 * NEWS: Mention these changes.
10070
10071 2013-03-14 Yao Qi <yao@codesourcery.com>
10072
10073 * tracepoint.c (trace_file_writer_xfree): New.
10074 (struct tfile_writer_data): New.
10075 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10076 (tfile_write_header, tfile_write_regblock_type): New.
10077 (tfile_write_status, tfile_write_uploaded_tsv): New.
10078 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10079 (tfile_write_raw_data, (tfile_end): New.
10080 (tfile_write_ops): New global variable.
10081 (TRACE_WRITE_R_BLOCK): New macro.
10082 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10083 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10084 (TRACE_WRITE_V_BLOCK): New macro.
10085 (trace_save): Add extra one parameter WRITER. Make it static.
10086 Use WRITER to writer trace.
10087 (tfile_trace_file_writer_new): New.
10088 (trace_save_command): Caller update.
10089 (trace_save_tfile): Write trace data in TFILE format.
10090 * tracepoint.h (struct trace_frame_write_ops): New.
10091 (struct trace_file_write_ops): New.
10092 (struct trace_file_writer): New.
10093 (trace_save): Remove its declaration.
10094 (trace_save_tfile): Declare it.
10095 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10096 instead of trace_save.
10097
10098 2013-03-13 Pedro Alves <palves@redhat.com>
10099
10100 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10101
10102 2013-03-13 Pedro Alves <palves@redhat.com>
10103
10104 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10105 commented out code.
10106 * demangle.c (current_demangling_style_string): Make it const.
10107 (set_demangling_command): Assert the demangling style is known.
10108 Remove all handling of unknown styles. Set
10109 'current_demangling_style_string' to an element of the
10110 demangling_style_names array.
10111 (set_demangling_style): Delete.
10112 (_initialize_demangler): Set current_demangling_style_string to the
10113 element of the demangling_style_names array that corresponds to
10114 the default demangling style. Remove FIXME note. Don't call
10115 set_demangling_style.
10116 * gdb-demangle.h (set_demangling_style): Remove declaration.
10117
10118 2013-03-13 Pedro Alves <palves@redhat.com>
10119
10120 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10121 fields const.
10122 (ada_make_symbol_completion_list): Make "text0" parameter const.
10123 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10124 * breakpoint.c (condition_completer): Make "text" and "word"
10125 parameters const. Adjust.
10126 (check_tracepoint_command): Adjust to validate_actionline
10127 prototype change.
10128 (catch_syscall_completer): Make "text" and "word" parameters
10129 const.
10130 * cli/cli-cmds.c (show_user): Make "comname" local const.
10131 (valid_command_p): Make "command" parameter const.
10132 (alias_command): Make "alias_prefix" and "command_prefix" locals
10133 const.
10134 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10135 (add_alias_cmd): Make "name" and "oldname" parameters const.
10136 Adjust. No longer make copy of OLDNAME.
10137 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10138 (add_setshow_cmd_full, add_setshow_enum_cmd)
10139 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10140 (add_setshow_filename_cmd, add_setshow_string_cmd)
10141 (add_setshow_string_noescape_cmd)
10142 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10143 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10144 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10145 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10146 Make "name" parameter const.
10147 (help_cmd): Rename "command" parameter to "arg". New const local
10148 "command".
10149 (find_cmd): Make "command" parameter const.
10150 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10151 deprecated_cmd_warning prototype change.
10152 (undef_cmd_error): Make "cmdtype" parameter const.
10153 (lookup_cmd): Make "line" parameter const.
10154 (deprecated_cmd_warning): Change type of "text" parameter to
10155 pointer to const char, from pointer to pointer to char. Adjust.
10156 (lookup_cmd_composition): Make "text" parameter const.
10157 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10158 parameters const.
10159 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10160 const.
10161 * cli/cli-script.c (validate_comname): Make "tem" local const.
10162 (define_command): New const local "tem_c". Use it in calls to
10163 lookup_cmd.
10164 (document_command): Make "tem" and "comfull" locals const.
10165 (show_user_1): Make "prefix" and "name" parameters const.
10166 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10167 const.
10168 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10169 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10170 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10171 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10172 (complete_on_enum, add_setshow_enum_cmd)
10173 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10174 (add_setshow_filename_cmd, add_setshow_string_cmd)
10175 (add_setshow_string_noescape_cmd)
10176 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10177 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10178 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10179 Change prototypes, constifying strings.
10180 * completer.c (noop_completer, filename_completer): Make "text"
10181 and "prefix" parameters const.
10182 (location_completer, expression_completer)
10183 (complete_line_internal): Make "text" and "prefix" parameters
10184 const and adjust.
10185 (command_completer, signal_completer): Make "text" and "prefix"
10186 parameters const.
10187 * completer.h (noop_completer, filename_completer)
10188 (expression_completer, location_completer, command_completer)
10189 (signal_completer): Change prototypes.
10190 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10191 parameters const.
10192 * cp-abi.c (cp_abi_completer): Likewise.
10193 * expression.h (parse_expression_for_completion): Change
10194 prototype.
10195 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10196 parameters const.
10197 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10198 * infrun.c (handle_completer): Make "text" and "word" parameters
10199 const.
10200 * interps.c (interpreter_completer): Make "text" and "word"
10201 parameters const.
10202 * language.h (struct language_defn)
10203 <la_make_symbol_completion_list>: Make "text" and "word"
10204 parameters const.
10205 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10206 (parse_exp_in_context): Rename to ...
10207 (parse_exp_in_context_1): ... this.
10208 (parse_exp_in_context): Reimplement, with const hack from
10209 parse_exp_1.
10210 (parse_expression_for_completion): Make "string" parameter const.
10211 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10212 to pointer to const char. Adjust.
10213 (print_command_1): Make "exp" parameter const.
10214 (output_command): Rename to ...
10215 (output_command_const): ... this. Make "exp" parameter const.
10216 (output_command): Reimplement.
10217 (x_command): Adjust.
10218 (display_command): Rename "exp" parameter to "arg". New "exp"
10219 local, const version of "arg".
10220 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10221 "cmd_name" local const.
10222 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10223 call.
10224 (cmdpy_completer): Make "text" and "word" parameters const.
10225 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10226 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10227 const.
10228 * remote.c (_initialize_remote): Make "cmd_name" local const.
10229 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10230 parameters const. Adjust.
10231 (completion_list_add_fields): Make "sym_text", "text" and "word"
10232 parameters const.
10233 (struct add_name_data) <sym_text, text, word>: Make fields const.
10234 (default_make_symbol_completion_list_break_on): Make "text" and
10235 "word" parameters const. Adjust locals.
10236 (default_make_symbol_completion_list)
10237 (make_symbol_completion_list, make_symbol_completion_type)
10238 (make_symbol_completion_list_fn): Make "text" and "word"
10239 parameters const.
10240 (make_file_symbol_completion_list): Make "text", "word" and
10241 "srcfile" parameters const. Adjust locals.
10242 (add_filename_to_list): Make "text" and "word" parameters const.
10243 (struct add_partial_filename_data) <text, word>: Make fields
10244 const.
10245 (make_source_files_completion_list): Make "text" and "word"
10246 parameters const.
10247 * symtab.h (default_make_symbol_completion_list_break_on)
10248 (default_make_symbol_completion_list, make_symbol_completion_list)
10249 (make_symbol_completion_type enum type_code)
10250 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10251 (make_source_files_completion_list): Change prototype.
10252 * top.c (execute_command): Adjust to pass pointer to pointer to
10253 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10254 change.
10255 (set_verbose): Make "cmdname" local const.
10256 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10257 and adjust.
10258 (validate_actionline): Make "line" parameter a pointer to const
10259 char, and adjust.
10260 (encode_actions_1): Make "action_exp" local const, and adjust.
10261 (encode_actions): Adjust.
10262 (replace_comma): Delete.
10263 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10264 const, and adjust. Don't frob the action string while splitting
10265 it at commas. Instead, make a copy of each split substring in
10266 turn.
10267 (trace_dump_command): Adjust to validate_actionline prototype
10268 change.
10269 * tracepoint.h (decode_agent_options, decode_agent_options)
10270 (encode_actions, validate_actionline): Change prototypes.
10271 * valprint.h (output_command): Delete declaration.
10272 (output_command_const): Declare.
10273 * value.c (function_destroyer): Cast const away in xfree call.
10274
10275 2013-03-13 Pedro Alves <palves@redhat.com>
10276
10277 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10278 rather than casting 'const char * const *' to 'const char **'.
10279 * ada-lex.l (processInt): Make "trailer" local const. Remove
10280 'const char **' cast.
10281 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10282 locals, and use those as strtol output pointer, instead than doing
10283 invalid casts to from 'const char **' to 'char **'.
10284 (_initialize_demangle): Remove cast.
10285 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10286 locals, and use those as strtol output pointer, instead than doing
10287 invalid casts to from 'const char **' to 'char **'.
10288 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10289 casts.
10290 * stap-probe.c (stap_parse_register_operand)
10291 (stap_parse_single_operand): Likewise.
10292
10293 2013-03-13 Yao Qi <yao@codesourcery.com>
10294
10295 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10296 the last matched 'V' blcok in trace frame.
10297
10298 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10299
10300 * NEWS: Create a new section for the next release branch.
10301 Rename the section of the current branch, now that it has
10302 been cut.
10303
10304 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10305
10306 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10307 * version.in: Bump version to 7.6.50.20130312-cvs.
10308
10309 2013-03-12 Keith Seitz <keiths@redhat.com>
10310
10311 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10312 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10313 Remove temporary copy of input string.
10314 (mi_execute_command_wrapper): Make "cmd" const.
10315 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10316 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10317 Use const strings.
10318 (mi_parse): Make "cmd" const.
10319 Use const strings.
10320 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10321
10322 2013-03-12 Keith Seitz <keiths@redhat.com>
10323
10324 * ada-lang.c (ada_read_renaming_var_value): Pass const
10325 pointer to expression string to parse_exp_1.
10326 (create_excep_cond_exprs): Likewise.
10327 * ax-gdb.c (agent_eval_command_one): Likewise.
10328 (maint_agent_printf_command): Likewise.
10329 Constify much of the string handling/parsing.
10330 * breakpoint.c (set_breakpoint_condition): Pass const
10331 pointer to expression string to parse_exp_1.
10332 (update_watchpoint): Likewise.
10333 (parse_cmd_to_aexpr): Constify string handling.
10334 Pass const pointer to parse_exp_1.
10335 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10336 (find_condition_and_thread): Likewise.
10337 Make TOK const.
10338 (watch_command_1): Make "arg" const.
10339 Constify string handling.
10340 Copy the expression string instead of changing the input
10341 string.
10342 (update_breakpoint_location): Pass const pointer to
10343 parse_exp_1.
10344 * eval.c (parse_and_eval_address): Make "exp" const.
10345 (parse_to_comma_and_eval): Make "expp" const.
10346 (parse_and_eval): Make "exp" const.
10347 * expression.h (parse_expression): Make argument const.
10348 (parse_exp_1): Make first argument const.
10349 * findcmd.c (parse_find_args): Treat "args" as const.
10350 * linespec.c (parse_linespec): Pass const pointer to
10351 linespec_expression_to_pc.
10352 (linespec_expression_to_pc): Make "exp_ptr" const.
10353 * parse.c (parse_exp_1): Make "stringptr" const.
10354 Make a copy of the expression to pass to parse_exp_in_context until
10355 this whole interface can be constified.
10356 (parse_expression): Make "string" const.
10357 * printcmd.c (ui_printf): Treat "arg" as const.
10358 Handle const strings.
10359 * tracepoint.c (validate_actionline): Pass const pointer to
10360 all calls to parse_exp_1.
10361 (encode_actions_1): Likewise.
10362 * value.h (parse_to_comma_and_eval): Make argument const.
10363 (parse_and_eval_address): Likewise.
10364 (parse_and_eval): Likewise.
10365 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10366 (varobj_set_value): Likewise.
10367 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10368 constify string handling.
10369 Pass const pointers to parse_and_eval_address and
10370 parse_to_comman_and_eval.
10371 * cli/cli-utils.c (skip_to_space): Rename to ...
10372 (skip_to_space_const): ... this. Handle const strings.
10373 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10374 skip_to_space_const.
10375 (skip_to_space_const): Declare.
10376 * common/format.c (parse_format_string): Make "arg" const.
10377 Handle const strings.
10378 * common/format.h (parse_format_string): Make "arg" const.
10379 * gdbserver/ax.c (ax_printf): Make "format" const.
10380 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10381 of the expression string.
10382
10383 2013-03-12 Hui Zhu <hui@codesourcery.com>
10384
10385 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10386
10387 2013-03-12 Yao Qi <yao@codesourcery.com>
10388 Hui Zhu <hui@codesourcery.com>
10389
10390 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10391 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10392 DW_OP_deref_size.
10393
10394 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10395
10396 * ada-lex.l (rules): Only recognize 'thread' as a
10397 delimiter when followed by numerals, as for c-exp.y.
10398 Use new rewind_to_char function to rewind the input for
10399 expression-delimiting tokens.
10400 (rewind_to_char): New function.
10401
10402 2013-03-11 Pedro Alves <palves@redhat.com>
10403 Jan Kratochvil <jan.kratochvil@redhat.com>
10404
10405 * configure: Regenerate.
10406 * configure.ac (check dynamic export flag): Link python test with
10407 $PYTHON_LIBS.
10408
10409 2013-03-11 Doug Evans <dje@google.com>
10410 Keith Seitz <keiths@redhat.com>
10411
10412 * linespec.c (find_linespec_symbols): Call find_function_symbols
10413 first, and then call lookup_prefix_sym/find_method.
10414
10415 2013-03-11 Pedro Alves <palves@redhat.com>
10416
10417 * charset.c (convert_between_encodings): Don't cast between
10418 different pointer to pointer types. Instead, make the 'inp' local
10419 be of the type iconv expects.
10420 (wchar_iterate): Don't cast between different pointer to pointer
10421 types. Instead, use new pointer local of the type iconv expects.
10422 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10423 Add new local of type char pointer, and use it to get a
10424 char/string view of the byte buffer, instead of casting between
10425 pointer to pointer types.
10426
10427 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10428
10429 * remote.c (remote_set_trace_buffer_size): Move != operator
10430 to the start of next line to fix an ARI warning.
10431
10432 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10433
10434 * NEWS: Add record changes.
10435
10436 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10437
10438 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10439 the instruction history disassembly.
10440 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10441 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10442
10443 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10444
10445 * Makefile.in (SFILES): Add record-btrace.c
10446 (COMMON_OBS): Add record-btrace.o
10447 * record-btrace.c: New.
10448 * objfiles.c: Include btrace.h.
10449 (free_objfile): call btrace_free_objfile.
10450
10451 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10452
10453 * target.c (target_call_history, target_call_history_from,
10454 target_call_history_range): New.
10455 * target.h (target_ops) <to_call_history, to_call_history_from,
10456 to_call_history_range>: New fields.
10457 (target_call_history, target_call_history_from,
10458 target_call_history_range): New declaration.
10459 * record.c (get_call_history_modifiers, cmd_record_call_history,
10460 record_call_history_size): New.
10461 (_initialize_record): Add the "record function-call-history" command.
10462 Add "set/show record function-call-history-size" commands.
10463 * record.h (record_print_flag): New.
10464
10465 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10466
10467 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10468 to_insn_history_range>: New fields.
10469 (target_insn_history): New.
10470 (target_insn_history_from): New.
10471 (target_insn_history_range): New.
10472 * target.c (target_insn_history): New.
10473 (target_insn_history_from): New.
10474 (target_insn_history_range): New.
10475 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10476 (record_insn_history_size): New.
10477 (get_insn_number): New.
10478 (get_context_size): New.
10479 (no_chunk): New.
10480 (get_insn_history_modifiers): New.
10481 (cmd_record_insn_history): New.
10482 (_initialize_record): Add "set/show record instruction-history-size"
10483 command. Add "record instruction-history" command.
10484
10485 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10486
10487 * record.h (record_disconnect): New.
10488 (record_detach): New.
10489 (record_mourn_inferior): New.
10490 (record_kill): New.
10491 * record-full.c (record_disconnect, record_detach,
10492 record_mourn_inferior, record_kill): Move to...
10493 * record.c: ...here.
10494 (DEBUG): New.
10495 (record_stop): New.
10496 (record_unpush): New.
10497 (cmd_record_stop): Call record_stop. Replace unpush_target
10498 call with record_unpush call.
10499 (record_disconnect, record_detach): Assert that the target
10500 is of record stratum. Call record_unpush, record_stop, and
10501 DEBUG.
10502 (record_mourn_inferior, record_kill): Assert that the target
10503 is of record stratum. Call record_unpush and DEBUG.
10504
10505 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10506
10507 * record-full.h, record-full.c (record_memory_query): Rename
10508 to ...
10509 (record_full_memory_query): ...this. Update all users.
10510 (record_arch_list_add_reg): Rename to ...
10511 (record_full_arch_list_add_reg): ...this. Update all users.
10512 (record_arch_list_add_mem): Rename to ...
10513 (record_full_arch_list_add_mem): ...this. Update all users.
10514 (record_arch_list_add_end): Rename to ...
10515 (record_full_arch_list_add_end): ...this. Update all users.
10516 (record_gdb_operation_disable_set): Rename to ...
10517 (record_full_gdb_operation_disable_set): ...this.
10518 Update all users.
10519
10520 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10521
10522 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10523 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10524 (RECORD_IS_REPLAY): Renamed to ...
10525 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10526 (RECORD_FILE_MAGIC): Renamed to ...
10527 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10528 (record_mem_entry): Renamed to ...
10529 (record_full_mem_entry): ... this. Updated all users.
10530 (record_reg_entry): Renamed to ...
10531 (record_full_reg_entry): ... this. Updated all users.
10532 (record_end_entry): Renamed to ...
10533 (record_full_end_entry): ... this. Updated all users.
10534 (record_type) <record_end, record_reg, record_mem>: Renamed
10535 to ...
10536 (record_full_type) <record_full_end, record_full_reg,
10537 record_full_mem>: ... this. Updated all users.
10538 (record_entry): Renamed to ...
10539 (record_full_entry): ... this. Updated all users.
10540 (record_core_buf_entry): Renamed to ...
10541 (record_full_core_buf_entry): ... this. Updated all users.
10542 (record_core_regbuf): Renamed to ...
10543 (record_full_core_regbuf): ... this. Updated all users.
10544 (record_core_start): Renamed to ...
10545 (record_full_core_start): ... this. Updated all users.
10546 (record_core_end): Renamed to ...
10547 (record_full_core_end): ... this. Updated all users.
10548 (record_core_buf_list): Renamed to ...
10549 (record_full_core_buf_list): ... this. Updated all users.
10550 (record_first): Renamed to ...
10551 (record_full_first): ... this. Updated all users.
10552 (record_list): Renamed to ...
10553 (record_full_list): ... this. Updated all users.
10554 (record_arch_list_head): Renamed to ...
10555 (record_full_arch_list_head): ... this. Updated all users.
10556 (record_arch_list_tail): Renamed to ...
10557 (record_full_arch_list_tail): ... this. Updated all users.
10558 (record_stop_at_limit): Renamed to ...
10559 (record_full_stop_at_limit): ... this. Updated all users.
10560 (record_insn_max_num): Renamed to ...
10561 (record_full_insn_max_num): ... this. Updated all users.
10562 (record_insn_num): Renamed to ...
10563 (record_full_insn_num): ... this. Updated all users.
10564 (record_insn_count): Renamed to ...
10565 (record_full_insn_count): ... this. Updated all users.
10566 (record_ops): Renamed to ...
10567 (record_full_ops): ... this. Updated all users.
10568 (record_core_ops): Renamed to ...
10569 (record_full_core_ops): ... this. Updated all users.
10570 (set_record_cmdlist): Renamed to ...
10571 (set_record_full_cmdlist): ... this. Updated all users.
10572 (show_record_cmdlist): Renamed to ...
10573 (show_record_full_cmdlist): ... this. Updated all users.
10574 (record_cmdlist): Renamed to ...
10575 (record_full_cmdlist): ... this. Updated all users.
10576 (record_beneath_to_resume_ops): Renamed to ...
10577 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10578 (record_beneath_to_resume): Renamed to ...
10579 (record_full_beneath_to_resume): ... this. Updated all users.
10580 (record_beneath_to_wait_ops): Renamed to ...
10581 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10582 (record_beneath_to_wait): Renamed to ...
10583 (record_full_beneath_to_wait): ... this. Updated all users.
10584 (record_beneath_to_store_registers_ops): Renamed to ...
10585 (record_full_beneath_to_store_registers_ops): ... this.
10586 Updated all users.
10587 (record_beneath_to_store_registers): Renamed to ...
10588 (record_full_beneath_to_store_registers): ... this.
10589 Updated all users.
10590 (record_beneath_to_xfer_partial_ops): Renamed to ...
10591 (record_full_beneath_to_xfer_partial_ops): ... this.
10592 Updated all users.
10593 (record_beneath_to_xfer_partial): Renamed to ...
10594 (record_full_beneath_to_xfer_partial): ... this.
10595 Updated all users.
10596 (record_beneath_to_insert_breakpoint): Renamed to ...
10597 (record_full_beneath_to_insert_breakpoint): ... this.
10598 Updated all users.
10599 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10600 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10601 Updated all users.
10602 (record_beneath_to_stopped_data_address): Renamed to ...
10603 (record_full_beneath_to_stopped_data_address): ... this.
10604 Updated all users.
10605 (record_beneath_to_async): Renamed to ...
10606 (record_full_beneath_to_async): ... this. Updated all users.
10607 (record_goto_insn): Renamed to ...
10608 (record_full_goto_insn): ... this. Updated all users.
10609 (record_save): Renamed to ...
10610 (record_full_save): ... this. Updated all users.
10611 (record_reg_alloc): Renamed to ...
10612 (record_full_reg_alloc): ... this. Updated all users.
10613 (record_reg_release): Renamed to ...
10614 (record_full_reg_release): ... this. Updated all users.
10615 (record_mem_alloc): Renamed to ...
10616 (record_full_mem_alloc): ... this. Updated all users.
10617 (record_mem_release): Renamed to ...
10618 (record_full_mem_release): ... this. Updated all users.
10619 (record_end_alloc): Renamed to ...
10620 (record_full_end_alloc): ... this. Updated all users.
10621 (record_end_release): Renamed to ...
10622 (record_full_end_release): ... this. Updated all users.
10623 (record_entry_release): Renamed to ...
10624 (record_full_entry_release): ... this. Updated all users.
10625 (record_list_release): Renamed to ...
10626 (record_full_list_release): ... this. Updated all users.
10627 (record_list_release_following): Renamed to ...
10628 (record_full_list_release_following): ... this.
10629 Updated all users.
10630 (record_list_release_first): Renamed to ...
10631 (record_full_list_release_first): ... this. Updated all users.
10632 (record_arch_list_add): Renamed to ...
10633 (record_full_arch_list_add): ... this. Updated all users.
10634 (record_get_loc): Renamed to ...
10635 (record_full_get_loc): ... this. Updated all users.
10636 (record_check_insn_num): Renamed to ...
10637 (record_full_check_insn_num): ... this. Updated all users.
10638 (record_arch_list_cleanups): Renamed to ...
10639 (record_full_arch_list_cleanups): ... this. Updated all users.
10640 (record_message): Renamed to ...
10641 (record_full_message): ... this. Updated all users.
10642 (record_message_wrapper): Renamed to ...
10643 (record_full_message_wrapper): ... this. Updated all users.
10644 (record_message_wrapper_safe): Renamed to ...
10645 (record_full_message_wrapper_safe): ... this. Updated all users.
10646 (record_gdb_operation_disable): Renamed to ...
10647 (record_full_gdb_operation_disable): ... this. Updated all users.
10648 (record_hw_watchpoint): Renamed to ...
10649 (record_full_hw_watchpoint): ... this. Updated all users.
10650 (record_exec_insn): Renamed to ...
10651 (record_full_exec_insn): ... this. Updated all users.
10652 (record_restore): Renamed to ...
10653 (record_full_restore): ... this. Updated all users.
10654 (record_async_inferior_event_token): Renamed to ...
10655 (record_full_async_inferior_event_token): ... this.
10656 Updated all users.
10657 (record_async_inferior_event_handler): Renamed to ...
10658 (record_full_async_inferior_event_handler): ... this.
10659 Updated all users.
10660 (record_core_open_1): Renamed to ...
10661 (record_full_core_open_1): ... this. Updated all users.
10662 (record_open_1): Renamed to ...
10663 (record_full_open_1): ... this. Updated all users.
10664 (record_open): Renamed to ...
10665 (record_full_open): ... this. Updated all users.
10666 (record_close): Renamed to ...
10667 (record_full_close): ... this. Updated all users.
10668 (record_resume_step): Renamed to ...
10669 (record_full_resume_step): ... this. Updated all users.
10670 (record_resumed): Renamed to ...
10671 (record_full_resumed): ... this. Updated all users.
10672 (record_execution_dir): Renamed to ...
10673 (record_full_execution_dir): ... this. Updated all users.
10674 (record_resume): Renamed to ...
10675 (record_full_resume): ... this. Updated all users.
10676 (record_get_sig): Renamed to ...
10677 (record_full_get_sig): ... this. Updated all users.
10678 (record_sig_handler): Renamed to ...
10679 (record_full_sig_handler): ... this. Updated all users.
10680 (record_wait_cleanups): Renamed to ...
10681 (record_full_wait_cleanups): ... this. Updated all users.
10682 (record_wait_1): Renamed to ...
10683 (record_full_wait_1): ... this. Updated all users.
10684 (record_wait): Renamed to ...
10685 (record_full_wait): ... this. Updated all users.
10686 (record_stopped_by_watchpoint): Renamed to ...
10687 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10688 (record_disconnect): Renamed to ...
10689 (record_full_disconnect): ... this. Updated all users.
10690 (record_detach): Renamed to ...
10691 (record_full_detach): ... this. Updated all users.
10692 (record_mourn_inferior): Renamed to ...
10693 (record_full_mourn_inferior): ... this. Updated all users.
10694 (record_kill): Renamed to ...
10695 (record_full_kill): ... this. Updated all users.
10696 (record_stopped_data_address): Renamed to ...
10697 (record_full_stopped_data_address): ... this. Updated all users.
10698 (record_registers_change): Renamed to ...
10699 (record_full_registers_change): ... this. Updated all users.
10700 (record_store_registers): Renamed to ...
10701 (record_full_store_registers): ... this. Updated all users.
10702 (record_xfer_partial): Renamed to ...
10703 (record_full_xfer_partial): ... this. Updated all users.
10704 (record_breakpoint): Renamed to ...
10705 (record_full_breakpoint): ... this. Updated all users.
10706 (record_breakpoint_p): Renamed to ...
10707 (record_full_breakpoint_p): ... this. Updated all users.
10708 (record_breakpoints): Renamed to ...
10709 (record_full_breakpoints): ... this. Updated all users.
10710 (record_sync_record_breakpoints): Renamed to ...
10711 (record_full_sync_record_breakpoints): ... this.
10712 Updated all users.
10713 (record_init_record_breakpoints): Renamed to ...
10714 (record_full_init_record_breakpoints): ... this.
10715 Updated all users.
10716 (record_insert_breakpoint): Renamed to ...
10717 (record_full_insert_breakpoint): ... this. Updated all users.
10718 (record_remove_breakpoint): Renamed to ...
10719 (record_full_remove_breakpoint): ... this. Updated all users.
10720 (record_can_execute_reverse): Renamed to ...
10721 (record_full_can_execute_reverse): ... this. Updated all users.
10722 (record_get_bookmark): Renamed to ...
10723 (record_full_get_bookmark): ... this. Updated all users.
10724 (record_goto_bookmark): Renamed to ...
10725 (record_full_goto_bookmark): ... this. Updated all users.
10726 (record_async): Renamed to ...
10727 (record_full_async): ... this. Updated all users.
10728 (record_can_async_p): Renamed to ...
10729 (record_full_can_async_p): ... this. Updated all users.
10730 (record_is_async_p): Renamed to ...
10731 (record_full_is_async_p): ... this. Updated all users.
10732 (record_execution_direction): Renamed to ...
10733 (record_full_execution_direction): ... this. Updated all users.
10734 (record_info): Renamed to ...
10735 (record_full_info): ... this. Updated all users.
10736 (record_delete): Renamed to ...
10737 (record_full_delete): ... this. Updated all users.
10738 (record_is_replaying): Renamed to ...
10739 (record_full_is_replaying): ... this. Updated all users.
10740 (record_goto_entry): Renamed to ...
10741 (record_full_goto_entry): ... this. Updated all users.
10742 (record_goto_begin): Renamed to ...
10743 (record_full_goto_begin): ... this. Updated all users.
10744 (record_goto_end): Renamed to ...
10745 (record_full_goto_end): ... this. Updated all users.
10746 (record_goto): Renamed to ...
10747 (record_full_goto): ... this. Updated all users.
10748 (init_record_ops): Renamed to ...
10749 (init_record_full_ops): ... this. Updated all users.
10750 (record_core_resume): Renamed to ...
10751 (record_full_core_resume): ... this. Updated all users.
10752 (record_core_kill): Renamed to ...
10753 (record_full_core_kill): ... this. Updated all users.
10754 (record_core_fetch_registers): Renamed to ...
10755 (record_full_core_fetch_registers): ... this. Updated all users.
10756 (record_core_prepare_to_store): Renamed to ...
10757 (record_full_core_prepare_to_store): ... this. Updated all users.
10758 (record_core_store_registers): Renamed to ...
10759 (record_full_core_store_registers): ... this. Updated all users.
10760 (record_core_xfer_partial): Renamed to ...
10761 (record_full_core_xfer_partial): ... this. Updated all users.
10762 (record_core_insert_breakpoint): Renamed to ...
10763 (record_full_core_insert_breakpoint): ... this. Updated all users.
10764 (record_core_remove_breakpoint): Renamed to ...
10765 (record_full_core_remove_breakpoint): ... this. Updated all users.
10766 (record_core_has_execution): Renamed to ...
10767 (record_full_core_has_execution): ... this. Updated all users.
10768 (init_record_core_ops): Renamed to ...
10769 (init_record_full_core_ops): ... this. Updated all users.
10770 (cmd_record_restore): Renamed to ...
10771 (cmd_record_full_restore): ... this. Updated all users.
10772 (record_save_cleanups): Renamed to ...
10773 (record_full_save_cleanups): ... this. Updated all users.
10774 (cmd_record_start): Renamed to ...
10775 (cmd_record_full_start): ... this. Updated all users.
10776 (set_record_insn_max_num): Renamed to ...
10777 (set_record_full_insn_max_num): ... this. Updated all users.
10778 (set_record_command): Renamed to ...
10779 (set_record_full_command): ... this. Updated all users.
10780 (show_record_command): Renamed to ...
10781 (show_record_full_command): ... this. Updated all users.
10782 (_initialize_record): Renamed to ...
10783 (_initialize_record_full): ... this. Updated all users.
10784
10785 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10786
10787 * record.h: Split into this and ...
10788 * record-full.h: ... this.
10789 * record.c: Split into this and ...
10790 * record-full.c: ... this.
10791 * target.h (target_ops): Add new fields to_info_record,
10792 to_save_record, to_delete_record, to_record_is_replaying,
10793 to_goto_record_begin, to_goto_record_end, to_goto_record.
10794 (target_info_record): New.
10795 (target_save_record): New.
10796 (target_supports_delete_record): New.
10797 (target_delete_record): New.
10798 (target_record_is_replaying): New.
10799 (target_goto_record_begin): New.
10800 (target_goto_record_end): New.
10801 (target_goto_record): New.
10802 * target.c (target_info_record): New.
10803 (target_save_record): New.
10804 (target_supports_delete_record): New.
10805 (target_delete_record): New.
10806 (target_record_is_replaying): New.
10807 (target_goto_record_begin): New.
10808 (target_goto_record_end): New.
10809 (target_goto_record): New.
10810 * record.h: Declare struct cmd_list_element.
10811 (record_cmdlist): New declaration.
10812 (set_record_cmdlist): New declaration.
10813 (show_record_cmdlist): New declaration.
10814 (info_record_cmdlist): New declaration.
10815 (cmd_record_goto): New declaration.
10816 * record.c: Remove unnecessary includes.
10817 Include inferior.h.
10818 (cmd_record_goto): Remove declaration.
10819 (record_cmdlist): Now extern. Initialize.
10820 (set_record_cmdlist): Now extern. Initialize.
10821 (show_record_cmdlist): Now extern. Initialize.
10822 (info_record_cmdlist): Now extern. Initialize.
10823 (find_record_target): New.
10824 (require_record_target): New.
10825 (cmd_record_start): Update.
10826 (cmd_record_delete): Remove target-specific code.
10827 Call target_delete_record.
10828 (cmd_record_stop): Unpush any record target.
10829 (set_record_insn_max_num): Move to record-full.c
10830 (set_record_command): Add comment.
10831 (show_record_command): Add comment.
10832 (info_record_command): Update comment.
10833 Remove target-specific code.
10834 Call the record target's to_info_record.
10835 (cmd_record_start): New.
10836 (cmd_record_goto): Now extern.
10837 Remove target-specific code.
10838 Call target_goto_begin, target_goto_end, or target_goto.
10839 (_initialize_record): Move record target ops initialization to
10840 record-full.c.
10841 Change "record" command help text.
10842 Move "record restore", "record set", and "record show" commands to
10843 record-full.c.
10844 * Makefile.in (SFILES): Add record-full.c.
10845 (HFILES_NO_SRCDIR): Add record-full.h.
10846 (COMMON_OBS): Add record-full.o.
10847 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10848 * arm-tdep.c: Include record-full.h.
10849 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10850 * i386-tdep.c: Include record-full.h.
10851 * infrun.c: Include record-full.h.
10852 * linux-record.c: Include record-full.h.
10853 * moxie-tdep.c: Include record-full.h.
10854 * record-full.c: Include record-full.h.
10855 Change module comment.
10856 (set_record_full_cmdlist): New.
10857 (show_record_full_cmdlist): New.
10858 (record_full_cmdlist): New.
10859 (record_goto_insn): New declaration.
10860 (record_save): New declaration.
10861 (record_check_insn_num): Change query string.
10862 (record_info): New.
10863 (record_delete): New.
10864 (record_is_replaying): New.
10865 (record_goto_entry): New.
10866 (record_goto_begin): New.
10867 (record_goto_end): New.
10868 (record_goto): New.
10869 (init_record_ops): Update.
10870 (init_record_core_ops): Update.
10871 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10872 (cmd_record_start): New.
10873 (set_record_insn_max_num): Moved from record.c
10874 (set_record_full_command): New.
10875 (show_record_full_command): New.
10876 (_initialize_record_full): New.
10877
10878 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10879
10880 * target.h (add_deprecated_target_alias): New.
10881 * target.c (add_deprecated_target_alias): New.
10882
10883 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10884
10885 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10886 and signal.h.
10887 (linux_supports_btrace): Add kernel and
10888 cpuid check.
10889 (kernel_supports_btrace): New function.
10890 (cpu_supports_btrace): New function.
10891 (intel_supports_btrace): New function.
10892
10893 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10894
10895 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10896 * remote.c: Include btrace.h.
10897 (struct btrace_target_info): New struct.
10898 (remote_supports_btrace): New function.
10899 (send_Qbtrace): New function.
10900 (remote_enable_btrace): New function.
10901 (remote_disable_btrace): New function.
10902 (remote_teardown_btrace): New function.
10903 (remote_read_btrace): New function.
10904 (init_remote_ops): Add btrace ops.
10905 (enum <unnamed>): Add btrace packets.
10906 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10907 (_initialize_remote): Add packet configuration for branch tracing.
10908
10909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * features/btrace.dtd: New file.
10912 * Makefile.in (XMLFILES): Add btrace.dtd.
10913 * btrace.h (parse_xml_btrace): New declaration.
10914 * btrace.c: Include xml-support.h.
10915 (parse_xml_btrace): New function.
10916 (parse_xml_btrace_block): New function.
10917 (block_attributes): New struct.
10918 (btrace_attributes): New struct.
10919 (btrace_children): New struct.
10920 (btrace_elements): New struct.
10921
10922 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10923
10924 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10925 (amd64_linux_enable_btrace): New.
10926 (amd64_linux_disable_btrace): New.
10927 (amd64_linux_teardown_btrace): New.
10928 (_initialize_amd64_linux_nat): Initialize btrace ops.
10929 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10930 (i386_linux_enable_btrace): New.
10931 (i386_linux_disable_btrace): New.
10932 (i386_linux_teardown_btrace): New.
10933 (_initialize_i386_linux_nat): Initialize btrace ops.
10934 * config/i386/linux.mh: Add linux-btrace.o.
10935 * config/i386/linux64.mh: Add linux-btrace.o.
10936
10937 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10938
10939 * common/linux_btrace.h: New file.
10940 * common/linux_btrace.c: New file.
10941 * Makefile.in (SFILES): Add btrace.c.
10942 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10943 (COMMON_OBS): Add btrace.o.
10944 (linux-btrace.o): New rule.
10945
10946 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10947
10948 * target.h: Include btrace.h.
10949 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10950 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10951 * target.c (target_supports_btrace): New function.
10952 (target_enable_btrace): New function.
10953 (target_disable_btrace): New function.
10954 (target_teardown_btrace): New function.
10955 (target_read_btrace): New function.
10956 * btrace.h: New file.
10957 * btrace.c: New file.
10958 * Makefile.in: Add btrace.c.
10959 * gdbthread.h: Include btrace.h.
10960 (struct thread_info): Add btrace field.
10961 * thread.c: Include btrace.h.
10962 (clear_thread_inferior_resources): Call target_teardown_btrace.
10963 * common/btrace-common.h: New file.
10964
10965 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10966
10967 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10968 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10969 kill_status to outer block.
10970
10971 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10972
10973 Fix entry-values if the callee called a noreturn function.
10974 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10975 get_frame_address_in_block. Add new comment.
10976
10977 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 Fix entry-values in C++ across CUs.
10980 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10981 lookup_minimal_symbol. Add a comment.
10982 * dwarf2read.c
10983 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10984 DW_AT_linkage_name.
10985
10986 2013-03-08 Yao Qi <yao@codesourcery.com>
10987
10988 * tracepoint.c (_initialize_tracepoint): Indent the code.
10989
10990 2013-03-08 Pedro Alves <palves@redhat.com>
10991
10992 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10993 (parse_find_args, find_command): Change type of pattern buffer
10994 locals to 'gdb_byte *'.
10995
10996 2013-03-08 Stan Shebs <stan@codesourcery.com>
10997 Hafiz Abid Qadeer <abidh@codesourcery.com>
10998
10999 * NEWS: Mention set and show trace-buffer-size commands.
11000 Mention new packet.
11001 * target.h (struct target_ops): New method
11002 to_set_trace_buffer_size.
11003 (target_set_trace_buffer_size): New macro.
11004 * target.c (update_current_target): Set up new method.
11005 * tracepoint.c (trace_buffer_size): New global.
11006 (start_tracing): Send it to the target.
11007 (set_trace_buffer_size): New function.
11008 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11009 * remote.c (remote_set_trace_buffer_size): New function.
11010 (_initialize_remote): Use it.
11011 (QTBuffer:size) New remote command.
11012 (PACKET_QTBuffer_size): New enum.
11013 (remote_protocol_features): Add an entry for
11014 PACKET_QTBuffer_size.
11015
11016 2013-03-08 Tom Tromey <tromey@redhat.com>
11017
11018 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11019 variable.
11020
11021 2013-03-07 Pedro Alves <palves@redhat.com>
11022
11023 * target.c (target_read_stralloc, target_fileio_read_alloc):
11024 *Cast pointer to 'gdb_byte *' in target call.
11025
11026 2013-03-07 Pedro Alves <palves@redhat.com>
11027
11028 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11029 call.
11030
11031 2013-03-07 Keith Seitz <keiths@redhat.com>
11032
11033 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11034 (trace_pass_command): Likewise.
11035 * cli/cli-cmds.c: Include cli/cli-utils.h.
11036 (source_command): Use skip-spaces.
11037 (disassemble_command): Likewise.
11038 * findcmd.c: Include cli/cli-utils.h.
11039 (parse_find_args): Use skip_spaces.
11040 * go32-nat.c: Include cli/cli-utils.h.
11041 (go32_sldt): Use skip_spaces.
11042 (go32_sgdt): Likewise.
11043 (go32_sidt): Likewise.
11044 (go32_pde): Likewise.
11045 (go32_pte): Likewise.
11046 (go32_pte_for_address): Likewise.
11047 * infcmd.c: Include cli/cli-utils.h.
11048 (registers_info): Use skip_spaces.
11049 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11050 (linux_info_proc): Likewise.
11051 * linux-thread-db.c: Include cli/cli-utils.h.
11052 (info_auto_load_libthread_db): Use skip_spaces_const.
11053 * m32r-rom.c: Include cli/cli-utils.h.
11054 (m32r_upload_command): Use skip_spaces.
11055 * maint.c: Include cli/cli-utils.h.
11056 (maintenance_translate_address): Use skip_spaces.
11057 * mi/mi-parse.c: Include cli/cli-utils.h.
11058 (mi_parse_argv): Use skip_spaces.
11059 (mi_parse): Likewise.
11060 * minsyms.c: Include cli/cli-utils.h.
11061 (msymbol_hash_iw): Use skip_spaces_const.
11062 * objc-lang.c: Include cli/cli-utils.h.
11063 (parse_selector): Use skip_spaces.
11064 (parse_method): Likewise.
11065 * python/python.c: Include cli/cli-utils.h.
11066 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11067 (python_command)[HAVE_PYTHON]: Likewise.
11068 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11069 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11070 (m32r_load): Use skip_spaces.
11071 * serial.c: Include cli/cli-utils.h.
11072 (serial_open): Use skip_spaces_const.
11073 * stack.c: Include cli/cli-utils.h.
11074 (parse_frame_specification_1): Use skip_spaces_const.
11075 * symfile.c: Include cli/cli-utils.h.
11076 (set_ext_lang_command): Use skip_spaces.
11077 * symtab.c: Include cli/cli-utils.h.
11078 (rbreak_command): Use skip_spaces.
11079 * thread.c (thread_name_command): Use skip_spaces.
11080 * tracepoint.c (validate_actionline): Use skip_spaces.
11081 (encode_actions_1): Likewise.
11082 (trace_find_range_command): Likewise.
11083 (trace_find_outside_command): Likewise.
11084 (trace_dump_actions): Likewise.
11085
11086 2013-03-07 Pedro Alves <palves@redhat.com>
11087
11088 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11089 * expprint.c (print_subexp_standard): Likewise.
11090 * utils.c (host_char_to_target): Likewise.
11091 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11092 * varobj.c (value_get_print_value): Change type of local to char*.
11093 Cast it gdb_byte * in call to language printer.
11094
11095 2013-03-07 Pedro Alves <palves@redhat.com>
11096
11097 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11098 gdb_byte *'.
11099 (make_wchar_iterator): Remove cast to char*.
11100 (wchar_iterate): Change type of local.
11101
11102 2013-03-07 Pedro Alves <palves@redhat.com>
11103
11104 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11105 for 'regcache->register_status'.
11106
11107 2013-03-07 Pedro Alves <palves@redhat.com>
11108
11109 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11110 int.
11111
11112 2013-03-07 Pedro Alves <palves@redhat.com>
11113
11114 * stap-probe.c (handle_stap_probe): Add cast to char*.
11115
11116 2013-03-07 Pedro Alves <palves@redhat.com>
11117
11118 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11119 RECORD_MSGRCV>: Pass a signed variable to
11120 regcache_raw_read_signed, instead of an unsigned one.
11121
11122 2013-03-07 Pedro Alves <palves@redhat.com>
11123
11124 * remote-notif.c (notif_debug): Change type to int.
11125 * remote-notif.h (notif_debug): Likewise.
11126
11127 2013-03-07 Pedro Alves <palves@redhat.com>
11128
11129 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11130
11131 2013-03-07 Pedro Alves <palves@redhat.com>
11132
11133 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11134 * remote.h (hex2bin, bin2hex): ... here.
11135 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11136
11137 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11138
11139 * utils.c (initialize_utils): Improve doc strings of "set/show
11140 width", "set/show height", and "set/show pagination".
11141
11142 2013-03-06 Keith Seitz <keiths@redhat.com>
11143
11144 * ax-gdb.c (gen_printf): Make FORMAT const.
11145 * ax-gdb.h (gen_printf): Likewise.
11146 * ax-general.c (ax_string): Make STR const.
11147 * ax.h (ax_string): Likewise.
11148
11149 2013-03-06 Doug Evans <dje@google.com>
11150
11151 * elfread.c (elf_symfile_read): Move debugging printf to more
11152 logical location.
11153
11154 2013-03-06 Pedro Alves <palves@redhat.com>
11155
11156 * python/py-utils.c (target_string_to_unicode): Delete function.
11157 * python/python-internal.h (target_string_to_unicode): Delete
11158 declaration.
11159
11160 2013-03-06 Pierre Muller <muller@sourceware.org>
11161
11162 * linespec.c (get_current_search_block): ARI fix, use (void)
11163 for empty parameter list.
11164
11165 2013-03-05 Doug Evans <dje@google.com>
11166
11167 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11168 of old ada_lookup_symbol_list. In !full_search case, don't
11169 search superblocks.
11170 (ada_lookup_symbol_list): Delete arg full_search, all callers
11171 updated. Call ada_lookup_symbol_list_worker.
11172 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11173 * ada-lang.h (ada_lookup_symbol_list): Update.
11174 * language.h (language_defn): Update comment for
11175 la_iterate_over_symbols.
11176 * linespec.c (iterate_over_file_blocks): New function.
11177 (iterate_over_all_matching_symtabs): Call it.
11178 (lookup_prefix_sym): Ditto.
11179 (get_current_search_block): New function.
11180 (get_search_block): Delete.
11181 (find_label_symbols): Call get_current_search_block.
11182 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11183 * symtab.c (iterate_over_symbols): Don't search superblocks.
11184
11185 2013-03-05 Yao Qi <yao@codesourcery.com>
11186
11187 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11188 parameter VAR's type from "unsigned int" to "int".
11189 * command.h (var_zuinteger_unlimited): Update its comments.
11190 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11191
11192 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11193
11194 * NEWS: Mention new target x86_64-*-cygwin*.
11195
11196 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11197
11198 * configure.host: Add x86_64-*-cygwin* as host.
11199 * configure.tgt: Add x86_64-*-cygwin* as target.
11200 * config/i386/cygwin64.mh: New file.
11201
11202 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11203
11204 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11205
11206 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 * linespec.c (struct linespec_canonical_name): New.
11209 (struct linespec_state): Change canonical_names type to it.
11210 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11211 xrealloc element size. Initialize the different CANONICAL fields.
11212 (canonical_to_fullform): New.
11213 (filter_results): Use it. Add variables canonical, fullform and
11214 cleanup.
11215 (struct decode_line_2_item, decode_line_2_compare_items): New.
11216 (decode_line_2): Remove variables iter and item_names, add variables
11217 items and items_count. Modify the code for these new variables.
11218
11219 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11220
11221 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11222 calling do_cleanup.
11223
11224 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11225
11226 * tracepoint.c (build_traceframe_info): Add code for byte order.
11227
11228 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11229
11230 * v850-tdep.c: (v850e2_register_name): Revise system register
11231 names to match current V850E2M architecture specifications.
11232 Update register number enum comments too.
11233
11234 2013-03-01 Jiong Wang <jiwang@tilera.com>
11235 Pedro Alves <palves@redhat.com>
11236
11237 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11238 to END_ADDR.
11239 (tilegx_skip_prologue): Limit prologue analysis to section end.
11240
11241 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11242
11243 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11244 use it.
11245
11246 2013-03-01 Pedro Alves <palves@redhat.com>
11247
11248 Use gdb_byte for bytes from the program being debugged.
11249
11250 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11251 Change type of local 'buf' to gdb_byte.
11252 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11253 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11254 * cris-tdep.c (cris_sigcontext_addr)
11255 (cris_sigtramp_frame_unwind_cache): Likewise.
11256 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11257 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11258 Likewise.
11259 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11260 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11261 (hppa32_hpux_search_dummy_call_sequence)
11262 (hppa_hpux_supply_save_state): Likewise.
11263 * hppa-linux-tdep.c (insns_match_pattern)
11264 (hppa_linux_find_global_pointer): Likewise.
11265 * hppa-tdep.c (hppa_in_function_epilogue_p)
11266 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11267 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11268 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11269 (i386fbsd_collect_uthread): Likewise.
11270 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11271 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11272 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11273 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11274 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11275 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11276 (ia64_libunwind_frame_prev_register)
11277 (ia64_libunwind_sigtramp_frame_this_id)
11278 (ia64_find_global_pointer_from_dynamic_section)
11279 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11280 (ia64_unwind_pc): Likewise.
11281 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11282 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11283 (m68hc11_extract_return_value): Likewise.
11284 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11285 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11286 (mep_get_insn, mep_push_dummy_call): Likewise.
11287 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11288 (mips_linux_in_dynsym_stub): Likewise.
11289 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11290 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11291 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11292 to gdb_byte.
11293 * remote-mips.c (mips_set_register): Likewise.
11294 * remote-sim.c (gdbsim_fetch_register): Likewise.
11295 * score-tdep.c (score7_fetch_inst): Change type of parameter
11296 'memblock' and local 'buf' to gdb_byte.
11297 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11298 Change type of local 'buf' to gdb_byte. Adjust.
11299 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11300 to gdb_byte**.
11301 (score7_analyze_prologue): Change type of 'memblock' and
11302 'memblock_ptr' locals to gdb_byte*.
11303 * sh64-tdep.c (sh64_extract_return_value)
11304 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11305 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11306 * solib-pa64.c (pa64_solib_create_inferior_hook)
11307 (pa64_open_symbol_file_object): Remove local 'buf'.
11308 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11309 (som_open_symbol_file_object): Likewise.
11310 * solib-spu.c (spu_current_sos): Likewise.
11311 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11312 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11313 (spu_store_registers): Likewise.
11314 * target.c (debug_print_register): Likewise.
11315 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11316 * xstormy16-tdep.c (xstormy16_store_return_value)
11317 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11318 (xstormy16_find_jmp_table_entry): Likewise.
11319
11320 2013-03-01 Jiong Wang <jiwang@tilera.com>
11321
11322 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11323 (tilegx_gdbarch_init): Install it.
11324
11325 2013-02-28 Tom Tromey <tromey@redhat.com>
11326
11327 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11328 PyLong_Check.
11329
11330 2013-02-28 Doug Evans <dje@google.com>
11331
11332 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11333 * python/python.c (gdbpy_find_pc_line): Ditto.
11334
11335 2013-02-28 Tom Tromey <tromey@redhat.com>
11336
11337 * contrib/excheck.py: New file.
11338 * contrib/exsummary.py: New file.
11339 * contrib/gcc-with-excheck: New file.
11340
11341 2013-02-28 Tom Tromey <tromey@redhat.com>
11342
11343 * python/python.c (gdbpy_print_stack): Call begin_line and
11344 fprintf_filtered inside TRY_CATCH.
11345
11346 2013-02-28 Tom Tromey <tromey@redhat.com>
11347
11348 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11349 inside TRY_CATCH.
11350
11351 2013-02-28 Tom Tromey <tromey@redhat.com>
11352
11353 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11354 frame_object_to_frame_info inside TRY_CATCH.
11355
11356 2013-02-28 Tom Tromey <tromey@redhat.com>
11357
11358 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11359 TRY_CATCH.
11360
11361 2013-02-28 Tom Tromey <tromey@redhat.com>
11362
11363 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11364
11365 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11366
11367 * windows-nat.c: Throughout, fix format strings and casts of
11368 printf-like functions to avoid type related warnings on all
11369 platforms.
11370 (handle_output_debug_string): Fetch context information address
11371 from debug string using string_to_core_addr.
11372
11373 2013-02-27 Jiong Wang <jiwang@tilera.com>
11374
11375 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11376 * regformats/reg-tilegx32.dat: New.
11377
11378 2013-02-27 Jiong Wang <jiwang@tilera.com>
11379
11380 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11381
11382 2013-02-27 Jiong Wang <jiwang@tilera.com>
11383
11384 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11385
11386 2013-02-27 Yao Qi <yao@codesourcery.com>
11387 Pedro Alves <palves@redhat.com>
11388
11389 * tracepoint.c (tfile_trace_find): For tfind
11390 pc/tp/range/outside, look for the next trace frame instead of
11391 always starting from frame 0.
11392
11393 2013-02-26 Anthony Green <green@moxielogic.com>
11394
11395 * configure.tgt: Add support for moxie-*-rtems* target.
11396
11397 2013-02-25 Pedro Alves <palves@redhat.com>
11398
11399 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11400 warning text.
11401
11402 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11403
11404 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11405 if $fp is used as the virtual frame pointer.
11406
11407 2013-02-23 Alan Modra <amodra@gmail.com>
11408
11409 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11410 symbol size.
11411 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11412 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11413 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11414 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11415
11416 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11417
11418 Code cleanup.
11419 * elfread.c (build_id_bfd_get): Make the return type const.
11420 (build_id_verify): Make the check parameter const.
11421 (build_id_to_debug_filename): Make the build_id parameter and variable
11422 data const.
11423 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11424
11425 2013-02-21 Alan Modra <amodra@gmail.com>
11426
11427 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11428
11429 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11430
11431 Add a new method 'disassemble' to gdb.Architecture class.
11432 * python/py-arch.c (archpy_disassmble): Implementation of the
11433 new method gdb.Architecture.disassemble.
11434 (arch_object_methods): Add entry for the new method.
11435
11436 2013-02-20 Jiong Wang <jiwang@tilera.com>
11437
11438 * MAINTAINERS (Write After Approval): Add myself to the list.
11439
11440 2013-02-19 Pedro Alves <palves@redhat.com>
11441
11442 Garbage collect 'struct monitor_ops'::load_routine.
11443
11444 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11445 * monitor.c (monitor_load): No longer call
11446 current_monitor->load_routine.
11447 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11448 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11449 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11450
11451 2013-02-19 Pedro Alves <palves@redhat.com>
11452
11453 PR gdb/15161
11454
11455 Harmonize with generic_load.
11456
11457 * monitor.c: Include "readline/readline.h".
11458 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11459 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11460 long/strtol for the 'load_offset' local. Error out if no argument
11461 is given or if too many arguments are given. Tilde expand the
11462 passed in file name.
11463
11464 2013-02-19 Kai Tietz <ktietz@redhat.com>
11465
11466 PR gdb/15161
11467 * symfile.c (load_section_data): Change type of load_offset
11468 to CORE_ADDR.
11469 (generic_load): User strtoulst instead of strtoul for conversion
11470 of load_offset.
11471
11472 2013-02-19 Jiong Wang <jiwang@tilera.com>
11473
11474 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11475 for return address, "lr" register, saved on stack.
11476 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11477 after we invoke tilegx_analyze_prologue.
11478
11479 2013-02-19 Jiong Wang <jiwang@tilera.com>
11480
11481 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11482
11483 2013-02-19 Jiong Wang <jiwang@tilera.com>
11484
11485 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11486
11487 2013-02-19 Jiong Wang <jiwang@tilera.com>
11488
11489 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11490 (tilegx_write_pc): New function.
11491 (tilegx_cannot_reference_register): Return zero if REGNO
11492 is TILEGX_FAULTNUM_REGNUM.
11493 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11494 (tilegx_register_name): Add handling of "faultnum" register.
11495 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11496 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11497 handling of TILEGX_FAULTNUM_REGNUM.
11498 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11499
11500 2013-02-19 Jiong Wang <jiwang@tilera.com>
11501
11502 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11503 should be aligned to 64bit.
11504
11505 2013-02-19 Kai Tietz <ktietz@redhat.com>
11506
11507 * windows-nat.c (windows_xfer_memory): Fix debug-output
11508 for LLP64.
11509
11510 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11511
11512 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11513 Don't check DSP register number if HAVE_DSP is not set.
11514
11515 2013-02-19 Alan Modra <amodra@gmail.com>
11516
11517 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11518 throughout file instead.
11519 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11520 Don't xmalloc return value.
11521 (build_id_verify): Similarly. Don't xfree.
11522 (build_id_to_debug_filename): Update.
11523 (find_separate_debug_file_by_buildid): Update, don't xfree.
11524
11525 2013-02-18 Tom Tromey <tromey@redhat.com>
11526
11527 PR gdb/15102:
11528 * dwarf2read.c (read_subrange_type): Use result of
11529 'check_typedef'.
11530
11531 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11532
11533 * frame.c: Remove one extra white space after #include
11534 directive.
11535
11536 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11537
11538 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11539
11540 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11541
11542 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11543 and dir commands into an if block.
11544
11545 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11546
11547 * python/py-breakpoint (struct pybp_code): Use int instead of
11548 enum type_code.
11549
11550 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11551 Hafiz Abid Qadeer <abidh@codesourcery.com>
11552
11553 * NEWS: Mention new field "trace-file".
11554 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11555 (tfile_open): Record the trace file's filename in the trace
11556 status.
11557 (tfile_files_info): Mention the name of the trace file.
11558 Check the "filename" field explicitely.
11559 (trace_status_command): Explicitely check "filename" field.
11560 (trace_find_command): Ditto.
11561 (trace_find_pc_command): Ditto.
11562 (trace_find_tracepoint_command): Ditto.
11563 (trace_find_line_command): Ditto.
11564 (trace_find_range_command): Ditto.
11565 (trace_find_outside_command): Ditto.
11566 * tracepoint.h (struct trace_status) <from_file>: Rename it
11567 to "filename" and make it hold the trace file's filename
11568 instead of a boolean.
11569 * remote.c (remote_get_trace_status): Initialize "filename"
11570 field with NULL instead of 0.
11571
11572 2013-02-15 Yao Qi <yao@codesourcery.com>
11573
11574 * remote.c: Fix a typo.
11575
11576 2013-02-14 Pierre Muller <muller@sourceware.org>
11577
11578 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11579
11580 2013-02-14 Pedro Alves <palves@redhat.com>
11581
11582 * utils.c (savestring): Don't #undef it. Move function to
11583 common/common-utils.c.
11584 * common/common-utils.c: Include gdb_string.h.
11585 (savestring): Move here from utils.c.
11586 * common/common-utils.h (savestring): Declare.
11587
11588 2013-02-14 Pedro Alves <palves@redhat.com>
11589
11590 * utils.c (savestring): Rename parameter 'size' to 'len'.
11591
11592 2013-02-14 Pedro Alves <palves@redhat.com>
11593 Yufeng Zhang <yufeng.zhang@arm.com>
11594
11595 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11596 (aarch64_inferior_data, struct aarch64_inferior_data):
11597 Delete.
11598 (struct aarch64_process_info): New.
11599 (aarch64_process_list): New global.
11600 (aarch64_find_process_pid, aarch64_add_process)
11601 (aarch64_process_info_get): New functions.
11602 (aarch64_inferior_data_get): Delete.
11603 (aarch64_process_info_get): New function.
11604 (aarch64_forget_process): New function.
11605 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11606 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11607 aarch64_get_debug_reg_state.
11608 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11609 instead of linux_nat_iterate_watchpoint_lwps.
11610 (aarch64_linux_new_fork): New function.
11611 (aarch64_linux_child_post_startup_inferior): Use
11612 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11613 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11614 (aarch64_linux_remove_hw_breakpoint)
11615 (aarch64_handle_aligned_watchpoint)
11616 (aarch64_handle_unaligned_watchpoint)
11617 (aarch64_linux_insert_watchpoint)
11618 (aarch64_linux_remove_watchpoint)
11619 (aarch64_linux_stopped_data_address): Adjust to pass the current
11620 process id to aarch64_debug_reg_state.
11621 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11622 linux_nat_new_fork hook, and aarch64_forget_process as
11623 linux_nat_forget_process hook; remove the call to
11624 register_inferior_data_with_cleanup.
11625
11626 2013-02-14 Pedro Alves <palves@redhat.com>
11627
11628 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11629 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11630 lval_memory.
11631
11632 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11633 Hafiz Abid Qadeer <abidh@codesourcery.com>
11634
11635 * tracepoint.h (validate_trace_state_variable_name): Declare.
11636 * tracepoint.c (validate_trace_state_variable_name): New.
11637 (trace_variable_command): Parse the trace state variable's name
11638 without using parse_expression. Do several validations.
11639 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11640 trace state variable's name with parse_expression. Validate it.
11641
11642 2013-02-14 Yao Qi <yao@codesourcery.com>
11643
11644 * infcmd.c (breakpoint_proceeded): Remove it.
11645
11646 2013-02-14 Yao Qi <yao@codesourcery.com>
11647
11648 * tracepoint.c (end_actions_pseudocommand): Make it static.
11649 (while_stepping_pseudocommand): Likewise.
11650 * tracepoint.h (end_actions_pseudocommand): Remove the
11651 declaration.
11652 (while_stepping_pseudocommand): Likewise.
11653
11654 2013-02-14 Yao Qi <yao@codesourcery.com>
11655
11656 * cli/cli-decode.c (help_cmd): Remove the declaration of
11657 "cmdlist".
11658 (help_all): Likewise.
11659
11660 2013-02-13 Pedro Alves <palves@redhat.com>
11661
11662 * amd64-linux-nat.c (update_debug_registers_callback):
11663 Update comment.
11664 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11665 iterate_over_lwps.
11666 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11667 i386_debug_reg_state.
11668 (amd64_linux_new_fork): New function.
11669 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11670 linux_nat_new_fork hook, and i386_forget_process as
11671 linux_nat_forget_process hook.
11672 * i386-linux-nat.c (update_debug_registers_callback):
11673 Update comment.
11674 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11675 iterate_over_lwps.
11676 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11677 i386_debug_reg_state.
11678 (i386_linux_new_fork): New function.
11679 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11680 linux_nat_new_fork hook, and i386_forget_process as
11681 linux_nat_forget_process hook.
11682 * i386-nat.c (i386_init_dregs): Delete.
11683 (i386_inferior_data, struct i386_inferior_data):
11684 Delete.
11685 (struct i386_process_info): New.
11686 (i386_process_list): New global.
11687 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11688 New functions.
11689 (i386_inferior_data_get): Delete.
11690 (i386_process_info_get): New function.
11691 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11692 (i386_forget_process): New function.
11693 (i386_cleanup_dregs): Rewrite.
11694 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11695 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11696 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11697 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11698 to i386_debug_reg_state.
11699 (i386_use_watchpoints): Don't register inferior data.
11700 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11701 adjust comment.
11702 (i386_forget_process): Declare.
11703 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11704 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11705 New static globals.
11706 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11707 (add_initial_lwp): New, factored out from ...
11708 (add_lwp): ... this. Don't check the number of lwps before
11709 calling linux_nat_new_thread.
11710 (linux_nat_iterate_watchpoint_lwps): Delete.
11711 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11712 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11713 forks and vforks.
11714 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11715 initial lwp.
11716 (linux_nat_kill, linux_nat_mourn_inferior): Call
11717 linux_nat_forget_process.
11718 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11719 (linux_nat_forget_process): New functions.
11720 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11721 type.
11722 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11723 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11724 types.
11725 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11726 (linux_nat_forget_process): New declarations.
11727
11728 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11729 (amd64fbsd_mourn_inferior): New function.
11730 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11731 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11732
11733 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11734
11735 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11736 Adding _().
11737
11738 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11739
11740 * aarch64-linux-nat.c (debug_reg_change_callback)
11741 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11742 %s and phex().
11743
11744 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11745
11746 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11747 with LONGEST.
11748
11749 2013-02-13 Pedro Alves <palves@redhat.com>
11750 Hafiz Abid Qadeer <abidh@codesourcery.com>
11751
11752 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11753
11754 2013-02-12 Tom Tromey <tromey@redhat.com>
11755
11756 PR symtab/11464:
11757 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11758 NAME return.
11759 (classify_inner_name): Remove 'first_name' argument, add
11760 'context'. Remove unused variable.
11761 (yylex): Explicitly maintain the context type. Exit loop earlier
11762 if NAME result is seen.
11763
11764 2013-02-12 Pedro Alves <palves@redhat.com>
11765
11766 * amd64-darwin-tdep.c: Add (C) after Copyright.
11767 * cli/cli-cmds.h: Ditto.
11768 * cli/cli-decode.c: Ditto.
11769 * cli/cli-decode.h: Ditto.
11770 * cli/cli-dump.c: Ditto.
11771 * cli/cli-dump.h: Ditto.
11772 * cli/cli-interp.c: Ditto.
11773 * cli/cli-logging.c: Ditto.
11774 * cli/cli-script.c: Ditto.
11775 * cli/cli-script.h: Ditto.
11776 * cli/cli-setshow.c: Ditto.
11777 * cli/cli-setshow.h: Ditto.
11778 * cli/cli-utils.c: Ditto.
11779 * cli/cli-utils.h: Ditto.
11780 * config/alpha/nm-osf3.h: Ditto.
11781 * config/djgpp/djconfig.sh: Ditto.
11782 * config/i386/nm-fbsd.h: Ditto.
11783 * config/i386/nm-i386gnu.h: Ditto.
11784 * config/nm-linux.h: Ditto.
11785 * config/nm-nto.h: Ditto.
11786 * config/rs6000/nm-rs6000.h: Ditto.
11787 * config/sparc/nm-sol2.h: Ditto.
11788 * darwin-nat-info.c: Ditto.
11789 * dfp.c: Ditto.
11790 * dfp.h: Ditto.
11791 * gdb-demangle.h: Ditto.
11792 * i386-darwin-nat.c: Ditto.
11793 * i386-darwin-tdep.c: Ditto.
11794 * linux-fork.h: Ditto.
11795 * m32c-tdep.c: Ditto.
11796 * microblaze-linux-tdep.c: Ditto.
11797 * microblaze-rom.c: Ditto.
11798 * microblaze-tdep.c: Ditto.
11799 * microblaze-tdep.h: Ditto.
11800 * mips-linux-tdep.h: Ditto.
11801 * ppc-ravenscar-thread.c: Ditto.
11802 * ppc-ravenscar-thread.h: Ditto.
11803 * prologue-value.c: Ditto.
11804 * prologue-value.h: Ditto.
11805 * ravenscar-thread.c: Ditto.
11806 * ravenscar-thread.h: Ditto.
11807 * sparc-ravenscar-thread.c: Ditto.
11808 * sparc-ravenscar-thread.h: Ditto.
11809 * tilegx-linux-tdep.c: Ditto.
11810 * unwind_stop_reasons.def: Ditto.
11811 * windows-nat.h: Ditto.
11812 * xtensa-linux-tdep.c: Ditto.
11813 * xtensa-xtregs.c: Ditto.
11814 * regformats/regdat.sh: Ditto.
11815 * regformats/regdef.h: Ditto.
11816
11817 2013-02-12 Pedro Alves <palves@redhat.com>
11818
11819 * break-catch-sig.c: Update copyright years.
11820
11821 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11822
11823 Add support for a destructor for ui_out data and use it to
11824 provide a ui_out destructor.
11825 * ui-out.h: Declare the new ui_out destructor.
11826 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11827 * ui-out.c (default_data_destroy): Add a default data destructor
11828 which does nothing.
11829 (default_ui_out_impl): Set the new data_destroy field to
11830 default_data_destroy
11831 (uo_data_destroy): Local function which invokes the data
11832 destructor if present.
11833 (clear_table): Local function which clears the table data of a
11834 ui_out object.
11835 (ui_out_destroy): Public function which frees a ui_out object.
11836 (ui_out_table_end): Use the new clear_table function.
11837 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11838 NULL.
11839 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11840 to NULL.
11841
11842 2013-02-11 Doug Evans <dje@google.com>
11843
11844 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11845 (printf_decfloat): New function. Broken out from ui_printf.
11846 Remove unnecessary code to shift the entire format string down.
11847 (printf_pointer): New function.
11848 (ui_printf): Code to print C strings, wide C strings, decfloats,
11849 and pointers moved to separate functions.
11850
11851 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11852
11853 * valops.c (value_assign): Handling bitfield offset in
11854 `lval_internalvar_component' case.
11855
11856 2013-02-08 Doug Evans <dje@google.com>
11857
11858 * common/format.c (parse_format_string): Fix whitespace.
11859
11860 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11861
11862 * stack.c (return_command): Work around uninitialized variable
11863 warning.
11864
11865 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11866
11867 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11868 number of the registers from 36 to 34.
11869
11870 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11871
11872 * NEWS: Mention new AArch64 native and target support.
11873
11874 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11875
11876 * MAINTAINERS (Write After Approval): Add myself.
11877
11878 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11879 Marcus Shawcroft <marcus.shawcroft@arm.com>
11880 Nigel Stephens <nigel.stephens@arm.com>
11881 Yufeng Zhang <yufeng.zhang@arm.com>
11882
11883 * aarch64-linux-nat.c: New file.
11884 * config/aarch64/linux.mh: New file.
11885 * configure.host: Add AArch64.
11886 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11887
11888 2013-02-07 Doug Evans <dje@google.com>
11889
11890 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11891 disassemble command.
11892
11893 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11894
11895 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11896 set_gdbarch_fetch_tls_load_module_address.
11897
11898 2013-02-06 David S. Miller <davem@davemloft.net>
11899
11900 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11901 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11902 * value.c (struct_return_convention): New function.
11903 (using_struct_return): Implement in terms of struct_return_convention.
11904 * value.h (struct_return_convention): Declare.
11905 * stack.c (return_command): Allow successful overriding of the return
11906 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11907
11908 2013-02-06 Tom Tromey <tromey@redhat.com>
11909
11910 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11911 outside of TRY_CATCH.
11912
11913 2013-02-06 Yao Qi <yao@codesourcery.com>
11914
11915 * mi/mi-interp.c: Include "tracepoint.h".
11916 (mi_tsv_modified): Declare.
11917 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11918 (mi_interpreter_init): Call observer_attach_tsv_modified.
11919 (mi_tsv_modified): New.
11920 (mi_tsv_created, mi_tsv_deleted): Update.
11921 * tracepoint.c (trace_variable_command): Call
11922 observer_notify_tsv_modified if the initial value of tsv is
11923 changed.
11924 (delete_trace_state_variable): Call
11925 observer_notify_tsv_deleted earlier.
11926 (trace_variable_command): Caller update.
11927 (create_tsv_from_upload): Likewise.
11928 * observer.sh: Declare "struct trace_state_variable".
11929
11930 * NEWS: Mention the new MI notification "=tsv-modified".
11931
11932 2013-02-05 Doug Evans <dje@google.com>
11933
11934 * completer.c (location_completer): Fix typo in comment.
11935
11936 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11937
11938 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11939 ADDRESS sorted.
11940
11941 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11942
11943 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11944 Refactor if statement to avoid trailing || operator.
11945
11946 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11947
11948 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11949
11950 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11951
11952 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11953 * configure.host: Add powerpc*-*-freebsd* target.
11954 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11955 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11956 * config/powerpc/fbsd.mh: New file.
11957
11958 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11959 Denys Vlasenko <dvlasenk@redhat.com>
11960 Pedro Alves <palves@redhat.com>
11961
11962 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11963 (struct elf_internal_linux_prpsinfo): Forward declare.
11964 * gdbarch.h, gdbarch.c: Regenerate.
11965 * linux-tdep.c: Include `cli/cli-utils.h'.
11966 (linux_fill_prpsinfo): New function.
11967 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11968 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11969 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11970 depending on gdbarch pointer bitness.
11971 * ppc-linux-tdep.c: Include elf-bfd.h.
11972 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11973 on 32-bit.
11974
11975 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11976 Marcus Shawcroft <marcus.shawcroft@arm.com>
11977 Nigel Stephens <nigel.stephens@arm.com>
11978 Yufeng Zhang <yufeng.zhang@arm.com>
11979
11980 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11981
11982 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11983 Marcus Shawcroft <marcus.shawcroft@arm.com>
11984 Nigel Stephens <nigel.stephens@arm.com>
11985 Yufeng Zhang <yufeng.zhang@arm.com>
11986
11987 * aarch64-newlib-tdep.c: New file.
11988 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11989 aarch64*-*-elf.
11990 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11991 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11992 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11993 * osabi.c (gdb_osabi_names): Add "Newlib".
11994
11995 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11996 Marcus Shawcroft <marcus.shawcroft@arm.com>
11997 Nigel Stephens <nigel.stephens@arm.com>
11998 Yufeng Zhang <yufeng.zhang@arm.com>
11999
12000 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12001 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12002 * aarch64-linux-tdep.c: New file.
12003 * aarch64-linux-tdep.h: New file.
12004 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12005 * configure.tgt: Add aarch64-none-linux-gnu.
12006
12007 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12008 Marcus Shawcroft <marcus.shawcroft@arm.com>
12009 Nigel Stephens <nigel.stephens@arm.com>
12010 Yufeng Zhang <yufeng.zhang@arm.com>
12011
12012 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12013 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12014 (ALLDEPFILES): Add aarch64-tdep.c.
12015 * aarch64-tdep.c: New file.
12016 * aarch64-tdep.h: New file.
12017 * configure.tgt: Add AArch64.
12018 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12019 (aarch64-expedite): New definition.
12020 * features/aarch64-core.xml: New file.
12021 * features/aarch64-fpu.xml: New file.
12022 * features/aarch64-without-fpu.c: New file (generated).
12023 * features/aarch64-without-fpu.xml: New file.
12024 * features/aarch64.c: New file (generated).
12025 * features/aarch64.xml: New file.
12026 * regformats/aarch64-without-fpu.dat: New file (generated).
12027 * regformats/aarch64.dat: New file (generated).
12028
12029 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12030
12031 * contrib/expect-read1.c: New file.
12032 * contrib/expect-read1.sh: New file.
12033
12034 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12035
12036 * dwarf2read.c (file_file_name): New function with code from
12037 file_full_name.
12038 (file_full_name): Move most of the code to file_file_name.
12039 (macro_start_file): Rename variable full_name to file_name and use
12040 file_file_name for it. Add comp_dir parameter to new_macro_table.
12041 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12042 macro_source_file->filename access by macro_source_fullname call.
12043 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12044 caller.
12045 * macrotab.c (struct macro_table): New field comp_dir.
12046 (macro_include): New variables link_fullname and source_fullname.
12047 Replace any macro_source_file->filename access by macro_source_fullname
12048 call.
12049 (macro_lookup_inclusion): Remove the partial filenames checking code.
12050 (check_for_redefinition): New variables source_fullname and
12051 found_key_fullname. Replace any macro_source_file->filename access by
12052 macro_source_fullname call.
12053 (macro_undef): New variables source_fullname and key_fullname. Replace
12054 any macro_source_file->filename access by macro_source_fullname call.
12055 (macro_lookup_definition): New variables retval and source_fullname.
12056 Replace any macro_source_file->filename access by macro_source_fullname
12057 call.
12058 (foreach_macro): New variable key_fullname. Replace any
12059 macro_source_file->filename access by macro_source_fullname call.
12060 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12061 macro_source_file->filename access by macro_source_fullname call.
12062 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12063 (macro_source_fullname): New function.
12064 * macrotab.h (struct macro_source_file): Extent the filename field
12065 comment.
12066 (new_macro_table): New parameter comp_dir, add a comment for it.
12067 (macro_source_fullname): new declaration.
12068
12069 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12070
12071 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12072 this_real_name to outer block. Use it also for
12073 compare_filenames_for_search.
12074 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12075 with dw2_get_real_path for file_matcher, considering also
12076 BASENAMES_MAY_DIFFER.
12077 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12078
12079 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12080
12081 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12082 to the file_matcher parameter. Pass 0 to it.
12083 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12084 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12085 NULL psymtab_to_fullname result.
12086 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12087 an expected filename instead.
12088 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12089 file_matcher parameter. Call also psymtab_to_fullname, after newly
12090 considering BASENAMES_MAY_DIFFER.
12091 * source.c (rewrite_source_path): Remove static.
12092 * source.h (rewrite_source_path): New declaration.
12093 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12094 the expand_symtabs_matching field. Comment it.
12095 * symtab.c (file_matches): New function comment. Add parameter
12096 basenames, implement it.
12097 (search_symbols_file_matches): Add basenames parameter. Update the
12098 file_matches caller.
12099 (search_symbols): Match FILES also against symtab_to_fullname.
12100 Optimize it for BASENAMES_MAY_DIFFER.
12101
12102 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12103
12104 * source.c (print_source_lines_base): Print for TUI also "fullname".
12105 * tui/tui-data.c (init_content_element): Change tui_locator_element
12106 field to full_name.
12107 * tui/tui-data.h (struct tui_locator_element): Likewise.
12108 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12109 tui_update_locator_filename calls to tui_update_locator_fullname.
12110 Replace symtab->filename refererence by symtab_to_fullname call.
12111 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12112 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12113 field to full_name. Replace symtab->filename refererence by
12114 symtab_to_fullname call.
12115 (tui_show_symtab_source): Rename parameter to fullname. Change
12116 tui_locator_element field to full_name.
12117 * tui/tui-stack.c: Include source.h.
12118 (tui_set_locator_filename): Rename the declaration to ...
12119 (tui_set_locator_fullname): ... here. Rename its parameter to
12120 fullname, updates its comment.
12121 (tui_set_locator_info): Rename its parameter to fullname.
12122 (tui_set_locator_filename): Rename the definition to ...
12123 (tui_set_locator_fullname): ... here. Rename its parameter to
12124 fullname, updates its comment. Change tui_locator_element field to
12125 full_name.
12126 (tui_set_locator_info): Rename its parameter to fullname.
12127 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12128 (tui_update_locator_filename): Rename to ...
12129 (tui_update_locator_fullname): ... here. Rename callee to
12130 tui_set_locator_fullname.
12131 (tui_show_frame_info): Replace symtab->filename refererence by
12132 symtab_to_fullname call.
12133 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12134 (tui_update_locator_fullname): ... here.
12135 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12136 tui_update_locator_fullname. Replace symtab->filename refererence by
12137 symtab_to_fullname call.
12138 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12139 Rename the callee to tui_update_locator_fullname.
12140 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12141
12142 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12143
12144 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12145 by symtab_to_filename_for_display calls.
12146 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12147 (clear_command): New variable sal_fullname, initialize it. Replace
12148 compare_filenames_for_search by filename_cmp with sal_fullname.
12149 (say_where, update_static_tracepoint): Replace symtab->filename
12150 refererences by symtab_to_filename_for_display calls.
12151 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12152 Likewise.
12153 * dwarf2read.c: Include source.h.
12154 (fixup_go_packaging): Replace symtab->filename refererences by
12155 symtab_to_filename_for_display calls.
12156 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12157 Replace symtab->filename refererences by symtab_to_filename_for_display
12158 calls.
12159 (create_sals_line_offset, convert_linespec_to_sals): New variable
12160 fullname, initialize it, replace symtab->filename reference by the
12161 variable.
12162 * linux-fork.c: Include source.h.
12163 (info_checkpoints_command): Replace symtab->filename refererences by
12164 symtab_to_filename_for_display calls.
12165 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12166 by symtab_to_filename_for_display calls.
12167 * mdebugread.c: Include source.h.
12168 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12169 symtab_to_filename_for_display calls.
12170 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12171 (mi_cmd_file_list_exec_source_files): Likewise.
12172 * printcmd.c: Include source.h.
12173 (build_address_symbolic): Replace symtab->filename refererences by
12174 symtab_to_filename_for_display calls.
12175 * psymtab.c (partial_map_symtabs_matching_filename)
12176 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12177 with psymtab_to_fullname.
12178 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12179 by symtab_to_filename_for_display calls.
12180 (stpy_get_filename): New variable filename, initialize it, use instead
12181 of symtab->filename refererences.
12182 (salpy_str): Make variable filename const char *. Replace
12183 symtab->filename refererences by symtab_to_filename_for_display calls.
12184 * skip.c: Include source.h and filenames.h.
12185 (skip_file_command): Remove const from the symtab variable. Replace
12186 symtab->filename refererences by symtab_to_fullname call.
12187 (function_name_is_marked_for_skip): New variables searched_for_fullname
12188 and fullname. Use them to search also with symtab's fullname.
12189 * source.c (find_source_lines): Replace symtab->filename refererences
12190 by symtab_to_filename_for_display calls.
12191 (print_source_lines_base): New variable filename, use it instead of
12192 symtab->filename. Replace symtab->filename refererences by
12193 symtab_to_filename_for_display calls.
12194 (line_info, forward_search_command): Replace symtab->filename
12195 refererences by symtab_to_filename_for_display calls.
12196 (reverse_search_command): Replace symtab->filename refererences by
12197 symtab_to_filename_for_display calls. New variable filename for it.
12198 * stack.c (frame_info): Likewise.
12199 * symmisc.c: Include source.h.
12200 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12201 (maintenance_info_symtabs): Replace symtab->filename refererences by
12202 symtab_to_filename_for_display calls.
12203 * symtab.c (iterate_over_some_symtabs): Call
12204 compare_filenames_for_search also with symtab_to_fullname.
12205 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12206 symtab->filename refererences by symtab_to_filename_for_display calls.
12207 (find_line_symtab): Replace symtab->filename refererences by
12208 symtab_to_filename_for_display calls.
12209 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12210 (print_symbol_info): Make the last parameter const char *. New
12211 variable s_filename. Use it in the function.
12212 (symtab_symbol_info): Make the last_filename variable const char *.
12213 Replace symtab->filename refererences by symtab_to_filename_for_display
12214 calls.
12215 (rbreak_command): New variable fullname. Use it. Replace
12216 symtab->filename refererence by symtab_to_filename_for_display call.
12217 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12218 (print_one_static_tracepoint_marker): Replace symtab->filename
12219 refererences by symtab_to_filename_for_display calls.
12220 * tui/tui-source.c (tui_set_source_content): New variables filename and
12221 s_filename. Replace symtab->filename refererences by this variable.
12222 Replace other symtab->filename refererences by
12223 symtab_to_filename_for_display calls.
12224
12225 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12226 Jan Kratochvil <jan.kratochvil@redhat.com>
12227
12228 Add a new variable that controls a way in which filenames are
12229 displayed.
12230 * NEWS (set filename-display): New entry.
12231 * source.c (filename_display_basename, filename_display_relative)
12232 (filename_display_absolute, filename_display_kind_names)
12233 (filename_display_string, show_filename_display_string)
12234 (symtab_to_filename_for_display): New.
12235 (_initialize_source): Added initialization of 'filename-display'
12236 variable.
12237 * source.h (symtab_to_filename_for_display): Added declaration.
12238 * stack.c (print_frame): Added new variable and calling of a new
12239 function and condition with this variable. Changed third argument of
12240 calling of a function.
12241
12242 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12243
12244 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12245 Rename field reference filename to fullname.
12246 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12247 fullname. New comment for it.
12248 * tui/tui-source.c (tui_set_source_content): Rename field reference
12249 filename to fullname. Initialize field by symtab_to_fullname now.
12250 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12251 reference filename to fullname. Use symtab_to_fullname during
12252 comparison.
12253
12254 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 Code cleanup.
12257 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12258 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12259 filename to fullname. Rename variable this_name to this_fullname.
12260 Lowercase FILENAME_CMP call.
12261 (dw2_find_symbol_file): New comment for the returned string.
12262 (dwarf2_gdb_index_functions): Rename the function to
12263 dw2_expand_symtabs_with_fullname.
12264 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12265 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12266 fullname.
12267 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12268 * symfile.h (struct quick_symbol_functions): Rename field
12269 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12270 parameter filename to fullname. Document returned string meaning for
12271 find_symbol_file.
12272 * symtab.c (find_line_symtab): Rename the called function to
12273 expand_symtabs_with_fullname.
12274
12275 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12276
12277 Code cleanup.
12278 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12279 call of filename_cmp with compare_filenames_for_search.
12280 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12281 is_abs, unify the call of FILENAME_CMP with
12282 compare_filenames_for_search. New gdb_asserts for real_path and name.
12283 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12284 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12285 * symfile.h (struct quick_symbol_functions): Extend the comment for
12286 map_symtabs_matching_filename.
12287 * symtab.c (compare_filenames_for_search): Remove the function comment
12288 relative path requirement. Handle absolute filenames, with a comment.
12289 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12290 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12291 real_path and name. Unify the call of compare_filenames_for_search
12292 with FILENAME_CMP.
12293 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12294
12295 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12296
12297 Code cleanup.
12298 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12299 source_file references by symtab field references. Remove variables
12300 sal and fullname.
12301 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12302 (clear_command, say_where): Replace bp_location field source_file
12303 references by symtab field references.
12304 (bp_location_dtor): Remove the source_file reference.
12305 (update_static_tracepoint): Replace bp_location field source_file
12306 references by symtab field references.
12307 (breakpoint_free_objfile): New function.
12308 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12309 Replace the field source_file by field symtab, extend its comment.
12310 (breakpoint_free_objfile): New declaration.
12311 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12312 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12313 field source_file references by symtab field references.
12314
12315 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12316
12317 Replace xfullpath calls by gdb_realpath calls.
12318 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12319 function comment.
12320 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12321 Remove it from the iterate_over_some_symtabs call.
12322 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12323 Remove it from the dw2_map_expand_apply calls, remove a block handling
12324 it.
12325 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12326 Remove it from the iterate_over_some_symtabs call.
12327 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12328 Remove it from the partial_map_expand_apply calls, remove a block
12329 handling it. Drop gdb_realpath call and cleanups from the real_path
12330 handling.
12331 * source.c (openp): Drop the comment part about xfullpath. Replace
12332 xfullpath calls by gdb_realpath calls.
12333 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12334 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12335 from method map_symtabs_matching_filename and its comment.
12336 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12337 gdb_realpath call.
12338 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12339 remove it also from the function comment, remove a block handling it.
12340 Drop gdb_realpath call and cleanups from the real_path handling.
12341 (iterate_over_symtabs): Drop variable full_path and its use.
12342 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12343 * utils.c (xfullpath): Remove.
12344 * utils.h (xfullpath): Remove.
12345
12346 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12347
12348 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12349 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12350 (ALLDEPFILES): Add ppc64-tdep.c.
12351 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12352 ppc64-tdep.o to gdb_target_obs.
12353 * ppc64-tdep.h: New file.
12354 * ppc64-tdep.c: New file.
12355 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12356 ppc-linux-tdep.c to here.
12357 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12358 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12359 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12360 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12361 from ppc-linux-tdep.c to here.
12362 (ppc64_convert_from_func_ptr_addr): Rename from
12363 ppc64_linux_convert_from_func_ptr_addr to
12364 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12365 here.
12366 * rs6000-tdep.c:
12367 (read_insn): Move from ppc-linux-tdep.c to here.
12368 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12369 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12370 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12371 Removed above functions.
12372 (ppc_linux_init_abi): Adjust.
12373
12374 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12375
12376 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12377
12378 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12379
12380 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12381
12382 2013-02-01 Pedro Alves <palves@redhat.com>
12383
12384 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12385 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12386
12387 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12388
12389 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12390 files with no separate debug info.
12391 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12392 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12393 only for files with no separate debug info.
12394
12395 2013-01-31 Tom Tromey <tromey@redhat.com>
12396
12397 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12398 change type.
12399 (struct jit_program_space_data): Rename from jit_inferior_data.
12400 Update comments.
12401 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12402 Change return type. Attach data to program space.
12403 (jit_program_space_data_cleanup): Rename from
12404 jit_inferior_data_cleanup; change argument type.
12405 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12406 change type.
12407 (jit_register_code): Update.
12408 (jit_update_inferior_cache): Remove.
12409 (jit_breakpoint_deleted): Get jit data from the location's program
12410 space.
12411 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12412 'ps_data', change type.
12413 (jit_inferior_init, jit_breakpoint_re_set_internal)
12414 (jit_event_handler): Update.
12415 (free_objfile_data): Get data from objfile's program space.
12416 (_initialize_jit): Update.
12417
12418 2013-01-31 Tom Tromey <tromey@redhat.com>
12419
12420 PR gdb/13987:
12421 * jit.c (struct jit_inferior_data) <cached_code_address,
12422 jit_breakpoint>: New fields.
12423 (jit_breakpoint_re_set_internal): Fix logging. Only create
12424 breakpoint if cached address has changed.
12425 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12426 functions.
12427 (_initialize_jit): Register breakpoint deleted observer.
12428
12429 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12430
12431 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12432 (save_infcall_suspend_state): Ifdef out unused inf.
12433 (restore_infcall_suspend_state): Ifdef out unused inf.
12434 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12435 (jit_frame_sniffer): Remove unused inf_data.
12436
12437 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12438
12439 * c-exp.y (classify_inner_name): Remove unused type.
12440 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12441 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12442 need_escape.
12443 (c_get_string): Remove unused kind.
12444 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12445
12446 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12447
12448 * charset.c (intermediate_encoding): Remove unused i.
12449 * completer.c (signal_completer): Remove unused i.
12450 * continuations.c (discard_my_continuations_1): Remove unused
12451 continuation_ptr.
12452 * corelow.c (core_close): Remove unuseD name.
12453 (get_core_siginfo): Remove unused pid.
12454 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12455 i, cps.
12456 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12457 (loclist_describe_location): Remove unused first.
12458 * event-top.c (command_line_handler): Remove unused got_eof.
12459 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12460 (resize_section_table): Remove unused old_value.
12461 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12462 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12463 * i386-tdep.c (i386_process_record): Remove unused rex.
12464 * infcmd.c (get_return_value): Remove unused uiout.
12465 * jv-lang.c (type_from_class): Remove unused is_array.
12466 * jv-valprint.c (java_val_print): Remove unused i.
12467 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12468 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12469 * m2-typeprint.c (m2_print_type): Remove unused code.
12470 * macroexp.c (get_character_constant): Remove unused body_start.
12471 (macro_stringify): Remove unused result.
12472 * objc-lang.c (find_methods): Remove unused gdbarch.
12473 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12474 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12475 * stack.c (print_frame_args): Remove unused summary.
12476 * thread.c (thread_apply_command): Remove unused p.
12477 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12478 * valops.c (search_struct_method): Remove unused skip.
12479 * valprint.c (generic_val_print): Remove unused byte_order.
12480 * varobj.c (varobj_update): Remove unused changed.
12481 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12482 (alias_command): Remove unused c.
12483 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12484 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12485 format.
12486 (mi_cmd_data_write_memory): Remove unused word_format.
12487 (mi_cmd_data_write_memory_bytes): Remove unused r.
12488 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12489 p_start, p_end.
12490 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12491 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12492 line_width.
12493
12494 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12495
12496 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12497 * symtab.c (iterate_over_symtabs): Remove unused s.
12498 (find_pc_sect_symtab): Remove unused pspAce.
12499 (find_pc_sect_line): Remove unused alt_symtab.
12500 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12501 (completion_list_add_name): Remove unused newsize.
12502
12503 2013-01-31 Tom Tromey <tromey@redhat.com>
12504
12505 PR c++/14998:
12506 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12507 TYPE_CODE_FUNC.
12508
12509 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12510
12511 * target.c (target_read_string): Remove unused origlen.
12512
12513 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12514
12515 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12516 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12517 * ax-general.c (ax_print): Remove unused is_float.
12518 * blockframe.c (block_innermost_frame): Remove unused start, end.
12519 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12520
12521 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12522
12523 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12524 (svr4_read_so_list): Remove unused lmo.
12525 * solib-target.c (solib_target_relocate_section_addresses): Remove
12526 unused flags.
12527
12528 2013-01-30 Tom Tromey <tromey@redhat.com>
12529
12530 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12531
12532 2013-01-30 Tom Tromey <tromey@redhat.com>
12533
12534 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12535 * utils.c (gnu_debuglink_crc32): Remove.
12536 * utils.h (gnu_debuglink_crc32): Don't declare.
12537
12538 2013-01-30 Tom Tromey <tromey@redhat.com>
12539
12540 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12541 (read_structure_type, read_enumeration_type): Remove cast.
12542
12543 2013-01-30 Tom Tromey <tromey@redhat.com>
12544
12545 * dwarf2read.c (read_namespace_type): Remove cast.
12546 (read_typedef): Likewise.
12547
12548 2013-01-29 Tom Tromey <tromey@redhat.com>
12549
12550 * dwarf2read.c (free_dwo_file): Remove assert.
12551
12552 2013-01-29 Tom Tromey <tromey@redhat.com>
12553
12554 * value.c (deprecated_set_value_modifiable): Remove.
12555 * value.h (deprecated_set_value_modifiable): Remove.
12556
12557 2013-01-28 Doug Evans <dje@google.com>
12558
12559 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12560 to addresses from dwo files.
12561
12562 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12563
12564 * valops.c (find_overload_match): Remove unused argument 'lax'.
12565 * value.h: Remove unused argument 'lax' from the declaration of
12566 find_overload_match.
12567 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12568 to find_overload_match.
12569 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12570 argument to find_overload_match.
12571
12572 2013-01-25 Tom Tromey <tromey@redhat.com>
12573
12574 * dwarf2read.c (processing_has_namespace_info): Remove.
12575 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12576 (process_die, read_func_scope, dwarf2_start_symtab)
12577 (new_symbol_full): Update.
12578
12579 2013-01-25 Tom Tromey <tromey@redhat.com>
12580
12581 * cp-namespace.c (cp_set_block_scope): Remove.
12582 * cp-support.h (cp_set_block_scope): Remove.
12583 * dbxread.c: Include block.h.
12584 (cp_set_block_scope): New function.
12585 (process_one_symbol): Update.
12586 * dwarf2read.c (read_func_scope): Use block_set_scope.
12587
12588 2013-01-25 Pedro Alves <palves@redhat.com>
12589
12590 * remote.c (add_current_inferior_and_thread): Tweak comment.
12591
12592 2013-01-25 Tom Tromey <tromey@redhat.com>
12593
12594 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12595 (cp_add_using_directive): Add 'copy_names' argument.
12596 * cp-support.h (cp_add_using_directive): Update.
12597 (struct using_direct) <import_src, import_dest, alias,
12598 declaration>: Now const.
12599 * dwarf2read.c (read_import_statement): Use obconcat.
12600 Don't copy names passed to cp_add_using_directive.
12601
12602 2013-01-25 Tom Tromey <tromey@redhat.com>
12603
12604 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12605
12606 2013-01-25 Pedro Alves <palves@redhat.com>
12607
12608 * remote.c (stop_reply_extract_thread): New.
12609 (add_current_inferior_and_thread): New parameter 'wait_status'.
12610 Handle it.
12611 (remote_start_remote): Pass wait status to
12612 add_current_inferior_and_thread.
12613 (extended_remote_run): Update comment.
12614 (extended_remote_create_inferior_1): Pass wait status to
12615 add_current_inferior_and_thread.
12616
12617 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12618 Ulrich Weigand <uweigand@de.ibm.com>
12619
12620 * valarith.c (value_vector_widen): New function for replicating a
12621 scalar into a vector.
12622 (value_binop): Use value_vector_widen to widen scalar to vector
12623 rather than casting, this better matches gcc C behaviour.
12624 * valops.c (value_casst): Update logic for casting between vector
12625 types, and for casting from scalar to vector, try to match gcc C
12626 behaviour.
12627 * value.h (value_vector_widen): Declare.
12628 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12629 function, handle special case for casting scalar to vector.
12630 (opencl_relop): Use opencl_value_cast.
12631 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12632 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12633 in order to use opencl_value_cast.
12634
12635 2013-01-25 Yao Qi <yao@codesourcery.com>
12636
12637 * event-loop.c: Include "queue.h".
12638 (gdb_event_p): New typedef.
12639 (DECLARE_QUEUE_P): Use.
12640 (DEFINE_QUEUE_P): Use.
12641 (async_queue_event): Remove.
12642 (gdb_event_xfree): New.
12643 (initialize_event_loop): New.
12644 (process_event): Use QUEUE macros.
12645 (event_queue): Remove.
12646 (gdb_wait_for_event): Caller update.
12647 (check_async_event_handlers): Likewise.
12648 (poll_timers): Likewise.
12649 * event-loop.h (initialize_event_loop): Declare.
12650 * event-loop.c (gdb_event_xfree): New.
12651 * top.c (gdb_init): Call initialize_event_loop.
12652
12653 2013-01-25 Yao Qi <yao@codesourcery.com>
12654
12655 * event-loop.c (async_queue_event): Remove one parameter
12656 'position'. Remove code handling 'position' == TAIL.
12657 (gdb_wait_for_event): Caller update.
12658 (check_async_event_handlers): Caller update.
12659 (poll_timers): Caller update.
12660 * event-loop.h (enum queue_position): Remove.
12661
12662 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12663
12664 * MAINTAINERS: Update my email.
12665
12666 2013-01-25 Yao Qi <yao@codesourcery.com>
12667
12668 * main.c (print_gdb_help): Remove "--epoch" from the help
12669 message.
12670
12671 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12672
12673 * symtab.c (skip_prologue_using_sal): Consider a file
12674 change the same as an increased line number
12675
12676 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12677
12678 * MAINTAINERS (Write After Approval): Add myself to the list.
12679
12680 2013-01-24 Tom Tromey <tromey@redhat.com>
12681
12682 * ada-lang.h (ada_decode_symbol): Make return type const.
12683 * ada-lang.c (ada_decode_symbol): Likewise.
12684
12685 2013-01-23 Doug Evans <dje@google.com>
12686
12687 * linespec.c (find_linespec_symbols): Make static.
12688
12689 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12690
12691 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12692 type on float conversion for complex type.
12693
12694 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12695
12696 Add a new class gdb.Architecture which exposes GDB's
12697 internal representation of architecture via GDB Python API.
12698 * Makefile.in: Add entries corresponding to the new file
12699 python/py-arch.c.
12700 * NEWS (Python Scripting): Add entries for the new class
12701 gdb.Architecture and the new method gdb.Frame.architecture.
12702 * python/py-arch.c: Implement gdb.Architecture class.
12703 * python/py-frame.c (frapy_arch): Implement the method
12704 gdb.Frame.architecture().
12705 (frame_object_methods): Add 'architecture' to the method table.
12706 * python/python-internal.h: Add declarations of new utility
12707 functions.
12708 * python/python.c (_initialize_python): Initialize
12709 gdb.Architecture class.
12710
12711 2013-01-23 Doug Evans <dje@google.com>
12712
12713 Work around binutils/15021.
12714 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12715 type_unit_group out of union s. All uses updated.
12716 (read_index_from_section): Watch for index version 8.
12717 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12718 an imported symtab.
12719 (write_psymtabs_to_index): Increment version number to 8.
12720
12721 2013-01-22 Pedro Alves <palves@redhat.com>
12722
12723 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12724 user-visible.
12725
12726 2013-01-22 Pedro Alves <palves@redhat.com>
12727
12728 * annotate.c (annotate_breakpoints_changed): Rename to ...
12729 (annotate_breakpoints_invalid): ... this. Make static.
12730 (breakpoint_changed): Adjust.
12731 (_initialize_annotate): Always install the observers. Install a
12732 "breakpoint_created" observer.
12733 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12734 * breakpoint.c (set_breakpoint_condition)
12735 (breakpoint_set_commands, do_map_commands_command)
12736 (init_raw_breakpoint, clear_command, set_ignore_count)
12737 (enable_breakpoint_disp): No longer call
12738 annotate_breakpoints_changed.
12739
12740 2013-01-22 Pedro Alves <palves@redhat.com>
12741
12742 * annotate.c: Include "inferior.h".
12743 (frames_invalid_emitted)
12744 (breakpoints_invalid_emitted): New globals.
12745 (async_background_execution_p): New function.
12746 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12747 emitting the annotation if it has already been emitted.
12748 (annotate_display_prompt): New function.
12749 * annotate.h (annotate_display_prompt): New declaration.
12750 * event-top.c: Include annotate.h.
12751 (display_gdb_prompt): Call annotate_display_prompt.
12752
12753 2013-01-22 Pedro Alves <palves@redhat.com>
12754
12755 * annotate.c (ignore_count_changed): Delete.
12756 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12757 (annotate_ignore_count_change): Delete.
12758 (annotate_stopped): Don't emit a delayed breakpoints-changed
12759 annotation.
12760 * annotate.h (annotate_ignore_count_change): Delete.
12761 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12762 annotate_ignore_count_change.
12763
12764 2013-01-22 Tom Tromey <tromey@redhat.com>
12765
12766 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12767 require_rvalue for a register location.
12768
12769 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12770
12771 * breakpoint.c (print_one_breakpoint_location): Add MI
12772 field 'thread-groups' when printing a breakpoint.
12773 (output_thread_groups): New function.
12774
12775 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12776
12777 * python/lib/gdb/commands/explore.py
12778 (CompoundExplorer.explore_expr): Correct the name of a method
12779 being invoked.
12780 (ExploreTypeCommand.invoke): Add a missing 'return'.
12781
12782 2013-01-21 Tom Tromey <tromey@redhat.com>
12783
12784 * gdb_obstack.h (obconcat): Move declaration here, from...
12785 * symfile.h (obconcat): ... here.
12786 * gdb_obstack.c: New file.
12787 (obconcat): Move from...
12788 * symfile.c (obconcat): ... here.
12789 * Makefile.in (SFILES): Add gdb_obstack.c.
12790 (COMMON_OBS): Add gdb_obstack.o.
12791
12792 2013-01-21 Tom Tromey <tromey@redhat.com>
12793
12794 * symfile.h (obsavestring): Don't declare.
12795 * symfile.c (obsavestring): Remove.
12796 * ada-exp.y: Use obstack_copy0, not obsavestring.
12797 * ada-lang.c: Use obstack_copy0, not obsavestring.
12798 * coffread.c: Use obstack_copy0, not obsavestring.
12799 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12800 * dbxread.c: Use obstack_copy0, not obsavestring.
12801 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12802 * jit.c: Use obstack_copy0, not obsavestring.
12803 * mdebugread.c: Use obstack_copy0, not obsavestring.
12804 * psymtab.c: Use obstack_copy0, not obsavestring.
12805 * stabsread.c: Use obstack_copy0, not obsavestring.
12806 * xcoffread.c: Use obstack_copy0, not obsavestring.
12807
12808 2013-01-21 Tom Tromey <tromey@redhat.com>
12809
12810 * dwarf2read.c (fixup_go_packaging): Save package name
12811 on objfile obstack.
12812 * gdbtypes.c (init_type): Don't copy name.
12813
12814 2013-01-21 Tom Tromey <tromey@redhat.com>
12815
12816 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12817 const.
12818 (struct attribute) <u.str>: Now const.
12819 (struct fnfieldlist) <name>: Now const.
12820 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12821 (partial_die_parent_scope): Make return type const.
12822 (partial_die_full_name, add_partial_symbol): Update.
12823 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12824 'name' const.
12825 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12826 (read_file_scope, read_func_scope, dwarf2_add_field)
12827 (dwarf2_add_member_fn, read_structure_type)
12828 (process_enumeration_scope, read_array_type, read_module_type)
12829 (read_base_type, read_subrange_type): Update.
12830 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12831 (new_symbol_full, guess_full_die_structure_name): Update.
12832 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12833 (dwarf2_name): Return const type.
12834 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12835 const.
12836
12837 2013-01-21 Tom Tromey <tromey@redhat.com>
12838
12839 * gdbtypes.c (init_type): Make 'name' const.
12840 * gdbtypes.h (init_type): Update.
12841
12842 2013-01-21 Tom Tromey <tromey@redhat.com>
12843
12844 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12845 (start_symtab): Make 'name' and 'dirname' const. Use
12846 set_last_source_file.
12847 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12848 (last_source_file): Define. Now static.
12849 (set_last_source_file, get_last_source_file): New functions.
12850 * buildsym.h (last_source_file): Don't declare.
12851 (start_symtab): Update.
12852 (set_last_source_file, get_last_source_file): Declare.
12853 * coffread.c (complete_symtab): Use set_last_source_file.
12854 (coff_end_symtab): Likewise.
12855 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12856 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12857 set_last_source_file.
12858 (process_one_symbol): Use get_last_source_file.
12859 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12860 (psymtab_to_symtab_1): Use get_last_source_file.
12861 * xcoffread.c (process_linenos): Use get_last_source_file.
12862 (complete_symtab): Use set_last_source_file.
12863 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12864 (scan_xcoff_symtab): Use set_last_source_file.
12865
12866 2013-01-21 Tom Tromey <tromey@redhat.com>
12867
12868 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12869 (symbol_set_names): Remove casts. Handle field const-ness.
12870
12871 2013-01-21 Tom Tromey <tromey@redhat.com>
12872
12873 * dwarf2read.c (new_symbol_full): Remove cast.
12874 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12875 * symtab.h (symbol_set_demangled_name): Update.
12876
12877 2013-01-21 Tom Tromey <tromey@redhat.com>
12878
12879 * main.c (captured_main): Call bfd_init.
12880
12881 2013-01-21 Tom Tromey <tromey@redhat.com>
12882
12883 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12884 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12885 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12886 * NEWS: Update.
12887
12888 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12889
12890 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12891
12892 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12893
12894 Fix gdb.fortran/common-block.exp crash in PIE mode.
12895 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12896 LOC_COMMON_BLOCK.
12897 * f-valprint.c (info_common_command_for_block): Expect
12898 LOC_COMMON_BLOCK in gdb_assert.
12899 * symtab.h (struct general_symbol_info): Update comment for the
12900 common_block member.
12901 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12902 (enum address_class): New member LOC_COMMON_BLOCK.
12903
12904 2013-01-18 David Blaikie <dblaikie@gmail.com>
12905
12906 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12907
12908 2013-01-18 Tom Tromey <tromey@redhat.com>
12909
12910 PR c++/14999:
12911 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12912 Call require_rvalue.
12913
12914 2013-01-18 Yao Qi <yao@codesourcery.com>
12915
12916 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12917 (dbx_read_symtab): New declaration.
12918 (dbx_psymtab_to_symtab): Delete.
12919 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12920 Rename parameter PST to SELF. Exchanged two parameters.
12921 (start_psymtab): Caller update.
12922 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12923 (dwarf2_read_symtab): New declaration.
12924 (dwarf2_psymtab_to_symtab): Delete.
12925 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12926 Rename parameter PST to SELF. Exchanged two parameters.
12927 (create_partial_symtab): Caller update.
12928 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12929 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12930 Rename parameter PST to SELF. Exchanged two parameters.
12931 (parse_partial_symbols, new_psymtab): Caller update.
12932 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12933 two parameters.
12934 * psymtab.c (psymtab_to_symtab): Caller update.
12935 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12936 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12937 Rename parameter PST to SELF. Exchanged two parameters.
12938 (xcoff_start_psymtab): Caller update.
12939
12940 2013-01-18 Yao Qi <yao@codesourcery.com>
12941
12942 * infrun.c (proceed): Rename local variable 'oneproc' to
12943 'force_step'.
12944
12945 2013-01-17 Doug Evans <dje@google.com>
12946
12947 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12948 (dw2_build_type_unit_groups): Delete. All uses updated.
12949
12950 * symtab.h (struct symbol_search): Add comment.
12951
12952 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12953
12954 * symtab.c (compare_filenames_for_search): New comment for
12955 HAS_DRIVE_SPEC.
12956
12957 2013-01-17 Tom Tromey <tromey@redhat.com>
12958
12959 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12960
12961 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12962
12963 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12964 initialize it by existing make_cleanup. Call new do_cleanups.
12965
12966 2013-01-17 Tom Tromey <tromey@redhat.com>
12967
12968 * cp-abi.c (cp_abi_completer): New function.
12969 (_initialize_cp_abi): Set completer for "set cp-abi".
12970
12971 2013-01-17 Tom Tromey <tromey@redhat.com>
12972
12973 * mem-break.c: Remove obsolete comment.
12974 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12975
12976 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12977
12978 * jit.c (jit_reader_load_command): Interpret the jit reader name
12979 as an absolute path if it begins with a forward slash.
12980
12981 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12982
12983 PR gdb/14550
12984
12985 * jit.c (finalize_symtab): Ensure that only the global block has a
12986 NULL superblock.
12987
12988 2013-01-17 Pedro Alves <palves@redhat.com>
12989
12990 * acinclude.m4: Include ../config/plugins.m4,
12991 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12992 * Makefile.in (aclocal_m4_deps): Update.
12993 * aclocal.m4: Renegerate.
12994
12995 2013-01-16 Doug Evans <dje@google.com>
12996
12997 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12998
12999 2013-01-16 Pedro Alves <palves@redhat.com>
13000 Tom Tromey <tromey@redhat.com>
13001
13002 PR cli/7221:
13003 * NEWS: Add "catch signal".
13004 * breakpoint.c (base_breakpoint_ops): No longer static.
13005 (bpstat_explains_signal): New function.
13006 (init_catchpoint): No longer static.
13007 (base_breakpoint_explains_signal): New function.
13008 (base_breakpoint_ops): Initialize new field.
13009 * breakpoint.h (enum bpstat_signal_value): New.
13010 (struct breakpoint_ops) <explains_signal>: New field.
13011 (bpstat_explains_signal): Remove macro, declare as function.
13012 (base_breakpoint_ops, init_catchpoint): Declare.
13013 * break-catch-sig.c: New file.
13014 * inferior.h (signal_catch_update): Declare.
13015 * infrun.c (signal_catch): New global.
13016 (handle_syscall_event): Update for change to
13017 bpstat_explains_signal.
13018 (handle_inferior_event): Likewise. Always handle random signals
13019 via bpstats.
13020 (signal_cache_update): Check signal_catch.
13021 (signal_catch_update): New function.
13022 (_initialize_infrun): Initialize signal_catch.
13023 * Makefile.in (SFILES): Add break-catch-sig.c.
13024 (COMMON_OBS): Add break-catch-sig.o.
13025
13026 2013-01-16 Tom Tromey <tromey@redhat.com>
13027
13028 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13029 (print_one_catch_solib, print_one_catch_syscall)
13030 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13031 "catch-type".
13032
13033 2013-01-16 Yao Qi <yao@codesourcery.com>
13034
13035 * printcmd.c (current_display_number): Make it static.
13036
13037 2013-01-16 Yao Qi <yao@codesourcery.com>
13038
13039 * infcmd.c (step_once): Don't check '!single_inst' as it was
13040 checked before.
13041
13042 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13043
13044 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13045
13046 2013-01-14 Tom Tromey <tromey@redhat.com>
13047
13048 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13049 set command.
13050 * command.h (add_setshow_string_noescape_cmd): Update.
13051 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13052 (complete_set_gnutarget): New function.
13053 (_initialize_core): Set the "set gnutarget" completer.
13054
13055 2013-01-14 Tom Tromey <tromey@redhat.com>
13056
13057 PR symtab/14442:
13058 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13059 (c_type_print_modifier): Likewise.
13060 * dwarf2read.c (read_tag_restrict_type): New function.
13061 (read_type_die_1): Handle DW_TAG_restrict_type.
13062 * gdbtypes.c (make_restrict_type): New function.
13063 (recursive_dump_type): Handle TYPE_RESTRICT.
13064 * gdbtypes.h (enum type_flag_values): Renumber.
13065 (enum type_instance_flag_value): Add
13066 TYPE_INSTANCE_FLAG_RESTRICT.
13067 (TYPE_RESTRICT): New macro.
13068 (make_restrict_type): Declare.
13069
13070 2013-01-14 Tom Tromey <tromey@redhat.com>
13071
13072 PR symtab/14931:
13073 * psymtab.c (struct psymtab_state): New.
13074 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13075 functions.
13076 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13077 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13078
13079 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13080 Pedro Alves <palves@redhat.com>
13081
13082 PR remote/14786
13083
13084 * remote.c (remote_threads_info): Make a copy of the reply from
13085 qfThreadInfo and use that instead of rs->buf.
13086
13087 2013-01-14 Yao Qi <yao@codesourcery.com>
13088
13089 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13090 (dbx_psymtab_to_symtab): Likewise.
13091 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13092 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13093 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13094
13095 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13096
13097 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13098 make_cleanup_restore_current_language. Call set_language. Move
13099 OLD_CHAIN and INNER_CHAIN cleanups.
13100 * utils.c (do_restore_current_language)
13101 (make_cleanup_restore_current_language): New functions.
13102 * utils.h (make_cleanup_restore_current_language): New declaration.
13103
13104 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13105
13106 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13107 non-existing files.
13108
13109 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13110 non-existing files if FILENAME is already absolute.
13111
13112 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13113
13114 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13115 fputs_filtered. Append trailing newline.
13116
13117 2013-01-11 Yao Qi <yao@codesourcery.com>
13118 Stan Shebs <stan@codesourcery.com>
13119
13120 * psymtab.c (init_psymbol_list): Clarify the comment.
13121
13122 2013-01-11 Yao Qi <yao@codesourcery.com>
13123
13124 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13125 (update_dprintf_command_list): Assert that 'printf_line' is
13126 non-null. Remove condition check.
13127
13128 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13129
13130 Code cleanup.
13131 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13132 type const char *.
13133 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13134 const char *.
13135 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13136
13137 2013-01-09 Anthony Green <green@moxielogic.com>
13138
13139 * cp-abi.c (cplus_print_vtable): Don't return value from void
13140 function.
13141 * ada-lang.c (re_set_catch_assert): Ditto.
13142
13143 2013-01-09 Doug Evans <dje@google.com>
13144
13145 * symfile.h (quick_symbol_functions): Delete member
13146 pre_expand_symtabs_matching. All uses removed.
13147 * dwarf2read.c (dw2_lookup_symbol): Implement.
13148 (dw2_do_expand_symtabs_matching): Delete.
13149 (dw2_pre_expand_symtabs_matching): Delete.
13150 (struct dw2_symtab_iterator): New type.
13151 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13152 (dw2_expand_symtabs_for_function): Rewrite.
13153 (dwarf2_gdb_index_functions): Update.
13154 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13155 (psym_functions): Update.
13156
13157 2013-01-09 Tom Tromey <tromey@redhat.com>
13158
13159 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13160 * configure: Rebuild.
13161 * configure.ac: Add somread.o to the build if BFD has SOM
13162 support.
13163 * somread.c: Include som/aout.h, not syms.h.
13164 (som_symtab_read): Use som_external_symbol_dictionary_record.
13165 Unpack records manually.
13166 (_initialize_somread): Declare.
13167
13168 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13169
13170 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13171 Cast return_address to 64bits.
13172
13173 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13174
13175 * printcmd.c: Remove define of function output_command.
13176 * tracepoint.c: Remove extern of function output_command.
13177 * valprint.h: (output_command): New extern.
13178
13179 2013-01-07 Tom Tromey <tromey@redhat.com>
13180
13181 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13182 Remove.
13183 (objc_language_defn): Use c_printchar, c_printstr,
13184 c_emit_char.
13185
13186 2013-01-07 Tom Tromey <tromey@redhat.com>
13187
13188 PR cli/7719:
13189 * NEWS: Update.
13190 * ada-valprint.c (printstr, print_field_values): Remove
13191 "inspect_it" code.
13192 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13193 code.
13194 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13195 code.
13196 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13197 * main.c (captured_main): Remove "epoch" argument.
13198 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13199 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13200 * p-valprint.c (pascal_object_print_value_fields): Remove
13201 "inspect_it" code.
13202 * printcmd.c (print_command_1): Remove 'inspect' argument.
13203 (print_command, call_command): Update.
13204 (inspect_command): Remove.
13205 (_initialize_printcmd): Make "inspect" an alias for "print".
13206 * top.c (epoch_interface): Remove.
13207 * top.h (epoch_interface): Remove.
13208 * valprint.c (user_print_options): Update.
13209 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13210 * valprint.h (struct value_print_options) <inspect_it>: Remove
13211 field.
13212
13213 2013-01-04 Tom Tromey <tromey@redhat.com>
13214
13215 * valprint.h (read_string): Add 'extern'.
13216
13217 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13218
13219 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13220 used to decide whether to define darwin_read_dyld_info or not.
13221
13222 2013-01-03 Pierre Muller <muller@sourceware.org>
13223
13224 * main.c (relocate_gdb_directory): Avoid calling stat function
13225 if DIR is empty.
13226
13227 2013-01-03 Yao Qi <yao@codesourcery.com>
13228
13229 * psymtab.c (fixup_psymbol_section): Update declaration.
13230 (fixup_psymbol_section): Remove code returning value.
13231
13232 2013-01-03 Yao Qi <yao@codesourcery.com>
13233
13234 * symtab.h: Remove some out of date comments.
13235 (enum exception_event_kind): Move it ...
13236 * breakpoint.c: ... here.
13237
13238 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13239
13240 PR gdb/14405
13241 * darwin-nat.c (darwin_read_dyld_info): Only build if
13242 TASK_DYLD_INFO_COUNT is defined.
13243 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13244 TASK_DYLD_INFO_COUNT is defined.
13245
13246 2013-01-02 Tom Tromey <tromey@redhat.com>
13247
13248 * symfile.h (struct ecoff_debug_hack): Remove.
13249 * objfiles.c: Don't include mdebugread.h.
13250
13251 2013-01-02 Tom Tromey <tromey@redhat.com>
13252
13253 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13254 * configure.ac: Check for Mach-O support in BFD. Update
13255 CONFIG_OBS.
13256 * configure: Rebuild.
13257
13258 2013-01-02 Tom Tromey <tromey@redhat.com>
13259
13260 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13261 * configure.ac: Use GDB_AC_CHECK_BFD.
13262 * configure: Rebuild.
13263
13264 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13265
13266 * MAINTAINERS: Update my email.
13267
13268 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13269
13270 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13271
13272 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13273
13274 * rs6000-nat.c (bss_data_overlap): New function.
13275 (vmap_symtab): Use it to adjust the .bss section's offset.
13276
13277 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13278
13279 Update year range in copyright notice of all files.
13280
13281 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13282
13283 * top.c (print_gdb_version): Update copyright year.
13284
13285 For older changes see ChangeLog-2012.
13286 \f
13287 Local Variables:
13288 mode: change-log
13289 left-margin: 8
13290 fill-column: 74
13291 version-control: never
13292 coding: utf-8
13293 End:
This page took 0.388187 seconds and 4 git commands to generate.